@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
@@ -65,10 +65,10 @@ var getFormStep = function (_a) {
65
65
  { type: 'form', schemaId: (_b = schema.$id) !== null && _b !== void 0 ? _b : '' },
66
66
  {
67
67
  type: 'button',
68
- action: { type: 'primary', url: '/submit', title: 'Submit', method: 'POST' }
68
+ action: { type: 'primary', url: '/submit', title: 'Submit', method: 'POST' },
69
69
  },
70
70
  ],
71
- model: model || { accountNumber: '1234567890' }
71
+ model: model || { accountNumber: '1234567890' },
72
72
  });
73
73
  };
74
74
  var asyncJsonResponse = function (response, init) {
@@ -103,15 +103,15 @@ describe('When the model for a schema with refresh-on-change changes', function
103
103
  favouriteColor: {
104
104
  title: 'Favourite color',
105
105
  oneOf: [
106
- { title: 'Red', "const": 'red' },
107
- { title: 'Blue', "const": 'blue' },
106
+ { title: 'Red', const: 'red' },
107
+ { title: 'Blue', const: 'blue' },
108
108
  ],
109
109
  control: 'radio',
110
110
  refreshStepOnChange: true,
111
- refreshUrl: '/example-color-refresh'
112
- }
113
- }
114
- }
111
+ refreshUrl: '/example-color-refresh',
112
+ },
113
+ },
114
+ },
115
115
  }))];
116
116
  });
117
117
  }); });
@@ -124,15 +124,15 @@ describe('When the model for a schema with refresh-on-change changes', function
124
124
  favouriteColor: {
125
125
  title: 'Favourite color',
126
126
  oneOf: [
127
- { title: 'Red', "const": 'red' },
128
- { title: 'Blue', "const": 'blue' },
127
+ { title: 'Red', const: 'red' },
128
+ { title: 'Blue', const: 'blue' },
129
129
  ],
130
130
  control: 'radio',
131
131
  refreshStepOnChange: true,
132
- refreshUrl: '/example-color-refresh'
133
- }
134
- }
135
- }
132
+ refreshUrl: '/example-color-refresh',
133
+ },
134
+ },
135
+ },
136
136
  });
137
137
  // Original
138
138
  // renderWithProviders(<DynamicFlowWise {...makeProps({ httpClient: mockHttpClient })} />);
@@ -175,10 +175,10 @@ describe('When the model for a schema with refresh-on-change changes', function
175
175
  title: 'Account number',
176
176
  type: 'string',
177
177
  refreshStepOnChange: true,
178
- refreshUrl: '/refresh'
179
- }
180
- }
181
- }
178
+ refreshUrl: '/refresh',
179
+ },
180
+ },
181
+ },
182
182
  });
183
183
  httpClient = jest.fn(function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
184
184
  return [2 /*return*/, asyncJsonResponse(initialStep)];
@@ -215,9 +215,9 @@ describe('When the model for a schema with refresh-on-change changes', function
215
215
  title: 'Account number',
216
216
  type: 'string',
217
217
  refreshStepOnChange: true,
218
- refreshUrl: '/example-account-refresh'
219
- }
220
- }
218
+ refreshUrl: '/example-account-refresh',
219
+ },
220
+ },
221
221
  };
222
222
  var initialStep = getFormStep({ schema: schema, model: {} });
223
223
  var httpClient = jest.fn(function (input) { return __awaiter(void 0, void 0, void 0, function () {
@@ -230,8 +230,8 @@ describe('When the model for a schema with refresh-on-change changes', function
230
230
  return [2 /*return*/, asyncJsonResponse(getFormStep({
231
231
  schema: schema,
232
232
  model: {
233
- accountNumber: 'QWERTYUIOP'
234
- }
233
+ accountNumber: 'QWERTYUIOP',
234
+ },
235
235
  }))];
236
236
  default:
237
237
  throw new Error('unexpected request');
@@ -245,7 +245,7 @@ describe('When the model for a schema with refresh-on-change changes', function
245
245
  switch (_a.label) {
246
246
  case 0:
247
247
  renderWithProviders(_jsx(DynamicFlowWise, __assign({}, makeProps({
248
- httpClient: httpClient
248
+ httpClient: httpClient,
249
249
  }), { initialStep: initialStep })));
250
250
  return [4 /*yield*/, screen.findByLabelText('Account number')];
251
251
  case 1:
@@ -283,9 +283,9 @@ describe('When the model for a schema with refresh-on-change changes', function
283
283
  title: 'Email',
284
284
  minLength: 5,
285
285
  refreshStepOnChange: true,
286
- refreshUrl: '/example-email-refresh'
287
- }
288
- }
286
+ refreshUrl: '/example-email-refresh',
287
+ },
288
+ },
289
289
  };
290
290
  var refreshedSchema = {
291
291
  $id: '#example',
@@ -297,14 +297,14 @@ describe('When the model for a schema with refresh-on-change changes', function
297
297
  title: 'Email',
298
298
  minLength: 5,
299
299
  refreshStepOnChange: true,
300
- refreshUrl: '/example-email-refresh'
300
+ refreshUrl: '/example-email-refresh',
301
301
  },
302
302
  name: {
303
303
  type: 'string',
304
304
  title: 'Name',
305
- minLength: 2
306
- }
307
- }
305
+ minLength: 2,
306
+ },
307
+ },
308
308
  };
309
309
  var initialStep = getFormStep({ schema: initialSchema });
310
310
  var httpClient = function (input, init) { return __awaiter(void 0, void 0, void 0, function () {
@@ -316,7 +316,7 @@ describe('When the model for a schema with refresh-on-change changes', function
316
316
  case '/example-email-refresh':
317
317
  return [2 /*return*/, asyncJsonResponse(getFormStep({
318
318
  schema: refreshedSchema,
319
- model: __assign(__assign({}, JSON.parse(init === null || init === void 0 ? void 0 : init.body)), { name: 'Prefilled Name from Server', email: 'some.other@email.com' })
319
+ model: __assign(__assign({}, JSON.parse(init === null || init === void 0 ? void 0 : init.body)), { name: 'Prefilled Name from Server', email: 'some.other@email.com' }),
320
320
  }))];
321
321
  default:
322
322
  throw new Error('unexpected request');
@@ -330,7 +330,7 @@ describe('When the model for a schema with refresh-on-change changes', function
330
330
  switch (_a.label) {
331
331
  case 0:
332
332
  renderWithProviders(_jsx(DynamicFlowWise, __assign({}, makeProps({
333
- httpClient: httpClient
333
+ httpClient: httpClient,
334
334
  }), { initialStep: initialStep })));
335
335
  return [4 /*yield*/, screen.findByLabelText('Email')];
336
336
  case 1:
@@ -361,15 +361,15 @@ describe('Tracking events', function () {
361
361
  favouriteColor: {
362
362
  title: 'Favourite color',
363
363
  oneOf: [
364
- { title: 'Red', "const": 'red' },
365
- { title: 'Blue', "const": 'blue' },
364
+ { title: 'Red', const: 'red' },
365
+ { title: 'Blue', const: 'blue' },
366
366
  ],
367
367
  control: 'radio',
368
368
  refreshStepOnChange: true,
369
- refreshUrl: '/example-color-refresh'
370
- }
371
- }
372
- }
369
+ refreshUrl: '/example-color-refresh',
370
+ },
371
+ },
372
+ },
373
373
  });
374
374
  var getInitialResponse = function () { return new Response(JSON.stringify(initialStep)); };
375
375
  var getErrorResponse = function () { return new Response(null, { status: 500 }); };
@@ -409,7 +409,7 @@ describe('Tracking events', function () {
409
409
  expect(onEvent).toHaveBeenCalledWith('Dynamic Flow - Refresh Triggered', expect.objectContaining({
410
410
  custom: 'property',
411
411
  flowId: 'the-flow-id',
412
- stepId: 'the-step-id'
412
+ stepId: 'the-step-id',
413
413
  }));
414
414
  })];
415
415
  case 3:
@@ -449,7 +449,7 @@ describe('Tracking events', function () {
449
449
  expect(onEvent).toHaveBeenCalledWith('Dynamic Flow - Refresh Succeeded', expect.objectContaining({
450
450
  custom: 'property',
451
451
  flowId: 'the-flow-id',
452
- stepId: 'the-step-id'
452
+ stepId: 'the-step-id',
453
453
  }));
454
454
  })];
455
455
  case 3:
@@ -484,7 +484,7 @@ describe('Tracking events', function () {
484
484
  expect(onEvent).toHaveBeenCalledWith('Dynamic Flow - Refresh Failed', expect.objectContaining({
485
485
  custom: 'property',
486
486
  flowId: 'the-flow-id',
487
- stepId: 'the-step-id'
487
+ stepId: 'the-step-id',
488
488
  }));
489
489
  })];
490
490
  case 3:
@@ -511,7 +511,7 @@ describe('Tracking events', function () {
511
511
  expect(onEvent).toHaveBeenLastCalledWith('Dynamic Flow - Failed', expect.objectContaining({
512
512
  custom: 'property',
513
513
  flowId: 'the-flow-id',
514
- stepId: 'the-step-id'
514
+ stepId: 'the-step-id',
515
515
  }));
516
516
  })];
517
517
  case 3:
@@ -532,9 +532,9 @@ describe('Tracking events', function () {
532
532
  title: 'Account number',
533
533
  type: 'string',
534
534
  refreshStepOnChange: true,
535
- refreshFormUrl: '/example-account-refresh'
536
- }
537
- }
535
+ refreshFormUrl: '/example-account-refresh',
536
+ },
537
+ },
538
538
  };
539
539
  var httpClient = jest.fn(function (input) { return __awaiter(void 0, void 0, void 0, function () {
540
540
  return __generator(this, function (_a) {
@@ -546,8 +546,8 @@ describe('Tracking events', function () {
546
546
  return [2 /*return*/, asyncJsonResponse(getFormStep({
547
547
  schema: schema,
548
548
  model: {
549
- accountNumber: 'QWERTYUIOP'
550
- }
549
+ accountNumber: 'QWERTYUIOP',
550
+ },
551
551
  }))];
552
552
  default:
553
553
  throw new Error('unexpected request');
@@ -561,7 +561,7 @@ describe('Tracking events', function () {
561
561
  switch (_a.label) {
562
562
  case 0:
563
563
  renderWithProviders(_jsx(DynamicFlowWise, __assign({}, makeProps({
564
- httpClient: httpClient
564
+ httpClient: httpClient,
565
565
  }), { initialStep: getFormStep({ schema: schema, model: {} }) })));
566
566
  return [4 /*yield*/, screen.findByLabelText('Account number')];
567
567
  case 1:
@@ -593,7 +593,7 @@ describe('Tracking events', function () {
593
593
  switch (_a.label) {
594
594
  case 0:
595
595
  renderWithProviders(_jsx(DynamicFlowWise, __assign({}, makeProps({
596
- httpClient: httpClient
596
+ httpClient: httpClient,
597
597
  }), { initialStep: getFormStep({ schema: schema, model: {} }) })));
598
598
  return [4 /*yield*/, screen.findByLabelText('Account number')];
599
599
  case 1:
@@ -62,9 +62,9 @@ describe('Validation Async', function () {
62
62
  type: 'string',
63
63
  maxLength: 18,
64
64
  title: 'IBAN',
65
- validationAsync: validationAsync
66
- }
67
- }
65
+ validationAsync: validationAsync,
66
+ },
67
+ },
68
68
  }); };
69
69
  var getInitialStep = function (validationAsync) { return ({
70
70
  id: 'validation-async-step-id',
@@ -75,9 +75,9 @@ describe('Validation Async', function () {
75
75
  {
76
76
  type: 'button',
77
77
  title: 'Submit',
78
- action: { url: '/submit', method: 'POST' }
78
+ action: { url: '/submit', method: 'POST' },
79
79
  },
80
- ]
80
+ ],
81
81
  }); };
82
82
  var getProps = function (initialStep) { return ({
83
83
  flowId: 'flow-id',
@@ -86,7 +86,7 @@ describe('Validation Async', function () {
86
86
  onCompletion: jest.fn(),
87
87
  onError: jest.fn(),
88
88
  onEvent: jest.fn(),
89
- onLog: jest.fn()
89
+ onLog: jest.fn(),
90
90
  }); };
91
91
  describe('when the input is blurred and has null value', function () {
92
92
  it('does NOT trigger validation async', function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -235,7 +235,7 @@ describe('Validation Async', function () {
235
235
  switch (_a.label) {
236
236
  case 0:
237
237
  httpClient = jest.fn().mockResolvedValue(new Response(JSON.stringify({ message: 'Invalid IBAN (422)' }), {
238
- status: 422
238
+ status: 422,
239
239
  }));
240
240
  props = getProps(getInitialStep({ method: 'POST', url: '/validate', param: 'myParameter' }));
241
241
  renderWithProviders(_jsx(DynamicFlowWise, __assign({}, props, { httpClient: httpClient })));
@@ -345,7 +345,7 @@ describe('Validation Async', function () {
345
345
  // expectedTrackingEvent: 'failure',
346
346
  // Modification:
347
347
  expectedTrackingEvent: 'Dynamic Flow - ValidationAsync Succeeded',
348
- doNotExpect: 'Error'
348
+ doNotExpect: 'Error',
349
349
  },
350
350
  {
351
351
  description: 'when the validation response is successful with a string body',
@@ -356,7 +356,7 @@ describe('Validation Async', function () {
356
356
  // expectedTrackingEvent: 'failure',
357
357
  // Modification:
358
358
  expectedTrackingEvent: 'Dynamic Flow - ValidationAsync Succeeded',
359
- doNotExpect: 'Everything is fine'
359
+ doNotExpect: 'Everything is fine',
360
360
  },
361
361
  {
362
362
  description: 'when the validation response fails with 500',
@@ -364,7 +364,7 @@ describe('Validation Async', function () {
364
364
  return [2 /*return*/, Promise.resolve(new Response("Internal server error", { status: 500 }))];
365
365
  }); }); }),
366
366
  expectedTrackingEvent: 'Dynamic Flow - ValidationAsync Failed',
367
- doNotExpect: 'Internal server error'
367
+ doNotExpect: 'Internal server error',
368
368
  },
369
369
  {
370
370
  description: 'when the validation response fails with 403',
@@ -375,7 +375,7 @@ describe('Validation Async', function () {
375
375
  // expectedTrackingEvent: 'success',
376
376
  // Modification:
377
377
  expectedTrackingEvent: 'Dynamic Flow - ValidationAsync Failed',
378
- doNotExpect: 'Forbidden'
378
+ doNotExpect: 'Forbidden',
379
379
  },
380
380
  {
381
381
  description: 'when the validation response JSON does not parse as an object',
@@ -383,7 +383,7 @@ describe('Validation Async', function () {
383
383
  return [2 /*return*/, Promise.resolve(new Response("1234567890", { status: 422 }))];
384
384
  }); }); }),
385
385
  expectedTrackingEvent: 'Dynamic Flow - ValidationAsync Failed',
386
- doNotExpect: '1234567890'
386
+ doNotExpect: '1234567890',
387
387
  },
388
388
  {
389
389
  description: 'when the validation response does not even parse as JSON',
@@ -391,7 +391,7 @@ describe('Validation Async', function () {
391
391
  return [2 /*return*/, Promise.resolve(new Response("non-json-string", { status: 422 }))];
392
392
  }); }); }),
393
393
  expectedTrackingEvent: 'Dynamic Flow - ValidationAsync Failed',
394
- doNotExpect: 'non-json-string'
394
+ doNotExpect: 'non-json-string',
395
395
  },
396
396
  ];
397
397
  describe.each(otherCases)('$description', function (_a) {
@@ -437,7 +437,7 @@ describe('Validation Async', function () {
437
437
  expect(props.onEvent).toHaveBeenLastCalledWith(expectedTrackingEvent, expect.objectContaining({
438
438
  flowId: 'flow-id',
439
439
  schema: '#iban-string-schema',
440
- stepId: 'validation-async-step-id'
440
+ stepId: 'validation-async-step-id',
441
441
  }));
442
442
  })];
443
443
  case 3:
@@ -62,7 +62,7 @@ describe('useExternal', function () {
62
62
  title: 'Step Title',
63
63
  external: { url: 'https://third-party.website' },
64
64
  layout: [{ type: 'paragraph', text: 'This is a paragraph in the step layout' }],
65
- schemas: []
65
+ schemas: [],
66
66
  };
67
67
  it('attempts to open the specified URL, but ONLY ONCE', function () { return __awaiter(void 0, void 0, void 0, function () {
68
68
  return __generator(this, function (_a) {
@@ -136,7 +136,7 @@ describe('useExternal', function () {
136
136
  { type: 'paragraph', text: 'This is a paragraph in the external step layout' },
137
137
  { type: 'button', action: { url: '/layout', title: 'Continue to layout step' } },
138
138
  ],
139
- schemas: []
139
+ schemas: [],
140
140
  })];
141
141
  });
142
142
  }); },
@@ -150,13 +150,13 @@ describe('useExternal', function () {
150
150
  { type: 'paragraph', text: 'This is a paragraph in the layout step layout' },
151
151
  {
152
152
  type: 'button',
153
- action: { url: '/external', title: 'Continue to external step' }
153
+ action: { url: '/external', title: 'Continue to external step' },
154
154
  },
155
155
  ],
156
- schemas: []
156
+ schemas: [],
157
157
  })];
158
158
  });
159
- }); }
159
+ }); },
160
160
  });
161
161
  it('displays the confirmation UI (ExternalConfirmationStep) a second time', function () { return __awaiter(void 0, void 0, void 0, function () {
162
162
  var confirmButton;
@@ -213,7 +213,7 @@ describe('useExternal', function () {
213
213
  title: 'Step Title',
214
214
  external: { wrong: 'banana' },
215
215
  layout: [{ type: 'paragraph', text: 'This is a paragraph in the step layout' }],
216
- schemas: []
216
+ schemas: [],
217
217
  };
218
218
  it('does not attempt to open a new tab', function () { return __awaiter(void 0, void 0, void 0, function () {
219
219
  return __generator(this, function (_a) {
@@ -68,20 +68,20 @@ describe('getSubmittableData', function () {
68
68
  text: 'This is a step title',
69
69
  align: 'start',
70
70
  margin: 'md',
71
- size: 'md'
71
+ size: 'md',
72
72
  }),
73
73
  createHeadingComponent({
74
74
  uid: '1',
75
75
  text: 'This is a heading',
76
76
  align: 'start',
77
77
  margin: 'md',
78
- size: 'sm'
78
+ size: 'sm',
79
79
  }),
80
80
  createParagraphComponent({
81
81
  uid: '2',
82
82
  text: 'This is a paragraph',
83
83
  align: 'start',
84
- margin: 'md'
84
+ margin: 'md',
85
85
  }),
86
86
  createButtonComponent({
87
87
  uid: '3',
@@ -89,7 +89,7 @@ describe('getSubmittableData', function () {
89
89
  context: 'neutral',
90
90
  disabled: false,
91
91
  margin: 'md',
92
- onClick: jest.fn()
92
+ onClick: jest.fn(),
93
93
  }),
94
94
  ];
95
95
  _a = expect;
@@ -113,16 +113,16 @@ describe('getSubmittableData', function () {
113
113
  name: createMockTextInputComponent({
114
114
  uid: '0.0',
115
115
  id: 'name',
116
- value: 'Florence Jones'
116
+ value: 'Florence Jones',
117
117
  }),
118
118
  email: createMockTextInputComponent({
119
119
  uid: '0.1',
120
120
  id: 'email',
121
- value: 'florencejones@fake.com'
122
- })
121
+ value: 'florencejones@fake.com',
122
+ }),
123
123
  },
124
124
  hidden: false,
125
- summariser: function () { return ({}); }
125
+ summariser: function () { return ({}); },
126
126
  }),
127
127
  ];
128
128
  _a = expect;
@@ -130,7 +130,7 @@ describe('getSubmittableData', function () {
130
130
  case 1:
131
131
  _a.apply(void 0, [_b.sent()]).toStrictEqual({
132
132
  name: 'Florence Jones',
133
- email: 'florencejones@fake.com'
133
+ email: 'florencejones@fake.com',
134
134
  });
135
135
  return [2 /*return*/];
136
136
  }
@@ -155,18 +155,18 @@ describe('getSubmittableData', function () {
155
155
  name: createMockTextInputComponent({
156
156
  uid: '0.0',
157
157
  id: 'name',
158
- value: 'Florence Jones'
158
+ value: 'Florence Jones',
159
159
  }),
160
160
  email: createMockTextInputComponent({
161
161
  uid: '0.1',
162
162
  id: 'email',
163
- value: 'florencejones@fake.com'
164
- })
163
+ value: 'florencejones@fake.com',
164
+ }),
165
165
  },
166
166
  hidden: false,
167
- summariser: function () { return ({}); }
167
+ summariser: function () { return ({}); },
168
168
  }),
169
- ]
169
+ ],
170
170
  }),
171
171
  ];
172
172
  _a = expect;
@@ -174,7 +174,7 @@ describe('getSubmittableData', function () {
174
174
  case 1:
175
175
  _a.apply(void 0, [_b.sent()]).toStrictEqual({
176
176
  name: 'Florence Jones',
177
- email: 'florencejones@fake.com'
177
+ email: 'florencejones@fake.com',
178
178
  });
179
179
  return [2 /*return*/];
180
180
  }
@@ -196,18 +196,18 @@ describe('getSubmittableData', function () {
196
196
  name: createMockTextInputComponent({
197
197
  uid: '0.0',
198
198
  id: 'name',
199
- value: 'Florence Jones'
199
+ value: 'Florence Jones',
200
200
  }),
201
201
  email: createMockTextInputComponent({
202
202
  uid: '0.1',
203
203
  id: 'email',
204
- value: 'florencejones@fake.com'
205
- })
204
+ value: 'florencejones@fake.com',
205
+ }),
206
206
  },
207
207
  hidden: false,
208
- summariser: function () { return ({}); }
208
+ summariser: function () { return ({}); },
209
209
  }),
210
- ]
210
+ ],
211
211
  }),
212
212
  ];
213
213
  _a = expect;
@@ -215,7 +215,7 @@ describe('getSubmittableData', function () {
215
215
  case 1:
216
216
  _a.apply(void 0, [_b.sent()]).toStrictEqual({
217
217
  name: 'Florence Jones',
218
- email: 'florencejones@fake.com'
218
+ email: 'florencejones@fake.com',
219
219
  });
220
220
  return [2 /*return*/];
221
221
  }
@@ -230,12 +230,12 @@ describe('getSubmittableData', function () {
230
230
  createMockTextInputComponent({
231
231
  uid: '0',
232
232
  id: 'name',
233
- value: 'Florence Jones'
233
+ value: 'Florence Jones',
234
234
  }),
235
235
  createMockTextInputComponent({
236
236
  uid: '1',
237
237
  id: 'email',
238
- value: 'florencejones@fake.com'
238
+ value: 'florencejones@fake.com',
239
239
  }),
240
240
  ];
241
241
  _a = expect;
@@ -255,12 +255,12 @@ describe('getSubmittableData', function () {
255
255
  createMockTextInputComponent({
256
256
  uid: '0',
257
257
  id: 'name',
258
- value: 'Florence Jones'
258
+ value: 'Florence Jones',
259
259
  }),
260
260
  createMockTextInputComponent({
261
261
  uid: '1',
262
262
  id: 'email',
263
- value: null
263
+ value: null,
264
264
  }),
265
265
  ];
266
266
  _a = expect;
@@ -284,7 +284,7 @@ describe('getSubmittableData', function () {
284
284
  name: createMockTextInputComponent({
285
285
  uid: '0.0',
286
286
  id: 'name',
287
- value: 'Florence Jones'
287
+ value: 'Florence Jones',
288
288
  }),
289
289
  bankInfo: createObjectComponent({
290
290
  uid: '0.1',
@@ -293,20 +293,20 @@ describe('getSubmittableData', function () {
293
293
  accountNumber: createMockTextInputComponent({
294
294
  uid: '0.1.0',
295
295
  id: 'account',
296
- value: '12345678'
296
+ value: '12345678',
297
297
  }),
298
298
  sortCode: createMockTextInputComponent({
299
299
  uid: '0.1.1',
300
300
  id: 'sortCode',
301
- value: '04-00-04'
302
- })
301
+ value: '04-00-04',
302
+ }),
303
303
  },
304
304
  hidden: false,
305
- summariser: function () { return ({}); }
306
- })
305
+ summariser: function () { return ({}); },
306
+ }),
307
307
  },
308
308
  hidden: false,
309
- summariser: function () { return ({}); }
309
+ summariser: function () { return ({}); },
310
310
  }),
311
311
  ];
312
312
  _a = expect;
@@ -316,8 +316,8 @@ describe('getSubmittableData', function () {
316
316
  name: 'Florence Jones',
317
317
  bankInfo: {
318
318
  accountNumber: '12345678',
319
- sortCode: '04-00-04'
320
- }
319
+ sortCode: '04-00-04',
320
+ },
321
321
  });
322
322
  return [2 /*return*/];
323
323
  }
@@ -341,16 +341,16 @@ describe('getSubmittableData', function () {
341
341
  accountNumber: createMockTextInputComponent({
342
342
  uid: '0.0',
343
343
  id: 'account',
344
- value: '12345678'
344
+ value: '12345678',
345
345
  }),
346
346
  sortCode: createMockTextInputComponent({
347
347
  uid: '0.1',
348
348
  id: 'sortCode',
349
- value: '04-00-04'
350
- })
349
+ value: '04-00-04',
350
+ }),
351
351
  },
352
352
  hidden: false,
353
- summariser: function () { return ({}); }
353
+ summariser: function () { return ({}); },
354
354
  }),
355
355
  ],
356
356
  endComponents: [
@@ -361,13 +361,13 @@ describe('getSubmittableData', function () {
361
361
  name: createMockTextInputComponent({
362
362
  uid: '0.1',
363
363
  id: 'name',
364
- value: 'Florence Jones'
365
- })
364
+ value: 'Florence Jones',
365
+ }),
366
366
  },
367
367
  hidden: false,
368
- summariser: function () { return ({}); }
368
+ summariser: function () { return ({}); },
369
369
  }),
370
- ]
370
+ ],
371
371
  }),
372
372
  ];
373
373
  _a = expect;
@@ -376,7 +376,7 @@ describe('getSubmittableData', function () {
376
376
  _a.apply(void 0, [_b.sent()]).toStrictEqual({
377
377
  accountNumber: '12345678',
378
378
  sortCode: '04-00-04',
379
- name: 'Florence Jones'
379
+ name: 'Florence Jones',
380
380
  });
381
381
  return [2 /*return*/];
382
382
  }