@ecopages/radiant 0.2.0 → 0.3.0-alpha.0
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 +289 -34
- package/dist/chunk-0y78f8hj.js +4 -0
- package/dist/chunk-0y78f8hj.js.map +10 -0
- package/dist/chunk-0zq7e1ne.js +4 -0
- package/dist/chunk-0zq7e1ne.js.map +10 -0
- package/dist/chunk-13ydx769.js +4 -0
- package/dist/chunk-13ydx769.js.map +10 -0
- package/dist/chunk-147yvtsn.js +4 -0
- package/dist/chunk-147yvtsn.js.map +10 -0
- package/dist/chunk-17earqbr.js +4 -0
- package/dist/chunk-17earqbr.js.map +10 -0
- package/dist/chunk-1w1dm68j.js +4 -0
- package/dist/chunk-1w1dm68j.js.map +10 -0
- package/dist/chunk-2tgrfv09.js +4 -0
- package/dist/chunk-2tgrfv09.js.map +10 -0
- package/dist/chunk-3b033cgq.js +4 -0
- package/dist/chunk-3b033cgq.js.map +10 -0
- package/dist/chunk-42tyhfvh.js +4 -0
- package/dist/chunk-42tyhfvh.js.map +10 -0
- package/dist/chunk-4cc2syf5.js +4 -0
- package/dist/chunk-4cc2syf5.js.map +10 -0
- package/dist/chunk-4fqkmpra.js +4 -0
- package/dist/chunk-4fqkmpra.js.map +10 -0
- package/dist/chunk-4srpf0y5.js +4 -0
- package/dist/chunk-4srpf0y5.js.map +10 -0
- package/dist/chunk-57w3vmme.js +4 -0
- package/dist/chunk-57w3vmme.js.map +10 -0
- package/dist/chunk-5a2xez36.js +4 -0
- package/dist/chunk-5a2xez36.js.map +10 -0
- package/dist/chunk-5bym7y1d.js +4 -0
- package/dist/chunk-5bym7y1d.js.map +10 -0
- package/dist/chunk-5td6v9k3.js +4 -0
- package/dist/chunk-5td6v9k3.js.map +10 -0
- package/dist/chunk-60015zxq.js +4 -0
- package/dist/chunk-60015zxq.js.map +10 -0
- package/dist/chunk-60q4y3k5.js +4 -0
- package/dist/chunk-60q4y3k5.js.map +10 -0
- package/dist/chunk-6kdxrppw.js +4 -0
- package/dist/chunk-6kdxrppw.js.map +10 -0
- package/dist/chunk-6z34stya.js +4 -0
- package/dist/chunk-6z34stya.js.map +10 -0
- package/dist/chunk-73x7jpdd.js +4 -0
- package/dist/chunk-73x7jpdd.js.map +10 -0
- package/dist/chunk-84fc8cz9.js +4 -0
- package/dist/chunk-84fc8cz9.js.map +10 -0
- package/dist/chunk-8dexhy6c.js +4 -0
- package/dist/chunk-8dexhy6c.js.map +10 -0
- package/dist/chunk-8n2dhx28.js +4 -0
- package/dist/chunk-8n2dhx28.js.map +10 -0
- package/dist/chunk-8tvt04cm.js +4 -0
- package/dist/chunk-8tvt04cm.js.map +10 -0
- package/dist/chunk-8vak8w5w.js +4 -0
- package/dist/chunk-8vak8w5w.js.map +10 -0
- package/dist/chunk-8xy18qmz.js +4 -0
- package/dist/chunk-8xy18qmz.js.map +9 -0
- package/dist/chunk-9554n9t4.js +4 -0
- package/dist/chunk-9554n9t4.js.map +10 -0
- package/dist/chunk-9ascmjk3.js +4 -0
- package/dist/chunk-9ascmjk3.js.map +10 -0
- package/dist/chunk-9gjmqxp2.js +4 -0
- package/dist/chunk-9gjmqxp2.js.map +10 -0
- package/dist/chunk-a7hzs37s.js +4 -0
- package/dist/chunk-a7hzs37s.js.map +10 -0
- package/dist/chunk-aajhkdmn.js +4 -0
- package/dist/chunk-aajhkdmn.js.map +10 -0
- package/dist/chunk-agjb2a3r.js +4 -0
- package/dist/chunk-agjb2a3r.js.map +10 -0
- package/dist/chunk-ak97hp4w.js +4 -0
- package/dist/chunk-ak97hp4w.js.map +10 -0
- package/dist/chunk-bmhn4nbp.js +4 -0
- package/dist/chunk-bmhn4nbp.js.map +10 -0
- package/dist/chunk-c8vqg7r1.js +4 -0
- package/dist/chunk-c8vqg7r1.js.map +10 -0
- package/dist/chunk-cbvd18v1.js +4 -0
- package/dist/chunk-cbvd18v1.js.map +10 -0
- package/dist/chunk-chyn72n9.js +4 -0
- package/dist/chunk-chyn72n9.js.map +10 -0
- package/dist/chunk-cvz9mrxa.js +4 -0
- package/dist/chunk-cvz9mrxa.js.map +10 -0
- package/dist/chunk-d0n7njdy.js +4 -0
- package/dist/chunk-d0n7njdy.js.map +10 -0
- package/dist/chunk-d4v5qpxa.js +4 -0
- package/dist/chunk-d4v5qpxa.js.map +10 -0
- package/dist/chunk-d7hh3ze6.js +4 -0
- package/dist/chunk-d7hh3ze6.js.map +10 -0
- package/dist/chunk-d98q3myg.js +4 -0
- package/dist/chunk-d98q3myg.js.map +10 -0
- package/dist/chunk-dscj0sk9.js +4 -0
- package/dist/chunk-dscj0sk9.js.map +10 -0
- package/dist/chunk-dx1wqc00.js +4 -0
- package/dist/chunk-dx1wqc00.js.map +10 -0
- package/dist/chunk-g0gz7ypq.js +4 -0
- package/dist/chunk-g0gz7ypq.js.map +10 -0
- package/dist/chunk-hkmm3dj9.js +4 -0
- package/dist/chunk-hkmm3dj9.js.map +10 -0
- package/dist/chunk-hn4j8rt5.js +4 -0
- package/dist/chunk-hn4j8rt5.js.map +10 -0
- package/dist/chunk-jce9gqqw.js +4 -0
- package/dist/chunk-jce9gqqw.js.map +10 -0
- package/dist/chunk-jg20mzg8.js +4 -0
- package/dist/chunk-jg20mzg8.js.map +10 -0
- package/dist/chunk-jkb2y7c8.js +4 -0
- package/dist/chunk-jkb2y7c8.js.map +10 -0
- package/dist/chunk-k5hr781q.js +4 -0
- package/dist/chunk-k5hr781q.js.map +10 -0
- package/dist/chunk-ksv01cey.js +4 -0
- package/dist/chunk-ksv01cey.js.map +10 -0
- package/dist/chunk-mpjnqmbq.js +4 -0
- package/dist/chunk-mpjnqmbq.js.map +10 -0
- package/dist/chunk-mqxmfvyp.js +4 -0
- package/dist/chunk-mqxmfvyp.js.map +10 -0
- package/dist/chunk-ms6a9zdt.js +4 -0
- package/dist/chunk-ms6a9zdt.js.map +10 -0
- package/dist/chunk-nerd6fmg.js +4 -0
- package/dist/chunk-nerd6fmg.js.map +10 -0
- package/dist/chunk-nw171z6m.js +4 -0
- package/dist/chunk-nw171z6m.js.map +10 -0
- package/dist/chunk-p6pxdvkk.js +4 -0
- package/dist/chunk-p6pxdvkk.js.map +10 -0
- package/dist/chunk-paehjz94.js +4 -0
- package/dist/chunk-paehjz94.js.map +10 -0
- package/dist/chunk-par0t822.js +4 -0
- package/dist/chunk-par0t822.js.map +10 -0
- package/dist/chunk-qaagk55a.js +4 -0
- package/dist/chunk-qaagk55a.js.map +10 -0
- package/dist/chunk-qbnedp0y.js +4 -0
- package/dist/chunk-qbnedp0y.js.map +10 -0
- package/dist/chunk-qd28hvdx.js +4 -0
- package/dist/chunk-qd28hvdx.js.map +10 -0
- package/dist/chunk-qdj6r8jn.js +4 -0
- package/dist/chunk-qdj6r8jn.js.map +10 -0
- package/dist/chunk-qe6sjr27.js +4 -0
- package/dist/chunk-qe6sjr27.js.map +10 -0
- package/dist/chunk-r1cvaz1t.js +4 -0
- package/dist/chunk-r1cvaz1t.js.map +10 -0
- package/dist/chunk-r75y7ydb.js +4 -0
- package/dist/chunk-r75y7ydb.js.map +10 -0
- package/dist/chunk-s4qgct1z.js +4 -0
- package/dist/chunk-s4qgct1z.js.map +10 -0
- package/dist/chunk-scfk041e.js +4 -0
- package/dist/chunk-scfk041e.js.map +10 -0
- package/dist/chunk-t6x9e177.js +4 -0
- package/dist/chunk-t6x9e177.js.map +10 -0
- package/dist/chunk-t7a1bbxq.js +4 -0
- package/dist/chunk-t7a1bbxq.js.map +10 -0
- package/dist/chunk-tyysm4gk.js +4 -0
- package/dist/chunk-tyysm4gk.js.map +10 -0
- package/dist/chunk-vpfm9yw8.js +4 -0
- package/dist/chunk-vpfm9yw8.js.map +10 -0
- package/dist/chunk-w50v38rv.js +4 -0
- package/dist/chunk-w50v38rv.js.map +10 -0
- package/dist/chunk-x0522ksh.js +4 -0
- package/dist/chunk-x0522ksh.js.map +10 -0
- package/dist/chunk-xd1xn3vy.js +4 -0
- package/dist/chunk-xd1xn3vy.js.map +10 -0
- package/dist/chunk-zb7wh7w4.js +4 -0
- package/dist/chunk-zb7wh7w4.js.map +10 -0
- package/dist/chunk-zj9ez73m.js +4 -0
- package/dist/chunk-zj9ez73m.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 +31 -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 +17 -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.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 +106 -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/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.d.ts +34 -0
- package/dist/core/slot-projection.js +3 -0
- package/dist/core/slot-projection.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/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/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/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 +11 -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.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 +97 -21
- package/size-budget.json +22 -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecopages/radiant",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/ecopages/radiant.git"
|
|
@@ -15,29 +15,41 @@
|
|
|
15
15
|
"build:lib": "bun run clean && bun run build:files && bun run build:types",
|
|
16
16
|
"build:files": "bun run ./build.ts",
|
|
17
17
|
"build:types": "tsc -p tsconfig.build.json && tsc-alias",
|
|
18
|
-
"watch:lib": "bun run ./build.ts --watch",
|
|
19
18
|
"clean": "rm -rf ./dist",
|
|
19
|
+
"watch:lib": "bun run ./build.ts --watch",
|
|
20
|
+
"size:check": "bun run ./check-size.ts",
|
|
21
|
+
"size:report": "bun run ./check-size.ts --report-only",
|
|
20
22
|
"test:standard": "vitest run",
|
|
21
23
|
"test:legacy": "vitest run -- --legacy",
|
|
22
24
|
"test:lib": "bun run test:standard && bun run test:legacy",
|
|
23
25
|
"test:lib:coverage": "bun run test:standard -- --coverage && bun run vitest run --coverage -- --legacy"
|
|
24
26
|
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@kitajs/html": "^4.1.0"
|
|
27
|
-
},
|
|
27
|
+
"dependencies": {},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
29
|
+
"@ecopages/jsx": "workspace:*",
|
|
30
|
+
"@ecopages/signals": "workspace:*",
|
|
31
31
|
"@testing-library/dom": "^10.4.0",
|
|
32
32
|
"@testing-library/user-event": "^14.5.2",
|
|
33
|
-
"@vitest/
|
|
33
|
+
"@vitest/browser": "^3.2.4",
|
|
34
|
+
"@vitest/coverage-istanbul": "^3.2.4",
|
|
34
35
|
"bun-types": "latest",
|
|
35
36
|
"tsc-alias": "1.8.10",
|
|
36
|
-
"esbuild": "^0.
|
|
37
|
-
"
|
|
37
|
+
"esbuild": "^0.25.0",
|
|
38
|
+
"playwright": "^1.52.0",
|
|
39
|
+
"vite": "^7.1.3",
|
|
40
|
+
"vitest": "^3.2.4"
|
|
38
41
|
},
|
|
39
|
-
"
|
|
40
|
-
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@ecopages/jsx": ">=0.3.0-alpha.0 <1.0.0",
|
|
44
|
+
"@ecopages/signals": ">=0.3.0-alpha.0 <1.0.0"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"/dist/*",
|
|
48
|
+
"size-budget.json"
|
|
49
|
+
],
|
|
50
|
+
"sideEffects": [
|
|
51
|
+
"./dist/server/install-light-dom-shim.js"
|
|
52
|
+
],
|
|
41
53
|
"exports": {
|
|
42
54
|
"./package.json": {
|
|
43
55
|
"import": "./package.json"
|
|
@@ -70,10 +82,38 @@
|
|
|
70
82
|
"types": "./dist/context/decorators/context-selector.d.ts",
|
|
71
83
|
"import": "./dist/context/decorators/context-selector.js"
|
|
72
84
|
},
|
|
85
|
+
"./context/on-context-update": {
|
|
86
|
+
"types": "./dist/context/decorators/on-context-update.d.ts",
|
|
87
|
+
"import": "./dist/context/decorators/on-context-update.js"
|
|
88
|
+
},
|
|
73
89
|
"./core/radiant-element": {
|
|
74
90
|
"types": "./dist/core/radiant-element.d.ts",
|
|
75
91
|
"import": "./dist/core/radiant-element.js"
|
|
76
92
|
},
|
|
93
|
+
"./core/radiant-component": {
|
|
94
|
+
"types": "./dist/core/radiant-component.d.ts",
|
|
95
|
+
"import": "./dist/core/radiant-component.js"
|
|
96
|
+
},
|
|
97
|
+
"./signals/host-resource": {
|
|
98
|
+
"types": "./dist/signals/host-resource.d.ts",
|
|
99
|
+
"import": "./dist/signals/host-resource.js"
|
|
100
|
+
},
|
|
101
|
+
"./server/light-dom-shim": {
|
|
102
|
+
"types": "./dist/server/light-dom-shim.d.ts",
|
|
103
|
+
"import": "./dist/server/light-dom-shim.js"
|
|
104
|
+
},
|
|
105
|
+
"./server/install-light-dom-shim": {
|
|
106
|
+
"types": "./dist/server/install-light-dom-shim.d.ts",
|
|
107
|
+
"import": "./dist/server/install-light-dom-shim.js"
|
|
108
|
+
},
|
|
109
|
+
"./server/render-component": {
|
|
110
|
+
"types": "./dist/server/render-component.d.ts",
|
|
111
|
+
"import": "./dist/server/render-component.js"
|
|
112
|
+
},
|
|
113
|
+
"./server/project-root": {
|
|
114
|
+
"types": "./dist/server/project-root.d.ts",
|
|
115
|
+
"import": "./dist/server/project-root.js"
|
|
116
|
+
},
|
|
77
117
|
"./decorators/bound": {
|
|
78
118
|
"types": "./dist/decorators/bound.d.ts",
|
|
79
119
|
"import": "./dist/decorators/bound.js"
|
|
@@ -86,6 +126,26 @@
|
|
|
86
126
|
"types": "./dist/decorators/debounce.d.ts",
|
|
87
127
|
"import": "./dist/decorators/debounce.js"
|
|
88
128
|
},
|
|
129
|
+
"./helpers/debounce": {
|
|
130
|
+
"types": "./dist/helpers/debounce.d.ts",
|
|
131
|
+
"import": "./dist/helpers/debounce.js"
|
|
132
|
+
},
|
|
133
|
+
"./helpers/create-query": {
|
|
134
|
+
"types": "./dist/helpers/create-query.d.ts",
|
|
135
|
+
"import": "./dist/helpers/create-query.js"
|
|
136
|
+
},
|
|
137
|
+
"./helpers/create-query-slot": {
|
|
138
|
+
"types": "./dist/helpers/create-query-slot.d.ts",
|
|
139
|
+
"import": "./dist/helpers/create-query-slot.js"
|
|
140
|
+
},
|
|
141
|
+
"./helpers/create-event": {
|
|
142
|
+
"types": "./dist/helpers/create-event.d.ts",
|
|
143
|
+
"import": "./dist/helpers/create-event.js"
|
|
144
|
+
},
|
|
145
|
+
"./helpers/create-event-listener": {
|
|
146
|
+
"types": "./dist/helpers/create-event-listener.d.ts",
|
|
147
|
+
"import": "./dist/helpers/create-event-listener.js"
|
|
148
|
+
},
|
|
89
149
|
"./decorators/event": {
|
|
90
150
|
"types": "./dist/decorators/event.d.ts",
|
|
91
151
|
"import": "./dist/decorators/event.js"
|
|
@@ -98,26 +158,42 @@
|
|
|
98
158
|
"types": "./dist/decorators/on-updated.d.ts",
|
|
99
159
|
"import": "./dist/decorators/on-updated.js"
|
|
100
160
|
},
|
|
161
|
+
"./decorators/prop": {
|
|
162
|
+
"types": "./dist/decorators/prop.d.ts",
|
|
163
|
+
"import": "./dist/decorators/prop.js"
|
|
164
|
+
},
|
|
101
165
|
"./decorators/query": {
|
|
102
166
|
"types": "./dist/decorators/query.d.ts",
|
|
103
167
|
"import": "./dist/decorators/query.js"
|
|
104
168
|
},
|
|
105
|
-
"./decorators/
|
|
106
|
-
"types": "./dist/decorators/
|
|
107
|
-
"import": "./dist/decorators/
|
|
169
|
+
"./decorators/query-slot": {
|
|
170
|
+
"types": "./dist/decorators/query-slot.d.ts",
|
|
171
|
+
"import": "./dist/decorators/query-slot.js"
|
|
172
|
+
},
|
|
173
|
+
"./decorators/resource": {
|
|
174
|
+
"types": "./dist/decorators/resource.d.ts",
|
|
175
|
+
"import": "./dist/decorators/resource.js"
|
|
108
176
|
},
|
|
109
|
-
"./decorators/
|
|
110
|
-
"types": "./dist/decorators/
|
|
111
|
-
"import": "./dist/decorators/
|
|
177
|
+
"./decorators/signal": {
|
|
178
|
+
"types": "./dist/decorators/signal.d.ts",
|
|
179
|
+
"import": "./dist/decorators/signal.js"
|
|
112
180
|
},
|
|
113
|
-
"./
|
|
114
|
-
"types": "./dist/
|
|
115
|
-
"import": "./dist/
|
|
181
|
+
"./decorators/state": {
|
|
182
|
+
"types": "./dist/decorators/state.d.ts",
|
|
183
|
+
"import": "./dist/decorators/state.js"
|
|
116
184
|
},
|
|
117
185
|
"./tools/stringify-typed": {
|
|
118
186
|
"types": "./dist/tools/stringify-typed.d.ts",
|
|
119
187
|
"import": "./dist/tools/stringify-typed.js"
|
|
120
188
|
},
|
|
189
|
+
"./tools/render-jsx-template": {
|
|
190
|
+
"types": "./dist/tools/render-jsx-template.d.ts",
|
|
191
|
+
"import": "./dist/tools/render-jsx-template.js"
|
|
192
|
+
},
|
|
193
|
+
"./tools/escape-script-json": {
|
|
194
|
+
"types": "./dist/tools/escape-script-json.d.ts",
|
|
195
|
+
"import": "./dist/tools/escape-script-json.js"
|
|
196
|
+
},
|
|
121
197
|
"./tools/event-emitter": {
|
|
122
198
|
"types": "./dist/tools/event-emitter.d.ts",
|
|
123
199
|
"import": "./dist/tools/event-emitter.js"
|
package/size-budget.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bundles": [
|
|
3
|
+
{
|
|
4
|
+
"label": "root-client-surface",
|
|
5
|
+
"entrypoint": "./src/index.ts",
|
|
6
|
+
"maxBytes": 46080,
|
|
7
|
+
"maxGzipBytes": 12288
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"label": "client-typical",
|
|
11
|
+
"entrypoint": "./size-audit/client-typical.ts",
|
|
12
|
+
"maxBytes": 15360,
|
|
13
|
+
"maxGzipBytes": 4608
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"label": "server-render",
|
|
17
|
+
"entrypoint": "./src/server/render-component.ts",
|
|
18
|
+
"maxBytes": 10752,
|
|
19
|
+
"maxGzipBytes": 4096
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* A decorator to define a reactive field.
|
|
4
|
-
* Every time the field changes, the `notifyUpdate` method will be called.
|
|
5
|
-
*/
|
|
6
|
-
export declare function reactiveField(protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'], nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext']): any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/reactive-field.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type {\n LegacyFieldDecoratorArgs,\n StandardFieldDecoratorArgs,\n StandardOrLegacyFieldDecoratorArgs,\n} from '../types';\nimport { reactiveField as legacyReactiveField } from './legacy/reactive-field';\nimport { reactiveField as standardReactiveField } from './standard/reactive-field';\n\n/**\n * A decorator to define a reactive field.\n * Every time the field changes, the `notifyUpdate` method will be called.\n */\nexport function reactiveField(\n protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n): any {\n if (typeof nameOrContext === 'object') {\n return standardReactiveField(\n protoOrTarget as StandardFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardFieldDecoratorArgs['nameOrContext'],\n );\n }\n return legacyReactiveField(\n protoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n );\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "6FAYO,YAAS,CAAa,CAC3B,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EACL,EACA,CACF,EAEF,OAAO,EACL,EACA,CACF",
|
|
8
|
-
"debugId": "00F5476E4FB6968164756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ReactivePropertyOptions } from '../core/radiant-element';
|
|
2
|
-
import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* A decorator to define a reactive property.
|
|
5
|
-
* Every time the property changes, the `updated` method will be called.
|
|
6
|
-
* @param options {@link ReactivePropertyOptions} The options for the reactive property.
|
|
7
|
-
*/
|
|
8
|
-
export declare function reactiveProp<T = unknown>(options: ReactivePropertyOptions<T>): (protoOrTarget: StandardOrLegacyFieldDecoratorArgs["protoOrTarget"], nameOrContext: StandardOrLegacyFieldDecoratorArgs["nameOrContext"]) => any;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{F as B}from"./legacy/reactive-prop.js";import"../utils/attribute-utils.js";import{N as D}from"./standard/reactive-prop.js";function H(q){return function(z,j){if(typeof j==="object")return D(q)(z,j);return B(q)(z,j)}}export{H as reactiveProp};
|
|
2
|
-
export{H as E};
|
|
3
|
-
|
|
4
|
-
//# debugId=9B2752CFBE31C96A64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/reactive-prop.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { ReactivePropertyOptions } from '../core/radiant-element';\nimport type {\n LegacyFieldDecoratorArgs,\n StandardFieldDecoratorArgs,\n StandardOrLegacyFieldDecoratorArgs,\n} from '../types';\nimport { reactiveProp as legacyReactiveProp } from './legacy/reactive-prop';\nimport { reactiveProp as standardReactiveProp } from './standard/reactive-prop';\n\n/**\n * A decorator to define a reactive property.\n * Every time the property changes, the `updated` method will be called.\n * @param options {@link ReactivePropertyOptions} The options for the reactive property.\n */\nexport function reactiveProp<T = unknown>(options: ReactivePropertyOptions<T>) {\n return function (\n protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardReactiveProp(options)(\n protoOrTarget as StandardFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardFieldDecoratorArgs['nameOrContext'],\n );\n }\n return legacyReactiveProp(options)(\n protoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n );\n };\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "8HAcO,WAAS,GAAyB,CAAC,EAAqC,CAC7E,eAAgB,CACd,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EAAqB,CAAO,EACjC,EACA,CACF,EAEF,OAAO,EAAmB,CAAO,EAC/B,EACA,CACF",
|
|
8
|
-
"debugId": "9B2752CFBE31C96A64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/mixins/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './with-kita';
|
package/dist/mixins/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RadiantElement, RenderInsertPosition } from '../core/radiant-element';
|
|
2
|
-
type Constructor<T> = new (...args: any[]) => T;
|
|
3
|
-
type WithKitaRenderTemplateProps = {
|
|
4
|
-
target: HTMLElement;
|
|
5
|
-
template: JSX.Element | string;
|
|
6
|
-
insert?: RenderInsertPosition;
|
|
7
|
-
};
|
|
8
|
-
interface WithKitaMixin {
|
|
9
|
-
renderTemplate: (props: WithKitaRenderTemplateProps) => Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A mixin that provides a method to render a JSX template into an HTMLElement.
|
|
13
|
-
*/
|
|
14
|
-
export declare function WithKita<T extends Constructor<RadiantElement>>(Base: T): T & Constructor<WithKitaMixin>;
|
|
15
|
-
export {};
|
package/dist/mixins/with-kita.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
function u(k){return class extends k{async renderTemplate({target:b=this,template:c,insert:q="replace"}){const j=typeof c!=="string"?c.toString():c;switch(q){case"replace":b.innerHTML=j;break;case"beforeend":b.insertAdjacentHTML("beforeend",j);break;case"afterbegin":b.insertAdjacentHTML("afterbegin",j);break}}}}export{u as WithKita};
|
|
2
|
-
export{u as d};
|
|
3
|
-
|
|
4
|
-
//# debugId=22E283929C2A685B64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/mixins/with-kita.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement, RenderInsertPosition } from '../core/radiant-element';\n\ntype Constructor<T> = new (...args: any[]) => T;\n\ntype WithKitaRenderTemplateProps = {\n target: HTMLElement;\n template: JSX.Element | string;\n insert?: RenderInsertPosition;\n};\n\ninterface WithKitaMixin {\n renderTemplate: (props: WithKitaRenderTemplateProps) => Promise<void>;\n}\n\n/**\n * A mixin that provides a method to render a JSX template into an HTMLElement.\n */\nexport function WithKita<T extends Constructor<RadiantElement>>(Base: T): T & Constructor<WithKitaMixin> {\n return class extends Base implements WithKitaMixin {\n override async renderTemplate({ target = this, template, insert = 'replace' }: WithKitaRenderTemplateProps) {\n const safeTemplate = typeof template !== 'string' ? template.toString() : template;\n switch (insert) {\n case 'replace':\n target.innerHTML = safeTemplate;\n break;\n case 'beforeend':\n target.insertAdjacentHTML('beforeend', safeTemplate);\n break;\n case 'afterbegin':\n target.insertAdjacentHTML('afterbegin', safeTemplate);\n break;\n }\n }\n } as T & Constructor<WithKitaMixin>;\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "AAiBO,SAAS,CAA+C,CAAC,EAAyC,CACvG,OAAO,cAAc,CAA8B,MAClC,eAAc,EAAG,SAAS,KAAM,WAAU,SAAS,WAA0C,CAC1G,MAAM,SAAsB,IAAa,SAAW,EAAS,SAAS,EAAI,EAC1E,OAAQ,OACD,UACH,EAAO,UAAY,EACnB,UACG,YACH,EAAO,mBAAmB,YAAa,CAAY,EACnD,UACG,aACH,EAAO,mBAAmB,aAAc,CAAY,EACpD,OAGR",
|
|
8
|
-
"debugId": "22E283929C2A685B64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|