@azx-pbc/axiom-native 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 +95 -2
- package/dist/configurator.d.ts +39 -0
- package/dist/configurator.d.ts.map +1 -0
- package/dist/configurator.js +420 -0
- package/dist/configurator.js.map +1 -0
- package/dist/controls.d.ts +64 -0
- package/dist/controls.d.ts.map +1 -0
- package/dist/controls.js +8 -0
- package/dist/controls.js.map +1 -0
- package/dist/copy.d.ts +216 -0
- package/dist/copy.d.ts.map +1 -0
- package/dist/copy.js +2574 -0
- package/dist/copy.js.map +1 -0
- package/dist/fields.d.ts +9 -0
- package/dist/fields.d.ts.map +1 -0
- package/dist/fields.js +1365 -0
- package/dist/fields.js.map +1 -0
- package/dist/host.d.ts +90 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +8 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/input-chain.d.ts +28 -0
- package/dist/input-chain.d.ts.map +1 -0
- package/dist/input-chain.js +64 -0
- package/dist/input-chain.js.map +1 -0
- package/dist/render/layout.d.ts +47 -0
- package/dist/render/layout.d.ts.map +1 -0
- package/dist/render/layout.js +8 -0
- package/dist/render/layout.js.map +1 -0
- package/dist/render/native.d.ts +85 -0
- package/dist/render/native.d.ts.map +1 -0
- package/dist/render/native.js +124 -0
- package/dist/render/native.js.map +1 -0
- package/dist/render/tree.d.ts +50 -0
- package/dist/render/tree.d.ts.map +1 -0
- package/dist/render/tree.js +636 -0
- package/dist/render/tree.js.map +1 -0
- package/dist/theme.d.ts +113 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +211 -0
- package/dist/theme.js.map +1 -0
- package/package.json +78 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceR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AC;YACd,WAAW,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM;YACrC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI;YACrC,eAAe,EAAE,WAAW,CAAC,KAAK,CAAC,OAAO;SAC3C;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM;YAC3C,eAAe,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK;YACxC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM;YAClC,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM;YACjC,cAAc,EAAE,QAAQ;YACxB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM;YACrC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI;YACrC,eAAe,EAAE,WAAW,CAAC,KAAK,CAAC,OAAO;SAC3C;QACD,kFAAkF;QAClF,QAAQ,EAAE;YACR,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,KAAK;YAC9B,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI;SAChC;KACF,CAAC,CAAC;AACL,CAAC;AAID,MAAM,YAAY,GAAG,IAAI,OAAO,EAA4B,CAAC;AAE7D,SAAS,cAAc,CAAC,WAAwB;IAC9C,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC7C,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,MAAM,OAAO,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC/C,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACvC,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import {\n renderDisplayText,\n renderValueText,\n useAsyncOptions,\n useBufferedInput,\n useField,\n useFields,\n useForm,\n} from '@azx-pbc/axiom-react';\nimport type {\n BufferedFormat,\n FieldProps,\n RenderControlNode,\n RenderTranslate,\n} from '@azx-pbc/axiom-react';\nimport {\n AxiomDecimal,\n AxiomError,\n COUNTRY_CODE_PATTERN,\n WriteRefusedError,\n assertNever,\n canonicalDecimal,\n canonicalizeRestricted,\n isRecord,\n mediaAcceptMatches,\n optionCodeValue,\n sameWireValue,\n} from '@azx-pbc/axiom-runtime';\nimport type { BufferRefusalReason } from '@azx-pbc/axiom-react';\nimport type { CompiledField, WireRecord, WireValue } from '@azx-pbc/axiom-runtime';\nimport type { ReactElement } from 'react';\nimport { useCallback, useContext, useEffect, useRef, useState, useSyncExternalStore } from 'react';\nimport { Pressable, StyleSheet, Switch, Text, TextInput, View } from 'react-native';\nimport type { TextInputInstance } from 'react-native';\nimport { useControlComponents } from './controls.js';\nimport { InputChainContext, InputOrderContext } from './input-chain.js';\nimport { controlA11yProps, toNativeProps } from './render/native.js';\nimport type { NativeNodeProps } from './render/native.js';\nimport { useNativeTheme } from './theme.js';\nimport type { NativeTheme } from './theme.js';\nimport { useHostCopy } from './copy.js';\nimport type { HostCopy } from './copy.js';\nimport { useHostActions } from './host.js';\nimport type { HostActions, HostPositionResult, MediaCaptureRequest } from './host.js';\n\n/**\n * One control, painted with React Native primitives.\n *\n * The declared control picks the affordance and the projector supplies the accessibility props,\n * so this file holds layout and touch handling only. A control whose value the device cannot\n * write from the domain it holds is printed as text rather than given a text box that would write\n * a wire shape the contract refuses.\n */\n\ntype ControlPlan =\n | { readonly family: 'buffered'; readonly format: BufferedFormat }\n | { readonly family: 'text' }\n | { readonly family: 'secure' }\n | { readonly family: 'quantity' }\n | { readonly family: 'boolean' }\n | { readonly family: 'boolean-choice' }\n | { readonly family: 'choice' }\n | { readonly family: 'list' }\n | { readonly family: 'rank' }\n | { readonly family: 'signature' }\n | { readonly family: 'media' }\n | { readonly family: 'position' }\n | { readonly family: 'duration' }\n | { readonly family: 'address' };\n\n/**\n * The control-to-affordance table, keyed by the hint and the primitive together.\n *\n * The hint alone is not enough: the wire refuses a value of another shape, and the harness has\n * no way to turn that refusal into a stored value. A hint the compiler admits on a primitive it\n * cannot write — a `checkbox` on a string, a `select` on a boolean — therefore falls back to the\n * primitive's own entry, exactly as the Web adapter does.\n */\nfunction planOf(node: RenderControlNode): ControlPlan {\n const { primitive } = node.declaration;\n switch (node.control) {\n case 'percentage':\n return primitive === 'integer'\n ? { family: 'buffered', format: { kind: 'integer' } }\n : { family: 'buffered', format: { kind: 'decimal' } };\n case 'checkbox':\n case 'switch':\n // A checkbox writes a JSON boolean. A string field carrying the hint keeps a text entry.\n return primitive === 'boolean' ? { family: 'boolean' } : { family: 'text' };\n case 'select':\n case 'radio':\n case 'combobox':\n // The compiler states a boolean's two codes as `\"true\"` and `\"false\"`; the entry converts\n // the chosen code back to the JSON boolean the wire holds.\n return primitive === 'boolean' ? { family: 'boolean-choice' } : { family: 'choice' };\n case 'rating':\n case 'likert':\n case 'timeslot':\n return { family: 'choice' };\n case 'text':\n case 'textarea':\n case 'email':\n case 'url':\n case 'datetime':\n return { family: 'text' };\n case 'password':\n return { family: 'secure' };\n case 'phone':\n // A control hint implies no validation (`MODEL-3.1.3`). A national spelling such as\n // `(415) 555-0123` writes the raw string; `is_phone` is the optional canonical check.\n return { family: 'text' };\n case 'integer':\n return { family: 'buffered', format: { kind: 'integer' } };\n case 'decimal':\n return { family: 'buffered', format: { kind: 'decimal' } };\n case 'money':\n return { family: 'buffered', format: { kind: 'money' } };\n case 'quantity':\n return { family: 'quantity' };\n case 'slider':\n return { family: 'buffered', format: { kind: 'integer' } };\n case 'date':\n return { family: 'buffered', format: { kind: 'date' } };\n case 'time':\n return { family: 'text' };\n case 'duration':\n return { family: 'duration' };\n case 'address':\n return { family: 'address' };\n case 'media_capture':\n return { family: 'media' };\n case 'map':\n return { family: 'position' };\n case 'signature_capture':\n return { family: 'signature' };\n case 'multiselect':\n case 'tags':\n return primitive === 'array' && node.declaration.items?.primitive === 'media_ref'\n ? { family: 'media' }\n : { family: 'list' };\n case 'rank':\n return { family: 'rank' };\n default:\n return assertNeverControl(node.control);\n }\n}\n\n/** A union arm the compiler proves unreachable. */\nfunction assertNeverControl(value: never): never {\n throw new Error(`unreachable control: ${JSON.stringify(value)}`);\n}\n\nfunction inputKeyOf(fieldId: string, rowKey: string | number | undefined): string {\n return `${fieldId}\\u0000${String(rowKey ?? '')}`;\n}\n\n/** One control's link in its enclosing form's return-key chain. */\nfunction useInputChain(\n fieldId: string,\n rowKey?: string | number,\n subOrder?: number,\n): {\n readonly setInputRef: (target: TextInputInstance | null) => void;\n readonly focusNext: () => void;\n} {\n const chain = useContext(InputChainContext);\n const baseOrder = useContext(InputOrderContext);\n const order =\n baseOrder === undefined\n ? undefined\n : subOrder === undefined\n ? baseOrder\n : `${baseOrder}.${String(subOrder)}`;\n const key = inputKeyOf(fieldId, rowKey);\n // A callback ref registers at commit time, never during render: React calls it with the\n // mounted input and with null on unmount, and the stable identity below keeps a re-render\n // from unregistering and re-registering the same link unless its structural order moved.\n const setInputRef = useCallback(\n (target: TextInputInstance | null): void => {\n if (chain === undefined) return;\n if (target === null) chain.unregister(key);\n else chain.register(key, target, order);\n },\n [chain, key, order],\n );\n const focusNext = (): void => {\n chain?.focusAfter(key);\n };\n return { setInputRef, focusNext };\n}\n\n/** Joins non-empty hint or id-list fragments with a single space, or returns `undefined`. */\nfunction joinTokens(...parts: readonly (string | undefined)[]): string | undefined {\n const present = parts.filter((part): part is string => part !== undefined && part !== '');\n return present.length === 0 ? undefined : present.join(' ');\n}\n\n/** Shared accessibility relation props passed from `Entry` to each interactive affordance. */\ninterface EntryA11y {\n readonly props: NativeNodeProps;\n readonly errorHint?: string;\n readonly describedBy?: string;\n readonly invalid?: boolean;\n}\n\n/** One resolved visible error item rendered under a control. */\ninterface ResolvedErrorItem {\n readonly key: string;\n readonly text: string;\n}\n\n/** One control, bound to its session binding. */\nexport function Control({\n node,\n rowKey,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly rowKey?: string | number;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const field = useField(node.fieldId, rowKey);\n const activeTheme = useNativeTheme();\n const styles = fieldStylesFor(activeTheme);\n const components = useControlComponents();\n const plan = planOf(node);\n const copy = useHostCopy();\n const label = translate(field.descriptor.labelKey ?? field.fieldId);\n const visibleErrors = visibleErrorsOf(field);\n const errorItems: readonly ResolvedErrorItem[] = visibleErrors.flatMap((error) => {\n const text = errorTextOf(error, label, translate, copy);\n return text === undefined ? [] : [{ key: errorKeyOf(error), text }];\n });\n const errorHint =\n errorItems.length === 0 ? undefined : errorItems.map((item) => item.text).join(' ');\n const describedBy = joinTokens(\n node.description === undefined ? undefined : field.a11y.descriptionId,\n errorItems.length === 0 ? undefined : field.a11y.errorId,\n );\n // `media_ref` and `media_ref[]` fields route to `components.media` (or `media_capture`) before\n // generic `tags`/`multiselect`, and `signature_ref` routes to `components.signature` (or\n // `signature_capture`) before a generic control fallback.\n const isMedia =\n node.declaration.primitive === 'media_ref' ||\n (node.declaration.primitive === 'array' && node.declaration.items?.primitive === 'media_ref');\n const Custom =\n node.declaration.primitive === 'signature_ref'\n ? (components?.signature_capture ?? components?.signature ?? components?.[node.control])\n : isMedia\n ? (components?.media_capture ?? components?.media ?? components?.[node.control])\n : components?.[node.control];\n const canCustom =\n Custom !== undefined &&\n field.computation.kind === 'none' &&\n field.withheldReason !== 'masked' &&\n field.withheldReason !== 'write_only' &&\n field.access !== 'masked';\n const customA11y = canCustom\n ? controlA11yProps(toNativeProps(node, field, copy.requiredMarker()), {\n ...(errorHint === undefined ? {} : { errorHint }),\n ...(describedBy === undefined ? {} : { describedBy }),\n })\n : undefined;\n return (\n <View style={styles.control} testID={`control:${node.fieldId}:${String(rowKey ?? '')}`}>\n <Text style={styles.label}>\n {node.label}\n {field.a11y.required ? ' *' : ''}\n </Text>\n {canCustom && Custom !== undefined && customA11y !== undefined ? (\n <Custom\n node={node}\n field={field}\n translate={translate}\n a11y={customA11y}\n theme={activeTheme}\n value={field.value}\n setValue={field.setValue}\n trySetValue={field.trySetValue}\n error={visibleErrors[0]}\n required={field.a11y.required}\n disabled={field.disabled}\n readOnly={field.readOnly}\n mayWrite={field.mayWrite}\n options={node.declaration.options}\n constraints={{\n minimum: node.declaration.minimum,\n maximum: node.declaration.maximum,\n step: node.declaration.step,\n units: node.declaration.units,\n accept: node.declaration.accept,\n minBytes: node.declaration.minBytes,\n maxBytes: node.declaration.maxBytes,\n scale: node.declaration.scale,\n currency: node.declaration.currency,\n }}\n />\n ) : (\n <Entry\n node={node}\n field={field}\n plan={plan}\n styles={styles}\n activeTheme={activeTheme}\n {...(rowKey === undefined ? {} : { rowKey })}\n {...(errorHint === undefined ? {} : { errorHint })}\n {...(describedBy === undefined ? {} : { describedBy })}\n translate={translate}\n />\n )}\n {node.description === undefined ? null : (\n <Text\n style={styles.description}\n {...(field.a11y.descriptionId === undefined\n ? {}\n : { nativeID: field.a11y.descriptionId })}\n >\n {node.description}\n </Text>\n )}\n {field.withheld ? <Text style={styles.description}>{copy.deferredValue()}</Text> : null}\n {errorItems.length > 0 ? (\n <Errors errorId={field.a11y.errorId} items={errorItems} styles={styles} />\n ) : null}\n </View>\n );\n}\n\n/**\n * The write one affordance may make, and the refusal it paints.\n *\n * A binding refuses a write it cannot accept by throwing (`WriteRefusedError`, or an `AxiomError`\n * for a structural refusal), and a platform affordance can still dispatch a change after being\n * painted disabled. Passing the guarded write rather than the raw setter keeps a refusal out of an\n * event handler, where no component can paint it, and puts the sentence beside the control.\n */\ninterface WriteGuard {\n readonly write: (value: WireValue) => void;\n readonly guard: (action: () => void) => void;\n readonly refusal: string | undefined;\n}\n\nfunction useWriteGuard(field: FieldProps, label: string): WriteGuard {\n const copy = useHostCopy();\n const [refusal, setRefusal] = useState<string | undefined>(undefined);\n const report = (error: unknown): void => {\n if (error instanceof WriteRefusedError) {\n setRefusal(\n error.code === 'INVALID_VALUE'\n ? copy.invalidValue(label)\n : copy.notEditable(label, field.access),\n );\n return;\n }\n if (error instanceof AxiomError) {\n setRefusal(error.message);\n return;\n }\n throw error;\n };\n const guard = (action: () => void): void => {\n try {\n action();\n setRefusal(undefined);\n } catch (error) {\n report(error);\n }\n };\n const write = (value: WireValue): void => {\n if (!field.enabled) return;\n guard(() => field.setValue(value));\n };\n return { write, guard, refusal };\n}\n\n/** A wire value read as text, for a control the device does not write from its own domain. */\nfunction ReadOnlyValue({\n field,\n styles,\n}: {\n readonly field: FieldProps;\n readonly styles: FieldStyles;\n}): ReactElement {\n // `field.text` is the provider's display answer, so a boolean or a list reads as the host\n // states it; an undecided non-withheld value uses the shared dash projection.\n const text = renderDisplayText(field.text, field.withheld);\n return (\n <Text style={styles.body} accessibilityLabel={text}>\n {text}\n </Text>\n );\n}\n\nfunction Entry({\n node,\n field,\n plan,\n styles,\n activeTheme,\n rowKey,\n errorHint,\n describedBy,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly plan: ControlPlan;\n readonly styles: FieldStyles;\n readonly activeTheme: NativeTheme;\n readonly rowKey?: string | number;\n readonly errorHint?: string;\n readonly describedBy?: string;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const copy = useHostCopy();\n const props = toNativeProps(node, field, copy.requiredMarker());\n const label = translate(field.descriptor.labelKey ?? field.fieldId);\n const { write, guard, refusal } = useWriteGuard(field, label);\n const { setInputRef, focusNext } = useInputChain(node.fieldId, rowKey);\n // A writer owns this value. Painting its control would offer a write the session must refuse.\n if (field.computation.kind !== 'none') return <ReadOnlyValue field={field} styles={styles} />;\n // A masked or stored write-only value has no editable control: the mask's host stand-in is the\n // only text the first may show, and the second has no readable text at all. The control's visible\n // deferral sentence states the handoff. A redacted value keeps the control its access permits.\n if (field.withheldReason === 'masked' || field.withheldReason === 'write_only')\n return <ReadOnlyValue field={field} styles={styles} />;\n const refusalId = refusal === undefined ? undefined : `${field.a11y.errorId}-refusal`;\n const combinedHint = joinTokens(errorHint, refusal);\n const combinedDescribedBy = joinTokens(describedBy, refusalId);\n const a11y: EntryA11y = {\n props,\n ...(combinedHint === undefined ? {} : { errorHint: combinedHint }),\n ...(combinedDescribedBy === undefined ? {} : { describedBy: combinedDescribedBy }),\n ...(refusal === undefined ? {} : { invalid: true }),\n };\n const controlA11y = controlA11yProps(props, a11y);\n const body = ((): ReactElement => {\n switch (plan.family) {\n case 'buffered':\n if (field.readOnly && node.control === 'slider')\n return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <BufferedEntry\n node={node}\n field={field}\n a11y={a11y}\n guard={guard}\n styles={styles}\n activeTheme={activeTheme}\n {...(rowKey === undefined ? {} : { rowKey })}\n format={plan.format}\n />\n );\n case 'text':\n return (\n <TextInput\n {...controlA11y}\n style={styles.input}\n placeholderTextColor={activeTheme.color.muted}\n // A read-only binding stays focusable and copyable, but accepts no text. `mayWrite`\n // includes access, visibility and every enabled rule; rule-enabled alone would leave\n // a redacted read-only input editable.\n editable={field.mayWrite}\n keyboardType={node.hints.native.keyboardType}\n textContentType={node.hints.native.textContentType}\n autoCapitalize={node.hints.native.autoCapitalize}\n {...(node.placeholder === undefined ? {} : { placeholder: node.placeholder })}\n value={typeof field.value === 'string' ? field.value : field.text}\n onChangeText={(text) => write(text === '' ? null : text)}\n onBlur={field.onBlur}\n multiline={node.control === 'textarea'}\n returnKeyType={node.control === 'textarea' ? 'default' : 'next'}\n {...(node.control === 'textarea'\n ? {}\n : { blurOnSubmit: false, onSubmitEditing: () => focusNext() })}\n ref={setInputRef}\n />\n );\n case 'secure':\n return (\n <TextInput\n {...controlA11y}\n style={styles.input}\n placeholderTextColor={activeTheme.color.muted}\n editable={field.mayWrite}\n secureTextEntry\n textContentType=\"password\"\n autoCapitalize=\"none\"\n autoCorrect={false}\n {...(node.placeholder === undefined ? {} : { placeholder: node.placeholder })}\n value={typeof field.value === 'string' ? field.value : ''}\n onChangeText={(text) => write(text === '' ? null : text)}\n onBlur={field.onBlur}\n returnKeyType=\"next\"\n blurOnSubmit={false}\n onSubmitEditing={() => focusNext()}\n ref={setInputRef}\n />\n );\n case 'quantity':\n return (\n <QuantityEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n activeTheme={activeTheme}\n {...(rowKey === undefined ? {} : { rowKey })}\n />\n );\n case 'boolean':\n if (field.readOnly) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <Switch\n {...controlA11y}\n accessibilityRole=\"switch\"\n accessibilityState={{ disabled: !field.enabled, checked: field.value === true }}\n aria-checked={field.value === true}\n aria-disabled={!field.enabled}\n disabled={!field.enabled}\n trackColor={{ false: activeTheme.color.border, true: activeTheme.color.accent }}\n thumbColor={activeTheme.color.onAccent}\n value={field.value === true}\n onValueChange={write}\n />\n );\n case 'boolean-choice':\n if (field.readOnly) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <BooleanChoiceEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n translate={translate}\n />\n );\n case 'choice':\n if (field.readOnly) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <ChoiceEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n {...(rowKey === undefined ? {} : { rowKey })}\n translate={translate}\n />\n );\n case 'list':\n if (field.readOnly) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <ListEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n activeTheme={activeTheme}\n {...(rowKey === undefined ? {} : { rowKey })}\n translate={translate}\n />\n );\n case 'rank':\n if (field.readOnly) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <RankEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n {...(rowKey === undefined ? {} : { rowKey })}\n translate={translate}\n />\n );\n case 'signature':\n return <SignatureEntry field={field} styles={styles} translate={translate} />;\n case 'media':\n return (\n <MediaEntry\n node={node}\n field={field}\n write={write}\n styles={styles}\n translate={translate}\n />\n );\n case 'position':\n return <PositionEntry field={field} write={write} styles={styles} translate={translate} />;\n case 'duration':\n if (field.readOnly) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <DurationEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n activeTheme={activeTheme}\n {...(rowKey === undefined ? {} : { rowKey })}\n />\n );\n case 'address':\n if (field.readOnly) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <AddressEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n activeTheme={activeTheme}\n {...(rowKey === undefined ? {} : { rowKey })}\n />\n );\n default:\n return assertNeverPlan(plan);\n }\n })();\n return (\n <>\n {body}\n {refusal === undefined ? null : (\n <Text\n style={styles.danger}\n {...(refusalId === undefined ? {} : { nativeID: refusalId })}\n accessibilityRole=\"alert\"\n accessibilityLiveRegion=\"polite\"\n >\n {refusal}\n </Text>\n )}\n </>\n );\n}\n\nfunction assertNeverPlan(value: never): never {\n throw new Error(`unreachable control plan: ${JSON.stringify(value)}`);\n}\n\n/**\n * A declared option domain: one pressable per option.\n *\n * A `timeslot` states a host source instead of a fixed list, and its items arrive from\n * `useAsyncOptions` keyed by the declared dependencies; a source the host does not answer paints\n * the load failure rather than a box that could only write a value the contract refuses.\n */\nfunction ChoiceEntry({\n node,\n field,\n a11y,\n write,\n styles,\n rowKey,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly rowKey?: string | number;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const copy = useHostCopy();\n const options = node.declaration.options;\n if (options === undefined && node.declaration.optionSource !== undefined) {\n return (\n <AsyncChoice\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n {...(rowKey === undefined ? {} : { rowKey })}\n translate={translate}\n />\n );\n }\n if (options === undefined) return <ReadOnlyValue field={field} styles={styles} />;\n return (\n <View\n style={styles.row}\n accessibilityRole=\"radiogroup\"\n {...controlA11yProps(a11y.props, a11y)}\n accessibilityState={{ disabled: !field.enabled }}\n aria-disabled={!field.enabled}\n >\n {options.map((option) => {\n const value = optionCodeValue(node.declaration, option.code);\n const selected = sameWireValue(field.value, value);\n const answer = availabilityOf(\n field,\n value,\n node.label,\n translate(option.labelKey),\n translate,\n copy,\n node.declaration,\n );\n return (\n <Pressable\n key={String(option.code)}\n accessibilityRole=\"radio\"\n accessibilityState={{ checked: selected, disabled: !field.enabled }}\n aria-checked={selected}\n aria-disabled={!field.enabled}\n // An unavailable option stays pressable: the press reaches the session's own policy,\n // which stages the write for confirmation. The hint is how a screen reader hears why.\n {...(answer === undefined ? {} : { accessibilityHint: answer })}\n disabled={!field.enabled}\n onPress={() => write(value)}\n style={selected ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{translate(option.labelKey)}</Text>\n {answer === undefined ? null : <Text style={styles.description}>{answer}</Text>}\n </Pressable>\n );\n })}\n </View>\n );\n}\n\n/**\n * The record's answer for one offered code, in the host's words, or `undefined` when available.\n *\n * An unavailable code states the sentence its declaration carries; a code the record cannot\n * decide states the open question with its cause. This is the one place the device reads the\n * answer, so the hint, the painted reason and the control's pressability cannot disagree.\n */\nfunction availabilityOf(\n field: FieldProps,\n code: WireValue,\n fieldLabel: string,\n label: string,\n translate: RenderTranslate,\n copy: HostCopy,\n declaration?: CompiledField,\n): string | undefined {\n const answer = (field.unavailableOptions ?? []).find((entry) =>\n sameWireValue(\n declaration === undefined ? entry.code : optionCodeValue(declaration, entry.code),\n code,\n ),\n );\n if (answer === undefined) return undefined;\n if (answer.messageKey !== undefined) return translate(answer.messageKey, answer.params);\n return answer.state === 'unavailable'\n ? copy.unavailableOption(label)\n : copy.undeterminedOption(fieldLabel, label, answer.cause ?? 'unknown');\n}\n\n/**\n * A boolean painted as its two codes.\n *\n * The compiler admits `select`/`radio`/`combobox` on a boolean and states the two codes as the\n * strings `\"true\"` and `\"false\"`; the field's wire value is a JSON boolean. Choosing a code\n * therefore writes the boolean it names, never the code itself, which the wire would refuse.\n */\nfunction BooleanChoiceEntry({\n node,\n field,\n a11y,\n write,\n styles,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const copy = useHostCopy();\n const declared = node.declaration.options;\n const options =\n declared === undefined\n ? ([\n { code: 'true', labelKey: '' },\n { code: 'false', labelKey: '' },\n ] as const)\n : declared;\n return (\n <View\n style={styles.row}\n accessibilityRole=\"radiogroup\"\n {...controlA11yProps(a11y.props, a11y)}\n accessibilityState={{ disabled: !field.enabled }}\n aria-disabled={!field.enabled}\n >\n {options.map((option) => {\n const value = optionCodeValue(node.declaration, option.code);\n const selected = sameWireValue(field.value, value);\n const label = option.labelKey === '' ? String(option.code) : translate(option.labelKey);\n const answer = availabilityOf(\n field,\n value,\n node.label,\n label,\n translate,\n copy,\n node.declaration,\n );\n return (\n <Pressable\n key={String(option.code)}\n accessibilityRole=\"radio\"\n accessibilityState={{ checked: selected, disabled: !field.enabled }}\n aria-checked={selected}\n aria-disabled={!field.enabled}\n {...(answer === undefined ? {} : { accessibilityHint: answer })}\n disabled={!field.enabled}\n onPress={() => write(value)}\n style={selected ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{label}</Text>\n {answer === undefined ? null : <Text style={styles.description}>{answer}</Text>}\n </Pressable>\n );\n })}\n </View>\n );\n}\n\n/**\n * A choice whose domain the host loads on demand, whether a timeslot or a generic host domain.\n *\n * The items come from `useAsyncOptions`, keyed by the declared dependencies, so the host offers\n * the slots for the window the form holds and one change loads one source. The selected item is\n * matched by the wire contract's own equality, because a timeslot is an object rather than a\n * code.\n */\nfunction AsyncChoice({\n node,\n field,\n a11y,\n write,\n styles,\n rowKey,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly rowKey?: string | number;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const pages = useAsyncOptions(node.fieldId, rowKey);\n const copy = useHostCopy();\n const selected = pages.items.findIndex((item) => sameWireValue(item.value, field.value));\n return (\n <View\n style={styles.row}\n accessibilityRole=\"radiogroup\"\n {...controlA11yProps(a11y.props, a11y)}\n accessibilityState={{ disabled: !field.enabled }}\n aria-disabled={!field.enabled}\n >\n {pages.items.map((item, index) => {\n const chosen = index === selected;\n const label =\n item.labelKey === ''\n ? renderValueText(item.value, copy.display, node.declaration.primitive)\n : translate(item.labelKey);\n const answer = availabilityOf(\n field,\n item.value,\n node.label,\n label,\n translate,\n copy,\n node.declaration,\n );\n return (\n <Pressable\n key={canonicalizeRestricted(item.value)}\n accessibilityRole=\"radio\"\n accessibilityState={{ checked: chosen, disabled: !field.enabled }}\n aria-checked={chosen}\n aria-disabled={!field.enabled}\n {...(answer === undefined ? {} : { accessibilityHint: answer })}\n disabled={!field.enabled}\n onPress={() => write(item.value)}\n style={chosen ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{label}</Text>\n {answer === undefined ? null : <Text style={styles.description}>{answer}</Text>}\n </Pressable>\n );\n })}\n <OptionPagesStatus node={node} pages={pages} styles={styles} translate={translate} />\n </View>\n );\n}\n\n/** Translated labels of declared top-level host-source dependencies that currently hold no value. */\nfunction missingDependencyLabels(\n node: RenderControlNode,\n fields: readonly CompiledField[],\n values: Readonly<Record<string, WireValue>>,\n translate: RenderTranslate,\n): readonly string[] {\n const source = node.declaration.optionSource;\n if (source?.kind !== 'host' || source.dependsOn === undefined || source.dependsOn.length === 0) {\n return [];\n }\n const topLevel = new Map(fields.map((entry) => [entry.fieldId, entry]));\n const missing: string[] = [];\n for (const depId of source.dependsOn) {\n const declaration = topLevel.get(depId);\n if (declaration === undefined) continue;\n const value = values[depId];\n if (value === undefined || value === null || value === '') {\n missing.push(declaration.labelKey === undefined ? depId : translate(declaration.labelKey));\n }\n }\n return missing;\n}\n\n/** The loading, failure and reader-controlled next-page state every host domain shares. */\nfunction OptionPagesStatus({\n node,\n pages,\n styles,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly pages: ReturnType<typeof useAsyncOptions>;\n readonly styles: FieldStyles;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const copy = useHostCopy();\n const fields = useFields();\n const form = useForm();\n const empty =\n pages.readable &&\n pages.resolved &&\n pages.error === undefined &&\n pages.items.length === 0 &&\n !pages.hasMore;\n const missing = empty ? missingDependencyLabels(node, fields, form.getValues(), translate) : [];\n return (\n <>\n {pages.hasMore ? (\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.loadMoreOptions()}\n accessibilityState={{ disabled: pages.loading }}\n aria-disabled={pages.loading}\n disabled={pages.loading}\n onPress={pages.loadMore}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.loadMoreOptions()}</Text>\n </Pressable>\n ) : null}\n {pages.loading ? <Text style={styles.description}>Loading options…</Text> : null}\n {empty ? (\n <Text style={styles.description} accessibilityLiveRegion=\"polite\">\n {missing.length > 0 ? copy.optionsNeedDependencies(missing) : copy.emptyOptions()}\n </Text>\n ) : null}\n {pages.error === undefined ? null : (\n <Text style={styles.danger} accessibilityRole=\"alert\">\n The options could not be loaded: {pages.error.message}\n </Text>\n )}\n </>\n );\n}\n\n/**\n * A captured signature: its value, and the host's sign action when this device has a signer.\n *\n * The binding is read like every other host-domain control: nothing here writes a signature the\n * wire contract did not produce, and the action asks the host to sign the record as it stands.\n * A device with no signer paints the value and the localized unavailability explanation rather\n * than a button that could only fail.\n */\nfunction SignatureEntry({\n field,\n styles,\n translate,\n}: {\n readonly field: FieldProps;\n readonly styles: FieldStyles;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const { captureSignature } = useHostActions();\n const copy = useHostCopy();\n const [failure, setFailure] = useState<string | undefined>(undefined);\n // A read-only or disabled viewer must not be offered the signer, matching the Web adapter.\n if (!field.enabled || field.access !== 'read_write')\n return <ReadOnlyValue field={field} styles={styles} />;\n const label = translate(field.descriptor.labelKey ?? field.fieldId);\n if (captureSignature === undefined) {\n return (\n <>\n <ReadOnlyValue field={field} styles={styles} />\n <Text style={styles.description}>{copy.signatureUnavailable(label)}</Text>\n </>\n );\n }\n const paintFailure = (detail: string | undefined): void => setFailure(detail);\n const capture = (): void => {\n setFailure(undefined);\n try {\n void captureSignature(field.fieldId).then(paintFailure, (error: unknown) => {\n paintFailure(error instanceof Error ? error.message : copy.signerFailed());\n });\n } catch (error) {\n paintFailure(error instanceof Error ? error.message : copy.signerFailed());\n }\n };\n return (\n <>\n <ReadOnlyValue field={field} styles={styles} />\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.captureSignature(label)}\n onPress={capture}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.captureSignature(label)}</Text>\n </Pressable>\n {failure === undefined ? null : (\n <View accessibilityRole=\"alert\">\n <Text style={styles.danger}>{copy.captureFailed()}</Text>\n <Text style={styles.danger}>{failure}</Text>\n </View>\n )}\n </>\n );\n}\n\n/** Why a captured media reference could not be committed. */\ntype MediaFailure =\n | { readonly kind: 'constraint'; readonly sentence: string }\n | { readonly kind: 'failed'; readonly detail?: string };\n\n/** Validates a host-returned `media_ref` against declared `accept`/`minBytes`/`maxBytes`. */\nfunction mediaConstraintRefusal(\n reference: WireRecord,\n label: string,\n declaration: CompiledField,\n copy: HostCopy,\n): string | undefined {\n const rawBytes = reference['byteSize'];\n const bytes = typeof rawBytes === 'number' && Number.isFinite(rawBytes) ? rawBytes : undefined;\n if (bytes !== undefined && declaration.maxBytes !== undefined && bytes > declaration.maxBytes) {\n return copy.mediaConstraint(label, 'maxBytes', declaration.maxBytes, bytes);\n }\n if (bytes !== undefined && declaration.minBytes !== undefined && bytes < declaration.minBytes) {\n return copy.mediaConstraint(label, 'minBytes', declaration.minBytes, bytes);\n }\n const rawMime = reference['mime'];\n const mime = typeof rawMime === 'string' ? rawMime : '';\n if (\n mime !== '' &&\n declaration.accept !== undefined &&\n declaration.accept.length > 0 &&\n !mediaAcceptMatches(declaration.accept, mime)\n ) {\n return copy.mediaConstraint(label, 'accept', declaration.accept, mime);\n }\n return undefined;\n}\n\n/** Human-readable name for one attached `media_ref` item in a list. */\nfunction mediaItemLabel(item: WireValue, index: number): string {\n if (isRecord(item)) {\n const name = item['name'];\n if (typeof name === 'string' && name !== '') return name;\n const filename = item['filename'];\n if (typeof filename === 'string' && filename !== '') return filename;\n const id = item['id'];\n if (typeof id === 'string' && id !== '') return id;\n }\n return `#${String(index + 1)}`;\n}\n\n/** Projects a host capture error into a `MediaFailure` without repeating the generic headline. */\nfunction mediaFailureOf(error: unknown, copy: HostCopy): MediaFailure {\n const detail =\n error instanceof Error && error.message !== '' && error.message !== copy.mediaFailed()\n ? error.message\n : undefined;\n return { kind: 'failed', ...(detail === undefined ? {} : { detail }) };\n}\n\n/**\n * Reads the latest committed media array from the session store to avoid stale closure overwrites.\n *\n * Reading through `form.getField(field.fieldId, field.rowKey)` resolves top-level arrays, members\n * nested inside a `record` container, and repeating-row arrays uniformly against committed state.\n */\nfunction latestMediaItems(\n form: ReturnType<typeof useForm>,\n field: FieldProps,\n): readonly WireValue[] {\n try {\n const state = form.getField(field.fieldId, field.rowKey);\n if (state.value.kind === 'value' && Array.isArray(state.value.value)) {\n return state.value.value;\n }\n return [];\n } catch {\n return Array.isArray(field.value) ? field.value : [];\n }\n}\n\n/**\n * Invokes the host's `captureMedia` port outside the component body so both synchronous throws\n * and asynchronous rejections settle through one error callback while keeping `MediaEntry`\n * React Compiler eligible with zero bailouts.\n */\nfunction invokeMediaCapture(\n captureMedia: NonNullable<HostActions['captureMedia']>,\n fieldId: string,\n request: MediaCaptureRequest,\n onSuccess: (reference: WireRecord | undefined) => void,\n onError: (error: unknown) => void,\n): void {\n try {\n void captureMedia(fieldId, request).then(onSuccess, onError);\n } catch (error) {\n onError(error);\n }\n}\n\n/**\n * A captured media reference (or list of references), driven by the host's `captureMedia` port.\n *\n * Without a host capture action, the control paints the stored value read-only rather than\n * offering a button that could only fail. With one, pressing attach passes the field's declared\n * bounds to the host, validates the returned `media_ref` against `accept`/`minBytes`/`maxBytes`,\n * and commits it (or appends it to the latest committed `media_ref[]` array).\n */\nfunction MediaEntry({\n node,\n field,\n write,\n styles,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const form = useForm();\n const { captureMedia } = useHostActions();\n const copy = useHostCopy();\n const [pending, setPending] = useState(false);\n const [failure, setFailure] = useState<MediaFailure | undefined>(undefined);\n const inFlightRef = useRef(false);\n const mounted = useRef(true);\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n inFlightRef.current = false;\n };\n }, []);\n const label = translate(field.descriptor.labelKey ?? field.fieldId);\n const canCapture = captureMedia !== undefined && field.enabled && field.access === 'read_write';\n const isArray = node.declaration.primitive === 'array';\n const items: readonly WireValue[] = isArray && Array.isArray(field.value) ? field.value : [];\n const hasValue = isArray ? items.length > 0 : field.value !== undefined && field.value !== null;\n\n if (!canCapture) return <ReadOnlyValue field={field} styles={styles} />;\n\n const capture = (): void => {\n if (inFlightRef.current || pending) return;\n inFlightRef.current = true;\n setPending(true);\n setFailure(undefined);\n const { accept, minBytes, maxBytes } = node.declaration;\n const request: MediaCaptureRequest = {\n label,\n ...(accept === undefined ? {} : { accept }),\n ...(minBytes === undefined ? {} : { minBytes }),\n ...(maxBytes === undefined ? {} : { maxBytes }),\n };\n invokeMediaCapture(\n captureMedia,\n field.fieldId,\n request,\n (reference) => {\n inFlightRef.current = false;\n if (!mounted.current) return;\n setPending(false);\n if (reference === undefined) return;\n const constraint = mediaConstraintRefusal(reference, label, node.declaration, copy);\n if (constraint !== undefined) {\n setFailure({ kind: 'constraint', sentence: constraint });\n return;\n }\n if (isArray) {\n write([...latestMediaItems(form, field), reference]);\n } else {\n write(reference);\n }\n },\n (error) => {\n inFlightRef.current = false;\n if (!mounted.current) return;\n setPending(false);\n setFailure(mediaFailureOf(error, copy));\n },\n );\n };\n\n return (\n <>\n {isArray ? (\n items.length === 0 ? (\n <ReadOnlyValue field={field} styles={styles} />\n ) : (\n <View style={styles.stack}>\n {items.map((item, index) => {\n const itemName = mediaItemLabel(item, index);\n const itemKey = canonicalizeRestricted(item);\n let removed = false;\n return (\n <View key={`${String(index)}:${itemKey}`} style={styles.row}>\n <Text style={styles.body}>{itemName}</Text>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.removeMedia(itemName)}\n onPress={() => {\n if (removed) return;\n removed = true;\n const current = latestMediaItems(form, field);\n const atExactIndex = current[index];\n const removeAt =\n atExactIndex !== undefined &&\n canonicalizeRestricted(atExactIndex) === itemKey\n ? index\n : current.findIndex((entry) => canonicalizeRestricted(entry) === itemKey);\n if (removeAt === -1) return;\n write(current.filter((_, at) => at !== removeAt));\n }}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.removeMedia(itemName)}</Text>\n </Pressable>\n </View>\n );\n })}\n </View>\n )\n ) : (\n <ReadOnlyValue field={field} styles={styles} />\n )}\n <View style={styles.row}>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.attachMedia()}\n accessibilityState={{ disabled: pending }}\n aria-disabled={pending}\n disabled={pending}\n onPress={capture}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.attachMedia()}</Text>\n </Pressable>\n {!isArray && hasValue ? (\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.removeMedia(label)}\n onPress={() => write(null)}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.removeMedia(label)}</Text>\n </Pressable>\n ) : null}\n </View>\n {failure === undefined ? null : failure.kind === 'constraint' ? (\n <Text style={styles.danger} accessibilityRole=\"alert\">\n {failure.sentence}\n </Text>\n ) : (\n <View>\n <Text style={styles.danger} accessibilityRole=\"alert\">\n {copy.mediaFailed()}\n </Text>\n {failure.detail === undefined ? null : (\n <Text style={styles.danger}>{failure.detail}</Text>\n )}\n </View>\n )}\n </>\n );\n}\n\n/** Converts a granted host position into the canonical closed coordinate record, or `undefined`. */\nfunction canonicalPositionOf(\n reading: Extract<HostPositionResult, { readonly outcome: 'granted' }>,\n): WireRecord | undefined {\n if (!Number.isFinite(reading.latitude) || !Number.isFinite(reading.longitude)) return undefined;\n if (reading.latitude < -90 || reading.latitude > 90) return undefined;\n if (reading.longitude < -180 || reading.longitude > 180) return undefined;\n if (\n reading.accuracy !== undefined &&\n (!Number.isFinite(reading.accuracy) || reading.accuracy < 0)\n ) {\n return undefined;\n }\n try {\n const latitude = canonicalDecimal(new AxiomDecimal(reading.latitude));\n const longitude = canonicalDecimal(new AxiomDecimal(reading.longitude));\n const accuracy =\n reading.accuracy === undefined\n ? undefined\n : canonicalDecimal(new AxiomDecimal(reading.accuracy));\n return {\n latitude,\n longitude,\n ...(accuracy === undefined ? {} : { accuracy }),\n };\n } catch {\n return undefined;\n }\n}\n\n/**\n * A geographic coordinate control, driven by the host's `capturePosition` port.\n *\n * Without a host position reader, the control paints the recorded value read-only. With one,\n * pressing the button requests a reading and commits the canonicalized coordinate record or\n * states the refusal outcome in the active locale.\n */\nfunction PositionEntry({\n field,\n write,\n styles,\n translate,\n}: {\n readonly field: FieldProps;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const { capturePosition } = useHostActions();\n const copy = useHostCopy();\n const [pending, setPending] = useState(false);\n const [failure, setFailure] = useState<string | undefined>(undefined);\n const label = translate(field.descriptor.labelKey ?? field.fieldId);\n\n if (capturePosition === undefined || !field.enabled)\n return <ReadOnlyValue field={field} styles={styles} />;\n\n const settle = (result: HostPositionResult): void => {\n setPending(false);\n switch (result.outcome) {\n case 'granted': {\n const record = canonicalPositionOf(result);\n if (record === undefined) {\n setFailure(copy.positionInvalidReading());\n return;\n }\n setFailure(undefined);\n write(record);\n return;\n }\n case 'denied':\n setFailure(copy.positionDenied());\n return;\n case 'unavailable':\n setFailure(copy.positionUnavailable());\n return;\n case 'timed-out':\n setFailure(copy.positionTimedOut());\n return;\n default:\n return assertNever(result);\n }\n };\n\n const capture = (): void => {\n setPending(true);\n setFailure(undefined);\n try {\n void capturePosition(field.fieldId).then(settle, () => {\n setPending(false);\n setFailure(copy.positionFailed());\n });\n } catch {\n setPending(false);\n setFailure(copy.positionFailed());\n }\n };\n\n return (\n <>\n <ReadOnlyValue field={field} styles={styles} />\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.positionCapture(label)}\n accessibilityState={{ disabled: pending }}\n aria-disabled={pending}\n disabled={pending}\n onPress={capture}\n style={styles.option}\n >\n <Text style={styles.body}>\n {pending ? copy.positionRequesting() : copy.positionCapture(label)}\n </Text>\n </Pressable>\n {failure === undefined ? null : (\n <Text style={styles.danger} accessibilityRole=\"alert\">\n {failure}\n </Text>\n )}\n </>\n );\n}\n\n/** A list control: option toggles, a field's own domain, or comma-separated text. */\nfunction ListEntry({\n node,\n field,\n a11y,\n write,\n styles,\n activeTheme,\n rowKey,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly activeTheme: NativeTheme;\n readonly rowKey?: string | number;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const copy = useHostCopy();\n const { setInputRef, focusNext } = useInputChain(node.fieldId, rowKey);\n // The freeform entry is a draft until it is committed: a controlled value derived from the\n // record erases the separator on the keystroke that types it, so a second entry could never\n // be typed. Keeping the line until blur is what lets the split see both entries.\n const [draft, setDraft] = useState<string | undefined>(undefined);\n const options = node.declaration.options;\n const source = node.declaration.optionSource;\n if (options === undefined && source?.kind === 'host') {\n return (\n <AsyncListEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n {...(rowKey === undefined ? {} : { rowKey })}\n translate={translate}\n />\n );\n }\n if (options === undefined && source?.kind === 'field') {\n return (\n <SourceListEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n sourceFieldId={source.fieldId}\n />\n );\n }\n if (options === undefined) {\n if (node.declaration.items?.primitive !== 'string')\n return <ReadOnlyValue field={field} styles={styles} />;\n const committed = Array.isArray(field.value)\n ? field.value\n .map((entry) => renderValueText(entry, copy.display, node.declaration.items?.primitive))\n .join(', ')\n : '';\n const text = draft ?? committed;\n const commit = (): void => {\n const entries = text\n .split(',')\n .map((entry) => entry.trim())\n .filter((entry) => entry !== '');\n write(entries.length === 0 ? null : entries);\n setDraft(undefined);\n };\n return (\n <TextInput\n {...controlA11yProps(a11y.props, a11y)}\n style={styles.input}\n placeholderTextColor={activeTheme.color.muted}\n editable={field.enabled}\n {...(node.placeholder === undefined ? {} : { placeholder: node.placeholder })}\n value={text}\n onChangeText={setDraft}\n onBlur={() => {\n commit();\n field.onBlur();\n }}\n returnKeyType=\"next\"\n blurOnSubmit={false}\n onSubmitEditing={() => {\n commit();\n focusNext();\n }}\n ref={setInputRef}\n />\n );\n }\n const held: readonly WireValue[] = Array.isArray(field.value) ? field.value : [];\n const heldKeys = new Set(held.map((entry) => canonicalizeRestricted(entry)));\n const declaredValues = options.map((candidate) =>\n optionCodeValue(node.declaration, candidate.code),\n );\n const declaredKeys = new Set(declaredValues.map((value) => canonicalizeRestricted(value)));\n return (\n <View style={styles.row} accessibilityRole=\"group\" {...controlA11yProps(a11y.props, a11y)}>\n {options.map((option, index) => {\n const value = declaredValues[index] ?? optionCodeValue(node.declaration, option.code);\n const selected = heldKeys.has(canonicalizeRestricted(value));\n const label = translate(option.labelKey);\n const answer = availabilityOf(\n field,\n value,\n node.label,\n label,\n translate,\n copy,\n node.declaration,\n );\n return (\n <Pressable\n key={String(option.code)}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked: selected, disabled: !field.enabled }}\n aria-checked={selected}\n aria-disabled={!field.enabled}\n {...(answer === undefined ? {} : { accessibilityHint: answer })}\n disabled={!field.enabled}\n onPress={() => {\n const next = [\n ...held.filter((entry) => !declaredKeys.has(canonicalizeRestricted(entry))),\n ...declaredValues.filter((candidate) =>\n sameWireValue(candidate, value)\n ? !selected\n : heldKeys.has(canonicalizeRestricted(candidate)),\n ),\n ];\n write(next);\n }}\n style={selected ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{label}</Text>\n {answer === undefined ? null : <Text style={styles.description}>{answer}</Text>}\n </Pressable>\n );\n })}\n </View>\n );\n}\n\n/** One item in a `rank` control's offered domain. */\ninterface RankOption {\n readonly key: string;\n readonly value: WireValue;\n readonly label: string;\n readonly availability?: string;\n}\n\n/**\n * An ordered ranking control (`MODEL-3.1.6`), separate from unordered `multiselect`/`tags`.\n *\n * Pressing an option appends it in the respondent's chosen order (rather than rewriting to\n * declaration or source order), pressing it again removes it, and the ranked list provides move\n * up, move down, and remove controls for reordering.\n */\nfunction RankEntry({\n node,\n field,\n a11y,\n write,\n styles,\n rowKey,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly rowKey?: string | number;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const copy = useHostCopy();\n const options = node.declaration.options;\n const source = node.declaration.optionSource;\n if (options === undefined && source?.kind === 'field') {\n return (\n <SourceRankEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n sourceFieldId={source.fieldId}\n />\n );\n }\n if (options === undefined && source?.kind === 'host') {\n return (\n <AsyncRankEntry\n node={node}\n field={field}\n a11y={a11y}\n write={write}\n styles={styles}\n {...(rowKey === undefined ? {} : { rowKey })}\n translate={translate}\n />\n );\n }\n if (options === undefined) return <ReadOnlyValue field={field} styles={styles} />;\n const domain: readonly RankOption[] = options.map((option) => {\n const value = optionCodeValue(node.declaration, option.code);\n const label = translate(option.labelKey);\n const availability = availabilityOf(\n field,\n value,\n node.label,\n label,\n translate,\n copy,\n node.declaration,\n );\n return {\n key: String(option.code),\n value,\n label,\n ...(availability === undefined ? {} : { availability }),\n };\n });\n return (\n <RankEditor\n node={node}\n field={field}\n a11y={a11y}\n domain={domain}\n write={write}\n styles={styles}\n />\n );\n}\n\nfunction SourceRankEntry({\n node,\n field,\n a11y,\n write,\n styles,\n sourceFieldId,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly sourceFieldId: string;\n}): ReactElement {\n const source = useField(sourceFieldId);\n const copy = useHostCopy();\n const items: readonly WireValue[] = Array.isArray(source.value) ? source.value : [];\n const domain: readonly RankOption[] = items.map((value, index) => ({\n key: `${String(index)}:${canonicalizeRestricted(value)}`,\n value,\n label: renderValueText(value, copy.display, node.declaration.items?.primitive),\n }));\n return (\n <RankEditor\n node={node}\n field={field}\n a11y={a11y}\n domain={domain}\n write={write}\n styles={styles}\n />\n );\n}\n\nfunction AsyncRankEntry({\n node,\n field,\n a11y,\n write,\n styles,\n rowKey,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly rowKey?: string | number;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const pages = useAsyncOptions(node.fieldId, rowKey);\n const copy = useHostCopy();\n const domain: readonly RankOption[] = pages.items.map((item) => {\n const label =\n item.labelKey === ''\n ? renderValueText(item.value, copy.display, node.declaration.items?.primitive)\n : translate(item.labelKey);\n const availability = availabilityOf(\n field,\n item.value,\n node.label,\n label,\n translate,\n copy,\n node.declaration,\n );\n return {\n key: canonicalizeRestricted(item.value),\n value: item.value,\n label,\n ...(availability === undefined ? {} : { availability }),\n };\n });\n return (\n <>\n <RankEditor\n node={node}\n field={field}\n a11y={a11y}\n domain={domain}\n write={write}\n styles={styles}\n />\n <OptionPagesStatus node={node} pages={pages} styles={styles} translate={translate} />\n </>\n );\n}\n\n/** Presentational editor for an ordered ranking: option toggles plus move up/down/remove. */\nfunction RankEditor({\n node,\n field,\n a11y,\n domain,\n write,\n styles,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly domain: readonly RankOption[];\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n}): ReactElement {\n const copy = useHostCopy();\n const chosen: readonly WireValue[] = Array.isArray(field.value) ? field.value : [];\n const isChosen = (value: WireValue): boolean =>\n chosen.some((entry) => sameWireValue(entry, value));\n const toggle = (value: WireValue): void => {\n if (isChosen(value)) {\n write(chosen.filter((entry) => !sameWireValue(entry, value)));\n return;\n }\n // Append in respondent press order rather than sorting by declaration/source order.\n write([...chosen, value]);\n };\n const move = (index: number, delta: -1 | 1): void => {\n const target = index + delta;\n if (target < 0 || target >= chosen.length) return;\n const next = [...chosen];\n const moved = next.splice(index, 1)[0];\n if (moved === undefined) return;\n next.splice(target, 0, moved);\n write(next);\n };\n const labelFor = (value: WireValue): string =>\n domain.find((item) => sameWireValue(item.value, value))?.label ??\n renderValueText(value, copy.display, node.declaration.items?.primitive);\n return (\n <View style={styles.stack} accessibilityRole=\"group\" {...controlA11yProps(a11y.props, a11y)}>\n <View style={styles.row}>\n {domain.map((item) => {\n const selected = isChosen(item.value);\n return (\n <Pressable\n key={item.key}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked: selected, disabled: !field.enabled }}\n aria-checked={selected}\n aria-disabled={!field.enabled}\n {...(item.availability === undefined ? {} : { accessibilityHint: item.availability })}\n disabled={!field.enabled}\n onPress={() => toggle(item.value)}\n style={selected ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{item.label}</Text>\n {item.availability === undefined ? null : (\n <Text style={styles.description}>{item.availability}</Text>\n )}\n </Pressable>\n );\n })}\n </View>\n {chosen.length === 0 ? null : (\n <View style={styles.stack}>\n {chosen.map((value, index) => {\n const itemLabel = labelFor(value);\n const canMoveUp = field.enabled && index > 0;\n const canMoveDown = field.enabled && index < chosen.length - 1;\n return (\n <View key={canonicalizeRestricted(value)} style={styles.row}>\n <Text style={styles.body}>{`${String(index + 1)}. ${itemLabel}`}</Text>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.rankMoveUp(itemLabel)}\n accessibilityState={{ disabled: !canMoveUp }}\n aria-disabled={!canMoveUp}\n disabled={!canMoveUp}\n onPress={() => move(index, -1)}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.rankMoveUp(itemLabel)}</Text>\n </Pressable>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.rankMoveDown(itemLabel)}\n accessibilityState={{ disabled: !canMoveDown }}\n aria-disabled={!canMoveDown}\n disabled={!canMoveDown}\n onPress={() => move(index, 1)}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.rankMoveDown(itemLabel)}</Text>\n </Pressable>\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={copy.rankRemove(itemLabel)}\n accessibilityState={{ disabled: !field.enabled }}\n aria-disabled={!field.enabled}\n disabled={!field.enabled}\n onPress={() => write(chosen.filter((_, at) => at !== index))}\n style={styles.option}\n >\n <Text style={styles.body}>{copy.rankRemove(itemLabel)}</Text>\n </Pressable>\n </View>\n );\n })}\n </View>\n )}\n </View>\n );\n}\n\n/** A multiple selection whose domain arrives through the shared paged option machine. */\nfunction AsyncListEntry({\n node,\n field,\n a11y,\n write,\n styles,\n rowKey,\n translate,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly rowKey?: string | number;\n readonly translate: RenderTranslate;\n}): ReactElement {\n const pages = useAsyncOptions(node.fieldId, rowKey);\n const copy = useHostCopy();\n const held: readonly WireValue[] = Array.isArray(field.value) ? field.value : [];\n const toggle = (value: WireValue): void => {\n const selected = held.some((entry) => sameWireValue(entry, value));\n const painted = new Set(pages.items.map((item) => canonicalizeRestricted(item.value)));\n const next = [\n // A page is a window onto the domain, not the whole record: values outside it were not\n // toggled and keep their existing order ahead of the painted entries' declaration order.\n ...held.filter((entry) => !painted.has(canonicalizeRestricted(entry))),\n ...pages.items\n .filter((item) =>\n sameWireValue(item.value, value)\n ? !selected\n : held.some((entry) => sameWireValue(entry, item.value)),\n )\n .map((item) => item.value),\n ];\n write(next);\n };\n return (\n <View style={styles.row} accessibilityRole=\"group\" {...controlA11yProps(a11y.props, a11y)}>\n {pages.items.map((item) => {\n const selected = held.some((entry) => sameWireValue(entry, item.value));\n const label =\n item.labelKey === ''\n ? renderValueText(item.value, copy.display, node.declaration.items?.primitive)\n : translate(item.labelKey);\n const answer = availabilityOf(\n field,\n item.value,\n node.label,\n label,\n translate,\n copy,\n node.declaration,\n );\n return (\n <Pressable\n key={canonicalizeRestricted(item.value)}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked: selected, disabled: !field.enabled }}\n aria-checked={selected}\n aria-disabled={!field.enabled}\n {...(answer === undefined ? {} : { accessibilityHint: answer })}\n disabled={!field.enabled}\n onPress={() => toggle(item.value)}\n style={selected ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{label}</Text>\n {answer === undefined ? null : <Text style={styles.description}>{answer}</Text>}\n </Pressable>\n );\n })}\n <OptionPagesStatus node={node} pages={pages} styles={styles} translate={translate} />\n </View>\n );\n}\n\n/**\n * A list whose domain is another field's recorded array.\n *\n * The values are read through the same binding the source control writes, so a value the person\n * typed in the source field is an option here immediately. The result is built in the source's\n * order, which is what makes a `rank` an order the person can express without a separate\n * reordering gesture: the domain is the ranking.\n */\nfunction SourceListEntry({\n node,\n field,\n a11y,\n write,\n styles,\n sourceFieldId,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly sourceFieldId: string;\n}): ReactElement {\n const source = useField(sourceFieldId);\n const copy = useHostCopy();\n const items: readonly WireValue[] = Array.isArray(source.value) ? source.value : [];\n const chosen: readonly WireValue[] = Array.isArray(field.value) ? field.value : [];\n const isChosen = (value: WireValue): boolean =>\n chosen.some((entry) => sameWireValue(entry, value));\n const toggle = (value: WireValue): void => {\n const selected = isChosen(value);\n const next = items.filter((item) => (sameWireValue(item, value) ? !selected : isChosen(item)));\n write(next);\n };\n return (\n <View style={styles.row} accessibilityRole=\"group\" {...controlA11yProps(a11y.props, a11y)}>\n {items.map((value, index) => {\n const selected = isChosen(value);\n return (\n <Pressable\n key={`${String(index)}:${canonicalizeRestricted(value)}`}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked: selected, disabled: !field.enabled }}\n aria-checked={selected}\n aria-disabled={!field.enabled}\n disabled={!field.enabled}\n onPress={() => toggle(value)}\n style={selected ? styles.selected : styles.option}\n >\n <Text style={styles.body}>\n {renderValueText(value, copy.display, node.declaration.items?.primitive)}\n </Text>\n </Pressable>\n );\n })}\n </View>\n );\n}\n\n/** One quantity's committed wire value, or `undefined` when the binding holds none. */\nfunction quantityOf(\n value: WireValue | undefined,\n): { readonly value: string; readonly unit: string } | undefined {\n if (!isRecord(value)) return undefined;\n const text = value['value'];\n const unit = value['unit'];\n return typeof text === 'string' && typeof unit === 'string' ? { value: text, unit } : undefined;\n}\n\n/** The numeric entry a quantity buffer holds: a value, a prefix of one, or why it is neither. */\ntype QuantityDraft =\n | { readonly kind: 'value'; readonly text: string }\n | { readonly kind: 'partial' }\n | {\n readonly kind: 'invalid';\n readonly reason: BufferRefusalReason;\n readonly params?: Readonly<Record<string, string | number>>;\n };\n\n/**\n * A quantity's numeric entry, parsed and canonicalised before it reaches the session.\n *\n * A quantity is one value with two members, so the buffer owns the number and the field owns the\n * unit. `AxiomDecimal` is the same constructor the evaluator uses; canonicalising through it\n * means `01.50` and `1.5` are one stored value rather than two, and a magnitude beyond the\n * declared scale is refused instead of rounded (`MODEL-2.1.21`).\n */\nfunction parseQuantityDraft(text: string, scale: number): QuantityDraft {\n const trimmed = text.trim();\n // A sign, a point or nothing is the prefix of a number, not a refusal: a buffer that\n // announced an error for the first keystroke of `-12` would be hostile.\n if (trimmed === '' || trimmed === '-' || trimmed === '.' || trimmed === '-.') {\n return { kind: 'partial' };\n }\n if (!/^-?\\d+(?:\\.\\d+)?$/.test(trimmed)) {\n return { kind: 'invalid', reason: 'buffer.decimal.digits' };\n }\n let canonical: string;\n try {\n canonical = canonicalDecimal(new AxiomDecimal(trimmed));\n } catch {\n return { kind: 'invalid', reason: 'buffer.decimal.not_canonical' };\n }\n const dot = canonical.indexOf('.');\n const fraction = dot < 0 ? 0 : canonical.length - dot - 1;\n if (fraction > scale) {\n return { kind: 'invalid', reason: 'buffer.money.scale_exceeded', params: { scale } };\n }\n return { kind: 'value', text: canonical };\n}\n\n/**\n * A quantity: a numeric buffer and the declared unit selector beside it.\n *\n * The buffer keeps the keystrokes the field cannot store yet, so a partial entry such as `-` is\n * visible without being written. A valid entry writes the quantity on the spot; the unit selector\n * writes the same amount under the chosen unit, because v1 defines no conversion and the two\n * members are one value.\n */\nfunction QuantityEntry({\n node,\n field,\n a11y,\n write,\n styles,\n activeTheme,\n rowKey,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly activeTheme: NativeTheme;\n readonly rowKey?: string | number;\n}): ReactElement {\n const copy = useHostCopy();\n const { setInputRef, focusNext } = useInputChain(node.fieldId, rowKey);\n const scale = node.declaration.scale ?? 0;\n const units = node.declaration.units ?? [];\n const committed = quantityOf(field.value);\n const [entry, setEntry] = useState<string | undefined>(undefined);\n const [chosenUnit, setChosenUnit] = useState<string | undefined>(undefined);\n const [failure, setFailure] = useState<Extract<QuantityDraft, { kind: 'invalid' }> | undefined>(\n undefined,\n );\n const text = entry ?? committed?.value ?? '';\n const unit = chosenUnit ?? committed?.unit ?? units[0] ?? '';\n const failureText =\n failure === undefined ? undefined : copy.buffer(failure.reason, failure.params);\n const failureId = failure === undefined ? undefined : `${field.a11y.errorId}-quantity`;\n const mergedHint = joinTokens(a11y.errorHint, failureText);\n const mergedDescribedBy = joinTokens(a11y.describedBy, failureId);\n const inputA11y = controlA11yProps(a11y.props, {\n ...(mergedHint === undefined ? {} : { errorHint: mergedHint }),\n ...(mergedDescribedBy === undefined ? {} : { describedBy: mergedDescribedBy }),\n ...(a11y.invalid === true || failure !== undefined ? { invalid: true } : {}),\n });\n const apply = (nextText: string, nextUnit: string): void => {\n const parsed = parseQuantityDraft(nextText, scale);\n if (parsed.kind === 'partial') {\n setFailure(undefined);\n return;\n }\n if (parsed.kind === 'invalid') {\n setFailure(parsed);\n return;\n }\n setFailure(undefined);\n const value: Record<string, WireValue> = { value: parsed.text, unit: nextUnit };\n write(value);\n };\n const commitDraft = (): void => {\n if (entry === undefined) return;\n const parsed = parseQuantityDraft(entry, scale);\n if (parsed.kind === 'invalid') {\n setFailure(parsed);\n return;\n }\n setEntry(undefined);\n setFailure(undefined);\n };\n return (\n <>\n <View style={styles.row}>\n <TextInput\n {...inputA11y}\n style={styles.input}\n placeholderTextColor={activeTheme.color.muted}\n editable={field.enabled}\n keyboardType={node.hints.native.keyboardType}\n {...(node.placeholder === undefined ? {} : { placeholder: node.placeholder })}\n value={text}\n onChangeText={(next) => {\n setEntry(next);\n apply(next, unit);\n }}\n onBlur={() => {\n commitDraft();\n field.onBlur();\n }}\n returnKeyType=\"next\"\n blurOnSubmit={false}\n onSubmitEditing={() => {\n commitDraft();\n focusNext();\n }}\n ref={setInputRef}\n />\n <View\n style={styles.row}\n accessibilityRole=\"radiogroup\"\n accessibilityLabel={a11y.props.accessibilityLabel}\n accessibilityState={{ disabled: !field.enabled }}\n aria-disabled={!field.enabled}\n >\n {units.map((candidate) => {\n const selected = candidate === unit;\n return (\n <Pressable\n key={candidate}\n accessibilityRole=\"radio\"\n accessibilityState={{ checked: selected, disabled: !field.enabled }}\n aria-checked={selected}\n aria-disabled={!field.enabled}\n disabled={!field.enabled}\n onPress={() => {\n const parsed = entry === undefined ? undefined : parseQuantityDraft(entry, scale);\n const amount = parsed?.kind === 'value' ? parsed.text : committed?.value;\n setChosenUnit(candidate);\n if (amount !== undefined) {\n const value: Record<string, WireValue> = { value: amount, unit: candidate };\n write(value);\n }\n }}\n style={selected ? styles.selected : styles.option}\n >\n <Text style={styles.body}>{candidate}</Text>\n </Pressable>\n );\n })}\n </View>\n </View>\n {failureText === undefined ? null : (\n <Text\n style={styles.danger}\n {...(failureId === undefined ? {} : { nativeID: failureId })}\n accessibilityRole=\"alert\"\n accessibilityLiveRegion=\"polite\"\n >\n {failureText}\n </Text>\n )}\n </>\n );\n}\n\n/**\n * A duration: one whole amount in the unit the declaration names.\n *\n * The wire value is `{ amount, unit }` and the unit is the field's, so the entry writes both\n * members and never a bare number. A partial or unsafe entry writes nothing, which leaves the\n * committed value in place rather than storing an amount the declaration cannot hold.\n */\nfunction DurationEntry({\n node,\n field,\n a11y,\n write,\n styles,\n activeTheme,\n rowKey,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly activeTheme: NativeTheme;\n readonly rowKey?: string | number;\n}): ReactElement {\n const record = isRecord(field.value) ? field.value : undefined;\n const amount =\n record !== undefined && typeof record['amount'] === 'number' ? record['amount'] : undefined;\n const unit = node.declaration.unit ?? 'minutes';\n const { setInputRef, focusNext } = useInputChain(node.fieldId, rowKey);\n return (\n <View style={styles.row}>\n <TextInput\n {...controlA11yProps(a11y.props, a11y)}\n style={styles.input}\n placeholderTextColor={activeTheme.color.muted}\n editable={field.enabled}\n keyboardType=\"number-pad\"\n value={amount === undefined ? '' : String(amount)}\n onChangeText={(text) => {\n const trimmed = text.trim();\n if (trimmed === '') {\n write(null);\n return;\n }\n const parsed = Number(trimmed);\n if (Number.isSafeInteger(parsed) && parsed >= 0) write({ amount: parsed, unit });\n }}\n onBlur={field.onBlur}\n returnKeyType=\"next\"\n blurOnSubmit={false}\n onSubmitEditing={() => focusNext()}\n ref={setInputRef}\n />\n <Text style={styles.currency}>{unit}</Text>\n </View>\n );\n}\n\n/** The text an address value shows in the one-line entry, or empty while it is incomplete. */\ntype AddressMember = 'line1' | 'line2' | 'city' | 'region' | 'postalCode' | 'country';\n\ninterface AddressDraft {\n readonly line1: string;\n readonly line2: string;\n readonly city: string;\n readonly region: string;\n readonly postalCode: string;\n readonly country: string;\n}\n\nconst BLANK_ADDRESS: AddressDraft = Object.freeze({\n line1: '',\n line2: '',\n city: '',\n region: '',\n postalCode: '',\n country: '',\n});\n\n/** Extracts all six declared address members from a wire record, reading non-strings as empty. */\nfunction addressDraftOf(value: WireValue | undefined): AddressDraft {\n if (!isRecord(value)) return BLANK_ADDRESS;\n const member = (key: AddressMember): string => {\n const held = value[key];\n return typeof held === 'string' ? held : '';\n };\n return {\n line1: member('line1'),\n line2: member('line2'),\n city: member('city'),\n region: member('region'),\n postalCode: member('postalCode'),\n country: member('country'),\n };\n}\n\n/**\n * Builds the closed six-member `address` wire record, or `undefined` while incomplete.\n *\n * Empty optional members (`line2`, `region`) are omitted rather than written as empty strings,\n * matching `packages/web/src/address.tsx` and `MODEL-2.1.25`.\n */\nfunction addressRecordOf(draft: AddressDraft): WireRecord | undefined {\n const line1 = draft.line1.trim();\n const line2 = draft.line2.trim();\n const city = draft.city.trim();\n const region = draft.region.trim();\n const postalCode = draft.postalCode.trim();\n const country = draft.country.trim().toUpperCase();\n if (line1 === '' || city === '' || postalCode === '' || !COUNTRY_CODE_PATTERN.test(country)) {\n return undefined;\n }\n return {\n line1,\n city,\n postalCode,\n country,\n ...(line2 === '' ? {} : { line2 }),\n ...(region === '' ? {} : { region }),\n };\n}\n\n/**\n * Local in-progress address draft scoped to the committed value and session writer it was typed\n * over.\n *\n * Kept in an external store (`createAddressDraftStore`) rather than React state so a committed\n * external `setValue` or `reset` can retire a stale draft silently in `useEffect` without a\n * render-phase write or a `setState`-in-effect re-render, preventing a later `setValue(null)` or\n * `removeValue` from resurrecting an abandoned draft.\n */\ninterface ScopedAddressDraft {\n readonly baseValue: WireValue | undefined;\n readonly sessionWriter: FieldProps['setValue'];\n readonly draft: AddressDraft;\n}\n\ninterface AddressDraftStore {\n readonly subscribe: (listener: () => void) => () => void;\n readonly snapshot: () => ScopedAddressDraft | undefined;\n readonly set: (next: ScopedAddressDraft | undefined) => void;\n readonly retireIfStale: (\n sessionWriter: FieldProps['setValue'],\n value: WireValue | undefined,\n ) => void;\n}\n\nfunction createAddressDraftStore(): AddressDraftStore {\n let held: ScopedAddressDraft | undefined = undefined;\n const listeners = new Set<() => void>();\n return {\n subscribe: (listener) => {\n listeners.add(listener);\n return (): void => {\n listeners.delete(listener);\n };\n },\n snapshot: () => held,\n set: (next) => {\n if (held === next) return;\n held = next;\n for (const listener of listeners) listener();\n },\n retireIfStale: (sessionWriter, value) => {\n if (\n held !== undefined &&\n (held.sessionWriter !== sessionWriter || !sameWireValue(held.baseValue, value))\n ) {\n // The committed render already derived `draft = undefined` from the mismatch, so clearing\n // without notifying listeners retires the stale draft with zero extra render.\n held = undefined;\n }\n },\n };\n}\n\ntype AddressLabelKey =\n | 'addressLine1'\n | 'addressLine2'\n | 'addressCity'\n | 'addressRegion'\n | 'addressPostalCode'\n | 'addressCountry';\n\ninterface AddressMemberSpec {\n readonly member: AddressMember;\n readonly labelKey: AddressLabelKey;\n readonly required: boolean;\n readonly autoCapitalize: 'none' | 'sentences' | 'words' | 'characters';\n}\n\nconst ADDRESS_MEMBER_SPECS: readonly AddressMemberSpec[] = Object.freeze([\n { member: 'line1', labelKey: 'addressLine1', required: true, autoCapitalize: 'words' },\n { member: 'line2', labelKey: 'addressLine2', required: false, autoCapitalize: 'words' },\n { member: 'city', labelKey: 'addressCity', required: true, autoCapitalize: 'words' },\n { member: 'region', labelKey: 'addressRegion', required: false, autoCapitalize: 'words' },\n {\n member: 'postalCode',\n labelKey: 'addressPostalCode',\n required: true,\n autoCapitalize: 'characters',\n },\n {\n member: 'country',\n labelKey: 'addressCountry',\n required: true,\n autoCapitalize: 'characters',\n },\n]);\n\nfunction AddressMemberInput({\n fieldId,\n rowKey,\n member,\n memberIndex,\n label,\n accessibleLabel,\n value,\n editable,\n a11y,\n styles,\n activeTheme,\n autoCapitalize,\n onChange,\n onBlur,\n}: {\n readonly fieldId: string;\n readonly rowKey?: string | number;\n readonly member: AddressMember;\n readonly memberIndex: number;\n readonly label: string;\n readonly accessibleLabel: string;\n readonly value: string;\n readonly editable: boolean;\n readonly a11y: EntryA11y;\n readonly styles: FieldStyles;\n readonly activeTheme: NativeTheme;\n readonly autoCapitalize: 'none' | 'sentences' | 'words' | 'characters';\n readonly onChange: (text: string) => void;\n readonly onBlur: () => void;\n}): ReactElement {\n const { setInputRef, focusNext } = useInputChain(`${fieldId}:${member}`, rowKey, memberIndex);\n return (\n <View style={styles.stack}>\n <Text style={styles.label}>{label}</Text>\n <TextInput\n {...controlA11yProps(a11y.props, a11y)}\n style={styles.input}\n placeholderTextColor={activeTheme.color.muted}\n accessibilityLabel={accessibleLabel}\n testID={\n rowKey === undefined\n ? `address:${fieldId}:${member}`\n : `address:${fieldId}:${String(rowKey)}:${member}`\n }\n editable={editable}\n autoCapitalize={autoCapitalize}\n value={value}\n onChangeText={onChange}\n onBlur={onBlur}\n returnKeyType=\"next\"\n blurOnSubmit={false}\n onSubmitEditing={() => focusNext()}\n ref={setInputRef}\n />\n </View>\n );\n}\n\n/**\n * All six declared members of an `address` record (`line1`, `line2`, `city`, `region`,\n * `postalCode`, `country`), matching `packages/web/src/address.tsx`.\n *\n * Focus and blur without edits preserves existing optional members (`line2`, `region`) and\n * writes nothing; unchanged records are skipped via `sameWireValue`.\n */\nfunction AddressEntry({\n node,\n field,\n a11y,\n write,\n styles,\n activeTheme,\n rowKey,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly write: (value: WireValue) => void;\n readonly styles: FieldStyles;\n readonly activeTheme: NativeTheme;\n readonly rowKey?: string | number;\n}): ReactElement {\n const copy = useHostCopy();\n const published = addressDraftOf(field.value);\n const [draftStore] = useState(createAddressDraftStore);\n const scoped = useSyncExternalStore(\n draftStore.subscribe,\n draftStore.snapshot,\n draftStore.snapshot,\n );\n const draft =\n scoped !== undefined &&\n scoped.sessionWriter === field.setValue &&\n sameWireValue(scoped.baseValue, field.value)\n ? scoped.draft\n : undefined;\n useEffect(() => {\n draftStore.retireIfStale(field.setValue, field.value);\n }, [draftStore, field.setValue, field.value]);\n const shown = draft ?? published;\n const change = (member: AddressMember, text: string): void => {\n const next: AddressDraft = { ...shown, [member]: text };\n const record = addressRecordOf(next);\n if (record !== undefined) {\n if (!sameWireValue(record, field.value)) {\n draftStore.set({ baseValue: record, sessionWriter: field.setValue, draft: next });\n write(record);\n } else {\n draftStore.set({ baseValue: field.value, sessionWriter: field.setValue, draft: next });\n }\n return;\n }\n if (addressRecordOf(published) !== undefined) {\n draftStore.set({ baseValue: null, sessionWriter: field.setValue, draft: next });\n write(null);\n return;\n }\n draftStore.set({ baseValue: field.value, sessionWriter: field.setValue, draft: next });\n };\n const blur = (): void => {\n if (addressRecordOf(shown) !== undefined) draftStore.set(undefined);\n field.onBlur();\n };\n return (\n <View\n style={styles.stack}\n accessibilityRole=\"group\"\n accessibilityLabel={a11y.props.accessibilityLabel}\n >\n {ADDRESS_MEMBER_SPECS.map((spec, memberIndex) => {\n const memberLabel = copy[spec.labelKey]();\n return (\n <AddressMemberInput\n key={spec.member}\n fieldId={node.fieldId}\n {...(rowKey === undefined ? {} : { rowKey })}\n member={spec.member}\n memberIndex={memberIndex}\n label={memberLabel}\n accessibleLabel={\n field.a11y.required && spec.required\n ? `${node.label}: ${memberLabel} (${copy.requiredMarker()})`\n : `${node.label}: ${memberLabel}`\n }\n value={shown[spec.member]}\n editable={field.mayWrite}\n a11y={a11y}\n styles={styles}\n activeTheme={activeTheme}\n autoCapitalize={spec.autoCapitalize}\n onChange={(text) => change(spec.member, text)}\n onBlur={blur}\n />\n );\n })}\n </View>\n );\n}\n\nfunction BufferedEntry({\n node,\n field,\n a11y,\n guard,\n styles,\n activeTheme,\n rowKey,\n format,\n}: {\n readonly node: RenderControlNode;\n readonly field: FieldProps;\n readonly a11y: EntryA11y;\n readonly guard: (action: () => void) => void;\n readonly styles: FieldStyles;\n readonly activeTheme: NativeTheme;\n readonly rowKey?: string | number;\n readonly format: BufferedFormat;\n}): ReactElement {\n const buffer = useBufferedInput(node.fieldId, format, rowKey);\n const copy = useHostCopy();\n const { setInputRef, focusNext } = useInputChain(node.fieldId, rowKey);\n const parseErrorText =\n buffer.parseError === undefined\n ? undefined\n : copy.buffer(buffer.parseError, buffer.parseErrorParams);\n const parseErrorId = buffer.parseError === undefined ? undefined : `${field.a11y.errorId}-buffer`;\n const mergedHint = joinTokens(a11y.errorHint, parseErrorText);\n const mergedDescribedBy = joinTokens(a11y.describedBy, parseErrorId);\n const inputA11y = controlA11yProps(a11y.props, {\n ...(mergedHint === undefined ? {} : { errorHint: mergedHint }),\n ...(mergedDescribedBy === undefined ? {} : { describedBy: mergedDescribedBy }),\n ...(a11y.invalid === true || buffer.parseError !== undefined ? { invalid: true } : {}),\n });\n // The Enter key writes the entry now, so a value cannot sit uncommitted behind a keyboard\n // with no Done affordance; the chain then moves focus, and the blur that follows records\n // the visit exactly as a tap-away would.\n const submit = (): void => {\n guard(buffer.commit);\n focusNext();\n };\n // The declaration names the currency, never the host: the adornment below prints that same\n // string beside the entry, and the wire write stays the buffer's own commit.\n const currency = format.kind === 'money' ? node.declaration.currency : undefined;\n const input = (\n <TextInput\n {...inputA11y}\n style={styles.input}\n placeholderTextColor={activeTheme.color.muted}\n editable={field.enabled}\n keyboardType={node.hints.native.keyboardType}\n {...(node.placeholder === undefined ? {} : { placeholder: node.placeholder })}\n value={buffer.text}\n onChangeText={(text) => guard(() => buffer.setText(text))}\n onBlur={() => {\n // The visit is recorded whether or not the entry was a value: the buffer owns the\n // write, and a refusal it reports must not keep the touched state from showing.\n guard(buffer.commit);\n field.onBlur();\n }}\n returnKeyType=\"next\"\n blurOnSubmit={false}\n onSubmitEditing={submit}\n ref={setInputRef}\n />\n );\n return (\n <>\n {currency === undefined ? (\n input\n ) : (\n <View style={styles.row}>\n {input}\n <Text\n style={styles.currency}\n accessibilityElementsHidden={true}\n importantForAccessibility=\"no-hide-descendants\"\n aria-hidden={true}\n >\n {currency}\n </Text>\n </View>\n )}\n {parseErrorText === undefined ? null : (\n <Text\n style={styles.danger}\n {...(parseErrorId === undefined ? {} : { nativeID: parseErrorId })}\n accessibilityRole=\"alert\"\n accessibilityLiveRegion=\"polite\"\n >\n {parseErrorText}\n </Text>\n )}\n </>\n );\n}\n\n/** The visible control failures from the session's reveal policy, verbatim. */\nfunction visibleErrorsOf(field: FieldProps): readonly FieldProps['errors'][number][] {\n return field.visibleErrors;\n}\n\n/** The failures a binding announced, in the artifact's order and the selected locale. */\nfunction Errors({\n errorId,\n items,\n styles,\n}: {\n readonly errorId: string;\n readonly items: readonly ResolvedErrorItem[];\n readonly styles: FieldStyles;\n}): ReactElement {\n return (\n <View nativeID={errorId} accessibilityLiveRegion=\"polite\">\n {items.map((item) => (\n <Text key={item.key} style={styles.danger}>\n {item.text}\n </Text>\n ))}\n </View>\n );\n}\n\n/**\n * One failure's own identity inside its binding, for a React key.\n *\n * Derived per rule, gate item or binding fact, so it never names two different errors; a new\n * failure above an old one therefore moves the old text's node rather than reusing it, which is\n * what keeps the announced reason attached to the right control.\n */\nfunction errorKeyOf(error: FieldProps['errors'][number]): string {\n switch (error.kind) {\n case 'validate':\n case 'deferred':\n return `${error.kind}:${error.ruleId}:${error.messageKey}`;\n case 'required':\n return `required:${error.fieldId}@${String(error.rowKey ?? '')}`;\n case 'cardinality':\n return `cardinality:${error.bound}`;\n case 'invalid-value':\n return `invalid-value:${error.code}`;\n case 'access':\n return `access:${error.access}`;\n case 'gate':\n return `gate:${error.gateId}:${error.itemId}:${error.messageKey}`;\n case 'screen':\n return `screen:${error.screenId}:${error.outcome}`;\n case 'row-key':\n return `row-key:${error.code}:${String(error.rowKey)}`;\n }\n}\n\n/** The artifact states a message key for a rule or gate and none for the other four kinds. */\nfunction errorTextOf(\n error: FieldProps['errors'][number],\n label: string,\n translate: RenderTranslate,\n copy: HostCopy,\n): string | undefined {\n switch (error.kind) {\n case 'validate':\n case 'deferred':\n case 'gate':\n return translate(error.messageKey, error.params);\n case 'required':\n return copy.required(label, error.rowName);\n case 'cardinality':\n return copy.cardinality(label, error.bound, error.count, error.limit);\n case 'invalid-value':\n return copy.invalidValue(label);\n case 'access':\n return copy.notEditable(label, error.access);\n case 'screen':\n return copy.screenUnavailable(error.screenId);\n case 'row-key':\n return copy.rowKey(label, error.rowName);\n default:\n return assertNeverError(error);\n }\n}\n\n/** A union arm the compiler proves unreachable. */\nfunction assertNeverError(value: never): never {\n throw new Error(`unreachable field error: ${JSON.stringify(value)}`);\n}\n\nfunction createFieldStyles(activeTheme: NativeTheme) {\n return StyleSheet.create({\n control: { gap: activeTheme.space.tight, marginBottom: activeTheme.space.medium },\n label: {\n fontSize: activeTheme.text.label,\n fontWeight: activeTheme.weight.semibold,\n color: activeTheme.color.ink,\n },\n body: { fontSize: activeTheme.text.body, color: activeTheme.color.ink },\n description: {\n fontStyle: 'italic',\n color: activeTheme.color.muted,\n fontSize: activeTheme.text.caption,\n },\n danger: { color: activeTheme.color.danger, fontSize: activeTheme.text.caption },\n input: {\n minHeight: activeTheme.size.target,\n paddingHorizontal: activeTheme.space.small,\n paddingVertical: activeTheme.space.tight,\n borderWidth: 1,\n borderColor: activeTheme.color.border,\n borderRadius: activeTheme.radius.chip,\n backgroundColor: activeTheme.color.surface,\n color: activeTheme.color.ink,\n fontSize: activeTheme.text.body,\n },\n row: { flexDirection: 'row', flexWrap: 'wrap', gap: activeTheme.space.small },\n stack: { gap: activeTheme.space.tight },\n // Every chip shares one floor: a pressable smaller than the target size in both dimensions is\n // a mis-tap on a phone, and the unit chips below ride the same two styles.\n option: {\n paddingHorizontal: activeTheme.space.medium,\n paddingVertical: activeTheme.space.tight,\n minHeight: activeTheme.size.target,\n minWidth: activeTheme.size.target,\n justifyContent: 'center',\n borderWidth: 1,\n borderColor: activeTheme.color.border,\n borderRadius: activeTheme.radius.chip,\n backgroundColor: activeTheme.color.surface,\n },\n selected: {\n paddingHorizontal: activeTheme.space.medium,\n paddingVertical: activeTheme.space.tight,\n minHeight: activeTheme.size.target,\n minWidth: activeTheme.size.target,\n justifyContent: 'center',\n borderWidth: 2,\n borderColor: activeTheme.color.accent,\n borderRadius: activeTheme.radius.chip,\n backgroundColor: activeTheme.color.surface,\n },\n // The currency beside a money entry, aligned with the input it names the unit of.\n currency: {\n alignSelf: 'center',\n color: activeTheme.color.muted,\n fontSize: activeTheme.text.body,\n },\n });\n}\n\ntype FieldStyles = ReturnType<typeof createFieldStyles>;\n\nconst FIELD_STYLES = new WeakMap<NativeTheme, FieldStyles>();\n\nfunction fieldStylesFor(activeTheme: NativeTheme): FieldStyles {\n const cached = FIELD_STYLES.get(activeTheme);\n if (cached !== undefined) return cached;\n const created = createFieldStyles(activeTheme);\n FIELD_STYLES.set(activeTheme, created);\n return created;\n}\n"]}
|
package/dist/host.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { Context } from 'react';
|
|
2
|
+
import type { WireRecord } from '@azx-pbc/axiom-runtime';
|
|
3
|
+
/**
|
|
4
|
+
* How a host's request for the device's position ended.
|
|
5
|
+
*
|
|
6
|
+
* A denial and an absent device are different facts, so the result is a tagged union rather than
|
|
7
|
+
* `undefined`: a control that collapsed them would tell the reader nothing about why the action
|
|
8
|
+
* did nothing or whether asking again could help. The adapter owns canonical decimal text; the
|
|
9
|
+
* host reports the platform's numbers and the instant it read them.
|
|
10
|
+
*/
|
|
11
|
+
export type HostPositionResult = {
|
|
12
|
+
readonly outcome: 'granted';
|
|
13
|
+
/** Decimal degrees, as the platform reports them. The adapter canonicalises the text. */
|
|
14
|
+
readonly latitude: number;
|
|
15
|
+
readonly longitude: number;
|
|
16
|
+
/** The horizontal radius in metres, when the platform reports one. */
|
|
17
|
+
readonly accuracy?: number;
|
|
18
|
+
/** The instant the reading was taken, as an ISO 8601 UTC instant. */
|
|
19
|
+
readonly capturedAt: string;
|
|
20
|
+
} | {
|
|
21
|
+
readonly outcome: 'denied';
|
|
22
|
+
} | {
|
|
23
|
+
readonly outcome: 'unavailable';
|
|
24
|
+
} | {
|
|
25
|
+
readonly outcome: 'timed-out';
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The declared constraints a media capture action must honour before it stores anything.
|
|
29
|
+
*
|
|
30
|
+
* The adapter checks the reference it receives, and a host that opens a picker or camera can
|
|
31
|
+
* honour the same declaration earlier: the picker can filter accepted types, and an oversize
|
|
32
|
+
* capture can be refused before it crosses the network.
|
|
33
|
+
*/
|
|
34
|
+
export interface MediaCaptureRequest {
|
|
35
|
+
/** The field's translated label, so a host sheet names what it is capturing for. */
|
|
36
|
+
readonly label?: string;
|
|
37
|
+
/** The declaration's `accept` entries, already in their canonical lower-case spelling. */
|
|
38
|
+
readonly accept?: readonly string[];
|
|
39
|
+
/** The declaration's lower byte bound, when it states one. */
|
|
40
|
+
readonly minBytes?: number;
|
|
41
|
+
/** The declaration's upper byte bound, when it states one. */
|
|
42
|
+
readonly maxBytes?: number;
|
|
43
|
+
}
|
|
44
|
+
/** The label a signature capture action carries, so a host sheet can name the field. */
|
|
45
|
+
export interface SignatureCaptureRequest {
|
|
46
|
+
readonly label?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The capabilities a host brings to a document the device renderer cannot perform itself.
|
|
50
|
+
*
|
|
51
|
+
* A `signature_capture`, `media_capture`, or `map` field depends on host services, permissions,
|
|
52
|
+
* and storage. A host that supplies a capability declares it here; a host that does not leaves the
|
|
53
|
+
* port omitted, and the control stays read-only rather than offering a button that could only fail.
|
|
54
|
+
* Every capability is keyed by the binding it acts on, so the tree needs no knowledge of which
|
|
55
|
+
* document it paints.
|
|
56
|
+
*/
|
|
57
|
+
export interface HostActions {
|
|
58
|
+
/**
|
|
59
|
+
* Signs the record as this page currently shows it, and returns the failure detail when it could
|
|
60
|
+
* not.
|
|
61
|
+
*
|
|
62
|
+
* The values travel through the host's session because a signature binds what its signer was
|
|
63
|
+
* shown: a branch the screen excluded is not signed.
|
|
64
|
+
*/
|
|
65
|
+
readonly captureSignature?: (fieldId: string, request?: SignatureCaptureRequest) => Promise<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* Asks the host for one `media_ref` for a field, usually by opening a camera or file picker.
|
|
68
|
+
*
|
|
69
|
+
* The renderer uploads nothing and stores nothing: the host chooses the asset, computes the
|
|
70
|
+
* reference and digest, and returns the closed `media_ref` record. The adapter writes the answer
|
|
71
|
+
* (or appends it for a `media_ref[]` field).
|
|
72
|
+
*/
|
|
73
|
+
readonly captureMedia?: (fieldId: string, request?: MediaCaptureRequest) => Promise<WireRecord | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* The preview URI a captured `media_ref` can be displayed from, when the host keeps one.
|
|
76
|
+
*/
|
|
77
|
+
readonly mediaSrc?: (reference: WireRecord) => string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Asks the host for the device's current position for a `coordinate` (`map`) field.
|
|
80
|
+
*
|
|
81
|
+
* Permission, hardware, and timeouts are the host's policy, and a denial is a stated outcome
|
|
82
|
+
* rather than an empty promise.
|
|
83
|
+
*/
|
|
84
|
+
readonly capturePosition?: (fieldId: string) => Promise<HostPositionResult>;
|
|
85
|
+
}
|
|
86
|
+
/** The capabilities in force; a device that supplies none keeps capture controls read-only. */
|
|
87
|
+
export declare const HostActionsContext: Context<HostActions>;
|
|
88
|
+
/** The host capabilities this screen supplies. */
|
|
89
|
+
export declare function useHostActions(): HostActions;
|
|
90
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;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AC1B,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,KAAK,MAAM,GAAG,SAAS,CAAC;IAClE;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAC7E;AAED,+FAA+F;AAC/F,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,WAAW,CAAkC,CAAC;AAEvF,kDAAkD;AAClD,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
|
package/dist/host.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
/** The capabilities in force; a device that supplies none keeps capture controls read-only. */
|
|
3
|
+
export const HostActionsContext = createContext({});
|
|
4
|
+
/** The host capabilities this screen supplies. */
|
|
5
|
+
export function useHostActions() {
|
|
6
|
+
return useContext(HostActionsContext);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=host.js.map
|
package/dist/host.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host.js","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AA+FlD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,kBAAkB,GAAyB,aAAa,CAAc,EAAE,CAAC,CAAC;AAEvF,kDAAkD;AAClD,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import { createContext, useContext } from 'react';\nimport type { Context } from 'react';\nimport type { WireRecord } from '@azx-pbc/axiom-runtime';\n\n/**\n * How a host's request for the device's position ended.\n *\n * A denial and an absent device are different facts, so the result is a tagged union rather than\n * `undefined`: a control that collapsed them would tell the reader nothing about why the action\n * did nothing or whether asking again could help. The adapter owns canonical decimal text; the\n * host reports the platform's numbers and the instant it read them.\n */\nexport type HostPositionResult =\n | {\n readonly outcome: 'granted';\n /** Decimal degrees, as the platform reports them. The adapter canonicalises the text. */\n readonly latitude: number;\n readonly longitude: number;\n /** The horizontal radius in metres, when the platform reports one. */\n readonly accuracy?: number;\n /** The instant the reading was taken, as an ISO 8601 UTC instant. */\n readonly capturedAt: string;\n }\n | { readonly outcome: 'denied' }\n | { readonly outcome: 'unavailable' }\n | { readonly outcome: 'timed-out' };\n\n/**\n * The declared constraints a media capture action must honour before it stores anything.\n *\n * The adapter checks the reference it receives, and a host that opens a picker or camera can\n * honour the same declaration earlier: the picker can filter accepted types, and an oversize\n * capture can be refused before it crosses the network.\n */\nexport interface MediaCaptureRequest {\n /** The field's translated label, so a host sheet names what it is capturing for. */\n readonly label?: string;\n /** The declaration's `accept` entries, already in their canonical lower-case spelling. */\n readonly accept?: readonly string[];\n /** The declaration's lower byte bound, when it states one. */\n readonly minBytes?: number;\n /** The declaration's upper byte bound, when it states one. */\n readonly maxBytes?: number;\n}\n\n/** The label a signature capture action carries, so a host sheet can name the field. */\nexport interface SignatureCaptureRequest {\n readonly label?: string;\n}\n\n/**\n * The capabilities a host brings to a document the device renderer cannot perform itself.\n *\n * A `signature_capture`, `media_capture`, or `map` field depends on host services, permissions,\n * and storage. A host that supplies a capability declares it here; a host that does not leaves the\n * port omitted, and the control stays read-only rather than offering a button that could only fail.\n * Every capability is keyed by the binding it acts on, so the tree needs no knowledge of which\n * document it paints.\n */\nexport interface HostActions {\n /**\n * Signs the record as this page currently shows it, and returns the failure detail when it could\n * not.\n *\n * The values travel through the host's session because a signature binds what its signer was\n * shown: a branch the screen excluded is not signed.\n */\n readonly captureSignature?: (\n fieldId: string,\n request?: SignatureCaptureRequest,\n ) => Promise<string | undefined>;\n /**\n * Asks the host for one `media_ref` for a field, usually by opening a camera or file picker.\n *\n * The renderer uploads nothing and stores nothing: the host chooses the asset, computes the\n * reference and digest, and returns the closed `media_ref` record. The adapter writes the answer\n * (or appends it for a `media_ref[]` field).\n */\n readonly captureMedia?: (\n fieldId: string,\n request?: MediaCaptureRequest,\n ) => Promise<WireRecord | undefined>;\n /**\n * The preview URI a captured `media_ref` can be displayed from, when the host keeps one.\n */\n readonly mediaSrc?: (reference: WireRecord) => string | undefined;\n /**\n * Asks the host for the device's current position for a `coordinate` (`map`) field.\n *\n * Permission, hardware, and timeouts are the host's policy, and a denial is a stated outcome\n * rather than an empty promise.\n */\n readonly capturePosition?: (fieldId: string) => Promise<HostPositionResult>;\n}\n\n/** The capabilities in force; a device that supplies none keeps capture controls read-only. */\nexport const HostActionsContext: Context<HostActions> = createContext<HostActions>({});\n\n/** The host capabilities this screen supplies. */\nexport function useHostActions(): HostActions {\n return useContext(HostActionsContext);\n}\n"]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { NativeConfigurator, declaresAlternatives, useConfirmationStage } from './configurator.js';
|
|
2
|
+
export type { ConfirmationStage } from './configurator.js';
|
|
3
|
+
export { ControlComponentsContext, useControlComponents } from './controls.js';
|
|
4
|
+
export type { ControlComponent, ControlComponentProps, ControlComponents, ControlConstraints, } from './controls.js';
|
|
5
|
+
export { HOST_COPY_LOCALES, HostCopyContext, hostCopy, useHostCopy } from './copy.js';
|
|
6
|
+
export type { BufferParams, ExtraBufferReason, HostCopy, HostCopyLocale } from './copy.js';
|
|
7
|
+
export { Control } from './fields.js';
|
|
8
|
+
export { HostActionsContext, useHostActions } from './host.js';
|
|
9
|
+
export type { HostActions, HostPositionResult, MediaCaptureRequest, SignatureCaptureRequest, } from './host.js';
|
|
10
|
+
export { LayoutComponentsContext, useLayoutComponents } from './render/layout.js';
|
|
11
|
+
export type { ContainerKind, LayoutComponent, LayoutComponents, LayoutSlotProps, } from './render/layout.js';
|
|
12
|
+
export { columnStyle, controlA11yProps, toNativeProps } from './render/native.js';
|
|
13
|
+
export type { ControlA11yProps, NativeFieldState, NativeNodeProps, NativeRole, } from './render/native.js';
|
|
14
|
+
export { ErrorSummary, LayoutTree, RenderedForm } from './render/tree.js';
|
|
15
|
+
export type { LayoutTreeProps, RenderedFormProps } from './render/tree.js';
|
|
16
|
+
export { NativeThemeContext, NativeThemeProvider, createNativeTheme, theme, useNativeTheme, } from './theme.js';
|
|
17
|
+
export type { NativeFontWeight, NativeTheme, NativeThemeColors, NativeThemeOverrides, NativeThemeProviderProps, NativeThemeRadius, NativeThemeSize, NativeThemeSpace, NativeThemeText, NativeThemeWeight, } from './theme.js';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACnG,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC/E,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACtF,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC/D,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAClF,YAAY,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAClF,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1E,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,EACL,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { NativeConfigurator, declaresAlternatives, useConfirmationStage } from './configurator.js';
|
|
2
|
+
export { ControlComponentsContext, useControlComponents } from './controls.js';
|
|
3
|
+
export { HOST_COPY_LOCALES, HostCopyContext, hostCopy, useHostCopy } from './copy.js';
|
|
4
|
+
export { Control } from './fields.js';
|
|
5
|
+
export { HostActionsContext, useHostActions } from './host.js';
|
|
6
|
+
export { LayoutComponentsContext, useLayoutComponents } from './render/layout.js';
|
|
7
|
+
export { columnStyle, controlA11yProps, toNativeProps } from './render/native.js';
|
|
8
|
+
export { ErrorSummary, LayoutTree, RenderedForm } from './render/tree.js';
|
|
9
|
+
export { NativeThemeContext, NativeThemeProvider, createNativeTheme, theme, useNativeTheme, } from './theme.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEnG,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAO/E,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEtF,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAO/D,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAOlF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAOlF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,EACL,cAAc,GACf,MAAM,YAAY,CAAC","sourcesContent":["export { NativeConfigurator, declaresAlternatives, useConfirmationStage } from './configurator.js';\nexport type { ConfirmationStage } from './configurator.js';\nexport { ControlComponentsContext, useControlComponents } from './controls.js';\nexport type {\n ControlComponent,\n ControlComponentProps,\n ControlComponents,\n ControlConstraints,\n} from './controls.js';\nexport { HOST_COPY_LOCALES, HostCopyContext, hostCopy, useHostCopy } from './copy.js';\nexport type { BufferParams, ExtraBufferReason, HostCopy, HostCopyLocale } from './copy.js';\nexport { Control } from './fields.js';\nexport { HostActionsContext, useHostActions } from './host.js';\nexport type {\n HostActions,\n HostPositionResult,\n MediaCaptureRequest,\n SignatureCaptureRequest,\n} from './host.js';\nexport { LayoutComponentsContext, useLayoutComponents } from './render/layout.js';\nexport type {\n ContainerKind,\n LayoutComponent,\n LayoutComponents,\n LayoutSlotProps,\n} from './render/layout.js';\nexport { columnStyle, controlA11yProps, toNativeProps } from './render/native.js';\nexport type {\n ControlA11yProps,\n NativeFieldState,\n NativeNodeProps,\n NativeRole,\n} from './render/native.js';\nexport { ErrorSummary, LayoutTree, RenderedForm } from './render/tree.js';\nexport type { LayoutTreeProps, RenderedFormProps } from './render/tree.js';\nexport {\n NativeThemeContext,\n NativeThemeProvider,\n createNativeTheme,\n theme,\n useNativeTheme,\n} from './theme.js';\nexport type {\n NativeFontWeight,\n NativeTheme,\n NativeThemeColors,\n NativeThemeOverrides,\n NativeThemeProviderProps,\n NativeThemeRadius,\n NativeThemeSize,\n NativeThemeSpace,\n NativeThemeText,\n NativeThemeWeight,\n} from './theme.js';\n"]}
|