@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/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-C0pUfew3.cjs';
2
- export { e as FormEvent, f as Operand, g as Operator } from './types-C0pUfew3.cjs';
3
- import { P as PhotoFormat, a as PhotoRef, S as SubmissionInput, b as SubmitRequest, c as SubmitFailureReason, d as SubmitResult } from './submit-protocol-D0cOckmK.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-D0cOckmK.cjs';
5
- import { F as FormEngine, a as FormState } from './engine-BaHPC2-1.cjs';
6
- export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-BaHPC2-1.cjs';
7
- import { F as FieldValidator } from './validate-U5LoW3eR.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-U5LoW3eR.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-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: "coaches" }`; pass the lists as `hostOptions`
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-C0pUfew3.js';
2
- export { e as FormEvent, f as Operand, g as Operator } from './types-C0pUfew3.js';
3
- import { P as PhotoFormat, a as PhotoRef, S as SubmissionInput, b as SubmitRequest, c as SubmitFailureReason, d as SubmitResult } from './submit-protocol-CFi-0Qd0.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-CFi-0Qd0.js';
5
- import { F as FormEngine, a as FormState } from './engine-Da99Tv-E.js';
6
- export { C as CreateFormOptions, c as createForm, i as isFormEvent, b as isJson, r as replay } from './engine-Da99Tv-E.js';
7
- import { F as FieldValidator } from './validate-DpmBssFk.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-DpmBssFk.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-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: "coaches" }`; pass the lists as `hostOptions`
39
+ * as `{ source: "host", key: "staff" }`; pass the lists as `hostOptions`
40
40
  * to `createForm` and `validateSubmission`.
41
41
  */
42
42
  optionsFrom?: OptionsSource | undefined;