@wise/dynamic-flow-client 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/constants/DateMode.js +2 -2
- package/build/common/constants/FormControlType.js +2 -2
- package/build/common/constants/MonthFormat.js +2 -2
- package/build/common/constants/SchemaType.js +2 -2
- package/build/common/constants/Size.js +2 -2
- package/build/common/constants/index.js +1 -1
- package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +15 -27
- package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +11 -9
- package/build/common/contexts/eventsContext/EventsContext.js +11 -28
- package/build/common/contexts/fetcherContexts/FetcherContexts.js +14 -27
- package/build/common/contexts/index.js +1 -1
- package/build/common/contexts/logContext/LogContext.js +12 -30
- package/build/common/hooks/index.js +1 -1
- package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +3 -3
- package/build/common/hooks/useExternal/useExternal.js +8 -8
- package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +20 -31
- package/build/common/hooks/usePersistAsync/usePersistAsync.js +60 -139
- package/build/common/hooks/usePolling/usePolling.js +20 -21
- package/build/common/hooks/usePrevious/usePrevious.js +5 -5
- package/build/common/hooks/useStepPolling/useStepPolling.js +15 -14
- package/build/common/makeFetcher/index.js +1 -1
- package/build/common/makeFetcher/makeFetcher.js +10 -24
- package/build/common/messages.js +5 -5
- package/build/common/utils/api-utils.js +3 -4
- package/build/common/utils/date-utils.js +11 -11
- package/build/common/utils/debounce.js +11 -15
- package/build/common/utils/file-utils.js +12 -25
- package/build/common/utils/id-utils.js +4 -5
- package/build/common/utils/index.js +1 -1
- package/build/common/utils/is-equal.js +8 -8
- package/build/common/utils/schema-utils.js +6 -6
- package/build/common/utils/step-utils.js +14 -14
- package/build/common/validators/index.js +7 -7
- package/build/common/validators/models/model-validators.js +8 -8
- package/build/common/validators/models/models.utils.js +29 -42
- package/build/common/validators/schemas/schema-validators.js +11 -13
- package/build/common/validators/types/type-validators.js +9 -13
- package/build/common/validators/validationFailures/validation-failures.js +14 -14
- package/build/common/validators/validationFailures/validation-failures.utils.js +5 -7
- package/build/common/validators/values/value-validators.js +4 -6
- package/build/dynamicFlow/DynamicFlow.js +185 -307
- package/build/dynamicFlow/DynamicFlowStep.js +12 -23
- package/build/dynamicFlow/DynamicFlowTypes.js +1 -1
- package/build/dynamicFlow/index.js +6 -14
- package/build/dynamicFlow/stories/DynamicFlow.story.js +20 -20
- package/build/dynamicFlow/stories/EditableDynamicFlow.js +20 -33
- package/build/dynamicFlow/stories/fixtureFetcher.js +46 -104
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +22 -40
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +6 -6
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +10 -11
- package/build/dynamicFlow/utils/index.js +5 -2
- package/build/dynamicFlow/utils/responseParsers/response-parsers.js +53 -118
- package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +9 -9
- package/build/dynamicFlow/utils/useDynamicFlowState.js +51 -74
- package/build/dynamicFlow/utils/useLoader.js +9 -20
- package/build/fixtures/components/alert.js +8 -8
- package/build/fixtures/components/box.js +7 -7
- package/build/fixtures/components/button.js +25 -36
- package/build/fixtures/components/columns.js +10 -10
- package/build/fixtures/components/copyable.js +6 -6
- package/build/fixtures/components/decision.js +15 -15
- package/build/fixtures/components/heading.js +7 -7
- package/build/fixtures/components/image.js +10 -10
- package/build/fixtures/components/index.js +17 -25
- package/build/fixtures/components/info.js +22 -6
- package/build/fixtures/components/list.js +8 -8
- package/build/fixtures/components/loading-indicator.js +5 -5
- package/build/fixtures/components/paragraph.js +9 -9
- package/build/fixtures/components/review.js +11 -11
- package/build/fixtures/examples/camera-capture.js +29 -29
- package/build/fixtures/examples/index.js +9 -17
- package/build/fixtures/examples/recipient-update.js +69 -69
- package/build/fixtures/examples/recipient.js +63 -63
- package/build/fixtures/examples/single-file-upload.js +21 -21
- package/build/fixtures/examples/step-validation-errors.js +21 -21
- package/build/fixtures/features/action-response.js +8 -8
- package/build/fixtures/features/external.js +8 -8
- package/build/fixtures/features/index.js +9 -17
- package/build/fixtures/features/persist-async.js +11 -11
- package/build/fixtures/features/polling.js +9 -9
- package/build/fixtures/features/validation-async.js +10 -10
- package/build/fixtures/index.js +11 -22
- package/build/fixtures/jsonSchemaForm/allOf.js +30 -30
- package/build/fixtures/jsonSchemaForm/audRecipient.js +271 -271
- package/build/fixtures/jsonSchemaForm/currency.js +12 -12
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +11 -11
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +11 -11
- package/build/fixtures/jsonSchemaForm/oneOf.js +27 -27
- package/build/fixtures/jsonSchemaForm/oneOfTabs.js +16 -16
- package/build/fixtures/jsonSchemaForm/promotedOneOf.js +17 -17
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +30 -30
- package/build/fixtures/jsonSchemaForm/simple.js +16 -16
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +19 -19
- package/build/fixtures/jsonSchemaForm/validationAsync.js +8 -8
- package/build/fixtures/layouts/all.js +37 -37
- package/build/fixtures/layouts/final-step-layout.js +9 -9
- package/build/fixtures/layouts/index.js +10 -18
- package/build/fixtures/layouts/list.js +10 -10
- package/build/fixtures/layouts/pay-in.js +23 -23
- package/build/fixtures/layouts/review.js +38 -38
- package/build/fixtures/layouts/success.js +15 -15
- package/build/fixtures/responses/action-response-final.js +8 -8
- package/build/fixtures/responses/action.js +3 -3
- package/build/fixtures/responses/exit.js +3 -3
- package/build/fixtures/responses/index.js +8 -16
- package/build/fixtures/responses/recipient-update-final.js +8 -8
- package/build/fixtures/schemas/basic-form.js +11 -11
- package/build/fixtures/schemas/index.js +8 -16
- package/build/fixtures/schemas/number-and-integer.js +11 -11
- package/build/fixtures/schemas/one-of.js +43 -46
- package/build/fixtures/schemas/string-formats.js +15 -15
- package/build/fixtures/utils/image-util.js +8 -8
- package/build/formControl/FormControl.js +118 -148
- package/build/formControl/index.js +6 -14
- package/build/formControl/utils/index.js +1 -1
- package/build/formControl/utils/value-utils.js +18 -23
- package/build/i18n/index.js +31 -31
- package/build/index.js +13 -10
- package/build/jsonSchemaForm/JsonSchemaForm.js +12 -24
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +24 -37
- package/build/jsonSchemaForm/allOfSchema/index.js +6 -14
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +9 -20
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +9 -20
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +6 -14
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +56 -115
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +7 -7
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +6 -14
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +1 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +19 -71
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +10 -11
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +6 -14
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +45 -62
- package/build/jsonSchemaForm/basicTypeSchema/index.js +6 -14
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +39 -50
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +18 -18
- package/build/jsonSchemaForm/controlFeedback/index.js +6 -14
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +52 -61
- package/build/jsonSchemaForm/genericSchema/index.js +6 -14
- package/build/jsonSchemaForm/help/Help.js +9 -9
- package/build/jsonSchemaForm/help/Help.messages.js +5 -5
- package/build/jsonSchemaForm/help/index.js +6 -14
- package/build/jsonSchemaForm/index.js +6 -14
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +28 -49
- package/build/jsonSchemaForm/objectSchema/index.js +6 -14
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +54 -74
- package/build/jsonSchemaForm/oneOfSchema/index.js +6 -14
- package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +3 -3
- package/build/jsonSchemaForm/oneOfSchema/utils/index.js +1 -1
- package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +19 -20
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +11 -22
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +5 -5
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +6 -14
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +73 -127
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +6 -14
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +45 -110
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +17 -17
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +6 -14
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +28 -47
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +6 -14
- package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +4 -4
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +13 -24
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +11 -22
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +12 -23
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +24 -26
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +6 -6
- package/build/jsonSchemaForm/readOnlySchema/index.js +6 -14
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +26 -39
- package/build/jsonSchemaForm/schemaFormControl/index.js +6 -14
- package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +5 -5
- package/build/jsonSchemaForm/schemaFormControl/utils/index.js +1 -1
- package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +30 -47
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +57 -119
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +6 -14
- package/build/layout/DynamicLayout.js +10 -21
- package/build/layout/alert/DynamicAlert.js +9 -9
- package/build/layout/box/DynamicBox.js +12 -23
- package/build/layout/button/DynamicButton.js +16 -27
- package/build/layout/columns/DynamicColumns.js +13 -24
- package/build/layout/decision/DynamicDecision.js +16 -27
- package/build/layout/divider/DynamicDivider.js +7 -8
- package/build/layout/external/DynamicExternal.js +16 -28
- package/build/layout/external/DynamicExternal.messages.js +5 -5
- package/build/layout/form/DynamicForm.js +10 -21
- package/build/layout/heading/DynamicHeading.js +12 -23
- package/build/layout/icon/DynamicIcon.js +9 -10
- package/build/layout/image/DynamicImage.js +43 -93
- package/build/layout/index.js +21 -29
- package/build/layout/info/DynamicInfo.js +7 -19
- package/build/layout/list/DynamicList.js +14 -26
- package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +8 -9
- package/build/layout/paragraph/DynamicParagraph.js +19 -37
- package/build/layout/paragraph/DynamicParagraph.messages.js +6 -6
- package/build/layout/paragraph/useSnackBarIfAvailable.js +4 -4
- package/build/layout/review/DynamicReview.js +14 -26
- package/build/layout/utils.js +4 -6
- package/build/step/cameraStep/CameraStep.js +42 -88
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +48 -105
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +7 -7
- package/build/step/cameraStep/cameraCapture/components/index.js +10 -28
- package/build/step/cameraStep/cameraCapture/hooks/index.js +17 -72
- package/build/step/cameraStep/cameraCapture/index.js +6 -14
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +33 -45
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +8 -19
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +6 -6
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +9 -21
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +7 -7
- package/build/step/cameraStep/cameraCapture/screens/index.js +6 -14
- package/build/step/cameraStep/cameraCapture/tracking/index.js +17 -99
- package/build/step/cameraStep/cameraCapture/utils/index.js +33 -96
- package/build/step/cameraStep/index.js +6 -14
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +20 -21
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +8 -8
- package/build/step/externalConfirmationStep/index.js +6 -14
- package/build/step/index.js +7 -15
- package/build/step/layoutStep/LayoutStep.js +19 -19
- package/build/step/layoutStep/index.js +6 -14
- package/build/step/layoutStep/utils/index.js +3 -14
- package/build/step/layoutStep/utils/inline-reference-utils.js +29 -46
- package/build/step/layoutStep/utils/layout-utils.js +34 -53
- package/build/types/common/FormControl.js +1 -1
- package/build/types/index.js +13 -13
- package/build/types/specification/Action.js +1 -1
- package/build/types/specification/FileUploadSchema.js +1 -1
- package/build/types/specification/LayoutComponent.js +1 -1
- package/build/types/specification/Model.js +9 -17
- package/build/types/specification/PersistAsync.js +1 -1
- package/build/types/specification/Polling.js +1 -1
- package/build/types/specification/Promotion.js +1 -1
- package/build/types/specification/Schema.js +8 -8
- package/build/types/specification/Step.js +3 -5
- package/build/types/specification/ValidationAsync.js +1 -1
- package/build/types/specification/core.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
key: 'Components/Copyable',
|
|
5
5
|
type: 'form',
|
|
6
6
|
title: 'Copyable Text',
|
|
@@ -10,15 +10,15 @@ var step = {
|
|
|
10
10
|
{
|
|
11
11
|
type: 'paragraph',
|
|
12
12
|
align: 'center',
|
|
13
|
-
text: 'Please copy the code below and use it in that other thing.'
|
|
13
|
+
text: 'Please copy the code below and use it in that other thing.',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
type: 'paragraph',
|
|
17
17
|
text: '7Xtiq6fnX9aEVF7yZAmb2qyqS857ro8S',
|
|
18
18
|
align: 'center',
|
|
19
|
-
control: 'copyable'
|
|
19
|
+
control: 'copyable',
|
|
20
20
|
},
|
|
21
21
|
],
|
|
22
|
-
schemas: []
|
|
22
|
+
schemas: [],
|
|
23
23
|
};
|
|
24
|
-
exports
|
|
24
|
+
exports.default = step;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
type: 'form',
|
|
5
5
|
key: 'Components/Decision',
|
|
6
6
|
title: 'Decision Component',
|
|
@@ -11,7 +11,7 @@ var step = {
|
|
|
11
11
|
{
|
|
12
12
|
type: 'heading',
|
|
13
13
|
size: 'sm',
|
|
14
|
-
text: 'Please continue using one of the following options:'
|
|
14
|
+
text: 'Please continue using one of the following options:',
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
type: 'decision',
|
|
@@ -20,37 +20,37 @@ var step = {
|
|
|
20
20
|
title: 'Create a new recipient',
|
|
21
21
|
description: 'You will need their bank details to hand',
|
|
22
22
|
icon: {
|
|
23
|
-
name: 'plus'
|
|
23
|
+
name: 'plus',
|
|
24
24
|
},
|
|
25
25
|
action: {
|
|
26
26
|
title: '',
|
|
27
|
-
url: 'recipient'
|
|
28
|
-
}
|
|
27
|
+
url: 'recipient',
|
|
28
|
+
},
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
title: 'Choose an existing recipient',
|
|
32
32
|
disabled: false,
|
|
33
33
|
icon: {
|
|
34
|
-
name: 'bank'
|
|
34
|
+
name: 'bank',
|
|
35
35
|
},
|
|
36
36
|
action: {
|
|
37
37
|
title: '',
|
|
38
|
-
url: 'review'
|
|
39
|
-
}
|
|
38
|
+
url: 'review',
|
|
39
|
+
},
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
title: 'Show me the external step',
|
|
43
43
|
disabled: false,
|
|
44
44
|
icon: {
|
|
45
|
-
name: 'bulb'
|
|
45
|
+
name: 'bulb',
|
|
46
46
|
},
|
|
47
47
|
action: {
|
|
48
48
|
title: '',
|
|
49
|
-
url: 'external'
|
|
50
|
-
}
|
|
49
|
+
url: 'external',
|
|
50
|
+
},
|
|
51
51
|
},
|
|
52
|
-
]
|
|
52
|
+
],
|
|
53
53
|
},
|
|
54
|
-
]
|
|
54
|
+
],
|
|
55
55
|
};
|
|
56
|
-
exports
|
|
56
|
+
exports.default = step;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
type: 'form',
|
|
5
5
|
key: 'Components/Heading',
|
|
6
6
|
title: 'Heading Component',
|
|
7
7
|
description: 'Headings can have different sizes: "xs", "sm", "md", "lg", "xl".',
|
|
8
8
|
actions: [],
|
|
9
9
|
schemas: [],
|
|
10
|
-
layout: ['xs', 'sm', 'md', 'lg', 'xl'].map(
|
|
10
|
+
layout: ['xs', 'sm', 'md', 'lg', 'xl'].map((size) => ({
|
|
11
11
|
type: 'heading',
|
|
12
|
-
text:
|
|
13
|
-
size
|
|
14
|
-
})
|
|
12
|
+
text: `This is heading with size: "${size}"`,
|
|
13
|
+
size,
|
|
14
|
+
})),
|
|
15
15
|
};
|
|
16
|
-
exports
|
|
16
|
+
exports.default = step;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
4
|
+
const step = {
|
|
5
5
|
type: 'form',
|
|
6
6
|
key: 'Components/Image',
|
|
7
7
|
title: 'Image Component',
|
|
8
8
|
description: 'Images can have different sizes: "xs", "sm", "md", "lg", "xl".',
|
|
9
9
|
actions: [],
|
|
10
10
|
schemas: [],
|
|
11
|
-
layout: sizes.flatMap(
|
|
11
|
+
layout: sizes.flatMap((size) => [
|
|
12
12
|
{
|
|
13
13
|
type: 'paragraph',
|
|
14
|
-
text:
|
|
15
|
-
align: 'center'
|
|
14
|
+
text: `This is an image with size: "${size}"`,
|
|
15
|
+
align: 'center',
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
type: 'image',
|
|
19
19
|
url: 'http://placekitten.com/g/400/400',
|
|
20
|
-
text:
|
|
21
|
-
size
|
|
20
|
+
text: `This is an image with size: "${size}"`,
|
|
21
|
+
size,
|
|
22
22
|
},
|
|
23
|
-
]
|
|
23
|
+
]),
|
|
24
24
|
};
|
|
25
|
-
exports
|
|
25
|
+
exports.default = step;
|
|
@@ -1,40 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
exports.__esModule = true;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
6
|
exports.review = exports.paragraph = exports.loadingIndicator = exports.list = exports.info = exports.image = exports.heading = exports.decision = exports.copyable = exports.columns = exports.button = exports.box = exports.alert = void 0;
|
|
15
7
|
var alert_1 = require("./alert");
|
|
16
|
-
|
|
8
|
+
Object.defineProperty(exports, "alert", { enumerable: true, get: function () { return __importDefault(alert_1).default; } });
|
|
17
9
|
var box_1 = require("./box");
|
|
18
|
-
|
|
10
|
+
Object.defineProperty(exports, "box", { enumerable: true, get: function () { return __importDefault(box_1).default; } });
|
|
19
11
|
var button_1 = require("./button");
|
|
20
|
-
|
|
12
|
+
Object.defineProperty(exports, "button", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
|
|
21
13
|
var columns_1 = require("./columns");
|
|
22
|
-
|
|
14
|
+
Object.defineProperty(exports, "columns", { enumerable: true, get: function () { return __importDefault(columns_1).default; } });
|
|
23
15
|
var copyable_1 = require("./copyable");
|
|
24
|
-
|
|
16
|
+
Object.defineProperty(exports, "copyable", { enumerable: true, get: function () { return __importDefault(copyable_1).default; } });
|
|
25
17
|
var decision_1 = require("./decision");
|
|
26
|
-
|
|
18
|
+
Object.defineProperty(exports, "decision", { enumerable: true, get: function () { return __importDefault(decision_1).default; } });
|
|
27
19
|
var heading_1 = require("./heading");
|
|
28
|
-
|
|
20
|
+
Object.defineProperty(exports, "heading", { enumerable: true, get: function () { return __importDefault(heading_1).default; } });
|
|
29
21
|
var image_1 = require("./image");
|
|
30
|
-
|
|
22
|
+
Object.defineProperty(exports, "image", { enumerable: true, get: function () { return __importDefault(image_1).default; } });
|
|
31
23
|
var info_1 = require("./info");
|
|
32
|
-
|
|
24
|
+
Object.defineProperty(exports, "info", { enumerable: true, get: function () { return __importDefault(info_1).default; } });
|
|
33
25
|
var list_1 = require("./list");
|
|
34
|
-
|
|
26
|
+
Object.defineProperty(exports, "list", { enumerable: true, get: function () { return __importDefault(list_1).default; } });
|
|
35
27
|
var loading_indicator_1 = require("./loading-indicator");
|
|
36
|
-
|
|
28
|
+
Object.defineProperty(exports, "loadingIndicator", { enumerable: true, get: function () { return __importDefault(loading_indicator_1).default; } });
|
|
37
29
|
var paragraph_1 = require("./paragraph");
|
|
38
|
-
|
|
30
|
+
Object.defineProperty(exports, "paragraph", { enumerable: true, get: function () { return __importDefault(paragraph_1).default; } });
|
|
39
31
|
var review_1 = require("./review");
|
|
40
|
-
|
|
32
|
+
Object.defineProperty(exports, "review", { enumerable: true, get: function () { return __importDefault(review_1).default; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
type: 'form',
|
|
5
5
|
key: 'Components/Info',
|
|
6
6
|
title: 'Info Component',
|
|
@@ -10,10 +10,26 @@ var step = {
|
|
|
10
10
|
layout: [
|
|
11
11
|
{
|
|
12
12
|
type: 'info',
|
|
13
|
-
markdown:
|
|
14
|
-
|
|
13
|
+
markdown: `## The Advantages of Using Bananas for Data Backup
|
|
14
|
+
|
|
15
|
+
If you're looking for a fruit-based solution to your data backup needs, bananas might just be the perfect choice. Here are some reasons why:
|
|
16
|
+
|
|
17
|
+
### Portability
|
|
18
|
+
|
|
19
|
+
Bananas are portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go.
|
|
20
|
+
|
|
21
|
+
### Unique Banana Code
|
|
22
|
+
|
|
23
|
+
Who needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data.
|
|
24
|
+
|
|
25
|
+
### Environmentally-Friendly
|
|
26
|
+
|
|
27
|
+
But the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the [bananas](https://en.wikipedia.org/wiki/Banana) in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?
|
|
28
|
+
|
|
29
|
+
`,
|
|
30
|
+
align: 'left',
|
|
15
31
|
},
|
|
16
32
|
{ type: 'alert', markdown: 'Links always open in a new tab.', context: 'neutral' },
|
|
17
|
-
]
|
|
33
|
+
],
|
|
18
34
|
};
|
|
19
|
-
exports
|
|
35
|
+
exports.default = step;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
type: 'form',
|
|
5
5
|
key: 'Components/List',
|
|
6
6
|
title: 'List Component',
|
|
@@ -15,22 +15,22 @@ var step = {
|
|
|
15
15
|
title: 'Step 1',
|
|
16
16
|
description: 'Get a chip.',
|
|
17
17
|
icon: { name: 'chip' },
|
|
18
|
-
status: 'positive'
|
|
18
|
+
status: 'positive',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
title: 'Step 2',
|
|
22
22
|
description: 'Get a car.',
|
|
23
23
|
icon: { name: 'car' },
|
|
24
|
-
status: 'neutral'
|
|
24
|
+
status: 'neutral',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
title: 'Step 3',
|
|
28
28
|
description: 'Get a building.',
|
|
29
29
|
icon: { name: 'building' },
|
|
30
|
-
status: 'warning'
|
|
30
|
+
status: 'warning',
|
|
31
31
|
},
|
|
32
|
-
]
|
|
32
|
+
],
|
|
33
33
|
},
|
|
34
|
-
]
|
|
34
|
+
],
|
|
35
35
|
};
|
|
36
|
-
exports
|
|
36
|
+
exports.default = step;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
type: 'form',
|
|
5
5
|
key: 'Components/Loading Indicator',
|
|
6
6
|
title: 'Loading Indicator Component',
|
|
@@ -11,8 +11,8 @@ var step = {
|
|
|
11
11
|
{
|
|
12
12
|
type: 'loading-indicator',
|
|
13
13
|
size: 'lg',
|
|
14
|
-
margin: 'md'
|
|
14
|
+
margin: 'md',
|
|
15
15
|
},
|
|
16
|
-
]
|
|
16
|
+
],
|
|
17
17
|
};
|
|
18
|
-
exports
|
|
18
|
+
exports.default = step;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
type: 'form',
|
|
5
5
|
key: 'Components/Paragraph',
|
|
6
6
|
title: 'Paragraph Component',
|
|
7
|
-
description:
|
|
7
|
+
description: `A block of plain text.`,
|
|
8
8
|
actions: [],
|
|
9
9
|
schemas: [],
|
|
10
10
|
layout: [
|
|
11
11
|
{
|
|
12
12
|
type: 'paragraph',
|
|
13
|
-
text:
|
|
13
|
+
text: `Well, if you're really bent on using fruit for data backup, bananas might just be the perfect choice. For starters, they're portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go.`,
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
type: 'paragraph',
|
|
17
|
-
text:
|
|
17
|
+
text: `And who needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data.`,
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
type: 'paragraph',
|
|
21
|
-
text:
|
|
21
|
+
text: `But the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the bananas in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?`,
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
type: 'alert',
|
|
25
25
|
markdown: 'Paragraph is a block of plain text content. If you need richer formatting and layout options, consider using Info Layout.',
|
|
26
|
-
context: 'neutral'
|
|
26
|
+
context: 'neutral',
|
|
27
27
|
},
|
|
28
|
-
]
|
|
28
|
+
],
|
|
29
29
|
};
|
|
30
|
-
exports
|
|
30
|
+
exports.default = step;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
type: 'form',
|
|
5
5
|
key: 'Components/Review',
|
|
6
6
|
title: 'Review Component',
|
|
7
|
-
description:
|
|
7
|
+
description: `Show a list of read-only fields.`,
|
|
8
8
|
actions: [],
|
|
9
9
|
schemas: [],
|
|
10
10
|
layout: [
|
|
@@ -20,9 +20,9 @@ var step = {
|
|
|
20
20
|
{ label: 'name', value: 'Bob Loblaw' },
|
|
21
21
|
{ label: 'email', value: 'bob.loblaw@law.blog' },
|
|
22
22
|
{ label: 'address', value: '123 Fake St, New York, NY 10001' },
|
|
23
|
-
]
|
|
23
|
+
],
|
|
24
24
|
},
|
|
25
|
-
]
|
|
25
|
+
],
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
type: 'box',
|
|
@@ -36,9 +36,9 @@ var step = {
|
|
|
36
36
|
{ label: 'name', value: 'Bob Loblaw' },
|
|
37
37
|
{ label: 'email', value: 'bob.loblaw@law.blog' },
|
|
38
38
|
{ label: 'address', value: '123 Fake St, New York, NY 10001' },
|
|
39
|
-
]
|
|
39
|
+
],
|
|
40
40
|
},
|
|
41
|
-
]
|
|
41
|
+
],
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
type: 'box',
|
|
@@ -53,10 +53,10 @@ var step = {
|
|
|
53
53
|
{ label: 'name', value: 'Bob Loblaw' },
|
|
54
54
|
{ label: 'email', value: 'bob.loblaw@law.blog' },
|
|
55
55
|
{ label: 'address', value: '123 Fake St, New York, NY 10001' },
|
|
56
|
-
]
|
|
56
|
+
],
|
|
57
57
|
},
|
|
58
|
-
]
|
|
58
|
+
],
|
|
59
59
|
},
|
|
60
|
-
]
|
|
60
|
+
],
|
|
61
61
|
};
|
|
62
|
-
exports
|
|
62
|
+
exports.default = step;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const step = {
|
|
4
4
|
key: 'Examples/Camera Capture',
|
|
5
5
|
title: 'Camera Capture Example',
|
|
6
6
|
type: 'form',
|
|
@@ -16,63 +16,63 @@ var step = {
|
|
|
16
16
|
cameraConfig: {
|
|
17
17
|
assets: {
|
|
18
18
|
overlay: 'https://wise.com/public-resources/assets/camera-guidelines/v2/overlay_passport.png',
|
|
19
|
-
outline: 'https://wise.com/public-resources/assets/camera-guidelines/v2/outline_passport.png'
|
|
19
|
+
outline: 'https://wise.com/public-resources/assets/camera-guidelines/v2/outline_passport.png',
|
|
20
20
|
},
|
|
21
|
-
direction: 'back'
|
|
21
|
+
direction: 'back',
|
|
22
22
|
},
|
|
23
23
|
source: 'camera',
|
|
24
|
-
type: 'string'
|
|
25
|
-
}
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
26
|
},
|
|
27
27
|
required: ['frontSideFile'],
|
|
28
28
|
displayOrder: ['frontSideFile'],
|
|
29
29
|
$id: 'ee2501a9-2566-459b-a42e-f9f0932be0e6',
|
|
30
|
-
type: 'object'
|
|
30
|
+
type: 'object',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
properties: {
|
|
34
34
|
type: {
|
|
35
35
|
refreshFormOnChange: false,
|
|
36
36
|
$id: '9200f887-bfdd-46ad-8386-e76f455a7cc8',
|
|
37
|
-
|
|
37
|
+
const: 'ID_DOCUMENT_WITH_LIVENESS',
|
|
38
38
|
hidden: true,
|
|
39
|
-
type: 'string'
|
|
40
|
-
}
|
|
39
|
+
type: 'string',
|
|
40
|
+
},
|
|
41
41
|
},
|
|
42
42
|
required: ['type'],
|
|
43
43
|
displayOrder: ['type'],
|
|
44
44
|
$id: 'c59a2881-a2e0-4108-b42e-0d30fc95bd7f',
|
|
45
|
-
type: 'object'
|
|
45
|
+
type: 'object',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
properties: {
|
|
49
49
|
profileId: {
|
|
50
50
|
refreshFormOnChange: false,
|
|
51
51
|
$id: '75d888dc-208a-4d7d-a2a7-aeca0dd1b533',
|
|
52
|
-
|
|
52
|
+
const: 14551053,
|
|
53
53
|
hidden: true,
|
|
54
|
-
type: 'integer'
|
|
55
|
-
}
|
|
54
|
+
type: 'integer',
|
|
55
|
+
},
|
|
56
56
|
},
|
|
57
57
|
required: ['profileId'],
|
|
58
58
|
displayOrder: ['profileId'],
|
|
59
59
|
$id: '3eec6add-2d0e-41d7-8317-49542c841484',
|
|
60
|
-
type: 'object'
|
|
60
|
+
type: 'object',
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
properties: {
|
|
64
64
|
sessionId: {
|
|
65
65
|
refreshFormOnChange: false,
|
|
66
66
|
$id: 'df82adf3-8a66-46b5-bef8-72f59be2188d',
|
|
67
|
-
|
|
67
|
+
const: '62dfe7d026c6da1ac0db1ee4',
|
|
68
68
|
hidden: true,
|
|
69
|
-
type: 'string'
|
|
70
|
-
}
|
|
69
|
+
type: 'string',
|
|
70
|
+
},
|
|
71
71
|
},
|
|
72
72
|
required: ['sessionId'],
|
|
73
73
|
displayOrder: ['sessionId'],
|
|
74
74
|
$id: 'e1a8fb67-9af2-47e8-97c1-f2a88e5d5f3a',
|
|
75
|
-
type: 'object'
|
|
75
|
+
type: 'object',
|
|
76
76
|
},
|
|
77
77
|
],
|
|
78
78
|
actions: [
|
|
@@ -82,30 +82,30 @@ var step = {
|
|
|
82
82
|
method: 'POST',
|
|
83
83
|
disabled: false,
|
|
84
84
|
$id: '6789eac5-7bbe-49d8-9da8-6edb8e7ef165',
|
|
85
|
-
title: ''
|
|
85
|
+
title: '',
|
|
86
86
|
},
|
|
87
87
|
],
|
|
88
88
|
layout: [
|
|
89
89
|
{
|
|
90
90
|
type: 'form',
|
|
91
91
|
schema: {
|
|
92
|
-
$ref: 'ee2501a9-2566-459b-a42e-f9f0932be0e6'
|
|
93
|
-
}
|
|
92
|
+
$ref: 'ee2501a9-2566-459b-a42e-f9f0932be0e6',
|
|
93
|
+
},
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
components: [
|
|
97
97
|
{
|
|
98
98
|
action: {
|
|
99
|
-
$ref: '6789eac5-7bbe-49d8-9da8-6edb8e7ef165'
|
|
99
|
+
$ref: '6789eac5-7bbe-49d8-9da8-6edb8e7ef165',
|
|
100
100
|
},
|
|
101
101
|
margin: 'lg',
|
|
102
102
|
size: 'md',
|
|
103
|
-
type: 'button'
|
|
103
|
+
type: 'button',
|
|
104
104
|
},
|
|
105
105
|
],
|
|
106
106
|
border: false,
|
|
107
107
|
width: 'xl',
|
|
108
|
-
type: 'box'
|
|
108
|
+
type: 'box',
|
|
109
109
|
},
|
|
110
110
|
],
|
|
111
111
|
model: {
|
|
@@ -115,9 +115,9 @@ var step = {
|
|
|
115
115
|
documentType: 'PASSPORT',
|
|
116
116
|
type: 'ID_DOCUMENT_WITH_LIVENESS',
|
|
117
117
|
key: {
|
|
118
|
-
value: 'ID_DOCUMENT_WITH_LIVENESS14551053'
|
|
119
|
-
}
|
|
118
|
+
value: 'ID_DOCUMENT_WITH_LIVENESS14551053',
|
|
119
|
+
},
|
|
120
120
|
},
|
|
121
|
-
refreshFormUrl: '/'
|
|
121
|
+
refreshFormUrl: '/',
|
|
122
122
|
};
|
|
123
|
-
exports
|
|
123
|
+
exports.default = step;
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
exports.__esModule = true;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
6
|
exports.stepValidationErrors = exports.singleFileUpload = exports.recipientUpdate = exports.recipient = exports.cameraCapture = void 0;
|
|
15
7
|
var camera_capture_1 = require("./camera-capture");
|
|
16
|
-
|
|
8
|
+
Object.defineProperty(exports, "cameraCapture", { enumerable: true, get: function () { return __importDefault(camera_capture_1).default; } });
|
|
17
9
|
var recipient_1 = require("./recipient");
|
|
18
|
-
|
|
10
|
+
Object.defineProperty(exports, "recipient", { enumerable: true, get: function () { return __importDefault(recipient_1).default; } });
|
|
19
11
|
var recipient_update_1 = require("./recipient-update");
|
|
20
|
-
|
|
12
|
+
Object.defineProperty(exports, "recipientUpdate", { enumerable: true, get: function () { return __importDefault(recipient_update_1).default; } });
|
|
21
13
|
var single_file_upload_1 = require("./single-file-upload");
|
|
22
|
-
|
|
14
|
+
Object.defineProperty(exports, "singleFileUpload", { enumerable: true, get: function () { return __importDefault(single_file_upload_1).default; } });
|
|
23
15
|
var step_validation_errors_1 = require("./step-validation-errors");
|
|
24
|
-
|
|
16
|
+
Object.defineProperty(exports, "stepValidationErrors", { enumerable: true, get: function () { return __importDefault(step_validation_errors_1).default; } });
|