@craft-ts/core 0.7.0-beta.13 → 0.7.0-beta.16
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/package.json +10 -2
- package/src/index.d.ts +156 -148
- package/src/index.js +153 -142
- package/src/lib/after-recomputation.d.ts +3 -4
- package/src/lib/after-recomputation.js +3 -4
- package/src/lib/app-checked-di.d.ts +3 -4
- package/src/lib/app-checked-di.js +0 -1
- package/src/lib/async-process.d.ts +18 -19
- package/src/lib/async-process.js +24 -25
- package/src/lib/branded-component/branded-component.d.ts +3 -4
- package/src/lib/branded-component/branded-component.js +0 -1
- package/src/lib/browser-boundaries.d.ts +6 -7
- package/src/lib/browser-boundaries.js +5 -6
- package/src/lib/client-di-requirement.d.ts +1 -2
- package/src/lib/client-di-requirement.js +0 -1
- package/src/lib/client-function-middleware.d.ts +8 -92
- package/src/lib/client-function-middleware.js +89 -90
- package/src/lib/component-monitoring.d.ts +1 -2
- package/src/lib/component-monitoring.js +2 -3
- package/src/lib/component-register.d.ts +1 -2
- package/src/lib/component-register.js +1 -2
- package/src/lib/computed-source.d.ts +3 -4
- package/src/lib/computed-source.js +2 -3
- package/src/lib/correlation-id-plugin.d.ts +1 -2
- package/src/lib/correlation-id-plugin.js +6 -7
- package/src/lib/correlation-id.d.ts +4 -5
- package/src/lib/correlation-id.js +3 -4
- package/src/lib/craft-a11y.d.ts +3 -4
- package/src/lib/craft-a11y.js +5 -6
- package/src/lib/craft-activated-route.d.ts +2 -3
- package/src/lib/craft-activated-route.js +2 -3
- package/src/lib/craft-app-config.d.ts +4 -5
- package/src/lib/craft-app-config.js +3 -4
- package/src/lib/craft-codec.d.ts +0 -1
- package/src/lib/craft-codec.js +0 -1
- package/src/lib/craft-computed.d.ts +6 -7
- package/src/lib/craft-computed.js +7 -8
- package/src/lib/craft-control-flow.d.ts +0 -1
- package/src/lib/craft-control-flow.js +2 -3
- package/src/lib/craft-effect.d.ts +2 -3
- package/src/lib/craft-effect.js +7 -8
- package/src/lib/craft-exception.d.ts +0 -1
- package/src/lib/craft-exception.js +0 -1
- package/src/lib/craft-gen.d.ts +1 -2
- package/src/lib/craft-gen.js +2 -3
- package/src/lib/craft-generator-runtime.d.ts +21 -5
- package/src/lib/craft-generator-runtime.js +28 -6
- package/src/lib/craft-guard-runtime.d.ts +4 -5
- package/src/lib/craft-guard-runtime.js +6 -7
- package/src/lib/craft-handshake.d.ts +1 -2
- package/src/lib/craft-handshake.js +0 -1
- package/src/lib/craft-http-client.d.ts +3 -4
- package/src/lib/craft-http-client.js +4 -5
- package/src/lib/craft-http-trace.d.ts +1 -2
- package/src/lib/craft-http-trace.js +5 -2
- package/src/lib/craft-hydration.d.ts +11 -0
- package/src/lib/craft-hydration.js +2 -0
- package/src/lib/craft-lazy.d.ts +3 -4
- package/src/lib/craft-lazy.js +5 -6
- package/src/lib/craft-load-retry.d.ts +2 -3
- package/src/lib/craft-load-retry.js +11 -4
- package/src/lib/craft-machine-history.d.ts +6 -7
- package/src/lib/craft-machine-history.js +6 -7
- package/src/lib/craft-match.d.ts +0 -1
- package/src/lib/craft-match.js +0 -1
- package/src/lib/craft-method.d.ts +3 -4
- package/src/lib/craft-method.js +5 -6
- package/src/lib/craft-node-directive.d.ts +3 -4
- package/src/lib/craft-node-directive.js +2 -3
- package/src/lib/craft-pending.d.ts +3 -4
- package/src/lib/craft-pending.js +2 -3
- package/src/lib/craft-pipe.d.ts +1 -2
- package/src/lib/craft-pipe.js +7 -8
- package/src/lib/craft-platform.d.ts +2 -3
- package/src/lib/craft-platform.js +2 -3
- package/src/lib/craft-primitive-gen.d.ts +7 -8
- package/src/lib/craft-primitive-gen.js +4 -5
- package/src/lib/craft-primitive-registry.d.ts +4 -2
- package/src/lib/craft-primitive-registry.js +5 -3
- package/src/lib/craft-program-operators.d.ts +3 -4
- package/src/lib/craft-program-operators.js +4 -5
- package/src/lib/craft-program-runtime.d.ts +3 -4
- package/src/lib/craft-program-runtime.js +7 -8
- package/src/lib/craft-register-for-runtime.d.ts +2 -3
- package/src/lib/craft-register-for-runtime.js +2 -3
- package/src/lib/craft-register-for.d.ts +3 -4
- package/src/lib/craft-register-for.js +6 -7
- package/src/lib/craft-render-identity.d.ts +0 -1
- package/src/lib/craft-render-identity.js +1 -2
- package/src/lib/craft-replay.d.ts +0 -1
- package/src/lib/craft-replay.js +0 -1
- package/src/lib/craft-request-context.d.ts +15 -0
- package/src/lib/craft-request-context.js +40 -0
- package/src/lib/craft-resolve.d.ts +2 -3
- package/src/lib/craft-resolve.js +0 -1
- package/src/lib/craft-resource.d.ts +2 -3
- package/src/lib/craft-resource.js +14 -6
- package/src/lib/craft-route-exceptions.d.ts +27 -28
- package/src/lib/craft-route-exceptions.js +3 -4
- package/src/lib/craft-route-load-error.d.ts +92 -93
- package/src/lib/craft-route-load-error.js +6 -7
- package/src/lib/craft-route-meta.d.ts +4 -5
- package/src/lib/craft-route-meta.js +0 -1
- package/src/lib/craft-route-target.d.ts +1 -2
- package/src/lib/craft-route-target.js +1 -2
- package/src/lib/craft-router-outlet.d.ts +7 -7
- package/src/lib/craft-router-outlet.js +24 -18
- package/src/lib/craft-router-tokens.d.ts +3 -4
- package/src/lib/craft-router-tokens.js +2 -3
- package/src/lib/craft-router-trace.d.ts +3 -4
- package/src/lib/craft-router-trace.js +9 -3
- package/src/lib/craft-router.d.ts +16 -17
- package/src/lib/craft-router.js +75 -74
- package/src/lib/craft-routes.d.ts +20 -15
- package/src/lib/craft-routes.js +13 -12
- package/src/lib/craft-runtime-mode.d.ts +13 -0
- package/src/lib/craft-runtime-mode.js +21 -0
- package/src/lib/craft-security.d.ts +87 -0
- package/src/lib/craft-security.js +117 -0
- package/src/lib/craft-service.d.ts +12 -13
- package/src/lib/craft-service.js +11 -12
- package/src/lib/craft-service.shared.d.ts +0 -1
- package/src/lib/craft-service.shared.js +0 -1
- package/src/lib/craft-settled.d.ts +23 -16
- package/src/lib/craft-settled.js +9 -10
- package/src/lib/craft-ssr.d.ts +2 -3
- package/src/lib/craft-ssr.js +4 -5
- package/src/lib/craft-state-machine-runtime.d.ts +2 -3
- package/src/lib/craft-state-machine-runtime.js +3 -4
- package/src/lib/craft-state-machine.d.ts +5 -6
- package/src/lib/craft-state-machine.js +9 -10
- package/src/lib/craft-target-runtime.d.ts +1 -2
- package/src/lib/craft-target-runtime.js +2 -3
- package/src/lib/craft-transfer-snapshot.d.ts +10 -5
- package/src/lib/craft-transfer-snapshot.js +139 -14
- package/src/lib/craft-unique.d.ts +0 -1
- package/src/lib/craft-unique.js +0 -1
- package/src/lib/craft-until-settled.d.ts +5 -6
- package/src/lib/craft-until-settled.js +4 -5
- package/src/lib/craft-use.d.ts +0 -1
- package/src/lib/craft-use.js +2 -3
- package/src/lib/craft-view-transition.d.ts +2 -3
- package/src/lib/craft-view-transition.js +2 -3
- package/src/lib/dev-tools.d.ts +7 -0
- package/src/lib/dev-tools.js +244 -0
- package/src/lib/dom-event-hook.d.ts +1 -2
- package/src/lib/dom-event-hook.js +1 -2
- package/src/lib/fn-wrapper.d.ts +2 -3
- package/src/lib/fn-wrapper.js +3 -4
- package/src/lib/form/craft-field.d.ts +2 -3
- package/src/lib/form/craft-field.directive.d.ts +6 -7
- package/src/lib/form/craft-field.directive.js +5 -6
- package/src/lib/form/craft-field.js +1 -2
- package/src/lib/form/field-exception.d.ts +4 -5
- package/src/lib/form/field-exception.js +1 -2
- package/src/lib/form/field-lens.d.ts +0 -1
- package/src/lib/form/field-lens.js +0 -1
- package/src/lib/form/insert-form-attributes.d.ts +6 -7
- package/src/lib/form/insert-form-attributes.js +5 -6
- package/src/lib/form/insert-form-internals.d.ts +11 -12
- package/src/lib/form/insert-form-internals.js +9 -10
- package/src/lib/form/insert-form-schema.d.ts +3 -4
- package/src/lib/form/insert-form-schema.js +4 -5
- package/src/lib/form/insert-form-submit.d.ts +7 -8
- package/src/lib/form/insert-form-submit.js +3 -4
- package/src/lib/form/insert-form.d.ts +6 -7
- package/src/lib/form/insert-form.js +8 -9
- package/src/lib/form/insert-select-form-tree.d.ts +2 -3
- package/src/lib/form/insert-select-form-tree.js +5 -6
- package/src/lib/form/insert-sub-form-field.d.ts +3 -4
- package/src/lib/form/insert-sub-form-field.js +6 -7
- package/src/lib/form/make-form-tree-insert.d.ts +1 -2
- package/src/lib/form/make-form-tree-insert.js +3 -4
- package/src/lib/form/target-form-field.d.ts +0 -1
- package/src/lib/form/target-form-field.js +0 -1
- package/src/lib/form/validator.d.ts +5 -6
- package/src/lib/form/validator.js +3 -4
- package/src/lib/from-event-to-source$.d.ts +2 -3
- package/src/lib/from-event-to-source$.js +3 -4
- package/src/lib/global-persister-handler.service.d.ts +1 -2
- package/src/lib/global-persister-handler.service.js +2 -3
- package/src/lib/host/craft-compat.d.ts +2 -3
- package/src/lib/host/craft-compat.js +2 -3
- package/src/lib/host/craft-dom.d.ts +0 -1
- package/src/lib/host/craft-dom.js +0 -1
- package/src/lib/host/craft-http.d.ts +0 -1
- package/src/lib/host/craft-http.js +0 -1
- package/src/lib/host/craft-injector-host.d.ts +2 -3
- package/src/lib/host/craft-injector-host.js +1 -2
- package/src/lib/host/craft-injector.d.ts +0 -1
- package/src/lib/host/craft-injector.js +0 -1
- package/src/lib/host/craft-linked-signal.d.ts +1 -2
- package/src/lib/host/craft-linked-signal.js +2 -3
- package/src/lib/host/craft-router-runtime.d.ts +0 -1
- package/src/lib/host/craft-router-runtime.js +0 -1
- package/src/lib/host/craft-router-types.d.ts +1 -2
- package/src/lib/host/craft-router-types.js +1 -2
- package/src/lib/host/craft-signal.d.ts +0 -1
- package/src/lib/host/craft-signal.js +1 -2
- package/src/lib/host/craft-test-bed.d.ts +2 -3
- package/src/lib/host/craft-test-bed.js +2 -3
- package/src/lib/host-tag.d.ts +1 -2
- package/src/lib/host-tag.js +1 -2
- package/src/lib/http-server.d.ts +156 -0
- package/src/lib/http-server.js +590 -0
- package/src/lib/insert-entities.d.ts +5 -6
- package/src/lib/insert-entities.js +1 -2
- package/src/lib/insert-noop-typing-anchor.d.ts +1 -2
- package/src/lib/insert-noop-typing-anchor.js +0 -1
- package/src/lib/insert-pagination-placeholder-data.d.ts +5 -6
- package/src/lib/insert-pagination-placeholder-data.js +5 -6
- package/src/lib/insert-react-on-mutation.d.ts +5 -6
- package/src/lib/insert-react-on-mutation.js +2 -3
- package/src/lib/insert-select-resource.d.ts +2 -3
- package/src/lib/insert-select-resource.js +1 -2
- package/src/lib/insert-select.d.ts +5 -6
- package/src/lib/insert-select.js +18 -19
- package/src/lib/insert-storage-persister.d.ts +4 -5
- package/src/lib/insert-storage-persister.js +2 -3
- package/src/lib/insert-typed-pipes.d.ts +3 -4
- package/src/lib/insert-typed-pipes.js +2 -3
- package/src/lib/lambda-adapter.d.ts +52 -0
- package/src/lib/lambda-adapter.js +101 -0
- package/src/lib/linked-source.d.ts +3 -4
- package/src/lib/linked-source.js +2 -3
- package/src/lib/local-storage-persister.d.ts +2 -3
- package/src/lib/local-storage-persister.js +3 -4
- package/src/lib/middleware-schema-shared.d.ts +9 -21
- package/src/lib/middleware-schema-shared.js +6 -1
- package/src/lib/mock-http-request-for-route.d.ts +3 -4
- package/src/lib/mock-http-request-for-route.js +0 -1
- package/src/lib/mutation.d.ts +18 -19
- package/src/lib/mutation.js +23 -24
- package/src/lib/on$.d.ts +6 -7
- package/src/lib/on$.js +4 -5
- package/src/lib/portable-server-function.d.ts +8 -9
- package/src/lib/portable-server-function.js +12 -5
- package/src/lib/preserved-resource.d.ts +2 -3
- package/src/lib/preserved-resource.js +4 -5
- package/src/lib/primitive-method-runtime-context.d.ts +1 -2
- package/src/lib/primitive-method-runtime-context.js +2 -3
- package/src/lib/primitive-resource-runtime-context.d.ts +1 -2
- package/src/lib/primitive-resource-runtime-context.js +2 -3
- package/src/lib/query-params.d.ts +12 -13
- package/src/lib/query-params.js +15 -16
- package/src/lib/query.core.d.ts +15 -14
- package/src/lib/query.core.js +1 -2
- package/src/lib/query.d.ts +19 -20
- package/src/lib/query.js +23 -24
- package/src/lib/reactive-read.d.ts +2 -3
- package/src/lib/reactive-read.js +2 -3
- package/src/lib/render/channels.d.ts +130 -0
- package/src/lib/render/channels.js +0 -0
- package/src/lib/resource-by-id.d.ts +4 -5
- package/src/lib/resource-by-id.js +4 -5
- package/src/lib/resource-exception.d.ts +2 -3
- package/src/lib/resource-exception.js +1 -2
- package/src/lib/route-checked-di.d.ts +4 -5
- package/src/lib/route-checked-di.js +0 -1
- package/src/lib/schema-validation.d.ts +4 -5
- package/src/lib/schema-validation.js +2 -3
- package/src/lib/send-context-to-ai.d.ts +3 -4
- package/src/lib/send-context-to-ai.js +1 -2
- package/src/lib/send-context-to-ai.tokens.d.ts +1 -2
- package/src/lib/send-context-to-ai.tokens.js +0 -1
- package/src/lib/server-function-client.d.ts +18 -7
- package/src/lib/server-function-client.js +31 -9
- package/src/lib/server-function-contract.d.ts +1 -2
- package/src/lib/server-function-contract.js +0 -1
- package/src/lib/server-function-middleware.d.ts +49 -132
- package/src/lib/server-function-middleware.js +83 -103
- package/src/lib/server-function.d.ts +58 -8
- package/src/lib/server-function.js +20 -6
- package/src/lib/server-layer.d.ts +3 -4
- package/src/lib/server-layer.js +1 -2
- package/src/lib/server.d.ts +39 -6
- package/src/lib/server.js +259 -27
- package/src/lib/setup-craft-service-test.d.ts +3 -4
- package/src/lib/setup-craft-service-test.js +6 -7
- package/src/lib/setup-craft-service-testing-by-register.d.ts +4 -5
- package/src/lib/setup-craft-service-testing-by-register.js +4 -5
- package/src/lib/signal-proxy.d.ts +2 -3
- package/src/lib/signal-proxy.js +1 -2
- package/src/lib/signal-source.d.ts +3 -4
- package/src/lib/signal-source.js +7 -8
- package/src/lib/source$.d.ts +3 -4
- package/src/lib/source$.js +7 -8
- package/src/lib/source-from-event.d.ts +2 -3
- package/src/lib/source-from-event.js +2 -3
- package/src/lib/stacked-source.d.ts +1 -2
- package/src/lib/stacked-source.js +1 -2
- package/src/lib/standard-schema.d.ts +0 -1
- package/src/lib/standard-schema.js +0 -1
- package/src/lib/state-method-runtime-context.d.ts +2 -3
- package/src/lib/state-method-runtime-context.js +1 -2
- package/src/lib/state.d.ts +13 -14
- package/src/lib/state.js +17 -18
- package/src/lib/storage-persister.service.d.ts +3 -4
- package/src/lib/storage-persister.service.js +3 -4
- package/src/lib/take-app-snapshot.d.ts +1 -2
- package/src/lib/take-app-snapshot.js +10 -4
- package/src/lib/template-trace.d.ts +1 -2
- package/src/lib/template-trace.js +5 -2
- package/src/lib/temporal-runtime.d.ts +1 -2
- package/src/lib/temporal-runtime.js +1 -2
- package/src/lib/to-source.d.ts +3 -4
- package/src/lib/to-source.js +2 -3
- package/src/lib/util/craft-resource-ref.d.ts +2 -3
- package/src/lib/util/craft-resource-ref.js +0 -1
- package/src/lib/util/craft-resource-status.d.ts +1 -2
- package/src/lib/util/craft-resource-status.js +0 -1
- package/src/lib/util/entities-util.d.ts +0 -1
- package/src/lib/util/entities-util.js +0 -1
- package/src/lib/util/explicit-effect.d.ts +1 -2
- package/src/lib/util/explicit-effect.js +1 -2
- package/src/lib/util/extract-signal-props-and-methods.d.ts +2 -3
- package/src/lib/util/extract-signal-props-and-methods.js +0 -1
- package/src/lib/util/method-trigger-nonce.d.ts +1 -2
- package/src/lib/util/method-trigger-nonce.js +0 -1
- package/src/lib/util/persister.type.d.ts +2 -3
- package/src/lib/util/persister.type.js +0 -1
- package/src/lib/util/persister.util.d.ts +0 -1
- package/src/lib/util/persister.util.js +0 -1
- package/src/lib/util/react-on-mutation-effect.d.ts +5 -6
- package/src/lib/util/react-on-mutation-effect.js +4 -5
- package/src/lib/util/resource-by-id-changes-tracker.util.d.ts +2 -3
- package/src/lib/util/resource-by-id-changes-tracker.util.js +2 -3
- package/src/lib/util/source.type.d.ts +2 -3
- package/src/lib/util/source.type.js +0 -1
- package/src/lib/util/types/access-type-object-property-by-dotted-path.type.d.ts +1 -2
- package/src/lib/util/types/access-type-object-property-by-dotted-path.type.js +0 -1
- package/src/lib/util/types/boolean-or-mapper-fn-by-path-by-id.type.d.ts +4 -5
- package/src/lib/util/types/boolean-or-mapper-fn-by-path-by-id.type.js +0 -1
- package/src/lib/util/types/boolean-or-mapper-fn-by-path.type.d.ts +3 -4
- package/src/lib/util/types/boolean-or-mapper-fn-by-path.type.js +0 -1
- package/src/lib/util/types/brand.d.ts +0 -1
- package/src/lib/util/types/brand.js +0 -1
- package/src/lib/util/types/object-deep-path-mapper.type.d.ts +1 -2
- package/src/lib/util/types/object-deep-path-mapper.type.js +0 -1
- package/src/lib/util/types/resource-by-id-config.type.d.ts +3 -4
- package/src/lib/util/types/resource-by-id-config.type.js +0 -1
- package/src/lib/util/types/resource-with-params-or-params-fn.type.d.ts +2 -3
- package/src/lib/util/types/resource-with-params-or-params-fn.type.js +0 -1
- package/src/lib/util/types/shared.type.d.ts +6 -7
- package/src/lib/util/types/shared.type.js +0 -1
- package/src/lib/util/types/util.d.ts +2 -3
- package/src/lib/util/types/util.js +3 -3
- package/src/lib/util/types/util.type.d.ts +3 -4
- package/src/lib/util/types/util.type.js +0 -1
- package/src/lib/util/update-state.util.d.ts +0 -1
- package/src/lib/util/update-state.util.js +0 -1
- package/src/lib/util/util.d.ts +2 -3
- package/src/lib/util/util.js +1 -2
- package/src/lib/util/util.type.d.ts +5 -6
- package/src/lib/util/util.type.js +0 -1
- package/src/lib/worker-adapter.d.ts +8 -0
- package/src/lib/worker-adapter.js +8 -0
- package/src/lib/yieldable.d.ts +4 -5
- package/src/lib/yieldable.js +4 -5
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/after-recomputation.d.ts.map +0 -1
- package/src/lib/after-recomputation.js.map +0 -1
- package/src/lib/app-checked-di.d.ts.map +0 -1
- package/src/lib/app-checked-di.js.map +0 -1
- package/src/lib/async-process.d.ts.map +0 -1
- package/src/lib/async-process.js.map +0 -1
- package/src/lib/branded-component/branded-component.d.ts.map +0 -1
- package/src/lib/branded-component/branded-component.js.map +0 -1
- package/src/lib/browser-boundaries.d.ts.map +0 -1
- package/src/lib/browser-boundaries.js.map +0 -1
- package/src/lib/client-di-requirement.d.ts.map +0 -1
- package/src/lib/client-di-requirement.js.map +0 -1
- package/src/lib/client-function-middleware.d.ts.map +0 -1
- package/src/lib/client-function-middleware.js.map +0 -1
- package/src/lib/component-monitoring.d.ts.map +0 -1
- package/src/lib/component-monitoring.js.map +0 -1
- package/src/lib/component-register.d.ts.map +0 -1
- package/src/lib/component-register.js.map +0 -1
- package/src/lib/computed-source.d.ts.map +0 -1
- package/src/lib/computed-source.js.map +0 -1
- package/src/lib/correlation-id-plugin.d.ts.map +0 -1
- package/src/lib/correlation-id-plugin.js.map +0 -1
- package/src/lib/correlation-id.d.ts.map +0 -1
- package/src/lib/correlation-id.js.map +0 -1
- package/src/lib/craft-a11y.d.ts.map +0 -1
- package/src/lib/craft-a11y.js.map +0 -1
- package/src/lib/craft-activated-route.d.ts.map +0 -1
- package/src/lib/craft-activated-route.js.map +0 -1
- package/src/lib/craft-app-config.d.ts.map +0 -1
- package/src/lib/craft-app-config.js.map +0 -1
- package/src/lib/craft-codec.d.ts.map +0 -1
- package/src/lib/craft-codec.js.map +0 -1
- package/src/lib/craft-computed.d.ts.map +0 -1
- package/src/lib/craft-computed.js.map +0 -1
- package/src/lib/craft-control-flow.d.ts.map +0 -1
- package/src/lib/craft-control-flow.js.map +0 -1
- package/src/lib/craft-effect.d.ts.map +0 -1
- package/src/lib/craft-effect.js.map +0 -1
- package/src/lib/craft-exception.d.ts.map +0 -1
- package/src/lib/craft-exception.js.map +0 -1
- package/src/lib/craft-gen.d.ts.map +0 -1
- package/src/lib/craft-gen.js.map +0 -1
- package/src/lib/craft-generator-runtime.d.ts.map +0 -1
- package/src/lib/craft-generator-runtime.js.map +0 -1
- package/src/lib/craft-guard-runtime.d.ts.map +0 -1
- package/src/lib/craft-guard-runtime.js.map +0 -1
- package/src/lib/craft-handshake.d.ts.map +0 -1
- package/src/lib/craft-handshake.js.map +0 -1
- package/src/lib/craft-http-client.d.ts.map +0 -1
- package/src/lib/craft-http-client.js.map +0 -1
- package/src/lib/craft-http-trace.d.ts.map +0 -1
- package/src/lib/craft-http-trace.js.map +0 -1
- package/src/lib/craft-lazy.d.ts.map +0 -1
- package/src/lib/craft-lazy.js.map +0 -1
- package/src/lib/craft-load-retry.d.ts.map +0 -1
- package/src/lib/craft-load-retry.js.map +0 -1
- package/src/lib/craft-machine-history.d.ts.map +0 -1
- package/src/lib/craft-machine-history.js.map +0 -1
- package/src/lib/craft-match.d.ts.map +0 -1
- package/src/lib/craft-match.js.map +0 -1
- package/src/lib/craft-method.d.ts.map +0 -1
- package/src/lib/craft-method.js.map +0 -1
- package/src/lib/craft-node-directive.d.ts.map +0 -1
- package/src/lib/craft-node-directive.js.map +0 -1
- package/src/lib/craft-pending.d.ts.map +0 -1
- package/src/lib/craft-pending.js.map +0 -1
- package/src/lib/craft-pipe.d.ts.map +0 -1
- package/src/lib/craft-pipe.js.map +0 -1
- package/src/lib/craft-platform.d.ts.map +0 -1
- package/src/lib/craft-platform.js.map +0 -1
- package/src/lib/craft-primitive-gen.d.ts.map +0 -1
- package/src/lib/craft-primitive-gen.js.map +0 -1
- package/src/lib/craft-primitive-registry.d.ts.map +0 -1
- package/src/lib/craft-primitive-registry.js.map +0 -1
- package/src/lib/craft-program-operators.d.ts.map +0 -1
- package/src/lib/craft-program-operators.js.map +0 -1
- package/src/lib/craft-program-runtime.d.ts.map +0 -1
- package/src/lib/craft-program-runtime.js.map +0 -1
- package/src/lib/craft-register-for-runtime.d.ts.map +0 -1
- package/src/lib/craft-register-for-runtime.js.map +0 -1
- package/src/lib/craft-register-for.d.ts.map +0 -1
- package/src/lib/craft-register-for.js.map +0 -1
- package/src/lib/craft-render-identity.d.ts.map +0 -1
- package/src/lib/craft-render-identity.js.map +0 -1
- package/src/lib/craft-replay.d.ts.map +0 -1
- package/src/lib/craft-replay.js.map +0 -1
- package/src/lib/craft-resolve.d.ts.map +0 -1
- package/src/lib/craft-resolve.js.map +0 -1
- package/src/lib/craft-resource.d.ts.map +0 -1
- package/src/lib/craft-resource.js.map +0 -1
- package/src/lib/craft-route-exceptions.d.ts.map +0 -1
- package/src/lib/craft-route-exceptions.js.map +0 -1
- package/src/lib/craft-route-load-error.d.ts.map +0 -1
- package/src/lib/craft-route-load-error.js.map +0 -1
- package/src/lib/craft-route-meta.d.ts.map +0 -1
- package/src/lib/craft-route-meta.js.map +0 -1
- package/src/lib/craft-route-target.d.ts.map +0 -1
- package/src/lib/craft-route-target.js.map +0 -1
- package/src/lib/craft-router-outlet.d.ts.map +0 -1
- package/src/lib/craft-router-outlet.js.map +0 -1
- package/src/lib/craft-router-tokens.d.ts.map +0 -1
- package/src/lib/craft-router-tokens.js.map +0 -1
- package/src/lib/craft-router-trace.d.ts.map +0 -1
- package/src/lib/craft-router-trace.js.map +0 -1
- package/src/lib/craft-router.d.ts.map +0 -1
- package/src/lib/craft-router.js.map +0 -1
- package/src/lib/craft-routes.d.ts.map +0 -1
- package/src/lib/craft-routes.js.map +0 -1
- package/src/lib/craft-service.d.ts.map +0 -1
- package/src/lib/craft-service.js.map +0 -1
- package/src/lib/craft-service.shared.d.ts.map +0 -1
- package/src/lib/craft-service.shared.js.map +0 -1
- package/src/lib/craft-settled.d.ts.map +0 -1
- package/src/lib/craft-settled.js.map +0 -1
- package/src/lib/craft-ssr.d.ts.map +0 -1
- package/src/lib/craft-ssr.js.map +0 -1
- package/src/lib/craft-state-machine-runtime.d.ts.map +0 -1
- package/src/lib/craft-state-machine-runtime.js.map +0 -1
- package/src/lib/craft-state-machine.d.ts.map +0 -1
- package/src/lib/craft-state-machine.js.map +0 -1
- package/src/lib/craft-target-runtime.d.ts.map +0 -1
- package/src/lib/craft-target-runtime.js.map +0 -1
- package/src/lib/craft-transfer-snapshot.d.ts.map +0 -1
- package/src/lib/craft-transfer-snapshot.js.map +0 -1
- package/src/lib/craft-unique.d.ts.map +0 -1
- package/src/lib/craft-unique.js.map +0 -1
- package/src/lib/craft-until-settled.d.ts.map +0 -1
- package/src/lib/craft-until-settled.js.map +0 -1
- package/src/lib/craft-use.d.ts.map +0 -1
- package/src/lib/craft-use.js.map +0 -1
- package/src/lib/craft-view-transition.d.ts.map +0 -1
- package/src/lib/craft-view-transition.js.map +0 -1
- package/src/lib/dom-event-hook.d.ts.map +0 -1
- package/src/lib/dom-event-hook.js.map +0 -1
- package/src/lib/fn-wrapper.d.ts.map +0 -1
- package/src/lib/fn-wrapper.js.map +0 -1
- package/src/lib/form/craft-field.d.ts.map +0 -1
- package/src/lib/form/craft-field.directive.d.ts.map +0 -1
- package/src/lib/form/craft-field.directive.js.map +0 -1
- package/src/lib/form/craft-field.js.map +0 -1
- package/src/lib/form/field-exception.d.ts.map +0 -1
- package/src/lib/form/field-exception.js.map +0 -1
- package/src/lib/form/field-lens.d.ts.map +0 -1
- package/src/lib/form/field-lens.js.map +0 -1
- package/src/lib/form/insert-form-attributes.d.ts.map +0 -1
- package/src/lib/form/insert-form-attributes.js.map +0 -1
- package/src/lib/form/insert-form-internals.d.ts.map +0 -1
- package/src/lib/form/insert-form-internals.js.map +0 -1
- package/src/lib/form/insert-form-schema.d.ts.map +0 -1
- package/src/lib/form/insert-form-schema.js.map +0 -1
- package/src/lib/form/insert-form-submit.d.ts.map +0 -1
- package/src/lib/form/insert-form-submit.js.map +0 -1
- package/src/lib/form/insert-form.d.ts.map +0 -1
- package/src/lib/form/insert-form.js.map +0 -1
- package/src/lib/form/insert-select-form-tree.d.ts.map +0 -1
- package/src/lib/form/insert-select-form-tree.js.map +0 -1
- package/src/lib/form/insert-sub-form-field.d.ts.map +0 -1
- package/src/lib/form/insert-sub-form-field.js.map +0 -1
- package/src/lib/form/make-form-tree-insert.d.ts.map +0 -1
- package/src/lib/form/make-form-tree-insert.js.map +0 -1
- package/src/lib/form/target-form-field.d.ts.map +0 -1
- package/src/lib/form/target-form-field.js.map +0 -1
- package/src/lib/form/validator.d.ts.map +0 -1
- package/src/lib/form/validator.js.map +0 -1
- package/src/lib/from-event-to-source$.d.ts.map +0 -1
- package/src/lib/from-event-to-source$.js.map +0 -1
- package/src/lib/global-persister-handler.service.d.ts.map +0 -1
- package/src/lib/global-persister-handler.service.js.map +0 -1
- package/src/lib/host/craft-compat.d.ts.map +0 -1
- package/src/lib/host/craft-compat.js.map +0 -1
- package/src/lib/host/craft-dom.d.ts.map +0 -1
- package/src/lib/host/craft-dom.js.map +0 -1
- package/src/lib/host/craft-http.d.ts.map +0 -1
- package/src/lib/host/craft-http.js.map +0 -1
- package/src/lib/host/craft-injector-host.d.ts.map +0 -1
- package/src/lib/host/craft-injector-host.js.map +0 -1
- package/src/lib/host/craft-injector.d.ts.map +0 -1
- package/src/lib/host/craft-injector.js.map +0 -1
- package/src/lib/host/craft-linked-signal.d.ts.map +0 -1
- package/src/lib/host/craft-linked-signal.js.map +0 -1
- package/src/lib/host/craft-router-runtime.d.ts.map +0 -1
- package/src/lib/host/craft-router-runtime.js.map +0 -1
- package/src/lib/host/craft-router-types.d.ts.map +0 -1
- package/src/lib/host/craft-router-types.js.map +0 -1
- package/src/lib/host/craft-signal.d.ts.map +0 -1
- package/src/lib/host/craft-signal.js.map +0 -1
- package/src/lib/host/craft-test-bed.d.ts.map +0 -1
- package/src/lib/host/craft-test-bed.js.map +0 -1
- package/src/lib/host-tag.d.ts.map +0 -1
- package/src/lib/host-tag.js.map +0 -1
- package/src/lib/insert-entities.d.ts.map +0 -1
- package/src/lib/insert-entities.js.map +0 -1
- package/src/lib/insert-noop-typing-anchor.d.ts.map +0 -1
- package/src/lib/insert-noop-typing-anchor.js.map +0 -1
- package/src/lib/insert-pagination-placeholder-data.d.ts.map +0 -1
- package/src/lib/insert-pagination-placeholder-data.js.map +0 -1
- package/src/lib/insert-react-on-mutation.d.ts.map +0 -1
- package/src/lib/insert-react-on-mutation.js.map +0 -1
- package/src/lib/insert-select-resource.d.ts.map +0 -1
- package/src/lib/insert-select-resource.js.map +0 -1
- package/src/lib/insert-select.d.ts.map +0 -1
- package/src/lib/insert-select.js.map +0 -1
- package/src/lib/insert-storage-persister.d.ts.map +0 -1
- package/src/lib/insert-storage-persister.js.map +0 -1
- package/src/lib/insert-typed-pipes.d.ts.map +0 -1
- package/src/lib/insert-typed-pipes.js.map +0 -1
- package/src/lib/linked-source.d.ts.map +0 -1
- package/src/lib/linked-source.js.map +0 -1
- package/src/lib/local-storage-persister.d.ts.map +0 -1
- package/src/lib/local-storage-persister.js.map +0 -1
- package/src/lib/middleware-schema-shared.d.ts.map +0 -1
- package/src/lib/middleware-schema-shared.js.map +0 -1
- package/src/lib/mock-http-request-for-route.d.ts.map +0 -1
- package/src/lib/mock-http-request-for-route.js.map +0 -1
- package/src/lib/mutation.d.ts.map +0 -1
- package/src/lib/mutation.js.map +0 -1
- package/src/lib/on$.d.ts.map +0 -1
- package/src/lib/on$.js.map +0 -1
- package/src/lib/portable-server-function.d.ts.map +0 -1
- package/src/lib/portable-server-function.js.map +0 -1
- package/src/lib/preserved-resource.d.ts.map +0 -1
- package/src/lib/preserved-resource.js.map +0 -1
- package/src/lib/primitive-method-runtime-context.d.ts.map +0 -1
- package/src/lib/primitive-method-runtime-context.js.map +0 -1
- package/src/lib/primitive-resource-runtime-context.d.ts.map +0 -1
- package/src/lib/primitive-resource-runtime-context.js.map +0 -1
- package/src/lib/query-params.d.ts.map +0 -1
- package/src/lib/query-params.js.map +0 -1
- package/src/lib/query.core.d.ts.map +0 -1
- package/src/lib/query.core.js.map +0 -1
- package/src/lib/query.d.ts.map +0 -1
- package/src/lib/query.js.map +0 -1
- package/src/lib/reactive-read.d.ts.map +0 -1
- package/src/lib/reactive-read.js.map +0 -1
- package/src/lib/resource-by-id.d.ts.map +0 -1
- package/src/lib/resource-by-id.js.map +0 -1
- package/src/lib/resource-exception.d.ts.map +0 -1
- package/src/lib/resource-exception.js.map +0 -1
- package/src/lib/route-checked-di.d.ts.map +0 -1
- package/src/lib/route-checked-di.js.map +0 -1
- package/src/lib/schema-validation.d.ts.map +0 -1
- package/src/lib/schema-validation.js.map +0 -1
- package/src/lib/send-context-to-ai.d.ts.map +0 -1
- package/src/lib/send-context-to-ai.js.map +0 -1
- package/src/lib/send-context-to-ai.tokens.d.ts.map +0 -1
- package/src/lib/send-context-to-ai.tokens.js.map +0 -1
- package/src/lib/server-function-client.d.ts.map +0 -1
- package/src/lib/server-function-client.js.map +0 -1
- package/src/lib/server-function-contract.d.ts.map +0 -1
- package/src/lib/server-function-contract.js.map +0 -1
- package/src/lib/server-function-middleware.d.ts.map +0 -1
- package/src/lib/server-function-middleware.js.map +0 -1
- package/src/lib/server-function.d.ts.map +0 -1
- package/src/lib/server-function.js.map +0 -1
- package/src/lib/server-layer.d.ts.map +0 -1
- package/src/lib/server-layer.js.map +0 -1
- package/src/lib/server.d.ts.map +0 -1
- package/src/lib/server.js.map +0 -1
- package/src/lib/setup-craft-service-test.d.ts.map +0 -1
- package/src/lib/setup-craft-service-test.js.map +0 -1
- package/src/lib/setup-craft-service-testing-by-register.d.ts.map +0 -1
- package/src/lib/setup-craft-service-testing-by-register.js.map +0 -1
- package/src/lib/signal-proxy.d.ts.map +0 -1
- package/src/lib/signal-proxy.js.map +0 -1
- package/src/lib/signal-source.d.ts.map +0 -1
- package/src/lib/signal-source.js.map +0 -1
- package/src/lib/source$.d.ts.map +0 -1
- package/src/lib/source$.js.map +0 -1
- package/src/lib/source-from-event.d.ts.map +0 -1
- package/src/lib/source-from-event.js.map +0 -1
- package/src/lib/stacked-source.d.ts.map +0 -1
- package/src/lib/stacked-source.js.map +0 -1
- package/src/lib/standard-schema.d.ts.map +0 -1
- package/src/lib/standard-schema.js.map +0 -1
- package/src/lib/state-method-runtime-context.d.ts.map +0 -1
- package/src/lib/state-method-runtime-context.js.map +0 -1
- package/src/lib/state.d.ts.map +0 -1
- package/src/lib/state.js.map +0 -1
- package/src/lib/storage-persister.service.d.ts.map +0 -1
- package/src/lib/storage-persister.service.js.map +0 -1
- package/src/lib/take-app-snapshot.d.ts.map +0 -1
- package/src/lib/take-app-snapshot.js.map +0 -1
- package/src/lib/template-trace.d.ts.map +0 -1
- package/src/lib/template-trace.js.map +0 -1
- package/src/lib/temporal-runtime.d.ts.map +0 -1
- package/src/lib/temporal-runtime.js.map +0 -1
- package/src/lib/to-source.d.ts.map +0 -1
- package/src/lib/to-source.js.map +0 -1
- package/src/lib/util/craft-resource-ref.d.ts.map +0 -1
- package/src/lib/util/craft-resource-ref.js.map +0 -1
- package/src/lib/util/craft-resource-status.d.ts.map +0 -1
- package/src/lib/util/craft-resource-status.js.map +0 -1
- package/src/lib/util/entities-util.d.ts.map +0 -1
- package/src/lib/util/entities-util.js.map +0 -1
- package/src/lib/util/explicit-effect.d.ts.map +0 -1
- package/src/lib/util/explicit-effect.js.map +0 -1
- package/src/lib/util/extract-signal-props-and-methods.d.ts.map +0 -1
- package/src/lib/util/extract-signal-props-and-methods.js.map +0 -1
- package/src/lib/util/method-trigger-nonce.d.ts.map +0 -1
- package/src/lib/util/method-trigger-nonce.js.map +0 -1
- package/src/lib/util/persister.type.d.ts.map +0 -1
- package/src/lib/util/persister.type.js.map +0 -1
- package/src/lib/util/persister.util.d.ts.map +0 -1
- package/src/lib/util/persister.util.js.map +0 -1
- package/src/lib/util/react-on-mutation-effect.d.ts.map +0 -1
- package/src/lib/util/react-on-mutation-effect.js.map +0 -1
- package/src/lib/util/resource-by-id-changes-tracker.util.d.ts.map +0 -1
- package/src/lib/util/resource-by-id-changes-tracker.util.js.map +0 -1
- package/src/lib/util/source.type.d.ts.map +0 -1
- package/src/lib/util/source.type.js.map +0 -1
- package/src/lib/util/types/access-type-object-property-by-dotted-path.type.d.ts.map +0 -1
- package/src/lib/util/types/access-type-object-property-by-dotted-path.type.js.map +0 -1
- package/src/lib/util/types/boolean-or-mapper-fn-by-path-by-id.type.d.ts.map +0 -1
- package/src/lib/util/types/boolean-or-mapper-fn-by-path-by-id.type.js.map +0 -1
- package/src/lib/util/types/boolean-or-mapper-fn-by-path.type.d.ts.map +0 -1
- package/src/lib/util/types/boolean-or-mapper-fn-by-path.type.js.map +0 -1
- package/src/lib/util/types/brand.d.ts.map +0 -1
- package/src/lib/util/types/brand.js.map +0 -1
- package/src/lib/util/types/object-deep-path-mapper.type.d.ts.map +0 -1
- package/src/lib/util/types/object-deep-path-mapper.type.js.map +0 -1
- package/src/lib/util/types/resource-by-id-config.type.d.ts.map +0 -1
- package/src/lib/util/types/resource-by-id-config.type.js.map +0 -1
- package/src/lib/util/types/resource-with-params-or-params-fn.type.d.ts.map +0 -1
- package/src/lib/util/types/resource-with-params-or-params-fn.type.js.map +0 -1
- package/src/lib/util/types/shared.type.d.ts.map +0 -1
- package/src/lib/util/types/shared.type.js.map +0 -1
- package/src/lib/util/types/util.d.ts.map +0 -1
- package/src/lib/util/types/util.js.map +0 -1
- package/src/lib/util/types/util.type.d.ts.map +0 -1
- package/src/lib/util/types/util.type.js.map +0 -1
- package/src/lib/util/update-state.util.d.ts.map +0 -1
- package/src/lib/util/update-state.util.js.map +0 -1
- package/src/lib/util/util.d.ts.map +0 -1
- package/src/lib/util/util.js.map +0 -1
- package/src/lib/util/util.type.d.ts.map +0 -1
- package/src/lib/util/util.type.js.map +0 -1
- package/src/lib/yieldable.d.ts.map +0 -1
- package/src/lib/yieldable.js.map +0 -1
package/src/lib/signal-source.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { assertInInjectionContext, DestroyRef, inject, Injector, linkedSignal, runInInjectionContext, signal, } from './host/craft-compat';
|
|
2
|
-
import { takeUntilDestroyed } from './host/craft-compat';
|
|
3
|
-
import { SourceBranded } from './util/util';
|
|
4
|
-
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service';
|
|
5
|
-
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot';
|
|
6
|
-
import { injectFnWrapper } from './fn-wrapper';
|
|
7
|
-
import { RAW_REACTIVE_VALUE, REACTIVE_VALUE_TYPE, YIELDABLE_VALUE, } from './reactive-read';
|
|
1
|
+
import { assertInInjectionContext, DestroyRef, inject, Injector, linkedSignal, runInInjectionContext, signal, } from './host/craft-compat.js';
|
|
2
|
+
import { takeUntilDestroyed } from './host/craft-compat.js';
|
|
3
|
+
import { SourceBranded } from './util/util.js';
|
|
4
|
+
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service.js';
|
|
5
|
+
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot.js';
|
|
6
|
+
import { injectFnWrapper } from './fn-wrapper.js';
|
|
7
|
+
import { RAW_REACTIVE_VALUE, REACTIVE_VALUE_TYPE, YIELDABLE_VALUE, } from './reactive-read.js';
|
|
8
8
|
/**
|
|
9
9
|
* Creates a source for event-driven communication with lazy emission semantics.
|
|
10
10
|
*
|
|
@@ -430,4 +430,3 @@ export function signalSource(name, options) {
|
|
|
430
430
|
set,
|
|
431
431
|
}, SourceBranded);
|
|
432
432
|
}
|
|
433
|
-
//# sourceMappingURL=signal-source.js.map
|
package/src/lib/source$.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventEmitter, Signal } from './host/craft-compat';
|
|
2
|
-
import type { SERVICE_HELPER_DEPENDENCIES, ServiceDependencies } from './craft-service';
|
|
3
|
-
import { type NamedCraftPrimitiveGen } from './craft-primitive-gen';
|
|
1
|
+
import { EventEmitter, Signal } from './host/craft-compat.js';
|
|
2
|
+
import type { SERVICE_HELPER_DEPENDENCIES, ServiceDependencies } from './craft-service.js';
|
|
3
|
+
import { type NamedCraftPrimitiveGen } from './craft-primitive-gen.js';
|
|
4
4
|
export type SourceDependency<Name extends string> = {
|
|
5
5
|
[K in Name]: ServiceDependencies<'function', {}>;
|
|
6
6
|
};
|
|
@@ -118,4 +118,3 @@ export type ReadonlySource$<T, Name extends string = string> = SourceDependencyC
|
|
|
118
118
|
*/
|
|
119
119
|
export declare function source$<T, Name extends string = string>(name: Name): Source$<T, Name>;
|
|
120
120
|
export {};
|
|
121
|
-
//# sourceMappingURL=source$.d.ts.map
|
package/src/lib/source$.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { assertInInjectionContext, DestroyRef, EventEmitter, inject, Injector, signal, } from './host/craft-compat';
|
|
2
|
-
import { takeUntilDestroyed } from './host/craft-compat';
|
|
3
|
-
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service';
|
|
4
|
-
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot';
|
|
5
|
-
import { createNamedPrimitiveGen, } from './craft-primitive-gen';
|
|
6
|
-
import { yieldableInvocation } from './yieldable';
|
|
7
|
-
import { SourceBranded } from './util/util';
|
|
1
|
+
import { assertInInjectionContext, DestroyRef, EventEmitter, inject, Injector, signal, } from './host/craft-compat.js';
|
|
2
|
+
import { takeUntilDestroyed } from './host/craft-compat.js';
|
|
3
|
+
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service.js';
|
|
4
|
+
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot.js';
|
|
5
|
+
import { createNamedPrimitiveGen, } from './craft-primitive-gen.js';
|
|
6
|
+
import { yieldableInvocation } from './yieldable.js';
|
|
7
|
+
import { SourceBranded } from './util/util.js';
|
|
8
8
|
/**
|
|
9
9
|
* Creates an event emitter with automatic cleanup and signal-based value tracking.
|
|
10
10
|
*
|
|
@@ -168,4 +168,3 @@ export function source$(name) {
|
|
|
168
168
|
const generator = createNamedPrimitiveGen(name, source);
|
|
169
169
|
return Object.assign(generator, source);
|
|
170
170
|
}
|
|
171
|
-
//# sourceMappingURL=source$.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValueEqualityFn } from './host/craft-compat';
|
|
2
|
-
import { SignalSource } from './signal-source';
|
|
1
|
+
import { ValueEqualityFn } from './host/craft-compat.js';
|
|
2
|
+
import { SignalSource } from './signal-source.js';
|
|
3
3
|
export type SourceFromEvent<T> = SignalSource<T> & {
|
|
4
4
|
dispose: () => void;
|
|
5
5
|
};
|
|
@@ -347,4 +347,3 @@ export declare function sourceFromEvent<T, ComputedValue>(target: EventTarget, e
|
|
|
347
347
|
equal?: ValueEqualityFn<NoInfer<T> | undefined>;
|
|
348
348
|
};
|
|
349
349
|
}): SourceFromEvent<ComputedValue>;
|
|
350
|
-
//# sourceMappingURL=source-from-event.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assertInInjectionContext, DestroyRef, inject, } from './host/craft-compat';
|
|
2
|
-
import { signalSource } from './signal-source';
|
|
1
|
+
import { assertInInjectionContext, DestroyRef, inject, } from './host/craft-compat.js';
|
|
2
|
+
import { signalSource } from './signal-source.js';
|
|
3
3
|
export function sourceFromEvent(target, eventName, options) {
|
|
4
4
|
assertInInjectionContext(sourceFromEvent);
|
|
5
5
|
const eventSignalSource = signalSource(eventName, options?.source);
|
|
@@ -23,4 +23,3 @@ export function sourceFromEvent(target, eventName, options) {
|
|
|
23
23
|
dispose,
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
//# sourceMappingURL=source-from-event.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Signal } from './host/craft-compat';
|
|
1
|
+
import { Signal } from './host/craft-compat.js';
|
|
2
2
|
export type StackSource<T> = Signal<T[] | undefined> & {
|
|
3
3
|
set: (value: T) => void;
|
|
4
4
|
};
|
|
5
5
|
export declare function stackedSource<T>(): StackSource<T>;
|
|
6
|
-
//# sourceMappingURL=stacked-source.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { linkedSignal, signal } from './host/craft-compat';
|
|
1
|
+
import { linkedSignal, signal } from './host/craft-compat.js';
|
|
2
2
|
// ! this algo only works with object
|
|
3
3
|
export function stackedSource() {
|
|
4
4
|
const stack = [];
|
|
@@ -26,4 +26,3 @@ export function stackedSource() {
|
|
|
26
26
|
set,
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
//# sourceMappingURL=stacked-source.js.map
|
|
@@ -40,4 +40,3 @@ export interface StandardSchemaV1PathSegment {
|
|
|
40
40
|
}
|
|
41
41
|
export type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'];
|
|
42
42
|
export type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
|
|
43
|
-
//# sourceMappingURL=standard-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=standard-schema.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Provider, Signal } from './host/craft-compat';
|
|
2
|
-
import { type PrimitiveMethodRuntimeContext } from './primitive-method-runtime-context';
|
|
1
|
+
import type { Provider, Signal } from './host/craft-compat.js';
|
|
2
|
+
import { type PrimitiveMethodRuntimeContext } from './primitive-method-runtime-context.js';
|
|
3
3
|
export type StateMethodRuntimeContext = PrimitiveMethodRuntimeContext<'state'>;
|
|
4
4
|
type StateInsertionContext = Readonly<{
|
|
5
5
|
state: Signal<unknown>;
|
|
@@ -10,4 +10,3 @@ type StateInsertionContext = Readonly<{
|
|
|
10
10
|
export declare function injectStateMethodRuntimeContext(): StateMethodRuntimeContext | undefined;
|
|
11
11
|
export declare function ɵprovideStateMethodRuntimeContext(context: StateInsertionContext, originalFactory: (...args: never[]) => unknown): Provider;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=state-method-runtime-context.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { injectPrimitiveMethodRuntimeContext, ɵprovidePrimitiveMethodRuntimeContext, } from './primitive-method-runtime-context';
|
|
1
|
+
import { injectPrimitiveMethodRuntimeContext, ɵprovidePrimitiveMethodRuntimeContext, } from './primitive-method-runtime-context.js';
|
|
2
2
|
export function injectStateMethodRuntimeContext() {
|
|
3
3
|
const context = injectPrimitiveMethodRuntimeContext();
|
|
4
4
|
return context?.kind === 'state'
|
|
@@ -8,4 +8,3 @@ export function injectStateMethodRuntimeContext() {
|
|
|
8
8
|
export function ɵprovideStateMethodRuntimeContext(context, originalFactory) {
|
|
9
9
|
return ɵprovidePrimitiveMethodRuntimeContext('state', context, originalFactory);
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=state-method-runtime-context.js.map
|
package/src/lib/state.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { type Provider, Signal } from './host/craft-compat';
|
|
2
|
-
import { type CraftSignal } from './host/craft-signal';
|
|
3
|
-
import { InsertionsStateFactory } from './query.core';
|
|
4
|
-
import { type CraftPrimitiveGen, type NamedPrimitive } from './craft-primitive-gen';
|
|
5
|
-
import type { BrandedServiceProvider, MergeServiceDependencyMaps, SERVICE_HELPER_DEPENDENCIES, ServiceDependencyMapFromValues, ServiceDependencyMapFromYielded } from './craft-service';
|
|
6
|
-
import { Source$ as SourceDollarType } from './source
|
|
7
|
-
import { MergeObject } from './util/types/util.type';
|
|
8
|
-
import { FilterSource, IsEmptyObject } from './util/util.type';
|
|
9
|
-
import { type BrandReactiveProperties, type YieldableInsertionMethods } from './yieldable';
|
|
10
|
-
import type { StandardSchemaV1InferInput, StandardSchemaV1InferOutput } from './standard-schema';
|
|
11
|
-
import { type CraftSchema, type SchemaValidationPolicy } from './schema-validation';
|
|
12
|
-
import type { AnyCraftException } from './craft-exception';
|
|
13
|
-
import { DEEP_YIELDABLE_INSERTION, type DeepYieldableReaderOf, type YieldableReactiveValue } from './reactive-read';
|
|
1
|
+
import { type Provider, Signal } from './host/craft-compat.js';
|
|
2
|
+
import { type CraftSignal } from './host/craft-signal.js';
|
|
3
|
+
import { InsertionsStateFactory } from './query.core.js';
|
|
4
|
+
import { type CraftPrimitiveGen, type NamedPrimitive } from './craft-primitive-gen.js';
|
|
5
|
+
import type { BrandedServiceProvider, MergeServiceDependencyMaps, SERVICE_HELPER_DEPENDENCIES, ServiceDependencyMapFromValues, ServiceDependencyMapFromYielded } from './craft-service.js';
|
|
6
|
+
import { Source$ as SourceDollarType } from './source$.js';
|
|
7
|
+
import { MergeObject } from './util/types/util.type.js';
|
|
8
|
+
import { FilterSource, IsEmptyObject } from './util/util.type.js';
|
|
9
|
+
import { type BrandReactiveProperties, type YieldableInsertionMethods } from './yieldable.js';
|
|
10
|
+
import type { StandardSchemaV1InferInput, StandardSchemaV1InferOutput } from './standard-schema.js';
|
|
11
|
+
import { type CraftSchema, type SchemaValidationPolicy } from './schema-validation.js';
|
|
12
|
+
import type { AnyCraftException } from './craft-exception.js';
|
|
13
|
+
import { DEEP_YIELDABLE_INSERTION, type DeepYieldableReaderOf, type YieldableReactiveValue } from './reactive-read.js';
|
|
14
14
|
type Source$Method<SourceType> = [SourceType] extends [void] ? () => Generator<never, void, unknown> : (value: SourceType) => Generator<never, void, unknown>;
|
|
15
15
|
export type ExposedStateInsertions<Insertions> = YieldableInsertionMethods<MergeObject<IsEmptyObject<Insertions> extends true ? {} : FilterSource<Insertions>, {
|
|
16
16
|
[K in keyof FilterSource<Insertions> as FilterSource<Insertions>[K] extends SourceDollarType<any> ? K : never]: FilterSource<Insertions>[K] extends SourceDollarType<infer SourceType> ? Source$Method<SourceType> : never;
|
|
@@ -155,4 +155,3 @@ export declare function state<Name extends string, Schema extends CraftSchema>(n
|
|
|
155
155
|
export declare function state<Name extends string, StateInput>(name: Name, stateConfig: StateInput): CraftPrimitiveGen<NamedPrimitive<Name, StateOutput<ResolvedStateType<StateInput>, {}, StateTrackedDependencies<StateInput>, false, false, Name>>>;
|
|
156
156
|
export declare function state<Name extends string, StateInput, Insertion1, Insertion1Yielded = never>(name: Name, stateConfig: StateInput, insertion1: InsertionsStateFactory<NoInfer<ResolvedStateType<StateInput>>, Insertion1, {}, Insertion1Yielded>): CraftPrimitiveGen<NamedPrimitive<Name, StateOutput<ResolvedStateType<StateInput>, Insertion1, StateTrackedDependencies<StateInput, Insertion1Yielded, Insertion1>, false, false, Name>>>;
|
|
157
157
|
export {};
|
|
158
|
-
//# sourceMappingURL=state.d.ts.map
|
package/src/lib/state.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { assertInInjectionContext, DestroyRef, inject, Injector, isSignal, isWritableSignal, linkedSignal, runInInjectionContext, } from './host/craft-compat';
|
|
2
|
-
import { takeUntilDestroyed } from './host/craft-compat';
|
|
1
|
+
import { assertInInjectionContext, DestroyRef, inject, Injector, isSignal, isWritableSignal, linkedSignal, runInInjectionContext, } from './host/craft-compat.js';
|
|
2
|
+
import { takeUntilDestroyed } from './host/craft-compat.js';
|
|
3
3
|
const UNSET_ANGULAR_STATE = Symbol('unset-angular-state');
|
|
4
|
-
import { craftComputed, craftLinkedSignal, craftSignal, isCraftSignal, } from './host/craft-signal';
|
|
5
|
-
import { createNamedPrimitiveGen, createPrimitiveGen, } from './craft-primitive-gen';
|
|
6
|
-
import { isGenerator, runCraftGenerator } from './craft-generator-runtime';
|
|
7
|
-
import { injectFnWrapper } from './fn-wrapper';
|
|
8
|
-
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service';
|
|
9
|
-
import { APP_SNAPSHOT_REGISTRY, INSERTION_SNAPSHOT_REGISTRY, InsertionSnapshotRegistry, triggerAndCollectInsertions, } from './take-app-snapshot';
|
|
10
|
-
import { isSource } from './util/util';
|
|
11
|
-
import { ɵprovideStateMethodRuntimeContext } from './state-method-runtime-context';
|
|
12
|
-
import { ɵregisterCraftPrimitive } from './craft-primitive-registry';
|
|
13
|
-
import { createYieldableInsertionMethod, isNonYieldableInsertionMethod, yieldableInvocation, } from './yieldable';
|
|
14
|
-
import { decideSchemaValidation, parseSchema, useSchemaValidationPolicy, } from './schema-validation';
|
|
15
|
-
import { createYieldableReactiveFacade, createYieldableReactiveValue, deepYieldable, hasDeepYieldableInsertion, DEEP_YIELDABLE_INSERTION, isYieldableReactiveValue, nameInsertedReactiveValue, } from './reactive-read';
|
|
4
|
+
import { craftComputed, craftLinkedSignal, craftSignal, isCraftSignal, } from './host/craft-signal.js';
|
|
5
|
+
import { createNamedPrimitiveGen, createPrimitiveGen, } from './craft-primitive-gen.js';
|
|
6
|
+
import { isGenerator, runCraftGenerator } from './craft-generator-runtime.js';
|
|
7
|
+
import { injectFnWrapper } from './fn-wrapper.js';
|
|
8
|
+
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service.js';
|
|
9
|
+
import { APP_SNAPSHOT_REGISTRY, INSERTION_SNAPSHOT_REGISTRY, InsertionSnapshotRegistry, triggerAndCollectInsertions, } from './take-app-snapshot.js';
|
|
10
|
+
import { isSource } from './util/util.js';
|
|
11
|
+
import { ɵprovideStateMethodRuntimeContext } from './state-method-runtime-context.js';
|
|
12
|
+
import { ɵregisterCraftPrimitive } from './craft-primitive-registry.js';
|
|
13
|
+
import { createYieldableInsertionMethod, isNonYieldableInsertionMethod, yieldableInvocation, } from './yieldable.js';
|
|
14
|
+
import { decideSchemaValidation, parseSchema, useSchemaValidationPolicy, } from './schema-validation.js';
|
|
15
|
+
import { createYieldableReactiveFacade, createYieldableReactiveValue, deepYieldable, hasDeepYieldableInsertion, DEEP_YIELDABLE_INSERTION, isYieldableReactiveValue, nameInsertedReactiveValue, } from './reactive-read.js';
|
|
16
16
|
const createLinkedSignalWithOptions = craftLinkedSignal;
|
|
17
17
|
const createCraftLinkedSignalWithOptions = linkedSignal;
|
|
18
18
|
const STATE_INVALID_YIELD_ERROR_MESSAGE = 'state generators can only yield craftService dependencies or exposed dependency helpers.';
|
|
@@ -242,9 +242,6 @@ stateConfig,
|
|
|
242
242
|
};
|
|
243
243
|
const nextRawInsertions = executeStateFactory(insert, undefined, getBaseInjector, insertionContext);
|
|
244
244
|
const nextExposedInsertions = Object.entries(nextRawInsertions).reduce((exposedAcc, [key, value]) => {
|
|
245
|
-
if (isSource(value)) {
|
|
246
|
-
return exposedAcc;
|
|
247
|
-
}
|
|
248
245
|
if (isSource$(value)) {
|
|
249
246
|
const localSource = value;
|
|
250
247
|
const sourceInjector = ɵcreateHostTaggedInjector(getInjector(), `source:${key}`);
|
|
@@ -257,6 +254,9 @@ stateConfig,
|
|
|
257
254
|
});
|
|
258
255
|
return exposedAcc;
|
|
259
256
|
}
|
|
257
|
+
if (isSource(value)) {
|
|
258
|
+
return exposedAcc;
|
|
259
|
+
}
|
|
260
260
|
if (isYieldableReactiveValue(value)) {
|
|
261
261
|
exposedAcc[key] = nameInsertedReactiveValue(value, key, 'state', `${name}.${key}`);
|
|
262
262
|
return exposedAcc;
|
|
@@ -385,4 +385,3 @@ stateConfig,
|
|
|
385
385
|
? deepYieldable(publicState)
|
|
386
386
|
: publicState;
|
|
387
387
|
}
|
|
388
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type CraftServiceApi, type ServiceTrackingMetadata } from './craft-service';
|
|
2
|
-
import type { QueriesPersister } from './util/persister.type';
|
|
1
|
+
import { type CraftServiceApi, type ServiceTrackingMetadata } from './craft-service.js';
|
|
2
|
+
import type { QueriesPersister } from './util/persister.type.js';
|
|
3
3
|
/** The common persistence contract used by storage-backed insertions. */
|
|
4
4
|
export interface StoragePersisterApi extends QueriesPersister {
|
|
5
5
|
}
|
|
@@ -9,7 +9,7 @@ type StoragePersisterImplementationApi<Name extends string> = CraftServiceApi<Na
|
|
|
9
9
|
*
|
|
10
10
|
* Applications must provide an implementation with `provideStoragePersister`.
|
|
11
11
|
*/
|
|
12
|
-
declare const storagePersisterService: import("./craft-service").AbstractServiceApi<"StoragePersister", StoragePersisterApi>;
|
|
12
|
+
declare const storagePersisterService: import("./craft-service.js").AbstractServiceApi<"StoragePersister", StoragePersisterApi>;
|
|
13
13
|
export declare const StoragePersister: typeof storagePersisterService.StoragePersister;
|
|
14
14
|
export declare const StoragePersisterRequirement: typeof storagePersisterService.StoragePersisterRequirement;
|
|
15
15
|
export declare const provideStoragePersister: typeof storagePersisterService.provideStoragePersister;
|
|
@@ -22,4 +22,3 @@ declare const sessionStoragePersisterService: StoragePersisterImplementationApi<
|
|
|
22
22
|
export declare const SessionStoragePersister: typeof sessionStoragePersisterService.SessionStoragePersister;
|
|
23
23
|
export declare const provideSessionStoragePersister: typeof sessionStoragePersisterService.provideSessionStoragePersister;
|
|
24
24
|
export {};
|
|
25
|
-
//# sourceMappingURL=storage-persister.service.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { abstract, craftService, } from './craft-service';
|
|
2
|
-
import { LocalStorageService, SessionStorageService, } from './browser-boundaries';
|
|
3
|
-
import { createStoragePersister } from './local-storage-persister';
|
|
1
|
+
import { abstract, craftService, } from './craft-service.js';
|
|
2
|
+
import { LocalStorageService, SessionStorageService, } from './browser-boundaries.js';
|
|
3
|
+
import { createStoragePersister } from './local-storage-persister.js';
|
|
4
4
|
/**
|
|
5
5
|
* Abstract storage persister selected through the Angular/Craft DI hierarchy.
|
|
6
6
|
*
|
|
@@ -24,4 +24,3 @@ const sessionStoragePersisterService = craftService({ name: 'SessionStoragePersi
|
|
|
24
24
|
});
|
|
25
25
|
export const SessionStoragePersister = sessionStoragePersisterService.SessionStoragePersister;
|
|
26
26
|
export const provideSessionStoragePersister = sessionStoragePersisterService.provideSessionStoragePersister;
|
|
27
|
-
//# sourceMappingURL=storage-persister.service.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from './host/craft-compat';
|
|
1
|
+
import { InjectionToken, type Provider } from './host/craft-compat.js';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
export interface SnapshotReport {
|
|
4
4
|
source: string;
|
|
@@ -28,4 +28,3 @@ export declare const TAKE_APP_SNAPSHOT: InjectionToken<() => void>;
|
|
|
28
28
|
export declare function provideTakeAppSnapshot(fn: (reports: SnapshotReport[]) => void): Provider[];
|
|
29
29
|
export declare function triggerAndCollectInsertions(registry: InsertionSnapshotRegistry | null | undefined): Record<string, unknown> | undefined;
|
|
30
30
|
export declare function snapshotSelectProxy(proxy: unknown, rawState?: unknown): unknown;
|
|
31
|
-
//# sourceMappingURL=take-app-snapshot.d.ts.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { inject, InjectionToken, isSignal } from './host/craft-compat';
|
|
1
|
+
import { inject, InjectionToken, isSignal, } from './host/craft-compat.js';
|
|
2
2
|
import { debounceTime, Subject, tap } from 'rxjs';
|
|
3
|
-
import { provideFnWrapper } from './fn-wrapper';
|
|
4
|
-
import { isCraftControlFlow } from './craft-control-flow';
|
|
3
|
+
import { provideFnWrapper } from './fn-wrapper.js';
|
|
4
|
+
import { isCraftControlFlow } from './craft-control-flow.js';
|
|
5
|
+
import { CRAFT_RUNTIME_MODE } from './craft-runtime-mode.js';
|
|
5
6
|
export class AppSnapshotRegistry {
|
|
6
7
|
triggerSnapshot$ = new Subject();
|
|
7
8
|
allSnapShot$ = new Subject();
|
|
@@ -25,6 +26,9 @@ export function provideTakeAppSnapshot(fn) {
|
|
|
25
26
|
{
|
|
26
27
|
provide: TAKE_APP_SNAPSHOT,
|
|
27
28
|
useFactory: () => {
|
|
29
|
+
if (inject(CRAFT_RUNTIME_MODE) === 'production') {
|
|
30
|
+
return () => undefined;
|
|
31
|
+
}
|
|
28
32
|
const registry = inject(APP_SNAPSHOT_REGISTRY);
|
|
29
33
|
const pending = [];
|
|
30
34
|
registry.allSnapShot$
|
|
@@ -38,6 +42,9 @@ export function provideTakeAppSnapshot(fn) {
|
|
|
38
42
|
},
|
|
39
43
|
},
|
|
40
44
|
provideFnWrapper('Warning: dependency injection here is not type-safe and may fail at runtime', function* (factory, thisArg, args) {
|
|
45
|
+
if (inject(CRAFT_RUNTIME_MODE) === 'production') {
|
|
46
|
+
return yield* factory.apply(thisArg, args);
|
|
47
|
+
}
|
|
41
48
|
try {
|
|
42
49
|
return yield* factory.apply(thisArg, args);
|
|
43
50
|
}
|
|
@@ -90,4 +97,3 @@ export function snapshotSelectProxy(proxy, rawState) {
|
|
|
90
97
|
}
|
|
91
98
|
return result;
|
|
92
99
|
}
|
|
93
|
-
//# sourceMappingURL=take-app-snapshot.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken, type Injector, type Provider } from './host/craft-compat';
|
|
1
|
+
import { InjectionToken, type Injector, type Provider } from './host/craft-compat.js';
|
|
2
2
|
/** Metadata attached to one effective Craft template render. */
|
|
3
3
|
export type TemplateTraceContext = Readonly<{
|
|
4
4
|
/** The render unit that produced the children. */
|
|
@@ -34,4 +34,3 @@ export declare function provideTemplateTrace(wrapper: TemplateTraceWrapper): Pro
|
|
|
34
34
|
* injector preserves access to component-scoped providers.
|
|
35
35
|
*/
|
|
36
36
|
export declare function executeTemplateTrace<Children>(injector: Injector, context: TemplateTraceContext, next: () => Children): Children;
|
|
37
|
-
//# sourceMappingURL=template-trace.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, runInInjectionContext, } from './host/craft-compat';
|
|
1
|
+
import { InjectionToken, runInInjectionContext, } from './host/craft-compat.js';
|
|
2
|
+
import { isCraftDevelopment } from './craft-runtime-mode.js';
|
|
2
3
|
/** All template trace wrappers active in the current injector. */
|
|
3
4
|
export const CRAFT_TEMPLATE_TRACE = new InjectionToken('CRAFT_TEMPLATE_TRACE', {
|
|
4
5
|
providedIn: 'root',
|
|
@@ -21,6 +22,9 @@ export function provideTemplateTrace(wrapper) {
|
|
|
21
22
|
* injector preserves access to component-scoped providers.
|
|
22
23
|
*/
|
|
23
24
|
export function executeTemplateTrace(injector, context, next) {
|
|
25
|
+
if (!isCraftDevelopment(injector)) {
|
|
26
|
+
return next();
|
|
27
|
+
}
|
|
24
28
|
const wrappers = injector.get(CRAFT_TEMPLATE_TRACE, []);
|
|
25
29
|
if (wrappers.length === 0) {
|
|
26
30
|
return next();
|
|
@@ -34,4 +38,3 @@ export function executeTemplateTrace(injector, context, next) {
|
|
|
34
38
|
};
|
|
35
39
|
return runInInjectionContext(injector, () => run(0));
|
|
36
40
|
}
|
|
37
|
-
//# sourceMappingURL=template-trace.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DestroyRef, InjectionToken, type Provider } from './host/craft-compat';
|
|
1
|
+
import { DestroyRef, InjectionToken, type Provider } from './host/craft-compat.js';
|
|
2
2
|
export declare const TEMPORAL_AWAIT_REQUEST_MARKER: unique symbol;
|
|
3
3
|
export type TemporalTaskKind = 'sleep' | 'timeout' | 'schedule' | (string & {});
|
|
4
4
|
export type TemporalTaskStatus = 'pending' | 'running' | 'completed' | 'cancelled';
|
|
@@ -143,4 +143,3 @@ export declare class TemporalCancelledError extends Error {
|
|
|
143
143
|
constructor();
|
|
144
144
|
}
|
|
145
145
|
export {};
|
|
146
|
-
//# sourceMappingURL=temporal-runtime.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken, inject, } from './host/craft-compat';
|
|
1
|
+
import { InjectionToken, inject, } from './host/craft-compat.js';
|
|
2
2
|
export const TEMPORAL_AWAIT_REQUEST_MARKER = Symbol('temporal-await-request-marker');
|
|
3
3
|
export function createTemporalSleepRequest(delayMs, owner, signal) {
|
|
4
4
|
assertDelay(delayMs);
|
|
@@ -372,4 +372,3 @@ function compareTasks(left, right) {
|
|
|
372
372
|
return (leftSnapshot.dueAt - rightSnapshot.dueAt ||
|
|
373
373
|
leftSnapshot.id - rightSnapshot.id);
|
|
374
374
|
}
|
|
375
|
-
//# sourceMappingURL=temporal-runtime.js.map
|
package/src/lib/to-source.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Signal, ValueEqualityFn, WritableSignal } from './host/craft-compat';
|
|
2
|
-
import { IsUnknown } from './util/util.type';
|
|
3
|
-
import { ReadonlySource } from './util/source.type';
|
|
1
|
+
import { Signal, ValueEqualityFn, WritableSignal } from './host/craft-compat.js';
|
|
2
|
+
import { IsUnknown } from './util/util.type.js';
|
|
3
|
+
import { ReadonlySource } from './util/source.type.js';
|
|
4
4
|
/**
|
|
5
5
|
* Converts an Angular signal into a readonly source with lazy emission semantics.
|
|
6
6
|
*
|
|
@@ -332,4 +332,3 @@ export declare function toSource<SourceState, ComputedValue>(signalOrigin: Signa
|
|
|
332
332
|
equal?: ValueEqualityFn<NoInfer<SourceState> | undefined>;
|
|
333
333
|
debugName?: string;
|
|
334
334
|
}): ReadonlySource<IsUnknown<ComputedValue> extends true ? SourceState : ComputedValue>;
|
|
335
|
-
//# sourceMappingURL=to-source.d.ts.map
|
package/src/lib/to-source.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { linkedSignal, untracked, } from './host/craft-compat';
|
|
2
|
-
import { SourceBranded } from './util/util';
|
|
1
|
+
import { linkedSignal, untracked, } from './host/craft-compat.js';
|
|
2
|
+
import { SourceBranded } from './util/util.js';
|
|
3
3
|
/**
|
|
4
4
|
* Converts an Angular signal into a readonly source with lazy emission semantics.
|
|
5
5
|
*
|
|
@@ -356,4 +356,3 @@ export function toSource(signalOrigin, options) {
|
|
|
356
356
|
}),
|
|
357
357
|
}, SourceBranded);
|
|
358
358
|
}
|
|
359
|
-
//# sourceMappingURL=to-source.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ResourceSnapshot, ResourceStatus, Signal } from '../host/craft-compat';
|
|
2
|
-
import type { CraftSettledSignal } from '../craft-settled';
|
|
1
|
+
import type { ResourceSnapshot, ResourceStatus, Signal } from '../host/craft-compat.js';
|
|
2
|
+
import type { CraftSettledSignal } from '../craft-settled.js';
|
|
3
3
|
export type CraftResourceRefSpecificState<Value, Params> = {
|
|
4
4
|
paramSrc: Signal<Params | undefined>;
|
|
5
5
|
state: Signal<Value | undefined>;
|
|
@@ -26,4 +26,3 @@ export type CraftResourceRef<Value, Params, Source extends string = string, Exce
|
|
|
26
26
|
asReadonly(): Omit<CraftResourceRef<Value, Params, Source, Exceptions>, 'set' | 'update' | 'destroy'>;
|
|
27
27
|
readonly settledValue: CraftSettledSignal<Exclude<Value, undefined>, Source, Exceptions>;
|
|
28
28
|
} & CraftResourceRefSpecificState<Value, Params>;
|
|
29
|
-
//# sourceMappingURL=craft-resource-ref.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=craft-resource-ref.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResourceStatus } from '../host/craft-compat';
|
|
1
|
+
import type { ResourceStatus } from '../host/craft-compat.js';
|
|
2
2
|
/**
|
|
3
3
|
* The status a craft primitive (`query` / `mutation` / `asyncProcess`) exposes
|
|
4
4
|
* on its public façade. Mirrors Angular's {@link ResourceStatus} but replaces the
|
|
@@ -14,4 +14,3 @@ export type CraftResourceStatus = 'idle' | 'loading' | 'reloading' | 'resolved'
|
|
|
14
14
|
* throw, so that case does not occur).
|
|
15
15
|
*/
|
|
16
16
|
export declare function toCraftStatus(raw: ResourceStatus, hasException: boolean): CraftResourceStatus;
|
|
17
|
-
//# sourceMappingURL=craft-resource-status.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateEffectOptions, EffectCleanupRegisterFn, EffectRef } from '../host/craft-compat';
|
|
1
|
+
import { CreateEffectOptions, EffectCleanupRegisterFn, EffectRef } from '../host/craft-compat.js';
|
|
2
2
|
/**
|
|
3
3
|
* We want to have the Tuple in order to use the types in the function signature
|
|
4
4
|
*/
|
|
@@ -39,4 +39,3 @@ declare interface CreateExplicitEffectOptions extends CreateEffectOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
export declare function explicitEffect<Input extends readonly unknown[], Params = Input>(deps: readonly [...ExplicitEffectValues<Input>], fn: (deps: Params, onCleanup: EffectCleanupRegisterFn) => void, options?: CreateExplicitEffectOptions | undefined): EffectRef;
|
|
41
41
|
export {};
|
|
42
|
-
//# sourceMappingURL=explicit-effect.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { effect, untracked, } from '../host/craft-compat';
|
|
1
|
+
import { effect, untracked, } from '../host/craft-compat.js';
|
|
2
2
|
/**
|
|
3
3
|
* This explicit effect function will take the dependencies and the function to run when the dependencies change.
|
|
4
4
|
*
|
|
@@ -34,4 +34,3 @@ export function explicitEffect(deps, fn, options) {
|
|
|
34
34
|
});
|
|
35
35
|
}, options);
|
|
36
36
|
}
|
|
37
|
-
//# sourceMappingURL=explicit-effect.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Signal } from '../host/craft-compat';
|
|
2
|
-
import { FilterSource, RemoveIndexSignature } from './util.type';
|
|
1
|
+
import { Signal } from '../host/craft-compat.js';
|
|
2
|
+
import { FilterSource, RemoveIndexSignature } from './util.type.js';
|
|
3
3
|
export type ExtractSignalPropsAndMethods<State, StateKeysTuple, Acc extends {
|
|
4
4
|
props: {};
|
|
5
5
|
methods: Record<string, Function>;
|
|
@@ -17,4 +17,3 @@ export type ExtractSignalPropsAndMethods<State, StateKeysTuple, Acc extends {
|
|
|
17
17
|
props: Acc['props'];
|
|
18
18
|
methods: RemoveIndexSignature<Acc['methods']>;
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=extract-signal-props-and-methods.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=extract-signal-props-and-methods.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValueEqualityFn } from '../host/craft-compat';
|
|
1
|
+
import { ValueEqualityFn } from '../host/craft-compat.js';
|
|
2
2
|
/**
|
|
3
3
|
* Internal machinery that forces a method-based primitive (`query` / `mutation` /
|
|
4
4
|
* `asyncProcess`) to re-run its loader on every explicit call, even when the
|
|
@@ -42,4 +42,3 @@ export declare function unwrapMethodParams<P>(value: P | MethodParamsWrapper<P>)
|
|
|
42
42
|
*/
|
|
43
43
|
export declare function methodParamsWrapperEqual<P>(userEqual?: (a: P, b: P) => boolean): ValueEqualityFn<unknown>;
|
|
44
44
|
export {};
|
|
45
|
-
//# sourceMappingURL=method-trigger-nonce.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResourceRef, Signal } from '../host/craft-compat';
|
|
2
|
-
import { ResourceByIdRef } from '../resource-by-id';
|
|
1
|
+
import { ResourceRef, Signal } from '../host/craft-compat.js';
|
|
2
|
+
import { ResourceByIdRef } from '../resource-by-id.js';
|
|
3
3
|
export interface PersistedQuery {
|
|
4
4
|
key: string;
|
|
5
5
|
/** Optional per-insertion namespace; defaults to the persister namespace. */
|
|
@@ -34,4 +34,3 @@ export interface QueriesPersister {
|
|
|
34
34
|
clearAllQueriesById(): void;
|
|
35
35
|
clearAllCache(): void;
|
|
36
36
|
}
|
|
37
|
-
//# sourceMappingURL=persister.type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=persister.type.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ResourceLikeMutationRef, ResourceByIdLikeMutationRef } from '../mutation';
|
|
2
|
-
import { QueryDeclarativeEffect, ResourceExceptionConstraints } from '../query.core';
|
|
3
|
-
import { InternalType } from './types/util.type';
|
|
4
|
-
import { ResourceByIdLikeQueryRef, ResourceLikeQueryRef } from '../query';
|
|
1
|
+
import { ResourceLikeMutationRef, ResourceByIdLikeMutationRef } from '../mutation.js';
|
|
2
|
+
import { QueryDeclarativeEffect, ResourceExceptionConstraints } from '../query.core.js';
|
|
3
|
+
import { InternalType } from './types/util.type.js';
|
|
4
|
+
import { ResourceByIdLikeQueryRef, ResourceLikeQueryRef } from '../query.js';
|
|
5
5
|
export declare function reactOnMutationEffect<QueryResourceState, QueryResourceParams, QueryResourceArgsParams, QueryIsMethod extends boolean, QuerySourceParams, QueryGroupIdentifier, QueryInsertions, MutationResourceState, MutationResourceParams, MutationResourceArgsParams, MutationIsMethod, MutationSourceParams, MutationGroupIdentifier, MutationInsertions, MutationExceptions extends ResourceExceptionConstraints, QueryExceptions extends ResourceExceptionConstraints>({ queryTargeted, mutationTargeted, }: {
|
|
6
6
|
queryTargeted: ResourceLikeQueryRef<QueryResourceState, QueryResourceParams, QueryIsMethod, QueryResourceArgsParams, QuerySourceParams, QueryInsertions, QueryExceptions> | ResourceByIdLikeQueryRef<QueryResourceState, QueryResourceParams, QueryIsMethod, QueryResourceArgsParams, QuerySourceParams, QueryInsertions, QueryGroupIdentifier, QueryExceptions>;
|
|
7
7
|
mutationTargeted: ResourceLikeMutationRef<MutationResourceState, MutationResourceParams, MutationIsMethod, MutationResourceArgsParams, MutationSourceParams, MutationInsertions, MutationExceptions> | ResourceByIdLikeMutationRef<MutationResourceState, MutationResourceParams, MutationIsMethod, MutationResourceArgsParams, MutationSourceParams, MutationInsertions, MutationGroupIdentifier, MutationExceptions>;
|
|
@@ -12,5 +12,4 @@ export declare function reactOnMutationEffect<QueryResourceState, QueryResourceP
|
|
|
12
12
|
mutation: InternalType<NoInfer<MutationResourceState>, NoInfer<MutationResourceParams>, NoInfer<MutationResourceArgsParams>, [
|
|
13
13
|
unknown
|
|
14
14
|
] extends [MutationGroupIdentifier] ? false : true, NoInfer<MutationIsMethod>, NoInfer<MutationInsertions>, NoInfer<MutationGroupIdentifier>, NoInfer<MutationSourceParams>, NoInfer<MutationExceptions>>;
|
|
15
|
-
}>): import("
|
|
16
|
-
//# sourceMappingURL=react-on-mutation-effect.d.ts.map
|
|
15
|
+
}>): import("../...js").EffectRef;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Injector, effect, untracked, inject, computed, } from '../host/craft-compat';
|
|
2
|
-
import { craftLinkedSignal as linkedSignal } from '../host/craft-linked-signal';
|
|
3
|
-
import { setAllUpdatesFromMutationOnQueryValue, triggerQueryReloadOnMutationStatusChange, setAllPatchFromMutationOnQueryValue, } from '../query.core';
|
|
4
|
-
import { explicitNestedEffect } from './types/util';
|
|
1
|
+
import { Injector, effect, untracked, inject, computed, } from '../host/craft-compat.js';
|
|
2
|
+
import { craftLinkedSignal as linkedSignal } from '../host/craft-linked-signal.js';
|
|
3
|
+
import { setAllUpdatesFromMutationOnQueryValue, triggerQueryReloadOnMutationStatusChange, setAllPatchFromMutationOnQueryValue, } from '../query.core.js';
|
|
4
|
+
import { explicitNestedEffect } from './types/util.js';
|
|
5
5
|
// todo improve internal function types
|
|
6
6
|
export function reactOnMutationEffect({ queryTargeted, mutationTargeted, }, mutationEffectOptions) {
|
|
7
7
|
const _injector = inject(Injector);
|
|
@@ -145,4 +145,3 @@ export function reactOnMutationEffect({ queryTargeted, mutationTargeted, }, muta
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
//# sourceMappingURL=react-on-mutation-effect.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Signal } from '../host/craft-compat';
|
|
2
|
-
import { CraftResourceRef } from './craft-resource-ref';
|
|
1
|
+
import { Signal } from '../host/craft-compat.js';
|
|
2
|
+
import { CraftResourceRef } from './craft-resource-ref.js';
|
|
3
3
|
export type resourceByIdChangesTrackerResult<GroupIdentifier extends string> = {
|
|
4
4
|
hasChange: Signal<boolean>;
|
|
5
5
|
ids: Signal<GroupIdentifier[]>;
|
|
@@ -24,4 +24,3 @@ export type resourceByIdChangesTrackerResult<GroupIdentifier extends string> = {
|
|
|
24
24
|
* @returns An object with signals for different change types
|
|
25
25
|
*/
|
|
26
26
|
export declare function resourceByIdChangesTracker<GroupIdentifier extends string, State, ResourceParams>(resourceByIdSignal: Signal<Partial<Record<GroupIdentifier, CraftResourceRef<State, ResourceParams>>>>): resourceByIdChangesTrackerResult<GroupIdentifier>;
|
|
27
|
-
//# sourceMappingURL=resource-by-id-changes-tracker.util.d.ts.map
|