@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
@@ -15,10 +15,10 @@ describe('getItemSummaryFromSchema', function () {
15
15
  var defaultTitle = 'default title';
16
16
  describe('const schemas', function () {
17
17
  var constSchema = {
18
- "const": 'const'
18
+ const: 'const',
19
19
  };
20
20
  var constSchemaWithTitle = __assign(__assign({}, constSchema), { summary: {
21
- providesTitle: true
21
+ providesTitle: true,
22
22
  } });
23
23
  var constSchemaWithTitleProp = __assign(__assign({}, constSchemaWithTitle), { title: 'title' });
24
24
  it('should return the default if the schema does not provide a title', function () {
@@ -36,10 +36,10 @@ describe('getItemSummaryFromSchema', function () {
36
36
  describe('basic schemas', function () {
37
37
  var basicSchema = {
38
38
  type: 'string',
39
- title: 'basic schema'
39
+ title: 'basic schema',
40
40
  };
41
41
  var basicSchemaWithTitle = __assign(__assign({}, basicSchema), { summary: {
42
- providesTitle: true
42
+ providesTitle: true,
43
43
  } });
44
44
  it('should return the default if the schema does not provide a title', function () {
45
45
  expect(getItemSummaryFromSchema(basicSchema, 'value', { defaultTitle: defaultTitle }).title).toBe(defaultTitle);
@@ -59,12 +59,12 @@ describe('getItemSummaryFromSchema', function () {
59
59
  properties: {
60
60
  name: {
61
61
  title: 'Name',
62
- type: 'string'
63
- }
64
- }
62
+ type: 'string',
63
+ },
64
+ },
65
65
  };
66
66
  var objectSchemaWithTitle = __assign(__assign({}, objectSchema), { summary: {
67
- providesTitle: true
67
+ providesTitle: true,
68
68
  } });
69
69
  var objectSchemaWithTitleInChild = {
70
70
  type: 'object',
@@ -74,14 +74,14 @@ describe('getItemSummaryFromSchema', function () {
74
74
  title: 'Name',
75
75
  type: 'string',
76
76
  summary: {
77
- providesTitle: true
78
- }
77
+ providesTitle: true,
78
+ },
79
79
  },
80
80
  age: {
81
81
  title: 'Age',
82
- type: 'string'
83
- }
84
- }
82
+ type: 'string',
83
+ },
84
+ },
85
85
  };
86
86
  it('should return the default if the schema does not provide a title', function () {
87
87
  expect(getItemSummaryFromSchema(objectSchema, null, { defaultTitle: defaultTitle }).title).toBe(defaultTitle);
@@ -105,24 +105,24 @@ describe('getItemSummaryFromSchema', function () {
105
105
  type: 'object',
106
106
  properties: {
107
107
  accountNumber: {
108
- type: 'string'
109
- }
108
+ type: 'string',
109
+ },
110
110
  },
111
- displayOrder: ['accountNumber']
111
+ displayOrder: ['accountNumber'],
112
112
  },
113
113
  {
114
114
  type: 'object',
115
115
  properties: {
116
116
  iban: {
117
- type: 'string'
118
- }
117
+ type: 'string',
118
+ },
119
119
  },
120
- displayOrder: ['iban']
120
+ displayOrder: ['iban'],
121
121
  },
122
- ]
122
+ ],
123
123
  };
124
124
  var oneOfSchemaWithTitle = __assign(__assign({}, oneOfSchema), { summary: {
125
- providesTitle: true
125
+ providesTitle: true,
126
126
  } });
127
127
  var oneOfSchemaWithTitleOnChildSchema = {
128
128
  oneOf: [
@@ -130,10 +130,10 @@ describe('getItemSummaryFromSchema', function () {
130
130
  type: 'object',
131
131
  properties: {
132
132
  accountNumber: {
133
- type: 'string'
134
- }
133
+ type: 'string',
134
+ },
135
135
  },
136
- displayOrder: ['accountNumber']
136
+ displayOrder: ['accountNumber'],
137
137
  },
138
138
  {
139
139
  type: 'object',
@@ -141,13 +141,13 @@ describe('getItemSummaryFromSchema', function () {
141
141
  iban: {
142
142
  type: 'string',
143
143
  summary: {
144
- providesTitle: true
145
- }
146
- }
144
+ providesTitle: true,
145
+ },
146
+ },
147
147
  },
148
- displayOrder: ['iban']
148
+ displayOrder: ['iban'],
149
149
  },
150
- ]
150
+ ],
151
151
  };
152
152
  it('should return the default if the schema does not provide a title', function () {
153
153
  expect(getItemSummaryFromSchema(oneOfSchema, null, { defaultTitle: defaultTitle }).title).toBe(defaultTitle);
@@ -172,24 +172,24 @@ describe('getItemSummaryFromSchema', function () {
172
172
  type: 'object',
173
173
  properties: {
174
174
  accountNumber: {
175
- type: 'string'
176
- }
175
+ type: 'string',
176
+ },
177
177
  },
178
- displayOrder: ['accountNumber']
178
+ displayOrder: ['accountNumber'],
179
179
  },
180
180
  {
181
181
  type: 'object',
182
182
  properties: {
183
183
  iban: {
184
- type: 'string'
185
- }
184
+ type: 'string',
185
+ },
186
186
  },
187
- displayOrder: ['iban']
187
+ displayOrder: ['iban'],
188
188
  },
189
- ]
189
+ ],
190
190
  };
191
191
  var allOfSchemaWithTitle = __assign(__assign({}, allOfSchema), { summary: {
192
- providesTitle: true
192
+ providesTitle: true,
193
193
  } });
194
194
  var allOfSchemaWithTitleOnChild = {
195
195
  allOf: [
@@ -197,10 +197,10 @@ describe('getItemSummaryFromSchema', function () {
197
197
  type: 'object',
198
198
  properties: {
199
199
  accountNumber: {
200
- type: 'string'
201
- }
200
+ type: 'string',
201
+ },
202
202
  },
203
- displayOrder: ['accountNumber']
203
+ displayOrder: ['accountNumber'],
204
204
  },
205
205
  {
206
206
  type: 'object',
@@ -208,13 +208,13 @@ describe('getItemSummaryFromSchema', function () {
208
208
  iban: {
209
209
  type: 'string',
210
210
  summary: {
211
- providesTitle: true
212
- }
213
- }
211
+ providesTitle: true,
212
+ },
213
+ },
214
214
  },
215
- displayOrder: ['iban']
215
+ displayOrder: ['iban'],
216
216
  },
217
- ]
217
+ ],
218
218
  };
219
219
  it('should return the default if the schema does not provide a title', function () {
220
220
  expect(getItemSummaryFromSchema(allOfSchema, null, { defaultTitle: defaultTitle }).title).toBe(defaultTitle);
@@ -236,10 +236,10 @@ describe('getItemSummaryFromSchema', function () {
236
236
  var defaultDescription = 'default description';
237
237
  describe('const schemas', function () {
238
238
  var constSchema = {
239
- "const": 'const'
239
+ const: 'const',
240
240
  };
241
241
  var constSchemaWithDescription = __assign(__assign({}, constSchema), { summary: {
242
- providesDescription: true
242
+ providesDescription: true,
243
243
  } });
244
244
  var constSchemaWithDescriptionProp = __assign(__assign({}, constSchemaWithDescription), { title: 'title' });
245
245
  it('should return the default if the schema does not provide a description', function () {
@@ -260,10 +260,10 @@ describe('getItemSummaryFromSchema', function () {
260
260
  describe('basic schemas', function () {
261
261
  var basicSchema = {
262
262
  type: 'string',
263
- title: 'basic schema'
263
+ title: 'basic schema',
264
264
  };
265
265
  var basicSchemaWithDescription = __assign(__assign({}, basicSchema), { summary: {
266
- providesDescription: true
266
+ providesDescription: true,
267
267
  } });
268
268
  it('should return the default if the schema does not provide a description', function () {
269
269
  expect(getItemSummaryFromSchema(basicSchema, 'value', { defaultDescription: defaultDescription }).description).toBe(defaultDescription);
@@ -285,12 +285,12 @@ describe('getItemSummaryFromSchema', function () {
285
285
  properties: {
286
286
  name: {
287
287
  title: 'Name',
288
- type: 'string'
289
- }
290
- }
288
+ type: 'string',
289
+ },
290
+ },
291
291
  };
292
292
  var objectSchemaWithDescription = __assign(__assign({}, objectSchema), { summary: {
293
- providesDescription: true
293
+ providesDescription: true,
294
294
  } });
295
295
  var objectSchemaWithDescriptionInChild = {
296
296
  type: 'object',
@@ -300,14 +300,14 @@ describe('getItemSummaryFromSchema', function () {
300
300
  title: 'Name',
301
301
  type: 'string',
302
302
  summary: {
303
- providesDescription: true
304
- }
303
+ providesDescription: true,
304
+ },
305
305
  },
306
306
  age: {
307
307
  title: 'Age',
308
- type: 'string'
309
- }
310
- }
308
+ type: 'string',
309
+ },
310
+ },
311
311
  };
312
312
  it('should return the default if the schema does not provide a description', function () {
313
313
  expect(getItemSummaryFromSchema(objectSchema, null, { defaultDescription: defaultDescription }).description).toBe(defaultDescription);
@@ -333,24 +333,24 @@ describe('getItemSummaryFromSchema', function () {
333
333
  type: 'object',
334
334
  properties: {
335
335
  accountNumber: {
336
- type: 'string'
337
- }
336
+ type: 'string',
337
+ },
338
338
  },
339
- displayOrder: ['accountNumber']
339
+ displayOrder: ['accountNumber'],
340
340
  },
341
341
  {
342
342
  type: 'object',
343
343
  properties: {
344
344
  iban: {
345
- type: 'string'
346
- }
345
+ type: 'string',
346
+ },
347
347
  },
348
- displayOrder: ['iban']
348
+ displayOrder: ['iban'],
349
349
  },
350
- ]
350
+ ],
351
351
  };
352
352
  var oneOfSchemaWithDescription = __assign(__assign({}, oneOfSchema), { summary: {
353
- providesDescription: true
353
+ providesDescription: true,
354
354
  } });
355
355
  var oneOfSchemaWithDescriptionOnChildSchema = {
356
356
  oneOf: [
@@ -358,10 +358,10 @@ describe('getItemSummaryFromSchema', function () {
358
358
  type: 'object',
359
359
  properties: {
360
360
  accountNumber: {
361
- type: 'string'
362
- }
361
+ type: 'string',
362
+ },
363
363
  },
364
- displayOrder: ['accountNumber']
364
+ displayOrder: ['accountNumber'],
365
365
  },
366
366
  {
367
367
  type: 'object',
@@ -369,13 +369,13 @@ describe('getItemSummaryFromSchema', function () {
369
369
  iban: {
370
370
  type: 'string',
371
371
  summary: {
372
- providesDescription: true
373
- }
374
- }
372
+ providesDescription: true,
373
+ },
374
+ },
375
375
  },
376
- displayOrder: ['iban']
376
+ displayOrder: ['iban'],
377
377
  },
378
- ]
378
+ ],
379
379
  };
380
380
  it('should return the default if the schema does not provide a description', function () {
381
381
  expect(getItemSummaryFromSchema(oneOfSchema, null, { defaultDescription: defaultDescription }).description).toBe(defaultDescription);
@@ -386,12 +386,12 @@ describe('getItemSummaryFromSchema', function () {
386
386
  });
387
387
  it('should return the default if a child schema provides a description but the model is null', function () {
388
388
  expect(getItemSummaryFromSchema(oneOfSchemaWithDescriptionOnChildSchema, null, {
389
- defaultDescription: defaultDescription
389
+ defaultDescription: defaultDescription,
390
390
  }).description).toBe(defaultDescription);
391
391
  });
392
392
  it('should return the model if a child schema provides a description and the model is valued', function () {
393
393
  expect(getItemSummaryFromSchema(oneOfSchemaWithDescriptionOnChildSchema, {
394
- iban: 'iban'
394
+ iban: 'iban',
395
395
  }, { defaultDescription: defaultDescription }).description).toBe('iban');
396
396
  });
397
397
  it('should return the default if schema provides a description but the model is not a string', function () {
@@ -405,24 +405,24 @@ describe('getItemSummaryFromSchema', function () {
405
405
  type: 'object',
406
406
  properties: {
407
407
  accountNumber: {
408
- type: 'string'
409
- }
408
+ type: 'string',
409
+ },
410
410
  },
411
- displayOrder: ['accountNumber']
411
+ displayOrder: ['accountNumber'],
412
412
  },
413
413
  {
414
414
  type: 'object',
415
415
  properties: {
416
416
  iban: {
417
- type: 'string'
418
- }
417
+ type: 'string',
418
+ },
419
419
  },
420
- displayOrder: ['iban']
420
+ displayOrder: ['iban'],
421
421
  },
422
- ]
422
+ ],
423
423
  };
424
424
  var allOfSchemaWithDescription = __assign(__assign({}, allOfSchema), { summary: {
425
- providesDescription: true
425
+ providesDescription: true,
426
426
  } });
427
427
  var allOfSchemaWithDescriptionOnChild = {
428
428
  allOf: [
@@ -430,10 +430,10 @@ describe('getItemSummaryFromSchema', function () {
430
430
  type: 'object',
431
431
  properties: {
432
432
  accountNumber: {
433
- type: 'string'
434
- }
433
+ type: 'string',
434
+ },
435
435
  },
436
- displayOrder: ['accountNumber']
436
+ displayOrder: ['accountNumber'],
437
437
  },
438
438
  {
439
439
  type: 'object',
@@ -441,13 +441,13 @@ describe('getItemSummaryFromSchema', function () {
441
441
  iban: {
442
442
  type: 'string',
443
443
  summary: {
444
- providesDescription: true
445
- }
446
- }
444
+ providesDescription: true,
445
+ },
446
+ },
447
447
  },
448
- displayOrder: ['iban']
448
+ displayOrder: ['iban'],
449
449
  },
450
- ]
450
+ ],
451
451
  };
452
452
  it('should return the default if the schema does not provide a description', function () {
453
453
  expect(getItemSummaryFromSchema(allOfSchema, null, { defaultDescription: defaultDescription }).description).toBe(defaultDescription);
@@ -468,17 +468,17 @@ describe('getItemSummaryFromSchema', function () {
468
468
  });
469
469
  describe('icons', function () {
470
470
  var icon = {
471
- name: 'plus'
471
+ name: 'plus',
472
472
  };
473
473
  var defaultIcon = {
474
- name: 'default'
474
+ name: 'default',
475
475
  };
476
476
  describe('const schemas', function () {
477
477
  var constSchema = {
478
- "const": 'const'
478
+ const: 'const',
479
479
  };
480
480
  var constSchemaWithIcon = __assign(__assign({}, constSchema), { icon: icon, summary: {
481
- providesIcon: true
481
+ providesIcon: true,
482
482
  } });
483
483
  it('should return the default if the schema does not provide an icon', function () {
484
484
  expect(getItemSummaryFromSchema(constSchema, null, { defaultIcon: defaultIcon }).icon).toBe(defaultIcon);
@@ -491,10 +491,10 @@ describe('getItemSummaryFromSchema', function () {
491
491
  describe('basic schemas', function () {
492
492
  var basicSchema = {
493
493
  type: 'string',
494
- title: 'basic schema'
494
+ title: 'basic schema',
495
495
  };
496
496
  var basicSchemaWithIcon = __assign(__assign({}, basicSchema), { icon: icon, summary: {
497
- providesIcon: true
497
+ providesIcon: true,
498
498
  } });
499
499
  it('should return the default if the schema does not provide an icon', function () {
500
500
  expect(getItemSummaryFromSchema(basicSchema, 'value', { defaultIcon: defaultIcon }).icon).toBe(defaultIcon);
@@ -512,12 +512,12 @@ describe('getItemSummaryFromSchema', function () {
512
512
  properties: {
513
513
  name: {
514
514
  title: 'Name',
515
- type: 'string'
516
- }
517
- }
515
+ type: 'string',
516
+ },
517
+ },
518
518
  };
519
519
  var objectSchemaWithIcon = __assign(__assign({}, objectSchema), { icon: icon, summary: {
520
- providesIcon: true
520
+ providesIcon: true,
521
521
  } });
522
522
  var objectSchemaWithIconInChild = {
523
523
  type: 'object',
@@ -528,14 +528,14 @@ describe('getItemSummaryFromSchema', function () {
528
528
  type: 'string',
529
529
  icon: icon,
530
530
  summary: {
531
- providesIcon: true
532
- }
531
+ providesIcon: true,
532
+ },
533
533
  },
534
534
  age: {
535
535
  title: 'Age',
536
- type: 'string'
537
- }
538
- }
536
+ type: 'string',
537
+ },
538
+ },
539
539
  };
540
540
  it('should return the default if the schema does not provide an icon', function () {
541
541
  expect(getItemSummaryFromSchema(objectSchema, null, { defaultIcon: defaultIcon }).icon).toBe(defaultIcon);
@@ -558,24 +558,24 @@ describe('getItemSummaryFromSchema', function () {
558
558
  type: 'object',
559
559
  properties: {
560
560
  accountNumber: {
561
- type: 'string'
562
- }
561
+ type: 'string',
562
+ },
563
563
  },
564
- displayOrder: ['accountNumber']
564
+ displayOrder: ['accountNumber'],
565
565
  },
566
566
  {
567
567
  type: 'object',
568
568
  properties: {
569
569
  iban: {
570
- type: 'string'
571
- }
570
+ type: 'string',
571
+ },
572
572
  },
573
- displayOrder: ['iban']
573
+ displayOrder: ['iban'],
574
574
  },
575
- ]
575
+ ],
576
576
  };
577
577
  var oneOfSchemaWithIcon = __assign(__assign({}, oneOfSchema), { icon: icon, summary: {
578
- providesIcon: true
578
+ providesIcon: true,
579
579
  } });
580
580
  var oneOfSchemaWithIconOnChildSchema = {
581
581
  oneOf: [
@@ -583,10 +583,10 @@ describe('getItemSummaryFromSchema', function () {
583
583
  type: 'object',
584
584
  properties: {
585
585
  accountNumber: {
586
- type: 'string'
587
- }
586
+ type: 'string',
587
+ },
588
588
  },
589
- displayOrder: ['accountNumber']
589
+ displayOrder: ['accountNumber'],
590
590
  },
591
591
  {
592
592
  type: 'object',
@@ -595,13 +595,13 @@ describe('getItemSummaryFromSchema', function () {
595
595
  type: 'string',
596
596
  icon: icon,
597
597
  summary: {
598
- providesIcon: true
599
- }
600
- }
598
+ providesIcon: true,
599
+ },
600
+ },
601
601
  },
602
- displayOrder: ['iban']
602
+ displayOrder: ['iban'],
603
603
  },
604
- ]
604
+ ],
605
605
  };
606
606
  it('should return the default if the schema does not provide an icon', function () {
607
607
  expect(getItemSummaryFromSchema(oneOfSchema, { iban: 'iban' }, { defaultIcon: defaultIcon }).icon).toBe(defaultIcon);
@@ -612,12 +612,12 @@ describe('getItemSummaryFromSchema', function () {
612
612
  });
613
613
  it('should return icon if active child schema provides an icon', function () {
614
614
  expect(getItemSummaryFromSchema(oneOfSchemaWithIconOnChildSchema, {
615
- iban: 'iban'
615
+ iban: 'iban',
616
616
  }, { defaultIcon: defaultIcon }).icon).toBe(icon);
617
617
  });
618
618
  it('should return the default if non-active child schema provides an icon', function () {
619
619
  expect(getItemSummaryFromSchema(oneOfSchemaWithIconOnChildSchema, {
620
- accountNumber: 'accountNumber'
620
+ accountNumber: 'accountNumber',
621
621
  }, { defaultIcon: defaultIcon }).icon).toBe(defaultIcon);
622
622
  });
623
623
  });
@@ -628,24 +628,24 @@ describe('getItemSummaryFromSchema', function () {
628
628
  type: 'object',
629
629
  properties: {
630
630
  accountNumber: {
631
- type: 'string'
632
- }
631
+ type: 'string',
632
+ },
633
633
  },
634
- displayOrder: ['accountNumber']
634
+ displayOrder: ['accountNumber'],
635
635
  },
636
636
  {
637
637
  type: 'object',
638
638
  properties: {
639
639
  iban: {
640
- type: 'string'
641
- }
640
+ type: 'string',
641
+ },
642
642
  },
643
- displayOrder: ['iban']
643
+ displayOrder: ['iban'],
644
644
  },
645
- ]
645
+ ],
646
646
  };
647
647
  var allOfSchemaWithIcon = __assign(__assign({}, allOfSchema), { icon: icon, summary: {
648
- providesIcon: true
648
+ providesIcon: true,
649
649
  } });
650
650
  var allOfSchemaWithIconOnChild = {
651
651
  allOf: [
@@ -653,10 +653,10 @@ describe('getItemSummaryFromSchema', function () {
653
653
  type: 'object',
654
654
  properties: {
655
655
  accountNumber: {
656
- type: 'string'
657
- }
656
+ type: 'string',
657
+ },
658
658
  },
659
- displayOrder: ['accountNumber']
659
+ displayOrder: ['accountNumber'],
660
660
  },
661
661
  {
662
662
  type: 'object',
@@ -665,13 +665,13 @@ describe('getItemSummaryFromSchema', function () {
665
665
  type: 'string',
666
666
  icon: icon,
667
667
  summary: {
668
- providesIcon: true
669
- }
670
- }
668
+ providesIcon: true,
669
+ },
670
+ },
671
671
  },
672
- displayOrder: ['iban']
672
+ displayOrder: ['iban'],
673
673
  },
674
- ]
674
+ ],
675
675
  };
676
676
  it('should return the default if the schema does not provide an icon', function () {
677
677
  expect(getItemSummaryFromSchema(allOfSchema, null, { defaultIcon: defaultIcon }).icon).toBe(defaultIcon);
@@ -688,17 +688,17 @@ describe('getItemSummaryFromSchema', function () {
688
688
  });
689
689
  describe('images', function () {
690
690
  var image = {
691
- url: '/cat.jpg'
691
+ url: '/cat.jpg',
692
692
  };
693
693
  var defaultImage = {
694
- url: '/default.jpg'
694
+ url: '/default.jpg',
695
695
  };
696
696
  describe('const schemas', function () {
697
697
  var constSchema = {
698
- "const": 'const'
698
+ const: 'const',
699
699
  };
700
700
  var constSchemaWithImage = __assign(__assign({}, constSchema), { image: image, summary: {
701
- providesImage: true
701
+ providesImage: true,
702
702
  } });
703
703
  it('should return the default if the schema does not provide an image', function () {
704
704
  expect(getItemSummaryFromSchema(constSchema, null, { defaultImage: defaultImage }).image).toBe(defaultImage);
@@ -711,10 +711,10 @@ describe('getItemSummaryFromSchema', function () {
711
711
  describe('basic schemas', function () {
712
712
  var basicSchema = {
713
713
  type: 'string',
714
- title: 'basic schema'
714
+ title: 'basic schema',
715
715
  };
716
716
  var basicSchemaWithImage = __assign(__assign({}, basicSchema), { image: image, summary: {
717
- providesImage: true
717
+ providesImage: true,
718
718
  } });
719
719
  it('should return the default if the schema does not provide an image', function () {
720
720
  expect(getItemSummaryFromSchema(basicSchema, 'value', { defaultImage: defaultImage }).image).toBe(defaultImage);
@@ -732,12 +732,12 @@ describe('getItemSummaryFromSchema', function () {
732
732
  properties: {
733
733
  name: {
734
734
  title: 'Name',
735
- type: 'string'
736
- }
737
- }
735
+ type: 'string',
736
+ },
737
+ },
738
738
  };
739
739
  var objectSchemaWithImage = __assign(__assign({}, objectSchema), { image: image, summary: {
740
- providesImage: true
740
+ providesImage: true,
741
741
  } });
742
742
  var objectSchemaWithImageInChild = {
743
743
  type: 'object',
@@ -748,14 +748,14 @@ describe('getItemSummaryFromSchema', function () {
748
748
  type: 'string',
749
749
  image: image,
750
750
  summary: {
751
- providesImage: true
752
- }
751
+ providesImage: true,
752
+ },
753
753
  },
754
754
  age: {
755
755
  title: 'Age',
756
- type: 'string'
757
- }
758
- }
756
+ type: 'string',
757
+ },
758
+ },
759
759
  };
760
760
  it('should return the default if the schema does not provide an image', function () {
761
761
  expect(getItemSummaryFromSchema(objectSchema, null, { defaultImage: defaultImage }).image).toBe(defaultImage);
@@ -778,24 +778,24 @@ describe('getItemSummaryFromSchema', function () {
778
778
  type: 'object',
779
779
  properties: {
780
780
  accountNumber: {
781
- type: 'string'
782
- }
781
+ type: 'string',
782
+ },
783
783
  },
784
- displayOrder: ['accountNumber']
784
+ displayOrder: ['accountNumber'],
785
785
  },
786
786
  {
787
787
  type: 'object',
788
788
  properties: {
789
789
  iban: {
790
- type: 'string'
791
- }
790
+ type: 'string',
791
+ },
792
792
  },
793
- displayOrder: ['iban']
793
+ displayOrder: ['iban'],
794
794
  },
795
- ]
795
+ ],
796
796
  };
797
797
  var oneOfSchemaWithImage = __assign(__assign({}, oneOfSchema), { image: image, summary: {
798
- providesImage: true
798
+ providesImage: true,
799
799
  } });
800
800
  var oneOfSchemaWithImageOnChildSchema = {
801
801
  oneOf: [
@@ -803,10 +803,10 @@ describe('getItemSummaryFromSchema', function () {
803
803
  type: 'object',
804
804
  properties: {
805
805
  accountNumber: {
806
- type: 'string'
807
- }
806
+ type: 'string',
807
+ },
808
808
  },
809
- displayOrder: ['accountNumber']
809
+ displayOrder: ['accountNumber'],
810
810
  },
811
811
  {
812
812
  type: 'object',
@@ -815,13 +815,13 @@ describe('getItemSummaryFromSchema', function () {
815
815
  type: 'string',
816
816
  image: image,
817
817
  summary: {
818
- providesImage: true
819
- }
820
- }
818
+ providesImage: true,
819
+ },
820
+ },
821
821
  },
822
- displayOrder: ['iban']
822
+ displayOrder: ['iban'],
823
823
  },
824
- ]
824
+ ],
825
825
  };
826
826
  it('should return the default if the schema does not provide an image', function () {
827
827
  expect(getItemSummaryFromSchema(oneOfSchema, { iban: 'iban' }, { defaultImage: defaultImage }).image).toBe(defaultImage);
@@ -832,12 +832,12 @@ describe('getItemSummaryFromSchema', function () {
832
832
  });
833
833
  it('should return image if active child schema provides an image', function () {
834
834
  expect(getItemSummaryFromSchema(oneOfSchemaWithImageOnChildSchema, {
835
- iban: 'iban'
835
+ iban: 'iban',
836
836
  }, { defaultImage: defaultImage }).image).toBe(image);
837
837
  });
838
838
  it('should return the default if non-active child schema provides an image', function () {
839
839
  expect(getItemSummaryFromSchema(oneOfSchemaWithImageOnChildSchema, {
840
- accountNumber: 'accountNumber'
840
+ accountNumber: 'accountNumber',
841
841
  }, { defaultImage: defaultImage }).image).toBe(defaultImage);
842
842
  });
843
843
  });
@@ -848,24 +848,24 @@ describe('getItemSummaryFromSchema', function () {
848
848
  type: 'object',
849
849
  properties: {
850
850
  accountNumber: {
851
- type: 'string'
852
- }
851
+ type: 'string',
852
+ },
853
853
  },
854
- displayOrder: ['accountNumber']
854
+ displayOrder: ['accountNumber'],
855
855
  },
856
856
  {
857
857
  type: 'object',
858
858
  properties: {
859
859
  iban: {
860
- type: 'string'
861
- }
860
+ type: 'string',
861
+ },
862
862
  },
863
- displayOrder: ['iban']
863
+ displayOrder: ['iban'],
864
864
  },
865
- ]
865
+ ],
866
866
  };
867
867
  var allOfSchemaWithImage = __assign(__assign({}, allOfSchema), { image: image, summary: {
868
- providesImage: true
868
+ providesImage: true,
869
869
  } });
870
870
  var allOfSchemaWithImageOnChild = {
871
871
  allOf: [
@@ -873,10 +873,10 @@ describe('getItemSummaryFromSchema', function () {
873
873
  type: 'object',
874
874
  properties: {
875
875
  accountNumber: {
876
- type: 'string'
877
- }
876
+ type: 'string',
877
+ },
878
878
  },
879
- displayOrder: ['accountNumber']
879
+ displayOrder: ['accountNumber'],
880
880
  },
881
881
  {
882
882
  type: 'object',
@@ -885,13 +885,13 @@ describe('getItemSummaryFromSchema', function () {
885
885
  type: 'string',
886
886
  image: image,
887
887
  summary: {
888
- providesImage: true
889
- }
890
- }
888
+ providesImage: true,
889
+ },
890
+ },
891
891
  },
892
- displayOrder: ['iban']
892
+ displayOrder: ['iban'],
893
893
  },
894
- ]
894
+ ],
895
895
  };
896
896
  it('should return the default if the schema does not provide an image', function () {
897
897
  expect(getItemSummaryFromSchema(allOfSchema, null, { defaultImage: defaultImage }).image).toBe(defaultImage);