@wise/dynamic-flow-client 3.0.0-next-9cca10.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. package/README.md +42 -13
  2. package/build/i18n/de.json +7 -2
  3. package/build/i18n/en.json +7 -2
  4. package/build/i18n/es.json +7 -2
  5. package/build/i18n/fr.json +7 -2
  6. package/build/i18n/hu.json +8 -3
  7. package/build/i18n/id.json +7 -2
  8. package/build/i18n/it.json +7 -2
  9. package/build/i18n/ja.json +6 -1
  10. package/build/i18n/pl.json +7 -2
  11. package/build/i18n/pt.json +8 -3
  12. package/build/i18n/ro.json +7 -2
  13. package/build/i18n/ru.json +7 -2
  14. package/build/i18n/th.json +8 -3
  15. package/build/i18n/tr.json +8 -3
  16. package/build/i18n/zh_CN.json +24 -19
  17. package/build/i18n/zh_HK.json +7 -2
  18. package/build/main.css +17 -18
  19. package/build/main.js +2471 -1854
  20. package/build/main.min.js +8 -1
  21. package/build/types/common/errorBoundary/ErrorBoundaryAlert.d.ts +5 -0
  22. package/build/types/common/{contexts/httpClientContext → httpClientContext}/HttpClientContext.d.ts +3 -3
  23. package/build/types/common/httpClientContext/index.d.ts +1 -0
  24. package/build/types/common/makeHttpClient/makeHttpClient.d.ts +1 -0
  25. package/build/types/{step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts → common/messages/generic-error.messages.d.ts} +3 -3
  26. package/build/types/{dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.d.ts → common/messages/help.messages.d.ts} +1 -6
  27. package/build/types/{step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts → common/messages/validation.array.messages.d.ts} +2 -2
  28. package/build/types/common/utils/api-utils.d.ts +0 -3
  29. package/build/types/index.d.ts +7 -7
  30. package/build/types/legacy/common/constants/FeatureName.d.ts +3 -0
  31. package/build/types/{common → legacy/common}/constants/FormControlType.d.ts +2 -0
  32. package/build/types/legacy/common/contexts/eventsContext/EventsContext.d.ts +14 -0
  33. package/build/types/legacy/common/contexts/featureContext/FeatureContext.d.ts +10 -0
  34. package/build/types/{common → legacy/common}/contexts/index.d.ts +0 -1
  35. package/build/types/{common → legacy/common}/contexts/logContext/LogContext.d.ts +3 -5
  36. package/build/types/legacy/common/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +2 -0
  37. package/build/types/{common → legacy/common}/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +1 -1
  38. package/build/types/{common → legacy/common}/hooks/usePersistAsync/usePersistAsync.d.ts +1 -1
  39. package/build/types/{common → legacy/common}/hooks/useStepPolling/useStepPolling.d.ts +1 -1
  40. package/build/types/legacy/common/utils/api-utils.d.ts +2 -0
  41. package/build/types/legacy/common/utils/debounce.d.ts +6 -0
  42. package/build/types/{common → legacy/common}/utils/file-utils.d.ts +1 -1
  43. package/build/types/{common → legacy/common}/utils/index.d.ts +1 -0
  44. package/build/types/{common → legacy/common}/utils/misc-utils.d.ts +1 -1
  45. package/build/types/legacy/common/utils/mobile-utils.d.ts +4 -0
  46. package/build/types/{common → legacy/common}/utils/model-utils.d.ts +1 -1
  47. package/build/types/{common → legacy/common}/utils/schema-utils.d.ts +1 -1
  48. package/build/types/{common → legacy/common}/utils/step-utils.d.ts +1 -1
  49. package/build/types/{common → legacy/common}/validators/models/model-utils.d.ts +1 -1
  50. package/build/types/{common → legacy/common}/validators/models/model-validators.d.ts +1 -1
  51. package/build/types/{common → legacy/common}/validators/schemas/schema-validators.d.ts +1 -1
  52. package/build/types/{common → legacy/common}/validators/validationFailures/validation-failures.d.ts +1 -1
  53. package/build/types/legacy/dynamic-flow-types.d.ts +57 -0
  54. package/build/types/legacy/dynamicFlow/BackButton.d.ts +9 -0
  55. package/build/types/legacy/dynamicFlow/DynamicFlow.d.ts +3 -0
  56. package/build/types/legacy/dynamicFlow/DynamicFlowStep.d.ts +8 -0
  57. package/build/types/legacy/dynamicFlow/DynamicFlowTypes.d.ts +8 -0
  58. package/build/types/{dynamicFlow → legacy/dynamicFlow}/stories/fixtureHttpClient.d.ts +1 -1
  59. package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/index.d.ts +1 -1
  60. package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/responseParsers/response-parsers.d.ts +2 -2
  61. package/build/types/legacy/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +5 -0
  62. package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/useDynamicFlowState.d.ts +1 -1
  63. package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/useLoader.d.ts +1 -1
  64. package/build/types/{formControl → legacy/formControl}/FormControl.d.ts +14 -14
  65. package/build/types/legacy/formControl/utils/getAutocompleteString.d.ts +2 -0
  66. package/build/types/legacy/formControl/utils/index.d.ts +2 -0
  67. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/JsonSchemaForm.d.ts +5 -4
  68. package/build/types/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +13 -0
  69. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +16 -0
  70. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +1 -1
  71. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.d.ts +3 -3
  72. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +8 -0
  73. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +14 -0
  74. package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +3 -0
  75. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/controlFeedback/ControlFeedback.d.ts +5 -5
  76. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/genericSchema/GenericSchema.d.ts +4 -4
  77. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/help/Help.d.ts +1 -1
  78. package/build/types/legacy/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +15 -0
  79. package/build/types/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +14 -0
  80. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/oneOfSchema/utils.d.ts +1 -1
  81. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +15 -0
  82. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +6 -6
  83. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +6 -6
  84. package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +16 -0
  85. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +5 -5
  86. package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +8 -0
  87. package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +7 -0
  88. package/build/types/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +27 -0
  89. package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/schemaFormControl/utils/mapping-utils.d.ts +5 -4
  90. package/build/types/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +15 -0
  91. package/build/types/{layout → legacy/layout}/DynamicLayout.d.ts +3 -3
  92. package/build/types/legacy/layout/button/DynamicButton.d.ts +7 -0
  93. package/build/types/{layout → legacy/layout}/button/utils.d.ts +1 -1
  94. package/build/types/legacy/layout/decision/DynamicDecision.d.ts +8 -0
  95. package/build/types/legacy/layout/form/DynamicForm.d.ts +7 -0
  96. package/build/types/{layout → legacy/layout}/icon/DynamicIcon.d.ts +1 -1
  97. package/build/types/{layout → legacy/layout}/icon/FlagIcon.d.ts +1 -1
  98. package/build/types/{layout → legacy/layout}/icon/NamedIcon.d.ts +1 -1
  99. package/build/types/legacy/layout/image/DynamicImage.d.ts +6 -0
  100. package/build/types/{layout → legacy/layout}/index.d.ts +1 -0
  101. package/build/types/legacy/layout/modal/DynamicModal.d.ts +7 -0
  102. package/build/types/legacy/layout/paragraph/DynamicParagraph.d.ts +6 -0
  103. package/build/types/legacy/layout/review/DynamicReview.d.ts +8 -0
  104. package/build/types/legacy/layout/search/DynamicSearch.d.ts +8 -0
  105. package/build/types/legacy/layout/search/SearchResults.d.ts +10 -0
  106. package/build/types/{layout → legacy/layout}/search/useSearch.d.ts +2 -2
  107. package/build/types/{layout → legacy/layout}/utils/index.d.ts +1 -1
  108. package/build/types/legacy/step/cameraStep/CameraStep.d.ts +7 -0
  109. package/build/types/legacy/step/cameraStep/cameraCapture/CameraCapture.d.ts +15 -0
  110. package/build/types/legacy/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +58 -0
  111. package/build/types/legacy/step/cameraStep/cameraCapture/components/index.d.ts +3 -0
  112. package/build/types/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +2 -0
  113. package/build/types/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.d.ts +8 -0
  114. package/build/types/legacy/step/cameraStep/cameraCapture/hooks/useFullScreenOrientationLock.d.ts +5 -0
  115. package/build/types/{step → legacy/step}/cameraStep/cameraCapture/overlay/Overlay.d.ts +1 -1
  116. package/build/types/legacy/step/cameraStep/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.d.ts +3 -0
  117. package/build/types/legacy/step/cameraStep/cameraCapture/screens/index.d.ts +1 -0
  118. package/build/types/legacy/step/cameraStep/cameraCapture/tracking/index.d.ts +8 -0
  119. package/build/types/legacy/step/cameraStep/cameraCapture/types/index.d.ts +11 -0
  120. package/build/types/{step → legacy/step}/layoutStep/utils/inline-reference-utils.d.ts +1 -1
  121. package/build/types/legacy/test-utils/DynamicFlowProviders.d.ts +9 -0
  122. package/build/types/legacy/test-utils/index.d.ts +4 -0
  123. package/build/types/legacy/test-utils/legacy-utils.d.ts +22 -0
  124. package/build/types/legacy/test-utils/log-utils.d.ts +9 -0
  125. package/build/types/revamp/DynamicFlowCore.d.ts +6 -0
  126. package/build/types/revamp/DynamicFlowWise.d.ts +3 -0
  127. package/build/types/revamp/domain/components/AlertComponent.d.ts +7 -0
  128. package/build/types/revamp/domain/components/AllOfComponent.d.ts +18 -0
  129. package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +15 -0
  130. package/build/types/revamp/domain/components/BoxComponent.d.ts +10 -0
  131. package/build/types/revamp/domain/components/ButtonComponent.d.ts +12 -0
  132. package/build/types/revamp/domain/components/ColumnsComponent.d.ts +9 -0
  133. package/build/types/revamp/domain/components/ConstComponent.d.ts +10 -0
  134. package/build/types/revamp/domain/components/ContainerComponent.d.ts +11 -0
  135. package/build/types/revamp/domain/components/DateInputComponent.d.ts +17 -0
  136. package/build/types/revamp/domain/components/DecisionComponent.d.ts +15 -0
  137. package/build/types/revamp/domain/components/DividerComponent.d.ts +5 -0
  138. package/build/types/revamp/domain/components/FormComponent.d.ts +7 -0
  139. package/build/types/revamp/domain/components/HeadingComponent.d.ts +9 -0
  140. package/build/types/revamp/domain/components/ImageComponent.d.ts +9 -0
  141. package/build/types/revamp/domain/components/InstructionsComponent.d.ts +11 -0
  142. package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +15 -0
  143. package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +8 -0
  144. package/build/types/revamp/domain/components/MarkdownComponent.d.ts +7 -0
  145. package/build/types/revamp/domain/components/ModalComponent.d.ts +12 -0
  146. package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +21 -0
  147. package/build/types/revamp/domain/components/NumberInputComponent.d.ts +15 -0
  148. package/build/types/revamp/domain/components/ObjectComponent.d.ts +13 -0
  149. package/build/types/revamp/domain/components/ParagraphComponent.d.ts +7 -0
  150. package/build/types/revamp/domain/components/ReviewComponent.d.ts +17 -0
  151. package/build/types/revamp/domain/components/SelectInputComponent.d.ts +35 -0
  152. package/build/types/revamp/domain/components/StatusListComponent.d.ts +8 -0
  153. package/build/types/revamp/domain/components/TextInputComponent.d.ts +16 -0
  154. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +18 -0
  155. package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +27 -0
  156. package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +25 -0
  157. package/build/types/revamp/domain/components/utils/component-utils.d.ts +12 -0
  158. package/build/types/revamp/domain/components/utils/debounce.d.ts +6 -0
  159. package/build/types/revamp/domain/components/utils/file-utils.d.ts +1 -0
  160. package/build/types/revamp/domain/components/utils/isPartialLocalValueMatch.d.ts +2 -0
  161. package/build/types/revamp/domain/features/events/getAnalyticsEventDispatcher.d.ts +9 -0
  162. package/build/types/revamp/domain/features/events/getLogggingEventDispatcher.d.ts +4 -0
  163. package/build/types/revamp/domain/features/events/index.d.ts +2 -0
  164. package/build/types/revamp/domain/features/persistAsync/getComponentPersistAsync.d.ts +21 -0
  165. package/build/types/revamp/domain/features/persistAsync/getPerformPersistAsync.d.ts +23 -0
  166. package/build/types/revamp/domain/features/persistAsync/persist-async-utils.d.ts +3 -0
  167. package/build/types/revamp/domain/features/refresh/getPerformRefresh.d.ts +5 -0
  168. package/build/types/revamp/domain/features/search/getPerformSearchFunction.d.ts +3 -0
  169. package/build/types/revamp/domain/features/summary/summary-utils.d.ts +32 -0
  170. package/build/types/revamp/domain/features/validation/spec-utils.d.ts +16 -0
  171. package/build/types/revamp/domain/features/validation/validation-functions.d.ts +7 -0
  172. package/build/types/revamp/domain/features/validation/value-checks.d.ts +18 -0
  173. package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +2 -0
  174. package/build/types/revamp/domain/mappers/layout/boxLayoutToComponents.d.ts +4 -0
  175. package/build/types/revamp/domain/mappers/layout/buttonLayoutToComponent.d.ts +3 -0
  176. package/build/types/revamp/domain/mappers/layout/columnsLayoutToComponent.d.ts +4 -0
  177. package/build/types/revamp/domain/mappers/layout/decisionLayoutToComponent.d.ts +3 -0
  178. package/build/types/revamp/domain/mappers/layout/dividerLayoutToComponent.d.ts +2 -0
  179. package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +4 -0
  180. package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +2 -0
  181. package/build/types/revamp/domain/mappers/layout/imageLayoutToComponent.d.ts +2 -0
  182. package/build/types/revamp/domain/mappers/layout/infoLayoutToComponent.d.ts +2 -0
  183. package/build/types/revamp/domain/mappers/layout/instructionsLayoutToComponent.d.ts +2 -0
  184. package/build/types/revamp/domain/mappers/layout/listLayoutToComponent.d.ts +2 -0
  185. package/build/types/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.d.ts +2 -0
  186. package/build/types/revamp/domain/mappers/layout/markdownLayoutToComponent.d.ts +2 -0
  187. package/build/types/revamp/domain/mappers/layout/modalLayoutToComponent.d.ts +3 -0
  188. package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +2 -0
  189. package/build/types/revamp/domain/mappers/layout/reviewLayoutToComponent.d.ts +3 -0
  190. package/build/types/revamp/domain/mappers/layout/searchLayoutToComponent.d.ts +3 -0
  191. package/build/types/revamp/domain/mappers/layout/statusListLayoutToComponent.d.ts +2 -0
  192. package/build/types/revamp/domain/mappers/mapLayoutToComponent.d.ts +4 -0
  193. package/build/types/revamp/domain/mappers/mapSchemaToComponent.d.ts +3 -0
  194. package/build/types/revamp/domain/mappers/mapStepToComponents.d.ts +6 -0
  195. package/build/types/revamp/domain/mappers/schema/allOfSchemaToComponent.d.ts +5 -0
  196. package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToComponent.d.ts +5 -0
  197. package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToMultiUploadComponent.d.ts +9 -0
  198. package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.d.ts +6 -0
  199. package/build/types/revamp/domain/mappers/schema/blobSchemaToComponent.d.ts +5 -0
  200. package/build/types/revamp/domain/mappers/schema/booleanSchemaToComponent.d.ts +5 -0
  201. package/build/types/revamp/domain/mappers/schema/constSchemaToComponent.d.ts +5 -0
  202. package/build/types/revamp/domain/mappers/schema/integerSchemaToComponent.d.ts +5 -0
  203. package/build/types/revamp/domain/mappers/schema/numberSchemaToComponent.d.ts +5 -0
  204. package/build/types/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.d.ts +5 -0
  205. package/build/types/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +5 -0
  206. package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.d.ts +5 -0
  207. package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToDateInputComponent.d.ts +5 -0
  208. package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToTextInputComponent.d.ts +5 -0
  209. package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToUploadInputComponent.d.ts +5 -0
  210. package/build/types/revamp/domain/mappers/schema/tests/test-utils.d.ts +28 -0
  211. package/build/types/revamp/domain/mappers/schema/types.d.ts +25 -0
  212. package/build/types/revamp/domain/mappers/schema/utils/getPersistAsyncInitialState.d.ts +5 -0
  213. package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +27 -0
  214. package/build/types/revamp/domain/mappers/types.d.ts +19 -0
  215. package/build/types/revamp/domain/mappers/utils/getAutocompleteString.d.ts +2 -0
  216. package/build/types/revamp/domain/mappers/utils/getRandomId.d.ts +1 -0
  217. package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +7 -0
  218. package/build/types/revamp/domain/types.d.ts +88 -0
  219. package/build/types/revamp/flow/executeRefresh.d.ts +19 -0
  220. package/build/types/revamp/flow/executeSubmission.d.ts +20 -0
  221. package/build/types/revamp/flow/getResponseType.d.ts +10 -0
  222. package/build/types/revamp/flow/response-utils.d.ts +6 -0
  223. package/build/types/revamp/renderers/CoreContainerRenderer.d.ts +7 -0
  224. package/build/types/revamp/renderers/mappers/alertComponentToProps.d.ts +3 -0
  225. package/build/types/revamp/renderers/mappers/allOfComponentToProps.d.ts +4 -0
  226. package/build/types/revamp/renderers/mappers/booleanInputComponentToProps.d.ts +3 -0
  227. package/build/types/revamp/renderers/mappers/boxComponentToProps.d.ts +4 -0
  228. package/build/types/revamp/renderers/mappers/buttonComponentToProps.d.ts +3 -0
  229. package/build/types/revamp/renderers/mappers/columnsComponentToProps.d.ts +4 -0
  230. package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +9 -0
  231. package/build/types/revamp/renderers/mappers/containerComponentToProps.d.ts +3 -0
  232. package/build/types/revamp/renderers/mappers/dateInputComponentToProps.d.ts +3 -0
  233. package/build/types/revamp/renderers/mappers/decisionComponentToProps.d.ts +3 -0
  234. package/build/types/revamp/renderers/mappers/dividerComponentToProps.d.ts +3 -0
  235. package/build/types/revamp/renderers/mappers/formComponentToProps.d.ts +4 -0
  236. package/build/types/revamp/renderers/mappers/headingComponentToProps.d.ts +3 -0
  237. package/build/types/revamp/renderers/mappers/hiddenComponentToProps.d.ts +2 -0
  238. package/build/types/revamp/renderers/mappers/imageComponentToProps.d.ts +3 -0
  239. package/build/types/revamp/renderers/mappers/instructionsComponentToProps.d.ts +3 -0
  240. package/build/types/revamp/renderers/mappers/integerInputComponentToProps.d.ts +3 -0
  241. package/build/types/revamp/renderers/mappers/loadingIndicatorComponentToProps.d.ts +3 -0
  242. package/build/types/revamp/renderers/mappers/markdownComponentToProps.d.ts +3 -0
  243. package/build/types/revamp/renderers/mappers/modalComponentToProps.d.ts +4 -0
  244. package/build/types/revamp/renderers/mappers/multiUploadInputComponentToProps.d.ts +3 -0
  245. package/build/types/revamp/renderers/mappers/numberInputComponentToProps.d.ts +3 -0
  246. package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +4 -0
  247. package/build/types/revamp/renderers/mappers/paragraphComponentToProps.d.ts +3 -0
  248. package/build/types/revamp/renderers/mappers/repeatableComponentToProps.d.ts +4 -0
  249. package/build/types/revamp/renderers/mappers/reviewComponentToProps.d.ts +3 -0
  250. package/build/types/revamp/renderers/mappers/searchComponentToProps.d.ts +3 -0
  251. package/build/types/revamp/renderers/mappers/selectInputComponentToProps.d.ts +4 -0
  252. package/build/types/revamp/renderers/mappers/statusListComponentToProps.d.ts +3 -0
  253. package/build/types/revamp/renderers/mappers/textInputComponentToProps.d.ts +3 -0
  254. package/build/types/revamp/renderers/mappers/uploadInputComponentToProps.d.ts +3 -0
  255. package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +17 -0
  256. package/build/types/revamp/renderers/types.d.ts +314 -0
  257. package/build/types/revamp/step/Step.d.ts +22 -0
  258. package/build/types/revamp/step/utils/getRenderFunction.d.ts +3 -0
  259. package/build/types/revamp/step/utils/getSchemaErrorMessageFunction.d.ts +3 -0
  260. package/build/types/revamp/stories/utils/fixtureHttpClient.d.ts +2 -0
  261. package/build/types/revamp/stories/utils/mockSearchHandler.d.ts +1 -0
  262. package/build/types/revamp/test-utils/component-utils.d.ts +2 -0
  263. package/build/types/revamp/test-utils/step-utils.d.ts +2 -0
  264. package/build/types/revamp/types.d.ts +41 -0
  265. package/build/types/revamp/utils/component-utils.d.ts +6 -0
  266. package/build/types/revamp/utils/findComponent.d.ts +2 -0
  267. package/build/types/revamp/utils/type-utils.d.ts +41 -0
  268. package/build/types/revamp/utils/type-validators.d.ts +10 -0
  269. package/build/types/revamp/wise/renderers/AlertRenderer.d.ts +3 -0
  270. package/build/types/revamp/wise/renderers/BooleanInputRenderer.d.ts +3 -0
  271. package/build/types/revamp/wise/renderers/BoxRenderer.d.ts +3 -0
  272. package/build/types/revamp/wise/renderers/ButtonRenderer.d.ts +3 -0
  273. package/build/types/revamp/wise/renderers/ColumnsRenderer.d.ts +3 -0
  274. package/build/types/revamp/wise/renderers/DateInputRenderer.d.ts +3 -0
  275. package/build/types/revamp/wise/renderers/DecisionRenderer.d.ts +3 -0
  276. package/build/types/revamp/wise/renderers/DividerRenderer.d.ts +3 -0
  277. package/build/types/revamp/wise/renderers/FormRenderer.d.ts +3 -0
  278. package/build/types/revamp/wise/renderers/FormSectionRenderer.d.ts +3 -0
  279. package/build/types/revamp/wise/renderers/HeadingRenderer.d.ts +3 -0
  280. package/build/types/revamp/wise/renderers/ImageRenderer.d.ts +3 -0
  281. package/build/types/revamp/wise/renderers/InstructionsRenderer.d.ts +3 -0
  282. package/build/types/revamp/wise/renderers/IntegerInputRenderer.d.ts +3 -0
  283. package/build/types/revamp/wise/renderers/LoadingIndicatorRenderer.d.ts +3 -0
  284. package/build/types/revamp/wise/renderers/MarkdownRenderer.d.ts +3 -0
  285. package/build/types/revamp/wise/renderers/ModalRenderer.d.ts +3 -0
  286. package/build/types/revamp/wise/renderers/MultiUploadInputRenderer.d.ts +3 -0
  287. package/build/types/revamp/wise/renderers/NumberInputRenderer.d.ts +3 -0
  288. package/build/types/revamp/wise/renderers/ParagraphRenderer.d.ts +3 -0
  289. package/build/types/revamp/wise/renderers/RepeatableRenderer.d.ts +3 -0
  290. package/build/types/revamp/wise/renderers/ReviewRenderer.d.ts +3 -0
  291. package/build/types/revamp/wise/renderers/SearchRenderer.d.ts +15 -0
  292. package/build/types/revamp/wise/renderers/SelectInputRenderer/OptionMedia.d.ts +5 -0
  293. package/build/types/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.d.ts +2 -0
  294. package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectInputRenderer.d.ts +3 -0
  295. package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.d.ts +2 -0
  296. package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.d.ts +5 -0
  297. package/build/types/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.d.ts +2 -0
  298. package/build/types/revamp/wise/renderers/StatusListRenderer.d.ts +4 -0
  299. package/build/types/revamp/wise/renderers/TextInputRenderer.d.ts +3 -0
  300. package/build/types/revamp/wise/renderers/UploadInputRenderer.d.ts +4 -0
  301. package/build/types/revamp/wise/renderers/components/FieldInput.d.ts +11 -0
  302. package/build/types/revamp/wise/renderers/components/Help.d.ts +4 -0
  303. package/build/types/revamp/wise/renderers/components/LabelContentWithHelp.d.ts +4 -0
  304. package/build/types/revamp/wise/renderers/components/UploadFieldInput.d.ts +11 -0
  305. package/build/types/revamp/wise/renderers/components/VariableDateInput.d.ts +9 -0
  306. package/build/types/revamp/wise/renderers/components/VariableTextInput.d.ts +10 -0
  307. package/build/types/revamp/wise/renderers/components/icon/DynamicIcon.d.ts +6 -0
  308. package/build/types/revamp/wise/renderers/components/icon/FlagIcon.d.ts +6 -0
  309. package/build/types/revamp/wise/renderers/components/icon/NamedIcon.d.ts +6 -0
  310. package/build/types/revamp/wise/renderers/components/icon/NavigationOptionMedia.d.ts +5 -0
  311. package/build/types/revamp/wise/renderers/getWiseRenderers.d.ts +1 -0
  312. package/build/types/revamp/wise/renderers/hooks/useSnackBarIfAvailable.d.ts +10 -0
  313. package/build/types/revamp/wise/renderers/utils/file-utils.d.ts +3 -0
  314. package/build/types/revamp/wise/renderers/utils/getRandomId.d.ts +1 -0
  315. package/build/types/revamp/wise/renderers/utils/input-utils.d.ts +1 -0
  316. package/build/types/revamp/wise/renderers/utils/layout-utils.d.ts +7 -0
  317. package/build/types/revamp/wise/renderers/utils/value-utils.d.ts +3 -0
  318. package/build/types/revamp/wise/renderers/validators/type-validators.d.ts +9 -0
  319. package/build/types/test-utils/NeptuneProviders.d.ts +5 -0
  320. package/build/types/test-utils/fetch-utils.d.ts +20 -0
  321. package/build/types/test-utils/rtl-utils.d.ts +2 -0
  322. package/package.json +65 -67
  323. package/build/types/common/contexts/eventsContext/EventsContext.d.ts +0 -15
  324. package/build/types/common/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +0 -2
  325. package/build/types/common/utils/debounce.d.ts +0 -6
  326. package/build/types/dynamicFlow/BackButton.d.ts +0 -9
  327. package/build/types/dynamicFlow/DynamicFlow.d.ts +0 -3
  328. package/build/types/dynamicFlow/DynamicFlowStep.d.ts +0 -8
  329. package/build/types/dynamicFlow/DynamicFlowTypes.d.ts +0 -46
  330. package/build/types/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.d.ts +0 -5
  331. package/build/types/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -6
  332. package/build/types/formControl/utils/index.d.ts +0 -1
  333. package/build/types/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +0 -13
  334. package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -16
  335. package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +0 -8
  336. package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +0 -14
  337. package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +0 -3
  338. package/build/types/jsonSchemaForm/help/Help.messages.d.ts +0 -8
  339. package/build/types/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +0 -15
  340. package/build/types/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +0 -14
  341. package/build/types/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -15
  342. package/build/types/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -8
  343. package/build/types/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +0 -16
  344. package/build/types/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +0 -8
  345. package/build/types/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +0 -7
  346. package/build/types/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +0 -23
  347. package/build/types/jsonSchemaForm/schemaFormControl/utils/control-type-utils.d.ts +0 -2
  348. package/build/types/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -15
  349. package/build/types/layout/button/DynamicButton.d.ts +0 -7
  350. package/build/types/layout/decision/DynamicDecision.d.ts +0 -8
  351. package/build/types/layout/form/DynamicForm.d.ts +0 -7
  352. package/build/types/layout/image/DynamicImage.d.ts +0 -6
  353. package/build/types/layout/paragraph/DynamicParagraph.d.ts +0 -6
  354. package/build/types/layout/review/DynamicReview.d.ts +0 -8
  355. package/build/types/layout/search/DynamicSearch.d.ts +0 -8
  356. package/build/types/layout/search/SearchResults.d.ts +0 -10
  357. package/build/types/step/cameraStep/CameraStep.d.ts +0 -7
  358. package/build/types/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -15
  359. package/build/types/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -18
  360. package/build/types/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -2
  361. package/build/types/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -5
  362. package/build/types/step/cameraStep/cameraCapture/screens/index.d.ts +0 -2
  363. package/build/types/step/cameraStep/cameraCapture/tracking/index.d.ts +0 -7
  364. package/build/types/{dynamicFlow/utils → common}/errorBoundary/ErrorBoundary.d.ts +1 -1
  365. /package/build/types/{jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts → common/messages/multi-file-upload.messages.d.ts} +0 -0
  366. /package/build/types/{layout/paragraph/DynamicParagraph.messages.d.ts → common/messages/paragraph.messages.d.ts} +0 -0
  367. /package/build/types/{jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.messages.d.ts → common/messages/repeatable.messages.d.ts} +0 -0
  368. /package/build/types/{jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts → common/messages/validation.messages.d.ts} +0 -0
  369. /package/build/types/{common → legacy/common}/constants/DateMode.d.ts +0 -0
  370. /package/build/types/{common → legacy/common}/constants/MonthFormat.d.ts +0 -0
  371. /package/build/types/{common → legacy/common}/constants/Size.d.ts +0 -0
  372. /package/build/types/{common → legacy/common}/constants/index.d.ts +0 -0
  373. /package/build/types/{common → legacy/common}/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -0
  374. /package/build/types/{common → legacy/common}/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +0 -0
  375. /package/build/types/{common → legacy/common}/hooks/index.d.ts +0 -0
  376. /package/build/types/{common → legacy/common}/hooks/useExternal/useExternal.d.ts +0 -0
  377. /package/build/types/{common → legacy/common}/hooks/usePolling/usePolling.d.ts +0 -0
  378. /package/build/types/{common → legacy/common}/hooks/usePrevious/usePrevious.d.ts +0 -0
  379. /package/build/types/{common → legacy/common}/messages.d.ts +0 -0
  380. /package/build/types/{common → legacy/common}/utils/date-utils.d.ts +0 -0
  381. /package/build/types/{common → legacy/common}/utils/id-utils.d.ts +0 -0
  382. /package/build/types/{common → legacy/common}/utils/is-equal.d.ts +0 -0
  383. /package/build/types/{common → legacy/common}/validators/index.d.ts +0 -0
  384. /package/build/types/{common → legacy/common}/validators/types/type-validators.d.ts +0 -0
  385. /package/build/types/{common → legacy/common}/validators/validationFailures/validation-failures.utils.d.ts +0 -0
  386. /package/build/types/{common → legacy/common}/validators/values/value-validators.d.ts +0 -0
  387. /package/build/types/{dynamicFlow → legacy/dynamicFlow}/index.d.ts +0 -0
  388. /package/build/types/{formControl → legacy/formControl}/index.d.ts +0 -0
  389. /package/build/types/{formControl → legacy/formControl}/utils/value-utils.d.ts +0 -0
  390. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/allOfSchema/index.d.ts +0 -0
  391. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/ArraySchema.d.ts +0 -0
  392. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -0
  393. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/index.d.ts +0 -0
  394. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -0
  395. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +0 -0
  396. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +0 -0
  397. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/index.d.ts +0 -0
  398. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/basicTypeSchema/BasicTypeSchema.d.ts +0 -0
  399. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/basicTypeSchema/index.d.ts +0 -0
  400. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/controlFeedback/index.d.ts +0 -0
  401. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/genericSchema/index.d.ts +0 -0
  402. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/help/index.d.ts +0 -0
  403. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/index.d.ts +0 -0
  404. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/objectSchema/index.d.ts +0 -0
  405. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/oneOfSchema/index.d.ts +0 -0
  406. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/index.d.ts +0 -0
  407. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +0 -0
  408. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +0 -0
  409. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -0
  410. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/index.d.ts +0 -0
  411. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/promoted-one-of-utils.d.ts +0 -0
  412. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +0 -0
  413. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -0
  414. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/readOnlySchema/index.d.ts +0 -0
  415. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/schemaFormControl/index.d.ts +0 -0
  416. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/schemaFormControl/utils/index.d.ts +0 -0
  417. /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/validationAsyncSchema/index.d.ts +0 -0
  418. /package/build/types/{layout → legacy/layout}/alert/DynamicAlert.d.ts +0 -0
  419. /package/build/types/{layout → legacy/layout}/box/DynamicBox.d.ts +0 -0
  420. /package/build/types/{layout → legacy/layout}/columns/DynamicColumns.d.ts +0 -0
  421. /package/build/types/{layout → legacy/layout}/divider/DynamicDivider.d.ts +0 -0
  422. /package/build/types/{layout → legacy/layout}/external/DynamicExternal.d.ts +0 -0
  423. /package/build/types/{layout → legacy/layout}/external/DynamicExternal.messages.d.ts +0 -0
  424. /package/build/types/{layout → legacy/layout}/heading/DynamicHeading.d.ts +0 -0
  425. /package/build/types/{layout → legacy/layout}/instructions/DynamicInstructions.d.ts +0 -0
  426. /package/build/types/{layout → legacy/layout}/list/DynamicStatusList.d.ts +0 -0
  427. /package/build/types/{layout → legacy/layout}/loadingIndicator/DynamicLoadingIndicator.d.ts +0 -0
  428. /package/build/types/{layout → legacy/layout}/markdown/DynamicMarkdown.d.ts +0 -0
  429. /package/build/types/{layout → legacy/layout}/paragraph/useSnackBarIfAvailable.d.ts +0 -0
  430. /package/build/types/{layout → legacy/layout}/search/SearchInput.d.ts +0 -0
  431. /package/build/types/{layout → legacy/layout}/utils/getNavigationOptionMedia.d.ts +0 -0
  432. /package/build/types/{step/cameraStep/cameraCapture/components/index.d.ts → legacy/step/cameraStep/cameraCapture/components/bottomBar/BottomBar.d.ts} +0 -0
  433. /package/build/types/{step/cameraStep/cameraCapture/hooks/index.d.ts → legacy/step/cameraStep/cameraCapture/hooks/useVideoConstraints.d.ts} +0 -0
  434. /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/index.d.ts +0 -0
  435. /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/utils/index.d.ts +0 -0
  436. /package/build/types/{step → legacy/step}/cameraStep/index.d.ts +0 -0
  437. /package/build/types/{step → legacy/step}/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -0
  438. /package/build/types/{step → legacy/step}/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -0
  439. /package/build/types/{step → legacy/step}/externalConfirmationStep/index.d.ts +0 -0
  440. /package/build/types/{step → legacy/step}/index.d.ts +0 -0
  441. /package/build/types/{step → legacy/step}/layoutStep/LayoutStep.d.ts +0 -0
  442. /package/build/types/{step → legacy/step}/layoutStep/index.d.ts +0 -0
  443. /package/build/types/{step → legacy/step}/layoutStep/utils/index.d.ts +0 -0
  444. /package/build/types/{step → legacy/step}/layoutStep/utils/layout-utils.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ onDismiss: () => void;
3
+ };
4
+ export declare function ErrorBoundaryAlert({ onDismiss }: Props): JSX.Element;
5
+ export {};
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
- type HttpClient = typeof fetch;
2
+ import { type HttpClient } from '../makeHttpClient';
3
3
  type ProviderProps = {
4
4
  httpClient: HttpClient;
5
5
  children: React.ReactNode;
6
6
  };
7
- export declare const HttpClientProvider: ({ httpClient, children }: ProviderProps) => JSX.Element;
7
+ export declare function HttpClientProvider({ httpClient, children }: ProviderProps): JSX.Element;
8
8
  type ProviderFromBaseUrlProps = {
9
9
  baseUrl: string;
10
10
  children: React.ReactNode;
11
11
  };
12
- export declare const HttpClientProviderFromBaseUrl: ({ baseUrl, children }: ProviderFromBaseUrlProps) => JSX.Element;
12
+ export declare function HttpClientProviderFromBaseUrl({ baseUrl, children }: ProviderFromBaseUrlProps): JSX.Element;
13
13
  /**
14
14
  * Provides the fetch(er) function for dynamic flows asynchronous operations.
15
15
  */
@@ -0,0 +1 @@
1
+ export * from './HttpClientContext';
@@ -1,2 +1,3 @@
1
1
  export type HttpClient = typeof fetch;
2
2
  export declare const makeHttpClient: (baseUrl: string, additionalHeaders?: HeadersInit) => HttpClient;
3
+ export declare const mergeRequestInit: (init?: RequestInit, additionalInit?: RequestInit) => RequestInit;
@@ -1,15 +1,15 @@
1
1
  declare const _default: {
2
- title: {
2
+ genericErrorRetryHint: {
3
3
  id: string;
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
- paragraph: {
7
+ genericError: {
8
8
  id: string;
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
- action: {
12
+ retry: {
13
13
  id: string;
14
14
  defaultMessage: string;
15
15
  description: string;
@@ -1,10 +1,5 @@
1
1
  declare const _default: {
2
- errorAlert: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- retry: {
2
+ helpAria: {
8
3
  id: string;
9
4
  defaultMessage: string;
10
5
  description: string;
@@ -1,10 +1,10 @@
1
1
  declare const _default: {
2
- title: {
2
+ minItemsError: {
3
3
  id: string;
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
- paragraph: {
7
+ maxItemsError: {
8
8
  id: string;
9
9
  defaultMessage: string;
10
10
  description: string;
@@ -1,4 +1 @@
1
- export declare function isStatus2xx(status: Response['status']): boolean;
2
- export declare function isStatus422(status: Response['status']): boolean;
3
- export declare function getJson(response: Response): Promise<any>;
4
1
  export declare function isRelativePath(url?: string): boolean;
@@ -1,10 +1,10 @@
1
- export { convertStepToLayout, inlineReferences } from './step/layoutStep/utils';
2
- export { default as DynamicFlow } from './dynamicFlow';
1
+ export { convertStepToLayout, inlineReferences } from './legacy/step/layoutStep/utils';
2
+ export { default as DynamicFlow } from './legacy/dynamicFlow';
3
3
  export { makeHttpClient } from './common/makeHttpClient';
4
- export { default as JsonSchemaForm } from './jsonSchemaForm';
5
- export { DynamicLayout as Layout } from './layout';
6
- export { isValidSchema } from './common/validators';
4
+ export { default as JsonSchemaForm } from './legacy/jsonSchemaForm';
5
+ export { DynamicLayout as Layout } from './legacy/layout';
6
+ export { isValidSchema } from './legacy/common/validators';
7
7
  export { default as translations } from './i18n';
8
- export * from './dynamicFlow/DynamicFlow';
9
- export type { DynamicFlowProps, InitialAction } from './dynamicFlow/DynamicFlowTypes';
8
+ export * from './legacy/dynamicFlow/DynamicFlow';
9
+ export type { DynamicFlowProps, InitialAction } from './legacy/dynamic-flow-types';
10
10
  export type { Step } from '@wise/dynamic-flow-types';
@@ -0,0 +1,3 @@
1
+ export declare enum FeatureName {
2
+ SAMPLE_FEATURE = "sample-feature"
3
+ }
@@ -2,11 +2,13 @@ export declare const FormControlType: {
2
2
  RADIO: string;
3
3
  CHECKBOX: string;
4
4
  SELECT: string;
5
+ EMAIL: string;
5
6
  FILE: string;
6
7
  DATE: string;
7
8
  DATETIME: string;
8
9
  DATELOOKUP: string;
9
10
  TEL: string;
11
+ NUMERIC: string;
10
12
  NUMBER: string;
11
13
  HIDDEN: string;
12
14
  PASSWORD: string;
@@ -0,0 +1,14 @@
1
+ import type React from 'react';
2
+ import type { EventHandler } from '../../../dynamic-flow-types';
3
+ type Props = {
4
+ metadata?: Record<string, unknown> & {
5
+ flowId?: string;
6
+ stepId?: string;
7
+ };
8
+ children: React.ReactNode;
9
+ onEvent: EventHandler;
10
+ };
11
+ export declare function EventsContextProvider({ metadata, children, onEvent }: Props): JSX.Element;
12
+ export declare function useEventDispatcher(): EventHandler;
13
+ export declare const getEventDispatcher: (onEvent: EventHandler, metadata?: Record<string, unknown>) => EventHandler;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { Feature } from '../../../dynamic-flow-types';
3
+ import type { FeatureName } from '../../constants/FeatureName';
4
+ type FeatureContextProviderProps = {
5
+ features: Feature[] | undefined;
6
+ children: React.ReactNode;
7
+ };
8
+ export declare function FeatureContextProvider({ features, children }: FeatureContextProviderProps): JSX.Element;
9
+ export declare const useFeatureFlag: (featureName: FeatureName) => Feature | undefined;
10
+ export {};
@@ -1,4 +1,3 @@
1
1
  export * from './dynamicFlowContexts/DynamicFlowContexts';
2
2
  export * from './eventsContext/EventsContext';
3
- export * from './httpClientContext/HttpClientContext';
4
3
  export * from './logContext/LogContext';
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
- export type LogLevel = 'debug' | 'info' | 'warning' | 'error' | 'critical';
2
+ import type { LogLevel, LogEventHandler } from '../../../dynamic-flow-types';
3
3
  export type LogTitle = 'Invalid schema or model' | 'Invalid model on change' | 'Invalid response' | 'Action supressed' | 'Deprecation warning' | 'Deprecated schema' | 'Error fetching';
4
- type ExtraProps = Record<string, unknown>;
5
- export type LogEventHandler = (level: LogLevel, message: string, extra: ExtraProps) => void;
6
- type LogFunction = (title: LogTitle, description: string, extra?: ExtraProps) => void;
4
+ type LogFunction = (title: LogTitle, description: string, extra?: Record<string, unknown>) => void;
7
5
  export declare const getLogger: (level: LogLevel, onLog: LogEventHandler, flowId?: string | undefined, stepId?: string | undefined) => LogFunction;
8
6
  type LogProviderProps = {
9
7
  flowId?: string;
@@ -11,7 +9,7 @@ type LogProviderProps = {
11
9
  children: React.ReactNode;
12
10
  onLog: LogEventHandler;
13
11
  };
14
- export declare const LogProvider: ({ flowId, stepId, children, onLog }: LogProviderProps) => JSX.Element;
12
+ export declare function LogProvider({ flowId, stepId, children, onLog }: LogProviderProps): JSX.Element;
15
13
  export declare const useLogger: () => {
16
14
  debug: LogFunction;
17
15
  info: LogFunction;
@@ -0,0 +1,2 @@
1
+ import { type DebouncedFunc } from '../../utils';
2
+ export declare function useDebouncedFunction<T extends (...args: Parameters<T>) => ReturnType<T>>(callback: T, waitMs: number): DebouncedFunc<T>;
@@ -1,3 +1,3 @@
1
- import { Action, ExternalStepPollingConfiguration } from '@wise/dynamic-flow-types';
1
+ import type { Action, ExternalStepPollingConfiguration } from '@wise/dynamic-flow-types';
2
2
  /** @deprecated External step is no longer supported */
3
3
  export declare function useExternalStepPolling(polling: ExternalStepPollingConfiguration | undefined, onAction: (action: Action) => void): void;
@@ -1,4 +1,4 @@
1
- import { PersistAsync } from '@wise/dynamic-flow-types';
1
+ import type { PersistAsync } from '@wise/dynamic-flow-types';
2
2
  type PersistAsyncModel = string | Blob | null;
3
3
  type PerformPersistAsyncFunction = (payload: PersistAsyncModel) => Promise<{
4
4
  data: string | number;
@@ -1,2 +1,2 @@
1
- import { Action, PollingConfiguration } from '@wise/dynamic-flow-types';
1
+ import type { Action, PollingConfiguration } from '@wise/dynamic-flow-types';
2
2
  export declare function useStepPolling(polling: PollingConfiguration | undefined, onAction: (action: Action) => void): void;
@@ -0,0 +1,2 @@
1
+ export declare function isStatus2xx(status: Response['status']): boolean;
2
+ export declare function isStatus422(status: Response['status']): boolean;
@@ -0,0 +1,6 @@
1
+ export interface DebouncedFunc<T extends (...args: Parameters<T>) => ReturnType<T>> {
2
+ (...args: Parameters<T>): void;
3
+ cancel: () => void;
4
+ flush: () => void;
5
+ }
6
+ export declare const debounce: <T extends (...args: Parameters<T>) => ReturnType<T>>(callback: T, waitMs: number) => DebouncedFunc<T>;
@@ -1,4 +1,4 @@
1
- import { UploadedFile } from '@transferwise/components';
1
+ import type { UploadedFile } from '@transferwise/components';
2
2
  export declare function toKilobytes(sizeInBytes: number): number;
3
3
  export declare const toBase64: (file: Blob) => Promise<string>;
4
4
  export declare function areFilesSame(newFiles: UploadedFile[], files: UploadedFile[]): boolean;
@@ -8,3 +8,4 @@ export * from './step-utils';
8
8
  export * from './model-utils';
9
9
  export * from './misc-utils';
10
10
  export * from './schema-utils';
11
+ export * from './mobile-utils';
@@ -1,2 +1,2 @@
1
- import { FormErrors } from '@wise/dynamic-flow-types';
1
+ import type { FormErrors } from '@wise/dynamic-flow-types';
2
2
  export declare const isBasicError: (error: FormErrors) => error is string | null;
@@ -0,0 +1,4 @@
1
+ export declare const isMobile: () => boolean;
2
+ export declare const isMobileUA: (userAgent?: string) => boolean;
3
+ export declare const isMobileScreenSize: (width?: number, height?: number) => boolean;
4
+ export declare const isTouchScreen: (navigator?: Navigator, matchMedia?: ((query: string) => MediaQueryList) & typeof matchMedia) => boolean;
@@ -1,4 +1,4 @@
1
- import { ArrayModel, BasicModel, Model, ObjectModel } from '@wise/dynamic-flow-types';
1
+ import type { ArrayModel, BasicModel, Model, ObjectModel } from '@wise/dynamic-flow-types';
2
2
  export declare const isObjectModel: (model: Model) => model is ObjectModel;
3
3
  export declare const isNullableObjectModel: (model: Model) => model is ObjectModel | null;
4
4
  export declare const isNullableBasicModel: (model: Model) => model is BasicModel | null;
@@ -1,4 +1,4 @@
1
- import { AllOfSchema, ArraySchema, BasicSchema, BlobSchema, ConstSchema, FileUploadSchema, ListArraySchema, MultipleFileUploadSchema, ObjectSchema, OneOfObjectSchema, OneOfSchema, PersistAsyncSchema, Schema, StringSchema, TupleArraySchema, ValidationAsyncSchema } from '@wise/dynamic-flow-types';
1
+ import type { AllOfSchema, ArraySchema, BasicSchema, BlobSchema, ConstSchema, FileUploadSchema, ListArraySchema, MultipleFileUploadSchema, ObjectSchema, OneOfObjectSchema, OneOfSchema, PersistAsyncSchema, Schema, StringSchema, TupleArraySchema, ValidationAsyncSchema } from '@wise/dynamic-flow-types';
2
2
  export declare function isConstSchema(schema: Schema | undefined): schema is ConstSchema;
3
3
  export declare function isNoNConstSchema(schema: Schema | undefined): boolean;
4
4
  export declare const isReadOnlySchema: (schema: Schema) => boolean;
@@ -1,3 +1,3 @@
1
- import { Schema, Step } from '@wise/dynamic-flow-types';
1
+ import type { Schema, Step } from '@wise/dynamic-flow-types';
2
2
  export declare const isCameraStep: (step: Step) => boolean;
3
3
  export declare const filterHiddenSchemas: (schemas: Schema[]) => Schema[];
@@ -1,4 +1,4 @@
1
- import { AllOfSchema, ArrayModel, ArraySchema, BasicModel, Model, ObjectModel, ObjectSchema, OneOfSchema } from '@wise/dynamic-flow-types';
1
+ import type { AllOfSchema, ArrayModel, ArraySchema, BasicModel, Model, ObjectModel, ObjectSchema, OneOfSchema } from '@wise/dynamic-flow-types';
2
2
  export declare function cleanBasicModelWithOneOfSchema(model: BasicModel, schema: OneOfSchema): BasicModel | null;
3
3
  export declare function cleanArrayModelWithOneOfSchema(model: ArrayModel, schema: OneOfSchema): ArrayModel | null;
4
4
  export declare function cleanModelWithStringSchema(model: Model): string | null;
@@ -1,4 +1,4 @@
1
- import { BasicModel, Model, ObjectModel, Schema } from '@wise/dynamic-flow-types';
1
+ import type { BasicModel, Model, ObjectModel, Schema } from '@wise/dynamic-flow-types';
2
2
  export declare const getValidModelParts: (model: Model, schema: Schema) => Model;
3
3
  export declare function getValidBasicModelOrNull(model: BasicModel | null, schema: Schema): BasicModel | null;
4
4
  export declare function getValidObjectModelParts(model: ObjectModel | null, schema: Schema): ObjectModel | null;
@@ -1,4 +1,4 @@
1
- import { Model, Schema } from '@wise/dynamic-flow-types';
1
+ import type { Model, Schema } from '@wise/dynamic-flow-types';
2
2
  /**
3
3
  * Validate any value against a given schema
4
4
  *
@@ -1,4 +1,4 @@
1
- import { BlobSchema, NumberSchema, IntegerSchema, Model, Schema, AllOfSchema, OneOfSchema, StringSchema } from '@wise/dynamic-flow-types';
1
+ import type { BlobSchema, NumberSchema, IntegerSchema, Model, Schema, AllOfSchema, OneOfSchema, StringSchema } from '@wise/dynamic-flow-types';
2
2
  declare function getValidationFailures(value: Model, schema: Schema, isRequired: boolean): string[];
3
3
  declare function getStringValidationFailures(value: Model, schema: StringSchema, isRequired?: boolean): string[];
4
4
  declare function getNumberValidationFailures(value: Model, schema: AllOfSchema | OneOfSchema | NumberSchema | IntegerSchema, isRequired?: boolean): string[];
@@ -0,0 +1,57 @@
1
+ import type { Size, Step } from '@wise/dynamic-flow-types';
2
+ export type DynamicFlowProps = DynamicFlowPropsWithInitialAction | DynamicFlowPropsWithInitialStep;
3
+ export type DynamicFlowPropsWithInitialAction = DynamicFlowPropsBasic & {
4
+ initialAction: InitialAction;
5
+ initialStep?: never;
6
+ };
7
+ export type DynamicFlowPropsWithInitialStep = DynamicFlowPropsBasic & {
8
+ initialAction?: never;
9
+ initialStep: Step;
10
+ };
11
+ export type HttpClient = typeof fetch;
12
+ export type EventHandler = (eventName: EventName, properties: Record<string, unknown>) => void;
13
+ export type EventName = 'Dynamic Flow - Flow Started' | 'Dynamic Flow - Flow Finished' | 'Dynamic Flow - Step Started' | 'Dynamic Flow - Step Submitted' | 'Dynamic Flow - Step Refreshed' | 'Dynamic Flow - OneOf Selected' | 'Dynamic Flow - PersistAsync' | 'Dynamic Flow - ValidationAsync' | 'Dynamic Flow - Camera Permission Denied' | 'Dynamic Flow - Camera Feed Started' | 'Dynamic Flow - Camera Not Supported' | 'Dynamic Flow - Camera Not Accessible' | 'Dynamic Flow - Camera Orientation Locked' | 'Dynamic Flow - Camera Orientation Lock Overlay Shown' | 'Dynamic Flow - Search Started' | 'Dynamic Flow - Search Result Selected' | 'Dynamic Flow - invalid submission response' | 'Dynamic Flow - onAction supressed' | 'Dynamic Flow - OneOf Searched';
14
+ export type LogLevel = 'debug' | 'info' | 'warning' | 'error' | 'critical';
15
+ export type LogEventHandler = (level: LogLevel, message: string, extra: Record<string, unknown>) => void;
16
+ export type Feature = {
17
+ featureName: string;
18
+ /**
19
+ * The variant of the feature active for the user/profile.
20
+ * 0 is usually the control, and > 0 are variants.
21
+ */
22
+ variant: number | null;
23
+ /**
24
+ * If the feature is enabled for the user/profile.
25
+ * This is the same as checking if `variant > 0`.
26
+ */
27
+ enabled: boolean;
28
+ initiation: 'MISSING' | 'SKIPPED' | 'DEFAULT' | 'INITIATED';
29
+ };
30
+ export type InitialAction = {
31
+ $id?: string;
32
+ url: string;
33
+ method?: 'GET';
34
+ data?: never;
35
+ } | {
36
+ $id?: string;
37
+ url: string;
38
+ method: 'POST';
39
+ data: Record<string, unknown>;
40
+ };
41
+ export type LoaderConfig = {
42
+ size?: Size;
43
+ initial?: boolean;
44
+ submission?: boolean;
45
+ };
46
+ type DynamicFlowPropsBasic = {
47
+ flowId: string;
48
+ loaderConfig?: LoaderConfig;
49
+ displayStepTitle?: boolean;
50
+ features?: Feature[];
51
+ httpClient: HttpClient;
52
+ onCompletion: (result: Record<string, unknown> | undefined | null) => void;
53
+ onError: (error: unknown, status?: number) => void;
54
+ onEvent?: EventHandler;
55
+ onLog?: LogEventHandler;
56
+ };
57
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Action } from '@wise/dynamic-flow-types';
2
+ import type { OnAction } from './DynamicFlowTypes';
3
+ type BackButtonProps = {
4
+ title?: string;
5
+ action: Action;
6
+ onAction: OnAction;
7
+ };
8
+ declare function BackButton({ title, action, onAction }: BackButtonProps): JSX.Element;
9
+ export default BackButton;
@@ -0,0 +1,3 @@
1
+ import type { DynamicFlowProps } from '../dynamic-flow-types';
2
+ declare function DynamicFlow(props: DynamicFlowProps): JSX.Element;
3
+ export default DynamicFlow;
@@ -0,0 +1,8 @@
1
+ import type { GlobalError, Step } from '@wise/dynamic-flow-types';
2
+ import type { LayoutStepProps } from '../step/layoutStep/LayoutStep';
3
+ type DynamicFlowStepProps = Omit<LayoutStepProps, 'stepSpecification'> & {
4
+ step: Step | undefined;
5
+ globalError: GlobalError;
6
+ };
7
+ export declare function DynamicFlowStep(props: DynamicFlowStepProps): JSX.Element | null;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { Action, Schema } from '@wise/dynamic-flow-types';
2
+ import type { OnChangeProps } from '../jsonSchemaForm/JsonSchemaForm';
3
+ export type OnModelChangeProps = OnChangeProps & {
4
+ formSchema: Schema;
5
+ };
6
+ export type OnModelChange = (props: OnModelChangeProps) => void;
7
+ export type OnAction = (action: Action) => void;
8
+ export type OnPersistAsync = (promise: Promise<unknown>) => void;
@@ -1,3 +1,3 @@
1
- import { HttpClient } from '../DynamicFlowTypes';
1
+ import type { HttpClient } from '../../dynamic-flow-types';
2
2
  export declare const getObjectKeys: <T>(object: T) => (keyof T)[];
3
3
  export declare const fixtureHttpClient: HttpClient;
@@ -1,5 +1,5 @@
1
1
  export * from './useDebouncedRefresh/useDebouncedRefresh';
2
2
  export * from './useDynamicFlowState';
3
3
  export * from './useLoader';
4
- export { default as ErrorBoundary } from './errorBoundary/ErrorBoundary';
4
+ export { default as ErrorBoundary } from '../../../common/errorBoundary/ErrorBoundary';
5
5
  export * from './responseParsers/response-parsers';
@@ -1,5 +1,5 @@
1
- import { ActionResponseBody, ErrorResponseBody, Step } from '@wise/dynamic-flow-types';
2
- import { DynamicFlowProps } from '../../DynamicFlowTypes';
1
+ import type { ActionResponseBody, ErrorResponseBody, Step } from '@wise/dynamic-flow-types';
2
+ import type { DynamicFlowProps } from '../../../dynamic-flow-types';
3
3
  type ParsedBody = {
4
4
  type: 'exit';
5
5
  result: Parameters<DynamicFlowProps['onCompletion']>[0];
@@ -0,0 +1,5 @@
1
+ import type { Schema } from '@wise/dynamic-flow-types';
2
+ type FetchRefresh = (url: string, data: unknown, etag: string | undefined) => Promise<void | null>;
3
+ export declare function useDebouncedRefresh(fetchRefresh: FetchRefresh): (url: string, data: unknown, etag: string | undefined, schema: Schema) => void;
4
+ export declare const shouldDebounceSchema: (schema: Schema) => boolean;
5
+ export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FormErrors, GlobalError, ObjectModel, Step } from '@wise/dynamic-flow-types';
2
+ import type { FormErrors, GlobalError, ObjectModel, Step } from '@wise/dynamic-flow-types';
3
3
  type ModelsMap = {
4
4
  [key: string]: ObjectModel;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { DynamicFlowProps } from '../DynamicFlowTypes';
2
+ import type { DynamicFlowProps } from '../../dynamic-flow-types';
3
3
  type LoadingState = 'idle' | 'initial' | 'refresh' | 'submission';
4
4
  export declare function useLoader(loaderConfig: DynamicFlowProps['loaderConfig'], initialState: LoadingState): {
5
5
  isLoading: boolean;
@@ -1,18 +1,21 @@
1
- import { RadioGroupRadios } from '@transferwise/components/build/types/radioGroup/RadioGroup';
2
- import { UploadProps } from '@transferwise/components/build/types/upload/Upload';
3
- import { ReactNode } from 'react';
4
- import { PureComponent } from 'react';
1
+ import type { RadioGroupRadios } from '@transferwise/components/build/types/radioGroup/RadioGroup';
2
+ import type { UploadProps } from '@transferwise/components/build/types/upload/Upload';
3
+ import type { AutocompleteToken } from '@wise/dynamic-flow-types';
4
+ import { type ReactNode, PureComponent } from 'react';
5
5
  import { FormControlType } from '../common/constants';
6
+ import type { OnChangeProps } from '../jsonSchemaForm/JsonSchemaForm';
6
7
  export default class FormControl extends PureComponent<FormControlProps, FormControlState> {
7
8
  static Type: {
8
9
  RADIO: string;
9
10
  CHECKBOX: string;
10
11
  SELECT: string;
12
+ EMAIL: string;
11
13
  FILE: string;
12
14
  DATE: string;
13
15
  DATETIME: string;
14
16
  DATELOOKUP: string;
15
17
  TEL: string;
18
+ NUMERIC: string;
16
19
  NUMBER: string;
17
20
  HIDDEN: string;
18
21
  PASSWORD: string;
@@ -41,13 +44,8 @@ export default class FormControl extends PureComponent<FormControlProps, FormCon
41
44
  prevValue: string | number | boolean | Date | null;
42
45
  value: string | number | boolean | Date | null;
43
46
  } | null;
44
- /**
45
- * autocomplete hides our form help so we need to disable it when help text
46
- * is present. Chrome ignores autocomplete=off, the only way to disable it is
47
- * to provide an 'invalid' value, for which 'disabled' serves.
48
- */
49
- getAutocompleteStatus: () => "on" | "disabled";
50
- handleOnChange: (value: string | number | boolean | null) => void;
47
+ getAutocompleteValue: () => string;
48
+ handleOnChange: (value: string | number | boolean | null, metadata?: OnChangeProps['metadata']) => void;
51
49
  handleInputOnChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
52
50
  handleOnFocus: () => void;
53
51
  handleOnBlur: () => void;
@@ -103,8 +101,10 @@ type FormControlSelectedOption = {
103
101
  };
104
102
  type FormControlProps = {
105
103
  name: string;
106
- onChange: (value: string | number | boolean | null, type?: 'init' | 'user') => void;
104
+ onChange: (value: string | number | boolean | null, type?: 'init' | 'user', metadata?: OnChangeProps['metadata']) => void;
105
+ /** @deprecated - Use autocompleteHint instead */
107
106
  autoComplete?: boolean;
107
+ autocompleteHint?: AutocompleteToken[];
108
108
  countryCode?: string;
109
109
  disabled?: boolean;
110
110
  displayPattern?: string;
@@ -121,7 +121,7 @@ type FormControlProps = {
121
121
  onBlur?: () => void;
122
122
  onFocus?: () => void;
123
123
  onSearchChange?: (searchValue: string) => void;
124
- options: Array<FormControlOption>;
124
+ options: FormControlOption[];
125
125
  placeholder?: string;
126
126
  readOnly?: boolean;
127
127
  required?: boolean;
@@ -137,7 +137,7 @@ type FormControlProps = {
137
137
  };
138
138
  type FormControlState = {
139
139
  prevValue: FormControlProps['value'];
140
- selectedOption: FormControlSelectedOption | undefined;
140
+ selectedOption: FormControlSelectedOption | null | undefined;
141
141
  touched: boolean;
142
142
  };
143
143
  export {};
@@ -0,0 +1,2 @@
1
+ import type { AutocompleteToken } from '@wise/dynamic-flow-types';
2
+ export declare const getAutocompleteString: (hints: AutocompleteToken[]) => string;
@@ -0,0 +1,2 @@
1
+ export * from './value-utils';
2
+ export { getAutocompleteString } from './getAutocompleteString';
@@ -1,7 +1,7 @@
1
- import { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
2
- import { EventHandler, LogEventHandler } from '../common/contexts';
3
- import { OnPersistAsync } from '../dynamicFlow/DynamicFlowTypes';
4
- declare const JsonSchemaForm: (props: JsonSchemaFormProps) => JSX.Element;
1
+ import type { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
2
+ import type { EventHandler, LogEventHandler } from '../dynamic-flow-types';
3
+ import type { OnPersistAsync } from '../dynamicFlow/DynamicFlowTypes';
4
+ declare function JsonSchemaForm(props: JsonSchemaFormProps): JSX.Element;
5
5
  export type OnChange = (parameters: OnChangeProps) => void;
6
6
  export type OnChangeProps = {
7
7
  model: Model;
@@ -9,6 +9,7 @@ export type OnChangeProps = {
9
9
  triggerModel: Model;
10
10
  lastTriggerModel?: Model;
11
11
  type?: 'init' | 'user';
12
+ metadata?: Record<string, unknown> | undefined;
12
13
  };
13
14
  export type JsonSchemaFormProps = {
14
15
  /**
@@ -0,0 +1,13 @@
1
+ import type { AllOfSchema as AllOfSchemaType, ObjectModel } from '@wise/dynamic-flow-types';
2
+ import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
3
+ declare function AllOfSchema(props: AllOfSchemaProps): JSX.Element;
4
+ declare namespace AllOfSchema {
5
+ var defaultProps: {
6
+ disabled: boolean;
7
+ };
8
+ }
9
+ export type AllOfSchemaProps = Omit<GenericSchemaProps, 'schema' | 'model'> & {
10
+ schema: AllOfSchemaType;
11
+ model: ObjectModel;
12
+ };
13
+ export default AllOfSchema;
@@ -0,0 +1,16 @@
1
+ import type { ArrayModel, MultipleFileUploadSchema as MultipleFileUploadSchemaType } from '@wise/dynamic-flow-types';
2
+ import type { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
3
+ declare function MultipleFileUploadSchema(props: Props): JSX.Element;
4
+ declare namespace MultipleFileUploadSchema {
5
+ var defaultProps: {
6
+ errors: null;
7
+ required: boolean;
8
+ };
9
+ }
10
+ type Props = Omit<GenericSchemaProps, 'model'> & {
11
+ schema: MultipleFileUploadSchemaType;
12
+ model: ArrayModel | null;
13
+ required?: boolean;
14
+ errors?: string | null;
15
+ };
16
+ export default MultipleFileUploadSchema;
@@ -1,4 +1,4 @@
1
- import { UploadError, UploadResponse } from '@transferwise/components';
1
+ import type { UploadError, UploadResponse } from '@transferwise/components';
2
2
  export declare function createPayload(userUploadedFile: Blob | string | null, isBlobSchema: boolean): Promise<string | Blob | null>;
3
3
  export declare function constructUploadResponse(response: {
4
4
  data: string | number;
@@ -1,4 +1,4 @@
1
- import { Icon, Image, Model } from '@wise/dynamic-flow-types';
1
+ import type { Icon, Image, Model } from '@wise/dynamic-flow-types';
2
2
  export type ItemSummary = {
3
3
  value: Model | null;
4
4
  title?: string;
@@ -6,7 +6,7 @@ export type ItemSummary = {
6
6
  icon?: Icon;
7
7
  image?: Image;
8
8
  };
9
- export declare const ItemSummaryOption: ({ item, onClick, }: {
9
+ export declare function ItemSummaryOption({ item, onClick }: {
10
10
  item: ItemSummary;
11
11
  onClick: () => void;
12
- }) => JSX.Element;
12
+ }): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { ArrayModel, ListArraySchema } from '@wise/dynamic-flow-types';
2
+ import type { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
3
+ type RepeatableSchemaProps = Omit<GenericSchemaProps, 'model' | 'onPersistAsync'> & {
4
+ schema: ListArraySchema;
5
+ model: ArrayModel | null;
6
+ };
7
+ declare function RepeatableSchema({ schema, model, errors, submitted, onChange }: RepeatableSchemaProps): JSX.Element;
8
+ export default RepeatableSchema;