@azx-pbc/axiom-native 0.0.0-stage → 0.0.1

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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +95 -2
  3. package/dist/configurator.d.ts +39 -0
  4. package/dist/configurator.d.ts.map +1 -0
  5. package/dist/configurator.js +420 -0
  6. package/dist/configurator.js.map +1 -0
  7. package/dist/controls.d.ts +64 -0
  8. package/dist/controls.d.ts.map +1 -0
  9. package/dist/controls.js +8 -0
  10. package/dist/controls.js.map +1 -0
  11. package/dist/copy.d.ts +216 -0
  12. package/dist/copy.d.ts.map +1 -0
  13. package/dist/copy.js +2574 -0
  14. package/dist/copy.js.map +1 -0
  15. package/dist/fields.d.ts +9 -0
  16. package/dist/fields.d.ts.map +1 -0
  17. package/dist/fields.js +1365 -0
  18. package/dist/fields.js.map +1 -0
  19. package/dist/host.d.ts +90 -0
  20. package/dist/host.d.ts.map +1 -0
  21. package/dist/host.js +8 -0
  22. package/dist/host.js.map +1 -0
  23. package/dist/index.d.ts +18 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +10 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/input-chain.d.ts +28 -0
  28. package/dist/input-chain.d.ts.map +1 -0
  29. package/dist/input-chain.js +64 -0
  30. package/dist/input-chain.js.map +1 -0
  31. package/dist/render/layout.d.ts +47 -0
  32. package/dist/render/layout.d.ts.map +1 -0
  33. package/dist/render/layout.js +8 -0
  34. package/dist/render/layout.js.map +1 -0
  35. package/dist/render/native.d.ts +85 -0
  36. package/dist/render/native.d.ts.map +1 -0
  37. package/dist/render/native.js +124 -0
  38. package/dist/render/native.js.map +1 -0
  39. package/dist/render/tree.d.ts +50 -0
  40. package/dist/render/tree.d.ts.map +1 -0
  41. package/dist/render/tree.js +636 -0
  42. package/dist/render/tree.js.map +1 -0
  43. package/dist/theme.d.ts +113 -0
  44. package/dist/theme.d.ts.map +1 -0
  45. package/dist/theme.js +211 -0
  46. package/dist/theme.js.map +1 -0
  47. package/package.json +78 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurator.js","sourceRoot":"","sources":["../src/configurator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEhG,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAUjG,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAwC5C;;;;;;GAMG;AACH,MAAM,wBAAwB,GAAqD;IACjF,EAAE,EAAE;QACF,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,iBAAiB;QACxB,OAAO,EAAE,qBAAqB;QAC9B,YAAY,EAAE,8CAA8C;QAC5D,UAAU,EAAE,kCAAkC;QAC9C,aAAa,EAAE,8BAA8B;QAC7C,YAAY,EAAE,wBAAwB;QACtC,YAAY,EAAE,qBAAqB;QACnC,MAAM,EAAE,2BAA2B;QACnC,MAAM,EAAE,mCAAmC;QAC3C,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,YAAY;QACvB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE,+BAA+B;QAC9C,aAAa,EAAE,0CAA0C;QACzD,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,mBAAmB;QAC1B,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,gCAAgC;QAC1C,OAAO,EAAE,GAAG,EAAE,CACZ,2FAA2F;QAC7F,OAAO,EAAE;YACP,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,8B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,CAAC,WAAW,CAAC,CAAC;IACpD,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,MAAM,OAAO,GAAG,wBAAwB,CAAC,WAAW,CAAC,CAAC;IACtD,mBAAmB,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { renderValueText, useForm, useFormState, useFormatMessage } from '@azx-pbc/axiom-react';\nimport type { Proposal, ValueDisplay, WriteProposal } from '@azx-pbc/axiom-react';\nimport { assertNever, canonicalizeRestricted, toEngineOperations } from '@azx-pbc/axiom-runtime';\nimport type {\n CompiledField,\n CompiledSchema,\n EngineOperation,\n EvaluatedSuggestion,\n FormBlocker,\n WireValue,\n} from '@azx-pbc/axiom-runtime';\nimport type { ReactElement } from 'react';\nimport { useCallback, useMemo, useState } from 'react';\nimport { Pressable, StyleSheet, Text, View } from 'react-native';\nimport { useNativeTheme } from './theme.js';\nimport type { NativeTheme } from './theme.js';\n\n/**\n * The confirmation journey on the device: the same protocol the Web example mounts, painted with\n * React Native primitives.\n *\n * A phone has no `<dialog>`, so the panel is inline and non-modal: the readiness summary lists\n * the verdict with every blocker and the alternatives that clear them, and the change set waiting\n * for an answer appears directly above those actions. The store does the deciding either way —\n * accepting commits the state the reader was shown, declining commits nothing and repaints — so\n * the device and the browser reach the same record through the same three methods.\n */\n\n/** The host's own words for the confirmation surface. */\ninterface NativeConfiguratorCopy {\n readonly verdict: string;\n readonly ready: string;\n readonly blocked: string;\n readonly undetermined: string;\n readonly whyBlocked: string;\n readonly nothingBlocks: string;\n readonly alternatives: string;\n readonly confirmTitle: string;\n readonly reason: string;\n readonly effect: string;\n readonly writes: string;\n readonly recompute: string;\n readonly adds: string;\n readonly clears: string;\n readonly pendingServer: string;\n readonly pendingDevice: string;\n readonly keep: string;\n readonly apply: string;\n readonly cancel: string;\n readonly noChange: string;\n readonly refused: (code: string) => string;\n readonly blocker: Readonly<Record<FormBlocker['kind'], string>>;\n}\n\n/**\n * The copy for the catalogues this repository ships.\n *\n * The three configurator documents declare `en` alone, so one entry answers them; the renderer's\n * own sentences are the parity-gated ones in `copy.ts`, and these are the host's words for the\n * confirmation surface only.\n */\nconst NATIVE_CONFIGURATOR_COPY: Readonly<Record<string, NativeConfiguratorCopy>> = {\n en: {\n verdict: 'Readiness',\n ready: 'Ready to submit',\n blocked: 'Cannot be submitted',\n undetermined: 'Waiting on a check this device cannot decide',\n whyBlocked: 'Why this cannot be submitted yet',\n nothingBlocks: 'Nothing blocks a submission.',\n alternatives: 'Suggested alternatives',\n confirmTitle: 'Confirm this change',\n reason: 'Why this needs confirming',\n effect: 'What committing this would change',\n writes: 'Writes',\n recompute: 'Recomputes',\n adds: 'Adds',\n clears: 'Clears',\n pendingServer: 'the server decides this check',\n pendingDevice: 'this device cannot decide this check yet',\n keep: 'Keep this answer',\n apply: 'Apply this change',\n cancel: 'Cancel',\n noChange: 'Nothing in the record changes.',\n refused: () =>\n 'The session refused this change, so nothing was saved. Reload the record, then try again.',\n blocker: {\n rule: 'A check fails',\n required: 'A required answer is missing',\n gate: 'A check stops this form',\n cardinality: 'The row count is outside the allowed range',\n scale: 'A reading is outside its scale',\n media: 'A file does not meet its constraint',\n rowCount: 'A table needs a different number of rows',\n invalidOption: 'A chosen value is not offered',\n unavailableOption: 'A chosen option is unavailable',\n screen: 'A screen blocks the submission',\n },\n },\n};\n\n/** The copy for one locale, falling back to English for a catalogue that states none. */\nfunction nativeConfiguratorCopy(locale: string | undefined): NativeConfiguratorCopy {\n const entry = locale === undefined ? undefined : NATIVE_CONFIGURATOR_COPY[locale];\n const fallback = NATIVE_CONFIGURATOR_COPY['en'];\n if (fallback === undefined) throw new Error('the configurator carries no English copy');\n return entry ?? fallback;\n}\n\n/**\n * Whether a document authorises an alternative, or a condition on one of its options.\n *\n * The journey is for the documents that declare one. This is the Web example's predicate, stated\n * again here rather than imported: the shared module paints `<dialog>` and DOM containers, and a\n * React Native program has no such intrinsics, so the two hosts share the protocol and not the\n * module. Both sides are pinned by behaviour — this one by the case that mounts a document with\n * nothing to confirm and expects no panel.\n */\nexport function declaresAlternatives(artifact: CompiledSchema): boolean {\n if ((artifact.rules ?? []).some((rule) => rule.suggests !== undefined)) return true;\n let found = false;\n const visit = (fields: readonly CompiledField[]): void => {\n for (const field of fields) {\n if (\n (field.options ?? []).some(\n (option) => option.suggests !== undefined || option.availableWhen !== undefined,\n )\n ) {\n found = true;\n return;\n }\n if (field.fields !== undefined) visit(field.fields);\n if (found) return;\n }\n };\n visit(artifact.fields);\n return found;\n}\n\n/** The staged write a screen answers, held above the provider that stages it. */\nexport interface ConfirmationStage {\n readonly proposal: WriteProposal | undefined;\n readonly onWriteProposed: (proposal: WriteProposal) => void;\n}\n\n/**\n * Holds the staged write the screen confirms.\n *\n * `FormProvider` takes the interceptor as a prop, so the state lives above it and the panel below\n * it. The same ten lines are the Web example's `useConfirmationStage`; the two hosts share the\n * protocol and not the module, because a device bundle carries no DOM renderer.\n */\nexport function useConfirmationStage(): ConfirmationStage {\n const [proposal, setProposal] = useState<WriteProposal | undefined>(undefined);\n const onWriteProposed = useCallback((next: WriteProposal) => {\n setProposal(next);\n }, []);\n return { proposal, onWriteProposed };\n}\n\n/** The derived alternative as the latest staged write, preserving the delta's lazy read. */\nfunction asStagedAlternative(target: Proposal, from: WriteProposal): WriteProposal {\n return {\n outcome: target.outcome,\n operations: target.operations,\n candidate: target.candidate,\n addedBlockers: target.addedBlockers,\n get delta() {\n return target.delta;\n },\n binding: from.binding,\n sequence: from.sequence,\n };\n}\n\n/**\n * One operation's identity when an alternative replaces it.\n *\n * Scalar writes and row removals name their exact binding. Row creation also names its payload,\n * so composing an alternative never discards an unrelated row write; an exact duplicate is one\n * write. Canonical values keep numeric and textual row keys distinct.\n */\nfunction operationTarget(operation: EngineOperation): string {\n switch (operation.kind) {\n case 'value':\n case 'null':\n case 'remove':\n return `binding\\u0000${operation.ref.fieldId}\\u0000${canonicalizeRestricted(operation.ref.rowKey ?? null)}`;\n case 'append':\n return `append\\u0000${operation.fieldId}\\u0000${canonicalizeRestricted(operation.value)}`;\n case 'insert':\n return `insert\\u0000${operation.fieldId}\\u0000${String(operation.index)}\\u0000${canonicalizeRestricted(operation.value)}`;\n case 'removeRow':\n return `removeRow\\u0000${operation.fieldId}\\u0000${canonicalizeRestricted(operation.rowKey)}`;\n case 'move':\n return `move\\u0000${operation.fieldId}\\u0000${canonicalizeRestricted(operation.rowKey)}\\u0000${String(operation.toIndex)}`;\n case 'context':\n return `context\\u0000${operation.root}`;\n case 'env':\n case 'access':\n return operation.kind;\n default:\n return assertNever(operation);\n }\n}\n\n/** The label key of every declared field that states one, a record's members included. */\nfunction labelsOf(fields: readonly CompiledField[]): ReadonlyMap<string, string> {\n const labels = new Map<string, string>();\n const visit = (entries: readonly CompiledField[]): void => {\n for (const field of entries) {\n if (field.labelKey !== undefined) labels.set(field.fieldId, field.labelKey);\n if (field.fields !== undefined) visit(field.fields);\n }\n };\n visit(fields);\n return labels;\n}\n\n/**\n * The readiness summary and the change set waiting for an answer.\n *\n * It must be mounted inside the form's provider: it reads the session, stages the alternative the\n * reader presses, and commits or declines the change set through the handle.\n */\nexport function NativeConfigurator({\n stage,\n fields,\n locale,\n display,\n}: {\n readonly stage: ConfirmationStage;\n readonly fields: readonly CompiledField[];\n readonly locale: string | undefined;\n readonly display: ValueDisplay | undefined;\n}): ReactElement {\n const form = useForm();\n const summary = useFormState();\n const translate = useFormatMessage(locale);\n const activeTheme = useNativeTheme();\n const styles = configuratorStylesFor(activeTheme);\n const copy = nativeConfiguratorCopy(locale);\n const labels = useMemo(() => labelsOf(fields), [fields]);\n const label = useCallback(\n (fieldId: string) => {\n const key = labels.get(fieldId);\n return key === undefined ? fieldId : translate(key);\n },\n [labels, translate],\n );\n const [choice, setChoice] = useState<\n { readonly proposal: Proposal; readonly from: WriteProposal | undefined } | undefined\n >(undefined);\n const [notice, setNotice] = useState<string | undefined>(undefined);\n\n /**\n * Derives one alternative and shows its own change set.\n *\n * The alternative repairs the change set that raised the confirmation, so it is applied over\n * it; the bindings it writes itself are dropped from the staged change set, because an\n * alternative that names one of them has decided it.\n */\n const stageAlternative = useCallback(\n (chosen: EvaluatedSuggestion, from: WriteProposal | undefined) => {\n const alternative = toEngineOperations(chosen.operations, 'user');\n const decided = new Set(alternative.map(operationTarget));\n const kept = (from?.operations ?? []).filter(\n (operation) => !decided.has(operationTarget(operation)),\n );\n const proposed = form.propose([...kept, ...alternative]);\n switch (proposed.outcome) {\n case 'refused':\n setNotice(copy.refused(proposed.code));\n return;\n case 'proposed':\n setNotice(undefined);\n setChoice({ proposal: proposed, from });\n return;\n default:\n return assertNever(proposed);\n }\n },\n [copy, form],\n );\n\n const apply = useCallback(\n (target: Proposal) => {\n // The staged sequence lets this apply retire the write the alternative replaces. A separate\n // decline would publish once before the commit, making one accepted change two publishes.\n const from = choice?.from;\n const outcome = form.applyProposal(\n from === undefined ? target : asStagedAlternative(target, from),\n );\n setChoice(undefined);\n setNotice(outcome.outcome === 'refused' ? copy.refused(outcome.code) : undefined);\n },\n [choice, copy, form],\n );\n\n const decline = useCallback(() => {\n if (choice?.from !== undefined) form.discardProposal(choice.from);\n else if (stage.proposal !== undefined) form.discardProposal(stage.proposal);\n setChoice(undefined);\n setNotice(undefined);\n }, [choice, form, stage]);\n\n const staged =\n choice === undefined &&\n stage.proposal !== undefined &&\n summary.pendingProposal?.sequence === stage.proposal.sequence\n ? stage.proposal\n : undefined;\n\n return (\n <View style={styles.panel} testID=\"configurator\">\n <Text style={styles.heading}>{copy.verdict}</Text>\n <Text testID=\"configurator-verdict\" style={styles.verdict}>\n {verdictWord(summary.verdict, copy)}\n </Text>\n {notice === undefined || choice !== undefined || staged !== undefined ? null : (\n <Text style={styles.danger} accessibilityRole=\"alert\" testID=\"configurator-notice\">\n {notice}\n </Text>\n )}\n {summary.blockers.length === 0 ? (\n <Text style={styles.body}>{copy.nothingBlocks}</Text>\n ) : (\n <>\n <Text style={styles.section}>{copy.whyBlocked}</Text>\n {summary.blockers.map((blocker, index) => (\n <View key={`${blocker.kind}:${String(index)}`} testID={`blocker:${blocker.kind}`}>\n <Text style={styles.body}>{blockerSentence(blocker, copy, translate)}</Text>\n {staged === undefined\n ? alternativesOf(blocker).map((suggestion) => (\n <Pressable\n key={suggestion.labelKey}\n accessibilityRole=\"button\"\n accessibilityLabel={translate(suggestion.labelKey)}\n testID={`alternative:${suggestion.labelKey}`}\n onPress={() => {\n stageAlternative(suggestion, choice?.from);\n }}\n style={styles.action}\n >\n <Text style={styles.actionText}>{translate(suggestion.labelKey)}</Text>\n </Pressable>\n ))\n : null}\n </View>\n ))}\n </>\n )}\n {summary.hasDeferredChecks ? (\n <Text style={styles.pending} testID=\"configurator-deferred\">\n {copy.pendingServer}\n </Text>\n ) : null}\n {choice === undefined && staged === undefined ? null : (\n <View style={styles.panel} testID=\"configurator-confirm\">\n <Text style={styles.section}>{copy.confirmTitle}</Text>\n <PendingChange\n proposal={choice?.proposal ?? staged}\n from={choice === undefined ? staged : choice.from}\n copy={copy}\n label={label}\n display={display}\n translate={translate}\n styles={styles}\n onChoose={(suggestion, from) => {\n stageAlternative(suggestion, from);\n }}\n />\n {notice === undefined ? null : (\n <Text style={styles.danger} accessibilityRole=\"alert\">\n {notice}\n </Text>\n )}\n <View style={styles.actions}>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={choice === undefined ? copy.keep : copy.apply}\n testID=\"configurator-apply\"\n onPress={() => {\n const target = choice?.proposal ?? staged;\n if (target !== undefined) apply(target);\n }}\n style={styles.action}\n >\n <Text style={styles.actionText}>{choice === undefined ? copy.keep : copy.apply}</Text>\n </Pressable>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.cancel}\n testID=\"configurator-cancel\"\n onPress={decline}\n style={styles.action}\n >\n <Text style={styles.actionText}>{copy.cancel}</Text>\n </Pressable>\n </View>\n </View>\n )}\n </View>\n );\n}\n\n/** The alternatives one blocker offers, from the two arms an artifact may author. */\nfunction alternativesOf(blocker: FormBlocker): readonly EvaluatedSuggestion[] {\n switch (blocker.kind) {\n case 'rule':\n case 'unavailableOption':\n return blocker.suggestions ?? [];\n case 'required':\n case 'gate':\n case 'cardinality':\n case 'scale':\n case 'media':\n case 'rowCount':\n case 'invalidOption':\n case 'screen':\n return [];\n default:\n return assertNever(blocker);\n }\n}\n\n/** The change set the reader is confirming: what it writes and what it recomputes. */\nfunction PendingChange({\n proposal,\n from,\n copy,\n label,\n display,\n translate,\n styles,\n onChoose,\n}: {\n readonly proposal: Proposal | undefined;\n readonly from: WriteProposal | undefined;\n readonly copy: NativeConfiguratorCopy;\n readonly label: (fieldId: string) => string;\n readonly display: ValueDisplay | undefined;\n readonly translate: (key: string, params?: Readonly<Record<string, WireValue>>) => string;\n readonly styles: ConfiguratorStyles;\n readonly onChoose: (suggestion: EvaluatedSuggestion, from: WriteProposal | undefined) => void;\n}): ReactElement | null {\n if (proposal === undefined) return null;\n const trigger = from?.addedBlockers.find((blocker) => alternativesOf(blocker).length > 0);\n const writes = proposal.operations.filter((operation) => isValueWrite(operation));\n const delta = proposal.delta;\n // A check that was already pending still belongs in this candidate's answer, even though the\n // delta names only checks whose status moved.\n const pending = proposal.candidate.report.rules.filter(\n (result) => result.status === 'DEFERRED' || result.status === 'UNKNOWN',\n );\n return (\n <>\n {trigger === undefined ? null : (\n <>\n <Text style={styles.section}>{copy.reason}</Text>\n <Text style={styles.body} testID=\"configurator-reason\">\n {blockerSentence(trigger, copy, translate)}\n </Text>\n <Text style={styles.section}>{copy.alternatives}</Text>\n {alternativesOf(trigger).map((suggestion) => (\n <Pressable\n key={suggestion.labelKey}\n accessibilityRole=\"button\"\n accessibilityLabel={translate(suggestion.labelKey)}\n testID={`alternative:${suggestion.labelKey}`}\n onPress={() => {\n onChoose(suggestion, from);\n }}\n style={styles.action}\n >\n <Text style={styles.actionText}>{translate(suggestion.labelKey)}</Text>\n </Pressable>\n ))}\n </>\n )}\n <Text style={styles.section}>{copy.effect}</Text>\n {writes.length === 0 && delta.changedComputations.length === 0 ? (\n <Text style={styles.body}>{copy.noChange}</Text>\n ) : null}\n {writes.map((operation, index) => (\n <Text key={`${operationTarget(operation)}:${String(index)}`} style={styles.body}>\n {`${copy.writes} ${label(writtenFieldOf(operation))}: ${writtenTextOf(\n operation,\n display,\n )}`}\n </Text>\n ))}\n {delta.changedComputations.map((change, index) => (\n <Text\n key={`${change.fieldId}:${String(index)}`}\n style={styles.body}\n testID={`computed:${change.fieldId}`}\n >\n {`${copy.recompute} ${label(change.fieldId)}: ${renderValueText(\n change.before,\n display,\n )} → ${renderValueText(change.after, display)}`}\n </Text>\n ))}\n {delta.clearedBlockers.map((blocker, index) => (\n <Text key={`cleared:${String(index)}`} style={styles.body}>\n {`${copy.clears} ${blockerSentence(blocker, copy, translate)}`}\n </Text>\n ))}\n {delta.addedBlockers.map((blocker, index) => (\n <Text key={`added:${String(index)}`} style={styles.body}>\n {`${copy.adds} ${blockerSentence(blocker, copy, translate)}`}\n </Text>\n ))}\n {pending.map((check, index) => (\n <Text key={`pending:${String(index)}`} style={styles.pending}>\n {`${\n check.messageKey === undefined\n ? check.ruleId\n : translate(check.messageKey, check.params)\n } — ${check.status === 'DEFERRED' ? copy.pendingServer : copy.pendingDevice}`}\n </Text>\n ))}\n </>\n );\n}\n\n/** The answers a change set writes. */\nfunction isValueWrite(operation: EngineOperation): boolean {\n switch (operation.kind) {\n case 'value':\n case 'null':\n case 'remove':\n case 'append':\n case 'insert':\n case 'removeRow':\n case 'move':\n return true;\n case 'context':\n case 'env':\n case 'access':\n return false;\n default:\n return assertNever(operation);\n }\n}\n\n/** The field one written operation names. */\nfunction writtenFieldOf(operation: EngineOperation): string {\n switch (operation.kind) {\n case 'value':\n case 'null':\n case 'remove':\n return operation.ref.fieldId;\n case 'append':\n case 'insert':\n case 'removeRow':\n case 'move':\n return operation.fieldId;\n case 'context':\n case 'env':\n case 'access':\n throw new Error(`${operation.kind} names no field`);\n default:\n return assertNever(operation);\n }\n}\n\n/** What one written operation states as its effect. */\nfunction writtenTextOf(operation: EngineOperation, display: ValueDisplay | undefined): string {\n switch (operation.kind) {\n case 'value':\n return renderValueText(operation.value, display);\n case 'null':\n case 'remove':\n return '—';\n case 'append':\n case 'insert':\n return '+1';\n case 'removeRow':\n return '-1';\n case 'move':\n return '↕';\n case 'context':\n case 'env':\n case 'access':\n return '';\n default:\n return assertNever(operation);\n }\n}\n\n/** The one word a verdict reads as. */\nfunction verdictWord(\n verdict: 'SUBMIT' | 'BLOCKED' | 'UNDETERMINED',\n copy: NativeConfiguratorCopy,\n): string {\n switch (verdict) {\n case 'SUBMIT':\n return copy.ready;\n case 'BLOCKED':\n return copy.blocked;\n case 'UNDETERMINED':\n return copy.undetermined;\n default:\n return assertNever(verdict);\n }\n}\n\n/** The sentence a blocker reads as. */\nfunction blockerSentence(\n blocker: FormBlocker,\n copy: NativeConfiguratorCopy,\n translate: (key: string, params?: Readonly<Record<string, WireValue>>) => string,\n): string {\n switch (blocker.kind) {\n case 'rule':\n case 'required':\n case 'gate':\n return blocker.messageKey === undefined\n ? copy.blocker[blocker.kind]\n : translate(blocker.messageKey, blocker.params);\n case 'unavailableOption':\n return blocker.messageKey === undefined\n ? copy.blocker.unavailableOption\n : translate(blocker.messageKey, blocker.params);\n case 'screen':\n return blocker.messageKey === undefined ? copy.blocker.screen : translate(blocker.messageKey);\n case 'scale':\n case 'cardinality':\n case 'rowCount':\n case 'media':\n case 'invalidOption':\n return copy.blocker[blocker.kind];\n default:\n return assertNever(blocker);\n }\n}\n\nfunction createConfiguratorStyles(activeTheme: NativeTheme) {\n return StyleSheet.create({\n panel: {\n marginTop: activeTheme.space.section,\n padding: activeTheme.space.medium,\n borderWidth: 1,\n borderColor: activeTheme.color.border,\n borderRadius: activeTheme.radius.panel,\n backgroundColor: activeTheme.color.surface,\n gap: activeTheme.space.tight,\n },\n heading: {\n fontSize: activeTheme.text.section,\n fontWeight: activeTheme.weight.semibold,\n color: activeTheme.color.ink,\n },\n section: {\n marginTop: activeTheme.space.small,\n fontSize: activeTheme.text.label,\n fontWeight: activeTheme.weight.semibold,\n color: activeTheme.color.ink,\n },\n verdict: { fontSize: activeTheme.text.body, color: activeTheme.color.ink },\n body: { fontSize: activeTheme.text.body, color: activeTheme.color.ink },\n pending: { fontSize: activeTheme.text.caption, color: activeTheme.color.muted },\n danger: { fontSize: activeTheme.text.body, color: activeTheme.color.danger },\n actions: { flexDirection: 'row', flexWrap: 'wrap', gap: activeTheme.space.small },\n action: {\n minHeight: activeTheme.size.target,\n minWidth: activeTheme.size.target,\n paddingHorizontal: activeTheme.space.medium,\n justifyContent: 'center',\n borderWidth: 1,\n borderColor: activeTheme.color.accent,\n borderRadius: activeTheme.radius.chip,\n marginTop: activeTheme.space.tight,\n },\n actionText: { fontSize: activeTheme.text.body, color: activeTheme.color.accent },\n });\n}\n\ntype ConfiguratorStyles = ReturnType<typeof createConfiguratorStyles>;\n\nconst CONFIGURATOR_STYLES = new WeakMap<NativeTheme, ConfiguratorStyles>();\n\nfunction configuratorStylesFor(activeTheme: NativeTheme): ConfiguratorStyles {\n const cached = CONFIGURATOR_STYLES.get(activeTheme);\n if (cached !== undefined) return cached;\n const created = createConfiguratorStyles(activeTheme);\n CONFIGURATOR_STYLES.set(activeTheme, created);\n return created;\n}\n"]}
@@ -0,0 +1,64 @@
1
+ import type { Context, ReactElement } from 'react';
2
+ import type { FieldError, FieldProps, RenderControlNode, RenderTranslate } from '@azx-pbc/axiom-react';
3
+ import type { Control, FieldOption, WireValue } from '@azx-pbc/axiom-runtime';
4
+ import type { ControlA11yProps } from './render/native.js';
5
+ import type { NativeTheme } from './theme.js';
6
+ /** The presentation hints a compiled field carries for a custom native control. */
7
+ export interface ControlConstraints {
8
+ readonly minimum: number | string | undefined;
9
+ readonly maximum: number | string | undefined;
10
+ readonly step: number | string | undefined;
11
+ readonly units: readonly string[] | undefined;
12
+ readonly accept: readonly string[] | undefined;
13
+ readonly minBytes: number | undefined;
14
+ readonly maxBytes: number | undefined;
15
+ readonly scale: number | undefined;
16
+ readonly currency: string | undefined;
17
+ }
18
+ /**
19
+ * The controlled props every custom native control slot receives.
20
+ *
21
+ * `<Control>` continues to paint the field wrapper, label, hint, deferral notice, and error banner;
22
+ * the custom component owns only the interactive entry and receives both the full `field` binding
23
+ * and the projected `a11y` and `theme` values needed to stay accessible and controlled.
24
+ */
25
+ export interface ControlComponentProps {
26
+ /** The render node describing this control (declaration, control hint, label, hints). */
27
+ readonly node: RenderControlNode;
28
+ /** The live binding state from `useField`, including value, setters, access, and visible errors. */
29
+ readonly field: FieldProps;
30
+ /** The document's message formatter, for translating option labels or custom UI copy. */
31
+ readonly translate: RenderTranslate;
32
+ /** Projected native accessibility props ready to spread onto an interactive component. */
33
+ readonly a11y: ControlA11yProps;
34
+ /** The active runtime theme tokens from `NativeThemeContext`. */
35
+ readonly theme: NativeTheme;
36
+ /** The submitted wire value, or `undefined` when absent or withheld. */
37
+ readonly value: WireValue | undefined;
38
+ /** Throwing write path bound to this field. */
39
+ readonly setValue: (value: WireValue) => void;
40
+ /**
41
+ * Non-throwing write path: returns the engine outcome (`committed` or `refused`) instead of
42
+ * throwing `WriteRefusedError`, so a custom control can inspect and display expected refusals.
43
+ */
44
+ readonly trySetValue: NonNullable<FieldProps['trySetValue']>;
45
+ /** The first visible error for this control, when any is currently revealed. */
46
+ readonly error: FieldError | undefined;
47
+ readonly required: boolean;
48
+ readonly disabled: boolean;
49
+ readonly readOnly: boolean;
50
+ readonly mayWrite: boolean;
51
+ /** Declared static options when present on the field declaration. */
52
+ readonly options: readonly FieldOption[] | undefined;
53
+ /** Compiled presentation constraints for range, units, scale, currency, and media bounds. */
54
+ readonly constraints: ControlConstraints;
55
+ }
56
+ /** A host component that replaces one default native control entry. */
57
+ export type ControlComponent = (props: ControlComponentProps) => ReactElement | null;
58
+ /** The slot map a host supplies to `RenderedForm`, `LayoutTree`, or `ControlComponentsContext`. */
59
+ export type ControlComponents = Partial<Record<Control | 'signature' | 'media', ControlComponent>>;
60
+ /** The map in force for the tree; absent means every control uses the adapter's default. */
61
+ export declare const ControlComponentsContext: Context<ControlComponents | undefined>;
62
+ /** The control slot map currently in force, or `undefined` when the host supplies none. */
63
+ export declare function useControlComponents(): ControlComponents | undefined;
64
+ //# sourceMappingURL=controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../src/controls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAA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,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEnG,4FAA4F;AAC5F,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAEhE,CAAC;AAEb,2FAA2F;AAC3F,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,SAAS,CAEpE"}
@@ -0,0 +1,8 @@
1
+ import { createContext, useContext } from 'react';
2
+ /** The map in force for the tree; absent means every control uses the adapter's default. */
3
+ export const ControlComponentsContext = createContext(undefined);
4
+ /** The control slot map currently in force, or `undefined` when the host supplies none. */
5
+ export function useControlComponents() {
6
+ return useContext(ControlComponentsContext);
7
+ }
8
+ //# sourceMappingURL=controls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controls.js","sourceRoot":"","sources":["../src/controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAsElD,4FAA4F;AAC5F,MAAM,CAAC,MAAM,wBAAwB,GAA2C,aAAa,CAE3F,SAAS,CAAC,CAAC;AAEb,2FAA2F;AAC3F,MAAM,UAAU,oBAAoB;IAClC,OAAO,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAC9C,CAAC","sourcesContent":["import { createContext, useContext } from 'react';\nimport type { Context, ReactElement } from 'react';\nimport type {\n FieldError,\n FieldProps,\n RenderControlNode,\n RenderTranslate,\n} from '@azx-pbc/axiom-react';\nimport type { Control, FieldOption, WireValue } from '@azx-pbc/axiom-runtime';\nimport type { ControlA11yProps } from './render/native.js';\nimport type { NativeTheme } from './theme.js';\n\n/** The presentation hints a compiled field carries for a custom native control. */\nexport interface ControlConstraints {\n readonly minimum: number | string | undefined;\n readonly maximum: number | string | undefined;\n readonly step: number | string | undefined;\n readonly units: readonly string[] | undefined;\n readonly accept: readonly string[] | undefined;\n readonly minBytes: number | undefined;\n readonly maxBytes: number | undefined;\n readonly scale: number | undefined;\n readonly currency: string | undefined;\n}\n\n/**\n * The controlled props every custom native control slot receives.\n *\n * `<Control>` continues to paint the field wrapper, label, hint, deferral notice, and error banner;\n * the custom component owns only the interactive entry and receives both the full `field` binding\n * and the projected `a11y` and `theme` values needed to stay accessible and controlled.\n */\nexport interface ControlComponentProps {\n /** The render node describing this control (declaration, control hint, label, hints). */\n readonly node: RenderControlNode;\n /** The live binding state from `useField`, including value, setters, access, and visible errors. */\n readonly field: FieldProps;\n /** The document's message formatter, for translating option labels or custom UI copy. */\n readonly translate: RenderTranslate;\n /** Projected native accessibility props ready to spread onto an interactive component. */\n readonly a11y: ControlA11yProps;\n /** The active runtime theme tokens from `NativeThemeContext`. */\n readonly theme: NativeTheme;\n /** The submitted wire value, or `undefined` when absent or withheld. */\n readonly value: WireValue | undefined;\n /** Throwing write path bound to this field. */\n readonly setValue: (value: WireValue) => void;\n /**\n * Non-throwing write path: returns the engine outcome (`committed` or `refused`) instead of\n * throwing `WriteRefusedError`, so a custom control can inspect and display expected refusals.\n */\n readonly trySetValue: NonNullable<FieldProps['trySetValue']>;\n /** The first visible error for this control, when any is currently revealed. */\n readonly error: FieldError | undefined;\n readonly required: boolean;\n readonly disabled: boolean;\n readonly readOnly: boolean;\n readonly mayWrite: boolean;\n /** Declared static options when present on the field declaration. */\n readonly options: readonly FieldOption[] | undefined;\n /** Compiled presentation constraints for range, units, scale, currency, and media bounds. */\n readonly constraints: ControlConstraints;\n}\n\n/** A host component that replaces one default native control entry. */\nexport type ControlComponent = (props: ControlComponentProps) => ReactElement | null;\n\n/** The slot map a host supplies to `RenderedForm`, `LayoutTree`, or `ControlComponentsContext`. */\nexport type ControlComponents = Partial<Record<Control | 'signature' | 'media', ControlComponent>>;\n\n/** The map in force for the tree; absent means every control uses the adapter's default. */\nexport const ControlComponentsContext: Context<ControlComponents | undefined> = createContext<\n ControlComponents | undefined\n>(undefined);\n\n/** The control slot map currently in force, or `undefined` when the host supplies none. */\nexport function useControlComponents(): ControlComponents | undefined {\n return useContext(ControlComponentsContext);\n}\n"]}
package/dist/copy.d.ts ADDED
@@ -0,0 +1,216 @@
1
+ import type { Context } from 'react';
2
+ import type { BufferRefusalReason, ValueDisplay } from '@azx-pbc/axiom-react';
3
+ import type { FieldAccess } from '@azx-pbc/axiom-runtime';
4
+ import type { OfflineRefusal, PublishRefusal } from '@azx-pbc/axiom-runtime/cache';
5
+ /**
6
+ * The host's copy for the failures an artifact states no message key for.
7
+ *
8
+ * The runtime and the bindings deliberately invent no i18n key for `required`, `invalid-value`,
9
+ * `access` or a refused screen, because an artifact that never declared one cannot be given one
10
+ * here. A host must therefore supply the words — and must supply them *per locale*, or a Spanish
11
+ * form shows a Spanish label inside an English sentence. This module is that host: one small
12
+ * catalogue for the nine locales the shipped copy carries, and an English default for a locale it
13
+ * has not been given.
14
+ *
15
+ * The sentences the reference renderer also paints are **its** words, not this example's:
16
+ * `required`, `cardinality`, `mediaConstraint`, `rowCount`, `invalidValue`, `unavailableOption`,
17
+ * `emptyOptions`, `undeterminedOption`, `loadMoreOptions`, `deferredValue`, `notEditable`,
18
+ * `rowKey`, `sectionToggle`, the row controls (`rowsEmpty`, `nestedListRefused`, `rowRemoved`,
19
+ * `rowAtPosition`, `addRow`, `removeRow`, `rowRemoveFailed`, `rowAddFailed`, `rowRefused`),
20
+ * `captureSignature`, `captureFailed`, `signerFailed`, `signatureUnavailable`, and `buffer` must
21
+ * read exactly as `@azx-pbc/axiom-web`'s `FormCopy` does.
22
+ * This example cannot import that package (it is the DOM renderer, and a native bundle must not
23
+ * carry `react-dom`), so the table is duplicated deliberately and `test/a11y/copy-parity.test.ts`
24
+ * holds every shared key to the reference catalogue. A change to a sentence belongs in both
25
+ * tables; the gate fails until it is made.
26
+ *
27
+ * `display` is a value formatter rather than a sentence. It matches `@azx-pbc/axiom-web` across
28
+ * booleans, lists, decimals, money amounts, quantities, durations, addresses, coordinates, civil
29
+ * dates, UTC instants, and row-array counts across all nine locales without calling `Intl`.
30
+ *
31
+ * This example owns eighteen keys absent from `FormCopy`, pinned by `NATIVE_OWNED` in
32
+ * `test/a11y/copy-parity.test.ts`: `screenUnavailable` (states the screen id when no artifact
33
+ * catalogue is at hand), `optionsNeedDependencies` (prompts for unanswered host-source
34
+ * prerequisite fields), and the sixteen offline cache screen keys (`cacheLoading`,
35
+ * `cacheOpenFailed`, `cacheOpenFailedDetail`, `cacheOffline`, `cacheRetry`, `cacheSubmit`,
36
+ * `cacheSubmitWriteFailed`, `cacheSubmitInvalid`, `cacheSavedQueued`, `cacheSavedExisting`,
37
+ * `cacheDraftTitle`, `cacheDraftBody`, `cacheDraftResume`, `cacheDraftDiscard`, `cacheRefusal`,
38
+ * `cachePublishRefusal`).
39
+ *
40
+ * The two ports below follow the same rule. A buffered entry refuses with a stable reason key,
41
+ * which the host translates here; and a boolean or a list has no locale-neutral spelling, so the
42
+ * host supplies the text through `display`, which the provider receives as `valueDisplay`.
43
+ */
44
+ export interface HostCopy {
45
+ /**
46
+ * A binding the record does not satisfy.
47
+ *
48
+ * A row-scoped binding passes the row's key, because several rows of one record share a label:
49
+ * "Make is required" in a summary names the field but not which of three rows it is about. A
50
+ * host-assigned `row_<n>` key is not natural-language material and is not spoken.
51
+ */
52
+ readonly required: (label: string, rowName?: string) => string;
53
+ /** A repeating record outside its declared entry count. A minimum of zero states nothing. */
54
+ readonly cardinality: (label: string, bound: 'minItems' | 'maxItems', count: number, limit: number) => string | undefined;
55
+ /** A captured media value outside its declared type or byte bound. */
56
+ readonly mediaConstraint: (label: string, member: 'accept' | 'minBytes' | 'maxBytes', limit: readonly string[] | number, value: string | number) => string;
57
+ /** An array whose declared `rowsFrom` count differs from its length, or was refused. */
58
+ readonly rowCount: (label: string, expected: number, actual: number, source: string, reason?: 'integer' | 'negative' | 'ceiling', ceiling?: number) => string;
59
+ /** A selection the field's domain no longer offers. */
60
+ readonly invalidValue: (label: string) => string;
61
+ /** A held selection the domain offers and this record may not choose. */
62
+ readonly unavailableOption: (label: string) => string;
63
+ /** A host domain that resolved without offering an option. */
64
+ readonly emptyOptions: () => string;
65
+ /** A host option source whose prerequisite fields have not been answered yet. */
66
+ readonly optionsNeedDependencies: (labels: readonly string[]) => string;
67
+ /**
68
+ * An offered code whose availability is still an open question, `RULES-7.1.1`.
69
+ *
70
+ * It is a different answer from `unavailableOption`: the record may hold the code, and the
71
+ * device cannot yet say whether it may. The cause names which question is open — a server
72
+ * handoff, or an answer this device does not hold.
73
+ */
74
+ readonly undeterminedOption: (label: string, optionLabel: string, cause: 'deferred' | 'unknown') => string;
75
+ /** The reader-controlled action that asks a host option source for its next page. */
76
+ readonly loadMoreOptions: () => string;
77
+ /** The visible handoff beside a value this device did not receive. */
78
+ readonly deferredValue: () => string;
79
+ /** A binding whose resolved access withholds the write, in the words of the withholding. */
80
+ readonly notEditable: (label: string, access: FieldAccess) => string;
81
+ /** A reserved row key another row already holds, naming the field it belongs to. */
82
+ readonly rowKey: (label: string, rowName?: string) => string;
83
+ /** The collapse toggle a collapsible section or group renders. */
84
+ readonly sectionToggle: (title: string | undefined, expanded: boolean) => string;
85
+ /** A repeating record with no committed rows. */
86
+ readonly rowsEmpty: () => string;
87
+ /** An array declared inside another array's row, which v1 cannot address. */
88
+ readonly nestedListRefused: () => string;
89
+ /** The polite count after a row is removed. */
90
+ readonly rowRemoved: (count: number) => string;
91
+ /** A row's name when the host assigned no natural key. */
92
+ readonly rowAtPosition: (position: number) => string;
93
+ /** The accessible label suffix for a required field (`required`, `obligatorio`, etc.). */
94
+ readonly requiredMarker: () => string;
95
+ /** The add-row button. */
96
+ readonly addRow: () => string;
97
+ /** The remove-row button, naming the row it removes. */
98
+ readonly removeRow: (name: string) => string;
99
+ /** A structural refusal on removal; the engine's detail is rendered apart from it. */
100
+ readonly rowRemoveFailed: () => string;
101
+ /** A structural refusal on append; the engine's detail is rendered apart from it. */
102
+ readonly rowAddFailed: () => string;
103
+ /** The fallback when a structural refusal is not an `Error`. */
104
+ readonly rowRefused: () => string;
105
+ /** Moves one ranked item earlier in the respondent's order. */
106
+ readonly rankMoveUp: (label: string) => string;
107
+ /** Moves one ranked item later in the respondent's order. */
108
+ readonly rankMoveDown: (label: string) => string;
109
+ /** Removes one ranked item from the respondent's order. */
110
+ readonly rankRemove: (label: string) => string;
111
+ /** Labels for the six declared members of an `address` record (`MODEL-2.1.25`). */
112
+ readonly addressLine1: () => string;
113
+ readonly addressLine2: () => string;
114
+ readonly addressCity: () => string;
115
+ readonly addressRegion: () => string;
116
+ readonly addressPostalCode: () => string;
117
+ readonly addressCountry: () => string;
118
+ /** The host action that asks the signer for a signature over the record as shown. */
119
+ readonly captureSignature: (label: string) => string;
120
+ /** A capture the signer did not answer; the host's detail is rendered apart from it. */
121
+ readonly captureFailed: () => string;
122
+ /** A signer that threw or rejected without a message of its own. */
123
+ readonly signerFailed: () => string;
124
+ /** The host action that opens the media picker or camera for a `media_capture` field. */
125
+ readonly attachMedia: () => string;
126
+ /** The control that clears an attached media reference, naming the field or file. */
127
+ readonly removeMedia: (name: string) => string;
128
+ /** A media capture that did not complete; the host's detail is rendered apart from it. */
129
+ readonly mediaFailed: () => string;
130
+ /** The host action that requests the device's current position for a `map` field. */
131
+ readonly positionCapture: (label: string) => string;
132
+ /** Shown while the device is waiting for a position reading. */
133
+ readonly positionRequesting: () => string;
134
+ /** Shown when location permission was denied. */
135
+ readonly positionDenied: () => string;
136
+ /** Shown when the device cannot provide a position reading. */
137
+ readonly positionUnavailable: () => string;
138
+ /** Shown when the position request timed out. */
139
+ readonly positionTimedOut: () => string;
140
+ /** Shown when the position provider threw or rejected. */
141
+ readonly positionFailed: () => string;
142
+ /** Shown when the device returned coordinates outside the valid range. */
143
+ readonly positionInvalidReading: () => string;
144
+ /**
145
+ * A block-severity screen that did not pass.
146
+ *
147
+ * Native-only: see the module docblock. The Web renderer states the screen's own message key;
148
+ * this example states the screen id because it carries no artifact catalogue.
149
+ */
150
+ readonly screenUnavailable: (screenId: string) => string;
151
+ /** One refused buffered entry, from the stable reason key the layer states. */
152
+ readonly buffer: (reason: BufferRefusalReason | ExtraBufferReason, params: BufferParams) => string;
153
+ /** The locale text for a value whose canonical spelling is not display text. */
154
+ readonly display: ValueDisplay;
155
+ /** The cached form's loading line, shown before the artifact is admitted. */
156
+ readonly cacheLoading: () => string;
157
+ /** The title shown when the cached copy cannot be opened at all. */
158
+ readonly cacheOpenFailed: () => string;
159
+ /** The sentence for a generic open failure, naming no code and no digest. */
160
+ readonly cacheOpenFailedDetail: () => string;
161
+ /** The title shown when the offline gate refuses the held copy. */
162
+ readonly cacheOffline: () => string;
163
+ /** The retry control on the failed and refused branches. */
164
+ readonly cacheRetry: () => string;
165
+ /** The cached form's submit control. */
166
+ readonly cacheSubmit: () => string;
167
+ /** A submit whose queue, draft or report write was refused; input stays on screen. */
168
+ readonly cacheSubmitWriteFailed: () => string;
169
+ /** A submit the form's own validation blocks. */
170
+ readonly cacheSubmitInvalid: () => string;
171
+ /** A submission the device stored and will send when it is back online. */
172
+ readonly cacheSavedQueued: () => string;
173
+ /** A submission that was already stored, and will send when back online. */
174
+ readonly cacheSavedExisting: () => string;
175
+ /** The title of the saved-answers choice offered before the form mounts. */
176
+ readonly cacheDraftTitle: () => string;
177
+ /** The saved-answers choice, naming when the draft was kept. */
178
+ readonly cacheDraftBody: (updatedAt: string) => string;
179
+ /** The control that resumes the saved answers. */
180
+ readonly cacheDraftResume: () => string;
181
+ /** The control that discards the saved answers and starts fresh. */
182
+ readonly cacheDraftDiscard: () => string;
183
+ /** A signature the device cannot perform, in words as well as read-only. */
184
+ readonly signatureUnavailable: (label: string) => string;
185
+ /** One offline-gate refusal, with per-reason action language and no code. */
186
+ readonly cacheRefusal: (refusal: OfflineRefusal) => string;
187
+ /** One publish refusal, with per-reason action language and no digest. */
188
+ readonly cachePublishRefusal: (refusal: PublishRefusal) => string;
189
+ }
190
+ /** The values a buffer refusal message interpolates. */
191
+ export type BufferParams = Readonly<Record<string, string | number>> | undefined;
192
+ /**
193
+ * The refusal keys the web layer states where the parser's key would name the wrong family.
194
+ *
195
+ * The native package renders the same `buffer` door, so the table is closed over them too: a host
196
+ * that forwards one of these keys reads a sentence rather than a printed key, and the parity gate
197
+ * holds every one to the reference catalogue.
198
+ */
199
+ export type ExtraBufferReason = 'buffer.quantity.scale_exceeded' | 'buffer.percentage.digits' | 'buffer.percentage.no_point' | 'buffer.percentage.not_safe' | 'buffer.integer.minimum' | 'buffer.integer.maximum' | 'buffer.integer.range' | 'buffer.integer.step';
200
+ /**
201
+ * The locales this catalogue carries, in the order the tables state them.
202
+ *
203
+ * It is the same order and set as `@azx-pbc/axiom-web`'s `FORM_COPY_LOCALES`; the parity gate holds
204
+ * the two lists equal, so a locale the reference renderer carries and this example does not is a
205
+ * failing case rather than a silent English fallback.
206
+ */
207
+ export declare const HOST_COPY_LOCALES: readonly ['en', 'es', 'pt', 'fr', 'ar', 'de', 'it', 'ru', 'zh'];
208
+ /** One locale this catalogue carries. */
209
+ export type HostCopyLocale = (typeof HOST_COPY_LOCALES)[number];
210
+ /** The host copy for one locale, falling back to English for a locale it does not carry. */
211
+ export declare function hostCopy(locale: string | undefined): HostCopy;
212
+ /** The copy the rendered tree reads; the page supplies the provider for the selected locale. */
213
+ export declare const HostCopyContext: Context<HostCopy>;
214
+ /** The host copy in force for the tree being rendered. */
215
+ export declare function useHostCopy(): HostCopy;
216
+ //# sourceMappingURL=copy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../src/copy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAS9E,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGxE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,QAAQ;IACvB;;;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