@wise/dynamic-flow-client 3.5.0-experimental-63c768d → 3.5.1-experimental-ccbce45

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 (345) hide show
  1. package/build/common/errorBoundary/ErrorBoundaryAlert.js +1 -1
  2. package/build/common/httpClientContext/HttpClientContext.js +2 -13
  3. package/build/common/makeHttpClient/makeHttpClient.spec.js +10 -10
  4. package/build/common/messages/external-confirmation.messages.js +5 -5
  5. package/build/common/messages/generic-error.messages.js +4 -4
  6. package/build/common/messages/help.messages.js +2 -2
  7. package/build/common/messages/multi-file-upload.messages.js +4 -4
  8. package/build/common/messages/multi-select.messages.js +2 -2
  9. package/build/common/messages/paragraph.messages.js +3 -3
  10. package/build/common/messages/repeatable.messages.js +5 -5
  11. package/build/common/messages/validation.array.messages.js +3 -3
  12. package/build/common/messages/validation.messages.js +11 -11
  13. package/build/i18n/index.js +1 -1
  14. package/build/legacy/common/constants/DateMode.js +1 -1
  15. package/build/legacy/common/constants/FormControlType.js +1 -1
  16. package/build/legacy/common/constants/MonthFormat.js +1 -1
  17. package/build/legacy/common/constants/Size.js +1 -1
  18. package/build/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +3 -14
  19. package/build/legacy/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +3 -1
  20. package/build/legacy/common/contexts/eventsContext/EventsContext.js +2 -2
  21. package/build/legacy/common/contexts/eventsContext/EventsContext.spec.js +1 -12
  22. package/build/legacy/common/contexts/featureContext/FeatureContext.js +1 -12
  23. package/build/legacy/common/contexts/featureContext/FeatureContext.spec.js +4 -15
  24. package/build/legacy/common/contexts/logContext/LogContext.js +2 -2
  25. package/build/legacy/common/contexts/logContext/LogContext.spec.js +1 -12
  26. package/build/legacy/common/hooks/useExternal/useExternal.spec.js +6 -6
  27. package/build/legacy/common/hooks/useExternalStepPolling/useExternalStepPolling.js +3 -2
  28. package/build/legacy/common/hooks/usePersistAsync/usePersistAsync.js +1 -1
  29. package/build/legacy/common/hooks/usePolling/usePolling.js +4 -2
  30. package/build/legacy/common/hooks/useStepPolling/useStepPolling.js +5 -3
  31. package/build/legacy/common/hooks/useStepPolling/useStepPolling.spec.js +4 -4
  32. package/build/legacy/common/messages.js +2 -2
  33. package/build/legacy/common/utils/file-utils.spec.js +4 -4
  34. package/build/legacy/common/utils/mobile-utils.spec.js +1 -1
  35. package/build/legacy/common/utils/schema-utils.js +2 -2
  36. package/build/legacy/common/validators/models/model-utils.spec.js +7 -7
  37. package/build/legacy/common/validators/models/model-validators.js +2 -2
  38. package/build/legacy/common/validators/models/model-validators.spec.js +54 -54
  39. package/build/legacy/common/validators/schemas/schema-validators.js +1 -1
  40. package/build/legacy/common/validators/schemas/schema-validators.spec.js +20 -20
  41. package/build/legacy/common/validators/validationFailures/validation-failures.js +2 -2
  42. package/build/legacy/common/validators/validationFailures/validation-failures.spec.js +11 -11
  43. package/build/legacy/dynamicFlow/BackButton.js +2 -2
  44. package/build/legacy/dynamicFlow/DynamicFlow.js +5 -5
  45. package/build/legacy/dynamicFlow/stories/dev-tools/DynamicFlow.story.js +7 -7
  46. package/build/legacy/dynamicFlow/stories/dev-tools/ErrorResponses.story.js +18 -18
  47. package/build/legacy/dynamicFlow/stories/dev-tools/Examples.story.js +1 -1
  48. package/build/legacy/dynamicFlow/stories/dev-tools/Features.story.js +1 -1
  49. package/build/legacy/dynamicFlow/stories/dev-tools/JsonSchemaForm.story.js +5 -5
  50. package/build/legacy/dynamicFlow/stories/dev-tools/RefreshOnChange.story.js +24 -24
  51. package/build/legacy/dynamicFlow/stories/dev-tools/SearchFeature.story.js +10 -21
  52. package/build/legacy/dynamicFlow/stories/dev-tools/ServerTest.story.js +4 -4
  53. package/build/legacy/dynamicFlow/stories/dev-tools/Upload.story.js +19 -19
  54. package/build/legacy/dynamicFlow/stories/dev-tools/ValidationAsync.story.js +18 -18
  55. package/build/legacy/dynamicFlow/stories/examples/ObjectConst.story.js +25 -25
  56. package/build/legacy/dynamicFlow/tests/Actions.spec.js +6 -6
  57. package/build/legacy/dynamicFlow/tests/AllOfSchema.spec.js +17 -17
  58. package/build/legacy/dynamicFlow/tests/AutocompleteHints.spec.js +6 -6
  59. package/build/legacy/dynamicFlow/tests/DynamicFlow.BackButton.spec.js +11 -11
  60. package/build/legacy/dynamicFlow/tests/DynamicFlow.search.spec.js +13 -13
  61. package/build/legacy/dynamicFlow/tests/DynamicFlow.spec.js +48 -48
  62. package/build/legacy/dynamicFlow/tests/DynamicImage.spec.js +4 -4
  63. package/build/legacy/dynamicFlow/tests/DynamicInstructions.spec.js +3 -3
  64. package/build/legacy/dynamicFlow/tests/HiddenSchemas.spec.js +24 -24
  65. package/build/legacy/dynamicFlow/tests/ModalLayout.spec.js +20 -20
  66. package/build/legacy/dynamicFlow/tests/MultiSelect.spec.js +21 -21
  67. package/build/legacy/dynamicFlow/tests/MultipleFileUploadSchema.spec.js +24 -24
  68. package/build/legacy/dynamicFlow/tests/ObjectSchema.spec.js +16 -16
  69. package/build/legacy/dynamicFlow/tests/OneOfSchema.spec.js +77 -77
  70. package/build/legacy/dynamicFlow/tests/PersistAsync.blob-schema.spec.js +19 -19
  71. package/build/legacy/dynamicFlow/tests/PersistAsync.string-schema.spec.js +10 -10
  72. package/build/legacy/dynamicFlow/tests/RefreshStepOnChange.debouncing.spec.js +19 -19
  73. package/build/legacy/dynamicFlow/tests/RefreshStepOnChange.spec.js +46 -46
  74. package/build/legacy/dynamicFlow/tests/RepeatableSchema.spec.js +62 -62
  75. package/build/legacy/dynamicFlow/tests/StepModel.spec.js +6 -6
  76. package/build/legacy/dynamicFlow/tests/ValidationAsync.spec.js +13 -13
  77. package/build/legacy/dynamicFlow/utils/responseParsers/response-parsers.spec.js +13 -13
  78. package/build/legacy/dynamicFlow/utils/useDynamicFlowState.js +4 -4
  79. package/build/legacy/formControl/FormControl.js +9 -9
  80. package/build/legacy/formControl/Select.spec.js +3 -3
  81. package/build/legacy/formControl/utils/getAutocompleteString.js +1 -1
  82. package/build/legacy/formControl/utils/value-utils.js +1 -1
  83. package/build/legacy/jsonSchemaForm/JsonSchemaForm.end-to-end.spec.js +66 -66
  84. package/build/legacy/jsonSchemaForm/JsonSchemaForm.js +1 -1
  85. package/build/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.js +5 -5
  86. package/build/legacy/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +1 -1
  87. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +1 -1
  88. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.js +6 -17
  89. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +3 -3
  90. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +1 -1
  91. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.js +7 -7
  92. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.js +6 -6
  93. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.js +7 -7
  94. package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.spec.js +190 -190
  95. package/build/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +8 -19
  96. package/build/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.js +14 -14
  97. package/build/legacy/jsonSchemaForm/genericSchema/GenericSchema.rtl.spec.js +2 -2
  98. package/build/legacy/jsonSchemaForm/help/Help.js +1 -12
  99. package/build/legacy/jsonSchemaForm/objectSchema/ObjectSchema.js +4 -4
  100. package/build/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.js +12 -12
  101. package/build/legacy/jsonSchemaForm/oneOfSchema/utils.js +6 -6
  102. package/build/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +1 -1
  103. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +2 -2
  104. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +4 -4
  105. package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +2 -2
  106. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +2 -2
  107. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +1 -12
  108. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +1 -1
  109. package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +3 -3
  110. package/build/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +1 -1
  111. package/build/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +3 -3
  112. package/build/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +6 -6
  113. package/build/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.spec.js +12 -12
  114. package/build/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +10 -10
  115. package/build/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.spec.js +23 -23
  116. package/build/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +2 -2
  117. package/build/legacy/layout/DynamicLayout.js +1 -1
  118. package/build/legacy/layout/box/DynamicBox.js +2 -13
  119. package/build/legacy/layout/button/DynamicButton.js +1 -12
  120. package/build/legacy/layout/button/DynamicButton.spec.js +13 -24
  121. package/build/legacy/layout/button/utils.js +3 -3
  122. package/build/legacy/layout/button/utils.spec.js +6 -6
  123. package/build/legacy/layout/columns/DynamicColumns.js +4 -15
  124. package/build/legacy/layout/decision/DynamicDecision.js +1 -12
  125. package/build/legacy/layout/external/DynamicExternal.js +1 -1
  126. package/build/legacy/layout/external/DynamicExternal.messages.js +2 -2
  127. package/build/legacy/layout/form/DynamicForm.js +2 -2
  128. package/build/legacy/layout/heading/DynamicHeading.js +8 -19
  129. package/build/legacy/layout/image/DynamicImage.js +5 -4
  130. package/build/legacy/layout/instructions/DynamicInstructions.js +1 -12
  131. package/build/legacy/layout/list/DynamicStatusList.js +3 -3
  132. package/build/legacy/layout/list/DynamicStatusList.spec.js +9 -9
  133. package/build/legacy/layout/loadingIndicator/DynamicLoadingIndicator.js +1 -1
  134. package/build/legacy/layout/markdown/DynamicMarkdown.js +2 -13
  135. package/build/legacy/layout/markdown/DynamicMarkdown.spec.js +4 -4
  136. package/build/legacy/layout/modal/DynamicModal.js +2 -2
  137. package/build/legacy/layout/paragraph/DynamicParagraph.js +5 -16
  138. package/build/legacy/layout/review/DynamicReview.js +3 -14
  139. package/build/legacy/layout/review/DynamicReview.spec.js +6 -6
  140. package/build/legacy/layout/search/DynamicSearch.js +2 -13
  141. package/build/legacy/layout/search/SearchInput.js +1 -12
  142. package/build/legacy/layout/search/SearchResults.js +3 -14
  143. package/build/legacy/layout/search/useSearch.js +4 -4
  144. package/build/legacy/layout/utils/getNavigationOptionMedia.js +2 -13
  145. package/build/legacy/step/cameraStep/CameraStep.js +1 -1
  146. package/build/legacy/step/cameraStep/cameraCapture/CameraCapture.js +6 -6
  147. package/build/legacy/step/cameraStep/cameraCapture/CameraCapture.messages.js +12 -12
  148. package/build/legacy/step/cameraStep/cameraCapture/CameraCapture.spec.js +13 -13
  149. package/build/legacy/step/cameraStep/cameraCapture/components/bottomBar/BottomBar.js +3 -14
  150. package/build/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.js +1 -12
  151. package/build/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.js +2 -2
  152. package/build/legacy/step/cameraStep/cameraCapture/hooks/useFullScreenOrientationLock.js +6 -4
  153. package/build/legacy/step/cameraStep/cameraCapture/hooks/useVideoConstraints.js +1 -1
  154. package/build/legacy/step/cameraStep/cameraCapture/overlay/Overlay.js +6 -6
  155. package/build/legacy/step/cameraStep/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.js +1 -12
  156. package/build/legacy/step/cameraStep/cameraCapture/tracking/index.js +1 -1
  157. package/build/legacy/step/externalConfirmationStep/ExternalConfirmationStep.js +7 -7
  158. package/build/legacy/step/layoutStep/LayoutStep.js +1 -1
  159. package/build/legacy/step/layoutStep/utils/inline-reference-utils.js +3 -3
  160. package/build/legacy/step/layoutStep/utils/layout-utils.js +12 -12
  161. package/build/legacy/test-utils/DynamicFlowProviders.js +1 -12
  162. package/build/legacy/test-utils/legacy-utils.js +4 -4
  163. package/build/legacy/test-utils/log-utils.js +1 -1
  164. package/build/revamp/DynamicFlowCore.js +5 -5
  165. package/build/revamp/DynamicFlowWise.js +1 -1
  166. package/build/revamp/DynamicFlowWise.spec.js +11 -11
  167. package/build/revamp/domain/components/AllOfComponent.js +1 -1
  168. package/build/revamp/domain/components/BooleanInputComponent.js +2 -2
  169. package/build/revamp/domain/components/ConstComponent.js +1 -1
  170. package/build/revamp/domain/components/DateInputComponent.js +2 -2
  171. package/build/revamp/domain/components/IntegerInputComponent.js +2 -2
  172. package/build/revamp/domain/components/NumberInputComponent.js +2 -2
  173. package/build/revamp/domain/components/ObjectComponent.js +1 -1
  174. package/build/revamp/domain/components/SelectInputComponent.js +2 -2
  175. package/build/revamp/domain/components/StepDomainComponent.js +1 -1
  176. package/build/revamp/domain/components/TextInputComponent.js +2 -2
  177. package/build/revamp/domain/components/UploadInputComponent.js +1 -1
  178. package/build/revamp/domain/components/repeatableComponent/RepeatableComponent.js +1 -1
  179. package/build/revamp/domain/components/repeatableComponent/RepeatableComponent.spec.js +1 -1
  180. package/build/revamp/domain/components/searchComponent/SearchComponent.js +4 -3
  181. package/build/revamp/domain/components/searchComponent/SearchComponent.spec.js +13 -13
  182. package/build/revamp/domain/components/utils/isPartialLocalValueMatch.spec.js +7 -7
  183. package/build/revamp/domain/features/persistAsync/getComponentPersistAsync.js +4 -4
  184. package/build/revamp/domain/features/persistAsync/getComponentPersistAsync.spec.js +1 -1
  185. package/build/revamp/domain/features/persistAsync/getInitialPersistedState.js +1 -1
  186. package/build/revamp/domain/features/persistAsync/getPerformPersistAsync.spec.js +17 -17
  187. package/build/revamp/domain/features/search/getPerformSearchFunction.js +3 -3
  188. package/build/revamp/domain/features/search/getPerformSearchFunction.spec.js +18 -18
  189. package/build/revamp/domain/features/summary/summary-utils.js +2 -2
  190. package/build/revamp/domain/features/summary/summary-utils.spec.js +27 -27
  191. package/build/revamp/domain/features/utils/http-utils.js +1 -1
  192. package/build/revamp/domain/features/validation/spec-utils.js +1 -1
  193. package/build/revamp/domain/features/validation/validation-functions.spec.js +4 -4
  194. package/build/revamp/domain/features/validation/value-checks.spec.js +4 -4
  195. package/build/revamp/domain/features/validationAsync/getComponentValidationAsync.js +4 -3
  196. package/build/revamp/domain/features/validationAsync/getComponentValidationAsync.spec.js +1 -1
  197. package/build/revamp/domain/features/validationAsync/getInitialValidationState.js +1 -1
  198. package/build/revamp/domain/features/validationAsync/getPerformValidationAsync.js +1 -1
  199. package/build/revamp/domain/features/validationAsync/getPerformValidationAsync.spec.js +17 -17
  200. package/build/revamp/domain/mappers/layout/alertLayoutToComponent.js +1 -1
  201. package/build/revamp/domain/mappers/layout/boxLayoutToComponents.js +1 -1
  202. package/build/revamp/domain/mappers/layout/buttonLayoutToComponent.js +1 -1
  203. package/build/revamp/domain/mappers/layout/columnsLayoutToComponent.js +1 -1
  204. package/build/revamp/domain/mappers/layout/decisionLayoutToComponent.js +1 -1
  205. package/build/revamp/domain/mappers/layout/formLayoutToComponent.js +2 -2
  206. package/build/revamp/domain/mappers/layout/headingLayoutToComponent.js +1 -1
  207. package/build/revamp/domain/mappers/layout/imageLayoutToComponent.js +1 -1
  208. package/build/revamp/domain/mappers/layout/infoLayoutToComponent.js +1 -1
  209. package/build/revamp/domain/mappers/layout/instructionsLayoutToComponent.js +2 -2
  210. package/build/revamp/domain/mappers/layout/listLayoutToComponent.js +2 -2
  211. package/build/revamp/domain/mappers/layout/markdownLayoutToComponent.js +1 -1
  212. package/build/revamp/domain/mappers/layout/modalLayoutToComponent.js +2 -2
  213. package/build/revamp/domain/mappers/layout/paragraphLayoutToComponent.js +1 -1
  214. package/build/revamp/domain/mappers/layout/reviewLayoutToComponent.js +3 -3
  215. package/build/revamp/domain/mappers/layout/searchLayoutToComponent.js +1 -1
  216. package/build/revamp/domain/mappers/layout/statusListLayoutToComponent.js +1 -1
  217. package/build/revamp/domain/mappers/mapSchemaToComponent.js +1 -1
  218. package/build/revamp/domain/mappers/mapSchemaToComponent.spec.js +22 -22
  219. package/build/revamp/domain/mappers/mapStepToComponent.js +3 -3
  220. package/build/revamp/domain/mappers/mapStepToComponent.spec.js +12 -12
  221. package/build/revamp/domain/mappers/schema/allOfSchemaToComponent.js +1 -1
  222. package/build/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.js +2 -2
  223. package/build/revamp/domain/mappers/schema/booleanSchemaToComponent.js +1 -1
  224. package/build/revamp/domain/mappers/schema/constSchemaToComponent.js +2 -2
  225. package/build/revamp/domain/mappers/schema/integerSchemaToComponent.js +1 -1
  226. package/build/revamp/domain/mappers/schema/numberSchemaToComponent.js +1 -1
  227. package/build/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.js +1 -1
  228. package/build/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.spec.js +21 -21
  229. package/build/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.js +4 -4
  230. package/build/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.spec.js +48 -48
  231. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.spec.js +21 -21
  232. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToDateInputComponent.js +1 -1
  233. package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToTextInputComponent.js +1 -1
  234. package/build/revamp/domain/mappers/schema/utils/getPersistAsyncInitialState.js +1 -1
  235. package/build/revamp/domain/mappers/schema/utils/getValidationAsyncInitialState.js +1 -1
  236. package/build/revamp/domain/mappers/utils/getAutocompleteString.js +1 -1
  237. package/build/revamp/domain/mappers/utils/legacy-utils.js +2 -2
  238. package/build/revamp/flow/executeRefresh.js +2 -2
  239. package/build/revamp/flow/executeSubmission.js +1 -1
  240. package/build/revamp/renderers/CoreContainerRenderer.js +1 -1
  241. package/build/revamp/renderers/getRenderFunction.js +3 -3
  242. package/build/revamp/renderers/getSchemaErrorMessageFunction.js +12 -12
  243. package/build/revamp/renderers/mappers/allOfComponentToProps.js +1 -1
  244. package/build/revamp/renderers/mappers/buttonComponentToProps.js +1 -1
  245. package/build/revamp/renderers/mappers/containerComponentToProps.js +1 -1
  246. package/build/revamp/renderers/mappers/headingComponentToProps.js +1 -1
  247. package/build/revamp/renderers/mappers/hiddenComponentToProps.js +1 -1
  248. package/build/revamp/renderers/mappers/imageComponentToProps.js +1 -1
  249. package/build/revamp/renderers/mappers/instructionsComponentToProps.js +1 -1
  250. package/build/revamp/renderers/mappers/loadingIndicatorComponentToProps.js +1 -1
  251. package/build/revamp/renderers/mappers/markdownComponentToProps.js +1 -1
  252. package/build/revamp/renderers/mappers/modalComponentToProps.js +1 -1
  253. package/build/revamp/renderers/mappers/multiUploadInputComponentToProps.js +1 -1
  254. package/build/revamp/renderers/mappers/objectComponentToProps.js +1 -1
  255. package/build/revamp/renderers/mappers/paragraphComponentToProps.js +1 -1
  256. package/build/revamp/renderers/mappers/repeatableComponentToProps.js +2 -2
  257. package/build/revamp/renderers/mappers/reviewComponentToProps.js +1 -1
  258. package/build/revamp/renderers/mappers/searchComponentToProps.js +2 -2
  259. package/build/revamp/renderers/mappers/statusListComponentToProps.js +1 -1
  260. package/build/revamp/renderers/mappers/utils/inputComponentToProps.js +1 -1
  261. package/build/revamp/renderers/step/ExternalConfirmationDialog.js +2 -13
  262. package/build/revamp/renderers/step/StepRenderer.js +2 -13
  263. package/build/revamp/renderers/stepComponentToProps.js +1 -1
  264. package/build/revamp/stories/dev-tools/DynamicFlowRevamp.story.js +53 -53
  265. package/build/revamp/stories/dev-tools/EditableStep.story.js +7 -7
  266. package/build/revamp/stories/dev-tools/ErrorHandling.story.js +17 -17
  267. package/build/revamp/stories/dev-tools/External.story.js +6 -6
  268. package/build/revamp/stories/dev-tools/OneOf.Inititalisation.story.js +14 -14
  269. package/build/revamp/stories/dev-tools/PersistAsync.story.js +16 -16
  270. package/build/revamp/stories/dev-tools/RefreshOnChange.story.js +41 -41
  271. package/build/revamp/stories/dev-tools/RefreshOnChange.with.PersistAsync.story.js +210 -210
  272. package/build/revamp/stories/dev-tools/ServerTest.story.js +4 -4
  273. package/build/revamp/stories/dev-tools/Upload.story.js +18 -18
  274. package/build/revamp/stories/dev-tools/ValidationAsync.story.js +18 -18
  275. package/build/revamp/stories/examples/ObjectConst.story.js +25 -25
  276. package/build/revamp/stories/examples/OneOfInitialisation.story.js +10 -10
  277. package/build/revamp/stories/utils/fixtureHttpClient.js +1 -1
  278. package/build/revamp/stories/utils/mockSearchHandler.js +8 -8
  279. package/build/revamp/stories/visual-tests/VisualTests.story.js +1 -1
  280. package/build/revamp/test-utils/step-utils.js +1 -1
  281. package/build/revamp/tests/ImageRenderer.spec.js +3 -3
  282. package/build/revamp/tests/InitialAction.spec.js +9 -9
  283. package/build/revamp/tests/InitialStep.spec.js +3 -3
  284. package/build/revamp/tests/Logging.spec.js +5 -5
  285. package/build/revamp/tests/OneOfInitialisation.spec.js +73 -73
  286. package/build/revamp/tests/RefreshOnChange.ResponseHandling.spec.js +19 -19
  287. package/build/revamp/tests/RefreshOnChange.with.Tabs.spec.js +57 -57
  288. package/build/revamp/tests/RefreshOnChangePreserve.spec.js +13 -13
  289. package/build/revamp/tests/Submission.ResponseHandling.spec.js +38 -38
  290. package/build/revamp/tests/Submission.spec.js +23 -23
  291. package/build/revamp/tests/legacy/HiddenSchemas.spec.js +24 -24
  292. package/build/revamp/tests/legacy/MultipleFileUploadSchema.spec.js +27 -27
  293. package/build/revamp/tests/legacy/PersistAsync.blob-schema.spec.js +18 -18
  294. package/build/revamp/tests/legacy/PersistAsync.string-schema.spec.js +8 -8
  295. package/build/revamp/tests/legacy/RefreshStepOnChange.debouncing.spec.js +15 -14
  296. package/build/revamp/tests/legacy/RefreshStepOnChange.spec.js +50 -50
  297. package/build/revamp/tests/legacy/ValidationAsync.spec.js +14 -14
  298. package/build/revamp/tests/legacy/useExternal.spec.js +6 -6
  299. package/build/revamp/utils/component-utils.spec.js +43 -43
  300. package/build/revamp/utils/findComponent.spec.js +14 -14
  301. package/build/revamp/utils/type-utils.js +1 -1
  302. package/build/revamp/wise/renderers/AlertRenderer.js +1 -1
  303. package/build/revamp/wise/renderers/BooleanInputRenderer.js +2 -2
  304. package/build/revamp/wise/renderers/BoxRenderer.js +4 -15
  305. package/build/revamp/wise/renderers/ButtonRenderer.js +2 -13
  306. package/build/revamp/wise/renderers/ColumnsRenderer.js +4 -15
  307. package/build/revamp/wise/renderers/DateInputRenderer.js +2 -2
  308. package/build/revamp/wise/renderers/DecisionRenderer.js +3 -14
  309. package/build/revamp/wise/renderers/DividerRenderer.js +1 -1
  310. package/build/revamp/wise/renderers/FormRenderer.js +2 -13
  311. package/build/revamp/wise/renderers/FormSectionRenderer.js +1 -1
  312. package/build/revamp/wise/renderers/HeadingRenderer.js +7 -7
  313. package/build/revamp/wise/renderers/ImageRenderer.js +5 -4
  314. package/build/revamp/wise/renderers/InstructionsRenderer.js +2 -13
  315. package/build/revamp/wise/renderers/IntegerInputRenderer.js +3 -3
  316. package/build/revamp/wise/renderers/LoadingIndicatorRenderer.js +1 -1
  317. package/build/revamp/wise/renderers/MarkdownRenderer.js +2 -13
  318. package/build/revamp/wise/renderers/ModalRenderer.js +2 -2
  319. package/build/revamp/wise/renderers/MultiUploadInputRenderer.js +3 -14
  320. package/build/revamp/wise/renderers/NumberInputRenderer.js +3 -3
  321. package/build/revamp/wise/renderers/ParagraphRenderer.js +5 -4
  322. package/build/revamp/wise/renderers/RepeatableRenderer.js +5 -5
  323. package/build/revamp/wise/renderers/ReviewRenderer.js +5 -16
  324. package/build/revamp/wise/renderers/SearchRenderer.js +5 -5
  325. package/build/revamp/wise/renderers/SelectInputRenderer/OptionMedia.js +2 -13
  326. package/build/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.js +3 -14
  327. package/build/revamp/wise/renderers/SelectInputRenderer/SelectInputRenderer.js +1 -1
  328. package/build/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.js +4 -4
  329. package/build/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.js +2 -13
  330. package/build/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.js +3 -14
  331. package/build/revamp/wise/renderers/StatusListRenderer.js +3 -14
  332. package/build/revamp/wise/renderers/TextInputRenderer.js +2 -2
  333. package/build/revamp/wise/renderers/UploadInputRenderer.js +6 -6
  334. package/build/revamp/wise/renderers/components/FieldInput.js +1 -12
  335. package/build/revamp/wise/renderers/components/Help.js +1 -12
  336. package/build/revamp/wise/renderers/components/UploadFieldInput.js +3 -14
  337. package/build/revamp/wise/renderers/components/icon/NavigationOptionMedia.js +2 -13
  338. package/build/test-utils/NeptuneProviders.js +1 -1
  339. package/build/types/common/messages/multi-file-upload.messages.d.ts +9 -9
  340. package/build/types/legacy/common/utils/mobile-utils.d.ts +1 -1
  341. package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +6 -6
  342. package/build/types/legacy/layout/external/DynamicExternal.messages.d.ts +3 -3
  343. package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
  344. package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
  345. package/package.json +3 -3
@@ -7,6 +7,6 @@ export function ErrorBoundaryAlert(_a) {
7
7
  var formatMessage = useIntl().formatMessage;
8
8
  return (_jsx(Alert, { action: {
9
9
  text: formatMessage(messages.retry),
10
- href: window.location.href
10
+ href: window.location.href,
11
11
  }, message: formatMessage(messages.genericError), type: Sentiment.NEGATIVE, className: "m-b-3", onDismiss: onDismiss }));
12
12
  }
@@ -1,26 +1,15 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { createContext, useContext, useMemo } from 'react';
14
3
  import { makeHttpClient } from '../makeHttpClient';
15
4
  var HttpClientContext = createContext(undefined);
16
5
  export function HttpClientProvider(_a) {
17
6
  var httpClient = _a.httpClient, children = _a.children;
18
- return _jsx(HttpClientContext.Provider, __assign({ value: httpClient }, { children: children }));
7
+ return _jsx(HttpClientContext.Provider, { value: httpClient, children: children });
19
8
  }
20
9
  export function HttpClientProviderFromBaseUrl(_a) {
21
10
  var baseUrl = _a.baseUrl, children = _a.children;
22
11
  var httpClient = useMemo(function () { return makeHttpClient(baseUrl); }, [baseUrl]);
23
- return _jsx(HttpClientContext.Provider, __assign({ value: httpClient }, { children: children }));
12
+ return _jsx(HttpClientContext.Provider, { value: httpClient, children: children });
24
13
  }
25
14
  /**
26
15
  * Provides the fetch(er) function for dynamic flows asynchronous operations.
@@ -52,12 +52,12 @@ describe('makeHttpClient', function () {
52
52
  void httpClient('/banana');
53
53
  expect(spyFetch).toHaveBeenCalledTimes(1);
54
54
  expect(spyFetch).toHaveBeenCalledWith('/banana', {
55
- headers: expect.anything()
55
+ headers: expect.anything(),
56
56
  });
57
57
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
58
58
  var headers = spyFetch.mock.calls[0][1].headers;
59
59
  expect(Object.fromEntries(headers.entries())).toMatchObject({
60
- 'x-access-token': 'QWERTYUIOP'
60
+ 'x-access-token': 'QWERTYUIOP',
61
61
  });
62
62
  });
63
63
  });
@@ -67,12 +67,12 @@ describe('makeHttpClient', function () {
67
67
  expect(spyFetch).toHaveBeenCalledTimes(1);
68
68
  expect(spyFetch).toHaveBeenCalledWith('/banana', {
69
69
  method: 'POST',
70
- headers: expect.anything()
70
+ headers: expect.anything(),
71
71
  });
72
72
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
73
73
  var headers = spyFetch.mock.calls[0][1].headers;
74
74
  expect(Object.fromEntries(headers.entries())).toMatchObject({
75
- 'x-access-token': 'QWERTYUIOP'
75
+ 'x-access-token': 'QWERTYUIOP',
76
76
  });
77
77
  });
78
78
  });
@@ -82,13 +82,13 @@ describe('makeHttpClient', function () {
82
82
  expect(spyFetch).toHaveBeenCalledTimes(1);
83
83
  expect(spyFetch).toHaveBeenCalledWith('/banana', {
84
84
  method: 'POST',
85
- headers: expect.anything()
85
+ headers: expect.anything(),
86
86
  });
87
87
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
88
88
  var headers = spyFetch.mock.calls[0][1].headers;
89
89
  expect(Object.fromEntries(headers.entries())).toMatchObject({
90
90
  'x-access-token': 'QWERTYUIOP',
91
- 'x-df-exit': 'true'
91
+ 'x-df-exit': 'true',
92
92
  });
93
93
  });
94
94
  });
@@ -100,12 +100,12 @@ describe('makeHttpClient', function () {
100
100
  expect(spyFetch).toHaveBeenCalledTimes(1);
101
101
  expect(spyFetch).toHaveBeenCalledWith('/banana', {
102
102
  method: 'POST',
103
- headers: expect.anything()
103
+ headers: expect.anything(),
104
104
  });
105
105
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
106
106
  var headers = spyFetch.mock.calls[0][1].headers;
107
107
  expect(Object.fromEntries(headers.entries())).toMatchObject({
108
- 'x-df-exit': 'true'
108
+ 'x-df-exit': 'true',
109
109
  });
110
110
  });
111
111
  });
@@ -118,11 +118,11 @@ describe('mergeRequestInit', function () {
118
118
  expect(result).toMatchObject({
119
119
  credentials: 'include',
120
120
  method: 'POST',
121
- headers: expect.any(Headers)
121
+ headers: expect.any(Headers),
122
122
  });
123
123
  expect(Object.fromEntries(result.headers.entries())).toMatchObject({
124
124
  'x-df-response-type': 'true',
125
- 'x-access-token': 'QWERTYUIOP'
125
+ 'x-access-token': 'QWERTYUIOP',
126
126
  });
127
127
  });
128
128
  });
@@ -3,21 +3,21 @@ export default defineMessages({
3
3
  title: {
4
4
  id: 'dynamicFlows.ExternalConfirmation.title',
5
5
  defaultMessage: 'Please confirm',
6
- description: 'Heading for the confirmation screen.'
6
+ description: 'Heading for the confirmation screen.',
7
7
  },
8
8
  description: {
9
9
  id: 'dynamicFlows.ExternalConfirmation.description',
10
10
  defaultMessage: 'Please confirm you want to open **{origin}** in a new browser tab.',
11
- description: 'Description for the confirmation screen.'
11
+ description: 'Description for the confirmation screen.',
12
12
  },
13
13
  open: {
14
14
  id: 'dynamicFlows.ExternalConfirmation.open',
15
15
  defaultMessage: 'Open in new tab',
16
- description: 'Button text confirming opening a new browser tab.'
16
+ description: 'Button text confirming opening a new browser tab.',
17
17
  },
18
18
  cancel: {
19
19
  id: 'dynamicFlows.ExternalConfirmation.cancel',
20
20
  defaultMessage: 'Cancel',
21
- description: 'Button text rejecting opening a new browser tab.'
22
- }
21
+ description: 'Button text rejecting opening a new browser tab.',
22
+ },
23
23
  });
@@ -3,16 +3,16 @@ export default defineMessages({
3
3
  genericErrorRetryHint: {
4
4
  id: 'dynamicFlows.PersistAsyncSchema.genericError',
5
5
  defaultMessage: 'Something went wrong, please try again.',
6
- description: 'Generic error message for persist async schema'
6
+ description: 'Generic error message for persist async schema',
7
7
  },
8
8
  genericError: {
9
9
  id: 'dynamicFlows.ErrorBoundary.errorAlert',
10
10
  defaultMessage: 'Something went wrong.',
11
- description: 'Generic error message for when something has gone wrong.'
11
+ description: 'Generic error message for when something has gone wrong.',
12
12
  },
13
13
  retry: {
14
14
  id: 'dynamicFlows.ErrorBoundary.retry',
15
15
  defaultMessage: 'Retry',
16
- description: 'Usually this follows the generic error and contains a link.'
17
- }
16
+ description: 'Usually this follows the generic error and contains a link.',
17
+ },
18
18
  });
@@ -3,6 +3,6 @@ export default defineMessages({
3
3
  helpAria: {
4
4
  id: 'dynamicFlows.Help.ariaLabel',
5
5
  defaultMessage: 'Click here for more info.',
6
- description: 'Aria label for help.'
7
- }
6
+ description: 'Aria label for help.',
7
+ },
8
8
  });
@@ -3,16 +3,16 @@ export default defineMessages({
3
3
  minItemsError: {
4
4
  id: 'dynamicFlows.MultipleFileUploadSchema.minItemsError',
5
5
  defaultMessage: 'Please upload at least {minItems} file(s).',
6
- description: 'Customer has uploaded not enough files. To fix: upload more files.'
6
+ description: 'Customer has uploaded not enough files. To fix: upload more files.',
7
7
  },
8
8
  maxItemsError: {
9
9
  id: 'dynamicFlows.MultipleFileUploadSchema.maxItemsError',
10
10
  defaultMessage: 'Please upload {maxItems} or fewer files.',
11
- description: 'Customer has uploaded too many files. To fix: upload fewer files.'
11
+ description: 'Customer has uploaded too many files. To fix: upload fewer files.',
12
12
  },
13
13
  maxFileSizeError: {
14
14
  id: 'dynamicFlows.MultipleFileUploadSchema.maxFileSizeError',
15
15
  defaultMessage: 'Sorry, that file is too big. Please upload a smaller file.',
16
- description: "Customer has uploaded a file that's too big. To fix: upload a smaller file."
17
- }
16
+ description: "Customer has uploaded a file that's too big. To fix: upload a smaller file.",
17
+ },
18
18
  });
@@ -3,6 +3,6 @@ export default defineMessages({
3
3
  summary: {
4
4
  id: 'dynamicFlows.MultiSelect.summary',
5
5
  defaultMessage: '{first} and {count} more',
6
- description: 'A summary of the multiple items selected. Showing the title of the first selected item, and the number of other items that have been selected.'
7
- }
6
+ description: 'A summary of the multiple items selected. Showing the title of the first selected item, and the number of other items that have been selected.',
7
+ },
8
8
  });
@@ -3,11 +3,11 @@ export default defineMessages({
3
3
  copy: {
4
4
  id: 'dynamicFlows.DynamicParagraph.copy',
5
5
  defaultMessage: 'Copy',
6
- description: 'Copy to clipboard button label.'
6
+ description: 'Copy to clipboard button label.',
7
7
  },
8
8
  copied: {
9
9
  id: 'dynamicFlows.DynamicParagraph.copied',
10
10
  defaultMessage: 'Copied to clipboard',
11
- description: 'Appears in a snackbar when the copy operation succeeds.'
12
- }
11
+ description: 'Appears in a snackbar when the copy operation succeeds.',
12
+ },
13
13
  });
@@ -3,21 +3,21 @@ export default defineMessages({
3
3
  addItemTitle: {
4
4
  id: 'dynamicFlows.ArraySchema.addItemTitle',
5
5
  defaultMessage: 'Add Item',
6
- description: 'Label on the button used to open a form to add an item'
6
+ description: 'Label on the button used to open a form to add an item',
7
7
  },
8
8
  addItem: {
9
9
  id: 'dynamicFlows.ArraySchema.addItem',
10
10
  defaultMessage: 'Save',
11
- description: 'Label on the add button used to submit a form that adds an item'
11
+ description: 'Label on the add button used to submit a form that adds an item',
12
12
  },
13
13
  editItem: {
14
14
  id: 'dynamicFlows.ArraySchema.editItem',
15
15
  defaultMessage: 'Save',
16
- description: 'Label on the edit button used to submit a form that edits an item'
16
+ description: 'Label on the edit button used to submit a form that edits an item',
17
17
  },
18
18
  removeItem: {
19
19
  id: 'dynamicFlows.ArraySchema.removeItem',
20
20
  defaultMessage: 'Remove',
21
- description: 'Label on the remove button used to confirm deletion of an item'
22
- }
21
+ description: 'Label on the remove button used to confirm deletion of an item',
22
+ },
23
23
  });
@@ -3,11 +3,11 @@ export default defineMessages({
3
3
  minItemsError: {
4
4
  id: 'dynamicFlows.ArraySchema.minItemsError',
5
5
  defaultMessage: 'Please add at least {minItems}.',
6
- description: 'Customer inputs less than the expected number of values'
6
+ description: 'Customer inputs less than the expected number of values',
7
7
  },
8
8
  maxItemsError: {
9
9
  id: 'dynamicFlows.ArraySchema.maxItemsError',
10
10
  defaultMessage: 'Please add {maxItems} or fewer.',
11
- description: 'Customer inputs more than the allowed number of values'
12
- }
11
+ description: 'Customer inputs more than the allowed number of values',
12
+ },
13
13
  });
@@ -3,51 +3,51 @@ export default defineMessages({
3
3
  type: {
4
4
  id: 'dynamicFlows.ControlFeedback.type',
5
5
  defaultMessage: 'Incorrect type',
6
- description: ''
6
+ description: '',
7
7
  },
8
8
  minimum: {
9
9
  id: 'dynamicFlows.ControlFeedback.minimum',
10
10
  defaultMessage: "Please enter a number that's {minimum} or more.",
11
- description: ''
11
+ description: '',
12
12
  },
13
13
  maximum: {
14
14
  id: 'dynamicFlows.ControlFeedback.maximum',
15
15
  defaultMessage: "Please enter a number that's {maximum} or less.",
16
- description: ''
16
+ description: '',
17
17
  },
18
18
  minLength: {
19
19
  id: 'dynamicFlows.ControlFeedback.minLength',
20
20
  defaultMessage: 'Please enter at least {minLength} characters.',
21
- description: ''
21
+ description: '',
22
22
  },
23
23
  maxLength: {
24
24
  id: 'dynamicFlows.ControlFeedback.maxLength',
25
25
  defaultMessage: 'Please enter {maxLength} or fewer characters.',
26
- description: ''
26
+ description: '',
27
27
  },
28
28
  minimumDate: {
29
29
  id: 'dynamicFlows.ControlFeedback.minimumDate',
30
30
  defaultMessage: "Please enter a date that's on or after {minimum}.",
31
- description: ''
31
+ description: '',
32
32
  },
33
33
  maximumDate: {
34
34
  id: 'dynamicFlows.ControlFeedback.maximumDate',
35
35
  defaultMessage: "Please enter a date that's on or before {maximum}.",
36
- description: ''
36
+ description: '',
37
37
  },
38
38
  pattern: {
39
39
  id: 'dynamicFlows.ControlFeedback.pattern',
40
40
  defaultMessage: 'Please enter this in the correct format.',
41
- description: ''
41
+ description: '',
42
42
  },
43
43
  patternDate: {
44
44
  id: 'dynamicFlows.ControlFeedback.patternDate',
45
45
  defaultMessage: 'Please enter a date in the corrrect format.',
46
- description: ''
46
+ description: '',
47
47
  },
48
48
  required: {
49
49
  id: 'dynamicFlows.ControlFeedback.required',
50
50
  defaultMessage: 'Please fill out this field.',
51
- description: ''
52
- }
51
+ description: '',
52
+ },
53
53
  });
@@ -31,6 +31,6 @@ var translations = {
31
31
  tr: tr,
32
32
  zh: zhCN,
33
33
  'zh-CN': zhCN,
34
- 'zh-HK': zhHK
34
+ 'zh-HK': zhHK,
35
35
  };
36
36
  export default translations;
@@ -1,4 +1,4 @@
1
1
  export var DateMode = {
2
2
  DAY_MONTH_YEAR: 'day-month-year',
3
- MONTH_YEAR: 'month-year'
3
+ MONTH_YEAR: 'month-year',
4
4
  };
@@ -17,5 +17,5 @@ export var FormControlType = {
17
17
  TEXT: 'text',
18
18
  TEXTAREA: 'textarea',
19
19
  UPLOAD: 'upload',
20
- TAB: 'tab'
20
+ TAB: 'tab',
21
21
  };
@@ -1,4 +1,4 @@
1
1
  export var MonthFormat = {
2
2
  SHORT: 'short',
3
- LONG: 'long'
3
+ LONG: 'long',
4
4
  };
@@ -3,5 +3,5 @@ export var Size = {
3
3
  SMALL: 'sm',
4
4
  MEDIUM: 'md',
5
5
  LARGE: 'lg',
6
- EXTRA_LARGE: 'xl'
6
+ EXTRA_LARGE: 'xl',
7
7
  };
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { createContext, useContext, useMemo } from 'react';
14
3
  import { usePendingPromiseCounter } from './usePendingPromiseCounter';
@@ -16,7 +5,7 @@ var defaultContextValue = {
16
5
  loading: false,
17
6
  registerPersistAsyncPromise: function (promise) {
18
7
  //
19
- }
8
+ },
20
9
  };
21
10
  var DFContext = createContext(defaultContextValue);
22
11
  export var DynamicFlowProvider = function (_a) {
@@ -25,10 +14,10 @@ export var DynamicFlowProvider = function (_a) {
25
14
  var providerValue = useMemo(function () {
26
15
  return {
27
16
  loading: loading || pendingPromises > 0,
28
- registerPersistAsyncPromise: addPendingPromise
17
+ registerPersistAsyncPromise: addPendingPromise,
29
18
  };
30
19
  }, [loading, pendingPromises, addPendingPromise]);
31
- return _jsx(DFContext.Provider, __assign({ value: providerValue }, { children: children }));
20
+ return _jsx(DFContext.Provider, { value: providerValue, children: children });
32
21
  };
33
22
  export var useDynamicFlow = function () {
34
23
  var context = useContext(DFContext);
@@ -3,7 +3,9 @@ export function usePendingPromiseCounter() {
3
3
  var _a = useState(0), count = _a[0], setCount = _a[1];
4
4
  var addPendingPromise = useCallback(function (promise) {
5
5
  setCount(function (c) { return c + 1; });
6
- promise["catch"](noop)["finally"](function () { return delayUntilNextCycle(function () { return setCount(function (c) { return Math.max(0, c - 1); }); }); });
6
+ promise
7
+ .catch(noop)
8
+ .finally(function () { return delayUntilNextCycle(function () { return setCount(function (c) { return Math.max(0, c - 1); }); }); });
7
9
  }, [setCount]);
8
10
  return { addPendingPromise: addPendingPromise, pendingPromises: count };
9
11
  }
@@ -14,12 +14,12 @@ import { createContext, useContext, useMemo } from 'react';
14
14
  var EventsContext = createContext({
15
15
  triggerEvent: function () {
16
16
  // noop
17
- }
17
+ },
18
18
  });
19
19
  export function EventsContextProvider(_a) {
20
20
  var metadata = _a.metadata, children = _a.children, onEvent = _a.onEvent;
21
21
  var value = useMemo(function () { return ({ triggerEvent: getEventDispatcher(onEvent, metadata) }); }, [onEvent, metadata]);
22
- return _jsx(EventsContext.Provider, __assign({ value: value }, { children: children }));
22
+ return _jsx(EventsContext.Provider, { value: value, children: children });
23
23
  }
24
24
  export function useEventDispatcher() {
25
25
  var triggerEvent = useContext(EventsContext).triggerEvent;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { render } from '@testing-library/react';
14
3
  import { useEffect } from 'react';
@@ -24,7 +13,7 @@ describe('Tracking Provider', function () {
24
13
  }
25
14
  describe('when provider is initialised with metadata', function () {
26
15
  function renderComponent(onEvent) {
27
- render(_jsx(EventsContextProvider, __assign({ metadata: { flowId: 'myFlowId', stepId: 'myStepId', custom: 'property' }, onEvent: onEvent }, { children: _jsx(TestChild, { eventName: "Dynamic Flow - Flow Started", properties: { custom: 'property' } }) })));
16
+ render(_jsx(EventsContextProvider, { metadata: { flowId: 'myFlowId', stepId: 'myStepId', custom: 'property' }, onEvent: onEvent, children: _jsx(TestChild, { eventName: "Dynamic Flow - Flow Started", properties: { custom: 'property' } }) }));
28
17
  }
29
18
  describe('and is called upon mounting', function () {
30
19
  describe('it calls the onEvent callback', function () {
@@ -1,20 +1,9 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { createContext, useContext } from 'react';
14
3
  var FeatureContext = createContext([]);
15
4
  export function FeatureContextProvider(_a) {
16
5
  var features = _a.features, children = _a.children;
17
- return _jsx(FeatureContext.Provider, __assign({ value: features }, { children: children }));
6
+ return _jsx(FeatureContext.Provider, { value: features, children: children });
18
7
  }
19
8
  export var useFeatureFlag = function (featureName) {
20
9
  var features = useContext(FeatureContext);
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { renderHook } from '@testing-library/react-hooks';
14
3
  import { FeatureName } from '../../constants/FeatureName';
@@ -18,23 +7,23 @@ var features = [
18
7
  featureName: FeatureName.SAMPLE_FEATURE,
19
8
  variant: 1,
20
9
  enabled: true,
21
- initiation: 'INITIATED'
10
+ initiation: 'INITIATED',
22
11
  },
23
12
  ];
24
13
  var wrapper = function (_a) {
25
14
  var children = _a.children;
26
- return (_jsx(FeatureContextProvider, __assign({ features: features }, { children: children })));
15
+ return (_jsx(FeatureContextProvider, { features: features, children: children }));
27
16
  };
28
17
  describe('useFeatureFlag', function () {
29
18
  it('returns a feature by name when it exists', function () {
30
19
  var result = renderHook(function () { return useFeatureFlag(FeatureName.SAMPLE_FEATURE); }, {
31
- wrapper: wrapper
20
+ wrapper: wrapper,
32
21
  }).result;
33
22
  expect(result.current).toStrictEqual(features[0]);
34
23
  });
35
24
  it('returns undefined for a non-existing feature', function () {
36
25
  var result = renderHook(function () { return useFeatureFlag('NonExistingFeature'); }, {
37
- wrapper: wrapper
26
+ wrapper: wrapper,
38
27
  }).result;
39
28
  expect(result.current).toBeUndefined();
40
29
  });
@@ -31,9 +31,9 @@ export function LogProvider(_a) {
31
31
  info: getLogger('info', onLog, flowId, stepId),
32
32
  warning: getLogger('warning', onLog, flowId, stepId),
33
33
  error: getLogger('error', onLog, flowId, stepId),
34
- critical: getLogger('critical', onLog, flowId, stepId)
34
+ critical: getLogger('critical', onLog, flowId, stepId),
35
35
  }); }, [onLog, flowId, stepId]);
36
- return _jsx(LogContext.Provider, __assign({ value: value }, { children: children }));
36
+ return _jsx(LogContext.Provider, { value: value, children: children });
37
37
  }
38
38
  export var useLogger = function () {
39
39
  var logging = useContext(LogContext);
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { jsx as _jsx } from "react/jsx-runtime";
13
2
  import { render } from '@testing-library/react';
14
3
  import { useEffect } from 'react';
@@ -28,7 +17,7 @@ describe('Logging Provider', function () {
28
17
  }
29
18
  describe('when provider is initialised with flowId and stepId', function () {
30
19
  function renderComponent(onLog) {
31
- render(_jsx(LogProvider, __assign({ flowId: "myFlowId", stepId: "myStepId", onLog: onLog }, { children: _jsx(TestChild, {}) })));
20
+ render(_jsx(LogProvider, { flowId: "myFlowId", stepId: "myStepId", onLog: onLog, children: _jsx(TestChild, {}) }));
32
21
  }
33
22
  describe('and is called within a component', function () {
34
23
  it('calls the onLog callback', function () {
@@ -63,7 +63,7 @@ describe('useExternal', function () {
63
63
  title: 'Step Title',
64
64
  external: { url: 'https://third-party.website' },
65
65
  layout: [{ type: 'paragraph', text: 'This is a paragraph in the step layout' }],
66
- schemas: []
66
+ schemas: [],
67
67
  };
68
68
  it('attempts to open the specified URL, but ONLY ONCE', function () { return __awaiter(void 0, void 0, void 0, function () {
69
69
  return __generator(this, function (_a) {
@@ -137,7 +137,7 @@ describe('useExternal', function () {
137
137
  { type: 'paragraph', text: 'This is a paragraph in the external step layout' },
138
138
  { type: 'button', action: { url: '/layout', title: 'Continue to layout step' } },
139
139
  ],
140
- schemas: []
140
+ schemas: [],
141
141
  })];
142
142
  });
143
143
  }); },
@@ -151,13 +151,13 @@ describe('useExternal', function () {
151
151
  { type: 'paragraph', text: 'This is a paragraph in the layout step layout' },
152
152
  {
153
153
  type: 'button',
154
- action: { url: '/external', title: 'Continue to external step' }
154
+ action: { url: '/external', title: 'Continue to external step' },
155
155
  },
156
156
  ],
157
- schemas: []
157
+ schemas: [],
158
158
  })];
159
159
  });
160
- }); }
160
+ }); },
161
161
  });
162
162
  it('displays the confirmation UI (ExternalConfirmationStep) a second time', function () { return __awaiter(void 0, void 0, void 0, function () {
163
163
  var confirmButton;
@@ -214,7 +214,7 @@ describe('useExternal', function () {
214
214
  title: 'Step Title',
215
215
  external: { wrong: 'banana' },
216
216
  layout: [{ type: 'paragraph', text: 'This is a paragraph in the step layout' }],
217
- schemas: []
217
+ schemas: [],
218
218
  };
219
219
  it('does not attempt to open a new tab', function () { return __awaiter(void 0, void 0, void 0, function () {
220
220
  return __generator(this, function (_a) {
@@ -31,7 +31,8 @@ export function useExternalStepPolling(polling, onAction) {
31
31
  else {
32
32
  throw new Error('failed');
33
33
  }
34
- })["catch"](function (error) {
34
+ })
35
+ .catch(function (error) {
35
36
  throw new Error(error.message === 'failed' ? 'failed' : 'network failed');
36
37
  });
37
38
  };
@@ -65,6 +66,6 @@ export function useExternalStepPolling(polling, onAction) {
65
66
  if (polling) {
66
67
  onAction(polling.onError.action);
67
68
  }
68
- }, [onAction, polling])
69
+ }, [onAction, polling]),
69
70
  });
70
71
  }
@@ -95,7 +95,7 @@ export var usePersistAsync = function (persistAsync) {
95
95
  method: persistAsync.method,
96
96
  headers: __assign({}, (!isBlob && { 'Content-Type': 'application/json' })),
97
97
  body: requestBody,
98
- signal: signal
98
+ signal: signal,
99
99
  };
100
100
  }
101
101
  function performPersistAsync(payload) {