@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,28 @@
|
|
|
1
|
+
import type { RadiantElement } from '../core/radiant-element';
|
|
2
|
+
import type { RadiantElementEventListener } from '../core/radiant-element';
|
|
3
|
+
/**
|
|
4
|
+
* Selects which DOM tree delegated event listeners should observe.
|
|
5
|
+
*/
|
|
6
|
+
export type OnEventScope = 'light' | 'shadow' | 'both';
|
|
7
|
+
type BaseOnEventConfig = Pick<RadiantElementEventListener, 'type' | 'options'> & {
|
|
8
|
+
scope?: OnEventScope;
|
|
9
|
+
};
|
|
10
|
+
export type OnEventConfig = BaseOnEventConfig & ({
|
|
11
|
+
selector: string;
|
|
12
|
+
} | {
|
|
13
|
+
ref: string;
|
|
14
|
+
} | {
|
|
15
|
+
window: true;
|
|
16
|
+
} | {
|
|
17
|
+
document: true;
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* Subscribes to a DOM event with delegation, window, or document targeting.
|
|
21
|
+
* Functional equivalent of the `@onEvent` decorator for vanilla JS usage.
|
|
22
|
+
* Returns a cleanup function to remove the listener.
|
|
23
|
+
* @param host The host RadiantElement.
|
|
24
|
+
* @param config The event listener configuration.
|
|
25
|
+
* @param callback The event handler function.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createEventListener(host: RadiantElement, config: OnEventConfig, callback: (event: Event) => void): () => void;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RadiantElement } from '../core/radiant-element';
|
|
2
|
+
import { EventEmitter, type EventEmitterConfig } from '../tools/event-emitter';
|
|
3
|
+
/**
|
|
4
|
+
* Creates an EventEmitter bound to a host element and registers it on the host.
|
|
5
|
+
* Functional equivalent of the `@event` decorator for vanilla JS usage.
|
|
6
|
+
* @param host The host element that will dispatch the events.
|
|
7
|
+
* @param config {@link EventEmitterConfig} The event emitter configuration.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createEvent<T = unknown>(host: RadiantElement, config: EventEmitterConfig): EventEmitter<T>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type QuerySlotConfig = {
|
|
2
|
+
all?: boolean;
|
|
3
|
+
cache?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
};
|
|
6
|
+
type SlotQueryHost = HTMLElement & {
|
|
7
|
+
getSlotElement<T extends Element = Element>(name?: string): T | null;
|
|
8
|
+
getSlotElements<T extends Element = Element>(name?: string): T[];
|
|
9
|
+
};
|
|
10
|
+
type QuerySlotResult<T extends Element | Element[]> = {
|
|
11
|
+
get value(): T | null;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Creates a lazy slot query accessor bound to a host element.
|
|
15
|
+
* Functional equivalent of the `@querySlot` decorator for vanilla JS usage.
|
|
16
|
+
* @param host The host element to query slots within.
|
|
17
|
+
* @param options {@link QuerySlotConfig} The slot query configuration.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createQuerySlot<T extends Element | Element[] = Element>(host: SlotQueryHost, options?: QuerySlotConfig): QuerySlotResult<T>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type BaseQueryConfig = {
|
|
2
|
+
all?: boolean;
|
|
3
|
+
cache?: boolean;
|
|
4
|
+
scope?: QueryScope;
|
|
5
|
+
};
|
|
6
|
+
type QueryBySelector = {
|
|
7
|
+
selector: string;
|
|
8
|
+
};
|
|
9
|
+
type QueryByRef = {
|
|
10
|
+
ref: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Selects which DOM tree a query should read from.
|
|
14
|
+
*/
|
|
15
|
+
export type QueryScope = 'light' | 'shadow' | 'both';
|
|
16
|
+
export type QueryConfig = BaseQueryConfig & (QueryBySelector | QueryByRef);
|
|
17
|
+
type QueryResult<T extends Element | Element[]> = {
|
|
18
|
+
get value(): T | null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Creates a lazy DOM query accessor bound to a host element.
|
|
22
|
+
* Functional equivalent of the `@query` decorator for vanilla JS usage.
|
|
23
|
+
* @param host The host element to query within.
|
|
24
|
+
* @param options {@link QueryConfig} The query configuration.
|
|
25
|
+
*/
|
|
26
|
+
export declare function createQuery<T extends Element | Element[] = Element>(host: HTMLElement, options: QueryConfig): QueryResult<T>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Method } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* A debounced function with imperative helpers for controlling pending work.
|
|
4
|
+
*
|
|
5
|
+
* @typeParam T The wrapped callback type.
|
|
6
|
+
*/
|
|
7
|
+
export interface DebouncedFunction<T extends Method> {
|
|
8
|
+
(...args: Parameters<T>): void;
|
|
9
|
+
/**
|
|
10
|
+
* Cancels the pending callback invocation, if one exists.
|
|
11
|
+
*/
|
|
12
|
+
cancel(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Immediately invokes the latest pending callback invocation.
|
|
15
|
+
*
|
|
16
|
+
* @returns The callback result when a call is pending, or the last completed
|
|
17
|
+
* result when no call is pending.
|
|
18
|
+
*/
|
|
19
|
+
flush(): ReturnType<T> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Reports whether the callback currently has a scheduled invocation.
|
|
22
|
+
*
|
|
23
|
+
* @returns True when a call is pending.
|
|
24
|
+
*/
|
|
25
|
+
pending(): boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a debounced wrapper around a function.
|
|
29
|
+
*
|
|
30
|
+
* The returned function delays invocation until the configured timeout has
|
|
31
|
+
* elapsed since the latest call. It also exposes helpers to cancel, flush,
|
|
32
|
+
* and inspect pending work.
|
|
33
|
+
*
|
|
34
|
+
* @typeParam T The wrapped callback type.
|
|
35
|
+
* @param callback The callback to debounce.
|
|
36
|
+
* @param timeout The debounce timeout in milliseconds.
|
|
37
|
+
* @returns A debounced wrapper around the callback.
|
|
38
|
+
*/
|
|
39
|
+
export declare function debounce<T extends Method>(callback: T, timeout: number): DebouncedFunction<T>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{xb as x}from"../chunk-rrg759ht.js";import"../chunk-wvd1ffe4.js";import{zb as t}from"../chunk-wd23rn4q.js";import{Ab as c}from"../chunk-bk6qkvfp.js";import{Bb as b}from"../chunk-wwbjz9k4.js";import{Cb as a}from"../chunk-hrjc8b1y.js";import"../chunk-vgtggzb6.js";export{t as debounce,c as createQuerySlot,b as createQuery,a as createEventListener,x as createEvent};
|
|
2
|
+
|
|
3
|
+
//# debugId=0B47557218A80C4064756E2164756E21
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
export * from './core/radiant-element';
|
|
2
|
+
export * from './core/radiant-component';
|
|
3
|
+
export * from './core/reactive-jsx-value';
|
|
4
|
+
export * from './decorators/bound';
|
|
2
5
|
export * from './decorators/custom-element';
|
|
6
|
+
export * from './decorators/debounce';
|
|
3
7
|
export * from './decorators/event';
|
|
4
8
|
export * from './decorators/on-event';
|
|
5
9
|
export * from './decorators/on-updated';
|
|
10
|
+
export * from './decorators/prop';
|
|
6
11
|
export * from './decorators/query';
|
|
7
|
-
export * from './decorators/
|
|
8
|
-
export * from './decorators/
|
|
12
|
+
export * from './decorators/query-slot';
|
|
13
|
+
export * from './decorators/signal';
|
|
14
|
+
export * from './decorators/state';
|
|
9
15
|
export * from './context/context-provider';
|
|
10
16
|
export * from './context/create-context';
|
|
11
17
|
export * from './context/decorators/consume-context';
|
|
12
18
|
export * from './context/decorators/context-selector';
|
|
19
|
+
export * from './context/decorators/on-context-update';
|
|
13
20
|
export * from './context/decorators/provide-context';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
21
|
+
export * from './helpers/create-query';
|
|
22
|
+
export * from './helpers/create-query-slot';
|
|
23
|
+
export * from './helpers/create-event';
|
|
24
|
+
export * from './helpers/create-event-listener';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./
|
|
1
|
+
import{t as n}from"./chunk-3ynk7e1e.js";import"./chunk-nctznxyz.js";import{v as o}from"./chunk-wds4href.js";import"./chunk-r33zvvda.js";import"./chunk-fs4j94bk.js";import"./chunk-5qeaq3tj.js";import{z as a}from"./chunk-30x4hggg.js";import{A as l}from"./chunk-qe0eww1n.js";import{B as p}from"./chunk-g5n3m11h.js";import"./chunk-s09s5ayx.js";import"./chunk-g2z3mm6b.js";import"./chunk-x2k0ngpz.js";import"./chunk-kakpjgzf.js";import"./chunk-5bkat72n.js";import"./chunk-p8k4g99a.js";import"./chunk-ek664x1c.js";import{P as S}from"./chunk-s5p5z3z4.js";import{Q as T}from"./chunk-z9kxfckm.js";import{R as h}from"./chunk-21a7jask.js";import"./chunk-kmebacvv.js";import"./chunk-c0qyz98c.js";import{Y as R}from"./chunk-gdkte2vd.js";import{Z as q}from"./chunk-ndw3hc3v.js";import"./chunk-mpsj3cjs.js";import"./chunk-0bswvy25.js";import{aa as y}from"./chunk-pkszgjqf.js";import"./chunk-x457d0ap.js";import"./chunk-vk48hgm4.js";import{da as Y}from"./chunk-0btkzzyc.js";import"./chunk-qdz5sncz.js";import"./chunk-w8s5fnsq.js";import{ga as U}from"./chunk-j864sv4w.js";import"./chunk-y139ycfm.js";import"./chunk-rkh1vkb9.js";import{ja as W}from"./chunk-nvr37vma.js";import"./chunk-h9k7crjc.js";import"./chunk-8d5ddvvf.js";import{ma as $}from"./chunk-0g0j9re6.js";import"./chunk-8e9fgtbn.js";import"./chunk-bk2nbmcd.js";import{pa as V}from"./chunk-c52qhh0j.js";import"./chunk-25zjh0kg.js";import"./chunk-mp2vtrkg.js";import{sa as _}from"./chunk-1x26p09c.js";import"./chunk-9rj2rwes.js";import"./chunk-v3ta7hnv.js";import{va as x}from"./chunk-eevw1j2q.js";import"./chunk-knqsm6v3.js";import"./chunk-eyw14d6y.js";import"./chunk-v92hp9g0.js";import{Ba as d}from"./chunk-xbhtzkre.js";import"./chunk-atms6yrh.js";import"./chunk-n4p2542b.js";import"./chunk-nnnb6pac.js";import"./chunk-dabagjk6.js";import{Ja as v}from"./chunk-j3v7rca5.js";import"./chunk-hvy4zvcc.js";import"./chunk-79jg8q67.js";import"./chunk-cnyxrh9r.js";import"./chunk-q9z6tnzw.js";import"./chunk-gg74gdpv.js";import"./chunk-e0r6ca2g.js";import"./chunk-hztr86b4.js";import"./chunk-9mqtp3js.js";import"./chunk-t8xtvgyg.js";import"./chunk-66e6s792.js";import"./chunk-3xxvmd5c.js";import"./chunk-hpzgnxgq.js";import"./chunk-nssj2x13.js";import{xb as X}from"./chunk-rrg759ht.js";import"./chunk-wvd1ffe4.js";import"./chunk-wd23rn4q.js";import{Ab as u}from"./chunk-bk6qkvfp.js";import{Bb as i}from"./chunk-wwbjz9k4.js";import{Cb as Z}from"./chunk-hrjc8b1y.js";import"./chunk-vgtggzb6.js";export{v as state,y as signal,x as querySlot,q as query,o as provideContext,d as prop,$ as onUpdated,_ as onEvent,l as onContextUpdate,Y as event,W as debounce,V as customElement,u as createQuerySlot,i as createQuery,Z as createEventListener,X as createEvent,a as createContext,p as contextSelector,n as consumeContext,U as bound,T as bindReactiveValue,R as RadiantElement,S as RadiantComponent,h as ContextProvider};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=E48C3D1E7EA7254D64756E2164756E21
|
package/dist/index.js.map
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SsrSerializableContextProvider } from '../context/context-provider';
|
|
2
|
+
import type { ContextType, UnknownContext } from '../context/types';
|
|
3
|
+
/**
|
|
4
|
+
* Pushes a temporary provider frame onto the SSR context stack.
|
|
5
|
+
*
|
|
6
|
+
* On the server, each call creates an isolated `AsyncLocalStorage` context so
|
|
7
|
+
* concurrent renders cannot corrupt each other.
|
|
8
|
+
*
|
|
9
|
+
* In browser test environments where `AsyncLocalStorage` is unavailable, a
|
|
10
|
+
* synchronous global stack is used as a fallback.
|
|
11
|
+
*/
|
|
12
|
+
export declare function withSsrContextProviders(providers: readonly SsrSerializableContextProvider[]): () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Resolves the nearest SSR-visible provider for a given context token.
|
|
15
|
+
*
|
|
16
|
+
* Lookup walks the provider frames from innermost to outermost so nested host
|
|
17
|
+
* serialization behaves the same way as runtime context resolution in the DOM.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveSsrContextProvider<T extends UnknownContext>(context: T): SsrSerializableContextProvider | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Resolves the current SSR-visible value for a given context token.
|
|
22
|
+
*
|
|
23
|
+
* This is the ergonomic helper consumed by SSR-aware decorators and component
|
|
24
|
+
* render paths when they only need the context payload instead of the full
|
|
25
|
+
* provider instance.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveSsrContextValue<T extends UnknownContext>(context: T): ContextType<T> | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type ParsedHtmlTag = {
|
|
2
|
+
attributes: Record<string, string>;
|
|
3
|
+
end: number;
|
|
4
|
+
innerHtml: string;
|
|
5
|
+
selfClosing: boolean;
|
|
6
|
+
tagName: string;
|
|
7
|
+
type: 'open';
|
|
8
|
+
};
|
|
9
|
+
export type ParsedHtmlToken = ParsedHtmlTag | {
|
|
10
|
+
end: number;
|
|
11
|
+
type: 'close';
|
|
12
|
+
} | {
|
|
13
|
+
end: number;
|
|
14
|
+
type: 'comment' | 'declaration';
|
|
15
|
+
};
|
|
16
|
+
export declare const voidElementNames: Set<string>;
|
|
17
|
+
export declare function collectTopLevelHtmlFragments(html: string): string[];
|
|
18
|
+
export declare function findHtmlTagEnd(html: string, startIndex: number): number;
|
|
19
|
+
export declare function parseAttributes(rawAttributes: string): Record<string, string>;
|
|
20
|
+
export declare function parseHtmlTagToken(html: string, startIndex: number): ParsedHtmlToken | undefined;
|
|
21
|
+
export declare function extractInnerHtmlFragment(html: string, startIndex: number, tagEndIndex: number, tagName: string): string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{n as a,o as b,p as c,q as d,r as e,s as f}from"../chunk-5b1en9vz.js";import"../chunk-vgtggzb6.js";export{a as voidElementNames,e as parseHtmlTagToken,d as parseAttributes,c as findHtmlTagEnd,f as extractInnerHtmlFragment,b as collectTopLevelHtmlFragments};
|
|
2
|
+
|
|
3
|
+
//# debugId=4B93532E38E405C864756E2164756E21
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/server/install-light-dom-shim.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { installLightDomShim } from './light-dom-shim';\n\ninstallLightDomShim();\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": "6GAEA,HAAoB",
|
|
8
|
+
"debugId": "4114FD9CDA47DAAF64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
type MinimalCustomElementRegistry = {
|
|
2
|
+
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
|
|
3
|
+
get(name: string): CustomElementConstructor | undefined;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Minimal window-like runtime surface exposed by the SSR light-DOM shim.
|
|
7
|
+
*
|
|
8
|
+
* This is intentionally much smaller than a browser `window`; it only includes
|
|
9
|
+
* the constructors and registry access that Radiant SSR currently needs.
|
|
10
|
+
*/
|
|
11
|
+
export type LightDomShimWindow = {
|
|
12
|
+
/** Event constructor exposed to SSR-created components. */
|
|
13
|
+
CustomEvent: typeof CustomEvent;
|
|
14
|
+
/** Element constructor exposed to SSR-created components. */
|
|
15
|
+
Element: typeof Element;
|
|
16
|
+
/** Event constructor exposed to SSR-created components. */
|
|
17
|
+
Event: typeof Event;
|
|
18
|
+
/** EventTarget constructor exposed to SSR-created components. */
|
|
19
|
+
EventTarget: typeof EventTarget;
|
|
20
|
+
/** HTMLScriptElement constructor used by slot projection payload parsing. */
|
|
21
|
+
HTMLScriptElement: typeof HTMLScriptElement;
|
|
22
|
+
/** HTMLElement constructor exposed to SSR-created components. */
|
|
23
|
+
HTMLElement: typeof HTMLElement;
|
|
24
|
+
/** Node constructor exposed to SSR-created components. */
|
|
25
|
+
Node: typeof Node;
|
|
26
|
+
/** Custom element registry used while rendering in SSR. */
|
|
27
|
+
customElements: MinimalCustomElementRegistry;
|
|
28
|
+
};
|
|
29
|
+
/** Host preparation options accepted by the server render environment. */
|
|
30
|
+
export type PrepareServerRenderHostOptions = {
|
|
31
|
+
/** Serialized light-DOM content to attach to the host before SSR. */
|
|
32
|
+
authoredContent?: string;
|
|
33
|
+
};
|
|
34
|
+
/** Reusable SSR environment used to prepare component hosts before rendering. */
|
|
35
|
+
export type ServerRenderEnvironment = {
|
|
36
|
+
/** Prepares the host instance for rendering, including authored light-DOM content. */
|
|
37
|
+
prepareHost(host: HTMLElement, options?: PrepareServerRenderHostOptions): void;
|
|
38
|
+
};
|
|
39
|
+
/** Ensures that a minimal window-like SSR runtime is available and returns it. */
|
|
40
|
+
export declare function ensureLightDomShim(): LightDomShimWindow;
|
|
41
|
+
/**
|
|
42
|
+
* Creates a reusable SSR environment that can prepare a component host with
|
|
43
|
+
* authored light-DOM content before rendering.
|
|
44
|
+
*
|
|
45
|
+
* Adapters can reuse a single environment across multiple render calls when
|
|
46
|
+
* they want a single host-preparation entrypoint backed by the installed shim.
|
|
47
|
+
*/
|
|
48
|
+
export declare function createServerRenderEnvironment(): ServerRenderEnvironment;
|
|
49
|
+
/**
|
|
50
|
+
* Installs the smallest global surface needed to instantiate Radiant custom elements during SSR.
|
|
51
|
+
*/
|
|
52
|
+
export declare function installLightDomShim(): LightDomShimWindow;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options that constrain how {@link resolveProjectRoot} searches ancestor
|
|
3
|
+
* directories.
|
|
4
|
+
*/
|
|
5
|
+
export type ResolveProjectRootOptions = {
|
|
6
|
+
/** Expected `package.json#name` value for the resolved project root. */
|
|
7
|
+
packageName?: string;
|
|
8
|
+
/** Additional relative paths that must exist inside the resolved directory. */
|
|
9
|
+
requiredPaths?: string[];
|
|
10
|
+
/** Starting directories to search upward from before giving up. */
|
|
11
|
+
startDirectories?: string[];
|
|
12
|
+
/** Absolute or relative directory where the upward search must stop. */
|
|
13
|
+
stopAt?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Resolves the nearest ancestor directory that matches the provided package and
|
|
17
|
+
* path markers. Framework adapters can use this to find their project root
|
|
18
|
+
* without hardcoding a fixed number of parent-directory guesses.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveProjectRoot(options?: ResolveProjectRootOptions): string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import"../chunk-vgtggzb6.js";var{existsSync:T,readFileSync:U}=(()=>({}));function C(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function w(e,f){var l="",n=0,i=-1,r=0,g;for(var u=0;u<=e.length;++u){if(u<e.length)g=e.charCodeAt(u);else if(g===47)break;else g=47;if(g===47){if(i===u-1||r===1);else if(i!==u-1&&r===2){if(l.length<2||n!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var v=l.lastIndexOf("/");if(v!==l.length-1){if(v===-1)l="",n=0;else l=l.slice(0,v),n=l.length-1-l.lastIndexOf("/");i=u,r=0;continue}}else if(l.length===2||l.length===1){l="",n=0,i=u,r=0;continue}}if(f){if(l.length>0)l+="/..";else l="..";n=2}}else{if(l.length>0)l+="/"+e.slice(i+1,u);else l=e.slice(i+1,u);n=u-i-1}i=u,r=0}else if(g===46&&r!==-1)++r;else r=-1}return l}function m(e,f){var l=f.dir||f.root,n=f.base||(f.name||"")+(f.ext||"");if(!l)return n;if(l===f.root)return l+n;return l+e+n}function b(){var e="",f=!1,l;for(var n=arguments.length-1;n>=-1&&!f;n--){var i;if(n>=0)i=arguments[n];else{if(l===void 0)l=process.cwd();i=l}if(C(i),i.length===0)continue;e=i+"/"+e,f=i.charCodeAt(0)===47}if(e=w(e,!f),f)if(e.length>0)return"/"+e;else return"/";else if(e.length>0)return e;else return"."}function L(e){if(C(e),e.length===0)return".";var f=e.charCodeAt(0)===47,l=e.charCodeAt(e.length-1)===47;if(e=w(e,!f),e.length===0&&!f)e=".";if(e.length>0&&l)e+="/";if(f)return"/"+e;return e}function _(e){return C(e),e.length>0&&e.charCodeAt(0)===47}function z(){if(arguments.length===0)return".";var e;for(var f=0;f<arguments.length;++f){var l=arguments[f];if(C(l),l.length>0)if(e===void 0)e=l;else e+="/"+l}if(e===void 0)return".";return L(e)}function S(e,f){if(C(e),C(f),e===f)return"";if(e=b(e),f=b(f),e===f)return"";var l=1;for(;l<e.length;++l)if(e.charCodeAt(l)!==47)break;var n=e.length,i=n-l,r=1;for(;r<f.length;++r)if(f.charCodeAt(r)!==47)break;var g=f.length,u=g-r,v=i<u?i:u,A=-1,s=0;for(;s<=v;++s){if(s===v){if(u>v){if(f.charCodeAt(r+s)===47)return f.slice(r+s+1);else if(s===0)return f.slice(r+s)}else if(i>v){if(e.charCodeAt(l+s)===47)A=s;else if(s===0)A=0}break}var t=e.charCodeAt(l+s),h=f.charCodeAt(r+s);if(t!==h)break;else if(t===47)A=s}var d="";for(s=l+A+1;s<=n;++s)if(s===n||e.charCodeAt(s)===47)if(d.length===0)d+="..";else d+="/..";if(d.length>0)return d+f.slice(r+A);else{if(r+=A,f.charCodeAt(r)===47)++r;return f.slice(r)}}function E(e){return e}function c(e){if(C(e),e.length===0)return".";var f=e.charCodeAt(0),l=f===47,n=-1,i=!0;for(var r=e.length-1;r>=1;--r)if(f=e.charCodeAt(r),f===47){if(!i){n=r;break}}else i=!1;if(n===-1)return l?"/":".";if(l&&n===1)return"//";return e.slice(0,n)}function B(e,f){if(f!==void 0&&typeof f!=="string")throw TypeError('"ext" argument must be a string');C(e);var l=0,n=-1,i=!0,r;if(f!==void 0&&f.length>0&&f.length<=e.length){if(f.length===e.length&&f===e)return"";var g=f.length-1,u=-1;for(r=e.length-1;r>=0;--r){var v=e.charCodeAt(r);if(v===47){if(!i){l=r+1;break}}else{if(u===-1)i=!1,u=r+1;if(g>=0)if(v===f.charCodeAt(g)){if(--g===-1)n=r}else g=-1,n=u}}if(l===n)n=u;else if(n===-1)n=e.length;return e.slice(l,n)}else{for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!i){l=r+1;break}}else if(n===-1)i=!1,n=r+1;if(n===-1)return"";return e.slice(l,n)}}function G(e){C(e);var f=-1,l=0,n=-1,i=!0,r=0;for(var g=e.length-1;g>=0;--g){var u=e.charCodeAt(g);if(u===47){if(!i){l=g+1;break}continue}if(n===-1)i=!1,n=g+1;if(u===46){if(f===-1)f=g;else if(r!==1)r=1}else if(f!==-1)r=-1}if(f===-1||n===-1||r===0||r===1&&f===n-1&&f===l+1)return"";return e.slice(f,n)}function H(e){if(e===null||typeof e!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return m("/",e)}function K(e){C(e);var f={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return f;var l=e.charCodeAt(0),n=l===47,i;if(n)f.root="/",i=1;else i=0;var r=-1,g=0,u=-1,v=!0,A=e.length-1,s=0;for(;A>=i;--A){if(l=e.charCodeAt(A),l===47){if(!v){g=A+1;break}continue}if(u===-1)v=!1,u=A+1;if(l===46){if(r===-1)r=A;else if(s!==1)s=1}else if(r!==-1)s=-1}if(r===-1||u===-1||s===0||s===1&&r===u-1&&r===g+1){if(u!==-1)if(g===0&&n)f.base=f.name=e.slice(1,u);else f.base=f.name=e.slice(g,u)}else{if(g===0&&n)f.name=e.slice(1,r),f.base=e.slice(1,u);else f.name=e.slice(g,r),f.base=e.slice(g,u);f.ext=e.slice(r,u)}if(g>0)f.dir=e.slice(0,g-1);else if(n)f.dir="/";return f}var M="/",Q=":",$=((e)=>(e.posix=e,e))({resolve:b,normalize:L,isAbsolute:_,join:z,relative:S,_makeLong:E,dirname:c,basename:B,extname:G,format:H,parse:K,sep:M,delimiter:Q,win32:null,posix:null});function k(e={}){let f=Y(e.startDirectories?.length?e.startDirectories:[process.cwd(),import.meta.dirname]),l=b(e.stopAt??"/");for(let n of f){let i=V(n,l,e);if(i)return i}throw Error(Z(e,f))}function V(e,f,l){let n=b(e);for(;;){if(W(n,l))return n;if(n===f)return;let i=c(n);if(i===n)return;n=i}}function W(e,f){if(!X(e,f.packageName))return!1;return(f.requiredPaths??[]).every((l)=>T(b(e,l)))}function X(e,f){if(!f)return!0;let l=b(e,"package.json");if(!T(l))return!1;try{return JSON.parse(U(l,"utf8")).name===f}catch{return!1}}function Y(e){return Array.from(new Set(e.map((f)=>b(f))))}function Z(e,f){let l=[e.packageName?`package name ${JSON.stringify(e.packageName)}`:void 0,e.requiredPaths?.length?`paths ${e.requiredPaths.map((n)=>JSON.stringify(n)).join(", ")}`:void 0].filter((n)=>typeof n==="string").join(" and ");return`Unable to resolve a project root${l?` matching ${l}`:""} from ${f.join(", ")}.`}export{k as resolveProjectRoot};
|
|
2
|
+
|
|
3
|
+
//# debugId=092C65A79F3C884364756E2164756E21
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/server/project-root.ts", "node:path"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { existsSync, readFileSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\n\n/**\n * Options that constrain how {@link resolveProjectRoot} searches ancestor\n * directories.\n */\nexport type ResolveProjectRootOptions = {\n\t/** Expected `package.json#name` value for the resolved project root. */\n\tpackageName?: string;\n\t/** Additional relative paths that must exist inside the resolved directory. */\n\trequiredPaths?: string[];\n\t/** Starting directories to search upward from before giving up. */\n\tstartDirectories?: string[];\n\t/** Absolute or relative directory where the upward search must stop. */\n\tstopAt?: string;\n};\n\n/**\n * Resolves the nearest ancestor directory that matches the provided package and\n * path markers. Framework adapters can use this to find their project root\n * without hardcoding a fixed number of parent-directory guesses.\n */\nexport function resolveProjectRoot(options: ResolveProjectRootOptions = {}): string {\n\tconst candidateStarts = dedupeDirectories(\n\t\toptions.startDirectories?.length ? options.startDirectories : [process.cwd(), import.meta.dirname],\n\t);\n\tconst stopAt = resolve(options.stopAt ?? '/');\n\n\tfor (const startDirectory of candidateStarts) {\n\t\tconst resolvedRoot = resolveProjectRootFrom(startDirectory, stopAt, options);\n\n\t\tif (resolvedRoot) {\n\t\t\treturn resolvedRoot;\n\t\t}\n\t}\n\n\tthrow new Error(createResolveProjectRootError(options, candidateStarts));\n}\n\nfunction resolveProjectRootFrom(\n\tstartDirectory: string,\n\tstopAt: string,\n\toptions: ResolveProjectRootOptions,\n): string | undefined {\n\tlet currentDirectory = resolve(startDirectory);\n\n\tfor (;;) {\n\t\tif (matchesProjectRoot(currentDirectory, options)) {\n\t\t\treturn currentDirectory;\n\t\t}\n\n\t\tif (currentDirectory === stopAt) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tconst parentDirectory = dirname(currentDirectory);\n\n\t\tif (parentDirectory === currentDirectory) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tcurrentDirectory = parentDirectory;\n\t}\n}\n\nfunction matchesProjectRoot(directory: string, options: ResolveProjectRootOptions): boolean {\n\tif (!matchesPackageName(directory, options.packageName)) {\n\t\treturn false;\n\t}\n\n\treturn (options.requiredPaths ?? []).every((requiredPath) => existsSync(resolve(directory, requiredPath)));\n}\n\nfunction matchesPackageName(directory: string, packageName: string | undefined): boolean {\n\tif (!packageName) {\n\t\treturn true;\n\t}\n\n\tconst packageJsonPath = resolve(directory, 'package.json');\n\n\tif (!existsSync(packageJsonPath)) {\n\t\treturn false;\n\t}\n\n\ttry {\n\t\tconst packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8')) as { name?: string };\n\t\treturn packageJson.name === packageName;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\nfunction dedupeDirectories(directories: string[]): string[] {\n\treturn Array.from(new Set(directories.map((directory) => resolve(directory))));\n}\n\nfunction createResolveProjectRootError(options: ResolveProjectRootOptions, startDirectories: string[]): string {\n\tconst markerSummary = [\n\t\toptions.packageName ? `package name ${JSON.stringify(options.packageName)}` : undefined,\n\t\toptions.requiredPaths?.length\n\t\t\t? `paths ${options.requiredPaths.map((path) => JSON.stringify(path)).join(', ')}`\n\t\t\t: undefined,\n\t]\n\t\t.filter((marker): marker is string => typeof marker === 'string')\n\t\t.join(' and ');\n\n\treturn `Unable to resolve a project root${markerSummary ? ` matching ${markerSummary}` : ''} from ${startDirectories.join(', ')}.`;\n}\n",
|
|
6
|
+
"function assertPath(path){if(typeof path!==\"string\")throw TypeError(\"Path must be a string. Received \"+JSON.stringify(path))}function normalizeStringPosix(path,allowAboveRoot){var res=\"\",lastSegmentLength=0,lastSlash=-1,dots=0,code;for(var i=0;i<=path.length;++i){if(i<path.length)code=path.charCodeAt(i);else if(code===47)break;else code=47;if(code===47){if(lastSlash===i-1||dots===1);else if(lastSlash!==i-1&&dots===2){if(res.length<2||lastSegmentLength!==2||res.charCodeAt(res.length-1)!==46||res.charCodeAt(res.length-2)!==46){if(res.length>2){var lastSlashIndex=res.lastIndexOf(\"/\");if(lastSlashIndex!==res.length-1){if(lastSlashIndex===-1)res=\"\",lastSegmentLength=0;else res=res.slice(0,lastSlashIndex),lastSegmentLength=res.length-1-res.lastIndexOf(\"/\");lastSlash=i,dots=0;continue}}else if(res.length===2||res.length===1){res=\"\",lastSegmentLength=0,lastSlash=i,dots=0;continue}}if(allowAboveRoot){if(res.length>0)res+=\"/..\";else res=\"..\";lastSegmentLength=2}}else{if(res.length>0)res+=\"/\"+path.slice(lastSlash+1,i);else res=path.slice(lastSlash+1,i);lastSegmentLength=i-lastSlash-1}lastSlash=i,dots=0}else if(code===46&&dots!==-1)++dots;else dots=-1}return res}function _format(sep,pathObject){var dir=pathObject.dir||pathObject.root,base=pathObject.base||(pathObject.name||\"\")+(pathObject.ext||\"\");if(!dir)return base;if(dir===pathObject.root)return dir+base;return dir+sep+base}function resolve(){var resolvedPath=\"\",resolvedAbsolute=!1,cwd;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path;if(i>=0)path=arguments[i];else{if(cwd===void 0)cwd=process.cwd();path=cwd}if(assertPath(path),path.length===0)continue;resolvedPath=path+\"/\"+resolvedPath,resolvedAbsolute=path.charCodeAt(0)===47}if(resolvedPath=normalizeStringPosix(resolvedPath,!resolvedAbsolute),resolvedAbsolute)if(resolvedPath.length>0)return\"/\"+resolvedPath;else return\"/\";else if(resolvedPath.length>0)return resolvedPath;else return\".\"}function normalize(path){if(assertPath(path),path.length===0)return\".\";var isAbsolute=path.charCodeAt(0)===47,trailingSeparator=path.charCodeAt(path.length-1)===47;if(path=normalizeStringPosix(path,!isAbsolute),path.length===0&&!isAbsolute)path=\".\";if(path.length>0&&trailingSeparator)path+=\"/\";if(isAbsolute)return\"/\"+path;return path}function isAbsolute(path){return assertPath(path),path.length>0&&path.charCodeAt(0)===47}function join(){if(arguments.length===0)return\".\";var joined;for(var i=0;i<arguments.length;++i){var arg=arguments[i];if(assertPath(arg),arg.length>0)if(joined===void 0)joined=arg;else joined+=\"/\"+arg}if(joined===void 0)return\".\";return normalize(joined)}function relative(from,to){if(assertPath(from),assertPath(to),from===to)return\"\";if(from=resolve(from),to=resolve(to),from===to)return\"\";var fromStart=1;for(;fromStart<from.length;++fromStart)if(from.charCodeAt(fromStart)!==47)break;var fromEnd=from.length,fromLen=fromEnd-fromStart,toStart=1;for(;toStart<to.length;++toStart)if(to.charCodeAt(toStart)!==47)break;var toEnd=to.length,toLen=toEnd-toStart,length=fromLen<toLen?fromLen:toLen,lastCommonSep=-1,i=0;for(;i<=length;++i){if(i===length){if(toLen>length){if(to.charCodeAt(toStart+i)===47)return to.slice(toStart+i+1);else if(i===0)return to.slice(toStart+i)}else if(fromLen>length){if(from.charCodeAt(fromStart+i)===47)lastCommonSep=i;else if(i===0)lastCommonSep=0}break}var fromCode=from.charCodeAt(fromStart+i),toCode=to.charCodeAt(toStart+i);if(fromCode!==toCode)break;else if(fromCode===47)lastCommonSep=i}var out=\"\";for(i=fromStart+lastCommonSep+1;i<=fromEnd;++i)if(i===fromEnd||from.charCodeAt(i)===47)if(out.length===0)out+=\"..\";else out+=\"/..\";if(out.length>0)return out+to.slice(toStart+lastCommonSep);else{if(toStart+=lastCommonSep,to.charCodeAt(toStart)===47)++toStart;return to.slice(toStart)}}function _makeLong(path){return path}function dirname(path){if(assertPath(path),path.length===0)return\".\";var code=path.charCodeAt(0),hasRoot=code===47,end=-1,matchedSlash=!0;for(var i=path.length-1;i>=1;--i)if(code=path.charCodeAt(i),code===47){if(!matchedSlash){end=i;break}}else matchedSlash=!1;if(end===-1)return hasRoot?\"/\":\".\";if(hasRoot&&end===1)return\"//\";return path.slice(0,end)}function basename(path,ext){if(ext!==void 0&&typeof ext!==\"string\")throw TypeError('\"ext\" argument must be a string');assertPath(path);var start=0,end=-1,matchedSlash=!0,i;if(ext!==void 0&&ext.length>0&&ext.length<=path.length){if(ext.length===path.length&&ext===path)return\"\";var extIdx=ext.length-1,firstNonSlashEnd=-1;for(i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){start=i+1;break}}else{if(firstNonSlashEnd===-1)matchedSlash=!1,firstNonSlashEnd=i+1;if(extIdx>=0)if(code===ext.charCodeAt(extIdx)){if(--extIdx===-1)end=i}else extIdx=-1,end=firstNonSlashEnd}}if(start===end)end=firstNonSlashEnd;else if(end===-1)end=path.length;return path.slice(start,end)}else{for(i=path.length-1;i>=0;--i)if(path.charCodeAt(i)===47){if(!matchedSlash){start=i+1;break}}else if(end===-1)matchedSlash=!1,end=i+1;if(end===-1)return\"\";return path.slice(start,end)}}function extname(path){assertPath(path);var startDot=-1,startPart=0,end=-1,matchedSlash=!0,preDotState=0;for(var i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){startPart=i+1;break}continue}if(end===-1)matchedSlash=!1,end=i+1;if(code===46){if(startDot===-1)startDot=i;else if(preDotState!==1)preDotState=1}else if(startDot!==-1)preDotState=-1}if(startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1)return\"\";return path.slice(startDot,end)}function format(pathObject){if(pathObject===null||typeof pathObject!==\"object\")throw TypeError('The \"pathObject\" argument must be of type Object. Received type '+typeof pathObject);return _format(\"/\",pathObject)}function parse(path){assertPath(path);var ret={root:\"\",dir:\"\",base:\"\",ext:\"\",name:\"\"};if(path.length===0)return ret;var code=path.charCodeAt(0),isAbsolute2=code===47,start;if(isAbsolute2)ret.root=\"/\",start=1;else start=0;var startDot=-1,startPart=0,end=-1,matchedSlash=!0,i=path.length-1,preDotState=0;for(;i>=start;--i){if(code=path.charCodeAt(i),code===47){if(!matchedSlash){startPart=i+1;break}continue}if(end===-1)matchedSlash=!1,end=i+1;if(code===46){if(startDot===-1)startDot=i;else if(preDotState!==1)preDotState=1}else if(startDot!==-1)preDotState=-1}if(startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1){if(end!==-1)if(startPart===0&&isAbsolute2)ret.base=ret.name=path.slice(1,end);else ret.base=ret.name=path.slice(startPart,end)}else{if(startPart===0&&isAbsolute2)ret.name=path.slice(1,startDot),ret.base=path.slice(1,end);else ret.name=path.slice(startPart,startDot),ret.base=path.slice(startPart,end);ret.ext=path.slice(startDot,end)}if(startPart>0)ret.dir=path.slice(0,startPart-1);else if(isAbsolute2)ret.dir=\"/\";return ret}var sep=\"/\",delimiter=\":\",posix=((p)=>(p.posix=p,p))({resolve,normalize,isAbsolute,join,relative,_makeLong,dirname,basename,extname,format,parse,sep,delimiter,win32:null,posix:null});var path_default=posix;export{sep,resolve,relative,posix,parse,normalize,join,isAbsolute,format,extname,dirname,delimiter,path_default as default,basename,_makeLong};"
|
|
7
|
+
],
|
|
8
|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,cAAc,EAEzD,GAAI,CAAC,EAAW,CAAe,EAC9B,MAAO,GAGR,GAAI,CAEH,OADoB,KAAK,MAAM,EAAa,EAAiB,MAAM,CAAC,EACjD,OAAS,EAC3B,KAAM,CACP,MAAO,IAIT,SAAS,CAAiB,CAAC,EAAiC,CAC3D,OAAO,MAAM,KAAK,IAAI,IAAI,EAAY,IAAI,CAAC,IAAc,EAAQ,CAAS,CAAC,CAAC,CAAC,EAG9E,SAAS,CAA6B,CAAC,EAAoC,EAAoC,CAC9G,IAAM,EAAgB,CACrB,EAAQ,YAAc,gBAAgB,KAAK,UAAU,EAAQ,WAAW,IAAM,OAC9E,EAAQ,eAAe,OACpB,SAAS,EAAQ,cAAc,IAAI,CAAC,IAAS,KAAK,UAAU,CAAI,CAAC,EAAE,KAAK,IAAI,IAC5E,MACJ,EACE,OAAO,CAAC,IAA6B,OAAO,IAAW,QAAQ,EAC/D,KAAK,OAAO,EAEd,MAAO,mCAAmC,EAAgB,aAAa,IAAkB,WAAW,EAAiB,KAAK,IAAI",
|
|
9
|
+
"debugId": "092C65A79F3C884364756E2164756E21",
|
|
10
|
+
"names": []
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type RadiantComponentSsrRuntime } from '../core/radiant-component-ssr-registry';
|
|
2
|
+
/**
|
|
3
|
+
* Registers the shared Radiant SSR runtime if it is not already present.
|
|
4
|
+
*
|
|
5
|
+
* Server entrypoints call this eagerly so instance SSR methods, nested JSX
|
|
6
|
+
* custom-element SSR, and portable server helpers all share one implementation
|
|
7
|
+
* and one bridge-resolution strategy.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ensureRadiantComponentSsrRuntimeRegistered(): RadiantComponentSsrRuntime;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{f as a}from"../chunk-4e559cy5.js";import"../chunk-3ryr5wx2.js";import"../chunk-ssnnxzrj.js";import"../chunk-e0r6ca2g.js";import"../chunk-hztr86b4.js";import"../chunk-9mqtp3js.js";import"../chunk-t8xtvgyg.js";import"../chunk-66e6s792.js";import"../chunk-vgtggzb6.js";export{a as ensureRadiantComponentSsrRuntimeRegistered};
|
|
2
|
+
|
|
3
|
+
//# debugId=76B602B01D2826A664756E2164756E21
|