@wise/dynamic-flow-client 0.1.1 → 0.1.3
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/build/common/api/utils.d.ts +4 -0
- package/build/common/api/utils.js +13 -0
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.d.ts +11 -0
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.js +36 -0
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.d.ts +4 -0
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.js +13 -0
- package/build/common/contexts/fetcherContext/fetcherContext.d.ts +18 -0
- package/build/common/contexts/fetcherContext/fetcherContext.js +35 -0
- package/build/common/contexts/fetcherContext/index.d.ts +2 -0
- package/build/common/contexts/fetcherContext/index.js +2 -0
- package/build/common/contexts/fetcherContext/makeFetcher.d.ts +2 -0
- package/build/common/contexts/fetcherContext/makeFetcher.js +33 -0
- package/build/common/general/index.d.ts +2 -0
- package/build/common/general/index.js +22 -0
- package/build/common/hooks/useDebouncedFunction.d.ts +2 -0
- package/build/common/hooks/useDebouncedFunction.js +9 -0
- package/build/common/hooks/useDebouncedFunction.test.d.ts +1 -0
- package/build/common/hooks/useDebouncedFunction.test.js +59 -0
- package/build/common/hooks/usePersistAsync.d.ts +7 -0
- package/build/common/hooks/usePersistAsync.js +170 -0
- package/build/common/hooks/usePolling.d.ts +11 -0
- package/build/common/hooks/usePolling.js +48 -0
- package/build/common/hooks/usePrevious.d.ts +2 -0
- package/build/common/hooks/usePrevious.js +9 -0
- package/build/common/index.d.ts +4 -0
- package/build/common/index.js +4 -0
- package/build/common/logging/index.d.ts +22 -0
- package/build/common/logging/index.js +39 -0
- package/build/common/logging/spec.d.ts +1 -0
- package/build/common/logging/spec.js +45 -0
- package/build/common/messages.d.ts +8 -0
- package/build/common/messages.js +8 -0
- package/build/common/propsValues/dateMode.d.ts +4 -0
- package/build/common/propsValues/dateMode.js +4 -0
- package/build/common/propsValues/formControlType.d.ts +17 -0
- package/build/common/propsValues/formControlType.js +17 -0
- package/build/common/propsValues/monthFormat.d.ts +4 -0
- package/build/common/propsValues/monthFormat.js +4 -0
- package/build/common/propsValues/size.d.ts +7 -0
- package/build/common/propsValues/size.js +7 -0
- package/build/common/requirements.d.ts +10 -0
- package/build/common/requirements.js +50 -0
- package/build/common/schemaTypes/schemaTypes.d.ts +23 -0
- package/build/common/schemaTypes/schemaTypes.js +53 -0
- package/build/common/schemaTypes/shouldDebounceSchema.d.ts +2 -0
- package/build/common/schemaTypes/shouldDebounceSchema.js +6 -0
- package/build/common/stepTypes/stepTypes.d.ts +7 -0
- package/build/common/stepTypes/stepTypes.js +42 -0
- package/build/common/tracking/index.d.ts +15 -0
- package/build/common/tracking/index.js +33 -0
- package/build/common/tracking/spec.d.ts +1 -0
- package/build/common/tracking/spec.js +49 -0
- package/build/common/utils/file-utils.d.ts +4 -0
- package/build/common/utils/file-utils.js +45 -0
- package/build/common/utils/generate-random-id.d.ts +1 -0
- package/build/common/utils/generate-random-id.js +5 -0
- package/build/common/utils/generate-random-id.test.d.ts +1 -0
- package/build/common/utils/generate-random-id.test.js +12 -0
- package/build/common/validation/rule-validators/index.d.ts +10 -0
- package/build/common/validation/rule-validators/index.js +40 -0
- package/build/common/validation/rule-validators/spec.d.ts +1 -0
- package/build/common/validation/rule-validators/spec.js +145 -0
- package/build/common/validation/schema-validators/index.d.ts +9 -0
- package/build/common/validation/schema-validators/index.js +98 -0
- package/build/common/validation/schema-validators/spec.d.ts +1 -0
- package/build/common/validation/schema-validators/spec.js +137 -0
- package/build/common/validation/valid-model/index.d.ts +5 -0
- package/build/common/validation/valid-model/index.js +64 -0
- package/build/common/validation/valid-model/spec.d.ts +1 -0
- package/build/common/validation/valid-model/spec.js +605 -0
- package/build/common/validation/valid-model/utils.d.ts +11 -0
- package/build/common/validation/valid-model/utils.js +118 -0
- package/build/common/validation/validation-failures/index.d.ts +23 -0
- package/build/common/validation/validation-failures/index.js +140 -0
- package/build/common/validation/validation-failures/spec.d.ts +1 -0
- package/build/common/validation/validation-failures/spec.js +185 -0
- package/build/dynamic-flow-types/Action.d.ts +19 -0
- package/build/dynamic-flow-types/Action.js +1 -0
- package/build/dynamic-flow-types/FileUploadSchema.d.ts +23 -0
- package/build/dynamic-flow-types/FileUploadSchema.js +3 -0
- package/build/dynamic-flow-types/LayoutComponent.d.ts +129 -0
- package/build/dynamic-flow-types/LayoutComponent.js +1 -0
- package/build/dynamic-flow-types/Model.d.ts +12 -0
- package/build/dynamic-flow-types/Model.js +28 -0
- package/build/dynamic-flow-types/PersistAsync.d.ts +8 -0
- package/build/dynamic-flow-types/PersistAsync.js +1 -0
- package/build/dynamic-flow-types/Polling.d.ts +12 -0
- package/build/dynamic-flow-types/Polling.js +1 -0
- package/build/dynamic-flow-types/Promotion.d.ts +20 -0
- package/build/dynamic-flow-types/Promotion.js +1 -0
- package/build/dynamic-flow-types/Schema.d.ts +184 -0
- package/build/dynamic-flow-types/Schema.js +49 -0
- package/build/dynamic-flow-types/Step.d.ts +127 -0
- package/build/dynamic-flow-types/Step.js +4 -0
- package/build/dynamic-flow-types/ValidationAsync.d.ts +6 -0
- package/build/dynamic-flow-types/ValidationAsync.js +1 -0
- package/build/dynamic-flow-types/core.d.ts +29 -0
- package/build/dynamic-flow-types/core.js +1 -0
- package/build/dynamic-flow-types/index.d.ts +14 -0
- package/build/dynamic-flow-types/index.js +12 -0
- package/build/field/Field.d.ts +69 -0
- package/build/field/Field.js +311 -0
- package/build/field/index.d.ts +2 -0
- package/build/field/index.js +2 -0
- package/build/flow/DynamicFlow.d.ts +4 -0
- package/build/flow/DynamicFlow.js +368 -0
- package/build/flow/DynamicFlowStep.d.ts +9 -0
- package/build/flow/DynamicFlowStep.js +32 -0
- package/build/flow/errorBoundary/ErrorBoundary.d.ts +20 -0
- package/build/flow/errorBoundary/ErrorBoundary.js +45 -0
- package/build/flow/errorBoundary/ErrorBoundary.messages.d.ts +13 -0
- package/build/flow/errorBoundary/ErrorBoundary.messages.js +13 -0
- package/build/flow/errorBoundary/ErrorBoundaryAlert.d.ts +6 -0
- package/build/flow/errorBoundary/ErrorBoundaryAlert.js +12 -0
- package/build/flow/errorBoundary/index.d.ts +1 -0
- package/build/flow/errorBoundary/index.js +1 -0
- package/build/flow/fixtures/components/alert.d.ts +3 -0
- package/build/flow/fixtures/components/alert.js +31 -0
- package/build/flow/fixtures/components/box.d.ts +3 -0
- package/build/flow/fixtures/components/box.js +20 -0
- package/build/flow/fixtures/components/button.d.ts +3 -0
- package/build/flow/fixtures/components/button.js +65 -0
- package/build/flow/fixtures/components/columns.d.ts +3 -0
- package/build/flow/fixtures/components/columns.js +36 -0
- package/build/flow/fixtures/components/copyable.d.ts +3 -0
- package/build/flow/fixtures/components/copyable.js +22 -0
- package/build/flow/fixtures/components/decision.d.ts +3 -0
- package/build/flow/fixtures/components/decision.js +54 -0
- package/build/flow/fixtures/components/heading.d.ts +3 -0
- package/build/flow/fixtures/components/heading.js +14 -0
- package/build/flow/fixtures/components/image.d.ts +3 -0
- package/build/flow/fixtures/components/image.js +22 -0
- package/build/flow/fixtures/components/info.d.ts +3 -0
- package/build/flow/fixtures/components/info.js +17 -0
- package/build/flow/fixtures/components/list.d.ts +3 -0
- package/build/flow/fixtures/components/list.js +34 -0
- package/build/flow/fixtures/components/loading-indicator.d.ts +3 -0
- package/build/flow/fixtures/components/loading-indicator.js +16 -0
- package/build/flow/fixtures/components/paragraph.d.ts +3 -0
- package/build/flow/fixtures/components/paragraph.js +28 -0
- package/build/flow/fixtures/components/review.d.ts +3 -0
- package/build/flow/fixtures/components/review.js +60 -0
- package/build/flow/fixtures/examples/camera-capture.d.ts +3 -0
- package/build/flow/fixtures/examples/camera-capture.js +121 -0
- package/build/flow/fixtures/examples/recipient-update.d.ts +3 -0
- package/build/flow/fixtures/examples/recipient-update.js +250 -0
- package/build/flow/fixtures/examples/recipient.d.ts +3 -0
- package/build/flow/fixtures/examples/recipient.js +313 -0
- package/build/flow/fixtures/examples/single-file-upload.d.ts +3 -0
- package/build/flow/fixtures/examples/single-file-upload.js +96 -0
- package/build/flow/fixtures/examples/step-validation-errors.d.ts +3 -0
- package/build/flow/fixtures/examples/step-validation-errors.js +75 -0
- package/build/flow/fixtures/features/action-response.d.ts +3 -0
- package/build/flow/fixtures/features/action-response.js +29 -0
- package/build/flow/fixtures/features/external.d.ts +3 -0
- package/build/flow/fixtures/features/external.js +31 -0
- package/build/flow/fixtures/features/persist-async.d.ts +3 -0
- package/build/flow/fixtures/features/persist-async.js +44 -0
- package/build/flow/fixtures/features/polling.d.ts +3 -0
- package/build/flow/fixtures/features/polling.js +33 -0
- package/build/flow/fixtures/index.d.ts +42 -0
- package/build/flow/fixtures/index.js +66 -0
- package/build/flow/fixtures/responses/action-response-final.d.ts +3 -0
- package/build/flow/fixtures/responses/action-response-final.js +24 -0
- package/build/flow/fixtures/responses/action.d.ts +5 -0
- package/build/flow/fixtures/responses/action.js +2 -0
- package/build/flow/fixtures/responses/exit.d.ts +6 -0
- package/build/flow/fixtures/responses/exit.js +2 -0
- package/build/flow/fixtures/responses/recipient-update-final.d.ts +3 -0
- package/build/flow/fixtures/responses/recipient-update-final.js +24 -0
- package/build/flow/fixtures/schemas/basic-form.d.ts +3 -0
- package/build/flow/fixtures/schemas/basic-form.js +39 -0
- package/build/flow/fixtures/schemas/number-and-integer.d.ts +3 -0
- package/build/flow/fixtures/schemas/number-and-integer.js +41 -0
- package/build/flow/fixtures/schemas/one-of.d.ts +3 -0
- package/build/flow/fixtures/schemas/one-of.js +223 -0
- package/build/flow/fixtures/schemas/string-formats.d.ts +3 -0
- package/build/flow/fixtures/schemas/string-formats.js +58 -0
- package/build/flow/index.d.ts +1 -0
- package/build/flow/index.js +1 -0
- package/build/flow/response-parsers/index.d.ts +17 -0
- package/build/flow/response-parsers/index.js +112 -0
- package/build/flow/response-parsers/spec.d.ts +1 -0
- package/build/flow/response-parsers/spec.js +263 -0
- package/build/flow/stories/EditableDynamicFlow.d.ts +5 -0
- package/build/flow/stories/EditableDynamicFlow.js +61 -0
- package/build/flow/types.d.ts +77 -0
- package/build/flow/types.js +3 -0
- package/build/flow/useDebouncedRefresh/index.d.ts +1 -0
- package/build/flow/useDebouncedRefresh/index.js +1 -0
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.d.ts +5 -0
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.js +24 -0
- package/build/flow/useDynamicFlowState.d.ts +18 -0
- package/build/flow/useDynamicFlowState.js +111 -0
- package/build/flow/useLoader.d.ts +9 -0
- package/build/flow/useLoader.js +22 -0
- package/build/formControl/FormControl.d.ts +86 -0
- package/build/formControl/FormControl.js +241 -0
- package/build/formControl/index.d.ts +1 -0
- package/build/formControl/index.js +1 -0
- package/build/formControl/types.d.ts +57 -0
- package/build/formControl/types.js +1 -0
- package/build/formControl/value-utils.d.ts +9 -0
- package/build/formControl/value-utils.js +108 -0
- package/build/i18n/cs.json +8 -0
- package/build/i18n/de.json +34 -0
- package/build/i18n/en.json +38 -0
- package/build/i18n/es.json +34 -0
- package/build/i18n/fr.json +34 -0
- package/build/i18n/hu.json +34 -0
- package/build/i18n/id.json +34 -0
- package/build/i18n/index.d.ts +2 -0
- package/build/i18n/index.js +31 -0
- package/build/i18n/it.json +34 -0
- package/build/i18n/ja.json +34 -0
- package/build/i18n/pl.json +11 -0
- package/build/i18n/pt.json +34 -0
- package/build/i18n/ro.json +34 -0
- package/build/i18n/ru.json +34 -0
- package/build/i18n/th.json +34 -0
- package/build/i18n/tr.json +11 -0
- package/build/i18n/uk.json +8 -0
- package/build/i18n/zh-CN.json +34 -0
- package/build/i18n/zh.json +34 -0
- package/build/index.d.ts +12 -0
- package/build/index.js +11 -0
- package/build/jsonSchemaForm/JsonSchemaForm.d.ts +66 -0
- package/build/jsonSchemaForm/JsonSchemaForm.js +31 -0
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +14 -0
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +54 -0
- package/build/jsonSchemaForm/allOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/allOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +15 -0
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +25 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +16 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +26 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +18 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +141 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +24 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +18 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.d.ts +9 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.js +14 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.d.ts +6 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.js +85 -0
- package/build/jsonSchemaForm/arrayTypeSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +1 -0
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +22 -0
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +105 -0
- package/build/jsonSchemaForm/basicTypeSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/basicTypeSchema/index.js +1 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +31 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +79 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts +53 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +53 -0
- package/build/jsonSchemaForm/controlFeedback/index.d.ts +1 -0
- package/build/jsonSchemaForm/controlFeedback/index.js +1 -0
- package/build/jsonSchemaForm/genericSchema/GenericSchema.d.ts +19 -0
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +122 -0
- package/build/jsonSchemaForm/genericSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/genericSchema/index.js +1 -0
- package/build/jsonSchemaForm/help/Help.d.ts +8 -0
- package/build/jsonSchemaForm/help/Help.js +9 -0
- package/build/jsonSchemaForm/help/Help.messages.d.ts +8 -0
- package/build/jsonSchemaForm/help/Help.messages.js +8 -0
- package/build/jsonSchemaForm/help/index.d.ts +1 -0
- package/build/jsonSchemaForm/help/index.js +1 -0
- package/build/jsonSchemaForm/index.d.ts +1 -0
- package/build/jsonSchemaForm/index.js +1 -0
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +16 -0
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +78 -0
- package/build/jsonSchemaForm/objectSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/objectSchema/index.js +1 -0
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +15 -0
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +153 -0
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.d.ts +3 -0
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.js +40 -0
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.d.ts +2 -0
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.js +27 -0
- package/build/jsonSchemaForm/oneOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/oneOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.d.ts +3 -0
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.js +7 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +16 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +26 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +8 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +8 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.d.ts +21 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.js +168 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.d.ts +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.js +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.d.ts +20 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.js +127 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.d.ts +17 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.js +32 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.d.ts +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.js +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +1 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +9 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +72 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.d.ts +2 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.js +8 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.d.ts +7 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.js +27 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.d.ts +23 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.js +31 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.d.ts +9 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.js +32 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +8 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +55 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +16 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +13 -0
- package/build/jsonSchemaForm/readOnlySchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/readOnlySchema/index.js +1 -0
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +25 -0
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +106 -0
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.d.ts +3 -0
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.js +73 -0
- package/build/jsonSchemaForm/schemaFormControl/index.d.ts +1 -0
- package/build/jsonSchemaForm/schemaFormControl/index.js +1 -0
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.d.ts +40 -0
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.js +89 -0
- package/build/jsonSchemaForm/schemas/allOf.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/allOf.json.js +119 -0
- package/build/jsonSchemaForm/schemas/audRecipient.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/audRecipient.json.js +1104 -0
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.js +37 -0
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.js +36 -0
- package/build/jsonSchemaForm/schemas/currency.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/currency.json.js +48 -0
- package/build/jsonSchemaForm/schemas/oneOf.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/oneOf.json.js +119 -0
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.js +53 -0
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.js +56 -0
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.js +102 -0
- package/build/jsonSchemaForm/schemas/simple.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/simple.json.js +48 -0
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.js +71 -0
- package/build/jsonSchemaForm/schemas/validationAsync.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/validationAsync.json.js +23 -0
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +17 -0
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +149 -0
- package/build/jsonSchemaForm/validationAsyncSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +1 -0
- package/build/layout/DynamicLayout.d.ts +17 -0
- package/build/layout/DynamicLayout.js +75 -0
- package/build/layout/alert/index.d.ts +6 -0
- package/build/layout/alert/index.js +29 -0
- package/build/layout/box/index.d.ts +8 -0
- package/build/layout/box/index.js +41 -0
- package/build/layout/button/index.d.ts +8 -0
- package/build/layout/button/index.js +58 -0
- package/build/layout/columns/index.d.ts +8 -0
- package/build/layout/columns/index.js +38 -0
- package/build/layout/decision/index.d.ts +9 -0
- package/build/layout/decision/index.js +38 -0
- package/build/layout/divider/index.d.ts +7 -0
- package/build/layout/divider/index.js +9 -0
- package/build/layout/external/DynamicExternal.d.ts +8 -0
- package/build/layout/external/DynamicExternal.js +30 -0
- package/build/layout/external/DynamicExternal.messages.d.ts +8 -0
- package/build/layout/external/DynamicExternal.messages.js +8 -0
- package/build/layout/external/index.d.ts +1 -0
- package/build/layout/external/index.js +1 -0
- package/build/layout/external/useExternalStepPolling.d.ts +11 -0
- package/build/layout/external/useExternalStepPolling.js +68 -0
- package/build/layout/form/index.d.ts +8 -0
- package/build/layout/form/index.js +22 -0
- package/build/layout/heading/index.d.ts +6 -0
- package/build/layout/heading/index.js +31 -0
- package/build/layout/icon/index.d.ts +7 -0
- package/build/layout/icon/index.js +22 -0
- package/build/layout/image/index.d.ts +6 -0
- package/build/layout/image/index.js +126 -0
- package/build/layout/index.d.ts +1 -0
- package/build/layout/index.js +1 -0
- package/build/layout/info/index.d.ts +7 -0
- package/build/layout/info/index.js +19 -0
- package/build/layout/layouts/all.json.d.ts +3 -0
- package/build/layout/layouts/all.json.js +176 -0
- package/build/layout/layouts/final-step-layout.json.d.ts +3 -0
- package/build/layout/layouts/final-step-layout.json.js +39 -0
- package/build/layout/layouts/finalStep.json.d.ts +3 -0
- package/build/layout/layouts/finalStep.json.js +24 -0
- package/build/layout/layouts/list.json.d.ts +3 -0
- package/build/layout/layouts/list.json.js +33 -0
- package/build/layout/layouts/pay-in.json.d.ts +3 -0
- package/build/layout/layouts/pay-in.json.js +97 -0
- package/build/layout/layouts/review.json.d.ts +3 -0
- package/build/layout/layouts/review.json.js +160 -0
- package/build/layout/layouts/success.json.d.ts +3 -0
- package/build/layout/layouts/success.json.js +66 -0
- package/build/layout/list/index.d.ts +8 -0
- package/build/layout/list/index.js +30 -0
- package/build/layout/loading-indicator/index.d.ts +7 -0
- package/build/layout/loading-indicator/index.js +10 -0
- package/build/layout/loading-indicator/spec.d.ts +1 -0
- package/build/layout/loading-indicator/spec.js +11 -0
- package/build/layout/paragraph/DynamicParagraph.d.ts +7 -0
- package/build/layout/paragraph/DynamicParagraph.js +42 -0
- package/build/layout/paragraph/DynamicParagraph.messages.d.ts +13 -0
- package/build/layout/paragraph/DynamicParagraph.messages.js +13 -0
- package/build/layout/paragraph/index.d.ts +1 -0
- package/build/layout/paragraph/index.js +1 -0
- package/build/layout/paragraph/useSnackBarIfAvailable.d.ts +10 -0
- package/build/layout/paragraph/useSnackBarIfAvailable.js +9 -0
- package/build/layout/review/index.d.ts +9 -0
- package/build/layout/review/index.js +33 -0
- package/build/layout/utils.d.ts +7 -0
- package/build/layout/utils.js +31 -0
- package/build/main.css +143 -0
- package/build/schema.d.ts +1 -0
- package/build/schema.js +1 -0
- package/build/step/cameraStep/CameraStep.d.ts +8 -0
- package/build/step/cameraStep/CameraStep.js +125 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.d.ts +16 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +122 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +18 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +18 -0
- package/build/step/cameraStep/cameraCapture/components/index.d.ts +8 -0
- package/build/step/cameraStep/cameraCapture/components/index.js +28 -0
- package/build/step/cameraStep/cameraCapture/hooks/index.d.ts +4 -0
- package/build/step/cameraStep/cameraCapture/hooks/index.js +80 -0
- package/build/step/cameraStep/cameraCapture/index.d.ts +1 -0
- package/build/step/cameraStep/cameraCapture/index.js +1 -0
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.d.ts +11 -0
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +78 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +3 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +19 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +13 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +13 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +6 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +21 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +18 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +18 -0
- package/build/step/cameraStep/cameraCapture/screens/index.d.ts +2 -0
- package/build/step/cameraStep/cameraCapture/screens/index.js +2 -0
- package/build/step/cameraStep/cameraCapture/tracking/index.d.ts +7 -0
- package/build/step/cameraStep/cameraCapture/tracking/index.js +101 -0
- package/build/step/cameraStep/cameraCapture/utils/index.d.ts +8 -0
- package/build/step/cameraStep/cameraCapture/utils/index.js +103 -0
- package/build/step/cameraStep/index.d.ts +1 -0
- package/build/step/cameraStep/index.js +1 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +7 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +64 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +23 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +23 -0
- package/build/step/externalConfirmationStep/index.d.ts +1 -0
- package/build/step/externalConfirmationStep/index.js +1 -0
- package/build/step/features/external/useExternal.d.ts +4 -0
- package/build/step/features/external/useExternal.js +15 -0
- package/build/step/features/index.d.ts +2 -0
- package/build/step/features/index.js +2 -0
- package/build/step/features/polling/useStepPolling.d.ts +2 -0
- package/build/step/features/polling/useStepPolling.js +44 -0
- package/build/step/index.d.ts +3 -0
- package/build/step/index.js +3 -0
- package/build/step/layoutStep/LayoutStep.d.ts +11 -0
- package/build/step/layoutStep/LayoutStep.js +34 -0
- package/build/step/layoutStep/index.d.ts +1 -0
- package/build/step/layoutStep/index.js +1 -0
- package/build/step/layoutStep/layoutService/convertStepToLayout.d.ts +8 -0
- package/build/step/layoutStep/layoutService/convertStepToLayout.js +217 -0
- package/build/step/layoutStep/layoutService/index.d.ts +2 -0
- package/build/step/layoutStep/layoutService/index.js +2 -0
- package/build/step/layoutStep/layoutService/inlineReferences.d.ts +7 -0
- package/build/step/layoutStep/layoutService/inlineReferences.js +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Examples/Step Validation Errors',
|
|
3
|
+
title: 'Step with validation errors',
|
|
4
|
+
type: 'form',
|
|
5
|
+
errors: {
|
|
6
|
+
validation: {
|
|
7
|
+
'bridekeeper-questions': {
|
|
8
|
+
'favourite-colour': 'Auuuuuuuugh'
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
actions: [],
|
|
13
|
+
layout: [
|
|
14
|
+
{
|
|
15
|
+
type: 'form',
|
|
16
|
+
schema: { $ref: '#the-schema' }
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
schemas: [
|
|
20
|
+
{
|
|
21
|
+
$id: '#the-schema',
|
|
22
|
+
type: 'object',
|
|
23
|
+
displayOrder: ['bridekeeper-questions'],
|
|
24
|
+
properties: {
|
|
25
|
+
'bridekeeper-questions': {
|
|
26
|
+
type: 'object',
|
|
27
|
+
displayOrder: ['name', 'quest', 'favourite-colour'],
|
|
28
|
+
properties: {
|
|
29
|
+
name: {
|
|
30
|
+
title: 'What is your name?',
|
|
31
|
+
type: 'string',
|
|
32
|
+
placeholder: 'Sir Lancelot of Camelot'
|
|
33
|
+
},
|
|
34
|
+
quest: {
|
|
35
|
+
title: 'What is your quest?',
|
|
36
|
+
type: 'string',
|
|
37
|
+
placeholder: 'to seek the Holy Grail'
|
|
38
|
+
},
|
|
39
|
+
'favourite-colour': {
|
|
40
|
+
title: 'What is your favourite colour?',
|
|
41
|
+
analyticsId: 'colour-select',
|
|
42
|
+
oneOf: [
|
|
43
|
+
{
|
|
44
|
+
title: 'Blue',
|
|
45
|
+
analyticsId: 'colour-select-blue',
|
|
46
|
+
image: {
|
|
47
|
+
url: 'https://placeholder.pics/svg/128/0099ff/FFFFFF'
|
|
48
|
+
},
|
|
49
|
+
"const": 1
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: 'Yellow',
|
|
53
|
+
analyticsId: 'colour-select-yellow',
|
|
54
|
+
image: {
|
|
55
|
+
url: 'https://placeholder.pics/svg/128/ffcc00/FFFFFF'
|
|
56
|
+
},
|
|
57
|
+
"const": 2
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: 'Red',
|
|
61
|
+
analyticsId: 'colour-select-red',
|
|
62
|
+
image: {
|
|
63
|
+
url: 'https://placeholder.pics/svg/128/ff6600/FFFFFF'
|
|
64
|
+
},
|
|
65
|
+
"const": 2
|
|
66
|
+
},
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
]
|
|
74
|
+
};
|
|
75
|
+
export default step;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Features/Action Response',
|
|
3
|
+
title: 'Action Response',
|
|
4
|
+
description: '',
|
|
5
|
+
type: 'form',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'paragraph',
|
|
11
|
+
text: "The button below will trigger an action that fetches '/responses/action'.",
|
|
12
|
+
align: 'center'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'paragraph',
|
|
16
|
+
text: 'That should return an action response that will load a final step.',
|
|
17
|
+
align: 'center'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: 'button',
|
|
21
|
+
action: {
|
|
22
|
+
url: '/responses/action',
|
|
23
|
+
title: 'Submit',
|
|
24
|
+
type: 'primary'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
export default step;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Features/External',
|
|
4
|
+
title: 'External Feature',
|
|
5
|
+
description: 'Your bank is opening in another window.',
|
|
6
|
+
external: { url: 'http://google.com/' },
|
|
7
|
+
polling: {
|
|
8
|
+
url: '/polling/1234',
|
|
9
|
+
interval: 2,
|
|
10
|
+
maxAttempts: 5,
|
|
11
|
+
onError: {
|
|
12
|
+
action: { url: '/failure' }
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
layout: [
|
|
16
|
+
{
|
|
17
|
+
type: 'paragraph',
|
|
18
|
+
align: 'center',
|
|
19
|
+
text: 'Please, follow their instructions. Keep this window open.'
|
|
20
|
+
},
|
|
21
|
+
{ type: 'loading-indicator', margin: 'xl' },
|
|
22
|
+
{
|
|
23
|
+
type: 'info',
|
|
24
|
+
align: 'center',
|
|
25
|
+
markdown: "If it didn't work, you can [reopen](http://google.com/) the tab"
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
actions: [],
|
|
29
|
+
schemas: []
|
|
30
|
+
};
|
|
31
|
+
export default step;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Features/Persist Async',
|
|
4
|
+
title: 'Persist Async Feature',
|
|
5
|
+
schemas: [
|
|
6
|
+
{
|
|
7
|
+
$id: 'the-schema',
|
|
8
|
+
type: 'object',
|
|
9
|
+
title: 'Some Object',
|
|
10
|
+
displayOrder: ['nameToken'],
|
|
11
|
+
properties: {
|
|
12
|
+
nameToken: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
title: 'Text input',
|
|
15
|
+
persistAsync: {
|
|
16
|
+
method: 'POST',
|
|
17
|
+
url: '/persist-async-upload',
|
|
18
|
+
param: 'name',
|
|
19
|
+
idProperty: 'nameToken',
|
|
20
|
+
schema: {
|
|
21
|
+
title: 'Enter your name',
|
|
22
|
+
type: 'string'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
actions: [
|
|
30
|
+
{
|
|
31
|
+
title: 'Submit Persist Async',
|
|
32
|
+
url: '/persist-async-submit',
|
|
33
|
+
method: 'POST',
|
|
34
|
+
type: 'primary'
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
layout: [
|
|
38
|
+
{
|
|
39
|
+
type: 'form',
|
|
40
|
+
schema: { $ref: 'the-schema' }
|
|
41
|
+
},
|
|
42
|
+
]
|
|
43
|
+
};
|
|
44
|
+
export default step;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Features/Polling',
|
|
4
|
+
title: 'Polling Feature',
|
|
5
|
+
description: 'Polling feature in a form step.',
|
|
6
|
+
polling: {
|
|
7
|
+
url: '/polling/1234',
|
|
8
|
+
interval: 2,
|
|
9
|
+
maxAttempts: 5,
|
|
10
|
+
onError: {
|
|
11
|
+
action: { url: '/failure' }
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
layout: [
|
|
15
|
+
{
|
|
16
|
+
type: 'paragraph',
|
|
17
|
+
align: 'center',
|
|
18
|
+
text: 'We are waiting for something to happen.'
|
|
19
|
+
},
|
|
20
|
+
{ type: 'loading-indicator', margin: 'xl' },
|
|
21
|
+
{
|
|
22
|
+
type: 'button',
|
|
23
|
+
action: {
|
|
24
|
+
title: 'Back',
|
|
25
|
+
type: 'link',
|
|
26
|
+
url: '/back'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
actions: [],
|
|
31
|
+
schemas: []
|
|
32
|
+
};
|
|
33
|
+
export default step;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const fixtures: {
|
|
2
|
+
readonly steps: {
|
|
3
|
+
readonly simpleForm: import("../..").Step;
|
|
4
|
+
readonly stringFormats: import("../..").Step;
|
|
5
|
+
readonly numberAndInteger: import("../..").Step;
|
|
6
|
+
readonly oneOf: import("../..").Step;
|
|
7
|
+
readonly alert: import("../..").Step;
|
|
8
|
+
readonly box: import("../..").Step;
|
|
9
|
+
readonly button: import("../..").Step;
|
|
10
|
+
readonly columns: import("../..").Step;
|
|
11
|
+
readonly decision: import("../..").Step;
|
|
12
|
+
readonly heading: import("../..").Step;
|
|
13
|
+
readonly image: import("../..").Step;
|
|
14
|
+
readonly info: import("../..").Step;
|
|
15
|
+
readonly list: import("../..").Step;
|
|
16
|
+
readonly loadingIndicator: import("../..").Step;
|
|
17
|
+
readonly paragraph: import("../..").Step;
|
|
18
|
+
readonly review: import("../..").Step;
|
|
19
|
+
readonly copyable: import("../..").Step;
|
|
20
|
+
readonly actionResponse: import("../..").Step;
|
|
21
|
+
readonly polling: import("../..").Step;
|
|
22
|
+
readonly external: import("../..").Step;
|
|
23
|
+
readonly recipient: import("../..").Step;
|
|
24
|
+
readonly recipientUpdate: import("../..").Step;
|
|
25
|
+
readonly persistAsync: import("../..").Step;
|
|
26
|
+
readonly singleFileUpload: import("../..").Step;
|
|
27
|
+
readonly stepValidationErrors: import("../..").Step;
|
|
28
|
+
readonly cameraCapture: import("../..").Step;
|
|
29
|
+
};
|
|
30
|
+
readonly responses: {
|
|
31
|
+
readonly action: {
|
|
32
|
+
action: import("../../dynamic-flow-types").Action;
|
|
33
|
+
};
|
|
34
|
+
readonly success: import("../..").Step;
|
|
35
|
+
readonly recipientUpdate: import("../..").Step;
|
|
36
|
+
readonly exit: {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
country: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import alert from './components/alert';
|
|
2
|
+
import box from './components/box';
|
|
3
|
+
import button from './components/button';
|
|
4
|
+
import columns from './components/columns';
|
|
5
|
+
import copyable from './components/copyable';
|
|
6
|
+
import decision from './components/decision';
|
|
7
|
+
import heading from './components/heading';
|
|
8
|
+
import image from './components/image';
|
|
9
|
+
import info from './components/info';
|
|
10
|
+
import list from './components/list';
|
|
11
|
+
import loadingIndicator from './components/loading-indicator';
|
|
12
|
+
import paragraph from './components/paragraph';
|
|
13
|
+
import review from './components/review';
|
|
14
|
+
import cameraCapture from './examples/camera-capture';
|
|
15
|
+
import recipient from './examples/recipient';
|
|
16
|
+
import recipientUpdate from './examples/recipient-update';
|
|
17
|
+
import singleFileUpload from './examples/single-file-upload';
|
|
18
|
+
import stepValidationErrors from './examples/step-validation-errors';
|
|
19
|
+
import actionResponse from './features/action-response';
|
|
20
|
+
import external from './features/external';
|
|
21
|
+
import persistAsync from './features/persist-async';
|
|
22
|
+
import polling from './features/polling';
|
|
23
|
+
import action from './responses/action';
|
|
24
|
+
import actionResponseFinal from './responses/action-response-final';
|
|
25
|
+
import exit from './responses/exit';
|
|
26
|
+
import recipientUpdateFinal from './responses/recipient-update-final';
|
|
27
|
+
import simpleForm from './schemas/basic-form';
|
|
28
|
+
import numberAndInteger from './schemas/number-and-integer';
|
|
29
|
+
import oneOf from './schemas/one-of';
|
|
30
|
+
import stringFormats from './schemas/string-formats';
|
|
31
|
+
export var fixtures = {
|
|
32
|
+
steps: {
|
|
33
|
+
simpleForm: simpleForm,
|
|
34
|
+
stringFormats: stringFormats,
|
|
35
|
+
numberAndInteger: numberAndInteger,
|
|
36
|
+
oneOf: oneOf,
|
|
37
|
+
alert: alert,
|
|
38
|
+
box: box,
|
|
39
|
+
button: button,
|
|
40
|
+
columns: columns,
|
|
41
|
+
decision: decision,
|
|
42
|
+
heading: heading,
|
|
43
|
+
image: image,
|
|
44
|
+
info: info,
|
|
45
|
+
list: list,
|
|
46
|
+
loadingIndicator: loadingIndicator,
|
|
47
|
+
paragraph: paragraph,
|
|
48
|
+
review: review,
|
|
49
|
+
copyable: copyable,
|
|
50
|
+
actionResponse: actionResponse,
|
|
51
|
+
polling: polling,
|
|
52
|
+
external: external,
|
|
53
|
+
recipient: recipient,
|
|
54
|
+
recipientUpdate: recipientUpdate,
|
|
55
|
+
persistAsync: persistAsync,
|
|
56
|
+
singleFileUpload: singleFileUpload,
|
|
57
|
+
stepValidationErrors: stepValidationErrors,
|
|
58
|
+
cameraCapture: cameraCapture
|
|
59
|
+
},
|
|
60
|
+
responses: {
|
|
61
|
+
action: action,
|
|
62
|
+
success: actionResponseFinal,
|
|
63
|
+
recipientUpdate: recipientUpdateFinal,
|
|
64
|
+
exit: exit
|
|
65
|
+
}
|
|
66
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'action-response-final',
|
|
4
|
+
title: 'Action Response Final Step',
|
|
5
|
+
description: "This step was loaded as a result of an Action Response.",
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'alert',
|
|
11
|
+
markdown: 'If you want to see this again, perhaps go back to "Action Response" story.',
|
|
12
|
+
context: 'positive'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'button',
|
|
16
|
+
action: {
|
|
17
|
+
title: 'Start Over',
|
|
18
|
+
type: 'primary',
|
|
19
|
+
url: '/steps/actionResponse'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
export default step;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'recipient-update-final',
|
|
4
|
+
title: 'Recipient Update Final Step',
|
|
5
|
+
description: "The recipient has been updated.",
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'alert',
|
|
11
|
+
markdown: 'Nothing to see here.',
|
|
12
|
+
context: 'positive'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'button',
|
|
16
|
+
action: {
|
|
17
|
+
title: 'Start Over',
|
|
18
|
+
type: 'primary',
|
|
19
|
+
url: '/steps/recipientUpdate'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
export default step;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Schemas/Basic Form',
|
|
3
|
+
title: 'Simple Form',
|
|
4
|
+
description: 'A simple form with text fields and a checkbox.',
|
|
5
|
+
type: 'form',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [
|
|
8
|
+
{
|
|
9
|
+
$id: '#the-schema',
|
|
10
|
+
type: 'object',
|
|
11
|
+
displayOrder: ['name', 'pineapple'],
|
|
12
|
+
properties: {
|
|
13
|
+
name: {
|
|
14
|
+
title: 'Name (string schema)',
|
|
15
|
+
type: 'string'
|
|
16
|
+
},
|
|
17
|
+
pineapple: {
|
|
18
|
+
title: 'Pineapple on pizza (boolean schema)',
|
|
19
|
+
type: 'boolean'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
layout: [
|
|
25
|
+
{
|
|
26
|
+
type: 'form',
|
|
27
|
+
schema: { $ref: '#the-schema' }
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'button',
|
|
31
|
+
action: {
|
|
32
|
+
url: '/submit',
|
|
33
|
+
title: 'Submit',
|
|
34
|
+
type: 'primary'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
export default step;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Schemas/Number And Integer',
|
|
3
|
+
title: 'Number and Integer Schemas',
|
|
4
|
+
description: 'Number and Integer Schemas.',
|
|
5
|
+
type: 'form',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [
|
|
8
|
+
{
|
|
9
|
+
$id: '#the-schema',
|
|
10
|
+
type: 'object',
|
|
11
|
+
displayOrder: ['some-number', 'some-integer'],
|
|
12
|
+
properties: {
|
|
13
|
+
'some-number': {
|
|
14
|
+
title: 'Number (number schema)',
|
|
15
|
+
type: 'number',
|
|
16
|
+
validationMessages: { type: 'This is not an number' }
|
|
17
|
+
},
|
|
18
|
+
'some-integer': {
|
|
19
|
+
title: 'Integer (integer schema, does not support decimals)',
|
|
20
|
+
type: 'integer',
|
|
21
|
+
validationMessages: { type: 'This is not an integer' }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
layout: [
|
|
27
|
+
{
|
|
28
|
+
type: 'form',
|
|
29
|
+
schema: { $ref: '#the-schema' }
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'button',
|
|
33
|
+
action: {
|
|
34
|
+
url: '/submit',
|
|
35
|
+
title: 'Submit',
|
|
36
|
+
type: 'primary'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
export default step;
|