@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.
- package/README.md +93 -4
- package/dist/destinations.cjs +658 -18
- package/dist/destinations.cjs.map +1 -1
- package/dist/destinations.d.cts +394 -6
- package/dist/destinations.d.ts +394 -6
- package/dist/destinations.js +629 -19
- package/dist/destinations.js.map +1 -1
- package/dist/{engine-C5tb3mkf.d.cts → engine-Bj23YJlB.d.cts} +2 -2
- package/dist/{engine-DcNQ-6oJ.d.ts → engine-CzinTJph.d.ts} +2 -2
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/server.d.cts +5 -5
- package/dist/server.d.ts +5 -5
- package/dist/testing.d.cts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/{types-oAckGR_Z.d.cts → types-jqDKcmP4.d.cts} +1 -1
- package/dist/{types-oAckGR_Z.d.ts → types-jqDKcmP4.d.ts} +1 -1
- package/dist/{upload-protocol-Bw0CWRJc.d.cts → upload-protocol-BOe018kL.d.cts} +1 -1
- package/dist/{upload-protocol-PX0jroTV.d.ts → upload-protocol-BUO74WkS.d.ts} +1 -1
- package/dist/{validate-qwkdcr3H.d.ts → validate-DvfQHYnu.d.ts} +1 -1
- package/dist/{validate-BFpNJbjf.d.cts → validate-irIPubxc.d.cts} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as FormEvent, J as Json, F as FormDefinition, a as FieldBlock, B as Block } from './types-
|
|
2
|
-
import { F as FieldValidator, H as HostOptions, L as LinkParams } from './validate-
|
|
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-
|
|
2
|
-
import { F as FieldValidator, H as HostOptions, L as LinkParams } from './validate-
|
|
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,
|
|
2
|
-
export { e as FormEvent, f as Operand, g as Operator } from './types-
|
|
3
|
-
import { P as PhotoFormat, a as PhotoRef } from './upload-protocol-
|
|
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-
|
|
5
|
-
import { F as FormEngine, a as FormState } from './engine-
|
|
6
|
-
export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-
|
|
7
|
-
import { F as FieldValidator } from './validate-
|
|
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-
|
|
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,
|
|
2
|
-
export { e as FormEvent, f as Operand, g as Operator } from './types-
|
|
3
|
-
import { P as PhotoFormat, a as PhotoRef } from './upload-protocol-
|
|
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-
|
|
5
|
-
import { F as FormEngine, a as FormState } from './engine-
|
|
6
|
-
export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-
|
|
7
|
-
import { F as FieldValidator } from './validate-
|
|
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-
|
|
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-
|
|
2
|
-
export { A as AnswerSnapshot, d as OptionSnapshot, f as RestoredAnswers, h as answerSnapshots, i as answersFromSnapshots, $ as withHostOptions } from './validate-
|
|
3
|
-
import { J as Json, F as FormDefinition, a as FieldBlock, e as FormEvent } from './types-
|
|
4
|
-
import { S as SignedUpload } from './upload-protocol-
|
|
5
|
-
export { f as MAX_UPLOAD_REQUEST_BYTES, j as UploadGrant, k as UploadRefusal, l as UploadRequest } from './upload-protocol-
|
|
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-
|
|
2
|
-
export { A as AnswerSnapshot, d as OptionSnapshot, f as RestoredAnswers, h as answerSnapshots, i as answersFromSnapshots, $ as withHostOptions } from './validate-
|
|
3
|
-
import { J as Json, F as FormDefinition, a as FieldBlock, e as FormEvent } from './types-
|
|
4
|
-
import { S as SignedUpload } from './upload-protocol-
|
|
5
|
-
export { f as MAX_UPLOAD_REQUEST_BYTES, j as UploadGrant, k as UploadRefusal, l as UploadRequest } from './upload-protocol-
|
|
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
|
package/dist/testing.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as FormState, F as FormEngine, C as CreateFormOptions } from './engine-
|
|
2
|
-
export { d as compactEvents } from './engine-
|
|
3
|
-
import { J as Json, F as FormDefinition, e as FormEvent } from './types-
|
|
4
|
-
import './validate-
|
|
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-
|
|
2
|
-
export { d as compactEvents } from './engine-
|
|
3
|
-
import { J as Json, F as FormDefinition, e as FormEvent } from './types-
|
|
4
|
-
import './validate-
|
|
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,
|
|
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,
|
|
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 { J as Json, g as Operator, a as FieldBlock, B as Block, O as OptionsSource, F as FormDefinition, e as FormEvent } from './types-
|
|
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-
|
|
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
|