@marktiderman/genesis-forms 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { e as FormEvent, J as Json, F as FormDefinition, a as FieldBlock, B as Block } from './types-oAckGR_Z.cjs';
2
- import { F as FieldValidator, H as HostOptions, L as LinkParams } from './validate-BFpNJbjf.cjs';
1
+ import { e as FormEvent, J as Json, F as FormDefinition, a as FieldBlock, B as Block } from './types-jqDKcmP4.cjs';
2
+ import { F as FieldValidator, H as HostOptions, L as LinkParams } from './validate-irIPubxc.cjs';
3
3
 
4
4
  /** Guards and helpers for event logs and other untrusted JSON. No dependencies. */
5
5
 
@@ -1,5 +1,5 @@
1
- import { e as FormEvent, J as Json, F as FormDefinition, a as FieldBlock, B as Block } from './types-oAckGR_Z.js';
2
- import { F as FieldValidator, H as HostOptions, L as LinkParams } from './validate-qwkdcr3H.js';
1
+ import { e as FormEvent, J as Json, F as FormDefinition, a as FieldBlock, B as Block } from './types-jqDKcmP4.js';
2
+ import { F as FieldValidator, H as HostOptions, L as LinkParams } from './validate-DvfQHYnu.js';
3
3
 
4
4
  /** Guards and helpers for event logs and other untrusted JSON. No dependencies. */
5
5
 
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { a as FieldBlock, C as ContentBlock, P as PageBreakBlock, O as OptionsSource, F as FormDefinition, H as HiddenInput, b as FormLayout, L as LogicRule, E as Ending, c as FormSettings, J as Json, d as Condition, B as Block } from './types-oAckGR_Z.cjs';
2
- export { e as FormEvent, f as Operand, g as Operator } from './types-oAckGR_Z.cjs';
3
- import { P as PhotoFormat, a as PhotoRef } from './upload-protocol-Bw0CWRJc.cjs';
4
- export { D as DEFAULT_PHOTO_FILES, b as DEFAULT_PHOTO_SIZE_MB, M as MAX_PHOTO_FILES, c as MAX_PHOTO_ID_LENGTH, d as MAX_PHOTO_NAME_LENGTH, e as MAX_PHOTO_SIZE_MB, f as MAX_UPLOAD_REQUEST_BYTES, g as PHOTO_FORMATS, h as PHOTO_TYPE, i as PhotoLimits, S as SignedUpload, U as UPLOAD_FIELD_TYPES, j as UploadGrant, k as UploadRefusal, l as UploadRequest, m as isPhotoFormat, n as isPhotoRef, p as photoCountMessage, o as photoFormatList, q as photoLimits, r as photoRefs, s as photoSizeMessage, t as photoTypeMessage } from './upload-protocol-Bw0CWRJc.cjs';
5
- import { F as FormEngine, a as FormState } from './engine-C5tb3mkf.cjs';
6
- export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-C5tb3mkf.cjs';
7
- import { F as FieldValidator } from './validate-BFpNJbjf.cjs';
8
- export { A as AnswerSnapshot, C as CHOICE_FIELD_TYPES, a as ChoiceOption, b as FieldTypeManifest, H as HostOptions, L as LinkParams, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, c as OTHER_MAX_LENGTH, d as OptionSnapshot, P as PrefillSetting, e as PrefillState, R as REQUIRED_MESSAGE, f as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, g as StandardSchemaV1, h as answerSnapshots, i as answersFromSnapshots, j as answersOnPath, k as choiceOptions, l as clearFilteredAnswers, m as dateLimits, n as filteredChoiceError, o as getFieldType, p as hasOptionFilters, q as hiddenByPrefill, r as isEmptyValue, s as isHttpsUrl, t as isIsoDate, u as isOtherValue, v as isPrefillParam, w as isSearchable, x as isSensitive, y as listFieldTypes, z as normalizeValue, B as numberLimits, D as optionFilter, E as optionJson, G as optionMatches, I as optionsSource, J as otherOption, K as prefillFromLink, N as prefillSetting, Q as ratingDisplay, T as readOption, U as registerFieldType, V as respondentPath, W as scaleLabels, X as searchOptions, Y as summarizeValue, Z as validateField, _ as visibleOptions, $ as withHostOptions } from './validate-BFpNJbjf.cjs';
1
+ import { a as FieldBlock, b as ContentBlock, P as PageBreakBlock, O as OptionsSource, F as FormDefinition, H as HiddenInput, c as FormLayout, L as LogicRule, E as Ending, d as FormSettings, J as Json, C as Condition, B as Block } from './types-jqDKcmP4.cjs';
2
+ export { e as FormEvent, f as Operand, g as Operator } from './types-jqDKcmP4.cjs';
3
+ import { P as PhotoFormat, a as PhotoRef } from './upload-protocol-BOe018kL.cjs';
4
+ export { D as DEFAULT_PHOTO_FILES, b as DEFAULT_PHOTO_SIZE_MB, M as MAX_PHOTO_FILES, c as MAX_PHOTO_ID_LENGTH, d as MAX_PHOTO_NAME_LENGTH, e as MAX_PHOTO_SIZE_MB, f as MAX_UPLOAD_REQUEST_BYTES, g as PHOTO_FORMATS, h as PHOTO_TYPE, i as PhotoLimits, S as SignedUpload, U as UPLOAD_FIELD_TYPES, j as UploadGrant, k as UploadRefusal, l as UploadRequest, m as isPhotoFormat, n as isPhotoRef, p as photoCountMessage, o as photoFormatList, q as photoLimits, r as photoRefs, s as photoSizeMessage, t as photoTypeMessage } from './upload-protocol-BOe018kL.cjs';
5
+ import { F as FormEngine, a as FormState } from './engine-Bj23YJlB.cjs';
6
+ export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-Bj23YJlB.cjs';
7
+ import { F as FieldValidator } from './validate-irIPubxc.cjs';
8
+ export { A as AnswerSnapshot, C as CHOICE_FIELD_TYPES, a as ChoiceOption, b as FieldTypeManifest, H as HostOptions, L as LinkParams, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, c as OTHER_MAX_LENGTH, d as OptionSnapshot, P as PrefillSetting, e as PrefillState, R as REQUIRED_MESSAGE, f as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, g as StandardSchemaV1, h as answerSnapshots, i as answersFromSnapshots, j as answersOnPath, k as choiceOptions, l as clearFilteredAnswers, m as dateLimits, n as filteredChoiceError, o as getFieldType, p as hasOptionFilters, q as hiddenByPrefill, r as isEmptyValue, s as isHttpsUrl, t as isIsoDate, u as isOtherValue, v as isPrefillParam, w as isSearchable, x as isSensitive, y as listFieldTypes, z as normalizeValue, B as numberLimits, D as optionFilter, E as optionJson, G as optionMatches, I as optionsSource, J as otherOption, K as prefillFromLink, N as prefillSetting, Q as ratingDisplay, T as readOption, U as registerFieldType, V as respondentPath, W as scaleLabels, X as searchOptions, Y as summarizeValue, Z as validateField, _ as visibleOptions, $ as withHostOptions } from './validate-irIPubxc.cjs';
9
9
 
10
10
  /** A field block that remembers its key and value type, for answer inference. */
11
11
  type FieldSpec<K extends string = string, V = unknown> = FieldBlock & {
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { a as FieldBlock, C as ContentBlock, P as PageBreakBlock, O as OptionsSource, F as FormDefinition, H as HiddenInput, b as FormLayout, L as LogicRule, E as Ending, c as FormSettings, J as Json, d as Condition, B as Block } from './types-oAckGR_Z.js';
2
- export { e as FormEvent, f as Operand, g as Operator } from './types-oAckGR_Z.js';
3
- import { P as PhotoFormat, a as PhotoRef } from './upload-protocol-PX0jroTV.js';
4
- export { D as DEFAULT_PHOTO_FILES, b as DEFAULT_PHOTO_SIZE_MB, M as MAX_PHOTO_FILES, c as MAX_PHOTO_ID_LENGTH, d as MAX_PHOTO_NAME_LENGTH, e as MAX_PHOTO_SIZE_MB, f as MAX_UPLOAD_REQUEST_BYTES, g as PHOTO_FORMATS, h as PHOTO_TYPE, i as PhotoLimits, S as SignedUpload, U as UPLOAD_FIELD_TYPES, j as UploadGrant, k as UploadRefusal, l as UploadRequest, m as isPhotoFormat, n as isPhotoRef, p as photoCountMessage, o as photoFormatList, q as photoLimits, r as photoRefs, s as photoSizeMessage, t as photoTypeMessage } from './upload-protocol-PX0jroTV.js';
5
- import { F as FormEngine, a as FormState } from './engine-DcNQ-6oJ.js';
6
- export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-DcNQ-6oJ.js';
7
- import { F as FieldValidator } from './validate-qwkdcr3H.js';
8
- export { A as AnswerSnapshot, C as CHOICE_FIELD_TYPES, a as ChoiceOption, b as FieldTypeManifest, H as HostOptions, L as LinkParams, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, c as OTHER_MAX_LENGTH, d as OptionSnapshot, P as PrefillSetting, e as PrefillState, R as REQUIRED_MESSAGE, f as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, g as StandardSchemaV1, h as answerSnapshots, i as answersFromSnapshots, j as answersOnPath, k as choiceOptions, l as clearFilteredAnswers, m as dateLimits, n as filteredChoiceError, o as getFieldType, p as hasOptionFilters, q as hiddenByPrefill, r as isEmptyValue, s as isHttpsUrl, t as isIsoDate, u as isOtherValue, v as isPrefillParam, w as isSearchable, x as isSensitive, y as listFieldTypes, z as normalizeValue, B as numberLimits, D as optionFilter, E as optionJson, G as optionMatches, I as optionsSource, J as otherOption, K as prefillFromLink, N as prefillSetting, Q as ratingDisplay, T as readOption, U as registerFieldType, V as respondentPath, W as scaleLabels, X as searchOptions, Y as summarizeValue, Z as validateField, _ as visibleOptions, $ as withHostOptions } from './validate-qwkdcr3H.js';
1
+ import { a as FieldBlock, b as ContentBlock, P as PageBreakBlock, O as OptionsSource, F as FormDefinition, H as HiddenInput, c as FormLayout, L as LogicRule, E as Ending, d as FormSettings, J as Json, C as Condition, B as Block } from './types-jqDKcmP4.js';
2
+ export { e as FormEvent, f as Operand, g as Operator } from './types-jqDKcmP4.js';
3
+ import { P as PhotoFormat, a as PhotoRef } from './upload-protocol-BUO74WkS.js';
4
+ export { D as DEFAULT_PHOTO_FILES, b as DEFAULT_PHOTO_SIZE_MB, M as MAX_PHOTO_FILES, c as MAX_PHOTO_ID_LENGTH, d as MAX_PHOTO_NAME_LENGTH, e as MAX_PHOTO_SIZE_MB, f as MAX_UPLOAD_REQUEST_BYTES, g as PHOTO_FORMATS, h as PHOTO_TYPE, i as PhotoLimits, S as SignedUpload, U as UPLOAD_FIELD_TYPES, j as UploadGrant, k as UploadRefusal, l as UploadRequest, m as isPhotoFormat, n as isPhotoRef, p as photoCountMessage, o as photoFormatList, q as photoLimits, r as photoRefs, s as photoSizeMessage, t as photoTypeMessage } from './upload-protocol-BUO74WkS.js';
5
+ import { F as FormEngine, a as FormState } from './engine-CzinTJph.js';
6
+ export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-CzinTJph.js';
7
+ import { F as FieldValidator } from './validate-DvfQHYnu.js';
8
+ export { A as AnswerSnapshot, C as CHOICE_FIELD_TYPES, a as ChoiceOption, b as FieldTypeManifest, H as HostOptions, L as LinkParams, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, c as OTHER_MAX_LENGTH, d as OptionSnapshot, P as PrefillSetting, e as PrefillState, R as REQUIRED_MESSAGE, f as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, g as StandardSchemaV1, h as answerSnapshots, i as answersFromSnapshots, j as answersOnPath, k as choiceOptions, l as clearFilteredAnswers, m as dateLimits, n as filteredChoiceError, o as getFieldType, p as hasOptionFilters, q as hiddenByPrefill, r as isEmptyValue, s as isHttpsUrl, t as isIsoDate, u as isOtherValue, v as isPrefillParam, w as isSearchable, x as isSensitive, y as listFieldTypes, z as normalizeValue, B as numberLimits, D as optionFilter, E as optionJson, G as optionMatches, I as optionsSource, J as otherOption, K as prefillFromLink, N as prefillSetting, Q as ratingDisplay, T as readOption, U as registerFieldType, V as respondentPath, W as scaleLabels, X as searchOptions, Y as summarizeValue, Z as validateField, _ as visibleOptions, $ as withHostOptions } from './validate-DvfQHYnu.js';
9
9
 
10
10
  /** A field block that remembers its key and value type, for answer inference. */
11
11
  type FieldSpec<K extends string = string, V = unknown> = FieldBlock & {
package/dist/server.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { F as FieldValidator, H as HostOptions } from './validate-BFpNJbjf.cjs';
2
- export { A as AnswerSnapshot, d as OptionSnapshot, f as RestoredAnswers, h as answerSnapshots, i as answersFromSnapshots, $ as withHostOptions } from './validate-BFpNJbjf.cjs';
3
- import { J as Json, F as FormDefinition, a as FieldBlock, e as FormEvent } from './types-oAckGR_Z.cjs';
4
- import { S as SignedUpload } from './upload-protocol-Bw0CWRJc.cjs';
5
- export { f as MAX_UPLOAD_REQUEST_BYTES, j as UploadGrant, k as UploadRefusal, l as UploadRequest } from './upload-protocol-Bw0CWRJc.cjs';
1
+ import { F as FieldValidator, H as HostOptions } from './validate-irIPubxc.cjs';
2
+ export { A as AnswerSnapshot, d as OptionSnapshot, f as RestoredAnswers, h as answerSnapshots, i as answersFromSnapshots, $ as withHostOptions } from './validate-irIPubxc.cjs';
3
+ import { J as Json, F as FormDefinition, a as FieldBlock, e as FormEvent } from './types-jqDKcmP4.cjs';
4
+ import { S as SignedUpload } from './upload-protocol-BOe018kL.cjs';
5
+ export { f as MAX_UPLOAD_REQUEST_BYTES, j as UploadGrant, k as UploadRefusal, l as UploadRequest } from './upload-protocol-BOe018kL.cjs';
6
6
 
7
7
  /**
8
8
  * Edit links for a sent response: `<id>.<nonce>.<expires>.<sig>`, where sig is the
package/dist/server.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { F as FieldValidator, H as HostOptions } from './validate-qwkdcr3H.js';
2
- export { A as AnswerSnapshot, d as OptionSnapshot, f as RestoredAnswers, h as answerSnapshots, i as answersFromSnapshots, $ as withHostOptions } from './validate-qwkdcr3H.js';
3
- import { J as Json, F as FormDefinition, a as FieldBlock, e as FormEvent } from './types-oAckGR_Z.js';
4
- import { S as SignedUpload } from './upload-protocol-PX0jroTV.js';
5
- export { f as MAX_UPLOAD_REQUEST_BYTES, j as UploadGrant, k as UploadRefusal, l as UploadRequest } from './upload-protocol-PX0jroTV.js';
1
+ import { F as FieldValidator, H as HostOptions } from './validate-DvfQHYnu.js';
2
+ export { A as AnswerSnapshot, d as OptionSnapshot, f as RestoredAnswers, h as answerSnapshots, i as answersFromSnapshots, $ as withHostOptions } from './validate-DvfQHYnu.js';
3
+ import { J as Json, F as FormDefinition, a as FieldBlock, e as FormEvent } from './types-jqDKcmP4.js';
4
+ import { S as SignedUpload } from './upload-protocol-BUO74WkS.js';
5
+ export { f as MAX_UPLOAD_REQUEST_BYTES, j as UploadGrant, k as UploadRefusal, l as UploadRequest } from './upload-protocol-BUO74WkS.js';
6
6
 
7
7
  /**
8
8
  * Edit links for a sent response: `<id>.<nonce>.<expires>.<sig>`, where sig is the
@@ -1,7 +1,7 @@
1
- import { a as FormState, F as FormEngine, C as CreateFormOptions } from './engine-C5tb3mkf.cjs';
2
- export { d as compactEvents } from './engine-C5tb3mkf.cjs';
3
- import { J as Json, F as FormDefinition, e as FormEvent } from './types-oAckGR_Z.cjs';
4
- import './validate-BFpNJbjf.cjs';
1
+ import { a as FormState, F as FormEngine, C as CreateFormOptions } from './engine-Bj23YJlB.cjs';
2
+ export { d as compactEvents } from './engine-Bj23YJlB.cjs';
3
+ import { J as Json, F as FormDefinition, e as FormEvent } from './types-jqDKcmP4.cjs';
4
+ import './validate-irIPubxc.cjs';
5
5
 
6
6
  interface CoverageOptions {
7
7
  /** Stop after this many explored states and report `truncated`. Default 5000. */
package/dist/testing.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { a as FormState, F as FormEngine, C as CreateFormOptions } from './engine-DcNQ-6oJ.js';
2
- export { d as compactEvents } from './engine-DcNQ-6oJ.js';
3
- import { J as Json, F as FormDefinition, e as FormEvent } from './types-oAckGR_Z.js';
4
- import './validate-qwkdcr3H.js';
1
+ import { a as FormState, F as FormEngine, C as CreateFormOptions } from './engine-CzinTJph.js';
2
+ export { d as compactEvents } from './engine-CzinTJph.js';
3
+ import { J as Json, F as FormDefinition, e as FormEvent } from './types-jqDKcmP4.js';
4
+ import './validate-DvfQHYnu.js';
5
5
 
6
6
  interface CoverageOptions {
7
7
  /** Stop after this many explored states and report `truncated`. Default 5000. */
@@ -182,4 +182,4 @@ type FormEvent = {
182
182
  at?: number;
183
183
  };
184
184
 
185
- export type { Block as B, ContentBlock as C, Ending as E, FormDefinition as F, HiddenInput as H, Json as J, LogicRule as L, OptionsSource as O, PageBreakBlock as P, FieldBlock as a, FormLayout as b, FormSettings as c, Condition as d, FormEvent as e, Operand as f, Operator as g };
185
+ export type { Block as B, Condition as C, Ending as E, FormDefinition as F, HiddenInput as H, Json as J, LogicRule as L, OptionsSource as O, PageBreakBlock as P, FieldBlock as a, ContentBlock as b, FormLayout as c, FormSettings as d, FormEvent as e, Operand as f, Operator as g };
@@ -182,4 +182,4 @@ type FormEvent = {
182
182
  at?: number;
183
183
  };
184
184
 
185
- export type { Block as B, ContentBlock as C, Ending as E, FormDefinition as F, HiddenInput as H, Json as J, LogicRule as L, OptionsSource as O, PageBreakBlock as P, FieldBlock as a, FormLayout as b, FormSettings as c, Condition as d, FormEvent as e, Operand as f, Operator as g };
185
+ export type { Block as B, Condition as C, Ending as E, FormDefinition as F, HiddenInput as H, Json as J, LogicRule as L, OptionsSource as O, PageBreakBlock as P, FieldBlock as a, ContentBlock as b, FormLayout as c, FormSettings as d, FormEvent as e, Operand as f, Operator as g };
@@ -1,4 +1,4 @@
1
- import { a as FieldBlock, J as Json } from './types-oAckGR_Z.cjs';
1
+ import { a as FieldBlock, J as Json } from './types-jqDKcmP4.cjs';
2
2
 
3
3
  /**
4
4
  * The `photo` field type: a respondent attaches up to a few photos, such as a
@@ -1,4 +1,4 @@
1
- import { a as FieldBlock, J as Json } from './types-oAckGR_Z.js';
1
+ import { a as FieldBlock, J as Json } from './types-jqDKcmP4.js';
2
2
 
3
3
  /**
4
4
  * The `photo` field type: a respondent attaches up to a few photos, such as a
@@ -1,4 +1,4 @@
1
- import { J as Json, g as Operator, a as FieldBlock, B as Block, O as OptionsSource, F as FormDefinition, e as FormEvent } from './types-oAckGR_Z.js';
1
+ import { J as Json, g as Operator, a as FieldBlock, B as Block, O as OptionsSource, F as FormDefinition, e as FormEvent } from './types-jqDKcmP4.js';
2
2
 
3
3
  /**
4
4
  * A field type, without any UI. Renderers are registered separately per
@@ -1,4 +1,4 @@
1
- import { J as Json, g as Operator, a as FieldBlock, B as Block, O as OptionsSource, F as FormDefinition, e as FormEvent } from './types-oAckGR_Z.cjs';
1
+ import { J as Json, g as Operator, a as FieldBlock, B as Block, O as OptionsSource, F as FormDefinition, e as FormEvent } from './types-jqDKcmP4.cjs';
2
2
 
3
3
  /**
4
4
  * A field type, without any UI. Renderers are registered separately per
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-forms",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": [