@ecopages/radiant 0.3.0-alpha.0 → 0.3.0-alpha.10
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 +72 -57
- package/dist/LICENSE +21 -0
- package/dist/client/app-bootstrap.d.ts +19 -0
- package/dist/client/app-bootstrap.js +3 -0
- package/dist/client/app-bootstrap.js.map +10 -0
- package/dist/client/hydrator.d.ts +19 -0
- package/dist/client/hydrator.js +3 -0
- package/dist/client/hydrator.js.map +11 -0
- package/dist/client/install-hydrator.d.ts +1 -0
- package/dist/client/install-hydrator.js +3 -0
- package/dist/client/install-hydrator.js.map +12 -0
- package/dist/context/context-consumer-bootstrap.d.ts +7 -6
- package/dist/context/context-consumer-bootstrap.js +2 -2
- package/dist/context/context-consumer-bootstrap.js.map +8 -3
- package/dist/context/context-consumer-runtime.d.ts +21 -8
- package/dist/context/context-consumer-runtime.js +2 -2
- package/dist/context/context-consumer-runtime.js.map +6 -3
- package/dist/context/context-host.d.ts +25 -0
- package/dist/context/context-host.js +3 -0
- package/dist/context/context-host.js.map +10 -0
- package/dist/context/context-provider.d.ts +10 -6
- package/dist/context/context-provider.js +2 -2
- package/dist/context/context-provider.js.map +9 -3
- package/dist/context/context-ssr-bridge.js +2 -2
- package/dist/context/context-ssr-bridge.js.map +4 -3
- package/dist/context/create-context.js +2 -2
- package/dist/context/create-context.js.map +4 -3
- package/dist/context/decorators/consume-context.d.ts +5 -2
- package/dist/context/decorators/consume-context.js +2 -2
- package/dist/context/decorators/consume-context.js.map +13 -3
- package/dist/context/decorators/context-selection-delivery.d.ts +1 -1
- package/dist/context/decorators/context-selection-delivery.js +2 -2
- package/dist/context/decorators/context-selection-delivery.js.map +5 -3
- package/dist/context/decorators/context-selector.d.ts +6 -11
- package/dist/context/decorators/context-selector.js +2 -2
- package/dist/context/decorators/context-selector.js.map +15 -3
- package/dist/context/decorators/legacy/consume-context.d.ts +2 -2
- package/dist/context/decorators/legacy/consume-context.js +2 -2
- package/dist/context/decorators/legacy/consume-context.js.map +10 -3
- package/dist/context/decorators/legacy/context-selector-field.d.ts +2 -2
- package/dist/context/decorators/legacy/context-selector-field.js +2 -2
- package/dist/context/decorators/legacy/context-selector-field.js.map +11 -3
- package/dist/context/decorators/legacy/context-selector.d.ts +2 -2
- package/dist/context/decorators/legacy/context-selector.js +2 -2
- package/dist/context/decorators/legacy/context-selector.js.map +11 -3
- package/dist/context/decorators/legacy/provide-context.d.ts +2 -2
- package/dist/context/decorators/legacy/provide-context.js +2 -2
- package/dist/context/decorators/legacy/provide-context.js.map +11 -3
- package/dist/context/decorators/on-context-update.d.ts +5 -5
- package/dist/context/decorators/on-context-update.js +2 -2
- package/dist/context/decorators/on-context-update.js.map +14 -3
- package/dist/context/decorators/provide-context.d.ts +5 -2
- package/dist/context/decorators/provide-context.js +2 -2
- package/dist/context/decorators/provide-context.js.map +14 -3
- package/dist/context/decorators/standard/consume-context.d.ts +2 -2
- package/dist/context/decorators/standard/consume-context.js +2 -2
- package/dist/context/decorators/standard/consume-context.js.map +9 -3
- package/dist/context/decorators/standard/context-selector-field.d.ts +2 -2
- package/dist/context/decorators/standard/context-selector-field.js +2 -2
- package/dist/context/decorators/standard/context-selector-field.js.map +10 -3
- package/dist/context/decorators/standard/context-selector.d.ts +2 -3
- package/dist/context/decorators/standard/context-selector.js +2 -2
- package/dist/context/decorators/standard/context-selector.js.map +10 -3
- package/dist/context/decorators/standard/provide-context.d.ts +2 -2
- package/dist/context/decorators/standard/provide-context.js +2 -2
- package/dist/context/decorators/standard/provide-context.js.map +10 -3
- package/dist/context/events.d.ts +18 -11
- package/dist/context/events.js +2 -2
- package/dist/context/events.js.map +4 -3
- package/dist/context/hydration-script.d.ts +0 -4
- package/dist/context/hydration-script.js +2 -2
- package/dist/context/hydration-script.js.map +6 -3
- package/dist/context/index.d.ts +8 -0
- package/dist/context/index.js +3 -0
- package/dist/context/index.js.map +35 -0
- package/dist/controller-registry.d.ts +38 -0
- package/dist/controller-registry.js +3 -0
- package/dist/controller-registry.js.map +11 -0
- package/dist/core/controller-metadata.d.ts +3 -0
- package/dist/core/controller-metadata.js +3 -0
- package/dist/core/controller-metadata.js.map +10 -0
- package/dist/core/custom-element-metadata.d.ts +11 -0
- package/dist/core/custom-element-metadata.js +2 -2
- package/dist/core/custom-element-metadata.js.map +4 -3
- package/dist/core/hydration-codec.d.ts +8 -1
- package/dist/core/hydration-codec.js +2 -2
- package/dist/core/hydration-codec.js.map +5 -3
- 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 +10 -0
- package/dist/core/radiant-component-ssr.d.ts +3 -3
- package/dist/core/radiant-component-ssr.js +2 -2
- package/dist/core/radiant-component-ssr.js.map +8 -3
- package/dist/core/radiant-controller.d.ts +128 -0
- package/dist/core/radiant-controller.js +3 -0
- package/dist/core/radiant-controller.js.map +13 -0
- package/dist/core/radiant-element.d.ts +80 -41
- package/dist/core/radiant-element.js +2 -2
- package/dist/core/radiant-element.js.map +13 -3
- 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 +10 -0
- package/dist/core/reactive-host.d.ts +137 -0
- package/dist/core/reactive-host.js +3 -0
- package/dist/core/reactive-host.js.map +10 -0
- package/dist/core/reactive-jsx-value.js +2 -2
- package/dist/core/reactive-jsx-value.js.map +4 -3
- package/dist/core/reactive-prop-metadata.js +2 -2
- package/dist/core/reactive-prop-metadata.js.map +4 -3
- 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 +12 -0
- package/dist/core/ssr-preparation.js +2 -2
- package/dist/core/ssr-preparation.js.map +4 -3
- package/dist/decorators/attr.d.ts +6 -0
- package/dist/decorators/attr.js +3 -0
- package/dist/decorators/attr.js.map +16 -0
- package/dist/decorators/bound.d.ts +4 -2
- package/dist/decorators/bound.js +2 -2
- package/dist/decorators/bound.js.map +7 -3
- package/dist/decorators/bridge.d.ts +11 -7
- package/dist/decorators/bridge.js +2 -2
- package/dist/decorators/bridge.js.map +4 -3
- package/dist/decorators/controller.d.ts +2 -0
- package/dist/decorators/controller.js +3 -0
- package/dist/decorators/controller.js.map +12 -0
- package/dist/decorators/custom-element.d.ts +4 -2
- package/dist/decorators/custom-element.js +2 -2
- package/dist/decorators/custom-element.js.map +7 -3
- package/dist/decorators/debounce.d.ts +5 -2
- package/dist/decorators/debounce.js +2 -2
- package/dist/decorators/debounce.js.map +8 -3
- package/dist/decorators/event.d.ts +5 -2
- package/dist/decorators/event.js +2 -2
- package/dist/decorators/event.js.map +10 -3
- package/dist/decorators/legacy/attr.d.ts +2 -0
- package/dist/decorators/legacy/attr.js +3 -0
- package/dist/decorators/legacy/attr.js.map +13 -0
- package/dist/decorators/legacy/bound.js +2 -2
- package/dist/decorators/legacy/bound.js.map +4 -3
- package/dist/decorators/legacy/custom-element.js +2 -2
- package/dist/decorators/legacy/custom-element.js.map +5 -3
- package/dist/decorators/legacy/debounce.js +2 -2
- package/dist/decorators/legacy/debounce.js.map +5 -3
- package/dist/decorators/legacy/event.js +2 -2
- package/dist/decorators/legacy/event.js.map +7 -3
- package/dist/decorators/legacy/instance-initializers.d.ts +3 -4
- package/dist/decorators/legacy/instance-initializers.js +2 -2
- package/dist/decorators/legacy/instance-initializers.js.map +4 -3
- package/dist/decorators/legacy/on-event.d.ts +2 -2
- package/dist/decorators/legacy/on-event.js +2 -2
- package/dist/decorators/legacy/on-event.js.map +7 -3
- package/dist/decorators/legacy/on-updated.d.ts +7 -2
- package/dist/decorators/legacy/on-updated.js +2 -2
- package/dist/decorators/legacy/on-updated.js.map +5 -3
- package/dist/decorators/legacy/query-slot.d.ts +1 -1
- package/dist/decorators/legacy/query-slot.js +2 -2
- package/dist/decorators/legacy/query-slot.js.map +7 -3
- package/dist/decorators/legacy/query.d.ts +7 -2
- package/dist/decorators/legacy/query.js +2 -2
- package/dist/decorators/legacy/query.js.map +6 -3
- package/dist/decorators/legacy/reactive-field.d.ts +2 -2
- package/dist/decorators/legacy/reactive-field.js +2 -2
- package/dist/decorators/legacy/reactive-field.js.map +5 -3
- package/dist/decorators/legacy/reactive-prop.d.ts +10 -16
- package/dist/decorators/legacy/reactive-prop.js +2 -2
- package/dist/decorators/legacy/reactive-prop.js.map +7 -3
- package/dist/decorators/legacy/signal.d.ts +4 -3
- package/dist/decorators/legacy/signal.js +2 -2
- package/dist/decorators/legacy/signal.js.map +9 -3
- package/dist/decorators/on-event.d.ts +6 -3
- package/dist/decorators/on-event.js +2 -2
- package/dist/decorators/on-event.js.map +10 -3
- package/dist/decorators/on-updated.d.ts +12 -2
- package/dist/decorators/on-updated.js +2 -2
- package/dist/decorators/on-updated.js.map +8 -3
- package/dist/decorators/prop.d.ts +19 -7
- package/dist/decorators/prop.js +2 -2
- package/dist/decorators/prop.js.map +10 -3
- package/dist/decorators/query-slot.d.ts +7 -3
- package/dist/decorators/query-slot.js +2 -2
- package/dist/decorators/query-slot.js.map +10 -3
- package/dist/decorators/query.d.ts +9 -2
- package/dist/decorators/query.js +2 -2
- package/dist/decorators/query.js.map +9 -3
- package/dist/decorators/shared/reactive-attr.d.ts +25 -0
- package/dist/decorators/shared/reactive-attr.js +3 -0
- package/dist/decorators/shared/reactive-attr.js.map +11 -0
- package/dist/decorators/signal.d.ts +10 -4
- package/dist/decorators/signal.js +2 -2
- package/dist/decorators/signal.js.map +11 -3
- package/dist/decorators/standard/attr.d.ts +2 -0
- package/dist/decorators/standard/attr.js +3 -0
- package/dist/decorators/standard/attr.js.map +12 -0
- package/dist/decorators/standard/bound.js +2 -2
- package/dist/decorators/standard/bound.js.map +4 -3
- package/dist/decorators/standard/custom-element.js +2 -2
- package/dist/decorators/standard/custom-element.js.map +5 -3
- package/dist/decorators/standard/debounce.js +2 -2
- package/dist/decorators/standard/debounce.js.map +5 -3
- package/dist/decorators/standard/event.js +2 -2
- package/dist/decorators/standard/event.js.map +6 -3
- package/dist/decorators/standard/on-event.d.ts +2 -1
- package/dist/decorators/standard/on-event.js +2 -2
- package/dist/decorators/standard/on-event.js.map +6 -3
- package/dist/decorators/standard/on-updated.d.ts +5 -1
- package/dist/decorators/standard/on-updated.js +2 -2
- package/dist/decorators/standard/on-updated.js.map +4 -3
- package/dist/decorators/standard/query-slot.d.ts +1 -1
- package/dist/decorators/standard/query-slot.js +2 -2
- package/dist/decorators/standard/query-slot.js.map +5 -3
- package/dist/decorators/standard/query.d.ts +2 -1
- package/dist/decorators/standard/query.js +2 -2
- package/dist/decorators/standard/query.js.map +5 -3
- package/dist/decorators/standard/reactive-field.d.ts +2 -2
- package/dist/decorators/standard/reactive-field.js +2 -2
- package/dist/decorators/standard/reactive-field.js.map +4 -3
- package/dist/decorators/standard/reactive-prop.d.ts +13 -2
- package/dist/decorators/standard/reactive-prop.js +2 -2
- package/dist/decorators/standard/reactive-prop.js.map +6 -3
- package/dist/decorators/standard/signal.d.ts +4 -3
- package/dist/decorators/standard/signal.js +2 -2
- package/dist/decorators/standard/signal.js.map +8 -3
- package/dist/decorators/state.d.ts +6 -5
- package/dist/decorators/state.js +2 -2
- package/dist/decorators/state.js.map +8 -3
- package/dist/helpers/create-event-listener.d.ts +11 -2
- package/dist/helpers/create-event-listener.js +2 -2
- package/dist/helpers/create-event-listener.js.map +5 -3
- package/dist/helpers/create-event.js +2 -2
- package/dist/helpers/create-event.js.map +5 -3
- package/dist/helpers/create-query-slot.d.ts +2 -2
- package/dist/helpers/create-query-slot.js +2 -2
- package/dist/helpers/create-query-slot.js.map +4 -3
- package/dist/helpers/create-query.d.ts +14 -3
- package/dist/helpers/create-query.js +2 -2
- package/dist/helpers/create-query.js.map +4 -3
- package/dist/helpers/debounce.js +2 -2
- package/dist/helpers/debounce.js.map +4 -3
- package/dist/helpers/index.js +2 -2
- package/dist/helpers/index.js.map +10 -3
- package/dist/index.d.ts +4 -12
- package/dist/index.js +2 -2
- package/dist/index.js.map +66 -3
- package/dist/server/context-ssr.js +2 -2
- package/dist/server/context-ssr.js.map +5 -3
- package/dist/server/html-parser.d.ts +21 -0
- package/dist/server/html-parser.js +3 -0
- package/dist/server/html-parser.js.map +10 -0
- package/dist/server/install-light-dom-shim.js +2 -2
- package/dist/server/install-light-dom-shim.js.map +5 -3
- package/dist/server/light-dom-shim.d.ts +9 -0
- package/dist/server/light-dom-shim.js +2 -2
- package/dist/server/light-dom-shim.js.map +5 -3
- package/dist/server/project-root.js +2 -2
- package/dist/server/project-root.js.map +2 -2
- 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 +17 -0
- package/dist/server/render-component.d.ts +7 -17
- package/dist/server/render-component.js +2 -2
- package/dist/server/render-component.js.map +14 -4
- package/dist/server/render-controller.d.ts +57 -0
- package/dist/server/render-controller.js +3 -0
- package/dist/server/render-controller.js.map +23 -0
- package/dist/server/slot-projection-html.d.ts +3 -0
- package/dist/server/slot-projection-html.js +3 -0
- package/dist/server/slot-projection-html.js.map +14 -0
- package/dist/signals/host-resource.js +2 -2
- package/dist/signals/host-resource.js.map +2 -2
- package/dist/signals/host-signal.d.ts +4 -2
- package/dist/signals/host-signal.js +2 -2
- package/dist/signals/host-signal.js.map +7 -3
- package/dist/signals/hydration-script.d.ts +0 -4
- package/dist/signals/hydration-script.js +2 -2
- package/dist/signals/hydration-script.js.map +6 -3
- package/dist/tools/escape-css-identifier.d.ts +1 -0
- package/dist/tools/escape-css-identifier.js +3 -0
- package/dist/tools/escape-css-identifier.js.map +10 -0
- package/dist/tools/escape-script-json.js +2 -2
- package/dist/tools/escape-script-json.js.map +4 -3
- package/dist/tools/event-emitter.js +2 -2
- package/dist/tools/event-emitter.js.map +4 -3
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +2 -2
- package/dist/tools/index.js.map +7 -3
- package/dist/tools/render-jsx-template.js +2 -2
- package/dist/tools/render-jsx-template.js.map +4 -3
- package/dist/types.d.ts +0 -21
- package/dist/types.js +2 -2
- package/dist/types.js.map +3 -3
- package/dist/utils/attribute-utils.js +2 -2
- package/dist/utils/attribute-utils.js.map +4 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +4 -3
- package/package.json +41 -8
- package/size-budget.json +12 -9
- package/dist/chunk-0y78f8hj.js +0 -4
- package/dist/chunk-0y78f8hj.js.map +0 -10
- package/dist/chunk-0zq7e1ne.js +0 -4
- package/dist/chunk-0zq7e1ne.js.map +0 -10
- package/dist/chunk-13ydx769.js +0 -4
- package/dist/chunk-13ydx769.js.map +0 -10
- package/dist/chunk-147yvtsn.js +0 -4
- package/dist/chunk-147yvtsn.js.map +0 -10
- package/dist/chunk-17earqbr.js +0 -4
- package/dist/chunk-17earqbr.js.map +0 -10
- package/dist/chunk-1w1dm68j.js +0 -4
- package/dist/chunk-1w1dm68j.js.map +0 -10
- package/dist/chunk-2tgrfv09.js +0 -4
- package/dist/chunk-2tgrfv09.js.map +0 -10
- package/dist/chunk-3b033cgq.js +0 -4
- package/dist/chunk-3b033cgq.js.map +0 -10
- package/dist/chunk-42tyhfvh.js +0 -4
- package/dist/chunk-42tyhfvh.js.map +0 -10
- package/dist/chunk-4cc2syf5.js +0 -4
- package/dist/chunk-4cc2syf5.js.map +0 -10
- package/dist/chunk-4fqkmpra.js +0 -4
- package/dist/chunk-4fqkmpra.js.map +0 -10
- package/dist/chunk-4srpf0y5.js +0 -4
- package/dist/chunk-4srpf0y5.js.map +0 -10
- package/dist/chunk-57w3vmme.js +0 -4
- package/dist/chunk-57w3vmme.js.map +0 -10
- package/dist/chunk-5a2xez36.js +0 -4
- package/dist/chunk-5a2xez36.js.map +0 -10
- package/dist/chunk-5bym7y1d.js +0 -4
- package/dist/chunk-5bym7y1d.js.map +0 -10
- package/dist/chunk-5td6v9k3.js +0 -4
- package/dist/chunk-5td6v9k3.js.map +0 -10
- package/dist/chunk-60015zxq.js +0 -4
- package/dist/chunk-60015zxq.js.map +0 -10
- package/dist/chunk-60q4y3k5.js +0 -4
- package/dist/chunk-60q4y3k5.js.map +0 -10
- 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-73x7jpdd.js +0 -4
- package/dist/chunk-73x7jpdd.js.map +0 -10
- package/dist/chunk-84fc8cz9.js +0 -4
- package/dist/chunk-84fc8cz9.js.map +0 -10
- package/dist/chunk-8dexhy6c.js +0 -4
- package/dist/chunk-8dexhy6c.js.map +0 -10
- package/dist/chunk-8n2dhx28.js +0 -4
- package/dist/chunk-8n2dhx28.js.map +0 -10
- package/dist/chunk-8tvt04cm.js +0 -4
- package/dist/chunk-8tvt04cm.js.map +0 -10
- package/dist/chunk-8vak8w5w.js +0 -4
- package/dist/chunk-8vak8w5w.js.map +0 -10
- package/dist/chunk-8xy18qmz.js +0 -4
- package/dist/chunk-8xy18qmz.js.map +0 -9
- package/dist/chunk-9554n9t4.js +0 -4
- package/dist/chunk-9554n9t4.js.map +0 -10
- package/dist/chunk-9ascmjk3.js +0 -4
- package/dist/chunk-9ascmjk3.js.map +0 -10
- package/dist/chunk-9gjmqxp2.js +0 -4
- package/dist/chunk-9gjmqxp2.js.map +0 -10
- package/dist/chunk-a7hzs37s.js +0 -4
- package/dist/chunk-a7hzs37s.js.map +0 -10
- package/dist/chunk-aajhkdmn.js +0 -4
- package/dist/chunk-aajhkdmn.js.map +0 -10
- package/dist/chunk-agjb2a3r.js +0 -4
- package/dist/chunk-agjb2a3r.js.map +0 -10
- package/dist/chunk-ak97hp4w.js +0 -4
- package/dist/chunk-ak97hp4w.js.map +0 -10
- package/dist/chunk-bmhn4nbp.js +0 -4
- package/dist/chunk-bmhn4nbp.js.map +0 -10
- package/dist/chunk-c8vqg7r1.js +0 -4
- package/dist/chunk-c8vqg7r1.js.map +0 -10
- package/dist/chunk-cbvd18v1.js +0 -4
- package/dist/chunk-cbvd18v1.js.map +0 -10
- package/dist/chunk-chyn72n9.js +0 -4
- package/dist/chunk-chyn72n9.js.map +0 -10
- package/dist/chunk-cvz9mrxa.js +0 -4
- package/dist/chunk-cvz9mrxa.js.map +0 -10
- package/dist/chunk-d0n7njdy.js +0 -4
- package/dist/chunk-d0n7njdy.js.map +0 -10
- package/dist/chunk-d4v5qpxa.js +0 -4
- package/dist/chunk-d4v5qpxa.js.map +0 -10
- package/dist/chunk-d7hh3ze6.js +0 -4
- package/dist/chunk-d7hh3ze6.js.map +0 -10
- package/dist/chunk-d98q3myg.js +0 -4
- package/dist/chunk-d98q3myg.js.map +0 -10
- package/dist/chunk-dscj0sk9.js +0 -4
- package/dist/chunk-dscj0sk9.js.map +0 -10
- package/dist/chunk-dx1wqc00.js +0 -4
- package/dist/chunk-dx1wqc00.js.map +0 -10
- package/dist/chunk-g0gz7ypq.js +0 -4
- package/dist/chunk-g0gz7ypq.js.map +0 -10
- package/dist/chunk-hkmm3dj9.js +0 -4
- package/dist/chunk-hkmm3dj9.js.map +0 -10
- package/dist/chunk-hn4j8rt5.js +0 -4
- package/dist/chunk-hn4j8rt5.js.map +0 -10
- package/dist/chunk-jce9gqqw.js +0 -4
- package/dist/chunk-jce9gqqw.js.map +0 -10
- package/dist/chunk-jg20mzg8.js +0 -4
- package/dist/chunk-jg20mzg8.js.map +0 -10
- package/dist/chunk-jkb2y7c8.js +0 -4
- package/dist/chunk-jkb2y7c8.js.map +0 -10
- package/dist/chunk-k5hr781q.js +0 -4
- package/dist/chunk-k5hr781q.js.map +0 -10
- package/dist/chunk-ksv01cey.js +0 -4
- package/dist/chunk-ksv01cey.js.map +0 -10
- package/dist/chunk-mpjnqmbq.js +0 -4
- package/dist/chunk-mpjnqmbq.js.map +0 -10
- package/dist/chunk-mqxmfvyp.js +0 -4
- package/dist/chunk-mqxmfvyp.js.map +0 -10
- package/dist/chunk-ms6a9zdt.js +0 -4
- package/dist/chunk-ms6a9zdt.js.map +0 -10
- package/dist/chunk-nerd6fmg.js +0 -4
- package/dist/chunk-nerd6fmg.js.map +0 -10
- 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-p6pxdvkk.js.map +0 -10
- package/dist/chunk-paehjz94.js +0 -4
- package/dist/chunk-paehjz94.js.map +0 -10
- package/dist/chunk-par0t822.js +0 -4
- package/dist/chunk-par0t822.js.map +0 -10
- package/dist/chunk-qaagk55a.js +0 -4
- package/dist/chunk-qaagk55a.js.map +0 -10
- package/dist/chunk-qbnedp0y.js +0 -4
- package/dist/chunk-qbnedp0y.js.map +0 -10
- package/dist/chunk-qd28hvdx.js +0 -4
- package/dist/chunk-qd28hvdx.js.map +0 -10
- package/dist/chunk-qdj6r8jn.js +0 -4
- package/dist/chunk-qdj6r8jn.js.map +0 -10
- package/dist/chunk-qe6sjr27.js +0 -4
- package/dist/chunk-qe6sjr27.js.map +0 -10
- 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-r75y7ydb.js.map +0 -10
- package/dist/chunk-s4qgct1z.js +0 -4
- package/dist/chunk-s4qgct1z.js.map +0 -10
- package/dist/chunk-scfk041e.js +0 -4
- package/dist/chunk-scfk041e.js.map +0 -10
- package/dist/chunk-t6x9e177.js +0 -4
- package/dist/chunk-t6x9e177.js.map +0 -10
- package/dist/chunk-t7a1bbxq.js +0 -4
- package/dist/chunk-t7a1bbxq.js.map +0 -10
- package/dist/chunk-tyysm4gk.js +0 -4
- package/dist/chunk-tyysm4gk.js.map +0 -10
- package/dist/chunk-vpfm9yw8.js +0 -4
- package/dist/chunk-vpfm9yw8.js.map +0 -10
- package/dist/chunk-w50v38rv.js +0 -4
- package/dist/chunk-w50v38rv.js.map +0 -10
- package/dist/chunk-x0522ksh.js +0 -4
- package/dist/chunk-x0522ksh.js.map +0 -10
- package/dist/chunk-xd1xn3vy.js +0 -4
- package/dist/chunk-xd1xn3vy.js.map +0 -10
- package/dist/chunk-zb7wh7w4.js +0 -4
- package/dist/chunk-zb7wh7w4.js.map +0 -10
- package/dist/chunk-zj9ez73m.js +0 -4
- package/dist/chunk-zj9ez73m.js.map +0 -10
- package/dist/core/radiant-component.d.ts +0 -106
- package/dist/core/radiant-component.js +0 -3
- package/dist/core/radiant-component.js.map +0 -9
- package/dist/core/slot-projection.js +0 -3
- package/dist/core/slot-projection.js.map +0 -9
- package/dist/tools/stringify-typed.d.ts +0 -16
- package/dist/tools/stringify-typed.js +0 -3
- package/dist/tools/stringify-typed.js.map +0 -9
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/tools/event-emitter.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../core/radiant-element';\n\nexport interface EventEmitterConfig {\n\tname: string;\n\tbubbles?: boolean;\n\tcancelable?: boolean;\n\tcomposed?: boolean;\n}\n\n/**\n * A generic event emitter class that allows emitting custom events.\n *\n * @template T - The type of the event detail.\n */\nexport class EventEmitter<T = unknown> {\n\tprivate host: RadiantElement;\n\tprivate eventConfig: EventEmitterConfig;\n\n\t/**\n\t * Constructs a new instance of the EventEmitter class.\n\t *\n\t * @param host - The host element on which the events will be dispatched.\n\t * @param eventConfig - The configuration for the event.\n\t */\n\tconstructor(host: RadiantElement, eventConfig: EventEmitterConfig) {\n\t\tthis.host = host;\n\t\tthis.eventConfig = eventConfig;\n\t}\n\n\t/**\n\t * Emits a custom event with the specified detail.\n\t *\n\t * @param detail - The detail object to be passed along with the event.\n\t */\n\temit(detail?: T) {\n\t\tconst event = new CustomEvent(this.eventConfig.name, {\n\t\t\tdetail: detail,\n\t\t\tbubbles: this.eventConfig.bubbles,\n\t\t\tcancelable: this.eventConfig.cancelable,\n\t\t\tcomposed: this.eventConfig.composed,\n\t\t});\n\t\tthis.host.dispatchEvent(event);\n\t}\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "AAcO,MAAM,CAA0B,CAC9B,KACA,YAQR,WAAW,CAAC,EAAsB,EAAiC,CAClE,KAAK,KAAO,EACZ,KAAK,YAAc,EAQpB,IAAI,CAAC,EAAY,CAChB,IAAM,EAAQ,IAAI,YAAY,KAAK,YAAY,KAAM,CACpD,OAAQ,EACR,QAAS,KAAK,YAAY,QAC1B,WAAY,KAAK,YAAY,WAC7B,SAAU,KAAK,YAAY,QAC5B,CAAC,EACD,KAAK,KAAK,cAAc,CAAK,EAE/B",
|
|
8
|
-
"debugId": "AEA3C1BE04BFDA6B64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-qd28hvdx.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
function H(j,A={}){let B=null,D,E=()=>{if(A.all)return typeof j.getSlotElements==="function"?j.getSlotElements(A.name):[];return typeof j.getSlotElement==="function"?j.getSlotElement(A.name):null};return{get value(){if(A.cache===!1)return E();let G=j.slotProjectionVersion??0;if(D!==G)B=E(),D=G;return B}}}
|
|
2
|
-
export{H as rb};
|
|
3
|
-
|
|
4
|
-
//# debugId=F198B669EF7F9C8F64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/helpers/create-query-slot.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"export type QuerySlotConfig = {\n\tall?: boolean;\n\tcache?: boolean;\n\tname?: string;\n};\n\ntype SlotQueryHost = HTMLElement & {\n\tgetSlotElement<T extends Element = Element>(name?: string): T | null;\n\tgetSlotElements<T extends Element = Element>(name?: string): T[];\n};\n\ntype QuerySlotResult<T extends Element | Element[]> = {\n\tget value(): T | null;\n};\n\n/**\n * Creates a lazy slot query accessor bound to a host element.\n * Functional equivalent of the `@querySlot` decorator for vanilla JS usage.\n * @param host The host element to query slots within.\n * @param options {@link QuerySlotConfig} The slot query configuration.\n */\nexport function createQuerySlot<T extends Element | Element[] = Element>(\n\thost: SlotQueryHost,\n\toptions: QuerySlotConfig = {},\n): QuerySlotResult<T> {\n\tlet cached: T | null = null;\n\tlet cachedVersion: number | undefined;\n\n\tconst executeQuery = (): T | null => {\n\t\tif (options.all) {\n\t\t\treturn (typeof host.getSlotElements === 'function' ? host.getSlotElements(options.name) : []) as T;\n\t\t}\n\t\treturn (typeof host.getSlotElement === 'function' ? host.getSlotElement(options.name) : null) as T | null;\n\t};\n\n\treturn {\n\t\tget value(): T | null {\n\t\t\tif (options.cache === false) {\n\t\t\t\treturn executeQuery();\n\t\t\t}\n\n\t\t\tconst currentVersion = (host as unknown as Record<string, number | undefined>).slotProjectionVersion ?? 0;\n\n\t\t\tif (cachedVersion !== currentVersion) {\n\t\t\t\tcached = executeQuery();\n\t\t\t\tcachedVersion = currentVersion;\n\t\t\t}\n\n\t\t\treturn cached;\n\t\t},\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "AAqBO,SAAS,CAAwD,CACvE,EACA,EAA2B,CAAC,EACP,CACrB,IAAI,EAAmB,KACnB,EAEE,EAAe,IAAgB,CACpC,GAAI,EAAQ,IACX,OAAQ,OAAO,EAAK,kBAAoB,WAAa,EAAK,gBAAgB,EAAQ,IAAI,EAAI,CAAC,EAE5F,OAAQ,OAAO,EAAK,iBAAmB,WAAa,EAAK,eAAe,EAAQ,IAAI,EAAI,MAGzF,MAAO,IACF,MAAK,EAAa,CACrB,GAAI,EAAQ,QAAU,GACrB,OAAO,EAAa,EAGrB,IAAM,EAAkB,EAAuD,uBAAyB,EAExG,GAAI,IAAkB,EACrB,EAAS,EAAa,EACtB,EAAgB,EAGjB,OAAO,EAET",
|
|
8
|
-
"debugId": "F198B669EF7F9C8F64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-qdj6r8jn.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
function n(i){return function(e,t){t.addInitializer(function(){if(this[t.name]=this[t.name].bind(this),Array.isArray(i))for(let a of i)this.registerUpdateCallback(a,this[t.name]);else if(typeof i==="string")this.registerUpdateCallback(i,this[t.name])})}}
|
|
2
|
-
export{n as Ea};
|
|
3
|
-
|
|
4
|
-
//# debugId=27FD3BFA6064B80A64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/standard/on-updated.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport type { Method } from '../../types';\n\nexport function onUpdated(keyOrKeys: string | string[]) {\n\treturn function <T extends Method>(_: T, context: ClassMethodDecoratorContext): void {\n\t\tcontext.addInitializer(function (this: any) {\n\t\t\tthis[context.name] = this[context.name].bind(this);\n\t\t\tif (Array.isArray(keyOrKeys)) {\n\t\t\t\tfor (const key of keyOrKeys) {\n\t\t\t\t\t(this as RadiantElement).registerUpdateCallback(key, this[context.name]);\n\t\t\t\t}\n\t\t\t} else if (typeof keyOrKeys === 'string') {\n\t\t\t\t(this as RadiantElement).registerUpdateCallback(keyOrKeys, this[context.name]);\n\t\t\t}\n\t\t});\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "AAGO,SAAS,CAAS,CAAC,EAA8B,CACvD,OAAO,QAA2B,CAAC,EAAM,EAA4C,CACpF,EAAQ,eAAe,QAAS,EAAY,CAE3C,GADA,KAAK,EAAQ,MAAQ,KAAK,EAAQ,MAAM,KAAK,IAAI,EAC7C,MAAM,QAAQ,CAAS,EAC1B,QAAW,KAAO,EAChB,KAAwB,uBAAuB,EAAK,KAAK,EAAQ,KAAK,EAElE,QAAI,OAAO,IAAc,SAC9B,KAAwB,uBAAuB,EAAW,KAAK,EAAQ,KAAK,EAE9E",
|
|
8
|
-
"debugId": "27FD3BFA6064B80A64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-qe6sjr27.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{La as f}from"./chunk-8tvt04cm.js";import{sb as j}from"./chunk-g0gz7ypq.js";function E({cache:k=!0,...q}){return(v,w)=>{f(v,(b)=>{b.registerConnectedCallback(()=>{let x=j(b,{cache:k,...q});Object.defineProperty(b,w,{get(){return x.value},enumerable:!0,configurable:!0})})})}}
|
|
2
|
-
export{E as ia};
|
|
3
|
-
|
|
4
|
-
//# debugId=A08F45D03760947E64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/legacy/query.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport { createQuery } from '../../helpers/create-query';\nimport type { QueryConfig } from '../query';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\n\n/**\n * A decorator to query by CSS selector or data-ref attribute.\n * By default it queries for the first element that matches the selector, but it can be configured to query for all elements.\n *\n * @param {QueryConfig} options - The configuration object for the query.\n * @param {boolean} [options.all] - A flag to query for all elements that match the selector. Defaults to `false`.\n * @param {boolean} [options.cache] - A flag to cache the query result. Defaults to `true`.\n * @param {string} [options.selector] - A CSS selector to match elements against. This property is mutually exclusive with `options.ref`.\n * @param {string} [options.ref] - A reference to an element. This property is mutually exclusive with `options.selector`.\n *\n * @returns {Function} A decorator function that, when applied to a class property, will replace it with a getter. The getter will return the result of the query when accessed.\n *\n * @example\n * class MyElement extends HTMLElement {\n * @query({ selector: '.my-class' })\n * myElement;\n * }\n *\n * // Now, `myElement` will return the first element in the light DOM of `MyElement` that matches the selector '.my-class'.\n */\nexport function query<T extends Element | Element[]>({\n\tcache: shouldBeCached = true,\n\t...options\n}: QueryConfig): (proto: RadiantElement, propertyName: string | symbol) => void {\n\treturn (proto: RadiantElement, propertyKey: string | symbol) => {\n\t\tregisterLegacyInstanceInitializer(proto, (element) => {\n\t\t\telement.registerConnectedCallback(() => {\n\t\t\t\tconst accessor = createQuery<T>(element, { cache: shouldBeCached, ...options });\n\n\t\t\t\tObject.defineProperty(element, propertyKey, {\n\t\t\t\t\tget() {\n\t\t\t\t\t\treturn accessor.value;\n\t\t\t\t\t},\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "wFAyBO,GAAS,CAAoC,EACnD,MAAO,EAAiB,MACrB,GAC4E,CAC/E,MAAO,CAAC,EAAuB,IAAiC,CAC/D,EAAkC,EAAO,CAAC,IAAY,CACrD,EAAQ,0BAA0B,IAAM,CACvC,IAAM,EAAW,EAAe,EAAS,CAAE,MAAO,KAAmB,CAAQ,CAAC,EAE9E,OAAO,eAAe,EAAS,EAAa,CAC3C,GAAG,EAAG,CACL,OAAO,EAAS,OAEjB,WAAY,GACZ,aAAc,EACf,CAAC,EACD,EACD",
|
|
8
|
-
"debugId": "A08F45D03760947E64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-r1cvaz1t.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{g as w}from"./chunk-par0t822.js";import{m as z}from"./chunk-chyn72n9.js";import{r as u}from"./chunk-d98q3myg.js";import{s as v}from"./chunk-qaagk55a.js";function G(j){return function(k,b,q){if(typeof b==="object"){if(b.kind==="field")return z(j)(k,b);return v(j)(k,b)}if(q)return u(j)(k,b,q);return w(j)(k,b)}}
|
|
2
|
-
export{G as f};
|
|
3
|
-
|
|
4
|
-
//# debugId=EE6AAD96F40D867664756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/context/decorators/context-selector.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type {\n\tLegacyFieldDecoratorArgs,\n\tLegacyMethodDecoratorArgs,\n\tMethod,\n\tStandardFieldDecoratorArgs,\n\tStandardMethodDecoratorArgs,\n} from '../../types';\nimport type { RadiantElement } from '../../core/radiant-element';\nimport type { Context, ContextType, UnknownContext } from '../types';\nimport type { OnContextUpdateOptions } from './on-context-update';\nimport { contextSelector as legacyContextSelectorMethod } from './legacy/context-selector';\nimport { contextSelector as standardContextSelectorMethod } from './standard/context-selector';\nimport { contextSelectorField as legacyContextSelectorField } from './legacy/context-selector-field';\nimport { contextSelectorField as standardContextSelectorField } from './standard/context-selector-field';\n\nexport type ContextSelectorOptions<T extends UnknownContext, Selected = ContextType<T>> = {\n\t/** Context token to resolve from ancestor providers. */\n\tcontext: T;\n\t/** Optional projection that narrows the resolved context before delivery. */\n\tselect?: (context: ContextType<T>) => Selected;\n\t/** Whether client-side event-channel subscriptions should stay active after the first value. */\n\tsubscribe?: boolean;\n};\n\n/**\n * @deprecated Use `ContextSelectorOptions` for field usage or `OnContextUpdateOptions` for method usage.\n */\nexport type SubscribeToContextOptions<T extends UnknownContext> = OnContextUpdateOptions<T>;\n\ntype ContextUpdateMethod<Selected> = (value: Selected) => unknown;\n\ntype ContextSelectorDecorator<Selected> = {\n\t<Host extends RadiantElement>(\n\t\tprotoOrTarget: undefined,\n\t\tnameOrContext: ClassFieldDecoratorContext<Host, Selected>,\n\t): (this: Host, initialValue: Selected) => Selected;\n\t<Host extends RadiantElement, TMethod extends ContextUpdateMethod<Selected>>(\n\t\tprotoOrTarget: TMethod,\n\t\tnameOrContext: ClassMethodDecoratorContext<Host, TMethod>,\n\t): void;\n\t(protoOrTarget: RadiantElement, nameOrContext: string): void;\n\t(\n\t\tprotoOrTarget: RadiantElement,\n\t\tnameOrContext: string,\n\t\tdescriptor: TypedPropertyDescriptor<ContextUpdateMethod<Selected>>,\n\t): TypedPropertyDescriptor<ContextUpdateMethod<Selected>> | void;\n};\n\n/**\n * Subscribes a field or method to the current value, or a selected slice, of a context.\n *\n * **Field form (preferred):** The field holds the latest context value and is\n * updated whenever the provider changes. On `RadiantComponent` hosts, each\n * update schedules `requestUpdate()` automatically so `render()` stays in sync.\n *\n * **Method form (deprecated — use `@onContextUpdate`):** The method is called\n * with the new value on each change.\n *\n * @param options Context subscription configuration.\n */\nexport function contextSelector<T extends Context<unknown, unknown>, Selected = ContextType<T>>(\n\toptions: ContextSelectorOptions<T, Selected>,\n): ContextSelectorDecorator<Selected> {\n\treturn function (\n\t\tprotoOrTarget: RadiantElement | Method | undefined,\n\t\tnameOrContext:\n\t\t\t| string\n\t\t\t| ClassFieldDecoratorContext<RadiantElement, Selected>\n\t\t\t| ClassMethodDecoratorContext<RadiantElement, ContextUpdateMethod<Selected>>,\n\t\tdescriptor?: TypedPropertyDescriptor<ContextUpdateMethod<Selected>>,\n\t):\n\t\t| ((this: RadiantElement, initialValue: Selected) => Selected)\n\t\t| TypedPropertyDescriptor<ContextUpdateMethod<Selected>>\n\t\t| void {\n\t\tif (typeof nameOrContext === 'object') {\n\t\t\tif (nameOrContext.kind === 'field') {\n\t\t\t\treturn standardContextSelectorField(options)(\n\t\t\t\t\tprotoOrTarget as StandardFieldDecoratorArgs<RadiantElement, Selected>['protoOrTarget'],\n\t\t\t\t\tnameOrContext as StandardFieldDecoratorArgs<RadiantElement, Selected>['nameOrContext'],\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn standardContextSelectorMethod(options as OnContextUpdateOptions<T, Selected>)(\n\t\t\t\tprotoOrTarget as StandardMethodDecoratorArgs['protoOrTarget'],\n\t\t\t\tnameOrContext as StandardMethodDecoratorArgs['nameOrContext'],\n\t\t\t);\n\t\t}\n\n\t\tif (descriptor) {\n\t\t\treturn legacyContextSelectorMethod(options as OnContextUpdateOptions<T, Selected>)(\n\t\t\t\tprotoOrTarget as LegacyMethodDecoratorArgs['protoOrTarget'],\n\t\t\t\tnameOrContext as LegacyMethodDecoratorArgs['nameOrContext'],\n\t\t\t\tdescriptor as LegacyMethodDecoratorArgs['descriptor'],\n\t\t\t);\n\t\t}\n\n\t\treturn legacyContextSelectorField(options)(\n\t\t\tprotoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n\t\t\tnameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n\t\t);\n\t} as ContextSelectorDecorator<Selected>;\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "kLA4DO,GAAS,LAA+E,LAC9F,EACqC,CACrC,OAAO,QAAS,CACf,EACA,EAIA,EAIO,CACP,GAAI,OAAO,IAAkB,SAAU,CACtC,GAAI,EAAc,OAAS,QAC1B,OAAO,EAA6B,CAAO,EAC1C,EACA,CACD,EAGD,OAAO,EAA8B,CAA8C,EAClF,EACA,CACD,EAGD,GAAI,EACH,OAAO,EAA4B,CAA8C,EAChF,EACA,EACA,CACD,EAGD,OAAO,EAA2B,CAAO,EACxC,EACA,CACD",
|
|
8
|
-
"debugId": "EE6AAD96F40D867664756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-r75y7ydb.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/event.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import { type EventEmitterConfig } from '../tools/event-emitter';\nimport type { StandardOrLegacyFieldDecoratorArgs } from '../types';\nimport { event as legacyEvent } from './legacy/event';\nimport { event as standardEvent } from './standard/event';\nimport { fieldDecoratorBridge } from './bridge';\n\n/**\n * Decorator that attaches an EventEmitter to the class field property.\n * The EventEmitter can be used to dispatch custom events from the target element.\n * @param eventConfig {@link EventEmitterConfig} Configuration for the event emitter.\n * @see {@link EventEmitter} for more details about how the EventEmitter works.\n */\nexport function event(eventConfig: EventEmitterConfig) {\n\treturn function (\n\t\tprotoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n\t\tnameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n\t): any {\n\t\treturn fieldDecoratorBridge(standardEvent(eventConfig), legacyEvent(eventConfig), protoOrTarget, nameOrContext);\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "uIAYO,GAAS,LAAK,CAAC,EAAiC,CACtD,OAAO,QAAS,CACf,EACA,EACM,CACN,OAAO,EAAqB,EAAc,CAAW,EAAG,EAAY,CAAW,EAAG,EAAe,CAAa",
|
|
8
|
-
"debugId": "576D1807DBF17DDE64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-s4qgct1z.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{D as F,F as G}from"./chunk-1w1dm68j.js";import{bb as D}from"./chunk-4cc2syf5.js";function K(f,j,B,w={}){let z=D(j);if(!z)return!1;if(B(z),f.connectedContextCallback(j),w.emitMounted)f.dispatchEvent(new CustomEvent("context-mounted",{detail:z}));return!0}function L(f,j,B,w={}){f.dispatchEvent(new F(j,(z)=>{if(B(z),f.connectedContextCallback(j),w.emitMounted)f.dispatchEvent(new CustomEvent("context-mounted",{detail:z}))}))}function M(f,j,B){let w=D(f);if(!w)return!1;let z=w.getContext();return j(B?B(z):z),!0}function N(f,j,B,w){f.dispatchEvent(new G(j,B,w.select,w.subscribe))}
|
|
2
|
-
export{K as y,L as z,M as A,N as B};
|
|
3
|
-
|
|
4
|
-
//# debugId=1085D4D6940B573964756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/context/context-consumer-runtime.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../core/radiant-element';\nimport { resolveAmbientSsrContextProvider } from './context-ssr-bridge';\nimport { ContextEventsTypes, ContextRequestEvent, ContextSubscriptionRequestEvent } from './events';\nimport type { ContextType, UnknownContext } from './types';\n\ntype ConsumedContextAssignment = (provider: unknown) => void;\n\n/**\n * Resolves a consumed context from the active SSR provider stack when one is available.\n *\n * This keeps SSR-specific lookup outside decorator implementations while preserving\n * the same consumer initialization contract for both standard and legacy decorators.\n *\n * @returns `true` when the context was resolved synchronously from SSR state.\n */\nexport function initializeConsumedContext(\n\thost: RadiantElement,\n\tcontext: UnknownContext,\n\tassign: ConsumedContextAssignment,\n\toptions: { emitMounted?: boolean } = {},\n): boolean {\n\tconst provider = resolveAmbientSsrContextProvider(context);\n\n\tif (!provider) {\n\t\treturn false;\n\t}\n\n\tassign(provider);\n\thost.connectedContextCallback(context);\n\n\tif (options.emitMounted) {\n\t\thost.dispatchEvent(new CustomEvent(ContextEventsTypes.MOUNTED, { detail: provider }));\n\t}\n\n\treturn true;\n}\n\n/**\n * Requests a context provider through the DOM event channel when SSR state is not active.\n */\nexport function requestConsumedContext(\n\thost: RadiantElement,\n\tcontext: UnknownContext,\n\tassign: ConsumedContextAssignment,\n\toptions: { emitMounted?: boolean } = {},\n): void {\n\thost.dispatchEvent(\n\t\tnew ContextRequestEvent(context, (provider) => {\n\t\t\tassign(provider);\n\t\t\thost.connectedContextCallback(context);\n\n\t\t\tif (options.emitMounted) {\n\t\t\t\thost.dispatchEvent(new CustomEvent(ContextEventsTypes.MOUNTED, { detail: provider }));\n\t\t\t}\n\t\t}),\n\t);\n}\n\n/**\n * Resolves a selected context value from the active SSR provider stack when available.\n *\n * @returns `true` when the selection callback was satisfied synchronously from SSR state.\n */\nexport function initializeContextSelection<TContext extends UnknownContext>(\n\tcontext: TContext,\n\tcallback: (value: unknown) => void,\n\tselect?: (context: ContextType<TContext>) => unknown,\n): boolean {\n\tconst provider = resolveAmbientSsrContextProvider(context);\n\n\tif (!provider) {\n\t\treturn false;\n\t}\n\n\tconst resolvedContext = provider.getContext() as ContextType<TContext>;\n\tcallback(select ? select(resolvedContext) : resolvedContext);\n\treturn true;\n}\n\n/**\n * Requests a selected context value through the DOM event channel.\n */\nexport function requestContextSelection<TContext extends UnknownContext>(\n\thost: RadiantElement,\n\tcontext: TContext,\n\tcallback: (value: unknown) => void,\n\toptions: {\n\t\tselect?: (context: ContextType<TContext>) => unknown;\n\t\tsubscribe?: boolean;\n\t},\n): void {\n\thost.dispatchEvent(new ContextSubscriptionRequestEvent(context, callback, options.select, options.subscribe));\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "8FAeO,GAAS,CAAyB,CACxC,EACA,EACA,EACA,EAAqC,CAAC,EAC5B,CACV,IAAM,EAAW,EAAiC,CAAO,EAEzD,GAAI,CAAC,EACJ,MAAO,GAMR,GAHA,EAAO,CAAQ,EACf,EAAK,yBAAyB,CAAO,EAEjC,EAAQ,YACX,EAAK,cAAc,IAAI,8BAAwC,CAAE,OAAQ,CAAS,CAAC,CAAC,EAGrF,MAAO,GAMD,SAAS,CAAsB,CACrC,EACA,EACA,EACA,EAAqC,CAAC,EAC/B,CACP,EAAK,cACJ,IAAI,EAAoB,EAAS,CAAC,IAAa,CAI9C,GAHA,EAAO,CAAQ,EACf,EAAK,yBAAyB,CAAO,EAEjC,EAAQ,YACX,EAAK,cAAc,IAAI,8BAAwC,CAAE,OAAQ,CAAS,CAAC,CAAC,EAErF,CACF,EAQM,SAAS,CAA2D,CAC1E,EACA,EACA,EACU,CACV,IAAM,EAAW,EAAiC,CAAO,EAEzD,GAAI,CAAC,EACJ,MAAO,GAGR,IAAM,EAAkB,EAAS,WAAW,EAE5C,OADA,EAAS,EAAS,EAAO,CAAe,EAAI,CAAe,EACpD,GAMD,SAAS,CAAwD,CACvE,EACA,EACA,EACA,EAIO,CACP,EAAK,cAAc,IAAI,EAAgC,EAAS,EAAU,EAAQ,OAAQ,EAAQ,SAAS,CAAC",
|
|
8
|
-
"debugId": "1085D4D6940B573964756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-scfk041e.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{sb as t}from"./chunk-g0gz7ypq.js";function a(r){return function(o,e){let n=String(e.name);e.addInitializer(function(){let i=t(this,r);Object.defineProperty(this,n,{get(){return i.value},enumerable:!0,configurable:!0})})}}
|
|
2
|
-
export{a as ja};
|
|
3
|
-
|
|
4
|
-
//# debugId=CB856282065F110D64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/standard/query.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import { createQuery } from '../../helpers/create-query';\nimport type { QueryConfig } from '../query';\n\nexport function query(options: QueryConfig) {\n\treturn function <T extends HTMLElement, V extends Element | Element[]>(\n\t\t_: undefined,\n\t\tcontext: ClassFieldDecoratorContext<T, V>,\n\t) {\n\t\tconst propertyName = String(context.name);\n\n\t\tcontext.addInitializer(function (this: T) {\n\t\t\tconst accessor = createQuery<V>(this, options);\n\n\t\t\tObject.defineProperty(this, propertyName, {\n\t\t\t\tget() {\n\t\t\t\t\treturn accessor.value;\n\t\t\t\t},\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t});\n\t\t});\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "yCAGO,SAAS,CAAK,CAAC,EAAsB,CAC3C,OAAO,QAA+D,CACrE,EACA,EACC,CACD,IAAM,EAAe,OAAO,EAAQ,IAAI,EAExC,EAAQ,eAAe,QAAS,EAAU,CACzC,IAAM,EAAW,EAAe,KAAM,CAAO,EAE7C,OAAO,eAAe,KAAM,EAAc,CACzC,GAAG,EAAG,CACL,OAAO,EAAS,OAEjB,WAAY,GACZ,aAAc,EACf,CAAC,EACD",
|
|
8
|
-
"debugId": "CB856282065F110D64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-t6x9e177.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{qa as C,ra as x,sa as D}from"./chunk-57w3vmme.js";import{La as B}from"./chunk-8tvt04cm.js";function M(j={}){return(E,k)=>{let F=(f)=>{let q=f[k];if(q instanceof x)return q;let A=typeof j.source==="function"?j.source(f):j.source??(C(q)?q:void 0),G=j.bind??f.shouldAutoBindReactiveMembers?.()??!1,H=A!==void 0?j.initial:q===void 0?j.initial:q;f.defineReactiveBinding(k,G);let w=D({host:f,hydrate:j.hydrate,hydrationKey:k,initialValue:H,property:k,source:A});if(f.registerConnectedCallback(()=>{w.hydrateFromHost(),w.connectToSource()}),f.registerCleanupCallback(()=>{w.disconnectFromSource()}),j.hydrate)f.registerHydrationBinding(k,w);return f[k]=w,w};B(E,(f)=>{let q=F(f);f.registerConnectedCallback(()=>{if(!(f[k]instanceof x))f[k]=q})})}}
|
|
2
|
-
export{M as la};
|
|
3
|
-
|
|
4
|
-
//# debugId=83857444AF61A24264756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/legacy/signal.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement, ReactiveBindingOption } from '../../core/radiant-element';\nimport { createHostSignal, HostSignal, isWritableSignalLike } from '../../signals/host-signal';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\nimport type { AttributeTypeConstant } from '../../utils/attribute-utils';\nimport type { WritableSignal } from '@ecopages/signals';\n\nexport type SignalDecoratorOptions<Value = unknown> = {\n\tbind?: ReactiveBindingOption;\n\tinitial?: Value;\n\tsource?: WritableSignal<Value> | ((host: RadiantElement) => WritableSignal<Value>);\n\thydrate?: AttributeTypeConstant;\n};\n\nexport function signal<Value = unknown>(options: SignalDecoratorOptions<Value> = {}) {\n\treturn (target: RadiantElement, propertyName: string) => {\n\t\tconst initializeSignal = (element: RadiantElement): HostSignal<unknown> => {\n\t\t\tconst currentValue = element[propertyName as keyof typeof element] as unknown;\n\n\t\t\tif (currentValue instanceof HostSignal) {\n\t\t\t\treturn currentValue;\n\t\t\t}\n\n\t\t\tconst resolvedSource =\n\t\t\t\ttypeof options.source === 'function'\n\t\t\t\t\t? options.source(element)\n\t\t\t\t\t: (options.source ?? (isWritableSignalLike(currentValue) ? currentValue : undefined));\n\n\t\t\tconst bind =\n\t\t\t\toptions.bind ??\n\t\t\t\t(\n\t\t\t\t\telement as unknown as { shouldAutoBindReactiveMembers?: () => boolean }\n\t\t\t\t).shouldAutoBindReactiveMembers?.() ??\n\t\t\t\tfalse;\n\n\t\t\tconst resolvedInitialValue =\n\t\t\t\tresolvedSource !== undefined\n\t\t\t\t\t? options.initial\n\t\t\t\t\t: ((currentValue === undefined ? options.initial : currentValue) as Value);\n\t\t\telement.defineReactiveBinding(propertyName, bind);\n\n\t\t\tconst hostSignal = createHostSignal({\n\t\t\t\thost: element,\n\t\t\t\thydrate: options.hydrate,\n\t\t\t\thydrationKey: propertyName,\n\t\t\t\tinitialValue: resolvedInitialValue,\n\t\t\t\tproperty: propertyName,\n\t\t\t\tsource: resolvedSource,\n\t\t\t});\n\n\t\t\telement.registerConnectedCallback(() => {\n\t\t\t\thostSignal.hydrateFromHost();\n\t\t\t\thostSignal.connectToSource();\n\t\t\t});\n\t\t\telement.registerCleanupCallback(() => {\n\t\t\t\thostSignal.disconnectFromSource();\n\t\t\t});\n\n\t\t\tif (options.hydrate) {\n\t\t\t\telement.registerHydrationBinding(propertyName, hostSignal);\n\t\t\t}\n\n\t\t\t(element as unknown as Record<string, unknown>)[propertyName] = hostSignal;\n\t\t\treturn hostSignal as unknown as HostSignal<unknown>;\n\t\t};\n\n\t\tregisterLegacyInstanceInitializer(target, (element) => {\n\t\t\tconst hostSignal = initializeSignal(element);\n\t\t\telement.registerConnectedCallback(() => {\n\t\t\t\tif (!((element as any)[propertyName] instanceof HostSignal)) {\n\t\t\t\t\t(element as unknown as Record<string, unknown>)[propertyName] = hostSignal;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "wGAaO,GAAS,CAAuB,CAAC,EAAyC,CAAC,EAAG,CACpF,MAAO,CAAC,EAAwB,IAAyB,CACxD,IAAM,EAAmB,CAAC,IAAiD,CAC1E,IAAM,EAAe,EAAQ,GAE7B,GAAI,aAAwB,EAC3B,OAAO,EAGR,IAAM,EACL,OAAO,EAAQ,SAAW,WACvB,EAAQ,OAAO,CAAO,EACrB,EAAQ,SAAW,EAAqB,CAAY,EAAI,EAAe,QAEtE,EACL,EAAQ,MAEP,EACC,gCAAgC,GAClC,GAEK,EACL,IAAmB,OAChB,EAAQ,QACN,IAAiB,OAAY,EAAQ,QAAU,EACrD,EAAQ,sBAAsB,EAAc,CAAI,EAEhD,IAAM,EAAa,EAAiB,CACnC,KAAM,EACN,QAAS,EAAQ,QACjB,aAAc,EACd,aAAc,EACd,SAAU,EACV,OAAQ,CACT,CAAC,EAUD,GARA,EAAQ,0BAA0B,IAAM,CACvC,EAAW,gBAAgB,EAC3B,EAAW,gBAAgB,EAC3B,EACD,EAAQ,wBAAwB,IAAM,CACrC,EAAW,qBAAqB,EAChC,EAEG,EAAQ,QACX,EAAQ,yBAAyB,EAAc,CAAU,EAI1D,OADC,EAA+C,GAAgB,EACzD,GAGR,EAAkC,EAAQ,CAAC,IAAY,CACtD,IAAM,EAAa,EAAiB,CAAO,EAC3C,EAAQ,0BAA0B,IAAM,CACvC,GAAI,EAAG,EAAgB,aAAyB,GAC9C,EAA+C,GAAgB,EAEjE,EACD",
|
|
8
|
-
"debugId": "83857444AF61A24264756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-t7a1bbxq.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/legacy/reactive-field.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\n\n/**\n * A decorator to define a reactive field.\n * Every time the property changes, the `updated` method will be called.\n * Due the fact the value is always undefined before the first update,\n * we are adding a `isDefined` WeakSet to track if the property has been defined.\n * @param target The target element.\n * @param propertyKey The property key.\n */\nexport function reactiveField(target: RadiantElement, propertyKey: string) {\n\tregisterLegacyInstanceInitializer(target, (element) => {\n\t\telement.registerConnectedCallback(() => {\n\t\t\telement.createReactiveField(propertyKey, element[propertyKey as keyof typeof element], {\n\t\t\t\tbind:\n\t\t\t\t\t(\n\t\t\t\t\t\telement as unknown as { shouldAutoBindReactiveMembers?: () => boolean }\n\t\t\t\t\t).shouldAutoBindReactiveMembers?.() ?? false,\n\t\t\t});\n\t\t});\n\t});\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "yCAWO,SAAS,CAAa,CAAC,EAAwB,EAAqB,CAC1E,EAAkC,EAAQ,CAAC,IAAY,CACtD,EAAQ,0BAA0B,IAAM,CACvC,EAAQ,oBAAoB,EAAa,EAAQ,GAAsC,CACtF,KAEE,EACC,gCAAgC,GAAK,EACzC,CAAC,EACD,EACD",
|
|
8
|
-
"debugId": "D7248CDCD58824E864756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-tyysm4gk.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{La as q}from"./chunk-8tvt04cm.js";function B(j){return(v,w)=>{q(v,(f)=>{f.registerConnectedCallback(()=>{let p=f[w].bind(f);if(Array.isArray(j))for(let x of j)f.registerUpdateCallback(x,p);else if(typeof j==="string")f.registerUpdateCallback(j,p)})})}}
|
|
2
|
-
export{B as Da};
|
|
3
|
-
|
|
4
|
-
//# debugId=402278DDC56CCBCB64756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/legacy/on-updated.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\n\n/**\n * A decorator to subscribe to an updated callback when a reactive field or property changes.\n * @param eventConfig The event configuration.\n */\nexport function onUpdated(keyOrKeys: string | string[]) {\n\treturn (target: RadiantElement, methodName: string) => {\n\t\tregisterLegacyInstanceInitializer(target, (element) => {\n\t\t\telement.registerConnectedCallback(() => {\n\t\t\t\tconst boundedMethod = (element as any)[methodName].bind(element);\n\t\t\t\tif (Array.isArray(keyOrKeys)) {\n\t\t\t\t\tfor (const key of keyOrKeys) {\n\t\t\t\t\t\telement.registerUpdateCallback(key, boundedMethod);\n\t\t\t\t\t}\n\t\t\t\t} else if (typeof keyOrKeys === 'string') {\n\t\t\t\t\telement.registerUpdateCallback(keyOrKeys, boundedMethod);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "yCAOO,SAAS,CAAS,CAAC,EAA8B,CACvD,MAAO,CAAC,EAAwB,IAAuB,CACtD,EAAkC,EAAQ,CAAC,IAAY,CACtD,EAAQ,0BAA0B,IAAM,CACvC,IAAM,EAAiB,EAAgB,GAAY,KAAK,CAAO,EAC/D,GAAI,MAAM,QAAQ,CAAS,EAC1B,QAAW,KAAO,EACjB,EAAQ,uBAAuB,EAAK,CAAa,EAE5C,QAAI,OAAO,IAAc,SAC/B,EAAQ,uBAAuB,EAAW,CAAa,EAExD,EACD",
|
|
8
|
-
"debugId": "402278DDC56CCBCB64756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-vpfm9yw8.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{A as E,B as H,y as D,z as G}from"./chunk-s4qgct1z.js";import{$ as F}from"./chunk-9gjmqxp2.js";function L(j,f,w,y={}){return I(j,()=>D(j,f,w,y))}function M(j,f,w,y){return I(j,()=>E(f,w,y))}function N(j,f,w,y={}){if(D(j,f,w,y))return!0;return G(j,f,w,y),!1}function O(j,f,w,y={}){if(E(f,w,y.select))return!0;return H(j,f,w,y),!1}function I(j,f){return F(j,f),f()}
|
|
2
|
-
export{L as u,M as v,N as w,O as x};
|
|
3
|
-
|
|
4
|
-
//# debugId=A9ED5E9A13C35EF164756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/context/context-consumer-bootstrap.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../core/radiant-element';\nimport { registerSsrPreparationCallback } from '../core/ssr-preparation';\nimport {\n\tinitializeConsumedContext,\n\tinitializeContextSelection,\n\trequestConsumedContext,\n\trequestContextSelection,\n} from './context-consumer-runtime';\nimport type { ContextType, UnknownContext } from './types';\n\ntype ConsumedContextAssignment = (provider: unknown) => void;\n\n/**\n * Resolves a consumed context immediately and registers the same resolution to\n * run again during the later SSR preparation phase.\n *\n * This keeps constructor-time state and pre-serialization state aligned after\n * instance fields, props, or authored host content change during SSR setup.\n */\nexport function bootstrapSsrConsumedContext(\n\thost: RadiantElement,\n\tcontext: UnknownContext,\n\tassign: ConsumedContextAssignment,\n\toptions: { emitMounted?: boolean } = {},\n): boolean {\n\treturn registerAndResolveConsumerBootstrap(host, () => initializeConsumedContext(host, context, assign, options));\n}\n\n/**\n * Resolves a selected context value immediately and registers the same\n * selection for the later SSR preparation phase.\n *\n * This lets nested SSR renders recompute selector-backed state after the host\n * has finished construction and any server-side configuration hooks have run.\n */\nexport function bootstrapSsrContextSelection<TContext extends UnknownContext>(\n\thost: object,\n\tcontext: TContext,\n\tcallback: (value: unknown) => void,\n\tselect?: (context: ContextType<TContext>) => unknown,\n): boolean {\n\treturn registerAndResolveConsumerBootstrap(host, () => initializeContextSelection(context, callback, select));\n}\n\n/**\n * Resolves a consumed context from SSR when available, otherwise requests it\n * through the DOM event channel for the current client-side lifecycle pass.\n *\n * @returns `true` when the value was satisfied synchronously from SSR state.\n */\nexport function connectConsumedContext(\n\thost: RadiantElement,\n\tcontext: UnknownContext,\n\tassign: ConsumedContextAssignment,\n\toptions: { emitMounted?: boolean } = {},\n): boolean {\n\tif (initializeConsumedContext(host, context, assign, options)) {\n\t\treturn true;\n\t}\n\n\trequestConsumedContext(host, context, assign, options);\n\treturn false;\n}\n\n/**\n * Resolves a selected context value from SSR when available, otherwise requests\n * it through the DOM event channel for the current client-side lifecycle pass.\n *\n * @returns `true` when the value was satisfied synchronously from SSR state.\n */\nexport function connectContextSelection<TContext extends UnknownContext>(\n\thost: RadiantElement,\n\tcontext: TContext,\n\tcallback: (value: unknown) => void,\n\toptions: {\n\t\tselect?: (context: ContextType<TContext>) => unknown;\n\t\tsubscribe?: boolean;\n\t} = {},\n): boolean {\n\tif (initializeContextSelection(context, callback, options.select)) {\n\t\treturn true;\n\t}\n\n\trequestContextSelection(host, context, callback, options);\n\treturn false;\n}\n\nfunction registerAndResolveConsumerBootstrap<TResult>(host: object, resolve: () => TResult): TResult {\n\tregisterSsrPreparationCallback(host, resolve);\n\treturn resolve();\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "2GAmBO,GAAS,CAA2B,CAC1C,EACA,EACA,EACA,EAAqC,CAAC,EAC5B,CACV,OAAO,EAAoC,EAAM,IAAM,EAA0B,EAAM,EAAS,EAAQ,CAAO,CAAC,EAU1G,SAAS,CAA6D,CAC5E,EACA,EACA,EACA,EACU,CACV,OAAO,EAAoC,EAAM,IAAM,EAA2B,EAAS,EAAU,CAAM,CAAC,EAStG,SAAS,CAAsB,CACrC,EACA,EACA,EACA,EAAqC,CAAC,EAC5B,CACV,GAAI,EAA0B,EAAM,EAAS,EAAQ,CAAO,EAC3D,MAAO,GAIR,OADA,EAAuB,EAAM,EAAS,EAAQ,CAAO,EAC9C,GASD,SAAS,CAAwD,CACvE,EACA,EACA,EACA,EAGI,CAAC,EACK,CACV,GAAI,EAA2B,EAAS,EAAU,EAAQ,MAAM,EAC/D,MAAO,GAIR,OADA,EAAwB,EAAM,EAAS,EAAU,CAAO,EACjD,GAGR,SAAS,CAA4C,CAAC,EAAc,EAAiC,CAEpG,OADA,EAA+B,EAAM,CAAO,EACrC,EAAQ",
|
|
8
|
-
"debugId": "A9ED5E9A13C35EF164756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-w50v38rv.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/bound.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { StandardOrLegacyMethodDecoratorArgs } from '../types';\nimport { bound as legacyBound } from './legacy/bound';\nimport { bound as standardBound } from './standard/bound';\nimport { methodDecoratorBridge } from './bridge';\n\n/**\n * A decorator to bind a method to the instance.\n */\nexport function bound(\n\tprotoOrTarget: StandardOrLegacyMethodDecoratorArgs['protoOrTarget'],\n\tnameOrContext: StandardOrLegacyMethodDecoratorArgs['nameOrContext'],\n\tdescriptor?: StandardOrLegacyMethodDecoratorArgs['descriptor'],\n): any {\n\treturn methodDecoratorBridge(standardBound, legacyBound, protoOrTarget, nameOrContext, descriptor);\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "uIAQO,GAAS,LAAK,CACpB,EACA,EACA,EACM,CACN,OAAO,EAAsB,EAAe,EAAa,EAAe,EAAe,CAAU",
|
|
8
|
-
"debugId": "DE309055D57D2A9164756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-x0522ksh.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{fa as G}from"./chunk-8dexhy6c.js";import{La as E}from"./chunk-8tvt04cm.js";import{Ua as F}from"./chunk-73x7jpdd.js";function R({type:q,attribute:H,reflect:x,defaultValue:h,bind:A}){if(h!==void 0&&!F(q,h))throw Error(`defaultValue does not match the expected type for ${q.name}`);return(w,j)=>{let B=H??j;G(w,j,{type:q,reflect:x,attribute:B,defaultValue:h,bind:A});let C=Symbol.for(`@ecopages/radiant.ssr-prop:${j}`);Object.defineProperty(w,j,{get(){return this[C]??h},set(k){this[C]=k},configurable:!0,enumerable:!0}),E(w,(k)=>{k.registerConnectedCallback(()=>{let J=k[j],M=h===void 0?J:h;k.createReactiveProp(j,{type:q,reflect:x,attribute:B,defaultValue:M,bind:A})})})}}
|
|
2
|
-
export{R as da};
|
|
3
|
-
|
|
4
|
-
//# debugId=24C7AB7D5BA15E9864756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/legacy/reactive-prop.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { RadiantElement } from '../../core/radiant-element';\nimport { registerReactivePropDefinition } from '../../core/reactive-prop-metadata';\nimport { type AttributeTypeConstant, isValueOfType } from '../../utils/attribute-utils';\nimport { registerLegacyInstanceInitializer } from './instance-initializers';\n\ntype ReactivePropertyOptions<T> = {\n\ttype: AttributeTypeConstant;\n\treflect?: boolean;\n\tattribute?: string;\n\tdefaultValue?: T;\n\tbind?: boolean | string;\n};\n\n/**\n * A decorator to define a reactive property.\n * Every time the property changes, the `updated` method will be called.\n * @param options The options for the reactive property.\n * @param options.type The type of the property value.\n * @param options.reflect Whether to reflect the property to the attribute.\n * @param options.attribute The name of the attribute.\n * @param options.defaultValue The default value of the property.\n */\nexport function reactiveProp<T = unknown>({\n\ttype,\n\tattribute,\n\treflect,\n\tdefaultValue,\n\tbind,\n}: ReactivePropertyOptions<T>) {\n\tif (defaultValue !== undefined && !isValueOfType(type, defaultValue)) {\n\t\tthrow new Error(`defaultValue does not match the expected type for ${type.name}`);\n\t}\n\n\treturn (target: RadiantElement, propertyName: string) => {\n\t\tconst attributeKey = attribute ?? propertyName;\n\t\tregisterReactivePropDefinition(target, propertyName, {\n\t\t\ttype,\n\t\t\treflect,\n\t\t\tattribute: attributeKey,\n\t\t\tdefaultValue,\n\t\t\tbind,\n\t\t});\n\n\t\tconst ssrStoreKey = Symbol.for(`@ecopages/radiant.ssr-prop:${propertyName}`);\n\n\t\tObject.defineProperty(target, propertyName, {\n\t\t\tget(this: RadiantElement & Record<PropertyKey, unknown>) {\n\t\t\t\treturn this[ssrStoreKey] ?? defaultValue;\n\t\t\t},\n\t\t\tset(this: RadiantElement & Record<PropertyKey, unknown>, value: T) {\n\t\t\t\tthis[ssrStoreKey] = value;\n\t\t\t},\n\t\t\tconfigurable: true,\n\t\t\tenumerable: true,\n\t\t});\n\n\t\tregisterLegacyInstanceInitializer(target, (element) => {\n\t\t\telement.registerConnectedCallback(() => {\n\t\t\t\tconst initializerValue = element[propertyName as keyof typeof element] as T | undefined;\n\t\t\t\tconst resolvedDefaultValue = defaultValue === undefined ? initializerValue : defaultValue;\n\n\t\t\t\telement.createReactiveProp(propertyName, {\n\t\t\t\t\ttype,\n\t\t\t\t\treflect,\n\t\t\t\t\tattribute: attributeKey,\n\t\t\t\t\tdefaultValue: resolvedDefaultValue,\n\t\t\t\t\tbind,\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "uIAsBO,GAAS,LAAyB,EACxC,OACA,YACA,UACA,eACA,QAC8B,CAC9B,GAAI,IAAiB,QAAa,CAAC,EAAc,EAAM,CAAY,EAClE,MAAU,MAAM,qDAAqD,EAAK,MAAM,EAGjF,MAAO,CAAC,EAAwB,IAAyB,CACxD,IAAM,EAAe,GAAa,EAClC,EAA+B,EAAQ,EAAc,CACpD,OACA,UACA,UAAW,EACX,eACA,MACD,CAAC,EAED,IAAM,EAAc,OAAO,IAAI,8BAA8B,GAAc,EAE3E,OAAO,eAAe,EAAQ,EAAc,CAC3C,GAAG,EAAsD,CACxD,OAAO,KAAK,IAAgB,GAE7B,GAAG,CAAsD,EAAU,CAClE,KAAK,GAAe,GAErB,aAAc,GACd,WAAY,EACb,CAAC,EAED,EAAkC,EAAQ,CAAC,IAAY,CACtD,EAAQ,0BAA0B,IAAM,CACvC,IAAM,EAAmB,EAAQ,GAC3B,EAAuB,IAAiB,OAAY,EAAmB,EAE7E,EAAQ,mBAAmB,EAAc,CACxC,OACA,UACA,UAAW,EACX,aAAc,EACd,MACD,CAAC,EACD,EACD",
|
|
8
|
-
"debugId": "24C7AB7D5BA15E9864756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-xd1xn3vy.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/standard/bound.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { Method } from '../../types';\n\nexport function bound<T extends Method>(_: T, context: ClassMethodDecoratorContext) {\n\tconst methodName = String(context.name);\n\tif (context.private) {\n\t\tthrow new Error(`'bound' cannot decorate private properties like ${methodName as string}.`);\n\t}\n\tcontext.addInitializer(function (this: any) {\n\t\tthis[methodName] = this[methodName].bind(this);\n\t});\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "AAEO,SAAS,CAAuB,CAAC,EAAM,EAAsC,CACnF,IAAM,EAAa,OAAO,EAAQ,IAAI,EACtC,GAAI,EAAQ,QACX,MAAU,MAAM,mDAAmD,IAAuB,EAE3F,EAAQ,eAAe,QAAS,EAAY,CAC3C,KAAK,GAAc,KAAK,GAAY,KAAK,IAAI,EAC7C",
|
|
8
|
-
"debugId": "A417C3E188982D7964756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-zb7wh7w4.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/context/create-context.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import type { Context } from './types';\n\n/**\n * A function which creates a Context value object\n */\nexport const createContext = <ValueType>(key: unknown) => key as Context<typeof key, ValueType>;\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "AAKO,IAAM,EAAgB,CAAY,IAAiB",
|
|
8
|
-
"debugId": "F70C083484ED9C0564756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/chunk-zj9ez73m.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/decorators/standard/custom-element.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import { setCustomElementTagName } from '../../core/custom-element-metadata';\n\nexport function customElement(name: string, options?: ElementDefinitionOptions) {\n\treturn function <T extends CustomElementConstructor>(_: T, context: ClassDecoratorContext<T>) {\n\t\tcontext.addInitializer(function () {\n\t\t\tsetCustomElementTagName(this, name);\n\n\t\t\tif (!window.customElements.get(name)) {\n\t\t\t\tcustomElements.define(name, this, options);\n\t\t\t}\n\t\t});\n\t};\n}\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "yCAEO,SAAS,CAAa,CAAC,EAAc,EAAoC,CAC/E,OAAO,QAA6C,CAAC,EAAM,EAAmC,CAC7F,EAAQ,eAAe,QAAS,EAAG,CAGlC,GAFA,EAAwB,KAAM,CAAI,EAE9B,CAAC,OAAO,eAAe,IAAI,CAAI,EAClC,eAAe,OAAO,EAAM,KAAM,CAAO,EAE1C",
|
|
8
|
-
"debugId": "9FCE29F579B9006464756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { type JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import { type RenderToStringOptions } from '@ecopages/jsx/server';
|
|
3
|
-
import { RadiantElement } from './radiant-element';
|
|
4
|
-
/**
|
|
5
|
-
* A structured JSX-first Radiant base class.
|
|
6
|
-
* @typeParam Bindings - Explicit internal bindable shape. Include only the
|
|
7
|
-
* prop/state keys that JSX bindings should accept.
|
|
8
|
-
*
|
|
9
|
-
* Treat this as the component's internal reactive/bindable surface, not as the
|
|
10
|
-
* default public custom-element attribute contract. When a component exposes a
|
|
11
|
-
* narrower external API than its internal state, declare a separate public
|
|
12
|
-
* props type for the JSX intrinsic element and keep internal-only state out of
|
|
13
|
-
* that contract.
|
|
14
|
-
*
|
|
15
|
-
* Reusing the same type for both is fine only when the public props and the
|
|
16
|
-
* bindable reactive members are intentionally the same surface.
|
|
17
|
-
*
|
|
18
|
-
* - `render()` describes the view.
|
|
19
|
-
* - `update()` commits the current view into the host.
|
|
20
|
-
* - first render happens automatically on connect.
|
|
21
|
-
* - plain `@prop`, `@state`, and `@signal` reads performed during `render()`
|
|
22
|
-
* participate in tracked rerender invalidation.
|
|
23
|
-
* - `update()` and `requestUpdate()` remain available when a rerender should be
|
|
24
|
-
* scheduled from imperative work outside those tracked reads.
|
|
25
|
-
*/
|
|
26
|
-
export declare class RadiantComponent<Bindings extends object = {}> extends RadiantElement<Bindings> {
|
|
27
|
-
private isRendering;
|
|
28
|
-
private isFirstConnectPending;
|
|
29
|
-
private isRenderScheduled;
|
|
30
|
-
private needsRender;
|
|
31
|
-
private projectedSlotContent;
|
|
32
|
-
private renderSignal?;
|
|
33
|
-
private readonly renderWatcher;
|
|
34
|
-
private slotProjectionObserver?;
|
|
35
|
-
private slotProjectionVersion;
|
|
36
|
-
private readonly ssr;
|
|
37
|
-
connectedCallback(): void;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the current component view.
|
|
40
|
-
*
|
|
41
|
-
* The base implementation behaves like `<slot />`, so authored host children
|
|
42
|
-
* pass through unchanged when a subclass does not override `render()`.
|
|
43
|
-
*/
|
|
44
|
-
render(): JsxRenderable;
|
|
45
|
-
/**
|
|
46
|
-
* Serializes the current component view into HTML.
|
|
47
|
-
*/
|
|
48
|
-
renderToString(options?: RenderToStringOptions): string;
|
|
49
|
-
/**
|
|
50
|
-
* Returns the component host and current view as a JSX element.
|
|
51
|
-
*/
|
|
52
|
-
renderHost(): JsxRenderable;
|
|
53
|
-
/**
|
|
54
|
-
* Serializes the component host and current view into HTML.
|
|
55
|
-
*/
|
|
56
|
-
renderHostToString(options?: RenderToStringOptions): string;
|
|
57
|
-
/**
|
|
58
|
-
* Hydrates an SSR-rendered component view in place.
|
|
59
|
-
*/
|
|
60
|
-
hydrate(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Queues a component rerender and coalesces repeated requests into the same
|
|
63
|
-
* microtask.
|
|
64
|
-
*
|
|
65
|
-
* Use this when reactive state may change multiple times in the same turn and
|
|
66
|
-
* the current view should refresh once with the final values.
|
|
67
|
-
*/
|
|
68
|
-
requestUpdate(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Explicitly rerenders the component into its host.
|
|
71
|
-
*/
|
|
72
|
-
update(): void;
|
|
73
|
-
disconnectedCallback(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Returns the first projected element assigned to the default or named slot.
|
|
76
|
-
*
|
|
77
|
-
* Use this when component logic needs direct access to authored light-DOM
|
|
78
|
-
* content after projection.
|
|
79
|
-
*
|
|
80
|
-
* @param name Optional slot name. Omit for the default slot.
|
|
81
|
-
*/
|
|
82
|
-
getSlotElement<T extends Element = Element>(name?: string): T | null;
|
|
83
|
-
/**
|
|
84
|
-
* Returns all projected elements assigned to the default or named slot.
|
|
85
|
-
*
|
|
86
|
-
* Text nodes are intentionally excluded so the result matches the element-
|
|
87
|
-
* oriented query semantics used by Radiant decorators.
|
|
88
|
-
*
|
|
89
|
-
* @param name Optional slot name. Omit for the default slot.
|
|
90
|
-
*/
|
|
91
|
-
getSlotElements<T extends Element = Element>(name?: string): T[];
|
|
92
|
-
protected shouldAutoBindReactiveMembers(): boolean;
|
|
93
|
-
protected getHostSsrAttributes(): Record<string, string>;
|
|
94
|
-
private ensureSlotProjectionState;
|
|
95
|
-
private getHostChildNodeCount;
|
|
96
|
-
private getSlotProjectionScriptTag;
|
|
97
|
-
private getAuthoredHydrationScriptMarkup;
|
|
98
|
-
private handleSlotProjectionMutations;
|
|
99
|
-
private addProjectedSlotNode;
|
|
100
|
-
private removeProjectedSlotNode;
|
|
101
|
-
private observeSlotProjection;
|
|
102
|
-
private disconnectSlotProjectionObserver;
|
|
103
|
-
private disconnectRenderWatcher;
|
|
104
|
-
private resolveTrackedRenderOutput;
|
|
105
|
-
private resolveRenderOutput;
|
|
106
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{G as a}from"../chunk-17earqbr.js";import"../chunk-84fc8cz9.js";import"../chunk-9ascmjk3.js";import"../chunk-9554n9t4.js";import"../chunk-9gjmqxp2.js";import"../chunk-8dexhy6c.js";import"../chunk-8tvt04cm.js";import"../chunk-73x7jpdd.js";import"../chunk-ms6a9zdt.js";import"../chunk-dx1wqc00.js";import"../chunk-4cc2syf5.js";import"../chunk-ksv01cey.js";import"../chunk-8n2dhx28.js";import"../chunk-8xy18qmz.js";export{a as RadiantComponent};
|
|
2
|
-
|
|
3
|
-
//# debugId=591CEE5AF32145BA64756E2164756E21
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{I as a,J as b,K as c,L as d,M as e,N as f,O as g,P as h,Q as i,R as j}from"../chunk-9ascmjk3.js";import"../chunk-ksv01cey.js";import"../chunk-8n2dhx28.js";import"../chunk-8xy18qmz.js";export{j as takeSlotProjectionScriptPayload,h as serializeProjectedSlotRenderables,i as resolveSlotProjection,e as parseProjectedSlotRenderablesFromHtml,d as deserializeProjectedSlotRenderables,g as collectAuthoredHydrationScriptMarkupFromHtml,f as collectAuthoredHydrationScriptMarkup,c as captureProjectedSlotRenderables,b as SLOT_PROJECTION_SCRIPT_ATTRIBUTE,a as DEFAULT_SLOT_NAME};
|
|
2
|
-
|
|
3
|
-
//# debugId=D6B349EF7A834A0E64756E2164756E21
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts the given value to a JSON string representation or maintains the type based on the generic parameter.
|
|
3
|
-
*
|
|
4
|
-
* @param value - The value to be converted.
|
|
5
|
-
* @returns The JSON string representation of the value or the value itself.
|
|
6
|
-
* @template T - The type of the value.
|
|
7
|
-
* @template R - The return type, defaults to T.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* // For maintaining the type in JSX attributes
|
|
11
|
-
* <my-app my-complex-attribute={stringifyTyped<MyType>(myData)}> // myData is of type MyType
|
|
12
|
-
*
|
|
13
|
-
* // For lower-level JSON string generation outside JSX text children
|
|
14
|
-
* const hydrationPayload = stringifyTyped<Partial<MyContext>, string>({ value: 'Hello World' });
|
|
15
|
-
*/
|
|
16
|
-
export declare function stringifyTyped<T, R = T>(value: T): R extends string ? string : T;
|