@exactjs/core 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -4
- package/README.md +8 -6
- package/dist/activity.js.map +1 -1
- package/dist/children/composition.d.ts +34 -0
- package/dist/children/composition.d.ts.map +1 -0
- package/dist/children/composition.js +74 -0
- package/dist/children/composition.js.map +1 -0
- package/dist/children.d.ts +4 -0
- package/dist/children.d.ts.map +1 -0
- package/dist/children.js +3 -0
- package/dist/children.js.map +1 -0
- package/dist/class-values.js.map +1 -1
- package/dist/cleanup.js.map +1 -1
- package/dist/client/activity.js.map +1 -1
- package/dist/client/children/composition.d.ts +34 -0
- package/dist/client/children/composition.d.ts.map +1 -0
- package/dist/client/children/composition.js +74 -0
- package/dist/client/children/composition.js.map +1 -0
- package/dist/client/children.d.ts +4 -0
- package/dist/client/children.d.ts.map +1 -0
- package/dist/client/children.js +3 -0
- package/dist/client/children.js.map +1 -0
- package/dist/client/class-values.js.map +1 -1
- package/dist/client/cleanup.js.map +1 -1
- package/dist/client/component/async-value.js.map +1 -1
- package/dist/client/component/async.js.map +1 -1
- package/dist/client/component/authorization.js.map +1 -1
- package/dist/client/component/compact-instance.js.map +1 -1
- package/dist/client/component/compiled-abi.js.map +1 -1
- package/dist/client/component/compiled-output.js.map +1 -1
- package/dist/client/component/construction.js.map +1 -1
- package/dist/client/component/context-api.js.map +1 -1
- package/dist/client/component/context-capability-integration.js.map +1 -1
- package/dist/client/component/context-capability.js.map +1 -1
- package/dist/client/component/context-inspection.js.map +1 -1
- package/dist/client/component/context-resumption.js.map +1 -1
- package/dist/client/component/contexts.js.map +1 -1
- package/dist/client/component/contract-versions.d.ts +2 -2
- package/dist/client/component/contract-versions.js +2 -2
- package/dist/client/component/contract-versions.js.map +1 -1
- package/dist/client/component/contracts.d.ts +4 -2
- package/dist/client/component/contracts.d.ts.map +1 -1
- package/dist/client/component/contracts.js.map +1 -1
- package/dist/client/component/default-logger.js.map +1 -1
- package/dist/client/component/derived.js.map +1 -1
- package/dist/client/component/direct-server-context-api.js.map +1 -1
- package/dist/client/component/direct-server-instance-construction.js.map +1 -1
- package/dist/client/component/domain.d.ts +2 -0
- package/dist/client/component/domain.d.ts.map +1 -1
- package/dist/client/component/domain.js +4 -0
- package/dist/client/component/domain.js.map +1 -1
- package/dist/client/component/durable-instance-construction.js.map +1 -1
- package/dist/client/component/element-identity.js.map +1 -1
- package/dist/client/component/error-boundary.js +2 -2
- package/dist/client/component/error-boundary.js.map +1 -1
- package/dist/client/component/error-view.js.map +1 -1
- package/dist/client/component/errors.js.map +1 -1
- package/dist/client/component/input-observation.js.map +1 -1
- package/dist/client/component/inspection-source.js.map +1 -1
- package/dist/client/component/inspection.js.map +1 -1
- package/dist/client/component/instance-construction.js.map +1 -1
- package/dist/client/component/instance-identity.js.map +1 -1
- package/dist/client/component/interaction-contracts.js.map +1 -1
- package/dist/client/component/lifecycle-handlers.js.map +1 -1
- package/dist/client/component/list-capability-integration.js.map +1 -1
- package/dist/client/component/list-capability.js.map +1 -1
- package/dist/client/component/list-controller.js.map +1 -1
- package/dist/client/component/localization-capability.js.map +1 -1
- package/dist/client/component/log.js.map +1 -1
- package/dist/client/component/logical-owner.d.ts.map +1 -1
- package/dist/client/component/logical-owner.js +3 -2
- package/dist/client/component/logical-owner.js.map +1 -1
- package/dist/client/component/ownership.js.map +1 -1
- package/dist/client/component/performance-trace.js.map +1 -1
- package/dist/client/component/plugins.js.map +1 -1
- package/dist/client/component/reactive-expression.js.map +1 -1
- package/dist/client/component/reactive-expressions.d.ts.map +1 -1
- package/dist/client/component/reactive-expressions.js +3 -2
- package/dist/client/component/reactive-expressions.js.map +1 -1
- package/dist/client/component/reactive-value.js.map +1 -1
- package/dist/client/component/readiness.js.map +1 -1
- package/dist/client/component/ref-capability-integration.js.map +1 -1
- package/dist/client/component/ref-capability.js.map +1 -1
- package/dist/client/component/ref-runtime.js.map +1 -1
- package/dist/client/component/render-instance-construction.js.map +1 -1
- package/dist/client/component/render-instance.js.map +1 -1
- package/dist/client/component/render.js.map +1 -1
- package/dist/client/component/resource-ownership.js.map +1 -1
- package/dist/client/component/resumption.js.map +1 -1
- package/dist/client/component/root-lifecycle.js.map +1 -1
- package/dist/client/component/runtime-construction.js.map +1 -1
- package/dist/client/component/runtime-surface-contexts.js.map +1 -1
- package/dist/client/component/runtime-surface-lifecycle.js.map +1 -1
- package/dist/client/component/runtime-surface-lists.js.map +1 -1
- package/dist/client/component/runtime-surface-localization.js.map +1 -1
- package/dist/client/component/runtime-surface-logging.js.map +1 -1
- package/dist/client/component/runtime-surface-reactivity.js.map +1 -1
- package/dist/client/component/runtime-surface-refs.js.map +1 -1
- package/dist/client/component/runtime-surface-registration.js.map +1 -1
- package/dist/client/component/runtime-surface.js.map +1 -1
- package/dist/client/component/runtime.d.ts +3 -0
- package/dist/client/component/runtime.d.ts.map +1 -1
- package/dist/client/component/runtime.js +32 -6
- package/dist/client/component/runtime.js.map +1 -1
- package/dist/client/component/state.js.map +1 -1
- package/dist/client/component/task-capability-integration.js +1 -0
- package/dist/client/component/task-capability-integration.js.map +1 -1
- package/dist/client/component/task-capability.js.map +1 -1
- package/dist/client/component/task-inspection-history.js.map +1 -1
- package/dist/client/component/task-instance-construction.js.map +1 -1
- package/dist/client/component/task-instance.js.map +1 -1
- package/dist/client/component/task-observer.js.map +1 -1
- package/dist/client/component/task-owner-integration.js.map +1 -1
- package/dist/client/component/value-contracts.js.map +1 -1
- package/dist/client/component-abi/activity-receipt.js.map +1 -1
- package/dist/client/component-abi/artifact.js.map +1 -1
- package/dist/client/component-abi/child-range-receipt.js.map +1 -1
- package/dist/client/component-abi/client.d.ts +2 -1
- package/dist/client/component-abi/client.d.ts.map +1 -1
- package/dist/client/component-abi/client.js.map +1 -1
- package/dist/client/component-abi/compatibility-contribution.js.map +1 -1
- package/dist/client/component-abi/compiled-child-range.d.ts.map +1 -1
- package/dist/client/component-abi/compiled-child-range.js +6 -1
- package/dist/client/component-abi/compiled-child-range.js.map +1 -1
- package/dist/client/component-abi/compiled-runtime.js.map +1 -1
- package/dist/client/component-abi/executable-fields.js.map +1 -1
- package/dist/client/component-abi/fragment-receipt.d.ts +20 -0
- package/dist/client/component-abi/fragment-receipt.d.ts.map +1 -1
- package/dist/client/component-abi/fragment-receipt.js +35 -5
- package/dist/client/component-abi/fragment-receipt.js.map +1 -1
- package/dist/client/component-abi/intrinsic-receipt.d.ts +10 -0
- package/dist/client/component-abi/intrinsic-receipt.d.ts.map +1 -1
- package/dist/client/component-abi/intrinsic-receipt.js +44 -6
- package/dist/client/component-abi/intrinsic-receipt.js.map +1 -1
- package/dist/client/component-abi/keyed-child-receipt.js.map +1 -1
- package/dist/client/component-abi/opaque-operation.d.ts.map +1 -1
- package/dist/client/component-abi/opaque-operation.js +36 -3
- package/dist/client/component-abi/opaque-operation.js.map +1 -1
- package/dist/client/component-abi/portal-receipt.js.map +1 -1
- package/dist/client/component-abi/receipt.d.ts +7 -0
- package/dist/client/component-abi/receipt.d.ts.map +1 -1
- package/dist/client/component-abi/receipt.js +9 -0
- package/dist/client/component-abi/receipt.js.map +1 -1
- package/dist/client/component-abi/runtime.js.map +1 -1
- package/dist/client/component-abi/server-child-range.js +1 -1
- package/dist/client/component-abi/server-child-range.js.map +1 -1
- package/dist/client/component-abi/server-keyed-child.js.map +1 -1
- package/dist/client/component-abi/server-runtime.js.map +1 -1
- package/dist/client/component-abi/server-structure-receipts.js.map +1 -1
- package/dist/client/component-abi/server.d.ts +2 -1
- package/dist/client/component-abi/server.d.ts.map +1 -1
- package/dist/client/component-abi/server.js.map +1 -1
- package/dist/client/component-abi/suspense-receipt.js.map +1 -1
- package/dist/client/component-abi/target-receipt.d.ts +23 -1
- package/dist/client/component-abi/target-receipt.d.ts.map +1 -1
- package/dist/client/component-abi/target-receipt.js +46 -5
- package/dist/client/component-abi/target-receipt.js.map +1 -1
- package/dist/client/component-abi/text-projection-markup.d.ts +16 -0
- package/dist/client/component-abi/text-projection-markup.d.ts.map +1 -0
- package/dist/client/component-abi/text-projection-markup.js +110 -0
- package/dist/client/component-abi/text-projection-markup.js.map +1 -0
- package/dist/client/component-abi/text-projection.d.ts +12 -0
- package/dist/client/component-abi/text-projection.d.ts.map +1 -0
- package/dist/client/component-abi/text-projection.js +79 -0
- package/dist/client/component-abi/text-projection.js.map +1 -0
- package/dist/client/component-abi/unsafe-html-receipt.js.map +1 -1
- package/dist/client/component-abi/value-serialization.js.map +1 -1
- package/dist/client/component-contract/boundary-validation.js.map +1 -1
- package/dist/client/component-contract/composition-support.js.map +1 -1
- package/dist/client/component-contract/continuation-validation.js.map +1 -1
- package/dist/client/component-contract/contract-cache.js.map +1 -1
- package/dist/client/component-contract/contract-validation.d.ts.map +1 -1
- package/dist/client/component-contract/contract-validation.js +5 -13
- package/dist/client/component-contract/contract-validation.js.map +1 -1
- package/dist/client/component-contract/metadata-validation.d.ts +4 -0
- package/dist/client/component-contract/metadata-validation.d.ts.map +1 -1
- package/dist/client/component-contract/metadata-validation.js +16 -0
- package/dist/client/component-contract/metadata-validation.js.map +1 -1
- package/dist/client/component-contract/server-execution-validation.js.map +1 -1
- package/dist/client/component-contracts.d.ts +4 -3
- package/dist/client/component-contracts.d.ts.map +1 -1
- package/dist/client/component-contracts.js +7 -1
- package/dist/client/component-contracts.js.map +1 -1
- package/dist/client/component-definition-contracts.js.map +1 -1
- package/dist/client/component-registry/contracts.js.map +1 -1
- package/dist/client/component-registry/creation.d.ts.map +1 -1
- package/dist/client/component-registry/creation.js +4 -3
- package/dist/client/component-registry/creation.js.map +1 -1
- package/dist/client/component-registry/errors.js.map +1 -1
- package/dist/client/component-registry/loading.js.map +1 -1
- package/dist/client/component-registry/operations.js.map +1 -1
- package/dist/client/component-registry/storage.js.map +1 -1
- package/dist/client/component-registry/syntax.js.map +1 -1
- package/dist/client/document/composition.d.ts +7 -0
- package/dist/client/document/composition.d.ts.map +1 -0
- package/dist/client/document/composition.js +52 -0
- package/dist/client/document/composition.js.map +1 -0
- package/dist/client/document/definition.d.ts +10 -0
- package/dist/client/document/definition.d.ts.map +1 -0
- package/dist/client/document/definition.js +3 -0
- package/dist/client/document/definition.js.map +1 -0
- package/dist/client/document/doctype.d.ts +17 -0
- package/dist/client/document/doctype.d.ts.map +1 -0
- package/dist/client/document/doctype.js +35 -0
- package/dist/client/document/doctype.js.map +1 -0
- package/dist/client/document/output.d.ts +22 -0
- package/dist/client/document/output.d.ts.map +1 -0
- package/dist/client/document/output.js +30 -0
- package/dist/client/document/output.js.map +1 -0
- package/dist/client/document.d.ts +6 -0
- package/dist/client/document.d.ts.map +1 -0
- package/dist/client/document.js +5 -0
- package/dist/client/document.js.map +1 -0
- package/dist/client/dynamic-component/contracts.js.map +1 -1
- package/dist/client/dynamic-component/creation.js.map +1 -1
- package/dist/client/dynamic-component/runtime.js.map +1 -1
- package/dist/client/enhancements.d.ts +2 -0
- package/dist/client/enhancements.d.ts.map +1 -1
- package/dist/client/enhancements.js +8 -4
- package/dist/client/enhancements.js.map +1 -1
- package/dist/client/framework/async-values.js.map +1 -1
- package/dist/client/framework/compatibility-contributions.js.map +1 -1
- package/dist/client/framework/component-contract-validation.js.map +1 -1
- package/dist/client/framework/component-contracts.js.map +1 -1
- package/dist/client/framework/component-domains.js.map +1 -1
- package/dist/client/framework/component-execution.js.map +1 -1
- package/dist/client/framework/component-lifecycle.js.map +1 -1
- package/dist/client/framework/component-roots.js.map +1 -1
- package/dist/client/framework/enhancement-catalog.js.map +1 -1
- package/dist/client/framework/enhancement-fallback.d.ts +12 -0
- package/dist/client/framework/enhancement-fallback.d.ts.map +1 -0
- package/dist/client/framework/enhancement-fallback.js +41 -0
- package/dist/client/framework/enhancement-fallback.js.map +1 -0
- package/dist/client/framework/enhancement-order.d.ts +9 -0
- package/dist/client/framework/enhancement-order.d.ts.map +1 -0
- package/dist/client/framework/enhancement-order.js +34 -0
- package/dist/client/framework/enhancement-order.js.map +1 -0
- package/dist/client/framework/error-format.js.map +1 -1
- package/dist/client/framework/error-view.js.map +1 -1
- package/dist/client/framework/fragment-enhancement-chain.d.ts +4 -0
- package/dist/client/framework/fragment-enhancement-chain.d.ts.map +1 -0
- package/dist/client/framework/fragment-enhancement-chain.js +28 -0
- package/dist/client/framework/fragment-enhancement-chain.js.map +1 -0
- package/dist/client/framework/fragment-hosts.d.ts +30 -0
- package/dist/client/framework/fragment-hosts.d.ts.map +1 -0
- package/dist/client/framework/fragment-hosts.js +65 -0
- package/dist/client/framework/fragment-hosts.js.map +1 -0
- package/dist/client/framework/fragment-target-projection.d.ts +8 -0
- package/dist/client/framework/fragment-target-projection.d.ts.map +1 -0
- package/dist/client/framework/fragment-target-projection.js +98 -0
- package/dist/client/framework/fragment-target-projection.js.map +1 -0
- package/dist/client/framework/inspection-transport.js.map +1 -1
- package/dist/client/framework/operation-protocol.js.map +1 -1
- package/dist/client/framework/prepared-target-output.d.ts +11 -0
- package/dist/client/framework/prepared-target-output.d.ts.map +1 -0
- package/dist/client/framework/prepared-target-output.js +51 -0
- package/dist/client/framework/prepared-target-output.js.map +1 -0
- package/dist/client/framework/protocol-records.js.map +1 -1
- package/dist/client/framework/publication.js.map +1 -1
- package/dist/client/framework/render-structure.d.ts +10 -0
- package/dist/client/framework/render-structure.d.ts.map +1 -1
- package/dist/client/framework/render-structure.js +10 -0
- package/dist/client/framework/render-structure.js.map +1 -1
- package/dist/client/framework/server-component-contexts.js.map +1 -1
- package/dist/client/framework/server-component-execution.js.map +1 -1
- package/dist/client/framework/server-render-structure.js.map +1 -1
- package/dist/client/framework/server-task-helpers.d.ts +1 -0
- package/dist/client/framework/server-task-helpers.d.ts.map +1 -1
- package/dist/client/framework/server-task-helpers.js +1 -0
- package/dist/client/framework/server-task-helpers.js.map +1 -1
- package/dist/client/framework/supplied-placement.d.ts +8 -0
- package/dist/client/framework/supplied-placement.d.ts.map +1 -0
- package/dist/client/framework/supplied-placement.js +80 -0
- package/dist/client/framework/supplied-placement.js.map +1 -0
- package/dist/client/framework/target-contributions.d.ts +2 -0
- package/dist/client/framework/target-contributions.d.ts.map +1 -1
- package/dist/client/framework/target-contributions.js +38 -0
- package/dist/client/framework/target-contributions.js.map +1 -1
- package/dist/client/framework/task-frames.js.map +1 -1
- package/dist/client/framework/text-target-output.d.ts +6 -0
- package/dist/client/framework/text-target-output.d.ts.map +1 -0
- package/dist/client/framework/text-target-output.js +14 -0
- package/dist/client/framework/text-target-output.js.map +1 -0
- package/dist/client/hydration-boundary.js.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/inspection-transport.js.map +1 -1
- package/dist/client/interaction/execution.js.map +1 -1
- package/dist/client/json.js.map +1 -1
- package/dist/client/keys.js.map +1 -1
- package/dist/client/localization/component-integration.js.map +1 -1
- package/dist/client/localization/context.js.map +1 -1
- package/dist/client/localization/contracts.js.map +1 -1
- package/dist/client/localization/facade.js.map +1 -1
- package/dist/client/localization/formatter-pool.js.map +1 -1
- package/dist/client/localization.js.map +1 -1
- package/dist/client/logging.js.map +1 -1
- package/dist/client/native-props.js.map +1 -1
- package/dist/client/protocol-utf8.js.map +1 -1
- package/dist/client/protocol.js.map +1 -1
- package/dist/client/render-children.js.map +1 -1
- package/dist/client/render-program.d.ts +4 -1
- package/dist/client/render-program.d.ts.map +1 -1
- package/dist/client/render-program.js +1 -1
- package/dist/client/render-program.js.map +1 -1
- package/dist/client/runtime/collections.js.map +1 -1
- package/dist/client/runtime/compatibility-component-abi.js.map +1 -1
- package/dist/client/runtime/component-abi.d.ts +3 -3
- package/dist/client/runtime/component-abi.d.ts.map +1 -1
- package/dist/client/runtime/component-abi.js +3 -3
- package/dist/client/runtime/component-abi.js.map +1 -1
- package/dist/client/runtime/component-construction/direct-server.js.map +1 -1
- package/dist/client/runtime/component-construction/durable.js.map +1 -1
- package/dist/client/runtime/component-construction/render.js.map +1 -1
- package/dist/client/runtime/component-construction/task.js.map +1 -1
- package/dist/client/runtime/component-execution.js.map +1 -1
- package/dist/client/runtime/component-operations.d.ts +3 -0
- package/dist/client/runtime/component-operations.d.ts.map +1 -1
- package/dist/client/runtime/component-operations.js +3 -0
- package/dist/client/runtime/component-operations.js.map +1 -1
- package/dist/client/runtime/component-reactivity.js.map +1 -1
- package/dist/client/runtime/component-tasks.js.map +1 -1
- package/dist/client/runtime/contexts.js.map +1 -1
- package/dist/client/runtime/dynamic-components.js.map +1 -1
- package/dist/client/runtime/enhancements.js.map +1 -1
- package/dist/client/runtime/inspection.js.map +1 -1
- package/dist/client/runtime/lifecycle.js.map +1 -1
- package/dist/client/runtime/lists.js.map +1 -1
- package/dist/client/runtime/localization.js.map +1 -1
- package/dist/client/runtime/logging.js.map +1 -1
- package/dist/client/runtime/reactivity.js.map +1 -1
- package/dist/client/runtime/refs.js.map +1 -1
- package/dist/client/runtime/registry.js.map +1 -1
- package/dist/client/runtime/render-operations.js.map +1 -1
- package/dist/client/runtime/render.js.map +1 -1
- package/dist/client/runtime/tasks.js.map +1 -1
- package/dist/client/server-render-program.js.map +1 -1
- package/dist/client/ssr-independence.js.map +1 -1
- package/dist/client/symbols.js.map +1 -1
- package/dist/client/tasks/activation.js.map +1 -1
- package/dist/client/tasks/cancellation.js.map +1 -1
- package/dist/client/tasks/compiled-latest.js.map +1 -1
- package/dist/client/tasks/component-continuation.js.map +1 -1
- package/dist/client/tasks/component-execution-capability.js.map +1 -1
- package/dist/client/tasks/component-execution-plan.js.map +1 -1
- package/dist/client/tasks/component-execution-slice.js.map +1 -1
- package/dist/client/tasks/component-execution.js.map +1 -1
- package/dist/client/tasks/computation-activation.js.map +1 -1
- package/dist/client/tasks/continuations.js.map +1 -1
- package/dist/client/tasks/contracts.js.map +1 -1
- package/dist/client/tasks/definition-record.js.map +1 -1
- package/dist/client/tasks/dependency-provenance.js.map +1 -1
- package/dist/client/tasks/dependency-source.js.map +1 -1
- package/dist/client/tasks/dependency-watcher.js.map +1 -1
- package/dist/client/tasks/frame-context.js.map +1 -1
- package/dist/client/tasks/frame-continuation.js.map +1 -1
- package/dist/client/tasks/frame-contracts.js.map +1 -1
- package/dist/client/tasks/frame-inspection-capability.js.map +1 -1
- package/dist/client/tasks/frame-inspection.js.map +1 -1
- package/dist/client/tasks/frame-runtime.js.map +1 -1
- package/dist/client/tasks/frame-settlement.js.map +1 -1
- package/dist/client/tasks/generation-execution.js.map +1 -1
- package/dist/client/tasks/invocation.js.map +1 -1
- package/dist/client/tasks/observers.js.map +1 -1
- package/dist/client/tasks/optimism.js.map +1 -1
- package/dist/client/tasks/options.js.map +1 -1
- package/dist/client/tasks/owner-activations.js.map +1 -1
- package/dist/client/tasks/owner-hosts.js.map +1 -1
- package/dist/client/tasks/owner-record.js.map +1 -1
- package/dist/client/tasks/owners.js.map +1 -1
- package/dist/client/tasks/performance-trace.js.map +1 -1
- package/dist/client/tasks/policy.js.map +1 -1
- package/dist/client/tasks/priority.js.map +1 -1
- package/dist/client/tasks/public.js.map +1 -1
- package/dist/client/tasks/resources.js.map +1 -1
- package/dist/client/tasks/runtime-types.js.map +1 -1
- package/dist/client/tasks/runtime.js.map +1 -1
- package/dist/client/tasks/scheduled-reactions.js.map +1 -1
- package/dist/client/tasks/server-component-execution-contracts.js.map +1 -1
- package/dist/client/tasks/server-component-execution.d.ts +3 -0
- package/dist/client/tasks/server-component-execution.d.ts.map +1 -1
- package/dist/client/tasks/server-component-execution.js +16 -46
- package/dist/client/tasks/server-component-execution.js.map +1 -1
- package/dist/client/tasks/server-component-resources.js.map +1 -1
- package/dist/client/tasks/server-component-task-slice.d.ts +5 -0
- package/dist/client/tasks/server-component-task-slice.d.ts.map +1 -0
- package/dist/client/tasks/server-component-task-slice.js +56 -0
- package/dist/client/tasks/server-component-task-slice.js.map +1 -0
- package/dist/client/tasks/server-component-task-tree.d.ts +9 -0
- package/dist/client/tasks/server-component-task-tree.d.ts.map +1 -0
- package/dist/client/tasks/server-component-task-tree.js +38 -0
- package/dist/client/tasks/server-component-task-tree.js.map +1 -0
- package/dist/client/tasks/server-task-readiness.js.map +1 -1
- package/dist/client/tasks/signals.js.map +1 -1
- package/dist/client/tasks/status.js.map +1 -1
- package/dist/client/tasks/v1.js.map +1 -1
- package/dist/client/testing/runtime-artifacts.d.ts.map +1 -1
- package/dist/client/testing/runtime-artifacts.js +4 -3
- package/dist/client/testing/runtime-artifacts.js.map +1 -1
- package/dist/client/testing/runtime.d.ts.map +1 -1
- package/dist/client/testing/runtime.js +4 -2
- package/dist/client/testing/runtime.js.map +1 -1
- package/dist/client/testing.js.map +1 -1
- package/dist/client/url.js.map +1 -1
- package/dist/component/async-value.js.map +1 -1
- package/dist/component/async.js.map +1 -1
- package/dist/component/authorization.js.map +1 -1
- package/dist/component/compact-instance.js.map +1 -1
- package/dist/component/compiled-abi.js.map +1 -1
- package/dist/component/compiled-output.js.map +1 -1
- package/dist/component/construction.js.map +1 -1
- package/dist/component/context-api.js.map +1 -1
- package/dist/component/context-capability-integration.js.map +1 -1
- package/dist/component/context-capability.js.map +1 -1
- package/dist/component/context-inspection.js.map +1 -1
- package/dist/component/context-resumption.js.map +1 -1
- package/dist/component/contexts.js.map +1 -1
- package/dist/component/contract-versions.d.ts +2 -2
- package/dist/component/contract-versions.js +2 -2
- package/dist/component/contract-versions.js.map +1 -1
- package/dist/component/contracts.d.ts +4 -2
- package/dist/component/contracts.d.ts.map +1 -1
- package/dist/component/contracts.js.map +1 -1
- package/dist/component/default-logger.js.map +1 -1
- package/dist/component/derived.js.map +1 -1
- package/dist/component/direct-server-context-api.js.map +1 -1
- package/dist/component/direct-server-instance-construction.js.map +1 -1
- package/dist/component/domain.d.ts +2 -0
- package/dist/component/domain.d.ts.map +1 -1
- package/dist/component/domain.js +4 -0
- package/dist/component/domain.js.map +1 -1
- package/dist/component/durable-instance-construction.js.map +1 -1
- package/dist/component/element-identity.js.map +1 -1
- package/dist/component/error-boundary.js.map +1 -1
- package/dist/component/error-view.js.map +1 -1
- package/dist/component/errors.js.map +1 -1
- package/dist/component/input-observation.js.map +1 -1
- package/dist/component/inspection-source.js.map +1 -1
- package/dist/component/inspection.js.map +1 -1
- package/dist/component/instance-construction.js.map +1 -1
- package/dist/component/instance-identity.js.map +1 -1
- package/dist/component/interaction-contracts.js.map +1 -1
- package/dist/component/lifecycle-handlers.js.map +1 -1
- package/dist/component/list-capability-integration.js.map +1 -1
- package/dist/component/list-capability.js.map +1 -1
- package/dist/component/list-controller.js.map +1 -1
- package/dist/component/localization-capability.js.map +1 -1
- package/dist/component/log.js.map +1 -1
- package/dist/component/logical-owner.d.ts.map +1 -1
- package/dist/component/logical-owner.js +3 -2
- package/dist/component/logical-owner.js.map +1 -1
- package/dist/component/ownership.js.map +1 -1
- package/dist/component/performance-trace.js.map +1 -1
- package/dist/component/plugins.js.map +1 -1
- package/dist/component/reactive-expression.js.map +1 -1
- package/dist/component/reactive-expressions.d.ts.map +1 -1
- package/dist/component/reactive-expressions.js +3 -2
- package/dist/component/reactive-expressions.js.map +1 -1
- package/dist/component/reactive-value.js.map +1 -1
- package/dist/component/readiness.js.map +1 -1
- package/dist/component/ref-capability-integration.js.map +1 -1
- package/dist/component/ref-capability.js.map +1 -1
- package/dist/component/ref-runtime.js.map +1 -1
- package/dist/component/render-instance-construction.js.map +1 -1
- package/dist/component/render-instance.js.map +1 -1
- package/dist/component/render.js.map +1 -1
- package/dist/component/resource-ownership.js.map +1 -1
- package/dist/component/resumption.js.map +1 -1
- package/dist/component/root-lifecycle.js.map +1 -1
- package/dist/component/runtime-construction.js.map +1 -1
- package/dist/component/runtime-surface-contexts.js.map +1 -1
- package/dist/component/runtime-surface-lifecycle.js.map +1 -1
- package/dist/component/runtime-surface-lists.js.map +1 -1
- package/dist/component/runtime-surface-localization.js.map +1 -1
- package/dist/component/runtime-surface-logging.js.map +1 -1
- package/dist/component/runtime-surface-reactivity.js.map +1 -1
- package/dist/component/runtime-surface-refs.js.map +1 -1
- package/dist/component/runtime-surface-registration.js.map +1 -1
- package/dist/component/runtime-surface.js.map +1 -1
- package/dist/component/runtime.d.ts +3 -0
- package/dist/component/runtime.d.ts.map +1 -1
- package/dist/component/runtime.js +32 -6
- package/dist/component/runtime.js.map +1 -1
- package/dist/component/state.js.map +1 -1
- package/dist/component/task-capability-integration.js +1 -0
- package/dist/component/task-capability-integration.js.map +1 -1
- package/dist/component/task-capability.js.map +1 -1
- package/dist/component/task-inspection-history.js.map +1 -1
- package/dist/component/task-instance-construction.js.map +1 -1
- package/dist/component/task-instance.js.map +1 -1
- package/dist/component/task-observer.js.map +1 -1
- package/dist/component/task-owner-integration.js.map +1 -1
- package/dist/component/value-contracts.js.map +1 -1
- package/dist/component-abi/activity-receipt.js.map +1 -1
- package/dist/component-abi/artifact.js.map +1 -1
- package/dist/component-abi/child-range-receipt.js.map +1 -1
- package/dist/component-abi/client.d.ts +2 -1
- package/dist/component-abi/client.d.ts.map +1 -1
- package/dist/component-abi/client.js.map +1 -1
- package/dist/component-abi/compatibility-contribution.js.map +1 -1
- package/dist/component-abi/compiled-child-range.d.ts.map +1 -1
- package/dist/component-abi/compiled-child-range.js +6 -1
- package/dist/component-abi/compiled-child-range.js.map +1 -1
- package/dist/component-abi/compiled-runtime.js.map +1 -1
- package/dist/component-abi/executable-fields.js.map +1 -1
- package/dist/component-abi/fragment-receipt.d.ts +20 -0
- package/dist/component-abi/fragment-receipt.d.ts.map +1 -1
- package/dist/component-abi/fragment-receipt.js +35 -5
- package/dist/component-abi/fragment-receipt.js.map +1 -1
- package/dist/component-abi/intrinsic-receipt.d.ts +10 -0
- package/dist/component-abi/intrinsic-receipt.d.ts.map +1 -1
- package/dist/component-abi/intrinsic-receipt.js +44 -6
- package/dist/component-abi/intrinsic-receipt.js.map +1 -1
- package/dist/component-abi/keyed-child-receipt.js.map +1 -1
- package/dist/component-abi/opaque-operation.d.ts.map +1 -1
- package/dist/component-abi/opaque-operation.js +36 -3
- package/dist/component-abi/opaque-operation.js.map +1 -1
- package/dist/component-abi/portal-receipt.js.map +1 -1
- package/dist/component-abi/receipt.d.ts +7 -0
- package/dist/component-abi/receipt.d.ts.map +1 -1
- package/dist/component-abi/receipt.js +9 -0
- package/dist/component-abi/receipt.js.map +1 -1
- package/dist/component-abi/runtime.js.map +1 -1
- package/dist/component-abi/server-child-range.js +1 -1
- package/dist/component-abi/server-child-range.js.map +1 -1
- package/dist/component-abi/server-keyed-child.js.map +1 -1
- package/dist/component-abi/server-runtime.js.map +1 -1
- package/dist/component-abi/server-structure-receipts.js.map +1 -1
- package/dist/component-abi/server.d.ts +2 -1
- package/dist/component-abi/server.d.ts.map +1 -1
- package/dist/component-abi/server.js.map +1 -1
- package/dist/component-abi/suspense-receipt.js.map +1 -1
- package/dist/component-abi/target-receipt.d.ts +23 -1
- package/dist/component-abi/target-receipt.d.ts.map +1 -1
- package/dist/component-abi/target-receipt.js +46 -5
- package/dist/component-abi/target-receipt.js.map +1 -1
- package/dist/component-abi/text-projection-markup.d.ts +16 -0
- package/dist/component-abi/text-projection-markup.d.ts.map +1 -0
- package/dist/component-abi/text-projection-markup.js +110 -0
- package/dist/component-abi/text-projection-markup.js.map +1 -0
- package/dist/component-abi/text-projection.d.ts +12 -0
- package/dist/component-abi/text-projection.d.ts.map +1 -0
- package/dist/component-abi/text-projection.js +79 -0
- package/dist/component-abi/text-projection.js.map +1 -0
- package/dist/component-abi/unsafe-html-receipt.js.map +1 -1
- package/dist/component-abi/value-serialization.js.map +1 -1
- package/dist/component-contract/boundary-validation.js.map +1 -1
- package/dist/component-contract/composition-support.js.map +1 -1
- package/dist/component-contract/continuation-validation.js.map +1 -1
- package/dist/component-contract/contract-cache.js.map +1 -1
- package/dist/component-contract/contract-validation.d.ts.map +1 -1
- package/dist/component-contract/contract-validation.js +5 -13
- package/dist/component-contract/contract-validation.js.map +1 -1
- package/dist/component-contract/metadata-validation.d.ts +4 -0
- package/dist/component-contract/metadata-validation.d.ts.map +1 -1
- package/dist/component-contract/metadata-validation.js +16 -0
- package/dist/component-contract/metadata-validation.js.map +1 -1
- package/dist/component-contract/server-execution-validation.js.map +1 -1
- package/dist/component-contracts.d.ts +4 -3
- package/dist/component-contracts.d.ts.map +1 -1
- package/dist/component-contracts.js +7 -1
- package/dist/component-contracts.js.map +1 -1
- package/dist/component-definition-contracts.js.map +1 -1
- package/dist/component-registry/contracts.js.map +1 -1
- package/dist/component-registry/creation.d.ts.map +1 -1
- package/dist/component-registry/creation.js +4 -3
- package/dist/component-registry/creation.js.map +1 -1
- package/dist/component-registry/errors.js.map +1 -1
- package/dist/component-registry/loading.js.map +1 -1
- package/dist/component-registry/operations.js.map +1 -1
- package/dist/component-registry/storage.js.map +1 -1
- package/dist/component-registry/syntax.js.map +1 -1
- package/dist/document/composition.d.ts +7 -0
- package/dist/document/composition.d.ts.map +1 -0
- package/dist/document/composition.js +52 -0
- package/dist/document/composition.js.map +1 -0
- package/dist/document/definition.d.ts +10 -0
- package/dist/document/definition.d.ts.map +1 -0
- package/dist/document/definition.js +3 -0
- package/dist/document/definition.js.map +1 -0
- package/dist/document/doctype.d.ts +17 -0
- package/dist/document/doctype.d.ts.map +1 -0
- package/dist/document/doctype.js +35 -0
- package/dist/document/doctype.js.map +1 -0
- package/dist/document/output.d.ts +22 -0
- package/dist/document/output.d.ts.map +1 -0
- package/dist/document/output.js +30 -0
- package/dist/document/output.js.map +1 -0
- package/dist/document.d.ts +6 -0
- package/dist/document.d.ts.map +1 -0
- package/dist/document.js +5 -0
- package/dist/document.js.map +1 -0
- package/dist/dynamic-component/contracts.js.map +1 -1
- package/dist/dynamic-component/creation.js.map +1 -1
- package/dist/dynamic-component/runtime.js.map +1 -1
- package/dist/enhancements.d.ts +2 -0
- package/dist/enhancements.d.ts.map +1 -1
- package/dist/enhancements.js +8 -4
- package/dist/enhancements.js.map +1 -1
- package/dist/framework/async-values.js.map +1 -1
- package/dist/framework/compatibility-contributions.js.map +1 -1
- package/dist/framework/component-contract-validation.js.map +1 -1
- package/dist/framework/component-contracts.js.map +1 -1
- package/dist/framework/component-domains.js.map +1 -1
- package/dist/framework/component-execution.js.map +1 -1
- package/dist/framework/component-lifecycle.js.map +1 -1
- package/dist/framework/component-roots.js.map +1 -1
- package/dist/framework/enhancement-catalog.js.map +1 -1
- package/dist/framework/enhancement-fallback.d.ts +12 -0
- package/dist/framework/enhancement-fallback.d.ts.map +1 -0
- package/dist/framework/enhancement-fallback.js +41 -0
- package/dist/framework/enhancement-fallback.js.map +1 -0
- package/dist/framework/enhancement-order.d.ts +9 -0
- package/dist/framework/enhancement-order.d.ts.map +1 -0
- package/dist/framework/enhancement-order.js +34 -0
- package/dist/framework/enhancement-order.js.map +1 -0
- package/dist/framework/error-format.js.map +1 -1
- package/dist/framework/error-view.js.map +1 -1
- package/dist/framework/fragment-enhancement-chain.d.ts +4 -0
- package/dist/framework/fragment-enhancement-chain.d.ts.map +1 -0
- package/dist/framework/fragment-enhancement-chain.js +28 -0
- package/dist/framework/fragment-enhancement-chain.js.map +1 -0
- package/dist/framework/fragment-hosts.d.ts +30 -0
- package/dist/framework/fragment-hosts.d.ts.map +1 -0
- package/dist/framework/fragment-hosts.js +65 -0
- package/dist/framework/fragment-hosts.js.map +1 -0
- package/dist/framework/fragment-target-projection.d.ts +8 -0
- package/dist/framework/fragment-target-projection.d.ts.map +1 -0
- package/dist/framework/fragment-target-projection.js +98 -0
- package/dist/framework/fragment-target-projection.js.map +1 -0
- package/dist/framework/inspection-transport.js.map +1 -1
- package/dist/framework/operation-protocol.js.map +1 -1
- package/dist/framework/prepared-target-output.d.ts +11 -0
- package/dist/framework/prepared-target-output.d.ts.map +1 -0
- package/dist/framework/prepared-target-output.js +51 -0
- package/dist/framework/prepared-target-output.js.map +1 -0
- package/dist/framework/protocol-records.js.map +1 -1
- package/dist/framework/publication.js.map +1 -1
- package/dist/framework/render-structure.d.ts +10 -0
- package/dist/framework/render-structure.d.ts.map +1 -1
- package/dist/framework/render-structure.js +10 -0
- package/dist/framework/render-structure.js.map +1 -1
- package/dist/framework/server-component-contexts.js.map +1 -1
- package/dist/framework/server-component-execution.js.map +1 -1
- package/dist/framework/server-render-structure.js.map +1 -1
- package/dist/framework/server-task-helpers.d.ts +1 -0
- package/dist/framework/server-task-helpers.d.ts.map +1 -1
- package/dist/framework/server-task-helpers.js +1 -0
- package/dist/framework/server-task-helpers.js.map +1 -1
- package/dist/framework/supplied-placement.d.ts +8 -0
- package/dist/framework/supplied-placement.d.ts.map +1 -0
- package/dist/framework/supplied-placement.js +80 -0
- package/dist/framework/supplied-placement.js.map +1 -0
- package/dist/framework/target-contributions.d.ts +2 -0
- package/dist/framework/target-contributions.d.ts.map +1 -1
- package/dist/framework/target-contributions.js +38 -0
- package/dist/framework/target-contributions.js.map +1 -1
- package/dist/framework/task-frames.js.map +1 -1
- package/dist/framework/text-target-output.d.ts +6 -0
- package/dist/framework/text-target-output.d.ts.map +1 -0
- package/dist/framework/text-target-output.js +14 -0
- package/dist/framework/text-target-output.js.map +1 -0
- package/dist/hydration-boundary.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inspection-transport.js.map +1 -1
- package/dist/interaction/execution.js.map +1 -1
- package/dist/json.js.map +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/localization/component-integration.js.map +1 -1
- package/dist/localization/context.js.map +1 -1
- package/dist/localization/contracts.js.map +1 -1
- package/dist/localization/facade.js.map +1 -1
- package/dist/localization/formatter-pool.js.map +1 -1
- package/dist/localization.js.map +1 -1
- package/dist/logging.js.map +1 -1
- package/dist/native-props.js.map +1 -1
- package/dist/protocol-utf8.js.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/render-children.js.map +1 -1
- package/dist/render-program.d.ts +4 -1
- package/dist/render-program.d.ts.map +1 -1
- package/dist/render-program.js +1 -1
- package/dist/render-program.js.map +1 -1
- package/dist/runtime/collections.js.map +1 -1
- package/dist/runtime/compatibility-component-abi.js.map +1 -1
- package/dist/runtime/component-abi.d.ts +3 -3
- package/dist/runtime/component-abi.d.ts.map +1 -1
- package/dist/runtime/component-abi.js +3 -3
- package/dist/runtime/component-abi.js.map +1 -1
- package/dist/runtime/component-construction/direct-server.js.map +1 -1
- package/dist/runtime/component-construction/durable.js.map +1 -1
- package/dist/runtime/component-construction/render.js.map +1 -1
- package/dist/runtime/component-construction/task.js.map +1 -1
- package/dist/runtime/component-execution.js.map +1 -1
- package/dist/runtime/component-operations.d.ts +3 -0
- package/dist/runtime/component-operations.d.ts.map +1 -1
- package/dist/runtime/component-operations.js +3 -0
- package/dist/runtime/component-operations.js.map +1 -1
- package/dist/runtime/component-reactivity.js.map +1 -1
- package/dist/runtime/component-tasks.js.map +1 -1
- package/dist/runtime/contexts.js.map +1 -1
- package/dist/runtime/dynamic-components.js.map +1 -1
- package/dist/runtime/enhancements.js.map +1 -1
- package/dist/runtime/inspection.js.map +1 -1
- package/dist/runtime/lifecycle.js.map +1 -1
- package/dist/runtime/lists.js.map +1 -1
- package/dist/runtime/localization.js.map +1 -1
- package/dist/runtime/logging.js.map +1 -1
- package/dist/runtime/reactivity.js.map +1 -1
- package/dist/runtime/refs.js.map +1 -1
- package/dist/runtime/registry.js.map +1 -1
- package/dist/runtime/render-operations.js.map +1 -1
- package/dist/runtime/render.js.map +1 -1
- package/dist/runtime/tasks.js.map +1 -1
- package/dist/server/activity.js.map +1 -1
- package/dist/server/children/composition.d.ts +34 -0
- package/dist/server/children/composition.d.ts.map +1 -0
- package/dist/server/children/composition.js +74 -0
- package/dist/server/children/composition.js.map +1 -0
- package/dist/server/children.d.ts +4 -0
- package/dist/server/children.d.ts.map +1 -0
- package/dist/server/children.js +3 -0
- package/dist/server/children.js.map +1 -0
- package/dist/server/class-values.js.map +1 -1
- package/dist/server/cleanup.js.map +1 -1
- package/dist/server/component/async-value.js.map +1 -1
- package/dist/server/component/async.js.map +1 -1
- package/dist/server/component/authorization.js.map +1 -1
- package/dist/server/component/compact-instance.js.map +1 -1
- package/dist/server/component/compiled-abi.js.map +1 -1
- package/dist/server/component/compiled-output.js.map +1 -1
- package/dist/server/component/construction.js.map +1 -1
- package/dist/server/component/context-api.js.map +1 -1
- package/dist/server/component/context-capability-integration.js.map +1 -1
- package/dist/server/component/context-capability.js.map +1 -1
- package/dist/server/component/context-inspection.js.map +1 -1
- package/dist/server/component/context-resumption.js.map +1 -1
- package/dist/server/component/contexts.js.map +1 -1
- package/dist/server/component/contract-versions.d.ts +2 -2
- package/dist/server/component/contract-versions.js +2 -2
- package/dist/server/component/contract-versions.js.map +1 -1
- package/dist/server/component/contracts.d.ts +4 -2
- package/dist/server/component/contracts.d.ts.map +1 -1
- package/dist/server/component/contracts.js.map +1 -1
- package/dist/server/component/default-logger.js.map +1 -1
- package/dist/server/component/derived.js.map +1 -1
- package/dist/server/component/direct-server-context-api.js.map +1 -1
- package/dist/server/component/direct-server-instance-construction.js.map +1 -1
- package/dist/server/component/domain.d.ts +2 -0
- package/dist/server/component/domain.d.ts.map +1 -1
- package/dist/server/component/domain.js +4 -0
- package/dist/server/component/domain.js.map +1 -1
- package/dist/server/component/durable-instance-construction.js.map +1 -1
- package/dist/server/component/element-identity.js.map +1 -1
- package/dist/server/component/error-boundary.js +2 -2
- package/dist/server/component/error-boundary.js.map +1 -1
- package/dist/server/component/error-view.js.map +1 -1
- package/dist/server/component/errors.js.map +1 -1
- package/dist/server/component/input-observation.js.map +1 -1
- package/dist/server/component/inspection-source.js.map +1 -1
- package/dist/server/component/inspection.js.map +1 -1
- package/dist/server/component/instance-construction.js.map +1 -1
- package/dist/server/component/instance-identity.js.map +1 -1
- package/dist/server/component/interaction-contracts.js.map +1 -1
- package/dist/server/component/lifecycle-handlers.js.map +1 -1
- package/dist/server/component/list-capability-integration.js.map +1 -1
- package/dist/server/component/list-capability.js.map +1 -1
- package/dist/server/component/list-controller.js.map +1 -1
- package/dist/server/component/localization-capability.js.map +1 -1
- package/dist/server/component/log.js.map +1 -1
- package/dist/server/component/logical-owner.d.ts.map +1 -1
- package/dist/server/component/logical-owner.js +3 -2
- package/dist/server/component/logical-owner.js.map +1 -1
- package/dist/server/component/ownership.js.map +1 -1
- package/dist/server/component/performance-trace.js.map +1 -1
- package/dist/server/component/plugins.js.map +1 -1
- package/dist/server/component/reactive-expression.js.map +1 -1
- package/dist/server/component/reactive-expressions.d.ts.map +1 -1
- package/dist/server/component/reactive-expressions.js +3 -2
- package/dist/server/component/reactive-expressions.js.map +1 -1
- package/dist/server/component/reactive-value.js.map +1 -1
- package/dist/server/component/readiness.js.map +1 -1
- package/dist/server/component/ref-capability-integration.js.map +1 -1
- package/dist/server/component/ref-capability.js.map +1 -1
- package/dist/server/component/ref-runtime.js.map +1 -1
- package/dist/server/component/render-instance-construction.js.map +1 -1
- package/dist/server/component/render-instance.js.map +1 -1
- package/dist/server/component/render.js.map +1 -1
- package/dist/server/component/resource-ownership.js.map +1 -1
- package/dist/server/component/resumption.js.map +1 -1
- package/dist/server/component/root-lifecycle.js.map +1 -1
- package/dist/server/component/runtime-construction.js.map +1 -1
- package/dist/server/component/runtime-surface-contexts.js.map +1 -1
- package/dist/server/component/runtime-surface-lifecycle.js.map +1 -1
- package/dist/server/component/runtime-surface-lists.js.map +1 -1
- package/dist/server/component/runtime-surface-localization.js.map +1 -1
- package/dist/server/component/runtime-surface-logging.js.map +1 -1
- package/dist/server/component/runtime-surface-reactivity.js.map +1 -1
- package/dist/server/component/runtime-surface-refs.js.map +1 -1
- package/dist/server/component/runtime-surface-registration.js.map +1 -1
- package/dist/server/component/runtime-surface.js.map +1 -1
- package/dist/server/component/runtime.d.ts +3 -0
- package/dist/server/component/runtime.d.ts.map +1 -1
- package/dist/server/component/runtime.js +32 -6
- package/dist/server/component/runtime.js.map +1 -1
- package/dist/server/component/state.js.map +1 -1
- package/dist/server/component/task-capability-integration.js +1 -0
- package/dist/server/component/task-capability-integration.js.map +1 -1
- package/dist/server/component/task-capability.js.map +1 -1
- package/dist/server/component/task-inspection-history.js.map +1 -1
- package/dist/server/component/task-instance-construction.js.map +1 -1
- package/dist/server/component/task-instance.js.map +1 -1
- package/dist/server/component/task-observer.js.map +1 -1
- package/dist/server/component/task-owner-integration.js.map +1 -1
- package/dist/server/component/value-contracts.js.map +1 -1
- package/dist/server/component-abi/activity-receipt.js.map +1 -1
- package/dist/server/component-abi/artifact.js.map +1 -1
- package/dist/server/component-abi/child-range-receipt.js.map +1 -1
- package/dist/server/component-abi/client.d.ts +2 -1
- package/dist/server/component-abi/client.d.ts.map +1 -1
- package/dist/server/component-abi/client.js.map +1 -1
- package/dist/server/component-abi/compatibility-contribution.js.map +1 -1
- package/dist/server/component-abi/compiled-child-range.d.ts.map +1 -1
- package/dist/server/component-abi/compiled-child-range.js +6 -1
- package/dist/server/component-abi/compiled-child-range.js.map +1 -1
- package/dist/server/component-abi/compiled-runtime.js.map +1 -1
- package/dist/server/component-abi/executable-fields.js.map +1 -1
- package/dist/server/component-abi/fragment-receipt.d.ts +20 -0
- package/dist/server/component-abi/fragment-receipt.d.ts.map +1 -1
- package/dist/server/component-abi/fragment-receipt.js +35 -5
- package/dist/server/component-abi/fragment-receipt.js.map +1 -1
- package/dist/server/component-abi/intrinsic-receipt.d.ts +10 -0
- package/dist/server/component-abi/intrinsic-receipt.d.ts.map +1 -1
- package/dist/server/component-abi/intrinsic-receipt.js +44 -6
- package/dist/server/component-abi/intrinsic-receipt.js.map +1 -1
- package/dist/server/component-abi/keyed-child-receipt.js.map +1 -1
- package/dist/server/component-abi/opaque-operation.d.ts.map +1 -1
- package/dist/server/component-abi/opaque-operation.js +36 -3
- package/dist/server/component-abi/opaque-operation.js.map +1 -1
- package/dist/server/component-abi/portal-receipt.js.map +1 -1
- package/dist/server/component-abi/receipt.d.ts +7 -0
- package/dist/server/component-abi/receipt.d.ts.map +1 -1
- package/dist/server/component-abi/receipt.js +9 -0
- package/dist/server/component-abi/receipt.js.map +1 -1
- package/dist/server/component-abi/runtime.js.map +1 -1
- package/dist/server/component-abi/server-child-range.js +1 -1
- package/dist/server/component-abi/server-child-range.js.map +1 -1
- package/dist/server/component-abi/server-keyed-child.js.map +1 -1
- package/dist/server/component-abi/server-runtime.js.map +1 -1
- package/dist/server/component-abi/server-structure-receipts.js.map +1 -1
- package/dist/server/component-abi/server.d.ts +2 -1
- package/dist/server/component-abi/server.d.ts.map +1 -1
- package/dist/server/component-abi/server.js.map +1 -1
- package/dist/server/component-abi/suspense-receipt.js.map +1 -1
- package/dist/server/component-abi/target-receipt.d.ts +23 -1
- package/dist/server/component-abi/target-receipt.d.ts.map +1 -1
- package/dist/server/component-abi/target-receipt.js +46 -5
- package/dist/server/component-abi/target-receipt.js.map +1 -1
- package/dist/server/component-abi/text-projection-markup.d.ts +16 -0
- package/dist/server/component-abi/text-projection-markup.d.ts.map +1 -0
- package/dist/server/component-abi/text-projection-markup.js +110 -0
- package/dist/server/component-abi/text-projection-markup.js.map +1 -0
- package/dist/server/component-abi/text-projection.d.ts +12 -0
- package/dist/server/component-abi/text-projection.d.ts.map +1 -0
- package/dist/server/component-abi/text-projection.js +79 -0
- package/dist/server/component-abi/text-projection.js.map +1 -0
- package/dist/server/component-abi/unsafe-html-receipt.js.map +1 -1
- package/dist/server/component-abi/value-serialization.js.map +1 -1
- package/dist/server/component-contract/boundary-validation.js.map +1 -1
- package/dist/server/component-contract/composition-support.js.map +1 -1
- package/dist/server/component-contract/continuation-validation.js.map +1 -1
- package/dist/server/component-contract/contract-cache.js.map +1 -1
- package/dist/server/component-contract/contract-validation.d.ts.map +1 -1
- package/dist/server/component-contract/contract-validation.js +5 -13
- package/dist/server/component-contract/contract-validation.js.map +1 -1
- package/dist/server/component-contract/metadata-validation.d.ts +4 -0
- package/dist/server/component-contract/metadata-validation.d.ts.map +1 -1
- package/dist/server/component-contract/metadata-validation.js +16 -0
- package/dist/server/component-contract/metadata-validation.js.map +1 -1
- package/dist/server/component-contract/server-execution-validation.js.map +1 -1
- package/dist/server/component-contracts.d.ts +4 -3
- package/dist/server/component-contracts.d.ts.map +1 -1
- package/dist/server/component-contracts.js +7 -1
- package/dist/server/component-contracts.js.map +1 -1
- package/dist/server/component-definition-contracts.js.map +1 -1
- package/dist/server/component-registry/contracts.js.map +1 -1
- package/dist/server/component-registry/creation.d.ts.map +1 -1
- package/dist/server/component-registry/creation.js +4 -3
- package/dist/server/component-registry/creation.js.map +1 -1
- package/dist/server/component-registry/errors.js.map +1 -1
- package/dist/server/component-registry/loading.js.map +1 -1
- package/dist/server/component-registry/operations.js.map +1 -1
- package/dist/server/component-registry/storage.js.map +1 -1
- package/dist/server/component-registry/syntax.js.map +1 -1
- package/dist/server/document/composition.d.ts +7 -0
- package/dist/server/document/composition.d.ts.map +1 -0
- package/dist/server/document/composition.js +52 -0
- package/dist/server/document/composition.js.map +1 -0
- package/dist/server/document/definition.d.ts +10 -0
- package/dist/server/document/definition.d.ts.map +1 -0
- package/dist/server/document/definition.js +3 -0
- package/dist/server/document/definition.js.map +1 -0
- package/dist/server/document/doctype.d.ts +17 -0
- package/dist/server/document/doctype.d.ts.map +1 -0
- package/dist/server/document/doctype.js +35 -0
- package/dist/server/document/doctype.js.map +1 -0
- package/dist/server/document/output.d.ts +22 -0
- package/dist/server/document/output.d.ts.map +1 -0
- package/dist/server/document/output.js +30 -0
- package/dist/server/document/output.js.map +1 -0
- package/dist/server/document.d.ts +6 -0
- package/dist/server/document.d.ts.map +1 -0
- package/dist/server/document.js +5 -0
- package/dist/server/document.js.map +1 -0
- package/dist/server/dynamic-component/contracts.js.map +1 -1
- package/dist/server/dynamic-component/creation.js.map +1 -1
- package/dist/server/dynamic-component/runtime.js.map +1 -1
- package/dist/server/enhancements.d.ts +2 -0
- package/dist/server/enhancements.d.ts.map +1 -1
- package/dist/server/enhancements.js +8 -4
- package/dist/server/enhancements.js.map +1 -1
- package/dist/server/framework/async-values.js.map +1 -1
- package/dist/server/framework/compatibility-contributions.js.map +1 -1
- package/dist/server/framework/component-contract-validation.js.map +1 -1
- package/dist/server/framework/component-contracts.js.map +1 -1
- package/dist/server/framework/component-domains.js.map +1 -1
- package/dist/server/framework/component-execution.js.map +1 -1
- package/dist/server/framework/component-lifecycle.js.map +1 -1
- package/dist/server/framework/component-roots.js.map +1 -1
- package/dist/server/framework/enhancement-catalog.js.map +1 -1
- package/dist/server/framework/enhancement-fallback.d.ts +12 -0
- package/dist/server/framework/enhancement-fallback.d.ts.map +1 -0
- package/dist/server/framework/enhancement-fallback.js +41 -0
- package/dist/server/framework/enhancement-fallback.js.map +1 -0
- package/dist/server/framework/enhancement-order.d.ts +9 -0
- package/dist/server/framework/enhancement-order.d.ts.map +1 -0
- package/dist/server/framework/enhancement-order.js +34 -0
- package/dist/server/framework/enhancement-order.js.map +1 -0
- package/dist/server/framework/error-format.js.map +1 -1
- package/dist/server/framework/error-view.js.map +1 -1
- package/dist/server/framework/fragment-enhancement-chain.d.ts +4 -0
- package/dist/server/framework/fragment-enhancement-chain.d.ts.map +1 -0
- package/dist/server/framework/fragment-enhancement-chain.js +28 -0
- package/dist/server/framework/fragment-enhancement-chain.js.map +1 -0
- package/dist/server/framework/fragment-hosts.d.ts +30 -0
- package/dist/server/framework/fragment-hosts.d.ts.map +1 -0
- package/dist/server/framework/fragment-hosts.js +65 -0
- package/dist/server/framework/fragment-hosts.js.map +1 -0
- package/dist/server/framework/fragment-target-projection.d.ts +8 -0
- package/dist/server/framework/fragment-target-projection.d.ts.map +1 -0
- package/dist/server/framework/fragment-target-projection.js +98 -0
- package/dist/server/framework/fragment-target-projection.js.map +1 -0
- package/dist/server/framework/inspection-transport.js.map +1 -1
- package/dist/server/framework/operation-protocol.js.map +1 -1
- package/dist/server/framework/prepared-target-output.d.ts +11 -0
- package/dist/server/framework/prepared-target-output.d.ts.map +1 -0
- package/dist/server/framework/prepared-target-output.js +51 -0
- package/dist/server/framework/prepared-target-output.js.map +1 -0
- package/dist/server/framework/protocol-records.js.map +1 -1
- package/dist/server/framework/publication.js.map +1 -1
- package/dist/server/framework/render-structure.d.ts +10 -0
- package/dist/server/framework/render-structure.d.ts.map +1 -1
- package/dist/server/framework/render-structure.js +10 -0
- package/dist/server/framework/render-structure.js.map +1 -1
- package/dist/server/framework/server-component-contexts.js.map +1 -1
- package/dist/server/framework/server-component-execution.js.map +1 -1
- package/dist/server/framework/server-render-structure.js.map +1 -1
- package/dist/server/framework/server-task-helpers.d.ts +1 -0
- package/dist/server/framework/server-task-helpers.d.ts.map +1 -1
- package/dist/server/framework/server-task-helpers.js +1 -0
- package/dist/server/framework/server-task-helpers.js.map +1 -1
- package/dist/server/framework/supplied-placement.d.ts +8 -0
- package/dist/server/framework/supplied-placement.d.ts.map +1 -0
- package/dist/server/framework/supplied-placement.js +80 -0
- package/dist/server/framework/supplied-placement.js.map +1 -0
- package/dist/server/framework/target-contributions.d.ts +2 -0
- package/dist/server/framework/target-contributions.d.ts.map +1 -1
- package/dist/server/framework/target-contributions.js +38 -0
- package/dist/server/framework/target-contributions.js.map +1 -1
- package/dist/server/framework/task-frames.js.map +1 -1
- package/dist/server/framework/text-target-output.d.ts +6 -0
- package/dist/server/framework/text-target-output.d.ts.map +1 -0
- package/dist/server/framework/text-target-output.js +14 -0
- package/dist/server/framework/text-target-output.js.map +1 -0
- package/dist/server/hydration-boundary.js.map +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/inspection-transport.js.map +1 -1
- package/dist/server/interaction/execution.js.map +1 -1
- package/dist/server/json.js.map +1 -1
- package/dist/server/keys.js.map +1 -1
- package/dist/server/localization/component-integration.js.map +1 -1
- package/dist/server/localization/context.js.map +1 -1
- package/dist/server/localization/contracts.js.map +1 -1
- package/dist/server/localization/facade.js.map +1 -1
- package/dist/server/localization/formatter-pool.js.map +1 -1
- package/dist/server/localization.js.map +1 -1
- package/dist/server/logging.js.map +1 -1
- package/dist/server/native-props.js.map +1 -1
- package/dist/server/protocol-utf8.js.map +1 -1
- package/dist/server/protocol.js.map +1 -1
- package/dist/server/render-children.js.map +1 -1
- package/dist/server/render-program.d.ts +4 -1
- package/dist/server/render-program.d.ts.map +1 -1
- package/dist/server/render-program.js +1 -1
- package/dist/server/render-program.js.map +1 -1
- package/dist/server/runtime/collections.js.map +1 -1
- package/dist/server/runtime/compatibility-component-abi.js.map +1 -1
- package/dist/server/runtime/component-abi.d.ts +3 -3
- package/dist/server/runtime/component-abi.d.ts.map +1 -1
- package/dist/server/runtime/component-abi.js +3 -3
- package/dist/server/runtime/component-abi.js.map +1 -1
- package/dist/server/runtime/component-construction/direct-server.js.map +1 -1
- package/dist/server/runtime/component-construction/durable.js.map +1 -1
- package/dist/server/runtime/component-construction/render.js.map +1 -1
- package/dist/server/runtime/component-construction/task.js.map +1 -1
- package/dist/server/runtime/component-execution.js.map +1 -1
- package/dist/server/runtime/component-operations.d.ts +3 -0
- package/dist/server/runtime/component-operations.d.ts.map +1 -1
- package/dist/server/runtime/component-operations.js +3 -0
- package/dist/server/runtime/component-operations.js.map +1 -1
- package/dist/server/runtime/component-reactivity.js.map +1 -1
- package/dist/server/runtime/component-tasks.js.map +1 -1
- package/dist/server/runtime/contexts.js.map +1 -1
- package/dist/server/runtime/dynamic-components.js.map +1 -1
- package/dist/server/runtime/enhancements.js.map +1 -1
- package/dist/server/runtime/inspection.js.map +1 -1
- package/dist/server/runtime/lifecycle.js.map +1 -1
- package/dist/server/runtime/lists.js.map +1 -1
- package/dist/server/runtime/localization.js.map +1 -1
- package/dist/server/runtime/logging.js.map +1 -1
- package/dist/server/runtime/reactivity.js.map +1 -1
- package/dist/server/runtime/refs.js.map +1 -1
- package/dist/server/runtime/registry.js.map +1 -1
- package/dist/server/runtime/render-operations.js.map +1 -1
- package/dist/server/runtime/render.js.map +1 -1
- package/dist/server/runtime/tasks.js.map +1 -1
- package/dist/server/server-render-program.js.map +1 -1
- package/dist/server/ssr-independence.js.map +1 -1
- package/dist/server/symbols.js.map +1 -1
- package/dist/server/tasks/activation.js.map +1 -1
- package/dist/server/tasks/cancellation.js.map +1 -1
- package/dist/server/tasks/compiled-latest.js.map +1 -1
- package/dist/server/tasks/component-continuation.js.map +1 -1
- package/dist/server/tasks/component-execution-capability.js.map +1 -1
- package/dist/server/tasks/component-execution-plan.js.map +1 -1
- package/dist/server/tasks/component-execution-slice.js.map +1 -1
- package/dist/server/tasks/component-execution.js.map +1 -1
- package/dist/server/tasks/computation-activation.js.map +1 -1
- package/dist/server/tasks/continuations.js.map +1 -1
- package/dist/server/tasks/contracts.js.map +1 -1
- package/dist/server/tasks/definition-record.js.map +1 -1
- package/dist/server/tasks/dependency-provenance.js.map +1 -1
- package/dist/server/tasks/dependency-source.js.map +1 -1
- package/dist/server/tasks/dependency-watcher.js.map +1 -1
- package/dist/server/tasks/frame-context.js.map +1 -1
- package/dist/server/tasks/frame-continuation.js.map +1 -1
- package/dist/server/tasks/frame-contracts.js.map +1 -1
- package/dist/server/tasks/frame-inspection-capability.js.map +1 -1
- package/dist/server/tasks/frame-inspection.js.map +1 -1
- package/dist/server/tasks/frame-runtime.js.map +1 -1
- package/dist/server/tasks/frame-settlement.js.map +1 -1
- package/dist/server/tasks/generation-execution.js.map +1 -1
- package/dist/server/tasks/invocation.js.map +1 -1
- package/dist/server/tasks/observers.js.map +1 -1
- package/dist/server/tasks/optimism.js.map +1 -1
- package/dist/server/tasks/options.js.map +1 -1
- package/dist/server/tasks/owner-activations.js.map +1 -1
- package/dist/server/tasks/owner-hosts.js.map +1 -1
- package/dist/server/tasks/owner-record.js.map +1 -1
- package/dist/server/tasks/owners.js.map +1 -1
- package/dist/server/tasks/performance-trace.js.map +1 -1
- package/dist/server/tasks/policy.js.map +1 -1
- package/dist/server/tasks/priority.js.map +1 -1
- package/dist/server/tasks/public.js.map +1 -1
- package/dist/server/tasks/resources.js.map +1 -1
- package/dist/server/tasks/runtime-types.js.map +1 -1
- package/dist/server/tasks/runtime.js.map +1 -1
- package/dist/server/tasks/scheduled-reactions.js.map +1 -1
- package/dist/server/tasks/server-component-execution-contracts.js.map +1 -1
- package/dist/server/tasks/server-component-execution.d.ts +3 -0
- package/dist/server/tasks/server-component-execution.d.ts.map +1 -1
- package/dist/server/tasks/server-component-execution.js +16 -46
- package/dist/server/tasks/server-component-execution.js.map +1 -1
- package/dist/server/tasks/server-component-resources.js.map +1 -1
- package/dist/server/tasks/server-component-task-slice.d.ts +5 -0
- package/dist/server/tasks/server-component-task-slice.d.ts.map +1 -0
- package/dist/server/tasks/server-component-task-slice.js +56 -0
- package/dist/server/tasks/server-component-task-slice.js.map +1 -0
- package/dist/server/tasks/server-component-task-tree.d.ts +9 -0
- package/dist/server/tasks/server-component-task-tree.d.ts.map +1 -0
- package/dist/server/tasks/server-component-task-tree.js +38 -0
- package/dist/server/tasks/server-component-task-tree.js.map +1 -0
- package/dist/server/tasks/server-task-readiness.js.map +1 -1
- package/dist/server/tasks/signals.js.map +1 -1
- package/dist/server/tasks/status.js.map +1 -1
- package/dist/server/tasks/v1.js.map +1 -1
- package/dist/server/testing/runtime-artifacts.d.ts.map +1 -1
- package/dist/server/testing/runtime-artifacts.js +4 -3
- package/dist/server/testing/runtime-artifacts.js.map +1 -1
- package/dist/server/testing/runtime.d.ts.map +1 -1
- package/dist/server/testing/runtime.js +4 -2
- package/dist/server/testing/runtime.js.map +1 -1
- package/dist/server/testing.js.map +1 -1
- package/dist/server/url.js.map +1 -1
- package/dist/server-render-program.js.map +1 -1
- package/dist/ssr-independence.js.map +1 -1
- package/dist/symbols.js.map +1 -1
- package/dist/tasks/activation.js.map +1 -1
- package/dist/tasks/cancellation.js.map +1 -1
- package/dist/tasks/compiled-latest.js.map +1 -1
- package/dist/tasks/component-continuation.js.map +1 -1
- package/dist/tasks/component-execution-capability.js.map +1 -1
- package/dist/tasks/component-execution-plan.js.map +1 -1
- package/dist/tasks/component-execution-slice.js.map +1 -1
- package/dist/tasks/component-execution.js.map +1 -1
- package/dist/tasks/computation-activation.js.map +1 -1
- package/dist/tasks/continuations.js.map +1 -1
- package/dist/tasks/contracts.js.map +1 -1
- package/dist/tasks/definition-record.js.map +1 -1
- package/dist/tasks/dependency-provenance.js.map +1 -1
- package/dist/tasks/dependency-source.js.map +1 -1
- package/dist/tasks/dependency-watcher.js.map +1 -1
- package/dist/tasks/frame-context.js.map +1 -1
- package/dist/tasks/frame-continuation.js.map +1 -1
- package/dist/tasks/frame-contracts.js.map +1 -1
- package/dist/tasks/frame-inspection-capability.js.map +1 -1
- package/dist/tasks/frame-inspection.js.map +1 -1
- package/dist/tasks/frame-runtime.js.map +1 -1
- package/dist/tasks/frame-settlement.js.map +1 -1
- package/dist/tasks/generation-execution.js.map +1 -1
- package/dist/tasks/invocation.js.map +1 -1
- package/dist/tasks/observers.js.map +1 -1
- package/dist/tasks/optimism.js.map +1 -1
- package/dist/tasks/options.js.map +1 -1
- package/dist/tasks/owner-activations.js.map +1 -1
- package/dist/tasks/owner-hosts.js.map +1 -1
- package/dist/tasks/owner-record.js.map +1 -1
- package/dist/tasks/owners.js.map +1 -1
- package/dist/tasks/performance-trace.js.map +1 -1
- package/dist/tasks/policy.js.map +1 -1
- package/dist/tasks/priority.js.map +1 -1
- package/dist/tasks/public.js.map +1 -1
- package/dist/tasks/resources.js.map +1 -1
- package/dist/tasks/runtime-types.js.map +1 -1
- package/dist/tasks/runtime.js.map +1 -1
- package/dist/tasks/scheduled-reactions.js.map +1 -1
- package/dist/tasks/server-component-execution-contracts.js.map +1 -1
- package/dist/tasks/server-component-execution.d.ts +3 -0
- package/dist/tasks/server-component-execution.d.ts.map +1 -1
- package/dist/tasks/server-component-execution.js +16 -46
- package/dist/tasks/server-component-execution.js.map +1 -1
- package/dist/tasks/server-component-resources.js.map +1 -1
- package/dist/tasks/server-component-task-slice.d.ts +5 -0
- package/dist/tasks/server-component-task-slice.d.ts.map +1 -0
- package/dist/tasks/server-component-task-slice.js +56 -0
- package/dist/tasks/server-component-task-slice.js.map +1 -0
- package/dist/tasks/server-component-task-tree.d.ts +9 -0
- package/dist/tasks/server-component-task-tree.d.ts.map +1 -0
- package/dist/tasks/server-component-task-tree.js +38 -0
- package/dist/tasks/server-component-task-tree.js.map +1 -0
- package/dist/tasks/server-task-readiness.js.map +1 -1
- package/dist/tasks/signals.js.map +1 -1
- package/dist/tasks/status.js.map +1 -1
- package/dist/tasks/v1.js.map +1 -1
- package/dist/testing/runtime-artifacts.d.ts.map +1 -1
- package/dist/testing/runtime-artifacts.js +4 -3
- package/dist/testing/runtime-artifacts.js.map +1 -1
- package/dist/testing/runtime.d.ts.map +1 -1
- package/dist/testing/runtime.js +4 -2
- package/dist/testing/runtime.js.map +1 -1
- package/dist/testing.js.map +1 -1
- package/dist/url.js.map +1 -1
- package/package.json +12 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-lifecycle.js","sourceRoot":"","sources":["../../src/component/root-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAyBtE,MAAM,cAAc,GAAG,IAAI,OAAO,EAA6C,CAAC;AAChF,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAA2C,CAAC;AAEjF,4EAA4E;AAC5E,MAAM,UAAU,sBAAsB,CACrC,QAA8B;IAE9B,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpC,OAAO,WAAW,CAAC,MAAM,CAAqB,CAAC;AAChD,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,iBAAiB,CAChC,QAA8B,EAC9B,OAAsB;IAEtB,IAAI,OAAO,CAAC,KAAK,KAAK,QAAQ;QAC7B,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;IACzF,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO;QACjD,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC1E,MAAM,CAAC,QAAQ,GAAG,OAA6B,CAAC;IAChD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,OAA6B,CAAC,CAAC;IACtE,IAAI,QAAQ;QAAE,OAAO,QAA0B,CAAC;IAChD,MAAM,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE;QAClD,UAAU,EA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AM,CAAC,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,KAAK,EAAE;QAC3D,eAAe,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;KACvC,CAAC,CAAC,CAAC;IACJ,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC;QACxC,IAAI,OAAO;YACV,OAAO,KAAK,CAAC,OAAO,CAAC;QACtB,CAAC;QACD,IAAI,UAAU;YACb,OAAO,KAAK,CAAC,UAAU,CAAC;QACzB,CAAC;QACD,IAAI,YAAY;YACf,OAAO,KAAK,CAAC,YAAY,CAAC;QAC3B,CAAC;QACD,IAAI,SAAS;YACZ,OAAO,KAAK,CAAC,SAAS,CAAC;QACxB,CAAC;QACD,IAAI,OAAO;YACV,OAAO,KAAK,CAAC,OAAO,CAAC;QACtB,CAAC;KACD,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { reactiveObjects } from '@exactjs/reactive/framework/objects';\nimport type {\n\tAnyComponentInstance,\n\tRefBinding,\n\tRootBinding,\n\tRootLifecycle,\n\tRootIntroduction,\n\tRootRelease,\n\tStructuralReleaseReason\n} from './contracts.js';\n\ntype RootState = {\n\tcurrent: object | undefined;\n\tgeneration: number;\n\tintroduction: RootIntroduction | undefined;\n\tpresented: boolean;\n\trelease: RootRelease<object> | undefined;\n};\n\ntype ComponentRootRecord = {\n\tlifecycle: RootLifecycle<object> | undefined;\n\tstate: RootState;\n\texplicit?: RefBinding<object>;\n};\n\nconst componentRoots = new WeakMap<AnyComponentInstance, ComponentRootRecord>();\nconst augmentedBindings = new WeakMap<RefBinding<object>, RootBinding<object>>();\n\n/** Returns the stable reactive intrinsic-root lifecycle for a component. */\nexport function componentRootLifecycle<T extends object>(\n\tinstance: AnyComponentInstance\n): RootLifecycle<T> {\n\tconst record = rootRecord(instance);\n\treturn observeRoot(record) as RootLifecycle<T>;\n}\n\n/** Selects one stable element ref as the component's explicit intrinsic root. */\nexport function bindComponentRoot<T extends object>(\n\tinstance: AnyComponentInstance,\n\tbinding: RefBinding<T>\n): RootBinding<T> {\n\tif (binding.owner !== instance)\n\t\tthrow new Error('A component root binding must be owned by the component selecting it');\n\tconst record = rootRecord(instance);\n\tconst lifecycle = observeRoot(record);\n\tif (record.explicit && record.explicit !== binding)\n\t\tthrow new Error('A component may select only one explicit root binding');\n\trecord.explicit = binding as RefBinding<object>;\n\tconst existing = augmentedBindings.get(binding as RefBinding<object>);\n\tif (existing) return existing as RootBinding<T>;\n\tconst augmented = Object.defineProperties(binding, {\n\t\tgeneration: { enumerable: true, get: () => lifecycle.generation },\n\t\tintroduction: { enumerable: true, get: () => lifecycle.introduction },\n\t\tpresented: { enumerable: true, get: () => lifecycle.presented },\n\t\trelease: { enumerable: true, get: () => lifecycle.release }\n\t}) as RootBinding<T>;\n\taugmentedBindings.set(binding as RefBinding<object>, augmented as RootBinding<object>);\n\treturn augmented;\n}\n\n/** Publishes the current renderer-discovered intrinsic root for a component. */\nexport function publishComponentRoot(\n\tinstance: AnyComponentInstance,\n\tdiscovered: object | undefined,\n\tpresented = true,\n\tintroduction: RootIntroduction = 'update'\n): void {\n\tconst record = rootRecord(instance);\n\tconst selected = record.explicit?.current ?? discovered;\n\tif (record.state.current !== selected) {\n\t\trecord.state.current = selected;\n\t\trecord.state.generation++;\n\t\trecord.state.introduction = selected ? introduction : undefined;\n\t\trecord.state.release = undefined;\n\t}\n\trecord.state.presented = selected !== undefined && presented;\n}\n\n/** Publishes whether a retained component root belongs to the presented logical range. */\nexport function publishComponentRootPresentation(\n\tinstance: AnyComponentInstance,\n\tpresented: boolean\n): void {\n\tconst record = componentRoots.get(instance);\n\tif (record) record.state.presented = record.state.current !== undefined && presented;\n}\n\n/** Reports whether authored component work observes this root lifecycle. */\nexport function componentRootReleaseObserved(instance: AnyComponentInstance): boolean {\n\treturn componentRoots.get(instance)?.lifecycle !== undefined;\n}\n\n/** Publishes structural loss of the current root generation without discarding its target. */\nexport function publishComponentRootRelease(\n\tinstance: AnyComponentInstance,\n\treason: StructuralReleaseReason\n): RootRelease<object> | undefined {\n\tconst record = componentRoots.get(instance);\n\tconst target = record?.state.current;\n\tif (!record?.lifecycle || !target) return undefined;\n\tconst release = Object.freeze({\n\t\ttarget,\n\t\tgeneration: record.state.generation,\n\t\treason,\n\t\tpresented: record.state.presented\n\t}) satisfies RootRelease<object>;\n\trecord.state.release = release;\n\trecord.state.current = undefined;\n\trecord.state.presented = false;\n\treturn release;\n}\n\n/** Restores an exactly retained root generation after its structural release is reversed. */\nexport function reverseComponentRootRelease(\n\tinstance: AnyComponentInstance,\n\tgeneration: number\n): boolean {\n\tconst record = componentRoots.get(instance);\n\tconst release = record?.state.release;\n\tif (!record || !release || release.generation !== generation) return false;\n\trecord.state.current = release.target;\n\trecord.state.presented = release.presented;\n\trecord.state.release = undefined;\n\treturn true;\n}\n\n/** Clears a settled release when it still belongs to the specified root generation. */\nexport function settleComponentRootRelease(\n\tinstance: AnyComponentInstance,\n\tgeneration: number\n): void {\n\tconst record = componentRoots.get(instance);\n\tif (record?.state.release?.generation === generation) record.state.release = undefined;\n}\n\n/** Discards root lifecycle state after final component disposal. */\nexport function disposeComponentRoot(instance: AnyComponentInstance): void {\n\tconst record = componentRoots.get(instance);\n\tif (record) {\n\t\trecord.state.current = undefined;\n\t\trecord.state.introduction = undefined;\n\t\trecord.state.presented = false;\n\t\trecord.state.release = undefined;\n\t}\n\tcomponentRoots.delete(instance);\n}\n\n/** Retains root history on first publication, deferring reactive machinery until observation. */\nfunction rootRecord(instance: AnyComponentInstance): ComponentRootRecord {\n\tconst existing = componentRoots.get(instance);\n\tif (existing) return existing;\n\tconst record: ComponentRootRecord = {\n\t\tlifecycle: undefined,\n\t\tstate: {\n\t\t\tcurrent: undefined,\n\t\t\tgeneration: 0,\n\t\t\tintroduction: undefined,\n\t\t\tpresented: false,\n\t\t\trelease: undefined\n\t\t}\n\t};\n\tcomponentRoots.set(instance, record);\n\treturn record;\n}\n\n/** Promotes retained root history to reactive state only when an author observes the lifecycle. */\nfunction observeRoot(record: ComponentRootRecord): RootLifecycle<object> {\n\tif (record.lifecycle) return record.lifecycle;\n\t// Preserve earlier renderer publications so a late observer sees the current generation.\n\tconst state = (record.state = reactiveObjects(record.state, {\n\t\tpassthroughKeys: ['current', 'release']\n\t}));\n\treturn (record.lifecycle = Object.freeze({\n\t\tget current() {\n\t\t\treturn state.current;\n\t\t},\n\t\tget generation() {\n\t\t\treturn state.generation;\n\t\t},\n\t\tget introduction() {\n\t\t\treturn state.introduction;\n\t\t},\n\t\tget presented() {\n\t\t\treturn state.presented;\n\t\t},\n\t\tget release() {\n\t\t\treturn state.release;\n\t\t}\n\t}));\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-construction.js","sourceRoot":"","sources":["../../src/component/runtime-construction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,4CAA4C,EAC5C,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,sFAAsF;AACtF,MAAM,UAAU,uBAAuB,CAItC,IAAqC,EACrC,QAAe,EACf,MAA6B,EAC7B,kBAAsD,MAAM,EAAE,eAAe,EAC7E,MAAM,GAAG,MAAM,EAAE,MAAM,IAAI,mBAAmB,EAC9C,WAA6C,4CAA4C,CAAC,IAAI,CAAC;IAE/F,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,CACjC,MAAM,EACN,QAAQ,EACR,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACoB,CAAC;AAC/B,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,+BAA+B,CAI9C,IAAqC,EACrC,QAAe,EACf,SAAiD,EACjD,MAA6B,EAC7B,kBAAsD,MAAM,EAAE,eAAe,EAC7E,MAAM,GAAG,MAAM,EAAE,MAAM,IAAI,mBAAmB;IAE9C,MAAM,QAAQ,GAAG,4CAA4C,CAAC,IAAI,CAAC,CAAC;IACpE,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,CACjC,MAAM,EACN,QAAQ,EACR,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACoB,CAAC;AAC/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-construction.js","sourceRoot":"","sources":["../../src/component/runtime-construction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,4CAA4C,EAC5C,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,sFAAsF;AACtF,MAAM,UAAU,uBAAuB,CAItC,IAAqC,EACrC,QAAe,EACf,MAA6B,EAC7B,kBAAsD,MAAM,EAAE,eAAe,EAC7E,MAAM,GAAG,MAAM,EAAE,MAAM,IAAI,mBAAmB,EAC9C,WAA6C,4CAA4C,CAAC,IAAI,CAAC;IAE/F,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,CACjC,MAAM,EACN,QAAQ,EACR,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACoB,CAAC;AAC/B,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,+BAA+B,CAI9C,IAAqC,EACrC,QAAe,EACf,SAAiD,EACjD,MAA6B,EAC7B,kBAAsD,MAAM,EAAE,eAAe,EAC7E,MAAM,GAAG,MAAM,EAAE,MAAM,IAAI,mBAAmB;IAE9C,MAAM,QAAQ,GAAG,4CAA4C,CAAC,IAAI,CAAC,CAAC;IACpE,OAAO,QAAQ,CAAC,QAAQ,CAAC,SAAS,CACjC,MAAM,EACN,QAAQ,EACR,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACoB,CAAC;AAC/B,CAAC","sourcesContent":["import {\n\ttype ExactExecutableComponentContract,\n\treadPreparedExactExecutableComponentContract\n} from '../component-contracts.js';\nimport type { PreparedComponentExecution } from '../tasks/component-execution-plan.js';\nimport type {\n\tAnyComponentInstance,\n\tComponentContextValues,\n\tComponentFunction,\n\tComponentInstance\n} from './contracts.js';\nimport { pageComponentDomain } from './domain.js';\n\n/** Creates a native instance through mandatory artifact-owned construction wiring. */\nexport function createComponentInstance<\n\tState extends object,\n\tProps extends Record<string, unknown>\n>(\n\ttype: ComponentFunction<State, Props>,\n\trawProps: Props,\n\tparent?: AnyComponentInstance,\n\tambientContexts: ComponentContextValues | undefined = parent?.ambientContexts,\n\tdomain = parent?.domain ?? pageComponentDomain,\n\tcontract: ExactExecutableComponentContract = readPreparedExactExecutableComponentContract(type)\n): ComponentInstance<State> {\n\treturn contract.artifact.construct(\n\t\tparent,\n\t\trawProps,\n\t\tambientContexts,\n\t\tdomain,\n\t\tundefined,\n\t\tcontract\n\t) as ComponentInstance<State>;\n}\n\n/** Creates an instance using a previously validated and indexed compiler execution plan. */\nexport function createPreparedComponentInstance<\n\tState extends object,\n\tProps extends Record<string, unknown>\n>(\n\ttype: ComponentFunction<State, Props>,\n\trawProps: Props,\n\texecution: PreparedComponentExecution | undefined,\n\tparent?: AnyComponentInstance,\n\tambientContexts: ComponentContextValues | undefined = parent?.ambientContexts,\n\tdomain = parent?.domain ?? pageComponentDomain\n): ComponentInstance<State> {\n\tconst contract = readPreparedExactExecutableComponentContract(type);\n\treturn contract.artifact.construct(\n\t\tparent,\n\t\trawProps,\n\t\tambientContexts,\n\t\tdomain,\n\t\texecution,\n\t\tcontract\n\t) as ComponentInstance<State>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-contexts.js","sourceRoot":"","sources":["../../src/component/runtime-surface-contexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,SAAS,UAAU,CAA6B,KAA4B;IAC3E,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACxC,MAAM,UAAU,GAAG,0BAA0B,EAAE,CAAC;IAChD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AAE,KAAK,EAAE,UAAU,EAAE;IACrE,UAAU,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;IACrE,UAAU,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;CACrE,CAAC,CAAC","sourcesContent":["import type { Reactive } from '@exactjs/reactive/framework/runtime';\nimport { componentContextCapability } from './context-capability.js';\nimport type { AnyComponentInstance, ContextToken } from './contracts.js';\nimport { registerComponentRuntimeSurface } from './runtime-surface-registration.js';\n\nfunction hasContext(this: AnyComponentInstance, token: ContextToken<unknown>): boolean {\n\tthis.contextTokens.set(token.id, token);\n\tconst capability = componentContextCapability();\n\tcapability.publish(this, token, 'read');\n\treturn capability.has(this, this.ambientContexts, token);\n}\n\nfunction getContext<T>(this: AnyComponentInstance, token: ContextToken<T>): Reactive<T> {\n\tthis.contextTokens.set(token.id, token);\n\tconst capability = componentContextCapability();\n\tcapability.publish(this, token, 'read');\n\treturn capability.get(this, this.ambientContexts, token);\n}\n\nfunction setContext<T>(this: AnyComponentInstance, token: ContextToken<T>, value: T): void {\n\tthis.contextTokens.set(token.id, token);\n\tconst capability = componentContextCapability();\n\tcapability.set(this, token, value);\n\tcapability.publish(this, token, 'write');\n}\n\nregisterComponentRuntimeSurface({\n\thasContext: { configurable: true, writable: true, value: hasContext },\n\tgetContext: { configurable: true, writable: true, value: getContext },\n\tsetContext: { configurable: true, writable: true, value: setContext }\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-lifecycle.js","sourceRoot":"","sources":["../../src/component/runtime-surface-lifecycle.ts"],"names":[],"mappings":"AACA,OAAO,EACN,iCAAiC,EACjC,8BAA8B,EAC9B,iCAAiC,EACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,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E,OAAO,EAAE;IAC/D,UAAU,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;IACrE,YAAY,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE;IACzE,SAAS,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE;IACnE,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;IACjE,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE;CACvD,CAAC,CAAC","sourcesContent":["import type { AnyComponentInstance, LifecycleHandler, RenderEventHandler } from './contracts.js';\nimport {\n\tmutableComponentLifecycleHandlers,\n\tmutableComponentRenderHandlers,\n\tregisterComponentLifecycleHandler\n} from './lifecycle-handlers.js';\nimport { disposeComponentResource } from './resource-ownership.js';\nimport { registerComponentRuntimeSurface } from './runtime-surface-registration.js';\n\nfunction onMount(this: AnyComponentInstance, handler: LifecycleHandler): void {\n\tregisterComponentLifecycleHandler(this, 'mount', handler);\n}\n\nfunction onActivate(this: AnyComponentInstance, handler: LifecycleHandler): void {\n\tregisterComponentLifecycleHandler(this, 'activate', handler);\n}\n\nfunction onDeactivate(this: AnyComponentInstance, handler: LifecycleHandler): void {\n\tregisterComponentLifecycleHandler(this, 'deactivate', handler);\n}\n\nfunction onUnmount(this: AnyComponentInstance, handler: LifecycleHandler): void {\n\tregisterComponentLifecycleHandler(this, 'unmount', handler);\n}\n\nfunction onRender(this: AnyComponentInstance, handler: RenderEventHandler): void {\n\tmutableComponentRenderHandlers(this).push(handler);\n}\n\nfunction own<T extends Disposable | AsyncDisposable | { dispose(): unknown }>(\n\tthis: AnyComponentInstance,\n\tresource: T\n): T {\n\tthis.onUnmount(() => disposeComponentResource(resource));\n\treturn resource;\n}\n\nregisterComponentRuntimeSurface({\n\tmountHandlers: {\n\t\tconfigurable: true,\n\t\tget(this: AnyComponentInstance) {\n\t\t\treturn mutableComponentLifecycleHandlers(this, 'mount');\n\t\t}\n\t},\n\tactivateHandlers: {\n\t\tconfigurable: true,\n\t\tget(this: AnyComponentInstance) {\n\t\t\treturn mutableComponentLifecycleHandlers(this, 'activate');\n\t\t}\n\t},\n\tdeactivateHandlers: {\n\t\tconfigurable: true,\n\t\tget(this: AnyComponentInstance) {\n\t\t\treturn mutableComponentLifecycleHandlers(this, 'deactivate');\n\t\t}\n\t},\n\tunmountHandlers: {\n\t\tconfigurable: true,\n\t\tget(this: AnyComponentInstance) {\n\t\t\treturn mutableComponentLifecycleHandlers(this, 'unmount');\n\t\t}\n\t},\n\trenderHandlers: {\n\t\tconfigurable: true,\n\t\tget(this: AnyComponentInstance) {\n\t\t\treturn mutableComponentRenderHandlers(this);\n\t\t}\n\t},\n\tonMount: { configurable: true, writable: true, value: onMount },\n\tonActivate: { configurable: true, writable: true, value: onActivate },\n\tonDeactivate: { configurable: true, writable: true, value: onDeactivate },\n\tonUnmount: { configurable: true, writable: true, value: onUnmount },\n\tonRender: { configurable: true, writable: true, value: onRender },\n\town: { configurable: true, writable: true, value: own }\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-lists.js","sourceRoot":"","sources":["../../src/component/runtime-surface-lists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,SAAS,GAAG,CAEX,UAAoD,EACpD,GAAiC,EACjC,MAA0B,EAC1B,EAAW,EACX,UAAwB,EACxB,WAAoB;IAEpB,OAAO,uBAAuB,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;AAClG,CAAC;AAED,+BAA+B,CAAC;IAC/B,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE;CACvD,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-surface-lists.js","sourceRoot":"","sources":["../../src/component/runtime-surface-lists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,SAAS,GAAG,CAEX,UAAoD,EACpD,GAAiC,EACjC,MAA0B,EAC1B,EAAW,EACX,UAAwB,EACxB,WAAoB;IAEpB,OAAO,uBAAuB,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;AAClG,CAAC;AAED,+BAA+B,CAAC;IAC/B,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE;CACvD,CAAC,CAAC","sourcesContent":["import type { ReactiveValue } from '@exactjs/reactive/framework/runtime';\nimport type { AnyComponentInstance, Child } from './contracts.js';\nimport { componentListCapability } from './list-capability.js';\nimport { registerComponentRuntimeSurface } from './runtime-surface-registration.js';\n\nfunction map<T>(\n\tthis: AnyComponentInstance,\n\tcollection: Iterable<T> | ReactiveValue<Iterable<T>>,\n\tkey: (item: T) => string | number,\n\trender: (item: T) => Child,\n\tid?: string,\n\tprovenance?: Iterable<T>,\n\tkeyIdentity?: string\n): Child {\n\treturn componentListCapability().map(this, collection, key, render, id, provenance, keyIdentity);\n}\n\nregisterComponentRuntimeSurface({\n\tmap: { configurable: true, writable: true, value: map }\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-localization.js","sourceRoot":"","sources":["../../src/component/runtime-surface-localization.ts"],"names":[],"mappings":"AACA,OAAO,EACN,+BAA+B,EAE/B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,MAAM,OAAO,GAAG,IAAI,OAAO,EAA0C,CAAC;AAEtE,sFAAsF;AACtF,MAAM,UAAU,aAAa,CAAC,KAAiC;IAC9D,IAAI,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAChC,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,MAAM,UAAU,GAAG,+BAA+B,EAAE,CAAC;IACrD,IAAI,CAAC,UAAU;QACd,MAAM,IAAI,KAAK,CACd,yGAAyG,CACzG,CAAC;IACH,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3B,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,IAAI;IACZ,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,+BAA+B,CAAC;IAC/B,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE;CACvC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-surface-localization.js","sourceRoot":"","sources":["../../src/component/runtime-surface-localization.ts"],"names":[],"mappings":"AACA,OAAO,EACN,+BAA+B,EAE/B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,MAAM,OAAO,GAAG,IAAI,OAAO,EAA0C,CAAC;AAEtE,sFAAsF;AACtF,MAAM,UAAU,aAAa,CAAC,KAAiC;IAC9D,IAAI,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAChC,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,MAAM,UAAU,GAAG,+BAA+B,EAAE,CAAC;IACrD,IAAI,CAAC,UAAU;QACd,MAAM,IAAI,KAAK,CACd,yGAAyG,CACzG,CAAC;IACH,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3B,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,IAAI;IACZ,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,+BAA+B,CAAC;IAC/B,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE;CACvC,CAAC,CAAC","sourcesContent":["import type { IntlFacade } from '../localization/contracts.js';\nimport {\n\tcomponentLocalizationCapability,\n\ttype ComponentLocalizationOwner\n} from './localization-capability.js';\nimport type { AnyComponentInstance } from './contracts.js';\nimport { registerComponentRuntimeSurface } from './runtime-surface-registration.js';\n\nconst facades = new WeakMap<ComponentLocalizationOwner, IntlFacade>();\n\n/** Returns the stable localized Intl facade owned by one compiled component frame. */\nexport function componentIntl(owner: ComponentLocalizationOwner): IntlFacade {\n\tlet facade = facades.get(owner);\n\tif (facade) return facade;\n\tconst capability = componentLocalizationCapability();\n\tif (!capability)\n\t\tthrow new Error(\n\t\t\t'Component localization is unavailable because this artifact did not include the localization capability'\n\t\t);\n\tfacade = capability.create(owner);\n\tfacades.set(owner, facade);\n\treturn facade;\n}\n\nfunction intl(this: AnyComponentInstance): IntlFacade {\n\treturn componentIntl(this);\n}\n\nregisterComponentRuntimeSurface({\n\tintl: { configurable: true, get: intl }\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-logging.js","sourceRoot":"","sources":["../../src/component/runtime-surface-logging.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,MAAM,IAAI,GAAG,IAAI,OAAO,EAAsC,CAAC;AAE/D,SAAS,GAAG;IACX,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAED,+BAA+B,CAAC;IAC/B,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE;CACrC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-surface-logging.js","sourceRoot":"","sources":["../../src/component/runtime-surface-logging.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,MAAM,IAAI,GAAG,IAAI,OAAO,EAAsC,CAAC;AAE/D,SAAS,GAAG;IACX,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAED,+BAA+B,CAAC;IAC/B,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE;CACrC,CAAC,CAAC","sourcesContent":["import type { ComponentLog } from '../logging.js';\nimport type { AnyComponentInstance } from './contracts.js';\nimport { createComponentLog } from './log.js';\nimport { registerComponentRuntimeSurface } from './runtime-surface-registration.js';\n\nconst logs = new WeakMap<AnyComponentInstance, ComponentLog>();\n\nfunction log(this: AnyComponentInstance): ComponentLog {\n\tlet value = logs.get(this);\n\tif (!value) {\n\t\tvalue = createComponentLog(this);\n\t\tlogs.set(this, value);\n\t}\n\treturn value;\n}\n\nregisterComponentRuntimeSurface({\n\tlog: { configurable: true, get: log }\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-reactivity.js","sourceRoot":"","sources":["../../src/component/runtime-surface-reactivity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,SAAS,QAAQ,CAChB,KAA2C,EAC3C,GAAG,MAAiB;IAEpB,OAAO,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAC/C,CAAC;AAED,+BAA+B,CAAC;IAC/B,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;CACjE,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-surface-reactivity.js","sourceRoot":"","sources":["../../src/component/runtime-surface-reactivity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,SAAS,QAAQ,CAChB,KAA2C,EAC3C,GAAG,MAAiB;IAEpB,OAAO,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAC/C,CAAC;AAED,+BAA+B,CAAC;IAC/B,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE;CACjE,CAAC,CAAC","sourcesContent":["import type { ReactiveValue } from '@exactjs/reactive/framework/runtime';\nimport { createComponentReactive } from './reactive-expression.js';\nimport { registerComponentRuntimeSurface } from './runtime-surface-registration.js';\n\nfunction reactive<T>(\n\tinput: TemplateStringsArray | (() => T) | T,\n\t...values: unknown[]\n): ReactiveValue<string> | ReactiveValue<T> {\n\treturn createComponentReactive(input, values);\n}\n\nregisterComponentRuntimeSurface({\n\treactive: { configurable: true, writable: true, value: reactive }\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-refs.js","sourceRoot":"","sources":["../../src/component/runtime-surface-refs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,SAAS,GAAG,CAAgC,GAAc;IACzD,OAAO,sBAAsB,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,OAAO,CAAgC,GAAc;IAC7D,OAAO,sBAAsB,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjD,CAAC;AAED,+BAA+B,CAAC;IAC/B,IAAI,EAAE;QACL,YAAY,EAAE,IAAI;QAClB,GAAG;YACF,OAAO,sBAAsB,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC;KACD;IACD,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE;IACvD,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;CAC/D,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-surface-refs.js","sourceRoot":"","sources":["../../src/component/runtime-surface-refs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,SAAS,GAAG,CAAgC,GAAc;IACzD,OAAO,sBAAsB,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,OAAO,CAAgC,GAAc;IAC7D,OAAO,sBAAsB,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjD,CAAC;AAED,+BAA+B,CAAC;IAC/B,IAAI,EAAE;QACL,YAAY,EAAE,IAAI;QAClB,GAAG;YACF,OAAO,sBAAsB,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC;KACD;IACD,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE;IACvD,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;CAC/D,CAAC,CAAC","sourcesContent":["import type { AnyComponentInstance, RefKey } from './contracts.js';\nimport { componentRefCapability } from './ref-capability.js';\nimport { registerComponentRuntimeSurface } from './runtime-surface-registration.js';\n\nfunction ref<T>(this: AnyComponentInstance, key: RefKey<T>) {\n\treturn componentRefCapability().ref(this, key);\n}\n\nfunction readRef<T>(this: AnyComponentInstance, key: RefKey<T>): T | undefined {\n\treturn componentRefCapability().read(this, key);\n}\n\nregisterComponentRuntimeSurface({\n\trefs: {\n\t\tconfigurable: true,\n\t\tget(this: AnyComponentInstance) {\n\t\t\treturn componentRefCapability().registry(this);\n\t\t}\n\t},\n\tref: { configurable: true, writable: true, value: ref },\n\treadRef: { configurable: true, writable: true, value: readRef }\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface-registration.js","sourceRoot":"","sources":["../../src/component/runtime-surface-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIjE,SAAS,kBAAkB,CAAC,WAAsC;IACjE,MAAM,MAAM,GAAG,wBAAwB,CAAC,SAAS,CAAC;IAClD,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QAChD,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,6CAA6C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC7E,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,CAAC,GAAG,CAAE,CAAC,CAAC;IACvD,CAAC;AACF,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAAC,WAAsC;IACrF,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC"}
|
|
1
|
+
{"version":3,"file":"runtime-surface-registration.js","sourceRoot":"","sources":["../../src/component/runtime-surface-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIjE,SAAS,kBAAkB,CAAC,WAAsC;IACjE,MAAM,MAAM,GAAG,wBAAwB,CAAC,SAAS,CAAC;IAClD,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QAChD,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,6CAA6C,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC7E,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,CAAC,GAAG,CAAE,CAAC,CAAC;IACvD,CAAC;AACF,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAAC,WAAsC;IACrF,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC","sourcesContent":["import { CompactComponentInstance } from './compact-instance.js';\n\ntype RuntimeSurfaceDescriptors = Readonly<PropertyDescriptorMap>;\n\nfunction installDescriptors(descriptors: RuntimeSurfaceDescriptors): void {\n\tconst target = CompactComponentInstance.prototype;\n\tfor (const key of Reflect.ownKeys(descriptors)) {\n\t\tif (Object.hasOwn(target, key))\n\t\t\tthrow new Error(`Component runtime surface already defines ${String(key)}`);\n\t\tObject.defineProperty(target, key, descriptors[key]!);\n\t}\n}\n\n/**\n * Registers one compiler-selectable group of authored component operations.\n *\n * Registration is order-independent: feature entries may evaluate before or after the component\n * implementation that receives them. A duplicate property is an artifact construction error.\n */\nexport function registerComponentRuntimeSurface(descriptors: RuntimeSurfaceDescriptors): void {\n\tinstallDescriptors(descriptors);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-surface.js","sourceRoot":"","sources":["../../src/component/runtime-surface.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,MAAM,OAAgB,uBAAuB;IAGpC,aAAa,CAAwB;IACrC,kBAAkB,CAAsC;IAEhE,mFAAmF;IACnF,IAAI,QAAQ;QACX,OAAO,CAAC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,qFAAqF;IACrF,IAAI,aAAa;QAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC;IAChD,CAAC;CAsBD"}
|
|
1
|
+
{"version":3,"file":"runtime-surface.js","sourceRoot":"","sources":["../../src/component/runtime-surface.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,MAAM,OAAgB,uBAAuB;IAGpC,aAAa,CAAwB;IACrC,kBAAkB,CAAsC;IAEhE,mFAAmF;IACnF,IAAI,QAAQ;QACX,OAAO,CAAC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,qFAAqF;IACrF,IAAI,aAAa;QAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC;IAChD,CAAC;CAsBD","sourcesContent":["import type { Reactive } from '@exactjs/reactive/framework/runtime';\nimport type { ComponentLog } from '../logging.js';\nimport type { IntlFacade } from '../localization/contracts.js';\nimport type {\n\tComponent,\n\tComponentContextValues,\n\tContextToken,\n\tLifecycleHandler,\n\tRefRegistry,\n\tRenderEventHandler\n} from './contracts.js';\n\n/**\n * Minimal durable component surface shared by every compiled component.\n *\n * Optional authored operations are declaration-only here. Compiler-selected runtime entries\n * install their implementations on the shared prototype, keeping unused implementation graphs\n * unreachable without changing the public {@link Component} authoring contract.\n */\nexport abstract class ComponentRuntimeSurface<State extends object> {\n\tabstract readonly state: Reactive<State>;\n\tabstract readonly ambientContexts?: ComponentContextValues;\n\tprivate contextsValue?: Map<symbol, unknown>;\n\tprivate contextTokensValue?: Map<symbol, ContextToken<unknown>>;\n\n\t/** Returns the lazily allocated local context value map owned by this instance. */\n\tget contexts(): Map<symbol, unknown> {\n\t\treturn (this.contextsValue ??= new Map());\n\t}\n\n\t/** Returns the lazily allocated token catalog used for inspection and resumption. */\n\tget contextTokens(): Map<symbol, ContextToken<unknown>> {\n\t\treturn (this.contextTokensValue ??= new Map());\n\t}\n\n\tdeclare readonly log: ComponentLog;\n\tdeclare readonly intl: IntlFacade;\n\tdeclare readonly refs: RefRegistry;\n\tdeclare readonly mountHandlers: LifecycleHandler[];\n\tdeclare readonly activateHandlers: LifecycleHandler[];\n\tdeclare readonly deactivateHandlers: LifecycleHandler[];\n\tdeclare readonly unmountHandlers: LifecycleHandler[];\n\tdeclare readonly renderHandlers: RenderEventHandler[];\n\tdeclare ref: Component<State>['ref'];\n\tdeclare map: Component<State>['map'];\n\tdeclare reactive: Component<State>['reactive'];\n\tdeclare hasContext: Component<State>['hasContext'];\n\tdeclare getContext: Component<State>['getContext'];\n\tdeclare setContext: Component<State>['setContext'];\n\tdeclare onMount: Component<State>['onMount'];\n\tdeclare onActivate: Component<State>['onActivate'];\n\tdeclare onDeactivate: Component<State>['onDeactivate'];\n\tdeclare onUnmount: Component<State>['onUnmount'];\n\tdeclare onRender: Component<State>['onRender'];\n\tdeclare own: Component<State>['own'];\n}\n"]}
|
|
@@ -13,6 +13,7 @@ export declare class ComponentInstanceImpl<State extends object, Props extends R
|
|
|
13
13
|
mountController?: AbortController;
|
|
14
14
|
activationController?: AbortController;
|
|
15
15
|
private durableReleased;
|
|
16
|
+
private activationScope?;
|
|
16
17
|
constructor(type: ComponentFunction<State, Props>, instantiate: ComponentFunction<State, Props>, rawProps: Props, parent: AnyComponentInstance | undefined, ambientContexts: ComponentContextValues | undefined, domain: ComponentInstance<State>['domain'], execution: PreparedComponentExecution | undefined, contract: ExactExecutableComponentContract);
|
|
17
18
|
/** Opens compiler-selected list bookkeeping for one render pass when lists are present. */
|
|
18
19
|
beginRender(): void;
|
|
@@ -26,6 +27,8 @@ export declare class ComponentInstanceImpl<State extends object, Props extends R
|
|
|
26
27
|
protected activate(reason: string): boolean;
|
|
27
28
|
/** Deactivates the compact record, aborts activation work, and dispatches handlers. */
|
|
28
29
|
protected deactivate(reason: string): boolean;
|
|
30
|
+
/** Detaches the retired generation before abort callbacks can synchronously activate a new one. */
|
|
31
|
+
private releaseActivation;
|
|
29
32
|
}
|
|
30
33
|
export { createComponentInstance, createPreparedComponentInstance } from './runtime-construction.js';
|
|
31
34
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/component/runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/component/runtime.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,gBAAg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O,CAAC,iBAAiB;CAWzB;AAED,OAAO,EACN,uBAAuB,EACvB,+BAA+B,EAC/B,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createEffectScope, withEffectScope } from '@exactjs/reactive/framework/runtime';
|
|
1
2
|
import { observeLifecyclePromise } from './async.js';
|
|
2
3
|
import { isPromiseLike } from './async-value.js';
|
|
3
4
|
import { createErrorReport, handleComponentError } from './errors.js';
|
|
@@ -16,6 +17,7 @@ export class ComponentInstanceImpl extends TaskComponentInstance {
|
|
|
16
17
|
mountController;
|
|
17
18
|
activationController;
|
|
18
19
|
durableReleased = false;
|
|
20
|
+
activationScope;
|
|
19
21
|
constructor(type, instantiate, rawProps, parent, ambientContexts, domain, execution, contract) {
|
|
20
22
|
super(type, rawProps, parent, ambientContexts, domain, execution, contract, instantiate);
|
|
21
23
|
}
|
|
@@ -49,6 +51,7 @@ export class ComponentInstanceImpl extends TaskComponentInstance {
|
|
|
49
51
|
primary = error;
|
|
50
52
|
}
|
|
51
53
|
};
|
|
54
|
+
teardown(() => this.releaseActivation(reason));
|
|
52
55
|
if (this.runtimeABI & compiledComponentListsABI)
|
|
53
56
|
teardown(() => optionalComponentListCapability()?.dispose(this));
|
|
54
57
|
if (this.mountController)
|
|
@@ -79,10 +82,11 @@ export class ComponentInstanceImpl extends TaskComponentInstance {
|
|
|
79
82
|
: [];
|
|
80
83
|
this.mountController = handlers.length ? new AbortController() : undefined;
|
|
81
84
|
for (const handler of handlers) {
|
|
82
|
-
if (!this.mounted)
|
|
85
|
+
if (!this.mounted || !this.scope.active)
|
|
83
86
|
break;
|
|
84
87
|
try {
|
|
85
|
-
|
|
88
|
+
// Synchronous lifecycle work inherits the durable owner, not the renderer's ambient scope.
|
|
89
|
+
const result = withEffectScope(this.scope, () => handler({ signal: this.mountController.signal }));
|
|
86
90
|
if (isPromiseLike(result))
|
|
87
91
|
observeLifecyclePromise(this, Promise.resolve(result), 'mount');
|
|
88
92
|
}
|
|
@@ -98,10 +102,15 @@ export class ComponentInstanceImpl extends TaskComponentInstance {
|
|
|
98
102
|
const handlers = this.runtimeABI & compiledComponentLifecycleABI
|
|
99
103
|
? componentLifecycleHandlers(this, 'activate')
|
|
100
104
|
: [];
|
|
101
|
-
|
|
105
|
+
const controller = handlers.length ? new AbortController() : undefined;
|
|
106
|
+
const scope = handlers.length ? createEffectScope(this.scope) : undefined;
|
|
107
|
+
this.activationController = controller;
|
|
108
|
+
this.activationScope = scope;
|
|
102
109
|
for (const handler of handlers) {
|
|
110
|
+
if (!this.mounted || !scope?.active || this.activationScope !== scope)
|
|
111
|
+
break;
|
|
103
112
|
try {
|
|
104
|
-
const result = handler({ signal:
|
|
113
|
+
const result = withEffectScope(scope, () => handler({ signal: controller.signal }));
|
|
105
114
|
if (isPromiseLike(result))
|
|
106
115
|
observeLifecyclePromise(this, Promise.resolve(result), 'activate');
|
|
107
116
|
}
|
|
@@ -115,8 +124,12 @@ export class ComponentInstanceImpl extends TaskComponentInstance {
|
|
|
115
124
|
deactivate(reason) {
|
|
116
125
|
if (!super.deactivate(reason))
|
|
117
126
|
return false;
|
|
118
|
-
|
|
119
|
-
|
|
127
|
+
try {
|
|
128
|
+
this.releaseActivation(reason);
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
handleComponentError(this, createErrorReport(error, 'lifecycle', this, 'deactivate'));
|
|
132
|
+
}
|
|
120
133
|
const handlers = this.runtimeABI & compiledComponentLifecycleABI
|
|
121
134
|
? componentLifecycleHandlers(this, 'deactivate')
|
|
122
135
|
: [];
|
|
@@ -132,6 +145,19 @@ export class ComponentInstanceImpl extends TaskComponentInstance {
|
|
|
132
145
|
}
|
|
133
146
|
return true;
|
|
134
147
|
}
|
|
148
|
+
/** Detaches the retired generation before abort callbacks can synchronously activate a new one. */
|
|
149
|
+
releaseActivation(reason) {
|
|
150
|
+
const controller = this.activationController;
|
|
151
|
+
const scope = this.activationScope;
|
|
152
|
+
this.activationController = undefined;
|
|
153
|
+
this.activationScope = undefined;
|
|
154
|
+
try {
|
|
155
|
+
controller?.abort(reason);
|
|
156
|
+
}
|
|
157
|
+
finally {
|
|
158
|
+
scope?.stop();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
135
161
|
}
|
|
136
162
|
export { createComponentInstance, createPreparedComponentInstance } from './runtime-construction.js';
|
|
137
163
|
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/component/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOjD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EACN,+BAA+B,EAC/B,0BAA0B,EAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAGvE,OAAO,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,OAAO,qBAGX,SAAQ,qBAAmC;IAC5C,eAAe,CAAmB;IAClC,oBAAoB,CAAmB;IAE/B,eAAe,GAAG,KAAK,CAAC;IAEhC,YACC,IAAqC,EACrC,WAA4C,EAC5C,QAAe,EACf,MAAwC,EACxC,eAAmD,EACnD,MAA0C,EAC1C,SAAiD,EACjD,QAA0C;QAE1C,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IAC1F,CAAC;IAED,2FAA2F;IAClF,WAAW;QACnB,IAAI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,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;gBAAS,CAAC;YACV,KAAK,EAAE,IAAI,EAAE,CAAC;QACf,CAAC;IACF,CAAC;CACD;AAED,OAAO,EACN,uBAAuB,EACvB,+BAA+B,EAC/B,MAAM,2BAA2B,CAAC","sourcesContent":["import {\n\tcreateEffectScope,\n\twithEffectScope,\n\ttype EffectScope\n} from '@exactjs/reactive/framework/runtime';\nimport { observeLifecyclePromise } from './async.js';\nimport { isPromiseLike } from './async-value.js';\nimport type {\n\tAnyComponentInstance,\n\tComponentContextValues,\n\tComponentFunction,\n\tComponentInstance\n} from './contracts.js';\nimport { createErrorReport, handleComponentError } from './errors.js';\nimport {\n\tclearComponentLifecycleHandlers,\n\tcomponentLifecycleHandlers\n} from './lifecycle-handlers.js';\nimport { optionalComponentListCapability } from './list-capability.js';\nimport type { PreparedComponentExecution } from '../tasks/component-execution-plan.js';\nimport type { ExactExecutableComponentContract } from '../component-contracts.js';\nimport { compiledComponentLifecycleABI, compiledComponentListsABI } from './compiled-abi.js';\nimport { TaskComponentInstance } from './task-instance.js';\nexport { reparentComponentInstance } from './ownership.js';\n\n/**\n * Compiler-selected component record for artifacts that own lifecycle or list machinery.\n *\n * Common identity, state, props, render, activation, and reactive disposal live in the compact\n * base. This lane allocates and executes only the durable capability hooks declared by its ABI.\n */\nexport class ComponentInstanceImpl<\n\tState extends object,\n\tProps extends Record<string, unknown>\n> extends TaskComponentInstance<State, Props> {\n\tmountController?: AbortController;\n\tactivationController?: AbortController;\n\n\tprivate durableReleased = false;\n\tprivate activationScope?: EffectScope;\n\n\tconstructor(\n\t\ttype: ComponentFunction<State, Props>,\n\t\tinstantiate: ComponentFunction<State, Props>,\n\t\trawProps: Props,\n\t\tparent: AnyComponentInstance | undefined,\n\t\tambientContexts: ComponentContextValues | undefined,\n\t\tdomain: ComponentInstance<State>['domain'],\n\t\texecution: PreparedComponentExecution | undefined,\n\t\tcontract: ExactExecutableComponentContract\n\t) {\n\t\tsuper(type, rawProps, parent, ambientContexts, domain, execution, contract, instantiate);\n\t}\n\n\t/** Opens compiler-selected list bookkeeping for one render pass when lists are present. */\n\toverride beginRender(): void {\n\t\tif (this.runtimeABI & compiledComponentListsABI) optionalComponentListCapability()?.begin(this);\n\t}\n\n\t/** Closes compiler-selected list bookkeeping and releases entries absent from this pass. */\n\toverride endRender(): void {\n\t\tif (this.runtimeABI & compiledComponentListsABI) optionalComponentListCapability()?.end(this);\n\t}\n\n\t/** Releases list and lifecycle ownership after common reactive and task disposal. */\n\toverride unmount(reason = 'unmount'): void {\n\t\tlet primary: unknown;\n\t\ttry {\n\t\t\tsuper.unmount(reason);\n\t\t} catch (error) {\n\t\t\tprimary = error;\n\t\t}\n\t\tif (!this.durableReleased) {\n\t\t\tthis.durableReleased = true;\n\t\t\tconst teardown = (run: () => void) => {\n\t\t\t\ttry {\n\t\t\t\t\trun();\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (primary === undefined) primary = error;\n\t\t\t\t}\n\t\t\t};\n\t\t\tteardown(() => this.releaseActivation(reason));\n\t\t\tif (this.runtimeABI & compiledComponentListsABI)\n\t\t\t\tteardown(() => optionalComponentListCapability()?.dispose(this));\n\t\t\tif (this.mountController) teardown(() => this.mountController!.abort(reason));\n\t\t\tconst unmountHandlers =\n\t\t\t\tthis.runtimeABI & compiledComponentLifecycleABI\n\t\t\t\t\t? componentLifecycleHandlers(this, 'unmount')\n\t\t\t\t\t: [];\n\t\t\tfor (const handler of unmountHandlers) {\n\t\t\t\ttry {\n\t\t\t\t\tconst result = handler({ signal: AbortSignal.abort(reason), reason });\n\t\t\t\t\tif (isPromiseLike(result))\n\t\t\t\t\t\tobserveLifecyclePromise(this, Promise.resolve(result), 'unmount');\n\t\t\t\t} catch (error) {\n\t\t\t\t\tteardown(() =>\n\t\t\t\t\t\thandleComponentError(this, createErrorReport(error, 'lifecycle', this, 'unmount'))\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.runtimeABI & compiledComponentLifecycleABI) clearComponentLifecycleHandlers(this);\n\t\t}\n\t\tif (primary !== undefined) throw primary;\n\t}\n\n\t/** Runs mount handlers before the compact record makes its initial activation decision. */\n\tprotected override handleMounted(): void {\n\t\tconst handlers =\n\t\t\tthis.runtimeABI & compiledComponentLifecycleABI\n\t\t\t\t? componentLifecycleHandlers(this, 'mount')\n\t\t\t\t: [];\n\t\tthis.mountController = handlers.length ? new AbortController() : undefined;\n\t\tfor (const handler of handlers) {\n\t\t\tif (!this.mounted || !this.scope.active) break;\n\t\t\ttry {\n\t\t\t\t// Synchronous lifecycle work inherits the durable owner, not the renderer's ambient scope.\n\t\t\t\tconst result = withEffectScope(this.scope, () =>\n\t\t\t\t\thandler({ signal: this.mountController!.signal })\n\t\t\t\t);\n\t\t\t\tif (isPromiseLike(result)) observeLifecyclePromise(this, Promise.resolve(result), 'mount');\n\t\t\t} catch (error) {\n\t\t\t\thandleComponentError(this, createErrorReport(error, 'lifecycle', this, 'mount'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/** Activates the compact record and then dispatches compiler-selected lifecycle work. */\n\tprotected override activate(reason: string): boolean {\n\t\tif (!super.activate(reason)) return false;\n\t\tconst handlers =\n\t\t\tthis.runtimeABI & compiledComponentLifecycleABI\n\t\t\t\t? componentLifecycleHandlers(this, 'activate')\n\t\t\t\t: [];\n\t\tconst controller = handlers.length ? new AbortController() : undefined;\n\t\tconst scope = handlers.length ? createEffectScope(this.scope) : undefined;\n\t\tthis.activationController = controller;\n\t\tthis.activationScope = scope;\n\t\tfor (const handler of handlers) {\n\t\t\tif (!this.mounted || !scope?.active || this.activationScope !== scope) break;\n\t\t\ttry {\n\t\t\t\tconst result = withEffectScope(scope, () => handler({ signal: controller!.signal }));\n\t\t\t\tif (isPromiseLike(result))\n\t\t\t\t\tobserveLifecyclePromise(this, Promise.resolve(result), 'activate');\n\t\t\t} catch (error) {\n\t\t\t\thandleComponentError(this, createErrorReport(error, 'lifecycle', this, 'activate'));\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\t/** Deactivates the compact record, aborts activation work, and dispatches handlers. */\n\tprotected override deactivate(reason: string): boolean {\n\t\tif (!super.deactivate(reason)) return false;\n\t\ttry {\n\t\t\tthis.releaseActivation(reason);\n\t\t} catch (error) {\n\t\t\thandleComponentError(this, createErrorReport(error, 'lifecycle', this, 'deactivate'));\n\t\t}\n\t\tconst handlers =\n\t\t\tthis.runtimeABI & compiledComponentLifecycleABI\n\t\t\t\t? componentLifecycleHandlers(this, 'deactivate')\n\t\t\t\t: [];\n\t\tfor (const handler of handlers) {\n\t\t\ttry {\n\t\t\t\tconst result = handler({ signal: AbortSignal.abort(reason), reason });\n\t\t\t\tif (isPromiseLike(result))\n\t\t\t\t\tobserveLifecyclePromise(this, Promise.resolve(result), 'deactivate');\n\t\t\t} catch (error) {\n\t\t\t\thandleComponentError(this, createErrorReport(error, 'lifecycle', this, 'deactivate'));\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\t/** Detaches the retired generation before abort callbacks can synchronously activate a new one. */\n\tprivate releaseActivation(reason: string): void {\n\t\tconst controller = this.activationController;\n\t\tconst scope = this.activationScope;\n\t\tthis.activationController = undefined;\n\t\tthis.activationScope = undefined;\n\t\ttry {\n\t\t\tcontroller?.abort(reason);\n\t\t} finally {\n\t\t\tscope?.stop();\n\t\t}\n\t}\n}\n\nexport {\n\tcreateComponentInstance,\n\tcreatePreparedComponentInstance\n} from './runtime-construction.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/component/state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAErF,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,2FAA2F;AAC3F,MAAM,UAAU,oBAAoB,CACnC,MAAuB,EACvB,QAAoD,EACpD,WAA8B,EAC9B,WAAW,GAAG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F,MAAM,UAAU,uCAAuC,CAAC,OAA+B;IACtF,IAAI,sBAAsB,IAAI,sBAAsB,KAAK,OAAO;QAC/D,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;IAC9E,sBAAsB,GAAG,OAAO,CAAC;AAClC,CAAC","sourcesContent":["import type { Reactive, ReactiveOptions } from '@exactjs/reactive/framework/runtime';\nimport { indexedReactiveObjects } from '@exactjs/reactive/framework/indexed-objects';\nimport type { ComponentDomain, ComponentInstance } from './contracts.js';\nimport { componentDomainInspection } from './domain.js';\n\n/** Creates inspectable component state before the final instance reference is assigned. */\nexport function createComponentState<State extends object>(\n\tdomain: ComponentDomain,\n\tinstance: () => ComponentInstance<State> | undefined,\n\tindexedKeys: readonly string[],\n\tcollections = false\n): Reactive<State> {\n\tconst options: ReactiveOptions = {\n\t\tonMutation(key, operation) {\n\t\t\tconst component = instance();\n\t\t\tif (!component) return;\n\t\t\tcomponentDomainInspection(domain)?.publish({\n\t\t\t\tkind: 'state.change',\n\t\t\t\tcomponent,\n\t\t\t\tpath: key === undefined ? 'state' : `state.${String(key)}`,\n\t\t\t\tattributes: Object.freeze({ operation })\n\t\t\t});\n\t\t}\n\t};\n\tif (collections) {\n\t\tif (!collectionStateFactory)\n\t\t\tthrow new Error('Collection state requires the compiler-selected collection capability');\n\t\treturn collectionStateFactory<State>(indexedKeys, options);\n\t}\n\treturn indexedReactiveObjects<State>(indexedKeys, options);\n}\n\ntype CollectionStateFactory = <State extends object>(\n\tindexedKeys: readonly string[],\n\toptions: ReactiveOptions\n) => Reactive<State>;\n\nlet collectionStateFactory: CollectionStateFactory | undefined;\n\n/** Registers general Map/Set-aware component state when selected by a compiled artifact. */\nexport function registerCollectionComponentStateFactory(factory: CollectionStateFactory): void {\n\tif (collectionStateFactory && collectionStateFactory !== factory)\n\t\tthrow new Error('Conflicting eXact collection-state capability integration');\n\tcollectionStateFactory = factory;\n}\n\n/** Creates readonly reactive props while preserving compiler-owned children passthrough. */\nexport function createComponentProps<Props extends Record<string, unknown>>(\n\trawProps: Props,\n\tindexedKeys: readonly string[],\n\tcollections = false,\n\topaqueKeys: readonly PropertyKey[] = []\n): Reactive<Record<string, unknown>> {\n\tconst options: ReactiveOptions = {\n\t\treadonly: true,\n\t\tpassthroughKeys: ['children', ...opaqueKeys],\n\t\tonReadonlyWrite(key: PropertyKey) {\n\t\t\tthrow new TypeError(`Cannot write to readonly props.${String(key)}`);\n\t\t}\n\t};\n\tif (collections) {\n\t\tif (!collectionPropsFactory)\n\t\t\tthrow new Error('Collection props require the compiler-selected collection capability');\n\t\treturn collectionPropsFactory(rawProps, indexedKeys, options);\n\t}\n\treturn indexedReactiveObjects<Record<string, unknown>>(indexedKeys, options, rawProps, true);\n}\n\ntype CollectionPropsFactory = (\n\tvalue: Record<string, unknown>,\n\tindexedKeys: readonly string[],\n\toptions: ReactiveOptions\n) => Reactive<Record<string, unknown>>;\n\nlet collectionPropsFactory: CollectionPropsFactory | undefined;\n\n/** Registers general Map/Set-aware component props with the collection-state capability. */\nexport function registerCollectionComponentPropsFactory(factory: CollectionPropsFactory): void {\n\tif (collectionPropsFactory && collectionPropsFactory !== factory)\n\t\tthrow new Error('Conflicting eXact collection-props capability integration');\n\tcollectionPropsFactory = factory;\n}\n"]}
|
|
@@ -10,6 +10,7 @@ const taskCapability = Object.freeze({
|
|
|
10
10
|
(contract.continuations?.length ?? 0) !== 0 ||
|
|
11
11
|
(contract.execution?.transitions.length ?? 0) !== 0 ||
|
|
12
12
|
contract.artifact?.capabilities.includes('tasks') === true ||
|
|
13
|
+
contract.artifact?.capabilities.includes('continuations') === true ||
|
|
13
14
|
contract.artifact?.capabilities.includes('compatibility') === true;
|
|
14
15
|
if (!required)
|
|
15
16
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-capability-integration.js","sourceRoot":"","sources":["../../src/component/task-capability-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,yBAAyB,EACzB,2BAA2B,EAC3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,CAAC,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAc,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnF,CAAC;IACD,MAAM,CAAC,KAA+C,EAAE,OAA4B;QACnF,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,2BAA2B,CAAC,KAAK,CAAC,KAAc,EAAE,CAAC,IAAI,EAAE,EAAE;YAC1D,MAAM,cAAc,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;YACzD,OAAO,cAAc,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,KAA+C,EAAE,QAA8B;QACrF,MAAM,QAAQ,GAAG,KAAK,EAAE,QAEZ,CAAC;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,QAAQ,EAAE,MAAM;YAAE,kBAAkB,CAAC,QAAQ,EAAE,QAAiB,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,CAAC,KAA+C,EAAE,QAA8B;QACtF,IAAI,KAAK;YACR,KAAM,KAAK,CAAC,KAAoD,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;QACzF,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;CACD,CAAC,CAAC;AAEH,+BAA+B,CAAC,cAAc,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"task-capability-integration.js","sourceRoot":"","sources":["../../src/component/task-capability-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,yBAAyB,EACzB,2BAA2B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,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D,MAAM,CAAC,KAA+C,EAAE,OAA4B;QACnF,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,2BAA2B,CAAC,KAAK,CAAC,KAAc,EAAE,CAAC,IAAI,EAAE,EAAE;YAC1D,MAAM,cAAc,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;YACzD,OAAO,cAAc,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,MAAM,CAAC,KAA+C,EAAE,QAA8B;QACrF,MAAM,QAAQ,GAAG,KAAK,EAAE,QAEZ,CAAC;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,QAAQ,EAAE,MAAM;YAAE,kBAAkB,CAAC,QAAQ,EAAE,QAAiB,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,CAAC,KAA+C,EAAE,QAA8B;QACtF,IAAI,KAAK;YACR,KAAM,KAAK,CAAC,KAAoD,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;QACzF,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;CACD,CAAC,CAAC;AAEH,+BAA+B,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import {\n\tdeferTaskOwnerActivations,\n\treleaseTaskOwnerActivations\n} from '../tasks/owner-activations.js';\nimport { componentContinuationTaskId } from '../tasks/component-continuation.js';\nimport { createTaskOwnerRecord, withTaskOwnerRecord } from '../tasks/frame-runtime.js';\nimport { releaseTaskObserver, retainTaskObserver } from '../tasks/observers.js';\nimport type { AnyComponentInstance } from './contracts.js';\nimport { configureComponentTaskOwner } from './task-owner-integration.js';\nimport {\n\tregisterComponentTaskCapability,\n\ttype ComponentTaskCapability,\n\ttype ComponentTaskCapabilityState\n} from './task-capability.js';\n\nconst taskCapability: ComponentTaskCapability = Object.freeze({\n\tcreate(instance, _type, contract, execution, props, resuming) {\n\t\tconst required =\n\t\t\tcontract === undefined ||\n\t\t\t(contract.continuations?.length ?? 0) !== 0 ||\n\t\t\t(contract.execution?.transitions.length ?? 0) !== 0 ||\n\t\t\tcontract.artifact?.capabilities.includes('tasks') === true ||\n\t\t\tcontract.artifact?.capabilities.includes('continuations') === true ||\n\t\t\tcontract.artifact?.capabilities.includes('compatibility') === true;\n\t\tif (!required) return undefined;\n\t\tconst owner = createTaskOwnerRecord(instance.id);\n\t\tif (resuming) deferTaskOwnerActivations(owner);\n\t\treturn Object.freeze({\n\t\t\towner,\n\t\t\tobserver: configureComponentTaskOwner(instance, owner, execution, props)\n\t\t});\n\t},\n\trun<T>(state: ComponentTaskCapabilityState | undefined, operation: () => T): T {\n\t\treturn state ? withTaskOwnerRecord(state.owner as never, operation) : operation();\n\t},\n\tresume(state: ComponentTaskCapabilityState | undefined, settled: ReadonlySet<string>): void {\n\t\tif (!state) return;\n\t\treleaseTaskOwnerActivations(state.owner as never, (task) => {\n\t\t\tconst continuationId = componentContinuationTaskId(task);\n\t\t\treturn continuationId !== undefined && settled.has(continuationId);\n\t\t});\n\t},\n\tretain(state: ComponentTaskCapabilityState | undefined, instance: AnyComponentInstance): void {\n\t\tconst observer = state?.observer as\n\t\t\t| { retain?(instance: AnyComponentInstance): void }\n\t\t\t| undefined;\n\t\tobserver?.retain?.(instance);\n\t\tif (observer?.retain) retainTaskObserver(instance, observer as never);\n\t},\n\trelease(state: ComponentTaskCapabilityState | undefined, instance: AnyComponentInstance): void {\n\t\tif (state)\n\t\t\tvoid (state.owner as { [Symbol.asyncDispose](): Promise<void> })[Symbol.asyncDispose]();\n\t\treleaseTaskObserver(instance);\n\t}\n});\n\nregisterComponentTaskCapability(taskCapability);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-capability.js","sourceRoot":"","sources":["../../src/component/task-capability.ts"],"names":[],"mappings":"AA0BA,IAAI,cAAmD,CAAC;AAExD,wFAAwF;AACxF,MAAM,UAAU,+BAA+B,CAAC,UAAmC;IAClF,IAAI,cAAc,IAAI,cAAc,KAAK,UAAU;QAClD,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC5E,cAAc,GAAG,UAAU,CAAC;AAC7B,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,uBAAuB;IACtC,OAAO,cAAc,CAAC;AACvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"task-capability.js","sourceRoot":"","sources":["../../src/component/task-capability.ts"],"names":[],"mappings":"AA0BA,IAAI,cAAmD,CAAC;AAExD,wFAAwF;AACxF,MAAM,UAAU,+BAA+B,CAAC,UAAmC;IAClF,IAAI,cAAc,IAAI,cAAc,KAAK,UAAU;QAClD,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC5E,cAAc,GAAG,UAAU,CAAC;AAC7B,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,uBAAuB;IACtC,OAAO,cAAc,CAAC;AACvB,CAAC","sourcesContent":["import type { ExactExecutableComponentContract } from '../component-contracts.js';\nimport type { PreparedComponentExecution } from '../tasks/component-execution-plan.js';\nimport type { AnyComponentFunction, AnyComponentInstance } from './contracts.js';\n\n/** Opaque task capability state retained only by components whose task runtime is reachable. */\nexport type ComponentTaskCapabilityState = Readonly<{\n\towner: unknown;\n\tobserver?: unknown;\n}>;\n\n/** Capability-local bridge installed by the task runtime without a reverse kernel import. */\nexport type ComponentTaskCapability = Readonly<{\n\tcreate(\n\t\tinstance: AnyComponentInstance,\n\t\ttype: AnyComponentFunction,\n\t\tcontract: ExactExecutableComponentContract | undefined,\n\t\texecution: PreparedComponentExecution | undefined,\n\t\tprops: Record<string, unknown>,\n\t\tresuming: boolean\n\t): ComponentTaskCapabilityState | undefined;\n\trun<T>(state: ComponentTaskCapabilityState | undefined, operation: () => T): T;\n\tresume(state: ComponentTaskCapabilityState | undefined, settled: ReadonlySet<string>): void;\n\tretain(state: ComponentTaskCapabilityState | undefined, instance: AnyComponentInstance): void;\n\trelease(state: ComponentTaskCapabilityState | undefined, instance: AnyComponentInstance): void;\n}>;\n\nlet taskCapability: ComponentTaskCapability | undefined;\n\n/** Installs the task integration when a generated task import is actually reachable. */\nexport function registerComponentTaskCapability(capability: ComponentTaskCapability): void {\n\tif (taskCapability && taskCapability !== capability)\n\t\tthrow new Error('Conflicting eXact component task capability integration');\n\ttaskCapability = capability;\n}\n\n/** Returns the reachable task integration, if this artifact contains task support. */\nexport function componentTaskCapability(): ComponentTaskCapability | undefined {\n\treturn taskCapability;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-inspection-history.js","sourceRoot":"","sources":["../../src/component/task-inspection-history.ts"],"names":[],"mappings":"AAUA,mGAAmG;AACnG,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAC9C,MAAM,aAAa,GAAG,IAAI,OAAO,EAAsD,CAAC;AAExF;;;;;GAKG;AACH,MAAM,OAAO,qBAAqB;IACxB,MAAM,CAAS;IACf,QAAQ,GAAG,IAAI,GAAG,EAAiC,CAAC;IACpD,MAAM,GAAa,EAAE,CAAC;IAE/B,YAAY,KAAK,GAAG,iCAAiC;QACpD,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,iFAAiF;IACjF,MAAM,CAAC,SAA+B,EAAE,QAAkC;QACzE,MAAM,GAAG,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YACpC,MAAM,MAAM,GAAG,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,C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KAAK,CAAC,UAAU,CAAC;AAC7F,CAAC","sourcesContent":["import type { ExactTaskRuntimeSnapshot } from '@exactjs/devtools-protocol';\nimport type { AnyComponentInstance } from './contracts.js';\nimport type { ExactRuntimeInspectionOwner } from './inspection.js';\n\ntype RetainedTaskExecution = Readonly<{\n\tkey: string;\n\tcomponentId: string;\n\tsnapshot: ExactTaskRuntimeSnapshot;\n}>;\n\n/** Default maximum number of completed or active task executions retained per inspection owner. */\nconst defaultTaskInspectionHistoryLimit = 200;\nconst taskHistories = new WeakMap<ExactRuntimeInspectionOwner, TaskInspectionHistory>();\n\n/**\n * Retains only immutable, redaction-safe task projections for the current inspection session.\n *\n * The global bound applies across every component in the owner. Updating an existing execution\n * does not consume another slot, and clearing the session releases every retained preview.\n */\nexport class TaskInspectionHistory {\n\treadonly #limit: number;\n\treadonly #records = new Map<string, RetainedTaskExecution>();\n\treadonly #order: string[] = [];\n\n\tconstructor(limit = defaultTaskInspectionHistoryLimit) {\n\t\tthis.#limit = normalizeLimit(limit);\n\t}\n\n\t/** Adds or replaces one execution without retaining application-owned values. */\n\trecord(component: AnyComponentInstance, snapshot: ExactTaskRuntimeSnapshot): void {\n\t\tconst key = taskExecutionKey(snapshot);\n\t\tconst existing = this.#records.get(key);\n\t\tif (!existing && this.#records.size >= this.#limit) {\n\t\t\tconst oldestKey = this.#oldestKey();\n\t\t\tconst oldest = oldestKey === undefined ? undefined : this.#records.get(oldestKey);\n\t\t\tif (oldest && compareTaskRecency(snapshot, oldest.snapshot) <= 0) return;\n\t\t\tif (oldestKey !== undefined) {\n\t\t\t\tthis.#records.delete(oldestKey);\n\t\t\t\tthis.#order.splice(this.#order.indexOf(oldestKey), 1);\n\t\t\t}\n\t\t}\n\t\tthis.#records.set(key, Object.freeze({ key, componentId: component.id, snapshot }));\n\t\tif (!existing) this.#order.push(key);\n\t}\n\n\t/** Returns newest-first executions for one live component. */\n\tlist(component: AnyComponentInstance): readonly ExactTaskRuntimeSnapshot[] {\n\t\tconst snapshots: ExactTaskRuntimeSnapshot[] = [];\n\t\tfor (let index = this.#order.length - 1; index >= 0; index--) {\n\t\t\tconst record = this.#records.get(this.#order[index]!);\n\t\t\tif (record?.componentId === component.id) snapshots.push(record.snapshot);\n\t\t}\n\t\treturn Object.freeze(snapshots);\n\t}\n\n\t/** Releases all execution previews owned by the inspection session. */\n\tclear(): void {\n\t\tthis.#records.clear();\n\t\tthis.#order.length = 0;\n\t}\n\n\t/** Releases execution previews for an unmounted component. */\n\tdeleteComponent(component: AnyComponentInstance): void {\n\t\tfor (let index = this.#order.length - 1; index >= 0; index--) {\n\t\t\tconst key = this.#order[index]!;\n\t\t\tif (this.#records.get(key)?.componentId !== component.id) continue;\n\t\t\tthis.#records.delete(key);\n\t\t\tthis.#order.splice(index, 1);\n\t\t}\n\t}\n\n\t/** Selects the least-recent retained start so late settlement cannot displace newer work. */\n\t#oldestKey(): string | undefined {\n\t\tlet oldestKey: string | undefined;\n\t\tfor (const key of this.#order) {\n\t\t\tconst candidate = this.#records.get(key)?.snapshot;\n\t\t\tconst oldest = oldestKey === undefined ? undefined : this.#records.get(oldestKey)?.snapshot;\n\t\t\tif (candidate && (!oldest || compareTaskRecency(candidate, oldest) < 0)) oldestKey = key;\n\t\t}\n\t\treturn oldestKey;\n\t}\n}\n\n/** Associates an inspection owner with the session history controlled by its attach lifecycle. */\nexport function registerTaskInspectionHistory(\n\towner: ExactRuntimeInspectionOwner,\n\thistory: TaskInspectionHistory\n): void {\n\ttaskHistories.set(owner, history);\n}\n\n/** Releases the task history association when its inspection session detaches. */\nexport function releaseTaskInspectionHistory(owner: ExactRuntimeInspectionOwner): void {\n\ttaskHistories.delete(owner);\n}\n\n/** Retains one immutable, preview-only task execution for an attached internal owner. */\nexport function recordInspectedTask(\n\towner: ExactRuntimeInspectionOwner,\n\tcomponent: AnyComponentInstance,\n\ttask: ExactTaskRuntimeSnapshot\n): void {\n\tif (owner.attached) taskHistories.get(owner)?.record(component, task);\n}\n\n/** Returns bounded newest-first task history without exposing the mutable history store. */\nexport function inspectRetainedTaskExecutions(\n\towner: ExactRuntimeInspectionOwner,\n\tcomponent: AnyComponentInstance\n): readonly ExactTaskRuntimeSnapshot[] {\n\treturn owner.attached\n\t\t? (taskHistories.get(owner)?.list(component) ?? Object.freeze([]))\n\t\t: Object.freeze([]);\n}\n\nfunction taskExecutionKey(snapshot: ExactTaskRuntimeSnapshot): string {\n\tconst id = snapshot.id;\n\treturn `${id.sessionId}\\u0000${id.side}\\u0000${id.binding ?? ''}\\u0000${id.buildKey}\\u0000${id.executionRoot}\\u0000${id.instanceId}\\u0000${id.sourceEntityId ?? ''}\\u0000${snapshot.generation}`;\n}\n\nfunction normalizeLimit(value: number): number {\n\treturn Number.isSafeInteger(value) && value > 0\n\t\t? Math.min(value, 10_000)\n\t\t: defaultTaskInspectionHistoryLimit;\n}\n\nfunction compareTaskRecency(\n\tleft: ExactTaskRuntimeSnapshot,\n\tright: ExactTaskRuntimeSnapshot\n): number {\n\treturn (left.startedAt ?? 0) - (right.startedAt ?? 0) || left.generation - right.generation;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-instance-construction.js","sourceRoot":"","sources":["../../src/component/task-instance-construction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,yFAAyF;AACzF,MAAM,CAAC,MAAM,8BAA8B,GAAyC,UACnF,MAAwC,EACxC,QAAiC,EACjC,eAAmD,EACnD,MAAuB,EACvB,SAAiD,EACjD,QAA0C;IAE1C,OAAO,IAAI,qBAAqB,CAC/B,IAAI,CAAC,WAAW,EAChB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACR,CAAC;AACH,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"task-instance-construction.js","sourceRoot":"","sources":["../../src/component/task-instance-construction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,yFAAyF;AACzF,MAAM,CAAC,MAAM,8BAA8B,GAAyC,UACnF,MAAwC,EACxC,QAAiC,EACjC,eAAmD,EACnD,MAAuB,EACvB,SAAiD,EACjD,QAA0C;IAE1C,OAAO,IAAI,qBAAqB,CAC/B,IAAI,CAAC,WAAW,EAChB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,CACR,CAAC;AACH,CAAC,CAAC","sourcesContent":["import type { ExactExecutableComponentContract } from '../component-contracts.js';\nimport type { PreparedComponentExecution } from '../tasks/component-execution-plan.js';\nimport type { AnyComponentInstance, ComponentContextValues, ComponentDomain } from './contracts.js';\nimport type { CompiledComponentInstanceConstructor } from './instance-construction.js';\nimport { TaskComponentInstance } from './task-instance.js';\n\n/** Constructs the compact record selected by a task-only compiled component artifact. */\nexport const constructTaskComponentInstance: CompiledComponentInstanceConstructor = function (\n\tparent: AnyComponentInstance | undefined,\n\trawProps: Record<string, unknown>,\n\tambientContexts: ComponentContextValues | undefined,\n\tdomain: ComponentDomain,\n\texecution: PreparedComponentExecution | undefined,\n\tcontract: ExactExecutableComponentContract\n) {\n\treturn new TaskComponentInstance(\n\t\tthis.instantiate,\n\t\trawProps,\n\t\tparent,\n\t\tambientContexts,\n\t\tdomain,\n\t\texecution,\n\t\tcontract\n\t);\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-instance.js","sourceRoot":"","sources":["../../src/component/task-instance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAC;AAOvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACN,uBAAuB,EAGvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,4FAA4F;AAC5F,MAAM,OAAO,qBAGX,SAAQ,wBAAsC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C;YAC5C,CAAC;QACF,CAAC;QACD,IAAI,OAAO,KAAK,SAAS;YAAE,MAAM,OAAO,CAAC;IAC1C,CAAC;CACD","sourcesContent":["import type { ExactExecutableComponentContract } from '../component-contracts.js';\nimport type { PreparedComponentExecution } from '../tasks/component-execution-plan.js';\nimport { cleanupFailedComponentConstruction } from './construction.js';\nimport type {\n\tAnyComponentInstance,\n\tComponentContextValues,\n\tComponentFunction,\n\tComponentInstance\n} from './contracts.js';\nimport { CompactComponentInstance } from './compact-instance.js';\nimport {\n\tcomponentTaskCapability,\n\ttype ComponentTaskCapability,\n\ttype ComponentTaskCapabilityState\n} from './task-capability.js';\nimport { compiledComponentTasksABI } from './compiled-abi.js';\n\n/** Compact durable record for task-owning artifacts without lifecycle or list machinery. */\nexport class TaskComponentInstance<\n\tState extends object,\n\tProps extends Record<string, unknown>\n> extends CompactComponentInstance<State, Props> {\n\tprivate readonly taskCapability: ComponentTaskCapability | undefined;\n\tprivate taskState: ComponentTaskCapabilityState | undefined;\n\tprivate taskReleased = false;\n\n\tconstructor(\n\t\ttype: ComponentFunction<State, Props>,\n\t\trawProps: Props,\n\t\tparent: AnyComponentInstance | undefined,\n\t\tambientContexts: ComponentContextValues | undefined,\n\t\tdomain: ComponentInstance<State>['domain'],\n\t\texecution: PreparedComponentExecution | undefined,\n\t\tcontract: ExactExecutableComponentContract,\n\t\tinstantiate: ComponentFunction<State, Props> = contract.artifact\n\t\t\t.instantiate as ComponentFunction<State, Props>\n\t) {\n\t\tsuper(type, rawProps, parent, ambientContexts, domain, contract);\n\t\tconst capability =\n\t\t\tthis.runtimeABI & compiledComponentTasksABI ? componentTaskCapability() : undefined;\n\t\tif (this.runtimeABI & compiledComponentTasksABI && !capability) {\n\t\t\tconst error = new Error(\n\t\t\t\t'Task component construction requires the compiler-selected task capability'\n\t\t\t);\n\t\t\tcleanupFailedComponentConstruction(this, error);\n\t\t\tthrow error;\n\t\t}\n\t\tthis.taskCapability = capability;\n\t\ttry {\n\t\t\tthis.taskState = capability?.create(\n\t\t\t\tthis,\n\t\t\t\ttype,\n\t\t\t\tcontract,\n\t\t\t\texecution,\n\t\t\t\trawProps,\n\t\t\t\tBoolean(this.componentResumption)\n\t\t\t);\n\t\t\tthis.initializeComponent(() => {\n\t\t\t\treturn capability\n\t\t\t\t\t? capability.run(this.taskState, () => instantiate.call(this, this.props as Props))\n\t\t\t\t\t: instantiate.call(this, this.props as Props);\n\t\t\t});\n\t\t\tif (capability && this.componentResumption)\n\t\t\t\tcapability.resume(\n\t\t\t\t\tthis.taskState,\n\t\t\t\t\tnew Set(\n\t\t\t\t\t\t'componentId' in this.componentResumption\n\t\t\t\t\t\t\t? this.componentResumption.settledContinuations\n\t\t\t\t\t\t\t: (this.componentResumption[3] ?? [])\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\tcapability?.retain(this.taskState, this);\n\t\t} catch (error) {\n\t\t\tcleanupFailedComponentConstruction(this, error);\n\t\t\tthrow error;\n\t\t}\n\t}\n\n\t/** Releases task ownership in addition to the compact render scope exactly once. */\n\toverride unmount(reason = 'unmount'): void {\n\t\tlet primary: unknown;\n\t\ttry {\n\t\t\tsuper.unmount(reason);\n\t\t} catch (error) {\n\t\t\tprimary = error;\n\t\t}\n\t\tif (!this.taskReleased) {\n\t\t\tthis.taskReleased = true;\n\t\t\ttry {\n\t\t\t\tthis.taskCapability?.release(this.taskState, this);\n\t\t\t} catch (error) {\n\t\t\t\tif (primary === undefined) primary = error;\n\t\t\t}\n\t\t}\n\t\tif (primary !== undefined) throw primary;\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-observer.js","sourceRoot":"","sources":["../../src/component/task-observer.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"task-observer.js","sourceRoot":"","sources":["../../src/component/task-observer.ts"],"names":[],"mappings":"","sourcesContent":["import type { AnyComponentInstance } from './contracts.js';\n\n/** Coordinates component task settlement with an owning renderer. */\nexport type TaskObserver = {\n\tregister(promise: Promise<unknown>, instance: AnyComponentInstance): void;\n\t/** Runs one root task generation under renderer-owned concurrency control. */\n\trunTask?<T>(work: () => Promise<T>): Promise<T>;\n\t/** Retains a constructed component for the lifetime of an owning renderer. */\n\tretain?(instance: AnyComponentInstance): void;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-owner-integration.js","sourceRoot":"","sources":["../../src/component/task-owner-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4CAA4C,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,sCAAsC,EAAE,MAAM,4CAA4C,CAAC;AAEpG,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAI3D,kGAAkG;AAClG,MAAM,UAAU,2BAA2B,CAC1C,QAA8B,EAC9B,KAAsB,EACtB,SAAiD,EACjD,KAA8B;IAE9B,qBAAqB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACvC,sCAAsC,CACrC,KAAK,EACL,QAAQ,EACR,SAAS,EAAE,IAAI,IAAI,4CAA4C,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,EACxF,KAAK,CACL,CAAC;IACF,MAAM,SAAS,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACtD,IAAI,SAAS;QACZ,KAAK,CAAC,iBAAiB,GAAG,CAAC,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CACzE,SAAS,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IACvF,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC3C,IAAI,QAAQ;QAAE,KAAK,CAAC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,QAAQ;QAAE,KAAK,CAAC,iBAAiB,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAChG,IAAI,QAAQ,EAAE,OAAO;QAAE,KAAK,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;IACxD,OAAO,QAAQ,CAAC;AACjB,CAAC","sourcesContent":["import { readPreparedExactExecutableComponentContract } from '../component-contracts.js';\nimport { initializeComponentExecutionCapability } from '../tasks/component-execution-capability.js';\nimport type { TaskOwnerRecord } from '../tasks/frame-contracts.js';\nimport { taskObserverFor } from '../tasks/observers.js';\nimport { registerTaskOwnerHost } from '../tasks/owner-hosts.js';\nimport type { AnyComponentInstance } from './contracts.js';\nimport { componentReadinessContext } from './readiness.js';\nimport type { TaskObserver } from './task-observer.js';\nimport type { PreparedComponentExecution } from '../tasks/component-execution-plan.js';\n\n/** Connects a new component owner to plan execution, readiness, and renderer task observation. */\nexport function configureComponentTaskOwner(\n\tinstance: AnyComponentInstance,\n\towner: TaskOwnerRecord,\n\texecution: PreparedComponentExecution | undefined,\n\tprops: Record<string, unknown>\n): TaskObserver | undefined {\n\tregisterTaskOwnerHost(instance, owner);\n\tinitializeComponentExecutionCapability(\n\t\towner,\n\t\tinstance,\n\t\texecution?.plan ?? readPreparedExactExecutableComponentContract(instance.type).execution,\n\t\tprops\n\t);\n\tconst readiness = componentReadinessContext(instance);\n\tif (readiness)\n\t\towner.registerReadiness = (taskGeneration, settlement, commit, discard) =>\n\t\t\treadiness.register({ owner: instance, taskGeneration, settlement, commit, discard });\n\tconst observer = taskObserverFor(instance);\n\tif (observer) owner.observeSettlement = (settlement) => observer.register(settlement, instance);\n\tif (observer?.runTask) owner.runTask = observer.runTask;\n\treturn observer;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-contracts.js","sourceRoot":"","sources":["../../src/component/value-contracts.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"value-contracts.js","sourceRoot":"","sources":["../../src/component/value-contracts.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactiveValue } from '@exactjs/reactive/framework/runtime';\n\n/** Defines the task resource disposal type contract. */\nexport type TaskResourceDisposal = string;\n/** Defines the task cleanup type contract. */\nexport type TaskCleanup = (reason?: unknown) => void | Promise<void>;\n/** Defines the task idle deadline type contract. */\nexport type TaskIdleDeadline = { readonly didTimeout: boolean; timeRemaining(): number };\n/** Configures task idle. */\nexport type TaskIdleOptions = { timeout?: number };\n/** Defines the component reactive value type contract. */\nexport type ComponentReactiveValue<T> = ReactiveValue<T>;\n/** Defines the iterable item type contract. */\nexport type IterableItem<T> = T extends Iterable<infer Item> ? Item : never;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-receipt.js","sourceRoot":"","sources":["../../src/component-abi/activity-receipt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAgB1F,MAAM,gBAAgB,GAAG,0BAA0B,CAA2B,UAAU,CAAC,CAAC;AAC1F,kFAAkF;AAClF,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;AAMvF,SAAS,wBAAwB,CAAe,MAAc;IAC7D,MAAM,IAAI,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,SAAS,CAAC,qDAAqD,CAAC,CAAC;IACtF,OAAQ,MAAuC,CAAC,sBAAsB,CAAC,CACtE,IAA4B,EAC5B,IAAI,CACJ,CAAC;AACH,CAAC;AAED,yFAAyF;AACzF,MAAM,UAAU,6BAA6B,CAC5C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,IAAI,CAAC,CAAC;IACxC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,SAAS,CAAC,qDAAqD,CAAC,CAAC;IACtF,OAAQ,MAAuC,CAAC,sBAAsB,CAAC,CACtE,IAA4B,EAC5B,IAAI,CACJ,CAAC;AACH,CAAC;AAED,yFAAyF;AACzF,MAAM,UAAU,6BAA6B,CAC5C,KAAqC,EACrC,GAAG,QAAmB;IAEtB,MAAM,MAAM,GAAG,sBAAsB,EAAE,CAAC;IACxC,MAAM,OAAO,GAAG,qBAAqB,CAAuB,wBAAwB,EAAE;QACrF,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7B,CAAC,CAAC;IACH,gBAAgB,CAAC,GAAG,CAAC,OAAO,EAAE;QAC7B,KAAK,EAAE,KAAK,IAAI,EAAE;QAClB,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,CAAC;QACzC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7B,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,2BAA2B,CAAC,KAAc;IACzD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9F,CAAC","sourcesContent":["import type { Child, ComponentDomain } from '../component/contracts.js';\nimport { currentComponentDomain } from '../component/domain.js';\nimport { normalizeRenderResult } from '../render-children.js';\nimport { createOpaqueOperation, sharedOpaqueOperationStore } from './opaque-operation.js';\n\ndeclare const exactActivityReceiptBrand: unique symbol;\n\n/** Opaque compiler-issued operation for one retained Activity boundary. */\nexport type ExactActivityReceipt = object & {\n\treadonly [exactActivityReceiptBrand]: never;\n};\n\n/** Private retained-boundary inputs readable only by a selected target renderer. */\nexport type ExactActivityReceiptData = Readonly<{\n\tprops: Readonly<Record<string, unknown>>;\n\tchildren: readonly Child[];\n\tdomain?: ComponentDomain;\n}>;\n\nconst activityReceipts = sharedOpaqueOperationStore<ExactActivityReceiptData>('activity');\n/** Dispatch key implemented by render targets that accept Activity operations. */\nexport const exactActivityOperation = Symbol.for('@exactjs/target-operation/activity');\n/** Target contract selected by an opaque Activity operation. */\nexport type ExactActivityOperationTarget<Result = unknown> = Readonly<{\n\t[exactActivityOperation](operation: ExactActivityReceipt, data: ExactActivityReceiptData): Result;\n}>;\n\nfunction executeActivityOperation(this: object, target: object): unknown {\n\tconst data = activityReceipts.get(this);\n\tif (!data) throw new TypeError('Activity operation lost its compiler-issued payload');\n\treturn (target as ExactActivityOperationTarget)[exactActivityOperation](\n\t\tthis as ExactActivityReceipt,\n\t\tdata\n\t);\n}\n\n/** Issues a focused retained-boundary operation without exposing its output topology. */\nexport function createCompiledActivityReceipt(\n\tprops: Record<string, unknown> | null,\n\t...children: unknown[]\n): ExactActivityReceipt {\n\tconst domain = currentComponentDomain();\n\tconst receipt = createOpaqueOperation<ExactActivityReceipt>(executeActivityOperation, {\n\t\t...(domain ? { domain } : {})\n\t});\n\tactivityReceipts.set(receipt, {\n\t\tprops: props ?? {},\n\t\tchildren: normalizeRenderResult(children),\n\t\t...(domain ? { domain } : {})\n\t});\n\treturn receipt;\n}\n\n/** Reads only compiler-issued retained Activity operations. */\nexport function readCompiledActivityReceipt(value: unknown): ExactActivityReceiptData | undefined {\n\treturn typeof value === 'object' && value !== null ? activityReceipts.get(value) : undefined;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../src/component-abi/artifact.ts"],"names":[],"mappings":"AASA,4FAA4F;AAC5F,MAAM,UAAU,mCAAmC,CAClD,QAA0C;IAE1C,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ;QAC/B,MAAM,IAAI,SAAS,CAAC,+DAA+D,CAAC,CAAC;IACtF,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,mCAAmC,CAClD,QAA0C;IAE1C,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ;QAC/B,MAAM,IAAI,SAAS,CAAC,+DAA+D,CAAC,CAAC;IACtF,OAAO,QAAQ,CAAC;AACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../src/component-abi/artifact.ts"],"names":[],"mappings":"AASA,4FAA4F;AAC5F,MAAM,UAAU,mCAAmC,CAClD,QAA0C;IAE1C,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ;QAC/B,MAAM,IAAI,SAAS,CAAC,+DAA+D,CAAC,CAAC;IACtF,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,mCAAmC,CAClD,QAA0C;IAE1C,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ;QAC/B,MAAM,IAAI,SAAS,CAAC,+DAA+D,CAAC,CAAC;IACtF,OAAO,QAAQ,CAAC;AACjB,CAAC","sourcesContent":["import type { ExactClientComponentArtifact } from './client.js';\nimport type { ExactServerComponentArtifact } from './server.js';\nexport type { ExactValueSerializationSchema } from './value-serialization.js';\n\n/** The single current executable artifact carried by a native target-local component export. */\nexport type ExactComponentExecutableArtifact =\n\t| ExactClientComponentArtifact\n\t| ExactServerComponentArtifact;\n\n/** Narrows a current executable artifact to its client ABI without capability inference. */\nexport function requireExactClientComponentArtifact(\n\tartifact: ExactComponentExecutableArtifact\n): ExactClientComponentArtifact {\n\tif (artifact.target !== 'client')\n\t\tthrow new TypeError('Client execution requires a current client component artifact');\n\treturn artifact;\n}\n\n/** Narrows a current executable artifact to its server ABI without capability inference. */\nexport function requireExactServerComponentArtifact(\n\tartifact: ExactComponentExecutableArtifact\n): ExactServerComponentArtifact {\n\tif (artifact.target !== 'server')\n\t\tthrow new TypeError('Server execution requires a current server component artifact');\n\treturn artifact;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-range-receipt.js","sourceRoot":"","sources":["../../src/component-abi/child-range-receipt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAuB1F,MAAM,MAAM,GAAG,0BAA0B,CAA6B,aAAa,CAAC,CAAC;AACrF,mFAAmF;AACnF,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AAS5F,SAAS,0BAA0B,CAAe,MAAc;IAC/D,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,SAAS,CAAC,wDAAwD,CAAC,CAAC;IACzF,OAAQ,MAAyC,CAAC,wBAAwB,CAAC,CAC1E,IAA8B,EAC9B,IAAI,CACJ,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,MAAM,UAAU,uBAAuB,CACtC,KAAc,EACd,QAAiB,EACjB,iBAAiB,GAAG,IAAI,EACxB,gBAAiE;IAEjE,MAAM,MAAM,GAAG,sBAAsB,EAAE,CAAC;IACxC,MAAM,OAAO,GAAG,qBAAqB,CAAyB,0BAA0B,EAAE;QACzF,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7B,CAAC,CAAC;IACH,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE;QACnB,KAAK;QACL,iBAAiB;QACjB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,M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A0B,EAAE;QACzF,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7B,CAAC,CAAC;IACH,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE;QACnB,KAAK;QACL,iBAAiB;QACjB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjD,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AAChB,CAAC;AAED,mDAAmD;AACnD,MAAM,UAAU,qBAAqB,CAAC,KAAc;IACnD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACpF,CAAC","sourcesContent":["import type { ComponentDomain, RenderResult } from '../component/contracts.js';\nimport { currentComponentDomain } from '../component/domain.js';\nimport { createOpaqueOperation, sharedOpaqueOperationStore } from './opaque-operation.js';\n\ndeclare const exactChildRangeReceiptBrand: unique symbol;\n\n/** Opaque compiler-owned operation for one intentionally dynamic child range. */\nexport type ExactChildRangeReceipt = object & {\n\treadonly [exactChildRangeReceiptBrand]: never;\n};\n\n/** Private focused range inputs readable only by a target renderer. */\nexport type ExactChildRangeReceiptData = Readonly<{\n\tvalue: unknown;\n\tmarkerId?: string;\n\tmayReplaceSubtree: boolean;\n\tdomain?: ComponentDomain;\n\t/** Optional open client-component resolution state owned by this focused range. */\n\tdynamicComponent?: Readonly<{\n\t\tinspection: import('../dynamic-component/contracts.js').DynamicComponentInspection;\n\t\tprops?: Readonly<Record<string, unknown>>;\n\t\treadiness?: () => PromiseLike<unknown> | undefined;\n\t}>;\n}>;\n\nconst ranges = sharedOpaqueOperationStore<ExactChildRangeReceiptData>('child-range');\n/** Dispatch key implemented by render targets that accept focused child ranges. */\nexport const exactChildRangeOperation = Symbol.for('@exactjs/target-operation/child-range');\n/** Target contract selected by an opaque focused child-range operation. */\nexport type ExactChildRangeOperationTarget<Result = unknown> = Readonly<{\n\t[exactChildRangeOperation](\n\t\toperation: ExactChildRangeReceipt,\n\t\tdata: ExactChildRangeReceiptData\n\t): Result;\n}>;\n\nfunction executeChildRangeOperation(this: object, target: object): unknown {\n\tconst data = ranges.get(this);\n\tif (!data) throw new TypeError('Child-range operation lost its compiler-issued payload');\n\treturn (target as ExactChildRangeOperationTarget)[exactChildRangeOperation](\n\t\tthis as ExactChildRangeReceipt,\n\t\tdata\n\t);\n}\n\n/** Issues a focused child-range operation without exposing child topology. */\nexport function createChildRangeReceipt(\n\tvalue: unknown,\n\tmarkerId?: string,\n\tmayReplaceSubtree = true,\n\tdynamicComponent?: ExactChildRangeReceiptData['dynamicComponent']\n): ExactChildRangeReceipt {\n\tconst domain = currentComponentDomain();\n\tconst receipt = createOpaqueOperation<ExactChildRangeReceipt>(executeChildRangeOperation, {\n\t\t...(domain ? { domain } : {})\n\t});\n\tranges.set(receipt, {\n\t\tvalue,\n\t\tmayReplaceSubtree,\n\t\t...(markerId ? { markerId } : {}),\n\t\t...(domain ? { domain } : {}),\n\t\t...(dynamicComponent ? { dynamicComponent } : {})\n\t});\n\treturn receipt;\n}\n\n/** Reads only compiler-issued range operations. */\nexport function readChildRangeReceipt(value: unknown): ExactChildRangeReceiptData | undefined {\n\treturn typeof value === 'object' && value !== null ? ranges.get(value) : undefined;\n}\n\n/** Recomputes the authored value owned by one focused dynamic child-range operation. */\nexport type ExactChildRangeCompute = () => RenderResult;\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { componentContractVersion } from '../component/contract-versions.js';
|
|
1
2
|
import type { ExactCompiledComponentCapability, ExactCompiledComponentInputUpdateContract, ExactCompiledComponentUpdateContract } from '../component-definition-contracts.js';
|
|
2
3
|
import type { AnyExactComponentCallable, ExactComponentReactiveAllocation } from './executable-fields.js';
|
|
3
4
|
import type { CompiledComponentInstanceConstructor } from '../component/instance-construction.js';
|
|
@@ -23,7 +24,7 @@ export type ExactClientMountedRange = object;
|
|
|
23
24
|
export type ExactClientPropSource = Readonly<Record<string, unknown>>;
|
|
24
25
|
/** Complete executable ABI carried by one compiler-produced client component export. */
|
|
25
26
|
export type ExactClientComponentArtifact = Readonly<{
|
|
26
|
-
version:
|
|
27
|
+
version: typeof componentContractVersion;
|
|
27
28
|
target: 'client';
|
|
28
29
|
id: string;
|
|
29
30
|
template?: object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/component-abi/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,gCAAgC,EAChC,yCAAyC,EACzC,oCAAoC,EACpC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACX,yBAAyB,EACzB,gCAAgC,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAE9E,4FAA4F;AAC5F,eAAO,MAAM,6BAA6B,eAEzC,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,kCAAkC,eAE9C,CAAC;AAEF,6FAA6F;AAC7F,MAAM,MAAM,mCAAmC,GAAG,QAAQ,CAAC;IAC1D,CAAC,6BAA6B,CAAC,CAC9B,QAAQ,EAAE,4BAA4B,EACtC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,KAAK,EAAE,EACjB,IAAI,EAAE,qBAAqB,GACzB,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C,EAAE,6BAA6B,CAAC;IAC9C,0FAA0F;IAC1F,WAAW,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;IACrC,qFAAqF;IACrF,aAAa,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,gCAAgC,EAAE,CAAC;IACvD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,YAAY,EAAE,SAAS,gCAAgC,EAAE,CAAC;CAC1D,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/component-abi/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/component-abi/client.ts"],"names":[],"mappings":"AAcA,4FAA4F;AAC5F,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,GAAG,CACtD,+CAA+C,CAC/C,CAAC;AAEF,oFAAoF;AACpF,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,GAAG,CAC3D,oDAAoD,CACpD,CAAC","sourcesContent":["import type { componentContractVersion } from '../component/contract-versions.js';\nimport type {\n\tExactCompiledComponentCapability,\n\tExactCompiledComponentInputUpdateContract,\n\tExactCompiledComponentUpdateContract\n} from '../component-definition-contracts.js';\nimport type {\n\tAnyExactComponentCallable,\n\tExactComponentReactiveAllocation\n} from './executable-fields.js';\nimport type { CompiledComponentInstanceConstructor } from '../component/instance-construction.js';\nimport type { Child } from '../component/contracts.js';\nimport type { ExactValueSerializationSchema } from './value-serialization.js';\n\n/** DOM protocol key used only by compiler-produced one-shot component output attachment. */\nexport const exactCompiledClientAttachment = Symbol.for(\n\t'@exactjs/compiled-client-component-attachment'\n);\n\n/** DOM protocol key used by a foreign renderer's fixed compiled island artifact. */\nexport const exactCompatibilityClientAttachment = Symbol.for(\n\t'@exactjs/compatibility-client-component-attachment'\n);\n\n/** DOM-owned attachment cursor for output already executed by a compiled client artifact. */\nexport type ExactCompiledClientAttachmentTarget = Readonly<{\n\t[exactCompiledClientAttachment](\n\t\tartifact: ExactClientComponentArtifact,\n\t\tinstance: object,\n\t\tchildren: Child[],\n\t\tmode: ExactClientAttachMode\n\t): ExactClientMountedRange;\n}>;\n\n/** DOM-owned cursor that delegates a fixed compatibility artifact to its renderer owner. */\nexport type ExactCompatibilityClientAttachmentTarget = Readonly<{\n\t[exactCompatibilityClientAttachment](\n\t\tartifact: ExactClientComponentArtifact,\n\t\tinstance: object,\n\t\tmode: ExactClientAttachMode\n\t): ExactClientMountedRange;\n}>;\n\n/** Selects fresh topology creation or same-build DOM adoption. */\nexport type ExactClientAttachMode = 'mount' | 'hydrate';\n\n/** DOM-owned mounted range returned after a client artifact successfully attaches. */\nexport type ExactClientMountedRange = object;\n\n/** Existing parent-owned values consumed directly by one allocation-free receiver receipt. */\nexport type ExactClientPropSource = Readonly<Record<string, unknown>>;\n\n/** Complete executable ABI carried by one compiler-produced client component export. */\nexport type ExactClientComponentArtifact = Readonly<{\n\tversion: typeof componentContractVersion;\n\ttarget: 'client';\n\tid: string;\n\ttemplate?: object;\n\tconstruct: CompiledComponentInstanceConstructor;\n\tattach: AnyExactComponentCallable;\n\treceive: AnyExactComponentCallable;\n\tdispose: AnyExactComponentCallable;\n\t/** Setup implementation retained until generated construction subsumes authored setup in Phase 2. */\n\tinstantiate: AnyExactComponentCallable;\n\t/** Compact compiler/runtime capability bits selecting instance storage and owned sidecars. */\n\tabi: number;\n\tupdates?: ExactCompiledComponentUpdateContract;\n\t/** Immutable receiver-owned plan for exact indexed prop-to-state relationships. */\n\tinputs?: ExactCompiledComponentInputUpdateContract;\n\tstate: readonly string[];\n\tprops: readonly string[];\n\t/** Finite compiler-owned shape used only for compact root-prop publication. */\n\tserialization?: ExactValueSerializationSchema;\n\t/** Foreign-owned prop values retained by identity without recursive reactive proxying. */\n\topaqueProps?: readonly PropertyKey[];\n\t/** Opaque prop identities whose replacement requires a new component-owned range. */\n\tidentityProps?: readonly PropertyKey[];\n\ttasks?: readonly string[];\n\treactive?: readonly ExactComponentReactiveAllocation[];\n\trender?: 'returned-function';\n\tcapabilities: readonly ExactCompiledComponentCapability[];\n}>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatibility-contribution.js","sourceRoot":"","sources":["../../src/component-abi/compatibility-contribution.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,MAAM,8BAA8B,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;AACzF,MAAM,iCAAiC,GAAG,MAAM,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;AAkBhG;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAC9C,SAAkD,EAClD,GAAY;IAEZ,IAAI,OAAO,SAAS,KAAK,UAAU;QAClC,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAC;IAC7F,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,8BAA8B,EAAE;QAC9E,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,KAAK;KACjB,CAAmC,CAAC;IACrC,IAAI,GAAG,KAAK,SAAS;QACpB,MAAM,CAAC,cAAc,CAAC,YAAY,EAAE,iCAAiC,EAAE;YACtE,KAAK,EAAE,GAAG;YACV,UAAU,EAAE,KAAK;SACjB,CAAC,CAAC;IACJ,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,4BAA4B,CAC3C,YAA4C;IAE5C,IAAI,CAAC,2BAA2B,CAAC,YAAY,CAAC;QAC7C,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;IAClE,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAAC;AACxD,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,2BAA2B,CAC1C,KAAc;IAEd,OAAO,CACN,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,OAAQ,KAAiD,CAAC,8BAA8B,CAAC;YACxF,UAAU,CACX,CAAC;AACH,CAAC;AAED,sGAAsG;AACtG,MAAM,UAAU,8BAA8B,CAC7C,YAA4C,EAC5C,MAA4C;IAE5C,IAAI,CAAC,2BAA2B,CAAC,YAAY,CAAC;QAC7C,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;IAClE,OAAO,YAAY,CAAC,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC"}
|
|
1
|
+
{"version":3,"file":"compatibility-contribution.js","sourceRoot":"","sources":["../../src/component-abi/compatibility-contribution.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,MAAM,8BAA8B,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;AACzF,MAAM,iCAAiC,GAAG,MAAM,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;AAkBhG;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAC9C,SAAkD,EAClD,GAAY;IAEZ,IAAI,OAAO,SAAS,KAAK,UAAU;QAClC,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAC;IAC7F,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,8BAA8B,EAAE;QAC9E,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,KAAK;KACjB,CAAmC,CAAC;IACrC,IAAI,GAAG,KAAK,SAAS;QACpB,MAAM,CAAC,cAAc,CAAC,YAAY,EAAE,iCAAiC,EAAE;YACtE,KAAK,EAAE,GAAG;YACV,UAAU,EAAE,KAAK;SACjB,CAAC,CAAC;IACJ,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,4BAA4B,CAC3C,YAA4C;IAE5C,IAAI,CAAC,2BAA2B,CAAC,YAAY,CAAC;QAC7C,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;IAClE,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAAC;AACxD,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,2BAA2B,CAC1C,KAAc;IAEd,OAAO,CACN,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,OAAQ,KAAiD,CAAC,8BAA8B,CAAC;YACxF,UAAU,CACX,CAAC;AACH,CAAC;AAED,sGAAsG;AACtG,MAAM,UAAU,8BAA8B,CAC7C,YAA4C,EAC5C,MAA4C;IAE5C,IAAI,CAAC,2BAA2B,CAAC,YAAY,CAAC;QAC7C,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;IAClE,OAAO,YAAY,CAAC,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC","sourcesContent":["/** Realm-stable operation key carried only by an opaque foreign-ownership contribution handle. */\nconst exactCompatibilityContribution = Symbol.for('@exactjs/compatibility-contribution');\nconst exactCompatibilityContributionKey = Symbol.for('@exactjs/compatibility-contribution-key');\n\n/** Target-owned focused placement surface called by one supplier-generated range operation. */\nexport type ExactCompatibilityContributionTarget = Readonly<{\n\tplace(value: unknown): object;\n}>;\n\n/** Opaque handle retained, keyed, and cloned by a foreign owner without inspecting native shape. */\nexport type ExactCompatibilityContribution = Readonly<{\n\t[exactCompatibilityContribution](target: ExactCompatibilityContributionTarget): object;\n\t[exactCompatibilityContributionKey]?: string;\n}>;\n\n/** Supplier-generated operation that places its authored contribution through focused target work. */\nexport type ExactCompatibilityContributionOperation = (\n\ttarget: ExactCompatibilityContributionTarget\n) => object;\n\n/**\n * Creates one opaque crossing handle around a compiler-selected child-range operation.\n *\n * The operation, rather than the handle or foreign owner, retains native topology and lifecycle\n * knowledge. The handle exposes no value kind, topology, or materialization operation.\n */\nexport function createCompatibilityContribution(\n\toperation: ExactCompatibilityContributionOperation,\n\tkey?: string\n): ExactCompatibilityContribution {\n\tif (typeof operation !== 'function')\n\t\tthrow new TypeError('A compatibility contribution requires a compiled placement operation');\n\tconst contribution = Object.defineProperty({}, exactCompatibilityContribution, {\n\t\tvalue: operation,\n\t\tenumerable: false\n\t}) as ExactCompatibilityContribution;\n\tif (key !== undefined)\n\t\tObject.defineProperty(contribution, exactCompatibilityContributionKey, {\n\t\t\tvalue: key,\n\t\t\tenumerable: false\n\t\t});\n\treturn Object.freeze(contribution);\n}\n\n/** Reads only the foreign-owner identity attached by the supplying compiled operation. */\nexport function compatibilityContributionKey(\n\tcontribution: ExactCompatibilityContribution\n): string | undefined {\n\tif (!isCompatibilityContribution(contribution))\n\t\tthrow new TypeError('Invalid compatibility contribution handle');\n\treturn contribution[exactCompatibilityContributionKey];\n}\n\n/** Reports only whether a value carries the opaque crossing protocol, never what it contributes. */\nexport function isCompatibilityContribution(\n\tvalue: unknown\n): value is ExactCompatibilityContribution {\n\treturn (\n\t\ttypeof value === 'object' &&\n\t\tvalue !== null &&\n\t\ttypeof (value as Partial<ExactCompatibilityContribution>)[exactCompatibilityContribution] ===\n\t\t\t'function'\n\t);\n}\n\n/** Invokes a supplier-owned contribution without exposing its authored value to the foreign owner. */\nexport function placeCompatibilityContribution(\n\tcontribution: ExactCompatibilityContribution,\n\ttarget: ExactCompatibilityContributionTarget\n): object {\n\tif (!isCompatibilityContribution(contribution))\n\t\tthrow new TypeError('Invalid compatibility contribution handle');\n\treturn contribution[exactCompatibilityContribution](target);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiled-child-range.d.ts","sourceRoot":"","sources":["../../src/component-abi/compiled-child-range.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compiled-child-range.d.ts","sourceRoot":"","sources":["../../src/component-abi/compiled-child-range.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEhG,6EAA6E;AAC7E,wBAAgB,+BAA+B,CAC9C,OAAO,EAAE,MAAM,OAAO,EACtB,QAAQ,CAAC,EAAE,MAAM,EACjB,iBAAiB,UAAO,GACtB,sBAAsB,CAMxB"}
|