@craft-ts/core 0.7.0-beta.13 → 0.7.0-beta.15
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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { assertInInjectionContext, DestroyRef, inject, Injector, runInInjectionContext, } from './host/craft-compat';
|
|
2
|
-
import { takeUntilDestroyed } from './host/craft-compat';
|
|
3
|
-
import { craftComputed as createCraftComputed } from './host/craft-signal';
|
|
4
|
-
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service';
|
|
5
|
-
import { isGeneratorFunction, runCraftGenerator, } from './craft-generator-runtime';
|
|
6
|
-
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot';
|
|
7
|
-
import { createYieldableReactiveValue, REACTIVE_DEPENDENCIES, ɵactiveReactiveReader, } from './reactive-read';
|
|
1
|
+
import { assertInInjectionContext, DestroyRef, inject, Injector, runInInjectionContext, } from './host/craft-compat.js';
|
|
2
|
+
import { takeUntilDestroyed } from './host/craft-compat.js';
|
|
3
|
+
import { craftComputed as createCraftComputed } from './host/craft-signal.js';
|
|
4
|
+
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service.js';
|
|
5
|
+
import { isGeneratorFunction, runCraftGenerator, } from './craft-generator-runtime.js';
|
|
6
|
+
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot.js';
|
|
7
|
+
import { createYieldableReactiveValue, REACTIVE_DEPENDENCIES, ɵactiveReactiveReader, } from './reactive-read.js';
|
|
8
8
|
const createComputedWithOptions = createCraftComputed;
|
|
9
9
|
export function craftComputed(nameOrComputation, hostOrComputation, factoryOrOptions, maybeOptions) {
|
|
10
10
|
const hasName = typeof nameOrComputation === 'string';
|
|
@@ -78,4 +78,3 @@ export function craftComputed(nameOrComputation, hostOrComputation, factoryOrOpt
|
|
|
78
78
|
path: name,
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
//# sourceMappingURL=craft-computed.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isCraftGenShortCircuit } from './craft-gen';
|
|
2
|
-
import { isCraftNotSettled } from './craft-settled';
|
|
1
|
+
import { isCraftGenShortCircuit } from './craft-gen.js';
|
|
2
|
+
import { isCraftNotSettled } from './craft-settled.js';
|
|
3
3
|
/**
|
|
4
4
|
* Returns whether `value` is an internal CraftTS control-flow throw.
|
|
5
5
|
*
|
|
@@ -15,4 +15,3 @@ import { isCraftNotSettled } from './craft-settled';
|
|
|
15
15
|
export function isCraftControlFlow(value) {
|
|
16
16
|
return isCraftGenShortCircuit(value) || isCraftNotSettled(value);
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=craft-control-flow.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type CreateEffectOptions, type EffectCleanupRegisterFn, type EffectRef } from './host/craft-compat';
|
|
2
|
-
import type { SERVICE_HELPER_DEPENDENCIES, ServiceDependencyMapFromYielded } from './craft-service';
|
|
1
|
+
import { type CreateEffectOptions, type EffectCleanupRegisterFn, type EffectRef } from './host/craft-compat.js';
|
|
2
|
+
import type { SERVICE_HELPER_DEPENDENCIES, ServiceDependencyMapFromYielded } from './craft-service.js';
|
|
3
3
|
type CraftEffectFn = (onCleanup: EffectCleanupRegisterFn) => void;
|
|
4
4
|
type CraftEffectGenerator<This, Yielded> = (this: This) => Generator<Yielded, CraftEffectFn, unknown>;
|
|
5
5
|
type TrackedCraftEffect<E, Yielded> = E & {
|
|
@@ -10,4 +10,3 @@ export declare function craftEffect<Name extends string, Yielded>(name: Name, fa
|
|
|
10
10
|
export declare function craftEffect<Name extends string, This>(name: Name, host: This, effectFn: (this: This, onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions): EffectRef;
|
|
11
11
|
export declare function craftEffect<Name extends string>(name: Name, effectFn: CraftEffectFn, options?: CreateEffectOptions): EffectRef;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=craft-effect.d.ts.map
|
package/src/lib/craft-effect.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { assertInInjectionContext, DestroyRef, effect, inject, Injector, runInInjectionContext, signal, untracked, } from './host/craft-compat';
|
|
2
|
-
import { takeUntilDestroyed } from './host/craft-compat';
|
|
3
|
-
import { ɵcraftInjectorFromHost } from './host/craft-injector-host';
|
|
4
|
-
import { craftWatch } from './host/craft-signal';
|
|
5
|
-
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service';
|
|
6
|
-
import { isGeneratorFunction, runCraftGenerator, } from './craft-generator-runtime';
|
|
7
|
-
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot';
|
|
1
|
+
import { assertInInjectionContext, DestroyRef, effect, inject, Injector, runInInjectionContext, signal, untracked, } from './host/craft-compat.js';
|
|
2
|
+
import { takeUntilDestroyed } from './host/craft-compat.js';
|
|
3
|
+
import { ɵcraftInjectorFromHost } from './host/craft-injector-host.js';
|
|
4
|
+
import { craftWatch } from './host/craft-signal.js';
|
|
5
|
+
import { ɵcreateHostTaggedInjector, ɵHOST_TAG_LIST } from './craft-service.js';
|
|
6
|
+
import { isGeneratorFunction, runCraftGenerator, } from './craft-generator-runtime.js';
|
|
7
|
+
import { APP_SNAPSHOT_REGISTRY } from './take-app-snapshot.js';
|
|
8
8
|
export function craftEffect(name, hostOrFn, fnOrOptions, maybeOptions) {
|
|
9
9
|
// The host form is recognized by its 3rd argument being the factory —
|
|
10
10
|
// `options` is never a function.
|
|
@@ -90,4 +90,3 @@ export function craftEffect(name, hostOrFn, fnOrOptions, maybeOptions) {
|
|
|
90
90
|
}
|
|
91
91
|
return ref;
|
|
92
92
|
}
|
|
93
|
-
//# sourceMappingURL=craft-effect.js.map
|
|
@@ -37,4 +37,3 @@ export type InsertMetaInCraftExceptionIfExists<Exception, Scope extends string |
|
|
|
37
37
|
}, Payload> : Exception;
|
|
38
38
|
export type ExtractCodeFromCraftResultUnion<T> = T extends CraftExceptionResult<infer E, any> ? E['_tag'] : never;
|
|
39
39
|
export type ExcludeByCode<T, C> = T extends CraftExceptionResult<infer E, any> ? E['_tag'] extends C ? never : T : never;
|
|
40
|
-
//# sourceMappingURL=craft-exception.d.ts.map
|
package/src/lib/craft-gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyCraftException, type ExtractCraftException, type StripCraftException } from './craft-exception';
|
|
1
|
+
import { type AnyCraftException, type ExtractCraftException, type StripCraftException } from './craft-exception.js';
|
|
2
2
|
declare const CRAFT_GEN_EXCEPTION_MARKER: unique symbol;
|
|
3
3
|
declare const CRAFT_GEN_SHORT_CIRCUIT: unique symbol;
|
|
4
4
|
declare const CRAFT_PROGRAM_RECREATE: unique symbol;
|
|
@@ -120,4 +120,3 @@ export declare function ɵcreateCraftProgram(makeIterator: ProgramFactory): Runt
|
|
|
120
120
|
*/
|
|
121
121
|
export declare function craftGen<GenFn extends AnyGeneratorFactory>(generatorFn: GenFn): CraftGenInvoker<GeneratorFactoryArgs<GenFn>, GenFn>;
|
|
122
122
|
export {};
|
|
123
|
-
//# sourceMappingURL=craft-gen.d.ts.map
|
package/src/lib/craft-gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isCraftException, } from './craft-exception';
|
|
2
|
-
import { isGenerator } from './craft-generator-runtime';
|
|
1
|
+
import { isCraftException, } from './craft-exception.js';
|
|
2
|
+
import { isGenerator } from './craft-generator-runtime.js';
|
|
3
3
|
const CRAFT_GEN_EXCEPTION_MARKER = Symbol('craft-gen-exception-marker');
|
|
4
4
|
const CRAFT_GEN_SHORT_CIRCUIT = Symbol('craft-gen-short-circuit');
|
|
5
5
|
const CRAFT_PROGRAM_RECREATE = Symbol('craft-program-recreate');
|
|
@@ -87,4 +87,3 @@ export function craftGen(generatorFn) {
|
|
|
87
87
|
});
|
|
88
88
|
return invoker;
|
|
89
89
|
}
|
|
90
|
-
//# sourceMappingURL=craft-gen.js.map
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
import { Injector, InjectionToken, type Provider } from './host/craft-compat';
|
|
1
|
+
import { Injector, InjectionToken, type Provider } from './host/craft-compat.js';
|
|
2
2
|
import type { Observable } from 'rxjs';
|
|
3
|
-
import type { ConcreteServiceScope } from './craft-service.shared';
|
|
4
|
-
import { type RuntimeTemporalAwaitRequest } from './temporal-runtime';
|
|
5
|
-
import { type ReactiveReadIdentity } from './reactive-read';
|
|
3
|
+
import type { ConcreteServiceScope } from './craft-service.shared.js';
|
|
4
|
+
import { type RuntimeTemporalAwaitRequest } from './temporal-runtime.js';
|
|
5
|
+
import { type ReactiveReadIdentity } from './reactive-read.js';
|
|
6
6
|
export declare const SERVICE_YIELD_REQUEST_MARKER: unique symbol;
|
|
7
7
|
export declare const SERVICE_DEPENDENCY_ACCESS_MARKER: unique symbol;
|
|
8
8
|
export declare const SERVICE_APP_START_REQUEST_MARKER: unique symbol;
|
|
9
9
|
export declare const SERVICE_TRACKED_DEPS_REQUEST_MARKER: unique symbol;
|
|
10
10
|
export declare const GUARD_AWAIT_REQUEST_MARKER: unique symbol;
|
|
11
|
+
/** The context a synchronous bridge needs to resolve a foreign yield. */
|
|
12
|
+
export type ForeignSyncYieldContext = {
|
|
13
|
+
/** The injector of the host that yielded — a bridge resolves its runtime from it. */
|
|
14
|
+
readonly injector: Injector;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Returns `{ handled: true, value }` for yields it recognises and resolved,
|
|
18
|
+
* `undefined` for everything else (which then falls through to the usual
|
|
19
|
+
* invalid-yield error). A bridge that recognises a yield but cannot honour it
|
|
20
|
+
* synchronously must throw, not return: there is no suspension available here.
|
|
21
|
+
*/
|
|
22
|
+
export type ForeignSyncYieldBridge = (yielded: unknown, context: ForeignSyncYieldContext) => {
|
|
23
|
+
handled: true;
|
|
24
|
+
value: unknown;
|
|
25
|
+
} | undefined;
|
|
26
|
+
/** Registers the synchronous bridge; returns a disposer restoring the previous one. */
|
|
27
|
+
export declare function setForeignSyncYieldBridge(bridge: ForeignSyncYieldBridge): () => void;
|
|
11
28
|
export type ServiceYieldContext = Readonly<{
|
|
12
29
|
name: string;
|
|
13
30
|
providedIn: ConcreteServiceScope;
|
|
@@ -107,4 +124,3 @@ export declare function resolveCraftGeneratorYield(yielded: unknown, injector: I
|
|
|
107
124
|
};
|
|
108
125
|
export declare function isServiceAppStartRequest(value: unknown): value is RuntimeServiceAppStartRequest;
|
|
109
126
|
export {};
|
|
110
|
-
//# sourceMappingURL=craft-generator-runtime.d.ts.map
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import { InjectionToken } from './host/craft-compat';
|
|
2
|
-
import { injectFnWrapper } from './fn-wrapper';
|
|
3
|
-
import { isTemporalAwaitRequest, } from './temporal-runtime';
|
|
4
|
-
import { isReactiveReadRequest, REACTIVE_READ_OBSERVERS, ɵwithActiveReactiveReader, } from './reactive-read';
|
|
5
|
-
import { ɵcraftInjectorFromHost } from './host/craft-injector-host';
|
|
1
|
+
import { InjectionToken } from './host/craft-compat.js';
|
|
2
|
+
import { injectFnWrapper } from './fn-wrapper.js';
|
|
3
|
+
import { isTemporalAwaitRequest, } from './temporal-runtime.js';
|
|
4
|
+
import { isReactiveReadRequest, REACTIVE_READ_OBSERVERS, ɵwithActiveReactiveReader, } from './reactive-read.js';
|
|
5
|
+
import { ɵcraftInjectorFromHost } from './host/craft-injector-host.js';
|
|
6
6
|
export const SERVICE_YIELD_REQUEST_MARKER = Symbol('service-yield-request-marker');
|
|
7
7
|
export const SERVICE_DEPENDENCY_ACCESS_MARKER = Symbol('service-dependency-access-marker');
|
|
8
8
|
export const SERVICE_APP_START_REQUEST_MARKER = Symbol('service-app-start-request-marker');
|
|
9
9
|
export const SERVICE_TRACKED_DEPS_REQUEST_MARKER = Symbol('service-tracked-deps-request-marker');
|
|
10
10
|
export const GUARD_AWAIT_REQUEST_MARKER = Symbol('guard-await-request-marker');
|
|
11
|
+
let foreignSyncYieldBridge;
|
|
12
|
+
/** Registers the synchronous bridge; returns a disposer restoring the previous one. */
|
|
13
|
+
export function setForeignSyncYieldBridge(bridge) {
|
|
14
|
+
const previous = foreignSyncYieldBridge;
|
|
15
|
+
foreignSyncYieldBridge = bridge;
|
|
16
|
+
return () => {
|
|
17
|
+
foreignSyncYieldBridge = previous;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function resolveForeignSyncYield(yielded, injector) {
|
|
21
|
+
return foreignSyncYieldBridge?.(yielded, { injector });
|
|
22
|
+
}
|
|
11
23
|
export const SERVICE_YIELD_WRAPPER = new InjectionToken('SERVICE_YIELD_WRAPPER', {
|
|
12
24
|
providedIn: 'root',
|
|
13
25
|
factory: () => [],
|
|
@@ -68,6 +80,13 @@ export function runCraftGenerator({ iterator, injector: injectorInput, hostScope
|
|
|
68
80
|
if (guardAwaitNotSupportedErrorMessage && isGuardAwaitRequest(yielded)) {
|
|
69
81
|
throw new Error(guardAwaitNotSupportedErrorMessage);
|
|
70
82
|
}
|
|
83
|
+
// Last chance before the invalid-yield error: a foreign yield a bridge can
|
|
84
|
+
// resolve without suspending (see `setForeignSyncYieldBridge`).
|
|
85
|
+
const bridged = resolveForeignSyncYield(yielded, injector);
|
|
86
|
+
if (bridged) {
|
|
87
|
+
current = iterator.next(bridged.value);
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
71
90
|
throw new Error(invalidYieldErrorMessage);
|
|
72
91
|
}
|
|
73
92
|
return {
|
|
@@ -135,6 +154,10 @@ export function resolveCraftGeneratorYield(yielded, injector, hostScope) {
|
|
|
135
154
|
if (isServiceTrackedDepsRequest(yielded)) {
|
|
136
155
|
return { handled: true, value: undefined };
|
|
137
156
|
}
|
|
157
|
+
const bridged = resolveForeignSyncYield(yielded, injector);
|
|
158
|
+
if (bridged) {
|
|
159
|
+
return bridged;
|
|
160
|
+
}
|
|
138
161
|
return { handled: false };
|
|
139
162
|
}
|
|
140
163
|
function resolveServiceYield(request, injector, hostScope) {
|
|
@@ -188,4 +211,3 @@ function isServiceTrackedDepsRequest(value) {
|
|
|
188
211
|
value !== null &&
|
|
189
212
|
SERVICE_TRACKED_DEPS_REQUEST_MARKER in value);
|
|
190
213
|
}
|
|
191
|
-
//# sourceMappingURL=craft-generator-runtime.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Injector } from './host/craft-compat';
|
|
2
|
-
import type { CraftUrlTree } from './craft-router';
|
|
1
|
+
import { Injector } from './host/craft-compat.js';
|
|
2
|
+
import type { CraftUrlTree } from './craft-router.js';
|
|
3
3
|
type CraftRouteRouterLike = {
|
|
4
4
|
readonly url?: string;
|
|
5
5
|
createUrlTree: (...args: any[]) => unknown;
|
|
6
6
|
navigate: (...args: any[]) => Promise<boolean>;
|
|
7
7
|
navigateByUrl: (...args: any[]) => Promise<boolean>;
|
|
8
8
|
};
|
|
9
|
-
import { type AnyCraftException } from './craft-exception';
|
|
10
|
-
import { type CraftExceptionComponentInput, type CraftExceptionHandlerContext, type CraftExceptionOutcome, type CraftRoutePhase } from './craft-route-exceptions';
|
|
9
|
+
import { type AnyCraftException } from './craft-exception.js';
|
|
10
|
+
import { type CraftExceptionComponentInput, type CraftExceptionHandlerContext, type CraftExceptionOutcome, type CraftRoutePhase } from './craft-route-exceptions.js';
|
|
11
11
|
/**
|
|
12
12
|
* The result of a synchronous guard re-evaluation (reactive "live" guards):
|
|
13
13
|
* - `valid` — the guard passed without producing an exception;
|
|
@@ -67,4 +67,3 @@ export interface CraftRouteChainSteps {
|
|
|
67
67
|
}
|
|
68
68
|
export declare function runCraftRouteChainAsync(steps: CraftRouteChainSteps, injector: Injector, router: CraftRouteRouterLike, handleExceptions: CraftRouteExceptionHandlerMap, phase?: CraftRoutePhase): Promise<RouteChainOutcome>;
|
|
69
69
|
export {};
|
|
70
|
-
//# sourceMappingURL=craft-guard-runtime.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { runInInjectionContext } from './host/craft-compat';
|
|
2
|
-
import { isCraftException } from './craft-exception';
|
|
3
|
-
import { craftExceptionOutcomeApi, } from './craft-route-exceptions';
|
|
4
|
-
import { isGenerator } from './craft-generator-runtime';
|
|
5
|
-
import { driveCraftProgramAsync, pumpCraftProgramSync, } from './craft-program-runtime';
|
|
6
|
-
import { executeCraftRouterTrace } from './craft-router-trace';
|
|
1
|
+
import { runInInjectionContext } from './host/craft-compat.js';
|
|
2
|
+
import { isCraftException } from './craft-exception.js';
|
|
3
|
+
import { craftExceptionOutcomeApi, } from './craft-route-exceptions.js';
|
|
4
|
+
import { isGenerator } from './craft-generator-runtime.js';
|
|
5
|
+
import { driveCraftProgramAsync, pumpCraftProgramSync, } from './craft-program-runtime.js';
|
|
6
|
+
import { executeCraftRouterTrace } from './craft-router-trace.js';
|
|
7
7
|
const GUARD_INVALID_YIELD_ERROR_MESSAGE = 'craft route guards can only yield craftService dependencies, exposed dependency helpers, or an craftUntilSettled/craftUntilDefined await request.';
|
|
8
8
|
const GUARD_PUMP_OPTIONS = {
|
|
9
9
|
invalidYieldErrorMessage: GUARD_INVALID_YIELD_ERROR_MESSAGE,
|
|
@@ -192,4 +192,3 @@ export function runCraftRouteChainAsync(steps, injector, router, handleException
|
|
|
192
192
|
url: router.url ?? '',
|
|
193
193
|
}, () => runCraftRouteChainAsyncInternal(steps, injector, router, handleExceptions, phase));
|
|
194
194
|
}
|
|
195
|
-
//# sourceMappingURL=craft-guard-runtime.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CraftSchema } from './schema-validation';
|
|
1
|
+
import type { CraftSchema } from './schema-validation.js';
|
|
2
2
|
export declare const CRAFT_HANDSHAKE: unique symbol;
|
|
3
3
|
/**
|
|
4
4
|
* Un nom sur lequel les deux côtés de la frontière se mettent d'accord.
|
|
@@ -32,4 +32,3 @@ export declare function isCraftHandshake(value: unknown): value is AnyCraftHands
|
|
|
32
32
|
/** Le nom d'un handshake porté par une valeur, quand il y en a un. */
|
|
33
33
|
export declare function craftHandshakeName(value: unknown): string | undefined;
|
|
34
34
|
export declare function assertHandshakeName(name: string): void;
|
|
35
|
-
//# sourceMappingURL=craft-handshake.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AnyCraftException, type CraftExceptionResult } from './craft-exception';
|
|
2
|
-
import { type ServiceTrackingMetadata, type ServiceYieldRequest } from './craft-service';
|
|
3
|
-
import type { CraftDecoder } from './craft-codec';
|
|
1
|
+
import { type AnyCraftException, type CraftExceptionResult } from './craft-exception.js';
|
|
2
|
+
import { type ServiceTrackingMetadata, type ServiceYieldRequest } from './craft-service.js';
|
|
3
|
+
import type { CraftDecoder } from './craft-codec.js';
|
|
4
4
|
declare const CRAFT_HTTP_CLIENT_SUCCESS_MARKER: unique symbol;
|
|
5
5
|
declare const CRAFT_HTTP_CLIENT_EXCEPTIONS_MARKER: unique symbol;
|
|
6
6
|
declare const CRAFT_HTTP_CLIENT_EXCEPTION_TYPE_DEPENDENCIES_MARKER: unique symbol;
|
|
@@ -233,4 +233,3 @@ export declare function response<Success>(): CraftHttpClientSuccessToken<Success
|
|
|
233
233
|
export declare function response<Success>(decoder: CraftDecoder<Success>): CraftHttpClientDecodedSuccessToken<Success>;
|
|
234
234
|
export declare function getCraftHttpRequestExceptionDependencies(request: AnyCraftHttpRequest): CraftHttpClientExceptionDependencies;
|
|
235
235
|
export {};
|
|
236
|
-
//# sourceMappingURL=craft-http-client.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { craftException, } from './craft-exception';
|
|
2
|
-
import { SERVICE_RUNTIME_OVERRIDES, SERVICE_YIELD_REQUEST_MARKER, } from './craft-service';
|
|
3
|
-
import { executeCraftHttpTrace } from './craft-http-trace';
|
|
4
|
-
import { craftFetchTransport, ɵgetCraftHttpResponseMetadata, } from './host/craft-http';
|
|
1
|
+
import { craftException, } from './craft-exception.js';
|
|
2
|
+
import { SERVICE_RUNTIME_OVERRIDES, SERVICE_YIELD_REQUEST_MARKER, } from './craft-service.js';
|
|
3
|
+
import { executeCraftHttpTrace } from './craft-http-trace.js';
|
|
4
|
+
import { craftFetchTransport, ɵgetCraftHttpResponseMetadata, } from './host/craft-http.js';
|
|
5
5
|
const CRAFT_HTTP_CLIENT_EXCEPTION_DEPENDENCIES_MARKER = Symbol('craft-http-client-exception-dependencies-marker');
|
|
6
6
|
const CRAFT_HTTP_CLIENT_EXCEPTION_DEPENDENCY_REQUEST_MARKER = Symbol('craft-http-client-exception-dependency-request-marker');
|
|
7
7
|
const craftHttpClientBuilderHelpers = {
|
|
@@ -434,4 +434,3 @@ function extractDecodeIssues(error) {
|
|
|
434
434
|
}
|
|
435
435
|
return undefined;
|
|
436
436
|
}
|
|
437
|
-
//# sourceMappingURL=craft-http-client.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectionToken, Injector, type Provider } from './host/craft-compat';
|
|
1
|
+
import { InjectionToken, Injector, type Provider } from './host/craft-compat.js';
|
|
2
2
|
export type CraftHttpTraceContext = Readonly<{
|
|
3
3
|
method: string;
|
|
4
4
|
url: string;
|
|
@@ -9,4 +9,3 @@ export type CraftHttpTraceWrapper = (context: CraftHttpTraceContext, next: () =>
|
|
|
9
9
|
export declare const CRAFT_HTTP_TRACE: InjectionToken<readonly CraftHttpTraceWrapper[]>;
|
|
10
10
|
export declare function provideCraftHttpTrace(wrapper: CraftHttpTraceWrapper): Provider;
|
|
11
11
|
export declare function executeCraftHttpTrace<Value>(injector: Injector, context: CraftHttpTraceContext, next: () => Promise<Value>): Promise<Value>;
|
|
12
|
-
//# sourceMappingURL=craft-http-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
|
export const CRAFT_HTTP_TRACE = new InjectionToken('CRAFT_HTTP_TRACE', {
|
|
3
4
|
providedIn: 'root',
|
|
4
5
|
factory: () => [],
|
|
@@ -12,6 +13,9 @@ export function provideCraftHttpTrace(wrapper) {
|
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
export function executeCraftHttpTrace(injector, context, next) {
|
|
16
|
+
if (!isCraftDevelopment(injector)) {
|
|
17
|
+
return next();
|
|
18
|
+
}
|
|
15
19
|
const wrappers = injector.get(CRAFT_HTTP_TRACE, []);
|
|
16
20
|
if (wrappers.length === 0) {
|
|
17
21
|
return next();
|
|
@@ -25,4 +29,3 @@ export function executeCraftHttpTrace(injector, context, next) {
|
|
|
25
29
|
};
|
|
26
30
|
return runInInjectionContext(injector, () => run(0));
|
|
27
31
|
}
|
|
28
|
-
//# sourceMappingURL=craft-http-trace.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Coordinates async work that must finish before SSR DOM cleanup. */
|
|
2
|
+
export type CraftHydrationRuntime = Readonly<{
|
|
3
|
+
track(source: string, work: PromiseLike<unknown>): void;
|
|
4
|
+
hasPending(): boolean;
|
|
5
|
+
whenSettled(): Promise<void>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const CRAFT_HYDRATION_RUNTIME: import("..").CraftToken<Readonly<{
|
|
8
|
+
track(source: string, work: PromiseLike<unknown>): void;
|
|
9
|
+
hasPending(): boolean;
|
|
10
|
+
whenSettled(): Promise<void>;
|
|
11
|
+
}>>;
|
package/src/lib/craft-lazy.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type CraftGenInvocation } from './craft-gen';
|
|
2
|
-
import { type CraftLazyLoadHelpers } from './craft-load-retry';
|
|
1
|
+
import { type CraftGenInvocation } from './craft-gen.js';
|
|
2
|
+
import { type CraftLazyLoadHelpers } from './craft-load-retry.js';
|
|
3
3
|
export declare const CRAFT_LAZY_LOAD_ERROR_CODE: "CRAFT_LAZY_LOAD_ERROR";
|
|
4
4
|
export interface CraftLazyLoadErrorPayload {
|
|
5
5
|
readonly cause: unknown;
|
|
6
6
|
}
|
|
7
7
|
/** Builds the `craftException` `craftLazy` returns when an import finally fails. */
|
|
8
|
-
export declare function createCraftLazyLoadError(cause: unknown): import("./craft-exception").CraftExceptionResult<{
|
|
8
|
+
export declare function createCraftLazyLoadError(cause: unknown): import("./craft-exception.js").CraftExceptionResult<{
|
|
9
9
|
_tag: "CRAFT_LAZY_LOAD_ERROR";
|
|
10
10
|
scope: "CraftLazy";
|
|
11
11
|
identifier?: undefined;
|
|
@@ -39,4 +39,3 @@ export type CraftLazyLoadError = ReturnType<typeof createCraftLazyLoadError>;
|
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
41
|
export declare function craftLazy<T>(load: (helpers: CraftLazyLoadHelpers) => Promise<T>): CraftGenInvocation<never, T | CraftLazyLoadError>;
|
|
42
|
-
//# sourceMappingURL=craft-lazy.d.ts.map
|
package/src/lib/craft-lazy.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { inject } from './host/craft-compat';
|
|
2
|
-
import { craftException } from './craft-exception';
|
|
3
|
-
import { craftGen } from './craft-gen';
|
|
4
|
-
import { GUARD_AWAIT_REQUEST_MARKER, } from './craft-generator-runtime';
|
|
5
|
-
import { createRetryLazyLoadHelpers, CRAFT_DYNAMIC_IMPORT, CRAFT_LAZY_LOAD_RETRY, INITIAL_LAZY_LOAD_HELPERS, } from './craft-load-retry';
|
|
1
|
+
import { inject } from './host/craft-compat.js';
|
|
2
|
+
import { craftException } from './craft-exception.js';
|
|
3
|
+
import { craftGen } from './craft-gen.js';
|
|
4
|
+
import { GUARD_AWAIT_REQUEST_MARKER, } from './craft-generator-runtime.js';
|
|
5
|
+
import { createRetryLazyLoadHelpers, CRAFT_DYNAMIC_IMPORT, CRAFT_LAZY_LOAD_RETRY, INITIAL_LAZY_LOAD_HELPERS, } from './craft-load-retry.js';
|
|
6
6
|
export const CRAFT_LAZY_LOAD_ERROR_CODE = 'CRAFT_LAZY_LOAD_ERROR';
|
|
7
7
|
/** Builds the `craftException` `craftLazy` returns when an import finally fails. */
|
|
8
8
|
export function createCraftLazyLoadError(cause) {
|
|
@@ -80,4 +80,3 @@ export function craftLazy(load) {
|
|
|
80
80
|
});
|
|
81
81
|
return invoke();
|
|
82
82
|
}
|
|
83
|
-
//# sourceMappingURL=craft-lazy.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, type Type } from './host/craft-compat';
|
|
2
|
-
import { type CraftTemporalRuntime } from './temporal-runtime';
|
|
1
|
+
import { InjectionToken, type Type } from './host/craft-compat.js';
|
|
2
|
+
import { type CraftTemporalRuntime } from './temporal-runtime.js';
|
|
3
3
|
/**
|
|
4
4
|
* The `{ withRetry }` helpers handed to a lazy loader callback. `withRetry`
|
|
5
5
|
* wraps a dynamic `import(...)` so a chunk whose hashed URL went stale after a
|
|
@@ -73,4 +73,3 @@ export declare function createRetryLazyLoadHelpers(dynamicImport: (url: string)
|
|
|
73
73
|
* URL share a single in-flight import.
|
|
74
74
|
*/
|
|
75
75
|
export declare function retryFailedDynamicImport<T>(moduleImport: Promise<T>, dynamicImport: (url: string) => Promise<unknown>, retryParam?: string): Promise<T>;
|
|
76
|
-
//# sourceMappingURL=craft-load-retry.d.ts.map
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { inject, InjectionToken } from './host/craft-compat.js';
|
|
10
|
+
import { CRAFT_TEMPORAL_RUNTIME, RealCraftTemporalRuntime, } from './temporal-runtime.js';
|
|
3
11
|
/**
|
|
4
12
|
* The injectable dynamic `import(url)`. Overridable in tests to observe the
|
|
5
13
|
* cache-busting URL {@link retryFailedDynamicImport} computes.
|
|
6
14
|
*/
|
|
7
15
|
export const CRAFT_DYNAMIC_IMPORT = new InjectionToken('CRAFT_DYNAMIC_IMPORT', {
|
|
8
16
|
providedIn: 'root',
|
|
9
|
-
factory: () => (url) => import(/* @vite-ignore */ url),
|
|
17
|
+
factory: () => (url) => import(__rewriteRelativeImportExtension(/* @vite-ignore */ url)),
|
|
10
18
|
});
|
|
11
19
|
export const DEFAULT_CRAFT_LOAD_RETRY_OPTIONS = {
|
|
12
20
|
attempts: 1,
|
|
@@ -157,4 +165,3 @@ function failedDynamicImportUrl(error) {
|
|
|
157
165
|
return undefined;
|
|
158
166
|
}
|
|
159
167
|
}
|
|
160
|
-
//# sourceMappingURL=craft-load-retry.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StorageService } from './browser-boundaries';
|
|
2
|
-
import type { CraftUnique } from './craft-unique';
|
|
3
|
-
import type { GetServiceYields } from './craft-service';
|
|
4
|
-
import { type CraftPrimitiveSnapshot } from './craft-primitive-registry';
|
|
5
|
-
import { type YieldableReactiveValue } from './reactive-read';
|
|
6
|
-
import type { CraftMachineControls, CraftMachineInsertionContext } from './craft-state-machine';
|
|
1
|
+
import { StorageService } from './browser-boundaries.js';
|
|
2
|
+
import type { CraftUnique } from './craft-unique.js';
|
|
3
|
+
import type { GetServiceYields } from './craft-service.js';
|
|
4
|
+
import { type CraftPrimitiveSnapshot } from './craft-primitive-registry.js';
|
|
5
|
+
import { type YieldableReactiveValue } from './reactive-read.js';
|
|
6
|
+
import type { CraftMachineControls, CraftMachineInsertionContext } from './craft-state-machine.js';
|
|
7
7
|
/**
|
|
8
8
|
* One recorded moment of a machine: the transition that produced it, and the
|
|
9
9
|
* value of every primitive the machine owns at that point.
|
|
@@ -142,4 +142,3 @@ type BackNavigationOutput = {
|
|
|
142
142
|
*/
|
|
143
143
|
export declare function withBackNavigation(): CraftHistoryFeature<BackNavigationOutput>;
|
|
144
144
|
export {};
|
|
145
|
-
//# sourceMappingURL=craft-machine-history.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { inject } from './host/craft-compat';
|
|
2
|
-
import { craftComputed as createCraftComputed, craftSignal } from './host/craft-signal';
|
|
3
|
-
import { StorageService } from './browser-boundaries';
|
|
4
|
-
import { CRAFT_PRIMITIVE_REGISTRY, } from './craft-primitive-registry';
|
|
5
|
-
import { ɵwithCraftReplay } from './craft-replay';
|
|
6
|
-
import { createYieldableReactiveValue, isYieldableReactiveValue, rawReactiveValue, } from './reactive-read';
|
|
1
|
+
import { inject } from './host/craft-compat.js';
|
|
2
|
+
import { craftComputed as createCraftComputed, craftSignal } from './host/craft-signal.js';
|
|
3
|
+
import { StorageService } from './browser-boundaries.js';
|
|
4
|
+
import { CRAFT_PRIMITIVE_REGISTRY, } from './craft-primitive-registry.js';
|
|
5
|
+
import { ɵwithCraftReplay } from './craft-replay.js';
|
|
6
|
+
import { createYieldableReactiveValue, isYieldableReactiveValue, rawReactiveValue, } from './reactive-read.js';
|
|
7
7
|
/** Reserved prefix for the primitives named through `include`. */
|
|
8
8
|
const EXTERNAL_KEY_PREFIX = '#include/';
|
|
9
9
|
const DEFAULT_LIMIT = 50;
|
|
@@ -273,4 +273,3 @@ function writePersisted(storage, storageKey, entries, cursor) {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
//# sourceMappingURL=craft-machine-history.js.map
|
package/src/lib/craft-match.d.ts
CHANGED
package/src/lib/craft-match.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Provider } from './host/craft-compat';
|
|
2
|
-
import type { BrandedServiceProvider, SERVICE_HELPER_DEPENDENCIES, ServiceDependencyMapFromYielded } from './craft-service';
|
|
3
|
-
import { YIELDABLE_METHOD } from './yieldable';
|
|
1
|
+
import { Provider } from './host/craft-compat.js';
|
|
2
|
+
import type { BrandedServiceProvider, SERVICE_HELPER_DEPENDENCIES, ServiceDependencyMapFromYielded } from './craft-service.js';
|
|
3
|
+
import { YIELDABLE_METHOD } from './yieldable.js';
|
|
4
4
|
type CraftMethodGenerator<This, Args extends unknown[], Yielded, Result> = (this: This, ...args: Args) => Generator<Yielded, Result, unknown>;
|
|
5
5
|
type CraftMethodWithReceiver<This, Args extends unknown[], Result> = (this: This, ...args: Args) => Result;
|
|
6
6
|
type CraftMethodWithoutReceiver<Args extends unknown[], Result> = (...args: Args) => Result;
|
|
@@ -25,4 +25,3 @@ type TrackedCraftMethod<Callable, Yielded, Config = never> = Callable & {
|
|
|
25
25
|
export declare function craftMethod<Name extends string, This, Args extends unknown[], Yielded, Result, Config extends CraftMethodNameConfig<Name> = Name>(name: Config, factory: CraftMethodGenerator<This, Args, Yielded, Result>): TrackedCraftMethod<CraftMethodWithReceiver<This, Args, Result>, Yielded, Config>;
|
|
26
26
|
export declare function craftMethod<Name extends string, This, Args extends unknown[], Yielded, Result, Config extends CraftMethodNameConfig<Name> = Name>(name: Config, self: This, factory: CraftMethodGenerator<This, Args, Yielded, Result>): TrackedCraftMethod<CraftMethodWithoutReceiver<Args, Result>, Yielded, Config>;
|
|
27
27
|
export {};
|
|
28
|
-
//# sourceMappingURL=craft-method.d.ts.map
|
package/src/lib/craft-method.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { assertInInjectionContext, inject, Injector, runInInjectionContext, } from './host/craft-compat';
|
|
2
|
-
import { ɵcreateHostTaggedInjector } from './craft-service';
|
|
3
|
-
import { isGenerator, runCraftGenerator } from './craft-generator-runtime';
|
|
4
|
-
import { injectFnWrapper } from './fn-wrapper';
|
|
5
|
-
import { markYieldableMethod, YIELDABLE_METHOD } from './yieldable';
|
|
1
|
+
import { assertInInjectionContext, inject, Injector, runInInjectionContext, } from './host/craft-compat.js';
|
|
2
|
+
import { ɵcreateHostTaggedInjector } from './craft-service.js';
|
|
3
|
+
import { isGenerator, runCraftGenerator } from './craft-generator-runtime.js';
|
|
4
|
+
import { injectFnWrapper } from './fn-wrapper.js';
|
|
5
|
+
import { markYieldableMethod, YIELDABLE_METHOD } from './yieldable.js';
|
|
6
6
|
function resolveCraftMethodName(nameOrConfig) {
|
|
7
7
|
return typeof nameOrConfig === 'string' ? nameOrConfig : nameOrConfig.name;
|
|
8
8
|
}
|
|
@@ -42,4 +42,3 @@ function executeCraftMethod(factory, injector, self, args) {
|
|
|
42
42
|
}).value;
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
//# sourceMappingURL=craft-method.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InjectionToken, type EffectRef, type Injector } from './host/craft-compat';
|
|
2
|
-
import { type CraftRegistrationTarget } from './craft-register-for-runtime';
|
|
3
|
-
import type { CraftDomAdapter } from './host/craft-dom';
|
|
1
|
+
import { InjectionToken, type EffectRef, type Injector } from './host/craft-compat.js';
|
|
2
|
+
import { type CraftRegistrationTarget } from './craft-register-for-runtime.js';
|
|
3
|
+
import type { CraftDomAdapter } from './host/craft-dom.js';
|
|
4
4
|
/** Runtime marker shared by core-authored DOM directives and the Craft renderer. */
|
|
5
5
|
export declare const CRAFT_NODE_DIRECTIVE: unique symbol;
|
|
6
6
|
/** Creates a reactive effect owned by the current node-directive mount. */
|
|
@@ -29,4 +29,3 @@ export interface CraftNodeDirective<Props extends Readonly<Record<string, unknow
|
|
|
29
29
|
/** Creates a functional directive mounted directly on a rendered DOM node. */
|
|
30
30
|
export declare function craftNodeDirective<const Props extends Readonly<Record<string, unknown>>>(name: string, inputs: readonly (keyof Props & string)[], mount: CraftNodeDirectiveMount<Props>): CraftNodeDirective<Props>;
|
|
31
31
|
export declare function isCraftNodeDirective(value: unknown): value is CraftNodeDirective<any>;
|
|
32
|
-
//# sourceMappingURL=craft-node-directive.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, } from './host/craft-compat';
|
|
2
|
-
import { CRAFT_REGISTRATION_TARGET, } from './craft-register-for-runtime';
|
|
1
|
+
import { InjectionToken, } from './host/craft-compat.js';
|
|
2
|
+
import { CRAFT_REGISTRATION_TARGET, } from './craft-register-for-runtime.js';
|
|
3
3
|
/** Runtime marker shared by core-authored DOM directives and the Craft renderer. */
|
|
4
4
|
export const CRAFT_NODE_DIRECTIVE = Symbol.for('@craft-ts/core/craft-node-directive');
|
|
5
5
|
export const CRAFT_NODE_EFFECT_FACTORY = new InjectionToken('CRAFT_NODE_EFFECT_FACTORY');
|
|
@@ -19,4 +19,3 @@ export function craftNodeDirective(name, inputs, mount) {
|
|
|
19
19
|
export function isCraftNodeDirective(value) {
|
|
20
20
|
return typeof value === 'function' && CRAFT_NODE_DIRECTIVE in value;
|
|
21
21
|
}
|
|
22
|
-
//# sourceMappingURL=craft-node-directive.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InjectionToken, type Provider, type Signal } from './host/craft-compat';
|
|
2
|
-
import type { CraftExceptionComponentDescriptor } from './craft-route-exceptions';
|
|
3
|
-
import { type CraftRouteTargetInput } from './craft-route-target';
|
|
1
|
+
import { InjectionToken, type Provider, type Signal } from './host/craft-compat.js';
|
|
2
|
+
import type { CraftExceptionComponentDescriptor } from './craft-route-exceptions.js';
|
|
3
|
+
import { type CraftRouteTargetInput } from './craft-route-target.js';
|
|
4
4
|
/**
|
|
5
5
|
* The text rendered by {@link DefaultCraftPendingComponent}. A `Signal<string>`
|
|
6
6
|
* so a reactive translation source can be plugged in via {@link withLoadingText}.
|
|
@@ -112,4 +112,3 @@ export declare function withErrorComponent(component: CraftExceptionComponentDes
|
|
|
112
112
|
*/
|
|
113
113
|
export declare function provideCraftLoading(...features: CraftLoadingFeature[]): Provider[];
|
|
114
114
|
export {};
|
|
115
|
-
//# sourceMappingURL=craft-pending.d.ts.map
|
package/src/lib/craft-pending.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject, InjectionToken, LOCALE_ID, signal, } from './host/craft-compat';
|
|
2
|
-
import { craftRouteTarget, } from './craft-route-target';
|
|
1
|
+
import { inject, InjectionToken, LOCALE_ID, signal, } from './host/craft-compat.js';
|
|
2
|
+
import { craftRouteTarget, } from './craft-route-target.js';
|
|
3
3
|
/**
|
|
4
4
|
* The non-blocking router outlet ({@link CraftRouterOutletController}) commits
|
|
5
5
|
* the URL
|
|
@@ -184,4 +184,3 @@ export function withErrorComponent(component) {
|
|
|
184
184
|
export function provideCraftLoading(...features) {
|
|
185
185
|
return features.flatMap((feature) => feature.providers);
|
|
186
186
|
}
|
|
187
|
-
//# sourceMappingURL=craft-pending.js.map
|
package/src/lib/craft-pipe.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type YieldableInsertionMethods } from './yieldable';
|
|
1
|
+
import { type YieldableInsertionMethods } from './yieldable.js';
|
|
2
2
|
type NormalizeIns<T> = [T] extends [never] ? {} : T;
|
|
3
3
|
type CtxWithIns<Ctx, I> = Omit<Ctx, 'insertions'> & {
|
|
4
4
|
insertions: YieldableInsertionMethods<I>;
|
|
@@ -60,4 +60,3 @@ export declare function craftPipe<Ctx extends {
|
|
|
60
60
|
insertions?: any;
|
|
61
61
|
}, I1, I2, I3, I4, I5, I6, I7, Y1 = never, Y2 = never, Y3 = never, Y4 = never, Y5 = never, Y6 = never, Y7 = never>(context: Ctx, m1: (context: NoInfer<Ctx>) => I1 | Generator<Y1, I1, unknown>, m2: (context: CtxWithIns<NoInfer<Ctx>, MergedIns<NoInfer<Ctx>, I1>>) => I2 | Generator<Y2, I2, unknown>, m3: (context: CtxWithIns<NoInfer<Ctx>, MergedIns<NoInfer<Ctx>, I1 & I2>>) => I3 | Generator<Y3, I3, unknown>, m4: (context: CtxWithIns<NoInfer<Ctx>, MergedIns<NoInfer<Ctx>, I1 & I2 & I3>>) => I4 | Generator<Y4, I4, unknown>, m5: (context: CtxWithIns<NoInfer<Ctx>, MergedIns<NoInfer<Ctx>, I1 & I2 & I3 & I4>>) => I5 | Generator<Y5, I5, unknown>, m6: (context: CtxWithIns<NoInfer<Ctx>, MergedIns<NoInfer<Ctx>, I1 & I2 & I3 & I4 & I5>>) => I6 | Generator<Y6, I6, unknown>, m7: (context: CtxWithIns<NoInfer<Ctx>, MergedIns<NoInfer<Ctx>, I1 & I2 & I3 & I4 & I5 & I6>>) => I7 | Generator<Y7, I7, unknown>): Generator<Y1 | Y2 | Y3 | Y4 | Y5 | Y6 | Y7, I1 & I2 & I3 & I4 & I5 & I6 & I7, unknown>;
|
|
62
62
|
export {};
|
|
63
|
-
//# sourceMappingURL=craft-pipe.d.ts.map
|