@ecopages/radiant 0.3.0-alpha.0 → 0.3.0-alpha.2
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 +5 -1
- package/dist/{chunk-scfk041e.js → chunk-0bswvy25.js} +3 -3
- package/dist/{chunk-scfk041e.js.map → chunk-0bswvy25.js.map} +1 -1
- package/dist/chunk-0btkzzyc.js +4 -0
- package/dist/{chunk-r75y7ydb.js.map → chunk-0btkzzyc.js.map} +1 -1
- package/dist/chunk-0g0j9re6.js +4 -0
- package/dist/{chunk-0zq7e1ne.js.map → chunk-0g0j9re6.js.map} +1 -1
- package/dist/chunk-1x26p09c.js +4 -0
- package/dist/{chunk-d4v5qpxa.js.map → chunk-1x26p09c.js.map} +1 -1
- package/dist/{chunk-jg20mzg8.js → chunk-21a7jask.js} +3 -3
- package/dist/{chunk-jg20mzg8.js.map → chunk-21a7jask.js.map} +1 -1
- package/dist/chunk-25zjh0kg.js +4 -0
- package/dist/{chunk-60q4y3k5.js.map → chunk-25zjh0kg.js.map} +1 -1
- package/dist/chunk-30x4hggg.js +4 -0
- package/dist/{chunk-zb7wh7w4.js.map → chunk-30x4hggg.js.map} +1 -1
- package/dist/chunk-3ryr5wx2.js +4 -0
- package/dist/{chunk-9554n9t4.js.map → chunk-3ryr5wx2.js.map} +2 -2
- 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-d7hh3ze6.js.map → chunk-3ynk7e1e.js.map} +1 -1
- 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-5td6v9k3.js.map → chunk-5bkat72n.js.map} +2 -2
- package/dist/{chunk-4srpf0y5.js → chunk-5qeaq3tj.js} +3 -3
- package/dist/{chunk-4srpf0y5.js.map → chunk-5qeaq3tj.js.map} +1 -1
- package/dist/{chunk-73x7jpdd.js → chunk-66e6s792.js} +2 -2
- package/dist/{chunk-73x7jpdd.js.map → chunk-66e6s792.js.map} +1 -1
- package/dist/{chunk-paehjz94.js → chunk-79jg8q67.js} +2 -2
- package/dist/{chunk-paehjz94.js.map → chunk-79jg8q67.js.map} +1 -1
- package/dist/{chunk-8vak8w5w.js → chunk-8d5ddvvf.js} +3 -3
- package/dist/{chunk-8vak8w5w.js.map → chunk-8d5ddvvf.js.map} +1 -1
- package/dist/{chunk-tyysm4gk.js → chunk-8e9fgtbn.js} +3 -3
- package/dist/{chunk-tyysm4gk.js.map → chunk-8e9fgtbn.js.map} +1 -1
- package/dist/{chunk-8dexhy6c.js → chunk-9mqtp3js.js} +2 -2
- package/dist/{chunk-8dexhy6c.js.map → chunk-9mqtp3js.js.map} +1 -1
- package/dist/chunk-9rj2rwes.js +4 -0
- package/dist/{chunk-3b033cgq.js.map → chunk-9rj2rwes.js.map} +1 -1
- package/dist/{chunk-x0522ksh.js → chunk-atms6yrh.js} +3 -3
- package/dist/{chunk-x0522ksh.js.map → chunk-atms6yrh.js.map} +1 -1
- package/dist/{chunk-qdj6r8jn.js → chunk-bk2nbmcd.js} +2 -2
- package/dist/{chunk-qdj6r8jn.js.map → chunk-bk2nbmcd.js.map} +1 -1
- package/dist/{chunk-qd28hvdx.js → chunk-bk6qkvfp.js} +2 -2
- package/dist/{chunk-qd28hvdx.js.map → chunk-bk6qkvfp.js.map} +1 -1
- 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-60015zxq.js.map → chunk-c52qhh0j.js.map} +1 -1
- package/dist/{chunk-8tvt04cm.js → chunk-cnyxrh9r.js} +2 -2
- package/dist/{chunk-8tvt04cm.js.map → chunk-cnyxrh9r.js.map} +1 -1
- 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-0y78f8hj.js.map → chunk-eevw1j2q.js.map} +2 -2
- package/dist/{chunk-s4qgct1z.js → chunk-ek664x1c.js} +3 -3
- package/dist/{chunk-s4qgct1z.js.map → chunk-ek664x1c.js.map} +1 -1
- package/dist/{chunk-9gjmqxp2.js → chunk-eyw14d6y.js} +2 -2
- package/dist/{chunk-9gjmqxp2.js.map → chunk-eyw14d6y.js.map} +1 -1
- package/dist/{chunk-hkmm3dj9.js → chunk-fs4j94bk.js} +3 -3
- package/dist/{chunk-hkmm3dj9.js.map → chunk-fs4j94bk.js.map} +1 -1
- package/dist/{chunk-chyn72n9.js → chunk-g2z3mm6b.js} +3 -3
- package/dist/{chunk-chyn72n9.js.map → chunk-g2z3mm6b.js.map} +1 -1
- package/dist/chunk-g5n3m11h.js +4 -0
- package/dist/chunk-g5n3m11h.js.map +10 -0
- package/dist/{chunk-84fc8cz9.js → chunk-gdkte2vd.js} +3 -3
- package/dist/{chunk-84fc8cz9.js.map → chunk-gdkte2vd.js.map} +1 -1
- package/dist/chunk-gg74gdpv.js +4 -0
- package/dist/chunk-gg74gdpv.js.map +10 -0
- package/dist/{chunk-hn4j8rt5.js → chunk-h9k7crjc.js} +3 -3
- package/dist/{chunk-hn4j8rt5.js.map → chunk-h9k7crjc.js.map} +1 -1
- package/dist/{chunk-ksv01cey.js → chunk-hpzgnxgq.js} +3 -3
- package/dist/{chunk-ksv01cey.js.map → chunk-hpzgnxgq.js.map} +1 -1
- 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-t7a1bbxq.js.map → chunk-hvy4zvcc.js.map} +1 -1
- package/dist/{chunk-ms6a9zdt.js → chunk-hztr86b4.js} +2 -2
- package/dist/{chunk-ms6a9zdt.js.map → chunk-hztr86b4.js.map} +1 -1
- package/dist/chunk-j3v7rca5.js +4 -0
- package/dist/{chunk-4fqkmpra.js.map → chunk-j3v7rca5.js.map} +1 -1
- package/dist/chunk-j864sv4w.js +4 -0
- package/dist/{chunk-w50v38rv.js.map → chunk-j864sv4w.js.map} +1 -1
- package/dist/chunk-kakpjgzf.js +4 -0
- package/dist/{chunk-d98q3myg.js.map → chunk-kakpjgzf.js.map} +2 -2
- package/dist/{chunk-1w1dm68j.js → chunk-kmebacvv.js} +2 -2
- package/dist/{chunk-1w1dm68j.js.map → chunk-kmebacvv.js.map} +1 -1
- package/dist/chunk-knqsm6v3.js +4 -0
- package/dist/{chunk-5bym7y1d.js.map → chunk-knqsm6v3.js.map} +2 -2
- package/dist/chunk-mp2vtrkg.js +4 -0
- package/dist/{chunk-zj9ez73m.js.map → chunk-mp2vtrkg.js.map} +1 -1
- package/dist/chunk-mpsj3cjs.js +4 -0
- package/dist/{chunk-qe6sjr27.js.map → chunk-mpsj3cjs.js.map} +1 -1
- package/dist/{chunk-dscj0sk9.js → chunk-n4p2542b.js} +3 -3
- package/dist/{chunk-dscj0sk9.js.map → chunk-n4p2542b.js.map} +1 -1
- package/dist/{chunk-agjb2a3r.js → chunk-nctznxyz.js} +3 -3
- package/dist/{chunk-agjb2a3r.js.map → chunk-nctznxyz.js.map} +1 -1
- package/dist/chunk-ndw3hc3v.js +4 -0
- package/dist/{chunk-2tgrfv09.js.map → chunk-ndw3hc3v.js.map} +2 -2
- package/dist/{chunk-57w3vmme.js → chunk-nnnb6pac.js} +3 -3
- package/dist/{chunk-57w3vmme.js.map → chunk-nnnb6pac.js.map} +1 -1
- package/dist/{chunk-8n2dhx28.js → chunk-nssj2x13.js} +2 -2
- package/dist/{chunk-8n2dhx28.js.map → chunk-nssj2x13.js.map} +1 -1
- package/dist/chunk-nvr37vma.js +4 -0
- package/dist/{chunk-mqxmfvyp.js.map → chunk-nvr37vma.js.map} +1 -1
- package/dist/chunk-p8k4g99a.js +4 -0
- package/dist/{chunk-vpfm9yw8.js.map → chunk-p8k4g99a.js.map} +2 -2
- package/dist/chunk-pkszgjqf.js +4 -0
- package/dist/{chunk-c8vqg7r1.js.map → chunk-pkszgjqf.js.map} +1 -1
- package/dist/{chunk-nerd6fmg.js → chunk-q9z6tnzw.js} +2 -2
- package/dist/{chunk-nerd6fmg.js.map → chunk-q9z6tnzw.js.map} +1 -1
- package/dist/chunk-qdz5sncz.js +4 -0
- package/dist/{chunk-a7hzs37s.js.map → chunk-qdz5sncz.js.map} +1 -1
- package/dist/chunk-qe0eww1n.js +4 -0
- package/dist/{chunk-ak97hp4w.js.map → chunk-qe0eww1n.js.map} +2 -2
- package/dist/{chunk-d0n7njdy.js → chunk-r33zvvda.js} +3 -3
- package/dist/{chunk-d0n7njdy.js.map → chunk-r33zvvda.js.map} +1 -1
- package/dist/{chunk-xd1xn3vy.js → chunk-rkh1vkb9.js} +2 -2
- package/dist/{chunk-xd1xn3vy.js.map → chunk-rkh1vkb9.js.map} +1 -1
- package/dist/chunk-rrg759ht.js +4 -0
- package/dist/{chunk-42tyhfvh.js.map → chunk-rrg759ht.js.map} +1 -1
- package/dist/{chunk-par0t822.js → chunk-s09s5ayx.js} +3 -3
- package/dist/{chunk-par0t822.js.map → chunk-s09s5ayx.js.map} +1 -1
- 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-dx1wqc00.js → chunk-ssnnxzrj.js} +3 -3
- package/dist/{chunk-dx1wqc00.js.map → chunk-ssnnxzrj.js.map} +1 -1
- package/dist/{chunk-4cc2syf5.js → chunk-t8xtvgyg.js} +2 -2
- package/dist/{chunk-4cc2syf5.js.map → chunk-t8xtvgyg.js.map} +1 -1
- package/dist/chunk-v3ta7hnv.js +4 -0
- package/dist/{chunk-aajhkdmn.js.map → chunk-v3ta7hnv.js.map} +1 -1
- package/dist/{chunk-bmhn4nbp.js → chunk-v92hp9g0.js} +3 -3
- package/dist/{chunk-bmhn4nbp.js.map → chunk-v92hp9g0.js.map} +1 -1
- package/dist/{chunk-8xy18qmz.js → chunk-vgtggzb6.js} +2 -2
- package/dist/{chunk-8xy18qmz.js.map → chunk-vgtggzb6.js.map} +1 -1
- package/dist/{chunk-5a2xez36.js → chunk-vk48hgm4.js} +3 -3
- package/dist/{chunk-5a2xez36.js.map → chunk-vk48hgm4.js.map} +1 -1
- package/dist/{chunk-k5hr781q.js → chunk-w8s5fnsq.js} +3 -3
- package/dist/{chunk-k5hr781q.js.map → chunk-w8s5fnsq.js.map} +1 -1
- package/dist/{chunk-13ydx769.js → chunk-wd23rn4q.js} +2 -2
- package/dist/{chunk-13ydx769.js.map → chunk-wd23rn4q.js.map} +1 -1
- package/dist/chunk-wds4href.js +4 -0
- package/dist/{chunk-147yvtsn.js.map → chunk-wds4href.js.map} +2 -2
- package/dist/{chunk-qbnedp0y.js → chunk-wvd1ffe4.js} +2 -2
- package/dist/{chunk-qbnedp0y.js.map → chunk-wvd1ffe4.js.map} +1 -1
- package/dist/{chunk-g0gz7ypq.js → chunk-wwbjz9k4.js} +2 -2
- package/dist/{chunk-g0gz7ypq.js.map → chunk-wwbjz9k4.js.map} +1 -1
- package/dist/{chunk-qaagk55a.js → chunk-x2k0ngpz.js} +3 -3
- package/dist/{chunk-qaagk55a.js.map → chunk-x2k0ngpz.js.map} +1 -1
- package/dist/{chunk-t6x9e177.js → chunk-x457d0ap.js} +3 -3
- package/dist/{chunk-t6x9e177.js.map → chunk-x457d0ap.js.map} +1 -1
- package/dist/chunk-xbhtzkre.js +4 -0
- package/dist/{chunk-p6pxdvkk.js.map → chunk-xbhtzkre.js.map} +1 -1
- package/dist/{chunk-cbvd18v1.js → chunk-y139ycfm.js} +2 -2
- package/dist/{chunk-cbvd18v1.js.map → chunk-y139ycfm.js.map} +1 -1
- package/dist/chunk-z9kxfckm.js +4 -0
- package/dist/{chunk-mpjnqmbq.js.map → chunk-z9kxfckm.js.map} +1 -1
- 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/{core/slot-projection.js.map → client/hydrator.js.map} +1 -1
- 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.js +2 -2
- package/dist/context/context-consumer-bootstrap.js.map +1 -1
- package/dist/context/context-consumer-runtime.js +2 -2
- package/dist/context/context-consumer-runtime.js.map +1 -1
- package/dist/context/context-provider.js +2 -2
- package/dist/context/context-provider.js.map +1 -1
- package/dist/context/context-ssr-bridge.js +2 -2
- package/dist/context/context-ssr-bridge.js.map +1 -1
- package/dist/context/create-context.js +2 -2
- package/dist/context/create-context.js.map +1 -1
- package/dist/context/decorators/consume-context.js +2 -2
- package/dist/context/decorators/consume-context.js.map +1 -1
- package/dist/context/decorators/context-selection-delivery.js +2 -2
- package/dist/context/decorators/context-selection-delivery.js.map +1 -1
- package/dist/context/decorators/context-selector.d.ts +0 -5
- package/dist/context/decorators/context-selector.js +2 -2
- package/dist/context/decorators/context-selector.js.map +1 -1
- package/dist/context/decorators/legacy/consume-context.js +2 -2
- package/dist/context/decorators/legacy/consume-context.js.map +1 -1
- package/dist/context/decorators/legacy/context-selector-field.js +2 -2
- package/dist/context/decorators/legacy/context-selector-field.js.map +1 -1
- package/dist/context/decorators/legacy/context-selector.js +2 -2
- package/dist/context/decorators/legacy/context-selector.js.map +1 -1
- package/dist/context/decorators/legacy/provide-context.js +2 -2
- package/dist/context/decorators/legacy/provide-context.js.map +1 -1
- package/dist/context/decorators/on-context-update.js +2 -2
- package/dist/context/decorators/on-context-update.js.map +1 -1
- package/dist/context/decorators/provide-context.js +2 -2
- package/dist/context/decorators/provide-context.js.map +1 -1
- package/dist/context/decorators/standard/consume-context.js +2 -2
- package/dist/context/decorators/standard/consume-context.js.map +1 -1
- package/dist/context/decorators/standard/context-selector-field.js +2 -2
- package/dist/context/decorators/standard/context-selector-field.js.map +1 -1
- package/dist/context/decorators/standard/context-selector.js +2 -2
- package/dist/context/decorators/standard/context-selector.js.map +1 -1
- package/dist/context/decorators/standard/provide-context.js +2 -2
- package/dist/context/decorators/standard/provide-context.js.map +1 -1
- package/dist/context/events.js +2 -2
- package/dist/context/events.js.map +1 -1
- package/dist/context/hydration-script.d.ts +0 -4
- package/dist/context/hydration-script.js +2 -2
- package/dist/context/hydration-script.js.map +1 -1
- package/dist/core/custom-element-metadata.js +2 -2
- package/dist/core/custom-element-metadata.js.map +1 -1
- package/dist/core/hydration-codec.js +2 -2
- package/dist/core/hydration-codec.js.map +1 -1
- 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.js +2 -2
- package/dist/core/radiant-component-ssr.js.map +1 -1
- package/dist/core/radiant-component.d.ts +9 -2
- package/dist/core/radiant-component.js +2 -2
- package/dist/core/radiant-component.js.map +1 -1
- package/dist/core/radiant-element.js +2 -2
- package/dist/core/radiant-element.js.map +1 -1
- 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.js +2 -2
- package/dist/core/reactive-jsx-value.js.map +1 -1
- package/dist/core/reactive-prop-metadata.js +2 -2
- package/dist/core/reactive-prop-metadata.js.map +1 -1
- package/dist/core/{slot-projection.d.ts → slot-projection-runtime.d.ts} +0 -20
- package/dist/core/slot-projection-runtime.js +3 -0
- package/dist/core/slot-projection-runtime.js.map +9 -0
- package/dist/core/ssr-preparation.js +2 -2
- package/dist/core/ssr-preparation.js.map +1 -1
- package/dist/decorators/bound.js +2 -2
- package/dist/decorators/bound.js.map +1 -1
- package/dist/decorators/bridge.js +2 -2
- package/dist/decorators/bridge.js.map +1 -1
- package/dist/decorators/custom-element.js +2 -2
- package/dist/decorators/custom-element.js.map +1 -1
- package/dist/decorators/debounce.js +2 -2
- package/dist/decorators/debounce.js.map +1 -1
- package/dist/decorators/event.js +2 -2
- package/dist/decorators/event.js.map +1 -1
- package/dist/decorators/legacy/bound.js +2 -2
- package/dist/decorators/legacy/bound.js.map +1 -1
- package/dist/decorators/legacy/custom-element.js +2 -2
- package/dist/decorators/legacy/custom-element.js.map +1 -1
- package/dist/decorators/legacy/debounce.js +2 -2
- package/dist/decorators/legacy/debounce.js.map +1 -1
- package/dist/decorators/legacy/event.js +2 -2
- package/dist/decorators/legacy/event.js.map +1 -1
- package/dist/decorators/legacy/instance-initializers.js +2 -2
- package/dist/decorators/legacy/instance-initializers.js.map +1 -1
- package/dist/decorators/legacy/on-event.js +2 -2
- package/dist/decorators/legacy/on-event.js.map +1 -1
- package/dist/decorators/legacy/on-updated.js +2 -2
- package/dist/decorators/legacy/on-updated.js.map +1 -1
- package/dist/decorators/legacy/query-slot.js +2 -2
- package/dist/decorators/legacy/query-slot.js.map +1 -1
- package/dist/decorators/legacy/query.js +2 -2
- package/dist/decorators/legacy/query.js.map +1 -1
- package/dist/decorators/legacy/reactive-field.js +2 -2
- package/dist/decorators/legacy/reactive-field.js.map +1 -1
- package/dist/decorators/legacy/reactive-prop.js +2 -2
- package/dist/decorators/legacy/reactive-prop.js.map +1 -1
- package/dist/decorators/legacy/signal.js +2 -2
- package/dist/decorators/legacy/signal.js.map +1 -1
- package/dist/decorators/on-event.js +2 -2
- package/dist/decorators/on-event.js.map +1 -1
- package/dist/decorators/on-updated.js +2 -2
- package/dist/decorators/on-updated.js.map +1 -1
- package/dist/decorators/prop.js +2 -2
- package/dist/decorators/prop.js.map +1 -1
- package/dist/decorators/query-slot.js +2 -2
- package/dist/decorators/query-slot.js.map +1 -1
- package/dist/decorators/query.js +2 -2
- package/dist/decorators/query.js.map +1 -1
- package/dist/decorators/signal.js +2 -2
- package/dist/decorators/signal.js.map +1 -1
- package/dist/decorators/standard/bound.js +2 -2
- package/dist/decorators/standard/bound.js.map +1 -1
- package/dist/decorators/standard/custom-element.js +2 -2
- package/dist/decorators/standard/custom-element.js.map +1 -1
- package/dist/decorators/standard/debounce.js +2 -2
- package/dist/decorators/standard/debounce.js.map +1 -1
- package/dist/decorators/standard/event.js +2 -2
- package/dist/decorators/standard/event.js.map +1 -1
- package/dist/decorators/standard/on-event.js +2 -2
- package/dist/decorators/standard/on-event.js.map +1 -1
- package/dist/decorators/standard/on-updated.js +2 -2
- package/dist/decorators/standard/on-updated.js.map +1 -1
- package/dist/decorators/standard/query-slot.js +2 -2
- package/dist/decorators/standard/query-slot.js.map +1 -1
- package/dist/decorators/standard/query.js +2 -2
- package/dist/decorators/standard/query.js.map +1 -1
- package/dist/decorators/standard/reactive-field.js +2 -2
- package/dist/decorators/standard/reactive-field.js.map +1 -1
- package/dist/decorators/standard/reactive-prop.js +2 -2
- package/dist/decorators/standard/reactive-prop.js.map +1 -1
- package/dist/decorators/standard/signal.js +2 -2
- package/dist/decorators/standard/signal.js.map +1 -1
- package/dist/decorators/state.js +2 -2
- package/dist/decorators/state.js.map +1 -1
- package/dist/helpers/create-event-listener.js +2 -2
- package/dist/helpers/create-event-listener.js.map +1 -1
- package/dist/helpers/create-event.js +2 -2
- package/dist/helpers/create-event.js.map +1 -1
- package/dist/helpers/create-query-slot.js +2 -2
- package/dist/helpers/create-query-slot.js.map +1 -1
- package/dist/helpers/create-query.js +2 -2
- package/dist/helpers/create-query.js.map +1 -1
- package/dist/helpers/debounce.js +2 -2
- package/dist/helpers/debounce.js.map +1 -1
- package/dist/helpers/index.js +2 -2
- package/dist/helpers/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server/context-ssr.js +2 -2
- package/dist/server/context-ssr.js.map +1 -1
- 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.js +2 -2
- package/dist/server/install-light-dom-shim.js.map +2 -2
- package/dist/server/light-dom-shim.js +2 -2
- package/dist/server/light-dom-shim.js.map +1 -1
- package/dist/server/project-root.js +1 -1
- 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 +5 -5
- package/dist/server/render-component.js +2 -2
- package/dist/server/render-component.js.map +3 -3
- 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.js +1 -1
- package/dist/signals/host-signal.js +2 -2
- package/dist/signals/host-signal.js.map +1 -1
- package/dist/signals/hydration-script.d.ts +0 -4
- package/dist/signals/hydration-script.js +2 -2
- package/dist/signals/hydration-script.js.map +1 -1
- package/dist/tools/escape-script-json.js +2 -2
- package/dist/tools/escape-script-json.js.map +1 -1
- package/dist/tools/event-emitter.js +2 -2
- package/dist/tools/event-emitter.js.map +1 -1
- package/dist/tools/index.js +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/render-jsx-template.js +1 -1
- package/dist/tools/stringify-typed.js +1 -1
- package/dist/types.d.ts +0 -21
- package/dist/types.js +1 -1
- package/dist/types.js.map +2 -2
- package/dist/utils/attribute-utils.js +2 -2
- package/dist/utils/attribute-utils.js.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +14 -1
- package/size-budget.json +2 -8
- package/dist/chunk-0y78f8hj.js +0 -4
- package/dist/chunk-0zq7e1ne.js +0 -4
- package/dist/chunk-147yvtsn.js +0 -4
- package/dist/chunk-17earqbr.js +0 -4
- package/dist/chunk-17earqbr.js.map +0 -10
- package/dist/chunk-2tgrfv09.js +0 -4
- package/dist/chunk-3b033cgq.js +0 -4
- package/dist/chunk-42tyhfvh.js +0 -4
- package/dist/chunk-4fqkmpra.js +0 -4
- package/dist/chunk-5bym7y1d.js +0 -4
- package/dist/chunk-5td6v9k3.js +0 -4
- package/dist/chunk-60015zxq.js +0 -4
- package/dist/chunk-60q4y3k5.js +0 -4
- package/dist/chunk-6kdxrppw.js +0 -4
- package/dist/chunk-6kdxrppw.js.map +0 -10
- package/dist/chunk-6z34stya.js +0 -4
- package/dist/chunk-6z34stya.js.map +0 -10
- package/dist/chunk-9554n9t4.js +0 -4
- package/dist/chunk-9ascmjk3.js +0 -4
- package/dist/chunk-9ascmjk3.js.map +0 -10
- package/dist/chunk-a7hzs37s.js +0 -4
- package/dist/chunk-aajhkdmn.js +0 -4
- package/dist/chunk-ak97hp4w.js +0 -4
- package/dist/chunk-c8vqg7r1.js +0 -4
- package/dist/chunk-d4v5qpxa.js +0 -4
- package/dist/chunk-d7hh3ze6.js +0 -4
- package/dist/chunk-d98q3myg.js +0 -4
- package/dist/chunk-jce9gqqw.js +0 -4
- package/dist/chunk-jce9gqqw.js.map +0 -10
- package/dist/chunk-mpjnqmbq.js +0 -4
- package/dist/chunk-mqxmfvyp.js +0 -4
- package/dist/chunk-nw171z6m.js +0 -4
- package/dist/chunk-nw171z6m.js.map +0 -10
- package/dist/chunk-p6pxdvkk.js +0 -4
- package/dist/chunk-qe6sjr27.js +0 -4
- package/dist/chunk-r1cvaz1t.js +0 -4
- package/dist/chunk-r1cvaz1t.js.map +0 -10
- package/dist/chunk-r75y7ydb.js +0 -4
- package/dist/chunk-t7a1bbxq.js +0 -4
- package/dist/chunk-vpfm9yw8.js +0 -4
- package/dist/chunk-w50v38rv.js +0 -4
- package/dist/chunk-zb7wh7w4.js +0 -4
- package/dist/chunk-zj9ez73m.js +0 -4
- package/dist/core/slot-projection.js +0 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{wb as a}from"../chunk-nssj2x13.js";import"../chunk-vgtggzb6.js";export{a as escapeScriptJson};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=41664B185705318B64756E2164756E21
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{yb as a}from"../chunk-wvd1ffe4.js";import"../chunk-vgtggzb6.js";export{a as EventEmitter};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=139B84C5FD630AF664756E2164756E21
|
package/dist/tools/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as x}from"../chunk-jkb2y7c8.js";import{b as a}from"../chunk-cvz9mrxa.js";import{
|
|
1
|
+
import{a as x}from"../chunk-jkb2y7c8.js";import{b as a}from"../chunk-cvz9mrxa.js";import{wb as p}from"../chunk-nssj2x13.js";import{yb as t}from"../chunk-wvd1ffe4.js";import"../chunk-vgtggzb6.js";export{a as stringifyTyped,x as renderJsxTemplate,p as escapeScriptJson,t as EventEmitter};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=328891D7088CB96064756E2164756E21
|
package/dist/tools/index.js.map
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -17,13 +17,6 @@ export type Context = {
|
|
|
17
17
|
};
|
|
18
18
|
export type ClassDecorator = <T extends Constructor>(target: T, context: Context) => T | void;
|
|
19
19
|
export type Method = (...args: any[]) => any;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated
|
|
22
|
-
*/
|
|
23
|
-
export type StanderOrLegacyClassDecorator = {
|
|
24
|
-
(target: Constructor): typeof target | void;
|
|
25
|
-
(target: CustomElementConstructor, context: ClassDecoratorContext): void;
|
|
26
|
-
};
|
|
27
20
|
export type LegacyClassDecoratorArgs = {
|
|
28
21
|
protoOrTarget: CustomElementConstructor;
|
|
29
22
|
nameOrContext: string;
|
|
@@ -34,13 +27,6 @@ export type StandardClassDecoratorArgs = {
|
|
|
34
27
|
nameOrContext: ClassDecoratorContext;
|
|
35
28
|
};
|
|
36
29
|
export type StandardOrLegacyClassDecoratorArgs = LegacyClassDecoratorArgs | StandardClassDecoratorArgs;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
export type StandardOrLegacMethodDecorator = {
|
|
41
|
-
(proto: Constructor<HTMLElement>): PropertyDescriptor;
|
|
42
|
-
(target: Method, context: ClassMethodDecoratorContext): void;
|
|
43
|
-
};
|
|
44
30
|
export type LegacyMethodDecoratorArgs = {
|
|
45
31
|
protoOrTarget: RadiantElement;
|
|
46
32
|
nameOrContext: string;
|
|
@@ -52,13 +38,6 @@ export type StandardMethodDecoratorArgs = {
|
|
|
52
38
|
descriptor: undefined;
|
|
53
39
|
};
|
|
54
40
|
export type StandardOrLegacyMethodDecoratorArgs = LegacyMethodDecoratorArgs | StandardMethodDecoratorArgs;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated
|
|
57
|
-
*/
|
|
58
|
-
export type StandardOrLegacyClassFieldDecorator = {
|
|
59
|
-
(proto: RadiantElement, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
60
|
-
(target: undefined, context: ClassFieldDecoratorContext): void;
|
|
61
|
-
};
|
|
62
41
|
export type LegacyFieldDecoratorArgs = {
|
|
63
42
|
protoOrTarget: RadiantElement;
|
|
64
43
|
nameOrContext: string;
|
package/dist/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./chunk-
|
|
1
|
+
import"./chunk-vgtggzb6.js";var r={isStandard:{ClassDecorator:function(t){return typeof t[1]<"u"},MethodDecorator:function(t){return typeof t[1]==="object"},FieldDecorator:function(t){return typeof t[1]==="object"}}};export{r as guards};
|
|
2
2
|
|
|
3
3
|
//# debugId=91D7439E7D31B5DD64756E2164756E21
|
package/dist/types.js.map
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/types.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from './core/radiant-element';\n\nexport type Constructor<T = unknown> = { new (...args: any[]): NonNullable<T> };\n\nexport type ConstructorParams<T extends Constructor> = ConstructorParameters<T>;\n\nexport type Context = {\n\tkind: string;\n\tname: string | symbol;\n\taccess: {\n\t\tget?(): unknown;\n\t\tset?(value: unknown): void;\n\t\thas?(value: unknown): boolean;\n\t};\n\tprivate?: boolean;\n\tstatic?: boolean;\n\taddInitializer?(initializer: () => void): void;\n};\n\nexport type ClassDecorator = <T extends Constructor>(target: T, context: Context) => T | void;\n\nexport type Method = (...args: any[]) => any;\n\
|
|
5
|
+
"import type { RadiantElement } from './core/radiant-element';\n\nexport type Constructor<T = unknown> = { new (...args: any[]): NonNullable<T> };\n\nexport type ConstructorParams<T extends Constructor> = ConstructorParameters<T>;\n\nexport type Context = {\n\tkind: string;\n\tname: string | symbol;\n\taccess: {\n\t\tget?(): unknown;\n\t\tset?(value: unknown): void;\n\t\thas?(value: unknown): boolean;\n\t};\n\tprivate?: boolean;\n\tstatic?: boolean;\n\taddInitializer?(initializer: () => void): void;\n};\n\nexport type ClassDecorator = <T extends Constructor>(target: T, context: Context) => T | void;\n\nexport type Method = (...args: any[]) => any;\n\nexport type LegacyClassDecoratorArgs = {\n\tprotoOrTarget: CustomElementConstructor;\n\tnameOrContext: string;\n\tdescriptor: PropertyDescriptor;\n};\n\nexport type StandardClassDecoratorArgs = {\n\tprotoOrTarget: CustomElementConstructor;\n\tnameOrContext: ClassDecoratorContext;\n};\n\nexport type StandardOrLegacyClassDecoratorArgs = LegacyClassDecoratorArgs | StandardClassDecoratorArgs;\n\nexport type LegacyMethodDecoratorArgs = {\n\tprotoOrTarget: RadiantElement;\n\tnameOrContext: string;\n\tdescriptor: PropertyDescriptor;\n};\n\nexport type StandardMethodDecoratorArgs = {\n\tprotoOrTarget: Method;\n\tnameOrContext: ClassMethodDecoratorContext;\n\tdescriptor: undefined;\n};\n\nexport type StandardOrLegacyMethodDecoratorArgs = LegacyMethodDecoratorArgs | StandardMethodDecoratorArgs;\n\nexport type LegacyFieldDecoratorArgs = {\n\tprotoOrTarget: RadiantElement;\n\tnameOrContext: string;\n\tdescriptor: PropertyDescriptor;\n};\n\nexport type StandardFieldDecoratorArgs<T = unknown, V = unknown> = {\n\tprotoOrTarget: undefined;\n\tnameOrContext: ClassFieldDecoratorContext<T, V>;\n};\n\nexport type StandardOrLegacyFieldDecoratorArgs = LegacyFieldDecoratorArgs | StandardFieldDecoratorArgs;\n\nexport type CustomElementClass = Omit<typeof HTMLElement, 'new'>;\n\nexport const guards = {\n\tisStandard: {\n\t\tClassDecorator: function (\n\t\t\targs: any,\n\t\t): args is [CustomElementConstructor, ClassDecoratorContext<CustomElementConstructor>] {\n\t\t\treturn typeof args[1] !== 'undefined';\n\t\t},\n\t\tMethodDecorator: function (args: any): args is [Method, ClassMethodDecoratorContext] {\n\t\t\treturn typeof args[1] === 'object';\n\t\t},\n\t\tFieldDecorator: function (args: any): args is [undefined, ClassFieldDecoratorContext] {\n\t\t\treturn typeof args[1] === 'object';\n\t\t},\n\t},\n};\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": "
|
|
7
|
+
"mappings": "4BAiEO,IAAM,EAAS,CACrB,WAAY,CACX,eAAgB,QAAS,CACxB,EACsF,CACtF,OAAO,OAAO,EAAK,GAAO,KAE3B,gBAAiB,QAAS,CAAC,EAA0D,CACpF,OAAO,OAAO,EAAK,KAAO,UAE3B,eAAgB,QAAS,CAAC,EAA4D,CACrF,OAAO,OAAO,EAAK,KAAO,SAE5B,CACD",
|
|
8
8
|
"debugId": "91D7439E7D31B5DD64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ab as a,bb as b,cb as c,db as d,eb as e,fb as f,gb as g}from"../chunk-66e6s792.js";import"../chunk-vgtggzb6.js";export{e as writeAttributeValue,d as readAttributeValue,b as parseAttributeTypeDefault,a as parseAttributeTypeConstant,f as isValueOfType,g as getInitialValue,c as defaultValueForType};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=C2F55D0EA13687F864756E2164756E21
|
package/dist/utils/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ab as e,bb as f,cb as m,db as p,eb as t,fb as x,gb as a}from"../chunk-66e6s792.js";import"../chunk-vgtggzb6.js";export{t as writeAttributeValue,p as readAttributeValue,f as parseAttributeTypeDefault,e as parseAttributeTypeConstant,x as isValueOfType,a as getInitialValue,m as defaultValueForType};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=93B92726ADA25D5364756E2164756E21
|
package/dist/utils/index.js.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecopages/radiant",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
3
|
+
"version": "0.3.0-alpha.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/ecopages/radiant.git"
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"size-budget.json"
|
|
49
49
|
],
|
|
50
50
|
"sideEffects": [
|
|
51
|
+
"./dist/client/install-hydrator.js",
|
|
51
52
|
"./dist/server/install-light-dom-shim.js"
|
|
52
53
|
],
|
|
53
54
|
"exports": {
|
|
@@ -86,6 +87,10 @@
|
|
|
86
87
|
"types": "./dist/context/decorators/on-context-update.d.ts",
|
|
87
88
|
"import": "./dist/context/decorators/on-context-update.js"
|
|
88
89
|
},
|
|
90
|
+
"./context/events": {
|
|
91
|
+
"types": "./dist/context/events.d.ts",
|
|
92
|
+
"import": "./dist/context/events.js"
|
|
93
|
+
},
|
|
89
94
|
"./core/radiant-element": {
|
|
90
95
|
"types": "./dist/core/radiant-element.d.ts",
|
|
91
96
|
"import": "./dist/core/radiant-element.js"
|
|
@@ -94,6 +99,14 @@
|
|
|
94
99
|
"types": "./dist/core/radiant-component.d.ts",
|
|
95
100
|
"import": "./dist/core/radiant-component.js"
|
|
96
101
|
},
|
|
102
|
+
"./client/hydrator": {
|
|
103
|
+
"types": "./dist/client/hydrator.d.ts",
|
|
104
|
+
"import": "./dist/client/hydrator.js"
|
|
105
|
+
},
|
|
106
|
+
"./client/install-hydrator": {
|
|
107
|
+
"types": "./dist/client/install-hydrator.d.ts",
|
|
108
|
+
"import": "./dist/client/install-hydrator.js"
|
|
109
|
+
},
|
|
97
110
|
"./signals/host-resource": {
|
|
98
111
|
"types": "./dist/signals/host-resource.d.ts",
|
|
99
112
|
"import": "./dist/signals/host-resource.js"
|
package/size-budget.json
CHANGED
|
@@ -6,17 +6,11 @@
|
|
|
6
6
|
"maxBytes": 46080,
|
|
7
7
|
"maxGzipBytes": 12288
|
|
8
8
|
},
|
|
9
|
-
{
|
|
10
|
-
"label": "client-typical",
|
|
11
|
-
"entrypoint": "./size-audit/client-typical.ts",
|
|
12
|
-
"maxBytes": 15360,
|
|
13
|
-
"maxGzipBytes": 4608
|
|
14
|
-
},
|
|
15
9
|
{
|
|
16
10
|
"label": "server-render",
|
|
17
11
|
"entrypoint": "./src/server/render-component.ts",
|
|
18
|
-
"maxBytes":
|
|
19
|
-
"maxGzipBytes":
|
|
12
|
+
"maxBytes": 15360,
|
|
13
|
+
"maxGzipBytes": 5120
|
|
20
14
|
}
|
|
21
15
|
]
|
|
22
16
|
}
|
package/dist/chunk-0y78f8hj.js
DELETED
package/dist/chunk-0zq7e1ne.js
DELETED
package/dist/chunk-147yvtsn.js
DELETED
package/dist/chunk-17earqbr.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{H as G}from"./chunk-84fc8cz9.js";import{I as B,J as D,K as Q,L as U,M as V,N as W,O as X,P as Y,Q as Z,R as _}from"./chunk-9ascmjk3.js";import{X as K}from"./chunk-9554n9t4.js";import{ga as L}from"./chunk-8dexhy6c.js";import{gb as O}from"./chunk-ksv01cey.js";import{hasHydrationMarkers as F,hydrate as $,jsx as A,render as E}from"@ecopages/jsx";import{renderToString as J}from"@ecopages/jsx/server";import{Computed as T,subtle as I}from"@ecopages/signals";class v extends G{isRendering=!1;isFirstConnectPending=!1;isRenderScheduled=!1;needsRender=!1;projectedSlotContent=new Map;renderSignal;renderWatcher=new I.Watcher(()=>{this.requestUpdate()});slotProjectionObserver;slotProjectionVersion=0;ssr=new K({constructor:this.constructor,getAuthoredHydrationScriptMarkup:()=>this.getAuthoredHydrationScriptMarkup(),getHydrationBindings:()=>this.getHydrationBindings(),getSlotProjectionScriptTag:()=>this.getSlotProjectionScriptTag(),renderToString:(f)=>this.renderToString(f),getContextProviders:()=>this.getContextProviders(),getReactiveProperties:()=>this.getReactiveProperties(),getReactivePropDefinitions:()=>L(this),getPropertyValue:(f)=>this[f],listAttributeNames:()=>typeof this.getAttributeNames==="function"?this.getAttributeNames():[],getAttributeValue:(f)=>this.getAttribute(f)});connectedCallback(){if(super.connectedCallback(),this.isFirstConnectPending)return;this.isFirstConnectPending=!0,queueMicrotask(()=>{if(this.isFirstConnectPending=!1,!this.isConnected)return;if(this.ensureSlotProjectionState(),this.observeSlotProjection(),F(this)){if(this.needsRender=!1,this.hydrate(),this.needsRender)this.update();return}this.update()})}render(){return A("slot",{})}renderToString(f={}){return this.prepareForSsr(),J(this.resolveTrackedRenderOutput().value,f)}renderHost(){return this.ssr.renderHost()}renderHostToString(f={}){return this.ssr.renderHostToString(f,this.getHostSsrAttributes())}hydrate(){if(!this.isConnected||this.isRendering)return;this.isRendering=!0,this.disconnectSlotProjectionObserver();try{$(this.resolveTrackedRenderOutput().value,this)}finally{this.isRendering=!1,this.observeSlotProjection()}}requestUpdate(){if(this.needsRender=!0,this.isRenderScheduled)return;this.isRenderScheduled=!0,queueMicrotask(()=>{if(this.isRenderScheduled=!1,!this.needsRender)return;this.update()})}update(){if(this.needsRender=!0,!this.isConnected||this.isRendering)return;if(this.isFirstConnectPending&&F(this))return;while(this.needsRender&&this.isConnected){this.needsRender=!1,this.isRendering=!0,this.disconnectSlotProjectionObserver();try{E(this.resolveTrackedRenderOutput().value,this)}finally{this.isRendering=!1,this.observeSlotProjection()}}}disconnectedCallback(){this.disconnectSlotProjectionObserver(),this.disconnectRenderWatcher(),super.disconnectedCallback()}getSlotElement(f){return this.getSlotElements(f)[0]??null}getSlotElements(f){return this.ensureSlotProjectionState(),(this.projectedSlotContent.get(f??B)??[]).filter((q)=>typeof Node<"u"&&q instanceof Element)}shouldAutoBindReactiveMembers(){return!0}getHostSsrAttributes(){return this.ssr.getHostAttributes()}ensureSlotProjectionState(){if(this.projectedSlotContent.size>0)return;let f=this.isConnected?_(this):void 0;if(typeof f==="string"&&f!==""){this.projectedSlotContent=U(f),this.slotProjectionVersion+=1;return}if(this.getHostChildNodeCount()>0){this.projectedSlotContent=Q(this),this.slotProjectionVersion+=1;return}let q=typeof this.innerHTML==="string"?this.innerHTML:"";if(!this.isConnected&&q!=="")this.projectedSlotContent=V(q),this.slotProjectionVersion+=1}getHostChildNodeCount(){return"childNodes"in this&&this.childNodes?this.childNodes.length:0}getSlotProjectionScriptTag(){this.ensureSlotProjectionState();let f=Y(this.projectedSlotContent);if(!f)return;return`<script type="application/json" ${D}>${C(f)}</script>`}getAuthoredHydrationScriptMarkup(){let f=W(this);if(f)return f;let q=typeof this.innerHTML==="string"?this.innerHTML:"";if(q==="")return;return X(q)}handleSlotProjectionMutations(f){let q=!1;for(let w of f){for(let z of Array.from(w.removedNodes))if(this.removeProjectedSlotNode(z))q=!0;for(let z of Array.from(w.addedNodes)){if(z.parentNode!==this)continue;if(this.addProjectedSlotNode(z))q=!0}}if(q)this.slotProjectionVersion+=1,this.update()}addProjectedSlotNode(f){if(f instanceof HTMLScriptElement&&(f.hasAttribute(D)||f.hasAttribute(O)))return!1;let q=f instanceof Element?f.getAttribute("slot")??B:B,w=this.projectedSlotContent.get(q);if(w){if(w.includes(f))return!1;return w.push(f),!0}return this.projectedSlotContent.set(q,[f]),!0}removeProjectedSlotNode(f){for(let[q,w]of this.projectedSlotContent.entries()){let z=w.indexOf(f);if(z===-1)continue;if(w.splice(z,1),w.length===0)this.projectedSlotContent.delete(q);return!0}return!1}observeSlotProjection(){if(typeof MutationObserver>"u"||this.slotProjectionObserver||!this.isConnected)return;this.slotProjectionObserver=new MutationObserver((f)=>this.handleSlotProjectionMutations(f)),this.slotProjectionObserver.observe(this,{childList:!0})}disconnectSlotProjectionObserver(){this.slotProjectionObserver?.disconnect(),this.slotProjectionObserver=void 0}disconnectRenderWatcher(){if(!this.renderSignal)return;this.renderWatcher.unwatch(this.renderSignal),this.renderSignal=void 0}resolveTrackedRenderOutput(){let f=new T(()=>this.resolveRenderOutput()),q=f.get();if(!this.isConnected)return q;if(this.renderSignal)this.renderWatcher.unwatch(this.renderSignal);return this.renderSignal=f,this.renderWatcher.watch(f),q}resolveRenderOutput(){return this.ensureSlotProjectionState(),Z(this.render(),this.projectedSlotContent)}}function C(f){return f.replace(/</g,"\\u003c")}
|
|
2
|
-
export{v as G};
|
|
3
|
-
|
|
4
|
-
//# debugId=B0226C1DEFFA435E64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/core/radiant-component.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import {\n\thasHydrationMarkers,\n\thydrate as hydrateJsx,\n\tjsx,\n\trender as renderJsx,\n\ttype JsxRenderable,\n} from '@ecopages/jsx';\nimport { renderToString as renderJsxToString, type RenderToStringOptions } from '@ecopages/jsx/server';\nimport { Computed, subtle } from '@ecopages/signals';\nimport { RadiantComponentSsrService } from './radiant-component-ssr';\nimport { getReactivePropDefinitions } from './reactive-prop-metadata';\nimport { RadiantElement } from './radiant-element';\nimport {\n\tDEFAULT_SLOT_NAME,\n\tSLOT_PROJECTION_SCRIPT_ATTRIBUTE,\n\tcollectAuthoredHydrationScriptMarkup,\n\tcollectAuthoredHydrationScriptMarkupFromHtml,\n\tcaptureProjectedSlotRenderables,\n\tdeserializeProjectedSlotRenderables,\n\tparseProjectedSlotRenderablesFromHtml,\n\tresolveSlotProjection,\n\tserializeProjectedSlotRenderables,\n\ttakeSlotProjectionScriptPayload,\n} from './slot-projection';\nimport { HYDRATION_ATTRIBUTE } from './hydration-codec';\n\n/**\n * A structured JSX-first Radiant base class.\n * @typeParam Bindings - Explicit internal bindable shape. Include only the\n * prop/state keys that JSX bindings should accept.\n *\n * Treat this as the component's internal reactive/bindable surface, not as the\n * default public custom-element attribute contract. When a component exposes a\n * narrower external API than its internal state, declare a separate public\n * props type for the JSX intrinsic element and keep internal-only state out of\n * that contract.\n *\n * Reusing the same type for both is fine only when the public props and the\n * bindable reactive members are intentionally the same surface.\n *\n * - `render()` describes the view.\n * - `update()` commits the current view into the host.\n * - first render happens automatically on connect.\n * - plain `@prop`, `@state`, and `@signal` reads performed during `render()`\n * participate in tracked rerender invalidation.\n * - `update()` and `requestUpdate()` remain available when a rerender should be\n * scheduled from imperative work outside those tracked reads.\n */\nexport class RadiantComponent<Bindings extends object = {}> extends RadiantElement<Bindings> {\n\tprivate isRendering = false;\n\tprivate isFirstConnectPending = false;\n\tprivate isRenderScheduled = false;\n\tprivate needsRender = false;\n\tprivate projectedSlotContent = new Map<string, JsxRenderable[]>();\n\tprivate renderSignal?: Computed<{ containsSlots: boolean; value: JsxRenderable }>;\n\tprivate readonly renderWatcher = new subtle.Watcher(() => {\n\t\tthis.requestUpdate();\n\t});\n\tprivate slotProjectionObserver?: MutationObserver;\n\tprivate slotProjectionVersion = 0;\n\tprivate readonly ssr = new RadiantComponentSsrService({\n\t\tconstructor: this.constructor as CustomElementConstructor,\n\t\tgetAuthoredHydrationScriptMarkup: () => this.getAuthoredHydrationScriptMarkup(),\n\t\tgetHydrationBindings: () => this.getHydrationBindings(),\n\t\tgetSlotProjectionScriptTag: () => this.getSlotProjectionScriptTag(),\n\t\trenderToString: (options) => this.renderToString(options),\n\t\tgetContextProviders: () => this.getContextProviders(),\n\t\tgetReactiveProperties: () => this.getReactiveProperties(),\n\t\tgetReactivePropDefinitions: () => getReactivePropDefinitions(this),\n\t\tgetPropertyValue: (name) => (this as Record<string, unknown>)[name],\n\t\tlistAttributeNames: () => (typeof this.getAttributeNames === 'function' ? this.getAttributeNames() : []),\n\t\tgetAttributeValue: (name) => this.getAttribute(name),\n\t});\n\n\toverride connectedCallback() {\n\t\tsuper.connectedCallback();\n\n\t\tif (this.isFirstConnectPending) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isFirstConnectPending = true;\n\n\t\tqueueMicrotask(() => {\n\t\t\tthis.isFirstConnectPending = false;\n\n\t\t\tif (!this.isConnected) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.ensureSlotProjectionState();\n\t\t\tthis.observeSlotProjection();\n\n\t\t\tif (hasHydrationMarkers(this)) {\n\t\t\t\tthis.needsRender = false;\n\t\t\t\tthis.hydrate();\n\n\t\t\t\tif (this.needsRender) {\n\t\t\t\t\tthis.update();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.update();\n\t\t});\n\t}\n\n\t/**\n\t * Returns the current component view.\n\t *\n\t * The base implementation behaves like `<slot />`, so authored host children\n\t * pass through unchanged when a subclass does not override `render()`.\n\t */\n\tpublic render(): JsxRenderable {\n\t\treturn jsx('slot', {});\n\t}\n\n\t/**\n\t * Serializes the current component view into HTML.\n\t */\n\tpublic renderToString(options: RenderToStringOptions = {}): string {\n\t\tthis.prepareForSsr();\n\n\t\treturn renderJsxToString(this.resolveTrackedRenderOutput().value, options);\n\t}\n\n\t/**\n\t * Returns the component host and current view as a JSX element.\n\t */\n\tpublic renderHost(): JsxRenderable {\n\t\treturn this.ssr.renderHost();\n\t}\n\n\t/**\n\t * Serializes the component host and current view into HTML.\n\t */\n\tpublic renderHostToString(options: RenderToStringOptions = {}): string {\n\t\treturn this.ssr.renderHostToString(options, this.getHostSsrAttributes());\n\t}\n\n\t/**\n\t * Hydrates an SSR-rendered component view in place.\n\t */\n\tpublic hydrate(): void {\n\t\tif (!this.isConnected || this.isRendering) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isRendering = true;\n\t\tthis.disconnectSlotProjectionObserver();\n\n\t\ttry {\n\t\t\thydrateJsx(this.resolveTrackedRenderOutput().value, this);\n\t\t} finally {\n\t\t\tthis.isRendering = false;\n\t\t\tthis.observeSlotProjection();\n\t\t}\n\t}\n\n\t/**\n\t * Queues a component rerender and coalesces repeated requests into the same\n\t * microtask.\n\t *\n\t * Use this when reactive state may change multiple times in the same turn and\n\t * the current view should refresh once with the final values.\n\t */\n\tpublic requestUpdate(): void {\n\t\tthis.needsRender = true;\n\n\t\tif (this.isRenderScheduled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isRenderScheduled = true;\n\n\t\tqueueMicrotask(() => {\n\t\t\tthis.isRenderScheduled = false;\n\n\t\t\tif (!this.needsRender) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.update();\n\t\t});\n\t}\n\n\t/**\n\t * Explicitly rerenders the component into its host.\n\t */\n\tpublic update(): void {\n\t\tthis.needsRender = true;\n\n\t\tif (!this.isConnected || this.isRendering) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.isFirstConnectPending && hasHydrationMarkers(this)) {\n\t\t\treturn;\n\t\t}\n\n\t\twhile (this.needsRender && this.isConnected) {\n\t\t\tthis.needsRender = false;\n\t\t\tthis.isRendering = true;\n\t\t\tthis.disconnectSlotProjectionObserver();\n\n\t\t\ttry {\n\t\t\t\trenderJsx(this.resolveTrackedRenderOutput().value, this);\n\t\t\t} finally {\n\t\t\t\tthis.isRendering = false;\n\t\t\t\tthis.observeSlotProjection();\n\t\t\t}\n\t\t}\n\t}\n\n\toverride disconnectedCallback() {\n\t\tthis.disconnectSlotProjectionObserver();\n\t\tthis.disconnectRenderWatcher();\n\t\tsuper.disconnectedCallback();\n\t}\n\n\t/**\n\t * Returns the first projected element assigned to the default or named slot.\n\t *\n\t * Use this when component logic needs direct access to authored light-DOM\n\t * content after projection.\n\t *\n\t * @param name Optional slot name. Omit for the default slot.\n\t */\n\tpublic getSlotElement<T extends Element = Element>(name?: string): T | null {\n\t\treturn (this.getSlotElements<T>(name)[0] ?? null) as T | null;\n\t}\n\n\t/**\n\t * Returns all projected elements assigned to the default or named slot.\n\t *\n\t * Text nodes are intentionally excluded so the result matches the element-\n\t * oriented query semantics used by Radiant decorators.\n\t *\n\t * @param name Optional slot name. Omit for the default slot.\n\t */\n\tpublic getSlotElements<T extends Element = Element>(name?: string): T[] {\n\t\tthis.ensureSlotProjectionState();\n\n\t\treturn (this.projectedSlotContent.get(name ?? DEFAULT_SLOT_NAME) ?? []).filter(\n\t\t\t(renderable): renderable is T => typeof Node !== 'undefined' && renderable instanceof Element,\n\t\t);\n\t}\n\n\tprotected override shouldAutoBindReactiveMembers(): boolean {\n\t\treturn true;\n\t}\n\n\tprotected getHostSsrAttributes(): Record<string, string> {\n\t\treturn this.ssr.getHostAttributes();\n\t}\n\n\tprivate ensureSlotProjectionState(): void {\n\t\tif (this.projectedSlotContent.size > 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst scriptPayload = this.isConnected ? takeSlotProjectionScriptPayload(this) : undefined;\n\n\t\tif (typeof scriptPayload === 'string' && scriptPayload !== '') {\n\t\t\tthis.projectedSlotContent = deserializeProjectedSlotRenderables(scriptPayload);\n\t\t\tthis.slotProjectionVersion += 1;\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.getHostChildNodeCount() > 0) {\n\t\t\tthis.projectedSlotContent = captureProjectedSlotRenderables(this);\n\t\t\tthis.slotProjectionVersion += 1;\n\t\t\treturn;\n\t\t}\n\n\t\tconst innerHtml = typeof this.innerHTML === 'string' ? this.innerHTML : '';\n\n\t\tif (!this.isConnected && innerHtml !== '') {\n\t\t\tthis.projectedSlotContent = parseProjectedSlotRenderablesFromHtml(innerHtml);\n\t\t\tthis.slotProjectionVersion += 1;\n\t\t}\n\t}\n\n\tprivate getHostChildNodeCount(): number {\n\t\treturn 'childNodes' in this && this.childNodes ? this.childNodes.length : 0;\n\t}\n\n\tprivate getSlotProjectionScriptTag(): string | undefined {\n\t\tthis.ensureSlotProjectionState();\n\t\tconst payload = serializeProjectedSlotRenderables(this.projectedSlotContent);\n\n\t\tif (!payload) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn `<script type=\"application/json\" ${SLOT_PROJECTION_SCRIPT_ATTRIBUTE}>${escapeScriptText(payload)}</script>`;\n\t}\n\n\tprivate getAuthoredHydrationScriptMarkup(): string | undefined {\n\t\tconst authoredHydrationMarkup = collectAuthoredHydrationScriptMarkup(this);\n\n\t\tif (authoredHydrationMarkup) {\n\t\t\treturn authoredHydrationMarkup;\n\t\t}\n\n\t\tconst innerHtml = typeof this.innerHTML === 'string' ? this.innerHTML : '';\n\n\t\tif (innerHtml === '') {\n\t\t\treturn undefined;\n\t\t}\n\n\t\treturn collectAuthoredHydrationScriptMarkupFromHtml(innerHtml);\n\t}\n\n\tprivate handleSlotProjectionMutations(records: MutationRecord[]): void {\n\t\tlet hasProjectionChanges = false;\n\n\t\tfor (const record of records) {\n\t\t\tfor (const removedNode of Array.from(record.removedNodes)) {\n\t\t\t\tif (this.removeProjectedSlotNode(removedNode)) {\n\t\t\t\t\thasProjectionChanges = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (const addedNode of Array.from(record.addedNodes)) {\n\t\t\t\tif (addedNode.parentNode !== this) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (this.addProjectedSlotNode(addedNode)) {\n\t\t\t\t\thasProjectionChanges = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hasProjectionChanges) {\n\t\t\tthis.slotProjectionVersion += 1;\n\t\t\tthis.update();\n\t\t}\n\t}\n\n\tprivate addProjectedSlotNode(node: Node): boolean {\n\t\tif (\n\t\t\tnode instanceof HTMLScriptElement &&\n\t\t\t(node.hasAttribute(SLOT_PROJECTION_SCRIPT_ATTRIBUTE) || node.hasAttribute(HYDRATION_ATTRIBUTE))\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst slotName = node instanceof Element ? (node.getAttribute('slot') ?? DEFAULT_SLOT_NAME) : DEFAULT_SLOT_NAME;\n\t\tconst bucket = this.projectedSlotContent.get(slotName);\n\n\t\tif (bucket) {\n\t\t\tif (bucket.includes(node)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tbucket.push(node);\n\t\t\treturn true;\n\t\t}\n\n\t\tthis.projectedSlotContent.set(slotName, [node]);\n\t\treturn true;\n\t}\n\n\tprivate removeProjectedSlotNode(node: Node): boolean {\n\t\tfor (const [slotName, bucket] of this.projectedSlotContent.entries()) {\n\t\t\tconst nodeIndex = bucket.indexOf(node);\n\n\t\t\tif (nodeIndex === -1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tbucket.splice(nodeIndex, 1);\n\n\t\t\tif (bucket.length === 0) {\n\t\t\t\tthis.projectedSlotContent.delete(slotName);\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tprivate observeSlotProjection(): void {\n\t\tif (typeof MutationObserver === 'undefined' || this.slotProjectionObserver || !this.isConnected) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.slotProjectionObserver = new MutationObserver((records) => this.handleSlotProjectionMutations(records));\n\t\tthis.slotProjectionObserver.observe(this, { childList: true });\n\t}\n\n\tprivate disconnectSlotProjectionObserver(): void {\n\t\tthis.slotProjectionObserver?.disconnect();\n\t\tthis.slotProjectionObserver = undefined;\n\t}\n\n\tprivate disconnectRenderWatcher(): void {\n\t\tif (!this.renderSignal) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.renderWatcher.unwatch(this.renderSignal);\n\t\tthis.renderSignal = undefined;\n\t}\n\n\tprivate resolveTrackedRenderOutput(): { containsSlots: boolean; value: JsxRenderable } {\n\t\tconst nextRenderSignal = new Computed(() => this.resolveRenderOutput());\n\t\tconst output = nextRenderSignal.get();\n\n\t\tif (!this.isConnected) {\n\t\t\treturn output;\n\t\t}\n\n\t\tif (this.renderSignal) {\n\t\t\tthis.renderWatcher.unwatch(this.renderSignal);\n\t\t}\n\n\t\tthis.renderSignal = nextRenderSignal;\n\t\tthis.renderWatcher.watch(nextRenderSignal);\n\t\treturn output;\n\t}\n\n\tprivate resolveRenderOutput(): { containsSlots: boolean; value: JsxRenderable } {\n\t\tthis.ensureSlotProjectionState();\n\t\treturn resolveSlotProjection(this.render(), this.projectedSlotContent);\n\t}\n}\n\nfunction escapeScriptText(value: string): string {\n\treturn value.replace(/</g, '\\\\u003c');\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "iSAAA,wBACC,OACA,GACA,MACA,sBAGD,yBAAS,6BACT,mBAAS,YAAU,0BAwCZ,MAAM,UAAuD,CAAyB,CACpF,YAAc,GACd,sBAAwB,GACxB,kBAAoB,GACpB,YAAc,GACd,qBAAuB,IAAI,IAC3B,aACS,cAAgB,IAAI,EAAO,QAAQ,IAAM,CACzD,KAAK,cAAc,EACnB,EACO,uBACA,sBAAwB,EACf,IAAM,IAAI,EAA2B,CACrD,YAAa,KAAK,YAClB,iCAAkC,IAAM,KAAK,iCAAiC,EAC9E,qBAAsB,IAAM,KAAK,qBAAqB,EACtD,2BAA4B,IAAM,KAAK,2BAA2B,EAClE,eAAgB,CAAC,IAAY,KAAK,eAAe,CAAO,EACxD,oBAAqB,IAAM,KAAK,oBAAoB,EACpD,sBAAuB,IAAM,KAAK,sBAAsB,EACxD,2BAA4B,IAAM,EAA2B,IAAI,EACjE,iBAAkB,CAAC,IAAU,KAAiC,GAC9D,mBAAoB,IAAO,OAAO,KAAK,oBAAsB,WAAa,KAAK,kBAAkB,EAAI,CAAC,EACtG,kBAAmB,CAAC,IAAS,KAAK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A0B,CAAC,KAAK,YACnF,OAGD,KAAK,uBAAyB,IAAI,iBAAiB,CAAC,IAAY,KAAK,8BAA8B,CAAO,CAAC,EAC3G,KAAK,uBAAuB,QAAQ,KAAM,CAAE,UAAW,EAAK,CAAC,EAGtD,gCAAgC,EAAS,CAChD,KAAK,wBAAwB,WAAW,EACxC,KAAK,uBAAyB,OAGvB,uBAAuB,EAAS,CACvC,GAAI,CAAC,KAAK,aACT,OAGD,KAAK,cAAc,QAAQ,KAAK,YAAY,EAC5C,KAAK,aAAe,OAGb,0BAA0B,EAAqD,CACtF,IAAM,EAAmB,IAAI,EAAS,IAAM,KAAK,oBAAoB,CAAC,EAChE,EAAS,EAAiB,IAAI,EAEpC,GAAI,CAAC,KAAK,YACT,OAAO,EAGR,GAAI,KAAK,aACR,KAAK,cAAc,QAAQ,KAAK,YAAY,EAK7C,OAFA,KAAK,aAAe,EACpB,KAAK,cAAc,MAAM,CAAgB,EAClC,EAGA,mBAAmB,EAAqD,CAE/E,OADA,KAAK,0BAA0B,EACxB,EAAsB,KAAK,OAAO,EAAG,KAAK,oBAAoB,EAEvE,CAEA,SAAS,CAAgB,CAAC,EAAuB,CAChD,OAAO,EAAM,QAAQ,KAAM,SAAS",
|
|
8
|
-
"debugId": "B0226C1DEFFA435E64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-2tgrfv09.js
DELETED
package/dist/chunk-3b033cgq.js
DELETED
package/dist/chunk-42tyhfvh.js
DELETED
package/dist/chunk-4fqkmpra.js
DELETED
package/dist/chunk-5bym7y1d.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{$ as F}from"./chunk-9gjmqxp2.js";import{La as E}from"./chunk-8tvt04cm.js";import{rb as k}from"./chunk-qd28hvdx.js";function N(q={}){return(v,j)=>{let G=(b)=>{return typeof Object.getOwnPropertyDescriptor(b,j)?.get==="function"},w=(b)=>{if(G(b))return;let B=k(b,q);Object.defineProperty(b,j,{get(){return B.value},enumerable:!0,configurable:!0})},x=new WeakMap;Object.defineProperty(v,j,{get(){let b=x.get(this);if(!b)b=k(this,q),x.set(this,b);return b.value},enumerable:!0,configurable:!0}),E(v,(b)=>{F(b,()=>{w(b)}),b.registerConnectedCallback(()=>{w(b)})})}}
|
|
2
|
-
export{N as Z};
|
|
3
|
-
|
|
4
|
-
//# debugId=353A6780E7C5628B64756E2164756E21
|
package/dist/chunk-5td6v9k3.js
DELETED
package/dist/chunk-60015zxq.js
DELETED
package/dist/chunk-60q4y3k5.js
DELETED
package/dist/chunk-6kdxrppw.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/context/hydration-script.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import {\n\tcreateHydrationScriptTag,\n\tescapeHydrationJson,\n\tHYDRATION_ATTRIBUTE,\n\tHYDRATION_KEY_ATTRIBUTE,\n} from '../core/hydration-codec';\n\n/** @deprecated Use `HYDRATION_ATTRIBUTE` from `hydration-codec` instead. */\nexport const CONTEXT_HYDRATION_ATTRIBUTE = HYDRATION_ATTRIBUTE;\n/** @deprecated Use `HYDRATION_KEY_ATTRIBUTE` from `hydration-codec` instead. */\nexport const CONTEXT_HYDRATION_KEY_ATTRIBUTE = HYDRATION_KEY_ATTRIBUTE;\n\n/**\n * Creates the raw `<script type=\"application/json\">` tag used to hydrate a\n * serialized context provider.\n */\nexport function createContextHydrationScriptTag(options: { hydrationKey?: string; serializedValue: string }): string {\n\treturn createHydrationScriptTag({ type: 'context', ...options });\n}\n\n/**\n * Escapes serialized JSON so it remains safe when embedded inside an HTML\n * script tag.\n */\nexport function escapeContextHydrationJson(value: string): string {\n\treturn escapeHydrationJson(value);\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "iEAQO,IAAM,EAA8B,EAE9B,EAAkC,EAMxC,SAAS,CAA+B,CAAC,EAAqE,CACpH,OAAO,EAAyB,CAAE,KAAM,aAAc,CAAQ,CAAC,EAOzD,SAAS,CAA0B,CAAC,EAAuB,CACjE,OAAO,EAAoB,CAAK",
|
|
8
|
-
"debugId": "CBEF9B3A6A99C21F64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-6z34stya.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/signals/hydration-script.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import {\n\tcreateHydrationScriptTag,\n\tescapeHydrationJson,\n\tHYDRATION_ATTRIBUTE,\n\tHYDRATION_KEY_ATTRIBUTE,\n} from '../core/hydration-codec';\n\n/** @deprecated Use `HYDRATION_ATTRIBUTE` from `hydration-codec` instead. */\nexport const SIGNAL_HYDRATION_ATTRIBUTE = HYDRATION_ATTRIBUTE;\n/** @deprecated Use `HYDRATION_KEY_ATTRIBUTE` from `hydration-codec` instead. */\nexport const SIGNAL_HYDRATION_KEY_ATTRIBUTE = HYDRATION_KEY_ATTRIBUTE;\n\n/** Creates the raw `<script type=\"application/json\">` tag used to hydrate a signal field. */\nexport function createSignalHydrationScriptTag(options: { hydrationKey?: string; serializedValue: string }): string {\n\treturn createHydrationScriptTag({ type: 'signal', ...options });\n}\n\n/** Escapes serialized JSON so it remains safe inside an HTML script tag. */\nexport function escapeSignalHydrationJson(value: string): string {\n\treturn escapeHydrationJson(value);\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "iEAQO,IAAM,EAA6B,EAE7B,EAAiC,EAGvC,SAAS,CAA8B,CAAC,EAAqE,CACnH,OAAO,EAAyB,CAAE,KAAM,YAAa,CAAQ,CAAC,EAIxD,SAAS,CAAyB,CAAC,EAAuB,CAChE,OAAO,EAAoB,CAAK",
|
|
8
|
-
"debugId": "E1376CD92386A15964756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-9554n9t4.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Ta as s}from"./chunk-73x7jpdd.js";import{Ya as g}from"./chunk-ms6a9zdt.js";import{Za as a}from"./chunk-dx1wqc00.js";class p{host;constructor(e){this.host=e}renderHost(){return{nodeType:1,outerHTML:this.renderHostToString({hydrate:!0})}}renderHostToString(e={},i=this.getHostAttributes()){let t=this.getTagName(),r=a(this.host.getContextProviders());try{return`<${t}${u(i)}>${this.renderHostContent(e)}</${t}>`}finally{r()}}renderHostContent(e){let i=this.host.renderToString(e),t=this.host.getAuthoredHydrationScriptMarkup?.()??"",r=this.host.getSlotProjectionScriptTag?.()??"";if(!e.hydrate)return`${i}${t}${r}`;let n=this.host.getHydrationBindings().map((o)=>o.renderHydrationScriptTag()).filter((o)=>typeof o==="string").join("");return`${i}${r}${n}`}getHostAttributes(){let e={},i=new Set;for(let t of this.host.getReactiveProperties()){let r=this.host.getPropertyValue(t.name);if(r===void 0||r===null||r===!1)continue;e[t.attribute]=String(t.converter.toAttribute(r)),i.add(t.attribute)}for(let t of this.host.getReactivePropDefinitions()){let r=t.options.attribute??t.name;if(i.has(r))continue;let n=this.host.getPropertyValue(t.name);if(n===void 0||n===null||n===!1)continue;e[r]=String(s(n,t.options.type)),i.add(r)}for(let t of this.host.listAttributeNames()){let r=this.host.getAttributeValue(t);if(r!==null)e[t]=r}return e}getTagName(){let e=g(this.host.constructor);if(!e)throw Error(`${this.host.constructor.name} is missing @customElement metadata.`);return e}}function u(e){return Object.entries(e).map(([i,t])=>` ${i}="${c(t)}"`).join("")}function c(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}
|
|
2
|
-
export{p as X};
|
|
3
|
-
|
|
4
|
-
//# debugId=C4F303C0620A998A64756E2164756E21
|
package/dist/chunk-9ascmjk3.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{gb as W}from"./chunk-ksv01cey.js";import{createMarkupNodeLike as $,isKeyedJsxValue as F,isSlotJsxValue as N}from"@ecopages/jsx";var X="",H="data-radiant-slot-projection";function x(z){let D=new Map;for(let A of Array.from(z.childNodes)){if(I(A))continue;B(D,j(A),A)}return D}function i(z){let D;try{D=JSON.parse(z)}catch{if(typeof console<"u")console.warn("[@ecopages/radiant] Failed to parse slot projection payload:",z.slice(0,120));return new Map}let A=new Map;for(let[G,J]of Object.entries(D)){if(!Array.isArray(J)||J.length===0)continue;A.set(U(G),J.map((K)=>$(K)))}return A}function b(z){let D=new Map;for(let A of E(z)){if(k(A))continue;B(D,y(A),$(A))}return D}function c(z){let D=Array.from(z.childNodes).filter((A)=>q(A)).map((A)=>Q(A)??"").filter((A)=>A!=="");return D.length>0?D.join(""):void 0}function g(z){let D=E(z).filter((A)=>w(A));return D.length>0?D.join(""):void 0}function h(z){let D={};for(let[A,G]of z.entries()){let J=G.map((K)=>Q(K)).filter((K)=>K!==void 0&&K!=="");if(J.length>0)D[A]=J}return Object.keys(D).length>0?JSON.stringify(D):void 0}function s(z,D){let A=!1,G=(K)=>{if(N(K))return A=!0,p(K,D,G);if(F(K))return S(K,G(K.value));if(T(K))return{_$rType$:1,strings:K.strings,values:K.values.map((L)=>G(L))};if(R(K))return Array.from(K,(L)=>G(L));return K},J=G(z);return{containsSlots:A,value:J}}function u(z){for(let D of Array.from(z.childNodes)){if(!P(D))continue;let A=D.textContent??void 0;return D.parentNode?.removeChild(D),A}return}function B(z,D,A){let G=z.get(D);if(G){G.push(A);return}z.set(D,[A])}function S(z,D){return{...z,value:D}}function E(z){let D=[],A=0;while(A<z.length){let G=A;if(z.startsWith("<!--",A)){let L=z.indexOf("-->",A+4);A=L===-1?z.length:L+3,D.push(z.slice(G,A));continue}if(z[A]!=="<"){let L=z.indexOf("<",A);A=L===-1?z.length:L,D.push(z.slice(G,A));continue}let J=Z(z,A);if(!J){D.push(z.slice(G));break}if(J.type!=="open"||J.selfClosing||_.has(J.tagName)){A=J.end,D.push(z.slice(G,A));continue}A=J.end;let K=1;while(A<z.length&&K>0){let L=z.indexOf("<",A);if(L===-1){A=z.length;break}let O=Z(z,L);if(!O){A=z.length;break}if(A=O.end,O.type==="comment"||O.type==="declaration")continue;if(O.type==="open"&&!O.selfClosing&&!_.has(O.tagName)){K+=1;continue}if(O.type==="close")K-=1}D.push(z.slice(G,A))}return D.filter((G)=>G!=="")}function j(z){if(z instanceof Element)return U(z.getAttribute("slot"));return X}function y(z){let D=/^<([A-Za-z][^\s/>]*)([^>]*)>/s.exec(z);if(!D)return X;let A=D[2]??"",G=/\sslot\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(A);return U(G?.[1]??G?.[2]??G?.[3]??void 0)}function R(z){return typeof z!=="string"&&typeof z==="object"&&z!==null&&Symbol.iterator in z}function P(z){return z instanceof HTMLScriptElement&&z.hasAttribute(H)}function q(z){return z instanceof HTMLScriptElement&&z.hasAttribute(W)}function I(z){return P(z)||q(z)}function k(z){return C(z)||w(z)}function C(z){let D=/^<script\b([^>]*)>/i.exec(z);if(!D)return!1;return M(D[1]??"",H)}function w(z){let D=/^<script\b([^>]*)>/i.exec(z);if(!D)return!1;return M(D[1]??"",W)}function M(z,D){return new RegExp(`(?:^|\\s)${D}(?:\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]+))?`,"i").test(z)}function T(z){return typeof z==="object"&&z!==null&&z._$rType$===1&&Array.isArray(z.strings)&&Array.isArray(z.values)}function U(z){return z??X}function Z(z,D){if(z.startsWith("<!--",D)){let Y=z.indexOf("-->",D+4);return{end:Y===-1?z.length:Y+3,type:"comment"}}let A=V(z,D),G=z.slice(D+1,A-1).trim();if(G==="")return;if(G.startsWith("!")||G.startsWith("?"))return{end:A,type:"declaration"};let J=G.startsWith("/"),K=J?G.slice(1).trim():G,L=K.split(/[\s/>]/,1)[0]?.toLowerCase()??"",O=!J&&/\/\s*$/.test(K);return{end:A,tagName:L,selfClosing:O,type:J?"close":"open"}}function V(z,D){let A;for(let G=D+1;G<z.length;G+=1){let J=z[G];if(A){if(J===A)A=void 0;continue}if(J==='"'||J==="'"){A=J;continue}if(J===">")return G+1}return z.length}function Q(z){if(z===void 0||z===null||z===!1||z===!0)return;if(typeof Node<"u"&&z instanceof Node){if(z.nodeType===Node.TEXT_NODE)return z.textContent??"";return z.outerHTML??z.textContent??void 0}if(F(z))return Q(z.value);if(typeof z==="string"||typeof z==="number"||typeof z==="bigint")return String(z);if(typeof z==="object"&&z!==null&&"outerHTML"in z)return typeof z.outerHTML==="string"?z.outerHTML:z.textContent??void 0;if(R(z))return Array.from(z,(D)=>Q(D)??"").join("");return}function p(z,D,A){let G=D.get(U(z.name));if(G&&G.length>0)return G.length===1?G[0]:G;if(z.fallback===void 0)return"";return A(z.fallback)}var _=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);
|
|
2
|
-
export{X as I,H as J,x as K,i as L,b as M,c as N,g as O,h as P,s as Q,u as R};
|
|
3
|
-
|
|
4
|
-
//# debugId=B8DB7E1B144B919E64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/core/slot-projection.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import {\n\tcreateMarkupNodeLike,\n\tisKeyedJsxValue,\n\tisSlotJsxValue,\n\ttype JsxRenderable,\n\ttype KeyedJsxValue,\n\ttype SlotJsxValue,\n\ttype TemplateResultLike,\n} from '@ecopages/jsx';\n\nimport { HYDRATION_ATTRIBUTE } from './hydration-codec';\n\nexport const DEFAULT_SLOT_NAME = '';\nexport const SLOT_PROJECTION_SCRIPT_ATTRIBUTE = 'data-radiant-slot-projection';\n\ntype ResolvedSlotProjection = {\n\tcontainsSlots: boolean;\n\tvalue: JsxRenderable;\n};\n\n/**\n * Captures direct host children as projected slot content for client rendering.\n */\nexport function captureProjectedSlotRenderables(host: HTMLElement): Map<string, JsxRenderable[]> {\n\tconst projectedContent = new Map<string, JsxRenderable[]>();\n\n\tfor (const node of Array.from(host.childNodes)) {\n\t\tif (isIgnoredProjectedNode(node)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tappendProjectedRenderable(projectedContent, getNodeSlotName(node), node);\n\t}\n\n\treturn projectedContent;\n}\n\n/**\n * Parses the SSR slot projection payload back into renderable fragments.\n */\nexport function deserializeProjectedSlotRenderables(payload: string): Map<string, JsxRenderable[]> {\n\tlet parsedPayload: Record<string, string[]>;\n\n\ttry {\n\t\tparsedPayload = JSON.parse(payload) as Record<string, string[]>;\n\t} catch {\n\t\tif (typeof console !== 'undefined') {\n\t\t\tconsole.warn('[@ecopages/radiant] Failed to parse slot projection payload:', payload.slice(0, 120));\n\t\t}\n\t\treturn new Map();\n\t}\n\n\tconst projectedContent = new Map<string, JsxRenderable[]>();\n\n\tfor (const [slotName, fragments] of Object.entries(parsedPayload)) {\n\t\tif (!Array.isArray(fragments) || fragments.length === 0) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tprojectedContent.set(\n\t\t\tnormalizeSlotName(slotName),\n\t\t\tfragments.map((fragment) => createMarkupNodeLike(fragment)),\n\t\t);\n\t}\n\n\treturn projectedContent;\n}\n\n/**\n * Parses serialized child HTML into slot buckets for SSR-driven projection.\n */\nexport function parseProjectedSlotRenderablesFromHtml(html: string): Map<string, JsxRenderable[]> {\n\tconst projectedContent = new Map<string, JsxRenderable[]>();\n\n\tfor (const fragment of collectTopLevelHtmlFragments(html)) {\n\t\tif (isIgnoredProjectedHtmlFragment(fragment)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tappendProjectedRenderable(\n\t\t\tprojectedContent,\n\t\t\tgetSlotNameFromHtmlFragment(fragment),\n\t\t\tcreateMarkupNodeLike(fragment),\n\t\t);\n\t}\n\n\treturn projectedContent;\n}\n\nexport function collectAuthoredHydrationScriptMarkup(host: HTMLElement): string | undefined {\n\tconst fragments = Array.from(host.childNodes)\n\t\t.filter((node): node is HTMLScriptElement => isHydrationScriptNode(node))\n\t\t.map((node) => renderableToHtmlFragment(node) ?? '')\n\t\t.filter((fragment) => fragment !== '');\n\n\treturn fragments.length > 0 ? fragments.join('') : undefined;\n}\n\nexport function collectAuthoredHydrationScriptMarkupFromHtml(html: string): string | undefined {\n\tconst fragments = collectTopLevelHtmlFragments(html).filter((fragment) => isHydrationScriptHtmlFragment(fragment));\n\n\treturn fragments.length > 0 ? fragments.join('') : undefined;\n}\n\n/**\n * Serializes the current slot assignments into the payload embedded in SSR host output.\n */\nexport function serializeProjectedSlotRenderables(\n\tprojectedContent: ReadonlyMap<string, readonly JsxRenderable[]>,\n): string | undefined {\n\tconst payload: Record<string, string[]> = {};\n\n\tfor (const [slotName, renderables] of projectedContent.entries()) {\n\t\tconst fragments = renderables\n\t\t\t.map((renderable) => renderableToHtmlFragment(renderable))\n\t\t\t.filter((fragment): fragment is string => fragment !== undefined && fragment !== '');\n\n\t\tif (fragments.length > 0) {\n\t\t\tpayload[slotName] = fragments;\n\t\t}\n\t}\n\n\treturn Object.keys(payload).length > 0 ? JSON.stringify(payload) : undefined;\n}\n\n/**\n * Resolves literal `<slot>` placeholders inside a JSX tree.\n */\nexport function resolveSlotProjection(\n\tvalue: JsxRenderable,\n\tprojectedContent: ReadonlyMap<string, readonly JsxRenderable[]>,\n): ResolvedSlotProjection {\n\tlet containsSlots = false;\n\n\tconst resolveValue = (currentValue: JsxRenderable): JsxRenderable => {\n\t\tif (isSlotJsxValue(currentValue)) {\n\t\t\tcontainsSlots = true;\n\t\t\treturn resolveSlotValue(currentValue, projectedContent, resolveValue);\n\t\t}\n\n\t\tif (isKeyedJsxValue(currentValue)) {\n\t\t\treturn cloneKeyedJsxValue(currentValue, resolveValue(currentValue.value));\n\t\t}\n\n\t\tif (isTemplateResultLike(currentValue)) {\n\t\t\treturn {\n\t\t\t\t_$rType$: 1,\n\t\t\t\tstrings: currentValue.strings,\n\t\t\t\tvalues: currentValue.values.map((entry) => resolveValue(entry as JsxRenderable)),\n\t\t\t} satisfies TemplateResultLike;\n\t\t}\n\n\t\tif (isIterableRenderable(currentValue)) {\n\t\t\treturn Array.from(currentValue, (entry) => resolveValue(entry as JsxRenderable));\n\t\t}\n\n\t\treturn currentValue;\n\t};\n\n\tconst resolvedValue = resolveValue(value);\n\n\treturn {\n\t\tcontainsSlots,\n\t\tvalue: resolvedValue,\n\t};\n}\n\n/**\n * Extracts and removes the SSR slot projection script from the host when present.\n */\nexport function takeSlotProjectionScriptPayload(host: HTMLElement): string | undefined {\n\tfor (const node of Array.from(host.childNodes)) {\n\t\tif (!isSlotProjectionScriptNode(node)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst payload = node.textContent ?? undefined;\n\t\tnode.parentNode?.removeChild(node);\n\t\treturn payload;\n\t}\n\n\treturn undefined;\n}\n\nfunction appendProjectedRenderable(\n\tprojectedContent: Map<string, JsxRenderable[]>,\n\tslotName: string,\n\trenderable: JsxRenderable,\n): void {\n\tconst existingRenderables = projectedContent.get(slotName);\n\n\tif (existingRenderables) {\n\t\texistingRenderables.push(renderable);\n\t\treturn;\n\t}\n\n\tprojectedContent.set(slotName, [renderable]);\n}\n\nfunction cloneKeyedJsxValue(value: KeyedJsxValue, nextValue: JsxRenderable): KeyedJsxValue {\n\treturn {\n\t\t...value,\n\t\tvalue: nextValue,\n\t};\n}\n\nfunction collectTopLevelHtmlFragments(html: string): string[] {\n\tconst fragments: string[] = [];\n\tlet index = 0;\n\n\twhile (index < html.length) {\n\t\tconst fragmentStart = index;\n\n\t\tif (html.startsWith('<!--', index)) {\n\t\t\tconst commentEnd = html.indexOf('-->', index + 4);\n\t\t\tindex = commentEnd === -1 ? html.length : commentEnd + 3;\n\t\t\tfragments.push(html.slice(fragmentStart, index));\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (html[index] !== '<') {\n\t\t\tconst nextTagIndex = html.indexOf('<', index);\n\t\t\tindex = nextTagIndex === -1 ? html.length : nextTagIndex;\n\t\t\tfragments.push(html.slice(fragmentStart, index));\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst token = parseHtmlTagToken(html, index);\n\n\t\tif (!token) {\n\t\t\tfragments.push(html.slice(fragmentStart));\n\t\t\tbreak;\n\t\t}\n\n\t\tif (token.type !== 'open' || token.selfClosing || voidElementNames.has(token.tagName)) {\n\t\t\tindex = token.end;\n\t\t\tfragments.push(html.slice(fragmentStart, index));\n\t\t\tcontinue;\n\t\t}\n\n\t\tindex = token.end;\n\t\tlet depth = 1;\n\n\t\twhile (index < html.length && depth > 0) {\n\t\t\tconst nextTagIndex = html.indexOf('<', index);\n\n\t\t\tif (nextTagIndex === -1) {\n\t\t\t\tindex = html.length;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst nestedToken = parseHtmlTagToken(html, nextTagIndex);\n\n\t\t\tif (!nestedToken) {\n\t\t\t\tindex = html.length;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tindex = nestedToken.end;\n\n\t\t\tif (nestedToken.type === 'comment' || nestedToken.type === 'declaration') {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (nestedToken.type === 'open' && !nestedToken.selfClosing && !voidElementNames.has(nestedToken.tagName)) {\n\t\t\t\tdepth += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (nestedToken.type === 'close') {\n\t\t\t\tdepth -= 1;\n\t\t\t}\n\t\t}\n\n\t\tfragments.push(html.slice(fragmentStart, index));\n\t}\n\n\treturn fragments.filter((fragment) => fragment !== '');\n}\n\nfunction getNodeSlotName(node: Node): string {\n\tif (node instanceof Element) {\n\t\treturn normalizeSlotName(node.getAttribute('slot'));\n\t}\n\n\treturn DEFAULT_SLOT_NAME;\n}\n\nfunction getSlotNameFromHtmlFragment(fragment: string): string {\n\tconst openingTagMatch = /^<([A-Za-z][^\\s/>]*)([^>]*)>/s.exec(fragment);\n\n\tif (!openingTagMatch) {\n\t\treturn DEFAULT_SLOT_NAME;\n\t}\n\n\tconst attributes = openingTagMatch[2] ?? '';\n\tconst slotMatch = /\\sslot\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s>]+))/i.exec(attributes);\n\n\treturn normalizeSlotName(slotMatch?.[1] ?? slotMatch?.[2] ?? slotMatch?.[3] ?? undefined);\n}\n\nfunction isIterableRenderable(value: JsxRenderable): value is Iterable<JsxRenderable> {\n\treturn typeof value !== 'string' && typeof value === 'object' && value !== null && Symbol.iterator in value;\n}\n\nfunction isSlotProjectionScriptNode(node: Node): node is HTMLScriptElement {\n\treturn node instanceof HTMLScriptElement && node.hasAttribute(SLOT_PROJECTION_SCRIPT_ATTRIBUTE);\n}\n\nfunction isHydrationScriptNode(node: Node): node is HTMLScriptElement {\n\treturn node instanceof HTMLScriptElement && node.hasAttribute(HYDRATION_ATTRIBUTE);\n}\n\nfunction isIgnoredProjectedNode(node: Node): boolean {\n\treturn isSlotProjectionScriptNode(node) || isHydrationScriptNode(node);\n}\n\nfunction isIgnoredProjectedHtmlFragment(fragment: string): boolean {\n\treturn isSlotProjectionScriptHtmlFragment(fragment) || isHydrationScriptHtmlFragment(fragment);\n}\n\nfunction isSlotProjectionScriptHtmlFragment(fragment: string): boolean {\n\tconst openingTagMatch = /^<script\\b([^>]*)>/i.exec(fragment);\n\n\tif (!openingTagMatch) {\n\t\treturn false;\n\t}\n\n\treturn hasScriptAttribute(openingTagMatch[1] ?? '', SLOT_PROJECTION_SCRIPT_ATTRIBUTE);\n}\n\nfunction isHydrationScriptHtmlFragment(fragment: string): boolean {\n\tconst openingTagMatch = /^<script\\b([^>]*)>/i.exec(fragment);\n\n\tif (!openingTagMatch) {\n\t\treturn false;\n\t}\n\n\treturn hasScriptAttribute(openingTagMatch[1] ?? '', HYDRATION_ATTRIBUTE);\n}\n\nfunction hasScriptAttribute(attributes: string, attributeName: string): boolean {\n\treturn new RegExp(`(?:^|\\\\s)${attributeName}(?:\\\\s*=\\\\s*(?:\"[^\"]*\"|'[^']*'|[^\\\\s>]+))?`, 'i').test(attributes);\n}\n\nfunction isTemplateResultLike(value: JsxRenderable): value is TemplateResultLike {\n\treturn (\n\t\ttypeof value === 'object' &&\n\t\tvalue !== null &&\n\t\t(value as Partial<TemplateResultLike>)['_$rType$'] === 1 &&\n\t\tArray.isArray((value as Partial<TemplateResultLike>).strings) &&\n\t\tArray.isArray((value as Partial<TemplateResultLike>).values)\n\t);\n}\n\nfunction normalizeSlotName(name: string | undefined | null): string {\n\treturn name ?? DEFAULT_SLOT_NAME;\n}\n\nfunction parseHtmlTagToken(\n\thtml: string,\n\tstartIndex: number,\n):\n\t| {\n\t\t\tend: number;\n\t\t\ttagName: string;\n\t\t\tselfClosing: boolean;\n\t\t\ttype: 'close' | 'open';\n\t }\n\t| {\n\t\t\tend: number;\n\t\t\ttype: 'comment' | 'declaration';\n\t }\n\t| undefined {\n\tif (html.startsWith('<!--', startIndex)) {\n\t\tconst endIndex = html.indexOf('-->', startIndex + 4);\n\t\treturn {\n\t\t\tend: endIndex === -1 ? html.length : endIndex + 3,\n\t\t\ttype: 'comment',\n\t\t};\n\t}\n\n\tconst endIndex = findHtmlTagEnd(html, startIndex);\n\tconst rawToken = html.slice(startIndex + 1, endIndex - 1).trim();\n\n\tif (rawToken === '') {\n\t\treturn undefined;\n\t}\n\n\tif (rawToken.startsWith('!') || rawToken.startsWith('?')) {\n\t\treturn {\n\t\t\tend: endIndex,\n\t\t\ttype: 'declaration',\n\t\t};\n\t}\n\n\tconst isCloseTag = rawToken.startsWith('/');\n\tconst tagBody = isCloseTag ? rawToken.slice(1).trim() : rawToken;\n\tconst tagName = tagBody.split(/[\\s/>]/, 1)[0]?.toLowerCase() ?? '';\n\tconst selfClosing = !isCloseTag && /\\/\\s*$/.test(tagBody);\n\n\treturn {\n\t\tend: endIndex,\n\t\ttagName,\n\t\tselfClosing,\n\t\ttype: isCloseTag ? 'close' : 'open',\n\t};\n}\n\nfunction findHtmlTagEnd(html: string, startIndex: number): number {\n\tlet quote: '\"' | \"'\" | undefined;\n\n\tfor (let index = startIndex + 1; index < html.length; index += 1) {\n\t\tconst character = html[index];\n\n\t\tif (quote) {\n\t\t\tif (character === quote) {\n\t\t\t\tquote = undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (character === '\"' || character === \"'\") {\n\t\t\tquote = character;\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (character === '>') {\n\t\t\treturn index + 1;\n\t\t}\n\t}\n\n\treturn html.length;\n}\n\nfunction renderableToHtmlFragment(renderable: JsxRenderable): string | undefined {\n\tif (renderable === undefined || renderable === null || renderable === false || renderable === true) {\n\t\treturn undefined;\n\t}\n\n\tif (typeof Node !== 'undefined' && renderable instanceof Node) {\n\t\tif (renderable.nodeType === Node.TEXT_NODE) {\n\t\t\treturn renderable.textContent ?? '';\n\t\t}\n\n\t\treturn (renderable as Element).outerHTML ?? renderable.textContent ?? undefined;\n\t}\n\n\tif (isKeyedJsxValue(renderable)) {\n\t\treturn renderableToHtmlFragment(renderable.value);\n\t}\n\n\tif (typeof renderable === 'string' || typeof renderable === 'number' || typeof renderable === 'bigint') {\n\t\treturn String(renderable);\n\t}\n\n\tif (typeof renderable === 'object' && renderable !== null && 'outerHTML' in renderable) {\n\t\treturn typeof renderable.outerHTML === 'string' ? renderable.outerHTML : (renderable.textContent ?? undefined);\n\t}\n\n\tif (isIterableRenderable(renderable)) {\n\t\treturn Array.from(renderable, (entry) => renderableToHtmlFragment(entry as JsxRenderable) ?? '').join('');\n\t}\n\n\treturn undefined;\n}\n\nfunction resolveSlotValue(\n\tvalue: SlotJsxValue,\n\tprojectedContent: ReadonlyMap<string, readonly JsxRenderable[]>,\n\tresolveValue: (value: JsxRenderable) => JsxRenderable,\n): JsxRenderable {\n\tconst assignedContent = projectedContent.get(normalizeSlotName(value.name));\n\n\tif (assignedContent && assignedContent.length > 0) {\n\t\treturn assignedContent.length === 1 ? assignedContent[0] : (assignedContent as JsxRenderable);\n\t}\n\n\tif (value.fallback === undefined) {\n\t\treturn '';\n\t}\n\n\treturn resolveValue(value.fallback);\n}\n\nconst voidElementNames = new Set([\n\t'area',\n\t'base',\n\t'br',\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ACA,OACA,QACA,SACA,QACA,KACD,CAAC",
|
|
8
|
-
"debugId": "B8DB7E1B144B919E64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-a7hzs37s.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{La as d}from"./chunk-8tvt04cm.js";import{ob as h}from"./chunk-42tyhfvh.js";function A(j){return(k,q)=>{d(k,(b)=>{let u=h(b,j);b.registerConnectedCallback(()=>{Object.defineProperty(b,q,{get(){return u},enumerable:!0,configurable:!0})})})}}
|
|
2
|
-
export{A as oa};
|
|
3
|
-
|
|
4
|
-
//# debugId=35F6D559C1C015C164756E2164756E21
|
package/dist/chunk-aajhkdmn.js
DELETED
package/dist/chunk-ak97hp4w.js
DELETED
package/dist/chunk-c8vqg7r1.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{la as E}from"./chunk-t6x9e177.js";import{ma as F}from"./chunk-5a2xez36.js";function L(q,j){if(typeof j<"u"){if(typeof j==="object")return F()(q,j);return E()(q,j)}let G=q??{};return function(H,A){if(typeof A==="object")return F(G)(H,A);return E(G)(H,A)}}
|
|
2
|
-
export{L as ka};
|
|
3
|
-
|
|
4
|
-
//# debugId=C219C5D63128E17C64756E2164756E21
|
package/dist/chunk-d4v5qpxa.js
DELETED
package/dist/chunk-d7hh3ze6.js
DELETED
package/dist/chunk-d98q3myg.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{t as G}from"./chunk-5td6v9k3.js";import{v as F,x as A}from"./chunk-vpfm9yw8.js";import{La as E}from"./chunk-8tvt04cm.js";function T({context:j,select:k,subscribe:B=!0,requestUpdate:H=!0}){return(J,O,D)=>{let K=D.value;return E(J,(f)=>{let w=G(f,(N)=>{K.call(f,N)},H);F(f,j,w,k),f.registerConnectedCallback(()=>{if(A(f,j,w,{select:k,subscribe:B}))return;queueMicrotask(()=>{A(f,j,w,{select:k,subscribe:B})})})}),D}}
|
|
2
|
-
export{T as r};
|
|
3
|
-
|
|
4
|
-
//# debugId=EFF9D81C3F3096B064756E2164756E21
|
package/dist/chunk-jce9gqqw.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
class Z extends EventTarget{nodeType;static ELEMENT_NODE=1;static TEXT_NODE=3;childNodes=[];parentNode=null;constructor(j){super();this.nodeType=j}append(...j){for(let G of j)this.appendChild(typeof G==="string"?q(G):G)}appendChild(j){if("parentNode"in j&&j.parentNode&&"removeChild"in j.parentNode)j.parentNode.removeChild(j);return this.childNodes.push(j),j.parentNode=this,j}removeChild(j){let G=this.childNodes.indexOf(j);if(G===-1)return j;return this.childNodes.splice(G,1),j.parentNode=null,j}replaceChildren(...j){for(let G of this.childNodes)G.parentNode=null;this.childNodes=[],this.append(...j)}get textContent(){return this.childNodes.map((j)=>j.textContent??"").join("")}set textContent(j){this.replaceChildren(j??"")}}class y extends Z{value;constructor(j){super(Z.TEXT_NODE);this.value=j}get textContent(){return this.value}set textContent(j){this.value=j??""}}class z extends Z{attributes=new Map;fragmentHtml;fragmentText;localName;tagName;constructor(j="div"){super(Z.ELEMENT_NODE);this.localName=j.toLowerCase(),this.tagName=this.localName.toUpperCase()}hasAttribute(j){return this.attributes.has(j)}getAttribute(j){return this.attributes.get(j)??null}getAttributeNames(){return Array.from(this.attributes.keys())}setAttribute(j,G){this.fragmentHtml=void 0,this.attributes.set(j,String(G))}removeAttribute(j){this.fragmentHtml=void 0,this.attributes.delete(j)}querySelector(){return null}querySelectorAll(){return[]}matches(){return!1}get outerHTML(){if(this.fragmentHtml!==void 0)return this.fragmentHtml;let j=Array.from(this.attributes.entries()).map(([G,J])=>` ${G}="${S(J)}"`).join("");return`<${this.localName}${j}>${this.innerHTML}</${this.localName}>`}get innerHTML(){return this.childNodes.map((j)=>I(j)).join("")}set innerHTML(j){this.fragmentHtml=void 0,this.fragmentText=void 0,this.replaceChildren(...L(j))}get textContent(){return this.fragmentText??super.textContent??""}set textContent(j){this.fragmentHtml=void 0,this.fragmentText=j??"",super.textContent=j}setSerializedFragment(j,G,J){this.fragmentHtml=j,this.fragmentText=G,this.attributes=new Map(Object.entries(J)),this.replaceChildren()}}class Q{bubbles;cancelable;composed;type;constructor(j,G={}){this.type=j,this.bubbles=G.bubbles??!1,this.cancelable=G.cancelable??!1,this.composed=G.composed??!1}}class F extends Q{detail;constructor(j,G={}){super(j,G);this.detail=G.detail}}class $ extends z{isConnected=!1;constructor(j="div"){super(j)}insertAdjacentHTML(j,G){this.append(...L(G))}}class P extends ${constructor(){super("script")}}class W{definitions=new Map;define(j,G){if(this.definitions.has(j))return;this.definitions.set(j,G)}get(j){return this.definitions.get(j)}}var _;function q(j){return new y(j)}function D(){let j=globalThis,G=j.customElements;if(typeof j.Node>"u"||typeof j.Element>"u"||typeof j.HTMLElement>"u"||!G||typeof G.define!=="function"||typeof G.get!=="function")return;return j.window??{CustomEvent:j.CustomEvent??F,Element:j.Element,Event:j.Event??Q,EventTarget:j.EventTarget??EventTarget,HTMLScriptElement:j.HTMLScriptElement??j.HTMLElement,HTMLElement:j.HTMLElement,Node:j.Node,customElements:G}}function C(){let j=D();if(j)return j;return k()}function M(){return C(),{prepareHost(j,G={}){if(G.authoredContent!==void 0)j.innerHTML=G.authoredContent}}}function k(){let j=D();if(j)return j;if(_)return _;let G=new W,J=globalThis.Event??Q,K=globalThis.CustomEvent??F,O=globalThis.EventTarget??EventTarget;return _={CustomEvent:K,Element:z,Event:J,EventTarget:O,HTMLScriptElement:P,HTMLElement:$,Node:Z,customElements:G},Object.assign(globalThis,{CustomEvent:K,Element:z,Event:J,EventTarget:O,HTMLScriptElement:P,HTMLElement:$,Node:Z,customElements:G,window:_}),_}function b(j){let G=[],J=0;while(J<j.length){let K=J;if(j.startsWith("<!--",J)){let U=j.indexOf("-->",J+4);J=U===-1?j.length:U+3,G.push(j.slice(K,J));continue}if(j[J]!=="<"){let U=j.indexOf("<",J);J=U===-1?j.length:U,G.push(j.slice(K,J));continue}let O=V(j,J);if(!O){G.push(j.slice(K));break}if(O.type!=="open"||O.selfClosing||B.has(O.tagName)){J=O.end,G.push(j.slice(K,J));continue}J=O.end;let Y=1;while(J<j.length&&Y>0){let U=j.indexOf("<",J);if(U===-1){J=j.length;break}let X=V(j,U);if(!X){J=j.length;break}if(J=X.end,X.type==="comment"||X.type==="declaration")continue;if(X.type==="open"&&!X.selfClosing&&!B.has(X.tagName)){Y+=1;continue}if(X.type==="close")Y-=1}G.push(j.slice(K,J))}return G.filter((K)=>K!=="")}function H(j,G){let J=G.tagName==="script"?new P:new $(G.tagName);return J.setSerializedFragment(j,f(G.innerHtml),G.attributes),J}function S(j){return j.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function f(j){return j.replace(/<!--.*?-->/gs,"").replace(/<[^>]+>/g,"")}function N(j,G){let J;for(let K=G+1;K<j.length;K+=1){let O=j[K];if(J){if(O===J)J=void 0;continue}if(O==='"'||O==="'"){J=O;continue}if(O===">")return K+1}return j.length}function p(j){let G={},J=/([:^@A-Za-z0-9_.-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>/]+)))?/g;for(let K of j.matchAll(J)){let[,O,Y,U,X]=K;if(!O)continue;G[O]=Y??U??X??""}return G}function V(j,G){if(j.startsWith("<!--",G)){let A=j.indexOf("-->",G+4);return{end:A===-1?j.length:A+3,type:"comment"}}let J=N(j,G),K=j.slice(G+1,J-1).trim();if(K==="")return;if(K.startsWith("!")||K.startsWith("?"))return{end:J,type:"declaration"};if(K.startsWith("/"))return{end:J,type:"close"};let O=/\/\s*$/.test(K),Y=O?K.replace(/\/\s*$/,"").trim():K,U=Y.split(/[\s/>]/,1)[0]?.toLowerCase()??"",X=U.length,R=Y.slice(X).trim(),w=O||B.has(U)?"":v(j,G,J,U);return{attributes:p(R),end:J,innerHtml:w,selfClosing:O,tagName:U,type:"open"}}function v(j,G,J,K){let O=J,Y=1;while(O<j.length&&Y>0){let U=j.indexOf("<",O);if(U===-1)return j.slice(J);let X=V(j,U);if(!X)return j.slice(J);if(X.type==="open"&&X.tagName===K&&!X.selfClosing&&!B.has(K))Y+=1;if(X.type==="close"){if(j.slice(U+2,X.end-1).trim().toLowerCase()===K){if(Y-=1,Y===0)return j.slice(J,U)}}O=X.end}return j.slice(J)}function L(j){return b(j).map((G)=>{if(!G.startsWith("<"))return q(G);let J=V(G,0);if(!J||J.type!=="open")return q(G);return H(G,J)})}function I(j){if(j.nodeType===Z.TEXT_NODE)return j.textContent??"";return"outerHTML"in j&&typeof j.outerHTML==="string"?j.outerHTML:j.textContent??""}var B=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);
|
|
2
|
-
export{C as c,M as d,k as e};
|
|
3
|
-
|
|
4
|
-
//# debugId=1FF05320553C515864756E2164756E21
|