@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
@@ -61,7 +61,7 @@ var getSearchStep = function (search) {
61
61
  schemas: [],
62
62
  layout: [
63
63
  __assign({ type: 'search', title: 'Title', url: '/search', method: 'GET', param: 'query', emptyMessage: 'No results' }, search),
64
- ]
64
+ ],
65
65
  });
66
66
  };
67
67
  var getSearchResponse = function (query) {
@@ -74,8 +74,8 @@ var getSearchResponse = function (query) {
74
74
  value: {
75
75
  id: 'search-result-action-id-01',
76
76
  url: "/next-step",
77
- method: 'GET'
78
- }
77
+ method: 'GET',
78
+ },
79
79
  },
80
80
  {
81
81
  type: 'search',
@@ -85,10 +85,10 @@ var getSearchResponse = function (query) {
85
85
  url: "/new-search",
86
86
  method: 'GET',
87
87
  param: 'new-query',
88
- query: 'new query with special characters (!@£$%^&*)'
89
- }
88
+ query: 'new query with special characters (!@£$%^&*)',
89
+ },
90
90
  },
91
- ]
91
+ ],
92
92
  }));
93
93
  };
94
94
  describe('DynamicFlow / Search Layout Component', function () {
@@ -127,7 +127,7 @@ describe('DynamicFlow / Search Layout Component', function () {
127
127
  return [4 /*yield*/, waitFor(function () {
128
128
  return expect(onEvent).toHaveBeenCalledWith('Dynamic Flow - Search Started', {
129
129
  flowId: 'the-flow-id',
130
- stepId: 'Features/Search'
130
+ stepId: 'Features/Search',
131
131
  });
132
132
  })];
133
133
  case 2:
@@ -202,7 +202,7 @@ describe('DynamicFlow / Search Layout Component', function () {
202
202
  _a.sent();
203
203
  expect(httpClient).toHaveBeenCalledWith('/search', expect.objectContaining({
204
204
  method: 'POST',
205
- body: JSON.stringify({ query: query })
205
+ body: JSON.stringify({ query: query }),
206
206
  }));
207
207
  return [2 /*return*/];
208
208
  }
@@ -357,7 +357,7 @@ describe('DynamicFlow / Search Layout Component', function () {
357
357
  case 0:
358
358
  httpClient = jest.fn(getMockHttpClient({
359
359
  '/search?query=abcd': function () { return Promise.resolve(getSearchResponse('abcd')); },
360
- '/next-step': function () { return Promise.resolve(new Response(JSON.stringify(nextStep))); }
360
+ '/next-step': function () { return Promise.resolve(new Response(JSON.stringify(nextStep))); },
361
361
  }));
362
362
  onEvent = jest.fn();
363
363
  title = 'Search for something';
@@ -369,9 +369,9 @@ describe('DynamicFlow / Search Layout Component', function () {
369
369
  layout: [
370
370
  {
371
371
  type: 'paragraph',
372
- text: 'This is the next step.'
372
+ text: 'This is the next step.',
373
373
  },
374
- ]
374
+ ],
375
375
  };
376
376
  renderWithProviders(_jsx(DynamicFlow, { flowId: "the-flow-id", httpClient: httpClient, initialStep: searchStep, onCompletion: onCompletion, onError: onError, onEvent: onEvent }));
377
377
  input = screen.getByLabelText(title);
@@ -392,7 +392,7 @@ describe('DynamicFlow / Search Layout Component', function () {
392
392
  flowId: 'the-flow-id',
393
393
  stepId: 'Features/Search',
394
394
  type: 'action',
395
- actionId: 'search-result-action-id-01'
395
+ actionId: 'search-result-action-id-01',
396
396
  });
397
397
  return [2 /*return*/];
398
398
  }
@@ -407,7 +407,7 @@ describe('DynamicFlow / Search Layout Component', function () {
407
407
  case 0:
408
408
  httpClient = jest.fn(getMockHttpClient({
409
409
  '/search?query=abcd': function () { return Promise.resolve(getSearchResponse('abcd')); },
410
- '/new-search?new-query=new+query+with+special+characters+%28%21%40%C2%A3%24%25%5E%26*%29': function () { return Promise.resolve(getSearchResponse('new query results')); }
410
+ '/new-search?new-query=new+query+with+special+characters+%28%21%40%C2%A3%24%25%5E%26*%29': function () { return Promise.resolve(getSearchResponse('new query results')); },
411
411
  }));
412
412
  title = 'Search for something';
413
413
  searchStep = getSearchStep({ title: title, url: '/search' });
@@ -78,12 +78,12 @@ describe('DynamicFlow', function () {
78
78
  url: '/action',
79
79
  method: 'POST',
80
80
  data: {
81
- foo: 'bar'
82
- }
83
- }
81
+ foo: 'bar',
82
+ },
83
+ },
84
84
  });
85
85
  },
86
- '/action': function () { return respondWith(schemas.object); }
86
+ '/action': function () { return respondWith(schemas.object); },
87
87
  });
88
88
  renderWithProviders(_jsx(DynamicFlow, { flowId: "the-flow-id", httpClient: mockHttpClient, initialAction: { method: 'GET', url: '/form' }, onCompletion: onCompletion, onError: onError }));
89
89
  expect(screen.getByTestId('loader')).toBeInTheDocument();
@@ -108,12 +108,12 @@ describe('DynamicFlow', function () {
108
108
  url: '/action',
109
109
  method: 'POST',
110
110
  data: {
111
- foo: 'bar'
112
- }
113
- }
111
+ foo: 'bar',
112
+ },
113
+ },
114
114
  });
115
115
  },
116
- '/action': function () { return respondWith(layouts.alert); }
116
+ '/action': function () { return respondWith(layouts.alert); },
117
117
  });
118
118
  renderWithProviders(_jsx(DynamicFlow, { flowId: "the-flow-id", httpClient: mockHttpClient, initialAction: { method: 'GET', url: '/form' }, onCompletion: onCompletion, onError: onError }));
119
119
  expect(screen.getByTestId('loader')).toBeInTheDocument();
@@ -144,9 +144,9 @@ describe('DynamicFlow', function () {
144
144
  title: 'Name',
145
145
  type: 'string',
146
146
  refreshStepOnChange: true,
147
- refreshUrl: '/refresh'
148
- }
149
- }
147
+ refreshUrl: '/refresh',
148
+ },
149
+ },
150
150
  },
151
151
  ] });
152
152
  mockHttpClient = getMockHttpClient({
@@ -157,12 +157,12 @@ describe('DynamicFlow', function () {
157
157
  url: '/action',
158
158
  method: 'POST',
159
159
  data: {
160
- foo: 'bar'
161
- }
162
- }
160
+ foo: 'bar',
161
+ },
162
+ },
163
163
  });
164
164
  },
165
- '/action': function () { return respondWith(layouts.alert); }
165
+ '/action': function () { return respondWith(layouts.alert); },
166
166
  });
167
167
  renderWithProviders(_jsx(DynamicFlow, { flowId: "the-flow-id", httpClient: mockHttpClient, initialAction: { method: 'GET', url: '/form' }, onCompletion: onCompletion, onError: onError }));
168
168
  expect(screen.getByTestId('loader')).toBeInTheDocument();
@@ -194,11 +194,11 @@ describe('DynamicFlow', function () {
194
194
  action: {
195
195
  exit: true,
196
196
  result: {
197
- foo: 'bar'
198
- }
199
- }
197
+ foo: 'bar',
198
+ },
199
+ },
200
200
  });
201
- }
201
+ },
202
202
  });
203
203
  onCompletion = jest.fn();
204
204
  renderWithProviders(_jsx(DynamicFlow, { flowId: "the-flow-id", httpClient: mockHttpClient, initialAction: { method: 'GET', url: '/form' }, onCompletion: onCompletion, onError: onError }));
@@ -217,8 +217,8 @@ describe('DynamicFlow', function () {
217
217
  type: 'object',
218
218
  displayOrder: ['name'],
219
219
  properties: {
220
- name: { type: 'string', title: 'Name' }
221
- }
220
+ name: { type: 'string', title: 'Name' },
221
+ },
222
222
  };
223
223
  var step = {
224
224
  title: 'title',
@@ -227,18 +227,18 @@ describe('DynamicFlow', function () {
227
227
  layout: [
228
228
  {
229
229
  type: 'form',
230
- schemaId: schema.$id
230
+ schemaId: schema.$id,
231
231
  },
232
232
  {
233
233
  type: 'button',
234
234
  title: 'Submit',
235
- action: { url: '/submit' }
235
+ action: { url: '/submit' },
236
236
  },
237
237
  ],
238
- errors: undefined
238
+ errors: undefined,
239
239
  };
240
240
  var errors = {
241
- validation: { name: 'Server-side error for "name" field' }
241
+ validation: { name: 'Server-side error for "name" field' },
242
242
  };
243
243
  var httpClient = function () { return Promise.resolve(new Response(JSON.stringify(__assign(__assign({}, step), { errors: errors })))); };
244
244
  var renderDFWithInitialStep = function () {
@@ -307,10 +307,10 @@ describe('DynamicFlow', function () {
307
307
  id: 'submit-action-id',
308
308
  url: '/submit',
309
309
  title: 'Submit',
310
- type: 'primary'
311
- }
310
+ type: 'primary',
311
+ },
312
312
  },
313
- ]
313
+ ],
314
314
  };
315
315
  describe('stepId', function () {
316
316
  it('includes step id in analytics event metadata', function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -364,12 +364,12 @@ describe('DynamicFlow', function () {
364
364
  title: 'title',
365
365
  type: 'form',
366
366
  schemas: [],
367
- layout: [{ type: 'button', title: 'Submit', action: action }]
367
+ layout: [{ type: 'button', title: 'Submit', action: action }],
368
368
  }); };
369
369
  describe('when action.id is provided', function () {
370
370
  var step = getStepWithAction({
371
371
  id: 'submit-action-id',
372
- url: '/submit'
372
+ url: '/submit',
373
373
  });
374
374
  it('uses it as actionId in the analytics event', function () { return __awaiter(void 0, void 0, void 0, function () {
375
375
  var onEvent;
@@ -390,7 +390,7 @@ describe('DynamicFlow', function () {
390
390
  describe('when action.$id is provided', function () {
391
391
  var step = getStepWithAction({
392
392
  $id: 'submit-action-$id',
393
- url: '/submit'
393
+ url: '/submit',
394
394
  });
395
395
  it('uses it as actionId in the analytics event', function () { return __awaiter(void 0, void 0, void 0, function () {
396
396
  var onEvent;
@@ -412,7 +412,7 @@ describe('DynamicFlow', function () {
412
412
  var step = getStepWithAction({
413
413
  id: 'submit-action-id',
414
414
  $id: 'submit-action-$id',
415
- url: '/submit'
415
+ url: '/submit',
416
416
  });
417
417
  it('prefers action.id as actionId in the analytics event', function () { return __awaiter(void 0, void 0, void 0, function () {
418
418
  var onEvent;
@@ -446,10 +446,10 @@ describe('DynamicFlow', function () {
446
446
  properties: {
447
447
  name: {
448
448
  title: 'Full name',
449
- type: 'string'
450
- }
449
+ type: 'string',
450
+ },
451
451
  },
452
- displayOrder: ['name']
452
+ displayOrder: ['name'],
453
453
  },
454
454
  {
455
455
  $id: '#schema-2',
@@ -457,27 +457,27 @@ describe('DynamicFlow', function () {
457
457
  properties: {
458
458
  city: {
459
459
  title: 'City',
460
- type: 'string'
461
- }
460
+ type: 'string',
461
+ },
462
462
  },
463
463
  required: ['city'],
464
- displayOrder: ['city']
464
+ displayOrder: ['city'],
465
465
  },
466
466
  ],
467
467
  layout: [
468
468
  {
469
469
  type: 'form',
470
- schemaId: '#schema-1'
470
+ schemaId: '#schema-1',
471
471
  },
472
472
  {
473
473
  type: 'button',
474
474
  action: {
475
475
  url: '/submit',
476
476
  title: 'Submit',
477
- type: 'primary'
478
- }
477
+ type: 'primary',
478
+ },
479
479
  },
480
- ]
480
+ ],
481
481
  };
482
482
  describe('and a form is submitted', function () {
483
483
  it('form submits successfully', function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -504,9 +504,9 @@ describe('DynamicFlow', function () {
504
504
  actions: [],
505
505
  details: {
506
506
  description: 'No layout description',
507
- title: 'No layout'
507
+ title: 'No layout',
508
508
  },
509
- success: true
509
+ success: true,
510
510
  };
511
511
  it('logs a deprecation warning if initial step has no layout', function () { return __awaiter(void 0, void 0, void 0, function () {
512
512
  var onLog;
@@ -523,7 +523,7 @@ describe('DynamicFlow', function () {
523
523
  switch (_a.label) {
524
524
  case 0:
525
525
  mockHttpClient = getMockHttpClient({
526
- '/submit': function () { return respondWith(stepWithNoLayout); }
526
+ '/submit': function () { return respondWith(stepWithNoLayout); },
527
527
  });
528
528
  stepWithLayout = {
529
529
  id: 'no-layout',
@@ -534,10 +534,10 @@ describe('DynamicFlow', function () {
534
534
  type: 'button',
535
535
  title: 'Submit',
536
536
  action: {
537
- url: '/submit'
538
- }
537
+ url: '/submit',
538
+ },
539
539
  },
540
- ]
540
+ ],
541
541
  };
542
542
  onLog = jest.fn();
543
543
  renderWithProviders(_jsx(DynamicFlow, { flowId: "the-flow-id", httpClient: mockHttpClient, initialStep: stepWithLayout, onCompletion: onCompletion, onError: onError, onLog: onLog }));
@@ -60,7 +60,7 @@ jest.spyOn(global, 'FileReader').mockImplementation(function () {
60
60
  // eslint-disable-next-line no-return-assign
61
61
  addEventListener: function (event, callback) { return (Reader[event] = callback); },
62
62
  result: IMAGE_DATA_URL,
63
- readAsDataURL: function () { return Reader.loadend(); }
63
+ readAsDataURL: function () { return Reader.loadend(); },
64
64
  };
65
65
  return Reader;
66
66
  });
@@ -71,7 +71,7 @@ describe('Given a component for dynamically rendering image', function () {
71
71
  layout: [
72
72
  __assign({ type: 'image', url: IMAGE_DATA_URL, accessibilityDescription: 'an image', text: 'an image', size: 'md' }, overrides),
73
73
  ],
74
- schemas: []
74
+ schemas: [],
75
75
  }); };
76
76
  var mockHttpClient = jest.fn(function (url) {
77
77
  // eslint-disable-next-line @typescript-eslint/no-base-to-string
@@ -245,7 +245,7 @@ describe('Given a component for dynamically rendering image', function () {
245
245
  describe('when the text property is set', function () {
246
246
  var img_props = getProps({
247
247
  url: DIFFERENT_ORIGIN_URL,
248
- accessibilityDescription: 'alt text'
248
+ accessibilityDescription: 'alt text',
249
249
  });
250
250
  it('uses it for alt-text in the image tag', function () { return __awaiter(void 0, void 0, void 0, function () {
251
251
  return __generator(this, function (_a) {
@@ -266,7 +266,7 @@ describe('Given a component for dynamically rendering image', function () {
266
266
  describe('when the accessibilityDescription property is set', function () {
267
267
  var img_props = getProps({
268
268
  url: DIFFERENT_ORIGIN_URL,
269
- accessibilityDescription: 'alt text'
269
+ accessibilityDescription: 'alt text',
270
270
  });
271
271
  it('uses it for alt-text in the image tag', function () { return __awaiter(void 0, void 0, void 0, function () {
272
272
  return __generator(this, function (_a) {
@@ -21,10 +21,10 @@ describe('DynamicInstructions', function () {
21
21
  {
22
22
  type: 'instructions',
23
23
  items: instructions,
24
- title: 'This is a title'
24
+ title: 'This is a title',
25
25
  },
26
26
  ],
27
- schemas: []
27
+ schemas: [],
28
28
  }); };
29
29
  var getProps = function (instructions, overrides) {
30
30
  if (overrides === void 0) { overrides = {}; }
@@ -38,7 +38,7 @@ describe('DynamicInstructions', function () {
38
38
  renderWithProviders(_jsx(DynamicFlow, __assign({}, getProps([
39
39
  {
40
40
  context: 'positive',
41
- text: 'Do this'
41
+ text: 'Do this',
42
42
  },
43
43
  { context: 'warning', text: 'Dont do this' },
44
44
  ]))));
@@ -58,12 +58,12 @@ var initialStep = function (schema) { return ({
58
58
  {
59
59
  type: 'button',
60
60
  title: 'Submit',
61
- action: { url: '/submit', method: 'POST' }
61
+ action: { url: '/submit', method: 'POST' },
62
62
  },
63
63
  ],
64
64
  schemas: [
65
65
  __assign(__assign({}, schema), { $id: '#schema' }),
66
- ]
66
+ ],
67
67
  }); };
68
68
  var user = userEvent.setup();
69
69
  var mockHttpClient = jest.fn();
@@ -80,8 +80,8 @@ describe('Given an object schema which is marked as hidden', function () {
80
80
  displayOrder: ['name', 'location'],
81
81
  properties: {
82
82
  name: { type: 'string', title: 'Name' },
83
- location: { type: 'string', title: 'Location' }
84
- }
83
+ location: { type: 'string', title: 'Location' },
84
+ },
85
85
  };
86
86
  it('does not render UI components for the hidden schema', function () { return __awaiter(void 0, void 0, void 0, function () {
87
87
  return __generator(this, function (_a) {
@@ -107,9 +107,9 @@ describe('Given a hidden object schema whose children have default values', func
107
107
  hidden: true,
108
108
  displayOrder: ['name', 'location'],
109
109
  properties: {
110
- name: { type: 'string', title: 'Name', "default": 'Bob' },
111
- location: { type: 'string', title: 'Location', "default": 'Earth' }
112
- }
110
+ name: { type: 'string', title: 'Name', default: 'Bob' },
111
+ location: { type: 'string', title: 'Location', default: 'Earth' },
112
+ },
113
113
  };
114
114
  renderWithProviders(_jsx(DynamicFlow, __assign({}, getProps(schema))));
115
115
  return [4 /*yield*/, user.click(screen.getByText('Submit'))];
@@ -132,8 +132,8 @@ describe('Given an object schema with one of its properties marked as hidden', f
132
132
  required: ['location'],
133
133
  properties: {
134
134
  name: { type: 'string', title: 'Name' },
135
- location: { type: 'string', title: 'Location', hidden: true }
136
- }
135
+ location: { type: 'string', title: 'Location', hidden: true },
136
+ },
137
137
  };
138
138
  it('only renders the schemas that are not hidden', function () {
139
139
  renderWithProviders(_jsx(DynamicFlow, __assign({}, getProps(schema))));
@@ -190,8 +190,8 @@ describe('Given an object schema with one of its properties being a const and hi
190
190
  required: ['profileId'],
191
191
  properties: {
192
192
  name: { type: 'string', title: 'Name' },
193
- profileId: { "const": '12345678', hidden: true }
194
- }
193
+ profileId: { const: '12345678', hidden: true },
194
+ },
195
195
  };
196
196
  it('allows submitting because the hidden const provides its own value', function () { return __awaiter(void 0, void 0, void 0, function () {
197
197
  var props;
@@ -222,13 +222,13 @@ describe('Given a oneOf schema with hidden const options', function () {
222
222
  currency: {
223
223
  title: 'Currency',
224
224
  oneOf: [
225
- { "const": 'EUR', title: 'EUR', hidden: true },
226
- { "const": 'GBP', title: 'GBP', hidden: true },
227
- { "const": 'USD', title: 'USD', hidden: true },
225
+ { const: 'EUR', title: 'EUR', hidden: true },
226
+ { const: 'GBP', title: 'GBP', hidden: true },
227
+ { const: 'USD', title: 'USD', hidden: true },
228
228
  ],
229
- control: 'radio'
230
- }
231
- }
229
+ control: 'radio',
230
+ },
231
+ },
232
232
  };
233
233
  it('renders all options, including the hidden ones', function () {
234
234
  renderWithProviders(_jsx(DynamicFlow, __assign({}, getProps(schema))));
@@ -255,8 +255,8 @@ describe('Given a oneOf schema with hidden non-const options', function () {
255
255
  required: ['name', 'something'],
256
256
  properties: {
257
257
  name: { type: 'string', title: 'Name' },
258
- something: { type: 'string', title: 'Something', hidden: true }
259
- }
258
+ something: { type: 'string', title: 'Something', hidden: true },
259
+ },
260
260
  },
261
261
  {
262
262
  type: 'object',
@@ -265,13 +265,13 @@ describe('Given a oneOf schema with hidden non-const options', function () {
265
265
  required: ['companyName', 'something'],
266
266
  properties: {
267
267
  companyName: { type: 'string', title: 'Company Name' },
268
- something: { type: 'string', title: 'Something', hidden: true }
269
- }
268
+ something: { type: 'string', title: 'Something', hidden: true },
269
+ },
270
270
  },
271
271
  ],
272
- control: 'tab'
273
- }
274
- }
272
+ control: 'tab',
273
+ },
274
+ },
275
275
  };
276
276
  it('renders all options, including the hidden ones', function () {
277
277
  renderWithProviders(_jsx(DynamicFlow, __assign({}, getProps(schema))));
@@ -63,27 +63,27 @@ describe('ModalLayout', function () {
63
63
  {
64
64
  type: 'heading',
65
65
  size: 'xl',
66
- text: 'Modal Content'
66
+ text: 'Modal Content',
67
67
  },
68
68
  {
69
69
  type: 'paragraph',
70
- text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
70
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
71
71
  },
72
72
  {
73
73
  type: 'button',
74
74
  title: 'Submit Action',
75
- action: { method: 'POST', url: '/submit' }
75
+ action: { method: 'POST', url: '/submit' },
76
76
  },
77
77
  {
78
78
  type: 'button',
79
79
  title: 'Exit Action',
80
- action: { exit: true, result: { foo: 'bar' } }
80
+ action: { exit: true, result: { foo: 'bar' } },
81
81
  },
82
- ]
83
- }
82
+ ],
83
+ },
84
84
  },
85
85
  ],
86
- schemas: []
86
+ schemas: [],
87
87
  }); };
88
88
  var mockHttpClient = jest.fn();
89
89
  beforeEach(function () { return mockHttpClient.mockClear(); });
@@ -94,7 +94,7 @@ describe('ModalLayout', function () {
94
94
  onCompletion: jest.fn(),
95
95
  onError: jest.fn(),
96
96
  onEvent: jest.fn(),
97
- onLog: jest.fn()
97
+ onLog: jest.fn(),
98
98
  }); };
99
99
  describe('when the step is initialised', function () {
100
100
  it('renders the trigger title, but not the content', function () {
@@ -161,7 +161,7 @@ describe('ModalLayout', function () {
161
161
  case 2:
162
162
  _a.sent();
163
163
  expect(props.onCompletion).toHaveBeenCalledWith({
164
- foo: 'bar'
164
+ foo: 'bar',
165
165
  });
166
166
  return [2 /*return*/];
167
167
  }
@@ -180,7 +180,7 @@ describe('ModalLayout', function () {
180
180
  layout: [
181
181
  {
182
182
  type: 'form',
183
- schemaId: '#schema'
183
+ schemaId: '#schema',
184
184
  },
185
185
  {
186
186
  type: 'modal',
@@ -190,19 +190,19 @@ describe('ModalLayout', function () {
190
190
  {
191
191
  type: 'heading',
192
192
  size: 'xl',
193
- text: 'Modal Content'
193
+ text: 'Modal Content',
194
194
  },
195
195
  {
196
196
  type: 'paragraph',
197
- text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
197
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
198
198
  },
199
199
  {
200
200
  type: 'button',
201
201
  title: 'Submit Action',
202
- action: { method: 'POST', url: '/submit' }
202
+ action: { method: 'POST', url: '/submit' },
203
203
  },
204
- ]
205
- }
204
+ ],
205
+ },
206
206
  },
207
207
  ],
208
208
  schemas: [
@@ -214,11 +214,11 @@ describe('ModalLayout', function () {
214
214
  properties: {
215
215
  name: {
216
216
  type: 'string',
217
- title: 'Name'
218
- }
219
- }
217
+ title: 'Name',
218
+ },
219
+ },
220
220
  },
221
- ]
221
+ ],
222
222
  };
223
223
  props = {
224
224
  flowId: 'flow-id',
@@ -227,7 +227,7 @@ describe('ModalLayout', function () {
227
227
  onCompletion: jest.fn(),
228
228
  onError: jest.fn(),
229
229
  onEvent: jest.fn(),
230
- onLog: jest.fn()
230
+ onLog: jest.fn(),
231
231
  };
232
232
  renderWithProviders(_jsx(DynamicFlow, __assign({}, props)));
233
233
  return [4 /*yield*/, userEvent.click(screen.getByText('Open Modal'))];