@wise/dynamic-flow-client 0.4.1 → 0.4.3

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 (700) 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 +6 -5
  6. package/build/common/constants/DateMode.js +0 -8
  7. package/build/common/constants/DateMode.js.map +0 -1
  8. package/build/common/constants/FormControlType.js +0 -21
  9. package/build/common/constants/FormControlType.js.map +0 -1
  10. package/build/common/constants/MonthFormat.js +0 -8
  11. package/build/common/constants/MonthFormat.js.map +0 -1
  12. package/build/common/constants/SchemaType.js +0 -15
  13. package/build/common/constants/SchemaType.js.map +0 -1
  14. package/build/common/constants/Size.js +0 -11
  15. package/build/common/constants/Size.js.map +0 -1
  16. package/build/common/constants/index.js +0 -22
  17. package/build/common/constants/index.js.map +0 -1
  18. package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +0 -30
  19. package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js.map +0 -1
  20. package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +0 -20
  21. package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js.map +0 -1
  22. package/build/common/contexts/eventsContext/EventsContext.js +0 -23
  23. package/build/common/contexts/eventsContext/EventsContext.js.map +0 -1
  24. package/build/common/contexts/fetcherContexts/FetcherContexts.js +0 -30
  25. package/build/common/contexts/fetcherContexts/FetcherContexts.js.map +0 -1
  26. package/build/common/contexts/index.js +0 -21
  27. package/build/common/contexts/index.js.map +0 -1
  28. package/build/common/contexts/logContext/LogContext.js +0 -28
  29. package/build/common/contexts/logContext/LogContext.js.map +0 -1
  30. package/build/common/hooks/index.js +0 -24
  31. package/build/common/hooks/index.js.map +0 -1
  32. package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +0 -14
  33. package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js.map +0 -1
  34. package/build/common/hooks/useExternal/useExternal.js +0 -20
  35. package/build/common/hooks/useExternal/useExternal.js.map +0 -1
  36. package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +0 -63
  37. package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js.map +0 -1
  38. package/build/common/hooks/usePersistAsync/usePersistAsync.js +0 -99
  39. package/build/common/hooks/usePersistAsync/usePersistAsync.js.map +0 -1
  40. package/build/common/hooks/usePolling/usePolling.js +0 -53
  41. package/build/common/hooks/usePolling/usePolling.js.map +0 -1
  42. package/build/common/hooks/usePrevious/usePrevious.js +0 -13
  43. package/build/common/hooks/usePrevious/usePrevious.js.map +0 -1
  44. package/build/common/hooks/useStepPolling/useStepPolling.js +0 -50
  45. package/build/common/hooks/useStepPolling/useStepPolling.js.map +0 -1
  46. package/build/common/makeFetcher/index.js +0 -18
  47. package/build/common/makeFetcher/index.js.map +0 -1
  48. package/build/common/makeFetcher/makeFetcher.js +0 -24
  49. package/build/common/makeFetcher/makeFetcher.js.map +0 -1
  50. package/build/common/messages.js +0 -11
  51. package/build/common/messages.js.map +0 -1
  52. package/build/common/utils/api-utils.js +0 -20
  53. package/build/common/utils/api-utils.js.map +0 -1
  54. package/build/common/utils/date-utils.js +0 -28
  55. package/build/common/utils/date-utils.js.map +0 -1
  56. package/build/common/utils/debounce.js +0 -39
  57. package/build/common/utils/debounce.js.map +0 -1
  58. package/build/common/utils/file-utils.js +0 -39
  59. package/build/common/utils/file-utils.js.map +0 -1
  60. package/build/common/utils/id-utils.js +0 -9
  61. package/build/common/utils/id-utils.js.map +0 -1
  62. package/build/common/utils/index.js +0 -25
  63. package/build/common/utils/index.js.map +0 -1
  64. package/build/common/utils/is-equal.js +0 -26
  65. package/build/common/utils/is-equal.js.map +0 -1
  66. package/build/common/utils/schema-utils.js +0 -56
  67. package/build/common/utils/schema-utils.js.map +0 -1
  68. package/build/common/utils/step-utils.js +0 -48
  69. package/build/common/utils/step-utils.js.map +0 -1
  70. package/build/common/validators/index.js +0 -29
  71. package/build/common/validators/index.js.map +0 -1
  72. package/build/common/validators/models/model-validators.js +0 -70
  73. package/build/common/validators/models/model-validators.js.map +0 -1
  74. package/build/common/validators/models/models.utils.js +0 -118
  75. package/build/common/validators/models/models.utils.js.map +0 -1
  76. package/build/common/validators/schemas/schema-validators.js +0 -100
  77. package/build/common/validators/schemas/schema-validators.js.map +0 -1
  78. package/build/common/validators/types/type-validators.js +0 -22
  79. package/build/common/validators/types/type-validators.js.map +0 -1
  80. package/build/common/validators/validationFailures/validation-failures.js +0 -152
  81. package/build/common/validators/validationFailures/validation-failures.js.map +0 -1
  82. package/build/common/validators/validationFailures/validation-failures.utils.js +0 -50
  83. package/build/common/validators/validationFailures/validation-failures.utils.js.map +0 -1
  84. package/build/common/validators/values/value-validators.js +0 -8
  85. package/build/common/validators/values/value-validators.js.map +0 -1
  86. package/build/dynamicFlow/DynamicFlow.js +0 -251
  87. package/build/dynamicFlow/DynamicFlow.js.map +0 -1
  88. package/build/dynamicFlow/DynamicFlowStep.js +0 -26
  89. package/build/dynamicFlow/DynamicFlowStep.js.map +0 -1
  90. package/build/dynamicFlow/DynamicFlowTypes.js +0 -9
  91. package/build/dynamicFlow/DynamicFlowTypes.js.map +0 -1
  92. package/build/dynamicFlow/index.js +0 -9
  93. package/build/dynamicFlow/index.js.map +0 -1
  94. package/build/dynamicFlow/stories/DynamicFlow.story.js +0 -37
  95. package/build/dynamicFlow/stories/DynamicFlow.story.js.map +0 -1
  96. package/build/dynamicFlow/stories/EditableDynamicFlow.js +0 -55
  97. package/build/dynamicFlow/stories/EditableDynamicFlow.js.map +0 -1
  98. package/build/dynamicFlow/stories/fixtureFetcher.js +0 -61
  99. package/build/dynamicFlow/stories/fixtureFetcher.js.map +0 -1
  100. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +0 -30
  101. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js.map +0 -1
  102. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +0 -16
  103. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js.map +0 -1
  104. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +0 -19
  105. package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js.map +0 -1
  106. package/build/dynamicFlow/utils/index.js +0 -27
  107. package/build/dynamicFlow/utils/index.js.map +0 -1
  108. package/build/dynamicFlow/utils/responseParsers/response-parsers.js +0 -67
  109. package/build/dynamicFlow/utils/responseParsers/response-parsers.js.map +0 -1
  110. package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +0 -28
  111. package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js.map +0 -1
  112. package/build/dynamicFlow/utils/useDynamicFlowState.js +0 -92
  113. package/build/dynamicFlow/utils/useDynamicFlowState.js.map +0 -1
  114. package/build/dynamicFlow/utils/useLoader.js +0 -16
  115. package/build/dynamicFlow/utils/useLoader.js.map +0 -1
  116. package/build/fixtures/components/alert.js +0 -34
  117. package/build/fixtures/components/alert.js.map +0 -1
  118. package/build/fixtures/components/box.js +0 -23
  119. package/build/fixtures/components/box.js.map +0 -1
  120. package/build/fixtures/components/button.js +0 -57
  121. package/build/fixtures/components/button.js.map +0 -1
  122. package/build/fixtures/components/columns.js +0 -39
  123. package/build/fixtures/components/columns.js.map +0 -1
  124. package/build/fixtures/components/copyable.js +0 -25
  125. package/build/fixtures/components/copyable.js.map +0 -1
  126. package/build/fixtures/components/decision.js +0 -57
  127. package/build/fixtures/components/decision.js.map +0 -1
  128. package/build/fixtures/components/heading.js +0 -17
  129. package/build/fixtures/components/heading.js.map +0 -1
  130. package/build/fixtures/components/image.js +0 -26
  131. package/build/fixtures/components/image.js.map +0 -1
  132. package/build/fixtures/components/index.js +0 -33
  133. package/build/fixtures/components/index.js.map +0 -1
  134. package/build/fixtures/components/info.js +0 -36
  135. package/build/fixtures/components/info.js.map +0 -1
  136. package/build/fixtures/components/list.js +0 -37
  137. package/build/fixtures/components/list.js.map +0 -1
  138. package/build/fixtures/components/loading-indicator.js +0 -19
  139. package/build/fixtures/components/loading-indicator.js.map +0 -1
  140. package/build/fixtures/components/paragraph.js +0 -31
  141. package/build/fixtures/components/paragraph.js.map +0 -1
  142. package/build/fixtures/components/review.js +0 -63
  143. package/build/fixtures/components/review.js.map +0 -1
  144. package/build/fixtures/examples/camera-capture.js +0 -124
  145. package/build/fixtures/examples/camera-capture.js.map +0 -1
  146. package/build/fixtures/examples/index.js +0 -17
  147. package/build/fixtures/examples/index.js.map +0 -1
  148. package/build/fixtures/examples/recipient-update.js +0 -253
  149. package/build/fixtures/examples/recipient-update.js.map +0 -1
  150. package/build/fixtures/examples/recipient.js +0 -316
  151. package/build/fixtures/examples/recipient.js.map +0 -1
  152. package/build/fixtures/examples/single-file-upload.js +0 -101
  153. package/build/fixtures/examples/single-file-upload.js.map +0 -1
  154. package/build/fixtures/examples/step-validation-errors.js +0 -78
  155. package/build/fixtures/examples/step-validation-errors.js.map +0 -1
  156. package/build/fixtures/features/action-response.js +0 -32
  157. package/build/fixtures/features/action-response.js.map +0 -1
  158. package/build/fixtures/features/external.js +0 -34
  159. package/build/fixtures/features/external.js.map +0 -1
  160. package/build/fixtures/features/index.js +0 -17
  161. package/build/fixtures/features/index.js.map +0 -1
  162. package/build/fixtures/features/persist-async.js +0 -47
  163. package/build/fixtures/features/persist-async.js.map +0 -1
  164. package/build/fixtures/features/polling.js +0 -36
  165. package/build/fixtures/features/polling.js.map +0 -1
  166. package/build/fixtures/features/validation-async.js +0 -41
  167. package/build/fixtures/features/validation-async.js.map +0 -1
  168. package/build/fixtures/index.js +0 -39
  169. package/build/fixtures/index.js.map +0 -1
  170. package/build/fixtures/jsonSchemaForm/allOf.js +0 -122
  171. package/build/fixtures/jsonSchemaForm/allOf.js.map +0 -1
  172. package/build/fixtures/jsonSchemaForm/audRecipient.d.ts +0 -3
  173. package/build/fixtures/jsonSchemaForm/audRecipient.js +0 -1107
  174. package/build/fixtures/jsonSchemaForm/audRecipient.js.map +0 -1
  175. package/build/fixtures/jsonSchemaForm/currency.d.ts +0 -3
  176. package/build/fixtures/jsonSchemaForm/currency.js +0 -51
  177. package/build/fixtures/jsonSchemaForm/currency.js.map +0 -1
  178. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.d.ts +0 -3
  179. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +0 -40
  180. package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js.map +0 -1
  181. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.d.ts +0 -3
  182. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +0 -39
  183. package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js.map +0 -1
  184. package/build/fixtures/jsonSchemaForm/oneOf.d.ts +0 -3
  185. package/build/fixtures/jsonSchemaForm/oneOf.js +0 -122
  186. package/build/fixtures/jsonSchemaForm/oneOf.js.map +0 -1
  187. package/build/fixtures/jsonSchemaForm/oneOfTabs.d.ts +0 -3
  188. package/build/fixtures/jsonSchemaForm/oneOfTabs.js +0 -56
  189. package/build/fixtures/jsonSchemaForm/oneOfTabs.js.map +0 -1
  190. package/build/fixtures/jsonSchemaForm/promotedOneOf.d.ts +0 -3
  191. package/build/fixtures/jsonSchemaForm/promotedOneOf.js +0 -59
  192. package/build/fixtures/jsonSchemaForm/promotedOneOf.js.map +0 -1
  193. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.d.ts +0 -3
  194. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +0 -105
  195. package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js.map +0 -1
  196. package/build/fixtures/jsonSchemaForm/simple.d.ts +0 -3
  197. package/build/fixtures/jsonSchemaForm/simple.js +0 -51
  198. package/build/fixtures/jsonSchemaForm/simple.js.map +0 -1
  199. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.d.ts +0 -3
  200. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +0 -74
  201. package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js.map +0 -1
  202. package/build/fixtures/jsonSchemaForm/validationAsync.d.ts +0 -3
  203. package/build/fixtures/jsonSchemaForm/validationAsync.js +0 -26
  204. package/build/fixtures/jsonSchemaForm/validationAsync.js.map +0 -1
  205. package/build/fixtures/layouts/all.js +0 -179
  206. package/build/fixtures/layouts/all.js.map +0 -1
  207. package/build/fixtures/layouts/final-step-layout.js +0 -42
  208. package/build/fixtures/layouts/final-step-layout.js.map +0 -1
  209. package/build/fixtures/layouts/index.js +0 -19
  210. package/build/fixtures/layouts/index.js.map +0 -1
  211. package/build/fixtures/layouts/list.js +0 -36
  212. package/build/fixtures/layouts/list.js.map +0 -1
  213. package/build/fixtures/layouts/pay-in.js +0 -100
  214. package/build/fixtures/layouts/pay-in.js.map +0 -1
  215. package/build/fixtures/layouts/review.js +0 -163
  216. package/build/fixtures/layouts/review.js.map +0 -1
  217. package/build/fixtures/layouts/success.js +0 -69
  218. package/build/fixtures/layouts/success.js.map +0 -1
  219. package/build/fixtures/responses/action-response-final.js +0 -27
  220. package/build/fixtures/responses/action-response-final.js.map +0 -1
  221. package/build/fixtures/responses/action.js +0 -5
  222. package/build/fixtures/responses/action.js.map +0 -1
  223. package/build/fixtures/responses/exit.js +0 -5
  224. package/build/fixtures/responses/exit.js.map +0 -1
  225. package/build/fixtures/responses/index.js +0 -15
  226. package/build/fixtures/responses/index.js.map +0 -1
  227. package/build/fixtures/responses/recipient-update-final.js +0 -27
  228. package/build/fixtures/responses/recipient-update-final.js.map +0 -1
  229. package/build/fixtures/schemas/basic-form.js +0 -42
  230. package/build/fixtures/schemas/basic-form.js.map +0 -1
  231. package/build/fixtures/schemas/index.js +0 -15
  232. package/build/fixtures/schemas/index.js.map +0 -1
  233. package/build/fixtures/schemas/number-and-integer.js +0 -44
  234. package/build/fixtures/schemas/number-and-integer.js.map +0 -1
  235. package/build/fixtures/schemas/one-of.js +0 -223
  236. package/build/fixtures/schemas/one-of.js.map +0 -1
  237. package/build/fixtures/schemas/string-formats.js +0 -65
  238. package/build/fixtures/schemas/string-formats.js.map +0 -1
  239. package/build/fixtures/utils/image-util.js +0 -23
  240. package/build/fixtures/utils/image-util.js.map +0 -1
  241. package/build/formControl/FormControl.js +0 -214
  242. package/build/formControl/FormControl.js.map +0 -1
  243. package/build/formControl/index.js +0 -9
  244. package/build/formControl/index.js.map +0 -1
  245. package/build/formControl/utils/index.js +0 -18
  246. package/build/formControl/utils/index.js.map +0 -1
  247. package/build/formControl/utils/value-utils.js +0 -112
  248. package/build/formControl/utils/value-utils.js.map +0 -1
  249. package/build/i18n/index.js +0 -37
  250. package/build/i18n/index.js.map +0 -1
  251. package/build/index.d.ts +0 -11
  252. package/build/index.js +0 -39
  253. package/build/index.js.map +0 -1
  254. package/build/jsonSchemaForm/JsonSchemaForm.js +0 -23
  255. package/build/jsonSchemaForm/JsonSchemaForm.js.map +0 -1
  256. package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +0 -47
  257. package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js.map +0 -1
  258. package/build/jsonSchemaForm/allOfSchema/index.js +0 -9
  259. package/build/jsonSchemaForm/allOfSchema/index.js.map +0 -1
  260. package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +0 -20
  261. package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js.map +0 -1
  262. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +0 -21
  263. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js.map +0 -1
  264. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +0 -9
  265. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js.map +0 -1
  266. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +0 -87
  267. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js.map +0 -1
  268. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +0 -21
  269. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js.map +0 -1
  270. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +0 -9
  271. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js.map +0 -1
  272. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +0 -19
  273. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js.map +0 -1
  274. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +0 -39
  275. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js.map +0 -1
  276. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +0 -21
  277. package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js.map +0 -1
  278. package/build/jsonSchemaForm/arrayTypeSchema/index.js +0 -9
  279. package/build/jsonSchemaForm/arrayTypeSchema/index.js.map +0 -1
  280. package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +0 -92
  281. package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js.map +0 -1
  282. package/build/jsonSchemaForm/basicTypeSchema/index.js +0 -9
  283. package/build/jsonSchemaForm/basicTypeSchema/index.js.map +0 -1
  284. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +0 -74
  285. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js.map +0 -1
  286. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +0 -56
  287. package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js.map +0 -1
  288. package/build/jsonSchemaForm/controlFeedback/index.js +0 -9
  289. package/build/jsonSchemaForm/controlFeedback/index.js.map +0 -1
  290. package/build/jsonSchemaForm/genericSchema/GenericSchema.js +0 -119
  291. package/build/jsonSchemaForm/genericSchema/GenericSchema.js.map +0 -1
  292. package/build/jsonSchemaForm/genericSchema/index.js +0 -9
  293. package/build/jsonSchemaForm/genericSchema/index.js.map +0 -1
  294. package/build/jsonSchemaForm/help/Help.js +0 -15
  295. package/build/jsonSchemaForm/help/Help.js.map +0 -1
  296. package/build/jsonSchemaForm/help/Help.messages.js +0 -11
  297. package/build/jsonSchemaForm/help/Help.messages.js.map +0 -1
  298. package/build/jsonSchemaForm/help/index.js +0 -9
  299. package/build/jsonSchemaForm/help/index.js.map +0 -1
  300. package/build/jsonSchemaForm/index.js +0 -9
  301. package/build/jsonSchemaForm/index.js.map +0 -1
  302. package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +0 -63
  303. package/build/jsonSchemaForm/objectSchema/ObjectSchema.js.map +0 -1
  304. package/build/jsonSchemaForm/objectSchema/index.js +0 -9
  305. package/build/jsonSchemaForm/objectSchema/index.js.map +0 -1
  306. package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +0 -136
  307. package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js.map +0 -1
  308. package/build/jsonSchemaForm/oneOfSchema/index.js +0 -9
  309. package/build/jsonSchemaForm/oneOfSchema/index.js.map +0 -1
  310. package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +0 -14
  311. package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js.map +0 -1
  312. package/build/jsonSchemaForm/oneOfSchema/utils/index.js +0 -19
  313. package/build/jsonSchemaForm/oneOfSchema/utils/index.js.map +0 -1
  314. package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +0 -70
  315. package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js.map +0 -1
  316. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +0 -21
  317. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js.map +0 -1
  318. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +0 -11
  319. package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js.map +0 -1
  320. package/build/jsonSchemaForm/persistAsyncSchema/index.js +0 -9
  321. package/build/jsonSchemaForm/persistAsyncSchema/index.js.map +0 -1
  322. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +0 -120
  323. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js.map +0 -1
  324. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +0 -9
  325. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js.map +0 -1
  326. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +0 -67
  327. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js.map +0 -1
  328. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +0 -37
  329. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js.map +0 -1
  330. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +0 -9
  331. package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js.map +0 -1
  332. package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +0 -59
  333. package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js.map +0 -1
  334. package/build/jsonSchemaForm/promotedOneOfSchema/index.js +0 -9
  335. package/build/jsonSchemaForm/promotedOneOfSchema/index.js.map +0 -1
  336. package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +0 -13
  337. package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js.map +0 -1
  338. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +0 -19
  339. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js.map +0 -1
  340. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +0 -26
  341. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js.map +0 -1
  342. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +0 -24
  343. package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js.map +0 -1
  344. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +0 -59
  345. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js.map +0 -1
  346. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +0 -16
  347. package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js.map +0 -1
  348. package/build/jsonSchemaForm/readOnlySchema/index.js +0 -9
  349. package/build/jsonSchemaForm/readOnlySchema/index.js.map +0 -1
  350. package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +0 -99
  351. package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js.map +0 -1
  352. package/build/jsonSchemaForm/schemaFormControl/index.js +0 -9
  353. package/build/jsonSchemaForm/schemaFormControl/index.js.map +0 -1
  354. package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +0 -78
  355. package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js.map +0 -1
  356. package/build/jsonSchemaForm/schemaFormControl/utils/index.js +0 -18
  357. package/build/jsonSchemaForm/schemaFormControl/utils/index.js.map +0 -1
  358. package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +0 -111
  359. package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js.map +0 -1
  360. package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +0 -90
  361. package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js.map +0 -1
  362. package/build/jsonSchemaForm/validationAsyncSchema/index.js +0 -9
  363. package/build/jsonSchemaForm/validationAsyncSchema/index.js.map +0 -1
  364. package/build/layout/DynamicLayout.js +0 -53
  365. package/build/layout/DynamicLayout.js.map +0 -1
  366. package/build/layout/alert/DynamicAlert.js +0 -32
  367. package/build/layout/alert/DynamicAlert.js.map +0 -1
  368. package/build/layout/box/DynamicBox.js +0 -33
  369. package/build/layout/box/DynamicBox.js.map +0 -1
  370. package/build/layout/button/DynamicButton.js +0 -50
  371. package/build/layout/button/DynamicButton.js.map +0 -1
  372. package/build/layout/columns/DynamicColumns.js +0 -30
  373. package/build/layout/columns/DynamicColumns.js.map +0 -1
  374. package/build/layout/decision/DynamicDecision.js +0 -30
  375. package/build/layout/decision/DynamicDecision.js.map +0 -1
  376. package/build/layout/divider/DynamicDivider.js +0 -11
  377. package/build/layout/divider/DynamicDivider.js.map +0 -1
  378. package/build/layout/external/DynamicExternal.js +0 -26
  379. package/build/layout/external/DynamicExternal.js.map +0 -1
  380. package/build/layout/external/DynamicExternal.messages.js +0 -11
  381. package/build/layout/external/DynamicExternal.messages.js.map +0 -1
  382. package/build/layout/form/DynamicForm.js +0 -17
  383. package/build/layout/form/DynamicForm.js.map +0 -1
  384. package/build/layout/heading/DynamicHeading.js +0 -23
  385. package/build/layout/heading/DynamicHeading.js.map +0 -1
  386. package/build/layout/icon/DynamicIcon.js +0 -50
  387. package/build/layout/icon/DynamicIcon.js.map +0 -1
  388. package/build/layout/image/DynamicImage.js +0 -63
  389. package/build/layout/image/DynamicImage.js.map +0 -1
  390. package/build/layout/index.js +0 -41
  391. package/build/layout/index.js.map +0 -1
  392. package/build/layout/info/DynamicInfo.js +0 -10
  393. package/build/layout/info/DynamicInfo.js.map +0 -1
  394. package/build/layout/list/DynamicList.js +0 -22
  395. package/build/layout/list/DynamicList.js.map +0 -1
  396. package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +0 -13
  397. package/build/layout/loadingIndicator/DynamicLoadingIndicator.js.map +0 -1
  398. package/build/layout/paragraph/DynamicParagraph.js +0 -31
  399. package/build/layout/paragraph/DynamicParagraph.js.map +0 -1
  400. package/build/layout/paragraph/DynamicParagraph.messages.js +0 -16
  401. package/build/layout/paragraph/DynamicParagraph.messages.js.map +0 -1
  402. package/build/layout/paragraph/useSnackBarIfAvailable.js +0 -14
  403. package/build/layout/paragraph/useSnackBarIfAvailable.js.map +0 -1
  404. package/build/layout/review/DynamicReview.js +0 -24
  405. package/build/layout/review/DynamicReview.js.map +0 -1
  406. package/build/layout/utils.js +0 -34
  407. package/build/layout/utils.js.map +0 -1
  408. package/build/step/cameraStep/CameraStep.js +0 -85
  409. package/build/step/cameraStep/CameraStep.js.map +0 -1
  410. package/build/step/cameraStep/cameraCapture/CameraCapture.js +0 -71
  411. package/build/step/cameraStep/cameraCapture/CameraCapture.js.map +0 -1
  412. package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +0 -21
  413. package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js.map +0 -1
  414. package/build/step/cameraStep/cameraCapture/components/index.js +0 -19
  415. package/build/step/cameraStep/cameraCapture/components/index.js.map +0 -1
  416. package/build/step/cameraStep/cameraCapture/hooks/index.js +0 -30
  417. package/build/step/cameraStep/cameraCapture/hooks/index.js.map +0 -1
  418. package/build/step/cameraStep/cameraCapture/index.js +0 -9
  419. package/build/step/cameraStep/cameraCapture/index.js.map +0 -1
  420. package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +0 -69
  421. package/build/step/cameraStep/cameraCapture/overlay/Overlay.js.map +0 -1
  422. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +0 -14
  423. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js.map +0 -1
  424. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +0 -16
  425. package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js.map +0 -1
  426. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +0 -15
  427. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js.map +0 -1
  428. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +0 -21
  429. package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js.map +0 -1
  430. package/build/step/cameraStep/cameraCapture/screens/index.js +0 -11
  431. package/build/step/cameraStep/cameraCapture/screens/index.js.map +0 -1
  432. package/build/step/cameraStep/cameraCapture/tracking/index.js +0 -23
  433. package/build/step/cameraStep/cameraCapture/tracking/index.js.map +0 -1
  434. package/build/step/cameraStep/cameraCapture/utils/index.js +0 -52
  435. package/build/step/cameraStep/cameraCapture/utils/index.js.map +0 -1
  436. package/build/step/cameraStep/index.js +0 -9
  437. package/build/step/cameraStep/index.js.map +0 -1
  438. package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +0 -69
  439. package/build/step/externalConfirmationStep/ExternalConfirmationStep.js.map +0 -1
  440. package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +0 -26
  441. package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js.map +0 -1
  442. package/build/step/externalConfirmationStep/index.js +0 -9
  443. package/build/step/externalConfirmationStep/index.js.map +0 -1
  444. package/build/step/index.js +0 -13
  445. package/build/step/index.js.map +0 -1
  446. package/build/step/layoutStep/LayoutStep.js +0 -36
  447. package/build/step/layoutStep/LayoutStep.js.map +0 -1
  448. package/build/step/layoutStep/index.js +0 -9
  449. package/build/step/layoutStep/index.js.map +0 -1
  450. package/build/step/layoutStep/utils/index.js +0 -8
  451. package/build/step/layoutStep/utils/index.js.map +0 -1
  452. package/build/step/layoutStep/utils/inline-reference-utils.js +0 -79
  453. package/build/step/layoutStep/utils/inline-reference-utils.js.map +0 -1
  454. package/build/step/layoutStep/utils/layout-utils.js +0 -204
  455. package/build/step/layoutStep/utils/layout-utils.js.map +0 -1
  456. package/build/types/common/FormControl.js +0 -3
  457. package/build/types/common/FormControl.js.map +0 -1
  458. package/build/types/index.js +0 -43
  459. package/build/types/index.js.map +0 -1
  460. package/build/types/specification/Action.js +0 -3
  461. package/build/types/specification/Action.js.map +0 -1
  462. package/build/types/specification/FileUploadSchema.js +0 -9
  463. package/build/types/specification/FileUploadSchema.js.map +0 -1
  464. package/build/types/specification/LayoutComponent.js +0 -3
  465. package/build/types/specification/LayoutComponent.js.map +0 -1
  466. package/build/types/specification/Model.js +0 -31
  467. package/build/types/specification/Model.js.map +0 -1
  468. package/build/types/specification/PersistAsync.js +0 -3
  469. package/build/types/specification/PersistAsync.js.map +0 -1
  470. package/build/types/specification/Polling.js +0 -3
  471. package/build/types/specification/Polling.js.map +0 -1
  472. package/build/types/specification/Promotion.js +0 -3
  473. package/build/types/specification/Promotion.js.map +0 -1
  474. package/build/types/specification/Schema.js +0 -68
  475. package/build/types/specification/Schema.js.map +0 -1
  476. package/build/types/specification/Step.js +0 -7
  477. package/build/types/specification/Step.js.map +0 -1
  478. package/build/types/specification/ValidationAsync.js +0 -3
  479. package/build/types/specification/ValidationAsync.js.map +0 -1
  480. package/build/types/specification/core.js +0 -3
  481. package/build/types/specification/core.js.map +0 -1
  482. /package/build/{common → types/common}/constants/DateMode.d.ts +0 -0
  483. /package/build/{common → types/common}/constants/FormControlType.d.ts +0 -0
  484. /package/build/{common → types/common}/constants/MonthFormat.d.ts +0 -0
  485. /package/build/{common → types/common}/constants/SchemaType.d.ts +0 -0
  486. /package/build/{common → types/common}/constants/Size.d.ts +0 -0
  487. /package/build/{common → types/common}/constants/index.d.ts +0 -0
  488. /package/build/{common → types/common}/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -0
  489. /package/build/{common → types/common}/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +0 -0
  490. /package/build/{common → types/common}/contexts/eventsContext/EventsContext.d.ts +0 -0
  491. /package/build/{common → types/common}/contexts/fetcherContexts/FetcherContexts.d.ts +0 -0
  492. /package/build/{common → types/common}/contexts/index.d.ts +0 -0
  493. /package/build/{common → types/common}/contexts/logContext/LogContext.d.ts +0 -0
  494. /package/build/{common → types/common}/hooks/index.d.ts +0 -0
  495. /package/build/{common → types/common}/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +0 -0
  496. /package/build/{common → types/common}/hooks/useExternal/useExternal.d.ts +0 -0
  497. /package/build/{common → types/common}/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +0 -0
  498. /package/build/{common → types/common}/hooks/usePersistAsync/usePersistAsync.d.ts +0 -0
  499. /package/build/{common → types/common}/hooks/usePolling/usePolling.d.ts +0 -0
  500. /package/build/{common → types/common}/hooks/usePrevious/usePrevious.d.ts +0 -0
  501. /package/build/{common → types/common}/hooks/useStepPolling/useStepPolling.d.ts +0 -0
  502. /package/build/{common → types/common}/makeFetcher/index.d.ts +0 -0
  503. /package/build/{common → types/common}/makeFetcher/makeFetcher.d.ts +0 -0
  504. /package/build/{common → types/common}/messages.d.ts +0 -0
  505. /package/build/{common → types/common}/utils/api-utils.d.ts +0 -0
  506. /package/build/{common → types/common}/utils/date-utils.d.ts +0 -0
  507. /package/build/{common → types/common}/utils/debounce.d.ts +0 -0
  508. /package/build/{common → types/common}/utils/file-utils.d.ts +0 -0
  509. /package/build/{common → types/common}/utils/id-utils.d.ts +0 -0
  510. /package/build/{common → types/common}/utils/index.d.ts +0 -0
  511. /package/build/{common → types/common}/utils/is-equal.d.ts +0 -0
  512. /package/build/{common → types/common}/utils/schema-utils.d.ts +0 -0
  513. /package/build/{common → types/common}/utils/step-utils.d.ts +0 -0
  514. /package/build/{common → types/common}/validators/index.d.ts +0 -0
  515. /package/build/{common → types/common}/validators/models/model-validators.d.ts +0 -0
  516. /package/build/{common → types/common}/validators/models/models.utils.d.ts +0 -0
  517. /package/build/{common → types/common}/validators/schemas/schema-validators.d.ts +0 -0
  518. /package/build/{common → types/common}/validators/types/type-validators.d.ts +0 -0
  519. /package/build/{common → types/common}/validators/validationFailures/validation-failures.d.ts +0 -0
  520. /package/build/{common → types/common}/validators/validationFailures/validation-failures.utils.d.ts +0 -0
  521. /package/build/{common → types/common}/validators/values/value-validators.d.ts +0 -0
  522. /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlow.d.ts +0 -0
  523. /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowStep.d.ts +0 -0
  524. /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowTypes.d.ts +0 -0
  525. /package/build/{dynamicFlow → types/dynamicFlow}/index.d.ts +0 -0
  526. /package/build/{dynamicFlow → types/dynamicFlow}/stories/DynamicFlow.story.d.ts +0 -0
  527. /package/build/{dynamicFlow → types/dynamicFlow}/stories/EditableDynamicFlow.d.ts +0 -0
  528. /package/build/{dynamicFlow → types/dynamicFlow}/stories/fixtureFetcher.d.ts +0 -0
  529. /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.d.ts +0 -0
  530. /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.messages.d.ts +0 -0
  531. /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundaryAlert.d.ts +0 -0
  532. /package/build/{dynamicFlow → types/dynamicFlow}/utils/index.d.ts +0 -0
  533. /package/build/{dynamicFlow → types/dynamicFlow}/utils/responseParsers/response-parsers.d.ts +0 -0
  534. /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -0
  535. /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDynamicFlowState.d.ts +0 -0
  536. /package/build/{dynamicFlow → types/dynamicFlow}/utils/useLoader.d.ts +0 -0
  537. /package/build/{fixtures → types/fixtures}/components/alert.d.ts +0 -0
  538. /package/build/{fixtures → types/fixtures}/components/box.d.ts +0 -0
  539. /package/build/{fixtures → types/fixtures}/components/button.d.ts +0 -0
  540. /package/build/{fixtures → types/fixtures}/components/columns.d.ts +0 -0
  541. /package/build/{fixtures → types/fixtures}/components/copyable.d.ts +0 -0
  542. /package/build/{fixtures → types/fixtures}/components/decision.d.ts +0 -0
  543. /package/build/{fixtures → types/fixtures}/components/heading.d.ts +0 -0
  544. /package/build/{fixtures → types/fixtures}/components/image.d.ts +0 -0
  545. /package/build/{fixtures → types/fixtures}/components/index.d.ts +0 -0
  546. /package/build/{fixtures → types/fixtures}/components/info.d.ts +0 -0
  547. /package/build/{fixtures → types/fixtures}/components/list.d.ts +0 -0
  548. /package/build/{fixtures → types/fixtures}/components/loading-indicator.d.ts +0 -0
  549. /package/build/{fixtures → types/fixtures}/components/paragraph.d.ts +0 -0
  550. /package/build/{fixtures → types/fixtures}/components/review.d.ts +0 -0
  551. /package/build/{fixtures → types/fixtures}/examples/camera-capture.d.ts +0 -0
  552. /package/build/{fixtures → types/fixtures}/examples/index.d.ts +0 -0
  553. /package/build/{fixtures → types/fixtures}/examples/recipient-update.d.ts +0 -0
  554. /package/build/{fixtures → types/fixtures}/examples/recipient.d.ts +0 -0
  555. /package/build/{fixtures → types/fixtures}/examples/single-file-upload.d.ts +0 -0
  556. /package/build/{fixtures → types/fixtures}/examples/step-validation-errors.d.ts +0 -0
  557. /package/build/{fixtures → types/fixtures}/features/action-response.d.ts +0 -0
  558. /package/build/{fixtures → types/fixtures}/features/external.d.ts +0 -0
  559. /package/build/{fixtures → types/fixtures}/features/index.d.ts +0 -0
  560. /package/build/{fixtures → types/fixtures}/features/persist-async.d.ts +0 -0
  561. /package/build/{fixtures → types/fixtures}/features/polling.d.ts +0 -0
  562. /package/build/{fixtures → types/fixtures}/features/validation-async.d.ts +0 -0
  563. /package/build/{fixtures → types/fixtures}/index.d.ts +0 -0
  564. /package/build/{fixtures → types/fixtures}/jsonSchemaForm/allOf.d.ts +0 -0
  565. /package/build/{fixtures → types/fixtures}/layouts/all.d.ts +0 -0
  566. /package/build/{fixtures → types/fixtures}/layouts/final-step-layout.d.ts +0 -0
  567. /package/build/{fixtures → types/fixtures}/layouts/index.d.ts +0 -0
  568. /package/build/{fixtures → types/fixtures}/layouts/list.d.ts +0 -0
  569. /package/build/{fixtures → types/fixtures}/layouts/pay-in.d.ts +0 -0
  570. /package/build/{fixtures → types/fixtures}/layouts/review.d.ts +0 -0
  571. /package/build/{fixtures → types/fixtures}/layouts/success.d.ts +0 -0
  572. /package/build/{fixtures → types/fixtures}/responses/action-response-final.d.ts +0 -0
  573. /package/build/{fixtures → types/fixtures}/responses/action.d.ts +0 -0
  574. /package/build/{fixtures → types/fixtures}/responses/exit.d.ts +0 -0
  575. /package/build/{fixtures → types/fixtures}/responses/index.d.ts +0 -0
  576. /package/build/{fixtures → types/fixtures}/responses/recipient-update-final.d.ts +0 -0
  577. /package/build/{fixtures → types/fixtures}/schemas/basic-form.d.ts +0 -0
  578. /package/build/{fixtures → types/fixtures}/schemas/index.d.ts +0 -0
  579. /package/build/{fixtures → types/fixtures}/schemas/number-and-integer.d.ts +0 -0
  580. /package/build/{fixtures → types/fixtures}/schemas/one-of.d.ts +0 -0
  581. /package/build/{fixtures → types/fixtures}/schemas/string-formats.d.ts +0 -0
  582. /package/build/{fixtures → types/fixtures}/utils/image-util.d.ts +0 -0
  583. /package/build/{formControl → types/formControl}/FormControl.d.ts +0 -0
  584. /package/build/{formControl → types/formControl}/index.d.ts +0 -0
  585. /package/build/{formControl → types/formControl}/utils/index.d.ts +0 -0
  586. /package/build/{formControl → types/formControl}/utils/value-utils.d.ts +0 -0
  587. /package/build/{i18n → types/i18n}/index.d.ts +0 -0
  588. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/JsonSchemaForm.d.ts +0 -0
  589. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/AllOfSchema.d.ts +0 -0
  590. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/index.d.ts +0 -0
  591. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/ArraySchema.d.ts +0 -0
  592. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -0
  593. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/index.d.ts +0 -0
  594. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -0
  595. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +0 -0
  596. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -0
  597. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +0 -0
  598. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +0 -0
  599. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +0 -0
  600. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/index.d.ts +0 -0
  601. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/BasicTypeSchema.d.ts +0 -0
  602. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/index.d.ts +0 -0
  603. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.d.ts +0 -0
  604. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.messages.d.ts +0 -0
  605. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/index.d.ts +0 -0
  606. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/GenericSchema.d.ts +0 -0
  607. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/index.d.ts +0 -0
  608. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.d.ts +0 -0
  609. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.messages.d.ts +0 -0
  610. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/index.d.ts +0 -0
  611. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/index.d.ts +0 -0
  612. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/ObjectSchema.d.ts +0 -0
  613. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/index.d.ts +0 -0
  614. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/OneOfSchema.d.ts +0 -0
  615. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/index.d.ts +0 -0
  616. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/const-schema-utils.d.ts +0 -0
  617. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/index.d.ts +0 -0
  618. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/one-of-utils.d.ts +0 -0
  619. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -0
  620. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -0
  621. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/index.d.ts +0 -0
  622. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +0 -0
  623. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +0 -0
  624. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +0 -0
  625. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +0 -0
  626. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +0 -0
  627. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -0
  628. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/index.d.ts +0 -0
  629. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promoted-one-of-utils.d.ts +0 -0
  630. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +0 -0
  631. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +0 -0
  632. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +0 -0
  633. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.d.ts +0 -0
  634. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -0
  635. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/index.d.ts +0 -0
  636. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/SchemaFormControl.d.ts +0 -0
  637. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/index.d.ts +0 -0
  638. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/currency-utils.d.ts +0 -0
  639. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/index.d.ts +0 -0
  640. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/mapping-utils.d.ts +0 -0
  641. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -0
  642. /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/index.d.ts +0 -0
  643. /package/build/{layout → types/layout}/DynamicLayout.d.ts +0 -0
  644. /package/build/{layout → types/layout}/alert/DynamicAlert.d.ts +0 -0
  645. /package/build/{layout → types/layout}/box/DynamicBox.d.ts +0 -0
  646. /package/build/{layout → types/layout}/button/DynamicButton.d.ts +0 -0
  647. /package/build/{layout → types/layout}/columns/DynamicColumns.d.ts +0 -0
  648. /package/build/{layout → types/layout}/decision/DynamicDecision.d.ts +0 -0
  649. /package/build/{layout → types/layout}/divider/DynamicDivider.d.ts +0 -0
  650. /package/build/{layout → types/layout}/external/DynamicExternal.d.ts +0 -0
  651. /package/build/{layout → types/layout}/external/DynamicExternal.messages.d.ts +0 -0
  652. /package/build/{layout → types/layout}/form/DynamicForm.d.ts +0 -0
  653. /package/build/{layout → types/layout}/heading/DynamicHeading.d.ts +0 -0
  654. /package/build/{layout → types/layout}/icon/DynamicIcon.d.ts +0 -0
  655. /package/build/{layout → types/layout}/image/DynamicImage.d.ts +0 -0
  656. /package/build/{layout → types/layout}/index.d.ts +0 -0
  657. /package/build/{layout → types/layout}/info/DynamicInfo.d.ts +0 -0
  658. /package/build/{layout → types/layout}/list/DynamicList.d.ts +0 -0
  659. /package/build/{layout → types/layout}/loadingIndicator/DynamicLoadingIndicator.d.ts +0 -0
  660. /package/build/{layout → types/layout}/paragraph/DynamicParagraph.d.ts +0 -0
  661. /package/build/{layout → types/layout}/paragraph/DynamicParagraph.messages.d.ts +0 -0
  662. /package/build/{layout → types/layout}/paragraph/useSnackBarIfAvailable.d.ts +0 -0
  663. /package/build/{layout → types/layout}/review/DynamicReview.d.ts +0 -0
  664. /package/build/{layout → types/layout}/utils.d.ts +0 -0
  665. /package/build/{step → types/step}/cameraStep/CameraStep.d.ts +0 -0
  666. /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.d.ts +0 -0
  667. /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -0
  668. /package/build/{step → types/step}/cameraStep/cameraCapture/components/index.d.ts +0 -0
  669. /package/build/{step → types/step}/cameraStep/cameraCapture/hooks/index.d.ts +0 -0
  670. /package/build/{step → types/step}/cameraStep/cameraCapture/index.d.ts +0 -0
  671. /package/build/{step → types/step}/cameraStep/cameraCapture/overlay/Overlay.d.ts +0 -0
  672. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -0
  673. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +0 -0
  674. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -0
  675. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +0 -0
  676. /package/build/{step → types/step}/cameraStep/cameraCapture/screens/index.d.ts +0 -0
  677. /package/build/{step → types/step}/cameraStep/cameraCapture/tracking/index.d.ts +0 -0
  678. /package/build/{step → types/step}/cameraStep/cameraCapture/utils/index.d.ts +0 -0
  679. /package/build/{step → types/step}/cameraStep/index.d.ts +0 -0
  680. /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -0
  681. /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -0
  682. /package/build/{step → types/step}/externalConfirmationStep/index.d.ts +0 -0
  683. /package/build/{step → types/step}/index.d.ts +0 -0
  684. /package/build/{step → types/step}/layoutStep/LayoutStep.d.ts +0 -0
  685. /package/build/{step → types/step}/layoutStep/index.d.ts +0 -0
  686. /package/build/{step → types/step}/layoutStep/utils/index.d.ts +0 -0
  687. /package/build/{step → types/step}/layoutStep/utils/inline-reference-utils.d.ts +0 -0
  688. /package/build/{step → types/step}/layoutStep/utils/layout-utils.d.ts +0 -0
  689. /package/build/types/{common → types/common}/FormControl.d.ts +0 -0
  690. /package/build/types/{specification → types/specification}/Action.d.ts +0 -0
  691. /package/build/types/{specification → types/specification}/FileUploadSchema.d.ts +0 -0
  692. /package/build/types/{specification → types/specification}/LayoutComponent.d.ts +0 -0
  693. /package/build/types/{specification → types/specification}/Model.d.ts +0 -0
  694. /package/build/types/{specification → types/specification}/PersistAsync.d.ts +0 -0
  695. /package/build/types/{specification → types/specification}/Polling.d.ts +0 -0
  696. /package/build/types/{specification → types/specification}/Promotion.d.ts +0 -0
  697. /package/build/types/{specification → types/specification}/Schema.d.ts +0 -0
  698. /package/build/types/{specification → types/specification}/Step.d.ts +0 -0
  699. /package/build/types/{specification → types/specification}/ValidationAsync.d.ts +0 -0
  700. /package/build/types/{specification → types/specification}/core.d.ts +0 -0
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseExitResponse = exports.parseErrorResponse = exports.parseFetchResponse = void 0;
4
- const validators_1 = require("../../../common/validators");
5
- const parseFetchResponse = async (response) => {
6
- var _a;
7
- assertResponseIsValid(response);
8
- if ((_a = response.headers) === null || _a === void 0 ? void 0 : _a.has('X-Df-Exit')) {
9
- return { type: 'exit', result: await (0, exports.parseExitResponse)(response) };
10
- }
11
- const jsonBody = await parseResponseJson(response);
12
- if (!(0, validators_1.isObject)(jsonBody)) {
13
- throw new Error('Incorrect response body in response. Expected an object.');
14
- }
15
- if (jsonBody.action) {
16
- if (!(0, validators_1.isObject)(jsonBody.action)) {
17
- throw new Error('Incorrect response body in action response. Expected an object satisfying the type { action: Action }.');
18
- }
19
- const action = jsonBody.action;
20
- if (action.exit === true && (0, validators_1.isObject)(action.result)) {
21
- return { type: 'exit', result: action.result };
22
- }
23
- return { type: 'action', action: jsonBody.action };
24
- }
25
- const etag = response.headers.get('etag') || undefined;
26
- return { type: 'step', step: jsonBody, etag };
27
- };
28
- exports.parseFetchResponse = parseFetchResponse;
29
- const parseErrorResponse = async (response) => {
30
- assertResponseIsValid(response);
31
- const jsonBody = await parseResponseJson(response);
32
- if (!(0, validators_1.isObject)(jsonBody)) {
33
- throw new Error('Incorrect response body in error response. Expected an object.');
34
- }
35
- return jsonBody;
36
- };
37
- exports.parseErrorResponse = parseErrorResponse;
38
- const parseExitResponse = async (response) => {
39
- assertResponseIsValid(response);
40
- const result = await parseResponseJson(response);
41
- if ((0, validators_1.isObject)(result) || result === null) {
42
- return result;
43
- }
44
- return null;
45
- };
46
- exports.parseExitResponse = parseExitResponse;
47
- const parseResponseJson = async (response) => {
48
- try {
49
- return (await response.json());
50
- }
51
- catch (_a) {
52
- return null;
53
- }
54
- };
55
- const assertResponseIsValid = (response) => {
56
- if (!isResponse(response)) {
57
- throw new Error('Incorrect type of response from fetch. Expected object of type Response.');
58
- }
59
- if (response.bodyUsed) {
60
- throw new Error('The body of the provided Response object has already been used. Every request must respond with a new Response object.');
61
- }
62
- };
63
- const isResponse = (response) => typeof response === 'object' &&
64
- response !== null &&
65
- 'clone' in response &&
66
- 'bodyUsed' in response;
67
- //# sourceMappingURL=response-parsers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"response-parsers.js","sourceRoot":"","sources":["../../../../src/dynamicFlow/utils/responseParsers/response-parsers.ts"],"names":[],"mappings":"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"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDebouncedRefresh = void 0;
4
- const react_1 = require("react");
5
- const utils_1 = require("../../../common/utils");
6
- const DEBOUNCE_DELAY = 1000; // milliseconds
7
- function useDebouncedRefresh(fetchRefresh) {
8
- const map = (0, react_1.useRef)(new Map());
9
- const retrieveOrCreate = (key) => {
10
- if (map.current.has(key)) {
11
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12
- return map.current.get(key);
13
- }
14
- const debouncedFetchRefresh = (0, utils_1.debounce)((action, data, etag) => fetchRefresh(action, data, etag), DEBOUNCE_DELAY);
15
- map.current.set(key, debouncedFetchRefresh);
16
- return debouncedFetchRefresh;
17
- };
18
- return function (action, data, etag, schema) {
19
- const key = action.url || '';
20
- const debouncedFetchRefresh = retrieveOrCreate(key);
21
- void debouncedFetchRefresh(action, data, etag);
22
- if (!schema || !(0, utils_1.shouldDebounceSchema)(schema)) {
23
- void debouncedFetchRefresh.flush();
24
- }
25
- };
26
- }
27
- exports.useDebouncedRefresh = useDebouncedRefresh;
28
- //# sourceMappingURL=useDebouncedRefresh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDebouncedRefresh.js","sourceRoot":"","sources":["../../../../src/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAE/B,iDAAsF;AAItF,MAAM,cAAc,GAAG,IAAI,CAAC,CAAC,eAAe;AAI5C,SAAgB,mBAAmB,CAAC,YAA0B;IAC5D,MAAM,GAAG,GAAG,IAAA,cAAM,EAAC,IAAI,GAAG,EAAuC,CAAC,CAAC;IAEnE,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,EAAE;QACvC,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YACxB,oEAAoE;YACpE,OAAO,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC;SAC9B;QACD,MAAM,qBAAqB,GAAgC,IAAA,gBAAQ,EACjE,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,EACxD,cAAc,CACf,CAAC;QACF,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;QAC5C,OAAO,qBAAqB,CAAC;IAC/B,CAAC,CAAC;IAEF,OAAO,UAAU,MAAc,EAAE,IAAa,EAAE,IAAsB,EAAE,MAAc;QACpF,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QAC7B,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;QACpD,KAAK,qBAAqB,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,IAAI,CAAC,IAAA,4BAAoB,EAAC,MAAM,CAAC,EAAE;YAC5C,KAAK,qBAAqB,CAAC,KAAK,EAAE,CAAC;SACpC;IACH,CAAC,CAAC;AACJ,CAAC;AAxBD,kDAwBC"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDynamicFlowState = void 0;
4
- const react_1 = require("react");
5
- const validators_1 = require("../../common/validators");
6
- const DynamicFlowTypes_1 = require("../DynamicFlowTypes");
7
- const useDynamicFlowState = (initialStep) => {
8
- var _a, _b;
9
- const [formErrors, setFormErrors] = (0, react_1.useState)((_a = initialStep === null || initialStep === void 0 ? void 0 : initialStep.errors) === null || _a === void 0 ? void 0 : _a.validation);
10
- const [globalError, setGlobalError] = (0, react_1.useState)((_b = initialStep === null || initialStep === void 0 ? void 0 : initialStep.errors) === null || _b === void 0 ? void 0 : _b.error);
11
- const [stepAndModels, setStepAndModels] = (0, react_1.useState)({
12
- step: initialStep || undefined,
13
- models: (initialStep === null || initialStep === void 0 ? void 0 : initialStep.model)
14
- ? buildInitialModels(initialStep.model, getAllSchemas(initialStep))
15
- : {},
16
- etag: undefined,
17
- });
18
- const { step, models, etag } = stepAndModels;
19
- const setStepAndEtag = (step, etag) => {
20
- var _a, _b, _c, _d;
21
- setStepAndModels((previous) => ({
22
- step: step,
23
- models: step.model ? buildInitialModels(step.model, getAllSchemas(step)) : previous.models,
24
- etag,
25
- }));
26
- setFormErrors((_b = (_a = step === null || step === void 0 ? void 0 : step.errors) === null || _a === void 0 ? void 0 : _a.validation) !== null && _b !== void 0 ? _b : null);
27
- setGlobalError((_d = (_c = step === null || step === void 0 ? void 0 : step.errors) === null || _c === void 0 ? void 0 : _c.error) !== null && _d !== void 0 ? _d : null);
28
- };
29
- const setSchemaModel = (schemaId, objectModel, onModelsUpdated) => {
30
- setStepAndModels((previous) => {
31
- const updatedModels = Object.assign(Object.assign({}, previous.models), { [schemaId]: objectModel });
32
- const updatedState = {
33
- step: previous.step,
34
- models: updatedModels,
35
- etag: previous.etag,
36
- };
37
- onModelsUpdated(updatedModels);
38
- return updatedState;
39
- });
40
- };
41
- const modelIsValid = (0, react_1.useMemo)(() => areModelsValid(models, getAllSchemas(step)), [models, step]);
42
- return {
43
- formErrors,
44
- globalError,
45
- step: step,
46
- models,
47
- etag,
48
- modelIsValid,
49
- setFormErrors,
50
- setGlobalError,
51
- setStepAndEtag,
52
- setSchemaModel,
53
- };
54
- };
55
- exports.useDynamicFlowState = useDynamicFlowState;
56
- const buildInitialModels = (model, schemas = []) => {
57
- return schemas.reduce((acc, schema) => {
58
- if (!schema.$id) {
59
- // TODO: MC-3224
60
- // eslint-disable-next-line no-console
61
- console.warn('Schema without $id property found.');
62
- }
63
- return Object.assign(Object.assign({}, acc), { [schema.$id || '']: (0, validators_1.getValidObjectModelParts)(model, schema) || {} });
64
- }, {});
65
- };
66
- const getAllSchemas = (step) => [
67
- ...getAllSchemasInLayout((step === null || step === void 0 ? void 0 : step.layout) || []),
68
- ...((step === null || step === void 0 ? void 0 : step.schemas) || []),
69
- ];
70
- const getAllSchemasInLayout = (components) => components.flatMap((component) => {
71
- switch (component.type) {
72
- case 'columns':
73
- return [...getAllSchemasInLayout([...component.left, ...component.right])];
74
- case 'box':
75
- return getAllSchemasInLayout(component.components);
76
- case 'form':
77
- return (0, DynamicFlowTypes_1.isSchema)(component.schema) ? [component.schema] : [];
78
- default:
79
- return [];
80
- }
81
- });
82
- const areModelsValid = (formModels, schemas = []) => {
83
- return !(schemas === null || schemas === void 0 ? void 0 : schemas.some((schema) => {
84
- if (!schema.$id) {
85
- // TODO: MC-3224
86
- // eslint-disable-next-line no-console
87
- console.warn('Schema without $id property found.');
88
- }
89
- return !(0, validators_1.isValidSchema)(formModels[schema.$id || ''] || {}, schema);
90
- }));
91
- };
92
- //# sourceMappingURL=useDynamicFlowState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDynamicFlowState.js","sourceRoot":"","sources":["../../../src/dynamicFlow/utils/useDynamicFlowState.ts"],"names":[],"mappings":"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"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useLoader = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const components_1 = require("@transferwise/components");
6
- const react_1 = require("react");
7
- function useLoader(loaderConfig, initialState) {
8
- const config = Object.assign({ size: components_1.Size.EXTRA_LARGE, initial: true, submission: false }, loaderConfig);
9
- const [loadingState, setLoadingState] = (0, react_1.useState)(initialState);
10
- const shouldDisplayLoader = (config.initial && loadingState === 'initial') ||
11
- (config.submission && loadingState === 'submission');
12
- const loader = shouldDisplayLoader ? ((0, jsx_runtime_1.jsx)(components_1.Loader, { size: config.size, classNames: { 'tw-loader': 'tw-loader m-x-auto' }, "data-testid": "loader" })) : null;
13
- return { loadingState, setLoadingState, loader };
14
- }
15
- exports.useLoader = useLoader;
16
- //# sourceMappingURL=useLoader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLoader.js","sourceRoot":"","sources":["../../../src/dynamicFlow/utils/useLoader.tsx"],"names":[],"mappings":";;;;AAAA,yDAAwD;AACxD,iCAAiC;AAMjC,SAAgB,SAAS,CACvB,YAA8C,EAC9C,YAA0B;IAE1B,MAAM,MAAM,mBACV,IAAI,EAAE,iBAAI,CAAC,WAAW,EACtB,OAAO,EAAE,IAAI,EACb,UAAU,EAAE,KAAK,IACd,YAAY,CAChB,CAAC;IAEF,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,YAAY,CAAC,CAAC;IAE/D,MAAM,mBAAmB,GACvB,CAAC,MAAM,CAAC,OAAO,IAAI,YAAY,KAAK,SAAS,CAAC;QAC9C,CAAC,MAAM,CAAC,UAAU,IAAI,YAAY,KAAK,YAAY,CAAC,CAAC;IAEvD,MAAM,MAAM,GAAG,mBAAmB,CAAC,CAAC,CAAC,CACnC,uBAAC,mBAAM,IACL,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,UAAU,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,iBACrC,QAAQ,GACpB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC;AACnD,CAAC;AA1BD,8BA0BC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const step = {
4
- type: 'form',
5
- key: 'Components/Alert',
6
- title: 'Alert Component',
7
- description: 'Alerts can have different contexts.',
8
- actions: [],
9
- schemas: [],
10
- layout: [
11
- {
12
- type: 'alert',
13
- markdown: 'This is an alert with "neutral" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.',
14
- context: 'neutral',
15
- },
16
- {
17
- type: 'alert',
18
- markdown: 'This is an alert with "warning" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.',
19
- context: 'warning',
20
- },
21
- {
22
- type: 'alert',
23
- markdown: 'This is an alert with "positive" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.',
24
- context: 'positive',
25
- },
26
- {
27
- type: 'alert',
28
- markdown: 'This is an alert with "negative" context. A subset of Markdown features are supported, like **bold text**, and __italic__ I think. But no line breaks nor links.',
29
- context: 'negative',
30
- },
31
- ],
32
- };
33
- exports.default = step;
34
- //# sourceMappingURL=alert.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../src/fixtures/components/alert.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,kBAAkB;IACvB,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,qCAAqC;IAClD,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EACN,iKAAiK;YACnK,OAAO,EAAE,SAAS;SACnB;QACD;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EACN,iKAAiK;YACnK,OAAO,EAAE,SAAS;SACnB;QACD;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EACN,kKAAkK;YACpK,OAAO,EAAE,UAAU;SACpB;QACD;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EACN,kKAAkK;YACpK,OAAO,EAAE,UAAU;SACpB;KACF;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const step = {
4
- type: 'form',
5
- key: 'Components/Box',
6
- title: 'Box Component',
7
- description: 'Box is a container for other layour components. It can have a border!',
8
- actions: [],
9
- schemas: [],
10
- layout: ['xs', 'sm', 'md', 'lg', 'xl'].map((size) => ({
11
- type: 'box',
12
- width: size,
13
- border: true,
14
- components: [
15
- {
16
- type: 'paragraph',
17
- text: `This paragraph is inside a box with border: "true" and width: "${size}".`,
18
- },
19
- ],
20
- })),
21
- };
22
- exports.default = step;
23
- //# sourceMappingURL=box.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"box.js","sourceRoot":"","sources":["../../../src/fixtures/components/box.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,gBAAgB;IACrB,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,uEAAuE;IACpF,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/D,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,kEAAkE,IAAI,IAAI;aACjF;SACF;KACF,CAAC,CAAC;CACJ,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const buttons = ['primary', 'secondary', 'negative', 'link'].map((type, i) => ({
4
- type: 'button',
5
- action: {
6
- url: '/action-url',
7
- method: 'POST',
8
- title: `Button ${i + 1}, type: "${type}"`,
9
- type,
10
- data: { 'button-number': i + 1 },
11
- },
12
- }));
13
- const step = {
14
- type: 'form',
15
- key: 'Components/Button',
16
- title: 'Button Component',
17
- description: 'Buttons typically trigger actions.',
18
- actions: [],
19
- schemas: [
20
- {
21
- $id: '#schema',
22
- type: 'object',
23
- displayOrder: [],
24
- properties: {
25
- 'form-field': {
26
- type: 'string',
27
- default: 'Some text',
28
- title: 'Enter any text. It will be submitted under "form-field".',
29
- },
30
- },
31
- },
32
- ],
33
- layout: [
34
- {
35
- type: 'box',
36
- width: 'md',
37
- components: [
38
- {
39
- type: 'paragraph',
40
- text: 'Action buttons merge the form data with their own action.data before submitting it to the specified URL.',
41
- },
42
- {
43
- type: 'form',
44
- schema: { $ref: '#schema' },
45
- },
46
- ...buttons,
47
- {
48
- type: 'paragraph',
49
- text: 'Press any buttons and see the fetcher calls below.',
50
- align: 'center',
51
- },
52
- ],
53
- },
54
- ],
55
- };
56
- exports.default = step;
57
- //# sourceMappingURL=button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/fixtures/components/button.ts"],"names":[],"mappings":";;AAEA,MAAM,OAAO,GAAI,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,CAAW,CAAC,GAAG,CACzE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CACV,CAAC;IACC,IAAI,EAAE,QAAiB;IACvB,MAAM,EAAE;QACN,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,YAAY,IAAI,GAAG;QACzC,IAAI;QACJ,IAAI,EAAE,EAAE,eAAe,EAAE,CAAC,GAAG,CAAC,EAAE;KACjC;CACQ,CAAA,CACd,CAAC;AAEF,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,oCAAoC;IACjD,OAAO,EAAE,EAAE;IACX,OAAO,EAAE;QACP;YACE,GAAG,EAAE,SAAS;YACd,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,WAAW;oBACpB,KAAK,EAAE,0DAA0D;iBAClE;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,IAAI;YACX,UAAU,EAAE;gBACV;oBACE,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,0GAA0G;iBACjH;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iBAC5B;gBACD,GAAG,OAAO;gBACV;oBACE,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,oDAAoD;oBAC1D,KAAK,EAAE,QAAQ;iBAChB;aACF;SACF;KACF;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const step = {
4
- type: 'form',
5
- key: 'Components/Columns',
6
- title: 'Columns Component',
7
- description: `Arrange components in two columns (when there's enough space)`,
8
- actions: [],
9
- schemas: [],
10
- layout: [
11
- {
12
- type: 'columns',
13
- left: [
14
- {
15
- type: 'button',
16
- action: {
17
- title: 'Save',
18
- type: 'primary',
19
- exit: true,
20
- result: { side: 'left' },
21
- },
22
- },
23
- ],
24
- right: [
25
- {
26
- type: 'button',
27
- action: {
28
- title: 'Delete',
29
- type: 'negative',
30
- exit: true,
31
- result: { side: 'right' },
32
- },
33
- },
34
- ],
35
- },
36
- ],
37
- };
38
- exports.default = step;
39
- //# sourceMappingURL=columns.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../src/fixtures/components/columns.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,oBAAoB;IACzB,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,+DAA+D;IAC5E,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACJ;oBACE,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE;wBACN,KAAK,EAAE,MAAM;wBACb,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,IAAI;wBACV,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;qBACzB;iBACF;aACF;YACD,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE;wBACN,KAAK,EAAE,QAAQ;wBACf,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,IAAI;wBACV,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;qBAC1B;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const step = {
4
- key: 'Components/Copyable',
5
- type: 'form',
6
- title: 'Copyable Text',
7
- description: 'Copyable Text Component.',
8
- actions: [],
9
- layout: [
10
- {
11
- type: 'paragraph',
12
- align: 'center',
13
- text: 'Please copy the code below and use it in that other thing.',
14
- },
15
- {
16
- type: 'paragraph',
17
- text: '7Xtiq6fnX9aEVF7yZAmb2qyqS857ro8S',
18
- align: 'center',
19
- control: 'copyable',
20
- },
21
- ],
22
- schemas: [],
23
- };
24
- exports.default = step;
25
- //# sourceMappingURL=copyable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copyable.js","sourceRoot":"","sources":["../../../src/fixtures/components/copyable.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa;IACrB,GAAG,EAAE,qBAAqB;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,0BAA0B;IACvC,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,4DAA4D;SACnE;QACD;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,kCAAkC;YACxC,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,UAAU;SACpB;KACF;IACD,OAAO,EAAE,EAAE;CACZ,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const step = {
4
- type: 'form',
5
- key: 'Components/Decision',
6
- title: 'Decision Component',
7
- description: 'A step with a decision Component.',
8
- actions: [],
9
- schemas: [],
10
- layout: [
11
- {
12
- type: 'heading',
13
- size: 'sm',
14
- text: 'Please continue using one of the following options:',
15
- },
16
- {
17
- type: 'decision',
18
- options: [
19
- {
20
- title: 'Create a new recipient',
21
- description: 'You will need their bank details to hand',
22
- icon: {
23
- name: 'plus',
24
- },
25
- action: {
26
- title: '',
27
- url: 'recipient',
28
- },
29
- },
30
- {
31
- title: 'Choose an existing recipient',
32
- disabled: false,
33
- icon: {
34
- name: 'bank',
35
- },
36
- action: {
37
- title: '',
38
- url: 'review',
39
- },
40
- },
41
- {
42
- title: 'Show me the external step',
43
- disabled: false,
44
- icon: {
45
- name: 'bulb',
46
- },
47
- action: {
48
- title: '',
49
- url: 'external',
50
- },
51
- },
52
- ],
53
- },
54
- ],
55
- };
56
- exports.default = step;
57
- //# sourceMappingURL=decision.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decision.js","sourceRoot":"","sources":["../../../src/fixtures/components/decision.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,qBAAqB;IAC1B,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EAAE,mCAAmC;IAChD,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,qDAAqD;SAC5D;QACD;YACE,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,wBAAwB;oBAC/B,WAAW,EAAE,0CAA0C;oBACvD,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;qBACb;oBACD,MAAM,EAAE;wBACN,KAAK,EAAE,EAAE;wBACT,GAAG,EAAE,WAAW;qBACjB;iBACF;gBACD;oBACE,KAAK,EAAE,8BAA8B;oBACrC,QAAQ,EAAE,KAAK;oBACf,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;qBACb;oBACD,MAAM,EAAE;wBACN,KAAK,EAAE,EAAE;wBACT,GAAG,EAAE,QAAQ;qBACd;iBACF;gBACD;oBACE,KAAK,EAAE,2BAA2B;oBAClC,QAAQ,EAAE,KAAK;oBACf,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;qBACb;oBACD,MAAM,EAAE;wBACN,KAAK,EAAE,EAAE;wBACT,GAAG,EAAE,UAAU;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const step = {
4
- type: 'form',
5
- key: 'Components/Heading',
6
- title: 'Heading Component',
7
- description: 'Headings can have different sizes: "xs", "sm", "md", "lg", "xl".',
8
- actions: [],
9
- schemas: [],
10
- layout: ['xs', 'sm', 'md', 'lg', 'xl'].map((size) => ({
11
- type: 'heading',
12
- text: `This is heading with size: "${size}"`,
13
- size,
14
- })),
15
- };
16
- exports.default = step;
17
- //# sourceMappingURL=heading.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../src/fixtures/components/heading.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,oBAAoB;IACzB,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,kEAAkE;IAC/E,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/D,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,+BAA+B,IAAI,GAAG;QAC5C,IAAI;KACL,CAAC,CAAC;CACJ,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const sizes = ['xs', 'sm', 'md', 'lg', 'xl'];
4
- const step = {
5
- type: 'form',
6
- key: 'Components/Image',
7
- title: 'Image Component',
8
- description: 'Images can have different sizes: "xs", "sm", "md", "lg", "xl".',
9
- actions: [],
10
- schemas: [],
11
- layout: sizes.flatMap((size) => [
12
- {
13
- type: 'paragraph',
14
- text: `This is an image with size: "${size}"`,
15
- align: 'center',
16
- },
17
- {
18
- type: 'image',
19
- url: 'http://placekitten.com/g/400/400',
20
- text: `This is an image with size: "${size}"`,
21
- size,
22
- },
23
- ]),
24
- };
25
- exports.default = step;
26
- //# sourceMappingURL=image.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/fixtures/components/image.ts"],"names":[],"mappings":";;AAEA,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAEtD,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,kBAAkB;IACvB,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,gEAAgE;IAC7E,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QAC9B;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,gCAAgC,IAAI,GAAG;YAC7C,KAAK,EAAE,QAAQ;SAChB;QACD;YACE,IAAI,EAAE,OAAO;YACb,GAAG,EAAE,kCAAkC;YACvC,IAAI,EAAE,gCAAgC,IAAI,GAAG;YAC7C,IAAI;SACL;KACF,CAAC;CACH,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,33 +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.review = exports.paragraph = exports.loadingIndicator = exports.list = exports.info = exports.image = exports.heading = exports.decision = exports.copyable = exports.columns = exports.button = exports.box = exports.alert = void 0;
7
- var alert_1 = require("./alert");
8
- Object.defineProperty(exports, "alert", { enumerable: true, get: function () { return __importDefault(alert_1).default; } });
9
- var box_1 = require("./box");
10
- Object.defineProperty(exports, "box", { enumerable: true, get: function () { return __importDefault(box_1).default; } });
11
- var button_1 = require("./button");
12
- Object.defineProperty(exports, "button", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
13
- var columns_1 = require("./columns");
14
- Object.defineProperty(exports, "columns", { enumerable: true, get: function () { return __importDefault(columns_1).default; } });
15
- var copyable_1 = require("./copyable");
16
- Object.defineProperty(exports, "copyable", { enumerable: true, get: function () { return __importDefault(copyable_1).default; } });
17
- var decision_1 = require("./decision");
18
- Object.defineProperty(exports, "decision", { enumerable: true, get: function () { return __importDefault(decision_1).default; } });
19
- var heading_1 = require("./heading");
20
- Object.defineProperty(exports, "heading", { enumerable: true, get: function () { return __importDefault(heading_1).default; } });
21
- var image_1 = require("./image");
22
- Object.defineProperty(exports, "image", { enumerable: true, get: function () { return __importDefault(image_1).default; } });
23
- var info_1 = require("./info");
24
- Object.defineProperty(exports, "info", { enumerable: true, get: function () { return __importDefault(info_1).default; } });
25
- var list_1 = require("./list");
26
- Object.defineProperty(exports, "list", { enumerable: true, get: function () { return __importDefault(list_1).default; } });
27
- var loading_indicator_1 = require("./loading-indicator");
28
- Object.defineProperty(exports, "loadingIndicator", { enumerable: true, get: function () { return __importDefault(loading_indicator_1).default; } });
29
- var paragraph_1 = require("./paragraph");
30
- Object.defineProperty(exports, "paragraph", { enumerable: true, get: function () { return __importDefault(paragraph_1).default; } });
31
- var review_1 = require("./review");
32
- Object.defineProperty(exports, "review", { enumerable: true, get: function () { return __importDefault(review_1).default; } });
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fixtures/components/index.ts"],"names":[],"mappings":";;;;;;AAAA,iCAA2C;AAAlC,+GAAA,OAAO,OAAS;AACzB,6BAAuC;AAA9B,2GAAA,OAAO,OAAO;AACvB,mCAA6C;AAApC,iHAAA,OAAO,OAAU;AAC1B,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,uCAAiD;AAAxC,qHAAA,OAAO,OAAY;AAC5B,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,iCAA2C;AAAlC,+GAAA,OAAO,OAAS;AACzB,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ;AACxB,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ;AACxB,yDAAkE;AAAzD,sIAAA,OAAO,OAAoB;AACpC,yCAAmD;AAA1C,uHAAA,OAAO,OAAa;AAC7B,mCAA6C;AAApC,iHAAA,OAAO,OAAU"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const step = {
4
- type: 'form',
5
- key: 'Components/Info',
6
- title: 'Info Component',
7
- description: 'A block of markdown content.',
8
- actions: [],
9
- schemas: [],
10
- layout: [
11
- {
12
- type: 'info',
13
- markdown: `## The Advantages of Using Bananas for Data Backup
14
-
15
- If you're looking for a fruit-based solution to your data backup needs, bananas might just be the perfect choice. Here are some reasons why:
16
-
17
- ### Portability
18
-
19
- Bananas are portable and can fit in any backpack or briefcase. So, you can take your backup with you wherever you go.
20
-
21
- ### Unique Banana Code
22
-
23
- Who needs passwords when you have bananas? With each backup, you can create a unique banana code by peeling the skin in a particular pattern, thus ensuring the safety of your data.
24
-
25
- ### Environmentally-Friendly
26
-
27
- But the best part? Bananas are biodegradable and environmentally-friendly, making them the ideal choice for anyone concerned about the planet. When you're done with your backup, you can simply toss the [bananas](https://en.wikipedia.org/wiki/Banana) in the compost bin or plant them in your garden. Who knew data backup could be so good for the earth?
28
-
29
- `,
30
- align: 'left',
31
- },
32
- { type: 'alert', markdown: 'Links always open in a new tab.', context: 'neutral' },
33
- ],
34
- };
35
- exports.default = step;
36
- //# sourceMappingURL=info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/fixtures/components/info.ts"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAa;IACrB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,iBAAiB;IACtB,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,8BAA8B;IAC3C,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN;YACE,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE;;;;;;;;;;;;;;;;CAgBf;YACK,KAAK,EAAE,MAAM;SACd;QACD,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,iCAAiC,EAAE,OAAO,EAAE,SAAS,EAAE;KACnF;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}