{"_id":"@cather/kwc-engine-dom","name":"@cather/kwc-engine-dom","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"//":["THIS FILE IS AUTOGENERATED. If you modify it, it will be rewritten by check-and-rewrite-package-json.js","You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."],"name":"@cather/kwc-engine-dom","version":"1.0.0","description":"Renders KWC components in a DOM environment.","keywords":["kwc"],"homepage":"https://kwc.dev","repository":{"type":"git","url":"git+https://github.com/kingdee/kwc.git","directory":"packages/@kwc/engine-dom"},"bugs":{"url":"https://github.com/kingdee/kwc/issues"},"license":"MIT","publishConfig":{"access":"public"},"volta":{"extends":"../../../package.json"},"main":"dist/index.cjs.js","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rollup --config ../../../scripts/rollup/rollup.config.js","dev":"rollup  --config ../../../scripts/rollup/rollup.config.js --watch --no-watch.clearScreen"},"nx":{"targets":{"build":{"outputs":["{projectRoot}/dist"]}}},"devDependencies":{"@cather/kwc-engine-core":"1.0.0","@cather/kwc-shared":"1.0.0","@cather/kwc-features":"1.0.0","@cather/kwc-signals":"1.0.0"},"kwc":{"modules":[{"name":"kwc","path":"dist/index.js"}],"expose":["kwc"]},"_id":"@cather/kwc-engine-dom@1.0.0","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Nmwj4Tvv1GZ2GfTMLIp9mnvUgfU1aLAY/i95YE5lNMgJhU4S/t8MFdChfBI1c9QJOKlUyjGyxkGuqHguAC2B5w==","shasum":"4425b4a932727e5588d5f3b4143b64c633e67533","tarball":"https://registry.npmjs.org/@cather/kwc-engine-dom/-/kwc-engine-dom-1.0.0.tgz","fileCount":21,"unpackedSize":909497,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA70SqwfoijOPadj006WW6nEWsNuGDejRcb0HZCCtZ2fAiAWPYrFHWOuVg0L28Zhap+vTFr3wCFiqHGINuEb6u3Xsg=="}]},"_npmUser":{"name":"catherine2020","email":"303673522@qq.com"},"directories":{},"maintainers":[{"name":"catherine2020","email":"303673522@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kwc-engine-dom_1.0.0_1755854626723_0.9346338892218748"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-22T09:23:46.642Z","1.0.0":"2025-08-22T09:23:46.929Z","modified":"2025-08-22T09:23:47.212Z"},"maintainers":[{"name":"catherine2020","email":"303673522@qq.com"}],"description":"Renders KWC components in a DOM environment.","homepage":"https://kwc.dev","keywords":["kwc"],"repository":{"type":"git","url":"git+https://github.com/kingdee/kwc.git","directory":"packages/@kwc/engine-dom"},"bugs":{"url":"https://github.com/kingdee/kwc/issues"},"license":"MIT","readme":"# @cather/kwc-engine-dom\n\nThis package can be used to render KWC components as DOM elements in a DOM environment.\n\n## Supported APIs\n\nThis package supports the following APIs.\n\n### createElement()\n\nThis function creates an KWC component, given a tag name and an KWC constructor.\n\n```js\nimport { createElement } from 'kwc';\nimport LightningHello from 'lightning/hello';\n\nconst element = createElement('lightning-hello', { is: LightningHello });\n\ndocument.body.appendChild(element);\n```\n\n## Experimental APIs\n\nExperimental APIs are subject to change, may be removed at any time, and should be used at your\nown risk!\n\n### getComponentConstructor()\n\nThis experimental API provides access to the component constructor, given an `HTMLElement`.\n\n### isNodeFromTemplate()\n\nThis experimental API enables the detection of whether a node was rendered from an KWC template.\n\n## Deprecated APIs\n\n### buildCustomElementConstructor() (deprecated as of v1.3.11)\n\nThis function can build a Web Component class that can be registered as a new element via\n`customElements.define()`, given an KWC constructor.\n\nDeprecated in favor of using the `CustomElementConstructor` property of an KWC constructor.\n\n```js\nimport { LightningElement } from 'kwc';\n\nclass LightningHello extends LightningElement {}\n\n// Don't do this.\ncustomElements.define('lightning-hello', buildCustomElementConstructor(LightningHello));\n\n// Do this instead.\ncustomElements.define('lightning-hello', LightningHello.CustomElementConstructor);\n```\n","readmeFilename":"README.md","_rev":"1-a30dec75968664a022cc9b15cae66daf"}