@schema-engine/forms 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +1 -1
  2. package/dist/actions/index.js +4 -4
  3. package/dist/actions/plugins/index.js +3 -3
  4. package/dist/actions/plugins/registrations.js +3 -3
  5. package/dist/agent-tool/index.js +1 -1
  6. package/dist/{chunk-U2X3IYSD.js → chunk-6EYX257T.js} +1 -1
  7. package/dist/{chunk-HEAKWS27.js → chunk-A5VLMQAK.js} +693 -643
  8. package/dist/chunk-A5VLMQAK.js.map +7 -0
  9. package/dist/{chunk-5QXT7YAJ.js → chunk-CANRZY5A.js} +1 -1
  10. package/dist/{chunk-2VKEOE2L.js → chunk-GQHMU3AR.js} +12 -12
  11. package/dist/{chunk-WS7SLVXL.js → chunk-JA5ET6MC.js} +4 -4
  12. package/dist/{chunk-2PTM54FQ.js → chunk-KH6QWB5Y.js} +2 -2
  13. package/dist/chunk-PCL2KNHC.js.map +7 -0
  14. package/dist/{chunk-56CJ2UZ7.js → chunk-TSKELYW7.js} +2 -2
  15. package/dist/chunk-U3YHTQHR.js +215 -0
  16. package/dist/chunk-U3YHTQHR.js.map +7 -0
  17. package/dist/{chunk-XPQRHO5E.js → chunk-V5H7L5PJ.js} +1 -1
  18. package/dist/engine/build-form-engine.js +7 -7
  19. package/dist/engine/create-form-engine.js +8 -8
  20. package/dist/engine/form-engine.js +7 -7
  21. package/dist/engine/index.js +8 -8
  22. package/dist/engine/step-machine.js +1 -1
  23. package/dist/engine/submission-schema.js +1 -1
  24. package/dist/engine/value-validation.js +1 -1
  25. package/dist/index.js +26 -26
  26. package/dist/lib/validate-form.js +4 -4
  27. package/dist/recipes/index.js +1 -1
  28. package/dist/recipes/view-model.js +1 -1
  29. package/dist/runtime/create-form-runtime.js +7 -7
  30. package/dist/runtime/index.js +7 -7
  31. package/dist/schemas/base-field.js +2 -2
  32. package/dist/schemas/form-config-shape.js +2 -2
  33. package/dist/schemas/form-config.js +2 -2
  34. package/dist/schemas/index.js +5 -5
  35. package/dist/schemas/validation/dependencies.js +1 -1
  36. package/dist/schemas/validation/index.js +5 -5
  37. package/dist/schemas/validation/utils.js +1 -1
  38. package/dist/schemas/validation/validation-registry.js +1 -1
  39. package/dist/server-errors/from-json-api-errors.js +3 -3
  40. package/dist/server-errors/from-problem-details.js +3 -3
  41. package/dist/server-errors/index.js +6 -6
  42. package/dist/server-errors/shared.js +2 -2
  43. package/dist/state-container/create-form-state-container.js +5 -5
  44. package/dist/state-container/index.d.ts +1 -1
  45. package/dist/state-container/index.js +12 -12
  46. package/dist/state-container/selectors.js +1 -1
  47. package/dist/state-container/submission.js +1 -1
  48. package/dist/state-container/types.d.ts +1 -1
  49. package/dist/state-container/types.js +1 -1
  50. package/dist/testing/assert.d.ts +92 -0
  51. package/dist/testing/assert.js +42 -0
  52. package/dist/testing/assert.js.map +7 -0
  53. package/dist/testing/form-state-container-conformance.d.ts +15 -3
  54. package/dist/testing/form-state-container-conformance.js +4 -3
  55. package/dist/testing/index.d.ts +3 -2
  56. package/dist/testing/index.js +4 -3
  57. package/package.json +7 -13
  58. package/skill/reference/forms.md +3 -2
  59. package/dist/chunk-HEAKWS27.js.map +0 -7
  60. package/dist/chunk-PXWVKJGF.js.map +0 -7
  61. package/dist/{chunk-U2X3IYSD.js.map → chunk-6EYX257T.js.map} +0 -0
  62. package/dist/{chunk-5QXT7YAJ.js.map → chunk-CANRZY5A.js.map} +0 -0
  63. package/dist/{chunk-GY657L56.js → chunk-DP7SYLLI.js} +5 -5
  64. /package/dist/{chunk-GY657L56.js.map → chunk-DP7SYLLI.js.map} +0 -0
  65. /package/dist/{chunk-2VKEOE2L.js.map → chunk-GQHMU3AR.js.map} +0 -0
  66. /package/dist/{chunk-WS7SLVXL.js.map → chunk-JA5ET6MC.js.map} +0 -0
  67. /package/dist/{chunk-2PTM54FQ.js.map → chunk-KH6QWB5Y.js.map} +0 -0
  68. /package/dist/{chunk-PXWVKJGF.js → chunk-PCL2KNHC.js} +0 -0
  69. /package/dist/{chunk-56CJ2UZ7.js.map → chunk-TSKELYW7.js.map} +0 -0
  70. /package/dist/{chunk-XPQRHO5E.js.map → chunk-V5H7L5PJ.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/state-container/types.ts"],
4
+ "sourcesContent": ["import type { FieldParticipation, ValidationStep } from '@/engine/value-validation';\nimport type { ValidationRegistry } from '@/schemas/validation/validation-registry';\nimport type { FieldArrayCommands } from './field-array';\n\n/**\n * The internal form state contract: what a form's state container owns, and what it leaves to others.\n *\n * @remarks\n * The container owns the nested value tree, field state (errors, touched, dirty), field-array row ids and\n * the atomic updates that keep them consistent. A path is a plain dotted path with the row index in it\n * (`contacts.1.email`) wherever the API takes one, and {@link FORM_ROOT} names the form itself. It holds\n * no submission state (`isSubmitting`, `submitCount`, a submit guard): the runtime owns those. Focus,\n * native controls and native submit belong to the host, and there is no control registration: a host\n * bridges a control into the container with {@link FormStateContainer.setValue} and\n * {@link FormStateContainer.blur}, reports the control's native validity with\n * {@link FormStateContainer.reportNative}, and submits with {@link FormStateContainer.submit}, whose result\n * carries the way to hand back the server's answer.\n *\n * The container is named for what it holds, not `FormStore`, which is a class of Radiant UI. The contract is\n * public through `@schema-engine/forms/state-container`, with `@schema-engine/forms/csrf` and\n * `@schema-engine/forms/server-errors` beside it. Its conformance suite is `formStateContainerConformance` from\n * `@schema-engine/forms/testing`, which takes the `describe` and `test` of any test runner.\n */\n\n/**\n * The key of an error about the form itself rather than a field, in `snapshot.errors` and in `setServerErrors`.\n *\n * @remarks Path segments that start with `__` are reserved, so no field can have this name.\n */\nexport const FORM_ROOT = '__root__';\n\n/**\n * When a field validates before a check of it has failed: on `change`, on `blur`, on both (`all`), on the\n * first `blur` and on every change after it (`onTouched`, as React Hook Form's mode of that name) or only on\n * an explicit {@link FormStateContainer.validate}.\n */\nexport type FormValidationMode = 'onSubmit' | 'onChange' | 'onBlur' | 'onTouched' | 'all';\n\n/** When a field validates once a {@link FormStateContainer.validate} over it has failed. */\nexport type FormReValidateMode = 'onSubmit' | 'onChange' | 'onBlur';\n\n/** Who reported an issue. */\nexport type FormStateSource = 'server' | 'validation' | 'native';\n\n/**\n * One thing wrong with a path, who said so, and what a translation needs to say it.\n *\n * @remarks\n * `type` names the problem for a program: the rule's type (`'minLength'`), the `ValidityState` flag of a\n * native control (`'typeMismatch'`) or the server's code. `ruleId` is the author's stable name for the\n * rule, so two `pattern` rules stay distinguishable. `params` are the numbers and names the text is\n * built from, serializable (`{ minLength: 8 }` for a rule, `{ minLength: 8 }` for a native control).\n * `message` is only the text the author wrote on the rule, or the server or control sent, for a host with no\n * translation of the issue, and may be absent. Text the schema library would make up is never used.\n */\nexport interface FormStateIssue {\n\treadonly type: string;\n\treadonly source: FormStateSource;\n\treadonly ruleId?: string;\n\treadonly params?: Readonly<Record<string, unknown>>;\n\treadonly message?: string;\n}\n\n/**\n * The error of a path: the issue to show, and every issue the path has.\n *\n * @remarks\n * The fields of the issue are those of `all[0]`, so the error reads like a single issue, and `all` is\n * never empty. `all` lists, in this order, what the server said, then each rule the value fails in\n * authored order (never the order the checks finished in), then what the platform's own control reports.\n * The same error object comes back while none of that changes.\n */\nexport interface FormStateError extends FormStateIssue {\n\treadonly all: readonly FormStateIssue[];\n}\n\n/**\n * Advice about a path: shaped and timed exactly like an error, and never blocking.\n *\n * @remarks\n * It comes from rules declared with `severity: 'warning'`, so its issues have the source `'validation'`.\n * It never affects `isValid`, `validate` or `checkValidity`. A server cannot send warnings yet.\n */\nexport type FormStateWarning = FormStateError;\n\n/**\n * Why a submission as a whole failed, in the shape of an issue, so a host words it with the one formatter.\n *\n * @remarks\n * It is not a {@link FormStateIssue}: a submission failure (the action that threw, the callback that\n * rejected, the service that was down) concerns no field and the snapshot never holds one. `type` names the\n * failure for a program, `params` fill the text, and `message` is only the text the failure itself carried.\n */\nexport interface FormSubmissionIssue {\n\treadonly type: string;\n\treadonly source: 'submission';\n\treadonly params?: Readonly<Record<string, unknown>>;\n\treadonly message?: string;\n}\n\n/**\n * Turns an issue into the text to show, for the field at `field.path`.\n *\n * @remarks\n * The one seam between the engine, which reports what is wrong (`type`, `ruleId`, `params`), and the text\n * of the application's language, which the engine does not own. A binding takes one from its host and\n * calls it for the issue to show (an error or warning is itself an issue) and for each of `all` it lists,\n * falling back to `issue.message` when the host gives none or the formatter returns nothing worth showing.\n * `ruleId` picks a text of one rule, `type` a text of a kind of rule, and `params` fill its numbers. The\n * action context and the bindings use this same issue type, so one formatter serves them all. A\n * {@link FormSubmissionIssue} goes through it too, with the path of the form ({@link FORM_ROOT}).\n */\nexport type FormIssueFormatter = (\n\tissue: FormStateIssue | FormSubmissionIssue,\n\tfield: { readonly path: string },\n) => string;\n\n/**\n * An issue as a caller of `setServerErrors` may give it.\n *\n * @remarks\n * Every part is optional, as a server response may carry only a code or only a message. A missing `type`\n * is kept as `'server'`. An issue with nothing but a type still counts as an error: it blocks\n * {@link FormStateContainer.validate}.\n */\nexport interface FormStateErrorInput {\n\treadonly type?: string;\n\treadonly params?: Readonly<Record<string, unknown>>;\n\treadonly message?: string;\n}\n\n/** What `setServerErrors` takes: one issue or a list of them for each path. */\nexport type FormStateErrorsInput = Readonly<Record<string, FormStateErrorInput | readonly FormStateErrorInput[]>>;\n\n/**\n * What a platform control reports about its value.\n *\n * @remarks\n * `type` is the `ValidityState` flag (`'valueMissing'`, `'typeMismatch'`, `'tooShort'`), `params` the\n * constraint behind it that a text needs (`{ minLength: 8 }`, `{ pattern: '[0-9]+' }`), `message` the\n * control's own text, a fallback only.\n */\nexport interface NativeValidity {\n\treadonly type: string;\n\treadonly params?: Readonly<Record<string, unknown>>;\n\treadonly message?: string;\n}\n\n/**\n * How a check of the form ended, and what the host may do next.\n *\n * @remarks\n * `'passed'`: the scope was current and no error from any source remains at the paths that take part.\n * `'invalid'`: the scope was current and an error blocks. `'overtaken'`: an edit, a row move or a reset outran the\n * check, and the retry over the same rows was outrun too or the rows are gone, so there is no verdict and nothing\n * stale was written: ask again, and do not show errors the user did not cause. A {@link FormSubmitResult} is built on\n * it, so the outcomes are listed here only.\n */\nexport type FormValidateResult =\n\t{ readonly outcome: 'passed' } | { readonly outcome: 'invalid' } | { readonly outcome: 'overtaken' };\n\n/**\n * How a submission ended, and what the host may do next.\n *\n * @remarks\n * `'passed'`: the scope was current and nothing blocks; `values` are exactly the values that passed, frozen,\n * nested like `snapshot.values`, without the paths that took no part and with the config's `payload`. An\n * edit during the check followed by a retry that passes leaves the edit in them. `setServerErrors` hands back\n * the server's answer to that submission. `'invalid'`: the scope was current and an error blocks, so show the\n * errors and focus. `'overtaken'`: an edit, a row move, a reset, a later submission or a superseded check outran\n * it, so there is no verdict on anything: ask again, and do not show errors the user did not cause.\n */\nexport type FormSubmitResult =\n\t| Exclude<FormValidateResult, { readonly outcome: 'passed' }>\n\t| {\n\t\t\treadonly outcome: 'passed';\n\t\t\treadonly values: Readonly<Record<string, unknown>>;\n\t\t\t/**\n\t\t\t * Shows the server's answer to this submission, replacing the answer shown so far.\n\t\t\t *\n\t\t\t * @remarks\n\t\t\t * Each path takes one issue or a list, and {@link FORM_ROOT} stands for the form. Throws for a path with\n\t\t\t * a reserved `__` segment other than `FORM_ROOT`, and for a path that names a row the submitted values\n\t\t\t * did not have. Paths are as they are in `values`: an index counts only the rows that took part, and the container maps it to the form's row (so with the middle one of three rows left out, `rows.1` is the third row). An error for `contacts.0.email` lands\n\t\t\t * on that row wherever it is now, and is dropped when the row is gone. A path no field declares cannot be\n\t\t\t * shown at a field, so its issues move to `FORM_ROOT`, keeping their type, params and message. An error is applied only when its\n\t\t\t * target, and every value its rules read, are unchanged since the submission, and only while this is the\n\t\t\t * latest submission and no reset came between: otherwise the call does nothing. An error is cleared\n\t\t\t * when its path, or a path its rules read, is edited.\n\t\t\t */\n\t\t\treadonly setServerErrors: (errors: FormStateErrorsInput) => void;\n\t };\n\n/**\n * The immutable state a subscriber reads.\n *\n * @remarks\n * Stable: {@link FormStateContainer.getSnapshot} returns the same object until something changes, and a\n * branch that did not change keeps its reference, in `values` and in every map. Maps are plain records,\n * frozen, keyed by dotted path. An opaque value, such as an array holding `File` objects, is kept and\n * compared by reference: it is never copied, frozen or diffed.\n *\n * Paths that take no part in validation (hidden or disabled fields, and what is inside them) are absent\n * from `errors`, `warnings` and `validating`.\n */\nexport interface FormStateSnapshot {\n\t/** The nested value tree. */\n\treadonly values: Readonly<Record<string, unknown>>;\n\t/**\n\t * The error of each path, with every issue it has in `all`.\n\t *\n\t * @remarks\n\t * Never inherited: an error on `contacts` is not an error on `contacts.0.email`, and both can be present.\n\t * An error about the form itself is at {@link FORM_ROOT}.\n\t */\n\treadonly errors: Readonly<Record<string, FormStateError>>;\n\t/** The advice of each path, shaped like `errors` and never blocking. */\n\treadonly warnings: Readonly<Record<string, FormStateWarning>>;\n\t/** The paths the user has blurred; a mark on a container covers the fields below it. Moves with its row. */\n\treadonly touched: Readonly<Record<string, true>>;\n\t/**\n\t * The paths whose value differs from the defaults.\n\t *\n\t * @remarks An array's own mark means its row count changed; its rows are compared by index, so appending a row does not make the existing rows dirty.\n\t */\n\treadonly dirty: Readonly<Record<string, true>>;\n\t/** The ids of an array's rows, by array path, in row order. */\n\treadonly rowIds: Readonly<Record<string, readonly string[]>>;\n\t/**\n\t * The paths a check the container started is still running for.\n\t *\n\t * @remarks\n\t * A path is listed while the latest check that asked for it is running: a check overtaken by a later one\n\t * for the same path does not keep it pending. Pending is state, never an issue. It moves with its row.\n\t */\n\treadonly validating: Readonly<Record<string, true>>;\n\t/** Whether no error from any source is recorded for a path that takes part. Cheap, and not a fresh check. */\n\treadonly isValid: boolean;\n\t/**\n\t * How many times the form was reset: it goes up by one on every {@link FormStateContainer.reset} and on nothing else.\n\t *\n\t * @remarks\n\t * It lets what lives around the container, such as a runtime's submission and step state, notice a reset\n\t * that no one told it about, since `reset` is the only way back and any caller may use it.\n\t */\n\treadonly generation: number;\n\t/**\n\t * What the form's constraints say, resolved in order against the values with whatever took no part absent.\n\t *\n\t * @remarks\n\t * `skippedSteps` lists the ids of the steps its constraints hide. `fields` has an entry for each rendered path that has a constraint,\n\t * is disabled by authoring or is held by a skipped step; `selectFieldState` folds the ancestors in. The same object comes back\n\t * while nothing in it changes, however much else does.\n\t */\n\treadonly participation: {\n\t\treadonly skippedSteps: readonly string[];\n\t\treadonly fields: Readonly<Record<string, FieldParticipation>>;\n\t};\n}\n\n/**\n * The commands over a form's state, and the stable reads a binding builds on.\n *\n * @remarks\n * Every command is one atomic update: subscribers are notified once, and never see an array's values\n * and its row state out of step. No member depends on how it is called, so a binding may pass any of\n * them as a callback. Read state with `getSnapshot` and the selectors of `selectors.ts`.\n */\nexport interface FormStateContainer {\n\t/** Registers a listener for every snapshot change; returns the function that removes it. */\n\tsubscribe(listener: () => void): () => void;\n\tgetSnapshot(): FormStateSnapshot;\n\t/** The snapshot to render on the server and during hydration: the initial state, never replaced. */\n\tgetServerSnapshot(): FormStateSnapshot;\n\n\t/** The value at a dotted path, from the current state. */\n\tgetValue(path: string): unknown;\n\t/**\n\t * Replaces the whole branch at `path`.\n\t *\n\t * @remarks\n\t * Throws for a path with a reserved segment (one that starts with `__`, or `constructor`, `prototype`, `__proto__`) and for a path that names a row its array does not\n\t * have: rows are made with `fieldArray`, so a write cannot leave holes or rows without an id. It is a change: it validates when the mode says so, re-validates dependents, and drops what describes\n\t * a value that is gone: the errors a server answered with at the path and below, and on the paths around it, the form included,\n\t * and the native facts of the value. The state of rows and objects the branch no longer holds is dropped with\n\t * them. A write that leaves the value as it is changes nothing.\n\t */\n\tsetValue(path: string, value: unknown): void;\n\t/**\n\t * Marks `path` touched, and validates it when the mode says so.\n\t *\n\t * @remarks\n\t * The path is checked as in `setValue`. A control whose value the host has not written yet is written with\n\t * `setValue` first: the two are separate commands, and the end state is the one a single command would\n\t * leave.\n\t */\n\tblur(path: string): void;\n\t/**\n\t * Reports what the platform's controls say about the values the container holds, with no input from the user.\n\t *\n\t * @remarks\n\t * The one channel for native validity, for a host that owns controls: a path with its fact, `null` for a\n\t * control that reports itself valid or goes away, which withdraws the fact. A host reports a fact on a\n\t * change, a blur, a reset, or when a control's constraints change, and withdraws it when its control\n\t * disconnects. A fact is bound to the value held now and is dropped when that value changes, and it moves with\n\t * its row. A fact that is already held is a no-op. Reporting is no change: nothing becomes dirty or touched,\n\t * and one call is one commit that re-validates, in a single run, only the changed paths that were validated\n\t * before, are in a failed scope, or have a check in flight, never to start validating a pristine one. A path no field\n\t * of the config expands to for the values held (a name no field has, a removed row, anything below a scalar) is\n\t * ignored. A reserved path throws, for the whole\n\t * call and before anything is written. A fact is not part of the snapshot, so reporting alone notifies nobody.\n\t */\n\treportNative(facts: Readonly<Record<string, NativeValidity | null>>): void;\n\t/**\n\t * Replaces the defaults with `values` when given, then restores the values to the defaults and clears\n\t * every error, native fact, touched and dirty mark and the failed-check state.\n\t *\n\t * @remarks Validation still running when this is called is dropped and not run again, and so are the submissions begun before it; every row gets a new id.\n\t */\n\treset(values?: Record<string, unknown>): void;\n\t/**\n\t * Validates `paths` (the whole form when omitted, nothing when empty), records the findings and says how that ended.\n\t *\n\t * @remarks\n\t * Every check records the scope it covered: the values it read, the values its rules depend on, the\n\t * native facts, the reset generation and the rows by id. It is `'passed'` only when no error from any\n\t * source remains at the paths that take part and that scope was still current when it finished. A check\n\t * overtaken by an edit, a row move or a reset runs once more over the same rows, wherever they are now,\n\t * and one that is overtaken again, or whose rows are gone, is `'overtaken'` without writing anything stale:\n\t * it is not `'invalid'`, so the host must not read it as a failed field.\n\t * It rejects with a `FormValidationFailure` naming the path and rule when a rule could not run. A failure\n\t * of its own validation starts the failed-check state for those paths, so they re-validate by\n\t * `reValidateMode` from then on. It does not mark anything submitted or touched.\n\t */\n\tvalidate(paths?: readonly string[]): Promise<FormValidateResult>;\n\t/**\n\t * Whether the form is valid for the state at the moment of the call, by the same count as `validate`, without its writes.\n\t *\n\t * @remarks\n\t * It answers for the values, native facts, server errors and participation current when it was called,\n\t * and for no later state: it is never retried and never mixes those with errors set afterwards, so the\n\t * answer may already be out of date when it resolves. It writes no error and\n\t * changes no state. Errors recorded earlier do not count, as the check validates afresh. It rejects with\n\t * a `FormValidationFailure`, which keeps the `reason` and the `cause`, when a rule could not run.\n\t */\n\tcheckValidity(): Promise<boolean>;\n\t/**\n\t * Submits the form: clears the server's answer to the last submission, validates the whole form and says how that ended.\n\t *\n\t * @remarks\n\t * It validates as `validate()` does, with the same freshness and the one retry over the same rows, and\n\t * captures the submission the result speaks for: a later `submit` or a `reset` supersedes it, and the\n\t * earlier one ends `'overtaken'` or has its `setServerErrors` ignored. Like `validate`, it rejects with a\n\t * `FormValidationFailure` when a rule could not run, and a rejected call is no outcome.\n\t */\n\tsubmit(): Promise<FormSubmitResult>;\n\t/**\n\t * The commands of the array at `path`, the same object each time.\n\t *\n\t * @remarks\n\t * Cached per path, and a path names a position: `contacts.0.phones` is whatever row is at index 0 now,\n\t * not the row that was there when the commands were first asked for. Rows are read from\n\t * `snapshot.rowIds[path]`; `toFieldArrayValue` combines the two for a widget.\n\t */\n\tfieldArray(path: string): FieldArrayCommands;\n}\n\n/** What {@link createFormStateContainer} reads from a normalized form config. */\nexport interface FormStateContainerConfig {\n\t/**\n\t * The steps whose elements make up the form: fields, rules and constraints.\n\t *\n\t * @remarks A step's own `constraints` decide whether it is skipped; a skipped step's fields take no part, as hidden fields do not.\n\t */\n\treadonly steps: readonly ValidationStep[];\n\t/** When a field validates before a check of it has failed; the config schema always fills it. */\n\treadonly validationMode: FormValidationMode;\n\t/** When a field validates once a check of it has run; the config schema always fills it. */\n\treadonly reValidateMode: FormReValidateMode;\n\t/**\n\t * Data that travels with every submission.\n\t *\n\t * @remarks It is merged into the `values` of a passed submission and is never a value of the form: not in the snapshot, not dirty, not validated. Its keys cannot name fields, which the config validation checks.\n\t */\n\treadonly payload?: Readonly<Record<string, unknown>>;\n}\n\n/**\n * The part of a snapshot that a server hands to a client so the client starts from the same state.\n *\n * @remarks\n * The `values` and `rowIds` of a snapshot are plain, frozen and serializable (but for opaque values such as\n * files), so `JSON.stringify(toHydration(container.getServerSnapshot()))` is the payload, and a snapshot is itself\n * accepted. The rest of a snapshot is derived from what the server's container did, not state to restore.\n */\nexport interface FormStateHydration {\n\treadonly values: Readonly<Record<string, unknown>>;\n\treadonly rowIds: Readonly<Record<string, readonly string[]>>;\n}\n\n/** What {@link FormStateContainerFactory} builds a container from. */\nexport interface FormStateContainerOptions {\n\t/** The normalized form config: the elements, the validation timing and the payload all come from it, so no renderer can differ. */\n\treadonly config: FormStateContainerConfig;\n\treadonly registry: ValidationRegistry;\n\treadonly defaults?: Record<string, unknown>;\n\t/**\n\t * The snapshot of a container that rendered the form elsewhere, to start from: its values and its row ids.\n\t *\n\t * @remarks\n\t * Without it the container starts from `defaults` and mints deterministic row ids (walk order, one counter per\n\t * container). With it the container starts from the values of the snapshot and adopts its row ids, so a client\n\t * keeps the identity a server rendered, whatever rows the user had added there. Values and ids come from the same\n\t * object, so there is nothing to compare; one whose ids do not match its own values cannot come from a real\n\t * snapshot and throws. `defaults` still say what the form started from, and what\n\t * `reset` restores, so pass the same ones the server used: the fields that differ from them are dirty.\n\t */\n\treadonly snapshot?: FormStateHydration;\n}\n\n/** What `formStateContainerConformance` builds the container under test with. */\nexport type FormStateContainerFactory = (options: FormStateContainerOptions) => FormStateContainer;\n"],
5
+ "mappings": ";AA6BO,IAAM,YAAY;",
6
+ "names": []
7
+ }
@@ -7,10 +7,10 @@ import {
7
7
  recordsAt,
8
8
  serializableParams,
9
9
  textOf
10
- } from "./chunk-5QXT7YAJ.js";
10
+ } from "./chunk-CANRZY5A.js";
11
11
  import {
12
12
  FORM_ROOT
13
- } from "./chunk-PXWVKJGF.js";
13
+ } from "./chunk-PCL2KNHC.js";
14
14
 
15
15
  // src/server-errors/from-problem-details.ts
16
16
  var KNOWN = ["type", "title", "status", "detail", "instance", "errors"];
@@ -0,0 +1,215 @@
1
+ // src/testing/assert.ts
2
+ var AssertionError = class extends Error {
3
+ name = "AssertionError";
4
+ };
5
+ var tagOf = (value) => Object.prototype.toString.call(value);
6
+ function show(value, seen = []) {
7
+ if (typeof value === "string") return JSON.stringify(value);
8
+ if (typeof value === "function") return `[Function ${value.name || "anonymous"}]`;
9
+ if (typeof value === "bigint") return `${value}n`;
10
+ if (typeof value === "symbol") return value.toString();
11
+ if (typeof value !== "object" || value === null) return String(value);
12
+ if (seen.includes(value)) return "[Circular]";
13
+ const next = [...seen, value];
14
+ if (value instanceof Date) return `Date(${Number.isNaN(value.getTime()) ? "Invalid" : value.toISOString()})`;
15
+ if (value instanceof RegExp) return String(value);
16
+ if (value instanceof Error) return `${value.name}: ${value.message}`;
17
+ if (value instanceof Map) {
18
+ const entries2 = [...value].map(([key, item]) => `${show(key, next)} => ${show(item, next)}`);
19
+ return `Map {${entries2.join(", ")}}`;
20
+ }
21
+ if (value instanceof Set) return `Set {${[...value].map((item) => show(item, next)).join(", ")}}`;
22
+ if (Array.isArray(value)) return `[${value.map((item) => show(item, next)).join(", ")}]`;
23
+ const entries = Object.entries(value).map(([key, item]) => `${JSON.stringify(key)}: ${show(item, next)}`);
24
+ return `{${entries.join(", ")}}`;
25
+ }
26
+ var defined = (value) => Object.keys(value).filter((key) => value[key] !== void 0);
27
+ function equals(actual, expected, seen = []) {
28
+ if (Object.is(actual, expected)) return true;
29
+ if (typeof actual !== "object" || typeof expected !== "object" || actual === null || expected === null)
30
+ return false;
31
+ if (tagOf(actual) !== tagOf(expected)) return false;
32
+ if (seen.some(([left, right]) => left === actual && right === expected)) return true;
33
+ const next = [...seen, [actual, expected]];
34
+ if (actual instanceof Date && expected instanceof Date) return Object.is(actual.getTime(), expected.getTime());
35
+ if (actual instanceof RegExp && expected instanceof RegExp) return String(actual) === String(expected);
36
+ if (actual instanceof Error && expected instanceof Error) {
37
+ return actual.name === expected.name && actual.message === expected.message;
38
+ }
39
+ if (actual instanceof Map && expected instanceof Map) {
40
+ if (actual.size !== expected.size) return false;
41
+ return [...actual].every(
42
+ ([key, item]) => expected.has(key) ? equals(item, expected.get(key), next) : [...expected].some(([otherKey, other]) => equals(key, otherKey, next) && equals(item, other, next))
43
+ );
44
+ }
45
+ if (actual instanceof Set && expected instanceof Set) {
46
+ if (actual.size !== expected.size) return false;
47
+ return [...actual].every(
48
+ (item) => expected.has(item) || [...expected].some((other) => equals(item, other, next))
49
+ );
50
+ }
51
+ if (Array.isArray(actual) && Array.isArray(expected)) {
52
+ return actual.length === expected.length && actual.every((item, index) => equals(item, expected[index], next));
53
+ }
54
+ const actualKeys = defined(actual);
55
+ const expectedKeys = defined(expected);
56
+ return actualKeys.length === expectedKeys.length && expectedKeys.every(
57
+ (key) => Object.hasOwn(actual, key) && equals(actual[key], expected[key], next)
58
+ );
59
+ }
60
+ function contains(actual, partial, seen = []) {
61
+ if (typeof partial !== "object" || partial === null) return equals(actual, partial);
62
+ if (typeof actual !== "object" || actual === null) return false;
63
+ if (seen.some(([left, right]) => left === actual && right === partial)) return true;
64
+ const next = [...seen, [actual, partial]];
65
+ if (Array.isArray(partial)) {
66
+ return Array.isArray(actual) && actual.length === partial.length && partial.every((item, index) => contains(actual[index], item, next));
67
+ }
68
+ if (partial instanceof Map || partial instanceof Set || partial instanceof Date || partial instanceof RegExp) {
69
+ return equals(actual, partial);
70
+ }
71
+ return Object.keys(partial).every(
72
+ (key) => key in actual && contains(actual[key], partial[key], next)
73
+ );
74
+ }
75
+ var prefix = (label) => label === void 0 ? "" : `${label}: `;
76
+ function assertEqual(actual, expected, label) {
77
+ if (equals(actual, expected)) return;
78
+ throw new AssertionError(`${prefix(label)}expected ${show(actual)} to equal ${show(expected)}`);
79
+ }
80
+ function assertSame(actual, expected, label) {
81
+ if (Object.is(actual, expected)) return;
82
+ throw new AssertionError(`${prefix(label)}expected ${show(actual)} to be ${show(expected)}`);
83
+ }
84
+ function assertNotSame(actual, unexpected, label) {
85
+ if (!Object.is(actual, unexpected)) return;
86
+ throw new AssertionError(`${prefix(label)}expected a value other than ${show(unexpected)}`);
87
+ }
88
+ function assertMatches(actual, partial, label) {
89
+ if (contains(actual, partial)) return;
90
+ throw new AssertionError(`${prefix(label)}expected ${show(actual)} to match ${show(partial)}`);
91
+ }
92
+ function assertUndefined(actual, label) {
93
+ if (actual === void 0) return;
94
+ throw new AssertionError(`${prefix(label)}expected ${show(actual)} to be undefined`);
95
+ }
96
+ function assertDefined(actual, label) {
97
+ if (actual !== void 0) return;
98
+ throw new AssertionError(`${prefix(label)}expected a defined value`);
99
+ }
100
+ function assertLength(actual, length, label) {
101
+ if (actual.length === length) return;
102
+ throw new AssertionError(`${prefix(label)}expected length ${length}, received ${actual.length}: ${show(actual)}`);
103
+ }
104
+ function assertNotMatches(actual, pattern, label) {
105
+ if (!pattern.test(actual)) return;
106
+ throw new AssertionError(`${prefix(label)}expected ${show(actual)} not to match ${pattern}`);
107
+ }
108
+ function assertNoProperty(actual, key, label) {
109
+ if (!(key in actual)) return;
110
+ throw new AssertionError(`${prefix(label)}expected ${show(actual)} not to have property ${show(key)}`);
111
+ }
112
+ function assertNotIncludes(actual, item, label) {
113
+ if (!actual.some((candidate) => Object.is(candidate, item))) return;
114
+ throw new AssertionError(`${prefix(label)}expected ${show(actual)} not to include ${show(item)}`);
115
+ }
116
+ function assertThrows(run, expected) {
117
+ let thrown;
118
+ let threw = false;
119
+ try {
120
+ run();
121
+ } catch (error) {
122
+ threw = true;
123
+ thrown = error;
124
+ }
125
+ if (!threw) throw new AssertionError("expected the call to throw");
126
+ if (expected === void 0) return;
127
+ if (expected instanceof RegExp) {
128
+ const message = thrown instanceof Error ? thrown.message : String(thrown);
129
+ if (!expected.test(message)) {
130
+ throw new AssertionError(`expected the error message ${show(message)} to match ${expected}`);
131
+ }
132
+ return;
133
+ }
134
+ if (!(thrown instanceof expected)) {
135
+ throw new AssertionError(`expected ${show(thrown)} to be an instance of ${expected.name}`);
136
+ }
137
+ }
138
+ function assertDoesNotThrow(run) {
139
+ try {
140
+ run();
141
+ } catch (error) {
142
+ throw new AssertionError(`expected the call not to throw, but it threw ${show(error)}`, { cause: error });
143
+ }
144
+ }
145
+ function createSpy(implementation) {
146
+ let current = implementation;
147
+ const calls = [];
148
+ const spy = (...args) => {
149
+ calls.push(args);
150
+ return current?.(...args);
151
+ };
152
+ return Object.assign(spy, {
153
+ calls,
154
+ implement(next) {
155
+ current = next;
156
+ }
157
+ });
158
+ }
159
+ function assertCallCount(spy, times, label) {
160
+ if (spy.calls.length === times) return;
161
+ throw new AssertionError(`${prefix(label)}expected ${times} calls, received ${spy.calls.length}`);
162
+ }
163
+ function replaceProperty(target, key, value) {
164
+ const original = Object.getOwnPropertyDescriptor(target, key);
165
+ Object.defineProperty(target, key, {
166
+ value,
167
+ writable: true,
168
+ configurable: true,
169
+ enumerable: original?.enumerable ?? true
170
+ });
171
+ return () => {
172
+ if (original === void 0) Reflect.deleteProperty(target, key);
173
+ else Object.defineProperty(target, key, original);
174
+ };
175
+ }
176
+ function stubGlobal(name, value) {
177
+ return replaceProperty(globalThis, name, value);
178
+ }
179
+ function spyOn(target, key, implementation) {
180
+ const spy = createSpy(implementation);
181
+ return { spy, restore: replaceProperty(target, key, spy) };
182
+ }
183
+ async function waitFor(check, { timeout = 1e3, interval = 50 } = {}) {
184
+ const deadline = Date.now() + timeout;
185
+ for (; ; ) {
186
+ try {
187
+ return await check();
188
+ } catch (error) {
189
+ if (Date.now() >= deadline) throw error;
190
+ }
191
+ await new Promise((resolve) => setTimeout(resolve, interval));
192
+ }
193
+ }
194
+
195
+ export {
196
+ AssertionError,
197
+ assertEqual,
198
+ assertSame,
199
+ assertNotSame,
200
+ assertMatches,
201
+ assertUndefined,
202
+ assertDefined,
203
+ assertLength,
204
+ assertNotMatches,
205
+ assertNoProperty,
206
+ assertNotIncludes,
207
+ assertThrows,
208
+ assertDoesNotThrow,
209
+ createSpy,
210
+ assertCallCount,
211
+ replaceProperty,
212
+ stubGlobal,
213
+ spyOn,
214
+ waitFor
215
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/testing/assert.ts"],
4
+ "sourcesContent": ["/**\n * The assertions, spy and timing helpers the conformance suite runs on.\n *\n * @remarks\n * Internal to the suite and not exported from the entry. They use no test runner, `node:assert` or any other\n * Node-only module, so a case runs the same under Vitest, Jest, Bun, `node:test` or in a browser: a failed check\n * throws an {@link AssertionError} and the runner reports it as a failed test.\n */\n\n/** The error a failed check throws; its message shows what was received and what was expected. */\nexport class AssertionError extends Error {\n\toverride readonly name = 'AssertionError';\n}\n\nconst tagOf = (value: unknown): string => Object.prototype.toString.call(value);\n\n/** Writes a value for a failure message, with the types JSON cannot show (`undefined`, `NaN`, `Map`, `Set`, `Date`). */\nfunction show(value: unknown, seen: readonly unknown[] = []): string {\n\tif (typeof value === 'string') return JSON.stringify(value);\n\tif (typeof value === 'function') return `[Function ${value.name || 'anonymous'}]`;\n\tif (typeof value === 'bigint') return `${value}n`;\n\tif (typeof value === 'symbol') return value.toString();\n\tif (typeof value !== 'object' || value === null) return String(value);\n\tif (seen.includes(value)) return '[Circular]';\n\tconst next = [...seen, value];\n\tif (value instanceof Date) return `Date(${Number.isNaN(value.getTime()) ? 'Invalid' : value.toISOString()})`;\n\tif (value instanceof RegExp) return String(value);\n\tif (value instanceof Error) return `${value.name}: ${value.message}`;\n\tif (value instanceof Map) {\n\t\tconst entries = [...value].map(([key, item]) => `${show(key, next)} => ${show(item, next)}`);\n\t\treturn `Map {${entries.join(', ')}}`;\n\t}\n\tif (value instanceof Set) return `Set {${[...value].map((item) => show(item, next)).join(', ')}}`;\n\tif (Array.isArray(value)) return `[${value.map((item) => show(item, next)).join(', ')}]`;\n\tconst entries = Object.entries(value).map(([key, item]) => `${JSON.stringify(key)}: ${show(item, next)}`);\n\treturn `{${entries.join(', ')}}`;\n}\n\nconst defined = (value: object): string[] =>\n\tObject.keys(value).filter((key) => (value as Record<string, unknown>)[key] !== undefined);\n\n/**\n * Whether two values are deeply equal.\n *\n * @remarks\n * A property set to `undefined` equals a missing one, and the prototype is not compared, so `{ a: 1, b: undefined }`\n * equals `{ a: 1 }`. Covers plain objects, arrays, `Map`, `Set`, `Date`, `RegExp`, `Error`, `NaN` and cycles.\n */\nfunction equals(actual: unknown, expected: unknown, seen: readonly [unknown, unknown][] = []): boolean {\n\tif (Object.is(actual, expected)) return true;\n\tif (typeof actual !== 'object' || typeof expected !== 'object' || actual === null || expected === null)\n\t\treturn false;\n\tif (tagOf(actual) !== tagOf(expected)) return false;\n\tif (seen.some(([left, right]) => left === actual && right === expected)) return true;\n\tconst next: [unknown, unknown][] = [...seen, [actual, expected]];\n\tif (actual instanceof Date && expected instanceof Date) return Object.is(actual.getTime(), expected.getTime());\n\tif (actual instanceof RegExp && expected instanceof RegExp) return String(actual) === String(expected);\n\tif (actual instanceof Error && expected instanceof Error) {\n\t\treturn actual.name === expected.name && actual.message === expected.message;\n\t}\n\tif (actual instanceof Map && expected instanceof Map) {\n\t\tif (actual.size !== expected.size) return false;\n\t\treturn [...actual].every(([key, item]) =>\n\t\t\texpected.has(key)\n\t\t\t\t? equals(item, expected.get(key), next)\n\t\t\t\t: [...expected].some(([otherKey, other]) => equals(key, otherKey, next) && equals(item, other, next)),\n\t\t);\n\t}\n\tif (actual instanceof Set && expected instanceof Set) {\n\t\tif (actual.size !== expected.size) return false;\n\t\treturn [...actual].every(\n\t\t\t(item) => expected.has(item) || [...expected].some((other) => equals(item, other, next)),\n\t\t);\n\t}\n\tif (Array.isArray(actual) && Array.isArray(expected)) {\n\t\treturn actual.length === expected.length && actual.every((item, index) => equals(item, expected[index], next));\n\t}\n\tconst actualKeys = defined(actual);\n\tconst expectedKeys = defined(expected);\n\treturn (\n\t\tactualKeys.length === expectedKeys.length &&\n\t\texpectedKeys.every(\n\t\t\t(key) =>\n\t\t\t\tObject.hasOwn(actual, key) &&\n\t\t\t\tequals((actual as Record<string, unknown>)[key], (expected as Record<string, unknown>)[key], next),\n\t\t)\n\t);\n}\n\n/**\n * Whether `actual` holds everything `partial` names: objects by the keys of `partial`, arrays by length and item,\n * anything else by deep equality.\n */\nfunction contains(actual: unknown, partial: unknown, seen: readonly [unknown, unknown][] = []): boolean {\n\tif (typeof partial !== 'object' || partial === null) return equals(actual, partial);\n\tif (typeof actual !== 'object' || actual === null) return false;\n\tif (seen.some(([left, right]) => left === actual && right === partial)) return true;\n\tconst next: [unknown, unknown][] = [...seen, [actual, partial]];\n\tif (Array.isArray(partial)) {\n\t\treturn (\n\t\t\tArray.isArray(actual) &&\n\t\t\tactual.length === partial.length &&\n\t\t\tpartial.every((item, index) => contains(actual[index], item, next))\n\t\t);\n\t}\n\tif (partial instanceof Map || partial instanceof Set || partial instanceof Date || partial instanceof RegExp) {\n\t\treturn equals(actual, partial);\n\t}\n\treturn Object.keys(partial).every(\n\t\t(key) =>\n\t\t\tkey in actual &&\n\t\t\tcontains((actual as Record<string, unknown>)[key], (partial as Record<string, unknown>)[key], next),\n\t);\n}\n\nconst prefix = (label: string | undefined): string => (label === undefined ? '' : `${label}: `);\n\n/** Fails unless the values are deeply equal; a property set to `undefined` equals a missing one. */\nexport function assertEqual(actual: unknown, expected: unknown, label?: string): void {\n\tif (equals(actual, expected)) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${show(actual)} to equal ${show(expected)}`);\n}\n\n/** Fails unless the values are the same, by `Object.is`. */\nexport function assertSame(actual: unknown, expected: unknown, label?: string): void {\n\tif (Object.is(actual, expected)) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${show(actual)} to be ${show(expected)}`);\n}\n\n/** Fails when the values are the same, by `Object.is`. */\nexport function assertNotSame(actual: unknown, unexpected: unknown, label?: string): void {\n\tif (!Object.is(actual, unexpected)) return;\n\tthrow new AssertionError(`${prefix(label)}expected a value other than ${show(unexpected)}`);\n}\n\n/** Fails unless `actual` has every key and value `partial` names, however many more it has. */\nexport function assertMatches(actual: unknown, partial: unknown, label?: string): void {\n\tif (contains(actual, partial)) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${show(actual)} to match ${show(partial)}`);\n}\n\n/** Fails unless the value is `undefined`. */\nexport function assertUndefined(actual: unknown, label?: string): void {\n\tif (actual === undefined) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${show(actual)} to be undefined`);\n}\n\n/** Fails when the value is `undefined`. */\nexport function assertDefined(actual: unknown, label?: string): void {\n\tif (actual !== undefined) return;\n\tthrow new AssertionError(`${prefix(label)}expected a defined value`);\n}\n\n/** Fails unless the array has `length` items. */\nexport function assertLength(actual: ArrayLike<unknown>, length: number, label?: string): void {\n\tif (actual.length === length) return;\n\tthrow new AssertionError(`${prefix(label)}expected length ${length}, received ${actual.length}: ${show(actual)}`);\n}\n\n/** Fails when the text matches `pattern`. */\nexport function assertNotMatches(actual: string, pattern: RegExp, label?: string): void {\n\tif (!pattern.test(actual)) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${show(actual)} not to match ${pattern}`);\n}\n\n/** Fails when the object has the property, own or inherited. */\nexport function assertNoProperty(actual: object, key: string, label?: string): void {\n\tif (!(key in actual)) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${show(actual)} not to have property ${show(key)}`);\n}\n\n/** Fails when the array holds the item, by `Object.is`. */\nexport function assertNotIncludes(actual: readonly unknown[], item: unknown, label?: string): void {\n\tif (!actual.some((candidate) => Object.is(candidate, item))) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${show(actual)} not to include ${show(item)}`);\n}\n\n/**\n * Fails unless `run` throws.\n *\n * @remarks\n * `expected` narrows what it throws: an error class, or a pattern its message must match.\n */\nexport function assertThrows(run: () => unknown, expected?: RegExp | (new (...args: never[]) => Error)): void {\n\tlet thrown: unknown;\n\tlet threw = false;\n\ttry {\n\t\trun();\n\t} catch (error) {\n\t\tthrew = true;\n\t\tthrown = error;\n\t}\n\tif (!threw) throw new AssertionError('expected the call to throw');\n\tif (expected === undefined) return;\n\tif (expected instanceof RegExp) {\n\t\tconst message = thrown instanceof Error ? thrown.message : String(thrown);\n\t\tif (!expected.test(message)) {\n\t\t\tthrow new AssertionError(`expected the error message ${show(message)} to match ${expected}`);\n\t\t}\n\t\treturn;\n\t}\n\tif (!(thrown instanceof expected)) {\n\t\tthrow new AssertionError(`expected ${show(thrown)} to be an instance of ${expected.name}`);\n\t}\n}\n\n/** Fails when `run` throws, and shows what it threw. */\nexport function assertDoesNotThrow(run: () => unknown): void {\n\ttry {\n\t\trun();\n\t} catch (error) {\n\t\tthrow new AssertionError(`expected the call not to throw, but it threw ${show(error)}`, { cause: error });\n\t}\n}\n\n/** A function that records each call it receives; see {@link createSpy}. */\nexport interface Spy<Args extends unknown[] = unknown[], Result = unknown> {\n\t(...args: Args): Result;\n\t/** The arguments of every call, oldest first. */\n\treadonly calls: Args[];\n\t/** Swaps what the spy does from now on; calls already recorded stay. */\n\timplement(implementation: (...args: Args) => Result): void;\n}\n\n/**\n * A function that records its calls and runs `implementation`, if given.\n *\n * @remarks\n * Without an implementation the spy returns `undefined`, so give one whenever the caller reads the result.\n */\nexport function createSpy<Args extends unknown[] = unknown[], Result = unknown>(\n\timplementation?: (...args: Args) => Result,\n): Spy<Args, Result> {\n\tlet current = implementation;\n\tconst calls: Args[] = [];\n\tconst spy = (...args: Args): Result => {\n\t\tcalls.push(args);\n\t\treturn current?.(...args) as Result;\n\t};\n\treturn Object.assign(spy, {\n\t\tcalls,\n\t\timplement(next: (...args: Args) => Result): void {\n\t\t\tcurrent = next;\n\t\t},\n\t});\n}\n\n/** Fails unless the spy was called exactly `times` times. */\nexport function assertCallCount(spy: { readonly calls: readonly unknown[] }, times: number, label?: string): void {\n\tif (spy.calls.length === times) return;\n\tthrow new AssertionError(`${prefix(label)}expected ${times} calls, received ${spy.calls.length}`);\n}\n\n/**\n * Puts `value` on `target` under `key` and returns what undoes it.\n *\n * @remarks\n * A property that was inherited or missing before is removed again instead of being left behind as an own one.\n */\nexport function replaceProperty(target: object, key: PropertyKey, value: unknown): () => void {\n\tconst original = Object.getOwnPropertyDescriptor(target, key);\n\tObject.defineProperty(target, key, {\n\t\tvalue,\n\t\twritable: true,\n\t\tconfigurable: true,\n\t\tenumerable: original?.enumerable ?? true,\n\t});\n\treturn () => {\n\t\tif (original === undefined) Reflect.deleteProperty(target, key);\n\t\telse Object.defineProperty(target, key, original);\n\t};\n}\n\n/**\n * Replaces a global, such as `fetch`, and returns what restores it.\n *\n * @remarks\n * Call the restore function in a `finally`, so a failing case cannot leak the stub into the next test.\n */\nexport function stubGlobal(name: string, value: unknown): () => void {\n\treturn replaceProperty(globalThis, name, value);\n}\n\n/** Replaces `target[key]` with a {@link Spy} that calls `implementation`, and returns the spy with what restores the original. */\nexport function spyOn<Args extends unknown[], Result>(\n\ttarget: object,\n\tkey: PropertyKey,\n\timplementation?: (...args: Args) => Result,\n): { readonly spy: Spy<Args, Result>; readonly restore: () => void } {\n\tconst spy = createSpy(implementation);\n\treturn { spy, restore: replaceProperty(target, key, spy) };\n}\n\n/** How long {@link waitFor} keeps trying, and how long it waits between tries. */\nexport interface WaitForOptions {\n\treadonly timeout?: number;\n\treadonly interval?: number;\n}\n\n/**\n * Calls `check` until it stops throwing and resolves with what it returned.\n *\n * @remarks\n * Defaults to the 1000 ms timeout and 50 ms interval of Vitest's `vi.waitFor`. Rethrows the last error `check`\n * threw once the timeout passes, so the failure names the assertion that never held.\n */\nexport async function waitFor<Result>(\n\tcheck: () => Result | Promise<Result>,\n\t{ timeout = 1000, interval = 50 }: WaitForOptions = {},\n): Promise<Result> {\n\tconst deadline = Date.now() + timeout;\n\tfor (;;) {\n\t\ttry {\n\t\t\treturn await check();\n\t\t} catch (error) {\n\t\t\tif (Date.now() >= deadline) throw error;\n\t\t}\n\t\tawait new Promise<void>((resolve) => setTimeout(resolve, interval));\n\t}\n}\n"],
5
+ "mappings": ";AAUO,IAAM,iBAAN,cAA6B,MAAM;AAAA,EACvB,OAAO;AAC1B;AAEA,IAAM,QAAQ,CAAC,UAA2B,OAAO,UAAU,SAAS,KAAK,KAAK;AAG9E,SAAS,KAAK,OAAgB,OAA2B,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,UAAU,cAAc;AACpC,SAAO,EAAE,KAAK,SAAS,gBAAgB,QAAQ,KAAK,GAAG,EAAE;AAC1D;AAeA,eAAsB,QACrB,OACA,EAAE,UAAU,KAAM,WAAW,GAAG,IAAoB,CAAC,GACnC;AAClB,QAAM,WAAW,KAAK,IAAI,IAAI;AAC9B,aAAS;AACR,QAAI;AACH,aAAO,MAAM,MAAM;AAAA,IACpB,SAAS,OAAO;AACf,UAAI,KAAK,IAAI,KAAK,SAAU,OAAM;AAAA,IACnC;AACA,UAAM,IAAI,QAAc,CAAC,YAAY,WAAW,SAAS,QAAQ,CAAC;AAAA,EACnE;AACD;",
6
+ "names": ["entries"]
7
+ }
@@ -12,7 +12,7 @@ import {
12
12
  safeValidateFormConfig,
13
13
  validateElementConfig,
14
14
  validateFormConfig
15
- } from "./chunk-GY657L56.js";
15
+ } from "./chunk-DP7SYLLI.js";
16
16
  import {
17
17
  RENDERER_DATA_ATTRIBUTES
18
18
  } from "./chunk-KSKWSUOB.js";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  buildFormEngine
3
- } from "../chunk-XPQRHO5E.js";
3
+ } from "../chunk-V5H7L5PJ.js";
4
4
  import "../chunk-ZYP3MIH3.js";
5
5
  import "../chunk-PBMM2N77.js";
6
6
  import "../chunk-DVDKPY2A.js";
7
- import "../chunk-GY657L56.js";
7
+ import "../chunk-POCAINUE.js";
8
+ import "../chunk-DP7SYLLI.js";
9
+ import "../chunk-NJXKMF67.js";
8
10
  import "../chunk-6R2MBQPL.js";
9
11
  import "../chunk-GRZU6F7Q.js";
10
12
  import "../chunk-Q5LEK7CI.js";
11
13
  import "../chunk-PN5EH6DM.js";
12
- import "../chunk-NJXKMF67.js";
13
14
  import "../chunk-YUUDXRBW.js";
14
15
  import "../chunk-KSKWSUOB.js";
15
16
  import "../chunk-RQRQYYTB.js";
16
- import "../chunk-POCAINUE.js";
17
17
  import "../chunk-AUZ45XPE.js";
18
18
  import "../chunk-CAZPWBQ4.js";
19
19
  import "../chunk-S5D2QE4G.js";
@@ -29,8 +29,6 @@ import "../chunk-237BHPDH.js";
29
29
  import "../chunk-MKMJT3XR.js";
30
30
  import "../chunk-XQVKX47O.js";
31
31
  import "../chunk-4CUGHU36.js";
32
- import "../chunk-GH34XFCC.js";
33
- import "../chunk-NJTLBSTR.js";
34
32
  import "../chunk-6IZYNHZ3.js";
35
33
  import "../chunk-FVOL3ZOJ.js";
36
34
  import "../chunk-LMWJAD3B.js";
@@ -40,6 +38,8 @@ import "../chunk-J7GSNWXT.js";
40
38
  import "../chunk-MD23VADH.js";
41
39
  import "../chunk-OLYHNFKC.js";
42
40
  import "../chunk-KE53GN4Q.js";
41
+ import "../chunk-GH34XFCC.js";
42
+ import "../chunk-NJTLBSTR.js";
43
43
  import "../chunk-VGGERKV2.js";
44
44
  import "../chunk-3B7CJOF6.js";
45
45
  import "../chunk-KLATKWUA.js";
@@ -47,8 +47,8 @@ import "../chunk-YDGH7DTL.js";
47
47
  import "../chunk-S7I76ISM.js";
48
48
  import "../chunk-CRQWKC67.js";
49
49
  import "../chunk-QLGM2AZW.js";
50
- import "../chunk-OR2L7EKO.js";
51
50
  import "../chunk-ZUYSGCEH.js";
51
+ import "../chunk-OR2L7EKO.js";
52
52
  import "../chunk-6BAJHAGL.js";
53
53
  import "../chunk-6NV2JDGI.js";
54
54
  import "../chunk-3YLRJVVN.js";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  createFormEngine
3
- } from "../chunk-U2X3IYSD.js";
4
- import "../chunk-XPQRHO5E.js";
3
+ } from "../chunk-6EYX257T.js";
4
+ import "../chunk-V5H7L5PJ.js";
5
5
  import "../chunk-ZYP3MIH3.js";
6
6
  import "../chunk-PBMM2N77.js";
7
7
  import "../chunk-DVDKPY2A.js";
8
- import "../chunk-GY657L56.js";
8
+ import "../chunk-POCAINUE.js";
9
+ import "../chunk-DP7SYLLI.js";
10
+ import "../chunk-NJXKMF67.js";
9
11
  import "../chunk-6R2MBQPL.js";
10
12
  import "../chunk-GRZU6F7Q.js";
11
13
  import "../chunk-Q5LEK7CI.js";
12
14
  import "../chunk-PN5EH6DM.js";
13
- import "../chunk-NJXKMF67.js";
14
15
  import "../chunk-YUUDXRBW.js";
15
16
  import "../chunk-KSKWSUOB.js";
16
17
  import "../chunk-RQRQYYTB.js";
17
- import "../chunk-POCAINUE.js";
18
18
  import "../chunk-AUZ45XPE.js";
19
19
  import "../chunk-CAZPWBQ4.js";
20
20
  import "../chunk-S5D2QE4G.js";
@@ -30,8 +30,6 @@ import "../chunk-237BHPDH.js";
30
30
  import "../chunk-MKMJT3XR.js";
31
31
  import "../chunk-XQVKX47O.js";
32
32
  import "../chunk-4CUGHU36.js";
33
- import "../chunk-GH34XFCC.js";
34
- import "../chunk-NJTLBSTR.js";
35
33
  import "../chunk-6IZYNHZ3.js";
36
34
  import "../chunk-FVOL3ZOJ.js";
37
35
  import "../chunk-LMWJAD3B.js";
@@ -41,6 +39,8 @@ import "../chunk-J7GSNWXT.js";
41
39
  import "../chunk-MD23VADH.js";
42
40
  import "../chunk-OLYHNFKC.js";
43
41
  import "../chunk-KE53GN4Q.js";
42
+ import "../chunk-GH34XFCC.js";
43
+ import "../chunk-NJTLBSTR.js";
44
44
  import "../chunk-VGGERKV2.js";
45
45
  import "../chunk-3B7CJOF6.js";
46
46
  import "../chunk-KLATKWUA.js";
@@ -48,8 +48,8 @@ import "../chunk-YDGH7DTL.js";
48
48
  import "../chunk-S7I76ISM.js";
49
49
  import "../chunk-CRQWKC67.js";
50
50
  import "../chunk-QLGM2AZW.js";
51
- import "../chunk-OR2L7EKO.js";
52
51
  import "../chunk-ZUYSGCEH.js";
52
+ import "../chunk-OR2L7EKO.js";
53
53
  import "../chunk-6BAJHAGL.js";
54
54
  import "../chunk-6NV2JDGI.js";
55
55
  import "../chunk-3YLRJVVN.js";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  FormEngine
3
- } from "../chunk-XPQRHO5E.js";
3
+ } from "../chunk-V5H7L5PJ.js";
4
4
  import "../chunk-ZYP3MIH3.js";
5
5
  import "../chunk-PBMM2N77.js";
6
6
  import {
7
7
  ComponentType
8
8
  } from "../chunk-DVDKPY2A.js";
9
- import "../chunk-GY657L56.js";
9
+ import "../chunk-POCAINUE.js";
10
+ import "../chunk-DP7SYLLI.js";
11
+ import "../chunk-NJXKMF67.js";
10
12
  import "../chunk-6R2MBQPL.js";
11
13
  import "../chunk-GRZU6F7Q.js";
12
14
  import "../chunk-Q5LEK7CI.js";
13
15
  import "../chunk-PN5EH6DM.js";
14
- import "../chunk-NJXKMF67.js";
15
16
  import "../chunk-YUUDXRBW.js";
16
17
  import "../chunk-KSKWSUOB.js";
17
18
  import "../chunk-RQRQYYTB.js";
18
- import "../chunk-POCAINUE.js";
19
19
  import "../chunk-AUZ45XPE.js";
20
20
  import "../chunk-CAZPWBQ4.js";
21
21
  import "../chunk-S5D2QE4G.js";
@@ -31,8 +31,6 @@ import "../chunk-237BHPDH.js";
31
31
  import "../chunk-MKMJT3XR.js";
32
32
  import "../chunk-XQVKX47O.js";
33
33
  import "../chunk-4CUGHU36.js";
34
- import "../chunk-GH34XFCC.js";
35
- import "../chunk-NJTLBSTR.js";
36
34
  import "../chunk-6IZYNHZ3.js";
37
35
  import "../chunk-FVOL3ZOJ.js";
38
36
  import "../chunk-LMWJAD3B.js";
@@ -42,6 +40,8 @@ import "../chunk-J7GSNWXT.js";
42
40
  import "../chunk-MD23VADH.js";
43
41
  import "../chunk-OLYHNFKC.js";
44
42
  import "../chunk-KE53GN4Q.js";
43
+ import "../chunk-GH34XFCC.js";
44
+ import "../chunk-NJTLBSTR.js";
45
45
  import "../chunk-VGGERKV2.js";
46
46
  import "../chunk-3B7CJOF6.js";
47
47
  import "../chunk-KLATKWUA.js";
@@ -49,8 +49,8 @@ import "../chunk-YDGH7DTL.js";
49
49
  import "../chunk-S7I76ISM.js";
50
50
  import "../chunk-CRQWKC67.js";
51
51
  import "../chunk-QLGM2AZW.js";
52
- import "../chunk-OR2L7EKO.js";
53
52
  import "../chunk-ZUYSGCEH.js";
53
+ import "../chunk-OR2L7EKO.js";
54
54
  import "../chunk-6BAJHAGL.js";
55
55
  import "../chunk-6NV2JDGI.js";
56
56
  import "../chunk-3YLRJVVN.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createFormEngine
3
- } from "../chunk-U2X3IYSD.js";
3
+ } from "../chunk-6EYX257T.js";
4
4
  import {
5
5
  FormEngine
6
- } from "../chunk-XPQRHO5E.js";
6
+ } from "../chunk-V5H7L5PJ.js";
7
7
  import {
8
8
  createActionConfigValidatorMap,
9
9
  createFormEngineSchemaArtifacts,
@@ -15,16 +15,16 @@ import {
15
15
  import {
16
16
  ComponentType
17
17
  } from "../chunk-DVDKPY2A.js";
18
- import "../chunk-GY657L56.js";
18
+ import "../chunk-POCAINUE.js";
19
+ import "../chunk-DP7SYLLI.js";
20
+ import "../chunk-NJXKMF67.js";
19
21
  import "../chunk-6R2MBQPL.js";
20
22
  import "../chunk-GRZU6F7Q.js";
21
23
  import "../chunk-Q5LEK7CI.js";
22
24
  import "../chunk-PN5EH6DM.js";
23
- import "../chunk-NJXKMF67.js";
24
25
  import "../chunk-YUUDXRBW.js";
25
26
  import "../chunk-KSKWSUOB.js";
26
27
  import "../chunk-RQRQYYTB.js";
27
- import "../chunk-POCAINUE.js";
28
28
  import "../chunk-AUZ45XPE.js";
29
29
  import "../chunk-CAZPWBQ4.js";
30
30
  import "../chunk-S5D2QE4G.js";
@@ -54,8 +54,6 @@ import "../chunk-237BHPDH.js";
54
54
  import "../chunk-MKMJT3XR.js";
55
55
  import "../chunk-XQVKX47O.js";
56
56
  import "../chunk-4CUGHU36.js";
57
- import "../chunk-GH34XFCC.js";
58
- import "../chunk-NJTLBSTR.js";
59
57
  import "../chunk-6IZYNHZ3.js";
60
58
  import "../chunk-FVOL3ZOJ.js";
61
59
  import "../chunk-LMWJAD3B.js";
@@ -65,6 +63,8 @@ import "../chunk-J7GSNWXT.js";
65
63
  import "../chunk-MD23VADH.js";
66
64
  import "../chunk-OLYHNFKC.js";
67
65
  import "../chunk-KE53GN4Q.js";
66
+ import "../chunk-GH34XFCC.js";
67
+ import "../chunk-NJTLBSTR.js";
68
68
  import "../chunk-VGGERKV2.js";
69
69
  import {
70
70
  FormValidationFailure,
@@ -86,8 +86,8 @@ import "../chunk-YDGH7DTL.js";
86
86
  import "../chunk-S7I76ISM.js";
87
87
  import "../chunk-CRQWKC67.js";
88
88
  import "../chunk-QLGM2AZW.js";
89
- import "../chunk-OR2L7EKO.js";
90
89
  import "../chunk-ZUYSGCEH.js";
90
+ import "../chunk-OR2L7EKO.js";
91
91
  import "../chunk-6BAJHAGL.js";
92
92
  import "../chunk-6NV2JDGI.js";
93
93
  import "../chunk-3YLRJVVN.js";
@@ -15,8 +15,8 @@ import "../chunk-YDGH7DTL.js";
15
15
  import "../chunk-S7I76ISM.js";
16
16
  import "../chunk-CRQWKC67.js";
17
17
  import "../chunk-QLGM2AZW.js";
18
- import "../chunk-OR2L7EKO.js";
19
18
  import "../chunk-ZUYSGCEH.js";
19
+ import "../chunk-OR2L7EKO.js";
20
20
  import "../chunk-6BAJHAGL.js";
21
21
  import "../chunk-6NV2JDGI.js";
22
22
  import "../chunk-3YLRJVVN.js";
@@ -11,8 +11,8 @@ import "../chunk-YDGH7DTL.js";
11
11
  import "../chunk-S7I76ISM.js";
12
12
  import "../chunk-CRQWKC67.js";
13
13
  import "../chunk-QLGM2AZW.js";
14
- import "../chunk-OR2L7EKO.js";
15
14
  import "../chunk-ZUYSGCEH.js";
15
+ import "../chunk-OR2L7EKO.js";
16
16
  import "../chunk-3YLRJVVN.js";
17
17
  import "../chunk-CMPOBBRV.js";
18
18
  export {
@@ -18,8 +18,8 @@ import "../chunk-YDGH7DTL.js";
18
18
  import "../chunk-S7I76ISM.js";
19
19
  import "../chunk-CRQWKC67.js";
20
20
  import "../chunk-QLGM2AZW.js";
21
- import "../chunk-OR2L7EKO.js";
22
21
  import "../chunk-ZUYSGCEH.js";
22
+ import "../chunk-OR2L7EKO.js";
23
23
  import "../chunk-6BAJHAGL.js";
24
24
  import "../chunk-6NV2JDGI.js";
25
25
  import "../chunk-3YLRJVVN.js";