@wise/dynamic-flow-client 0.1.2 → 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,65 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
var buttons = ['primary', 'secondary', 'negative', 'link'].map(function (type, i) {
|
|
11
|
+
return ({
|
|
12
|
+
type: 'button',
|
|
13
|
+
action: {
|
|
14
|
+
url: '/action-url',
|
|
15
|
+
method: 'POST',
|
|
16
|
+
title: "Button ".concat(i + 1, ", type: \"").concat(type, "\""),
|
|
17
|
+
type: type,
|
|
18
|
+
data: { 'button-number': i + 1 }
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
var step = {
|
|
23
|
+
type: 'form',
|
|
24
|
+
key: 'Components/Button',
|
|
25
|
+
title: 'Button Component',
|
|
26
|
+
description: 'Buttons typically trigger actions.',
|
|
27
|
+
actions: [],
|
|
28
|
+
schemas: [
|
|
29
|
+
{
|
|
30
|
+
$id: '#schema',
|
|
31
|
+
type: 'object',
|
|
32
|
+
displayOrder: [],
|
|
33
|
+
properties: {
|
|
34
|
+
'form-field': {
|
|
35
|
+
type: 'string',
|
|
36
|
+
"default": 'Some text',
|
|
37
|
+
title: 'Enter any text. It will be submitted under "form-field".'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
layout: [
|
|
43
|
+
{
|
|
44
|
+
type: 'box',
|
|
45
|
+
width: 'md',
|
|
46
|
+
components: __spreadArray(__spreadArray([
|
|
47
|
+
{
|
|
48
|
+
type: 'paragraph',
|
|
49
|
+
text: 'Action buttons merge the form data with their own action.data before submitting it to the specified URL.'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 'form',
|
|
53
|
+
schema: { $ref: '#schema' }
|
|
54
|
+
}
|
|
55
|
+
], buttons, true), [
|
|
56
|
+
{
|
|
57
|
+
type: 'paragraph',
|
|
58
|
+
text: 'Press any buttons and see the fetcher calls below.',
|
|
59
|
+
align: 'center'
|
|
60
|
+
},
|
|
61
|
+
], false)
|
|
62
|
+
},
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
export default step;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Columns',
|
|
4
|
+
title: 'Columns Component',
|
|
5
|
+
description: "Arrange components in two columns (when there's enough space)",
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'columns',
|
|
11
|
+
left: [
|
|
12
|
+
{
|
|
13
|
+
type: 'button',
|
|
14
|
+
action: {
|
|
15
|
+
title: 'Save',
|
|
16
|
+
type: 'primary',
|
|
17
|
+
exit: true,
|
|
18
|
+
result: { side: 'left' }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
right: [
|
|
23
|
+
{
|
|
24
|
+
type: 'button',
|
|
25
|
+
action: {
|
|
26
|
+
title: 'Delete',
|
|
27
|
+
type: 'negative',
|
|
28
|
+
exit: true,
|
|
29
|
+
result: { side: 'right' }
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
export default step;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Components/Copyable',
|
|
3
|
+
type: 'form',
|
|
4
|
+
title: 'Copyable Text',
|
|
5
|
+
description: 'Copyable Text Component.',
|
|
6
|
+
actions: [],
|
|
7
|
+
layout: [
|
|
8
|
+
{
|
|
9
|
+
type: 'paragraph',
|
|
10
|
+
align: 'center',
|
|
11
|
+
text: 'Please copy the code below and use it in that other thing.'
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'paragraph',
|
|
15
|
+
text: '7Xtiq6fnX9aEVF7yZAmb2qyqS857ro8S',
|
|
16
|
+
align: 'center',
|
|
17
|
+
control: 'copyable'
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
schemas: []
|
|
21
|
+
};
|
|
22
|
+
export default step;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Decision',
|
|
4
|
+
title: 'Decision Component',
|
|
5
|
+
description: 'A step with a decision Component.',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'heading',
|
|
11
|
+
size: 'sm',
|
|
12
|
+
text: 'Please continue using one of the following options:'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'decision',
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
title: 'Create a new recipient',
|
|
19
|
+
description: 'You will need their bank details to hand',
|
|
20
|
+
icon: {
|
|
21
|
+
name: 'plus'
|
|
22
|
+
},
|
|
23
|
+
action: {
|
|
24
|
+
title: '',
|
|
25
|
+
url: 'recipient'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: 'Choose an existing recipient',
|
|
30
|
+
disabled: false,
|
|
31
|
+
icon: {
|
|
32
|
+
name: 'bank'
|
|
33
|
+
},
|
|
34
|
+
action: {
|
|
35
|
+
title: '',
|
|
36
|
+
url: 'review'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: 'Show me the external step',
|
|
41
|
+
disabled: false,
|
|
42
|
+
icon: {
|
|
43
|
+
name: 'bulb'
|
|
44
|
+
},
|
|
45
|
+
action: {
|
|
46
|
+
title: '',
|
|
47
|
+
url: 'external'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
]
|
|
53
|
+
};
|
|
54
|
+
export default step;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Heading',
|
|
4
|
+
title: 'Heading Component',
|
|
5
|
+
description: 'Headings can have different sizes: "xs", "sm", "md", "lg", "xl".',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: ['xs', 'sm', 'md', 'lg', 'xl'].map(function (size) { return ({
|
|
9
|
+
type: 'heading',
|
|
10
|
+
text: "This is heading with size: \"".concat(size, "\""),
|
|
11
|
+
size: size
|
|
12
|
+
}); })
|
|
13
|
+
};
|
|
14
|
+
export default step;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Image',
|
|
4
|
+
title: 'Image Component',
|
|
5
|
+
description: 'Images can have different sizes: "xs", "sm", "md", "lg", "xl".',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: ['xs', 'sm', 'md', 'lg', 'xl'].flatMap(function (size) { return [
|
|
9
|
+
{
|
|
10
|
+
type: 'paragraph',
|
|
11
|
+
text: "This is an image with size: \"".concat(size, "\""),
|
|
12
|
+
align: 'center'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'image',
|
|
16
|
+
url: 'https://bootstrap.transferwise.com/assets/img/css2-bg.jpg',
|
|
17
|
+
text: "This is heading with size: \"".concat(size, "\""),
|
|
18
|
+
size: size
|
|
19
|
+
},
|
|
20
|
+
]; })
|
|
21
|
+
};
|
|
22
|
+
export default step;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Info',
|
|
4
|
+
title: 'Info Component',
|
|
5
|
+
description: 'A block of markdown content.',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'info',
|
|
11
|
+
markdown: "## The Advantages of Using Bananas for Data Backup\n\nIf you're looking for a fruit-based solution to your data backup needs, bananas might just be the perfect choice. Here are some reasons why:\n\n### Portability\n\nBananas are portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go.\n\n### Unique Banana Code\n\nWho needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data.\n\n### Environmentally-Friendly\n\nBut the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the [bananas](https://en.wikipedia.org/wiki/Banana) in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?\n\n",
|
|
12
|
+
align: 'left'
|
|
13
|
+
},
|
|
14
|
+
{ type: 'alert', markdown: 'Links always open in a new tab.', context: 'neutral' },
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
export default step;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/List',
|
|
4
|
+
title: 'List Component',
|
|
5
|
+
description: 'A list of items with optional states, subtitles, and images.',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'list',
|
|
11
|
+
items: [
|
|
12
|
+
{
|
|
13
|
+
title: 'Step 1',
|
|
14
|
+
description: 'Get a chip.',
|
|
15
|
+
icon: { name: 'chip' },
|
|
16
|
+
status: 'positive'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
title: 'Step 2',
|
|
20
|
+
description: 'Get a car.',
|
|
21
|
+
icon: { name: 'car' },
|
|
22
|
+
status: 'neutral'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: 'Step 3',
|
|
26
|
+
description: 'Get a building.',
|
|
27
|
+
icon: { name: 'building' },
|
|
28
|
+
status: 'warning'
|
|
29
|
+
},
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
export default step;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Loading Indicator',
|
|
4
|
+
title: 'Loading Indicator Component',
|
|
5
|
+
description: 'A loading indicator to be displayed within a layout.',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'loading-indicator',
|
|
11
|
+
size: 'lg',
|
|
12
|
+
margin: 'md'
|
|
13
|
+
},
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
export default step;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Paragraph',
|
|
4
|
+
title: 'Paragraph Component',
|
|
5
|
+
description: "A block of plain text.",
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'paragraph',
|
|
11
|
+
text: "Well, if you're really bent on using fruit for data backup, bananas might just be the perfect choice. For starters, they're portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go."
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'paragraph',
|
|
15
|
+
text: "And who needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
type: 'paragraph',
|
|
19
|
+
text: "But the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the bananas in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'alert',
|
|
23
|
+
markdown: 'Paragraph is a block of plain text content. If you need richer formatting and layout options, consider using Info Layout.',
|
|
24
|
+
context: 'neutral'
|
|
25
|
+
},
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
export default step;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'Components/Review',
|
|
4
|
+
title: 'Review Component',
|
|
5
|
+
description: "Show a list of read-only fields.",
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'box',
|
|
11
|
+
border: true,
|
|
12
|
+
components: [
|
|
13
|
+
{
|
|
14
|
+
type: 'review',
|
|
15
|
+
title: 'Please check your details (vertical orientation)',
|
|
16
|
+
orientation: 'vertical',
|
|
17
|
+
fields: [
|
|
18
|
+
{ label: 'name', value: 'Bob Loblaw' },
|
|
19
|
+
{ label: 'email', value: 'bob.loblaw@law.blog' },
|
|
20
|
+
{ label: 'address', value: '123 Fake St, New York, NY 10001' },
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: 'box',
|
|
27
|
+
border: true,
|
|
28
|
+
components: [
|
|
29
|
+
{
|
|
30
|
+
type: 'review',
|
|
31
|
+
title: 'Please check your details (horizontal orientation)',
|
|
32
|
+
orientation: 'horizontal',
|
|
33
|
+
fields: [
|
|
34
|
+
{ label: 'name', value: 'Bob Loblaw' },
|
|
35
|
+
{ label: 'email', value: 'bob.loblaw@law.blog' },
|
|
36
|
+
{ label: 'address', value: '123 Fake St, New York, NY 10001' },
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: 'box',
|
|
43
|
+
border: true,
|
|
44
|
+
components: [
|
|
45
|
+
{
|
|
46
|
+
type: 'review',
|
|
47
|
+
title: 'The action property is only supported on web',
|
|
48
|
+
orientation: 'horizontal',
|
|
49
|
+
action: { title: 'Edit', url: '/edit' },
|
|
50
|
+
fields: [
|
|
51
|
+
{ label: 'name', value: 'Bob Loblaw' },
|
|
52
|
+
{ label: 'email', value: 'bob.loblaw@law.blog' },
|
|
53
|
+
{ label: 'address', value: '123 Fake St, New York, NY 10001' },
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
]
|
|
59
|
+
};
|
|
60
|
+
export default step;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Examples/Camera Capture',
|
|
3
|
+
title: 'Camera Capture Example',
|
|
4
|
+
type: 'form',
|
|
5
|
+
schemas: [
|
|
6
|
+
{
|
|
7
|
+
properties: {
|
|
8
|
+
frontSideFile: {
|
|
9
|
+
refreshFormOnChange: false,
|
|
10
|
+
format: 'base64url',
|
|
11
|
+
$id: 'frontSideFile',
|
|
12
|
+
title: 'Passport photo page',
|
|
13
|
+
hidden: false,
|
|
14
|
+
cameraConfig: {
|
|
15
|
+
assets: {
|
|
16
|
+
overlay: 'https://wise.com/public-resources/assets/camera-guidelines/v2/overlay_passport.png',
|
|
17
|
+
outline: 'https://wise.com/public-resources/assets/camera-guidelines/v2/outline_passport.png'
|
|
18
|
+
},
|
|
19
|
+
direction: 'back'
|
|
20
|
+
},
|
|
21
|
+
source: 'camera',
|
|
22
|
+
type: 'string'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
required: ['frontSideFile'],
|
|
26
|
+
displayOrder: ['frontSideFile'],
|
|
27
|
+
$id: 'ee2501a9-2566-459b-a42e-f9f0932be0e6',
|
|
28
|
+
type: 'object'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
properties: {
|
|
32
|
+
type: {
|
|
33
|
+
refreshFormOnChange: false,
|
|
34
|
+
$id: '9200f887-bfdd-46ad-8386-e76f455a7cc8',
|
|
35
|
+
"const": 'ID_DOCUMENT_WITH_LIVENESS',
|
|
36
|
+
hidden: true,
|
|
37
|
+
type: 'string'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
required: ['type'],
|
|
41
|
+
displayOrder: ['type'],
|
|
42
|
+
$id: 'c59a2881-a2e0-4108-b42e-0d30fc95bd7f',
|
|
43
|
+
type: 'object'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
properties: {
|
|
47
|
+
profileId: {
|
|
48
|
+
refreshFormOnChange: false,
|
|
49
|
+
$id: '75d888dc-208a-4d7d-a2a7-aeca0dd1b533',
|
|
50
|
+
"const": 14551053,
|
|
51
|
+
hidden: true,
|
|
52
|
+
type: 'integer'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
required: ['profileId'],
|
|
56
|
+
displayOrder: ['profileId'],
|
|
57
|
+
$id: '3eec6add-2d0e-41d7-8317-49542c841484',
|
|
58
|
+
type: 'object'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
properties: {
|
|
62
|
+
sessionId: {
|
|
63
|
+
refreshFormOnChange: false,
|
|
64
|
+
$id: 'df82adf3-8a66-46b5-bef8-72f59be2188d',
|
|
65
|
+
"const": '62dfe7d026c6da1ac0db1ee4',
|
|
66
|
+
hidden: true,
|
|
67
|
+
type: 'string'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
required: ['sessionId'],
|
|
71
|
+
displayOrder: ['sessionId'],
|
|
72
|
+
$id: 'e1a8fb67-9af2-47e8-97c1-f2a88e5d5f3a',
|
|
73
|
+
type: 'object'
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
actions: [
|
|
77
|
+
{
|
|
78
|
+
url: '/v3/kyc-checks/87785/flow?actionId=SINGLE_PAGE_REVIEW&sessionId=62dfe7d026c6da1ac0db1ee4&',
|
|
79
|
+
type: 'primary',
|
|
80
|
+
method: 'POST',
|
|
81
|
+
disabled: false,
|
|
82
|
+
$id: '6789eac5-7bbe-49d8-9da8-6edb8e7ef165',
|
|
83
|
+
title: ''
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
layout: [
|
|
87
|
+
{
|
|
88
|
+
type: 'form',
|
|
89
|
+
schema: {
|
|
90
|
+
$ref: 'ee2501a9-2566-459b-a42e-f9f0932be0e6'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
components: [
|
|
95
|
+
{
|
|
96
|
+
action: {
|
|
97
|
+
$ref: '6789eac5-7bbe-49d8-9da8-6edb8e7ef165'
|
|
98
|
+
},
|
|
99
|
+
margin: 'lg',
|
|
100
|
+
size: 'md',
|
|
101
|
+
type: 'button'
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
border: false,
|
|
105
|
+
width: 'xl',
|
|
106
|
+
type: 'box'
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
model: {
|
|
110
|
+
profileId: 14551053,
|
|
111
|
+
sessionId: '62dfe7d026c6da1ac0db1ee4',
|
|
112
|
+
issuingCountry: 'HU',
|
|
113
|
+
documentType: 'PASSPORT',
|
|
114
|
+
type: 'ID_DOCUMENT_WITH_LIVENESS',
|
|
115
|
+
key: {
|
|
116
|
+
value: 'ID_DOCUMENT_WITH_LIVENESS14551053'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
refreshFormUrl: '/'
|
|
120
|
+
};
|
|
121
|
+
export default step;
|