@wise/dynamic-flow-client 0.4.2 → 0.4.4

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 (468) hide show
  1. package/build/main.js +9606 -0
  2. package/build/main.min.js +31 -0
  3. package/build/types/index.d.ts +11 -15
  4. package/build/types/types/index.d.ts +15 -0
  5. package/package.json +7 -6
  6. package/build/common/constants/DateMode.js +0 -7
  7. package/build/common/constants/FormControlType.js +0 -20
  8. package/build/common/constants/MonthFormat.js +0 -7
  9. package/build/common/constants/SchemaType.js +0 -14
  10. package/build/common/constants/Size.js +0 -10
  11. package/build/common/constants/index.js +0 -21
  12. package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +0 -29
  13. package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +0 -19
  14. package/build/common/contexts/eventsContext/EventsContext.js +0 -22
  15. package/build/common/contexts/fetcherContexts/FetcherContexts.js +0 -29
  16. package/build/common/contexts/index.js +0 -20
  17. package/build/common/contexts/logContext/LogContext.js +0 -27
  18. package/build/common/hooks/index.js +0 -23
  19. package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +0 -13
  20. package/build/common/hooks/useExternal/useExternal.js +0 -19
  21. package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +0 -62
  22. package/build/common/hooks/usePersistAsync/usePersistAsync.js +0 -98
  23. package/build/common/hooks/usePolling/usePolling.js +0 -52
  24. package/build/common/hooks/usePrevious/usePrevious.js +0 -12
  25. package/build/common/hooks/useStepPolling/useStepPolling.js +0 -49
  26. package/build/common/makeFetcher/index.js +0 -17
  27. package/build/common/makeFetcher/makeFetcher.js +0 -23
  28. package/build/common/messages.js +0 -10
  29. package/build/common/utils/api-utils.js +0 -19
  30. package/build/common/utils/date-utils.js +0 -27
  31. package/build/common/utils/debounce.js +0 -38
  32. package/build/common/utils/file-utils.js +0 -38
  33. package/build/common/utils/id-utils.js +0 -8
  34. package/build/common/utils/index.js +0 -24
  35. package/build/common/utils/is-equal.js +0 -25
  36. package/build/common/utils/schema-utils.js +0 -55
  37. package/build/common/utils/step-utils.js +0 -47
  38. package/build/common/validators/index.js +0 -28
  39. package/build/common/validators/models/model-validators.js +0 -69
  40. package/build/common/validators/models/models.utils.js +0 -117
  41. package/build/common/validators/schemas/schema-validators.js +0 -99
  42. package/build/common/validators/types/type-validators.js +0 -21
  43. package/build/common/validators/validationFailures/validation-failures.js +0 -151
  44. package/build/common/validators/validationFailures/validation-failures.utils.js +0 -49
  45. package/build/common/validators/values/value-validators.js +0 -7
  46. package/build/dynamicFlow/DynamicFlow.js +0 -250
  47. package/build/dynamicFlow/DynamicFlowStep.js +0 -25
  48. package/build/dynamicFlow/DynamicFlowTypes.js +0 -8
  49. package/build/dynamicFlow/index.js +0 -8
  50. package/build/dynamicFlow/stories/DynamicFlow.story.js +0 -36
  51. package/build/dynamicFlow/stories/EditableDynamicFlow.js +0 -54
  52. package/build/dynamicFlow/stories/fixtureFetcher.js +0 -60
  53. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +0 -29
  54. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +0 -15
  55. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +0 -18
  56. package/build/dynamicFlow/utils/index.js +0 -26
  57. package/build/dynamicFlow/utils/responseParsers/response-parsers.js +0 -66
  58. package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +0 -27
  59. package/build/dynamicFlow/utils/useDynamicFlowState.js +0 -91
  60. package/build/dynamicFlow/utils/useLoader.js +0 -15
  61. package/build/fixtures/components/alert.js +0 -33
  62. package/build/fixtures/components/box.js +0 -22
  63. package/build/fixtures/components/button.js +0 -56
  64. package/build/fixtures/components/columns.js +0 -38
  65. package/build/fixtures/components/copyable.js +0 -24
  66. package/build/fixtures/components/decision.js +0 -56
  67. package/build/fixtures/components/heading.js +0 -16
  68. package/build/fixtures/components/image.js +0 -25
  69. package/build/fixtures/components/index.js +0 -32
  70. package/build/fixtures/components/info.js +0 -35
  71. package/build/fixtures/components/list.js +0 -36
  72. package/build/fixtures/components/loading-indicator.js +0 -18
  73. package/build/fixtures/components/paragraph.js +0 -30
  74. package/build/fixtures/components/review.js +0 -62
  75. package/build/fixtures/examples/camera-capture.js +0 -123
  76. package/build/fixtures/examples/index.js +0 -16
  77. package/build/fixtures/examples/recipient-update.js +0 -252
  78. package/build/fixtures/examples/recipient.js +0 -315
  79. package/build/fixtures/examples/single-file-upload.js +0 -100
  80. package/build/fixtures/examples/step-validation-errors.js +0 -77
  81. package/build/fixtures/features/action-response.js +0 -31
  82. package/build/fixtures/features/external.js +0 -33
  83. package/build/fixtures/features/index.js +0 -16
  84. package/build/fixtures/features/persist-async.js +0 -46
  85. package/build/fixtures/features/polling.js +0 -35
  86. package/build/fixtures/features/validation-async.js +0 -40
  87. package/build/fixtures/index.js +0 -38
  88. package/build/fixtures/jsonSchemaForm/allOf.js +0 -121
  89. package/build/fixtures/jsonSchemaForm/audRecipient.d.ts +0 -3
  90. package/build/fixtures/jsonSchemaForm/audRecipient.js +0 -1106
  91. package/build/fixtures/jsonSchemaForm/currency.d.ts +0 -3
  92. package/build/fixtures/jsonSchemaForm/currency.js +0 -50
  93. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.d.ts +0 -3
  94. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +0 -39
  95. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.d.ts +0 -3
  96. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +0 -38
  97. package/build/fixtures/jsonSchemaForm/oneOf.d.ts +0 -3
  98. package/build/fixtures/jsonSchemaForm/oneOf.js +0 -121
  99. package/build/fixtures/jsonSchemaForm/oneOfTabs.d.ts +0 -3
  100. package/build/fixtures/jsonSchemaForm/oneOfTabs.js +0 -55
  101. package/build/fixtures/jsonSchemaForm/promotedOneOf.d.ts +0 -3
  102. package/build/fixtures/jsonSchemaForm/promotedOneOf.js +0 -58
  103. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.d.ts +0 -3
  104. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +0 -104
  105. package/build/fixtures/jsonSchemaForm/simple.d.ts +0 -3
  106. package/build/fixtures/jsonSchemaForm/simple.js +0 -50
  107. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.d.ts +0 -3
  108. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +0 -73
  109. package/build/fixtures/jsonSchemaForm/validationAsync.d.ts +0 -3
  110. package/build/fixtures/jsonSchemaForm/validationAsync.js +0 -25
  111. package/build/fixtures/layouts/all.js +0 -178
  112. package/build/fixtures/layouts/final-step-layout.js +0 -41
  113. package/build/fixtures/layouts/index.js +0 -18
  114. package/build/fixtures/layouts/list.js +0 -35
  115. package/build/fixtures/layouts/pay-in.js +0 -99
  116. package/build/fixtures/layouts/review.js +0 -162
  117. package/build/fixtures/layouts/success.js +0 -68
  118. package/build/fixtures/responses/action-response-final.js +0 -26
  119. package/build/fixtures/responses/action.js +0 -4
  120. package/build/fixtures/responses/exit.js +0 -4
  121. package/build/fixtures/responses/index.js +0 -14
  122. package/build/fixtures/responses/recipient-update-final.js +0 -26
  123. package/build/fixtures/schemas/basic-form.js +0 -41
  124. package/build/fixtures/schemas/index.js +0 -14
  125. package/build/fixtures/schemas/number-and-integer.js +0 -43
  126. package/build/fixtures/schemas/one-of.js +0 -222
  127. package/build/fixtures/schemas/string-formats.js +0 -64
  128. package/build/fixtures/utils/image-util.js +0 -22
  129. package/build/formControl/FormControl.js +0 -213
  130. package/build/formControl/index.js +0 -8
  131. package/build/formControl/utils/index.js +0 -17
  132. package/build/formControl/utils/value-utils.js +0 -111
  133. package/build/i18n/index.js +0 -36
  134. package/build/index.d.ts +0 -11
  135. package/build/index.js +0 -38
  136. package/build/jsonSchemaForm/JsonSchemaForm.js +0 -22
  137. package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +0 -46
  138. package/build/jsonSchemaForm/allOfSchema/index.js +0 -8
  139. package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +0 -19
  140. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +0 -20
  141. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +0 -8
  142. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +0 -86
  143. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +0 -20
  144. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +0 -8
  145. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +0 -18
  146. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +0 -38
  147. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +0 -20
  148. package/build/jsonSchemaForm/arrayTypeSchema/index.js +0 -8
  149. package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +0 -91
  150. package/build/jsonSchemaForm/basicTypeSchema/index.js +0 -8
  151. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +0 -73
  152. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +0 -55
  153. package/build/jsonSchemaForm/controlFeedback/index.js +0 -8
  154. package/build/jsonSchemaForm/genericSchema/GenericSchema.js +0 -118
  155. package/build/jsonSchemaForm/genericSchema/index.js +0 -8
  156. package/build/jsonSchemaForm/help/Help.js +0 -14
  157. package/build/jsonSchemaForm/help/Help.messages.js +0 -10
  158. package/build/jsonSchemaForm/help/index.js +0 -8
  159. package/build/jsonSchemaForm/index.js +0 -8
  160. package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +0 -62
  161. package/build/jsonSchemaForm/objectSchema/index.js +0 -8
  162. package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +0 -135
  163. package/build/jsonSchemaForm/oneOfSchema/index.js +0 -8
  164. package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +0 -13
  165. package/build/jsonSchemaForm/oneOfSchema/utils/index.js +0 -18
  166. package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +0 -69
  167. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +0 -20
  168. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +0 -10
  169. package/build/jsonSchemaForm/persistAsyncSchema/index.js +0 -8
  170. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +0 -119
  171. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +0 -8
  172. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +0 -66
  173. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +0 -36
  174. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +0 -8
  175. package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +0 -58
  176. package/build/jsonSchemaForm/promotedOneOfSchema/index.js +0 -8
  177. package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +0 -12
  178. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +0 -18
  179. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +0 -25
  180. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +0 -23
  181. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +0 -58
  182. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +0 -15
  183. package/build/jsonSchemaForm/readOnlySchema/index.js +0 -8
  184. package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +0 -98
  185. package/build/jsonSchemaForm/schemaFormControl/index.js +0 -8
  186. package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +0 -77
  187. package/build/jsonSchemaForm/schemaFormControl/utils/index.js +0 -17
  188. package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +0 -110
  189. package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +0 -89
  190. package/build/jsonSchemaForm/validationAsyncSchema/index.js +0 -8
  191. package/build/layout/DynamicLayout.js +0 -52
  192. package/build/layout/alert/DynamicAlert.js +0 -31
  193. package/build/layout/box/DynamicBox.js +0 -32
  194. package/build/layout/button/DynamicButton.js +0 -49
  195. package/build/layout/columns/DynamicColumns.js +0 -29
  196. package/build/layout/decision/DynamicDecision.js +0 -29
  197. package/build/layout/divider/DynamicDivider.js +0 -10
  198. package/build/layout/external/DynamicExternal.js +0 -25
  199. package/build/layout/external/DynamicExternal.messages.js +0 -10
  200. package/build/layout/form/DynamicForm.js +0 -16
  201. package/build/layout/heading/DynamicHeading.js +0 -22
  202. package/build/layout/icon/DynamicIcon.js +0 -49
  203. package/build/layout/image/DynamicImage.js +0 -62
  204. package/build/layout/index.js +0 -40
  205. package/build/layout/info/DynamicInfo.js +0 -9
  206. package/build/layout/list/DynamicList.js +0 -21
  207. package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +0 -12
  208. package/build/layout/paragraph/DynamicParagraph.js +0 -30
  209. package/build/layout/paragraph/DynamicParagraph.messages.js +0 -15
  210. package/build/layout/paragraph/useSnackBarIfAvailable.js +0 -13
  211. package/build/layout/review/DynamicReview.js +0 -23
  212. package/build/layout/utils.js +0 -33
  213. package/build/step/cameraStep/CameraStep.js +0 -84
  214. package/build/step/cameraStep/cameraCapture/CameraCapture.js +0 -70
  215. package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +0 -20
  216. package/build/step/cameraStep/cameraCapture/components/index.js +0 -18
  217. package/build/step/cameraStep/cameraCapture/hooks/index.js +0 -29
  218. package/build/step/cameraStep/cameraCapture/index.js +0 -8
  219. package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +0 -68
  220. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +0 -13
  221. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +0 -15
  222. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +0 -14
  223. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +0 -20
  224. package/build/step/cameraStep/cameraCapture/screens/index.js +0 -10
  225. package/build/step/cameraStep/cameraCapture/tracking/index.js +0 -22
  226. package/build/step/cameraStep/cameraCapture/utils/index.js +0 -51
  227. package/build/step/cameraStep/index.js +0 -8
  228. package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +0 -68
  229. package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +0 -25
  230. package/build/step/externalConfirmationStep/index.js +0 -8
  231. package/build/step/index.js +0 -12
  232. package/build/step/layoutStep/LayoutStep.js +0 -35
  233. package/build/step/layoutStep/index.js +0 -8
  234. package/build/step/layoutStep/utils/index.js +0 -7
  235. package/build/step/layoutStep/utils/inline-reference-utils.js +0 -78
  236. package/build/step/layoutStep/utils/layout-utils.js +0 -203
  237. package/build/types/common/FormControl.js +0 -2
  238. package/build/types/index.js +0 -42
  239. package/build/types/specification/Action.js +0 -2
  240. package/build/types/specification/FileUploadSchema.js +0 -8
  241. package/build/types/specification/LayoutComponent.js +0 -2
  242. package/build/types/specification/Model.js +0 -30
  243. package/build/types/specification/PersistAsync.js +0 -2
  244. package/build/types/specification/Polling.js +0 -2
  245. package/build/types/specification/Promotion.js +0 -2
  246. package/build/types/specification/Schema.js +0 -67
  247. package/build/types/specification/Step.js +0 -6
  248. package/build/types/specification/ValidationAsync.js +0 -2
  249. package/build/types/specification/core.js +0 -2
  250. /package/build/{common → types/common}/constants/DateMode.d.ts +0 -0
  251. /package/build/{common → types/common}/constants/FormControlType.d.ts +0 -0
  252. /package/build/{common → types/common}/constants/MonthFormat.d.ts +0 -0
  253. /package/build/{common → types/common}/constants/SchemaType.d.ts +0 -0
  254. /package/build/{common → types/common}/constants/Size.d.ts +0 -0
  255. /package/build/{common → types/common}/constants/index.d.ts +0 -0
  256. /package/build/{common → types/common}/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -0
  257. /package/build/{common → types/common}/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +0 -0
  258. /package/build/{common → types/common}/contexts/eventsContext/EventsContext.d.ts +0 -0
  259. /package/build/{common → types/common}/contexts/fetcherContexts/FetcherContexts.d.ts +0 -0
  260. /package/build/{common → types/common}/contexts/index.d.ts +0 -0
  261. /package/build/{common → types/common}/contexts/logContext/LogContext.d.ts +0 -0
  262. /package/build/{common → types/common}/hooks/index.d.ts +0 -0
  263. /package/build/{common → types/common}/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +0 -0
  264. /package/build/{common → types/common}/hooks/useExternal/useExternal.d.ts +0 -0
  265. /package/build/{common → types/common}/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +0 -0
  266. /package/build/{common → types/common}/hooks/usePersistAsync/usePersistAsync.d.ts +0 -0
  267. /package/build/{common → types/common}/hooks/usePolling/usePolling.d.ts +0 -0
  268. /package/build/{common → types/common}/hooks/usePrevious/usePrevious.d.ts +0 -0
  269. /package/build/{common → types/common}/hooks/useStepPolling/useStepPolling.d.ts +0 -0
  270. /package/build/{common → types/common}/makeFetcher/index.d.ts +0 -0
  271. /package/build/{common → types/common}/makeFetcher/makeFetcher.d.ts +0 -0
  272. /package/build/{common → types/common}/messages.d.ts +0 -0
  273. /package/build/{common → types/common}/utils/api-utils.d.ts +0 -0
  274. /package/build/{common → types/common}/utils/date-utils.d.ts +0 -0
  275. /package/build/{common → types/common}/utils/debounce.d.ts +0 -0
  276. /package/build/{common → types/common}/utils/file-utils.d.ts +0 -0
  277. /package/build/{common → types/common}/utils/id-utils.d.ts +0 -0
  278. /package/build/{common → types/common}/utils/index.d.ts +0 -0
  279. /package/build/{common → types/common}/utils/is-equal.d.ts +0 -0
  280. /package/build/{common → types/common}/utils/schema-utils.d.ts +0 -0
  281. /package/build/{common → types/common}/utils/step-utils.d.ts +0 -0
  282. /package/build/{common → types/common}/validators/index.d.ts +0 -0
  283. /package/build/{common → types/common}/validators/models/model-validators.d.ts +0 -0
  284. /package/build/{common → types/common}/validators/models/models.utils.d.ts +0 -0
  285. /package/build/{common → types/common}/validators/schemas/schema-validators.d.ts +0 -0
  286. /package/build/{common → types/common}/validators/types/type-validators.d.ts +0 -0
  287. /package/build/{common → types/common}/validators/validationFailures/validation-failures.d.ts +0 -0
  288. /package/build/{common → types/common}/validators/validationFailures/validation-failures.utils.d.ts +0 -0
  289. /package/build/{common → types/common}/validators/values/value-validators.d.ts +0 -0
  290. /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlow.d.ts +0 -0
  291. /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowStep.d.ts +0 -0
  292. /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowTypes.d.ts +0 -0
  293. /package/build/{dynamicFlow → types/dynamicFlow}/index.d.ts +0 -0
  294. /package/build/{dynamicFlow → types/dynamicFlow}/stories/DynamicFlow.story.d.ts +0 -0
  295. /package/build/{dynamicFlow → types/dynamicFlow}/stories/EditableDynamicFlow.d.ts +0 -0
  296. /package/build/{dynamicFlow → types/dynamicFlow}/stories/fixtureFetcher.d.ts +0 -0
  297. /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.d.ts +0 -0
  298. /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.messages.d.ts +0 -0
  299. /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundaryAlert.d.ts +0 -0
  300. /package/build/{dynamicFlow → types/dynamicFlow}/utils/index.d.ts +0 -0
  301. /package/build/{dynamicFlow → types/dynamicFlow}/utils/responseParsers/response-parsers.d.ts +0 -0
  302. /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -0
  303. /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDynamicFlowState.d.ts +0 -0
  304. /package/build/{dynamicFlow → types/dynamicFlow}/utils/useLoader.d.ts +0 -0
  305. /package/build/{fixtures → types/fixtures}/components/alert.d.ts +0 -0
  306. /package/build/{fixtures → types/fixtures}/components/box.d.ts +0 -0
  307. /package/build/{fixtures → types/fixtures}/components/button.d.ts +0 -0
  308. /package/build/{fixtures → types/fixtures}/components/columns.d.ts +0 -0
  309. /package/build/{fixtures → types/fixtures}/components/copyable.d.ts +0 -0
  310. /package/build/{fixtures → types/fixtures}/components/decision.d.ts +0 -0
  311. /package/build/{fixtures → types/fixtures}/components/heading.d.ts +0 -0
  312. /package/build/{fixtures → types/fixtures}/components/image.d.ts +0 -0
  313. /package/build/{fixtures → types/fixtures}/components/index.d.ts +0 -0
  314. /package/build/{fixtures → types/fixtures}/components/info.d.ts +0 -0
  315. /package/build/{fixtures → types/fixtures}/components/list.d.ts +0 -0
  316. /package/build/{fixtures → types/fixtures}/components/loading-indicator.d.ts +0 -0
  317. /package/build/{fixtures → types/fixtures}/components/paragraph.d.ts +0 -0
  318. /package/build/{fixtures → types/fixtures}/components/review.d.ts +0 -0
  319. /package/build/{fixtures → types/fixtures}/examples/camera-capture.d.ts +0 -0
  320. /package/build/{fixtures → types/fixtures}/examples/index.d.ts +0 -0
  321. /package/build/{fixtures → types/fixtures}/examples/recipient-update.d.ts +0 -0
  322. /package/build/{fixtures → types/fixtures}/examples/recipient.d.ts +0 -0
  323. /package/build/{fixtures → types/fixtures}/examples/single-file-upload.d.ts +0 -0
  324. /package/build/{fixtures → types/fixtures}/examples/step-validation-errors.d.ts +0 -0
  325. /package/build/{fixtures → types/fixtures}/features/action-response.d.ts +0 -0
  326. /package/build/{fixtures → types/fixtures}/features/external.d.ts +0 -0
  327. /package/build/{fixtures → types/fixtures}/features/index.d.ts +0 -0
  328. /package/build/{fixtures → types/fixtures}/features/persist-async.d.ts +0 -0
  329. /package/build/{fixtures → types/fixtures}/features/polling.d.ts +0 -0
  330. /package/build/{fixtures → types/fixtures}/features/validation-async.d.ts +0 -0
  331. /package/build/{fixtures → types/fixtures}/index.d.ts +0 -0
  332. /package/build/{fixtures → types/fixtures}/jsonSchemaForm/allOf.d.ts +0 -0
  333. /package/build/{fixtures → types/fixtures}/layouts/all.d.ts +0 -0
  334. /package/build/{fixtures → types/fixtures}/layouts/final-step-layout.d.ts +0 -0
  335. /package/build/{fixtures → types/fixtures}/layouts/index.d.ts +0 -0
  336. /package/build/{fixtures → types/fixtures}/layouts/list.d.ts +0 -0
  337. /package/build/{fixtures → types/fixtures}/layouts/pay-in.d.ts +0 -0
  338. /package/build/{fixtures → types/fixtures}/layouts/review.d.ts +0 -0
  339. /package/build/{fixtures → types/fixtures}/layouts/success.d.ts +0 -0
  340. /package/build/{fixtures → types/fixtures}/responses/action-response-final.d.ts +0 -0
  341. /package/build/{fixtures → types/fixtures}/responses/action.d.ts +0 -0
  342. /package/build/{fixtures → types/fixtures}/responses/exit.d.ts +0 -0
  343. /package/build/{fixtures → types/fixtures}/responses/index.d.ts +0 -0
  344. /package/build/{fixtures → types/fixtures}/responses/recipient-update-final.d.ts +0 -0
  345. /package/build/{fixtures → types/fixtures}/schemas/basic-form.d.ts +0 -0
  346. /package/build/{fixtures → types/fixtures}/schemas/index.d.ts +0 -0
  347. /package/build/{fixtures → types/fixtures}/schemas/number-and-integer.d.ts +0 -0
  348. /package/build/{fixtures → types/fixtures}/schemas/one-of.d.ts +0 -0
  349. /package/build/{fixtures → types/fixtures}/schemas/string-formats.d.ts +0 -0
  350. /package/build/{fixtures → types/fixtures}/utils/image-util.d.ts +0 -0
  351. /package/build/{formControl → types/formControl}/FormControl.d.ts +0 -0
  352. /package/build/{formControl → types/formControl}/index.d.ts +0 -0
  353. /package/build/{formControl → types/formControl}/utils/index.d.ts +0 -0
  354. /package/build/{formControl → types/formControl}/utils/value-utils.d.ts +0 -0
  355. /package/build/{i18n → types/i18n}/index.d.ts +0 -0
  356. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/JsonSchemaForm.d.ts +0 -0
  357. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/AllOfSchema.d.ts +0 -0
  358. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/index.d.ts +0 -0
  359. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/ArraySchema.d.ts +0 -0
  360. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -0
  361. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/index.d.ts +0 -0
  362. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -0
  363. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +0 -0
  364. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -0
  365. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +0 -0
  366. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +0 -0
  367. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +0 -0
  368. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/index.d.ts +0 -0
  369. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/BasicTypeSchema.d.ts +0 -0
  370. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/index.d.ts +0 -0
  371. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.d.ts +0 -0
  372. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.messages.d.ts +0 -0
  373. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/index.d.ts +0 -0
  374. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/GenericSchema.d.ts +0 -0
  375. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/index.d.ts +0 -0
  376. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.d.ts +0 -0
  377. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.messages.d.ts +0 -0
  378. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/index.d.ts +0 -0
  379. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/index.d.ts +0 -0
  380. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/ObjectSchema.d.ts +0 -0
  381. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/index.d.ts +0 -0
  382. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/OneOfSchema.d.ts +0 -0
  383. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/index.d.ts +0 -0
  384. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/const-schema-utils.d.ts +0 -0
  385. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/index.d.ts +0 -0
  386. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/one-of-utils.d.ts +0 -0
  387. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -0
  388. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -0
  389. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/index.d.ts +0 -0
  390. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +0 -0
  391. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +0 -0
  392. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +0 -0
  393. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +0 -0
  394. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +0 -0
  395. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -0
  396. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/index.d.ts +0 -0
  397. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promoted-one-of-utils.d.ts +0 -0
  398. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +0 -0
  399. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +0 -0
  400. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +0 -0
  401. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.d.ts +0 -0
  402. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -0
  403. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/index.d.ts +0 -0
  404. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/SchemaFormControl.d.ts +0 -0
  405. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/index.d.ts +0 -0
  406. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/currency-utils.d.ts +0 -0
  407. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/index.d.ts +0 -0
  408. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/mapping-utils.d.ts +0 -0
  409. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -0
  410. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/index.d.ts +0 -0
  411. /package/build/{layout → types/layout}/DynamicLayout.d.ts +0 -0
  412. /package/build/{layout → types/layout}/alert/DynamicAlert.d.ts +0 -0
  413. /package/build/{layout → types/layout}/box/DynamicBox.d.ts +0 -0
  414. /package/build/{layout → types/layout}/button/DynamicButton.d.ts +0 -0
  415. /package/build/{layout → types/layout}/columns/DynamicColumns.d.ts +0 -0
  416. /package/build/{layout → types/layout}/decision/DynamicDecision.d.ts +0 -0
  417. /package/build/{layout → types/layout}/divider/DynamicDivider.d.ts +0 -0
  418. /package/build/{layout → types/layout}/external/DynamicExternal.d.ts +0 -0
  419. /package/build/{layout → types/layout}/external/DynamicExternal.messages.d.ts +0 -0
  420. /package/build/{layout → types/layout}/form/DynamicForm.d.ts +0 -0
  421. /package/build/{layout → types/layout}/heading/DynamicHeading.d.ts +0 -0
  422. /package/build/{layout → types/layout}/icon/DynamicIcon.d.ts +0 -0
  423. /package/build/{layout → types/layout}/image/DynamicImage.d.ts +0 -0
  424. /package/build/{layout → types/layout}/index.d.ts +0 -0
  425. /package/build/{layout → types/layout}/info/DynamicInfo.d.ts +0 -0
  426. /package/build/{layout → types/layout}/list/DynamicList.d.ts +0 -0
  427. /package/build/{layout → types/layout}/loadingIndicator/DynamicLoadingIndicator.d.ts +0 -0
  428. /package/build/{layout → types/layout}/paragraph/DynamicParagraph.d.ts +0 -0
  429. /package/build/{layout → types/layout}/paragraph/DynamicParagraph.messages.d.ts +0 -0
  430. /package/build/{layout → types/layout}/paragraph/useSnackBarIfAvailable.d.ts +0 -0
  431. /package/build/{layout → types/layout}/review/DynamicReview.d.ts +0 -0
  432. /package/build/{layout → types/layout}/utils.d.ts +0 -0
  433. /package/build/{step → types/step}/cameraStep/CameraStep.d.ts +0 -0
  434. /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.d.ts +0 -0
  435. /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -0
  436. /package/build/{step → types/step}/cameraStep/cameraCapture/components/index.d.ts +0 -0
  437. /package/build/{step → types/step}/cameraStep/cameraCapture/hooks/index.d.ts +0 -0
  438. /package/build/{step → types/step}/cameraStep/cameraCapture/index.d.ts +0 -0
  439. /package/build/{step → types/step}/cameraStep/cameraCapture/overlay/Overlay.d.ts +0 -0
  440. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -0
  441. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +0 -0
  442. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -0
  443. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +0 -0
  444. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/index.d.ts +0 -0
  445. /package/build/{step → types/step}/cameraStep/cameraCapture/tracking/index.d.ts +0 -0
  446. /package/build/{step → types/step}/cameraStep/cameraCapture/utils/index.d.ts +0 -0
  447. /package/build/{step → types/step}/cameraStep/index.d.ts +0 -0
  448. /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -0
  449. /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -0
  450. /package/build/{step → types/step}/externalConfirmationStep/index.d.ts +0 -0
  451. /package/build/{step → types/step}/index.d.ts +0 -0
  452. /package/build/{step → types/step}/layoutStep/LayoutStep.d.ts +0 -0
  453. /package/build/{step → types/step}/layoutStep/index.d.ts +0 -0
  454. /package/build/{step → types/step}/layoutStep/utils/index.d.ts +0 -0
  455. /package/build/{step → types/step}/layoutStep/utils/inline-reference-utils.d.ts +0 -0
  456. /package/build/{step → types/step}/layoutStep/utils/layout-utils.d.ts +0 -0
  457. /package/build/types/{common → types/common}/FormControl.d.ts +0 -0
  458. /package/build/types/{specification → types/specification}/Action.d.ts +0 -0
  459. /package/build/types/{specification → types/specification}/FileUploadSchema.d.ts +0 -0
  460. /package/build/types/{specification → types/specification}/LayoutComponent.d.ts +0 -0
  461. /package/build/types/{specification → types/specification}/Model.d.ts +0 -0
  462. /package/build/types/{specification → types/specification}/PersistAsync.d.ts +0 -0
  463. /package/build/types/{specification → types/specification}/Polling.d.ts +0 -0
  464. /package/build/types/{specification → types/specification}/Promotion.d.ts +0 -0
  465. /package/build/types/{specification → types/specification}/Schema.d.ts +0 -0
  466. /package/build/types/{specification → types/specification}/Step.d.ts +0 -0
  467. /package/build/types/{specification → types/specification}/ValidationAsync.d.ts +0 -0
  468. /package/build/types/{specification → types/specification}/core.d.ts +0 -0
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_intl_1 = require("react-intl");
8
- const CameraNotSupported_messages_1 = __importDefault(require("./CameraNotSupported.messages"));
9
- const CameraNotSupported = () => {
10
- const intl = (0, react_intl_1.useIntl)();
11
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ id: "camera-not-supported" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "container p-t-5" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "row" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "col-md-6 col-md-offset-3" }, { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "text-xs-center m-b-3" }, { children: intl.formatMessage(CameraNotSupported_messages_1.default.title) })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "text-xs-center m-b-5" }, { children: intl.formatMessage(CameraNotSupported_messages_1.default.paragraph) }))] })) })) })) })));
12
- };
13
- exports.default = CameraNotSupported;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_intl_1 = require("react-intl");
4
- exports.default = (0, react_intl_1.defineMessages)({
5
- title: {
6
- id: 'dynamicFlows.CameraCapture.CameraNotSupported.title',
7
- defaultMessage: 'Camera not supported',
8
- description: 'Title of standalone page prompting that camera is not available on users browser',
9
- },
10
- paragraph: {
11
- id: 'dynamicFlows.CameraCapture.CameraNotSupported.paragraph',
12
- defaultMessage: "The browser you're using doesn't have support for a camera. Try a different browser, device, or download our mobile app.",
13
- description: "Further text of standalone page prompting that camera is not available on user's browser",
14
- },
15
- });
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const components_1 = require("@transferwise/components");
8
- const react_intl_1 = require("react-intl");
9
- const NoCameraAccess_messages_1 = __importDefault(require("./NoCameraAccess.messages"));
10
- const NoCameraAccess = ({ onAction }) => {
11
- const intl = (0, react_intl_1.useIntl)();
12
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ id: "no-camera-access" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "container p-t-5" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "row" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "col-md-6 col-md-offset-3" }, { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "text-xs-center m-b-3" }, { children: intl.formatMessage(NoCameraAccess_messages_1.default.title) })), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "text-xs-center m-b-5" }, { children: intl.formatMessage(NoCameraAccess_messages_1.default.paragraph) })), (0, jsx_runtime_1.jsx)(components_1.Button, Object.assign({ block: true, onClick: onAction }, { children: intl.formatMessage(NoCameraAccess_messages_1.default.action) }))] })) })) })) })));
13
- };
14
- exports.default = NoCameraAccess;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_intl_1 = require("react-intl");
4
- exports.default = (0, react_intl_1.defineMessages)({
5
- title: {
6
- id: 'dynamicFlows.CameraCapture.NoCameraAccess.title',
7
- defaultMessage: "We can't access your camera",
8
- description: 'Title of standalone page prompting missing camera permissions',
9
- },
10
- paragraph: {
11
- id: 'dynamicFlows.CameraCapture.NoCameraAccess.paragraph',
12
- defaultMessage: "Enable camera access in your browser's settings to get going again.",
13
- description: 'Further text of standalone page prompting missing camera permissions',
14
- },
15
- action: {
16
- id: 'dynamicFlows.CameraCapture.NoCameraAccess.action',
17
- defaultMessage: 'Enable camera access',
18
- description: 'Action to ask for camera permissions again',
19
- },
20
- });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CameraNotSupported = exports.NoCameraAccess = void 0;
7
- var NoCameraAccess_1 = require("./NoCameraAccess/NoCameraAccess");
8
- Object.defineProperty(exports, "NoCameraAccess", { enumerable: true, get: function () { return __importDefault(NoCameraAccess_1).default; } });
9
- var CameraNotSupported_1 = require("./CameraNotSupported/CameraNotSupported");
10
- Object.defineProperty(exports, "CameraNotSupported", { enumerable: true, get: function () { return __importDefault(CameraNotSupported_1).default; } });
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.trackCameraNotSupported = exports.trackCameraFeedStarted = exports.trackCameraPermissionDenied = void 0;
4
- const utils_1 = require("../utils");
5
- const trackCameraPermissionDenied = (onEvent) => onEvent === null || onEvent === void 0 ? void 0 : onEvent('Dynamic Flow - Camera Permission Denied', {});
6
- exports.trackCameraPermissionDenied = trackCameraPermissionDenied;
7
- const trackCameraFeedStarted = async (onEvent, props, stream) => onEvent === null || onEvent === void 0 ? void 0 : onEvent('Dynamic Flow - Camera Feed Started', await getCameraStartedProperties(props, stream));
8
- exports.trackCameraFeedStarted = trackCameraFeedStarted;
9
- const trackCameraNotSupported = (onEvent, error) => onEvent === null || onEvent === void 0 ? void 0 : onEvent('Dynamic Flow - Camera Not Supported', { Error: error });
10
- exports.trackCameraNotSupported = trackCameraNotSupported;
11
- const getCameraStartedProperties = async (props, videoStream) => {
12
- var _a;
13
- const videoTrack = (0, utils_1.getVideoTrack)(videoStream);
14
- const capabilities = (0, utils_1.getVideoCapabilities)(videoStream);
15
- const settings = (_a = videoTrack === null || videoTrack === void 0 ? void 0 : videoTrack.getSettings) === null || _a === void 0 ? void 0 : _a.call(videoTrack);
16
- return Object.assign(Object.assign({}, (videoTrack && {
17
- 'Available Video Devices (by label)': await (0, utils_1.getAvailableVideoDeviceLabels)(),
18
- 'Active Video Device (by label)': await (0, utils_1.getActiveVideoDeviceLabel)(videoStream),
19
- 'Camera Capabilities': capabilities,
20
- 'Camera Settings': settings,
21
- })), { 'Camera Direction (Asked)': props === null || props === void 0 ? void 0 : props.direction });
22
- };
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVideoCapabilities = exports.getVideoTrack = exports.getActiveVideoDeviceLabel = exports.getAvailableVideoDeviceLabels = exports.getAvailableVideoDevices = exports.generateCanvasFromVideo = exports.isMainBackCamera = exports.isSelfieCamera = void 0;
4
- const isSelfieCamera = (stream) => {
5
- var _a;
6
- const { facingMode } = ((_a = (0, exports.getVideoTrack)(stream)) === null || _a === void 0 ? void 0 : _a.getSettings()) || {};
7
- // facingMode === undefined for desktop users
8
- return facingMode === 'user' || facingMode === undefined;
9
- };
10
- exports.isSelfieCamera = isSelfieCamera;
11
- const isMainBackCamera = (deviceInfo) => !!((deviceInfo === null || deviceInfo === void 0 ? void 0 : deviceInfo.label) || '').match(/camera2? 0/g);
12
- exports.isMainBackCamera = isMainBackCamera;
13
- const generateCanvasFromVideo = async (video) => {
14
- const canvas = document.createElement('canvas');
15
- if (video) {
16
- canvas.setAttribute('height', `${video.videoHeight}`);
17
- canvas.setAttribute('width', `${video.videoWidth}`);
18
- const context = canvas === null || canvas === void 0 ? void 0 : canvas.getContext('2d');
19
- if (context) {
20
- // Timeout is needed for intermittent iOS issue
21
- await new Promise((resolve) => setTimeout(resolve, 100));
22
- context.drawImage(video, 0, 0, canvas.width, canvas.height);
23
- }
24
- }
25
- return canvas;
26
- };
27
- exports.generateCanvasFromVideo = generateCanvasFromVideo;
28
- const getAvailableVideoDevices = async () => {
29
- var _a, _b;
30
- return ((await ((_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.enumerateDevices) === null || _b === void 0 ? void 0 : _b.call(_a))) || []).filter((deviceInfo) => deviceInfo.kind === 'videoinput');
31
- };
32
- exports.getAvailableVideoDevices = getAvailableVideoDevices;
33
- const getAvailableVideoDeviceLabels = async () => {
34
- var _a, _b;
35
- return ((await ((_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.enumerateDevices) === null || _b === void 0 ? void 0 : _b.call(_a))) || [])
36
- .filter((deviceInfo) => deviceInfo.kind === 'videoinput')
37
- .map((deviceInfo) => deviceInfo.label);
38
- };
39
- exports.getAvailableVideoDeviceLabels = getAvailableVideoDeviceLabels;
40
- const getActiveVideoDeviceLabel = async (videoStream) => {
41
- var _a, _b, _c;
42
- const capabilities = (0, exports.getVideoCapabilities)(videoStream);
43
- return (_c = ((await ((_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.mediaDevices) === null || _a === void 0 ? void 0 : _a.enumerateDevices) === null || _b === void 0 ? void 0 : _b.call(_a))) || [])
44
- .filter((deviceInfo) => deviceInfo.kind === 'videoinput')
45
- .find((deviceInfo) => deviceInfo.deviceId === (capabilities === null || capabilities === void 0 ? void 0 : capabilities.deviceId))) === null || _c === void 0 ? void 0 : _c.label;
46
- };
47
- exports.getActiveVideoDeviceLabel = getActiveVideoDeviceLabel;
48
- const getVideoTrack = (videoStream) => { var _a; return (((_a = videoStream === null || videoStream === void 0 ? void 0 : videoStream.getVideoTracks) === null || _a === void 0 ? void 0 : _a.call(videoStream)) || [])[0]; };
49
- exports.getVideoTrack = getVideoTrack;
50
- const getVideoCapabilities = (videoStream) => { var _a, _b; return (_b = (_a = (0, exports.getVideoTrack)(videoStream)) === null || _a === void 0 ? void 0 : _a.getCapabilities) === null || _b === void 0 ? void 0 : _b.call(_a); };
51
- exports.getVideoCapabilities = getVideoCapabilities;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = void 0;
7
- var CameraStep_1 = require("./CameraStep");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(CameraStep_1).default; } });
@@ -1,68 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_intl_1 = require("react-intl");
8
- const layout_1 = require("../../layout");
9
- const ExternalConfirmationStep_messages_1 = __importDefault(require("./ExternalConfirmationStep.messages"));
10
- // eslint-disable-next-line @typescript-eslint/no-empty-function
11
- const noop = () => { };
12
- const ExternalConfirmationStep = ({ url, onClose }) => {
13
- const { formatMessage } = (0, react_intl_1.useIntl)();
14
- return ((0, jsx_runtime_1.jsx)(layout_1.DynamicLayout, { components: [
15
- {
16
- type: 'box',
17
- width: 'lg',
18
- components: [
19
- {
20
- type: 'heading',
21
- text: formatMessage(ExternalConfirmationStep_messages_1.default.title),
22
- size: 'lg',
23
- align: 'center',
24
- margin: 'xl',
25
- },
26
- {
27
- type: 'info',
28
- markdown: formatMessage(ExternalConfirmationStep_messages_1.default.description, { origin: getOrigin(url) }),
29
- align: 'center',
30
- margin: 'xl',
31
- },
32
- {
33
- type: 'box',
34
- width: 'md',
35
- components: [
36
- {
37
- type: 'button',
38
- action: { title: formatMessage(ExternalConfirmationStep_messages_1.default.open), type: 'primary', url, exit: true },
39
- },
40
- {
41
- type: 'button',
42
- action: {
43
- title: formatMessage(ExternalConfirmationStep_messages_1.default.cancel),
44
- type: 'link',
45
- url: '',
46
- exit: true,
47
- },
48
- },
49
- ],
50
- },
51
- ],
52
- },
53
- ], submitted: false, onAction: (action) => {
54
- if (action.url) {
55
- window.open(action.url, '_blank');
56
- }
57
- onClose();
58
- }, onModelChange: noop, onPersistAsync: noop }));
59
- };
60
- exports.default = ExternalConfirmationStep;
61
- function getOrigin(url) {
62
- try {
63
- return new URL(url).origin;
64
- }
65
- catch (_a) {
66
- return url;
67
- }
68
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_intl_1 = require("react-intl");
4
- exports.default = (0, react_intl_1.defineMessages)({
5
- title: {
6
- id: 'dynamicFlows.ExternalConfirmation.title',
7
- defaultMessage: 'Please confirm',
8
- description: 'Heading for the confirmation screen.',
9
- },
10
- description: {
11
- id: 'dynamicFlows.ExternalConfirmation.description',
12
- defaultMessage: 'Please confirm you want to open **{origin}** in a new browser tab.',
13
- description: 'Description for the confirmation screen.',
14
- },
15
- open: {
16
- id: 'dynamicFlows.ExternalConfirmation.open',
17
- defaultMessage: 'Open in new tab',
18
- description: 'Button text confirming opening a new browser tab.',
19
- },
20
- cancel: {
21
- id: 'dynamicFlows.ExternalConfirmation.cancel',
22
- defaultMessage: 'Cancel',
23
- description: 'Button text rejecting opening a new browser tab.',
24
- },
25
- });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = void 0;
7
- var ExternalConfirmationStep_1 = require("./ExternalConfirmationStep");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ExternalConfirmationStep_1).default; } });
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ExternalConfirmationStep = exports.CameraStep = exports.LayoutStep = void 0;
7
- var layoutStep_1 = require("./layoutStep");
8
- Object.defineProperty(exports, "LayoutStep", { enumerable: true, get: function () { return __importDefault(layoutStep_1).default; } });
9
- var cameraStep_1 = require("./cameraStep");
10
- Object.defineProperty(exports, "CameraStep", { enumerable: true, get: function () { return __importDefault(cameraStep_1).default; } });
11
- var externalConfirmationStep_1 = require("./externalConfirmationStep");
12
- Object.defineProperty(exports, "ExternalConfirmationStep", { enumerable: true, get: function () { return __importDefault(externalConfirmationStep_1).default; } });
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const contexts_1 = require("../../common/contexts");
5
- const hooks_1 = require("../../common/hooks");
6
- const validators_1 = require("../../common/validators");
7
- const layout_1 = require("../../layout");
8
- const utils_1 = require("./utils");
9
- const getComponents = (step, options) => {
10
- var _a;
11
- if (!step || (0, validators_1.isEmpty)(step) || (!step.layout && !step.type)) {
12
- return [];
13
- }
14
- const layout = (0, utils_1.convertStepToLayout)(step, options);
15
- return (0, utils_1.inlineReferences)({
16
- layout,
17
- schemas: step.schemas || [],
18
- actions: step.actions || [],
19
- model: (_a = step.model) !== null && _a !== void 0 ? _a : null,
20
- });
21
- };
22
- const LayoutStep = (props) => {
23
- const { stepSpecification, stepLayoutOptions, submitted, model, formErrors, onModelChange } = props;
24
- const components = getComponents(stepSpecification, stepLayoutOptions);
25
- const { loading, registerPersistAsyncPromise } = (0, contexts_1.useDynamicFlow)();
26
- const onEvent = (0, contexts_1.useEventDispatcher)();
27
- const onAction = !loading
28
- ? props.onAction
29
- : () => {
30
- onEvent('Dynamic Flow - onAction supressed', { reason: 'LayoutStep - loading state' });
31
- };
32
- (0, hooks_1.useStepPolling)(stepSpecification.polling, onAction);
33
- return ((0, jsx_runtime_1.jsx)(layout_1.DynamicLayout, { components: components, submitted: submitted, model: model, errors: formErrors, onAction: onAction, onModelChange: onModelChange, onPersistAsync: registerPersistAsyncPromise }));
34
- };
35
- exports.default = LayoutStep;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = void 0;
7
- var LayoutStep_1 = require("./LayoutStep");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(LayoutStep_1).default; } });
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.inlineReferences = exports.convertStepToLayout = void 0;
4
- var layout_utils_1 = require("./layout-utils");
5
- Object.defineProperty(exports, "convertStepToLayout", { enumerable: true, get: function () { return layout_utils_1.convertStepToLayout; } });
6
- var inline_reference_utils_1 = require("./inline-reference-utils");
7
- Object.defineProperty(exports, "inlineReferences", { enumerable: true, get: function () { return inline_reference_utils_1.inlineReferences; } });
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.inlineReferences = void 0;
4
- const layout_utils_1 = require("./layout-utils");
5
- function inlineReferences({ layout, schemas, actions, model, }) {
6
- if (!layout) {
7
- return [];
8
- }
9
- if (!schemas) {
10
- return layout;
11
- }
12
- return layout.map((component) => {
13
- if (component.type === 'form') {
14
- return inlineFormSchema({ formComponent: component, schemas });
15
- }
16
- if (component.type === 'decision') {
17
- return inlineDecisionActions({ decisionComponent: component, actions });
18
- }
19
- if (component.type === 'button') {
20
- return inlineAction({ actionComponent: component, actions });
21
- }
22
- if (component.type === 'box') {
23
- return inlineBoxReferences({ boxComponent: component, schemas, actions, model });
24
- }
25
- if (component.type === 'columns') {
26
- return inlineColumnsReferences({ columnsComponent: component, schemas, actions, model });
27
- }
28
- return component;
29
- });
30
- }
31
- exports.inlineReferences = inlineReferences;
32
- function inlineFormSchema({ formComponent, schemas, }) {
33
- if (isReference(formComponent.schema) && formComponent.schema.$ref) {
34
- return Object.assign(Object.assign({}, formComponent), { schema: getSchemaById(schemas, formComponent.schema.$ref) });
35
- }
36
- return Object.assign({}, formComponent);
37
- }
38
- function inlineDecisionActions({ decisionComponent, actions, }) {
39
- var _a;
40
- const newOptions = (_a = decisionComponent === null || decisionComponent === void 0 ? void 0 : decisionComponent.options) === null || _a === void 0 ? void 0 : _a.map((option) => {
41
- return option.action && isReference(option.action)
42
- ? Object.assign(Object.assign({}, option), { action: getActionById(actions, option.action.$ref) }) : option;
43
- });
44
- return Object.assign(Object.assign({}, decisionComponent), { options: newOptions });
45
- }
46
- function inlineAction({ actionComponent, actions, }) {
47
- var _a;
48
- if (actionComponent.action &&
49
- isReference(actionComponent.action) &&
50
- ((_a = actionComponent.action) === null || _a === void 0 ? void 0 : _a.$ref)) {
51
- const newAction = getActionById(actions, actionComponent.action.$ref);
52
- return (0, layout_utils_1.convertStepActionToDynamicAction)(newAction);
53
- }
54
- return actionComponent;
55
- }
56
- function inlineBoxReferences({ boxComponent, schemas, actions, model, }) {
57
- return Object.assign(Object.assign({}, boxComponent), { components: inlineReferences({ layout: boxComponent.components, schemas, actions, model }) });
58
- }
59
- function inlineColumnsReferences({ columnsComponent, schemas, actions, model, }) {
60
- return Object.assign(Object.assign({}, columnsComponent), { left: inlineReferences({ layout: columnsComponent.left, schemas, actions, model }), right: inlineReferences({ layout: columnsComponent.right, schemas, actions, model }) });
61
- }
62
- function getSchemaById(schemas, id) {
63
- const schema = schemas.find((schema) => schema.$id === id);
64
- if (!schema) {
65
- throw new Error(`Fatal Error. Schema not found. $id ${id}`);
66
- }
67
- return schema;
68
- }
69
- function getActionById(actions, id) {
70
- const action = actions.find((action) => action.$id === id);
71
- if (!action) {
72
- throw new Error(`Fatal Error. Action not found. $id ${id}`);
73
- }
74
- return action;
75
- }
76
- function isReference(block) {
77
- return Object.prototype.hasOwnProperty.call(block, '$ref');
78
- }
@@ -1,203 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertStepActionToDynamicAction = exports.convertStepToLayout = void 0;
4
- function convertStepToLayout(step, { displayStepTitle = true } = {}) {
5
- if (!step || !step.type) {
6
- throw new Error('Missing step type');
7
- }
8
- // This condition is meant as a temporary hack until mobile platforms will be refactored to fully support the layout property
9
- if (step.layout) {
10
- return addMissingTitleAndDescriptionToStep(step, displayStepTitle);
11
- }
12
- switch (step.type) {
13
- case 'final':
14
- return convertFinalStepToDynamicLayout(step);
15
- case 'decision':
16
- return convertDecisionStepToDynamicLayout(step);
17
- case 'form':
18
- return convertFormStepToDynamicLayout(step);
19
- case 'external':
20
- return convertExternalStepToDynamicLayout(step);
21
- default:
22
- throw new Error('invalid step type');
23
- }
24
- }
25
- exports.convertStepToLayout = convertStepToLayout;
26
- function convertCommonComponents(step) {
27
- const layout = [];
28
- if (step.title) {
29
- layout.push(convertStepTitleToDynamicHeading(step.title));
30
- }
31
- if (step.image) {
32
- const image = convertStepImageToDynamicImage(step.image);
33
- layout.push(image);
34
- }
35
- if (step.description) {
36
- layout.push(convertStepDescriptionToDynamicParagraph(step.description));
37
- }
38
- return layout;
39
- }
40
- function convertExternalStepToDynamicLayout(step) {
41
- return [...convertCommonComponents(step), convertStepToExternalComponent(step)];
42
- }
43
- function convertStepToExternalComponent(step) {
44
- return {
45
- type: 'external',
46
- requestUrl: step.requestUrl,
47
- polling: step.polling,
48
- responseHandlers: step.responseHandlers,
49
- retryTitle: step.retryTitle,
50
- };
51
- }
52
- function convertFormStepToDynamicLayout(step) {
53
- const layout = convertCommonComponents(step);
54
- if (step.reviewFields) {
55
- layout.push(convertStepReviewToDynamicReview(step.reviewFields));
56
- }
57
- if (step.schemas) {
58
- layout.push(...getSchemaLayout(step));
59
- }
60
- if (step.actions) {
61
- const actions = step.actions.map(convertStepActionToDynamicAction);
62
- layout.push(dynamicBox(actions, 'md'));
63
- }
64
- return layout;
65
- }
66
- function convertFinalStepToDynamicLayout(step) {
67
- const layout = [];
68
- if (step.details) {
69
- if (step.details.image) {
70
- const image = convertFinalStepImageToDynamicImage(step.details.image);
71
- layout.push(image);
72
- }
73
- if (step.details.title) {
74
- layout.push(convertStepTitleToDynamicHeading(step.details.title));
75
- }
76
- if (step.details.description) {
77
- layout.push(convertStepDescriptionToDynamicParagraph(step.details.description));
78
- }
79
- }
80
- if (step.actions) {
81
- const actions = step.actions.map((action) => convertStepActionToDynamicAction(Object.assign(Object.assign({}, action), { type: action.type || 'primary' })));
82
- layout.push(dynamicBox(actions, 'md'));
83
- }
84
- return layout;
85
- }
86
- function convertDecisionStepToDynamicLayout(step) {
87
- const layout = convertCommonComponents(step);
88
- if (step.options) {
89
- layout.push(convertStepDecisionToDynamicDecision(step.options));
90
- }
91
- return layout;
92
- }
93
- function dynamicBox(components, size) {
94
- return {
95
- type: 'box',
96
- width: size || 'md',
97
- components,
98
- };
99
- }
100
- function convertStepTitleToDynamicHeading(title) {
101
- return {
102
- type: 'heading',
103
- text: title,
104
- size: 'lg',
105
- margin: 'lg',
106
- align: 'center',
107
- };
108
- }
109
- function convertStepDescriptionToDynamicParagraph(description) {
110
- return {
111
- type: 'paragraph',
112
- text: description,
113
- align: 'center',
114
- };
115
- }
116
- function convertStepSchemaToDynamicForm(schema) {
117
- return { type: 'form', schema };
118
- }
119
- function convertStepDecisionToDynamicDecision(options) {
120
- return {
121
- type: 'decision',
122
- options: options.map(convertStepDecisionOption),
123
- };
124
- }
125
- function convertStepDecisionOption(option) {
126
- return {
127
- title: option.title,
128
- description: option.description,
129
- action: {
130
- title: option.title,
131
- method: 'GET',
132
- url: option.url,
133
- disabled: option.disabled,
134
- },
135
- };
136
- }
137
- function convertStepImageToDynamicImage(image) {
138
- return {
139
- type: 'image',
140
- url: image.url,
141
- text: image.text,
142
- margin: image.margin || 'lg',
143
- size: image.size || 'md',
144
- };
145
- }
146
- function convertFinalStepImageToDynamicImage(image) {
147
- return typeof image === 'string'
148
- ? {
149
- type: 'image',
150
- url: image,
151
- text: undefined,
152
- margin: 'lg',
153
- size: 'md',
154
- }
155
- : convertStepImageToDynamicImage(image);
156
- }
157
- function convertStepActionToDynamicAction(action) {
158
- const newAction = Object.assign(Object.assign({}, action), { title: action.title });
159
- return {
160
- type: 'button',
161
- action: newAction,
162
- };
163
- }
164
- exports.convertStepActionToDynamicAction = convertStepActionToDynamicAction;
165
- function convertStepReviewToDynamicReview(reviewFields) {
166
- return {
167
- type: 'review',
168
- title: reviewFields.title,
169
- fields: reviewFields.fields.map(convertReviewFieldToDefinition),
170
- };
171
- }
172
- function convertReviewFieldToDefinition(reviewField) {
173
- return {
174
- label: reviewField.title,
175
- value: reviewField.value,
176
- };
177
- }
178
- function getSchemaLayout(step) {
179
- const layout = [];
180
- if (step.schemas && step.schemas[0]) {
181
- const schema = step.schemas[0];
182
- const dynamicForm = convertStepSchemaToDynamicForm(schema);
183
- if (isWideForm()) {
184
- layout.push(dynamicForm);
185
- }
186
- else {
187
- layout.push(dynamicBox([dynamicForm], 'md'));
188
- }
189
- }
190
- return layout;
191
- }
192
- function isWideForm() {
193
- // For the time being we won't support automatically widening forms
194
- // Unlike it V2, there is no way to easily iterate and identify narrow fields
195
- return false;
196
- }
197
- function addMissingTitleAndDescriptionToStep(step, displayStepTitle) {
198
- return [
199
- ...(displayStepTitle && step.title ? [convertStepTitleToDynamicHeading(step.title)] : []),
200
- ...(step.description ? [convertStepDescriptionToDynamicParagraph(step.description)] : []),
201
- ...(step.layout || []),
202
- ];
203
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });