@azx-pbc/axiom-react 0.0.0-stage → 0.0.6
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/LICENSE +21 -0
- package/README.md +604 -2
- package/dist/FormErrorBoundary.d.ts +37 -0
- package/dist/FormErrorBoundary.d.ts.map +1 -0
- package/dist/FormErrorBoundary.js +54 -0
- package/dist/FormErrorBoundary.js.map +1 -0
- package/dist/FormProvider.d.ts +197 -0
- package/dist/FormProvider.d.ts.map +1 -0
- package/dist/FormProvider.js +149 -0
- package/dist/FormProvider.js.map +1 -0
- package/dist/field-error.d.ts +154 -0
- package/dist/field-error.d.ts.map +1 -0
- package/dist/field-error.js +2 -0
- package/dist/field-error.js.map +1 -0
- package/dist/field-props.d.ts +362 -0
- package/dist/field-props.d.ts.map +1 -0
- package/dist/field-props.js +64 -0
- package/dist/field-props.js.map +1 -0
- package/dist/form-context.d.ts +31 -0
- package/dist/form-context.d.ts.map +1 -0
- package/dist/form-context.js +13 -0
- package/dist/form-context.js.map +1 -0
- package/dist/form-store.d.ts +784 -0
- package/dist/form-store.d.ts.map +1 -0
- package/dist/form-store.js +2179 -0
- package/dist/form-store.js.map +1 -0
- package/dist/hints.d.ts +60 -0
- package/dist/hints.d.ts.map +1 -0
- package/dist/hints.js +158 -0
- package/dist/hints.js.map +1 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/render/field-value.d.ts +92 -0
- package/dist/render/field-value.d.ts.map +1 -0
- package/dist/render/field-value.js +124 -0
- package/dist/render/field-value.js.map +1 -0
- package/dist/render/nodes.d.ts +303 -0
- package/dist/render/nodes.d.ts.map +1 -0
- package/dist/render/nodes.js +325 -0
- package/dist/render/nodes.js.map +1 -0
- package/dist/render/schema.d.ts +30 -0
- package/dist/render/schema.d.ts.map +1 -0
- package/dist/render/schema.js +40 -0
- package/dist/render/schema.js.map +1 -0
- package/dist/render/value-text.d.ts +59 -0
- package/dist/render/value-text.d.ts.map +1 -0
- package/dist/render/value-text.js +104 -0
- package/dist/render/value-text.js.map +1 -0
- package/dist/store/array-bindings.d.ts +110 -0
- package/dist/store/array-bindings.d.ts.map +1 -0
- package/dist/store/array-bindings.js +181 -0
- package/dist/store/array-bindings.js.map +1 -0
- package/dist/store/bindings.d.ts +12 -0
- package/dist/store/bindings.d.ts.map +1 -0
- package/dist/store/bindings.js +16 -0
- package/dist/store/bindings.js.map +1 -0
- package/dist/store/buffer-state.d.ts +42 -0
- package/dist/store/buffer-state.d.ts.map +1 -0
- package/dist/store/buffer-state.js +51 -0
- package/dist/store/buffer-state.js.map +1 -0
- package/dist/store/configure.d.ts +19 -0
- package/dist/store/configure.d.ts.map +1 -0
- package/dist/store/configure.js +28 -0
- package/dist/store/configure.js.map +1 -0
- package/dist/store/derive.d.ts +106 -0
- package/dist/store/derive.d.ts.map +1 -0
- package/dist/store/derive.js +417 -0
- package/dist/store/derive.js.map +1 -0
- package/dist/store/errors.d.ts +20 -0
- package/dist/store/errors.d.ts.map +1 -0
- package/dist/store/errors.js +101 -0
- package/dist/store/errors.js.map +1 -0
- package/dist/store/fields.d.ts +35 -0
- package/dist/store/fields.d.ts.map +1 -0
- package/dist/store/fields.js +81 -0
- package/dist/store/fields.js.map +1 -0
- package/dist/store/form-channel.d.ts +174 -0
- package/dist/store/form-channel.d.ts.map +1 -0
- package/dist/store/form-channel.js +411 -0
- package/dist/store/form-channel.js.map +1 -0
- package/dist/store/gates.d.ts +22 -0
- package/dist/store/gates.d.ts.map +1 -0
- package/dist/store/gates.js +44 -0
- package/dist/store/gates.js.map +1 -0
- package/dist/store/ids.d.ts +20 -0
- package/dist/store/ids.d.ts.map +1 -0
- package/dist/store/ids.js +28 -0
- package/dist/store/ids.js.map +1 -0
- package/dist/store/inputs.d.ts +114 -0
- package/dist/store/inputs.d.ts.map +1 -0
- package/dist/store/inputs.js +202 -0
- package/dist/store/inputs.js.map +1 -0
- package/dist/store/layout.d.ts +81 -0
- package/dist/store/layout.d.ts.map +1 -0
- package/dist/store/layout.js +285 -0
- package/dist/store/layout.js.map +1 -0
- package/dist/store/messages.d.ts +56 -0
- package/dist/store/messages.d.ts.map +1 -0
- package/dist/store/messages.js +157 -0
- package/dist/store/messages.js.map +1 -0
- package/dist/store/option-pages.d.ts +193 -0
- package/dist/store/option-pages.d.ts.map +1 -0
- package/dist/store/option-pages.js +598 -0
- package/dist/store/option-pages.js.map +1 -0
- package/dist/store/parse-print.d.ts +105 -0
- package/dist/store/parse-print.d.ts.map +1 -0
- package/dist/store/parse-print.js +415 -0
- package/dist/store/parse-print.js.map +1 -0
- package/dist/store/proposals.d.ts +114 -0
- package/dist/store/proposals.d.ts.map +1 -0
- package/dist/store/proposals.js +90 -0
- package/dist/store/proposals.js.map +1 -0
- package/dist/store/publish.d.ts +48 -0
- package/dist/store/publish.d.ts.map +1 -0
- package/dist/store/publish.js +96 -0
- package/dist/store/publish.js.map +1 -0
- package/dist/store/snapshots.d.ts +63 -0
- package/dist/store/snapshots.d.ts.map +1 -0
- package/dist/store/snapshots.js +154 -0
- package/dist/store/snapshots.js.map +1 -0
- package/dist/store/steps.d.ts +13 -0
- package/dist/store/steps.d.ts.map +1 -0
- package/dist/store/steps.js +31 -0
- package/dist/store/steps.js.map +1 -0
- package/dist/store/view.d.ts +124 -0
- package/dist/store/view.d.ts.map +1 -0
- package/dist/store/view.js +301 -0
- package/dist/store/view.js.map +1 -0
- package/dist/store/visibility.d.ts +68 -0
- package/dist/store/visibility.d.ts.map +1 -0
- package/dist/store/visibility.js +231 -0
- package/dist/store/visibility.js.map +1 -0
- package/dist/store/wizard-cursor.d.ts +43 -0
- package/dist/store/wizard-cursor.d.ts.map +1 -0
- package/dist/store/wizard-cursor.js +67 -0
- package/dist/store/wizard-cursor.js.map +1 -0
- package/dist/store/writes.d.ts +50 -0
- package/dist/store/writes.d.ts.map +1 -0
- package/dist/store/writes.js +91 -0
- package/dist/store/writes.js.map +1 -0
- package/dist/typed.d.ts +134 -0
- package/dist/typed.d.ts.map +1 -0
- package/dist/typed.js +74 -0
- package/dist/typed.js.map +1 -0
- package/dist/useAsyncOptions.d.ts +20 -0
- package/dist/useAsyncOptions.d.ts.map +1 -0
- package/dist/useAsyncOptions.js +70 -0
- package/dist/useAsyncOptions.js.map +1 -0
- package/dist/useBufferedInput.d.ts +69 -0
- package/dist/useBufferedInput.d.ts.map +1 -0
- package/dist/useBufferedInput.js +132 -0
- package/dist/useBufferedInput.js.map +1 -0
- package/dist/useField.d.ts +42 -0
- package/dist/useField.d.ts.map +1 -0
- package/dist/useField.js +63 -0
- package/dist/useField.js.map +1 -0
- package/dist/useFieldArray.d.ts +25 -0
- package/dist/useFieldArray.d.ts.map +1 -0
- package/dist/useFieldArray.js +18 -0
- package/dist/useFieldArray.js.map +1 -0
- package/dist/useForm.d.ts +20 -0
- package/dist/useForm.d.ts.map +1 -0
- package/dist/useForm.js +9 -0
- package/dist/useForm.js.map +1 -0
- package/dist/useFormState.d.ts +23 -0
- package/dist/useFormState.d.ts.map +1 -0
- package/dist/useFormState.js +11 -0
- package/dist/useFormState.js.map +1 -0
- package/dist/useGate.d.ts +15 -0
- package/dist/useGate.d.ts.map +1 -0
- package/dist/useGate.js +21 -0
- package/dist/useGate.js.map +1 -0
- package/dist/useLayout.d.ts +29 -0
- package/dist/useLayout.d.ts.map +1 -0
- package/dist/useLayout.js +59 -0
- package/dist/useLayout.js.map +1 -0
- package/dist/useMessage.d.ts +58 -0
- package/dist/useMessage.d.ts.map +1 -0
- package/dist/useMessage.js +62 -0
- package/dist/useMessage.js.map +1 -0
- package/dist/useWatch.d.ts +19 -0
- package/dist/useWatch.d.ts.map +1 -0
- package/dist/useWatch.js +17 -0
- package/dist/useWatch.js.map +1 -0
- package/dist/useWizard.d.ts +166 -0
- package/dist/useWizard.d.ts.map +1 -0
- package/dist/useWizard.js +554 -0
- package/dist/useWizard.js.map +1 -0
- package/package.json +62 -3
|
@@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CAAC;IAChC,IAAI,IAAI,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5D,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,OAAO,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACpG,CAAC","sourcesContent":["import {\n AxiomError,\n assertNever,\n canonicalizeRestricted,\n checkWrite,\n createCancellationPort,\n inspectDeps,\n rowKeyToken,\n sameWireValue,\n toAccessOverlay,\n toWireValue,\n} from '@azx-pbc/axiom-runtime';\nimport type {\n AccessOverlay,\n CandidateDelta,\n CompiledField,\n CompiledSchema,\n Engine,\n EngineCandidate,\n EngineFieldDeps,\n EngineFieldExplanation,\n EngineFieldState,\n EngineOperation,\n EngineOutcome,\n EvaluationEnv,\n FieldRef,\n FormBlocker,\n FormFieldState,\n FormState,\n IdFactory,\n LastPass,\n LayoutNodeView,\n OptionDomains,\n OptionSource,\n SessionRefusal,\n SubmissionProjectionOptions,\n ValueState,\n WireValue,\n} from '@azx-pbc/axiom-runtime';\nimport type { FieldError } from './field-error.js';\nimport type { FieldProps, PublishedFieldProps } from './field-props.js';\nimport { bindingKey, bindingRef } from './store/bindings.js';\nimport type { BindingWriters, DisplayOptions } from './store/derive.js';\nimport { sameFieldErrors } from './store/derive.js';\nimport { fieldFacts, fieldFactsOf, validateInitialValues } from './store/fields.js';\nimport type { FieldFacts } from './store/fields.js';\nimport { bindingErrors } from './store/errors.js';\nimport { buildFormSummary, sameFormSummary } from './store/form-channel.js';\nimport type { FormSummary } from './store/form-channel.js';\nimport { DEFAULT_POLICY, errorKey, incompleteRulesOf, sameIdSet } from './store/visibility.js';\nimport type { BindingVisibility } from './store/visibility.js';\nimport type { FormStoreConfig, FormStoreOverrides, SessionInputs } from './store/inputs.js';\nimport {\n evaluationInputOf,\n resolveSessionInputs,\n sameInputs,\n sameOverrides,\n} from './store/inputs.js';\nimport { gateViewOf, sameGateView } from './store/gates.js';\nimport type { GateView } from './store/gates.js';\nimport { ArrayBindings, ArrayWriters } from './store/array-bindings.js';\nimport type { FieldArrayControls, FieldArrayView } from './store/array-bindings.js';\nimport {\n fieldsByIdOf,\n findLayoutNode,\n findLayoutSection,\n layoutOf,\n layoutSliceOf,\n sameLayoutSlice,\n sameLayoutViews,\n} from './store/layout.js';\nimport type { LayoutSlice } from './store/layout.js';\nimport { optionPageKey, OptionPages } from './store/option-pages.js';\nimport type { OptionBasis, OptionControls, OptionPageState } from './store/option-pages.js';\nimport { ArraySubscriptions, FieldSubscriptions } from './store/publish.js';\nimport type { PublishTrace } from './store/publish.js';\nimport { editedBinding, isStructuralOperation, offersAlternatives } from './store/proposals.js';\nimport type {\n Proposal,\n ProposalRefusal,\n UserWriteOutcome,\n WriteProposal,\n} from './store/proposals.js';\nimport { FieldSnapshots, ValueSnapshots } from './store/snapshots.js';\nimport { heldValuesOf, SessionView } from './store/view.js';\nimport {\n declarationFor,\n FieldWriters,\n itemDeclarationFor,\n writeRefusalError,\n} from './store/writes.js';\nimport { openEngine } from './store/configure.js';\n\nexport type { FieldProps, PublishedFieldProps } from './field-props.js';\nexport type { FormSummary } from './store/form-channel.js';\nexport type { PublishTrace } from './store/publish.js';\nexport type { Proposal, ProposalRefusal, WriteProposal } from './store/proposals.js';\n\n/**\n * The state one render derived before anything is committed: the session it derived, the inputs\n * and display it is rendering with, the raw overrides whose ownership it carries, and the revision\n * that names them.\n *\n * A candidate is never written to by the provider. Committing it adopts the session it holds, and\n * a candidate a discarded render built is simply never committed. The engine it names advances\n * with writes made after the render, which is why `isCurrentCandidate` exists: once committed\n * state has moved on, a control reads the committed session instead.\n */\nexport interface FormCandidate {\n readonly engine: Engine;\n readonly inputs: SessionInputs;\n readonly overrides: FormStoreOverrides;\n readonly display: DisplayOptions;\n readonly revision: number;\n}\n\n/** The imperative surface a form handle exposes, one stable object per session. */\nexport interface FormHandle {\n /**\n * Submits the form: validates committed state and either exports or reports.\n *\n * A call already in flight is returned to the second caller rather than posted twice: two\n * `handleSubmit` calls before the first settles share one promise and one `onValid` run.\n * A valid submit exports the writable projection (exactly the values the principal may\n * write, which is the body the accept door expects) and hands it to `onValid`; an invalid\n * one touches only the bindings that block, and reports them to `onInvalid`. Either way\n * `isSubmitting` is cleared when the call settles, unless the provider has unmounted.\n *\n * The two failure lists divide the work: `errors` holds the binding-linked failures a\n * control paints (a rule failure, a missing required value, a cardinality refusal, an\n * invalid option), while `blockers` is the complete readiness answer and the only place a\n * gate item appears. Render `blockers` for completeness and `errors` for binding-linked UI.\n */\n handleSubmit(\n onValid: (values: Readonly<Record<string, unknown>>) => void | Promise<void>,\n onInvalid?: (errors: readonly FieldError[], blockers: readonly FormBlocker[]) => void,\n ): Promise<void>;\n /**\n * The submit function as an event handler.\n *\n * @deprecated Bind the promise `handleSubmit` returns instead: `void\n * form.handleSubmit(onValid, onInvalid)` in a handler, or `await` it. This alias keeps the\n * previous thunk shape working for existing consumers.\n */\n submitHandler(\n onValid: (values: Readonly<Record<string, unknown>>) => void | Promise<void>,\n onInvalid?: (errors: readonly FieldError[], blockers: readonly FormBlocker[]) => void,\n ): () => Promise<void>;\n /** Re-baselines the session from `values`, or from the record it opened with. */\n reset(values?: Readonly<Record<string, WireValue>>): void;\n /**\n * The `onHide: \"exclude\"` projection of committed state.\n *\n * A host that must *decide* whether to submit reads `getState().verdict` (or calls the\n * runtime's `submissionVerdict`) — one answer that folds the report, the gate and readiness.\n * The default projection is the record this server would store, `read_only` values included.\n * The body a client sends is `exportSubmission({ writableOnly: true })`: exactly the values\n * the principal may write, because a non-writable binding is the server's record rather than\n * the client's claim. `handleSubmit` hands its callback that writable projection.\n *\n * A bad wire value still reaches the runtime as a throw because the session validated it at\n * open, so there is no second failure surface here for a value the caller never supplied.\n */\n exportSubmission(options?: SubmissionProjectionOptions): Readonly<Record<string, unknown>>;\n /**\n * The committed record as this session holds it — React Hook Form's `getValues`.\n *\n * It is the host's own client state, copied, not a disclosure channel: the values are the ones\n * the host supplied or the user wrote, and access is consistency rather than confidentiality\n * (`[ACCESS-7.1.1]`). A draft is persisted from here, so it carries values the submission\n * projection deliberately excludes — a `hidden` field, a `write_only` value the session wrote,\n * a value in a `signature_ref`. Use `exportSubmission()` for the projection to send.\n */\n getValues(): Readonly<Record<string, WireValue>>;\n /** The engine's identity-stable per-binding snapshot, selected rather than rebuilt. */\n getField(fieldId: string, rowKey?: string | number): EngineFieldState;\n /** The form-level summary committed state currently states. */\n getState(): FormSummary;\n batch(operations: readonly EngineOperation[]): EngineOutcome;\n /**\n * Derives the state a change set would commit, and what applying it would move, committing\n * nothing. It is the confirmation door: read `delta` to show the effect, then hand the\n * proposal to `applyProposal` or drop it with `discardProposal`.\n */\n propose(operations: readonly EngineOperation[]): Proposal | SessionRefusal;\n /**\n * Commits the exact state a proposal derived.\n *\n * The apply is the keystroke's own: one evaluation, one report, one publish, and the user-write\n * provenance and dirty and touched marks a control's write records. The candidate is committed\n * as the host was shown it, so an assigned row keeps the key the preview minted. A session\n * input the candidate carries (`context`, `env`, `access`) is kept in step with the engine's\n * committed answer, so a later re-open replays the accepted input instead of the one it\n * replaced.\n *\n * A session holds one pending proposal. A staged proposal whose `sequence` is not the latest is\n * refused with `PROPOSAL_SUPERSEDED` and writes nothing, and so is a proposal whose\n * confirmation was declined; an engine refusal (a stale basis) is returned as it always was.\n */\n applyProposal(proposal: Proposal): EngineOutcome | ProposalRefusal;\n /**\n * Writes nothing and repaints.\n *\n * Declining a change set commits nothing to the engine, records no dirty or touched mark and\n * leaves the draft as it was. The store publishes, so a control that showed the declined write\n * in its own state paints its committed value again. Declining the pending proposal clears it\n * and makes it no longer committable; declining an older one leaves the pending proposal in\n * place.\n */\n discardProposal(proposal: Proposal): void;\n setValue(fieldId: string, value: WireValue, rowKey?: string | number): EngineOutcome;\n setNull(fieldId: string, rowKey?: string | number): EngineOutcome;\n removeValue(fieldId: string, rowKey?: string | number): EngineOutcome;\n setContext(root: string, value: WireValue): EngineOutcome;\n setEnv(env: EvaluationEnv): EngineOutcome;\n setAccess(overlay: AccessOverlay): void;\n explainField(fieldId: string, rowKey?: string | number): EngineFieldExplanation;\n inspectFieldDeps(fieldId: string): EngineFieldDeps;\n}\n\ninterface Session {\n readonly engine: Engine;\n readonly inputs: SessionInputs;\n readonly display: DisplayOptions;\n readonly candidate: FormCandidate;\n}\n\n/** What one churned list may ask a store to count: the live entries of each per-binding cache. */\nexport interface RetainedBindings {\n readonly snapshots: number;\n readonly values: number;\n readonly writers: number;\n readonly views: number;\n readonly rowRefs: number;\n /** Bindings recorded as touched, and as written, for the session's dirty/touched answer. */\n readonly touched: number;\n readonly changed: number;\n readonly written: number;\n}\n\n/** The non-throwing write callbacks one binding's control is handed. */\ninterface TryBindingWriters {\n readonly trySetValue: (value: WireValue) => EngineOutcome;\n readonly trySetNull: () => EngineOutcome;\n readonly tryRemoveValue: () => EngineOutcome;\n}\n\n/**\n * One attempted user write: the engine outcome, and the boundary parse diagnostic when one\n * refused it.\n *\n * The cause rides along so the throwing door raises the same error it always did; the\n * non-throwing door returns the outcome alone.\n */\ninterface AttemptedWrite {\n readonly outcome: EngineOutcome;\n readonly cause?: unknown;\n /** Set when the session staged the write for confirmation instead of committing it. */\n readonly staged?: true;\n}\n\ninterface SummaryCache {\n readonly form: FormState;\n readonly submitCount: number;\n readonly isSubmitting: boolean;\n /** Whether the last settled submission called `onValid` and it returned without throwing. */\n readonly submitSucceeded: boolean;\n readonly epoch: number;\n readonly pendingProposal: WriteProposal | undefined;\n readonly summary: FormSummary;\n}\n\n/** One binding's memoised visibility answer and the facts it was derived from. */\ninterface VisibilityEntry {\n readonly state: EngineFieldState;\n readonly incompleteRules: ReadonlySet<string>;\n readonly revealedErrors: ReadonlySet<string>;\n readonly visibility: BindingVisibility;\n}\n\n/**\n * The form session a provider owns: one compiled artifact, one engine in force, and the\n * React-side facts the engine does not keep.\n *\n * The engine owns values, access, row identity, the incremental pass, the derived field state\n * and the submission projection. This class is the session shell: it derives candidate views\n * without mutating committed state, keeps each binding's published props identity stable, holds\n * `touched`/`dirty`/`submitCount` — the facts a session has and a record does not — and\n * publishes only what changed. It owns no fact index, no derivation and no write rule of its\n * own (`[ENGINE-7.1.2]`, `[ENGINE-5.1.3]`).\n */\nexport class FormStore {\n readonly compiled: CompiledSchema;\n private readonly facts: ReadonlyMap<string, FieldFacts>;\n /** Every rule's declared reads, from the artifact's cached dependency inspection. */\n private readonly ruleReads: ReadonlyMap<string, readonly FieldRef[]>;\n private readonly initialValues: Readonly<Record<string, WireValue>>;\n private readonly idFactory: IdFactory | undefined;\n private readonly subscriptions = new FieldSubscriptions();\n private readonly formSubscriptions = new Set<() => void>();\n private readonly snapshots = new FieldSnapshots();\n private readonly watched = new ValueSnapshots();\n private readonly writers = new FieldWriters();\n private readonly arrays = new ArrayBindings();\n private readonly arraySubscriptions = new ArraySubscriptions();\n private readonly arrayWriters = new ArrayWriters();\n private readonly optionPages: OptionPages;\n private optionDomains: OptionDomains | undefined;\n private layoutCache:\n | { readonly form: FormState; readonly views: readonly LayoutNodeView[] }\n | undefined;\n /** The declaration index every slice one publish reads shares, keyed by committed form. */\n private fieldIndex:\n | { readonly form: FormState; readonly byId: ReadonlyMap<string, FormFieldState> }\n | undefined;\n /**\n * One slice per layout node and section id. The keys are artifact identifiers, so the map is\n * bounded by the artifact's chrome and never by a session: a provider mounted for a shift sees\n * the same node ids on its last render as on its first.\n */\n private readonly sliceMemo = new Map<string, LayoutSlice>();\n /** One view per declared gate id: bounded by the artifact, like `sliceMemo`. */\n private readonly gateMemo = new Map<string, GateView>();\n private readonly layoutSubscriptions = new Set<() => void>();\n /** Consumers whose option basis keyed on a session-wide member may have moved. */\n private readonly basisSubscriptions = new Set<() => void>();\n private publishedBasis:\n | { readonly recordDate: string | undefined; readonly accessVersion: number }\n | undefined;\n private readonly view = new SessionView();\n /** One structurally-shared visibility answer per binding, so unchanged facts keep its identity. */\n private readonly visibilityMemo = new Map<string, VisibilityEntry>();\n /** The non-throwing write callbacks of each binding, built beside `writers` so both stay stable. */\n private readonly attemptWriters = new Map<string, TryBindingWriters>();\n /**\n * The published props of each base snapshot, keyed by the snapshot they extend.\n *\n * Entries die with their base keys once the snapshot cache drops them, so neither a retire\n * nor a reset clears this: a candidate read and a committed read keep their own extension\n * without evicting one another.\n */\n private readonly publishedPropsMemo = new WeakMap<FieldProps, PublishedFieldProps>();\n /** The last paint list each binding stated, reused while the same failures hold. */\n private readonly announceMemo = new Map<string, readonly FieldError[]>();\n private session: Session;\n private previewed: FormCandidate | undefined;\n private hostOverrides: FormStoreOverrides;\n private imperativeOverlay: AccessOverlay | undefined;\n /** Inputs an event handler installed, which stay in force while the props name none. */\n private imperativeContext: Readonly<Record<string, unknown>> | undefined;\n private imperativeEnv: EvaluationEnv | undefined;\n private submitCount = 0;\n private isSubmitting = false;\n /** Whether the last settled submission reached `onValid` and it returned without throwing. */\n private submitSucceeded = false;\n private inFlight: Promise<void> | null = null;\n private mounted = true;\n private published: FormSummary | undefined;\n private summary: SummaryCache | undefined;\n private candidateSummary:\n | { readonly owner: FormCandidate; readonly cache: SummaryCache }\n | undefined;\n private trace: PublishTrace = { bindings: [], arrays: [], ruleEvaluations: {} };\n private reportedPass: LastPass | undefined;\n private publishListener: ((trace: PublishTrace) => void) | undefined;\n /**\n * The host's staged-write interceptor, when it installed one.\n *\n * It is present exactly when `FormProvider` was given `onWriteProposed`: a session with no\n * interceptor hands every write straight to the engine, so a form that stages nothing pays\n * nothing for the feature.\n */\n private writeInterceptor: ((proposal: WriteProposal) => void) | undefined;\n /**\n * The one staged write the host is confirming, and the order that says which is newest.\n *\n * A session stages at most one write: a newer qualifying write replaces the pending one, so a\n * host never holds two proposals it could apply in either order. `nextProposalSequence` keeps\n * counting after a proposal is cleared, so an older staged proposal is still refused once the\n * newer one has been applied.\n */\n private pendingProposal: WriteProposal | undefined;\n private nextProposalSequence = 0;\n /**\n * The candidates a host declined while they were the pending confirmation.\n *\n * Cleared pending state alone cannot answer \"was this write cancelled\": the engine still holds\n * the derived candidate, so a sequence that outlived its confirmation would otherwise look\n * committable. A declined candidate is never applied, and the weak set lets it go with the\n * proposal the host stopped holding.\n */\n private readonly declinedCandidates = new WeakSet<EngineCandidate>();\n /**\n * The high-level user writes behind a staged candidate.\n *\n * Replacing an assigned array becomes remove/append operations, but its direct control write\n * marks the container. The candidate key carries that fact through a reconstructed public\n * wrapper without letting wrapper metadata describe a different change set.\n */\n private readonly proposalUserWrites = new WeakMap<EngineCandidate, readonly FieldRef[]>();\n /**\n * The bindings the user has written in this session, by binding key.\n *\n * The engine reports one reference per written binding but not who wrote it, so a host claim\n * and a user's own write look alike there. This is the provenance: a host claim the user never\n * wrote is dropped with the prop that declared it, and one the user did write is replayed —\n * subtracting it would blank the control the user is typing in.\n */\n private readonly userWrites = new Set<string>();\n /** The addressable-row index, memoised by the committed form object `publish` saw. */\n private rowIndex:\n | { readonly form: FormState; readonly rows: ReadonlyMap<string, ReadonlySet<string>> }\n | undefined;\n /** The view identity a summary is keyed to; a write, blur or submit advances it. */\n private snapshotEpoch = 0;\n private nextRevision = 0;\n private formHandle: FormHandle | undefined;\n /**\n * The prefix every element id this session emits begins with.\n *\n * Settled once, when the session opens: `FormProvider` passes the host's `idPrefix` or the\n * `useId()` one it minted for this mount. It is not a display option a host flips mid-session —\n * re-keying every control's id under a rendered label helps no one — so it lives on the store\n * and every display the store derives carries it.\n */\n readonly idPrefix: string;\n\n constructor(config: FormStoreConfig, idPrefix: string) {\n this.idPrefix = idPrefix;\n this.compiled = config.compiled;\n this.facts = fieldFacts(config.compiled);\n this.ruleReads = ruleReadsOf(config.compiled);\n this.hostOverrides = config;\n this.optionPages = new OptionPages(\n config.optionSources ?? {},\n config.cancellation ?? createCancellationPort,\n config.defer,\n );\n // A loaded page is a derivation input: the field's eligibility is read from it, so a page\n // list that changed re-derives committed state before this publish tells anyone.\n this.optionPages.subscribe(() => {\n this.optionDomainChanged();\n });\n const inputs = this.effective(config);\n // Every value entering the store is read through the wire contract once, so a control\n // always holds a canonical, private copy of what the host supplied.\n this.initialValues = validateInitialValues(this.facts, config.initialValues);\n this.idFactory = config.idFactory;\n const engine = this.open(inputs, this.initialValues, inputs.sessionWrites, config.rowManifest);\n this.session = this.newSession(engine, inputs, this.defaultDisplay(), config);\n this.captureBaseline(engine);\n }\n\n /** The published per-binding props of committed state. */\n getFieldProps(fieldId: string, rowKey?: string | number): PublishedFieldProps {\n return this.propsOf(this.session, fieldId, rowKey);\n }\n\n /** The per-binding props as one candidate derived them, for the render reading it. */\n getCandidateFieldProps(\n candidate: FormCandidate,\n fieldId: string,\n rowKey?: string | number,\n ): PublishedFieldProps {\n return this.propsOf(this.sessionOf(candidate), fieldId, rowKey);\n }\n\n /** The engine's identity-stable value state of one binding, as committed. */\n getValueState(fieldId: string, rowKey?: string | number): ValueState {\n return this.valueStateOf(this.session, fieldId, rowKey);\n }\n\n /** The value state as one candidate derived it. */\n getCandidateValueState(\n candidate: FormCandidate,\n fieldId: string,\n rowKey?: string | number,\n ): ValueState {\n return this.valueStateOf(this.sessionOf(candidate), fieldId, rowKey);\n }\n\n /** The form-level summary of committed state. */\n getFormSummary(): FormSummary {\n return this.summaryOf(this.session);\n }\n\n /** The form-level summary as one candidate derived it. */\n getCandidateFormSummary(candidate: FormCandidate): FormSummary {\n return this.summaryOf(this.sessionOf(candidate));\n }\n\n /** Registers `listener` for one field's binding; the returned release is idempotent. */\n subscribe(fieldId: string, listener: () => void): () => void;\n /**\n * Registers `listener` for one binding — the field, or one row of it — refusing a reference\n * the artifact cannot bind rather than notifying a listener that can never read.\n */\n subscribe(fieldId: string, rowKey: string | number | undefined, listener: () => void): () => void;\n subscribe(\n fieldId: string,\n rowKey: string | number | undefined | (() => void),\n listener?: () => void,\n ): () => void {\n const ref =\n typeof rowKey === 'function' ? bindingRef(fieldId, undefined) : bindingRef(fieldId, rowKey);\n fieldFactsOf(this.facts, ref.fieldId, ref.rowKey, this.compiled.schemaId);\n const notify = typeof rowKey === 'function' ? rowKey : listener;\n if (notify === undefined) throw new Error('a subscription needs a listener');\n return this.subscriptions.subscribe(ref, notify);\n }\n\n /** Registers `listener` on the form channel; the returned release is idempotent. */\n subscribeForm(listener: () => void): () => void {\n this.formSubscriptions.add(listener);\n return (): void => {\n this.formSubscriptions.delete(listener);\n };\n }\n\n /** How many listeners one binding currently has, so a leak can be counted rather than assumed. */\n subscriptionCount(fieldId: string, rowKey?: string | number): number {\n return this.subscriptions.count(bindingRef(fieldId, rowKey));\n }\n\n /**\n * How many live entries each per-binding cache retains.\n *\n * A test seam, like `subscriptionCount`, and not part of the package entry: a list that\n * appends and removes rows has to be able to count what a removed row left behind instead of\n * trusting that the caches let go of it.\n */\n retainedBindings(): RetainedBindings {\n return {\n snapshots: this.snapshots.retained(),\n values: this.watched.retained(),\n writers: this.writers.retained(),\n views: this.view.retained(),\n rowRefs: this.arrays.retainedRows(),\n touched: this.view.touchedCount(),\n changed: this.view.changedCount(),\n written: this.userWrites.size,\n };\n }\n\n /**\n * Whether the artifact declares a field with this id.\n *\n * A read of the declaration, not of the record: an unmounted row and a withheld value are\n * still declared. The untyped `useField` door reads it for its development guard, so a\n * declared id where a row key belongs names the typed door instead of failing later.\n */\n declaresField(fieldId: string): boolean {\n return this.facts.has(fieldId);\n }\n\n /**\n * Whether the artifact holds rows under this field: an array container, or a member whose\n * value exists once per row.\n */\n declaresRows(fieldId: string): boolean {\n const facts = this.facts.get(fieldId);\n if (facts === undefined) return false;\n return facts.field.primitive === 'array' || facts.arrayContainerId !== undefined;\n }\n\n /**\n * Derives the session state a render with these inputs would read, without assigning any\n * committed state. The same inputs, raw overrides and display return the same candidate, so an\n * unchanged render neither re-evaluates nor replaces a snapshot.\n */\n preview(overrides: FormStoreOverrides, display?: DisplayOptions): FormCandidate {\n const inputs = this.effective(overrides);\n const shown = display ?? this.session.display;\n if (this.previewed !== undefined && this.sameView(this.previewed, inputs, shown, overrides)) {\n return this.previewed;\n }\n if (\n sameInputs(inputs, this.session.inputs) &&\n sameDisplay(shown, this.session.display) &&\n sameOverrides(this.session.candidate.overrides, overrides)\n ) {\n this.previewed = this.session.candidate;\n return this.session.candidate;\n }\n // A display-only change reuses the session the store already holds: how a failure is\n // revealed is not a record change, so re-opening the engine for it would evaluate the whole\n // record again and replay every assigned row id for nothing.\n const engine = sameInputs(inputs, this.session.inputs)\n ? this.session.engine\n : this.open(\n inputs,\n this.session.engine.values(),\n this.writesFor(inputs),\n this.session.engine.rowManifest(),\n );\n const candidate = this.newCandidate(engine, inputs, shown, overrides);\n this.previewed = candidate;\n return candidate;\n }\n\n /**\n * Adopts a candidate a render derived, and nothing else. A candidate that is not the latest\n * preview belongs to a render React superseded or discarded — a Suspense abort, a transition\n * it threw away — so it commits nothing.\n *\n * It answers whether it adopted a *different* view. A commit that changed nothing needs no\n * publish, which is what keeps an unrelated re-render of the provider from re-deriving every\n * subscribed binding.\n */\n commit(candidate: FormCandidate): boolean {\n if (candidate !== this.previewed) return false;\n if (candidate.revision <= this.session.candidate.revision) return false;\n // Only a committed render may change which props an imperative setter must yield to.\n this.hostOverrides = candidate.overrides;\n // A commit that re-opened the engine replaced the state a staged write was derived from, so\n // the confirmation it belonged to no longer names the write this session would take. A\n // display-only commit reuses the engine and leaves the confirmation answerable.\n if (candidate.engine !== this.session.engine) this.retirePending();\n this.snapshots.commit(candidate);\n this.watched.commit(candidate);\n this.arrays.commit(candidate);\n if (this.candidateSummary?.owner === candidate) {\n const cache = this.candidateSummary.cache;\n // A summary derived before a write staged a proposal states no pending proposal; adopting\n // it would hide the confirmation the host must answer. Leave the committed summary unset so\n // the next read rebuilds it from the proposal the session now holds.\n this.summary = cache.pendingProposal === this.pendingProposal ? cache : undefined;\n this.candidateSummary = undefined;\n }\n const changed =\n !sameInputs(candidate.inputs, this.session.inputs) ||\n !sameDisplay(candidate.display, this.session.display);\n this.session = {\n engine: candidate.engine,\n inputs: candidate.inputs,\n display: candidate.display,\n candidate,\n };\n if (changed) this.markChanged();\n return changed;\n }\n\n /**\n * Applies the evaluation inputs the host is rendering with, as the imperative composition of\n * a preview and a commit, for a caller outside a render. A provider renders through `preview`\n * and commits in the insertion phase instead, so a render it abandons leaves the session\n * untouched.\n */\n configure(overrides: FormStoreOverrides): void {\n this.commit(this.preview(overrides));\n }\n\n /**\n * Tells every subscribed binding whose props object changed, then the form channel if the\n * summary changed. The trace names what this publish delivered and copies the pass counts\n * from the engine's own last-pass trace.\n */\n publish(): void {\n // Sticky reveals are session history, so they are reconciled at the first moment committed\n // state is read as a whole: before any subscriber derives. A binding whose failure is still\n // true keeps its painted key; a binding whose failure was corrected drops it here, which is\n // what lets a later, different failure be judged by the policy afresh.\n this.reconcileReveal();\n // The row index is built from committed state only if a row-keyed binding asks for it, and\n // once per committed form: a form with thirty thousand rows pays one pass over its fields\n // rather than a scan of them per notified binding, and a publish nobody subscribed to a row\n // before pays nothing at all.\n let reachable: ReadonlyMap<string, ReadonlySet<string>> | undefined;\n const reachableRows = (): ReadonlyMap<string, ReadonlySet<string>> =>\n (reachable ??= this.addressableRows());\n const bindings = this.subscriptions.publish((key, ref) => {\n // A removed row's control is still mounted for the commit that removed it, and committed\n // state no longer addresses it. Its registration stays: `useField`'s subscribe callback is\n // stable for one binding, so React never re-registers a mounted control and evicting here\n // would leave it unable to learn that its row came back. A dormant registration costs\n // nothing — it is handed no derivation until it is addressable again, and then this\n // publish notifies it once. The caches it filled are dropped now, so a removed row's props\n // and the value they hold are not retained until the session ends.\n if (!this.addresses(ref, reachableRows)) {\n this.retireBinding(key, ref);\n return false;\n }\n // The previous object has to be read before the derivation replaces it: the cache holds\n // one entry per binding, and a derivation stores the new one. The comparison is on the\n // snapshot layer, which keeps its identity while the binding's state holds; the published\n // extension is a different object by construction and would notify every subscriber.\n const previous = this.snapshots.current(key);\n const facts = fieldFactsOf(this.facts, ref.fieldId, ref.rowKey, this.compiled.schemaId);\n const state = this.engineStateOf(this.session, ref.fieldId, ref.rowKey);\n return this.snapshotOf(this.session, key, facts, state, ref.fieldId, ref.rowKey) !== previous;\n });\n const arrays = this.arraySubscriptions.publish((fieldId) => {\n // A committed read returns the view it already holds while the structure holds, so a\n // changed identity is exactly what a list subscriber must be told about.\n const previous = this.arrays.current(fieldId);\n return (\n this.arrays.read(this.session.candidate, true, this.session.engine, fieldId) !== previous\n );\n });\n this.publishForm();\n for (const listener of [...this.layoutSubscriptions]) listener();\n this.publishOptionBasis();\n // The counts belong to the pass this publish delivered. A publish that ran no pass — a\n // blur, a summary-only change, a reconfigure — reports none rather than repeating the\n // previous write's numbers as though it had evaluated them.\n const pass = this.session.engine.lastPass();\n const fresh = pass !== this.reportedPass;\n this.reportedPass = pass;\n this.trace = { bindings, arrays, ruleEvaluations: fresh ? pass.ruleEvaluations : {} };\n this.publishListener?.(this.trace);\n }\n\n /**\n * Observes every committed-state publish, or clears the observer with `undefined`.\n *\n * A summary-only notification is not a publish: `publishForm` states the changed summary on\n * the form channel alone, so a staged-write confirmation is announced there rather than here.\n */\n observePublishes(listener: ((trace: PublishTrace) => void) | undefined): void {\n this.publishListener = listener;\n }\n\n /**\n * Installs the staged-write interceptor, or removes it with `undefined`.\n *\n * While one is installed every user write is previewed before it commits: a change set that\n * adds a blocker offering alternatives is staged and reported instead of committed, and the\n * host answers it with `applyProposal` or `discardProposal`. With none installed a write is\n * handed to the engine exactly as before.\n */\n interceptWrites(listener: ((proposal: WriteProposal) => void) | undefined): void {\n this.writeInterceptor = listener;\n }\n\n /** The engine's counted facts of the last committed pass. */\n lastPass(): LastPass {\n return this.session.engine.lastPass();\n }\n\n /** The access version committed state was derived under. */\n accessVersion(): number {\n return this.session.engine.lastPass().accessVersion;\n }\n\n /**\n * The `onHide: \"exclude\"` submission projection of committed state. It accepts no\n * caller-supplied report, and refuses a signature that would travel without its coverage.\n * `writableOnly` is the body a client sends; the default is the record this process stores.\n */\n exportSubmission(options?: SubmissionProjectionOptions): Readonly<Record<string, unknown>> {\n return this.session.engine.exportSubmission(options);\n }\n\n /**\n * Re-baselines the session from `values`, or from the record it opened with.\n *\n * The new record crosses the wire contract, the engine derives its row identity afresh, and\n * the touched set, the dirty baselines, the submit count and every session write are cleared\n * — so a `write_only` value typed before a reset is no longer readable in the new session.\n */\n reset(values?: Readonly<Record<string, WireValue>>): void {\n const next = validateInitialValues(this.facts, values ?? this.initialValues);\n const inputs: SessionInputs = { ...this.session.inputs, sessionWrites: [] };\n const engine = this.open(inputs, next, [], undefined);\n this.session = this.newSession(engine, inputs, this.session.display, this.hostOverrides);\n this.captureBaseline(engine);\n // A reset is the one retirement path for a session write: the facts that said the user\n // typed a `write_only` value belong to the session that opened before this one.\n this.userWrites.clear();\n this.clearCaches();\n this.submitCount = 0;\n this.isSubmitting = false;\n this.submitSucceeded = false;\n this.retirePending();\n this.previewed = undefined;\n this.snapshotChanged();\n }\n\n /**\n * Drops every cache derived from the session that just ended.\n *\n * `capture()` clears the session facts (baselines, touched, changed, refusals, revealed and\n * per-binding views), but the per-binding props, watched values, writer closures and derived\n * chrome are keyed by binding and would otherwise outlive the reset. A `write_only` value an\n * unread binding still held in `FieldProps.value` is exactly the value `reset()` promises is\n * no longer readable. A binding that is still mounted re-derives on the publish that follows.\n */\n private clearCaches(): void {\n this.snapshots.clear();\n this.watched.clear();\n this.writers.clear();\n this.attemptWriters.clear();\n this.announceMemo.clear();\n this.arrays.clear();\n this.visibilityMemo.clear();\n this.sliceMemo.clear();\n this.gateMemo.clear();\n this.layoutCache = undefined;\n this.fieldIndex = undefined;\n }\n\n /** The stable write callback for one binding; the same function on every call. */\n setValueFor(fieldId: string, rowKey?: string | number): (value: WireValue) => void {\n return this.writersOf(fieldId, rowKey).setValue;\n }\n\n /** The stable blur callback for one binding; the same function on every call. */\n blurFor(fieldId: string, rowKey?: string | number): () => void {\n return this.writersOf(fieldId, rowKey).onBlur;\n }\n\n /** One array binding's committed structure: its rows in order and its mutation permissions. */\n getArrayView(fieldId: string): FieldArrayView {\n return this.arrayViewOf(this.session, fieldId);\n }\n\n /** The array structure as one candidate derived it, for the render reading it. */\n getCandidateArrayView(candidate: FormCandidate, fieldId: string): FieldArrayView {\n return this.arrayViewOf(this.sessionOf(candidate), fieldId);\n }\n\n /** Registers `listener` for one array's structure; the returned release is idempotent. */\n subscribeArray(fieldId: string, listener: () => void): () => void {\n fieldFactsOf(this.facts, fieldId, undefined, this.compiled.schemaId);\n return this.arraySubscriptions.subscribe(fieldId, listener);\n }\n\n /** The five structural operations of one array, with stable identities. */\n arrayControls(fieldId: string): FieldArrayControls {\n return this.arrayWriters.for(fieldId, () => {\n const facts = fieldFactsOf(this.facts, fieldId, undefined, this.compiled.schemaId);\n const declaration = itemDeclarationFor(facts);\n const parse = (value: WireValue): WireValue =>\n toWireValue(value, `$.values.${fieldId}`, declaration);\n return {\n append: (value) =>\n this.structural([{ kind: 'append', fieldId, value: parse(value), origin: 'user' }]),\n insert: (index, value) =>\n this.structural([\n { kind: 'insert', fieldId, index, value: parse(value), origin: 'user' },\n ]),\n remove: (rowKey) =>\n this.structural([{ kind: 'removeRow', fieldId, rowKey, origin: 'user' }]),\n move: (fromIndex, toIndex) => this.moveArray(fieldId, fromIndex, toIndex),\n moveRow: (rowKey, toIndex) =>\n this.structural([{ kind: 'move', fieldId, rowKey, toIndex, origin: 'user' }]),\n replace: (values) => this.replaceArray(fieldId, values),\n };\n });\n }\n\n /**\n * The basis one option page list is keyed by, `[MODEL-3.1.8]`.\n *\n * The signature is built from the binding, the source, the declared dependencies' current\n * values, the session record date and the access version, so a change to any of them is a\n * different list. A dependency this device may not read makes the basis unreadable and never\n * reaches the loader. The reader's search text is not a member: it narrows the pages of one\n * domain, and the page machine publishes it and owns the request that answers it.\n */\n optionBasis(fieldId: string, rowKey?: string | number): OptionBasis {\n const facts = fieldFactsOf(this.facts, fieldId, rowKey, this.compiled.schemaId);\n const source = hostOptionSource(facts.field.optionSource, fieldId);\n const dependsOn: Record<string, WireValue | undefined> = {};\n let readable = true;\n for (const ref of this.optionDependencyRefs(fieldId, rowKey)) {\n const value = this.session.engine.getField(ref.fieldId, ref.rowKey).value;\n if (value.kind === 'withheld') {\n readable = false;\n dependsOn[ref.fieldId] = undefined;\n continue;\n }\n dependsOn[ref.fieldId] = value.kind === 'value' ? value.value : undefined;\n }\n const recordDate = this.session.inputs.env.recordDate;\n const accessVersion = this.session.engine.lastPass().accessVersion;\n const dependencies = Object.keys(dependsOn)\n .map((depId) => `${depId}=${valueSignature(dependsOn[depId])}`)\n .join('\\u0001');\n const signature = [\n this.compiled.schemaId,\n optionPageKey(fieldId, rowKey),\n source.sourceId,\n recordDate ?? '',\n String(accessVersion),\n readable ? '1' : '0',\n dependencies,\n ].join('\\u0000');\n return {\n fieldId,\n ...(rowKey === undefined ? {} : { rowKey }),\n sourceId: source.sourceId,\n dependsOn,\n readable,\n signature,\n };\n }\n\n /**\n * The bindings whose changes re-key one option list.\n *\n * A source declared on a row reads a top-level dependency as it stands and a sibling member\n * in that row, so the list re-renders only for the values its own page keys on.\n */\n optionDependencyRefs(fieldId: string, rowKey?: string | number): readonly FieldRef[] {\n const facts = fieldFactsOf(this.facts, fieldId, rowKey, this.compiled.schemaId);\n const source = hostOptionSource(facts.field.optionSource, fieldId);\n return (source.dependsOn ?? []).map((depId) => {\n const dependency = this.facts.get(depId);\n return dependency?.arrayContainerId !== undefined && rowKey !== undefined\n ? { fieldId: depId, rowKey }\n : { fieldId: depId };\n });\n }\n\n /** One binding's current page list. */\n optionState(fieldId: string, rowKey?: string | number): OptionPageState {\n return this.optionPages.stateOf(optionPageKey(fieldId, rowKey));\n }\n\n /** Registers a listener for every page-list change; the returned release is idempotent. */\n subscribeOptionPages(listener: () => void): () => void {\n return this.optionPages.subscribe(listener);\n }\n\n /**\n * Starts a load when the committed basis or the page size moved; a no-op while they hold.\n *\n * The effect's render signature is only its wake-up. Reading the basis at effect time avoids\n * discarding the last committed change when no further render follows it.\n */\n ensureOptions(fieldId: string, rowKey: string | number | undefined, pageSize: number): void {\n this.optionPages.ensure(\n optionPageKey(fieldId, rowKey),\n this.optionBasis(fieldId, rowKey),\n pageSize,\n );\n }\n\n /** The stable load-more and reload callbacks of one page list. */\n optionControls(fieldId: string, rowKey?: string | number): OptionControls {\n return this.optionPages.controls(optionPageKey(fieldId, rowKey));\n }\n\n /**\n * Publishes the reader's search text for one host-loaded binding.\n *\n * The text reaches the page machine at the edit, so the pages that answered the previous\n * query are dropped and its request aborted before the loader is asked for the new one. A\n * binding the reader has not mounted has no pages, so it has nothing to narrow.\n */\n searchOptions(fieldId: string, rowKey: string | number | undefined, text: string): void {\n this.optionPages.search(optionPageKey(fieldId, rowKey), text);\n }\n\n /** Registers one mounted consumer of a page list; the release cancels when it was the last. */\n retainOptions(fieldId: string, rowKey?: string | number): () => void {\n return this.optionPages.retain(optionPageKey(fieldId, rowKey), fieldId, rowKey);\n }\n\n /** The layout chrome committed state renders, or the candidate's when it is current. */\n layoutViews(candidate: FormCandidate | undefined): readonly LayoutNodeView[] {\n const session = this.sessionFor(candidate);\n const form = session.engine.getFormState();\n if (this.layoutCache?.form === form) return this.layoutCache.views;\n const input = evaluationInputOf(\n session.inputs,\n session.engine.values(),\n session.engine.sessionWrites(),\n );\n const views = layoutOf(this.compiled, input, session.inputs.env);\n const previous = this.layoutCache?.views;\n // An edit that moves no chrome keeps the array a `useLayout` consumer already rendered.\n const chosen = previous !== undefined && sameLayoutViews(previous, views) ? previous : views;\n this.layoutCache = { form, views: chosen };\n return chosen;\n }\n\n /** One layout node's slice, by the node id the artifact states. */\n layoutNode(candidate: FormCandidate | undefined, nodeId: string): LayoutSlice {\n const node = findLayoutNode(this.layoutViews(candidate), nodeId);\n if (node === undefined) {\n throw new Error(\n `@azx-pbc/axiom-react: layout node ${JSON.stringify(nodeId)} is not declared by schema ${this.compiled.schemaId}`,\n );\n }\n return this.layoutSliceOf(candidate, `node\\u0000${nodeId}`, node);\n }\n\n /** One layout section's slice, by the anchor its `sectionId` states. */\n layoutSection(candidate: FormCandidate | undefined, sectionId: string): LayoutSlice {\n const node = findLayoutSection(this.layoutViews(candidate), sectionId);\n if (node === undefined) {\n throw new Error(\n `@azx-pbc/axiom-react: layout section ${JSON.stringify(sectionId)} is not declared by schema ${this.compiled.schemaId}`,\n );\n }\n return this.layoutSliceOf(candidate, `section\\u0000${sectionId}`, node);\n }\n\n /** One gate's state: the named one, or the artifact's primary gate when none is named. */\n gateView(candidate: FormCandidate | undefined, gateId: string | undefined): GateView | undefined {\n const named = gateId ?? this.compiled.primaryGateId;\n if (named === undefined) return undefined;\n const form = this.sessionFor(candidate).engine.getFormState();\n const next = gateViewOf(this.compiled, form, gateId);\n if (next === undefined) return undefined;\n const previous = this.gateMemo.get(named);\n if (previous !== undefined && sameGateView(previous, next)) return previous;\n this.gateMemo.set(named, next);\n return next;\n }\n\n /** Registers a listener for every publish that may move chrome; the release is idempotent. */\n subscribeLayout(listener: () => void): () => void {\n this.layoutSubscriptions.add(listener);\n return (): void => {\n this.layoutSubscriptions.delete(listener);\n };\n }\n\n /**\n * Registers a listener for a move in the session-wide members of an option basis — the record\n * date and the access version — so a mounted picker re-reads the basis it keys its pages by.\n * A declared dependency's value is a binding of its own; a consumer subscribes to that.\n */\n subscribeOptionBasis(listener: () => void): () => void {\n this.basisSubscriptions.add(listener);\n return (): void => {\n this.basisSubscriptions.delete(listener);\n };\n }\n\n private arrayViewOf(session: Session, fieldId: string): FieldArrayView {\n const facts = fieldFactsOf(this.facts, fieldId, undefined, this.compiled.schemaId);\n if (facts.field.primitive !== 'array') {\n throw new AxiomError(\n 'ENGINE_ERROR',\n `${JSON.stringify(fieldId)} holds no rows, so it has no array binding`,\n fieldId,\n );\n }\n return this.arrays.read(session.candidate, session === this.session, session.engine, fieldId);\n }\n\n /**\n * Applies one structural write, staging it when the host asked to confirm such a write.\n *\n * A staged structural write committed nothing, so the rows a refusal was about have not moved.\n */\n private structural(operations: readonly EngineOperation[]): void {\n const written = this.writeThrough(operations);\n if (written.outcome.outcome === 'refused') throw writeRefusalError(written.outcome);\n if (written.staged) return;\n this.structuralApplied();\n }\n\n /** Resolves a positional move, then previews the identity-addressed operation like every write. */\n private moveArray(fieldId: string, fromIndex: number, toIndex: number): void {\n const rowKey = this.session.engine.getField(fieldId).addressableRows?.[fromIndex];\n if (rowKey === undefined) {\n // Keep the engine's identity and index refusals exact for a position it cannot resolve.\n this.structuralRun((engine) => engine.move(fieldId, fromIndex, toIndex, 'user'));\n return;\n }\n this.structural([{ kind: 'move', fieldId, rowKey, toIndex, origin: 'user' }]);\n }\n\n /** Issues one structural write the engine expresses as a call rather than as an operation. */\n private structuralRun(run: (engine: Engine) => EngineOutcome): void {\n const outcome = run(this.session.engine);\n if (outcome.outcome === 'refused') throw writeRefusalError(outcome);\n this.structuralApplied();\n }\n\n private structuralApplied(): void {\n // The rows a refusal was about may have moved or gone, so every refusal is stale now.\n this.view.clearRefusals();\n this.snapshotChanged();\n }\n\n /**\n * Replaces every row of one array through the container write the engine already owns.\n *\n * The container is where an array's whole value lives, so this is the one path that works for\n * a natural-key array and an `assigned` one alike: the engine re-derives row identity from the\n * new values (natural) or mints fresh ids through the host's factory (`assigned`). A row whose\n * natural key survives the replace keeps its `RowRef`, and with it the failure the item rule\n * decided about that key; a row the new list dropped retires, and a row it added starts fresh.\n */\n private replaceArray(fieldId: string, values: readonly WireValue[]): void {\n const attempted = this.write({ fieldId }, 'value', [...values]);\n // A staged write replaced nothing yet, so the rows a refusal was about have not moved.\n if (attempted.staged === true) return;\n // A replaced list moved or removed the rows a refusal was about.\n this.view.clearRefusals();\n this.snapshotChanged();\n }\n\n /** One node's slice, reusing the previous object while every fact it states holds. */\n private layoutSliceOf(\n candidate: FormCandidate | undefined,\n key: string,\n node: LayoutNodeView,\n ): LayoutSlice {\n const session = this.sessionFor(candidate);\n const form = session.engine.getFormState();\n const next = layoutSliceOf(\n node,\n this.compiled,\n session.engine,\n form,\n this.facts,\n this.fieldsById(form),\n );\n const previous = this.sliceMemo.get(key);\n if (previous !== undefined && sameLayoutSlice(previous, next)) return previous;\n this.sliceMemo.set(key, next);\n return next;\n }\n\n /**\n * The declaration list indexed by field, shared by every slice one publish reads.\n *\n * Each slice needs the `FormState` entry for each field it places; indexing once per form\n * keeps a host that reads many slices from paying one pass per slice.\n */\n private fieldsById(form: FormState): ReadonlyMap<string, FormFieldState> {\n const cached = this.fieldIndex;\n if (cached !== undefined && cached.form === form) return cached.byId;\n const byId = fieldsByIdOf(form);\n this.fieldIndex = { form, byId };\n return byId;\n }\n\n /** The session a read answers from: the candidate while it is current, else committed state. */\n private sessionFor(candidate: FormCandidate | undefined): Session {\n return candidate === undefined || !this.isCurrentCandidate(candidate)\n ? this.session\n : this.sessionOf(candidate);\n }\n\n /**\n * A loaded page changed: re-derive committed state with the new domain and publish it.\n *\n * Eligibility is the field's derived `invalidValue`, so the derivation is the only place\n * that answers it — the hook never recomputes it and the engine stores no option state.\n */\n private optionDomainChanged(): void {\n const next = this.optionPages.domains();\n if (next === this.optionDomains) return;\n this.optionDomains = next;\n // A page list released during unmount changes the domain too; re-deriving a session nobody\n // renders would only re-open the engine on the way out.\n if (!this.mounted) return;\n // The loaded domain is a derivation input, like the record and the access answer: a page\n // that arrived changes what eligibility can answer, and the next write must be judged by the\n // domain the user can see. One pass per user-driven page is the price of that; skipping it\n // left a value from a freshly loaded page reported `invalid-value`.\n this.configure(this.hostOverrides);\n this.publish();\n }\n\n /**\n * Tells the option consumers when the record date or the access version moved.\n *\n * Those two members appear in every basis and no field binding carries them, so nothing else\n * would wake a picker that keys on them. The comparison is against what the last publish\n * delivered: a keystroke re-derives the record but moves neither, so it notifies nobody.\n */\n private publishOptionBasis(): void {\n const next = {\n recordDate: this.session.inputs.env.recordDate,\n accessVersion: this.session.engine.lastPass().accessVersion,\n };\n const previous = this.publishedBasis;\n this.publishedBasis = next;\n if (\n previous !== undefined &&\n previous.recordDate === next.recordDate &&\n previous.accessVersion === next.accessVersion\n ) {\n return;\n }\n for (const listener of [...this.basisSubscriptions]) listener();\n }\n\n /**\n * The imperative handle: one identity-stable object that never subscribes, so a host can\n * hold it across renders and call it from an event handler.\n */\n handle(): FormHandle {\n if (this.formHandle !== undefined) return this.formHandle;\n // Every member is an arrow inside this method, so `this` is already the instance: an alias\n // (`const store = this`) would say the same thing while reading as if scope were lost.\n const handle: FormHandle = {\n handleSubmit: (onValid, onInvalid) => this.submit(onValid, onInvalid),\n submitHandler: (onValid, onInvalid) => () => this.submit(onValid, onInvalid),\n reset: (values) => this.reset(values),\n exportSubmission: (options) => this.exportSubmission(options),\n getValues: () => this.session.engine.values(),\n getField: (fieldId, rowKey) => this.session.engine.getField(fieldId, rowKey),\n getState: () => this.getFormSummary(),\n batch: (operations) => this.apply(operations),\n setValue: (fieldId, value, rowKey) => {\n const ref = bindingRef(fieldId, rowKey);\n return this.apply([{ kind: 'value', ref, value, origin: 'user' }]);\n },\n setNull: (fieldId, rowKey) => {\n const ref = bindingRef(fieldId, rowKey);\n return this.apply([{ kind: 'null', ref, origin: 'user' }]);\n },\n removeValue: (fieldId, rowKey) => {\n const ref = bindingRef(fieldId, rowKey);\n return this.apply([{ kind: 'remove', ref, origin: 'user' }]);\n },\n propose: (operations) => this.propose(operations),\n applyProposal: (proposal) => this.applyProposal(proposal),\n discardProposal: (proposal) => {\n this.discardProposal(proposal);\n },\n setContext: (root, value) => this.applyContext(root, value),\n setEnv: (env) => this.applyEnv(env),\n setAccess: (overlay) => this.applyAccess(overlay),\n explainField: (fieldId, rowKey) => this.session.engine.explainField(fieldId, rowKey),\n inspectFieldDeps: (fieldId) => this.session.engine.inspectFieldDeps(fieldId),\n };\n this.formHandle = handle;\n return handle;\n }\n\n /** Whether a candidate is still the view the session is rendering from. */\n isCurrentCandidate(candidate: FormCandidate): boolean {\n return candidate === this.session.candidate || candidate === this.previewed;\n }\n\n /** Marks the store as mounted, so a settled submission may still publish. */\n mount(): void {\n this.mounted = true;\n this.optionPages.mount();\n }\n\n /**\n * Marks the store as unmounted: a settled submission publishes nothing, and every option\n * request is cancelled so neither a resolve nor a reject writes afterwards.\n */\n unmount(): void {\n this.mounted = false;\n // A session that is gone has no confirmation left to answer, and a stored proposal would\n // keep a candidate and its report alive for the lifetime of the object. Mark the retired\n // candidate declined so a host still holding it from `onWriteProposed` cannot commit it\n // after teardown.\n if (this.pendingProposal !== undefined) {\n this.declinedCandidates.add(this.pendingProposal.candidate);\n }\n this.retirePending();\n this.optionPages.unmount();\n }\n\n private applyContext(root: string, value: WireValue): EngineOutcome {\n const outcome = this.session.engine.setContext(root, value);\n if (outcome.outcome === 'committed') {\n const name = root.replace(/^context\\./, '');\n const declaration = this.compiled.context?.roots.find(\n (entry) => entry.path.replace(/^context\\./, '') === name,\n );\n if (declaration === undefined) {\n throw new AxiomError('ENGINE_ERROR', 'a committed context root has no declaration', name);\n }\n // The engine owns its committed copy; the input carried into a later re-open needs its own\n // canonical copy too, or a caller mutating the original would change a future pass.\n const stored = toWireValue(value, `$.context.${name}`, {\n primitive: declaration.primitive,\n ...(declaration.items === undefined ? {} : { items: declaration.items }),\n });\n const context = { ...this.session.inputs.context, [name]: stored };\n this.imperativeContext = context;\n this.session = { ...this.session, inputs: { ...this.session.inputs, context } };\n // A committed session input moved the basis a staged write was derived from.\n this.retirePending();\n this.snapshotChanged();\n }\n return outcome;\n }\n\n private applyEnv(env: EvaluationEnv): EngineOutcome {\n const outcome = this.session.engine.setEnv(env);\n if (outcome.outcome === 'committed') {\n const installed: EvaluationEnv = {\n ...env,\n ...(env.capabilities === undefined ? {} : { capabilities: [...env.capabilities] }),\n };\n this.imperativeEnv = installed;\n this.session = { ...this.session, inputs: { ...this.session.inputs, env: installed } };\n // A committed session input moved the basis a staged write was derived from.\n this.retirePending();\n this.snapshotChanged();\n }\n return outcome;\n }\n\n /**\n * Installs the overlay as the session's access source.\n *\n * A provider that supplies `overlay` or `access` is the access authority, so the imperative\n * call yields to it; with no access prop the overlay sticks across renders, because it is the\n * session's own input from now on.\n */\n private applyAccess(overlay: AccessOverlay): void {\n const previous = this.imperativeOverlay;\n // The session owns the overlay it will replay on a later render, not the caller's mutable\n // object. Parsing here also refuses an invalid imperative input even while a prop is in force.\n this.imperativeOverlay = toAccessOverlay(overlay);\n if (this.hostOverrides.overlay !== undefined || this.hostOverrides.access !== undefined) {\n return;\n }\n let changed: boolean;\n try {\n changed = this.commit(this.preview(this.hostOverrides));\n } catch (error) {\n // A refused overlay was never the session's input; do not let it poison the next render.\n this.imperativeOverlay = previous;\n throw error;\n }\n if (changed) this.publish();\n }\n\n /**\n * Applies one user write outside a render and publishes what it changed.\n *\n * A control and the handle reach it with the same engine operations, so the two entry points\n * cannot disagree about provenance, the dirty and touched marks, or whether the session\n * staged the write for confirmation instead of committing it.\n */\n private apply(operations: readonly EngineOperation[]): EngineOutcome {\n const userWrote = operations.flatMap(userWriteRefs);\n const before = this.valuesBefore(userWrote);\n const written = this.writeThrough(operations);\n // A staged write committed nothing: the provenance and the marks belong to the host's\n // acceptance, so the attempt that asked for one records none of them.\n if (written.staged || written.outcome.outcome === 'refused') return written.outcome;\n this.syncCommittedInputs(operations);\n this.recordUserWrites(userWrote, before);\n this.snapshotChanged();\n return written.outcome;\n }\n\n /**\n * Derives the state a change set would commit, and what applying it would move.\n *\n * Nothing is committed, no basis moves and no listener is notified: the answer is the engine's\n * own proposal, so a host can show the effect before deciding.\n */\n propose(operations: readonly EngineOperation[]): Proposal | SessionRefusal {\n const proposed = this.session.engine.propose(operations);\n if (proposed.outcome === 'refused') return proposed;\n const { candidate } = proposed;\n // The delta is the engine's lazy property, so a host that dry-runs a change set and reads\n // only the blockers, the candidate or the operations seals neither report.\n const proposal: Proposal = Object.freeze({\n outcome: 'proposed',\n operations: candidate.operations,\n candidate,\n addedBlockers: proposed.addedBlockers,\n get delta(): CandidateDelta {\n return proposed.delta;\n },\n });\n return proposal;\n }\n\n /** Commits the state one proposal derived, through the bookkeeping a keystroke performs. */\n applyProposal(proposal: Proposal): EngineOutcome | ProposalRefusal {\n if (!this.mounted) {\n return Object.freeze({\n outcome: 'refused' as const,\n code: 'STALE_BASIS' as const,\n basis: proposal.candidate.basis,\n });\n }\n if (!this.isLatestProposal(proposal)) {\n return this.supersededRefusal(proposal);\n }\n // The candidate is the immutable operation source the engine commits. A host reconstructing\n // the public wrapper cannot make the store's bookkeeping describe a different change set.\n const operations = proposal.candidate.operations;\n const userWrote =\n this.proposalUserWrites.get(proposal.candidate) ?? operations.flatMap(userWriteRefs);\n const before = this.valuesBefore(userWrote);\n // The engine judges the candidate's session and basis, so a proposal derived before the\n // committed state moved is refused whole rather than applied over the newer state.\n const outcome = this.session.engine.commit(proposal.candidate);\n // The apply is the end of the confirmation, whether the engine took it or refused it: a\n // refused proposal is stale, and keeping it pending would offer a host an answer the record\n // can no longer take.\n if (this.isPending(proposal)) this.retirePending();\n if (outcome.outcome === 'refused') {\n if (this.mounted) this.publishForm();\n return outcome;\n }\n // A candidate that moved an input moved it in the engine too; keep the store's own copy in\n // step so the next re-open replays the accepted input rather than the one it replaced.\n this.syncCommittedInputs(operations);\n this.recordUserWrites(userWrote, before);\n // A structural operation or whole-array value replace moves the rows a refusal was about.\n // The kind test is total over the operation union, so a new operation kind fails typecheck.\n if (\n operations.some((operation) =>\n isStructuralOperation(\n operation,\n (fieldId) => this.facts.get(fieldId)?.field.primitive === 'array',\n ),\n )\n ) {\n this.view.clearRefusals();\n }\n this.markChanged();\n if (this.mounted) this.publish();\n return outcome;\n }\n\n /**\n * Declines one proposal: nothing is written, and every control repaints its committed value.\n *\n * Declining is not a write, so no dirty or touched mark is recorded and the engine's basis is\n * untouched. The store still publishes, because a control may have painted the declined write\n * in its own state before the session answered it.\n */\n discardProposal(proposal: Proposal): void {\n // Declining the write the session is confirming ends the confirmation and marks the\n // candidate declined: the engine still holds the derived state, so only this marker keeps a\n // later `applyProposal` for the same proposal from committing the cancelled write. Declining\n // an older proposal writes nothing either, and leaves the newer one pending for its own\n // answer.\n if (this.isPending(proposal)) {\n this.declinedCandidates.add(proposal.candidate);\n this.retirePending();\n }\n // Nothing was written, so no fact moved: what the host declined is a paint. Forgetting the\n // written bindings' props makes each of their controls re-derive and render the committed\n // value, which is the value the record still holds.\n const repainted = new Set<string>();\n const repaintValue = (ref: FieldRef): void => {\n const key = bindingKey(ref.fieldId, ref.rowKey);\n if (repainted.has(key)) return;\n repainted.add(key);\n this.snapshots.retire(key);\n // A value-only subscriber needs a new wrapper too: the committed value deliberately holds.\n this.watched.repaint(key);\n if (ref.rowKey === undefined && this.facts.get(ref.fieldId)?.field.primitive === 'array') {\n this.arrays.retireView(ref.fieldId);\n }\n };\n for (const operation of proposal.candidate.operations) {\n switch (operation.kind) {\n case 'value':\n case 'null':\n case 'remove':\n // Repaint every value target, including a host's system capture. Only provenance and\n // touched marks are restricted to user-origin operations; a decline has neither.\n repaintValue(operation.ref);\n continue;\n case 'append':\n case 'insert':\n case 'removeRow':\n case 'move':\n repaintValue({ fieldId: operation.fieldId });\n continue;\n case 'context':\n case 'env':\n case 'access':\n // A session input names no control, so a decline repaints nothing for it.\n continue;\n default:\n assertNever(operation);\n }\n }\n this.publish();\n }\n\n /**\n * Ends a confirmation, when one waits.\n *\n * The pending slot and the summary that stated it are one fact, so every path that makes the\n * staged write no longer answerable calls this rather than clearing the field: a cached summary\n * that survived would keep offering an Accept the session would refuse.\n */\n private retirePending(): void {\n if (this.pendingProposal === undefined) return;\n this.pendingProposal = undefined;\n this.summary = undefined;\n }\n\n /**\n * Whether a proposal is the one the session is currently prepared to commit.\n *\n * A staged proposal carries the sequence that says so, and a candidate the host declined is\n * refused even though the engine still holds its derived state. A proposal from the `propose`\n * door has no sequence: it is committable while no staged write is pending, and once one is it\n * is the second write door the single pending proposal exists to prevent. Declining a proposal\n * that was never staged therefore never marks it declined: that door asked for a dry run, not\n * for a confirmation, and a bare discard leaves its result committable.\n */\n private isLatestProposal(proposal: Proposal): boolean {\n if (this.declinedCandidates.has(proposal.candidate)) return false;\n const sequence = sequenceOf(proposal);\n if (sequence !== undefined) return sequence === this.nextProposalSequence;\n return this.pendingProposal === undefined;\n }\n\n /** Whether the pending proposal is this one, by identity or by the sequence it carries. */\n private isPending(proposal: Proposal): boolean {\n const pending = this.pendingProposal;\n if (pending === undefined) return false;\n if (proposal.candidate === pending.candidate) return true;\n const sequence = sequenceOf(proposal);\n return sequence !== undefined && sequence === pending.sequence;\n }\n\n /** The refusal a superseded proposal earns, naming the order the session holds. */\n private supersededRefusal(proposal: Proposal): ProposalRefusal {\n const sequence = sequenceOf(proposal);\n // Only a proposal that is actually pending is a newer answer to name. Once the confirmation\n // was applied or declined, a late proposal is refused without claiming another write waits.\n const latest = this.pendingProposal?.sequence;\n return {\n outcome: 'refused',\n code: 'PROPOSAL_SUPERSEDED',\n ...(sequence === undefined ? {} : { sequence }),\n ...(latest === undefined ? {} : { latest }),\n };\n }\n\n /**\n * Keeps the store's own evaluation inputs in step with a commit that changed them.\n *\n * The engine owns the committed context, environment and overlay, but a later render re-opens\n * it from the store's copies when the host's props state an input anew. Without this, an\n * accepted `context`, `env` or `access` operation would be replayed from the value it replaced\n * on the next re-open. `handle.batch` and `applyProposal` both reach it, so the two doors\n * cannot disagree about what the session is now evaluating with.\n */\n private syncCommittedInputs(operations: readonly EngineOperation[]): void {\n let context = this.session.inputs.context;\n let env = this.session.inputs.env;\n let overlay = this.session.inputs.overlay;\n let access = this.session.inputs.access;\n let touched = false;\n for (const operation of operations) {\n switch (operation.kind) {\n case 'context': {\n const name = operation.root.replace(/^context\\./, '');\n const declaration = this.compiled.context?.roots.find(\n (entry) => entry.path.replace(/^context\\./, '') === name,\n );\n // The engine refused an undeclared root, so the batch never committed and this walk\n // never runs. Skipping here keeps that refusal the only answer.\n if (declaration === undefined) continue;\n const stored = toWireValue(operation.value, `$.context.${name}`, {\n primitive: declaration.primitive,\n ...(declaration.items === undefined ? {} : { items: declaration.items }),\n });\n context = { ...(context ?? {}), [name]: stored };\n touched = true;\n continue;\n }\n case 'env': {\n const installed: EvaluationEnv = {\n ...operation.env,\n ...(operation.env.capabilities === undefined\n ? {}\n : { capabilities: [...operation.env.capabilities] }),\n };\n env = installed;\n touched = true;\n continue;\n }\n case 'access': {\n // The engine owns the version and advances it once per access operation; the\n // committed answer is the one a re-open must replay.\n overlay = {\n ...toAccessOverlay(operation.overlay),\n accessVersion: this.session.engine.lastPass().accessVersion,\n };\n // A session resolves one access source, so an accepted overlay replaces the flattened\n // projection rather than leaving two answers for the same reference.\n access = undefined;\n touched = true;\n continue;\n }\n case 'value':\n case 'null':\n case 'remove':\n case 'append':\n case 'insert':\n case 'removeRow':\n case 'move':\n continue;\n default:\n assertNever(operation);\n }\n }\n if (!touched) return;\n // The engine refused no operation, so each declared input applied as the engine took it.\n this.imperativeContext = context;\n this.imperativeEnv = env;\n this.imperativeOverlay = overlay;\n this.session = {\n ...this.session,\n inputs: { ...this.session.inputs, context, env, overlay, access },\n };\n }\n\n /**\n * Commits one user write, or stages it when the host asked to confirm a suggestion-bearing one.\n *\n * With no interceptor installed the operations reach the engine exactly as they always did. With\n * one, the write is previewed first: a change set that adds a blocker offering alternatives is\n * staged and reported instead of committed, and one that adds none commits the very state the\n * preview derived, so the previewed report, manifest and row keys are the committed ones.\n */\n private writeThrough(\n operations: readonly EngineOperation[],\n userWrote?: readonly FieldRef[],\n ): UserWriteOutcome {\n const intercept = this.writeInterceptor;\n if (intercept === undefined) {\n const outcome = this.session.engine.batch(operations);\n if (outcome.outcome === 'committed') this.retirePending();\n return { outcome, staged: false };\n }\n const binding = editedBinding(operations);\n if (binding === undefined) {\n const outcome = this.session.engine.batch(operations);\n if (outcome.outcome === 'committed') this.retirePending();\n return { outcome, staged: false };\n }\n const proposed = this.session.engine.propose(operations);\n if (proposed.outcome === 'refused') return { outcome: proposed, staged: false };\n if (!proposed.addedBlockers.some(offersAlternatives)) {\n const outcome = this.session.engine.commit(proposed.candidate);\n // A narrower write the host did not ask about still moves committed state, so a proposal\n // the user was confirming is no longer the write it confirmed.\n if (outcome.outcome === 'committed') this.retirePending();\n return { outcome, staged: false };\n }\n const candidateBinding = editedBinding(proposed.candidate.operations);\n if (candidateBinding === undefined) {\n throw new Error('a staged candidate always names its user-written binding');\n }\n this.nextProposalSequence += 1;\n // The whole delta, and both report digests inside it, are built when a host reads it. A\n // staged write a host confirms without inspecting seals neither report, so `delta` is the\n // engine's lazy property rather than a value this object computes eagerly.\n const proposal: WriteProposal = Object.freeze({\n outcome: 'proposed',\n operations: proposed.candidate.operations,\n candidate: proposed.candidate,\n addedBlockers: proposed.addedBlockers,\n get delta() {\n return proposed.delta;\n },\n // Read the candidate's owned, frozen ref rather than aliasing the caller's input object.\n binding: candidateBinding,\n sequence: this.nextProposalSequence,\n });\n // Ordinary operations use the candidate's owned refs. The optional high-level write is a\n // store-private control ref, used when assigned-row operations erase the container spelling.\n this.proposalUserWrites.set(\n proposed.candidate,\n userWrote ?? proposed.candidate.operations.flatMap(userWriteRefs),\n );\n // One proposal is pending at a time: the newer write replaces the one it supersedes, and the\n // summary states the replacement so a host repaints the confirmation it is now answering.\n this.pendingProposal = proposal;\n this.publishForm();\n intercept(proposal);\n return STAGED;\n }\n\n /** One binding's value before a write, so the write can tell whether the value moved. */\n private valuesBefore(refs: readonly FieldRef[]): readonly (ValueState | undefined)[] {\n return refs.map((ref) => {\n try {\n return this.session.engine.getField(ref.fieldId, ref.rowKey).value;\n } catch {\n // A reference the engine will refuse is not a binding it can answer for; the write's own\n // refusal is that answer, not this capture's.\n return undefined;\n }\n });\n }\n\n /**\n * Records what a committed user write changed: the session's provenance, the dirty comparison,\n * the visit a deliberate write is, and the refusal the write answers.\n */\n private recordUserWrites(\n userWrote: readonly FieldRef[],\n before: readonly (ValueState | undefined)[],\n ): void {\n for (const [index, ref] of userWrote.entries()) {\n const key = bindingKey(ref.fieldId, ref.rowKey);\n this.userWrites.add(key);\n // A write through `handle.setValue` is a write to the same binding a control writes, so\n // it marks the same visit: the two entry points must not disagree about whether an\n // identical write was an edit. One write, one answer.\n this.view.markChanged(key, ref);\n // Touched means the value *moved*. A write that commits the value already held is still\n // a change of provenance (the session now owns it), but it is not a visit the reveal\n // policy may treat as the user having answered anything.\n const previous = before[index];\n const next = valueAfter(this.session.engine, ref);\n if (previous !== undefined && next !== undefined && !sameValueState(previous, next)) {\n this.view.markEdited(key, ref);\n }\n // A successful write to the binding answers the entry the session refused, whether the\n // control or the handle issued it: the record now holds the value that replaced it, so\n // the control must not keep announcing the entry that did not.\n this.view.clearRefused(key);\n }\n }\n\n private submit(\n onValid: (values: Readonly<Record<string, unknown>>) => void | Promise<void>,\n onInvalid?: (errors: readonly FieldError[], blockers: readonly FormBlocker[]) => void,\n ): Promise<void> {\n if (this.inFlight !== null) return this.inFlight;\n const run = this.runSubmit(onValid, onInvalid);\n this.inFlight = run;\n const clear = (): void => {\n if (this.inFlight === run) this.inFlight = null;\n };\n void run.then(clear, clear);\n return run;\n }\n\n private async runSubmit(\n onValid: (values: Readonly<Record<string, unknown>>) => void | Promise<void>,\n onInvalid?: (errors: readonly FieldError[], blockers: readonly FormBlocker[]) => void,\n ): Promise<void> {\n this.submitCount += 1;\n this.isSubmitting = true;\n // RHF's `isSubmitSuccessful` answers the *last* attempt: a new attempt clears it before it\n // has decided, so a control that renders it cannot show the previous success beside this\n // attempt's failure.\n this.submitSucceeded = false;\n // The one time a deferred check is genuinely in flight: the submission may settle it.\n this.view.setSubmitting(true);\n this.snapshotEpoch += 1;\n try {\n const summary = this.summaryOf(this.session);\n // The one verdict, not `ready`: readiness is an input to it, and a gate's own `open`\n // badge is presentation. `SUBMIT` here still only proposes; the server re-derives.\n if (summary.verdict !== 'SUBMIT') {\n // Only the bindings that actually stop the submission are marked touched: a control\n // the user never visited must not be revealed as failed by someone else's submit.\n this.view.markTouchedAll(this.failingBindings());\n this.snapshotChanged();\n onInvalid?.(summary.errors, summary.blockers);\n return;\n }\n this.publish();\n // The body is the principal's answers only: a non-writable binding is the server's record,\n // so the accept door refuses it rather than treating the device's echo as a user write.\n await onValid(this.exportSubmission({ writableOnly: true }));\n // Reached only when the projection was exported and the host's handler returned: a\n // signature-covered refusal or a throwing handler is not a success, and the `finally`\n // below still clears `isSubmitting`.\n this.submitSucceeded = true;\n this.snapshotEpoch += 1;\n } finally {\n this.isSubmitting = false;\n this.view.setSubmitting(false);\n this.snapshotEpoch += 1;\n if (this.mounted) this.publish();\n }\n }\n\n /**\n * Every array field's addressable rows, as row-key tokens, memoised by the committed form\n * object. A pass that changed nothing keeps the form identity, so a keystroke's publish reuses\n * the index it built for the previous one.\n */\n private addressableRows(): ReadonlyMap<string, ReadonlySet<string>> {\n const form = this.session.engine.getFormState();\n if (this.rowIndex?.form === form) return this.rowIndex.rows;\n const rows = new Map<string, Set<string>>();\n for (const field of form.fields) {\n if (field.addressableRows === undefined) continue;\n rows.set(field.fieldId, new Set(field.addressableRows.map((key) => rowKeyToken(key))));\n }\n this.rowIndex = { form, rows };\n return rows;\n }\n\n /**\n * Whether committed state still addresses one binding, so a derivation of it can answer.\n *\n * `reachable` is a supplier because a publish with no row-keyed subscriber must not pay for\n * the index at all; it is called only for a binding that names a row.\n */\n private addresses(\n ref: FieldRef,\n reachable: () => ReadonlyMap<string, ReadonlySet<string>>,\n ): boolean {\n if (ref.rowKey === undefined) return true;\n // A member of an array is addressed by the container's rows: the member's own state\n // carries no row list, because the array holds it.\n const containerId = this.facts.get(ref.fieldId)?.arrayContainerId ?? ref.fieldId;\n return reachable().get(containerId)?.has(rowKeyToken(ref.rowKey)) ?? false;\n }\n\n /**\n * Drops the per-binding caches of a row committed state no longer addresses.\n *\n * The registration is deliberately left in place (see `publish`); the caches are not, because\n * a removed row's `FieldProps` holds its value and nothing would read them again. A row that\n * comes back re-derives, and derives into a session that no longer remembers the old object.\n * The user-write provenance goes too: the engine drops that row's write in the same commit, so\n * keeping the key would only grow the set until a reopen happened to prune it.\n */\n private retireBinding(key: string, ref: FieldRef): void {\n this.snapshots.retire(key);\n this.watched.retire(key);\n this.writers.retire(key);\n this.attemptWriters.delete(key);\n this.announceMemo.delete(key);\n this.view.retire(key);\n this.visibilityMemo.delete(key);\n this.arrays.retireRow(ref.fieldId, ref.rowKey);\n this.userWrites.delete(key);\n }\n\n /**\n * The binding keys a failed submit names: a blocking error or an unsatisfied requirement.\n *\n * The answer is read from the engine's committed state rather than from derived props,\n * deliberately: `propsOf` primes the published-snapshot cache, and a binding whose props a\n * submit had just changed would then look unchanged to the `publish` that follows, so a\n * control the user had already visited never heard that its failure was now revealed.\n */\n private failingBindings(): readonly FieldRef[] {\n const refs = new Map<string, FieldRef>();\n const consider = (fieldId: string, rowKey: string | number | undefined): void => {\n const state = this.session.engine.getField(fieldId, rowKey);\n if (state.visible && bindingErrors(state).invalid) {\n refs.set(bindingKey(fieldId, rowKey), bindingRef(fieldId, rowKey));\n }\n };\n for (const field of this.session.engine.getFormState().fields) {\n const itemMember = this.facts.get(field.fieldId)?.arrayContainerId !== undefined;\n if (!itemMember) consider(field.fieldId, undefined);\n for (const row of field.rows ?? []) consider(field.fieldId, row.rowKey);\n }\n return [...refs.values()];\n }\n\n /**\n * One binding's engine state, with the refusal kept for a key the store never registered.\n *\n * A binding the store keeps registered after its row left is read through the absent arm: a\n * mounted control must be able to render between the row leaving and the control unmounting,\n * and the read is not the place to refuse what the record did. A key no control ever registered\n * is a different answer: nothing in the session addresses it, so `getField` refuses it, and a\n * test or a host learns it typed the wrong key instead of reading a silent empty binding.\n */\n private engineStateOf(\n session: Session,\n fieldId: string,\n rowKey: string | number | undefined,\n ): EngineFieldState {\n const dormant =\n rowKey !== undefined && this.subscriptions.count(bindingRef(fieldId, rowKey)) > 0;\n return dormant\n ? session.engine.getFieldOrAbsent(fieldId, rowKey)\n : session.engine.getField(fieldId, rowKey);\n }\n\n private propsOf(\n session: Session,\n fieldId: string,\n rowKey: string | number | undefined,\n ): PublishedFieldProps {\n const facts = fieldFactsOf(this.facts, fieldId, rowKey, this.compiled.schemaId);\n const key = bindingKey(fieldId, rowKey);\n const state = this.engineStateOf(session, fieldId, rowKey);\n const base = this.snapshotOf(session, key, facts, state, fieldId, rowKey);\n return this.publishedProps(key, base, fieldId, rowKey);\n }\n\n /**\n * The snapshot-layer props of one binding, identity-stable while its published state holds.\n *\n * `publish` compares these — never the published extension, which is a different object by\n * construction — so a publish that moved no fact notifies nobody.\n */\n private snapshotOf(\n session: Session,\n key: string,\n facts: FieldFacts,\n state: EngineFieldState,\n fieldId: string,\n rowKey: string | number | undefined,\n ): FieldProps {\n const view = this.view.viewFor(key, this.submitCount > 0);\n const visibility = this.visibilityOf(session.engine, state, fieldId, rowKey, view.revealed);\n return this.snapshots.read(\n session.candidate,\n session === this.session,\n key,\n state,\n view,\n session.display,\n visibility,\n () => ({\n descriptor: facts.field,\n bindingKey: key,\n writers: this.writersOf(fieldId, rowKey),\n }),\n );\n }\n\n /**\n * The props a control renders: the snapshot plus the members the derivation layer does not\n * own.\n *\n * The snapshot keeps its identity while a binding's published state holds, so the extended\n * object is cached against it: the same snapshot always publishes the same props, and a new\n * snapshot publishes once. The non-throwing writers come from the store's own stable cache.\n */\n private publishedProps(\n key: string,\n base: FieldProps,\n fieldId: string,\n rowKey: string | number | undefined,\n ): PublishedFieldProps {\n const cached = this.publishedPropsMemo.get(base);\n if (cached !== undefined) return cached;\n const writers = this.tryWritersOf(fieldId, rowKey);\n const published: PublishedFieldProps = Object.freeze({\n ...base,\n announce: this.announceFor(key, base.showError, base.visibleErrors),\n trySetValue: writers.trySetValue,\n trySetNull: writers.trySetNull,\n tryRemoveValue: writers.tryRemoveValue,\n });\n this.publishedPropsMemo.set(base, published);\n return published;\n }\n\n /**\n * The failures a control renders now, reused while the same failures hold.\n *\n * The list is `visibleErrors` once the control shows a failure, and the painted warnings\n * alone before that. Identity follows content rather than the snapshot: an edit that moves\n * no failure keeps the array the control already rendered.\n */\n private announceFor(\n key: string,\n showError: boolean,\n visibleErrors: readonly FieldError[],\n ): readonly FieldError[] {\n const next: readonly FieldError[] = showError\n ? visibleErrors\n : Object.freeze(visibleErrors.filter(isPaintedWarning));\n const previous = this.announceMemo.get(key);\n if (previous !== undefined && sameFieldErrors(previous, next)) return previous;\n this.announceMemo.set(key, next);\n return next;\n }\n\n private valueStateOf(\n session: Session,\n fieldId: string,\n rowKey: string | number | undefined,\n ): ValueState {\n fieldFactsOf(this.facts, fieldId, rowKey, this.compiled.schemaId);\n return this.watched.read(\n session.candidate,\n session === this.session,\n bindingKey(fieldId, rowKey),\n this.engineStateOf(session, fieldId, rowKey).value,\n );\n }\n\n private writersOf(fieldId: string, rowKey: string | number | undefined): BindingWriters {\n const key = bindingKey(fieldId, rowKey);\n const writers = this.writers.for(key, () => {\n const ref = bindingRef(fieldId, rowKey);\n return {\n // A control's writers answer nothing: whether the session staged the write is the\n // handle's and the host's question, never a control's.\n setValue: (value) => {\n this.write(ref, 'value', value);\n },\n setNull: () => {\n this.write(ref, 'null');\n },\n removeValue: () => {\n this.write(ref, 'remove');\n },\n onBlur: () => this.blur(fieldId, rowKey),\n };\n });\n if (!this.attemptWriters.has(key)) {\n const ref = bindingRef(fieldId, rowKey);\n this.attemptWriters.set(key, {\n trySetValue: (value) => this.attemptWrite(ref, 'value', value).outcome,\n trySetNull: () => this.attemptWrite(ref, 'null').outcome,\n tryRemoveValue: () => this.attemptWrite(ref, 'remove').outcome,\n });\n }\n return writers;\n }\n\n /** The stable non-throwing write callbacks for one binding; built beside `writersOf`. */\n private tryWritersOf(fieldId: string, rowKey: string | number | undefined): TryBindingWriters {\n this.writersOf(fieldId, rowKey);\n const writers = this.attemptWriters.get(bindingKey(fieldId, rowKey));\n if (writers === undefined) throw new Error('a binding always has attempt writers');\n return writers;\n }\n\n /**\n * Writes one value as the user, refusing by throwing.\n *\n * The attempt is judged the same way `attemptWrite` judges it; a refusal the record never\n * took is raised as the runtime's structured write error, except for a duplicate row key,\n * which the attempt already announced beside its control and published.\n */\n private write(\n ref: FieldRef,\n kind: 'value' | 'null' | 'remove',\n value?: WireValue,\n ): AttemptedWrite {\n const attempted = this.attemptWrite(ref, kind, value);\n if (attempted.outcome.outcome === 'refused') {\n // The record never took the refused entry, so it is still valid; what failed is the value\n // the user just typed, which the attempt already announced and published.\n if (attempted.outcome.code === 'ROW_KEY_DUPLICATE') return attempted;\n throw writeRefusalError(attempted.outcome, attempted.cause);\n }\n return attempted;\n }\n\n /**\n * Writes one value as the user, returning the refusal instead of throwing it.\n *\n * The guard runs before the value is parsed, so a write the rendered state does not permit\n * is refused with its own code rather than by whatever the value happens to be. The value is\n * then parsed against its declaration before the engine sees it, so a control is refused with\n * the same `INVALID_VALUE` code the session handle reports, and the boundary diagnostic rides\n * along as the attempt's cause. The engine then judges the write with its own guard, the same\n * derivation the control rendered.\n */\n private attemptWrite(\n ref: FieldRef,\n kind: 'value' | 'null' | 'remove',\n value?: WireValue,\n ): AttemptedWrite {\n const facts = fieldFactsOf(this.facts, ref.fieldId, ref.rowKey, this.compiled.schemaId);\n const engine = this.session.engine;\n const state = engine.getField(ref.fieldId, ref.rowKey);\n const refusal = checkWrite({\n ref,\n origin: 'user',\n access: state.access,\n enabled: state.enabled,\n primitive: facts.field.primitive,\n item: facts.arrayContainerId !== undefined || ref.rowKey !== undefined,\n changed: true,\n });\n if (refusal !== undefined) {\n // The guard refusal carries the reference the write named; the handle reports the same\n // shape, so the control's non-throwing door and the session agree code for code.\n return {\n outcome: {\n outcome: 'refused',\n code: refusal.code,\n origin: refusal.origin,\n fieldId: refusal.fieldId,\n ...(refusal.rowKey === undefined ? {} : { rowKey: refusal.rowKey }),\n },\n };\n }\n const assigned =\n ref.rowKey === undefined &&\n facts.field.primitive === 'array' &&\n facts.field.rowKey?.mode === 'assigned';\n if (kind === 'value') {\n let parsed: WireValue;\n try {\n parsed = toWireValue(value, `$.values.${ref.fieldId}`, declarationFor(facts, ref.rowKey));\n } catch (error) {\n if (!(error instanceof AxiomError)) throw error;\n return {\n outcome: {\n outcome: 'refused',\n code: 'INVALID_VALUE',\n origin: 'user',\n fieldId: ref.fieldId,\n ...(ref.rowKey === undefined ? {} : { rowKey: ref.rowKey }),\n },\n cause: error,\n };\n }\n if (assigned) {\n // An assigned array's rows carry ids no positional replacement can invent, so a container\n // that changes the row count is expressed with the structural operations that mint them.\n return this.attemptWriteAssignedArray(facts.field.fieldId, parsed, ref, state);\n }\n return this.finishAttempt(\n ref,\n state,\n this.writeThrough([{ kind: 'value', ref, value: parsed, origin: 'user' }]),\n );\n }\n if (assigned) {\n return this.attemptWriteAssignedArray(\n facts.field.fieldId,\n kind === 'null' ? null : undefined,\n ref,\n state,\n );\n }\n return this.finishAttempt(\n ref,\n state,\n this.writeThrough([{ kind: kind === 'null' ? 'null' : 'remove', ref, origin: 'user' }]),\n );\n }\n\n /**\n * Settles one engine verdict for a scalar write.\n *\n * A duplicate row key is announced beside its control and published, because the record never\n * took the entry and the control must name the entry that failed. Any other refusal is\n * returned for the caller: the throwing door raises it, the non-throwing door hands it back.\n * A commit records the provenance the engine cannot state — this binding holds a value the\n * user typed — and clears the refusal the write answered.\n */\n private finishAttempt(\n ref: FieldRef,\n state: EngineFieldState,\n written: UserWriteOutcome,\n ): AttemptedWrite {\n const { outcome } = written;\n if (outcome.outcome === 'refused') {\n if (outcome.code === 'ROW_KEY_DUPLICATE') {\n // The record never took the entry, so it is still valid; what failed is the value the\n // user just typed. The control announces that beside itself instead of making React\n // unwind an event handler with an engine error it cannot render.\n const duplicate = outcome.rowKey ?? ref.rowKey ?? '';\n // A row-member binding has no `rowAddressing` of its own; read the enclosing array's mode\n // so natural/value duplicate keys carry `rowName` while assigned keys stay unnamed.\n const containerId = this.facts.get(ref.fieldId)?.arrayContainerId ?? ref.fieldId;\n const addressing = this.session.engine.getField(containerId).rowAddressing;\n const rowName =\n addressing === 'natural' || addressing === 'value' ? String(duplicate) : undefined;\n this.view.markRefused(bindingKey(ref.fieldId, ref.rowKey), {\n kind: 'row-key',\n blocking: false,\n status: 'FAIL',\n code: 'ROW_KEY_DUPLICATE',\n rowKey: duplicate,\n ...(rowName === undefined ? {} : { rowName }),\n });\n this.snapshotEpoch += 1;\n this.publish();\n }\n return { outcome };\n }\n // A staged write is the host's to accept: the record has not taken it, so it is neither a\n // dirty mark nor a visit the user has made.\n if (written.staged) return { outcome, staged: true };\n this.recordUserWrites([ref], [state.value]);\n this.snapshotChanged();\n return { outcome };\n }\n\n /**\n * Replaces one assigned array through the structural operations that own its row identity,\n * returning the refusal instead of throwing it.\n *\n * A value that is neither an array nor `null` reached past the declaration parse, so it is\n * still a programmer error and throws.\n */\n private attemptWriteAssignedArray(\n fieldId: string,\n value: WireValue | null | undefined,\n ref: FieldRef,\n state: EngineFieldState,\n ): AttemptedWrite {\n const current = this.session.engine.getField(fieldId).addressableRows ?? [];\n const removed: EngineOperation[] = current.map(\n (rowKey) => ({ kind: 'removeRow', fieldId, rowKey, origin: 'user' }) as const,\n );\n let written: UserWriteOutcome;\n if (value === undefined || value === null) {\n // Removing the rows first retires their manifest. The final operation then preserves the\n // distinction the wire contract makes between an authored null and an absent container.\n written = this.writeThrough(\n [\n ...removed,\n value === null\n ? { kind: 'null', ref: { fieldId }, origin: 'user' }\n : { kind: 'remove', ref: { fieldId }, origin: 'user' },\n ],\n [ref],\n );\n } else {\n // The wire declaration of an array admits an array or `null`, so anything else is a caller\n // that bypassed the parse rather than a value the session can hold.\n const values = Array.isArray(value) ? value : undefined;\n if (values === undefined) {\n throw new AxiomError('ENGINE_ERROR', 'an array field holds an array or null', fieldId);\n }\n written =\n values.length === current.length\n ? this.writeThrough([{ kind: 'value', ref: { fieldId }, value, origin: 'user' }], [ref])\n : this.writeThrough(\n [\n ...removed,\n ...values.map(\n (item) => ({ kind: 'append', fieldId, value: item, origin: 'user' }) as const,\n ),\n ],\n [ref],\n );\n }\n if (written.staged) return { outcome: written.outcome, staged: true };\n if (written.outcome.outcome === 'refused') return { outcome: written.outcome };\n this.recordUserWrites([ref], [state.value]);\n this.view.clearRefusals();\n this.snapshotChanged();\n return { outcome: written.outcome };\n }\n\n /** Records a blur on a binding the user could actually use, and publishes it. */\n private blur(fieldId: string, rowKey: string | number | undefined): void {\n const state = this.session.engine.getField(fieldId, rowKey);\n // A control the user could not use was never visited: marking it touched would reveal a\n // failure on a binding that cannot be corrected. `fillable` is the runtime's one answer for\n // that — visibility, access, the enabled rules, and the facts that stop a user write before\n // any of them (a writer owns the value, or it is a `signature_ref`). `enabled` alone is not\n // it: a `read_write` computed field is enabled and never writable.\n if (!state.fillable) return;\n this.view.markTouched(bindingKey(fieldId, rowKey), bindingRef(fieldId, rowKey));\n this.snapshotEpoch += 1;\n this.publish();\n }\n\n /**\n * One binding's visibility answer, structurally shared while the facts it states hold.\n *\n * The incomplete-rule set is derived from the current state of every field the binding's rules\n * read, so a write to a sibling can change it without replacing this binding's engine state.\n * The memo therefore compares the sets by value and reuses the previous object, which keeps a\n * publish from re-deriving props whose painted answer did not move.\n */\n private visibilityOf(\n engine: Engine,\n state: EngineFieldState,\n fieldId: string,\n rowKey: string | number | undefined,\n revealedErrors: ReadonlySet<string>,\n ): BindingVisibility {\n const key = bindingKey(fieldId, rowKey);\n const incompleteRules = incompleteRulesOf(\n engine,\n this.facts,\n this.ruleReads,\n state,\n rowKey,\n (answeredKey) => this.view.isAnswered(answeredKey),\n );\n const cached = this.visibilityMemo.get(key);\n if (\n cached !== undefined &&\n cached.state === state &&\n cached.revealedErrors === revealedErrors &&\n sameIdSet(cached.incompleteRules, incompleteRules)\n ) {\n return cached.visibility;\n }\n const visibility: BindingVisibility = Object.freeze({\n // Reuse the cached set when its members are equal, so the memo's own identity comparison\n // can succeed on the next derivation.\n incompleteRules:\n cached !== undefined && sameIdSet(cached.incompleteRules, incompleteRules)\n ? cached.incompleteRules\n : Object.freeze(incompleteRules),\n revealedErrors,\n });\n this.visibilityMemo.set(key, {\n state,\n incompleteRules: visibility.incompleteRules,\n revealedErrors,\n visibility,\n });\n return visibility;\n }\n\n /**\n * Brings the sticky reveal set in line with committed state.\n *\n * A failure that is still true keeps its key even when the operand question that would decide\n * whether to paint it changed: a sentence the user has already seen must not flicker away.\n * A failure that is no longer true loses its key, so a later, different failure is judged by\n * the policy afresh rather than inheriting the old paint.\n */\n private reconcileReveal(): void {\n const policy = this.session.display.reveal;\n if (policy !== 'touched') return;\n const submitted = this.submitCount > 0;\n const engine = this.session.engine;\n for (const { key, ref } of this.view.revealCandidates()) {\n let state: EngineFieldState;\n try {\n state = engine.getField(ref.fieldId, ref.rowKey);\n } catch {\n // The row was removed by the commit this publish is delivering. Its registration is\n // retired below by the publish loop, and a row that returns is a new row with no history.\n this.view.setRevealed(ref, EMPTY_REVEALED);\n continue;\n }\n const current = bindingErrors(state).errors;\n const previous = this.view.revealedOf(key);\n const next = new Set<string>();\n if (state.visible) {\n const view = this.view.viewFor(key, submitted);\n const visibility = this.visibilityOf(engine, state, ref.fieldId, ref.rowKey, previous);\n for (const error of current) {\n // Only a blocking failure is something the session latches: a warning is painted\n // whenever it exists and needs no history, and access diagnostics are not failures.\n if (!error.blocking) continue;\n const failureKey = errorKey(error);\n // A key that survives is sticky: the failure is still true even if its operands no\n // longer make it answerable.\n if (previous.has(failureKey)) {\n next.add(failureKey);\n continue;\n }\n // A new failure is painted only once the policy lets it be: the binding has been\n // visited and every operand the rule reads has been supplied.\n const undecided =\n error.kind === 'validate' &&\n (error.status !== 'FAIL' || visibility.incompleteRules.has(error.ruleId));\n if (view.touched && !undecided) next.add(failureKey);\n }\n }\n this.view.setRevealed(ref, next);\n }\n }\n\n private summaryOf(session: Session): FormSummary {\n const form = session.engine.getFormState();\n const committed = session === this.session;\n const cached = committed\n ? this.summary\n : this.candidateSummary?.owner === session.candidate\n ? this.candidateSummary.cache\n : undefined;\n if (\n cached !== undefined &&\n cached.form === form &&\n cached.submitCount === this.submitCount &&\n cached.isSubmitting === this.isSubmitting &&\n cached.submitSucceeded === this.submitSucceeded &&\n cached.epoch === this.snapshotEpoch &&\n cached.pendingProposal === this.pendingProposal\n ) {\n return cached.summary;\n }\n const built = buildFormSummary({\n engine: session.engine,\n form,\n facts: this.facts,\n view: this.view,\n submitCount: this.submitCount,\n isSubmitting: this.isSubmitting,\n submitSucceeded: this.submitSucceeded,\n reveal: session.display.reveal,\n ruleReads: this.ruleReads,\n pendingProposal: this.pendingProposal,\n visibilityOf: (fieldId, rowKey) =>\n this.visibilityOf(\n session.engine,\n session.engine.getField(fieldId, rowKey),\n fieldId,\n rowKey,\n this.view.revealedOf(bindingKey(fieldId, rowKey)),\n ),\n });\n // Candidate summaries share structure with committed state, but have their own cache slot:\n // an aborted render must not replace the snapshot a committed subscriber last read.\n const previous = cached ?? (committed ? undefined : this.summary);\n const summary =\n previous !== undefined && sameFormSummary(previous.summary, built) ? previous.summary : built;\n const next: SummaryCache = {\n form,\n submitCount: this.submitCount,\n isSubmitting: this.isSubmitting,\n submitSucceeded: this.submitSucceeded,\n epoch: this.snapshotEpoch,\n pendingProposal: this.pendingProposal,\n summary,\n };\n if (committed) this.summary = next;\n else this.candidateSummary = { owner: session.candidate, cache: next };\n return summary;\n }\n\n private publishForm(): void {\n if (this.formSubscriptions.size === 0) return;\n const summary = this.summaryOf(this.session);\n if (summary === this.published) return;\n this.published = summary;\n for (const listener of [...this.formSubscriptions]) listener();\n }\n\n /**\n * Records that committed state moved on: nothing previewed survives it, and the next read\n * re-derives. A caller that publishes does so deliberately, so a reconfigure applied during a\n * render stays silent until the commit boundary delivers it.\n */\n private markChanged(): void {\n this.previewed = undefined;\n this.snapshotEpoch += 1;\n }\n\n /** One committed-state change, delivered to its subscribers now. */\n private snapshotChanged(): void {\n this.markChanged();\n this.publish();\n }\n\n /**\n * Baselines every binding from the record a session opened with.\n *\n * The record is read once here, not per derivation: the baseline is what `dirty` compares a\n * binding against, and only this moment and a reset define it.\n */\n private captureBaseline(engine: Engine): void {\n const form = engine.getFormState();\n this.view.capture(form, heldValuesOf(engine.values(), form, this.facts));\n }\n\n private newCandidate(\n engine: Engine,\n inputs: SessionInputs,\n display: DisplayOptions,\n overrides: FormStoreOverrides,\n ): FormCandidate {\n this.nextRevision += 1;\n return Object.freeze({ engine, inputs, overrides, display, revision: this.nextRevision });\n }\n\n private newSession(\n engine: Engine,\n inputs: SessionInputs,\n display: DisplayOptions,\n overrides: FormStoreOverrides,\n ): Session {\n const candidate = this.newCandidate(engine, inputs, display, overrides);\n this.previewed = candidate;\n return { engine, inputs, display, candidate };\n }\n\n private sessionOf(candidate: FormCandidate): Session {\n if (candidate === this.session.candidate) return this.session;\n return {\n engine: candidate.engine,\n inputs: candidate.inputs,\n display: candidate.display,\n candidate,\n };\n }\n\n private sameView(\n candidate: FormCandidate,\n inputs: SessionInputs,\n display: DisplayOptions,\n overrides: FormStoreOverrides,\n ): boolean {\n return (\n sameInputs(candidate.inputs, inputs) &&\n sameDisplay(candidate.display, display) &&\n sameOverrides(candidate.overrides, overrides)\n );\n }\n\n /**\n * The inputs one evaluation runs with: the host's props, with the inputs an event handler\n * installed beside them.\n *\n * A prop is the authority for the input it states; an imperative `setAccess`/`setContext`/\n * `setEnv` stays in force only while the props name none, so a host that drives an input from\n * props is never overridden by its own earlier call.\n */\n private effective(overrides: FormStoreOverrides): SessionInputs {\n const resolved = resolveSessionInputs(overrides);\n const inputs =\n resolved.overlay !== undefined ||\n resolved.access !== undefined ||\n this.imperativeOverlay === undefined\n ? resolved\n : { ...resolved, overlay: this.imperativeOverlay };\n return {\n ...inputs,\n optionDomains: this.optionDomains,\n ...(overrides.context === undefined && this.imperativeContext !== undefined\n ? { context: this.imperativeContext }\n : {}),\n ...(overrides.env === undefined && this.imperativeEnv !== undefined\n ? { env: this.imperativeEnv }\n : {}),\n };\n }\n\n private defaultDisplay(): DisplayOptions {\n return {\n reveal: DEFAULT_POLICY,\n maskedDisplay: undefined,\n valueDisplay: undefined,\n idPrefix: this.idPrefix,\n };\n }\n\n /**\n * Replays the session writes a re-opened engine keeps.\n *\n * The host's current declaration comes first. Beside it travel the engine's references that\n * are the *user's* own writes, and nothing else: a host claim the props no longer state is\n * dropped, so a revoked unlock does not become session-owned, while a claim the user has since\n * written at is kept — the engine cannot tell the two apart, and subtracting it blanks the\n * control mid-edit. Only `reset()` retires a user write.\n */\n private writesFor(inputs: SessionInputs): readonly FieldRef[] {\n const engineWrites = this.session.engine.sessionWrites();\n const live = new Set(engineWrites.map(writeKey));\n for (const key of this.userWrites) {\n // A binding the engine no longer reports was removed with its row: its entry would only\n // grow the set without ever matching a claim again.\n if (!live.has(key)) this.userWrites.delete(key);\n }\n const claimed = new Set(this.session.inputs.sessionWrites.map(writeKey));\n const writes = new Map<string, FieldRef>();\n for (const ref of inputs.sessionWrites) writes.set(writeKey(ref), ref);\n for (const ref of engineWrites) {\n const key = writeKey(ref);\n if (writes.has(key)) continue;\n if (claimed.has(key) && !this.userWrites.has(key)) continue;\n writes.set(key, ref);\n }\n return [...writes.values()];\n }\n\n private open(\n inputs: SessionInputs,\n values: Readonly<Record<string, WireValue>>,\n sessionWrites: readonly FieldRef[],\n identity: Readonly<Record<string, readonly string[]>> | undefined,\n ): Engine {\n return openEngine(this.compiled, inputs, values, sessionWrites, this.idFactory, identity);\n }\n}\n\n/**\n * The host source one field declares, refusing a field the caller cannot page.\n *\n * A `field` source takes its domain from another field's array, without a loader; asking for\n * pages of one is a programming error, named rather than answered with an empty domain.\n */\nfunction hostOptionSource(\n source: CompiledField['optionSource'],\n fieldId: string,\n): Extract<OptionSource, { kind: 'host' }> {\n if (source?.kind !== 'host') {\n throw new AxiomError(\n 'ENGINE_ERROR',\n `${JSON.stringify(fieldId)} declares no host option source, so it has no pages to load`,\n fieldId,\n );\n }\n return source;\n}\n\n/**\n * One dependency value, spelled so two bases differ exactly when the values differ.\n *\n * The wire contract's equality is member-order-insensitive (`sameWireValue`), so the text has to\n * be canonical: `JSON.stringify` spells `{a,b}` and `{b,a}` differently for one value, and a\n * dependency that is a record would then reload every page of the list on a render that changed\n * nothing. The restricted canonical form is the same text the engine hashes, so the basis cannot\n * disagree with the wire contract about when two values are the same.\n */\nfunction valueSignature(value: WireValue | undefined): string {\n return value === undefined ? '-' : canonicalizeRestricted(value);\n}\n\n/**\n * Whether a revealed failure paints before the control shows a failure.\n *\n * A decided warning is visible without making the control invalid. A deferred check is a\n * handoff the device has not decided, never a sentence a control paints.\n */\nfunction isPaintedWarning(error: FieldError): boolean {\n return error.kind === 'validate' && error.severity === 'warn' && error.status !== 'DEFERRED';\n}\n\n/** Whether two value states state the same value, for the \"did the value move\" question. */\nfunction sameValueState(left: ValueState, right: ValueState): boolean {\n if (left.kind !== right.kind) return false;\n if (left.kind === 'value')\n return right.kind === 'value' && sameWireValue(left.value, right.value);\n if (left.kind === 'withheld') return right.kind === 'withheld' && left.reason === right.reason;\n return true;\n}\n\n/**\n * One binding's value after a write, or `undefined` when committed state no longer addresses it.\n *\n * A write may re-key a row and retire the reference it was issued for. The write still committed;\n * what it cannot answer is whether the old binding's value moved, and a retired binding has no\n * touch fact to carry.\n */\nfunction valueAfter(engine: Engine, ref: FieldRef): ValueState | undefined {\n try {\n return engine.getField(ref.fieldId, ref.rowKey).value;\n } catch {\n return undefined;\n }\n}\n\n/** The binding key one session write names, so a host claim and an engine write can be matched. */\nfunction writeKey(ref: FieldRef): string {\n return bindingKey(ref.fieldId, ref.rowKey);\n}\n\n/** The shared empty read map of an artifact whose dependency inspection refused to order it. */\nconst NO_RULE_READS: ReadonlyMap<string, readonly FieldRef[]> = new Map();\n\n/** The empty reveal set, shared so a retired row's entry is cleared without an allocation. */\nconst EMPTY_REVEALED: ReadonlySet<string> = Object.freeze(new Set<string>());\n\n/**\n * What a staged write answers: the record has not taken it, and nothing was refused.\n *\n * `queued` is the outcome union's \"not applied yet\" arm, which is exactly the fact: applying the\n * proposal is the only thing that writes it.\n */\nconst STAGED: UserWriteOutcome = Object.freeze({\n outcome: Object.freeze({ outcome: 'queued' as const }),\n staged: true,\n});\n\n/**\n * Every rule's declared reads, from the artifact's own dependency inspection.\n *\n * `inspectDeps` caches its answer against the compiled object, so this map is built once per\n * artifact and the incomplete-operand question never walks an expression again. An artifact the\n * inspection refuses has no order to derive reads from; the empty map then makes every rule's\n * operands \"complete\", which can only paint a failure, never hide one the engine decided.\n */\nfunction ruleReadsOf(compiled: CompiledSchema): ReadonlyMap<string, readonly FieldRef[]> {\n const inspection = inspectDeps(compiled);\n if (!inspection.ok) return NO_RULE_READS;\n const reads = new Map<string, readonly FieldRef[]>();\n for (const rule of inspection.report.rules) reads.set(rule.ruleId, rule.reads);\n return reads;\n}\n\n/**\n * The bindings one operation writes as the user, which the session owns from then on.\n *\n * A structural operation is a row's arrival or departure rather than a value the session wrote,\n * and a context, environment or access change owns no binding at all, so neither records one.\n */\nfunction userWriteRefs(operation: EngineOperation): readonly FieldRef[] {\n switch (operation.kind) {\n case 'value':\n case 'null':\n case 'remove':\n return operation.origin === 'user' ? [operation.ref] : [];\n case 'context':\n case 'env':\n case 'access':\n case 'append':\n case 'insert':\n case 'removeRow':\n case 'move':\n return [];\n default:\n return assertNever(operation);\n }\n}\n\n/**\n * The monotonic sequence one staged proposal carries, or `undefined` for a proposal the\n * `propose` door derived outside the staging machine.\n *\n * The member is read through a guard rather than a cast: `Proposal` deliberately does not state\n * it, because a proposal that was never staged has no order to compare.\n */\nfunction sequenceOf(proposal: Proposal): number | undefined {\n if (!('sequence' in proposal)) return undefined;\n const sequence: unknown = proposal['sequence'];\n return typeof sequence === 'number' ? sequence : undefined;\n}\n\nfunction sameDisplay(left: DisplayOptions, right: DisplayOptions): boolean {\n // The prefix is constant for a session, and compared anyway: a display that names a different\n // one is a display belonging to another form, not an unchanged one.\n if (left.idPrefix !== right.idPrefix) return false;\n if (left.reveal !== right.reveal) return false;\n if (left.valueDisplay !== right.valueDisplay) return false;\n return sameMaskedDisplay(left.maskedDisplay, right.maskedDisplay);\n}\n\nfunction sameMaskedDisplay(\n left: Readonly<Record<string, string>> | undefined,\n right: Readonly<Record<string, string>> | undefined,\n): boolean {\n if (left === right) return true;\n if (left === undefined || right === undefined) return false;\n const keys = Object.keys(left);\n return keys.length === Object.keys(right).length && keys.every((key) => left[key] === right[key]);\n}\n"]}
|
package/dist/hints.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Control } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* The keyboard and autofill hints a control asks a host to apply.
|
|
4
|
+
*
|
|
5
|
+
* A binding is target-neutral: it cannot know whether it is rendering an `<input>` or a React
|
|
6
|
+
* Native `TextInput`, and it must not import either platform's types to find out. So both
|
|
7
|
+
* answers are returned together and the host applies the half its platform understands.
|
|
8
|
+
*/
|
|
9
|
+
export interface InputHints {
|
|
10
|
+
/** The declared control these hints were resolved for; `undefined` for a container. */
|
|
11
|
+
readonly control: Control | undefined;
|
|
12
|
+
readonly web: WebInputHints;
|
|
13
|
+
readonly native: NativeInputHints;
|
|
14
|
+
}
|
|
15
|
+
/** What a Web host puts on an `<input>`; the element itself stays the host's choice. */
|
|
16
|
+
export interface WebInputHints {
|
|
17
|
+
readonly type: WebInputType;
|
|
18
|
+
readonly inputMode?: WebInputMode;
|
|
19
|
+
readonly autoComplete: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the platform should offer spelling corrections. A password must not: a suggestion
|
|
22
|
+
* bubble over a secret would expose the entry to the surrounding sentence.
|
|
23
|
+
*/
|
|
24
|
+
readonly autoCorrect?: 'on' | 'off';
|
|
25
|
+
/** Whether the platform should capitalise the first letter or each word. */
|
|
26
|
+
readonly autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
27
|
+
}
|
|
28
|
+
export type WebInputType = 'text' | 'email' | 'tel' | 'url' | 'number' | 'date' | 'datetime-local' | 'checkbox' | 'radio' | 'file' | 'range' | 'password';
|
|
29
|
+
export type WebInputMode = 'text' | 'decimal' | 'numeric' | 'tel' | 'email' | 'url';
|
|
30
|
+
/** What a React Native host puts on a `TextInput`. */
|
|
31
|
+
export interface NativeInputHints {
|
|
32
|
+
readonly keyboardType: NativeKeyboardType;
|
|
33
|
+
readonly textContentType: NativeTextContentType;
|
|
34
|
+
readonly autoCapitalize: NativeAutoCapitalize;
|
|
35
|
+
/** Whether the platform masks the entry, as a React Native `TextInput`'s secure entry does. */
|
|
36
|
+
readonly secureTextEntry?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type NativeKeyboardType = 'default' | 'numeric' | 'number-pad' | 'decimal-pad' | 'email-address' | 'phone-pad' | 'url';
|
|
39
|
+
export type NativeTextContentType = 'none' | 'name' | 'emailAddress' | 'telephoneNumber' | 'URL' | 'oneTimeCode';
|
|
40
|
+
export type NativeAutoCapitalize = 'none' | 'sentences' | 'words' | 'characters';
|
|
41
|
+
/** The purpose a password entry serves: an existing credential, or one being created. */
|
|
42
|
+
export type PasswordPurpose = 'current' | 'new';
|
|
43
|
+
/**
|
|
44
|
+
* What the host knows about a control beyond the control hint itself.
|
|
45
|
+
*
|
|
46
|
+
* A hint is semantic and cannot state whether a password field signs in or creates an account;
|
|
47
|
+
* only the page knows that. The default is `current-password`, the answer that never offers to
|
|
48
|
+
* save a secret the user did not create here.
|
|
49
|
+
*/
|
|
50
|
+
export interface InputHintOptions {
|
|
51
|
+
readonly passwordPurpose?: PasswordPurpose;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The hints one control declares, or the neutral container answer for none.
|
|
55
|
+
*
|
|
56
|
+
* Pure and module-cached: the same control returns the same frozen object, so a control may
|
|
57
|
+
* use the result as a memo key without allocating one per render.
|
|
58
|
+
*/
|
|
59
|
+
export declare function getInputHints(control: Control | undefined, options?: InputHintOptions): InputHints;
|
|
60
|
+
//# sourceMappingURL=hints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hints.d.ts","sourceRoot":"","sources":["../src/hints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB,uFAAuF;IACvF,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,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