{"_id":"@a2ui-starry/vue","name":"@a2ui-starry/vue","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@a2ui-starry/vue","version":"0.1.0","main":"dist/starryui-vue.umd.js","module":"dist/starryui-vue.es.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/starryui-vue.es.js","require":"./dist/starryui-vue.umd.js"},"./style.css":"./dist/style.css"},"sideEffects":["dist/style.css"],"publishConfig":{"access":"public"},"peerDependencies":{"vue":"^3.0.0"},"dependencies":{"@codemirror/autocomplete":"^6.20.0","@codemirror/commands":"^6.10.1","@codemirror/lang-css":"^6.3.1","@codemirror/lang-html":"^6.4.11","@codemirror/lang-javascript":"^6.2.4","@codemirror/lang-json":"^6.0.2","@codemirror/lang-markdown":"^6.5.0","@codemirror/lang-python":"^6.2.1","@codemirror/language":"^6.12.1","@codemirror/state":"^6.5.4","@codemirror/theme-one-dark":"^6.1.3","@codemirror/view":"^6.39.11","katex":"^0.16.22","markdown-it":"^14.1.0","markdown-it-footnote":"^4.0.0","markdown-it-katex":"^2.0.3","markdown-it-task-lists":"^2.1.1","vue-draggable-plus":"^0.6.1","@a2ui-starry/core":"0.1.0"},"devDependencies":{"@iconify-json/carbon":"^1.2.18","@types/markdown-it":"^14.1.2","@vitejs/plugin-vue":"^5.2.4","@vue/test-utils":"^2.4.11","happy-dom":"^20.10.6","typescript":"5.9.3","unocss":"^66.6.0","vite":"^5.0.0","vitest":"1.6.1","vue":"^3.4.0","vue-tsc":"^3.2.2"},"scripts":{"build":"pnpm run build:types && vite build","build:types":"vue-tsc -p tsconfig.json --declaration --emitDeclarationOnly --outDir dist","dev":"vite build --watch","lint":"pnpm run build"},"_id":"@a2ui-starry/vue@0.1.0","description":"Vue 3 renderer for **StarryUI** (A2UI protocol): built-in components, visual editor, theme system, and Action runtime.","_integrity":"sha512-hVtVM/n8pPAp83xVRPT7MwS6kP+k1ARkz5tNa2RisbZZGs7XoqaIZKyjD7WxzVuPPYliPV2DEsZn6a8sZSc9iw==","_resolved":"/private/var/folders/vb/qk4kv3f54n71vzwtyqzk4cch0000gn/T/5d8718bd61de841fe46a3b598dc13c2f/a2ui-starry-vue-0.1.0.tgz","_from":"file:a2ui-starry-vue-0.1.0.tgz","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-hVtVM/n8pPAp83xVRPT7MwS6kP+k1ARkz5tNa2RisbZZGs7XoqaIZKyjD7WxzVuPPYliPV2DEsZn6a8sZSc9iw==","shasum":"3519509257269b45ecf3cf5850ffd1ff38cf1ec1","tarball":"https://registry.npmjs.org/@a2ui-starry/vue/-/vue-0.1.0.tgz","fileCount":6,"unpackedSize":6182758,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDYSS4bf0Q8mmiL6Dki071o+ArXHc/Q8ozwxCjjy6/ZewIhAMGfQbY21N45eIbtESvwHU79o7Abp3CWTUT6okWceKJj"}]},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"directories":{},"maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vue_0.1.0_1782808540919_0.5589203666491174"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-30T08:35:40.818Z","0.1.0":"2026-06-30T08:35:41.093Z","modified":"2026-06-30T08:35:41.288Z"},"maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"description":"Vue 3 renderer for **StarryUI** (A2UI protocol): built-in components, visual editor, theme system, and Action runtime.","readme":"# @a2ui-starry/vue\n\nVue 3 renderer for **StarryUI** (A2UI protocol): built-in components, visual editor, theme system, and Action runtime.\n\nInstall via the umbrella package:\n\n```bash\nnpm install @a2ui-starry/ui vue\nimport '@a2ui-starry/vue/style.css'\n```\n\n## Components\n\n### Basic Components\n\n- **Avatar**: Supports `xs`, `sm`, `md`, `lg`, `xl` sizes.\n- **Button**: Supports `xs`, `sm`, `md`, `lg`, `xl` sizes and various variants.\n- **Icon**: Supports `xs` (12px), `sm` (14px), `md` (16px), `lg` (20px), `xl` (24px), `2xl` (32px).\n- **Text**: Supports `xs` to `4xl` sizes.\n- **Space**: Supports `xs`, `sm`, `md`, `lg`, `xl` presets for gap size.\n\n## Theme System\n\nThe theme system allows you to define global styles and presets.\n\n### Presets\n\nBuilt-in presets: `default`, `minimal`, `card`, `dense`, `dark`.\n\nYou can configure the preset at the `A2UINode` level using the `stylePresetId` prop.\n\n### Architecture\n\nThe theme logic is decoupled from the component rendering:\n- `theme.ts`: Contains `STYLE_PRESETS`, `resolvePresetId`, `resolveTokenValue`, and `applyPresetDefaults`.\n- `A2UINode.vue`: Handles the component tree rendering and delegates theme resolution to `theme.ts`.\n\n### Usage\n\n```vue\n<template>\n  <A2UINode :id=\"rootId\" :scope=\"{ stylePresetId: 'dark' }\" />\n</template>\n```\n","readmeFilename":"README.md","_rev":"1-204526af1eb6321aed1c3eaa7d2c3429"}