@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
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  import { getMockMapperProps, getMockSchemaMapperProps, mockUpdateFunction, } from '../tests/test-utils';
49
49
  import { oneOfSchemaToComponent } from './oneOfSchemaToComponent';
50
50
  jest.mock('../../../components/utils/component-utils', function () { return ({
51
- getInputUpdateFunction: jest.fn().mockImplementation(function () { return jest.fn(); })
51
+ getInputUpdateFunction: jest.fn().mockImplementation(function () { return jest.fn(); }),
52
52
  }); });
53
53
  describe('oneOfSchemaToComponent', function () {
54
54
  describe('initial model handling', function () {
@@ -60,9 +60,9 @@ describe('oneOfSchemaToComponent', function () {
60
60
  case 0:
61
61
  schemaMapperProps = getMockSchemaMapperProps({
62
62
  schema: {
63
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }]
63
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
64
64
  },
65
- model: null
65
+ model: null,
66
66
  });
67
67
  component = oneOfSchemaToComponent(schemaMapperProps, getMockMapperProps());
68
68
  _a = expect;
@@ -83,10 +83,10 @@ describe('oneOfSchemaToComponent', function () {
83
83
  case 0:
84
84
  schemaMapperProps = getMockSchemaMapperProps({
85
85
  schema: {
86
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }],
87
- "default": 'USD'
86
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
87
+ default: 'USD',
88
88
  },
89
- model: null
89
+ model: null,
90
90
  });
91
91
  component = oneOfSchemaToComponent(schemaMapperProps, getMockMapperProps());
92
92
  _a = expect;
@@ -106,9 +106,9 @@ describe('oneOfSchemaToComponent', function () {
106
106
  case 0:
107
107
  schemaMapperProps = getMockSchemaMapperProps({
108
108
  schema: {
109
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }]
109
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
110
110
  },
111
- model: 'USD'
111
+ model: 'USD',
112
112
  });
113
113
  component = oneOfSchemaToComponent(schemaMapperProps, getMockMapperProps());
114
114
  _a = expect;
@@ -128,10 +128,10 @@ describe('oneOfSchemaToComponent', function () {
128
128
  case 0:
129
129
  schemaMapperProps = getMockSchemaMapperProps({
130
130
  schema: {
131
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }],
132
- "default": 'EUR'
131
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
132
+ default: 'EUR',
133
133
  },
134
- model: 'USD'
134
+ model: 'USD',
135
135
  });
136
136
  component = oneOfSchemaToComponent(schemaMapperProps, getMockMapperProps());
137
137
  _a = expect;
@@ -147,10 +147,10 @@ describe('oneOfSchemaToComponent', function () {
147
147
  it('sets the initial error if provided', function () {
148
148
  var schemaMapperProps = getMockSchemaMapperProps({
149
149
  schema: {
150
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }]
150
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
151
151
  },
152
152
  model: null,
153
- validationErrors: 'You must select a currency'
153
+ validationErrors: 'You must select a currency',
154
154
  });
155
155
  var component = oneOfSchemaToComponent(schemaMapperProps, getMockMapperProps());
156
156
  expect(component.errors).toEqual(['You must select a currency']);
@@ -161,9 +161,9 @@ describe('oneOfSchemaToComponent', function () {
161
161
  it('fails validation', function () {
162
162
  var schemaMapperProps = __assign(__assign({}, getMockSchemaMapperProps({
163
163
  schema: {
164
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }]
164
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
165
165
  },
166
- model: null
166
+ model: null,
167
167
  })), { required: true });
168
168
  var draftComponent = {};
169
169
  mockUpdateFunction(draftComponent);
@@ -176,9 +176,9 @@ describe('oneOfSchemaToComponent', function () {
176
176
  it('passes validation', function () {
177
177
  var schemaMapperProps = __assign(__assign({}, getMockSchemaMapperProps({
178
178
  schema: {
179
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }]
179
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
180
180
  },
181
- model: 'EUR'
181
+ model: 'EUR',
182
182
  })), { required: true });
183
183
  var component = oneOfSchemaToComponent(schemaMapperProps, getMockMapperProps());
184
184
  expect(component.validate()).toBe(true);
@@ -192,19 +192,19 @@ describe('oneOfSchemaToComponent', function () {
192
192
  schema: {
193
193
  analyticsId: 'currency',
194
194
  oneOf: [
195
- { "const": 'EUR', analyticsId: 'EUR' },
196
- { "const": 'USD', analyticsId: 'USD' },
197
- { "const": 'GBP', analyticsId: 'GBP' },
198
- ]
195
+ { const: 'EUR', analyticsId: 'EUR' },
196
+ { const: 'USD', analyticsId: 'USD' },
197
+ { const: 'GBP', analyticsId: 'GBP' },
198
+ ],
199
199
  },
200
- model: null
200
+ model: null,
201
201
  });
202
202
  var defaultMapperProps = getMockMapperProps();
203
203
  var component = oneOfSchemaToComponent(schemaMapperProps, defaultMapperProps);
204
204
  component.onSelect(1);
205
205
  expect(defaultMapperProps.trackEvent).toHaveBeenCalledWith('OneOf Selected', {
206
206
  oneOfId: 'currency',
207
- schemaId: 'USD'
207
+ schemaId: 'USD',
208
208
  });
209
209
  });
210
210
  it('uses $id in the absence of analyticsId', function () {
@@ -212,19 +212,19 @@ describe('oneOfSchemaToComponent', function () {
212
212
  schema: {
213
213
  $id: 'currency',
214
214
  oneOf: [
215
- { "const": 'EUR', $id: 'EUR' },
216
- { "const": 'USD', $id: 'USD' },
217
- { "const": 'GBP', $id: 'GBP' },
218
- ]
215
+ { const: 'EUR', $id: 'EUR' },
216
+ { const: 'USD', $id: 'USD' },
217
+ { const: 'GBP', $id: 'GBP' },
218
+ ],
219
219
  },
220
- model: null
220
+ model: null,
221
221
  });
222
222
  var defaultMapperProps = getMockMapperProps();
223
223
  var component = oneOfSchemaToComponent(schemaMapperProps, defaultMapperProps);
224
224
  component.onSelect(1);
225
225
  expect(defaultMapperProps.trackEvent).toHaveBeenCalledWith('OneOf Selected', {
226
226
  oneOfId: 'currency',
227
- schemaId: 'USD'
227
+ schemaId: 'USD',
228
228
  });
229
229
  });
230
230
  it('favours analyticsId over $id', function () {
@@ -233,31 +233,31 @@ describe('oneOfSchemaToComponent', function () {
233
233
  analyticsId: 'currency',
234
234
  $id: 'currency-$id',
235
235
  oneOf: [
236
- { "const": 'EUR', analyticsId: 'EUR', $id: 'EUR-$id' },
237
- { "const": 'USD', analyticsId: 'USD', $id: 'USD-$id' },
238
- { "const": 'GBP', analyticsId: 'GBP', $id: 'GBP-$id' },
239
- ]
236
+ { const: 'EUR', analyticsId: 'EUR', $id: 'EUR-$id' },
237
+ { const: 'USD', analyticsId: 'USD', $id: 'USD-$id' },
238
+ { const: 'GBP', analyticsId: 'GBP', $id: 'GBP-$id' },
239
+ ],
240
240
  },
241
- model: null
241
+ model: null,
242
242
  });
243
243
  var defaultMapperProps = getMockMapperProps();
244
244
  var component = oneOfSchemaToComponent(schemaMapperProps, defaultMapperProps);
245
245
  component.onSelect(1);
246
246
  expect(defaultMapperProps.trackEvent).toHaveBeenCalledWith('OneOf Selected', {
247
247
  oneOfId: 'currency',
248
- schemaId: 'USD'
248
+ schemaId: 'USD',
249
249
  });
250
250
  });
251
251
  it("doesn't trigger an event if the main schema doesn't have an analyticsId or $id", function () {
252
252
  var schemaMapperProps = getMockSchemaMapperProps({
253
253
  schema: {
254
254
  oneOf: [
255
- { "const": 'EUR', analyticsId: 'EUR', $id: 'EUR-$id' },
256
- { "const": 'USD', analyticsId: 'USD', $id: 'USD-$id' },
257
- { "const": 'GBP', analyticsId: 'GBP', $id: 'GBP-$id' },
258
- ]
255
+ { const: 'EUR', analyticsId: 'EUR', $id: 'EUR-$id' },
256
+ { const: 'USD', analyticsId: 'USD', $id: 'USD-$id' },
257
+ { const: 'GBP', analyticsId: 'GBP', $id: 'GBP-$id' },
258
+ ],
259
259
  },
260
- model: null
260
+ model: null,
261
261
  });
262
262
  var defaultMapperProps = getMockMapperProps();
263
263
  var component = oneOfSchemaToComponent(schemaMapperProps, defaultMapperProps);
@@ -268,16 +268,16 @@ describe('oneOfSchemaToComponent', function () {
268
268
  var schemaMapperProps = getMockSchemaMapperProps({
269
269
  schema: {
270
270
  analyticsId: 'currency',
271
- oneOf: [{ "const": 'EUR' }, { "const": 'USD' }, { "const": 'GBP' }]
271
+ oneOf: [{ const: 'EUR' }, { const: 'USD' }, { const: 'GBP' }],
272
272
  },
273
- model: null
273
+ model: null,
274
274
  });
275
275
  var defaultMapperProps = getMockMapperProps();
276
276
  var component = oneOfSchemaToComponent(schemaMapperProps, defaultMapperProps);
277
277
  component.onSelect(1);
278
278
  expect(defaultMapperProps.trackEvent).toHaveBeenCalledWith('OneOf Selected', {
279
279
  oneOfId: 'currency',
280
- schemaId: undefined
280
+ schemaId: undefined,
281
281
  });
282
282
  });
283
283
  });
@@ -291,24 +291,24 @@ describe('oneOfSchemaToComponent', function () {
291
291
  type: 'object',
292
292
  analyticsId: 'option-A',
293
293
  displayOrder: ['name'],
294
- properties: { name: { type: 'string' } }
294
+ properties: { name: { type: 'string' } },
295
295
  },
296
296
  {
297
297
  type: 'object',
298
298
  analyticsId: 'option-B',
299
299
  displayOrder: ['name'],
300
- properties: { name: { type: 'string' } }
300
+ properties: { name: { type: 'string' } },
301
301
  },
302
- ]
302
+ ],
303
303
  },
304
- model: null
304
+ model: null,
305
305
  });
306
306
  var defaultMapperProps = getMockMapperProps();
307
307
  var component = oneOfSchemaToComponent(schemaMapperProps, defaultMapperProps);
308
308
  component.onSelect(1);
309
309
  expect(defaultMapperProps.trackEvent).toHaveBeenCalledWith('OneOf Selected', {
310
310
  oneOfId: 'options-a-or-b',
311
- schemaId: 'option-B'
311
+ schemaId: 'option-B',
312
312
  });
313
313
  });
314
314
  });
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  import { getMockMapperProps, getMockSchemaMapperProps, mockUpdateFunction, } from '../tests/test-utils';
38
38
  import { stringSchemaToComponent } from './stringSchemaToComponent';
39
39
  jest.mock('../../../components/utils/component-utils', function () { return ({
40
- getInputUpdateFunction: jest.fn().mockImplementation(function () { return jest.fn(); })
40
+ getInputUpdateFunction: jest.fn().mockImplementation(function () { return jest.fn(); }),
41
41
  }); });
42
42
  describe('stringSchemaToComponent', function () {
43
43
  var defaultMapperProps = getMockMapperProps();
@@ -50,9 +50,9 @@ describe('stringSchemaToComponent', function () {
50
50
  case 0:
51
51
  schemaMapperProps = getMockSchemaMapperProps({
52
52
  schema: {
53
- type: 'string'
53
+ type: 'string',
54
54
  },
55
- model: null
55
+ model: null,
56
56
  });
57
57
  component = stringSchemaToComponent(schemaMapperProps, defaultMapperProps);
58
58
  _a = expect;
@@ -72,9 +72,9 @@ describe('stringSchemaToComponent', function () {
72
72
  schemaMapperProps = getMockSchemaMapperProps({
73
73
  schema: {
74
74
  type: 'string',
75
- "default": 'John Smith'
75
+ default: 'John Smith',
76
76
  },
77
- model: null
77
+ model: null,
78
78
  });
79
79
  component = stringSchemaToComponent(schemaMapperProps, defaultMapperProps);
80
80
  _a = expect;
@@ -95,9 +95,9 @@ describe('stringSchemaToComponent', function () {
95
95
  case 0:
96
96
  schemaMapperProps = getMockSchemaMapperProps({
97
97
  schema: {
98
- type: 'string'
98
+ type: 'string',
99
99
  },
100
- model: 'John Smith'
100
+ model: 'John Smith',
101
101
  });
102
102
  component = stringSchemaToComponent(schemaMapperProps, defaultMapperProps);
103
103
  _a = expect;
@@ -117,9 +117,9 @@ describe('stringSchemaToComponent', function () {
117
117
  schemaMapperProps = getMockSchemaMapperProps({
118
118
  schema: {
119
119
  type: 'string',
120
- "default": 'Jane Doe'
120
+ default: 'Jane Doe',
121
121
  },
122
- model: 'John Smith'
122
+ model: 'John Smith',
123
123
  });
124
124
  component = stringSchemaToComponent(schemaMapperProps, defaultMapperProps);
125
125
  _a = expect;
@@ -137,10 +137,10 @@ describe('stringSchemaToComponent', function () {
137
137
  it('sets the initial error if provided', function () {
138
138
  var schemaMapperProps = getMockSchemaMapperProps({
139
139
  schema: {
140
- type: 'string'
140
+ type: 'string',
141
141
  },
142
142
  model: 'jane@doe.com',
143
- validationErrors: 'An account with this email already exists'
143
+ validationErrors: 'An account with this email already exists',
144
144
  });
145
145
  var component = stringSchemaToComponent(schemaMapperProps, defaultMapperProps);
146
146
  expect(component.errors).toStrictEqual(['An account with this email already exists']);
@@ -151,9 +151,9 @@ describe('stringSchemaToComponent', function () {
151
151
  var schemaMapperProps = getMockSchemaMapperProps({
152
152
  schema: {
153
153
  type: 'string',
154
- autocompleteHint: ['name', 'shipping']
154
+ autocompleteHint: ['name', 'shipping'],
155
155
  },
156
- model: 'John Smith'
156
+ model: 'John Smith',
157
157
  });
158
158
  var component = stringSchemaToComponent(schemaMapperProps, defaultMapperProps);
159
159
  expect(component.autoComplete).toBe('name shipping');
@@ -164,9 +164,9 @@ describe('stringSchemaToComponent', function () {
164
164
  var schemaMapperProps = getMockSchemaMapperProps({
165
165
  schema: {
166
166
  type: 'string',
167
- minLength: 10
167
+ minLength: 10,
168
168
  },
169
- model: 'Jane'
169
+ model: 'Jane',
170
170
  });
171
171
  var draftComponent = {};
172
172
  mockUpdateFunction(draftComponent);
@@ -178,9 +178,9 @@ describe('stringSchemaToComponent', function () {
178
178
  var schemaMapperProps = getMockSchemaMapperProps({
179
179
  schema: {
180
180
  type: 'string',
181
- maxLength: 2
181
+ maxLength: 2,
182
182
  },
183
- model: 'Jane'
183
+ model: 'Jane',
184
184
  });
185
185
  var draftComponent = {};
186
186
  mockUpdateFunction(draftComponent);
@@ -192,9 +192,9 @@ describe('stringSchemaToComponent', function () {
192
192
  var schemaMapperProps = getMockSchemaMapperProps({
193
193
  schema: {
194
194
  type: 'string',
195
- pattern: '^[a-zA-Z]*$'
195
+ pattern: '^[a-zA-Z]*$',
196
196
  },
197
- model: '012345'
197
+ model: '012345',
198
198
  });
199
199
  var draftComponent = {};
200
200
  mockUpdateFunction(draftComponent);
@@ -205,10 +205,10 @@ describe('stringSchemaToComponent', function () {
205
205
  it('sets required validation', function () {
206
206
  var schemaMapperProps = getMockSchemaMapperProps({
207
207
  schema: {
208
- type: 'string'
208
+ type: 'string',
209
209
  },
210
210
  model: null,
211
- required: true
211
+ required: true,
212
212
  });
213
213
  var draftComponent = {};
214
214
  mockUpdateFunction(draftComponent);
@@ -19,7 +19,7 @@ import { mapCommonSchemaProps } from '../utils/mapCommonSchemaProps';
19
19
  import { getValidationAsyncInitialState } from '../utils/getValidationAsyncInitialState';
20
20
  export var stringSchemaToDateInputComponent = function (schemaMapperProps, mapperProps) {
21
21
  var schema = schemaMapperProps.schema, localValue = schemaMapperProps.localValue, model = schemaMapperProps.model, _a = schemaMapperProps.required, required = _a === void 0 ? false : _a;
22
- var autocompleteHint = schema.autocompleteHint, defaultValue = schema["default"], minimumDate = schema.minimum, maximumDate = schema.maximum;
22
+ var autocompleteHint = schema.autocompleteHint, defaultValue = schema.default, minimumDate = schema.minimum, maximumDate = schema.maximum;
23
23
  var getErrorMessageFunctions = mapperProps.getErrorMessageFunctions, updateComponent = mapperProps.updateComponent, onRefresh = mapperProps.onRefresh;
24
24
  var errorMessageFunctions = getErrorMessageFunctions(schema.validationMessages);
25
25
  var _b = getPersistAsyncInitialState(schemaMapperProps, mapperProps), performPersistAsync = _b.performPersistAsync, persistedState = _b.persistedState;
@@ -19,7 +19,7 @@ import { mapCommonSchemaProps } from '../utils/mapCommonSchemaProps';
19
19
  import { getValidationAsyncInitialState } from '../utils/getValidationAsyncInitialState';
20
20
  export var stringSchemaToTextInputComponent = function (schemaMapperProps, mapperProps) {
21
21
  var schema = schemaMapperProps.schema, localValue = schemaMapperProps.localValue, model = schemaMapperProps.model, _a = schemaMapperProps.required, required = _a === void 0 ? false : _a;
22
- var autocompleteHint = schema.autocompleteHint, control = schema.control, defaultValue = schema["default"], displayFormat = schema.displayFormat, format = schema.format, validationMessages = schema.validationMessages;
22
+ var autocompleteHint = schema.autocompleteHint, control = schema.control, defaultValue = schema.default, displayFormat = schema.displayFormat, format = schema.format, validationMessages = schema.validationMessages;
23
23
  var getErrorMessageFunctions = mapperProps.getErrorMessageFunctions, updateComponent = mapperProps.updateComponent, onRefresh = mapperProps.onRefresh;
24
24
  var controlForLegacyFormat = getControlForLegacyFormat(format);
25
25
  var errorMessageFunctions = getErrorMessageFunctions(validationMessages);
@@ -27,7 +27,7 @@ var getPerformPersisAsyncFn = function (schemaMapperProps, mapperProps) {
27
27
  logEvent: logEvent,
28
28
  persistAsyncConfig: persistAsyncConfig,
29
29
  schemaId: analyticsId !== null && analyticsId !== void 0 ? analyticsId : $id,
30
- trackEvent: trackEvent
30
+ trackEvent: trackEvent,
31
31
  });
32
32
  };
33
33
  var schemaHasValidationMessages = function (schema) {
@@ -17,7 +17,7 @@ var getValidationAsyncFn = function (schemaMapperProps, mapperProps) {
17
17
  httpClient: httpClient,
18
18
  validationAsyncConfig: validationAsync,
19
19
  schemaId: analyticsId !== null && analyticsId !== void 0 ? analyticsId : $id,
20
- trackEvent: trackEvent
20
+ trackEvent: trackEvent,
21
21
  });
22
22
  };
23
23
  var schemaHasValidationAsync = function (schema) {
@@ -72,5 +72,5 @@ var autocompleteTokenMap = {
72
72
  work: 'work',
73
73
  mobile: 'mobile',
74
74
  fax: 'fax',
75
- pager: 'pager'
75
+ pager: 'pager',
76
76
  };
@@ -36,7 +36,7 @@ var legacyActionTypeToContext = {
36
36
  negative: 'negative',
37
37
  primary: 'neutral',
38
38
  secondary: 'neutral',
39
- link: 'neutral'
39
+ link: 'neutral',
40
40
  };
41
41
  export var mapLegacyActionTypeToContext = function (type) {
42
42
  return type && type in legacyActionTypeToContext ? legacyActionTypeToContext[type] : 'neutral';
@@ -46,7 +46,7 @@ var legacyActionTypeToControl = {
46
46
  secondary: 'secondary',
47
47
  link: 'tertiary',
48
48
  positive: 'primary',
49
- negative: 'primary'
49
+ negative: 'primary',
50
50
  };
51
51
  export var mapLegacyActionTypeToControl = function (type) {
52
52
  return type && type in legacyActionTypeToControl ? legacyActionTypeToControl[type] : 'secondary';
@@ -60,7 +60,7 @@ export var executeRefresh = function (props) { return __awaiter(void 0, void 0,
60
60
  method: 'POST',
61
61
  body: JSON.stringify(model),
62
62
  headers: __assign({ 'Content-Type': 'application/json' }, (etag ? { 'If-None-Match': etag } : {})),
63
- signal: abortSignal
63
+ signal: abortSignal,
64
64
  })];
65
65
  case 2:
66
66
  response = _a.sent();
@@ -69,7 +69,7 @@ export var executeRefresh = function (props) { return __awaiter(void 0, void 0,
69
69
  return [2 /*return*/, { type: 'noop' }];
70
70
  }
71
71
  if (!!response.ok) return [3 /*break*/, 4];
72
- return [4 /*yield*/, parseResponseBodyAsJsonElement(response)["catch"](function () { return ({}); })];
72
+ return [4 /*yield*/, parseResponseBodyAsJsonElement(response).catch(function () { return ({}); })];
73
73
  case 3:
74
74
  responseBody = _a.sent();
75
75
  body_1 = isErrorResponseBody(responseBody) ? responseBody : {};
@@ -70,7 +70,7 @@ export var executeSubmission = function (props) { return __awaiter(void 0, void
70
70
  return [4 /*yield*/, httpClient(url !== null && url !== void 0 ? url : '', {
71
71
  method: method,
72
72
  body: method === 'GET' ? undefined : JSON.stringify(model),
73
- headers: { 'Content-Type': 'application/json' }
73
+ headers: { 'Content-Type': 'application/json' },
74
74
  })];
75
75
  case 2:
76
76
  response = _d.sent();
@@ -4,5 +4,5 @@ export var CoreContainerRenderer = {
4
4
  render: function (_a) {
5
5
  var children = _a.children;
6
6
  return _jsx(_Fragment, { children: children });
7
- }
7
+ },
8
8
  };
@@ -36,18 +36,18 @@ export var getRenderFunction = function (renderers) {
36
36
  if (isColumnsComponent(component)) {
37
37
  return {
38
38
  startChildren: component.startComponents.map(render),
39
- endChildren: component.endComponents.map(render)
39
+ endChildren: component.endComponents.map(render),
40
40
  };
41
41
  }
42
42
  if (isRepeatableComponent(component)) {
43
43
  return {
44
44
  // We specifically only want components here, because getChildren() includes the editable component
45
45
  children: component.components.map(render),
46
- editableItemChildren: component.editableComponent !== null ? render(component.editableComponent) : null
46
+ editableItemChildren: component.editableComponent !== null ? render(component.editableComponent) : null,
47
47
  };
48
48
  }
49
49
  return {
50
- children: component.getChildren().map(render)
50
+ children: component.getChildren().map(render),
51
51
  };
52
52
  };
53
53
  var render = function (component) { return (_jsx(ComponentRenderer, __assign({}, componentToRendererProps(component, getNestedContent(component))), component.uid)); };
@@ -12,61 +12,61 @@ var createErrorMessageFunctions = function (validationMessages, formatMessage, l
12
12
  minimum: function (minimum) {
13
13
  var _a;
14
14
  return ((_a = validationMessages.minimum) !== null && _a !== void 0 ? _a : formatMessage(errorMessages.minimum, {
15
- minimum: minimum
15
+ minimum: minimum,
16
16
  }));
17
17
  },
18
18
  maximum: function (maximum) {
19
19
  var _a;
20
20
  return ((_a = validationMessages.maximum) !== null && _a !== void 0 ? _a : formatMessage(errorMessages.maximum, {
21
- maximum: maximum
21
+ maximum: maximum,
22
22
  }));
23
23
  },
24
24
  minimumDate: function (minimumDate) {
25
25
  var _a;
26
26
  return ((_a = validationMessages.minimum) !== null && _a !== void 0 ? _a : formatMessage(errorMessages.minimumDate, {
27
- minimum: formatDate(new Date(minimumDate), locale, formatDateOptions)
27
+ minimum: formatDate(new Date(minimumDate), locale, formatDateOptions),
28
28
  }));
29
29
  },
30
30
  maximumDate: function (maximumDate) {
31
31
  var _a;
32
32
  return ((_a = validationMessages.maximum) !== null && _a !== void 0 ? _a : formatMessage(errorMessages.maximumDate, {
33
- maximum: formatDate(new Date(maximumDate), locale, formatDateOptions)
33
+ maximum: formatDate(new Date(maximumDate), locale, formatDateOptions),
34
34
  }));
35
35
  },
36
36
  minLength: function (minLength) {
37
37
  var _a;
38
38
  return ((_a = validationMessages.minLength) !== null && _a !== void 0 ? _a : formatMessage(errorMessages.minLength, {
39
- minLength: minLength
39
+ minLength: minLength,
40
40
  }));
41
41
  },
42
42
  maxLength: function (maxLength) {
43
43
  var _a;
44
44
  return ((_a = validationMessages.maxLength) !== null && _a !== void 0 ? _a : formatMessage(errorMessages.maxLength, {
45
- maxLength: maxLength
45
+ maxLength: maxLength,
46
46
  }));
47
47
  },
48
48
  minItems: function (minItems) {
49
49
  var _a;
50
50
  return ((_a = validationMessages.minItems) !== null && _a !== void 0 ? _a : formatMessage(arrayErrorMessages.minItemsError, {
51
- minItems: minItems
51
+ minItems: minItems,
52
52
  }));
53
53
  },
54
54
  maxItems: function (maxItems) {
55
55
  var _a;
56
56
  return ((_a = validationMessages.maxItems) !== null && _a !== void 0 ? _a : formatMessage(arrayErrorMessages.maxItemsError, {
57
- maxItems: maxItems
57
+ maxItems: maxItems,
58
58
  }));
59
59
  },
60
60
  minFiles: function (minItems) {
61
61
  var _a;
62
62
  return ((_a = validationMessages.minItems) !== null && _a !== void 0 ? _a : formatMessage(multiFileUploadMessages.minItemsError, {
63
- minItems: minItems
63
+ minItems: minItems,
64
64
  }));
65
65
  },
66
66
  maxFiles: function (maxItems) {
67
67
  var _a;
68
68
  return ((_a = validationMessages.maxItems) !== null && _a !== void 0 ? _a : formatMessage(multiFileUploadMessages.maxItemsError, {
69
- maxItems: maxItems
69
+ maxItems: maxItems,
70
70
  }));
71
71
  },
72
72
  pattern: function () {
@@ -82,9 +82,9 @@ var createErrorMessageFunctions = function (validationMessages, formatMessage, l
82
82
  },
83
83
  genericErrorWithRetry: function () {
84
84
  return formatMessage(genericErrorMessages.genericErrorRetryHint);
85
- }
85
+ },
86
86
  }); };
87
87
  var formatDateOptions = {
88
88
  timeZone: 'UTC',
89
- dateStyle: 'long'
89
+ dateStyle: 'long',
90
90
  };
@@ -6,6 +6,6 @@ export var allOfComponentToProps = function (_a, children) {
6
6
  control: control,
7
7
  description: description,
8
8
  help: help,
9
- title: title
9
+ title: title,
10
10
  });
11
11
  };
@@ -9,6 +9,6 @@ export var buttonComponentToProps = function (component) {
9
9
  margin: margin,
10
10
  pinOrder: pinOrder,
11
11
  size: size,
12
- onClick: onClick
12
+ onClick: onClick,
13
13
  };
14
14
  };
@@ -1,4 +1,4 @@
1
1
  export var containerComponentToProps = function (children) { return ({
2
2
  type: 'container',
3
- children: children
3
+ children: children,
4
4
  }); };
@@ -6,6 +6,6 @@ export var headingComponentToProps = function (_a) {
6
6
  control: control,
7
7
  margin: margin,
8
8
  size: size,
9
- text: text
9
+ text: text,
10
10
  });
11
11
  };
@@ -1,3 +1,3 @@
1
1
  export var hiddenComponentToProps = function () { return ({
2
- type: 'hidden'
2
+ type: 'hidden',
3
3
  }); };
@@ -6,6 +6,6 @@ export var imageComponentToProps = function (_a) {
6
6
  control: control,
7
7
  margin: margin,
8
8
  size: size,
9
- url: url
9
+ url: url,
10
10
  });
11
11
  };
@@ -5,6 +5,6 @@ export var instructionsComponentToProps = function (_a) {
5
5
  control: control,
6
6
  items: items,
7
7
  margin: margin,
8
- title: title
8
+ title: title,
9
9
  });
10
10
  };