@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
@@ -8,6 +8,6 @@ export var headingLayoutToComponent = function (uid, _a) {
8
8
  control: control,
9
9
  margin: margin,
10
10
  size: size,
11
- text: text
11
+ text: text,
12
12
  });
13
13
  };
@@ -7,6 +7,6 @@ export var imageLayoutToComponent = function (uid, _a) {
7
7
  control: control,
8
8
  margin: margin,
9
9
  size: size,
10
- url: url
10
+ url: url,
11
11
  });
12
12
  };
@@ -7,6 +7,6 @@ export var infoLayoutToComponent = function (uid, _a) {
7
7
  align: mapLegacyAlign(align),
8
8
  content: content,
9
9
  control: control,
10
- margin: margin
10
+ margin: margin,
11
11
  });
12
12
  };
@@ -9,10 +9,10 @@ export var instructionsLayoutToComponent = function (uid, _a) {
9
9
  var context = _a.context, text = _a.text;
10
10
  return ({
11
11
  context: mapLegacyContext(context),
12
- text: text
12
+ text: text,
13
13
  });
14
14
  }),
15
15
  margin: margin,
16
- title: title
16
+ title: title,
17
17
  });
18
18
  };
@@ -10,11 +10,11 @@ export var listLayoutToComponent = function (uid, _a) {
10
10
  description: description,
11
11
  icon: icon,
12
12
  title: itemTitle,
13
- status: status ? mapLegacyStatus(status) : undefined
13
+ status: status ? mapLegacyStatus(status) : undefined,
14
14
  });
15
15
  }),
16
16
  margin: margin,
17
- title: title
17
+ title: title,
18
18
  });
19
19
  };
20
20
  var mapLegacyStatus = function (status) {
@@ -7,6 +7,6 @@ export var markdownLayoutToComponent = function (uid, _a) {
7
7
  align: mapLegacyAlign(align),
8
8
  control: control,
9
9
  content: content,
10
- margin: margin
10
+ margin: margin,
11
11
  });
12
12
  };
@@ -8,10 +8,10 @@ export var modalLayoutToComponent = function (uid, _a, mapperProps) {
8
8
  content: {
9
9
  components: components.map(function (component, index) {
10
10
  return mapLayoutToComponent("".concat(uid, ".modal-").concat(index), component, mapperProps);
11
- })
11
+ }),
12
12
  },
13
13
  control: control,
14
14
  margin: margin,
15
- trigger: trigger
15
+ trigger: trigger,
16
16
  });
17
17
  };
@@ -7,6 +7,6 @@ export var paragraphLayoutToComponent = function (uid, _a) {
7
7
  text: text,
8
8
  control: control,
9
9
  align: mapLegacyAlign(align),
10
- margin: margin
10
+ margin: margin,
11
11
  });
12
12
  };
@@ -19,21 +19,21 @@ export var reviewLayoutToComponent = function (uid, _a, _b) {
19
19
  control: getOrientationControl({ control: control, orientation: orientation }),
20
20
  fields: fields.map(function (field) { var _a; return (__assign(__assign({}, field), { help: (_a = field.help) === null || _a === void 0 ? void 0 : _a.markdown })); }),
21
21
  margin: margin,
22
- title: title
22
+ title: title,
23
23
  });
24
24
  };
25
25
  var getReviewAction = function (onAction, callToAction, action) {
26
26
  if (callToAction) {
27
27
  return {
28
28
  title: callToAction.title,
29
- onClick: function () { return onAction(callToAction.action); }
29
+ onClick: function () { return onAction(callToAction.action); },
30
30
  };
31
31
  }
32
32
  // for legacy reasons, we need to support regular actions, and use the legacy action.title for the CTA title
33
33
  if (action === null || action === void 0 ? void 0 : action.title) {
34
34
  return {
35
35
  title: action.title,
36
- onClick: function () { return onAction(action); }
36
+ onClick: function () { return onAction(action); },
37
37
  };
38
38
  }
39
39
  return undefined;
@@ -9,6 +9,6 @@ export var searchLayoutToComponent = function (uid, _a, mapperProps) {
9
9
  control: control,
10
10
  emptyMessage: emptyMessage,
11
11
  margin: margin,
12
- title: title
12
+ title: title,
13
13
  }, search, onAction, updateComponent);
14
14
  };
@@ -6,6 +6,6 @@ export var statusListLayoutToComponent = function (uid, _a) {
6
6
  control: control,
7
7
  items: items,
8
8
  margin: margin,
9
- title: title
9
+ title: title,
10
10
  });
11
11
  };
@@ -31,7 +31,7 @@ export var mapSchemaToComponent = function (schemaMapperProps, mapperProps) {
31
31
  components: [
32
32
  alertLayoutToComponent("".concat(uid, ".container.alert"), alert),
33
33
  getSchemaComponent(__assign(__assign({}, schemaMapperProps), { uid: "".concat(uid, ".container") }), mapperProps),
34
- ]
34
+ ],
35
35
  });
36
36
  }
37
37
  return getSchemaComponent(schemaMapperProps, mapperProps);
@@ -40,7 +40,7 @@ describe('mapSchemaToComponents', function () {
40
40
  describe('when no alert is given', function () {
41
41
  it('returns a StepComponent for the schema', function () {
42
42
  var schema = {
43
- type: 'string'
43
+ type: 'string',
44
44
  };
45
45
  var component = mapSchemaToComponent(getMockSchemaMapperProps({ schema: schema, model: null }), getMockMapperProps());
46
46
  expect(component.type).toBe('text');
@@ -50,17 +50,17 @@ describe('mapSchemaToComponents', function () {
50
50
  it('returns a ContainerComponent containing the alert and the schema', function () {
51
51
  var schema = {
52
52
  type: 'string',
53
- alert: { type: 'alert', markdown: 'content' }
53
+ alert: { type: 'alert', markdown: 'content' },
54
54
  };
55
55
  var component = mapSchemaToComponent(getMockSchemaMapperProps({ schema: schema, model: null }), getMockMapperProps());
56
56
  expect(component.type).toBe('container');
57
57
  expect(component.getChildren()).toStrictEqual(expect.arrayContaining([
58
58
  expect.objectContaining({
59
59
  type: 'alert',
60
- markdown: 'content'
60
+ markdown: 'content',
61
61
  }),
62
62
  expect.objectContaining({
63
- type: 'text'
63
+ type: 'text',
64
64
  }),
65
65
  ]));
66
66
  });
@@ -74,27 +74,27 @@ describe('mapSchemaToComponents', function () {
74
74
  properties: {
75
75
  cbs: {
76
76
  title: 'Const boolean schema',
77
- "const": true
77
+ const: true,
78
78
  },
79
79
  cns: {
80
80
  title: 'Const number schema',
81
- "const": 42
81
+ const: 42,
82
82
  },
83
83
  css: {
84
84
  title: 'Const string schema',
85
- "const": 'Hello World!'
85
+ const: 'Hello World!',
86
86
  },
87
87
  cos: {
88
88
  title: 'Const object schema',
89
- "const": {
90
- name: 'John Doe'
91
- }
89
+ const: {
90
+ name: 'John Doe',
91
+ },
92
92
  },
93
93
  cas: {
94
94
  title: 'Const array schema',
95
- "const": ['Hello', 'World!']
96
- }
97
- }
95
+ const: ['Hello', 'World!'],
96
+ },
97
+ },
98
98
  };
99
99
  describe('when the getValue function is called', function () {
100
100
  it('returns the const values', function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -111,7 +111,7 @@ describe('mapSchemaToComponents', function () {
111
111
  cns: 42,
112
112
  css: 'Hello World!',
113
113
  cos: { name: 'John Doe' },
114
- cas: ['Hello', 'World!']
114
+ cas: ['Hello', 'World!'],
115
115
  });
116
116
  return [2 /*return*/];
117
117
  }
@@ -130,21 +130,21 @@ describe('mapSchemaToComponents', function () {
130
130
  type: 'boolean',
131
131
  title: 'Hidden boolean schema',
132
132
  hidden: true,
133
- "default": true
133
+ default: true,
134
134
  },
135
135
  hns: {
136
136
  type: 'number',
137
137
  title: 'Hidden number schema',
138
138
  hidden: true,
139
- "default": 42
139
+ default: 42,
140
140
  },
141
141
  hss: {
142
142
  type: 'string',
143
143
  title: 'Hidden string schema',
144
144
  hidden: true,
145
- "default": 'Hello World!'
146
- }
147
- }
145
+ default: 'Hello World!',
146
+ },
147
+ },
148
148
  };
149
149
  describe('when model is null', function () {
150
150
  describe('and the getValue function is called', function () {
@@ -160,7 +160,7 @@ describe('mapSchemaToComponents', function () {
160
160
  _a.apply(void 0, [_b.sent()]).toStrictEqual({
161
161
  hbs: true,
162
162
  hns: 42,
163
- hss: 'Hello World!'
163
+ hss: 'Hello World!',
164
164
  });
165
165
  return [2 /*return*/];
166
166
  }
@@ -177,7 +177,7 @@ describe('mapSchemaToComponents', function () {
177
177
  case 0:
178
178
  component = mapSchemaToComponent(getMockSchemaMapperProps({
179
179
  schema: hiddenSchemas,
180
- model: { hbs: false, hns: 0, hss: 'Hello' }
180
+ model: { hbs: false, hns: 0, hss: 'Hello' },
181
181
  }), getMockMapperProps());
182
182
  _a = expect;
183
183
  return [4 /*yield*/, component.getSubmittableValue()];
@@ -185,7 +185,7 @@ describe('mapSchemaToComponents', function () {
185
185
  _a.apply(void 0, [_b.sent()]).toStrictEqual({
186
186
  hbs: false,
187
187
  hns: 0,
188
- hss: 'Hello'
188
+ hss: 'Hello',
189
189
  });
190
190
  return [2 /*return*/];
191
191
  }
@@ -118,7 +118,7 @@ export var mapStepToComponent = function (_a) {
118
118
  components: __spreadArray(__spreadArray([], additionalComponents, true), layoutComponents, true),
119
119
  external: external,
120
120
  loadingState: loadingState,
121
- updateComponent: updateComponent
121
+ updateComponent: updateComponent,
122
122
  });
123
123
  return stepComponent;
124
124
  };
@@ -129,14 +129,14 @@ var makeAdditionalComponents = function (step, uid, displayStepTitle) {
129
129
  type: 'heading',
130
130
  text: title,
131
131
  align: 'center',
132
- size: 'lg'
132
+ size: 'lg',
133
133
  })
134
134
  : undefined;
135
135
  var stepError = (errors === null || errors === void 0 ? void 0 : errors.error)
136
136
  ? alertLayoutToComponent("".concat(uid, ".global-error"), {
137
137
  type: 'alert',
138
138
  markdown: errors.error,
139
- context: 'negative'
139
+ context: 'negative',
140
140
  })
141
141
  : undefined;
142
142
  return __spreadArray(__spreadArray([], (heading ? [heading] : []), true), (stepError ? [stepError] : []), true);
@@ -55,11 +55,11 @@ describe('mapStepToComponent', function () {
55
55
  id: 'step',
56
56
  title: '',
57
57
  schemas: [],
58
- layout: []
58
+ layout: [],
59
59
  };
60
60
  var mapperProps = __assign(__assign({}, getMapperProps()), { step: step, displayStepTitle: true });
61
61
  expect(mapStepToComponent(mapperProps)).toEqual(expect.objectContaining({
62
- type: 'step'
62
+ type: 'step',
63
63
  }));
64
64
  });
65
65
  describe('when step contains a global error', function () {
@@ -69,13 +69,13 @@ describe('mapStepToComponent', function () {
69
69
  title: '',
70
70
  schemas: [],
71
71
  layout: [],
72
- errors: { error: 'This is a global error' }
72
+ errors: { error: 'This is a global error' },
73
73
  };
74
74
  var mapperProps = __assign(__assign({}, getMapperProps()), { step: step, displayStepTitle: true });
75
75
  expect(mapStepToComponent(mapperProps).components).toContainEqual(expect.objectContaining({
76
76
  type: 'alert',
77
77
  markdown: 'This is a global error',
78
- context: 'negative'
78
+ context: 'negative',
79
79
  }));
80
80
  });
81
81
  it('places the alert between content and title (when provided)', function () {
@@ -84,7 +84,7 @@ describe('mapStepToComponent', function () {
84
84
  title: 'Title',
85
85
  schemas: [],
86
86
  layout: [{ type: 'paragraph', text: 'This is below an alert' }],
87
- errors: { error: 'This is a global error' }
87
+ errors: { error: 'This is a global error' },
88
88
  };
89
89
  var mapperProps = __assign(__assign({}, getMapperProps()), { step: step, displayStepTitle: true });
90
90
  expect(mapStepToComponent(mapperProps).components).toEqual(expect.arrayContaining([
@@ -92,7 +92,7 @@ describe('mapStepToComponent', function () {
92
92
  expect.objectContaining({
93
93
  type: 'alert',
94
94
  markdown: 'This is a global error',
95
- context: 'negative'
95
+ context: 'negative',
96
96
  }),
97
97
  expect.objectContaining({ type: 'paragraph' }),
98
98
  ]));
@@ -104,7 +104,7 @@ describe('mapStepToComponent', function () {
104
104
  title: '',
105
105
  schemas: [],
106
106
  layout: [],
107
- errors: { error: '' }
107
+ errors: { error: '' },
108
108
  };
109
109
  var mapperProps = __assign(__assign({}, getMockMapperProps()), { step: step, displayStepTitle: true, loadingState: 'idle' });
110
110
  expect(mapStepToComponent(mapperProps).components).toHaveLength(0);
@@ -117,12 +117,12 @@ describe('mapStepToComponent', function () {
117
117
  id: 'step',
118
118
  title: 'Title',
119
119
  schemas: [],
120
- layout: []
120
+ layout: [],
121
121
  };
122
122
  var mapperProps = __assign(__assign({}, getMapperProps()), { step: step, displayStepTitle: true });
123
123
  expect(mapStepToComponent(mapperProps).components).toContainEqual(expect.objectContaining({
124
124
  type: 'heading',
125
- text: 'Title'
125
+ text: 'Title',
126
126
  }));
127
127
  });
128
128
  it('does not render the heading when displayStepTitle is false', function () {
@@ -130,7 +130,7 @@ describe('mapStepToComponent', function () {
130
130
  id: 'step',
131
131
  title: 'Title',
132
132
  schemas: [],
133
- layout: []
133
+ layout: [],
134
134
  };
135
135
  var mapperProps = __assign(__assign({}, getMapperProps()), { step: step, displayStepTitle: false });
136
136
  expect(mapStepToComponent(mapperProps).components).toHaveLength(0);
@@ -147,10 +147,10 @@ describe('mapStepToComponent', function () {
147
147
  title: 'Action title',
148
148
  url: '/submit',
149
149
  type: 'primary',
150
- method: 'POST'
150
+ method: 'POST',
151
151
  },
152
152
  ],
153
- layout: [{ type: 'button', action: { $ref: 'action-id' } }]
153
+ layout: [{ type: 'button', action: { $ref: 'action-id' } }],
154
154
  };
155
155
  it('returns a composition with a ButtonComponent with the correct action', function () { return __awaiter(void 0, void 0, void 0, function () {
156
156
  var onAction, mapperProps, stepComponent, btn;
@@ -22,7 +22,7 @@ export var allOfSchemaToComponent = function (schemaMapperProps, mapperProps) {
22
22
  model: model,
23
23
  localValue: localValue,
24
24
  required: required,
25
- validationErrors: validationErrors
25
+ validationErrors: validationErrors,
26
26
  }, mapperProps);
27
27
  });
28
28
  return createAllOfComponent(__assign(__assign({}, mapCommonSchemaProps(schemaMapperProps)), { components: components }));
@@ -26,7 +26,7 @@ export var arraySchemaToRepeatableComponent = function (schemaMapperProps, mappe
26
26
  model: item,
27
27
  localValue: value === null || value === void 0 ? void 0 : value[index],
28
28
  // TODO tests for this
29
- validationErrors: validationErrors
29
+ validationErrors: validationErrors,
30
30
  }, mapperProps);
31
31
  });
32
32
  var createEditableComponent = function (editableValue) {
@@ -35,7 +35,7 @@ export var arraySchemaToRepeatableComponent = function (schemaMapperProps, mappe
35
35
  schema: items,
36
36
  localValue: editableValue,
37
37
  model: localValueToJsonElement(editableValue),
38
- validationErrors: undefined
38
+ validationErrors: undefined,
39
39
  }, mapperProps);
40
40
  };
41
41
  var errorMessageFunctions = getErrorMessageFunctions(schema.validationMessages);
@@ -17,7 +17,7 @@ import { mapCommonSchemaProps } from './utils/mapCommonSchemaProps';
17
17
  import { getValidationAsyncInitialState } from './utils/getValidationAsyncInitialState';
18
18
  export var booleanSchemaToComponent = function (schemaMapperProps, mapperProps) {
19
19
  var schema = schemaMapperProps.schema, localValue = schemaMapperProps.localValue, model = schemaMapperProps.model;
20
- var defaultValue = schema["default"];
20
+ var defaultValue = schema.default;
21
21
  var updateComponent = mapperProps.updateComponent, onRefresh = mapperProps.onRefresh;
22
22
  var performRefresh = getPerformRefresh(schema, onRefresh);
23
23
  var _a = getPersistAsyncInitialState(schemaMapperProps, mapperProps), performPersistAsync = _a.performPersistAsync, persistedState = _a.persistedState;
@@ -3,12 +3,12 @@ import { getConstSummary } from '../../features/summary/summary-utils';
3
3
  export var constSchemaToComponent = function (uid, schemaMapperProps) {
4
4
  var _a;
5
5
  var schema = schemaMapperProps.schema;
6
- var title = schema.title, constValue = schema["const"], analyticsId = schema.analyticsId, $id = schema.$id;
6
+ var title = schema.title, constValue = schema.const, analyticsId = schema.analyticsId, $id = schema.$id;
7
7
  var titleOrValue = (_a = title !== null && title !== void 0 ? title : constValue) !== null && _a !== void 0 ? _a : null;
8
8
  return createConstComponent({
9
9
  uid: uid,
10
10
  analyticsId: analyticsId !== null && analyticsId !== void 0 ? analyticsId : $id,
11
11
  summary: getConstSummary(schema, titleOrValue),
12
- value: schema["const"]
12
+ value: schema.const,
13
13
  });
14
14
  };
@@ -19,7 +19,7 @@ import { mapCommonSchemaProps } from './utils/mapCommonSchemaProps';
19
19
  import { getValidationAsyncInitialState } from './utils/getValidationAsyncInitialState';
20
20
  export var integerSchemaToComponent = 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, validationMessages = schema.validationMessages, defaultValue = schema["default"];
22
+ var autocompleteHint = schema.autocompleteHint, validationMessages = schema.validationMessages, defaultValue = schema.default;
23
23
  var getErrorMessageFunctions = mapperProps.getErrorMessageFunctions, updateComponent = mapperProps.updateComponent, onRefresh = mapperProps.onRefresh;
24
24
  var errorMessageFunctions = getErrorMessageFunctions(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 numberSchemaToComponent = function (schemaMapperProps, mapperProps) {
21
21
  var schema = schemaMapperProps.schema, model = schemaMapperProps.model, localValue = schemaMapperProps.localValue, _a = schemaMapperProps.required, required = _a === void 0 ? false : _a;
22
- var autocompleteHint = schema.autocompleteHint, validationMessages = schema.validationMessages, defaultValue = schema["default"];
22
+ var autocompleteHint = schema.autocompleteHint, validationMessages = schema.validationMessages, defaultValue = schema.default;
23
23
  var getErrorMessageFunctions = mapperProps.getErrorMessageFunctions, updateComponent = mapperProps.updateComponent, onRefresh = mapperProps.onRefresh;
24
24
  var errorMessageFunctions = getErrorMessageFunctions(validationMessages);
25
25
  var _b = getPersistAsyncInitialState(schemaMapperProps, mapperProps), performPersistAsync = _b.performPersistAsync, persistedState = _b.persistedState;
@@ -34,7 +34,7 @@ export var objectSchemaToComponent = function (schemaMapperProps, mapperProps) {
34
34
  model: isObjectModel(model) ? model[propName] : null,
35
35
  localValue: isObjectLocalValue(localValue) ? localValue[propName] : null,
36
36
  required: (_b = required === null || required === void 0 ? void 0 : required.includes(propName)) !== null && _b !== void 0 ? _b : false,
37
- validationErrors: isObject(validationErrors) ? validationErrors[propName] : undefined
37
+ validationErrors: isObject(validationErrors) ? validationErrors[propName] : undefined,
38
38
  }, mapperProps), _a));
39
39
  }, {});
40
40
  return createObjectComponent(__assign(__assign({}, mapCommonSchemaProps(schemaMapperProps)), { componentMap: componentMap, displayOrder: displayOrder }));
@@ -49,9 +49,9 @@ describe('objectSchemaToComponent', function () {
49
49
  schema: {
50
50
  type: 'object',
51
51
  properties: {},
52
- displayOrder: []
52
+ displayOrder: [],
53
53
  },
54
- model: null
54
+ model: null,
55
55
  });
56
56
  component = objectSchemaToComponent(schemaMapperProps, defaultMapperProps);
57
57
  _a = expect;
@@ -72,15 +72,15 @@ describe('objectSchemaToComponent', function () {
72
72
  type: 'object',
73
73
  properties: {
74
74
  name: {
75
- type: 'string'
75
+ type: 'string',
76
76
  },
77
77
  occupation: {
78
- type: 'string'
79
- }
78
+ type: 'string',
79
+ },
80
80
  },
81
- displayOrder: ['name', 'occupation']
81
+ displayOrder: ['name', 'occupation'],
82
82
  },
83
- model: null
83
+ model: null,
84
84
  });
85
85
  component = objectSchemaToComponent(schemaMapperProps, defaultMapperProps);
86
86
  _a = expect;
@@ -98,18 +98,18 @@ describe('objectSchemaToComponent', function () {
98
98
  type: 'object',
99
99
  properties: {
100
100
  name: {
101
- type: 'string'
101
+ type: 'string',
102
102
  },
103
103
  occupation: {
104
- type: 'string'
105
- }
104
+ type: 'string',
105
+ },
106
106
  },
107
- displayOrder: ['name', 'occupation']
107
+ displayOrder: ['name', 'occupation'],
108
108
  },
109
109
  model: {
110
110
  name: 'John Smith',
111
- city: 'New York'
112
- }
111
+ city: 'New York',
112
+ },
113
113
  });
114
114
  it('sets the component value to the initial model', function () { return __awaiter(void 0, void 0, void 0, function () {
115
115
  var component, _a;
@@ -121,7 +121,7 @@ describe('objectSchemaToComponent', function () {
121
121
  return [4 /*yield*/, component.getSubmittableValue()];
122
122
  case 1:
123
123
  _a.apply(void 0, [_b.sent()]).toStrictEqual(expect.objectContaining({
124
- name: 'John Smith'
124
+ name: 'John Smith',
125
125
  }));
126
126
  return [2 /*return*/];
127
127
  }
@@ -136,22 +136,22 @@ describe('objectSchemaToComponent', function () {
136
136
  type: 'object',
137
137
  properties: {
138
138
  name: {
139
- type: 'string'
139
+ type: 'string',
140
140
  },
141
141
  occupation: {
142
- type: 'string'
143
- }
142
+ type: 'string',
143
+ },
144
144
  },
145
- displayOrder: ['name', 'occupation']
145
+ displayOrder: ['name', 'occupation'],
146
146
  },
147
147
  model: {
148
148
  name: 'Jane Doe',
149
- occupation: 'Programmer'
149
+ occupation: 'Programmer',
150
150
  },
151
151
  validationErrors: {
152
152
  name: 'Problem with this name',
153
- occupation: 'Problem with this occupation'
154
- }
153
+ occupation: 'Problem with this occupation',
154
+ },
155
155
  });
156
156
  var component = objectSchemaToComponent(schemaMapperProps, defaultMapperProps);
157
157
  expect(component.componentMap.name.errors).toStrictEqual([
@@ -30,7 +30,7 @@ import { mapCommonSchemaProps } from '../utils/mapCommonSchemaProps';
30
30
  export var oneOfSchemaToComponent = function (schemaMapperProps, mapperProps) {
31
31
  var _a, _b;
32
32
  var uid = schemaMapperProps.uid, localValue = schemaMapperProps.localValue, schema = schemaMapperProps.schema, model = schemaMapperProps.model, initialError = schemaMapperProps.validationErrors, _c = schemaMapperProps.required, required = _c === void 0 ? false : _c;
33
- var initialModel = (_a = model !== null && model !== void 0 ? model : schema["default"]) !== null && _a !== void 0 ? _a : null;
33
+ var initialModel = (_a = model !== null && model !== void 0 ? model : schema.default) !== null && _a !== void 0 ? _a : null;
34
34
  var options = schema.oneOf.map(function (childSchema, index) {
35
35
  var _a = childSchema.title, title = _a === void 0 ? '' : _a, description = childSchema.description, image = childSchema.image, icon = childSchema.icon, _b = childSchema.keywords, keywords = _b === void 0 ? [] : _b;
36
36
  return {
@@ -46,12 +46,12 @@ export var oneOfSchemaToComponent = function (schemaMapperProps, mapperProps) {
46
46
  model: initialModel,
47
47
  localValue: localValue,
48
48
  validationErrors: initialError,
49
- required: required
50
- }, mapperProps)
49
+ required: required,
50
+ }, mapperProps),
51
51
  };
52
52
  });
53
53
  var getErrorMessageFunctions = mapperProps.getErrorMessageFunctions, updateComponent = mapperProps.updateComponent, trackEvent = mapperProps.trackEvent, onRefresh = mapperProps.onRefresh;
54
- var defaultValue = schema["default"], validationMessages = schema.validationMessages;
54
+ var defaultValue = schema.default, validationMessages = schema.validationMessages;
55
55
  var errorMessageFunctions = getErrorMessageFunctions(validationMessages);
56
56
  var _d = getPersistAsyncInitialState(schemaMapperProps, mapperProps), performPersistAsync = _d.performPersistAsync, persistedState = _d.persistedState;
57
57
  var initialValue = performPersistAsync ? localValue : (_b = model !== null && model !== void 0 ? model : defaultValue) !== null && _b !== void 0 ? _b : null;