{"_id":"@agnosticui/render-lit","name":"@agnosticui/render-lit","dist-tags":{"alpha":"2.0.0-alpha.1","latest":"2.0.0-alpha.1"},"versions":{"2.0.0-alpha.1":{"name":"@agnosticui/render-lit","version":"2.0.0-alpha.1","description":"Lit renderer for AgnosticUI SDUI nodes","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc"},"dependencies":{"@agnosticui/schema":"^2.0.0-alpha.1"},"peerDependencies":{"agnosticui-core":">=2.0.0-alpha.25","lit":"^3.0.0"},"devDependencies":{"agnosticui-core":"file:../../../lib","happy-dom":"^18.0.1","lit":"^3.3.1","typescript":"^5.9.2","vitest":"^3.2.4"},"_id":"@agnosticui/render-lit@2.0.0-alpha.1","gitHead":"1127fce7f7e443ceab0522020b1c5a2c2671d2f1","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Vn8dHrrXc9kmL6f68tq3qn0qgmi/pfSstFZKZZV9P2tsezAK3usWkBv1AAK1zFCdtra4U2cBptz8iIUfc7QgDQ==","shasum":"ac055148d192bab4797f2299ca2b69c29b798c33","tarball":"https://registry.npmjs.org/@agnosticui/render-lit/-/render-lit-2.0.0-alpha.1.tgz","fileCount":14,"unpackedSize":64469,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICMXwzTWRzGGBLpgP2y0o//tStjjnGuNGwnB21zDLMJkAiB/gHu6aHkbs5azr73diGCgZRhAXel+FICEjrgewSYONw=="}]},"_npmUser":{"name":"rlevin","email":"roblevinillustration@gmail.com"},"directories":{},"maintainers":[{"name":"rlevin","email":"roblevinillustration@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/render-lit_2.0.0-alpha.1_1774190809515_0.431256527520802"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-22T14:46:49.387Z","2.0.0-alpha.1":"2026-03-22T14:46:49.653Z","modified":"2026-03-22T14:46:49.912Z"},"maintainers":[{"name":"rlevin","email":"roblevinillustration@gmail.com"}],"description":"Lit renderer for AgnosticUI SDUI nodes","readme":"# @agnosticui/render-lit\n\nLit/web-component renderer for [AgnosticUI](https://agnosticui.com) schema-driven UI (SDUI) nodes.\n\n## Install\n\n```bash\nnpm install @agnosticui/render-lit @agnosticui/schema agnosticui-core\n```\n\n## Peer dependencies\n\n| Package | Version |\n|---------|---------|\n| `agnosticui-core` | `>=2.0.0-alpha.25` |\n| `lit` | `^3.0.0` |\n\n## Usage\n\n```ts\nimport '@agnosticui/render-lit';\nimport type { AgNode } from '@agnosticui/schema';\n\nconst el = document.createElement('ag-dynamic-renderer');\n\nel.nodes = [\n  { id: 'btn-1', component: 'AgButton', label: 'Click me', on_click: 'SUBMIT' },\n] satisfies AgNode[];\n\nel.actions = {\n  SUBMIT: () => console.log('submitted'),\n};\n\ndocument.body.appendChild(el);\n```\n\n## How it works\n\nRegisters an `<ag-dynamic-renderer>` custom element that accepts a `nodes` array of `AgNode` objects and an `actions` map. It renders into light DOM so child elements are accessible to parent frameworks.\n\nNodes reference each other by `id` via the `children` array; nodes not referenced as children are treated as roots. Actions are dispatched through the string-alias map — unknown aliases are silently ignored, providing an XSS boundary.\n","readmeFilename":"README.md","_rev":"1-70041a1fc880d1672e45a969ae053748"}