@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":"component-contracts.js","sourceRoot":"","sources":["../../src/component-contracts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EACN,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,MAAM,6CAA6C,CAAC;AAgBrD,OAAO,EACN,0BAA0B,EAE1B,MAAM,wCAAwC,CAAC;AAEhD,wFAAwF;AACxF,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAEhF,gGAAgG;AAChG,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AA6MnE,kFAAkF;AAClF,MAAM,UAAU,gBAAgB,CAAC,SAAkB;IAClD,IAAI,OAAO,SAAS,KAAK,UAAU;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,QAAQ,GAAI,SAA+B,CAAC,kBAAkB,CAAC,CAAC;IACtE,OAAO,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;AAC5D,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,0BAA0B,CACzC,SAAoC;IAEpC,MAAM,QAAQ,GAAI,SAA+B,CAAC,sBAAsB,CAAC,CAAC;IAC1E,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChC,MAAM,WAAW,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC;IACtD,OAAO,0BAA0B,CAAC,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;AACrE,CAAC;AAED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gB,CAAC,CAAC;QAC9E,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC;IAC5C,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC;QACpB,eAAe;QACf,mBAAmB;QACnB,aAAa;QACb,SAAS;QACT,UAAU;QACV,WAAW;QACX,UAAU;QACV,SAAS;KACT,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { componentContractVersion } from './component/contract-versions.js';\nimport type { ContextToken } from './component/contracts.js';\nimport type { TaskContext } from './tasks/contracts.js';\nimport { validatedComponentContract } from './component-contract/contract-cache.js';\nimport {\n\taddUniqueExecutor,\n\taddUniqueImplementation,\n\taddUniqueJson\n} from './component-contract/composition-support.js';\nimport type { ExactComponentExecutableArtifact } from './component-abi/artifact.js';\nimport type { ExactClientComponentArtifact } from './component-abi/client.js';\nimport type { ExactServerComponentArtifact } from './component-abi/server.js';\nimport type {\n\tAnyExactComponentCallable,\n\tExactComponentReactiveAllocation\n} from './component-abi/executable-fields.js';\n\nexport type { ExactComponentExecutableArtifact } from './component-abi/artifact.js';\nexport type { ExactClientComponentArtifact } from './component-abi/client.js';\nexport type {\n\tExactServerComponentArtifact,\n\tExactServerComponentExecution\n} from './component-abi/server.js';\nexport type { AnyExactComponentCallable } from './component-abi/executable-fields.js';\nexport {\n\tdecodeExactValueWithSchema,\n\ttype ExactValueSerializationSchema\n} from './component-abi/value-serialization.js';\n\n/** Global property under which compiled artifacts carry their target-local contract. */\nexport const exactComponentContract = Symbol.for('@exactjs/component-contract');\n\n/** Global marker distinguishing a native eXact component from compatibility-owned functions. */\nexport const exactComponentType = Symbol.for('@exactjs/component');\n\n/** One executable implementation owned by a compiled component artifact. */\nexport type ExactComponentImplementationContract = Readonly<{\n\tid: string;\n\tname: string;\n\trole: 'root' | 'client-island' | 'server-part';\n\timplementation: AnyExactComponentCallable;\n}>;\n\n/** Runtime-neutral state path used by a generated continuation contract. */\nexport type ExactContinuationStatePathContract = Readonly<{\n\tpath: string;\n\tkind: 'read' | 'write';\n\tconfidence: 'exact' | 'broad' | 'unknown';\n\toperation?: 'value' | 'map' | 'set';\n}>;\n\n/** One ordered Map or Set mutation returned by a server continuation. */\nexport type ExactCollectionMutation =\n\t| Readonly<{ path: string; operation: 'map-set'; key: unknown; value: unknown }>\n\t| Readonly<{ path: string; operation: 'map-delete'; key: unknown }>\n\t| Readonly<{ path: string; operation: 'map-clear' }>\n\t| Readonly<{ path: string; operation: 'set-add'; value: unknown }>\n\t| Readonly<{ path: string; operation: 'set-delete'; value: unknown }>\n\t| Readonly<{ path: string; operation: 'set-clear' }>;\n\n/** Private operation contract attached to the component artifact that owns it. */\nexport type ExactComponentContinuationContract = Readonly<{\n\tid: string;\n\tkind: 'task';\n\tcomponentId: string;\n\treadiness: 'blocking' | 'nonblocking';\n\tconcurrency?: 'parallel' | 'latest' | 'queue';\n\tdependencies: readonly Readonly<{\n\t\tindex?: number;\n\t\tsource: 'state' | 'props' | 'derived' | 'argument';\n\t\tpath?: string;\n\t}>[];\n\tinvocation?: Readonly<{\n\t\targuments: readonly Readonly<{ index?: number; source: 'argument'; path?: string }>[];\n\t\tconcurrency: 'parallel' | 'latest' | 'queue';\n\t}>;\n\tstateReads: readonly ExactContinuationStatePathContract[];\n\tstateWrites: readonly ExactContinuationStatePathContract[];\n\tpublicContexts: readonly string[];\n\tserverContexts: readonly string[];\n\tcontextWrites: readonly string[];\n\t/** Server-owned context mutations which never enter the client response. */\n\tserverContextWrites?: readonly string[];\n\tboundaries: readonly string[];\n}>;\n\n/** Serializable activation record accepted by one generated server continuation. */\nexport type ExactComponentContinuationActivation = Readonly<{\n\tstate: Record<string, unknown>;\n\tdependencies: readonly unknown[];\n\tpublicContext: Readonly<Record<string, unknown>>;\n\tgeneration?: number;\n}>;\n\n/** Trusted invocation resources available only while a server continuation executes. */\nexport type ExactComponentContinuationExecution = Readonly<{\n\ttask: TaskContext;\n\tsignal: AbortSignal;\n\tgetContext<T>(token: ContextToken<T>, authoredName?: string): T;\n\tsetContext<T>(token: ContextToken<T>, value: T, authoredName?: string): void;\n}>;\n\n/** State accumulated by a generated continuation before write-contract projection. */\nexport type ExactComponentContinuationExecutionResult = Readonly<{\n\tstate: Record<string, unknown>;\n\tcontexts?: Readonly<Record<string, unknown>>;\n\tvalue?: unknown;\n}>;\n\n/** Executable server half paired with one inert continuation descriptor. */\nexport type ExactComponentContinuationExecutorContract = Readonly<{\n\tid: string;\n\tcomponentId: string;\n\texecute(\n\t\tactivation: ExactComponentContinuationActivation,\n\t\texecution: ExactComponentContinuationExecution\n\t): ExactComponentContinuationExecutionResult | Promise<ExactComponentContinuationExecutionResult>;\n}>;\n\n/** One compiler-owned DOM boundary and its component ownership. */\nexport type ExactComponentBoundaryContract = Readonly<{\n\tid: string;\n\tcomponentId: string;\n\townerComponentId: string;\n\tkind: string;\n\tplanVersion?: number;\n\tbuildKey?: string;\n\tplanEdgeId?: string;\n\tparentPlanId?: string;\n\tfallbackPlanId?: string;\n\tpatchTargets?: readonly string[];\n\tdiscriminatorKind?: 'single' | 'branch' | 'keyed';\n\tdiscriminatorValues?: readonly string[];\n\tgeneration?: number;\n}>;\n\n/** Minimum browser-visible values required to resume one SSR component. */\nexport type ExactComponentResumptionContract = Readonly<{\n\tcomponentId: string;\n\tstatePaths: readonly string[];\n\t/** State path and root-prop path pairs that client setup can reconstruct. */\n\tstateInputs: readonly (readonly [statePath: string, propPath: string])[];\n\t/** Compact completion allowlist when a hydration artifact omits its execution catalog. */\n\tcontinuations?: readonly string[];\n\t/** Server-only primitive setup values that sparse capture may omit. */\n\tstateDefaults?: readonly (readonly [\n\t\tstatePath: string,\n\t\tvalue: string | number | boolean | null\n\t])[];\n\tvalueCaptures: readonly string[];\n\tcontexts: readonly string[];\n\tboundaries: readonly string[];\n}>;\n\n/** Compact target-local execution wiring emitted for one semantic component. */\nexport type ExactComponentExecutionContract = Readonly<{\n\tversion: 1;\n\t/** Port tuple: kind, authored path, direction. Its array position is its index. */\n\tports: readonly (readonly [\n\t\tkind: 'state' | 'props' | 'context' | 'derived' | 'argument',\n\t\tpath: string,\n\t\tdirection: 'input' | 'output' | 'inout'\n\t])[];\n\t/** Transition tuple: identity, task, activation, placement, readiness, concurrency, inputs, outputs. */\n\ttransitions: readonly (readonly [\n\t\tid: string,\n\t\ttaskId: string,\n\t\tactivation: 'setup' | 'interaction',\n\t\tplacement: 'client' | 'server' | 'isomorphic',\n\t\treadiness: 'blocking' | 'nonblocking',\n\t\tconcurrency: 'parallel' | 'latest' | 'queue',\n\t\tinputs: readonly number[],\n\t\toutputs: readonly number[]\n\t])[];\n\t/** Build-inspection inventory omitted from render-mode-projected runtime bundles. */\n\treactive?: readonly ExactComponentReactiveAllocation[];\n}>;\n\n/** One component-owned direct DOM update program shared by every instance of its definition. */\nexport type {\n\tExactCompiledComponentCapability,\n\tExactCompiledComponentInputUpdateContract,\n\tExactCompiledComponentUpdateContract,\n\tExactNarrowComponentUpdateContract,\n\tExactWideComponentUpdateContract\n} from './component-definition-contracts.js';\n\n/** Target-local executable contract attached to a public component root. */\nexport type ExactComponentContract = Readonly<{\n\t/** Target-discriminated component contract for this compiler/runtime generation. */\n\tversion: typeof componentContractVersion;\n\tplacement: 'client' | 'server' | 'isomorphic' | 'unknown';\n\trole: 'client' | 'render' | 'executor';\n\timplementations: readonly ExactComponentImplementationContract[];\n\tcontinuations: readonly ExactComponentContinuationContract[];\n\texecutors: readonly ExactComponentContinuationExecutorContract[];\n\tboundaries: readonly ExactComponentBoundaryContract[];\n\tresumption?: ExactComponentResumptionContract;\n\texecution?: ExactComponentExecutionContract;\n\tartifact: ExactComponentExecutableArtifact;\n}>;\n\n/** Build-projected runtime attachment after adapter-owned composition facts are erased. */\nexport type ExactPreparedComponentContract = Readonly<\n\tPick<ExactComponentContract, 'artifact'> & Partial<Omit<ExactComponentContract, 'artifact'>>\n>;\n\n/** Runtime attachment whose single executable artifact is guaranteed by the current target ABI. */\nexport type ExactExecutableComponentContract = ExactPreparedComponentContract;\n\n/** Prepared attachment whose target-local artifact is always executable. */\nexport type ExactPreparedExecutableComponentContract = ExactExecutableComponentContract;\n\n/** Current executable contract proven to carry the client target ABI. */\nexport type ExactClientExecutableComponentContract = ExactExecutableComponentContract &\n\tReadonly<{ artifact: ExactClientComponentArtifact }>;\n\n/** Current executable contract proven to carry the server target ABI. */\nexport type ExactServerExecutableComponentContract = ExactComponentContract &\n\tReadonly<{ artifact: ExactServerComponentArtifact }>;\n\n/** Composed target-local contracts indexed for runtime use. */\nexport type ExactComposedComponentContracts = Readonly<{\n\timplementations: Record<string, AnyExactComponentCallable>;\n\timplementationsById: Record<string, AnyExactComponentCallable>;\n\tcontinuations: Record<string, ExactComponentContinuationContract>;\n\texecutors: Record<string, ExactComponentContinuationExecutorContract>;\n\tboundaries: Record<string, ExactComponentBoundaryContract>;\n\tresumptions: Record<string, ExactComponentResumptionContract>;\n\texecutions: Record<string, ExactComponentExecutionContract>;\n\tartifacts: Record<string, ExactComponentExecutableArtifact>;\n}>;\n\ntype ContractComponent = AnyExactComponentCallable & {\n\t[exactComponentContract]?: ExactComponentContract;\n\t[exactComponentType]?: string;\n};\n\n/** Returns whether a callable carries a valid native eXact component identity. */\nexport function isExactComponent(component: unknown): component is AnyExactComponentCallable {\n\tif (typeof component !== 'function') return false;\n\tconst identity = (component as ContractComponent)[exactComponentType];\n\treturn typeof identity === 'string' && identity.length > 0;\n}\n\n/** Reads and validates compiler-attached metadata from one target-local component export. */\nexport function readExactComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactComponentContract | undefined {\n\tconst contract = (component as ContractComponent)[exactComponentContract];\n\tif (!contract) return undefined;\n\tconst componentId = exactComponentIdentity(component);\n\treturn validatedComponentContract(component, contract, componentId);\n}\n\n/** Reads one current executable target artifact and rejects obsolete or identity-only values. */\nexport function readExactExecutableComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactExecutableComponentContract {\n\tconst contract = readExactComponentContract(component);\n\tif (!contract?.artifact)\n\t\tthrow new TypeError('Native eXact component execution requires a compiled component artifact');\n\treturn contract;\n}\n\n/** Reads and validates one client-target executable component contract. */\nexport function readExactClientExecutableComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactClientExecutableComponentContract {\n\tconst contract = readExactExecutableComponentContract(component);\n\tif (contract.artifact.target !== 'client')\n\t\tthrow new TypeError('Client execution requires a current client component artifact');\n\treturn contract as ExactClientExecutableComponentContract;\n}\n\n/** Reads and validates one server-target executable component contract. */\nexport function readExactServerExecutableComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactServerExecutableComponentContract {\n\tconst contract = readExactExecutableComponentContract(component);\n\tif (contract.artifact.target !== 'server')\n\t\tthrow new TypeError('Server execution requires a current server component artifact');\n\treturn contract as ExactServerExecutableComponentContract;\n}\n\n/** Reads build-validated compiler metadata without repeating recursive runtime validation. */\nexport function readPreparedExactComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactPreparedComponentContract | undefined {\n\tconst contract = (component as ContractComponent)[exactComponentContract];\n\tif (contract && contract.artifact?.version !== componentContractVersion)\n\t\tthrow new TypeError(\n\t\t\t`Unsupported eXact component artifact version ${contract.artifact?.version}; expected ${componentContractVersion}. Recompile with the matching eXact compiler.`\n\t\t);\n\treturn contract;\n}\n\n/** Reads a build-validated current executable target artifact. */\nexport function readPreparedExactExecutableComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactPreparedExecutableComponentContract {\n\tconst contract = readPreparedExactComponentContract(component);\n\tif (!contract?.artifact)\n\t\tthrow new TypeError(\n\t\t\t`Native eXact component execution requires a compiled component artifact: ${component.name || '<anonymous>'}`\n\t\t);\n\treturn contract;\n}\n\n/** Reads one build-validated client-target executable component contract. */\nexport function readPreparedExactClientExecutableComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactPreparedComponentContract & Readonly<{ artifact: ExactClientComponentArtifact }> {\n\tconst contract = readPreparedExactExecutableComponentContract(component);\n\tif (contract.artifact.target !== 'client')\n\t\tthrow new TypeError('Client execution requires a current client component artifact');\n\treturn contract as ExactPreparedComponentContract &\n\t\tReadonly<{ artifact: ExactClientComponentArtifact }>;\n}\n\n/** Reads one build-validated server-target executable component contract. */\nexport function readPreparedExactServerExecutableComponentContract(\n\tcomponent: AnyExactComponentCallable\n): ExactServerExecutableComponentContract {\n\tconst contract = readPreparedExactExecutableComponentContract(component);\n\tif (contract.artifact.target !== 'server')\n\t\tthrow new TypeError('Server execution requires a current server component artifact');\n\treturn contract as ExactServerExecutableComponentContract;\n}\n\n/** Returns the stable compiler identity used to pair SSR and client component boundaries. */\nexport function exactComponentIdentity(component: AnyExactComponentCallable): string {\n\tconst identity = (component as ContractComponent)[exactComponentType];\n\tif (typeof identity === 'string' && identity) return identity;\n\tthrow new Error('Native eXact components require compiler-owned identity');\n}\n\n/** Composes reachable imported component contracts into duplicate-checked runtime indexes. */\nexport function composeExactComponentContracts(\n\tcomponents: readonly AnyExactComponentCallable[],\n\trole: ExactComponentContract['role']\n): ExactComposedComponentContracts {\n\treturn composeComponentContracts(components, role, readExactComponentContract);\n}\n\n/** Composes build-validated compiler metadata without repeating recursive validation. */\nexport function composePreparedExactComponentContracts(\n\tcomponents: readonly AnyExactComponentCallable[],\n\trole: ExactComponentContract['role']\n): ExactComposedComponentContracts {\n\treturn composeComponentContracts(components, role, readPreparedExactComponentContract);\n}\n\nfunction composeComponentContracts(\n\tcomponents: readonly AnyExactComponentCallable[],\n\trole: ExactComponentContract['role'],\n\treadContract: (component: AnyExactComponentCallable) => ExactPreparedComponentContract | undefined\n): ExactComposedComponentContracts {\n\tconst implementations: Record<string, AnyExactComponentCallable> = {};\n\tconst implementationsById: Record<string, AnyExactComponentCallable> = {};\n\tconst continuations: Record<string, ExactComponentContinuationContract> = {};\n\tconst executors: Record<string, ExactComponentContinuationExecutorContract> = {};\n\tconst boundaries: Record<string, ExactComponentBoundaryContract> = {};\n\tconst resumptions: Record<string, ExactComponentResumptionContract> = {};\n\tconst executions: Record<string, ExactComponentExecutionContract> = {};\n\tconst artifacts: Record<string, ExactComponentExecutableArtifact> = {};\n\n\tfor (const component of components) {\n\t\tconst contract = readContract(component);\n\t\tif (!contract) continue;\n\t\tconst componentId = exactComponentIdentity(component);\n\t\tconst projectedRole =\n\t\t\tcontract.role ?? (contract.artifact.target === 'client' ? 'client' : 'render');\n\t\tif (projectedRole !== role)\n\t\t\tthrow new Error(\n\t\t\t\t`Expected eXact ${role} component contract for ${componentId}, received ${projectedRole}`\n\t\t\t);\n\t\tconst projectedImplementations = contract.implementations ?? [\n\t\t\t{\n\t\t\t\tid: componentId,\n\t\t\t\tname: component.name,\n\t\t\t\trole: 'root' as const,\n\t\t\t\timplementation: component\n\t\t\t}\n\t\t];\n\t\tfor (const implementation of projectedImplementations) {\n\t\t\taddUniqueImplementation(\n\t\t\t\timplementationsById,\n\t\t\t\timplementation.id,\n\t\t\t\timplementation.implementation\n\t\t\t);\n\t\t\taddUniqueImplementation(implementations, implementation.name, implementation.implementation);\n\t\t}\n\t\tfor (const continuation of contract.continuations ?? [])\n\t\t\taddUniqueJson(continuations, continuation.id, continuation, 'continuation');\n\t\tfor (const executor of contract.executors ?? []) addUniqueExecutor(executors, executor);\n\t\tfor (const boundary of contract.boundaries ?? [])\n\t\t\taddUniqueJson(boundaries, boundary.id, boundary, 'boundary');\n\t\tif (contract.resumption)\n\t\t\taddUniqueJson(\n\t\t\t\tresumptions,\n\t\t\t\tcontract.resumption.componentId,\n\t\t\t\tcontract.resumption,\n\t\t\t\t'resumption'\n\t\t\t);\n\t\tif (contract.execution)\n\t\t\taddUniqueJson(executions, componentId, contract.execution, 'execution plan');\n\t\tartifacts[componentId] = contract.artifact;\n\t}\n\n\treturn Object.freeze({\n\t\timplementations,\n\t\timplementationsById,\n\t\tcontinuations,\n\t\texecutors,\n\t\tboundaries,\n\t\tresumptions,\n\t\texecutions,\n\t\tartifacts\n\t});\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-definition-contracts.js","sourceRoot":"","sources":["../../src/component-definition-contracts.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"component-definition-contracts.js","sourceRoot":"","sources":["../../src/component-definition-contracts.ts"],"names":[],"mappings":"","sourcesContent":["/** Optional runtime capability made reachable by one compiled component definition. */\nexport type ExactCompiledComponentCapability =\n\t| 'tasks'\n\t| 'continuations'\n\t| 'resumption'\n\t| 'inspection'\n\t| 'registry'\n\t| 'enhancements'\n\t| 'interactions'\n\t| 'compatibility'\n\t| 'dynamic-components'\n\t| 'collections'\n\t| 'contexts'\n\t| 'targets';\n\n/** Ordinary component update program whose operations fit in two inline mask words. */\nexport type ExactNarrowComponentUpdateContract = Readonly<{\n\t/** Stable component storage slot plus its low/high operation masks. */\n\tbindings: readonly (readonly [slot: number, dirtyLow: number, dirtyHigh: number])[];\n\t/** Number of leading bindings backed by props; absent state-only artifacts import a lean lane. */\n\tprops?: number;\n\twords?: never;\n\t/** Applies compiler-selected operations to the currently mounted finite-region targets. */\n\tapply(targets: readonly (object | undefined)[], dirtyLow: number, dirtyHigh: number): void;\n}>;\n\n/** Large component update program with compiler-sized mask storage beyond its inline words. */\nexport type ExactWideComponentUpdateContract = Readonly<{\n\t/** Stable component storage slot plus every 32-operation mask affected by that field. */\n\tbindings: readonly (readonly [\n\t\tslot: number,\n\t\tdirtyLow: number,\n\t\tdirtyHigh: number,\n\t\tdirtyWord0: number,\n\t\t...dirtyWords: number[]\n\t])[];\n\t/** Number of leading bindings backed by props; absent state-only artifacts import a lean lane. */\n\tprops?: number;\n\t/** Total mask words; wide artifacts always contain at least three. */\n\twords: number;\n\t/** Applies compiler-selected operations to the currently mounted finite-region targets. */\n\tapply(\n\t\ttargets: readonly (object | undefined)[],\n\t\tdirtyLow: number,\n\t\tdirtyHigh: number,\n\t\tdirtyWords: Uint32Array\n\t): void;\n}>;\n\n/** One component-owned direct DOM update program shared by every instance of its definition. */\nexport type ExactCompiledComponentUpdateContract =\n\t| ExactNarrowComponentUpdateContract\n\t| ExactWideComponentUpdateContract;\n\n/** Receiver-owned prop-to-state operations proven to depend on top-level indexed prop slots. */\nexport type ExactCompiledComponentInputUpdateContract = Readonly<{\n\t/** Stable prop slot plus its low/high operation masks. */\n\tbindings: readonly (readonly [slot: number, dirtyLow: number, dirtyHigh: number])[];\n\t/** Applies finalized prop inputs to the receiving durable component state. */\n\tapply(\n\t\tinstance: Readonly<{ state: object; props: object }>,\n\t\tdirtyLow: number,\n\t\tdirtyHigh: number\n\t): void;\n}>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/component-registry/contracts.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/component-registry/contracts.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n\tAnyAuthoredComponentFunction,\n\tAnyComponentFunction,\n\tAuthoredComponentFunction,\n\tComponentInstance,\n\tRenderResult\n} from '../component/contracts.js';\n\n/** Private type-level identity carried by a component registry. */\nexport declare const componentRegistryBrand: unique symbol;\n/** Private type-level identity carried by a scoped lazy definition entry. */\nexport declare const lazyRegistryEntryBrand: unique symbol;\n\n/**\n * Declarative lazy component entry accepted only inside a registry definition callback.\n * A named interface keeps inferred registry declarations nameable when consumers export KeyOf types.\n */\nexport interface LazyRegistryEntry<Component extends AnyAuthoredComponentFunction> {\n\treadonly [lazyRegistryEntryBrand]: Component;\n}\n\n/** One eager or scoped-lazy entry in a declarative component registry definition. */\nexport type ComponentRegistryDefinitionEntry =\n\t| AnyAuthoredComponentFunction\n\t| LazyRegistryEntry<AnyAuthoredComponentFunction>;\n\n/** Finite immutable definition accepted by {@link createComponentRegistry}. */\nexport type ComponentRegistryDefinition = Readonly<\n\tRecord<string, ComponentRegistryDefinitionEntry>\n>;\n\n/** Resolves a definition descriptor to the authored component exposed at use sites. */\nexport type ResolveRegistryEntry<Entry> =\n\tEntry extends LazyRegistryEntry<infer Component>\n\t\t? Component\n\t\t: Entry extends AnyAuthoredComponentFunction\n\t\t\t? Entry\n\t\t\t: never;\n\n/** Resolves every definition entry to its public component type. */\nexport type ResolveRegistryDefinition<Definition extends ComponentRegistryDefinition> = {\n\treadonly [Key in keyof Definition]: ResolveRegistryEntry<Definition[Key]>;\n};\n\n/** Immutable branded collection of stable registry entry component facades. */\nexport type ComponentRegistry<Definition extends ComponentRegistryDefinition> =\n\tResolveRegistryDefinition<Definition> & {\n\t\treadonly [componentRegistryBrand]: Definition;\n\t};\n\n/** Existential registry accepted by operations that preserve its branded definition. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Runtime registry operations preserve the concrete definition through their own generic parameter.\nexport type AnyComponentRegistry = ComponentRegistry<any>;\n\n/** String component keys declared by a registry, excluding compiler-private symbols. */\nexport type KeyOf<Registry> =\n\tRegistry extends ComponentRegistry<infer Definition> ? Extract<keyof Definition, string> : never;\n\n/** Props accepted by an eXact component function. */\nexport type ComponentProps<Component> =\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any -- State is irrelevant while props are inferred from the heterogeneous component.\n\tComponent extends AuthoredComponentFunction<any, infer Props> ? Props : never;\n\n/** Builder available only while a registry definition callback executes. */\nexport type ComponentRegistryBuilder = {\n\t/**\n\t * Declares a statically analyzable lazy component loader.\n\t *\n\t * Reading the resulting registry entry does not load it; rendering or explicit preloading does.\n\t */\n\tlazy<Component extends AnyAuthoredComponentFunction>(\n\t\tload: () => Promise<Component>\n\t): LazyRegistryEntry<Component>;\n};\n\n/** Correlated key and props union derived from a heterogeneous registry. */\nexport type ComponentSelection<Registry> =\n\tRegistry extends ComponentRegistry<infer Definition>\n\t\t? {\n\t\t\t\t[Key in Extract<keyof Definition, string>]: {\n\t\t\t\t\tcomponent: Key;\n\t\t\t\t\tprops: ComponentProps<ResolveRegistryEntry<Definition[Key]>>;\n\t\t\t\t};\n\t\t\t}[Extract<keyof Definition, string>]\n\t\t: never;\n\n/** Runtime metadata for one stable target-local registry entry facade. */\nexport type ComponentRegistryEntryRuntime = {\n\treadonly registry: ComponentRegistryRuntime;\n\treadonly key: string;\n\treadonly facade: AnyComponentFunction;\n\treadonly eager?: AnyComponentFunction;\n\treadonly load?: () => Promise<AnyComponentFunction>;\n\tresolved?: AnyComponentFunction;\n\tpending?: Promise<AnyComponentFunction>;\n\terror?: unknown;\n\tloadGeneration: number;\n};\n\n/** Runtime metadata for one immutable registry value. */\nexport type ComponentRegistryRuntime = {\n\treadonly id: string;\n\treadonly name: string;\n\treadonly entries: ReadonlyMap<string, ComponentRegistryEntryRuntime>;\n};\n\n/** Immutable diagnostic view of one compiler-owned component registry. */\nexport type ComponentRegistryInspection = Readonly<{\n\tid: string;\n\tname: string;\n\tentries: readonly Readonly<{\n\t\tkey: string;\n\t\tmode: 'eager' | 'lazy';\n\t\tstatus: 'ready' | 'loading' | 'failed' | 'idle';\n\t\tgeneration: number;\n\t}>[];\n}>;\n\n/** Internal component shape used by generated entry facades. */\nexport type RegistryFacadeInstance = ComponentInstance<Record<string, never>>;\n\n/** Public render result returned by correlated registry selection. */\nexport type RegistryRenderResult = RenderResult;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation.d.ts","sourceRoot":"","sources":["../../../src/component-registry/creation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"creation.d.ts","sourceRoot":"","sources":["../../../src/component-registry/creation.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACX,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAK3B,MAAM,gBAAgB,CAAC;AAYxB;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC9C,KAAK,CAAC,UAAU,SAAS,2BAA2B,EAEpD,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAC3B,MAAM,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,UAAU,GACvD,iBAAiB,CAAC,UAAU,CAAC,CAM/B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { componentContractVersion } from '../component/contract-versions.js';
|
|
1
2
|
import { compiledComponentRenderABI } from '../component/compiled-abi.js';
|
|
2
3
|
import { createCompiledDynamicComponent } from '../dynamic-component/runtime.js';
|
|
3
4
|
import { exactComponentContract, exactComponentType, readPreparedExactClientExecutableComponentContract, readPreparedExactServerExecutableComponentContract } from '../component-contracts.js';
|
|
@@ -127,7 +128,7 @@ function attachRegistryFacadeArtifact(facade, entry, target) {
|
|
|
127
128
|
}
|
|
128
129
|
else if (target === 'client') {
|
|
129
130
|
artifact = Object.freeze({
|
|
130
|
-
version:
|
|
131
|
+
version: componentContractVersion,
|
|
131
132
|
target,
|
|
132
133
|
id: identity,
|
|
133
134
|
instantiate: facade,
|
|
@@ -146,7 +147,7 @@ function attachRegistryFacadeArtifact(facade, entry, target) {
|
|
|
146
147
|
}
|
|
147
148
|
else {
|
|
148
149
|
artifact = Object.freeze({
|
|
149
|
-
version:
|
|
150
|
+
version: componentContractVersion,
|
|
150
151
|
target,
|
|
151
152
|
id: identity,
|
|
152
153
|
instantiate: facade,
|
|
@@ -169,7 +170,7 @@ function attachRegistryFacadeArtifact(facade, entry, target) {
|
|
|
169
170
|
});
|
|
170
171
|
}
|
|
171
172
|
const contract = Object.freeze({
|
|
172
|
-
version:
|
|
173
|
+
version: componentContractVersion,
|
|
173
174
|
placement: target,
|
|
174
175
|
role: target === 'client' ? 'client' : 'executor',
|
|
175
176
|
implementations: Object.freeze([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation.js","sourceRoot":"","sources":["../../../src/component-registry/creation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EACN,sBAAsB,EACtB,kBAAkB,EAClB,kDAAkD,EAClD,kDAAkD,EAGlD,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,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cAAc,CAAC,KAAK,IAAI,CAC7D,CAAC;AACH,CAAC","sourcesContent":["import { componentContractVersion } from '../component/contract-versions.js';\nimport type { AnyAuthoredComponentFunction, AnyComponentFunction } from '../component/contracts.js';\nimport { compiledComponentRenderABI } from '../component/compiled-abi.js';\nimport { createCompiledDynamicComponent } from '../dynamic-component/runtime.js';\nimport {\n\texactComponentContract,\n\texactComponentType,\n\treadPreparedExactClientExecutableComponentContract,\n\treadPreparedExactServerExecutableComponentContract,\n\ttype ExactComponentExecutableArtifact,\n\ttype ExactComponentContract\n} from '../component-contracts.js';\nimport { constructRenderComponentInstance } from '../component/render-instance-construction.js';\nimport { createCompiledComponentReceipt } from '../component-abi/receipt.js';\nimport {\n\tattachExactCompiledClientComponent,\n\tdisposeExactClientComponent,\n\treceiveExactDynamicClientComponentProps\n} from '../component-abi/compiled-runtime.js';\nimport {\n\tdisposeExactServerComponent,\n\tissueExactServerComponent,\n\twriteExactServerComponent\n} from '../component-abi/server-runtime.js';\nimport type {\n\tComponentRegistry,\n\tComponentRegistryBuilder,\n\tComponentRegistryDefinition,\n\tComponentRegistryEntryRuntime,\n\tComponentRegistryRuntime,\n\tLazyRegistryEntry,\n\tRegistryFacadeInstance\n} from './contracts.js';\nimport { assertSafeRegistryKey, invalidRegistryEntry } from './errors.js';\nimport { loadRegistryEntry, registerRegistryFacade } from './loading.js';\nimport { componentRegistryValues } from './storage.js';\n\nconst lazyDescriptor = Symbol('exact.lazy-registry-entry');\n\ntype RuntimeLazyEntry = {\n\treadonly [lazyDescriptor]: true;\n\treadonly load: () => Promise<AnyAuthoredComponentFunction>;\n};\n\n/**\n * Creates a registry with compiler-derived identity.\n *\n * This is a generated-code primitive. Application source should call\n * {@link createComponentRegistry}; authored names never become protocol operation IDs.\n */\nexport function createCompiledComponentRegistry<\n\tconst Definition extends ComponentRegistryDefinition\n>(\n\tid: string,\n\tname: string,\n\ttarget: 'client' | 'server',\n\tdefine: (builder: ComponentRegistryBuilder) => Definition\n): ComponentRegistry<Definition> {\n\tif (!id || !name)\n\t\tthrow new TypeError('Compiled component registries require non-empty identity metadata');\n\tif (target !== 'client' && target !== 'server')\n\t\tthrow new TypeError('Compiled component registries require a target-local artifact target');\n\treturn createRegistry(id, name, define, target);\n}\n\nfunction createRegistry<const Definition extends ComponentRegistryDefinition>(\n\tid: string,\n\tname: string,\n\tdefine: (builder: ComponentRegistryBuilder) => Definition,\n\ttarget: 'client' | 'server'\n): ComponentRegistry<Definition> {\n\tif (typeof define !== 'function')\n\t\tthrow new TypeError('createComponentRegistry() requires a definition callback');\n\tlet defining = true;\n\tconst builder: ComponentRegistryBuilder = {\n\t\tlazy<Component extends AnyAuthoredComponentFunction>(\n\t\t\tload: () => Promise<Component>\n\t\t): LazyRegistryEntry<Component> {\n\t\t\tif (!defining)\n\t\t\t\tthrow new Error('Registry lazy() may be called only during its definition callback');\n\t\t\tif (typeof load !== 'function') throw new TypeError('Registry lazy() requires a loader');\n\t\t\treturn Object.freeze({\n\t\t\t\t[lazyDescriptor]: true,\n\t\t\t\tload\n\t\t\t}) as unknown as LazyRegistryEntry<Component>;\n\t\t}\n\t};\n\n\tlet definition: Definition;\n\ttry {\n\t\tdefinition = define(builder);\n\t} finally {\n\t\tdefining = false;\n\t}\n\tif (!definition || typeof definition !== 'object' || Array.isArray(definition))\n\t\tthrow new TypeError('A component registry definition must return a finite object');\n\tconst prototype = Object.getPrototypeOf(definition);\n\tif (prototype !== Object.prototype && prototype !== null)\n\t\tthrow new TypeError('A component registry definition must use a plain object');\n\tconst keys = Object.keys(definition);\n\tif (!keys.length) throw new TypeError('A component registry requires at least one entry');\n\n\tconst value = Object.create(null) as Record<PropertyKey, unknown>;\n\tconst entries = new Map<string, ComponentRegistryEntryRuntime>();\n\tconst runtime: ComponentRegistryRuntime = { id, name, entries };\n\tfor (const key of keys) {\n\t\tassertSafeRegistryKey(key);\n\t\tconst authored = definition[key];\n\t\tconst lazy = isRuntimeLazyEntry(authored) ? authored : undefined;\n\t\tif (!lazy && typeof authored !== 'function')\n\t\t\tthrow invalidRegistryEntry(key, 'expected a component or the scoped lazy() result');\n\t\tconst facade = function RegistryEntryFacade(\n\t\t\tthis: RegistryFacadeInstance,\n\t\t\tprops: Record<string, unknown>\n\t\t) {\n\t\t\tconst renderSelection = () => {\n\t\t\t\tconst component = entry.resolved ?? entry.eager;\n\t\t\t\tif (!component) throw loadRegistryEntry(entry);\n\t\t\t\t// Registry keys are selection identity even when two entries\n\t\t\t\t// intentionally resolve to the same underlying component.\n\t\t\t\treturn createCompiledComponentReceipt(component, {\n\t\t\t\t\t...props,\n\t\t\t\t\tkey: `exact-registry:${entry.key}`\n\t\t\t\t});\n\t\t\t};\n\t\t\tif (target !== 'client') return renderSelection;\n\t\t\tconst selection = createCompiledDynamicComponent({\n\t\t\t\tid: `${id}:${key}`,\n\t\t\t\tsource: () => entry.resolved ?? entry.eager ?? loadRegistryEntry(entry),\n\t\t\t\tprops,\n\t\t\t\tfiniteRegistry: true\n\t\t\t});\n\t\t\treturn () => selection;\n\t\t} as AnyComponentFunction;\n\t\tObject.defineProperty(facade, 'name', {\n\t\t\tconfigurable: true,\n\t\t\tvalue: `${name}.${key}#${id}`\n\t\t});\n\t\tconst entry: ComponentRegistryEntryRuntime = {\n\t\t\tregistry: runtime,\n\t\t\tkey,\n\t\t\tfacade,\n\t\t\teager: lazy ? undefined : (authored as AnyComponentFunction),\n\t\t\tload: lazy?.load as (() => Promise<AnyComponentFunction>) | undefined,\n\t\t\tloadGeneration: 0\n\t\t};\n\t\tif (entry.eager) entry.resolved = entry.eager;\n\t\tattachRegistryFacadeArtifact(facade, entry, target);\n\t\tentries.set(key, entry);\n\t\tregisterRegistryFacade(entry);\n\t\tObject.defineProperty(value, key, {\n\t\t\tenumerable: true,\n\t\t\tvalue: facade\n\t\t});\n\t}\n\tObject.freeze(value);\n\tcomponentRegistryValues.set(value, runtime);\n\treturn value as ComponentRegistry<Definition>;\n}\n\n/** Attaches the target-local render and loader lane selected for one finite registry key. */\nfunction attachRegistryFacadeArtifact(\n\tfacade: AnyComponentFunction,\n\tentry: ComponentRegistryEntryRuntime,\n\ttarget: 'client' | 'server'\n): void {\n\tconst identity = `${entry.registry.id}:${entry.key}`;\n\tconst implementationId = `${identity}:implementation`;\n\tlet artifact: ExactComponentExecutableArtifact;\n\tif (entry.eager) {\n\t\tconst selected =\n\t\t\ttarget === 'client'\n\t\t\t\t? readPreparedExactClientExecutableComponentContract(entry.eager).artifact\n\t\t\t\t: readPreparedExactServerExecutableComponentContract(entry.eager).artifact;\n\t\tartifact = Object.freeze({\n\t\t\t...selected,\n\t\t\tid: identity,\n\t\t\tcapabilities: Object.freeze([...selected.capabilities, 'registry'] as const)\n\t\t}) as ExactComponentExecutableArtifact;\n\t} else if (target === 'client') {\n\t\tartifact = Object.freeze({\n\t\t\tversion: componentContractVersion,\n\t\t\ttarget,\n\t\t\tid: identity,\n\t\t\tinstantiate: facade,\n\t\t\tconstruct: constructRenderComponentInstance,\n\t\t\tabi: compiledComponentRenderABI,\n\t\t\tstate: Object.freeze([]),\n\t\t\tprops: Object.freeze([]),\n\t\t\ttasks: Object.freeze([]),\n\t\t\treactive: Object.freeze([]),\n\t\t\trender: 'returned-function',\n\t\t\tcapabilities: Object.freeze(['registry', 'dynamic-components'] as const),\n\t\t\tattach: attachExactCompiledClientComponent,\n\t\t\treceive: receiveExactDynamicClientComponentProps,\n\t\t\tdispose: disposeExactClientComponent\n\t\t});\n\t} else {\n\t\tartifact = Object.freeze({\n\t\t\tversion: componentContractVersion,\n\t\t\ttarget,\n\t\t\tid: identity,\n\t\t\tinstantiate: facade,\n\t\t\tconstruct: constructRenderComponentInstance,\n\t\t\tabi: compiledComponentRenderABI,\n\t\t\tstate: Object.freeze([]),\n\t\t\tprops: Object.freeze([]),\n\t\t\ttasks: Object.freeze([]),\n\t\t\treactive: Object.freeze([]),\n\t\t\trender: 'returned-function',\n\t\t\tcapabilities: Object.freeze(['registry', 'dynamic-components'] as const),\n\t\t\tissue: issueExactServerComponent,\n\t\t\twrite: writeExactServerComponent,\n\t\t\tdispose: disposeExactServerComponent,\n\t\t\texecution: Object.freeze({ version: 1, classification: 'synchronous', lane: 'direct' }),\n\t\t\tselection: Object.freeze({\n\t\t\t\tkey: entry.key,\n\t\t\t\tresolve: () => entry.resolved ?? entry.eager ?? loadRegistryEntry(entry)\n\t\t\t})\n\t\t});\n\t}\n\tconst contract: ExactComponentContract = Object.freeze({\n\t\tversion: componentContractVersion,\n\t\tplacement: target,\n\t\trole: target === 'client' ? 'client' : 'executor',\n\t\timplementations: Object.freeze([\n\t\t\tObject.freeze({\n\t\t\t\tid: implementationId,\n\t\t\t\tname: facade.name,\n\t\t\t\trole: 'root',\n\t\t\t\timplementation: facade\n\t\t\t})\n\t\t]),\n\t\tcontinuations: Object.freeze([]),\n\t\texecutors: Object.freeze([]),\n\t\tboundaries: Object.freeze([]),\n\t\texecution: Object.freeze({ version: 1, ports: [], transitions: [], reactive: [] }),\n\t\tartifact\n\t});\n\tObject.defineProperties(facade, {\n\t\t[exactComponentType]: { configurable: false, enumerable: false, value: identity },\n\t\t[exactComponentContract]: { configurable: false, enumerable: false, value: contract }\n\t});\n}\n\nfunction isRuntimeLazyEntry(value: unknown): value is RuntimeLazyEntry {\n\treturn (\n\t\ttypeof value === 'object' &&\n\t\tvalue !== null &&\n\t\t(value as Partial<RuntimeLazyEntry>)[lazyDescriptor] === true\n\t);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/component-registry/errors.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;AAE9F,qGAAqG;AACrG,MAAM,UAAU,oBAAoB,CAAC,GAAW,EAAE,MAAc;IAC/D,OAAO,IAAI,SAAS,CAAC,qCAAqC,GAAG,MAAM,MAAM,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAChD,IAAI,CAAC,GAAG,IAAI,2BAA2B,CAAC,GAAG,CAAC,GAAG,CAAC;QAC/C,MAAM,oBAAoB,CAAC,GAAG,EAAE,2CAA2C,CAAC,CAAC;AAC/E,CAAC"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/component-registry/errors.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;AAE9F,qGAAqG;AACrG,MAAM,UAAU,oBAAoB,CAAC,GAAW,EAAE,MAAc;IAC/D,OAAO,IAAI,SAAS,CAAC,qCAAqC,GAAG,MAAM,MAAM,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAChD,IAAI,CAAC,GAAG,IAAI,2BAA2B,CAAC,GAAG,CAAC,GAAG,CAAC;QAC/C,MAAM,oBAAoB,CAAC,GAAG,EAAE,2CAA2C,CAAC,CAAC;AAC/E,CAAC","sourcesContent":["/** Unsafe property names rejected from every component registry definition. */\nexport const unsafeComponentRegistryKeys = new Set(['__proto__', 'prototype', 'constructor']);\n\n/** Creates a diagnostic that identifies one invalid registry entry without exposing protocol IDs. */\nexport function invalidRegistryEntry(key: string, detail: string): TypeError {\n\treturn new TypeError(`Invalid component registry entry \"${key}\": ${detail}`);\n}\n\n/** Asserts that a registry key is finite and safe for a null-prototype immutable record. */\nexport function assertSafeRegistryKey(key: string): void {\n\tif (!key || unsafeComponentRegistryKeys.has(key))\n\t\tthrow invalidRegistryEntry(key, 'keys must be non-empty and prototype-safe');\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.js","sourceRoot":"","sources":["../../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,CAAC;IACxC,IAAI,CAAC,KAAK,CAAC,IAAI;QACd,OAAO,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,KAAK,CAAC,GAAG,EAAE,+BAA+B,CAAC,CAAC,CAAC;IAEzF,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC;IACxB,KAAK,CAAC,cAAc,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE;SAC/B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;SAChB,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE;QACnB,IAAI,OAAO,SAAS,KAAK,UAAU;YAClC,MAAM,oBAAoB,CAAC,KAAK,CAAC,GAAG,EAAE,4CAA4C,CAAC,CAAC;QACrF,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC3B,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC;QAC1B,OAAO,SAAS,CAAC;IAClB,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QAChB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACpB,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,KAAK,CAAC;IACb,CAAC,CAAC,CAAC;IACJ,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,OAAO,OAAO,CAAC;AAChB,CAAC","sourcesContent":["import type { AnyComponentFunction } from '../component/contracts.js';\nimport type { ComponentRegistryEntryRuntime } from './contracts.js';\nimport { invalidRegistryEntry } from './errors.js';\n\nconst entryByFacade = new WeakMap<AnyComponentFunction, ComponentRegistryEntryRuntime>();\n\n/** Associates a stable component facade with its private registry entry contract. */\nexport function registerRegistryFacade(entry: ComponentRegistryEntryRuntime): void {\n\tentryByFacade.set(entry.facade, entry);\n}\n\n/** Returns private registry entry metadata for a generated facade. */\nexport function registryEntryFor(\n\tcomponent: AnyComponentFunction\n): ComponentRegistryEntryRuntime | undefined {\n\treturn entryByFacade.get(component);\n}\n\n/**\n * Resolves and validates one registry entry, deduplicating concurrent consumers.\n *\n * Successful component identity is retained. A rejected load is cleared so an explicit preload\n * or ErrorBoundary reset can retry; individual consumer cancellation never cancels the import.\n */\nexport function loadRegistryEntry(\n\tentry: ComponentRegistryEntryRuntime\n): Promise<AnyComponentFunction> {\n\tif (entry.resolved) return Promise.resolve(entry.resolved);\n\tif (entry.eager) {\n\t\tentry.resolved = entry.eager;\n\t\treturn Promise.resolve(entry.eager);\n\t}\n\tif (entry.pending) return entry.pending;\n\tif (!entry.load)\n\t\treturn Promise.reject(invalidRegistryEntry(entry.key, 'entry has no component loader'));\n\n\tentry.error = undefined;\n\tentry.loadGeneration++;\n\tconst pending = Promise.resolve()\n\t\t.then(entry.load)\n\t\t.then((component) => {\n\t\t\tif (typeof component !== 'function')\n\t\t\t\tthrow invalidRegistryEntry(entry.key, 'lazy loader did not resolve to a component');\n\t\t\tentry.resolved = component;\n\t\t\tentry.pending = undefined;\n\t\t\treturn component;\n\t\t})\n\t\t.catch((error) => {\n\t\t\tentry.error = error;\n\t\t\tentry.pending = undefined;\n\t\t\tthrow error;\n\t\t});\n\tentry.pending = pending;\n\treturn pending;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/component-registry/operations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAM7E,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEvD,4FAA4F;AAC5F,MAAM,UAAU,wBAAwB,CACvC,QAA8B;IAE9B,MAAM,OAAO,GAAG,uBAAuB,CAAC,GAAG,CAAC,QAAkB,CAAC,CAAC;IAChE,IAAI,CAAC,OAAO;QAAE,MAAM,IAA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CAAC;QACnD,MAAM,IAAI,SAAS,CAAC,iDAAiD,CAAC,CAAC;IACxE,MAAM,QAAQ,GAAG,SAAkE,CAAC;IACpF,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC;QAC9C,MAAM,oBAAoB,CAAC,QAAQ,CAAC,SAAS,EAAE,qCAAqC,CAAC,CAAC;IACvF,OAAO,8BAA8B,CACpC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAyB,EACpD,QAAQ,CAAC,KAAK,CACd,CAAC;AACH,CAAC","sourcesContent":["import type { AnyAuthoredComponentFunction, AnyComponentFunction } from '../component/contracts.js';\nimport { createCompiledComponentReceipt } from '../component-abi/receipt.js';\nimport type {\n\tAnyComponentRegistry,\n\tComponentRegistryInspection,\n\tComponentSelection\n} from './contracts.js';\nimport { invalidRegistryEntry, unsafeComponentRegistryKeys } from './errors.js';\nimport { loadRegistryEntry, registryEntryFor } from './loading.js';\nimport { componentRegistryValues } from './storage.js';\n\n/** Returns a frozen diagnostic snapshot without exposing loaders or component functions. */\nexport function inspectComponentRegistry(\n\tregistry: AnyComponentRegistry\n): ComponentRegistryInspection {\n\tconst runtime = componentRegistryValues.get(registry as object);\n\tif (!runtime) throw new TypeError('inspectComponentRegistry() requires a component registry');\n\treturn Object.freeze({\n\t\tid: runtime.id,\n\t\tname: runtime.name,\n\t\tentries: Object.freeze(\n\t\t\t[...runtime.entries.values()].map((entry) =>\n\t\t\t\tObject.freeze({\n\t\t\t\t\tkey: entry.key,\n\t\t\t\t\tmode: entry.load ? ('lazy' as const) : ('eager' as const),\n\t\t\t\t\tstatus: entry.resolved\n\t\t\t\t\t\t? ('ready' as const)\n\t\t\t\t\t\t: entry.pending\n\t\t\t\t\t\t\t? ('loading' as const)\n\t\t\t\t\t\t\t: entry.error\n\t\t\t\t\t\t\t\t? ('failed' as const)\n\t\t\t\t\t\t\t\t: ('idle' as const),\n\t\t\t\t\tgeneration: entry.loadGeneration\n\t\t\t\t})\n\t\t\t)\n\t\t)\n\t});\n}\n\n/** Narrows an untrusted string to the finite keys owned by a branded registry. */\nexport function hasComponent<Registry extends AnyComponentRegistry>(\n\tregistry: Registry,\n\tvalue: string\n): value is Extract<keyof Registry, string> {\n\treturn (\n\t\tcomponentRegistryValues.has(registry as object) &&\n\t\t!unsafeComponentRegistryKeys.has(value) &&\n\t\tObject.prototype.hasOwnProperty.call(registry, value)\n\t);\n}\n\n/** Preloads a lazy registry facade without constructing a component instance. */\nexport async function preloadComponent(component: AnyAuthoredComponentFunction): Promise<void> {\n\tif (typeof component !== 'function')\n\t\tthrow new TypeError('preloadComponent() requires a component');\n\tconst entry = registryEntryFor(component as AnyComponentFunction);\n\tif (!entry) return;\n\tawait loadRegistryEntry(entry);\n}\n\n/** Issues one correlated heterogeneous registry selection through its target-local artifact. */\nexport function renderComponent<Registry extends AnyComponentRegistry>(\n\tregistry: Registry,\n\tselection: ComponentSelection<Registry>\n) {\n\tif (!componentRegistryValues.has(registry as object))\n\t\tthrow new TypeError('renderComponent() requires a component registry');\n\tconst selected = selection as { component: string; props: Record<string, unknown> };\n\tif (!hasComponent(registry, selected.component))\n\t\tthrow invalidRegistryEntry(selected.component, 'key is not present in this registry');\n\treturn createCompiledComponentReceipt(\n\t\tregistry[selected.component] as AnyComponentFunction,\n\t\tselected.props\n\t);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/component-registry/storage.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,OAAO,EAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/component-registry/storage.ts"],"names":[],"mappings":"AAEA,6FAA6F;AAC7F,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,OAAO,EAAoC,CAAC","sourcesContent":["import type { ComponentRegistryRuntime } from './contracts.js';\n\n/** Associates each frozen public registry value with its compiler-created runtime record. */\nexport const componentRegistryValues = new WeakMap<object, ComponentRegistryRuntime>();\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntax.js","sourceRoot":"","sources":["../../../src/component-registry/syntax.ts"],"names":[],"mappings":"AAMA,6EAA6E;AAC7E,MAAM,UAAU,uBAAuB,CACtC,OAA0D;IAE1D,MAAM,IAAI,KAAK,CACd,kFAAkF,CAClF,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"syntax.js","sourceRoot":"","sources":["../../../src/component-registry/syntax.ts"],"names":[],"mappings":"AAMA,6EAA6E;AAC7E,MAAM,UAAU,uBAAuB,CACtC,OAA0D;IAE1D,MAAM,IAAI,KAAK,CACd,kFAAkF,CAClF,CAAC;AACH,CAAC","sourcesContent":["import type {\n\tComponentRegistry,\n\tComponentRegistryBuilder,\n\tComponentRegistryDefinition\n} from './contracts.js';\n\n/** Declares an immutable finite component registry for compiler lowering. */\nexport function createComponentRegistry<const Definition extends ComponentRegistryDefinition>(\n\t_define: (builder: ComponentRegistryBuilder) => Definition\n): ComponentRegistry<Definition> {\n\tthrow new Error(\n\t\t'createComponentRegistry() is source syntax and must be compiled before execution'\n\t);\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Child } from '../component/contracts.js';
|
|
2
|
+
import { type DoctypeOptions } from './doctype.js';
|
|
3
|
+
/** Issues the document composition selected by the compiler without creating a component instance. */
|
|
4
|
+
export declare function createCompiledDocumentReceipt(props: Record<string, unknown> | null, ...children: unknown[]): Child;
|
|
5
|
+
/** Completes immediate authored document structure without traversing application components. */
|
|
6
|
+
export declare function composeDocument(children: unknown, declaration?: DoctypeOptions): Child;
|
|
7
|
+
//# sourceMappingURL=composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../../src/document/composition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG5D,sGAAsG;AACtG,wBAAgB,6BAA6B,CAC5C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACrC,GAAG,QAAQ,EAAE,OAAO,EAAE,GACpB,KAAK,CAKP;AAED,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,cAAc,GAAG,KAAK,CAyCtF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { childrenOf, partitionChildren, withChildren } from '../children/composition.js';
|
|
2
|
+
import { createCompiledIntrinsicReceipt as element, readCompiledIntrinsicReceipt } from '../component-abi/intrinsic-receipt.js';
|
|
3
|
+
import { documentOutput } from './output.js';
|
|
4
|
+
import { doctype } from './doctype.js';
|
|
5
|
+
import { createCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';
|
|
6
|
+
/** Issues the document composition selected by the compiler without creating a component instance. */
|
|
7
|
+
export function createCompiledDocumentReceipt(props, ...children) {
|
|
8
|
+
return composeDocument(children.length ? children : props?.children, props?.doctype);
|
|
9
|
+
}
|
|
10
|
+
/** Completes immediate authored document structure without traversing application components. */
|
|
11
|
+
export function composeDocument(children, declaration) {
|
|
12
|
+
const outer = partitionChildren(children, { html: 'html' });
|
|
13
|
+
const html = single(outer.html, 'html');
|
|
14
|
+
if (html && outer.remaining.length)
|
|
15
|
+
throw new TypeError('Document html cannot have sibling content');
|
|
16
|
+
const sections = partitionChildren(html ? childrenOf(html) : children, {
|
|
17
|
+
head: 'head',
|
|
18
|
+
body: 'body'
|
|
19
|
+
});
|
|
20
|
+
const head = single(sections.head, 'head');
|
|
21
|
+
const body = single(sections.body, 'body');
|
|
22
|
+
const headChildren = head ? childrenOf(head) : [];
|
|
23
|
+
const titles = partitionChildren(headChildren, { title: 'title' });
|
|
24
|
+
const charset = headChildren.some((child) => {
|
|
25
|
+
const intrinsic = readCompiledIntrinsicReceipt(child);
|
|
26
|
+
return (intrinsic?.tag === 'meta' && ('charSet' in intrinsic.props || 'charset' in intrinsic.props));
|
|
27
|
+
});
|
|
28
|
+
const completedHead = [
|
|
29
|
+
...(!charset ? [element('meta', { charset: 'utf-8' })] : []),
|
|
30
|
+
...(!titles.title.length ? [element('title', null, 'eXact application')] : []),
|
|
31
|
+
...headChildren,
|
|
32
|
+
documentOutput.styles,
|
|
33
|
+
documentOutput.headScripts
|
|
34
|
+
];
|
|
35
|
+
const completedBody = [
|
|
36
|
+
...(body ? childrenOf(body) : []),
|
|
37
|
+
...sections.remaining,
|
|
38
|
+
documentOutput.hydrationData,
|
|
39
|
+
documentOutput.bootstrap
|
|
40
|
+
];
|
|
41
|
+
const content = [
|
|
42
|
+
head ? withChildren(head, completedHead) : element('head', null, completedHead),
|
|
43
|
+
body ? withChildren(body, completedBody) : element('body', null, completedBody)
|
|
44
|
+
];
|
|
45
|
+
return createCompiledFragmentReceipt(null, doctype(declaration), html ? withChildren(html, content) : element('html', { lang: 'en' }, content));
|
|
46
|
+
}
|
|
47
|
+
function single(children, tag) {
|
|
48
|
+
if (children.length > 1)
|
|
49
|
+
throw new TypeError(`Document requires at most one <${tag}> element`);
|
|
50
|
+
return children[0];
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../../../src/document/composition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EACN,8BAA8B,IAAI,OAAO,EACzC,4BAA4B,EAC5B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAuB,MAAM,cAAc,CAAC;AAC5D,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CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAC7E,CAAC;AACH,CAAC;AAED,SAAS,MAAM,CAAC,QAA0B,EAAE,GAAW;IACtD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,IAAI,SAAS,CAAC,kCAAkC,GAAG,WAAW,CAAC,CAAC;IAC/F,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC","sourcesContent":["import { childrenOf, partitionChildren, withChildren } from '../children/composition.js';\nimport {\n\tcreateCompiledIntrinsicReceipt as element,\n\treadCompiledIntrinsicReceipt\n} from '../component-abi/intrinsic-receipt.js';\nimport type { Child } from '../component/contracts.js';\nimport { documentOutput } from './output.js';\nimport { doctype, type DoctypeOptions } from './doctype.js';\nimport { createCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';\n\n/** Issues the document composition selected by the compiler without creating a component instance. */\nexport function createCompiledDocumentReceipt(\n\tprops: Record<string, unknown> | null,\n\t...children: unknown[]\n): Child {\n\treturn composeDocument(\n\t\tchildren.length ? children : props?.children,\n\t\tprops?.doctype as DoctypeOptions | undefined\n\t);\n}\n\n/** Completes immediate authored document structure without traversing application components. */\nexport function composeDocument(children: unknown, declaration?: DoctypeOptions): Child {\n\tconst outer = partitionChildren(children, { html: 'html' });\n\tconst html = single(outer.html, 'html');\n\tif (html && outer.remaining.length)\n\t\tthrow new TypeError('Document html cannot have sibling content');\n\tconst sections = partitionChildren(html ? childrenOf(html) : children, {\n\t\thead: 'head',\n\t\tbody: 'body'\n\t});\n\tconst head = single(sections.head, 'head');\n\tconst body = single(sections.body, 'body');\n\tconst headChildren = head ? childrenOf(head) : [];\n\tconst titles = partitionChildren(headChildren, { title: 'title' });\n\tconst charset = headChildren.some((child) => {\n\t\tconst intrinsic = readCompiledIntrinsicReceipt(child);\n\t\treturn (\n\t\t\tintrinsic?.tag === 'meta' && ('charSet' in intrinsic.props || 'charset' in intrinsic.props)\n\t\t);\n\t});\n\tconst completedHead = [\n\t\t...(!charset ? [element('meta', { charset: 'utf-8' })] : []),\n\t\t...(!titles.title.length ? [element('title', null, 'eXact application')] : []),\n\t\t...headChildren,\n\t\tdocumentOutput.styles,\n\t\tdocumentOutput.headScripts\n\t];\n\tconst completedBody = [\n\t\t...(body ? childrenOf(body) : []),\n\t\t...sections.remaining,\n\t\tdocumentOutput.hydrationData,\n\t\tdocumentOutput.bootstrap\n\t];\n\tconst content = [\n\t\thead ? withChildren(head, completedHead) : element('head', null, completedHead),\n\t\tbody ? withChildren(body, completedBody) : element('body', null, completedBody)\n\t];\n\treturn createCompiledFragmentReceipt(\n\t\tnull,\n\t\tdoctype(declaration),\n\t\thtml ? withChildren(html, content) : element('html', { lang: 'en' }, content)\n\t);\n}\n\nfunction single(children: readonly Child[], tag: string): Child | undefined {\n\tif (children.length > 1) throw new TypeError(`Document requires at most one <${tag}> element`);\n\treturn children[0];\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Child } from '../component/contracts.js';
|
|
2
|
+
import type { DoctypeOptions } from './doctype.js';
|
|
3
|
+
/** Authored document structure. Omitted html, head, and body elements receive framework defaults. */
|
|
4
|
+
export type DocumentProps = {
|
|
5
|
+
children?: Child | readonly Child[];
|
|
6
|
+
doctype?: DoctypeOptions;
|
|
7
|
+
};
|
|
8
|
+
/** Compiler-owned document composition boundary preserving supplied elements and reactive bindings. */
|
|
9
|
+
export declare const Document: symbol & ((props: DocumentProps) => never);
|
|
10
|
+
//# sourceMappingURL=definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../src/document/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,qGAAqG;AACrG,MAAM,MAAM,aAAa,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,GAAG,SAAS,KAAK,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAE9F,uGAAuG;AACvG,eAAO,MAAM,QAAQ,EAAsC,MAAM,GAChE,CAAC,CAAC,KAAK,EAAE,aAAa,KAAK,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/document/definition.ts"],"names":[],"mappings":"AAMA,uGAAuG;AACvG,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB,CACpB,CAAC","sourcesContent":["import type { Child } from '../component/contracts.js';\nimport type { DoctypeOptions } from './doctype.js';\n\n/** Authored document structure. Omitted html, head, and body elements receive framework defaults. */\nexport type DocumentProps = { children?: Child | readonly Child[]; doctype?: DoctypeOptions };\n\n/** Compiler-owned document composition boundary preserving supplied elements and reactive bindings. */\nexport const Document = Symbol.for('@exactjs/document') as symbol &\n\t((props: DocumentProps) => never);\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Document declaration identifiers. Omission emits the HTML5 declaration. */
|
|
2
|
+
export type DoctypeOptions = Readonly<{
|
|
3
|
+
name?: string;
|
|
4
|
+
publicId?: string;
|
|
5
|
+
systemId?: string;
|
|
6
|
+
}>;
|
|
7
|
+
/** Renderer dispatch for an explicitly authored document declaration. */
|
|
8
|
+
export declare const exactDoctypeOperation: unique symbol;
|
|
9
|
+
/**
|
|
10
|
+
* Authors a document declaration before the html element. The renderer escapes no markup into
|
|
11
|
+
* this grammar: invalid names and quoted identifiers are rejected. Browser adoption retains
|
|
12
|
+
* the declaration parsed from the server response rather than creating a second one.
|
|
13
|
+
*/
|
|
14
|
+
export declare function doctype(options?: DoctypeOptions): object;
|
|
15
|
+
/** Reads only framework-issued doctype declarations without executing them. */
|
|
16
|
+
export declare function readDoctype(value: unknown): DoctypeOptions | undefined;
|
|
17
|
+
//# sourceMappingURL=doctype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctype.d.ts","sourceRoot":"","sources":["../../../src/document/doctype.ts"],"names":[],"mappings":"AAOA,8EAA8E;AAC9E,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE/F,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,eAAkD,CAAC;AAIrF;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,MAAM,CAmB5D;AAED,+EAA+E;AAC/E,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,CAEtE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createOpaqueOperation, executeOpaqueOperation, sharedOpaqueOperationStore } from '../component-abi/opaque-operation.js';
|
|
2
|
+
import { createCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';
|
|
3
|
+
/** Renderer dispatch for an explicitly authored document declaration. */
|
|
4
|
+
export const exactDoctypeOperation = Symbol.for('@exactjs/target-operation/doctype');
|
|
5
|
+
const declarations = sharedOpaqueOperationStore('doctype');
|
|
6
|
+
const empty = createCompiledFragmentReceipt(null);
|
|
7
|
+
/**
|
|
8
|
+
* Authors a document declaration before the html element. The renderer escapes no markup into
|
|
9
|
+
* this grammar: invalid names and quoted identifiers are rejected. Browser adoption retains
|
|
10
|
+
* the declaration parsed from the server response rather than creating a second one.
|
|
11
|
+
*/
|
|
12
|
+
export function doctype(options = {}) {
|
|
13
|
+
const name = options.name ?? 'html';
|
|
14
|
+
if (!/^[A-Za-z][A-Za-z0-9:_-]*$/.test(name))
|
|
15
|
+
throw new TypeError('Invalid doctype name');
|
|
16
|
+
for (const value of [options.publicId, options.systemId])
|
|
17
|
+
if (value !== undefined && /["<>\u0000-\u001f]/.test(value))
|
|
18
|
+
throw new TypeError('Invalid doctype identifier');
|
|
19
|
+
if (options.publicId !== undefined && options.systemId === undefined)
|
|
20
|
+
throw new TypeError('A public doctype requires a system identifier');
|
|
21
|
+
const declaration = Object.freeze({ ...options, name });
|
|
22
|
+
const operation = createOpaqueOperation(function (target) {
|
|
23
|
+
const publish = target[exactDoctypeOperation];
|
|
24
|
+
return publish
|
|
25
|
+
? publish.call(target, declaration)
|
|
26
|
+
: executeOpaqueOperation(empty, target)?.value;
|
|
27
|
+
});
|
|
28
|
+
declarations.set(operation, declaration);
|
|
29
|
+
return operation;
|
|
30
|
+
}
|
|
31
|
+
/** Reads only framework-issued doctype declarations without executing them. */
|
|
32
|
+
export function readDoctype(value) {
|
|
33
|
+
return typeof value === 'object' && value !== null ? declarations.get(value) : undefined;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=doctype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctype.js","sourceRoot":"","sources":["../../../src/document/doctype.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAKrF,yEAAyE;AACzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;AACrF,MAAM,YAAY,GAAG,0BAA0B,CAAiB,SAAS,CAAC,CAAC;AAC3E,MAAM,KAAK,GAAG,6BAA6B,CAAC,IAAI,CAAC,CAAC;AAElD;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,UAA0B,EAAE;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,I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from '../component-abi/opaque-operation.js';\nimport { createCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';\n\n/** Document declaration identifiers. Omission emits the HTML5 declaration. */\nexport type DoctypeOptions = Readonly<{ name?: string; publicId?: string; systemId?: string }>;\n\n/** Renderer dispatch for an explicitly authored document declaration. */\nexport const exactDoctypeOperation = Symbol.for('@exactjs/target-operation/doctype');\nconst declarations = sharedOpaqueOperationStore<DoctypeOptions>('doctype');\nconst empty = createCompiledFragmentReceipt(null);\n\n/**\n * Authors a document declaration before the html element. The renderer escapes no markup into\n * this grammar: invalid names and quoted identifiers are rejected. Browser adoption retains\n * the declaration parsed from the server response rather than creating a second one.\n */\nexport function doctype(options: DoctypeOptions = {}): object {\n\tconst name = options.name ?? 'html';\n\tif (!/^[A-Za-z][A-Za-z0-9:_-]*$/.test(name)) throw new TypeError('Invalid doctype name');\n\tfor (const value of [options.publicId, options.systemId])\n\t\tif (value !== undefined && /[\"<>\\u0000-\\u001f]/.test(value))\n\t\t\tthrow new TypeError('Invalid doctype identifier');\n\tif (options.publicId !== undefined && options.systemId === undefined)\n\t\tthrow new TypeError('A public doctype requires a system identifier');\n\tconst declaration = Object.freeze({ ...options, name });\n\tconst operation = createOpaqueOperation(function (target: object) {\n\t\tconst publish = (\n\t\t\ttarget as { [exactDoctypeOperation]?: (declaration: DoctypeOptions) => unknown }\n\t\t)[exactDoctypeOperation];\n\t\treturn publish\n\t\t\t? publish.call(target, declaration)\n\t\t\t: executeOpaqueOperation(empty, target)?.value;\n\t});\n\tdeclarations.set(operation, declaration);\n\treturn operation;\n}\n\n/** Reads only framework-issued doctype declarations without executing them. */\nexport function readDoctype(value: unknown): DoctypeOptions | undefined {\n\treturn typeof value === 'object' && value !== null ? declarations.get(value) : undefined;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Renderer dispatch for request-owned document output; browser rendering emits no new assets. */
|
|
2
|
+
export declare const exactDocumentOutputOperation: unique symbol;
|
|
3
|
+
/** Framework output positions understood by the document renderer. */
|
|
4
|
+
export type DocumentOutputKind = 'styles' | 'headScripts' | 'hydrationData' | 'bootstrap';
|
|
5
|
+
/** Target-local publication capability. No request state is retained in the shared markers. */
|
|
6
|
+
export interface DocumentOutputTarget {
|
|
7
|
+
[exactDocumentOutputOperation]?: (kind: DocumentOutputKind) => unknown;
|
|
8
|
+
}
|
|
9
|
+
/** Recognizes local document slots during browser adoption without executing their output. */
|
|
10
|
+
export declare function isDocumentOutput(value: unknown): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Opaque, reusable document slots resolved by the renderer for each request. Styles and head
|
|
13
|
+
* scripts belong in head; hydration data precedes bootstrap at the end of body. Browser mounts
|
|
14
|
+
* do not fetch assets or serialize state through these markers.
|
|
15
|
+
*/
|
|
16
|
+
export declare const documentOutput: Readonly<{
|
|
17
|
+
styles: object;
|
|
18
|
+
headScripts: object;
|
|
19
|
+
hydrationData: object;
|
|
20
|
+
bootstrap: object;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/document/output.ts"],"names":[],"mappings":"AAOA,kGAAkG;AAClG,eAAO,MAAM,4BAA4B,eAA0D,CAAC;AAEpG,sEAAsE;AACtE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,aAAa,GAAG,eAAe,GAAG,WAAW,CAAC;AAE1F,+FAA+F;AAC/F,MAAM,WAAW,oBAAoB;IACpC,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;CACvE;AAcD,8FAA8F;AAC9F,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAExD;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createOpaqueOperation, executeOpaqueOperation, sharedOpaqueOperationStore } from '../component-abi/opaque-operation.js';
|
|
2
|
+
import { createCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';
|
|
3
|
+
/** Renderer dispatch for request-owned document output; browser rendering emits no new assets. */
|
|
4
|
+
export const exactDocumentOutputOperation = Symbol.for('@exactjs/target-operation/document-output');
|
|
5
|
+
const empty = createCompiledFragmentReceipt(null);
|
|
6
|
+
const markerKinds = sharedOpaqueOperationStore('document-output');
|
|
7
|
+
function marker(kind) {
|
|
8
|
+
const operation = createOpaqueOperation(function (target) {
|
|
9
|
+
const publish = target[exactDocumentOutputOperation];
|
|
10
|
+
return publish ? publish.call(target, kind) : executeOpaqueOperation(empty, target)?.value;
|
|
11
|
+
});
|
|
12
|
+
markerKinds.set(operation, kind);
|
|
13
|
+
return operation;
|
|
14
|
+
}
|
|
15
|
+
/** Recognizes local document slots during browser adoption without executing their output. */
|
|
16
|
+
export function isDocumentOutput(value) {
|
|
17
|
+
return typeof value === 'object' && value !== null && markerKinds.has(value);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Opaque, reusable document slots resolved by the renderer for each request. Styles and head
|
|
21
|
+
* scripts belong in head; hydration data precedes bootstrap at the end of body. Browser mounts
|
|
22
|
+
* do not fetch assets or serialize state through these markers.
|
|
23
|
+
*/
|
|
24
|
+
export const documentOutput = Object.freeze({
|
|
25
|
+
styles: marker('styles'),
|
|
26
|
+
headScripts: marker('headScripts'),
|
|
27
|
+
hydrationData: marker('hydrationData'),
|
|
28
|
+
bootstrap: marker('bootstrap')
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/document/output.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAErF,kGAAkG;AAClG,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;AAUpG,MAAM,KAAK,GAAG,6BAA6B,CAAC,IAAI,CAAC,CAAC;AAClD,MAAM,WAAW,GAAG,0BAA0B,CAAqB,iBAAiB,CAAC,CAAC;AAEtF,SAAS,MAAM,CAAC,IAAwB;IACvC,MAAM,SAAS,GAAG,qBAAqB,CAAC,UAAU,MAAc;QAC/D,MAAM,OAAO,GAAI,MAA+B,CAAC,4BAA4B,CAAC,CAAC;QAC/E,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC;IAC5F,CAAC,CAAC,CAAC;IACH,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACjC,OAAO,SAAS,CAAC;AAClB,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC9C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC;IACtC,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;CAC9B,CAAC,CAAC","sourcesContent":["import {\n\tcreateOpaqueOperation,\n\texecuteOpaqueOperation,\n\tsharedOpaqueOperationStore\n} from '../component-abi/opaque-operation.js';\nimport { createCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';\n\n/** Renderer dispatch for request-owned document output; browser rendering emits no new assets. */\nexport const exactDocumentOutputOperation = Symbol.for('@exactjs/target-operation/document-output');\n\n/** Framework output positions understood by the document renderer. */\nexport type DocumentOutputKind = 'styles' | 'headScripts' | 'hydrationData' | 'bootstrap';\n\n/** Target-local publication capability. No request state is retained in the shared markers. */\nexport interface DocumentOutputTarget {\n\t[exactDocumentOutputOperation]?: (kind: DocumentOutputKind) => unknown;\n}\n\nconst empty = createCompiledFragmentReceipt(null);\nconst markerKinds = sharedOpaqueOperationStore<DocumentOutputKind>('document-output');\n\nfunction marker(kind: DocumentOutputKind): object {\n\tconst operation = createOpaqueOperation(function (target: object) {\n\t\tconst publish = (target as DocumentOutputTarget)[exactDocumentOutputOperation];\n\t\treturn publish ? publish.call(target, kind) : executeOpaqueOperation(empty, target)?.value;\n\t});\n\tmarkerKinds.set(operation, kind);\n\treturn operation;\n}\n\n/** Recognizes local document slots during browser adoption without executing their output. */\nexport function isDocumentOutput(value: unknown): boolean {\n\treturn typeof value === 'object' && value !== null && markerKinds.has(value);\n}\n\n/**\n * Opaque, reusable document slots resolved by the renderer for each request. Styles and head\n * scripts belong in head; hydration data precedes bootstrap at the end of body. Browser mounts\n * do not fetch assets or serialize state through these markers.\n */\nexport const documentOutput = Object.freeze({\n\tstyles: marker('styles'),\n\theadScripts: marker('headScripts'),\n\thydrationData: marker('hydrationData'),\n\tbootstrap: marker('bootstrap')\n});\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Document composition and renderer-owned output slots. */
|
|
2
|
+
export { Document } from './document/definition.js';
|
|
3
|
+
export type { DocumentProps } from './document/definition.js';
|
|
4
|
+
export { documentOutput } from './document/output.js';
|
|
5
|
+
export { doctype, type DoctypeOptions } from './document/doctype.js';
|
|
6
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/document.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../src/document.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAuB,MAAM,uBAAuB,CAAC","sourcesContent":["/** Document composition and renderer-owned output slots. */\nexport { Document } from './document/definition.js';\nexport type { DocumentProps } from './document/definition.js';\nexport { documentOutput } from './document/output.js';\nexport { doctype, type DoctypeOptions } from './document/doctype.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/dynamic-component/contracts.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/dynamic-component/contracts.ts"],"names":[],"mappings":"","sourcesContent":["import type { AuthoredComponentFunction } from '../component/contracts.js';\n\n/** Component implementation accepted by an open client-only boundary. */\nexport type DynamicComponentCandidate<Props = Record<string, unknown>> = AuthoredComponentFunction<\n\tRecord<string, unknown>,\n\tProps\n>;\n\n/** Existential dynamic candidate whose authored props are carried by its owning boundary. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Candidate props vary per boundary and are preserved by the surrounding generic contract.\nexport type AnyDynamicComponentCandidate = DynamicComponentCandidate<any>;\n\n/** Value published by a dynamic component resolver. */\nexport type DynamicComponentResolution<Props = Record<string, unknown>> =\n\t| DynamicComponentCandidate<Props>\n\t| null\n\t| undefined;\n\n/** Owner-scoped provider invoked whenever its compiler-observed dependencies change. */\nexport type DynamicComponentResolver<Props = Record<string, unknown>> = (\n\tsignal: AbortSignal\n) => DynamicComponentResolution<Props> | Promise<DynamicComponentResolution<Props>>;\n\n/** Existential resolver stored by facade identity until a typed boundary retrieves it. */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Resolver props remain correlated with the facade even though the private weak map is heterogeneous.\nexport type AnyDynamicComponentResolver = DynamicComponentResolver<any>;\n\n/** Public availability states exposed to inspection without exposing candidate values. */\nexport type DynamicComponentStatus = 'unassigned' | 'pending' | 'absent' | 'available' | 'failed';\n\n/** Read-only inspection state carried by a compiler-authored dynamic boundary. */\nexport type DynamicComponentInspection = Readonly<{\n\tid: string;\n\treadonly status: DynamicComponentStatus;\n\treadonly generation: number;\n\treadonly componentId?: string;\n\treadonly error?: unknown;\n}>;\n\n/** Build-authorized immutable client artifact eligible for an SSR module-preload hint. */\nexport type DynamicComponentArtifact = Readonly<{\n\turl: string;\n\tauthorized: true;\n\timmutable: true;\n\tintegrity?: string;\n\tcrossOrigin?: 'anonymous' | 'use-credentials';\n\treferrerPolicy?:\n\t\t| 'no-referrer'\n\t\t| 'no-referrer-when-downgrade'\n\t\t| 'origin'\n\t\t| 'origin-when-cross-origin'\n\t\t| 'same-origin'\n\t\t| 'strict-origin'\n\t\t| 'strict-origin-when-cross-origin';\n}>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation.js","sourceRoot":"","sources":["../../../src/dynamic-component/creation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,MAAM,WAAW,GAAG,IAAI,OAAO,EAA8D,CAAC;AAE9F;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAGrC,OAAwC;IAExC,IAAI,CAAC,sBAAsB,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;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KAAsC,CAE3C;QACd,CAAC,CAAC,SAAS,CAAC;AACd,CAAC","sourcesContent":["import type { AuthoredComponentFunction } from '../component/contracts.js';\nimport { currentComponentDomain } from '../component/domain.js';\nimport type { AnyDynamicComponentResolver, DynamicComponentResolver } from './contracts.js';\n\nconst definitions = new WeakMap<(...args: never[]) => unknown, AnyDynamicComponentResolver>();\n\n/**\n * Declares a stable JSX component facade whose implementation is selected at runtime on the client.\n *\n * The compiler lowers JSX uses of the facade to an owned dynamic boundary. Calling this helper\n * outside component setup is invalid because no component execution domain can own its resolver.\n */\nexport function createDynamicComponent<\n\tProps extends Record<string, unknown> = Record<string, unknown>\n>(\n\tresolve: DynamicComponentResolver<Props>\n): AuthoredComponentFunction<Record<string, unknown>, Props> {\n\tif (!currentComponentDomain())\n\t\tthrow new Error('createDynamicComponent() must be called during component setup');\n\tif (typeof resolve !== 'function')\n\t\tthrow new TypeError('createDynamicComponent() requires a resolver function');\n\tconst facade = function DynamicComponentFacade(): never {\n\t\tthrow new Error('Dynamic component facades must be lowered by the eXact compiler');\n\t} as unknown as AuthoredComponentFunction<Record<string, unknown>, Props>;\n\tdefinitions.set(facade, resolve);\n\treturn facade;\n}\n\n/** Returns the private resolver associated with one authored dynamic facade. */\nexport function dynamicComponentResolverFor<Props extends Record<string, unknown>>(\n\tvalue: unknown\n): DynamicComponentResolver<Props> | undefined {\n\treturn typeof value === 'function'\n\t\t? (definitions.get(value as (...args: never[]) => unknown) as\n\t\t\t\t| DynamicComponentResolver<Props>\n\t\t\t\t| undefined)\n\t\t: undefined;\n}\n"]}
|