@wise/dynamic-flow-client 0.3.0-beta-d45b31.38 → 0.3.0

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 (485) hide show
  1. package/README.md +50 -28
  2. package/build/common/constants/DateMode.d.ts +4 -0
  3. package/build/common/constants/DateMode.js +4 -0
  4. package/build/common/constants/FormControlType.d.ts +17 -0
  5. package/build/common/constants/FormControlType.js +17 -0
  6. package/build/common/constants/MonthFormat.d.ts +4 -0
  7. package/build/common/constants/MonthFormat.js +4 -0
  8. package/build/common/constants/SchemaType.d.ts +11 -0
  9. package/build/common/constants/SchemaType.js +11 -0
  10. package/build/common/constants/Size.d.ts +7 -0
  11. package/build/common/constants/Size.js +7 -0
  12. package/build/common/constants/index.d.ts +5 -0
  13. package/build/common/constants/index.js +5 -0
  14. package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +11 -0
  15. package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +36 -0
  16. package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +4 -0
  17. package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +13 -0
  18. package/build/common/contexts/eventsContext/EventsContext.d.ts +15 -0
  19. package/build/common/contexts/eventsContext/EventsContext.js +33 -0
  20. package/build/common/contexts/fetcherContexts/FetcherContexts.d.ts +18 -0
  21. package/build/common/contexts/fetcherContexts/FetcherContexts.js +35 -0
  22. package/build/common/contexts/index.d.ts +4 -0
  23. package/build/common/contexts/index.js +4 -0
  24. package/build/common/contexts/logContext/LogContext.d.ts +22 -0
  25. package/build/common/contexts/logContext/LogContext.js +39 -0
  26. package/build/common/hooks/index.d.ts +7 -0
  27. package/build/common/hooks/index.js +7 -0
  28. package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +2 -0
  29. package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +9 -0
  30. package/build/common/hooks/useExternal/useExternal.d.ts +4 -0
  31. package/build/common/hooks/useExternal/useExternal.js +15 -0
  32. package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +12 -0
  33. package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +69 -0
  34. package/build/common/hooks/usePersistAsync/usePersistAsync.d.ts +7 -0
  35. package/build/common/hooks/usePersistAsync/usePersistAsync.js +170 -0
  36. package/build/common/hooks/usePolling/usePolling.d.ts +11 -0
  37. package/build/common/hooks/usePolling/usePolling.js +48 -0
  38. package/build/common/hooks/usePrevious/usePrevious.d.ts +1 -0
  39. package/build/common/hooks/usePrevious/usePrevious.js +8 -0
  40. package/build/common/hooks/useStepPolling/useStepPolling.d.ts +2 -0
  41. package/build/common/hooks/useStepPolling/useStepPolling.js +44 -0
  42. package/build/common/makeFetcher/index.d.ts +1 -0
  43. package/build/common/makeFetcher/index.js +1 -0
  44. package/build/common/makeFetcher/makeFetcher.d.ts +2 -0
  45. package/build/common/makeFetcher/makeFetcher.js +33 -0
  46. package/build/common/messages.d.ts +8 -0
  47. package/build/common/messages.js +8 -0
  48. package/build/common/utils/api-utils.d.ts +4 -0
  49. package/build/common/utils/api-utils.js +13 -0
  50. package/build/common/utils/date-utils.d.ts +2 -0
  51. package/build/common/utils/date-utils.js +22 -0
  52. package/build/common/utils/debounce.d.ts +6 -0
  53. package/build/common/utils/debounce.js +38 -0
  54. package/build/common/utils/file-utils.d.ts +4 -0
  55. package/build/common/utils/file-utils.js +45 -0
  56. package/build/common/utils/id-utils.d.ts +1 -0
  57. package/build/common/utils/id-utils.js +5 -0
  58. package/build/common/utils/index.d.ts +8 -0
  59. package/build/common/utils/index.js +8 -0
  60. package/build/common/utils/is-equal.d.ts +1 -0
  61. package/build/common/utils/is-equal.js +21 -0
  62. package/build/common/utils/schema-utils.d.ts +13 -0
  63. package/build/common/utils/schema-utils.js +48 -0
  64. package/build/common/utils/step-utils.d.ts +7 -0
  65. package/build/common/utils/step-utils.js +42 -0
  66. package/build/common/validators/index.d.ts +5 -0
  67. package/build/common/validators/index.js +5 -0
  68. package/build/common/validators/models/model-validators.d.ts +4 -0
  69. package/build/common/validators/models/model-validators.js +63 -0
  70. package/build/common/validators/models/models.utils.d.ts +10 -0
  71. package/build/common/validators/models/models.utils.js +118 -0
  72. package/build/common/validators/schemas/schema-validators.d.ts +9 -0
  73. package/build/common/validators/schemas/schema-validators.js +98 -0
  74. package/build/common/validators/types/type-validators.d.ts +8 -0
  75. package/build/common/validators/types/type-validators.js +14 -0
  76. package/build/common/validators/validationFailures/validation-failures.d.ts +23 -0
  77. package/build/common/validators/validationFailures/validation-failures.js +140 -0
  78. package/build/common/validators/validationFailures/validation-failures.utils.d.ts +10 -0
  79. package/build/common/validators/validationFailures/validation-failures.utils.js +40 -0
  80. package/build/common/validators/values/value-validators.d.ts +2 -0
  81. package/build/common/validators/values/value-validators.js +6 -0
  82. package/build/dynamicFlow/DynamicFlow.d.ts +3 -0
  83. package/build/dynamicFlow/DynamicFlow.js +370 -0
  84. package/build/dynamicFlow/DynamicFlowStep.d.ts +8 -0
  85. package/build/dynamicFlow/DynamicFlowStep.js +32 -0
  86. package/build/dynamicFlow/DynamicFlowTypes.d.ts +51 -0
  87. package/build/dynamicFlow/DynamicFlowTypes.js +4 -0
  88. package/build/dynamicFlow/index.d.ts +1 -0
  89. package/build/dynamicFlow/index.js +1 -0
  90. package/build/dynamicFlow/stories/DynamicFlow.story.d.ts +1 -0
  91. package/build/dynamicFlow/stories/DynamicFlow.story.js +30 -0
  92. package/build/dynamicFlow/stories/EditableDynamicFlow.d.ts +4 -0
  93. package/build/dynamicFlow/stories/EditableDynamicFlow.js +62 -0
  94. package/build/dynamicFlow/stories/fixtureFetcher.d.ts +2 -0
  95. package/build/dynamicFlow/stories/fixtureFetcher.js +114 -0
  96. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.d.ts +20 -0
  97. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +45 -0
  98. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.d.ts +13 -0
  99. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +13 -0
  100. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.d.ts +5 -0
  101. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +12 -0
  102. package/build/dynamicFlow/utils/index.d.ts +5 -0
  103. package/build/dynamicFlow/utils/index.js +5 -0
  104. package/build/dynamicFlow/utils/responseParsers/response-parsers.d.ts +17 -0
  105. package/build/dynamicFlow/utils/responseParsers/response-parsers.js +125 -0
  106. package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +5 -0
  107. package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +23 -0
  108. package/build/dynamicFlow/utils/useDynamicFlowState.d.ts +18 -0
  109. package/build/dynamicFlow/utils/useDynamicFlowState.js +110 -0
  110. package/build/dynamicFlow/utils/useLoader.d.ts +9 -0
  111. package/build/dynamicFlow/utils/useLoader.js +22 -0
  112. package/build/fixtures/components/alert.d.ts +3 -0
  113. package/build/fixtures/components/alert.js +31 -0
  114. package/build/fixtures/components/box.d.ts +3 -0
  115. package/build/fixtures/components/box.js +20 -0
  116. package/build/fixtures/components/button.d.ts +3 -0
  117. package/build/fixtures/components/button.js +65 -0
  118. package/build/fixtures/components/columns.d.ts +3 -0
  119. package/build/fixtures/components/columns.js +36 -0
  120. package/build/fixtures/components/copyable.d.ts +3 -0
  121. package/build/fixtures/components/copyable.js +22 -0
  122. package/build/fixtures/components/decision.d.ts +3 -0
  123. package/build/fixtures/components/decision.js +54 -0
  124. package/build/fixtures/components/heading.d.ts +3 -0
  125. package/build/fixtures/components/heading.js +14 -0
  126. package/build/fixtures/components/image.d.ts +3 -0
  127. package/build/fixtures/components/image.js +23 -0
  128. package/build/fixtures/components/index.d.ts +13 -0
  129. package/build/fixtures/components/index.js +13 -0
  130. package/build/fixtures/components/info.d.ts +3 -0
  131. package/build/fixtures/components/info.js +17 -0
  132. package/build/fixtures/components/list.d.ts +3 -0
  133. package/build/fixtures/components/list.js +34 -0
  134. package/build/fixtures/components/loading-indicator.d.ts +3 -0
  135. package/build/fixtures/components/loading-indicator.js +16 -0
  136. package/build/fixtures/components/paragraph.d.ts +3 -0
  137. package/build/fixtures/components/paragraph.js +28 -0
  138. package/build/fixtures/components/review.d.ts +3 -0
  139. package/build/fixtures/components/review.js +60 -0
  140. package/build/fixtures/examples/camera-capture.d.ts +3 -0
  141. package/build/fixtures/examples/camera-capture.js +121 -0
  142. package/build/fixtures/examples/index.d.ts +5 -0
  143. package/build/fixtures/examples/index.js +5 -0
  144. package/build/fixtures/examples/recipient-update.d.ts +3 -0
  145. package/build/fixtures/examples/recipient-update.js +250 -0
  146. package/build/fixtures/examples/recipient.d.ts +3 -0
  147. package/build/fixtures/examples/recipient.js +313 -0
  148. package/build/fixtures/examples/single-file-upload.d.ts +3 -0
  149. package/build/fixtures/examples/single-file-upload.js +98 -0
  150. package/build/fixtures/examples/step-validation-errors.d.ts +3 -0
  151. package/build/fixtures/examples/step-validation-errors.js +75 -0
  152. package/build/fixtures/features/action-response.d.ts +3 -0
  153. package/build/fixtures/features/action-response.js +29 -0
  154. package/build/fixtures/features/external.d.ts +3 -0
  155. package/build/fixtures/features/external.js +31 -0
  156. package/build/fixtures/features/index.d.ts +5 -0
  157. package/build/fixtures/features/index.js +5 -0
  158. package/build/fixtures/features/persist-async.d.ts +3 -0
  159. package/build/fixtures/features/persist-async.js +44 -0
  160. package/build/fixtures/features/polling.d.ts +3 -0
  161. package/build/fixtures/features/polling.js +33 -0
  162. package/build/fixtures/features/validation-async.d.ts +3 -0
  163. package/build/fixtures/features/validation-async.js +38 -0
  164. package/build/fixtures/index.d.ts +46 -0
  165. package/build/fixtures/index.js +23 -0
  166. package/build/fixtures/jsonSchemaForm/allOf.d.ts +3 -0
  167. package/build/fixtures/jsonSchemaForm/allOf.js +119 -0
  168. package/build/fixtures/jsonSchemaForm/audRecipient.d.ts +3 -0
  169. package/build/fixtures/jsonSchemaForm/audRecipient.js +1104 -0
  170. package/build/fixtures/jsonSchemaForm/currency.d.ts +3 -0
  171. package/build/fixtures/jsonSchemaForm/currency.js +48 -0
  172. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.d.ts +3 -0
  173. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +37 -0
  174. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.d.ts +3 -0
  175. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +36 -0
  176. package/build/fixtures/jsonSchemaForm/oneOf.d.ts +3 -0
  177. package/build/fixtures/jsonSchemaForm/oneOf.js +119 -0
  178. package/build/fixtures/jsonSchemaForm/oneOfTabs.d.ts +3 -0
  179. package/build/fixtures/jsonSchemaForm/oneOfTabs.js +53 -0
  180. package/build/fixtures/jsonSchemaForm/promotedOneOf.d.ts +3 -0
  181. package/build/fixtures/jsonSchemaForm/promotedOneOf.js +56 -0
  182. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.d.ts +3 -0
  183. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +102 -0
  184. package/build/fixtures/jsonSchemaForm/simple.d.ts +3 -0
  185. package/build/fixtures/jsonSchemaForm/simple.js +48 -0
  186. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.d.ts +3 -0
  187. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +71 -0
  188. package/build/fixtures/jsonSchemaForm/validationAsync.d.ts +3 -0
  189. package/build/fixtures/jsonSchemaForm/validationAsync.js +23 -0
  190. package/build/fixtures/layouts/all.d.ts +3 -0
  191. package/build/fixtures/layouts/all.js +176 -0
  192. package/build/fixtures/layouts/final-step-layout.d.ts +3 -0
  193. package/build/fixtures/layouts/final-step-layout.js +39 -0
  194. package/build/fixtures/layouts/index.d.ts +6 -0
  195. package/build/fixtures/layouts/index.js +6 -0
  196. package/build/fixtures/layouts/list.d.ts +3 -0
  197. package/build/fixtures/layouts/list.js +33 -0
  198. package/build/fixtures/layouts/pay-in.d.ts +3 -0
  199. package/build/fixtures/layouts/pay-in.js +97 -0
  200. package/build/fixtures/layouts/review.d.ts +3 -0
  201. package/build/fixtures/layouts/review.js +160 -0
  202. package/build/fixtures/layouts/success.d.ts +3 -0
  203. package/build/fixtures/layouts/success.js +66 -0
  204. package/build/fixtures/responses/action-response-final.d.ts +3 -0
  205. package/build/fixtures/responses/action-response-final.js +24 -0
  206. package/build/fixtures/responses/action.d.ts +5 -0
  207. package/build/fixtures/responses/action.js +2 -0
  208. package/build/fixtures/responses/exit.d.ts +6 -0
  209. package/build/fixtures/responses/exit.js +2 -0
  210. package/build/fixtures/responses/index.d.ts +4 -0
  211. package/build/fixtures/responses/index.js +4 -0
  212. package/build/fixtures/responses/recipient-update-final.d.ts +3 -0
  213. package/build/fixtures/responses/recipient-update-final.js +24 -0
  214. package/build/fixtures/schemas/basic-form.d.ts +3 -0
  215. package/build/fixtures/schemas/basic-form.js +39 -0
  216. package/build/fixtures/schemas/index.d.ts +4 -0
  217. package/build/fixtures/schemas/index.js +4 -0
  218. package/build/fixtures/schemas/number-and-integer.d.ts +3 -0
  219. package/build/fixtures/schemas/number-and-integer.js +41 -0
  220. package/build/fixtures/schemas/one-of.d.ts +3 -0
  221. package/build/fixtures/schemas/one-of.js +223 -0
  222. package/build/fixtures/schemas/string-formats.d.ts +3 -0
  223. package/build/fixtures/schemas/string-formats.js +62 -0
  224. package/build/fixtures/utils/image-util.d.ts +2 -0
  225. package/build/fixtures/utils/image-util.js +18 -0
  226. package/build/formControl/FormControl.d.ts +86 -0
  227. package/build/formControl/FormControl.js +241 -0
  228. package/build/formControl/index.d.ts +1 -0
  229. package/build/formControl/index.js +1 -0
  230. package/build/formControl/utils/index.d.ts +1 -0
  231. package/build/formControl/utils/index.js +1 -0
  232. package/build/formControl/utils/value-utils.d.ts +9 -0
  233. package/build/formControl/utils/value-utils.js +108 -0
  234. package/build/i18n/cs.json +8 -0
  235. package/build/i18n/de.json +38 -0
  236. package/build/i18n/en.json +38 -0
  237. package/build/i18n/es.json +38 -0
  238. package/build/i18n/fr.json +38 -0
  239. package/build/i18n/hu.json +38 -0
  240. package/build/i18n/id.json +38 -0
  241. package/build/i18n/index.d.ts +2 -0
  242. package/build/i18n/index.js +31 -0
  243. package/build/i18n/it.json +38 -0
  244. package/build/i18n/ja.json +38 -0
  245. package/build/i18n/pl.json +38 -0
  246. package/build/i18n/pt.json +38 -0
  247. package/build/i18n/ro.json +38 -0
  248. package/build/i18n/ru.json +38 -0
  249. package/build/i18n/th.json +38 -0
  250. package/build/i18n/tr.json +38 -0
  251. package/build/i18n/uk.json +8 -0
  252. package/build/i18n/zh-CN.json +38 -0
  253. package/build/i18n/zh.json +38 -0
  254. package/build/index.d.ts +11 -0
  255. package/build/index.js +9 -0
  256. package/build/jsonSchemaForm/JsonSchemaForm.d.ts +64 -0
  257. package/build/jsonSchemaForm/JsonSchemaForm.js +29 -0
  258. package/build/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +13 -0
  259. package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +54 -0
  260. package/build/jsonSchemaForm/allOfSchema/index.d.ts +2 -0
  261. package/build/jsonSchemaForm/allOfSchema/index.js +1 -0
  262. package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +14 -0
  263. package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +25 -0
  264. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +15 -0
  265. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +26 -0
  266. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.d.ts +1 -0
  267. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +1 -0
  268. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +17 -0
  269. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +140 -0
  270. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +24 -0
  271. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +18 -0
  272. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +1 -0
  273. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +1 -0
  274. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +2 -0
  275. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +2 -0
  276. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +6 -0
  277. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +84 -0
  278. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +9 -0
  279. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +14 -0
  280. package/build/jsonSchemaForm/arrayTypeSchema/index.d.ts +2 -0
  281. package/build/jsonSchemaForm/arrayTypeSchema/index.js +1 -0
  282. package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +21 -0
  283. package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +103 -0
  284. package/build/jsonSchemaForm/basicTypeSchema/index.d.ts +2 -0
  285. package/build/jsonSchemaForm/basicTypeSchema/index.js +1 -0
  286. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +30 -0
  287. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +79 -0
  288. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts +53 -0
  289. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +53 -0
  290. package/build/jsonSchemaForm/controlFeedback/index.d.ts +1 -0
  291. package/build/jsonSchemaForm/controlFeedback/index.js +1 -0
  292. package/build/jsonSchemaForm/genericSchema/GenericSchema.d.ts +18 -0
  293. package/build/jsonSchemaForm/genericSchema/GenericSchema.js +122 -0
  294. package/build/jsonSchemaForm/genericSchema/index.d.ts +1 -0
  295. package/build/jsonSchemaForm/genericSchema/index.js +1 -0
  296. package/build/jsonSchemaForm/help/Help.d.ts +7 -0
  297. package/build/jsonSchemaForm/help/Help.js +9 -0
  298. package/build/jsonSchemaForm/help/Help.messages.d.ts +8 -0
  299. package/build/jsonSchemaForm/help/Help.messages.js +8 -0
  300. package/build/jsonSchemaForm/help/index.d.ts +1 -0
  301. package/build/jsonSchemaForm/help/index.js +1 -0
  302. package/build/jsonSchemaForm/index.d.ts +1 -0
  303. package/build/jsonSchemaForm/index.js +1 -0
  304. package/build/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +15 -0
  305. package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +78 -0
  306. package/build/jsonSchemaForm/objectSchema/index.d.ts +2 -0
  307. package/build/jsonSchemaForm/objectSchema/index.js +1 -0
  308. package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +14 -0
  309. package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +150 -0
  310. package/build/jsonSchemaForm/oneOfSchema/index.d.ts +2 -0
  311. package/build/jsonSchemaForm/oneOfSchema/index.js +1 -0
  312. package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.d.ts +3 -0
  313. package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +8 -0
  314. package/build/jsonSchemaForm/oneOfSchema/utils/index.d.ts +2 -0
  315. package/build/jsonSchemaForm/oneOfSchema/utils/index.js +2 -0
  316. package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.d.ts +5 -0
  317. package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +64 -0
  318. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +15 -0
  319. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +26 -0
  320. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +8 -0
  321. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +8 -0
  322. package/build/jsonSchemaForm/persistAsyncSchema/index.d.ts +2 -0
  323. package/build/jsonSchemaForm/persistAsyncSchema/index.js +1 -0
  324. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +20 -0
  325. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +165 -0
  326. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +1 -0
  327. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +1 -0
  328. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +19 -0
  329. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +126 -0
  330. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +16 -0
  331. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +32 -0
  332. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +1 -0
  333. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +1 -0
  334. package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +8 -0
  335. package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +72 -0
  336. package/build/jsonSchemaForm/promotedOneOfSchema/index.d.ts +2 -0
  337. package/build/jsonSchemaForm/promotedOneOfSchema/index.js +1 -0
  338. package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.d.ts +2 -0
  339. package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +8 -0
  340. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +6 -0
  341. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +27 -0
  342. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +23 -0
  343. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +31 -0
  344. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +8 -0
  345. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +32 -0
  346. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +7 -0
  347. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +55 -0
  348. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +16 -0
  349. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +13 -0
  350. package/build/jsonSchemaForm/readOnlySchema/index.d.ts +1 -0
  351. package/build/jsonSchemaForm/readOnlySchema/index.js +1 -0
  352. package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +24 -0
  353. package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +104 -0
  354. package/build/jsonSchemaForm/schemaFormControl/index.d.ts +1 -0
  355. package/build/jsonSchemaForm/schemaFormControl/index.js +1 -0
  356. package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.d.ts +3 -0
  357. package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +73 -0
  358. package/build/jsonSchemaForm/schemaFormControl/utils/index.d.ts +1 -0
  359. package/build/jsonSchemaForm/schemaFormControl/utils/index.js +1 -0
  360. package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.d.ts +34 -0
  361. package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +95 -0
  362. package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +16 -0
  363. package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +146 -0
  364. package/build/jsonSchemaForm/validationAsyncSchema/index.d.ts +2 -0
  365. package/build/jsonSchemaForm/validationAsyncSchema/index.js +1 -0
  366. package/build/layout/DynamicLayout.d.ts +16 -0
  367. package/build/layout/DynamicLayout.js +61 -0
  368. package/build/layout/alert/DynamicAlert.d.ts +5 -0
  369. package/build/layout/alert/DynamicAlert.js +29 -0
  370. package/build/layout/box/DynamicBox.d.ts +7 -0
  371. package/build/layout/box/DynamicBox.js +41 -0
  372. package/build/layout/button/DynamicButton.d.ts +7 -0
  373. package/build/layout/button/DynamicButton.js +58 -0
  374. package/build/layout/columns/DynamicColumns.d.ts +7 -0
  375. package/build/layout/columns/DynamicColumns.js +38 -0
  376. package/build/layout/decision/DynamicDecision.d.ts +8 -0
  377. package/build/layout/decision/DynamicDecision.js +38 -0
  378. package/build/layout/divider/DynamicDivider.d.ts +6 -0
  379. package/build/layout/divider/DynamicDivider.js +9 -0
  380. package/build/layout/external/DynamicExternal.d.ts +8 -0
  381. package/build/layout/external/DynamicExternal.js +32 -0
  382. package/build/layout/external/DynamicExternal.messages.d.ts +8 -0
  383. package/build/layout/external/DynamicExternal.messages.js +8 -0
  384. package/build/layout/form/DynamicForm.d.ts +7 -0
  385. package/build/layout/form/DynamicForm.js +22 -0
  386. package/build/layout/heading/DynamicHeading.d.ts +5 -0
  387. package/build/layout/heading/DynamicHeading.js +31 -0
  388. package/build/layout/icon/DynamicIcon.d.ts +6 -0
  389. package/build/layout/icon/DynamicIcon.js +23 -0
  390. package/build/layout/image/DynamicImage.d.ts +6 -0
  391. package/build/layout/image/DynamicImage.js +110 -0
  392. package/build/layout/index.d.ts +17 -0
  393. package/build/layout/index.js +17 -0
  394. package/build/layout/info/DynamicInfo.d.ts +6 -0
  395. package/build/layout/info/DynamicInfo.js +19 -0
  396. package/build/layout/list/DynamicList.d.ts +7 -0
  397. package/build/layout/list/DynamicList.js +31 -0
  398. package/build/layout/loadingIndicator/DynamicLoadingIndicator.d.ts +6 -0
  399. package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +11 -0
  400. package/build/layout/paragraph/DynamicParagraph.d.ts +6 -0
  401. package/build/layout/paragraph/DynamicParagraph.js +43 -0
  402. package/build/layout/paragraph/DynamicParagraph.messages.d.ts +13 -0
  403. package/build/layout/paragraph/DynamicParagraph.messages.js +13 -0
  404. package/build/layout/paragraph/useSnackBarIfAvailable.d.ts +10 -0
  405. package/build/layout/paragraph/useSnackBarIfAvailable.js +9 -0
  406. package/build/layout/review/DynamicReview.d.ts +8 -0
  407. package/build/layout/review/DynamicReview.js +33 -0
  408. package/build/layout/utils.d.ts +7 -0
  409. package/build/layout/utils.js +31 -0
  410. package/build/main.css +185 -0
  411. package/build/step/cameraStep/CameraStep.d.ts +7 -0
  412. package/build/step/cameraStep/CameraStep.js +125 -0
  413. package/build/step/cameraStep/cameraCapture/CameraCapture.d.ts +15 -0
  414. package/build/step/cameraStep/cameraCapture/CameraCapture.js +122 -0
  415. package/build/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +18 -0
  416. package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +18 -0
  417. package/build/step/cameraStep/cameraCapture/components/index.d.ts +7 -0
  418. package/build/step/cameraStep/cameraCapture/components/index.js +28 -0
  419. package/build/step/cameraStep/cameraCapture/hooks/index.d.ts +4 -0
  420. package/build/step/cameraStep/cameraCapture/hooks/index.js +80 -0
  421. package/build/step/cameraStep/cameraCapture/index.d.ts +1 -0
  422. package/build/step/cameraStep/cameraCapture/index.js +1 -0
  423. package/build/step/cameraStep/cameraCapture/overlay/Overlay.d.ts +10 -0
  424. package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +78 -0
  425. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +2 -0
  426. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +19 -0
  427. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +13 -0
  428. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +13 -0
  429. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +5 -0
  430. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +21 -0
  431. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +18 -0
  432. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +18 -0
  433. package/build/step/cameraStep/cameraCapture/screens/index.d.ts +2 -0
  434. package/build/step/cameraStep/cameraCapture/screens/index.js +2 -0
  435. package/build/step/cameraStep/cameraCapture/tracking/index.d.ts +7 -0
  436. package/build/step/cameraStep/cameraCapture/tracking/index.js +98 -0
  437. package/build/step/cameraStep/cameraCapture/utils/index.d.ts +8 -0
  438. package/build/step/cameraStep/cameraCapture/utils/index.js +103 -0
  439. package/build/step/cameraStep/index.d.ts +1 -0
  440. package/build/step/cameraStep/index.js +1 -0
  441. package/build/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +6 -0
  442. package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +64 -0
  443. package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +23 -0
  444. package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +23 -0
  445. package/build/step/externalConfirmationStep/index.d.ts +1 -0
  446. package/build/step/externalConfirmationStep/index.js +1 -0
  447. package/build/step/index.d.ts +3 -0
  448. package/build/step/index.js +3 -0
  449. package/build/step/layoutStep/LayoutStep.d.ts +10 -0
  450. package/build/step/layoutStep/LayoutStep.js +33 -0
  451. package/build/step/layoutStep/index.d.ts +1 -0
  452. package/build/step/layoutStep/index.js +1 -0
  453. package/build/step/layoutStep/utils/index.d.ts +2 -0
  454. package/build/step/layoutStep/utils/index.js +2 -0
  455. package/build/step/layoutStep/utils/inline-reference-utils.d.ts +7 -0
  456. package/build/step/layoutStep/utils/inline-reference-utils.js +91 -0
  457. package/build/step/layoutStep/utils/layout-utils.d.ts +8 -0
  458. package/build/step/layoutStep/utils/layout-utils.js +217 -0
  459. package/build/types/common/FormControl.d.ts +57 -0
  460. package/build/types/common/FormControl.js +1 -0
  461. package/build/types/index.d.ts +15 -0
  462. package/build/types/index.js +13 -0
  463. package/build/types/specification/Action.d.ts +19 -0
  464. package/build/types/specification/Action.js +1 -0
  465. package/build/types/specification/FileUploadSchema.d.ts +23 -0
  466. package/build/types/specification/FileUploadSchema.js +4 -0
  467. package/build/types/specification/LayoutComponent.d.ts +129 -0
  468. package/build/types/specification/LayoutComponent.js +1 -0
  469. package/build/types/specification/Model.d.ts +12 -0
  470. package/build/types/specification/Model.js +29 -0
  471. package/build/types/specification/PersistAsync.d.ts +8 -0
  472. package/build/types/specification/PersistAsync.js +1 -0
  473. package/build/types/specification/Polling.d.ts +12 -0
  474. package/build/types/specification/Polling.js +1 -0
  475. package/build/types/specification/Promotion.d.ts +20 -0
  476. package/build/types/specification/Promotion.js +1 -0
  477. package/build/types/specification/Schema.d.ts +184 -0
  478. package/build/types/specification/Schema.js +50 -0
  479. package/build/types/specification/Step.d.ts +127 -0
  480. package/build/types/specification/Step.js +4 -0
  481. package/build/types/specification/ValidationAsync.d.ts +6 -0
  482. package/build/types/specification/ValidationAsync.js +1 -0
  483. package/build/types/specification/core.d.ts +29 -0
  484. package/build/types/specification/core.js +1 -0
  485. package/package.json +40 -52
@@ -0,0 +1,3 @@
1
+ import { FormStep } from '../../types';
2
+ declare const step: FormStep;
3
+ export default step;
@@ -0,0 +1,24 @@
1
+ var step = {
2
+ type: 'form',
3
+ key: 'recipient-update-final',
4
+ title: 'Recipient Update Final Step',
5
+ description: "The recipient has been updated.",
6
+ actions: [],
7
+ schemas: [],
8
+ layout: [
9
+ {
10
+ type: 'alert',
11
+ markdown: 'Nothing to see here.',
12
+ context: 'positive'
13
+ },
14
+ {
15
+ type: 'button',
16
+ action: {
17
+ title: 'Start Over',
18
+ type: 'primary',
19
+ url: '/steps/recipientUpdate'
20
+ }
21
+ },
22
+ ]
23
+ };
24
+ export default step;
@@ -0,0 +1,3 @@
1
+ import { FormStep } from '../../types';
2
+ declare const step: FormStep;
3
+ export default step;
@@ -0,0 +1,39 @@
1
+ var step = {
2
+ key: 'Schemas/Basic Form',
3
+ title: 'Simple Form',
4
+ description: 'A simple form with text fields and a checkbox.',
5
+ type: 'form',
6
+ actions: [],
7
+ schemas: [
8
+ {
9
+ $id: '#the-schema',
10
+ type: 'object',
11
+ displayOrder: ['name', 'pineapple'],
12
+ properties: {
13
+ name: {
14
+ title: 'Name (string schema)',
15
+ type: 'string'
16
+ },
17
+ pineapple: {
18
+ title: 'Pineapple on pizza (boolean schema)',
19
+ type: 'boolean'
20
+ }
21
+ }
22
+ },
23
+ ],
24
+ layout: [
25
+ {
26
+ type: 'form',
27
+ schema: { $ref: '#the-schema' }
28
+ },
29
+ {
30
+ type: 'button',
31
+ action: {
32
+ url: '/submit',
33
+ title: 'Submit',
34
+ type: 'primary'
35
+ }
36
+ },
37
+ ]
38
+ };
39
+ export default step;
@@ -0,0 +1,4 @@
1
+ export { default as simpleForm } from './basic-form';
2
+ export { default as numberAndInteger } from './number-and-integer';
3
+ export { default as oneOf } from './one-of';
4
+ export { default as stringFormats } from './string-formats';
@@ -0,0 +1,4 @@
1
+ export { default as simpleForm } from './basic-form';
2
+ export { default as numberAndInteger } from './number-and-integer';
3
+ export { default as oneOf } from './one-of';
4
+ export { default as stringFormats } from './string-formats';
@@ -0,0 +1,3 @@
1
+ import { FormStep } from '../../types';
2
+ declare const step: FormStep;
3
+ export default step;
@@ -0,0 +1,41 @@
1
+ var step = {
2
+ key: 'Schemas/Number And Integer',
3
+ title: 'Number and Integer Schemas',
4
+ description: 'Number and Integer Schemas.',
5
+ type: 'form',
6
+ actions: [],
7
+ schemas: [
8
+ {
9
+ $id: '#the-schema',
10
+ type: 'object',
11
+ displayOrder: ['some-number', 'some-integer'],
12
+ properties: {
13
+ 'some-number': {
14
+ title: 'Number (number schema)',
15
+ type: 'number',
16
+ validationMessages: { type: 'This is not an number' }
17
+ },
18
+ 'some-integer': {
19
+ title: 'Integer (integer schema, does not support decimals)',
20
+ type: 'integer',
21
+ validationMessages: { type: 'This is not an integer' }
22
+ }
23
+ }
24
+ },
25
+ ],
26
+ layout: [
27
+ {
28
+ type: 'form',
29
+ schema: { $ref: '#the-schema' }
30
+ },
31
+ {
32
+ type: 'button',
33
+ action: {
34
+ url: '/submit',
35
+ title: 'Submit',
36
+ type: 'primary'
37
+ }
38
+ },
39
+ ]
40
+ };
41
+ export default step;
@@ -0,0 +1,3 @@
1
+ import { FormStep } from '../../types';
2
+ declare const step: FormStep;
3
+ export default step;
@@ -0,0 +1,223 @@
1
+ var currencies = [
2
+ ['EUR', 'Euro'],
3
+ ['GBP', 'British pound'],
4
+ ['INR', 'Indian rupee'],
5
+ ['USD', 'United States dollar'],
6
+ ['AED', 'United Arab Emirates dirham'],
7
+ ['ARS', 'Argentine peso'],
8
+ ['AUD', 'Australian dollar'],
9
+ ['BDT', 'Bangladeshi taka'],
10
+ ['BGN', 'Bulgarian lev'],
11
+ ['BRL', 'Brazilian real'],
12
+ ['BWP', 'Botswana pula'],
13
+ ['CAD', 'Canadian dollar'],
14
+ ['CHF', 'Swiss franc'],
15
+ ['CLP', 'Chilean peso'],
16
+ ['CNY', 'Chinese yuan'],
17
+ ['COP', 'Colombian peso'],
18
+ ['CRC', 'Costa Rican colón'],
19
+ ['CZK', 'Czech koruna'],
20
+ ['DKK', 'Danish krone'],
21
+ ['EGP', 'Egyptian pound'],
22
+ ['FJD', 'Fijian dollar'],
23
+ ['GEL', 'Georgian lari'],
24
+ ['GHS', 'Ghanaian cedi'],
25
+ ['GTQ', 'Guatemalan quetzal'],
26
+ ['HKD', 'Hong Kong dollar'],
27
+ ['HRK', 'Croatian kuna'],
28
+ ['HUF', 'Hungarian forint'],
29
+ ['IDR', 'Indonesian rupiah'],
30
+ ['ILS', 'Israeli shekel'],
31
+ ['JPY', 'Japanese yen'],
32
+ ['KES', 'Kenyan shilling'],
33
+ ['KRW', 'South Korean won'],
34
+ ['LKR', 'Sri Lankan rupee'],
35
+ ['MAD', 'Moroccan dirham'],
36
+ ['MXN', 'Mexican peso'],
37
+ ['MYR', 'Malaysian ringgit'],
38
+ ['MZN', 'Mozambican metical'],
39
+ ['NAD', 'Namibian dollar'],
40
+ ['NGN', 'Nigerian naira'],
41
+ ['NOK', 'Norwegian krone'],
42
+ ['NPR', 'Nepalese rupee'],
43
+ ['NZD', 'New Zealand dollar'],
44
+ ['PEN', 'Peruvian nuevo sol'],
45
+ ['PHP', 'Philippine peso'],
46
+ ['PKR', 'Pakistani rupee'],
47
+ ['PLN', 'Polish złoty'],
48
+ ['RON', 'Romanian leu'],
49
+ ['RUB', 'Russian rouble'],
50
+ ['SEK', 'Swedish krona'],
51
+ ['SGD', 'Singapore dollar'],
52
+ ['THB', 'Thai baht'],
53
+ ['TRY', 'Turkish lira'],
54
+ ['TZS', 'Tanzanian shilling'],
55
+ ['UAH', 'Ukrainian hryvnia'],
56
+ ['UGX', 'Ugandan shilling'],
57
+ ['UYU', 'Uruguayan peso'],
58
+ ['VND', 'Vietnamese dong'],
59
+ ['XOF', 'West African CFA franc'],
60
+ ['ZAR', 'South African rand'],
61
+ ['ZMW', 'Zambian kwacha'],
62
+ ];
63
+ var step = {
64
+ key: 'Schemas/OneOf',
65
+ title: 'OneOf Schemas',
66
+ description: 'OneOf Schema using select, radio buttons and tabs.',
67
+ type: 'form',
68
+ analytics: { custom: 'this is the oneOf fixture' },
69
+ actions: [],
70
+ schemas: [
71
+ {
72
+ $id: '#the-schema',
73
+ type: 'object',
74
+ displayOrder: ['account-type-radio', 'colour-select', 'currency', 'bank-details-tabs'],
75
+ required: ['bank-details-tabs'],
76
+ properties: {
77
+ 'account-type-radio': {
78
+ title: 'Personal or Business Account? (oneOf schema with two options default to control: "radio")',
79
+ analyticsId: 'account-type-radio',
80
+ oneOf: [
81
+ {
82
+ title: 'Personal',
83
+ analyticsId: 'account-type-radio-personal',
84
+ icon: {
85
+ name: 'person'
86
+ },
87
+ "const": 'PERSONAL'
88
+ },
89
+ {
90
+ title: 'Business',
91
+ analyticsId: 'account-type-radio-business',
92
+ icon: {
93
+ name: 'briefcase'
94
+ },
95
+ "const": 'BUSINESS'
96
+ },
97
+ ]
98
+ },
99
+ 'colour-select': {
100
+ title: 'What is your favourite colour? (oneOf schema with more than two options default to control: "select")',
101
+ placeholder: 'Please select a colour',
102
+ analyticsId: 'colour-select',
103
+ oneOf: [
104
+ {
105
+ title: 'Blue',
106
+ analyticsId: 'colour-select-blue',
107
+ image: {
108
+ url: 'https://placeholder.pics/svg/64/0099ff/FFFFFF'
109
+ },
110
+ "const": 1
111
+ },
112
+ {
113
+ title: 'Yellow',
114
+ analyticsId: 'colour-select-yellow',
115
+ image: {
116
+ url: 'https://placeholder.pics/svg/64/ffcc00/FFFFFF'
117
+ },
118
+ "const": 2
119
+ },
120
+ {
121
+ title: 'Red',
122
+ analyticsId: 'colour-select-red',
123
+ image: {
124
+ url: 'https://placeholder.pics/svg/64/ff6600/FFFFFF'
125
+ },
126
+ "const": 3
127
+ },
128
+ ]
129
+ },
130
+ currency: {
131
+ title: 'Currency (oneof schema of const schemas with default value)',
132
+ type: 'string',
133
+ analyticsId: 'currency',
134
+ oneOf: currencies.map(function (_a) {
135
+ var code = _a[0], name = _a[1];
136
+ return ({
137
+ title: code,
138
+ analyticsId: code,
139
+ icon: { name: "flag-".concat(code.toLowerCase()) },
140
+ description: name,
141
+ "const": code
142
+ });
143
+ }),
144
+ validationMessages: { required: 'Please enter currency.' },
145
+ "default": 'EUR'
146
+ },
147
+ 'bank-details-tabs': {
148
+ title: 'Bank Details (oneOf schema of object schemas and control: "tab")',
149
+ control: 'tab',
150
+ analyticsId: 'bank-details-tabs',
151
+ oneOf: [
152
+ {
153
+ type: 'object',
154
+ title: 'UK Sortcode and Account Number',
155
+ analyticsId: 'bank-details-tabs-uk',
156
+ displayOrder: ['account-number', 'sort-code'],
157
+ required: ['account-number', 'sort-code'],
158
+ properties: {
159
+ 'account-number': {
160
+ title: 'Account Number',
161
+ type: 'string'
162
+ },
163
+ 'sort-code': {
164
+ title: 'Sort Code',
165
+ type: 'string'
166
+ }
167
+ }
168
+ },
169
+ {
170
+ type: 'object',
171
+ title: 'IBAN and BIC',
172
+ analyticsId: 'bank-details-tabs-iban',
173
+ displayOrder: ['iban', 'bic'],
174
+ required: ['iban', 'bic'],
175
+ properties: {
176
+ iban: {
177
+ title: 'IBAN',
178
+ type: 'string'
179
+ },
180
+ bic: {
181
+ title: 'BIC',
182
+ type: 'string'
183
+ }
184
+ }
185
+ },
186
+ {
187
+ type: 'object',
188
+ title: 'US Routing Number and Account Number',
189
+ analyticsId: 'bank-details-tabs-us',
190
+ displayOrder: ['account-number', 'routing-number'],
191
+ required: ['account-number', 'routing-number'],
192
+ properties: {
193
+ 'account-number': {
194
+ title: 'Account Number',
195
+ type: 'string'
196
+ },
197
+ 'routing-number': {
198
+ title: 'Routing Number',
199
+ type: 'string'
200
+ }
201
+ }
202
+ },
203
+ ]
204
+ }
205
+ }
206
+ },
207
+ ],
208
+ layout: [
209
+ {
210
+ type: 'form',
211
+ schema: { $ref: '#the-schema' }
212
+ },
213
+ {
214
+ type: 'button',
215
+ action: {
216
+ url: '/submit',
217
+ title: 'Submit',
218
+ type: 'primary'
219
+ }
220
+ },
221
+ ]
222
+ };
223
+ export default step;
@@ -0,0 +1,3 @@
1
+ import { FormStep } from '../../types';
2
+ declare const step: FormStep;
3
+ export default step;
@@ -0,0 +1,62 @@
1
+ var step = {
2
+ key: 'Schemas/String Formats',
3
+ title: 'String Schema Formats',
4
+ description: 'String schemas with different formats (password, date, telephone).',
5
+ type: 'form',
6
+ actions: [],
7
+ schemas: [
8
+ {
9
+ $id: '#the-schema',
10
+ type: 'object',
11
+ displayOrder: ['name', 'password', 'dob', 'date-lookup', 'telephone'],
12
+ properties: {
13
+ name: {
14
+ title: 'Name (string schema no format)',
15
+ type: 'string'
16
+ },
17
+ password: {
18
+ title: 'Password (string schema with format: "password")',
19
+ type: 'string',
20
+ format: 'password'
21
+ },
22
+ dob: {
23
+ title: 'Date of birth (string schema with format: "date")',
24
+ type: 'string',
25
+ format: 'date'
26
+ },
27
+ 'date-lookup': {
28
+ title: 'Date Lookup (string schema with format: "date" and control: "date-lookup")',
29
+ type: 'string',
30
+ format: 'date',
31
+ control: 'date-lookup',
32
+ minimum: '2023-01-01',
33
+ maximum: '2023-12-31',
34
+ placeholder: 'Select a date'
35
+ },
36
+ telephone: {
37
+ title: 'Phone number (string schema with format: "phone-number")',
38
+ type: 'string',
39
+ format: 'phone-number'
40
+ }
41
+ }
42
+ },
43
+ ],
44
+ layout: [
45
+ {
46
+ type: 'form',
47
+ schema: { $ref: '#the-schema' }
48
+ },
49
+ {
50
+ type: 'button',
51
+ action: {
52
+ url: '/submit',
53
+ title: 'Submit',
54
+ type: 'primary'
55
+ }
56
+ },
57
+ ],
58
+ model: {
59
+ 'date-lookup': '2023-01-01'
60
+ }
61
+ };
62
+ export default step;
@@ -0,0 +1,2 @@
1
+ import { FormStep, Size } from '../../types';
2
+ export declare const getImageStep: (size: Size) => FormStep;
@@ -0,0 +1,18 @@
1
+ export var getImageStep = function (size) {
2
+ return {
3
+ type: 'form',
4
+ key: "Components/Image-".concat(size),
5
+ title: "Image Component - ".concat(size),
6
+ description: "This is an image with size: \"".concat(size, "\""),
7
+ actions: [],
8
+ schemas: [],
9
+ layout: [
10
+ {
11
+ type: 'image',
12
+ url: 'http://placekitten.com/g/400/400',
13
+ text: "This is an image with size: \"".concat(size, "\""),
14
+ size: size
15
+ },
16
+ ]
17
+ };
18
+ };
@@ -0,0 +1,86 @@
1
+ import { RadioGroupRadios } from '@transferwise/components/build/types/radioGroup/RadioGroup';
2
+ import { PureComponent } from 'react';
3
+ import { FormControlProps, FormControlState, FormControlOption } from '../types';
4
+ export default class FormControl extends PureComponent<FormControlProps, FormControlState> {
5
+ static Type: {
6
+ RADIO: string;
7
+ CHECKBOX: string;
8
+ SELECT: string;
9
+ FILE: string;
10
+ DATE: string;
11
+ DATETIME: string;
12
+ DATELOOKUP: string;
13
+ TEL: string;
14
+ NUMBER: string;
15
+ HIDDEN: string;
16
+ PASSWORD: string;
17
+ TEXT: string;
18
+ TEXTAREA: string;
19
+ UPLOAD: string;
20
+ TAB: string;
21
+ };
22
+ static Size: {
23
+ EXTRA_SMALL: string;
24
+ SMALL: string;
25
+ MEDIUM: string;
26
+ LARGE: string;
27
+ EXTRA_LARGE: string;
28
+ };
29
+ static MonthFormat: {
30
+ SHORT: string;
31
+ LONG: string;
32
+ };
33
+ static DateMode: {
34
+ DAY_MONTH_YEAR: string;
35
+ MONTH_YEAR: string;
36
+ };
37
+ constructor(props: FormControlProps);
38
+ static getDerivedStateFromProps(nextProps: FormControlProps, previousState: FormControlState): {
39
+ prevValue: string | number | boolean | Date | null;
40
+ value: string | number | boolean | Date | null;
41
+ } | null;
42
+ /**
43
+ * autocomplete hides our form help so we need to disable it when help text
44
+ * is present. Chrome ignores autocomplete=off, the only way to disable it is
45
+ * to provide an 'invalid' value, for which 'disabled' serves.
46
+ */
47
+ getAutocompleteStatus: () => "disabled" | "on";
48
+ handleOnChange: (value: string | number | boolean | null) => void;
49
+ handleInputOnChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
50
+ handleOnFocus: () => void;
51
+ handleOnBlur: () => void;
52
+ getSelectedOption: (options: FormControlOption[]) => FormControlOption | undefined;
53
+ mapOption: (option: FormControlOption) => RadioGroupRadios;
54
+ render(): JSX.Element;
55
+ static defaultProps: {
56
+ autoComplete: boolean;
57
+ countryCode: null;
58
+ disabled: boolean;
59
+ displayPattern: null;
60
+ id: null;
61
+ label: string;
62
+ max: null;
63
+ maxDate: null;
64
+ maxLength: null;
65
+ min: null;
66
+ minDate: null;
67
+ minLength: null;
68
+ mode: string;
69
+ monthFormat: string;
70
+ onBlur: null;
71
+ onFocus: null;
72
+ onSearchChange: null;
73
+ options: never[];
74
+ placeholder: null;
75
+ readOnly: boolean;
76
+ required: boolean;
77
+ searchPlaceholder: null;
78
+ searchValue: string;
79
+ selectedOption: null;
80
+ size: string;
81
+ step: number;
82
+ type: string;
83
+ uploadProps: {};
84
+ value: null;
85
+ };
86
+ }