@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.
Files changed (233) hide show
  1. package/build/common/constants/DateMode.js +2 -2
  2. package/build/common/constants/FormControlType.js +2 -2
  3. package/build/common/constants/MonthFormat.js +2 -2
  4. package/build/common/constants/SchemaType.js +2 -2
  5. package/build/common/constants/Size.js +2 -2
  6. package/build/common/constants/index.js +1 -1
  7. package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +15 -27
  8. package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +11 -9
  9. package/build/common/contexts/eventsContext/EventsContext.js +11 -28
  10. package/build/common/contexts/fetcherContexts/FetcherContexts.js +14 -27
  11. package/build/common/contexts/index.js +1 -1
  12. package/build/common/contexts/logContext/LogContext.js +12 -30
  13. package/build/common/hooks/index.js +1 -1
  14. package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +3 -3
  15. package/build/common/hooks/useExternal/useExternal.js +8 -8
  16. package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +20 -31
  17. package/build/common/hooks/usePersistAsync/usePersistAsync.js +60 -139
  18. package/build/common/hooks/usePolling/usePolling.js +20 -21
  19. package/build/common/hooks/usePrevious/usePrevious.js +5 -5
  20. package/build/common/hooks/useStepPolling/useStepPolling.js +15 -14
  21. package/build/common/makeFetcher/index.js +1 -1
  22. package/build/common/makeFetcher/makeFetcher.js +10 -24
  23. package/build/common/messages.js +5 -5
  24. package/build/common/utils/api-utils.js +3 -4
  25. package/build/common/utils/date-utils.js +11 -11
  26. package/build/common/utils/debounce.js +11 -15
  27. package/build/common/utils/file-utils.js +12 -25
  28. package/build/common/utils/id-utils.js +4 -5
  29. package/build/common/utils/index.js +1 -1
  30. package/build/common/utils/is-equal.js +8 -8
  31. package/build/common/utils/schema-utils.js +6 -6
  32. package/build/common/utils/step-utils.js +14 -14
  33. package/build/common/validators/index.js +7 -7
  34. package/build/common/validators/models/model-validators.js +8 -8
  35. package/build/common/validators/models/models.utils.js +29 -42
  36. package/build/common/validators/schemas/schema-validators.js +11 -13
  37. package/build/common/validators/types/type-validators.js +9 -13
  38. package/build/common/validators/validationFailures/validation-failures.js +14 -14
  39. package/build/common/validators/validationFailures/validation-failures.utils.js +5 -7
  40. package/build/common/validators/values/value-validators.js +4 -6
  41. package/build/dynamicFlow/DynamicFlow.js +185 -307
  42. package/build/dynamicFlow/DynamicFlowStep.js +12 -23
  43. package/build/dynamicFlow/DynamicFlowTypes.js +1 -1
  44. package/build/dynamicFlow/index.js +6 -14
  45. package/build/dynamicFlow/stories/DynamicFlow.story.js +20 -20
  46. package/build/dynamicFlow/stories/EditableDynamicFlow.js +20 -33
  47. package/build/dynamicFlow/stories/fixtureFetcher.js +46 -104
  48. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +22 -40
  49. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +6 -6
  50. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +10 -11
  51. package/build/dynamicFlow/utils/index.js +5 -2
  52. package/build/dynamicFlow/utils/responseParsers/response-parsers.js +53 -118
  53. package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +9 -9
  54. package/build/dynamicFlow/utils/useDynamicFlowState.js +51 -74
  55. package/build/dynamicFlow/utils/useLoader.js +9 -20
  56. package/build/fixtures/components/alert.js +8 -8
  57. package/build/fixtures/components/box.js +7 -7
  58. package/build/fixtures/components/button.js +25 -36
  59. package/build/fixtures/components/columns.js +10 -10
  60. package/build/fixtures/components/copyable.js +6 -6
  61. package/build/fixtures/components/decision.js +15 -15
  62. package/build/fixtures/components/heading.js +7 -7
  63. package/build/fixtures/components/image.js +10 -10
  64. package/build/fixtures/components/index.js +17 -25
  65. package/build/fixtures/components/info.js +22 -6
  66. package/build/fixtures/components/list.js +8 -8
  67. package/build/fixtures/components/loading-indicator.js +5 -5
  68. package/build/fixtures/components/paragraph.js +9 -9
  69. package/build/fixtures/components/review.js +11 -11
  70. package/build/fixtures/examples/camera-capture.js +29 -29
  71. package/build/fixtures/examples/index.js +9 -17
  72. package/build/fixtures/examples/recipient-update.js +69 -69
  73. package/build/fixtures/examples/recipient.js +63 -63
  74. package/build/fixtures/examples/single-file-upload.js +21 -21
  75. package/build/fixtures/examples/step-validation-errors.js +21 -21
  76. package/build/fixtures/features/action-response.js +8 -8
  77. package/build/fixtures/features/external.js +8 -8
  78. package/build/fixtures/features/index.js +9 -17
  79. package/build/fixtures/features/persist-async.js +11 -11
  80. package/build/fixtures/features/polling.js +9 -9
  81. package/build/fixtures/features/validation-async.js +10 -10
  82. package/build/fixtures/index.js +11 -22
  83. package/build/fixtures/jsonSchemaForm/allOf.js +30 -30
  84. package/build/fixtures/jsonSchemaForm/audRecipient.js +271 -271
  85. package/build/fixtures/jsonSchemaForm/currency.js +12 -12
  86. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +11 -11
  87. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +11 -11
  88. package/build/fixtures/jsonSchemaForm/oneOf.js +27 -27
  89. package/build/fixtures/jsonSchemaForm/oneOfTabs.js +16 -16
  90. package/build/fixtures/jsonSchemaForm/promotedOneOf.js +17 -17
  91. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +30 -30
  92. package/build/fixtures/jsonSchemaForm/simple.js +16 -16
  93. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +19 -19
  94. package/build/fixtures/jsonSchemaForm/validationAsync.js +8 -8
  95. package/build/fixtures/layouts/all.js +37 -37
  96. package/build/fixtures/layouts/final-step-layout.js +9 -9
  97. package/build/fixtures/layouts/index.js +10 -18
  98. package/build/fixtures/layouts/list.js +10 -10
  99. package/build/fixtures/layouts/pay-in.js +23 -23
  100. package/build/fixtures/layouts/review.js +38 -38
  101. package/build/fixtures/layouts/success.js +15 -15
  102. package/build/fixtures/responses/action-response-final.js +8 -8
  103. package/build/fixtures/responses/action.js +3 -3
  104. package/build/fixtures/responses/exit.js +3 -3
  105. package/build/fixtures/responses/index.js +8 -16
  106. package/build/fixtures/responses/recipient-update-final.js +8 -8
  107. package/build/fixtures/schemas/basic-form.js +11 -11
  108. package/build/fixtures/schemas/index.js +8 -16
  109. package/build/fixtures/schemas/number-and-integer.js +11 -11
  110. package/build/fixtures/schemas/one-of.js +43 -46
  111. package/build/fixtures/schemas/string-formats.js +15 -15
  112. package/build/fixtures/utils/image-util.js +8 -8
  113. package/build/formControl/FormControl.js +118 -148
  114. package/build/formControl/index.js +6 -14
  115. package/build/formControl/utils/index.js +1 -1
  116. package/build/formControl/utils/value-utils.js +18 -23
  117. package/build/i18n/index.js +31 -31
  118. package/build/index.js +13 -10
  119. package/build/jsonSchemaForm/JsonSchemaForm.js +12 -24
  120. package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +24 -37
  121. package/build/jsonSchemaForm/allOfSchema/index.js +6 -14
  122. package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +9 -20
  123. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +9 -20
  124. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +6 -14
  125. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +56 -115
  126. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +7 -7
  127. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +6 -14
  128. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +1 -1
  129. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +19 -71
  130. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +10 -11
  131. package/build/jsonSchemaForm/arrayTypeSchema/index.js +6 -14
  132. package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +45 -62
  133. package/build/jsonSchemaForm/basicTypeSchema/index.js +6 -14
  134. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +39 -50
  135. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +18 -18
  136. package/build/jsonSchemaForm/controlFeedback/index.js +6 -14
  137. package/build/jsonSchemaForm/genericSchema/GenericSchema.js +52 -61
  138. package/build/jsonSchemaForm/genericSchema/index.js +6 -14
  139. package/build/jsonSchemaForm/help/Help.js +9 -9
  140. package/build/jsonSchemaForm/help/Help.messages.js +5 -5
  141. package/build/jsonSchemaForm/help/index.js +6 -14
  142. package/build/jsonSchemaForm/index.js +6 -14
  143. package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +28 -49
  144. package/build/jsonSchemaForm/objectSchema/index.js +6 -14
  145. package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +54 -74
  146. package/build/jsonSchemaForm/oneOfSchema/index.js +6 -14
  147. package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +3 -3
  148. package/build/jsonSchemaForm/oneOfSchema/utils/index.js +1 -1
  149. package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +19 -20
  150. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +11 -22
  151. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +5 -5
  152. package/build/jsonSchemaForm/persistAsyncSchema/index.js +6 -14
  153. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +73 -127
  154. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +6 -14
  155. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +45 -110
  156. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +17 -17
  157. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +6 -14
  158. package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +28 -47
  159. package/build/jsonSchemaForm/promotedOneOfSchema/index.js +6 -14
  160. package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +4 -4
  161. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +13 -24
  162. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +11 -22
  163. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +12 -23
  164. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +24 -26
  165. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +6 -6
  166. package/build/jsonSchemaForm/readOnlySchema/index.js +6 -14
  167. package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +26 -39
  168. package/build/jsonSchemaForm/schemaFormControl/index.js +6 -14
  169. package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +5 -5
  170. package/build/jsonSchemaForm/schemaFormControl/utils/index.js +1 -1
  171. package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +30 -47
  172. package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +57 -119
  173. package/build/jsonSchemaForm/validationAsyncSchema/index.js +6 -14
  174. package/build/layout/DynamicLayout.js +10 -21
  175. package/build/layout/alert/DynamicAlert.js +9 -9
  176. package/build/layout/box/DynamicBox.js +12 -23
  177. package/build/layout/button/DynamicButton.js +16 -27
  178. package/build/layout/columns/DynamicColumns.js +13 -24
  179. package/build/layout/decision/DynamicDecision.js +16 -27
  180. package/build/layout/divider/DynamicDivider.js +7 -8
  181. package/build/layout/external/DynamicExternal.js +16 -28
  182. package/build/layout/external/DynamicExternal.messages.js +5 -5
  183. package/build/layout/form/DynamicForm.js +10 -21
  184. package/build/layout/heading/DynamicHeading.js +12 -23
  185. package/build/layout/icon/DynamicIcon.js +9 -10
  186. package/build/layout/image/DynamicImage.js +43 -93
  187. package/build/layout/index.js +21 -29
  188. package/build/layout/info/DynamicInfo.js +7 -19
  189. package/build/layout/list/DynamicList.js +14 -26
  190. package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +8 -9
  191. package/build/layout/paragraph/DynamicParagraph.js +19 -37
  192. package/build/layout/paragraph/DynamicParagraph.messages.js +6 -6
  193. package/build/layout/paragraph/useSnackBarIfAvailable.js +4 -4
  194. package/build/layout/review/DynamicReview.js +14 -26
  195. package/build/layout/utils.js +4 -6
  196. package/build/step/cameraStep/CameraStep.js +42 -88
  197. package/build/step/cameraStep/cameraCapture/CameraCapture.js +48 -105
  198. package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +7 -7
  199. package/build/step/cameraStep/cameraCapture/components/index.js +10 -28
  200. package/build/step/cameraStep/cameraCapture/hooks/index.js +17 -72
  201. package/build/step/cameraStep/cameraCapture/index.js +6 -14
  202. package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +33 -45
  203. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +8 -19
  204. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +6 -6
  205. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +9 -21
  206. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +7 -7
  207. package/build/step/cameraStep/cameraCapture/screens/index.js +6 -14
  208. package/build/step/cameraStep/cameraCapture/tracking/index.js +17 -99
  209. package/build/step/cameraStep/cameraCapture/utils/index.js +33 -96
  210. package/build/step/cameraStep/index.js +6 -14
  211. package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +20 -21
  212. package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +8 -8
  213. package/build/step/externalConfirmationStep/index.js +6 -14
  214. package/build/step/index.js +7 -15
  215. package/build/step/layoutStep/LayoutStep.js +19 -19
  216. package/build/step/layoutStep/index.js +6 -14
  217. package/build/step/layoutStep/utils/index.js +3 -14
  218. package/build/step/layoutStep/utils/inline-reference-utils.js +29 -46
  219. package/build/step/layoutStep/utils/layout-utils.js +34 -53
  220. package/build/types/common/FormControl.js +1 -1
  221. package/build/types/index.js +13 -13
  222. package/build/types/specification/Action.js +1 -1
  223. package/build/types/specification/FileUploadSchema.js +1 -1
  224. package/build/types/specification/LayoutComponent.js +1 -1
  225. package/build/types/specification/Model.js +9 -17
  226. package/build/types/specification/PersistAsync.js +1 -1
  227. package/build/types/specification/Polling.js +1 -1
  228. package/build/types/specification/Promotion.js +1 -1
  229. package/build/types/specification/Schema.js +8 -8
  230. package/build/types/specification/Step.js +3 -5
  231. package/build/types/specification/ValidationAsync.js +1 -1
  232. package/build/types/specification/core.js +1 -1
  233. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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["default"] = step;
24
+ exports.default = step;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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["default"] = step;
56
+ exports.default = step;
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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(function (size) { return ({
10
+ layout: ['xs', 'sm', 'md', 'lg', 'xl'].map((size) => ({
11
11
  type: 'heading',
12
- text: "This is heading with size: \"".concat(size, "\""),
13
- size: size
14
- }); })
12
+ text: `This is heading with size: "${size}"`,
13
+ size,
14
+ })),
15
15
  };
16
- exports["default"] = step;
16
+ exports.default = step;
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var sizes = ['xs', 'sm', 'md', 'lg', 'xl'];
4
- var step = {
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(function (size) { return [
11
+ layout: sizes.flatMap((size) => [
12
12
  {
13
13
  type: 'paragraph',
14
- text: "This is an image with size: \"".concat(size, "\""),
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: "This is an image with size: \"".concat(size, "\""),
21
- size: size
20
+ text: `This is an image with size: "${size}"`,
21
+ size,
22
22
  },
23
- ]; })
23
+ ]),
24
24
  };
25
- exports["default"] = step;
25
+ exports.default = step;
@@ -1,40 +1,32 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
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
- __createBinding(exports, alert_1, "default", "alert");
8
+ Object.defineProperty(exports, "alert", { enumerable: true, get: function () { return __importDefault(alert_1).default; } });
17
9
  var box_1 = require("./box");
18
- __createBinding(exports, box_1, "default", "box");
10
+ Object.defineProperty(exports, "box", { enumerable: true, get: function () { return __importDefault(box_1).default; } });
19
11
  var button_1 = require("./button");
20
- __createBinding(exports, button_1, "default", "button");
12
+ Object.defineProperty(exports, "button", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
21
13
  var columns_1 = require("./columns");
22
- __createBinding(exports, columns_1, "default", "columns");
14
+ Object.defineProperty(exports, "columns", { enumerable: true, get: function () { return __importDefault(columns_1).default; } });
23
15
  var copyable_1 = require("./copyable");
24
- __createBinding(exports, copyable_1, "default", "copyable");
16
+ Object.defineProperty(exports, "copyable", { enumerable: true, get: function () { return __importDefault(copyable_1).default; } });
25
17
  var decision_1 = require("./decision");
26
- __createBinding(exports, decision_1, "default", "decision");
18
+ Object.defineProperty(exports, "decision", { enumerable: true, get: function () { return __importDefault(decision_1).default; } });
27
19
  var heading_1 = require("./heading");
28
- __createBinding(exports, heading_1, "default", "heading");
20
+ Object.defineProperty(exports, "heading", { enumerable: true, get: function () { return __importDefault(heading_1).default; } });
29
21
  var image_1 = require("./image");
30
- __createBinding(exports, image_1, "default", "image");
22
+ Object.defineProperty(exports, "image", { enumerable: true, get: function () { return __importDefault(image_1).default; } });
31
23
  var info_1 = require("./info");
32
- __createBinding(exports, info_1, "default", "info");
24
+ Object.defineProperty(exports, "info", { enumerable: true, get: function () { return __importDefault(info_1).default; } });
33
25
  var list_1 = require("./list");
34
- __createBinding(exports, list_1, "default", "list");
26
+ Object.defineProperty(exports, "list", { enumerable: true, get: function () { return __importDefault(list_1).default; } });
35
27
  var loading_indicator_1 = require("./loading-indicator");
36
- __createBinding(exports, loading_indicator_1, "default", "loadingIndicator");
28
+ Object.defineProperty(exports, "loadingIndicator", { enumerable: true, get: function () { return __importDefault(loading_indicator_1).default; } });
37
29
  var paragraph_1 = require("./paragraph");
38
- __createBinding(exports, paragraph_1, "default", "paragraph");
30
+ Object.defineProperty(exports, "paragraph", { enumerable: true, get: function () { return __importDefault(paragraph_1).default; } });
39
31
  var review_1 = require("./review");
40
- __createBinding(exports, review_1, "default", "review");
32
+ Object.defineProperty(exports, "review", { enumerable: true, get: function () { return __importDefault(review_1).default; } });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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: "## The Advantages of Using Bananas for Data Backup\n\nIf you're looking for a fruit-based solution to your data backup needs, bananas might just be the perfect choice. Here are some reasons why:\n\n### Portability\n\nBananas are portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go.\n\n### Unique Banana Code\n\nWho needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data.\n\n### Environmentally-Friendly\n\nBut the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the [bananas](https://en.wikipedia.org/wiki/Banana) in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?\n\n",
14
- align: 'left'
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["default"] = step;
35
+ exports.default = step;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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["default"] = step;
36
+ exports.default = step;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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["default"] = step;
18
+ exports.default = step;
@@ -1,30 +1,30 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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: "A block of plain text.",
7
+ description: `A block of plain text.`,
8
8
  actions: [],
9
9
  schemas: [],
10
10
  layout: [
11
11
  {
12
12
  type: 'paragraph',
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."
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: "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."
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: "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?"
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["default"] = step;
30
+ exports.default = step;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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: "Show a list of read-only fields.",
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["default"] = step;
62
+ exports.default = step;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.__esModule = true;
3
- var step = {
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
- "const": 'ID_DOCUMENT_WITH_LIVENESS',
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
- "const": 14551053,
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
- "const": '62dfe7d026c6da1ac0db1ee4',
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["default"] = step;
123
+ exports.default = step;
@@ -1,24 +1,16 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
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
- __createBinding(exports, camera_capture_1, "default", "cameraCapture");
8
+ Object.defineProperty(exports, "cameraCapture", { enumerable: true, get: function () { return __importDefault(camera_capture_1).default; } });
17
9
  var recipient_1 = require("./recipient");
18
- __createBinding(exports, recipient_1, "default", "recipient");
10
+ Object.defineProperty(exports, "recipient", { enumerable: true, get: function () { return __importDefault(recipient_1).default; } });
19
11
  var recipient_update_1 = require("./recipient-update");
20
- __createBinding(exports, recipient_update_1, "default", "recipientUpdate");
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
- __createBinding(exports, single_file_upload_1, "default", "singleFileUpload");
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
- __createBinding(exports, step_validation_errors_1, "default", "stepValidationErrors");
16
+ Object.defineProperty(exports, "stepValidationErrors", { enumerable: true, get: function () { return __importDefault(step_validation_errors_1).default; } });