@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
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { computed, unwrap } from '@exactjs/reactive/framework/runtime';
|
|
2
|
+
import { readCompiledTargetReceipt, createCompiledTargetReceipt } from '../component-abi/target-receipt.js';
|
|
3
|
+
import { readCompiledIntrinsicReceipt, withIntrinsicReceiptChildren } from '../component-abi/intrinsic-receipt.js';
|
|
4
|
+
import { readCompiledFragmentReceipt, createCompiledFragmentReceipt, createCompiledFragmentPresentation } from '../component-abi/fragment-receipt.js';
|
|
5
|
+
import { readChildRangeReceipt, createChildRangeReceipt } from '../component-abi/child-range-receipt.js';
|
|
6
|
+
import { readPreparedServerChildRange, createPreparedServerChildRange } from '../component-abi/server-child-range.js';
|
|
7
|
+
import { readPreparedServerRenderProgram } from '../server-render-program.js';
|
|
8
|
+
import { readRenderProgramReceipt, createPreparedRenderProgram, readRenderProgramSlot } from '../render-program.js';
|
|
9
|
+
import { readPreparedTargetOutput } from './prepared-target-output.js';
|
|
10
|
+
import { FragmentPresentationHosts } from './fragment-hosts.js';
|
|
11
|
+
/**
|
|
12
|
+
* Projects only one enhancement owner's supplied placement, preserving its authored structure.
|
|
13
|
+
* Nested component implementations stay opaque. Each owner is a host-coalescing barrier; transparent
|
|
14
|
+
* consecutive owners are grouped before this path. Reactive ranges retain their existing invalidation.
|
|
15
|
+
*/
|
|
16
|
+
export function createFragmentTargetProjection(supplied, tag, owner) {
|
|
17
|
+
const identity = Symbol('fragment contribution');
|
|
18
|
+
const hosts = new FragmentPresentationHosts();
|
|
19
|
+
const cache = new WeakMap();
|
|
20
|
+
const map = (raw) => {
|
|
21
|
+
const selected = typeof supplied === 'function' ? supplied() : supplied;
|
|
22
|
+
if (raw === selected)
|
|
23
|
+
return raw;
|
|
24
|
+
const value = unwrap(raw);
|
|
25
|
+
if (value === selected)
|
|
26
|
+
return value;
|
|
27
|
+
if (Array.isArray(value))
|
|
28
|
+
return value.map(map);
|
|
29
|
+
if (typeof value !== 'object' || value === null)
|
|
30
|
+
return value;
|
|
31
|
+
const retained = cache.get(value);
|
|
32
|
+
if (retained !== undefined)
|
|
33
|
+
return retained;
|
|
34
|
+
const target = readCompiledTargetReceipt(value);
|
|
35
|
+
let result = value;
|
|
36
|
+
if (target) {
|
|
37
|
+
const contribution = readPreparedTargetOutput([value], selected);
|
|
38
|
+
const presentation = createCompiledFragmentPresentation(selected, hosts
|
|
39
|
+
.reconcile([
|
|
40
|
+
{
|
|
41
|
+
owner: identity,
|
|
42
|
+
tag,
|
|
43
|
+
props: contribution.props,
|
|
44
|
+
declaredHostProps: contribution.declaredHostProps
|
|
45
|
+
}
|
|
46
|
+
])
|
|
47
|
+
.map((host) => ({
|
|
48
|
+
identity: host.identity,
|
|
49
|
+
tag: host.tag,
|
|
50
|
+
contributions: [{ identity, props: contribution.props, owner }]
|
|
51
|
+
})));
|
|
52
|
+
result = createCompiledTargetReceipt(null, presentation);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const intrinsic = readCompiledIntrinsicReceipt(value);
|
|
56
|
+
const fragment = readCompiledFragmentReceipt(value);
|
|
57
|
+
const range = readChildRangeReceipt(value);
|
|
58
|
+
const serverRange = readPreparedServerChildRange(value);
|
|
59
|
+
const program = readRenderProgramReceipt(value);
|
|
60
|
+
const serverProgram = readPreparedServerRenderProgram(value);
|
|
61
|
+
if (intrinsic)
|
|
62
|
+
result = withIntrinsicReceiptChildren(value, intrinsic.children.map((child) => map(child)));
|
|
63
|
+
else if (fragment)
|
|
64
|
+
result = createCompiledFragmentReceipt({ ...fragment.props, key: fragment.key, __exactEnhancements: fragment.enhancement }, ...fragment.children.map(map));
|
|
65
|
+
else if (range && !range.dynamicComponent)
|
|
66
|
+
result = createChildRangeReceipt(computed(() => map(range.value)), range.markerId, range.mayReplaceSubtree);
|
|
67
|
+
else if (serverRange)
|
|
68
|
+
result = createPreparedServerChildRange(map(serverRange.value), serverRange.markerId, serverRange.mayReplaceSubtree);
|
|
69
|
+
else if (program) {
|
|
70
|
+
const invocation = program.invocation;
|
|
71
|
+
const slots = new Set(invocation.program.targetSlots ?? []);
|
|
72
|
+
result = createPreparedRenderProgram(invocation.program, (index) => slots.has(index)
|
|
73
|
+
? map(readRenderProgramSlot(invocation, index))
|
|
74
|
+
: readRenderProgramSlot(invocation, index), invocation.owner, invocation.propertyWriter, program.enhancement);
|
|
75
|
+
}
|
|
76
|
+
else if (serverProgram) {
|
|
77
|
+
const slots = new Set(serverProgram.program.targetSlots ?? []);
|
|
78
|
+
const values = (input) => input.map((entry, index) => (slots.has(index) ? map(entry) : entry));
|
|
79
|
+
result = {
|
|
80
|
+
...serverProgram,
|
|
81
|
+
eagerValues: values(serverProgram.eagerValues),
|
|
82
|
+
...(serverProgram.deferredValues
|
|
83
|
+
? {
|
|
84
|
+
deferredValues: {
|
|
85
|
+
...serverProgram.deferredValues,
|
|
86
|
+
read: () => values(serverProgram.deferredValues.read())
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
: {})
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
cache.set(value, result);
|
|
94
|
+
return result;
|
|
95
|
+
};
|
|
96
|
+
return (children) => children.map((child) => map(child));
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=fragment-target-projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragment-target-projection.js","sourceRoot":"","sources":["../../../src/framework/fragment-target-projection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EACN,yBAAyB,EACzB,2BAA2B,EAC3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACN,4BAA4B,EAC5B,4BA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AAE,KAAK,CAAC,EAC5C,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,cAAc,EACzB,OAAO,CAAC,WAAW,CACnB,CAAC;YACH,CAAC;iBAAM,IAAI,aAAa,EAAE,CAAC;gBAC1B,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;gBAC/D,MAAM,MAAM,GAAG,CAAC,KAAyB,EAAE,EAAE,CAC5C,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;gBACtE,MAAM,GAAG;oBACR,GAAG,aAAa;oBAChB,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC;oBAC9C,GAAG,CAAC,aAAa,CAAC,cAAc;wBAC/B,CAAC,CAAC;4BACA,cAAc,EAAE;gCACf,GAAG,aAAa,CAAC,cAAc;gCAC/B,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,cAAe,CAAC,IAAI,EAAE,CAAC;6BACxD;yBACD;wBACF,CAAC,CAAC,EAAE,CAAC;iBACN,CAAC;YACH,CAAC;QACF,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,MAAe,CAAC,CAAC;QAClC,OAAO,MAAM,CAAC;IACf,CAAC,CAAC;IACF,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAU,CAAC,CAAC;AACnE,CAAC","sourcesContent":["import type { AnyComponentInstance, Child } from '../component/contracts.js';\nimport { computed, unwrap } from '@exactjs/reactive/framework/runtime';\nimport {\n\treadCompiledTargetReceipt,\n\tcreateCompiledTargetReceipt\n} from '../component-abi/target-receipt.js';\nimport {\n\treadCompiledIntrinsicReceipt,\n\twithIntrinsicReceiptChildren\n} from '../component-abi/intrinsic-receipt.js';\nimport {\n\treadCompiledFragmentReceipt,\n\tcreateCompiledFragmentReceipt,\n\tcreateCompiledFragmentPresentation\n} from '../component-abi/fragment-receipt.js';\nimport {\n\treadChildRangeReceipt,\n\tcreateChildRangeReceipt\n} from '../component-abi/child-range-receipt.js';\nimport {\n\treadPreparedServerChildRange,\n\tcreatePreparedServerChildRange\n} from '../component-abi/server-child-range.js';\nimport { readPreparedServerRenderProgram } from '../server-render-program.js';\nimport {\n\treadRenderProgramReceipt,\n\tcreatePreparedRenderProgram,\n\treadRenderProgramSlot\n} from '../render-program.js';\nimport { readPreparedTargetOutput } from './prepared-target-output.js';\nimport { FragmentPresentationHosts } from './fragment-hosts.js';\n\n/**\n * Projects only one enhancement owner's supplied placement, preserving its authored structure.\n * Nested component implementations stay opaque. Each owner is a host-coalescing barrier; transparent\n * consecutive owners are grouped before this path. Reactive ranges retain their existing invalidation.\n */\nexport function createFragmentTargetProjection(\n\tsupplied: Child | (() => Child),\n\ttag: string,\n\towner?: AnyComponentInstance\n): (children: readonly Child[]) => Child[] {\n\tconst identity = Symbol('fragment contribution');\n\tconst hosts = new FragmentPresentationHosts();\n\tconst cache = new WeakMap<object, Child>();\n\tconst map = (raw: unknown): unknown => {\n\t\tconst selected = typeof supplied === 'function' ? supplied() : supplied;\n\t\tif (raw === selected) return raw;\n\t\tconst value = unwrap(raw);\n\t\tif (value === selected) return value;\n\t\tif (Array.isArray(value)) return value.map(map);\n\t\tif (typeof value !== 'object' || value === null) return value;\n\t\tconst retained = cache.get(value);\n\t\tif (retained !== undefined) return retained;\n\t\tconst target = readCompiledTargetReceipt(value);\n\t\tlet result: unknown = value;\n\t\tif (target) {\n\t\t\tconst contribution = readPreparedTargetOutput([value as Child], selected)!;\n\t\t\tconst presentation = createCompiledFragmentPresentation(\n\t\t\t\tselected,\n\t\t\t\thosts\n\t\t\t\t\t.reconcile([\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\towner: identity,\n\t\t\t\t\t\t\ttag,\n\t\t\t\t\t\t\tprops: contribution.props,\n\t\t\t\t\t\t\tdeclaredHostProps: contribution.declaredHostProps\n\t\t\t\t\t\t}\n\t\t\t\t\t])\n\t\t\t\t\t.map((host) => ({\n\t\t\t\t\t\tidentity: host.identity,\n\t\t\t\t\t\ttag: host.tag,\n\t\t\t\t\t\tcontributions: [{ identity, props: contribution.props, owner }]\n\t\t\t\t\t}))\n\t\t\t);\n\t\t\tresult = createCompiledTargetReceipt(null, presentation);\n\t\t} else {\n\t\t\tconst intrinsic = readCompiledIntrinsicReceipt(value);\n\t\t\tconst fragment = readCompiledFragmentReceipt(value);\n\t\t\tconst range = readChildRangeReceipt(value);\n\t\t\tconst serverRange = readPreparedServerChildRange(value);\n\t\t\tconst program = readRenderProgramReceipt(value);\n\t\t\tconst serverProgram = readPreparedServerRenderProgram(value);\n\t\t\tif (intrinsic)\n\t\t\t\tresult = withIntrinsicReceiptChildren(\n\t\t\t\t\tvalue,\n\t\t\t\t\tintrinsic.children.map((child) => map(child) as Child)\n\t\t\t\t);\n\t\t\telse if (fragment)\n\t\t\t\tresult = createCompiledFragmentReceipt(\n\t\t\t\t\t{ ...fragment.props, key: fragment.key, __exactEnhancements: fragment.enhancement },\n\t\t\t\t\t...fragment.children.map(map)\n\t\t\t\t);\n\t\t\telse if (range && !range.dynamicComponent)\n\t\t\t\tresult = createChildRangeReceipt(\n\t\t\t\t\tcomputed(() => map(range.value)),\n\t\t\t\t\trange.markerId,\n\t\t\t\t\trange.mayReplaceSubtree\n\t\t\t\t);\n\t\t\telse if (serverRange)\n\t\t\t\tresult = createPreparedServerChildRange(\n\t\t\t\t\tmap(serverRange.value) as Child,\n\t\t\t\t\tserverRange.markerId,\n\t\t\t\t\tserverRange.mayReplaceSubtree\n\t\t\t\t);\n\t\t\telse if (program) {\n\t\t\t\tconst invocation = program.invocation;\n\t\t\t\tconst slots = new Set(invocation.program.targetSlots ?? []);\n\t\t\t\tresult = createPreparedRenderProgram(\n\t\t\t\t\tinvocation.program,\n\t\t\t\t\t(index) =>\n\t\t\t\t\t\tslots.has(index)\n\t\t\t\t\t\t\t? map(readRenderProgramSlot(invocation, index))\n\t\t\t\t\t\t\t: readRenderProgramSlot(invocation, index),\n\t\t\t\t\tinvocation.owner,\n\t\t\t\t\tinvocation.propertyWriter,\n\t\t\t\t\tprogram.enhancement\n\t\t\t\t);\n\t\t\t} else if (serverProgram) {\n\t\t\t\tconst slots = new Set(serverProgram.program.targetSlots ?? []);\n\t\t\t\tconst values = (input: readonly unknown[]) =>\n\t\t\t\t\tinput.map((entry, index) => (slots.has(index) ? map(entry) : entry));\n\t\t\t\tresult = {\n\t\t\t\t\t...serverProgram,\n\t\t\t\t\teagerValues: values(serverProgram.eagerValues),\n\t\t\t\t\t...(serverProgram.deferredValues\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tdeferredValues: {\n\t\t\t\t\t\t\t\t\t...serverProgram.deferredValues,\n\t\t\t\t\t\t\t\t\tread: () => values(serverProgram.deferredValues!.read())\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: {})\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\tcache.set(value, result as Child);\n\t\treturn result;\n\t};\n\treturn (children) => children.map((child) => map(child) as Child);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspection-transport.js","sourceRoot":"","sources":["../../../src/framework/inspection-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAE/B,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"inspection-transport.js","sourceRoot":"","sources":["../../../src/framework/inspection-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAE/B,MAAM,4BAA4B,CAAC","sourcesContent":["export {\n\tconsumeExactServerObservations,\n\texactServerObservationRequestHeaders,\n\tEXACT_SERVER_OBSERVATIONS_KEY,\n\tpublishExactServerObservations,\n\tsetExactServerObservationBridge,\n\ttype ExactServerObservationBridge\n} from '../inspection-transport.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-protocol.js","sourceRoot":"","sources":["../../../src/framework/operation-protocol.ts"],"names":[],"mappings":"AAoJA,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC;IAC3C,WAAW;IACX,aAAa;IACb,yBAAyB;IACzB,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,QAAQ;IACR,aAAa;CACb,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY;IAClD,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACtC,OAAO,CACN,CAAC,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,UAAU,CAAC,CAC5F,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"operation-protocol.js","sourceRoot":"","sources":["../../../src/framework/operation-protocol.ts"],"names":[],"mappings":"AAoJA,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC;IAC3C,WAAW;IACX,aAAa;IACb,yBAAyB;IACzB,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,QAAQ;IACR,aAAa;CACb,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY;IAClD,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACtC,OAAO,CACN,CAAC,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,UAAU,CAAC,CAC5F,CAAC;AACH,CAAC","sourcesContent":["import type { ExactCollectionMutation } from '../component-contracts.js';\nimport type { ExactRuntimeInspectionEvent } from '@exactjs/devtools-protocol';\n\n/** Identifies the operation represented by a framework protocol request. */\nexport type ExactInvocationKind = 'invoke' | 'refresh';\n\n/** Selects one concrete compiler-planned partition instance. */\nexport type ExactPartitionDiscriminator =\n\t| Readonly<{ kind: 'single' }>\n\t| Readonly<{ kind: 'branch'; branch: string }>\n\t| Readonly<{ kind: 'keyed'; list: string; keyToken: string }>;\n\n/** Carries generation-fenced authority for a compiler-planned partition. */\nexport type ExactPartitionAuthority = Readonly<{\n\tversion: 1;\n\tbuildKey: string;\n\texecutionRoot: string;\n\tplanEdgeId: string;\n\townerComponentId: string;\n\tdiscriminator: ExactPartitionDiscriminator;\n\tgeneration: number;\n}>;\n\n/** Maps compiler-owned operation identities to configured endpoint routes. */\nexport type ExactEndpointRoutes = {\n\tinvocations?: Record<string, string>;\n\tboundaries?: Record<string, string>;\n};\n\n/** Describes one invocation or refresh request on the framework wire protocol. */\nexport type ExactInvocationRequest = {\n\ttype: ExactInvocationKind;\n\troot?: string;\n\tid: string;\n\tpartition?: ExactPartitionAuthority;\n\topId?: string;\n\tdependsOn?: string[];\n\tpayload?: unknown;\n\tstate?: unknown;\n\tpublicContext?: Record<string, unknown>;\n\tboundaryHtml?: string;\n\tboundaryHtmls?: Record<string, string>;\n};\n\n/** Groups invocation requests for bounded concurrent execution. */\nexport type ExactBatchRequest = {\n\ttype: 'batch';\n\tversion?: 1;\n\toperations: ExactInvocationRequest[];\n};\n\n/** Describes the transport-safe result of one invocation. */\nexport type ExactInvocationResult = {\n\tpatches?: ExactPatch[];\n\tstate?: unknown;\n\tmutations?: ExactCollectionMutation[];\n\tcontexts?: Record<string, unknown>;\n\tvalue?: unknown;\n\thtml?: string;\n};\n\n/** Describes a successful operation response. */\nexport type ExactOperationSuccess = {\n\tok: true;\n\ttype: ExactInvocationKind;\n\tid: string;\n\topId?: string;\n} & ExactInvocationResult;\n\n/** Describes a rejected or failed operation response. */\nexport type ExactOperationError = {\n\tok: false;\n\ttype: ExactInvocationKind;\n\tid: string;\n\topId?: string;\n\tstatus: number;\n\terror: 'bad_request' | 'not_found' | 'forbidden' | 'internal_error' | 'dependency_failed';\n};\n\n/** Describes the result of one operation. */\nexport type ExactOperationResult = ExactOperationSuccess | ExactOperationError;\n\n/** Describes a completed batch response. */\nexport type ExactBatchResult = {\n\tok: true;\n\tversion: 1;\n\tresults: ExactOperationResult[];\n};\n\n/** Reports one event in an incremental operation response. */\nexport type ExactStreamEvent =\n\t| { event: 'start'; version: 1; operations: number }\n\t| {\n\t\t\tevent: 'patch';\n\t\t\tversion: 1;\n\t\t\tindex: number;\n\t\t\ttype: ExactInvocationKind;\n\t\t\tid: string;\n\t\t\topId?: string;\n\t\t\tpatch: ExactPatch;\n\t }\n\t| {\n\t\t\tevent: 'state';\n\t\t\tversion: 1;\n\t\t\tindex: number;\n\t\t\ttype: ExactInvocationKind;\n\t\t\tid: string;\n\t\t\topId?: string;\n\t\t\tvalue: unknown;\n\t }\n\t| {\n\t\t\tevent: 'mutations';\n\t\t\tversion: 1;\n\t\t\tindex: number;\n\t\t\ttype: ExactInvocationKind;\n\t\t\tid: string;\n\t\t\topId?: string;\n\t\t\tmutations: ExactCollectionMutation[];\n\t }\n\t| {\n\t\t\tevent: 'html';\n\t\t\tversion: 1;\n\t\t\tindex: number;\n\t\t\ttype: ExactInvocationKind;\n\t\t\tid: string;\n\t\t\topId?: string;\n\t\t\thtml: string;\n\t }\n\t| { event: 'result'; version: 1; index: number; result: ExactOperationResult }\n\t| { event: 'observations'; version: 1; observations: readonly ExactRuntimeInspectionEvent[] }\n\t| { event: 'complete'; version: 1 };\n\n/** Describes one client-applied operation patch. */\nexport type ExactPatch =\n\t| { type: 'text'; id: string; value: string }\n\t| { type: 'prop'; id: string; name: string; value: unknown }\n\t| { type: 'style'; id: string; name: string; value: string | null }\n\t| {\n\t\t\ttype: 'list';\n\t\t\tid: string;\n\t\t\top: 'insert' | 'move' | 'remove';\n\t\t\tkey: string;\n\t\t\tbefore?: string;\n\t\t\thtml?: string;\n\t }\n\t| { type: 'state'; id: string; value: unknown }\n\t| { type: 'replace'; id: string; html: string };\n\nconst forbiddenDomPatchProperties = new Set([\n\t'__proto__',\n\t'constructor',\n\t'dangerouslysetinnerhtml',\n\t'innerhtml',\n\t'innertext',\n\t'outerhtml',\n\t'outertext',\n\t'prototype',\n\t'srcdoc',\n\t'textcontent'\n]);\n\n/**\n * Reports whether a server property patch may cross the operation boundary.\n * Structural HTML/text setters, inline event handlers, iframe documents, and\n * JavaScript prototype controls require dedicated framework-owned operations.\n */\nexport function isSafeDomPatchProperty(name: string): boolean {\n\tconst normalized = name.toLowerCase();\n\treturn (\n\t\t!!normalized && !normalized.startsWith('on') && !forbiddenDomPatchProperties.has(normalized)\n\t);\n}\n\nexport type { ExactCollectionMutation } from '../component-contracts.js';\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Child } from '../component/contracts.js';
|
|
2
|
+
import { type ExactTargetReceiptData } from '../component-abi/target-receipt.js';
|
|
3
|
+
/**
|
|
4
|
+
* Reads one prepared contribution boundary or transparent supplied-child placement. Never executes
|
|
5
|
+
* descendant components. A contribution must place the supplied logical child exactly once;
|
|
6
|
+
* structural output belongs to a separate preparation boundary rather than a descendant search.
|
|
7
|
+
*/
|
|
8
|
+
export declare function readPreparedTargetOutput(output: readonly Child[], supplied: Child): ExactTargetReceiptData | undefined;
|
|
9
|
+
/** Reads a single supplied logical operation through transparent value containers, retaining fragments. */
|
|
10
|
+
export declare function readSuppliedTargetValue(output: readonly Child[]): unknown;
|
|
11
|
+
//# sourceMappingURL=prepared-target-output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepared-target-output.d.ts","sourceRoot":"","sources":["../../../src/framework/prepared-target-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,oCAAoC,CAAC;AAG5C;;;;GAIG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,SAAS,KAAK,EAAE,EACxB,QAAQ,EAAE,KAAK,GACb,sBAAsB,GAAG,SAAS,CAWpC;AA2BD,2GAA2G;AAC3G,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,GAAG,OAAO,CAEzE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { readChildRangeReceipt } from '../component-abi/child-range-receipt.js';
|
|
2
|
+
import { readPreparedServerChildRange } from '../component-abi/server-child-range.js';
|
|
3
|
+
import { readCompiledTargetReceipt } from '../component-abi/target-receipt.js';
|
|
4
|
+
import { unwrap } from '@exactjs/reactive/framework/values';
|
|
5
|
+
/**
|
|
6
|
+
* Reads one prepared contribution boundary or transparent supplied-child placement. Never executes
|
|
7
|
+
* descendant components. A contribution must place the supplied logical child exactly once;
|
|
8
|
+
* structural output belongs to a separate preparation boundary rather than a descendant search.
|
|
9
|
+
*/
|
|
10
|
+
export function readPreparedTargetOutput(output, supplied) {
|
|
11
|
+
const value = singlePreparedValue(output, supplied);
|
|
12
|
+
if (value === supplied)
|
|
13
|
+
return undefined;
|
|
14
|
+
const target = readCompiledTargetReceipt(value);
|
|
15
|
+
if (!target)
|
|
16
|
+
throw new TypeError('Fragment contribution preparation requires a single supplied-target placement');
|
|
17
|
+
if (singlePreparedValue(target.children, supplied) !== supplied)
|
|
18
|
+
throw new TypeError('An enhancement must place its supplied fragment exactly once');
|
|
19
|
+
return target;
|
|
20
|
+
}
|
|
21
|
+
/** Retains the selected receipt itself while unwrapping transparent compiler expression ranges. */
|
|
22
|
+
function singlePreparedValue(output, supplied) {
|
|
23
|
+
let value = output;
|
|
24
|
+
for (;;) {
|
|
25
|
+
if (value === supplied)
|
|
26
|
+
return value;
|
|
27
|
+
value = unwrap(value);
|
|
28
|
+
if (value === supplied)
|
|
29
|
+
return value;
|
|
30
|
+
if (Array.isArray(value) && value.length === 1) {
|
|
31
|
+
value = value[0];
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
const range = readChildRangeReceipt(value);
|
|
35
|
+
if (range && !range.dynamicComponent) {
|
|
36
|
+
value = range.value;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
const serverRange = readPreparedServerChildRange(value);
|
|
40
|
+
if (serverRange) {
|
|
41
|
+
value = serverRange.value;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** Reads a single supplied logical operation through transparent value containers, retaining fragments. */
|
|
48
|
+
export function readSuppliedTargetValue(output) {
|
|
49
|
+
return singlePreparedValue(output, undefined);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=prepared-target-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepared-target-output.js","sourceRoot":"","sources":["../../../src/framework/prepared-target-output.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EACN,yBAAyB,EAEzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACvC,MAAwB,EACxB,QAAe;IAEf,MAAM,KAAK,GAAG,mBAAmB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACpD,IAAI,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACzC,MAAM,MAAM,GAAG,yBAAyB,CAAC,KAAK,CAAC,CAAC;IAChD,IAAI,CAAC,MAAM;QACV,MAAM,IAAI,SAAS,CAClB,+EAA+E,CAC/E,CAAC;IACH,IAAI,mBAAmB,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,QAAQ;QAC9D,MAAM,IAAI,SAAS,CAAC,8DAA8D,CAAC,CAAC;IACrF,OAAO,MAAM,CAAC;AACf,CAAC;AAED,mGAAmG;AACnG,SAAS,mBAAmB,CAAC,MAAe,EAAE,QAAe;IAC5D,IAAI,KAAK,GAAG,MAAM,CAAC;IACnB,SAAS,CAAC;QACT,IAAI,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACrC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QACtB,IAAI,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACrC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChD,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACjB,SAAS;QACV,CAAC;QACD,MAAM,KAAK,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC;YACtC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YACpB,SAAS;QACV,CAAC;QACD,MAAM,WAAW,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAC;QACxD,IAAI,WAAW,EAAE,CAAC;YACjB,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YAC1B,SAAS;QACV,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;AACF,CAAC;AAED,2GAA2G;AAC3G,MAAM,UAAU,uBAAuB,CAAC,MAAwB;IAC/D,OAAO,mBAAmB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC/C,CAAC","sourcesContent":["import type { Child } from '../component/contracts.js';\nimport { readChildRangeReceipt } from '../component-abi/child-range-receipt.js';\nimport { readPreparedServerChildRange } from '../component-abi/server-child-range.js';\nimport {\n\treadCompiledTargetReceipt,\n\ttype ExactTargetReceiptData\n} from '../component-abi/target-receipt.js';\nimport { unwrap } from '@exactjs/reactive/framework/values';\n\n/**\n * Reads one prepared contribution boundary or transparent supplied-child placement. Never executes\n * descendant components. A contribution must place the supplied logical child exactly once;\n * structural output belongs to a separate preparation boundary rather than a descendant search.\n */\nexport function readPreparedTargetOutput(\n\toutput: readonly Child[],\n\tsupplied: Child\n): ExactTargetReceiptData | undefined {\n\tconst value = singlePreparedValue(output, supplied);\n\tif (value === supplied) return undefined;\n\tconst target = readCompiledTargetReceipt(value);\n\tif (!target)\n\t\tthrow new TypeError(\n\t\t\t'Fragment contribution preparation requires a single supplied-target placement'\n\t\t);\n\tif (singlePreparedValue(target.children, supplied) !== supplied)\n\t\tthrow new TypeError('An enhancement must place its supplied fragment exactly once');\n\treturn target;\n}\n\n/** Retains the selected receipt itself while unwrapping transparent compiler expression ranges. */\nfunction singlePreparedValue(output: unknown, supplied: Child): unknown {\n\tlet value = output;\n\tfor (;;) {\n\t\tif (value === supplied) return value;\n\t\tvalue = unwrap(value);\n\t\tif (value === supplied) return value;\n\t\tif (Array.isArray(value) && value.length === 1) {\n\t\t\tvalue = value[0];\n\t\t\tcontinue;\n\t\t}\n\t\tconst range = readChildRangeReceipt(value);\n\t\tif (range && !range.dynamicComponent) {\n\t\t\tvalue = range.value;\n\t\t\tcontinue;\n\t\t}\n\t\tconst serverRange = readPreparedServerChildRange(value);\n\t\tif (serverRange) {\n\t\t\tvalue = serverRange.value;\n\t\t\tcontinue;\n\t\t}\n\t\treturn value;\n\t}\n}\n\n/** Reads a single supplied logical operation through transparent value containers, retaining fragments. */\nexport function readSuppliedTargetValue(output: readonly Child[]): unknown {\n\treturn singlePreparedValue(output, undefined);\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-records.js","sourceRoot":"","sources":["../../../src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E,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QAC7E,MAAM,KAAK,GAAI,KAAiC,CAAC,GAAG,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACtD,IAAI,CAAC,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC;YAAE,OAAO,KAAK,CAAC;IACrE,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC","sourcesContent":["const reservedObjectKeys = new Set(['__proto__', 'prototype', 'constructor']);\n\nexport { protocolUtf8ByteLength } from '../protocol-utf8.js';\n\n/** Returns whether a key can be materialized in an eXact protocol dictionary. */\nexport function isSafeProtocolKey(key: string): boolean {\n\treturn !reservedObjectKeys.has(key);\n}\n\n/** Creates a prototype-free dictionary for decoded or generated protocol records. */\nexport function createProtocolRecord<T>(): Record<string, T> {\n\treturn Object.create(null) as Record<string, T>;\n}\n\n/** Normalizes a positive safe-integer protocol resource limit. */\nexport function normalizeProtocolLimit(value: number | undefined, fallback: number): number {\n\treturn typeof value === 'number' && Number.isSafeInteger(value) && value > 0 ? value : fallback;\n}\n\n/**\n * Validates every own key in a recursively decoded JSON-like protocol value.\n * Cycles are tolerated for defensive use outside JSON decoding.\n */\nexport function hasOnlySafeProtocolKeys(value: unknown): boolean {\n\tif (!value || typeof value !== 'object') return true;\n\tconst pending: object[] = [value];\n\tconst seen = new WeakSet<object>();\n\twhile (pending.length) {\n\t\tconst current = pending.pop()!;\n\t\tif (seen.has(current)) continue;\n\t\tseen.add(current);\n\t\tfor (const key of Object.keys(current)) {\n\t\t\tif (!isSafeProtocolKey(key)) return false;\n\t\t\tconst child = (current as Record<string, unknown>)[key];\n\t\t\tif (child && typeof child === 'object') pending.push(child);\n\t\t}\n\t}\n\treturn true;\n}\n\n/** Validates the exact finite discriminator shape used by server slots and hydration. */\nexport function isServerSlotDiscriminator(value: unknown): boolean {\n\tif (!value || typeof value !== 'object' || Array.isArray(value)) return false;\n\tconst discriminator = value as Record<string, unknown>;\n\tif (discriminator.kind === 'single') return Object.keys(discriminator).length === 1;\n\tif (discriminator.kind === 'branch')\n\t\treturn (\n\t\t\tObject.keys(discriminator).length === 2 &&\n\t\t\ttypeof discriminator.branch === 'string' &&\n\t\t\t!!discriminator.branch\n\t\t);\n\treturn (\n\t\tdiscriminator.kind === 'keyed' &&\n\t\tObject.keys(discriminator).length === 3 &&\n\t\ttypeof discriminator.list === 'string' &&\n\t\t!!discriminator.list &&\n\t\ttypeof discriminator.keyToken === 'string' &&\n\t\t!!discriminator.keyToken\n\t);\n}\n\n/** Validates a partial response tree without traversing authorized subtrees. */\nexport function stateNodeMatchesWrites(\n\tvalue: object,\n\tpath: string,\n\twrites: readonly string[]\n): boolean {\n\tfor (const key of Object.keys(value)) {\n\t\tif (!isSafeProtocolKey(key)) return false;\n\t\tif (Array.isArray(value) && !/^(0|[1-9]\\d*)$/.test(key)) return false;\n\t\tconst childPath = path ? `${path}.${key}` : key;\n\t\tif (writes.includes(childPath)) continue;\n\t\tif (!writes.some((write) => write.startsWith(`${childPath}.`))) return false;\n\t\tconst child = (value as Record<string, unknown>)[key];\n\t\tif (!child || typeof child !== 'object') return false;\n\t\tif (!stateNodeMatchesWrites(child, childPath, writes)) return false;\n\t}\n\treturn true;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../../../src/framework/publication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAqBhE,kFAAkF;AAClF,MAAM,UAAU,gCAAgC;IAC/C,OAAO,MAAM,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC;KACnD,CAAC,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../../../src/framework/publication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAqBhE,kFAAkF;AAClF,MAAM,UAAU,gCAAgC;IAC/C,OAAO,MAAM,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC;KACnD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { flushSync } from '@exactjs/reactive/framework/runtime';\n\n/** Receipt returned by one authoritative synchronous framework publication. */\nexport interface FrameworkPublicationCommit {\n\t/** Settles after reactive renderer consequences caused by the publication have flushed. */\n\treadonly rendered: PromiseLike<void>;\n}\n\n/** One cancelable request to publish already-prepared framework state exactly once. */\nexport interface FrameworkPublicationRequest<Metadata = unknown> {\n\treadonly kind: string;\n\treadonly signal: AbortSignal;\n\treadonly metadata: Metadata;\n\tpublish(): FrameworkPublicationCommit;\n}\n\n/** Coordinates the timing around an authoritative framework publication. */\nexport interface FrameworkPublicationCoordinator<Metadata = unknown> {\n\tpublish(request: FrameworkPublicationRequest<Metadata>): void | PromiseLike<void>;\n}\n\n/** Creates a receipt that flushes reactive consequences in the next microtask. */\nexport function createFrameworkPublicationCommit(): FrameworkPublicationCommit {\n\treturn Object.freeze({\n\t\trendered: Promise.resolve().then(() => flushSync())\n\t});\n}\n"]}
|
|
@@ -4,4 +4,14 @@ export { RenderProgram, ServerBoundary, ServerSlot } from '../symbols.js';
|
|
|
4
4
|
export { createPreparedRenderProgram, prepareCompiledRenderProgram, readRenderProgram, readRenderProgramReceipt, readRenderProgramSlot, type ExactRenderProgram, type ExactDirectRenderProgram, type ExactDomRenderProgram, type ExactRenderProgramBinding, type ExactRenderProgramBindingOperation, type ExactRenderProgramBinder, type ExactRenderProgramBindingTarget, type ExactRenderProgramClaimOperation, type ExactRenderProgramInvocation, type ExactRenderProgramReceipt, type ExactRenderProgramReceiptData, type ExactRenderProgramNode, type ExactRenderProgramSlot, type ExactRenderProgramSsrOperations, type ExactRenderProgramSsrAttribute, type ExactRenderProgramSsrInvocation, type ExactRenderProgramSsrOutput, type ExactRenderProgramSsrWriter, type ExactRenderProgramWiring, type ExactSsrRenderProgram, type ExactTableRenderProgram } from '../render-program.js';
|
|
5
5
|
export { createDynamicChild, createExpression, createForwardedExpression } from '../component/reactive-expressions.js';
|
|
6
6
|
export { assertNativePropAllowed, assertNativeEventHandler, isNativeEventProp, isNativeSrcdocProp } from '../native-props.js';
|
|
7
|
+
export { projectPreparedText, type PreparedTextResolver } from '../component-abi/text-projection.js';
|
|
8
|
+
export { FragmentPresentationHosts, hasFragmentHostProps, type FragmentContribution, type FragmentPresentationHost } from './fragment-hosts.js';
|
|
9
|
+
export { readPreparedTargetOutput, readSuppliedTargetValue } from './prepared-target-output.js';
|
|
10
|
+
export { assertEnhancementSourceOrder } from './enhancement-order.js';
|
|
11
|
+
export { createFragmentTargetProjection } from './fragment-target-projection.js';
|
|
12
|
+
export { createFragmentEnhancementChain } from './fragment-enhancement-chain.js';
|
|
13
|
+
export { isTextTargetOutput, prepareTextTargetOutput } from './text-target-output.js';
|
|
14
|
+
export { projectedAttributes } from '../component-abi/text-projection-markup.js';
|
|
15
|
+
export { fallbackEnhancementEntries, claimEnhancementFallback, enhancementFallbackAvailable, forwardEnhancementFallback, checkpointEnhancementFallback } from './enhancement-fallback.js';
|
|
16
|
+
export { assertSingleSuppliedPlacement } from './supplied-placement.js';
|
|
7
17
|
//# sourceMappingURL=render-structure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-structure.d.ts","sourceRoot":"","sources":["../../../src/framework/render-structure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EACN,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EACzB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"render-structure.d.ts","sourceRoot":"","sources":["../../../src/framework/render-structure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EACN,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,kBAAkB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,EAC1B,6BAA6B,EAC7B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -4,4 +4,14 @@ export { RenderProgram, ServerBoundary, ServerSlot } from '../symbols.js';
|
|
|
4
4
|
export { createPreparedRenderProgram, prepareCompiledRenderProgram, readRenderProgram, readRenderProgramReceipt, readRenderProgramSlot } from '../render-program.js';
|
|
5
5
|
export { createDynamicChild, createExpression, createForwardedExpression } from '../component/reactive-expressions.js';
|
|
6
6
|
export { assertNativePropAllowed, assertNativeEventHandler, isNativeEventProp, isNativeSrcdocProp } from '../native-props.js';
|
|
7
|
+
export { projectPreparedText } from '../component-abi/text-projection.js';
|
|
8
|
+
export { FragmentPresentationHosts, hasFragmentHostProps } from './fragment-hosts.js';
|
|
9
|
+
export { readPreparedTargetOutput, readSuppliedTargetValue } from './prepared-target-output.js';
|
|
10
|
+
export { assertEnhancementSourceOrder } from './enhancement-order.js';
|
|
11
|
+
export { createFragmentTargetProjection } from './fragment-target-projection.js';
|
|
12
|
+
export { createFragmentEnhancementChain } from './fragment-enhancement-chain.js';
|
|
13
|
+
export { isTextTargetOutput, prepareTextTargetOutput } from './text-target-output.js';
|
|
14
|
+
export { projectedAttributes } from '../component-abi/text-projection-markup.js';
|
|
15
|
+
export { fallbackEnhancementEntries, claimEnhancementFallback, enhancementFallbackAvailable, forwardEnhancementFallback, checkpointEnhancementFallback } from './enhancement-fallback.js';
|
|
16
|
+
export { assertSingleSuppliedPlacement } from './supplied-placement.js';
|
|
7
17
|
//# sourceMappingURL=render-structure.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-structure.js","sourceRoot":"","sources":["../../../src/framework/render-structure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EACN,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EAsBrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EACzB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"render-structure.js","sourceRoot":"","sources":["../../../src/framework/render-structure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EACN,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EAsBrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EACzB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,mBAAmB,EAEnB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACN,yBAAyB,EACzB,oBAAoB,EAGpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,OAAO,EACN,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,EAC7B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["export { isFiniteClientBoundary, markFiniteClientBoundary } from '../hydration-boundary.js';\nexport { hasIndependentAsyncSiblings, markIndependentAsyncSiblings } from '../ssr-independence.js';\nexport { RenderProgram, ServerBoundary, ServerSlot } from '../symbols.js';\nexport {\n\tcreatePreparedRenderProgram,\n\tprepareCompiledRenderProgram,\n\treadRenderProgram,\n\treadRenderProgramReceipt,\n\treadRenderProgramSlot,\n\ttype ExactRenderProgram,\n\ttype ExactDirectRenderProgram,\n\ttype ExactDomRenderProgram,\n\ttype ExactRenderProgramBinding,\n\ttype ExactRenderProgramBindingOperation,\n\ttype ExactRenderProgramBinder,\n\ttype ExactRenderProgramBindingTarget,\n\ttype ExactRenderProgramClaimOperation,\n\ttype ExactRenderProgramInvocation,\n\ttype ExactRenderProgramReceipt,\n\ttype ExactRenderProgramReceiptData,\n\ttype ExactRenderProgramNode,\n\ttype ExactRenderProgramSlot,\n\ttype ExactRenderProgramSsrOperations,\n\ttype ExactRenderProgramSsrAttribute,\n\ttype ExactRenderProgramSsrInvocation,\n\ttype ExactRenderProgramSsrOutput,\n\ttype ExactRenderProgramSsrWriter,\n\ttype ExactRenderProgramWiring,\n\ttype ExactSsrRenderProgram,\n\ttype ExactTableRenderProgram\n} from '../render-program.js';\nexport {\n\tcreateDynamicChild,\n\tcreateExpression,\n\tcreateForwardedExpression\n} from '../component/reactive-expressions.js';\nexport {\n\tassertNativePropAllowed,\n\tassertNativeEventHandler,\n\tisNativeEventProp,\n\tisNativeSrcdocProp\n} from '../native-props.js';\nexport {\n\tprojectPreparedText,\n\ttype PreparedTextResolver\n} from '../component-abi/text-projection.js';\nexport {\n\tFragmentPresentationHosts,\n\thasFragmentHostProps,\n\ttype FragmentContribution,\n\ttype FragmentPresentationHost\n} from './fragment-hosts.js';\nexport { readPreparedTargetOutput, readSuppliedTargetValue } from './prepared-target-output.js';\nexport { assertEnhancementSourceOrder } from './enhancement-order.js';\n\nexport { createFragmentTargetProjection } from './fragment-target-projection.js';\nexport { createFragmentEnhancementChain } from './fragment-enhancement-chain.js';\n\nexport { isTextTargetOutput, prepareTextTargetOutput } from './text-target-output.js';\n\nexport { projectedAttributes } from '../component-abi/text-projection-markup.js';\n\nexport {\n\tfallbackEnhancementEntries,\n\tclaimEnhancementFallback,\n\tenhancementFallbackAvailable,\n\tforwardEnhancementFallback,\n\tcheckpointEnhancementFallback\n} from './enhancement-fallback.js';\n\nexport { assertSingleSuppliedPlacement } from './supplied-placement.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-component-contexts.js","sourceRoot":"","sources":["../../../src/framework/server-component-contexts.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EAEtB,MAAM,2CAA2C,CAAC"}
|
|
1
|
+
{"version":3,"file":"server-component-contexts.js","sourceRoot":"","sources":["../../../src/framework/server-component-contexts.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EAEtB,MAAM,2CAA2C,CAAC","sourcesContent":["/** Compiler-selected context operations for request-local direct server component frames. */\nexport {\n\tgetDirectServerContext,\n\thasDirectServerContext,\n\tsetDirectServerContext,\n\ttype DirectServerContextOwner\n} from '../component/direct-server-context-api.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-component-execution.js","sourceRoot":"","sources":["../../../src/framework/server-component-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kCAAkC,EAClC,mCAAmC,EACnC,2BAA2B,EAC3B,gCAAgC,EAChC,kDAAkD,EAClD,iCAAiC,EACjC,+CAA+C,EAC/C,oCAAoC,EACpC,4CAA4C,EAC5C,yBAAyB,EAGzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAC1B,MAAM,wCAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"server-component-execution.js","sourceRoot":"","sources":["../../../src/framework/server-component-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kCAAkC,EAClC,mCAAmC,EACnC,2BAA2B,EAC3B,gCAAgC,EAChC,kDAAkD,EAClD,iCAAiC,EACjC,+CAA+C,EAC/C,oCAAoC,EACpC,4CAA4C,EAC5C,yBAAyB,EAGzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAC1B,MAAM,wCAAwC,CAAC","sourcesContent":["export {\n\tactivateServerComponentTaskForHost,\n\tcreateServerComponentExecutionFrame,\n\tissueServerComponentReceipt,\n\treadServerComponentOutputForHost,\n\tregisterServerComponentContinuationContextsForHost,\n\tserverComponentDependencyForValue,\n\tserverComponentContinuationContextValuesForHost,\n\tserverComponentExecutionValueForHost,\n\tsettledServerComponentContinuationIdsForHost,\n\twithServerComponentIssuer,\n\ttype ServerComponentExecutionFrame,\n\ttype ServerComponentTaskSlice\n} from '../tasks/server-component-execution.js';\nexport {\n\tawaitServerComponentTask,\n\tserverComponentTaskTimeout\n} from '../tasks/server-component-resources.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-render-structure.js","sourceRoot":"","sources":["../../../src/framework/server-render-structure.ts"],"names":[],"mappings":"AACA,OAAO,EACN,8BAA8B,EAE9B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EA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8BAA8B,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC;AAC/E,CAAC","sourcesContent":["import type { RenderResult } from '../component/contracts.js';\nimport {\n\tcreatePreparedServerChildRange,\n\ttype ExactPreparedServerChildRange\n} from '../component-abi/server-child-range.js';\n\nexport { isFiniteClientBoundary, markFiniteClientBoundary } from '../hydration-boundary.js';\nexport { hasIndependentAsyncSiblings, markIndependentAsyncSiblings } from '../ssr-independence.js';\nexport { RenderProgram, ServerBoundary, ServerSlot } from '../symbols.js';\nexport {\n\tcreatePreparedRenderProgram,\n\tcreatePreparedServerRenderProgram,\n\tprepareCompiledRenderProgram,\n\treadPreparedServerRenderProgram,\n\treadRenderProgram,\n\treadRenderProgramReceipt,\n\treadRenderProgramSlot,\n\ttype ExactRenderProgram,\n\ttype ExactDirectRenderProgram,\n\ttype ExactDomRenderProgram,\n\ttype ExactRenderProgramBinding,\n\ttype ExactRenderProgramBinder,\n\ttype ExactRenderProgramBindingTarget,\n\ttype ExactRenderProgramInvocation,\n\ttype ExactRenderProgramReceipt,\n\ttype ExactRenderProgramReceiptData,\n\ttype ExactPreparedServerRenderProgram,\n\ttype ExactRenderProgramNode,\n\ttype ExactRenderProgramSlot,\n\ttype ExactRenderProgramSsrOperations,\n\ttype ExactRenderProgramSsrOutput,\n\ttype ExactRenderProgramSsrInvocation,\n\ttype ExactRenderProgramSsrWriter,\n\ttype ExactSsrRenderProgram,\n\ttype ExactTableRenderProgram\n} from '../render-program.js';\nexport {\n\tcreatePreparedServerComponentReference,\n\tcreatePreparedServerComponentReferenceFromPlainProps,\n\treadPreparedServerComponentReference,\n\ttype ExactPreparedServerComponentReference\n} from '../component-abi/receipt.js';\nexport {\n\treadPreparedServerChildRange,\n\ttype ExactPreparedServerChildRange\n} from '../component-abi/server-child-range.js';\nexport {\n\tcreatePreparedServerKeyedChild,\n\treadPreparedServerKeyedChild,\n\ttype ExactPreparedServerKeyedChild\n} from '../component-abi/server-keyed-child.js';\nexport {\n\tcreateKeyedServerSlot,\n\tcreateServerBoundary,\n\tcreateServerSlot\n} from '../component-abi/server-structure-receipts.js';\n\n/** Evaluates a compiler-known expression directly in a compiler-closed server component. */\nexport function createExpression<T>(compute: () => T): T {\n\treturn compute();\n}\n\n/** Evaluates a compiler-forwarded input directly in a compiler-closed server component. */\nexport function createForwardedExpression<T>(compute: () => T): T {\n\treturn compute();\n}\n\n/** Creates an eager focused child range for a direct server render or its local fallback. */\nexport function createDynamicChild(\n\tcompute: () => RenderResult,\n\tmarkerId?: string,\n\tmayReplaceSubtree = true\n): ExactPreparedServerChildRange {\n\treturn createPreparedServerChildRange(compute(), markerId, mayReplaceSubtree);\n}\n\n/** Creates the eager server operation for one compiler-owned dynamic child range. */\nexport function createCompiledChildRangeReceipt(\n\tcompute: () => RenderResult,\n\tmarkerId?: string,\n\tmayReplaceSubtree = true\n): ExactPreparedServerChildRange {\n\treturn createPreparedServerChildRange(compute(), markerId, mayReplaceSubtree);\n}\n"]}
|
|
@@ -7,6 +7,7 @@ export { activateCompiledClientLatestTaskForHost, bindCompiledClientLatestTaskFo
|
|
|
7
7
|
export { markComponentContinuationTask } from '../tasks/component-continuation.js';
|
|
8
8
|
export { taskMutation } from '../tasks/frame-runtime.js';
|
|
9
9
|
export { bindTaskForHost, defineTask, invokeTask } from '../tasks/runtime.js';
|
|
10
|
+
export { activateServerComponentTaskTreeForHost } from '../tasks/server-component-task-tree.js';
|
|
10
11
|
export { mutateTaskCollection, ownTaskResource, stageTaskMutation, taskAnimationFrame, taskAwait, taskFetch, taskIdleCallback, taskInterval, taskObserver, taskTimeout } from '../tasks/resources.js';
|
|
11
12
|
export { combineTaskSignal, withAbortSignal, withTaskSignal } from '../tasks/signals.js';
|
|
12
13
|
//# sourceMappingURL=server-task-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-task-helpers.d.ts","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"server-task-helpers.d.ts","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,sCAAsC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -7,6 +7,7 @@ export { activateCompiledClientLatestTaskForHost, bindCompiledClientLatestTaskFo
|
|
|
7
7
|
export { markComponentContinuationTask } from '../tasks/component-continuation.js';
|
|
8
8
|
export { taskMutation } from '../tasks/frame-runtime.js';
|
|
9
9
|
export { bindTaskForHost, defineTask, invokeTask } from '../tasks/runtime.js';
|
|
10
|
+
export { activateServerComponentTaskTreeForHost } from '../tasks/server-component-task-tree.js';
|
|
10
11
|
export { mutateTaskCollection, ownTaskResource, stageTaskMutation, taskAnimationFrame, taskAwait, taskFetch, taskIdleCallback, taskInterval, taskObserver, taskTimeout } from '../tasks/resources.js';
|
|
11
12
|
export { combineTaskSignal, withAbortSignal, withTaskSignal } from '../tasks/signals.js';
|
|
12
13
|
//# sourceMappingURL=server-task-helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-task-helpers.js","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"server-task-helpers.js","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,sCAAsC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { registerComponentContinuationContexts } from '../component/context-resumption.js';\nexport { dispatchComponentContinuation } from '../component/domain.js';\nexport { activateTaskForHost } from '../tasks/activation.js';\nexport { activateComputationForHost } from '../tasks/computation-activation.js';\nexport { createTrackedContinuationDependency } from '../tasks/dependency-source.js';\nexport {\n\tactivateCompiledClientLatestTaskForHost,\n\tbindCompiledClientLatestTaskForHost\n} from '../tasks/compiled-latest.js';\nexport { markComponentContinuationTask } from '../tasks/component-continuation.js';\nexport { taskMutation } from '../tasks/frame-runtime.js';\nexport { bindTaskForHost, defineTask, invokeTask } from '../tasks/runtime.js';\nexport { activateServerComponentTaskTreeForHost } from '../tasks/server-component-task-tree.js';\nexport {\n\tmutateTaskCollection,\n\townTaskResource,\n\tstageTaskMutation,\n\ttaskAnimationFrame,\n\ttaskAwait,\n\ttaskFetch,\n\ttaskIdleCallback,\n\ttaskInterval,\n\ttaskObserver,\n\ttaskTimeout\n} from '../tasks/resources.js';\nexport { combineTaskSignal, withAbortSignal, withTaskSignal } from '../tasks/signals.js';\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks an owner's current structural output before placement. It follows compiler child slots,
|
|
3
|
+
* never executes a component, and ignores scalar ranges unrelated to placement. Mutually exclusive
|
|
4
|
+
* placements are evaluated from the same reactive snapshot so moving a child is not a duplicate.
|
|
5
|
+
* Returns the selected operation so a renderer can transfer its existing placement ownership.
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertSingleSuppliedPlacement(output: readonly unknown[], supplied: unknown): object | undefined;
|
|
8
|
+
//# sourceMappingURL=supplied-placement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supplied-placement.d.ts","sourceRoot":"","sources":["../../../src/framework/supplied-placement.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,EAC1B,QAAQ,EAAE,OAAO,GACf,MAAM,GAAG,SAAS,CA8DpB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { unwrap } from '@exactjs/reactive/framework/values';
|
|
2
|
+
import { readCompiledComponentReceipt, readPreparedServerComponentReference } from '../component-abi/receipt.js';
|
|
3
|
+
import { readCompiledIntrinsicReceipt } from '../component-abi/intrinsic-receipt.js';
|
|
4
|
+
import { readCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';
|
|
5
|
+
import { readCompiledTargetReceipt } from '../component-abi/target-receipt.js';
|
|
6
|
+
import { readChildRangeReceipt } from '../component-abi/child-range-receipt.js';
|
|
7
|
+
import { readPreparedServerChildRange } from '../component-abi/server-child-range.js';
|
|
8
|
+
import { readCompiledKeyedChildReceipt } from '../component-abi/keyed-child-receipt.js';
|
|
9
|
+
import { readRenderProgramReceipt, readRenderProgramSlot } from '../render-program.js';
|
|
10
|
+
import { readPreparedServerRenderProgram } from '../server-render-program.js';
|
|
11
|
+
/**
|
|
12
|
+
* Checks an owner's current structural output before placement. It follows compiler child slots,
|
|
13
|
+
* never executes a component, and ignores scalar ranges unrelated to placement. Mutually exclusive
|
|
14
|
+
* placements are evaluated from the same reactive snapshot so moving a child is not a duplicate.
|
|
15
|
+
* Returns the selected operation so a renderer can transfer its existing placement ownership.
|
|
16
|
+
*/
|
|
17
|
+
export function assertSingleSuppliedPlacement(output, supplied) {
|
|
18
|
+
let selected = unwrap(supplied);
|
|
19
|
+
while (Array.isArray(selected) && selected.length === 1)
|
|
20
|
+
selected = unwrap(selected[0]);
|
|
21
|
+
if (selected == null || typeof selected === 'boolean')
|
|
22
|
+
return;
|
|
23
|
+
let placements = 0;
|
|
24
|
+
let placement;
|
|
25
|
+
const place = (value) => {
|
|
26
|
+
if (++placements > 1)
|
|
27
|
+
throw new TypeError('A supplied target cannot be placed more than once by one component');
|
|
28
|
+
placement = value;
|
|
29
|
+
};
|
|
30
|
+
const visit = (raw) => {
|
|
31
|
+
const value = unwrap(raw);
|
|
32
|
+
if (Array.isArray(value)) {
|
|
33
|
+
for (const child of value)
|
|
34
|
+
visit(child);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (typeof value !== 'object' || value === null)
|
|
38
|
+
return;
|
|
39
|
+
if (value === selected) {
|
|
40
|
+
place(value);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const target = readCompiledTargetReceipt(value);
|
|
44
|
+
if (target && target.children.length === 1 && unwrap(target.children[0]) === selected) {
|
|
45
|
+
place(value);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const component = readCompiledComponentReceipt(value) ?? readPreparedServerComponentReference(value);
|
|
49
|
+
const intrinsic = readCompiledIntrinsicReceipt(value);
|
|
50
|
+
const fragment = readCompiledFragmentReceipt(value);
|
|
51
|
+
const range = readChildRangeReceipt(value);
|
|
52
|
+
const serverRange = readPreparedServerChildRange(value);
|
|
53
|
+
const keyed = readCompiledKeyedChildReceipt(value);
|
|
54
|
+
const program = readRenderProgramReceipt(value);
|
|
55
|
+
const serverProgram = readPreparedServerRenderProgram(value);
|
|
56
|
+
const children = target?.children ??
|
|
57
|
+
component?.children ??
|
|
58
|
+
intrinsic?.children ??
|
|
59
|
+
fragment?.children ??
|
|
60
|
+
(range
|
|
61
|
+
? range.mayReplaceSubtree
|
|
62
|
+
? [range.value]
|
|
63
|
+
: []
|
|
64
|
+
: serverRange
|
|
65
|
+
? [serverRange.value]
|
|
66
|
+
: keyed
|
|
67
|
+
? [keyed.value]
|
|
68
|
+
: program
|
|
69
|
+
? (program.invocation.program.targetSlots ?? []).map((index) => readRenderProgramSlot(program.invocation, index))
|
|
70
|
+
: serverProgram
|
|
71
|
+
? (serverProgram.program.targetSlots ?? []).map((index) => serverProgram.eagerValues[index])
|
|
72
|
+
: []);
|
|
73
|
+
for (const child of children)
|
|
74
|
+
visit(child);
|
|
75
|
+
};
|
|
76
|
+
for (const child of output)
|
|
77
|
+
visit(child);
|
|
78
|
+
return placement;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=supplied-placement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supplied-placement.js","sourceRoot":"","sources":["../../../src/framework/supplied-placement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EACN,4BAA4B,EAC5B,oCAAoC,EACpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC5C,MAA0B,EAC1B,QAAiB;IAEjB,IAAI,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACxF,IAAI,QAAQ,IAAI,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C,KAAK,CAAC,CAAC;IACzC,OAAO,SAAS,CAAC;AAClB,CAAC","sourcesContent":["import { unwrap } from '@exactjs/reactive/framework/values';\nimport {\n\treadCompiledComponentReceipt,\n\treadPreparedServerComponentReference\n} from '../component-abi/receipt.js';\nimport { readCompiledIntrinsicReceipt } from '../component-abi/intrinsic-receipt.js';\nimport { readCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';\nimport { readCompiledTargetReceipt } from '../component-abi/target-receipt.js';\nimport { readChildRangeReceipt } from '../component-abi/child-range-receipt.js';\nimport { readPreparedServerChildRange } from '../component-abi/server-child-range.js';\nimport { readCompiledKeyedChildReceipt } from '../component-abi/keyed-child-receipt.js';\nimport { readRenderProgramReceipt, readRenderProgramSlot } from '../render-program.js';\nimport { readPreparedServerRenderProgram } from '../server-render-program.js';\n\n/**\n * Checks an owner's current structural output before placement. It follows compiler child slots,\n * never executes a component, and ignores scalar ranges unrelated to placement. Mutually exclusive\n * placements are evaluated from the same reactive snapshot so moving a child is not a duplicate.\n * Returns the selected operation so a renderer can transfer its existing placement ownership.\n */\nexport function assertSingleSuppliedPlacement(\n\toutput: readonly unknown[],\n\tsupplied: unknown\n): object | undefined {\n\tlet selected = unwrap(supplied);\n\twhile (Array.isArray(selected) && selected.length === 1) selected = unwrap(selected[0]);\n\tif (selected == null || typeof selected === 'boolean') return;\n\tlet placements = 0;\n\tlet placement: object | undefined;\n\tconst place = (value: object) => {\n\t\tif (++placements > 1)\n\t\t\tthrow new TypeError('A supplied target cannot be placed more than once by one component');\n\t\tplacement = value;\n\t};\n\tconst visit = (raw: unknown): void => {\n\t\tconst value = unwrap(raw);\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (const child of value) visit(child);\n\t\t\treturn;\n\t\t}\n\t\tif (typeof value !== 'object' || value === null) return;\n\t\tif (value === selected) {\n\t\t\tplace(value);\n\t\t\treturn;\n\t\t}\n\t\tconst target = readCompiledTargetReceipt(value);\n\t\tif (target && target.children.length === 1 && unwrap(target.children[0]) === selected) {\n\t\t\tplace(value);\n\t\t\treturn;\n\t\t}\n\t\tconst component =\n\t\t\treadCompiledComponentReceipt(value) ?? readPreparedServerComponentReference(value);\n\t\tconst intrinsic = readCompiledIntrinsicReceipt(value);\n\t\tconst fragment = readCompiledFragmentReceipt(value);\n\t\tconst range = readChildRangeReceipt(value);\n\t\tconst serverRange = readPreparedServerChildRange(value);\n\t\tconst keyed = readCompiledKeyedChildReceipt(value);\n\t\tconst program = readRenderProgramReceipt(value);\n\t\tconst serverProgram = readPreparedServerRenderProgram(value);\n\t\tconst children =\n\t\t\ttarget?.children ??\n\t\t\tcomponent?.children ??\n\t\t\tintrinsic?.children ??\n\t\t\tfragment?.children ??\n\t\t\t(range\n\t\t\t\t? range.mayReplaceSubtree\n\t\t\t\t\t? [range.value]\n\t\t\t\t\t: []\n\t\t\t\t: serverRange\n\t\t\t\t\t? [serverRange.value]\n\t\t\t\t\t: keyed\n\t\t\t\t\t\t? [keyed.value]\n\t\t\t\t\t\t: program\n\t\t\t\t\t\t\t? (program.invocation.program.targetSlots ?? []).map((index) =>\n\t\t\t\t\t\t\t\t\treadRenderProgramSlot(program.invocation, index)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: serverProgram\n\t\t\t\t\t\t\t\t? (serverProgram.program.targetSlots ?? []).map(\n\t\t\t\t\t\t\t\t\t\t(index) => serverProgram.eagerValues[index]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t: []);\n\t\tfor (const child of children) visit(child);\n\t};\n\tfor (const child of output) visit(child);\n\treturn placement;\n}\n"]}
|
|
@@ -2,4 +2,6 @@
|
|
|
2
2
|
export declare function mergeTargetClassContributions(values: readonly unknown[]): string | null | undefined;
|
|
3
3
|
/** Merges ordered ARIA/token-list target contributions with stable de-duplication. */
|
|
4
4
|
export declare function mergeTargetTokenContributions(values: readonly unknown[]): string | null | undefined;
|
|
5
|
+
/** Composes one semantic-target layer with authored and nearest-owner precedence. */
|
|
6
|
+
export declare function composeTargetProps(base: Readonly<Record<string, unknown>>, layer: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
5
7
|
//# sourceMappingURL=target-contributions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target-contributions.d.ts","sourceRoot":"","sources":["../../../src/framework/target-contributions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"target-contributions.d.ts","sourceRoot":"","sources":["../../../src/framework/target-contributions.ts"],"names":[],"mappings":"AAIA,kFAAkF;AAClF,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,GACxB,MAAM,GAAG,IAAI,GAAG,SAAS,CAE3B;AAED,sFAAsF;AACtF,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,GACxB,MAAM,GAAG,IAAI,GAAG,SAAS,CAE3B;AA8BD,qFAAqF;AACrF,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACvC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBzB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { unwrap } from '@exactjs/reactive/framework/runtime';
|
|
2
|
+
import { TargetOverrides } from '../symbols.js';
|
|
2
3
|
import { normalizeClassValue } from '../class-values.js';
|
|
3
4
|
/** Merges ordered target class contributions with stable token de-duplication. */
|
|
4
5
|
export function mergeTargetClassContributions(values) {
|
|
@@ -25,4 +26,41 @@ function mergeTargetTokens(values, normalize) {
|
|
|
25
26
|
}
|
|
26
27
|
return tokens.length ? tokens.join(' ') : suppressed ? null : undefined;
|
|
27
28
|
}
|
|
29
|
+
const tokenListProps = new Set([
|
|
30
|
+
'aria-describedby',
|
|
31
|
+
'aria-labelledby',
|
|
32
|
+
'aria-controls',
|
|
33
|
+
'aria-owns',
|
|
34
|
+
'aria-flowto',
|
|
35
|
+
'rel'
|
|
36
|
+
]);
|
|
37
|
+
/** Composes one semantic-target layer with authored and nearest-owner precedence. */
|
|
38
|
+
export function composeTargetProps(base, layer) {
|
|
39
|
+
const result = { ...base };
|
|
40
|
+
delete result[TargetOverrides];
|
|
41
|
+
const overrideValue = unwrap(layer[TargetOverrides]);
|
|
42
|
+
// Most layers have no overrides. Membership against a string key also ignores
|
|
43
|
+
// non-string entries, without allocating a filtered array or an empty Set per host.
|
|
44
|
+
const overrides = Array.isArray(overrideValue) && overrideValue.length ? new Set(overrideValue) : undefined;
|
|
45
|
+
for (const key of new Set([...Object.keys(base), ...Object.keys(layer)])) {
|
|
46
|
+
if (key === 'children' || key === 'key' || key === 'ref' || /^on[A-Z]/.test(key))
|
|
47
|
+
continue;
|
|
48
|
+
const authored = unwrap(base[key]);
|
|
49
|
+
const contributed = unwrap(layer[key]);
|
|
50
|
+
if (overrides?.has(key))
|
|
51
|
+
result[key] = contributed;
|
|
52
|
+
else if (key === 'class' || key === 'className')
|
|
53
|
+
result[key] = mergeTargetClassContributions([authored, contributed]);
|
|
54
|
+
else if (tokenListProps.has(key))
|
|
55
|
+
result[key] = mergeTargetTokenContributions([authored, contributed]);
|
|
56
|
+
else if (key === 'style' && isRecord(contributed) && isRecord(authored))
|
|
57
|
+
result[key] = { ...contributed, ...authored };
|
|
58
|
+
else
|
|
59
|
+
result[key] = authored !== undefined ? authored : contributed;
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
function isRecord(value) {
|
|
64
|
+
return !!value && typeof value === 'object' && !Array.isArray(value);
|
|
65
|
+
}
|
|
28
66
|
//# sourceMappingURL=target-contributions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target-contributions.js","sourceRoot":"","sources":["../../../src/framework/target-contributions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAq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C,CAAC,CAAC;aACjE,IAAI,GAAG,KAAK,OAAO,IAAI,QAAQ,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC;YACtE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,WAAW,EAAE,GAAG,QAAQ,EAAE,CAAC;;YAC1C,MAAM,CAAC,GAAG,CAAC,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC;IACpE,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC/B,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACtE,CAAC","sourcesContent":["import { unwrap } from '@exactjs/reactive/framework/runtime';\nimport { TargetOverrides } from '../symbols.js';\nimport { normalizeClassValue } from '../class-values.js';\n\n/** Merges ordered target class contributions with stable token de-duplication. */\nexport function mergeTargetClassContributions(\n\tvalues: readonly unknown[]\n): string | null | undefined {\n\treturn mergeTargetTokens(values, normalizeClassValue);\n}\n\n/** Merges ordered ARIA/token-list target contributions with stable de-duplication. */\nexport function mergeTargetTokenContributions(\n\tvalues: readonly unknown[]\n): string | null | undefined {\n\treturn mergeTargetTokens(values, String);\n}\n\nfunction mergeTargetTokens(\n\tvalues: readonly unknown[],\n\tnormalize: (value: unknown) => string\n): string | null | undefined {\n\tconst tokens: string[] = [];\n\tlet suppressed = false;\n\tfor (const value of values) {\n\t\tconst actual = unwrap(value);\n\t\tif (actual === undefined) continue;\n\t\tif (actual === null) {\n\t\t\tsuppressed = true;\n\t\t\tcontinue;\n\t\t}\n\t\tfor (const token of normalize(actual).split(/\\s+/))\n\t\t\tif (token && !tokens.includes(token)) tokens.push(token);\n\t}\n\treturn tokens.length ? tokens.join(' ') : suppressed ? null : undefined;\n}\n\nconst tokenListProps = new Set([\n\t'aria-describedby',\n\t'aria-labelledby',\n\t'aria-controls',\n\t'aria-owns',\n\t'aria-flowto',\n\t'rel'\n]);\n\n/** Composes one semantic-target layer with authored and nearest-owner precedence. */\nexport function composeTargetProps(\n\tbase: Readonly<Record<string, unknown>>,\n\tlayer: Readonly<Record<string, unknown>>\n): Record<string, unknown> {\n\tconst result: Record<string, unknown> = { ...base };\n\tdelete (result as Record<PropertyKey, unknown>)[TargetOverrides];\n\tconst overrideValue = unwrap((layer as Readonly<Record<PropertyKey, unknown>>)[TargetOverrides]);\n\t// Most layers have no overrides. Membership against a string key also ignores\n\t// non-string entries, without allocating a filtered array or an empty Set per host.\n\tconst overrides =\n\t\tArray.isArray(overrideValue) && overrideValue.length ? new Set(overrideValue) : undefined;\n\tfor (const key of new Set([...Object.keys(base), ...Object.keys(layer)])) {\n\t\tif (key === 'children' || key === 'key' || key === 'ref' || /^on[A-Z]/.test(key)) continue;\n\t\tconst authored = unwrap(base[key]);\n\t\tconst contributed = unwrap(layer[key]);\n\t\tif (overrides?.has(key)) result[key] = contributed;\n\t\telse if (key === 'class' || key === 'className')\n\t\t\tresult[key] = mergeTargetClassContributions([authored, contributed]);\n\t\telse if (tokenListProps.has(key))\n\t\t\tresult[key] = mergeTargetTokenContributions([authored, contributed]);\n\t\telse if (key === 'style' && isRecord(contributed) && isRecord(authored))\n\t\t\tresult[key] = { ...contributed, ...authored };\n\t\telse result[key] = authored !== undefined ? authored : contributed;\n\t}\n\treturn result;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n\treturn !!value && typeof value === 'object' && !Array.isArray(value);\n}\n"]}
|