@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 schema = {
|
|
4
4
|
type: 'object',
|
|
5
5
|
displayOrder: ['currency'],
|
|
6
6
|
properties: {
|
|
@@ -8,43 +8,43 @@ var schema = {
|
|
|
8
8
|
title: 'Currency',
|
|
9
9
|
type: 'string',
|
|
10
10
|
oneOf: [
|
|
11
|
-
{ title: 'EUR', icon: { name: 'flag-eur' }, description: 'Euro',
|
|
11
|
+
{ title: 'EUR', icon: { name: 'flag-eur' }, description: 'Euro', const: 'EUR' },
|
|
12
12
|
{
|
|
13
13
|
title: 'GBP',
|
|
14
14
|
icon: { name: 'flag-gbp' },
|
|
15
15
|
description: 'British pound',
|
|
16
|
-
|
|
16
|
+
const: 'GBP',
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
title: 'USD',
|
|
20
20
|
icon: { name: 'flag-usd' },
|
|
21
21
|
description: 'United States dollar',
|
|
22
|
-
|
|
22
|
+
const: 'USD',
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
title: 'ARS',
|
|
26
26
|
icon: { name: 'flag-ars' },
|
|
27
27
|
description: 'Argentine peso',
|
|
28
|
-
|
|
28
|
+
const: 'ARS',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
title: 'AUD',
|
|
32
32
|
icon: { name: 'flag-aud' },
|
|
33
33
|
description: 'Australian dollar',
|
|
34
|
-
|
|
34
|
+
const: 'AUD',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
title: 'AED',
|
|
38
38
|
icon: { name: 'flag-aed' },
|
|
39
39
|
description: 'United Arab Emirates dirham',
|
|
40
|
-
|
|
40
|
+
const: 'AED',
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
43
|
validationMessages: { required: 'Please enter currency.' },
|
|
44
44
|
refreshFormOnChange: true,
|
|
45
|
-
|
|
46
|
-
}
|
|
45
|
+
default: 'EUR',
|
|
46
|
+
},
|
|
47
47
|
},
|
|
48
|
-
required: ['currency']
|
|
48
|
+
required: ['currency'],
|
|
49
49
|
};
|
|
50
|
-
exports
|
|
50
|
+
exports.default = schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
type: 'object',
|
|
5
5
|
displayOrder: ['multiUpload'],
|
|
6
6
|
properties: {
|
|
@@ -24,16 +24,16 @@ var schema = {
|
|
|
24
24
|
description: 'PNG, JPG, or PDF, less than 5mb',
|
|
25
25
|
accepts: ['image/png', 'image/jpg', 'application/pdf'],
|
|
26
26
|
validationMessages: {
|
|
27
|
-
maxSize: 'Your file is too large'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
27
|
+
maxSize: 'Your file is too large',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
31
|
},
|
|
32
32
|
validationMessages: {
|
|
33
33
|
minItems: 'minimum items not met error (from schema)',
|
|
34
|
-
maxItems: 'maximum items uploaded already (from schema)'
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
34
|
+
maxItems: 'maximum items uploaded already (from schema)',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
38
|
};
|
|
39
|
-
exports
|
|
39
|
+
exports.default = schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
type: 'object',
|
|
5
5
|
displayOrder: ['multiUpload'],
|
|
6
6
|
properties: {
|
|
@@ -23,16 +23,16 @@ var schema = {
|
|
|
23
23
|
description: 'PNG, JPG, or PDF, less than 5mb',
|
|
24
24
|
accepts: ['image/png', 'image/jpg', 'application/pdf'],
|
|
25
25
|
validationMessages: {
|
|
26
|
-
maxSize: 'Your file is too large'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
26
|
+
maxSize: 'Your file is too large',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
30
|
},
|
|
31
31
|
validationMessages: {
|
|
32
32
|
minItems: 'minimum items not met error (from schema)',
|
|
33
|
-
maxItems: 'maximum items uploaded already (from schema)'
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
33
|
+
maxItems: 'maximum items uploaded already (from schema)',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
37
|
};
|
|
38
|
-
exports
|
|
38
|
+
exports.default = schema;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
type: 'object',
|
|
5
5
|
required: ['name', 'details'],
|
|
6
6
|
displayOrder: ['name', 'bankDetails', 'details'],
|
|
7
7
|
properties: {
|
|
8
8
|
name: {
|
|
9
9
|
type: 'string',
|
|
10
|
-
title: 'Full name'
|
|
10
|
+
title: 'Full name',
|
|
11
11
|
},
|
|
12
12
|
bankDetails: {
|
|
13
13
|
title: 'Bank type',
|
|
@@ -23,9 +23,9 @@ var schema = {
|
|
|
23
23
|
code: {
|
|
24
24
|
type: 'string',
|
|
25
25
|
title: 'Code',
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
}
|
|
26
|
+
default: 'SOIWEUWQE',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
title: 'Bank Number',
|
|
@@ -38,15 +38,15 @@ var schema = {
|
|
|
38
38
|
title: 'Bank Number',
|
|
39
39
|
displayFormat: '**-**-**',
|
|
40
40
|
minLength: 6,
|
|
41
|
-
maxLength: 7
|
|
41
|
+
maxLength: 7,
|
|
42
42
|
},
|
|
43
43
|
bankSerial: {
|
|
44
44
|
type: 'string',
|
|
45
45
|
title: 'Bank Serial',
|
|
46
46
|
minLength: 8,
|
|
47
|
-
maxLength: 10
|
|
48
|
-
}
|
|
49
|
-
}
|
|
47
|
+
maxLength: 10,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
title: 'Bank Details',
|
|
@@ -59,23 +59,23 @@ var schema = {
|
|
|
59
59
|
title: 'Bank ID',
|
|
60
60
|
displayFormat: '**-**-**',
|
|
61
61
|
minLength: 6,
|
|
62
|
-
maxLength: 7
|
|
62
|
+
maxLength: 7,
|
|
63
63
|
},
|
|
64
64
|
bankLicense: {
|
|
65
65
|
type: 'string',
|
|
66
66
|
title: 'Bank License',
|
|
67
67
|
minLength: 8,
|
|
68
|
-
maxLength: 10
|
|
68
|
+
maxLength: 10,
|
|
69
69
|
},
|
|
70
70
|
bankName: {
|
|
71
71
|
type: 'string',
|
|
72
72
|
title: 'Bank Name',
|
|
73
73
|
minLength: 8,
|
|
74
|
-
maxLength: 10
|
|
75
|
-
}
|
|
76
|
-
}
|
|
74
|
+
maxLength: 10,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
77
|
},
|
|
78
|
-
]
|
|
78
|
+
],
|
|
79
79
|
},
|
|
80
80
|
details: {
|
|
81
81
|
title: 'Account type',
|
|
@@ -89,9 +89,9 @@ var schema = {
|
|
|
89
89
|
iban: {
|
|
90
90
|
type: 'string',
|
|
91
91
|
title: 'IBAN',
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
}
|
|
92
|
+
default: 'ABCD1234EF123456',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
title: 'Sort code & Account number',
|
|
@@ -104,18 +104,18 @@ var schema = {
|
|
|
104
104
|
title: 'Sort code',
|
|
105
105
|
displayFormat: '**-**-**',
|
|
106
106
|
minLength: 6,
|
|
107
|
-
maxLength: 7
|
|
107
|
+
maxLength: 7,
|
|
108
108
|
},
|
|
109
109
|
accountNumber: {
|
|
110
110
|
type: 'string',
|
|
111
111
|
title: 'Account number',
|
|
112
112
|
minLength: 8,
|
|
113
|
-
maxLength: 10
|
|
114
|
-
}
|
|
115
|
-
}
|
|
113
|
+
maxLength: 10,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
116
|
},
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
}
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
120
|
};
|
|
121
|
-
exports
|
|
121
|
+
exports.default = schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
allOf: [
|
|
5
5
|
{
|
|
6
6
|
title: 'Recipient Bank Details',
|
|
@@ -12,21 +12,21 @@ var schema = {
|
|
|
12
12
|
properties: {
|
|
13
13
|
name: {
|
|
14
14
|
title: 'Full name',
|
|
15
|
-
type: 'string'
|
|
15
|
+
type: 'string',
|
|
16
16
|
},
|
|
17
17
|
sortcode: {
|
|
18
18
|
title: 'Sort Code',
|
|
19
|
-
type: 'string'
|
|
19
|
+
type: 'string',
|
|
20
20
|
},
|
|
21
21
|
account: {
|
|
22
22
|
title: 'Account number',
|
|
23
|
-
type: 'string'
|
|
23
|
+
type: 'string',
|
|
24
24
|
},
|
|
25
25
|
type: {
|
|
26
26
|
type: 'string',
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
}
|
|
27
|
+
const: 'SortCode',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
title: 'IBAN Tab',
|
|
@@ -35,21 +35,21 @@ var schema = {
|
|
|
35
35
|
properties: {
|
|
36
36
|
name: {
|
|
37
37
|
title: 'Full name',
|
|
38
|
-
type: 'string'
|
|
38
|
+
type: 'string',
|
|
39
39
|
},
|
|
40
40
|
iban: {
|
|
41
41
|
title: 'IBAN',
|
|
42
|
-
type: 'string'
|
|
42
|
+
type: 'string',
|
|
43
43
|
},
|
|
44
44
|
type: {
|
|
45
45
|
type: 'string',
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
}
|
|
46
|
+
const: 'Iban',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
49
|
},
|
|
50
50
|
],
|
|
51
|
-
control: 'tab'
|
|
51
|
+
control: 'tab',
|
|
52
52
|
},
|
|
53
|
-
]
|
|
53
|
+
],
|
|
54
54
|
};
|
|
55
|
-
exports
|
|
55
|
+
exports.default = schema;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
title: 'Details',
|
|
5
5
|
alert: {
|
|
6
6
|
context: 'positive',
|
|
7
|
-
markdown: 'Some alert here!'
|
|
7
|
+
markdown: 'Some alert here!',
|
|
8
8
|
},
|
|
9
9
|
oneOf: [
|
|
10
10
|
{
|
|
@@ -14,9 +14,9 @@ var schema = {
|
|
|
14
14
|
properties: {
|
|
15
15
|
name: {
|
|
16
16
|
title: 'Name',
|
|
17
|
-
type: 'string'
|
|
18
|
-
}
|
|
19
|
-
}
|
|
17
|
+
type: 'string',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
title: 'Address details',
|
|
@@ -25,9 +25,9 @@ var schema = {
|
|
|
25
25
|
properties: {
|
|
26
26
|
name: {
|
|
27
27
|
title: 'Address',
|
|
28
|
-
type: 'string'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
28
|
+
type: 'string',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
title: 'General details',
|
|
@@ -38,12 +38,12 @@ var schema = {
|
|
|
38
38
|
properties: {
|
|
39
39
|
name: {
|
|
40
40
|
title: 'Hobbies',
|
|
41
|
-
type: 'string'
|
|
42
|
-
}
|
|
41
|
+
type: 'string',
|
|
42
|
+
},
|
|
43
43
|
},
|
|
44
44
|
image: {
|
|
45
|
-
url: 'https://wise.com/public-resources/assets/flags/square/gbp.svg'
|
|
46
|
-
}
|
|
45
|
+
url: 'https://wise.com/public-resources/assets/flags/square/gbp.svg',
|
|
46
|
+
},
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
49
|
control: 'tab',
|
|
@@ -51,8 +51,8 @@ var schema = {
|
|
|
51
51
|
other: {
|
|
52
52
|
title: 'Select a different group',
|
|
53
53
|
icon: { name: 'bank' },
|
|
54
|
-
heading: { text: 'Other details' }
|
|
55
|
-
}
|
|
56
|
-
}
|
|
54
|
+
heading: { text: 'Other details' },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
57
|
};
|
|
58
|
-
exports
|
|
58
|
+
exports.default = schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
allOf: [
|
|
5
5
|
{
|
|
6
6
|
type: 'object',
|
|
@@ -9,9 +9,9 @@ var schema = {
|
|
|
9
9
|
email: {
|
|
10
10
|
title: 'Their email',
|
|
11
11
|
type: 'string',
|
|
12
|
-
placeholder: 'example@example.ex'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
12
|
+
placeholder: 'example@example.ex',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
title: 'Recipient Bank Details',
|
|
@@ -23,21 +23,21 @@ var schema = {
|
|
|
23
23
|
properties: {
|
|
24
24
|
name: {
|
|
25
25
|
title: 'Full name',
|
|
26
|
-
type: 'string'
|
|
26
|
+
type: 'string',
|
|
27
27
|
},
|
|
28
28
|
sortcode: {
|
|
29
29
|
title: 'Sort Code',
|
|
30
|
-
type: 'string'
|
|
30
|
+
type: 'string',
|
|
31
31
|
},
|
|
32
32
|
account: {
|
|
33
33
|
title: 'Account number',
|
|
34
|
-
type: 'string'
|
|
34
|
+
type: 'string',
|
|
35
35
|
},
|
|
36
36
|
type: {
|
|
37
37
|
type: 'string',
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
}
|
|
38
|
+
const: 'SortCode',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
title: 'IBAN',
|
|
@@ -46,17 +46,17 @@ var schema = {
|
|
|
46
46
|
properties: {
|
|
47
47
|
name: {
|
|
48
48
|
title: 'Full name',
|
|
49
|
-
type: 'string'
|
|
49
|
+
type: 'string',
|
|
50
50
|
},
|
|
51
51
|
iban: {
|
|
52
52
|
title: 'IBAN',
|
|
53
|
-
type: 'string'
|
|
53
|
+
type: 'string',
|
|
54
54
|
},
|
|
55
55
|
type: {
|
|
56
56
|
type: 'string',
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
}
|
|
57
|
+
const: 'Iban',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
title: 'General details',
|
|
@@ -65,40 +65,40 @@ var schema = {
|
|
|
65
65
|
promoted: true,
|
|
66
66
|
alert: {
|
|
67
67
|
context: 'neutral',
|
|
68
|
-
markdown: "Enter your recipient's email above and we'll send them a link with clear instructions to claim the money securely."
|
|
68
|
+
markdown: "Enter your recipient's email above and we'll send them a link with clear instructions to claim the money securely.",
|
|
69
69
|
},
|
|
70
70
|
displayOrder: ['name', 'type'],
|
|
71
71
|
properties: {
|
|
72
72
|
name: {
|
|
73
73
|
title: 'Full name',
|
|
74
|
-
type: 'string'
|
|
74
|
+
type: 'string',
|
|
75
75
|
},
|
|
76
76
|
type: {
|
|
77
77
|
type: 'string',
|
|
78
|
-
|
|
79
|
-
}
|
|
78
|
+
const: 'Email',
|
|
79
|
+
},
|
|
80
80
|
},
|
|
81
81
|
image: {
|
|
82
|
-
url: 'https://picsum.photos/id/237/200/300'
|
|
83
|
-
}
|
|
82
|
+
url: 'https://picsum.photos/id/237/200/300',
|
|
83
|
+
},
|
|
84
84
|
},
|
|
85
85
|
],
|
|
86
86
|
control: 'tab',
|
|
87
87
|
promotion: {
|
|
88
|
-
|
|
88
|
+
default: 'other',
|
|
89
89
|
checkedMeans: 'other',
|
|
90
90
|
control: 'checkbox',
|
|
91
91
|
other: {
|
|
92
92
|
title: 'I know their bank details',
|
|
93
93
|
icon: {
|
|
94
|
-
name: 'bank'
|
|
94
|
+
name: 'bank',
|
|
95
95
|
},
|
|
96
96
|
heading: {
|
|
97
|
-
text: 'Bank details'
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
97
|
+
text: 'Bank details',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
101
|
},
|
|
102
|
-
]
|
|
102
|
+
],
|
|
103
103
|
};
|
|
104
|
-
exports
|
|
104
|
+
exports.default = schema;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
title: 'Object schema',
|
|
5
5
|
type: 'object',
|
|
6
6
|
alert: {
|
|
7
7
|
context: 'warning',
|
|
8
|
-
markdown: 'Some **markdown** goes here'
|
|
8
|
+
markdown: 'Some **markdown** goes here',
|
|
9
9
|
},
|
|
10
10
|
properties: {
|
|
11
11
|
number: {
|
|
12
12
|
type: 'number',
|
|
13
13
|
title: 'Number input',
|
|
14
14
|
help: {
|
|
15
|
-
markdown: 'Please see some help [here](https://transferwise.github.io/neptune-web/components/dynamicForms/JsonSchemaForm)'
|
|
16
|
-
}
|
|
15
|
+
markdown: 'Please see some help [here](https://transferwise.github.io/neptune-web/components/dynamicForms/JsonSchemaForm)',
|
|
16
|
+
},
|
|
17
17
|
},
|
|
18
18
|
string: {
|
|
19
19
|
type: 'string',
|
|
20
|
-
title: 'Text input'
|
|
20
|
+
title: 'Text input',
|
|
21
21
|
},
|
|
22
22
|
select: {
|
|
23
23
|
type: 'integer',
|
|
@@ -27,24 +27,24 @@ var schema = {
|
|
|
27
27
|
oneOf: [
|
|
28
28
|
{
|
|
29
29
|
title: 'One',
|
|
30
|
-
|
|
31
|
-
description: 'The first number'
|
|
30
|
+
const: 1,
|
|
31
|
+
description: 'The first number',
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
title: 'Two',
|
|
35
|
-
|
|
36
|
-
description: 'The second number'
|
|
35
|
+
const: 2,
|
|
36
|
+
description: 'The second number',
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
title: 'Three',
|
|
40
|
-
|
|
40
|
+
const: 3,
|
|
41
41
|
description: 'The third number',
|
|
42
|
-
disabled: true
|
|
42
|
+
disabled: true,
|
|
43
43
|
},
|
|
44
|
-
]
|
|
45
|
-
}
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
46
|
},
|
|
47
47
|
required: ['number', 'string', 'select'],
|
|
48
|
-
displayOrder: ['number', 'string', 'select']
|
|
48
|
+
displayOrder: ['number', 'string', 'select'],
|
|
49
49
|
};
|
|
50
|
-
exports
|
|
50
|
+
exports.default = schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
3
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schema = {
|
|
4
4
|
title: 'Object schema',
|
|
5
5
|
type: 'object',
|
|
6
6
|
displayOrder: ['number', 'string', 'select'],
|
|
@@ -16,9 +16,9 @@ var schema = {
|
|
|
16
16
|
schema: {
|
|
17
17
|
title: 'Card Number',
|
|
18
18
|
format: 'base64url',
|
|
19
|
-
type: 'string'
|
|
20
|
-
}
|
|
21
|
-
}
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
22
|
},
|
|
23
23
|
string: {
|
|
24
24
|
type: 'string',
|
|
@@ -35,13 +35,13 @@ var schema = {
|
|
|
35
35
|
validationMessages: {
|
|
36
36
|
minLength: 'Card number is too short!',
|
|
37
37
|
maxLength: 'Card number is too long!',
|
|
38
|
-
pattern: 'Card number is invalid!'
|
|
38
|
+
pattern: 'Card number is invalid!',
|
|
39
39
|
},
|
|
40
40
|
pattern: '^[0-9*]{13,19}$',
|
|
41
41
|
minLength: 13,
|
|
42
|
-
maxLength: 19
|
|
43
|
-
}
|
|
44
|
-
}
|
|
42
|
+
maxLength: 19,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
45
|
},
|
|
46
46
|
select: {
|
|
47
47
|
type: 'integer',
|
|
@@ -51,23 +51,23 @@ var schema = {
|
|
|
51
51
|
oneOf: [
|
|
52
52
|
{
|
|
53
53
|
title: 'One',
|
|
54
|
-
|
|
55
|
-
description: 'The first number'
|
|
54
|
+
const: 1,
|
|
55
|
+
description: 'The first number',
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
title: 'Two',
|
|
59
|
-
|
|
60
|
-
description: 'The second number'
|
|
59
|
+
const: 2,
|
|
60
|
+
description: 'The second number',
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
title: 'Three',
|
|
64
|
-
|
|
64
|
+
const: 3,
|
|
65
65
|
description: 'The third number',
|
|
66
|
-
disabled: true
|
|
66
|
+
disabled: true,
|
|
67
67
|
},
|
|
68
|
-
]
|
|
69
|
-
}
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
70
|
},
|
|
71
|
-
required: ['number', 'string', 'select']
|
|
71
|
+
required: ['number', 'string', 'select'],
|
|
72
72
|
};
|
|
73
|
-
exports
|
|
73
|
+
exports.default = schema;
|