{"_id":"@cather/kwc-synthetic-shadow","name":"@cather/kwc-synthetic-shadow","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-synthetic-shadow","version":"1.0.0","description":"Synthetic Shadow Root for KWC","keywords":["kwc"],"homepage":"https://kwc.dev","repository":{"type":"git","url":"git+https://github.com/kingdee/kwc.git","directory":"packages/@kwc/synthetic-shadow"},"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-features":"1.0.0","@cather/kwc-shared":"1.0.0"},"kwc":{"modules":[{"name":"@cather/kwc-synthetic-shadow","path":"dist/index.js"}],"expose":["@cather/kwc-synthetic-shadow"]},"_id":"@cather/kwc-synthetic-shadow@1.0.0","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-EI8zDuDGH5RabYP/H8I4hJPqJhz8uP+if7xTgkCgsXtPHpFd6m/ZC0ubEAVSmwVI8rzbATQ9mtq3e2PB+40IoA==","shasum":"a4e63937f351b345eb21a20760708a64c6afdd2e","tarball":"https://registry.npmjs.org/@cather/kwc-synthetic-shadow/-/kwc-synthetic-shadow-1.0.0.tgz","fileCount":59,"unpackedSize":373976,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBTh1xorIemGApPzQPkPNNNGlzIzWfqNwMRgnExbVoacAiB2Vh+8FlD1hKE4gU6tbSCUSfa6GhT+qWSZ59aDenAiXw=="}]},"_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-synthetic-shadow_1.0.0_1755878594607_0.753809075698691"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-22T16:03:14.522Z","1.0.0":"2025-08-22T16:03:14.882Z","modified":"2025-08-22T16:03:15.191Z"},"maintainers":[{"name":"catherine2020","email":"303673522@qq.com"}],"description":"Synthetic Shadow Root for KWC","homepage":"https://kwc.dev","keywords":["kwc"],"repository":{"type":"git","url":"git+https://github.com/kingdee/kwc.git","directory":"packages/@kwc/synthetic-shadow"},"bugs":{"url":"https://github.com/kingdee/kwc/issues"},"license":"MIT","readme":"# Synthetic Shadow Root\n\n## Summary\n\nThis is a polyfill for ShadowRoot that was tailor-made for KWC in order to meet the performance goals of the Lightning Platform. This doesn't mean that it cannot be used with any other framework, but we took shortcuts and made compromises that might not align well with other frameworks.\n\n## Compromises\n\n- Default content for `<slot>` elements is always empty.\n- `slotchange` is only available directly on the `<slot>` (it doesn't bubble as in the case of the native implementation). This restriction is in place because implementing `slotchange` requires using `MutationObserver` which is expensive at runtime. By only supporting `slotchange` event applied directly on the `<slot>` element, the KWC engine receives a clear signal that the component author is interested in listening to this event. This avoids spending unnecessary CPU time when the `slotchange` event is never consumed.\n- If you use `MutationObserver` to watch changes in a DOM tree, disconnect it or you will cause a memory leak. Note that a component can observe mutations only in its own template. It can't observe mutations within the shadow tree of other custom elements.\n","readmeFilename":"README.md","_rev":"1-3e3e99e779edce1e0ff6f75fdd874603"}