@marktiderman/genesis-forms 0.9.0 → 0.9.2
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/dist/destinations.cjs +128 -74
- package/dist/destinations.cjs.map +1 -1
- package/dist/destinations.d.cts +5 -29
- package/dist/destinations.d.ts +5 -29
- package/dist/destinations.js +125 -71
- package/dist/destinations.js.map +1 -1
- package/dist/{engine-BaHPC2-1.d.cts → engine-5_HNkWDD.d.cts} +2 -2
- package/dist/{engine-Da99Tv-E.d.ts → engine-B2HNqQDZ.d.ts} +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js.map +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js.map +1 -1
- package/dist/{submit-protocol-CFi-0Qd0.d.ts → submit-protocol-BKMZJXHr.d.ts} +5 -5
- package/dist/{submit-protocol-D0cOckmK.d.cts → submit-protocol-DvAwNA_O.d.cts} +5 -5
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.js.map +1 -1
- package/dist/{types-C0pUfew3.d.cts → types-BBDa8oXu.d.cts} +1 -1
- package/dist/{types-C0pUfew3.d.ts → types-BBDa8oXu.d.ts} +1 -1
- package/dist/{validate-DpmBssFk.d.ts → validate-BhIx55N7.d.ts} +4 -4
- package/dist/{validate-U5LoW3eR.d.cts → validate-CocUgR5Q.d.cts} +4 -4
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
2
|
-
export { e as FormEvent, f as Operand, g as Operator } from './types-
|
|
3
|
-
import { P as PhotoFormat, a as PhotoRef, S as SubmissionInput, b as SubmitRequest, c as SubmitFailureReason, d as SubmitResult } from './submit-protocol-
|
|
4
|
-
export { D as DEFAULT_PHOTO_FILES, e as DEFAULT_PHOTO_SIZE_MB, I as IDEMPOTENCY_KEY_PATTERN, M as MAX_PHOTO_FILES, f as MAX_PHOTO_ID_LENGTH, g as MAX_PHOTO_NAME_LENGTH, h as MAX_PHOTO_SIZE_MB, i as MAX_UPLOAD_REQUEST_BYTES, j as MergeOptions, k as PHOTO_FORMATS, l as PHOTO_TYPE, m as PhotoLimits, n as SignedUpload, o as SubmitOutcome, U as UPLOAD_FIELD_TYPES, p as UploadGrant, q as UploadRefusal, r as UploadRequest, s as isIdempotencyKey, t as isPhotoFormat, u as isPhotoRef, v as isSubmitResult, w as mergeResponses, x as photoCountMessage, y as photoFormatList, z as photoLimits, A as photoRefs, B as photoSizeMessage, C as photoTypeMessage, E as submitOutcome } from './submit-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 ContentTypeManifest, c as FieldTypeManifest, H as HostOptions, L as LinkParams, d as LiteralType, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, e as OTHER_MAX_LENGTH, f as OptionSnapshot, P as PrefillSetting, g as PrefillState, h as PropsCheck, i as PropsChecker, R as REQUIRED_MESSAGE, j as RegisterOptions, k as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, l as StandardSchemaV1, V as VALIDATOR_FAILED_MESSAGE, m as answerSnapshots, n as answersFromSnapshots, o as answersOnPath, p as choiceKind, q as choiceOptions, r as clearFilteredAnswers, s as contentText, t as dateLimits, u as filteredChoiceError, v as getContentType, w as getFieldType, x as hasOptionFilters, y as hiddenByPrefill, z as isBuiltInFieldType, B as isChoiceField, D as isEmptyValue, E as isHttpsUrl, G as isIsoDate, I as isOtherValue, J as isPrefillParam, K as isSearchable, N as isSensitive, Q as listContentTypes, T as listFieldTypes, U as normalizeValue, W as numberLimits, X as optionFilter, Y as optionJson, Z as optionMatches, _ as optionsSource, $ as otherOption, a0 as prefillFromLink, a1 as prefillSetting, a2 as ratingDisplay, a3 as readOption, a4 as registerContentType, a5 as registerFieldType, a6 as respondentPath, a7 as scaleLabels, a8 as searchOptions, a9 as summarizeValue, aa as validateField, ab as visibleOptions, ac 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-BBDa8oXu.cjs';
|
|
2
|
+
export { e as FormEvent, f as Operand, g as Operator } from './types-BBDa8oXu.cjs';
|
|
3
|
+
import { P as PhotoFormat, a as PhotoRef, S as SubmissionInput, b as SubmitRequest, c as SubmitFailureReason, d as SubmitResult } from './submit-protocol-DvAwNA_O.cjs';
|
|
4
|
+
export { D as DEFAULT_PHOTO_FILES, e as DEFAULT_PHOTO_SIZE_MB, I as IDEMPOTENCY_KEY_PATTERN, M as MAX_PHOTO_FILES, f as MAX_PHOTO_ID_LENGTH, g as MAX_PHOTO_NAME_LENGTH, h as MAX_PHOTO_SIZE_MB, i as MAX_UPLOAD_REQUEST_BYTES, j as MergeOptions, k as PHOTO_FORMATS, l as PHOTO_TYPE, m as PhotoLimits, n as SignedUpload, o as SubmitOutcome, U as UPLOAD_FIELD_TYPES, p as UploadGrant, q as UploadRefusal, r as UploadRequest, s as isIdempotencyKey, t as isPhotoFormat, u as isPhotoRef, v as isSubmitResult, w as mergeResponses, x as photoCountMessage, y as photoFormatList, z as photoLimits, A as photoRefs, B as photoSizeMessage, C as photoTypeMessage, E as submitOutcome } from './submit-protocol-DvAwNA_O.cjs';
|
|
5
|
+
import { F as FormEngine, a as FormState } from './engine-5_HNkWDD.cjs';
|
|
6
|
+
export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-5_HNkWDD.cjs';
|
|
7
|
+
import { F as FieldValidator } from './validate-CocUgR5Q.cjs';
|
|
8
|
+
export { A as AnswerSnapshot, C as CHOICE_FIELD_TYPES, a as ChoiceOption, b as ContentTypeManifest, c as FieldTypeManifest, H as HostOptions, L as LinkParams, d as LiteralType, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, e as OTHER_MAX_LENGTH, f as OptionSnapshot, P as PrefillSetting, g as PrefillState, h as PropsCheck, i as PropsChecker, R as REQUIRED_MESSAGE, j as RegisterOptions, k as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, l as StandardSchemaV1, V as VALIDATOR_FAILED_MESSAGE, m as answerSnapshots, n as answersFromSnapshots, o as answersOnPath, p as choiceKind, q as choiceOptions, r as clearFilteredAnswers, s as contentText, t as dateLimits, u as filteredChoiceError, v as getContentType, w as getFieldType, x as hasOptionFilters, y as hiddenByPrefill, z as isBuiltInFieldType, B as isChoiceField, D as isEmptyValue, E as isHttpsUrl, G as isIsoDate, I as isOtherValue, J as isPrefillParam, K as isSearchable, N as isSensitive, Q as listContentTypes, T as listFieldTypes, U as normalizeValue, W as numberLimits, X as optionFilter, Y as optionJson, Z as optionMatches, _ as optionsSource, $ as otherOption, a0 as prefillFromLink, a1 as prefillSetting, a2 as ratingDisplay, a3 as readOption, a4 as registerContentType, a5 as registerFieldType, a6 as respondentPath, a7 as scaleLabels, a8 as searchOptions, a9 as summarizeValue, aa as validateField, ab as visibleOptions, ac as withHostOptions } from './validate-CocUgR5Q.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 & {
|
|
@@ -36,7 +36,7 @@ interface ChoiceFieldOptions<O extends string> extends FieldOptions {
|
|
|
36
36
|
}[] | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Options the app showing the form supplies, by key (`OptionsSource`), such
|
|
39
|
-
* as `{ source: "host", key: "
|
|
39
|
+
* as `{ source: "host", key: "staff" }`; pass the lists as `hostOptions`
|
|
40
40
|
* to `createForm` and `validateSubmission`.
|
|
41
41
|
*/
|
|
42
42
|
optionsFrom?: OptionsSource | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
2
|
-
export { e as FormEvent, f as Operand, g as Operator } from './types-
|
|
3
|
-
import { P as PhotoFormat, a as PhotoRef, S as SubmissionInput, b as SubmitRequest, c as SubmitFailureReason, d as SubmitResult } from './submit-protocol-
|
|
4
|
-
export { D as DEFAULT_PHOTO_FILES, e as DEFAULT_PHOTO_SIZE_MB, I as IDEMPOTENCY_KEY_PATTERN, M as MAX_PHOTO_FILES, f as MAX_PHOTO_ID_LENGTH, g as MAX_PHOTO_NAME_LENGTH, h as MAX_PHOTO_SIZE_MB, i as MAX_UPLOAD_REQUEST_BYTES, j as MergeOptions, k as PHOTO_FORMATS, l as PHOTO_TYPE, m as PhotoLimits, n as SignedUpload, o as SubmitOutcome, U as UPLOAD_FIELD_TYPES, p as UploadGrant, q as UploadRefusal, r as UploadRequest, s as isIdempotencyKey, t as isPhotoFormat, u as isPhotoRef, v as isSubmitResult, w as mergeResponses, x as photoCountMessage, y as photoFormatList, z as photoLimits, A as photoRefs, B as photoSizeMessage, C as photoTypeMessage, E as submitOutcome } from './submit-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 ContentTypeManifest, c as FieldTypeManifest, H as HostOptions, L as LinkParams, d as LiteralType, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, e as OTHER_MAX_LENGTH, f as OptionSnapshot, P as PrefillSetting, g as PrefillState, h as PropsCheck, i as PropsChecker, R as REQUIRED_MESSAGE, j as RegisterOptions, k as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, l as StandardSchemaV1, V as VALIDATOR_FAILED_MESSAGE, m as answerSnapshots, n as answersFromSnapshots, o as answersOnPath, p as choiceKind, q as choiceOptions, r as clearFilteredAnswers, s as contentText, t as dateLimits, u as filteredChoiceError, v as getContentType, w as getFieldType, x as hasOptionFilters, y as hiddenByPrefill, z as isBuiltInFieldType, B as isChoiceField, D as isEmptyValue, E as isHttpsUrl, G as isIsoDate, I as isOtherValue, J as isPrefillParam, K as isSearchable, N as isSensitive, Q as listContentTypes, T as listFieldTypes, U as normalizeValue, W as numberLimits, X as optionFilter, Y as optionJson, Z as optionMatches, _ as optionsSource, $ as otherOption, a0 as prefillFromLink, a1 as prefillSetting, a2 as ratingDisplay, a3 as readOption, a4 as registerContentType, a5 as registerFieldType, a6 as respondentPath, a7 as scaleLabels, a8 as searchOptions, a9 as summarizeValue, aa as validateField, ab as visibleOptions, ac 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-BBDa8oXu.js';
|
|
2
|
+
export { e as FormEvent, f as Operand, g as Operator } from './types-BBDa8oXu.js';
|
|
3
|
+
import { P as PhotoFormat, a as PhotoRef, S as SubmissionInput, b as SubmitRequest, c as SubmitFailureReason, d as SubmitResult } from './submit-protocol-BKMZJXHr.js';
|
|
4
|
+
export { D as DEFAULT_PHOTO_FILES, e as DEFAULT_PHOTO_SIZE_MB, I as IDEMPOTENCY_KEY_PATTERN, M as MAX_PHOTO_FILES, f as MAX_PHOTO_ID_LENGTH, g as MAX_PHOTO_NAME_LENGTH, h as MAX_PHOTO_SIZE_MB, i as MAX_UPLOAD_REQUEST_BYTES, j as MergeOptions, k as PHOTO_FORMATS, l as PHOTO_TYPE, m as PhotoLimits, n as SignedUpload, o as SubmitOutcome, U as UPLOAD_FIELD_TYPES, p as UploadGrant, q as UploadRefusal, r as UploadRequest, s as isIdempotencyKey, t as isPhotoFormat, u as isPhotoRef, v as isSubmitResult, w as mergeResponses, x as photoCountMessage, y as photoFormatList, z as photoLimits, A as photoRefs, B as photoSizeMessage, C as photoTypeMessage, E as submitOutcome } from './submit-protocol-BKMZJXHr.js';
|
|
5
|
+
import { F as FormEngine, a as FormState } from './engine-B2HNqQDZ.js';
|
|
6
|
+
export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-B2HNqQDZ.js';
|
|
7
|
+
import { F as FieldValidator } from './validate-BhIx55N7.js';
|
|
8
|
+
export { A as AnswerSnapshot, C as CHOICE_FIELD_TYPES, a as ChoiceOption, b as ContentTypeManifest, c as FieldTypeManifest, H as HostOptions, L as LinkParams, d as LiteralType, M as MAX_PREFILL_PARAM_LENGTH, O as OPTION_LIMITS, e as OTHER_MAX_LENGTH, f as OptionSnapshot, P as PrefillSetting, g as PrefillState, h as PropsCheck, i as PropsChecker, R as REQUIRED_MESSAGE, j as RegisterOptions, k as RestoredAnswers, S as SEARCHABLE_OPTION_COUNT, l as StandardSchemaV1, V as VALIDATOR_FAILED_MESSAGE, m as answerSnapshots, n as answersFromSnapshots, o as answersOnPath, p as choiceKind, q as choiceOptions, r as clearFilteredAnswers, s as contentText, t as dateLimits, u as filteredChoiceError, v as getContentType, w as getFieldType, x as hasOptionFilters, y as hiddenByPrefill, z as isBuiltInFieldType, B as isChoiceField, D as isEmptyValue, E as isHttpsUrl, G as isIsoDate, I as isOtherValue, J as isPrefillParam, K as isSearchable, N as isSensitive, Q as listContentTypes, T as listFieldTypes, U as normalizeValue, W as numberLimits, X as optionFilter, Y as optionJson, Z as optionMatches, _ as optionsSource, $ as otherOption, a0 as prefillFromLink, a1 as prefillSetting, a2 as ratingDisplay, a3 as readOption, a4 as registerContentType, a5 as registerFieldType, a6 as respondentPath, a7 as scaleLabels, a8 as searchOptions, a9 as summarizeValue, aa as validateField, ab as visibleOptions, ac as withHostOptions } from './validate-BhIx55N7.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 & {
|
|
@@ -36,7 +36,7 @@ interface ChoiceFieldOptions<O extends string> extends FieldOptions {
|
|
|
36
36
|
}[] | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Options the app showing the form supplies, by key (`OptionsSource`), such
|
|
39
|
-
* as `{ source: "host", key: "
|
|
39
|
+
* as `{ source: "host", key: "staff" }`; pass the lists as `hostOptions`
|
|
40
40
|
* to `createForm` and `validateSubmission`.
|
|
41
41
|
*/
|
|
42
42
|
optionsFrom?: OptionsSource | undefined;
|