@wise/dynamic-flow-client 0.4.2 → 0.4.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/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 +6 -5
- 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,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const layout = [
|
|
4
|
-
{
|
|
5
|
-
type: 'box',
|
|
6
|
-
width: 'md',
|
|
7
|
-
components: [
|
|
8
|
-
{
|
|
9
|
-
type: 'heading',
|
|
10
|
-
text: 'This is a large heading',
|
|
11
|
-
size: 'lg',
|
|
12
|
-
align: 'center',
|
|
13
|
-
margin: 'md',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
type: 'paragraph',
|
|
17
|
-
text: 'This is a paragraph of text. This is a paragraph of text. This is a paragraph of text.',
|
|
18
|
-
align: 'center',
|
|
19
|
-
margin: 'xl',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
type: 'loading-indicator',
|
|
23
|
-
size: 'lg',
|
|
24
|
-
margin: 'md',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
type: 'columns',
|
|
30
|
-
bias: 'left',
|
|
31
|
-
left: [
|
|
32
|
-
{
|
|
33
|
-
type: 'box',
|
|
34
|
-
border: true,
|
|
35
|
-
components: [
|
|
36
|
-
{
|
|
37
|
-
type: 'heading',
|
|
38
|
-
text: 'Small heading',
|
|
39
|
-
size: 'sm',
|
|
40
|
-
margin: 'md',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
type: 'divider',
|
|
44
|
-
margin: 'xl',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: 'review',
|
|
48
|
-
title: 'Review title',
|
|
49
|
-
margin: 'lg',
|
|
50
|
-
orientation: 'horizontal',
|
|
51
|
-
action: {
|
|
52
|
-
$id: 'edit-profile',
|
|
53
|
-
title: 'Edit',
|
|
54
|
-
url: '/edit',
|
|
55
|
-
method: 'GET',
|
|
56
|
-
},
|
|
57
|
-
fields: [
|
|
58
|
-
{
|
|
59
|
-
label: 'First name',
|
|
60
|
-
value: 'John',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: 'Last name',
|
|
64
|
-
value: 'Smith',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
type: 'image',
|
|
70
|
-
text: 'An image of cascading stylesheet computer code',
|
|
71
|
-
url: 'https://bootstrap.transferwise.com/assets/img/css2-bg.jpg',
|
|
72
|
-
margin: 'xs',
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
right: [
|
|
78
|
-
{
|
|
79
|
-
type: 'form',
|
|
80
|
-
schema: {
|
|
81
|
-
type: 'object',
|
|
82
|
-
title: 'Personal details',
|
|
83
|
-
// info: {
|
|
84
|
-
// markdown:
|
|
85
|
-
// 'We need to gather this data to make sure you are who you say you here [click here for more information](/somewhere)',
|
|
86
|
-
// },
|
|
87
|
-
alert: {
|
|
88
|
-
markdown: 'Make sure you get this correct, or your transfer could be held up!',
|
|
89
|
-
context: 'neutral',
|
|
90
|
-
},
|
|
91
|
-
displayOrder: ['firstname', 'lastname'],
|
|
92
|
-
properties: {
|
|
93
|
-
firstname: {
|
|
94
|
-
type: 'string',
|
|
95
|
-
title: 'First name',
|
|
96
|
-
alert: {
|
|
97
|
-
markdown: 'Please use **only** latin characters.',
|
|
98
|
-
context: 'warning',
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
lastname: {
|
|
102
|
-
type: 'string',
|
|
103
|
-
title: 'Last name',
|
|
104
|
-
minLength: 3,
|
|
105
|
-
help: {
|
|
106
|
-
markdown: 'help!',
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
type: 'alert',
|
|
114
|
-
markdown: 'This is an alert - we can use **bold** to provide emphasis.',
|
|
115
|
-
context: 'warning',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
type: 'info',
|
|
119
|
-
markdown: '### This heading comes from markdown \n\r We can use markdown to add [links](https://transferwise.com) and _other_ **formatting** \n\r. It will also let us add simple lists: \n - one\n - two\n - #### three',
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
type: 'box',
|
|
125
|
-
width: 'sm',
|
|
126
|
-
components: [
|
|
127
|
-
{
|
|
128
|
-
type: 'button',
|
|
129
|
-
action: {
|
|
130
|
-
title: 'Submit',
|
|
131
|
-
url: '',
|
|
132
|
-
method: 'GET',
|
|
133
|
-
data: {},
|
|
134
|
-
type: 'primary',
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
type: 'button',
|
|
139
|
-
action: {
|
|
140
|
-
title: 'Cancel',
|
|
141
|
-
url: '',
|
|
142
|
-
method: 'GET',
|
|
143
|
-
data: {},
|
|
144
|
-
disabled: true,
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
type: 'decision',
|
|
151
|
-
options: [
|
|
152
|
-
{
|
|
153
|
-
title: 'More information about this option',
|
|
154
|
-
icon: { name: 'profile' },
|
|
155
|
-
action: {
|
|
156
|
-
title: 'Option 1',
|
|
157
|
-
url: '/option1',
|
|
158
|
-
method: 'POST',
|
|
159
|
-
data: {
|
|
160
|
-
a: 1,
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
title: 'More information about this option',
|
|
166
|
-
icon: { name: 'bank' },
|
|
167
|
-
action: {
|
|
168
|
-
title: 'Option 2',
|
|
169
|
-
url: '/option2',
|
|
170
|
-
method: 'GET',
|
|
171
|
-
data: {},
|
|
172
|
-
disabled: true,
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
];
|
|
178
|
-
exports.default = layout;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const layout = [
|
|
4
|
-
{
|
|
5
|
-
type: 'image',
|
|
6
|
-
url: 'https://via.placeholder.com/1024',
|
|
7
|
-
text: 'Image alt text',
|
|
8
|
-
margin: 'lg',
|
|
9
|
-
size: 'sm',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
type: 'heading',
|
|
13
|
-
text: 'Image size sm',
|
|
14
|
-
size: 'lg',
|
|
15
|
-
margin: 'lg',
|
|
16
|
-
align: 'center',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
type: 'paragraph',
|
|
20
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel ante felis. Nullam auctor posuere justo ac posuere. Nullam efficitur enim ut turpis venenatis vestibulum.',
|
|
21
|
-
align: 'center',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
type: 'box',
|
|
25
|
-
width: 'md',
|
|
26
|
-
components: [
|
|
27
|
-
{
|
|
28
|
-
type: 'button',
|
|
29
|
-
action: {
|
|
30
|
-
title: 'Button',
|
|
31
|
-
type: 'primary',
|
|
32
|
-
exit: true,
|
|
33
|
-
data: { someKey: 'some value' },
|
|
34
|
-
url: '/success',
|
|
35
|
-
method: 'GET',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
];
|
|
41
|
-
exports.default = layout;
|
|
@@ -1,18 +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.successLayout = exports.reviewLayout = exports.payInLayout = exports.listLayout = exports.finalStepLayout = exports.allLayoutComponents = void 0;
|
|
7
|
-
var all_1 = require("./all");
|
|
8
|
-
Object.defineProperty(exports, "allLayoutComponents", { enumerable: true, get: function () { return __importDefault(all_1).default; } });
|
|
9
|
-
var final_step_layout_1 = require("./final-step-layout");
|
|
10
|
-
Object.defineProperty(exports, "finalStepLayout", { enumerable: true, get: function () { return __importDefault(final_step_layout_1).default; } });
|
|
11
|
-
var list_1 = require("./list");
|
|
12
|
-
Object.defineProperty(exports, "listLayout", { enumerable: true, get: function () { return __importDefault(list_1).default; } });
|
|
13
|
-
var pay_in_1 = require("./pay-in");
|
|
14
|
-
Object.defineProperty(exports, "payInLayout", { enumerable: true, get: function () { return __importDefault(pay_in_1).default; } });
|
|
15
|
-
var review_1 = require("./review");
|
|
16
|
-
Object.defineProperty(exports, "reviewLayout", { enumerable: true, get: function () { return __importDefault(review_1).default; } });
|
|
17
|
-
var success_1 = require("./success");
|
|
18
|
-
Object.defineProperty(exports, "successLayout", { enumerable: true, get: function () { return __importDefault(success_1).default; } });
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const layout = [
|
|
4
|
-
{
|
|
5
|
-
type: 'list',
|
|
6
|
-
title: 'This is a List',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
title: 'Item 1',
|
|
10
|
-
description: 'The first item is positive',
|
|
11
|
-
icon: {
|
|
12
|
-
name: 'bank',
|
|
13
|
-
},
|
|
14
|
-
status: 'positive',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
title: 'Item 2',
|
|
18
|
-
description: 'The second item is neutral',
|
|
19
|
-
icon: {
|
|
20
|
-
name: 'emoji',
|
|
21
|
-
},
|
|
22
|
-
status: 'neutral',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: 'Item 3',
|
|
26
|
-
description: 'The third item is warning',
|
|
27
|
-
icon: {
|
|
28
|
-
name: 'gift-box',
|
|
29
|
-
},
|
|
30
|
-
status: 'warning',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
exports.default = layout;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
key: 'PAY_ID',
|
|
5
|
-
type: 'form',
|
|
6
|
-
title: 'Pay Using PayID',
|
|
7
|
-
actions: [
|
|
8
|
-
{
|
|
9
|
-
title: 'I have paid',
|
|
10
|
-
type: 'primary',
|
|
11
|
-
exit: true,
|
|
12
|
-
result: {
|
|
13
|
-
paid: 'POTENTIALLY_PAID',
|
|
14
|
-
},
|
|
15
|
-
$id: '#payNow',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
title: "I'll transfer my money later",
|
|
19
|
-
type: 'secondary',
|
|
20
|
-
exit: true,
|
|
21
|
-
result: {
|
|
22
|
-
paid: 'NOT_PAID',
|
|
23
|
-
},
|
|
24
|
-
$id: '#payLater',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
schemas: [
|
|
28
|
-
{
|
|
29
|
-
title: 'Pay Using PayID',
|
|
30
|
-
type: 'string',
|
|
31
|
-
hidden: true,
|
|
32
|
-
default: 'PayId',
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
layout: [
|
|
36
|
-
{
|
|
37
|
-
type: 'info',
|
|
38
|
-
markdown: 'Go to your online banking and transfer **50.25 AUD** to our account using the email below.',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
components: [
|
|
42
|
-
{
|
|
43
|
-
context: 'neutral',
|
|
44
|
-
markdown: "We've updated our PayID email and no longer require you to enter any reference numbers. Use this PayID going forward.",
|
|
45
|
-
type: 'alert',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: 'review',
|
|
49
|
-
title: 'Our Bank Details',
|
|
50
|
-
fields: [
|
|
51
|
-
{
|
|
52
|
-
label: 'Email',
|
|
53
|
-
value: 'rahul@wise.com',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
left: [
|
|
59
|
-
{
|
|
60
|
-
type: 'review',
|
|
61
|
-
fields: [
|
|
62
|
-
{
|
|
63
|
-
label: 'Account Name',
|
|
64
|
-
value: 'Wise Australia Pty Ltd',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
right: [
|
|
70
|
-
{
|
|
71
|
-
type: 'review',
|
|
72
|
-
fields: [
|
|
73
|
-
{
|
|
74
|
-
label: 'Amount',
|
|
75
|
-
value: '50.25 AUD',
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
type: 'columns',
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
type: 'box',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
type: 'button',
|
|
87
|
-
action: {
|
|
88
|
-
$ref: '#payNow',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
type: 'button',
|
|
93
|
-
action: {
|
|
94
|
-
$ref: '#payLater',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
};
|
|
99
|
-
exports.default = step;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const layout = [
|
|
4
|
-
{
|
|
5
|
-
type: 'box',
|
|
6
|
-
width: 'md',
|
|
7
|
-
components: [
|
|
8
|
-
{
|
|
9
|
-
type: 'heading',
|
|
10
|
-
align: 'center',
|
|
11
|
-
margin: 'lg',
|
|
12
|
-
text: 'Review your transfer details',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
type: 'box',
|
|
16
|
-
border: true,
|
|
17
|
-
components: [
|
|
18
|
-
{
|
|
19
|
-
type: 'review',
|
|
20
|
-
title: 'Transfer details',
|
|
21
|
-
orientation: 'horizontal',
|
|
22
|
-
action: {
|
|
23
|
-
title: 'Edit',
|
|
24
|
-
url: '/edit-transfer',
|
|
25
|
-
method: 'GET',
|
|
26
|
-
},
|
|
27
|
-
fields: [
|
|
28
|
-
{
|
|
29
|
-
label: 'You send approximately',
|
|
30
|
-
value: '88.86 GBP',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: 'You send from',
|
|
34
|
-
value: 'GBP balance',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: 'Estimate total fees (included)',
|
|
38
|
-
value: '0.86 GBP',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: "Estimate amount we'll convert",
|
|
42
|
-
value: '88 GBP',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: 'Live rate',
|
|
46
|
-
value: '1.1363',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: 'Test gets exactly',
|
|
50
|
-
value: '100 EUR',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
label: 'Should arrive',
|
|
54
|
-
value: 'in seconds',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 'divider',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: 'review',
|
|
63
|
-
title: 'Recipient details',
|
|
64
|
-
orientation: 'horizontal',
|
|
65
|
-
action: {
|
|
66
|
-
title: 'Edit',
|
|
67
|
-
url: '/recipient',
|
|
68
|
-
method: 'GET',
|
|
69
|
-
},
|
|
70
|
-
fields: [
|
|
71
|
-
{
|
|
72
|
-
label: 'Name',
|
|
73
|
-
value: 'Test Name',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
label: 'Email',
|
|
77
|
-
value: 'test@example.com',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
label: 'Sort code',
|
|
81
|
-
value: '12-34-56',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: 'Account number',
|
|
85
|
-
value: '12345678',
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
type: 'box',
|
|
93
|
-
border: true,
|
|
94
|
-
components: [
|
|
95
|
-
{
|
|
96
|
-
type: 'form',
|
|
97
|
-
schema: {
|
|
98
|
-
title: 'Schedule',
|
|
99
|
-
type: 'object',
|
|
100
|
-
displayOrder: ['date', 'frequency'],
|
|
101
|
-
properties: {
|
|
102
|
-
date: {
|
|
103
|
-
title: 'Date',
|
|
104
|
-
type: 'string',
|
|
105
|
-
format: 'date',
|
|
106
|
-
},
|
|
107
|
-
frequency: {
|
|
108
|
-
type: 'string',
|
|
109
|
-
title: 'Frequency',
|
|
110
|
-
control: 'select',
|
|
111
|
-
placeholder: 'How often?',
|
|
112
|
-
oneOf: [
|
|
113
|
-
{
|
|
114
|
-
title: 'Daily',
|
|
115
|
-
const: 'day',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
title: 'Weekly',
|
|
119
|
-
const: 'week',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
title: 'Monthly',
|
|
123
|
-
const: 'month',
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
type: 'alert',
|
|
132
|
-
markdown: "We'll deduct the required amount **from your GBP balance** at the **real exchange rate** on the **28th of each month**, so that Rayna always gets exactly **100 EUR**. First **monthly** transfer will be made on **April 28, 2020 (BST)**",
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
type: 'form',
|
|
138
|
-
schema: {
|
|
139
|
-
type: 'object',
|
|
140
|
-
displayOrder: ['reference'],
|
|
141
|
-
properties: {
|
|
142
|
-
reference: {
|
|
143
|
-
type: 'string',
|
|
144
|
-
title: 'Reference',
|
|
145
|
-
placeholder: 'Type a reference',
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
type: 'button',
|
|
152
|
-
action: {
|
|
153
|
-
title: 'Create transfer',
|
|
154
|
-
method: 'POST',
|
|
155
|
-
url: '/final',
|
|
156
|
-
type: 'primary',
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
];
|
|
162
|
-
exports.default = layout;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const layout = [
|
|
4
|
-
{
|
|
5
|
-
type: 'box',
|
|
6
|
-
width: 'xs',
|
|
7
|
-
components: [
|
|
8
|
-
{
|
|
9
|
-
type: 'image',
|
|
10
|
-
url: 'https://transferwise.com/staticrab/homepage/_next/static/images/how_to_2-06281f8ea9caa50445f075d460434bcf.svg',
|
|
11
|
-
text: 'An illustration',
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
type: 'box',
|
|
17
|
-
width: 'lg',
|
|
18
|
-
components: [
|
|
19
|
-
{
|
|
20
|
-
type: 'heading',
|
|
21
|
-
align: 'center',
|
|
22
|
-
text: "You've scheduled a monthly payment of 100 EUR to Rayna Kenter",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: 'box',
|
|
28
|
-
width: 'md',
|
|
29
|
-
components: [
|
|
30
|
-
{
|
|
31
|
-
type: 'info',
|
|
32
|
-
align: 'center',
|
|
33
|
-
markdown: 'Your first payment has been sent **now**',
|
|
34
|
-
margin: 'xs',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
type: 'paragraph',
|
|
38
|
-
align: 'center',
|
|
39
|
-
text: 'Your next payment will be made on July 29th, 2020 (BST)',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
type: 'columns',
|
|
43
|
-
left: [
|
|
44
|
-
{
|
|
45
|
-
type: 'button',
|
|
46
|
-
action: {
|
|
47
|
-
title: 'Check transfer details',
|
|
48
|
-
url: '/check',
|
|
49
|
-
method: 'GET',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
right: [
|
|
54
|
-
{
|
|
55
|
-
type: 'button',
|
|
56
|
-
action: {
|
|
57
|
-
title: 'Invite & earn',
|
|
58
|
-
url: '/check',
|
|
59
|
-
method: 'GET',
|
|
60
|
-
type: 'primary',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
];
|
|
68
|
-
exports.default = layout;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
type: 'form',
|
|
5
|
-
key: 'action-response-final',
|
|
6
|
-
title: 'Action Response Final Step',
|
|
7
|
-
description: `This step was loaded as a result of an Action Response.`,
|
|
8
|
-
actions: [],
|
|
9
|
-
schemas: [],
|
|
10
|
-
layout: [
|
|
11
|
-
{
|
|
12
|
-
type: 'alert',
|
|
13
|
-
markdown: 'If you want to see this again, perhaps go back to "Action Response" story.',
|
|
14
|
-
context: 'positive',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
type: 'button',
|
|
18
|
-
action: {
|
|
19
|
-
title: 'Start Over',
|
|
20
|
-
type: 'primary',
|
|
21
|
-
url: '/steps/actionResponse',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
exports.default = step;
|
|
@@ -1,14 +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.recipientUpdateFinal = exports.exit = exports.actionResponseFinal = exports.action = void 0;
|
|
7
|
-
var action_1 = require("./action");
|
|
8
|
-
Object.defineProperty(exports, "action", { enumerable: true, get: function () { return __importDefault(action_1).default; } });
|
|
9
|
-
var action_response_final_1 = require("./action-response-final");
|
|
10
|
-
Object.defineProperty(exports, "actionResponseFinal", { enumerable: true, get: function () { return __importDefault(action_response_final_1).default; } });
|
|
11
|
-
var exit_1 = require("./exit");
|
|
12
|
-
Object.defineProperty(exports, "exit", { enumerable: true, get: function () { return __importDefault(exit_1).default; } });
|
|
13
|
-
var recipient_update_final_1 = require("./recipient-update-final");
|
|
14
|
-
Object.defineProperty(exports, "recipientUpdateFinal", { enumerable: true, get: function () { return __importDefault(recipient_update_final_1).default; } });
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const step = {
|
|
4
|
-
type: 'form',
|
|
5
|
-
key: 'recipient-update-final',
|
|
6
|
-
title: 'Recipient Update Final Step',
|
|
7
|
-
description: `The recipient has been updated.`,
|
|
8
|
-
actions: [],
|
|
9
|
-
schemas: [],
|
|
10
|
-
layout: [
|
|
11
|
-
{
|
|
12
|
-
type: 'alert',
|
|
13
|
-
markdown: 'Nothing to see here.',
|
|
14
|
-
context: 'positive',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
type: 'button',
|
|
18
|
-
action: {
|
|
19
|
-
title: 'Start Over',
|
|
20
|
-
type: 'primary',
|
|
21
|
-
url: '/steps/recipientUpdate',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
};
|
|
26
|
-
exports.default = step;
|