@wise/dynamic-flow-client 0.4.2 → 0.4.4
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/main.js +9606 -0
- package/build/main.min.js +31 -0
- package/build/types/index.d.ts +11 -15
- package/build/types/types/index.d.ts +15 -0
- package/package.json +7 -6
- package/build/common/constants/DateMode.js +0 -7
- package/build/common/constants/FormControlType.js +0 -20
- package/build/common/constants/MonthFormat.js +0 -7
- package/build/common/constants/SchemaType.js +0 -14
- package/build/common/constants/Size.js +0 -10
- package/build/common/constants/index.js +0 -21
- package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +0 -29
- package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +0 -19
- package/build/common/contexts/eventsContext/EventsContext.js +0 -22
- package/build/common/contexts/fetcherContexts/FetcherContexts.js +0 -29
- package/build/common/contexts/index.js +0 -20
- package/build/common/contexts/logContext/LogContext.js +0 -27
- package/build/common/hooks/index.js +0 -23
- package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +0 -13
- package/build/common/hooks/useExternal/useExternal.js +0 -19
- package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +0 -62
- package/build/common/hooks/usePersistAsync/usePersistAsync.js +0 -98
- package/build/common/hooks/usePolling/usePolling.js +0 -52
- package/build/common/hooks/usePrevious/usePrevious.js +0 -12
- package/build/common/hooks/useStepPolling/useStepPolling.js +0 -49
- package/build/common/makeFetcher/index.js +0 -17
- package/build/common/makeFetcher/makeFetcher.js +0 -23
- package/build/common/messages.js +0 -10
- package/build/common/utils/api-utils.js +0 -19
- package/build/common/utils/date-utils.js +0 -27
- package/build/common/utils/debounce.js +0 -38
- package/build/common/utils/file-utils.js +0 -38
- package/build/common/utils/id-utils.js +0 -8
- package/build/common/utils/index.js +0 -24
- package/build/common/utils/is-equal.js +0 -25
- package/build/common/utils/schema-utils.js +0 -55
- package/build/common/utils/step-utils.js +0 -47
- package/build/common/validators/index.js +0 -28
- package/build/common/validators/models/model-validators.js +0 -69
- package/build/common/validators/models/models.utils.js +0 -117
- package/build/common/validators/schemas/schema-validators.js +0 -99
- package/build/common/validators/types/type-validators.js +0 -21
- package/build/common/validators/validationFailures/validation-failures.js +0 -151
- package/build/common/validators/validationFailures/validation-failures.utils.js +0 -49
- package/build/common/validators/values/value-validators.js +0 -7
- package/build/dynamicFlow/DynamicFlow.js +0 -250
- package/build/dynamicFlow/DynamicFlowStep.js +0 -25
- package/build/dynamicFlow/DynamicFlowTypes.js +0 -8
- package/build/dynamicFlow/index.js +0 -8
- package/build/dynamicFlow/stories/DynamicFlow.story.js +0 -36
- package/build/dynamicFlow/stories/EditableDynamicFlow.js +0 -54
- package/build/dynamicFlow/stories/fixtureFetcher.js +0 -60
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +0 -29
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +0 -15
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +0 -18
- package/build/dynamicFlow/utils/index.js +0 -26
- package/build/dynamicFlow/utils/responseParsers/response-parsers.js +0 -66
- package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +0 -27
- package/build/dynamicFlow/utils/useDynamicFlowState.js +0 -91
- package/build/dynamicFlow/utils/useLoader.js +0 -15
- package/build/fixtures/components/alert.js +0 -33
- package/build/fixtures/components/box.js +0 -22
- package/build/fixtures/components/button.js +0 -56
- package/build/fixtures/components/columns.js +0 -38
- package/build/fixtures/components/copyable.js +0 -24
- package/build/fixtures/components/decision.js +0 -56
- package/build/fixtures/components/heading.js +0 -16
- package/build/fixtures/components/image.js +0 -25
- package/build/fixtures/components/index.js +0 -32
- package/build/fixtures/components/info.js +0 -35
- package/build/fixtures/components/list.js +0 -36
- package/build/fixtures/components/loading-indicator.js +0 -18
- package/build/fixtures/components/paragraph.js +0 -30
- package/build/fixtures/components/review.js +0 -62
- package/build/fixtures/examples/camera-capture.js +0 -123
- package/build/fixtures/examples/index.js +0 -16
- package/build/fixtures/examples/recipient-update.js +0 -252
- package/build/fixtures/examples/recipient.js +0 -315
- package/build/fixtures/examples/single-file-upload.js +0 -100
- package/build/fixtures/examples/step-validation-errors.js +0 -77
- package/build/fixtures/features/action-response.js +0 -31
- package/build/fixtures/features/external.js +0 -33
- package/build/fixtures/features/index.js +0 -16
- package/build/fixtures/features/persist-async.js +0 -46
- package/build/fixtures/features/polling.js +0 -35
- package/build/fixtures/features/validation-async.js +0 -40
- package/build/fixtures/index.js +0 -38
- package/build/fixtures/jsonSchemaForm/allOf.js +0 -121
- package/build/fixtures/jsonSchemaForm/audRecipient.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/audRecipient.js +0 -1106
- package/build/fixtures/jsonSchemaForm/currency.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/currency.js +0 -50
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +0 -39
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +0 -38
- package/build/fixtures/jsonSchemaForm/oneOf.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/oneOf.js +0 -121
- package/build/fixtures/jsonSchemaForm/oneOfTabs.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/oneOfTabs.js +0 -55
- package/build/fixtures/jsonSchemaForm/promotedOneOf.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/promotedOneOf.js +0 -58
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +0 -104
- package/build/fixtures/jsonSchemaForm/simple.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/simple.js +0 -50
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +0 -73
- package/build/fixtures/jsonSchemaForm/validationAsync.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/validationAsync.js +0 -25
- package/build/fixtures/layouts/all.js +0 -178
- package/build/fixtures/layouts/final-step-layout.js +0 -41
- package/build/fixtures/layouts/index.js +0 -18
- package/build/fixtures/layouts/list.js +0 -35
- package/build/fixtures/layouts/pay-in.js +0 -99
- package/build/fixtures/layouts/review.js +0 -162
- package/build/fixtures/layouts/success.js +0 -68
- package/build/fixtures/responses/action-response-final.js +0 -26
- package/build/fixtures/responses/action.js +0 -4
- package/build/fixtures/responses/exit.js +0 -4
- package/build/fixtures/responses/index.js +0 -14
- package/build/fixtures/responses/recipient-update-final.js +0 -26
- package/build/fixtures/schemas/basic-form.js +0 -41
- package/build/fixtures/schemas/index.js +0 -14
- package/build/fixtures/schemas/number-and-integer.js +0 -43
- package/build/fixtures/schemas/one-of.js +0 -222
- package/build/fixtures/schemas/string-formats.js +0 -64
- package/build/fixtures/utils/image-util.js +0 -22
- package/build/formControl/FormControl.js +0 -213
- package/build/formControl/index.js +0 -8
- package/build/formControl/utils/index.js +0 -17
- package/build/formControl/utils/value-utils.js +0 -111
- package/build/i18n/index.js +0 -36
- package/build/index.d.ts +0 -11
- package/build/index.js +0 -38
- package/build/jsonSchemaForm/JsonSchemaForm.js +0 -22
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +0 -46
- package/build/jsonSchemaForm/allOfSchema/index.js +0 -8
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +0 -19
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +0 -20
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +0 -8
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +0 -86
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +0 -20
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +0 -8
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +0 -18
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +0 -38
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +0 -20
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +0 -8
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +0 -91
- package/build/jsonSchemaForm/basicTypeSchema/index.js +0 -8
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +0 -73
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +0 -55
- package/build/jsonSchemaForm/controlFeedback/index.js +0 -8
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +0 -118
- package/build/jsonSchemaForm/genericSchema/index.js +0 -8
- package/build/jsonSchemaForm/help/Help.js +0 -14
- package/build/jsonSchemaForm/help/Help.messages.js +0 -10
- package/build/jsonSchemaForm/help/index.js +0 -8
- package/build/jsonSchemaForm/index.js +0 -8
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +0 -62
- package/build/jsonSchemaForm/objectSchema/index.js +0 -8
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +0 -135
- package/build/jsonSchemaForm/oneOfSchema/index.js +0 -8
- package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +0 -13
- package/build/jsonSchemaForm/oneOfSchema/utils/index.js +0 -18
- package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +0 -69
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +0 -20
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +0 -10
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +0 -8
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +0 -119
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +0 -8
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +0 -66
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +0 -36
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +0 -58
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +0 -12
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +0 -18
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +0 -25
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +0 -23
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +0 -58
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +0 -15
- package/build/jsonSchemaForm/readOnlySchema/index.js +0 -8
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +0 -98
- package/build/jsonSchemaForm/schemaFormControl/index.js +0 -8
- package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +0 -77
- package/build/jsonSchemaForm/schemaFormControl/utils/index.js +0 -17
- package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +0 -110
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +0 -89
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +0 -8
- package/build/layout/DynamicLayout.js +0 -52
- package/build/layout/alert/DynamicAlert.js +0 -31
- package/build/layout/box/DynamicBox.js +0 -32
- package/build/layout/button/DynamicButton.js +0 -49
- package/build/layout/columns/DynamicColumns.js +0 -29
- package/build/layout/decision/DynamicDecision.js +0 -29
- package/build/layout/divider/DynamicDivider.js +0 -10
- package/build/layout/external/DynamicExternal.js +0 -25
- package/build/layout/external/DynamicExternal.messages.js +0 -10
- package/build/layout/form/DynamicForm.js +0 -16
- package/build/layout/heading/DynamicHeading.js +0 -22
- package/build/layout/icon/DynamicIcon.js +0 -49
- package/build/layout/image/DynamicImage.js +0 -62
- package/build/layout/index.js +0 -40
- package/build/layout/info/DynamicInfo.js +0 -9
- package/build/layout/list/DynamicList.js +0 -21
- package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +0 -12
- package/build/layout/paragraph/DynamicParagraph.js +0 -30
- package/build/layout/paragraph/DynamicParagraph.messages.js +0 -15
- package/build/layout/paragraph/useSnackBarIfAvailable.js +0 -13
- package/build/layout/review/DynamicReview.js +0 -23
- package/build/layout/utils.js +0 -33
- package/build/step/cameraStep/CameraStep.js +0 -84
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +0 -70
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +0 -20
- package/build/step/cameraStep/cameraCapture/components/index.js +0 -18
- package/build/step/cameraStep/cameraCapture/hooks/index.js +0 -29
- package/build/step/cameraStep/cameraCapture/index.js +0 -8
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +0 -68
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +0 -13
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +0 -15
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +0 -14
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +0 -20
- package/build/step/cameraStep/cameraCapture/screens/index.js +0 -10
- package/build/step/cameraStep/cameraCapture/tracking/index.js +0 -22
- package/build/step/cameraStep/cameraCapture/utils/index.js +0 -51
- package/build/step/cameraStep/index.js +0 -8
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +0 -68
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +0 -25
- package/build/step/externalConfirmationStep/index.js +0 -8
- package/build/step/index.js +0 -12
- package/build/step/layoutStep/LayoutStep.js +0 -35
- package/build/step/layoutStep/index.js +0 -8
- package/build/step/layoutStep/utils/index.js +0 -7
- package/build/step/layoutStep/utils/inline-reference-utils.js +0 -78
- package/build/step/layoutStep/utils/layout-utils.js +0 -203
- package/build/types/common/FormControl.js +0 -2
- package/build/types/index.js +0 -42
- package/build/types/specification/Action.js +0 -2
- package/build/types/specification/FileUploadSchema.js +0 -8
- package/build/types/specification/LayoutComponent.js +0 -2
- package/build/types/specification/Model.js +0 -30
- package/build/types/specification/PersistAsync.js +0 -2
- package/build/types/specification/Polling.js +0 -2
- package/build/types/specification/Promotion.js +0 -2
- package/build/types/specification/Schema.js +0 -67
- package/build/types/specification/Step.js +0 -6
- package/build/types/specification/ValidationAsync.js +0 -2
- package/build/types/specification/core.js +0 -2
- /package/build/{common → types/common}/constants/DateMode.d.ts +0 -0
- /package/build/{common → types/common}/constants/FormControlType.d.ts +0 -0
- /package/build/{common → types/common}/constants/MonthFormat.d.ts +0 -0
- /package/build/{common → types/common}/constants/SchemaType.d.ts +0 -0
- /package/build/{common → types/common}/constants/Size.d.ts +0 -0
- /package/build/{common → types/common}/constants/index.d.ts +0 -0
- /package/build/{common → types/common}/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -0
- /package/build/{common → types/common}/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +0 -0
- /package/build/{common → types/common}/contexts/eventsContext/EventsContext.d.ts +0 -0
- /package/build/{common → types/common}/contexts/fetcherContexts/FetcherContexts.d.ts +0 -0
- /package/build/{common → types/common}/contexts/index.d.ts +0 -0
- /package/build/{common → types/common}/contexts/logContext/LogContext.d.ts +0 -0
- /package/build/{common → types/common}/hooks/index.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useExternal/useExternal.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +0 -0
- /package/build/{common → types/common}/hooks/usePersistAsync/usePersistAsync.d.ts +0 -0
- /package/build/{common → types/common}/hooks/usePolling/usePolling.d.ts +0 -0
- /package/build/{common → types/common}/hooks/usePrevious/usePrevious.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useStepPolling/useStepPolling.d.ts +0 -0
- /package/build/{common → types/common}/makeFetcher/index.d.ts +0 -0
- /package/build/{common → types/common}/makeFetcher/makeFetcher.d.ts +0 -0
- /package/build/{common → types/common}/messages.d.ts +0 -0
- /package/build/{common → types/common}/utils/api-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/date-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/debounce.d.ts +0 -0
- /package/build/{common → types/common}/utils/file-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/id-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/index.d.ts +0 -0
- /package/build/{common → types/common}/utils/is-equal.d.ts +0 -0
- /package/build/{common → types/common}/utils/schema-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/step-utils.d.ts +0 -0
- /package/build/{common → types/common}/validators/index.d.ts +0 -0
- /package/build/{common → types/common}/validators/models/model-validators.d.ts +0 -0
- /package/build/{common → types/common}/validators/models/models.utils.d.ts +0 -0
- /package/build/{common → types/common}/validators/schemas/schema-validators.d.ts +0 -0
- /package/build/{common → types/common}/validators/types/type-validators.d.ts +0 -0
- /package/build/{common → types/common}/validators/validationFailures/validation-failures.d.ts +0 -0
- /package/build/{common → types/common}/validators/validationFailures/validation-failures.utils.d.ts +0 -0
- /package/build/{common → types/common}/validators/values/value-validators.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlow.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowStep.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowTypes.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/index.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/stories/DynamicFlow.story.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/stories/EditableDynamicFlow.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/stories/fixtureFetcher.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.messages.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundaryAlert.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/index.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/responseParsers/response-parsers.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDynamicFlowState.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/useLoader.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/alert.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/box.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/button.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/columns.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/copyable.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/decision.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/heading.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/image.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/info.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/list.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/loading-indicator.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/paragraph.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/review.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/camera-capture.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/recipient-update.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/recipient.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/single-file-upload.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/step-validation-errors.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/action-response.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/external.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/persist-async.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/polling.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/validation-async.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/jsonSchemaForm/allOf.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/all.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/final-step-layout.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/list.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/pay-in.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/review.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/success.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/action-response-final.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/action.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/exit.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/recipient-update-final.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/basic-form.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/number-and-integer.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/one-of.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/string-formats.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/utils/image-util.d.ts +0 -0
- /package/build/{formControl → types/formControl}/FormControl.d.ts +0 -0
- /package/build/{formControl → types/formControl}/index.d.ts +0 -0
- /package/build/{formControl → types/formControl}/utils/index.d.ts +0 -0
- /package/build/{formControl → types/formControl}/utils/value-utils.d.ts +0 -0
- /package/build/{i18n → types/i18n}/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/JsonSchemaForm.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/AllOfSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/ArraySchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/BasicTypeSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/GenericSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/ObjectSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/OneOfSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/const-schema-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/one-of-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promoted-one-of-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/SchemaFormControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/currency-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/mapping-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/index.d.ts +0 -0
- /package/build/{layout → types/layout}/DynamicLayout.d.ts +0 -0
- /package/build/{layout → types/layout}/alert/DynamicAlert.d.ts +0 -0
- /package/build/{layout → types/layout}/box/DynamicBox.d.ts +0 -0
- /package/build/{layout → types/layout}/button/DynamicButton.d.ts +0 -0
- /package/build/{layout → types/layout}/columns/DynamicColumns.d.ts +0 -0
- /package/build/{layout → types/layout}/decision/DynamicDecision.d.ts +0 -0
- /package/build/{layout → types/layout}/divider/DynamicDivider.d.ts +0 -0
- /package/build/{layout → types/layout}/external/DynamicExternal.d.ts +0 -0
- /package/build/{layout → types/layout}/external/DynamicExternal.messages.d.ts +0 -0
- /package/build/{layout → types/layout}/form/DynamicForm.d.ts +0 -0
- /package/build/{layout → types/layout}/heading/DynamicHeading.d.ts +0 -0
- /package/build/{layout → types/layout}/icon/DynamicIcon.d.ts +0 -0
- /package/build/{layout → types/layout}/image/DynamicImage.d.ts +0 -0
- /package/build/{layout → types/layout}/index.d.ts +0 -0
- /package/build/{layout → types/layout}/info/DynamicInfo.d.ts +0 -0
- /package/build/{layout → types/layout}/list/DynamicList.d.ts +0 -0
- /package/build/{layout → types/layout}/loadingIndicator/DynamicLoadingIndicator.d.ts +0 -0
- /package/build/{layout → types/layout}/paragraph/DynamicParagraph.d.ts +0 -0
- /package/build/{layout → types/layout}/paragraph/DynamicParagraph.messages.d.ts +0 -0
- /package/build/{layout → types/layout}/paragraph/useSnackBarIfAvailable.d.ts +0 -0
- /package/build/{layout → types/layout}/review/DynamicReview.d.ts +0 -0
- /package/build/{layout → types/layout}/utils.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/CameraStep.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/components/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/hooks/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/overlay/Overlay.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/tracking/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/utils/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/index.d.ts +0 -0
- /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -0
- /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -0
- /package/build/{step → types/step}/externalConfirmationStep/index.d.ts +0 -0
- /package/build/{step → types/step}/index.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/LayoutStep.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/index.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/utils/index.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/utils/inline-reference-utils.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/utils/layout-utils.d.ts +0 -0
- /package/build/types/{common → types/common}/FormControl.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Action.d.ts +0 -0
- /package/build/types/{specification → types/specification}/FileUploadSchema.d.ts +0 -0
- /package/build/types/{specification → types/specification}/LayoutComponent.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Model.d.ts +0 -0
- /package/build/types/{specification → types/specification}/PersistAsync.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Polling.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Promotion.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Schema.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Step.d.ts +0 -0
- /package/build/types/{specification → types/specification}/ValidationAsync.d.ts +0 -0
- /package/build/types/{specification → types/specification}/core.d.ts +0 -0
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
key: 'Examples/Recipient Creation',
|
|
5
|
-
type: 'form',
|
|
6
|
-
title: 'Recipient Creation Example',
|
|
7
|
-
description: 'A form step with the typical recipient creation form.',
|
|
8
|
-
actions: [],
|
|
9
|
-
schemas: [
|
|
10
|
-
{
|
|
11
|
-
$id: '#new-recipient',
|
|
12
|
-
allOf: [
|
|
13
|
-
{
|
|
14
|
-
type: 'object',
|
|
15
|
-
displayOrder: ['profileId', 'currency', 'legalEntityType', 'email'],
|
|
16
|
-
properties: {
|
|
17
|
-
profileId: {
|
|
18
|
-
type: 'number',
|
|
19
|
-
hidden: true,
|
|
20
|
-
const: 123456789,
|
|
21
|
-
},
|
|
22
|
-
currency: {
|
|
23
|
-
title: 'Currency',
|
|
24
|
-
type: 'string',
|
|
25
|
-
analyticsId: 'currency',
|
|
26
|
-
oneOf: [
|
|
27
|
-
{
|
|
28
|
-
title: 'EUR',
|
|
29
|
-
analyticsId: 'currency-eur',
|
|
30
|
-
icon: {
|
|
31
|
-
name: 'flag-eur',
|
|
32
|
-
},
|
|
33
|
-
description: 'Euro',
|
|
34
|
-
const: 'EUR',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
title: 'GBP',
|
|
38
|
-
analyticsId: 'currency-gbp',
|
|
39
|
-
icon: {
|
|
40
|
-
name: 'flag-gbp',
|
|
41
|
-
},
|
|
42
|
-
description: 'British pound',
|
|
43
|
-
const: 'GBP',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
title: 'INR',
|
|
47
|
-
analyticsId: 'currency-inr',
|
|
48
|
-
icon: {
|
|
49
|
-
name: 'flag-inr',
|
|
50
|
-
},
|
|
51
|
-
description: 'Indian rupee',
|
|
52
|
-
const: 'INR',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
title: 'USD',
|
|
56
|
-
analyticsId: 'currency-usd',
|
|
57
|
-
icon: {
|
|
58
|
-
name: 'flag-usd',
|
|
59
|
-
},
|
|
60
|
-
description: 'United States dollar',
|
|
61
|
-
const: 'USD',
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
validationMessages: {
|
|
65
|
-
required: 'Please enter currency.',
|
|
66
|
-
},
|
|
67
|
-
default: 'EUR',
|
|
68
|
-
refreshFormOnChange: true,
|
|
69
|
-
},
|
|
70
|
-
legalEntityType: {
|
|
71
|
-
title: 'Select recipient type',
|
|
72
|
-
type: 'string',
|
|
73
|
-
analyticsId: 'legalEntityType',
|
|
74
|
-
oneOf: [
|
|
75
|
-
{
|
|
76
|
-
title: 'Person',
|
|
77
|
-
analyticsId: 'legalEntityType-person',
|
|
78
|
-
const: 'PERSON',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
title: 'Business',
|
|
82
|
-
analyticsId: 'legalEntityType-business',
|
|
83
|
-
const: 'INSTITUTION',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
validationMessages: {
|
|
87
|
-
required: 'Please specify the type of recipient.',
|
|
88
|
-
},
|
|
89
|
-
refreshFormOnChange: true,
|
|
90
|
-
},
|
|
91
|
-
email: {
|
|
92
|
-
title: 'Their email',
|
|
93
|
-
type: 'string',
|
|
94
|
-
analyticsId: 'email',
|
|
95
|
-
placeholder: 'example@example.ex',
|
|
96
|
-
validationMessages: {
|
|
97
|
-
maxLength: 'The email you have entered is too long.',
|
|
98
|
-
pattern: 'The email address is invalid.',
|
|
99
|
-
},
|
|
100
|
-
refreshFormOnChange: true,
|
|
101
|
-
autofillProvider: 'contact',
|
|
102
|
-
autofillKey: 'contact.email',
|
|
103
|
-
refreshFormUrl: '/steps/recipient',
|
|
104
|
-
pattern: "\\s*[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\s*",
|
|
105
|
-
maxLength: 255,
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
required: ['currency', 'legalEntityType'],
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
title: 'Bank details',
|
|
112
|
-
analyticsId: 'bank-details',
|
|
113
|
-
oneOf: [
|
|
114
|
-
{
|
|
115
|
-
title: 'Inside Europe',
|
|
116
|
-
analyticsId: 'bank-details-europe',
|
|
117
|
-
type: 'object',
|
|
118
|
-
displayOrder: ['name', 'ownedByCustomer', 'details', 'type'],
|
|
119
|
-
properties: {
|
|
120
|
-
name: {
|
|
121
|
-
type: 'object',
|
|
122
|
-
displayOrder: ['fullName'],
|
|
123
|
-
properties: {
|
|
124
|
-
fullName: {
|
|
125
|
-
title: 'Full name of the account holder',
|
|
126
|
-
type: 'string',
|
|
127
|
-
validationMessages: {
|
|
128
|
-
minLength: 'Name needs to be between 2 and 140 characters long.',
|
|
129
|
-
maxLength: 'Recipient name cannot be longer than 140 characters.',
|
|
130
|
-
pattern: 'This recipient name contains invalid characters. Please use latin characters only.',
|
|
131
|
-
required: 'Name cannot be empty.',
|
|
132
|
-
},
|
|
133
|
-
autofillProvider: 'contact',
|
|
134
|
-
autofillKey: 'contact.fullName',
|
|
135
|
-
pattern: '^[0-9A-Za-zÀ-ÖØ-öø-ÿ-_()\'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$',
|
|
136
|
-
minLength: 2,
|
|
137
|
-
maxLength: 140,
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
required: ['fullName'],
|
|
141
|
-
},
|
|
142
|
-
ownedByCustomer: {
|
|
143
|
-
title: 'My own Account',
|
|
144
|
-
type: 'boolean',
|
|
145
|
-
hidden: true,
|
|
146
|
-
const: false,
|
|
147
|
-
},
|
|
148
|
-
details: {
|
|
149
|
-
type: 'object',
|
|
150
|
-
displayOrder: ['bic', 'iban'],
|
|
151
|
-
properties: {
|
|
152
|
-
bic: {
|
|
153
|
-
title: 'Bank code (BIC/SWIFT)',
|
|
154
|
-
type: 'string',
|
|
155
|
-
placeholder: 'BARCGB22XXX',
|
|
156
|
-
hidden: true,
|
|
157
|
-
validationMessages: {
|
|
158
|
-
minLength: 'The BIC you have entered is too short.',
|
|
159
|
-
maxLength: 'The BIC you have entered is too long.',
|
|
160
|
-
pattern: 'Please specify a valid BIC.',
|
|
161
|
-
},
|
|
162
|
-
pattern: '^[A-Za-z]{6}[A-Za-z\\d]{2}([A-Za-z\\d]{3})?$',
|
|
163
|
-
minLength: 8,
|
|
164
|
-
maxLength: 11,
|
|
165
|
-
},
|
|
166
|
-
iban: {
|
|
167
|
-
title: 'IBAN',
|
|
168
|
-
type: 'string',
|
|
169
|
-
placeholder: 'DE12345678901234567890',
|
|
170
|
-
displayFormat: '**** **** **** **** **** **** **** ****',
|
|
171
|
-
help: {
|
|
172
|
-
markdown: 'IBANs are long account numbers used by banks for cross-border transfers. Each country structures this number differently, but it always starts with a 2 digit country code (e.g. DE for Germany).',
|
|
173
|
-
},
|
|
174
|
-
validationMessages: {
|
|
175
|
-
minLength: 'The IBAN you have entered is too short.',
|
|
176
|
-
maxLength: 'The IBAN you have entered is too long.',
|
|
177
|
-
pattern: 'Please specify a valid IBAN.',
|
|
178
|
-
required: 'Please specify an IBAN.',
|
|
179
|
-
},
|
|
180
|
-
refreshFormOnChange: true,
|
|
181
|
-
pattern: '^[a-zA-Z]{2}[a-zA-Z0-9 ]{12,40}$',
|
|
182
|
-
minLength: 14,
|
|
183
|
-
maxLength: 42,
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
required: ['iban'],
|
|
187
|
-
},
|
|
188
|
-
type: {
|
|
189
|
-
title: 'Type',
|
|
190
|
-
type: 'string',
|
|
191
|
-
hidden: true,
|
|
192
|
-
const: 'Iban',
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
required: ['type', 'name', 'details'],
|
|
196
|
-
icon: {
|
|
197
|
-
name: 'bank',
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
title: 'Outside Europe',
|
|
202
|
-
analyticsId: 'bank-details-outside-europe',
|
|
203
|
-
type: 'object',
|
|
204
|
-
displayOrder: ['name', 'ownedByCustomer', 'details', 'type'],
|
|
205
|
-
properties: {
|
|
206
|
-
name: {
|
|
207
|
-
type: 'object',
|
|
208
|
-
displayOrder: ['fullName'],
|
|
209
|
-
properties: {
|
|
210
|
-
fullName: {
|
|
211
|
-
title: 'Full name of the account holder',
|
|
212
|
-
type: 'string',
|
|
213
|
-
validationMessages: {
|
|
214
|
-
minLength: 'Name needs to be between 2 and 140 characters long.',
|
|
215
|
-
maxLength: 'Recipient name cannot be longer than 140 characters.',
|
|
216
|
-
pattern: 'This recipient name contains invalid characters. Please use latin characters only.',
|
|
217
|
-
required: 'Name cannot be empty.',
|
|
218
|
-
},
|
|
219
|
-
autofillProvider: 'contact',
|
|
220
|
-
autofillKey: 'contact.fullName',
|
|
221
|
-
pattern: '^[0-9A-Za-zÀ-ÖØ-öø-ÿ-_()\'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$',
|
|
222
|
-
minLength: 2,
|
|
223
|
-
maxLength: 140,
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
required: ['fullName'],
|
|
227
|
-
},
|
|
228
|
-
ownedByCustomer: {
|
|
229
|
-
title: 'My own Account',
|
|
230
|
-
type: 'boolean',
|
|
231
|
-
hidden: true,
|
|
232
|
-
const: false,
|
|
233
|
-
},
|
|
234
|
-
details: {
|
|
235
|
-
type: 'object',
|
|
236
|
-
displayOrder: ['bic', 'accountNumber'],
|
|
237
|
-
properties: {
|
|
238
|
-
bic: {
|
|
239
|
-
title: 'SWIFT / BIC code',
|
|
240
|
-
type: 'string',
|
|
241
|
-
placeholder: 'BUKBGB22',
|
|
242
|
-
validationMessages: {
|
|
243
|
-
minLength: 'The BIC you have entered is too short.',
|
|
244
|
-
maxLength: 'The BIC you have entered is too long.',
|
|
245
|
-
pattern: 'Please specify a valid BIC.',
|
|
246
|
-
required: 'Please specify a BIC.',
|
|
247
|
-
},
|
|
248
|
-
pattern: '^[a-zA-Z]{6}(([a-zA-Z0-9]{2})|([a-zA-Z0-9]{5}))$',
|
|
249
|
-
minLength: 8,
|
|
250
|
-
maxLength: 11,
|
|
251
|
-
},
|
|
252
|
-
accountNumber: {
|
|
253
|
-
title: 'IBAN / Account Number',
|
|
254
|
-
type: 'string',
|
|
255
|
-
placeholder: '123456789012',
|
|
256
|
-
validationMessages: {
|
|
257
|
-
minLength: 'Account number is too short.',
|
|
258
|
-
maxLength: 'Account number is too large.',
|
|
259
|
-
pattern: 'Please enter a valid account number.',
|
|
260
|
-
required: 'Please enter an IBAN or account number.',
|
|
261
|
-
},
|
|
262
|
-
pattern: '^[a-zA-Z0-9]{4,34}$',
|
|
263
|
-
minLength: 4,
|
|
264
|
-
maxLength: 34,
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
required: ['bic', 'accountNumber'],
|
|
268
|
-
},
|
|
269
|
-
type: {
|
|
270
|
-
title: 'Type',
|
|
271
|
-
type: 'string',
|
|
272
|
-
hidden: true,
|
|
273
|
-
const: 'SwiftCode',
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
required: ['type', 'name', 'details'],
|
|
277
|
-
icon: {
|
|
278
|
-
name: 'bank',
|
|
279
|
-
},
|
|
280
|
-
alert: {
|
|
281
|
-
context: 'warning',
|
|
282
|
-
markdown: 'To send EUR to this account, we need to use the SWIFT network. It’s slower, so the transfer might take a day or two longer. Also note that intermediary banks and your recipient’s bank might charge extra fees to the amount received.',
|
|
283
|
-
},
|
|
284
|
-
},
|
|
285
|
-
],
|
|
286
|
-
control: 'tab',
|
|
287
|
-
placeholder: 'Please select where you are sending to...',
|
|
288
|
-
},
|
|
289
|
-
],
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
refreshFormUrl: '/steps/recipient',
|
|
293
|
-
layout: [
|
|
294
|
-
{
|
|
295
|
-
type: 'form',
|
|
296
|
-
schema: {
|
|
297
|
-
$ref: '#new-recipient',
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
type: 'button',
|
|
302
|
-
action: {
|
|
303
|
-
type: 'primary',
|
|
304
|
-
title: 'Confirm',
|
|
305
|
-
url: '/v2/accounts',
|
|
306
|
-
method: 'POST',
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
],
|
|
310
|
-
model: {
|
|
311
|
-
ownedByCustomer: false,
|
|
312
|
-
details: {},
|
|
313
|
-
},
|
|
314
|
-
};
|
|
315
|
-
exports.default = step;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
key: 'Examples/Single File Upload',
|
|
5
|
-
type: 'form',
|
|
6
|
-
title: 'Single File Upload Example',
|
|
7
|
-
actions: [],
|
|
8
|
-
schemas: [
|
|
9
|
-
{
|
|
10
|
-
$id: '#schema-1',
|
|
11
|
-
type: 'object',
|
|
12
|
-
displayOrder: ['frontSide'],
|
|
13
|
-
properties: {
|
|
14
|
-
frontSide: {
|
|
15
|
-
refreshFormOnChange: false,
|
|
16
|
-
$id: 'frontSide',
|
|
17
|
-
persistAsync: {
|
|
18
|
-
url: '/single-file-upload-url',
|
|
19
|
-
param: 'file',
|
|
20
|
-
idProperty: 'frontSide',
|
|
21
|
-
schema: {
|
|
22
|
-
accepts: ['image/jpeg', 'image/png'],
|
|
23
|
-
maxSize: 41943040,
|
|
24
|
-
source: 'file',
|
|
25
|
-
description: 'JPEG or PNG less than 10MB',
|
|
26
|
-
$id: 'cb22a588-c404-43fd-b3fa-754afb3729f4',
|
|
27
|
-
title: 'Upload file',
|
|
28
|
-
type: 'blob',
|
|
29
|
-
},
|
|
30
|
-
method: 'POST',
|
|
31
|
-
},
|
|
32
|
-
title: 'Single File Upload',
|
|
33
|
-
type: 'integer',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
required: ['frontSide'],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
$id: '#schema-2',
|
|
40
|
-
type: 'object',
|
|
41
|
-
displayOrder: ['frontSide'],
|
|
42
|
-
properties: {
|
|
43
|
-
frontSide: {
|
|
44
|
-
refreshFormOnChange: false,
|
|
45
|
-
$id: 'backSide',
|
|
46
|
-
persistAsync: {
|
|
47
|
-
url: '/single-file-upload-url-fail',
|
|
48
|
-
param: 'file',
|
|
49
|
-
idProperty: 'backSide',
|
|
50
|
-
schema: {
|
|
51
|
-
accepts: ['image/jpeg', 'image/png'],
|
|
52
|
-
maxSize: 41943040,
|
|
53
|
-
source: 'file',
|
|
54
|
-
description: 'JPEG or PNG less than 10MB',
|
|
55
|
-
$id: 'cb22a588-c404-43fd-b3fa-754afb3729f4',
|
|
56
|
-
title: 'Upload file',
|
|
57
|
-
type: 'blob',
|
|
58
|
-
},
|
|
59
|
-
method: 'POST',
|
|
60
|
-
},
|
|
61
|
-
title: 'Single File Upload',
|
|
62
|
-
type: 'integer',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
required: ['backSide'],
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
layout: [
|
|
69
|
-
{
|
|
70
|
-
type: 'paragraph',
|
|
71
|
-
text: 'The upload component below uses /single-file-upload-url',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
type: 'form',
|
|
75
|
-
schema: { $ref: '#schema-1' },
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
type: 'paragraph',
|
|
79
|
-
text: 'The upload component below uses /single-file-upload-url-fail',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: 'form',
|
|
83
|
-
schema: { $ref: '#schema-2' },
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
type: 'button',
|
|
87
|
-
action: {
|
|
88
|
-
url: '/submit-uploads',
|
|
89
|
-
type: 'primary',
|
|
90
|
-
method: 'POST',
|
|
91
|
-
disabled: false,
|
|
92
|
-
title: 'Next',
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
model: {
|
|
97
|
-
frontSide: 0,
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
exports.default = step;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
key: 'Examples/Step Validation Errors',
|
|
5
|
-
title: 'Step with validation errors',
|
|
6
|
-
type: 'form',
|
|
7
|
-
errors: {
|
|
8
|
-
validation: {
|
|
9
|
-
'bridekeeper-questions': {
|
|
10
|
-
'favourite-colour': 'Auuuuuuuugh',
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
actions: [],
|
|
15
|
-
layout: [
|
|
16
|
-
{
|
|
17
|
-
type: 'form',
|
|
18
|
-
schema: { $ref: '#the-schema' },
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
schemas: [
|
|
22
|
-
{
|
|
23
|
-
$id: '#the-schema',
|
|
24
|
-
type: 'object',
|
|
25
|
-
displayOrder: ['bridekeeper-questions'],
|
|
26
|
-
properties: {
|
|
27
|
-
'bridekeeper-questions': {
|
|
28
|
-
type: 'object',
|
|
29
|
-
displayOrder: ['name', 'quest', 'favourite-colour'],
|
|
30
|
-
properties: {
|
|
31
|
-
name: {
|
|
32
|
-
title: 'What is your name?',
|
|
33
|
-
type: 'string',
|
|
34
|
-
placeholder: 'Sir Lancelot of Camelot',
|
|
35
|
-
},
|
|
36
|
-
quest: {
|
|
37
|
-
title: 'What is your quest?',
|
|
38
|
-
type: 'string',
|
|
39
|
-
placeholder: 'to seek the Holy Grail',
|
|
40
|
-
},
|
|
41
|
-
'favourite-colour': {
|
|
42
|
-
title: 'What is your favourite colour?',
|
|
43
|
-
analyticsId: 'colour-select',
|
|
44
|
-
oneOf: [
|
|
45
|
-
{
|
|
46
|
-
title: 'Blue',
|
|
47
|
-
analyticsId: 'colour-select-blue',
|
|
48
|
-
image: {
|
|
49
|
-
url: 'https://placeholder.pics/svg/128/0099ff/FFFFFF',
|
|
50
|
-
},
|
|
51
|
-
const: 1,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
title: 'Yellow',
|
|
55
|
-
analyticsId: 'colour-select-yellow',
|
|
56
|
-
image: {
|
|
57
|
-
url: 'https://placeholder.pics/svg/128/ffcc00/FFFFFF',
|
|
58
|
-
},
|
|
59
|
-
const: 2,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: 'Red',
|
|
63
|
-
analyticsId: 'colour-select-red',
|
|
64
|
-
image: {
|
|
65
|
-
url: 'https://placeholder.pics/svg/128/ff6600/FFFFFF',
|
|
66
|
-
},
|
|
67
|
-
const: 2,
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
};
|
|
77
|
-
exports.default = step;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
key: 'Features/Action Response',
|
|
5
|
-
title: 'Action Response',
|
|
6
|
-
description: '',
|
|
7
|
-
type: 'form',
|
|
8
|
-
actions: [],
|
|
9
|
-
schemas: [],
|
|
10
|
-
layout: [
|
|
11
|
-
{
|
|
12
|
-
type: 'paragraph',
|
|
13
|
-
text: "The button below will trigger an action that fetches '/responses/action'.",
|
|
14
|
-
align: 'center',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
type: 'paragraph',
|
|
18
|
-
text: 'That should return an action response that will load a final step.',
|
|
19
|
-
align: 'center',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
type: 'button',
|
|
23
|
-
action: {
|
|
24
|
-
url: '/responses/action',
|
|
25
|
-
title: 'Submit',
|
|
26
|
-
type: 'primary',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
};
|
|
31
|
-
exports.default = step;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
type: 'form',
|
|
5
|
-
key: 'Features/External',
|
|
6
|
-
title: 'External Feature',
|
|
7
|
-
description: 'Your bank is opening in another window.',
|
|
8
|
-
external: { url: 'http://google.com/' },
|
|
9
|
-
polling: {
|
|
10
|
-
url: '/polling/1234',
|
|
11
|
-
interval: 2,
|
|
12
|
-
maxAttempts: 5,
|
|
13
|
-
onError: {
|
|
14
|
-
action: { url: '/failure' },
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
layout: [
|
|
18
|
-
{
|
|
19
|
-
type: 'paragraph',
|
|
20
|
-
align: 'center',
|
|
21
|
-
text: 'Please, follow their instructions. Keep this window open.',
|
|
22
|
-
},
|
|
23
|
-
{ type: 'loading-indicator', margin: 'xl' },
|
|
24
|
-
{
|
|
25
|
-
type: 'info',
|
|
26
|
-
align: 'center',
|
|
27
|
-
markdown: `If it didn't work, you can [reopen](http://google.com/) the tab`,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
actions: [],
|
|
31
|
-
schemas: [],
|
|
32
|
-
};
|
|
33
|
-
exports.default = step;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.validationAsync = exports.polling = exports.persistAsync = exports.external = exports.actionResponse = void 0;
|
|
7
|
-
var action_response_1 = require("./action-response");
|
|
8
|
-
Object.defineProperty(exports, "actionResponse", { enumerable: true, get: function () { return __importDefault(action_response_1).default; } });
|
|
9
|
-
var external_1 = require("./external");
|
|
10
|
-
Object.defineProperty(exports, "external", { enumerable: true, get: function () { return __importDefault(external_1).default; } });
|
|
11
|
-
var persist_async_1 = require("./persist-async");
|
|
12
|
-
Object.defineProperty(exports, "persistAsync", { enumerable: true, get: function () { return __importDefault(persist_async_1).default; } });
|
|
13
|
-
var polling_1 = require("./polling");
|
|
14
|
-
Object.defineProperty(exports, "polling", { enumerable: true, get: function () { return __importDefault(polling_1).default; } });
|
|
15
|
-
var validation_async_1 = require("./validation-async");
|
|
16
|
-
Object.defineProperty(exports, "validationAsync", { enumerable: true, get: function () { return __importDefault(validation_async_1).default; } });
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
type: 'form',
|
|
5
|
-
key: 'Features/Persist Async',
|
|
6
|
-
title: 'Persist Async Feature',
|
|
7
|
-
schemas: [
|
|
8
|
-
{
|
|
9
|
-
$id: 'the-schema',
|
|
10
|
-
type: 'object',
|
|
11
|
-
title: 'Some Object',
|
|
12
|
-
displayOrder: ['nameToken'],
|
|
13
|
-
properties: {
|
|
14
|
-
nameToken: {
|
|
15
|
-
type: 'string',
|
|
16
|
-
title: 'Text input',
|
|
17
|
-
persistAsync: {
|
|
18
|
-
method: 'POST',
|
|
19
|
-
url: '/persist-async-upload',
|
|
20
|
-
param: 'name',
|
|
21
|
-
idProperty: 'nameToken',
|
|
22
|
-
schema: {
|
|
23
|
-
title: 'Enter your name',
|
|
24
|
-
type: 'string',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
actions: [
|
|
32
|
-
{
|
|
33
|
-
title: 'Submit Persist Async',
|
|
34
|
-
url: '/persist-async-submit',
|
|
35
|
-
method: 'POST',
|
|
36
|
-
type: 'primary',
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
layout: [
|
|
40
|
-
{
|
|
41
|
-
type: 'form',
|
|
42
|
-
schema: { $ref: 'the-schema' },
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
};
|
|
46
|
-
exports.default = step;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
type: 'form',
|
|
5
|
-
key: 'Features/Polling',
|
|
6
|
-
title: 'Polling Feature',
|
|
7
|
-
description: 'Polling feature in a form step.',
|
|
8
|
-
polling: {
|
|
9
|
-
url: '/polling/1234',
|
|
10
|
-
interval: 2,
|
|
11
|
-
maxAttempts: 5,
|
|
12
|
-
onError: {
|
|
13
|
-
action: { url: '/failure' },
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
layout: [
|
|
17
|
-
{
|
|
18
|
-
type: 'paragraph',
|
|
19
|
-
align: 'center',
|
|
20
|
-
text: 'We are waiting for something to happen.',
|
|
21
|
-
},
|
|
22
|
-
{ type: 'loading-indicator', margin: 'xl' },
|
|
23
|
-
{
|
|
24
|
-
type: 'button',
|
|
25
|
-
action: {
|
|
26
|
-
title: 'Back',
|
|
27
|
-
type: 'link',
|
|
28
|
-
url: '/back',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
actions: [],
|
|
33
|
-
schemas: [],
|
|
34
|
-
};
|
|
35
|
-
exports.default = step;
|