@ecopages/radiant 0.2.0 → 0.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +293 -34
- package/dist/chunk-0bswvy25.js +4 -0
- package/dist/chunk-0bswvy25.js.map +10 -0
- package/dist/chunk-0btkzzyc.js +4 -0
- package/dist/chunk-0btkzzyc.js.map +10 -0
- package/dist/chunk-0g0j9re6.js +4 -0
- package/dist/chunk-0g0j9re6.js.map +10 -0
- package/dist/chunk-1x26p09c.js +4 -0
- package/dist/chunk-1x26p09c.js.map +10 -0
- package/dist/chunk-21a7jask.js +4 -0
- package/dist/chunk-21a7jask.js.map +10 -0
- package/dist/chunk-25zjh0kg.js +4 -0
- package/dist/chunk-25zjh0kg.js.map +10 -0
- package/dist/chunk-30x4hggg.js +4 -0
- package/dist/chunk-30x4hggg.js.map +10 -0
- package/dist/chunk-3ryr5wx2.js +4 -0
- package/dist/chunk-3ryr5wx2.js.map +10 -0
- package/dist/chunk-3xxvmd5c.js +4 -0
- package/dist/chunk-3xxvmd5c.js.map +10 -0
- package/dist/chunk-3ynk7e1e.js +4 -0
- package/dist/chunk-3ynk7e1e.js.map +10 -0
- package/dist/chunk-4e559cy5.js +4 -0
- package/dist/chunk-4e559cy5.js.map +10 -0
- package/dist/chunk-5b1en9vz.js +4 -0
- package/dist/chunk-5b1en9vz.js.map +10 -0
- package/dist/chunk-5bkat72n.js +4 -0
- package/dist/chunk-5bkat72n.js.map +10 -0
- package/dist/chunk-5qeaq3tj.js +4 -0
- package/dist/chunk-5qeaq3tj.js.map +10 -0
- package/dist/chunk-66e6s792.js +4 -0
- package/dist/chunk-66e6s792.js.map +10 -0
- package/dist/chunk-79jg8q67.js +4 -0
- package/dist/chunk-79jg8q67.js.map +10 -0
- package/dist/chunk-8d5ddvvf.js +4 -0
- package/dist/chunk-8d5ddvvf.js.map +10 -0
- package/dist/chunk-8e9fgtbn.js +4 -0
- package/dist/chunk-8e9fgtbn.js.map +10 -0
- package/dist/chunk-9mqtp3js.js +4 -0
- package/dist/chunk-9mqtp3js.js.map +10 -0
- package/dist/chunk-9rj2rwes.js +4 -0
- package/dist/chunk-9rj2rwes.js.map +10 -0
- package/dist/chunk-atms6yrh.js +4 -0
- package/dist/chunk-atms6yrh.js.map +10 -0
- package/dist/chunk-bk2nbmcd.js +4 -0
- package/dist/chunk-bk2nbmcd.js.map +10 -0
- package/dist/chunk-bk6qkvfp.js +4 -0
- package/dist/chunk-bk6qkvfp.js.map +10 -0
- package/dist/chunk-c0qyz98c.js +4 -0
- package/dist/chunk-c0qyz98c.js.map +10 -0
- package/dist/chunk-c52qhh0j.js +4 -0
- package/dist/chunk-c52qhh0j.js.map +10 -0
- package/dist/chunk-cnyxrh9r.js +4 -0
- package/dist/chunk-cnyxrh9r.js.map +10 -0
- package/dist/chunk-cvz9mrxa.js +4 -0
- package/dist/chunk-cvz9mrxa.js.map +10 -0
- package/dist/chunk-dabagjk6.js +4 -0
- package/dist/chunk-dabagjk6.js.map +10 -0
- package/dist/chunk-e0r6ca2g.js +4 -0
- package/dist/chunk-e0r6ca2g.js.map +10 -0
- package/dist/chunk-eevw1j2q.js +4 -0
- package/dist/chunk-eevw1j2q.js.map +10 -0
- package/dist/chunk-ek664x1c.js +4 -0
- package/dist/chunk-ek664x1c.js.map +10 -0
- package/dist/chunk-eyw14d6y.js +4 -0
- package/dist/chunk-eyw14d6y.js.map +10 -0
- package/dist/chunk-fs4j94bk.js +4 -0
- package/dist/chunk-fs4j94bk.js.map +10 -0
- package/dist/chunk-g2z3mm6b.js +4 -0
- package/dist/chunk-g2z3mm6b.js.map +10 -0
- package/dist/chunk-g5n3m11h.js +4 -0
- package/dist/chunk-g5n3m11h.js.map +10 -0
- package/dist/chunk-gdkte2vd.js +4 -0
- package/dist/chunk-gdkte2vd.js.map +10 -0
- package/dist/chunk-gg74gdpv.js +4 -0
- package/dist/chunk-gg74gdpv.js.map +10 -0
- package/dist/chunk-h9k7crjc.js +4 -0
- package/dist/chunk-h9k7crjc.js.map +10 -0
- package/dist/chunk-hpzgnxgq.js +4 -0
- package/dist/chunk-hpzgnxgq.js.map +10 -0
- package/dist/chunk-hrjc8b1y.js +4 -0
- package/dist/chunk-hrjc8b1y.js.map +10 -0
- package/dist/chunk-hvy4zvcc.js +4 -0
- package/dist/chunk-hvy4zvcc.js.map +10 -0
- package/dist/chunk-hztr86b4.js +4 -0
- package/dist/chunk-hztr86b4.js.map +10 -0
- package/dist/chunk-j3v7rca5.js +4 -0
- package/dist/chunk-j3v7rca5.js.map +10 -0
- package/dist/chunk-j864sv4w.js +4 -0
- package/dist/chunk-j864sv4w.js.map +10 -0
- package/dist/chunk-jkb2y7c8.js +4 -0
- package/dist/chunk-jkb2y7c8.js.map +10 -0
- package/dist/chunk-kakpjgzf.js +4 -0
- package/dist/chunk-kakpjgzf.js.map +10 -0
- package/dist/chunk-kmebacvv.js +4 -0
- package/dist/chunk-kmebacvv.js.map +10 -0
- package/dist/chunk-knqsm6v3.js +4 -0
- package/dist/chunk-knqsm6v3.js.map +10 -0
- package/dist/chunk-mp2vtrkg.js +4 -0
- package/dist/chunk-mp2vtrkg.js.map +10 -0
- package/dist/chunk-mpsj3cjs.js +4 -0
- package/dist/chunk-mpsj3cjs.js.map +10 -0
- package/dist/chunk-n4p2542b.js +4 -0
- package/dist/chunk-n4p2542b.js.map +10 -0
- package/dist/chunk-nctznxyz.js +4 -0
- package/dist/chunk-nctznxyz.js.map +10 -0
- package/dist/chunk-ndw3hc3v.js +4 -0
- package/dist/chunk-ndw3hc3v.js.map +10 -0
- package/dist/chunk-nnnb6pac.js +4 -0
- package/dist/chunk-nnnb6pac.js.map +10 -0
- package/dist/chunk-nssj2x13.js +4 -0
- package/dist/chunk-nssj2x13.js.map +10 -0
- package/dist/chunk-nvr37vma.js +4 -0
- package/dist/chunk-nvr37vma.js.map +10 -0
- package/dist/chunk-p8k4g99a.js +4 -0
- package/dist/chunk-p8k4g99a.js.map +10 -0
- package/dist/chunk-pkszgjqf.js +4 -0
- package/dist/chunk-pkszgjqf.js.map +10 -0
- package/dist/chunk-q9z6tnzw.js +4 -0
- package/dist/chunk-q9z6tnzw.js.map +10 -0
- package/dist/chunk-qdz5sncz.js +4 -0
- package/dist/chunk-qdz5sncz.js.map +10 -0
- package/dist/chunk-qe0eww1n.js +4 -0
- package/dist/chunk-qe0eww1n.js.map +10 -0
- package/dist/chunk-r33zvvda.js +4 -0
- package/dist/chunk-r33zvvda.js.map +10 -0
- package/dist/chunk-rkh1vkb9.js +4 -0
- package/dist/chunk-rkh1vkb9.js.map +10 -0
- package/dist/chunk-rrg759ht.js +4 -0
- package/dist/chunk-rrg759ht.js.map +10 -0
- package/dist/chunk-s09s5ayx.js +4 -0
- package/dist/chunk-s09s5ayx.js.map +10 -0
- package/dist/chunk-s5p5z3z4.js +4 -0
- package/dist/chunk-s5p5z3z4.js.map +10 -0
- package/dist/chunk-sf4a2gy5.js +4 -0
- package/dist/chunk-sf4a2gy5.js.map +10 -0
- package/dist/chunk-ssnnxzrj.js +4 -0
- package/dist/chunk-ssnnxzrj.js.map +10 -0
- package/dist/chunk-t8xtvgyg.js +4 -0
- package/dist/chunk-t8xtvgyg.js.map +10 -0
- package/dist/chunk-v3ta7hnv.js +4 -0
- package/dist/chunk-v3ta7hnv.js.map +10 -0
- package/dist/chunk-v92hp9g0.js +4 -0
- package/dist/chunk-v92hp9g0.js.map +10 -0
- package/dist/chunk-vgtggzb6.js +4 -0
- package/dist/chunk-vgtggzb6.js.map +9 -0
- package/dist/chunk-vk48hgm4.js +4 -0
- package/dist/chunk-vk48hgm4.js.map +10 -0
- package/dist/chunk-w8s5fnsq.js +4 -0
- package/dist/chunk-w8s5fnsq.js.map +10 -0
- package/dist/chunk-wd23rn4q.js +4 -0
- package/dist/chunk-wd23rn4q.js.map +10 -0
- package/dist/chunk-wds4href.js +4 -0
- package/dist/chunk-wds4href.js.map +10 -0
- package/dist/chunk-wvd1ffe4.js +4 -0
- package/dist/chunk-wvd1ffe4.js.map +10 -0
- package/dist/chunk-wwbjz9k4.js +4 -0
- package/dist/chunk-wwbjz9k4.js.map +10 -0
- package/dist/chunk-x2k0ngpz.js +4 -0
- package/dist/chunk-x2k0ngpz.js.map +10 -0
- package/dist/chunk-x457d0ap.js +4 -0
- package/dist/chunk-x457d0ap.js.map +10 -0
- package/dist/chunk-xbhtzkre.js +4 -0
- package/dist/chunk-xbhtzkre.js.map +10 -0
- package/dist/chunk-y139ycfm.js +4 -0
- package/dist/chunk-y139ycfm.js.map +10 -0
- package/dist/chunk-z9kxfckm.js +4 -0
- package/dist/chunk-z9kxfckm.js.map +10 -0
- package/dist/chunk-zx5txex8.js +4 -0
- package/dist/chunk-zx5txex8.js.map +10 -0
- package/dist/client/hydrator.d.ts +19 -0
- package/dist/client/hydrator.js +3 -0
- package/dist/client/hydrator.js.map +9 -0
- package/dist/client/install-hydrator.d.ts +1 -0
- package/dist/client/install-hydrator.js +3 -0
- package/dist/client/install-hydrator.js.map +10 -0
- package/dist/context/context-consumer-bootstrap.d.ts +41 -0
- package/dist/context/context-consumer-bootstrap.js +3 -0
- package/dist/context/context-consumer-bootstrap.js.map +9 -0
- package/dist/context/context-consumer-runtime.d.ts +34 -0
- package/dist/context/context-consumer-runtime.js +3 -0
- package/dist/context/context-consumer-runtime.js.map +9 -0
- package/dist/context/context-provider.d.ts +50 -2
- package/dist/context/context-provider.js +2 -3
- package/dist/context/context-provider.js.map +3 -4
- package/dist/context/context-ssr-bridge.d.ts +16 -0
- package/dist/context/context-ssr-bridge.js +3 -0
- package/dist/context/context-ssr-bridge.js.map +9 -0
- package/dist/context/create-context.js +2 -3
- package/dist/context/create-context.js.map +3 -4
- package/dist/context/decorators/consume-context.d.ts +8 -4
- package/dist/context/decorators/consume-context.js +2 -3
- package/dist/context/decorators/consume-context.js.map +3 -4
- package/dist/context/decorators/context-selection-delivery.d.ts +1 -0
- package/dist/context/decorators/context-selection-delivery.js +3 -0
- package/dist/context/decorators/context-selection-delivery.js.map +9 -0
- package/dist/context/decorators/context-selector.d.ts +26 -8
- package/dist/context/decorators/context-selector.js +2 -3
- package/dist/context/decorators/context-selector.js.map +3 -4
- package/dist/context/decorators/legacy/consume-context.d.ts +1 -1
- package/dist/context/decorators/legacy/consume-context.js +2 -3
- package/dist/context/decorators/legacy/consume-context.js.map +3 -4
- package/dist/context/decorators/legacy/context-selector-field.d.ts +8 -0
- package/dist/context/decorators/legacy/context-selector-field.js +3 -0
- package/dist/context/decorators/legacy/context-selector-field.js.map +9 -0
- package/dist/context/decorators/legacy/context-selector.d.ts +3 -3
- package/dist/context/decorators/legacy/context-selector.js +2 -3
- package/dist/context/decorators/legacy/context-selector.js.map +3 -4
- package/dist/context/decorators/legacy/provide-context.d.ts +1 -1
- package/dist/context/decorators/legacy/provide-context.js +2 -3
- package/dist/context/decorators/legacy/provide-context.js.map +3 -4
- package/dist/context/decorators/on-context-update.d.ts +31 -0
- package/dist/context/decorators/on-context-update.js +3 -0
- package/dist/context/decorators/on-context-update.js.map +9 -0
- package/dist/context/decorators/provide-context.d.ts +12 -0
- package/dist/context/decorators/provide-context.js +2 -3
- package/dist/context/decorators/provide-context.js.map +3 -4
- package/dist/context/decorators/standard/consume-context.d.ts +1 -1
- package/dist/context/decorators/standard/consume-context.js +2 -3
- package/dist/context/decorators/standard/consume-context.js.map +3 -4
- package/dist/context/decorators/standard/context-selector-field.d.ts +8 -0
- package/dist/context/decorators/standard/context-selector-field.js +3 -0
- package/dist/context/decorators/standard/context-selector-field.js.map +9 -0
- package/dist/context/decorators/standard/context-selector.d.ts +4 -3
- package/dist/context/decorators/standard/context-selector.js +2 -3
- package/dist/context/decorators/standard/context-selector.js.map +3 -4
- package/dist/context/decorators/standard/provide-context.d.ts +1 -1
- package/dist/context/decorators/standard/provide-context.js +2 -3
- package/dist/context/decorators/standard/provide-context.js.map +3 -4
- package/dist/context/events.js +2 -3
- package/dist/context/events.js.map +3 -4
- package/dist/context/hydration-script.d.ts +13 -0
- package/dist/context/hydration-script.js +3 -0
- package/dist/context/hydration-script.js.map +9 -0
- package/dist/core/custom-element-metadata.d.ts +3 -0
- package/dist/core/custom-element-metadata.js +3 -0
- package/dist/core/custom-element-metadata.js.map +9 -0
- package/dist/core/hydration-codec.d.ts +24 -0
- package/dist/core/hydration-codec.js +3 -0
- package/dist/core/hydration-codec.js.map +9 -0
- package/dist/core/radiant-component-ssr-registry.d.ts +54 -0
- package/dist/core/radiant-component-ssr-registry.js +3 -0
- package/dist/core/radiant-component-ssr-registry.js.map +9 -0
- package/dist/core/radiant-component-ssr.d.ts +29 -0
- package/dist/core/radiant-component-ssr.js +3 -0
- package/dist/core/radiant-component-ssr.js.map +9 -0
- package/dist/core/radiant-component.d.ts +113 -0
- package/dist/core/radiant-component.js +3 -0
- package/dist/core/radiant-component.js.map +9 -0
- package/dist/core/radiant-element.d.ts +217 -9
- package/dist/core/radiant-element.js +2 -3
- package/dist/core/radiant-element.js.map +3 -4
- package/dist/core/radiant-hydrator-state.d.ts +20 -0
- package/dist/core/radiant-hydrator-state.js +3 -0
- package/dist/core/radiant-hydrator-state.js.map +9 -0
- package/dist/core/reactive-jsx-value.d.ts +10 -0
- package/dist/core/reactive-jsx-value.js +3 -0
- package/dist/core/reactive-jsx-value.js.map +9 -0
- package/dist/core/reactive-prop-metadata.d.ts +7 -0
- package/dist/core/reactive-prop-metadata.js +3 -0
- package/dist/core/reactive-prop-metadata.js.map +9 -0
- package/dist/core/slot-projection-runtime.d.ts +14 -0
- package/dist/core/slot-projection-runtime.js +3 -0
- package/dist/core/slot-projection-runtime.js.map +9 -0
- package/dist/core/ssr-hydration-binding.d.ts +14 -0
- package/dist/core/ssr-hydration-binding.js +2 -0
- package/dist/core/ssr-hydration-binding.js.map +9 -0
- package/dist/core/ssr-preparation.d.ts +18 -0
- package/dist/core/ssr-preparation.js +3 -0
- package/dist/core/ssr-preparation.js.map +9 -0
- package/dist/decorators/bound.js +2 -2
- package/dist/decorators/bound.js.map +3 -4
- package/dist/decorators/bridge.d.ts +8 -0
- package/dist/decorators/bridge.js +3 -0
- package/dist/decorators/bridge.js.map +9 -0
- package/dist/decorators/custom-element.js +2 -3
- package/dist/decorators/custom-element.js.map +3 -4
- package/dist/decorators/debounce.js +2 -2
- package/dist/decorators/debounce.js.map +3 -4
- package/dist/decorators/event.js +2 -3
- package/dist/decorators/event.js.map +3 -4
- package/dist/decorators/legacy/bound.js +2 -3
- package/dist/decorators/legacy/bound.js.map +3 -4
- package/dist/decorators/legacy/custom-element.js +2 -3
- package/dist/decorators/legacy/custom-element.js.map +3 -4
- package/dist/decorators/legacy/debounce.js +2 -3
- package/dist/decorators/legacy/debounce.js.map +3 -4
- package/dist/decorators/legacy/event.d.ts +1 -1
- package/dist/decorators/legacy/event.js +2 -2
- package/dist/decorators/legacy/event.js.map +3 -4
- package/dist/decorators/legacy/instance-initializers.d.ts +17 -0
- package/dist/decorators/legacy/instance-initializers.js +3 -0
- package/dist/decorators/legacy/instance-initializers.js.map +9 -0
- package/dist/decorators/legacy/on-event.d.ts +2 -11
- package/dist/decorators/legacy/on-event.js +2 -3
- package/dist/decorators/legacy/on-event.js.map +3 -4
- package/dist/decorators/legacy/on-updated.js +2 -3
- package/dist/decorators/legacy/on-updated.js.map +3 -4
- package/dist/decorators/legacy/query-slot.d.ts +3 -0
- package/dist/decorators/legacy/query-slot.js +3 -0
- package/dist/decorators/legacy/query-slot.js.map +9 -0
- package/dist/decorators/legacy/query.js +2 -3
- package/dist/decorators/legacy/query.js.map +3 -4
- package/dist/decorators/legacy/reactive-field.js +2 -3
- package/dist/decorators/legacy/reactive-field.js.map +3 -4
- package/dist/decorators/legacy/reactive-prop.d.ts +2 -1
- package/dist/decorators/legacy/reactive-prop.js +2 -3
- package/dist/decorators/legacy/reactive-prop.js.map +3 -4
- package/dist/decorators/legacy/signal.d.ts +10 -0
- package/dist/decorators/legacy/signal.js +3 -0
- package/dist/decorators/legacy/signal.js.map +9 -0
- package/dist/decorators/on-event.d.ts +3 -11
- package/dist/decorators/on-event.js +2 -3
- package/dist/decorators/on-event.js.map +3 -4
- package/dist/decorators/on-updated.js +2 -3
- package/dist/decorators/on-updated.js.map +3 -4
- package/dist/decorators/prop.d.ts +14 -0
- package/dist/decorators/prop.js +3 -0
- package/dist/decorators/prop.js.map +9 -0
- package/dist/decorators/query-slot.d.ts +13 -0
- package/dist/decorators/query-slot.js +3 -0
- package/dist/decorators/query-slot.js.map +9 -0
- package/dist/decorators/query.d.ts +4 -13
- package/dist/decorators/query.js +2 -3
- package/dist/decorators/query.js.map +3 -4
- package/dist/decorators/signal.d.ts +23 -0
- package/dist/decorators/signal.js +3 -0
- package/dist/decorators/signal.js.map +9 -0
- package/dist/decorators/standard/bound.js +2 -3
- package/dist/decorators/standard/bound.js.map +3 -4
- package/dist/decorators/standard/custom-element.js +2 -3
- package/dist/decorators/standard/custom-element.js.map +3 -4
- package/dist/decorators/standard/debounce.js +2 -3
- package/dist/decorators/standard/debounce.js.map +3 -4
- package/dist/decorators/standard/event.d.ts +1 -1
- package/dist/decorators/standard/event.js +2 -3
- package/dist/decorators/standard/event.js.map +3 -4
- package/dist/decorators/standard/on-event.d.ts +1 -11
- package/dist/decorators/standard/on-event.js +2 -3
- package/dist/decorators/standard/on-event.js.map +3 -4
- package/dist/decorators/standard/on-updated.js +2 -3
- package/dist/decorators/standard/on-updated.js.map +3 -4
- package/dist/decorators/standard/query-slot.d.ts +8 -0
- package/dist/decorators/standard/query-slot.js +3 -0
- package/dist/decorators/standard/query-slot.js.map +9 -0
- package/dist/decorators/standard/query.js +2 -3
- package/dist/decorators/standard/query.js.map +3 -4
- package/dist/decorators/standard/reactive-field.js +2 -3
- package/dist/decorators/standard/reactive-field.js.map +3 -4
- package/dist/decorators/standard/reactive-prop.d.ts +1 -1
- package/dist/decorators/standard/reactive-prop.js +2 -3
- package/dist/decorators/standard/reactive-prop.js.map +3 -4
- package/dist/decorators/standard/signal.d.ts +33 -0
- package/dist/decorators/standard/signal.js +3 -0
- package/dist/decorators/standard/signal.js.map +9 -0
- package/dist/decorators/state.d.ts +11 -0
- package/dist/decorators/state.js +3 -0
- package/dist/decorators/state.js.map +9 -0
- package/dist/helpers/create-event-listener.d.ts +28 -0
- package/dist/helpers/create-event-listener.js +3 -0
- package/dist/helpers/create-event-listener.js.map +9 -0
- package/dist/helpers/create-event.d.ts +9 -0
- package/dist/helpers/create-event.js +3 -0
- package/dist/helpers/create-event.js.map +9 -0
- package/dist/helpers/create-query-slot.d.ts +20 -0
- package/dist/helpers/create-query-slot.js +3 -0
- package/dist/helpers/create-query-slot.js.map +9 -0
- package/dist/helpers/create-query.d.ts +27 -0
- package/dist/helpers/create-query.js +3 -0
- package/dist/helpers/create-query.js.map +9 -0
- package/dist/helpers/debounce.d.ts +39 -0
- package/dist/helpers/debounce.js +3 -0
- package/dist/helpers/debounce.js.map +9 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/index.js +3 -0
- package/dist/{mixins → helpers}/index.js.map +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server/context-ssr.d.ts +27 -0
- package/dist/server/context-ssr.js +3 -0
- package/dist/server/context-ssr.js.map +9 -0
- package/dist/server/html-parser.d.ts +21 -0
- package/dist/server/html-parser.js +3 -0
- package/dist/server/html-parser.js.map +9 -0
- package/dist/server/install-light-dom-shim.d.ts +1 -0
- package/dist/server/install-light-dom-shim.js +3 -0
- package/dist/server/install-light-dom-shim.js.map +10 -0
- package/dist/server/light-dom-shim.d.ts +53 -0
- package/dist/server/light-dom-shim.js +3 -0
- package/dist/server/light-dom-shim.js.map +9 -0
- package/dist/server/project-root.d.ts +20 -0
- package/dist/server/project-root.js +3 -0
- package/dist/server/project-root.js.map +11 -0
- package/dist/server/radiant-component-ssr-runtime.d.ts +9 -0
- package/dist/server/radiant-component-ssr-runtime.js +3 -0
- package/dist/server/radiant-component-ssr-runtime.js.map +9 -0
- package/dist/server/render-component.d.ts +195 -0
- package/dist/server/render-component.js +3 -0
- package/dist/server/render-component.js.map +10 -0
- package/dist/server/slot-projection-html.d.ts +3 -0
- package/dist/server/slot-projection-html.js +3 -0
- package/dist/server/slot-projection-html.js.map +10 -0
- package/dist/signals/host-resource.d.ts +59 -0
- package/dist/signals/host-resource.js +3 -0
- package/dist/signals/host-resource.js.map +10 -0
- package/dist/signals/host-signal.d.ts +45 -0
- package/dist/signals/host-signal.js +3 -0
- package/dist/signals/host-signal.js.map +9 -0
- package/dist/signals/hydration-script.d.ts +7 -0
- package/dist/signals/hydration-script.js +3 -0
- package/dist/signals/hydration-script.js.map +9 -0
- package/dist/tools/escape-script-json.d.ts +5 -0
- package/dist/tools/escape-script-json.js +3 -0
- package/dist/tools/escape-script-json.js.map +9 -0
- package/dist/tools/event-emitter.js +2 -3
- package/dist/tools/event-emitter.js.map +3 -4
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/render-jsx-template.d.ts +5 -0
- package/dist/tools/render-jsx-template.js +3 -0
- package/dist/tools/render-jsx-template.js.map +9 -0
- package/dist/tools/stringify-typed.d.ts +4 -6
- package/dist/tools/stringify-typed.js +2 -3
- package/dist/tools/stringify-typed.js.map +3 -4
- package/dist/types.d.ts +0 -21
- package/dist/types.js +2 -2
- package/dist/types.js.map +3 -3
- package/dist/utils/attribute-utils.js +2 -3
- package/dist/utils/attribute-utils.js.map +3 -4
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +106 -21
- package/size-budget.json +16 -0
- package/dist/decorators/reactive-field.d.ts +0 -6
- package/dist/decorators/reactive-field.js +0 -4
- package/dist/decorators/reactive-field.js.map +0 -10
- package/dist/decorators/reactive-prop.d.ts +0 -8
- package/dist/decorators/reactive-prop.js +0 -4
- package/dist/decorators/reactive-prop.js.map +0 -10
- package/dist/mixins/index.d.ts +0 -1
- package/dist/mixins/index.js +0 -3
- package/dist/mixins/with-kita.d.ts +0 -15
- package/dist/mixins/with-kita.js +0 -4
- package/dist/mixins/with-kita.js.map +0 -10
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type JsxRenderable } from '@ecopages/jsx';
|
|
2
|
+
export declare const DEFAULT_SLOT_NAME = "";
|
|
3
|
+
export declare const SLOT_PROJECTION_SCRIPT_ATTRIBUTE = "data-radiant-slot-projection";
|
|
4
|
+
type ResolvedSlotProjection = {
|
|
5
|
+
containsSlots: boolean;
|
|
6
|
+
value: JsxRenderable;
|
|
7
|
+
};
|
|
8
|
+
export declare function captureProjectedSlotRenderables(host: HTMLElement): Map<string, JsxRenderable[]>;
|
|
9
|
+
export declare function deserializeProjectedSlotRenderables(payload: string): Map<string, JsxRenderable[]>;
|
|
10
|
+
export declare function collectAuthoredHydrationScriptMarkup(host: HTMLElement): string | undefined;
|
|
11
|
+
export declare function serializeProjectedSlotRenderables(projectedContent: ReadonlyMap<string, readonly JsxRenderable[]>): string | undefined;
|
|
12
|
+
export declare function resolveSlotProjection(value: JsxRenderable, projectedContent: ReadonlyMap<string, readonly JsxRenderable[]>): ResolvedSlotProjection;
|
|
13
|
+
export declare function takeSlotProjectionScriptPayload(host: HTMLElement): string | undefined;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{hb as a,ib as b,jb as c,kb as d,lb as e,mb as f,nb as g,ob as h}from"../chunk-3xxvmd5c.js";import"../chunk-hpzgnxgq.js";import"../chunk-nssj2x13.js";import"../chunk-vgtggzb6.js";export{h as takeSlotProjectionScriptPayload,f as serializeProjectedSlotRenderables,g as resolveSlotProjection,d as deserializeProjectedSlotRenderables,e as collectAuthoredHydrationScriptMarkup,c as captureProjectedSlotRenderables,b as SLOT_PROJECTION_SCRIPT_ATTRIBUTE,a as DEFAULT_SLOT_NAME};
|
|
2
|
+
|
|
3
|
+
//# debugId=8572BD7D803FE40064756E2164756E21
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { JsxRenderable } from '@ecopages/jsx';
|
|
2
|
+
/**
|
|
3
|
+
* Serializable host-level hydration payload that can be appended to SSR output.
|
|
4
|
+
*
|
|
5
|
+
* Context providers and other host-owned reactive primitives use this contract
|
|
6
|
+
* to surface keyed `<script type="application/json">` payloads that the client
|
|
7
|
+
* can recover during hydration.
|
|
8
|
+
*/
|
|
9
|
+
export interface SsrSerializableHydrationBinding {
|
|
10
|
+
/** Returns the hydration script as JSX-friendly serialized markup, when available. */
|
|
11
|
+
renderHydrationScript(): JsxRenderable | undefined;
|
|
12
|
+
/** Returns the hydration script as a raw HTML string, when available. */
|
|
13
|
+
renderHydrationScriptTag(): string | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type SsrPreparationCallback = () => void;
|
|
2
|
+
export declare const SSR_PREPARATION_RUNNING: unique symbol;
|
|
3
|
+
/**
|
|
4
|
+
* Registers instance-local SSR preparation work that should run immediately
|
|
5
|
+
* before a Radiant host serializes its first server render.
|
|
6
|
+
*
|
|
7
|
+
* Decorators use this to defer SSR-only setup until after class fields,
|
|
8
|
+
* reactive props, and authored host content have all been applied.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerSsrPreparationCallback(host: object, callback: SsrPreparationCallback): void;
|
|
11
|
+
/**
|
|
12
|
+
* Runs all registered SSR preparation callbacks for the provided host.
|
|
13
|
+
*
|
|
14
|
+
* The callbacks are intentionally retained so repeated SSR serializations stay
|
|
15
|
+
* deterministic after later host mutations.
|
|
16
|
+
*/
|
|
17
|
+
export declare function runSsrPreparationCallbacks(host: object): void;
|
|
18
|
+
export {};
|
package/dist/decorators/bound.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ga as a}from"../chunk-j864sv4w.js";import"../chunk-y139ycfm.js";import"../chunk-rkh1vkb9.js";import"../chunk-q9z6tnzw.js";import"../chunk-vgtggzb6.js";export{a as bound};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=3809584CE1FE873464756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type {\n LegacyMethodDecoratorArgs,\n StandardMethodDecoratorArgs,\n StandardOrLegacyMethodDecoratorArgs,\n} from '../types';\nimport { bound as legacyBound } from './legacy/bound';\nimport { bound as standardBound } from './standard/bound';\n\n/**\n * A decorator to bind a method to the instance.\n */\nexport function bound(\n protoOrTarget: StandardOrLegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyMethodDecoratorArgs['nameOrContext'],\n descriptor?: StandardOrLegacyMethodDecoratorArgs['descriptor'],\n): any {\n if (typeof nameOrContext === 'object') {\n return standardBound(\n protoOrTarget as StandardMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardMethodDecoratorArgs['nameOrContext'],\n );\n }\n return legacyBound(\n protoOrTarget as LegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyMethodDecoratorArgs['nameOrContext'],\n descriptor as LegacyMethodDecoratorArgs['descriptor'],\n );\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "3809584CE1FE873464756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LegacyFieldDecoratorArgs, LegacyMethodDecoratorArgs, StandardMethodDecoratorArgs, StandardOrLegacyFieldDecoratorArgs, StandardOrLegacyMethodDecoratorArgs } from '../types';
|
|
2
|
+
type StandardFieldFn = (target: undefined, context: ClassFieldDecoratorContext<any, any>) => any;
|
|
3
|
+
type LegacyFieldFn = (proto: LegacyFieldDecoratorArgs['protoOrTarget'], name: LegacyFieldDecoratorArgs['nameOrContext']) => any;
|
|
4
|
+
type StandardMethodFn = (target: StandardMethodDecoratorArgs['protoOrTarget'], context: StandardMethodDecoratorArgs['nameOrContext']) => any;
|
|
5
|
+
type LegacyMethodFn = (proto: LegacyMethodDecoratorArgs['protoOrTarget'], name: LegacyMethodDecoratorArgs['nameOrContext'], descriptor: LegacyMethodDecoratorArgs['descriptor']) => any;
|
|
6
|
+
export declare function fieldDecoratorBridge(standard: StandardFieldFn, legacy: LegacyFieldFn, protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'], nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext']): any;
|
|
7
|
+
export declare function methodDecoratorBridge(standard: StandardMethodFn, legacy: LegacyMethodFn, protoOrTarget: StandardOrLegacyMethodDecoratorArgs['protoOrTarget'], nameOrContext: StandardOrLegacyMethodDecoratorArgs['nameOrContext'], descriptor?: StandardOrLegacyMethodDecoratorArgs['descriptor']): any;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{I as w};
|
|
1
|
+
import{pa as a}from"../chunk-c52qhh0j.js";import"../chunk-25zjh0kg.js";import"../chunk-mp2vtrkg.js";import"../chunk-hztr86b4.js";import"../chunk-vgtggzb6.js";export{a as customElement};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=9E0C2A9A2DBB673564756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type {\n LegacyClassDecoratorArgs,\n StandardClassDecoratorArgs,\n StandardOrLegacyClassDecoratorArgs,\n} from '../types';\nimport { customElement as legacyCustomElement } from './legacy/custom-element';\nimport { customElement as standardCustomElement } from './standard/custom-element';\n\n/**\n * Registers a web component with the given name on the global `window.customElements` registry.\n * @param name selector name.\n * @param options {@link ElementDefinitionOptions}\n */\nexport function customElement(name: string, options?: ElementDefinitionOptions) {\n return function (\n protoOrTarget: StandardOrLegacyClassDecoratorArgs['protoOrTarget'],\n nameOrContext?: StandardOrLegacyClassDecoratorArgs['nameOrContext'],\n ): any {\n if (typeof nameOrContext !== 'undefined') {\n return standardCustomElement(name, options)(\n protoOrTarget as StandardClassDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardClassDecoratorArgs['nameOrContext'],\n );\n }\n return legacyCustomElement(name, options)(protoOrTarget as LegacyClassDecoratorArgs['protoOrTarget']);\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "9E0C2A9A2DBB673564756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ja as a}from"../chunk-nvr37vma.js";import"../chunk-h9k7crjc.js";import"../chunk-8d5ddvvf.js";import"../chunk-q9z6tnzw.js";import"../chunk-wd23rn4q.js";import"../chunk-vgtggzb6.js";export{a as debounce};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=C93B630BB0771C9464756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type {\n LegacyMethodDecoratorArgs,\n StandardMethodDecoratorArgs,\n StandardOrLegacyMethodDecoratorArgs,\n} from '../types';\nimport { debounce as legacyDebounce } from './legacy/debounce';\nimport { debounce as standardDebounce } from './standard/debounce';\n\n/**\n * A decorator to debounce a method.\n * @param timeout The debounce timeout in milliseconds.\n */\nexport function debounce(timeout: number) {\n return function (\n protoOrTarget: StandardOrLegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyMethodDecoratorArgs['nameOrContext'],\n descriptor?: StandardOrLegacyMethodDecoratorArgs['descriptor'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardDebounce(timeout)(\n protoOrTarget as StandardMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardMethodDecoratorArgs['nameOrContext'],\n );\n }\n return legacyDebounce(timeout)(\n protoOrTarget as LegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyMethodDecoratorArgs['nameOrContext'],\n descriptor as LegacyMethodDecoratorArgs['descriptor'],\n );\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "C93B630BB0771C9464756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
package/dist/decorators/event.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{H as R};
|
|
1
|
+
import{da as a}from"../chunk-0btkzzyc.js";import"../chunk-qdz5sncz.js";import"../chunk-w8s5fnsq.js";import"../chunk-cnyxrh9r.js";import"../chunk-q9z6tnzw.js";import"../chunk-rrg759ht.js";import"../chunk-wvd1ffe4.js";import"../chunk-vgtggzb6.js";export{a as event};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=54B6B698D1033B7864756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../core/radiant-element';\nimport { EventEmitter, type EventEmitterConfig } from '../tools/event-emitter';\nimport type {\n LegacyFieldDecoratorArgs,\n StandardFieldDecoratorArgs,\n StandardOrLegacyFieldDecoratorArgs,\n} from '../types';\nimport { event as legacyEvent } from './legacy/event';\nimport { event as standardEvent } from './standard/event';\n\n/**\n * Decorator that attaches an EventEmitter to the class field property.\n * The EventEmitter can be used to dispatch custom events from the target element.\n * @param eventConfig {@link EventEmitterConfig} Configuration for the event emitter.\n * @see {@link EventEmitter} for more details about how the EventEmitter works.\n */\nexport function event(eventConfig: EventEmitterConfig) {\n return function (\n protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardEvent(eventConfig)(\n protoOrTarget as StandardFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardFieldDecoratorArgs['nameOrContext'],\n );\n }\n return legacyEvent(eventConfig)(\n protoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n );\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "54B6B698D1033B7864756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export{x as a};
|
|
1
|
+
import{ha as a}from"../../chunk-y139ycfm.js";import"../../chunk-vgtggzb6.js";export{a as bound};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=36DB40C7F99D373564756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\n\n/**\n * A decorator to bind a method to the instance.\n * @param target {@link RadiantElement}\n * @param propertyKey string\n * @param descriptor {@link PropertyDescriptor}\n * @returns\n */\nexport function bound(target: RadiantElement, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor {\n const originalMethod = descriptor.value;\n\n return {\n configurable: true,\n get() {\n if (this === (target as any).prototype || Object.hasOwn(this, propertyKey)) {\n return originalMethod;\n }\n\n const boundMethod = originalMethod.bind(this);\n Object.defineProperty(this, propertyKey, {\n value: boundMethod,\n configurable: true,\n writable: true,\n });\n return boundMethod;\n },\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "36DB40C7F99D373564756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export{o as x};
|
|
1
|
+
import{qa as a}from"../../chunk-25zjh0kg.js";import"../../chunk-hztr86b4.js";import"../../chunk-vgtggzb6.js";export{a as customElement};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=A39765025AC6D9B764756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"/**\n * Registers a web component with the given name on the global `window.customElements` registry.\n * @param name selector name.\n * @param options {@link ElementDefinitionOptions}\n */\nexport function customElement(name: string, options?: ElementDefinitionOptions) {\n return (target: CustomElementConstructor) => {\n if (!window.customElements.get(name)) {\n window.customElements.define(name, target, options);\n }\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "A39765025AC6D9B764756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export{a as C};
|
|
1
|
+
import{ka as a}from"../../chunk-h9k7crjc.js";import"../../chunk-wd23rn4q.js";import"../../chunk-vgtggzb6.js";export{a as debounce};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=A42C5D85A12B46EC64756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\n\nexport function debounce(\n timeout: number,\n): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor {\n let timeoutRef: ReturnType<typeof setTimeout> | null = null;\n\n return (_target: RadiantElement, _propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor => {\n const originalMethod = descriptor.value;\n\n descriptor.value = function debounce(...args: any[]) {\n if (timeoutRef !== null) {\n clearTimeout(timeoutRef);\n }\n\n timeoutRef = setTimeout(() => {\n originalMethod.apply(this, args);\n }, timeout);\n };\n\n return descriptor;\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "A42C5D85A12B46EC64756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RadiantElement } from '../../core/radiant-element';
|
|
2
|
-
import {
|
|
2
|
+
import type { EventEmitterConfig } from '../../tools/event-emitter';
|
|
3
3
|
/**
|
|
4
4
|
* Decorator that attaches an EventEmitter to the class field property.
|
|
5
5
|
* The EventEmitter can be used to dispatch custom events from the target element.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ea as a}from"../../chunk-qdz5sncz.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-rrg759ht.js";import"../../chunk-wvd1ffe4.js";import"../../chunk-vgtggzb6.js";export{a as event};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=944BFF09B0EB633264756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport { EventEmitter, type EventEmitterConfig } from '../../tools/event-emitter';\n\nconst eventEmitters = new WeakMap();\n\n/**\n * Decorator that attaches an EventEmitter to the class field property.\n * The EventEmitter can be used to dispatch custom events from the target element.\n * @param eventConfig Configuration for the event emitter.\n * @see {@link EventEmitter} for more details about how the EventEmitter works.\n */\nexport function event(eventConfig: EventEmitterConfig) {\n return (proto: RadiantElement, propertyKey: string) => {\n const originalConnectedCallback = proto.connectedCallback;\n proto.connectedCallback = function () {\n this.registerEventEmitter(eventConfig.name, new EventEmitter(this, eventConfig));\n\n Object.defineProperty(this, propertyKey, {\n get() {\n return this.eventEmitters.get(eventConfig.name);\n },\n enumerable: true,\n configurable: true,\n });\n originalConnectedCallback.call(this);\n };\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "944BFF09B0EB633264756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { RadiantElement } from '../../core/radiant-element';
|
|
2
|
+
type LegacyInstanceInitializer = (instance: RadiantElement) => void;
|
|
3
|
+
/**
|
|
4
|
+
* Registers per-instance initialization work for a legacy decorator.
|
|
5
|
+
*
|
|
6
|
+
* Legacy decorators execute against the prototype, so any initialization that
|
|
7
|
+
* needs the concrete element instance must be deferred until construction time.
|
|
8
|
+
*/
|
|
9
|
+
export declare function registerLegacyInstanceInitializer(proto: object, initializer: LegacyInstanceInitializer): void;
|
|
10
|
+
/**
|
|
11
|
+
* Runs all legacy decorator initializers for a newly constructed element.
|
|
12
|
+
*
|
|
13
|
+
* Initializers are collected from the prototype chain and executed from base to
|
|
14
|
+
* derived class so inherited setup remains stable.
|
|
15
|
+
*/
|
|
16
|
+
export declare function runLegacyInstanceInitializers(instance: RadiantElement): void;
|
|
17
|
+
export {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import type { RadiantElement
|
|
2
|
-
type OnEventConfig
|
|
3
|
-
selector: string;
|
|
4
|
-
} | {
|
|
5
|
-
ref: string;
|
|
6
|
-
} | {
|
|
7
|
-
window: boolean;
|
|
8
|
-
} | {
|
|
9
|
-
document: boolean;
|
|
10
|
-
});
|
|
1
|
+
import type { RadiantElement } from '../../core/radiant-element';
|
|
2
|
+
import type { OnEventConfig } from '../on-event';
|
|
11
3
|
/**
|
|
12
4
|
* A decorator to subscribe to an event on the target element.
|
|
13
5
|
* The event listener will be automatically unsubscribed when the element is disconnected.
|
|
@@ -23,4 +15,3 @@ type OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> & ({
|
|
|
23
15
|
* @param eventConfig.options Optional. An options object that specifies characteristics about the event listener.
|
|
24
16
|
*/
|
|
25
17
|
export declare function onEvent(eventConfig: OnEventConfig): (proto: RadiantElement, _: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
26
|
-
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export{J as P};
|
|
1
|
+
import{ta as a}from"../../chunk-9rj2rwes.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-hrjc8b1y.js";import"../../chunk-vgtggzb6.js";export{a as onEvent};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=C4152BF85D38474E64756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement, RadiantElementEventListener } from '../../core/radiant-element';\n\ntype OnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> &\n (\n | {\n selector: string;\n }\n | {\n ref: string;\n }\n | {\n window: boolean;\n }\n | {\n document: boolean;\n }\n );\n\n/**\n * A decorator to subscribe to an event on the target element.\n * The event listener will be automatically unsubscribed when the element is disconnected.\n *\n * Note: This decorator uses event delegation, which means it relies on event bubbling.\n * Therefore, it will not work with events that do not bubble, such as `focus`, `blur`, `load`, `unload`, `scroll`, etc.\n * For focus and blur events, consider using `focusin` and `focusout` which are similar but do bubble.\n *\n * @param eventConfig The event configuration.\n * @param eventConfig.selectors The CSS selector(s) of the target element(s).\n * @param eventConfig.ref The data-ref attribute of the target element.\n * @param eventConfig.type The type of the event to listen for.\n * @param eventConfig.options Optional. An options object that specifies characteristics about the event listener.\n */\nexport function onEvent(eventConfig: OnEventConfig) {\n return (proto: RadiantElement, _: string, descriptor: PropertyDescriptor) => {\n const originalConnectedCallback = proto.connectedCallback;\n const originalDisconnectedCallback = proto.disconnectedCallback;\n\n if ('window' in eventConfig) {\n proto.connectedCallback = function (this: RadiantElement) {\n window.addEventListener(eventConfig.type, descriptor.value.bind(this), eventConfig.options);\n originalConnectedCallback.call(this);\n };\n\n proto.disconnectedCallback = function (this: RadiantElement) {\n window.removeEventListener(eventConfig.type, descriptor.value.bind(this), eventConfig.options);\n originalDisconnectedCallback.call(this);\n };\n\n return descriptor;\n }\n\n if ('document' in eventConfig) {\n proto.connectedCallback = function (this: RadiantElement) {\n document.addEventListener(eventConfig.type, descriptor.value.bind(this), eventConfig.options);\n originalConnectedCallback.call(this);\n };\n\n proto.disconnectedCallback = function (this: RadiantElement) {\n document.removeEventListener(eventConfig.type, descriptor.value.bind(this), eventConfig.options);\n originalDisconnectedCallback.call(this);\n };\n\n return descriptor;\n }\n\n const selector = 'selector' in eventConfig ? eventConfig.selector : `[data-ref=\"${eventConfig.ref}\"]`;\n\n const originalMethod = descriptor.value;\n\n proto.connectedCallback = function (this: RadiantElement) {\n this.subscribeEvent({\n selector: selector,\n type: eventConfig.type,\n listener: originalMethod.bind(this),\n options: eventConfig?.options ?? undefined,\n });\n\n originalConnectedCallback.call(this);\n };\n\n return descriptor;\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "C4152BF85D38474E64756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export{E as W};
|
|
1
|
+
import{na as a}from"../../chunk-8e9fgtbn.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-vgtggzb6.js";export{a as onUpdated};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=732BBAB76535F03664756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\n\n/**\n * A decorator to subscribe to an updated callback when a reactive field or property changes.\n * @param eventConfig The event configuration.\n */\nexport function onUpdated(keyOrKeys: string | string[]) {\n return (target: RadiantElement, methodName: string) => {\n const originalConnectedCallback = target.connectedCallback;\n\n target.connectedCallback = function (this: RadiantElement) {\n const boundedMethod = (this as any)[methodName].bind(this);\n if (Array.isArray(keyOrKeys)) {\n for (const key of keyOrKeys) {\n (this as RadiantElement).registerUpdateCallback(key, boundedMethod);\n }\n } else if (typeof keyOrKeys === 'string') {\n (this as RadiantElement).registerUpdateCallback(keyOrKeys, boundedMethod);\n }\n originalConnectedCallback.call(this);\n };\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "732BBAB76535F03664756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { RadiantElement } from '../../core/radiant-element';
|
|
2
|
+
import type { QuerySlotConfig } from '../query-slot';
|
|
3
|
+
export declare function querySlot<T extends Element | Element[]>(options?: QuerySlotConfig): (proto: RadiantElement, propertyName: string | symbol) => void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export{_ as u};
|
|
1
|
+
import{_ as a}from"../../chunk-mpsj3cjs.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-wwbjz9k4.js";import"../../chunk-vgtggzb6.js";export{a as query};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=727F0C8FDFB3349964756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport type { QueryConfig } from '../query';\n\n/**\n * A decorator to query by CSS selector or data-ref attribute.\n * By default it queries for the first element that matches the selector, but it can be configured to query for all elements.\n *\n * @param {QueryConfig} options - The configuration object for the query.\n * @param {boolean} [options.all] - A flag to query for all elements that match the selector. Defaults to `false`.\n * @param {boolean} [options.cache] - A flag to cache the query result. Defaults to `true`.\n * @param {string} [options.selector] - A CSS selector to match elements against. This property is mutually exclusive with `options.ref`.\n * @param {string} [options.ref] - A reference to an element. This property is mutually exclusive with `options.selector`.\n *\n * @returns {Function} A decorator function that, when applied to a class property, will replace it with a getter. The getter will return the result of the query when accessed.\n *\n * @example\n * class MyElement extends HTMLElement {\n * @query({ selector: '.my-class' })\n * myElement;\n * }\n *\n * // Now, `myElement` will return the first element in the light DOM of `MyElement` that matches the selector '.my-class'.\n */\nexport function query<T extends Element | Element[]>({\n cache: shouldBeCached = true,\n ...options\n}: QueryConfig): (proto: RadiantElement, propertyName: string | symbol) => void {\n return (proto: RadiantElement, propertyKey: string | symbol) => {\n const privatePropertyKey = Symbol(`__${String(propertyKey)}__cache`);\n\n const selector = 'selector' in options ? options.selector : `[data-ref=\"${options.ref}\"]`;\n\n const executeQuery = (instance: RadiantElement) => {\n let result: T | T[] = [];\n if (options?.all) {\n const queried = instance.querySelectorAll(selector);\n result = queried.length ? (Array.from(queried) as T) : [];\n return result;\n }\n\n return instance.querySelector(selector);\n };\n\n const originalConnectedCallback = proto.connectedCallback;\n\n proto.connectedCallback = function (this: RadiantElement) {\n Object.defineProperty(this, propertyKey, {\n get() {\n if (shouldBeCached) {\n if (!this[privatePropertyKey] || (options?.all && !this[privatePropertyKey].length)) {\n this[privatePropertyKey] = executeQuery(this);\n }\n return this[privatePropertyKey];\n }\n return executeQuery(this) as T;\n },\n enumerable: true,\n configurable: true,\n });\n originalConnectedCallback.call(this);\n };\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "727F0C8FDFB3349964756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export{z as A};
|
|
1
|
+
import{Ka as a}from"../../chunk-hvy4zvcc.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-vgtggzb6.js";export{a as reactiveField};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=93467B6C5E9AC11164756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\n\n/**\n * A decorator to define a reactive field.\n * Every time the property changes, the `updated` method will be called.\n * Due the fact the value is always undefined before the first update,\n * we are adding a `isDefined` WeakSet to track if the property has been defined.\n * @param target The target element.\n * @param propertyKey The property key.\n */\nexport function reactiveField(target: RadiantElement, propertyKey: string) {\n const originalConnectedCallback = target.connectedCallback;\n\n target.connectedCallback = function (this: RadiantElement) {\n this.createReactiveField(propertyKey, this[propertyKey as keyof typeof this]);\n originalConnectedCallback.call(this);\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "93467B6C5E9AC11164756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -5,6 +5,7 @@ type ReactivePropertyOptions<T> = {
|
|
|
5
5
|
reflect?: boolean;
|
|
6
6
|
attribute?: string;
|
|
7
7
|
defaultValue?: T;
|
|
8
|
+
bind?: boolean | string;
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
10
11
|
* A decorator to define a reactive property.
|
|
@@ -15,5 +16,5 @@ type ReactivePropertyOptions<T> = {
|
|
|
15
16
|
* @param options.attribute The name of the attribute.
|
|
16
17
|
* @param options.defaultValue The default value of the property.
|
|
17
18
|
*/
|
|
18
|
-
export declare function reactiveProp<T = unknown>({ type, attribute, reflect, defaultValue }: ReactivePropertyOptions<T>): (target: RadiantElement, propertyName: string) => void;
|
|
19
|
+
export declare function reactiveProp<T = unknown>({ type, attribute, reflect, defaultValue, bind, }: ReactivePropertyOptions<T>): (target: RadiantElement, propertyName: string) => void;
|
|
19
20
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{J as F};
|
|
1
|
+
import{Ca as a}from"../../chunk-atms6yrh.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-9mqtp3js.js";import"../../chunk-66e6s792.js";import"../../chunk-vgtggzb6.js";export{a as reactiveProp};
|
|
3
2
|
|
|
4
|
-
//# debugId=
|
|
3
|
+
//# debugId=9809BD2D26D87A4764756E2164756E21
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
3
|
+
"sources": [],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport { type AttributeTypeConstant, isValueOfType } from '../../utils/attribute-utils';\n\ntype ReactivePropertyOptions<T> = {\n type: AttributeTypeConstant;\n reflect?: boolean;\n attribute?: string;\n defaultValue?: T;\n};\n\n/**\n * A decorator to define a reactive property.\n * Every time the property changes, the `updated` method will be called.\n * @param options The options for the reactive property.\n * @param options.type The type of the property value.\n * @param options.reflect Whether to reflect the property to the attribute.\n * @param options.attribute The name of the attribute.\n * @param options.defaultValue The default value of the property.\n */\nexport function reactiveProp<T = unknown>({ type, attribute, reflect, defaultValue }: ReactivePropertyOptions<T>) {\n if (defaultValue !== undefined && !isValueOfType(type, defaultValue)) {\n throw new Error(`defaultValue does not match the expected type for ${type.name}`);\n }\n\n return (target: RadiantElement, propertyName: string) => {\n const attributeKey = attribute ?? propertyName;\n\n const originalConnectedCallback = target.connectedCallback;\n\n target.connectedCallback = function (this: RadiantElement) {\n originalConnectedCallback.call(this);\n this.createReactiveProp(propertyName, {\n type,\n reflect,\n attribute: attributeKey,\n defaultValue,\n });\n };\n };\n}\n"
|
|
6
5
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
6
|
+
"mappings": "",
|
|
7
|
+
"debugId": "9809BD2D26D87A4764756E2164756E21",
|
|
9
8
|
"names": []
|
|
10
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RadiantElement, ReactiveBindingOption } from '../../core/radiant-element';
|
|
2
|
+
import type { AttributeTypeConstant } from '../../utils/attribute-utils';
|
|
3
|
+
import type { WritableSignal } from '@ecopages/signals';
|
|
4
|
+
export type SignalDecoratorOptions<Value = unknown> = {
|
|
5
|
+
bind?: ReactiveBindingOption;
|
|
6
|
+
initial?: Value;
|
|
7
|
+
source?: WritableSignal<Value> | ((host: RadiantElement) => WritableSignal<Value>);
|
|
8
|
+
hydrate?: AttributeTypeConstant;
|
|
9
|
+
};
|
|
10
|
+
export declare function signal<Value = unknown>(options?: SignalDecoratorOptions<Value>): (target: RadiantElement, propertyName: string) => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{ba as a}from"../../chunk-x457d0ap.js";import"../../chunk-nnnb6pac.js";import"../../chunk-dabagjk6.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-hpzgnxgq.js";import"../../chunk-nssj2x13.js";import"../../chunk-vgtggzb6.js";export{a as signal};
|
|
2
|
+
|
|
3
|
+
//# debugId=679C2F421977D22E64756E2164756E21
|