@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.
- package/build/common/errorBoundary/ErrorBoundaryAlert.js +1 -1
- package/build/common/httpClientContext/HttpClientContext.js +2 -13
- package/build/common/makeHttpClient/makeHttpClient.spec.js +10 -10
- package/build/common/messages/external-confirmation.messages.js +5 -5
- package/build/common/messages/generic-error.messages.js +4 -4
- package/build/common/messages/help.messages.js +2 -2
- package/build/common/messages/multi-file-upload.messages.js +4 -4
- package/build/common/messages/multi-select.messages.js +2 -2
- package/build/common/messages/paragraph.messages.js +3 -3
- package/build/common/messages/repeatable.messages.js +5 -5
- package/build/common/messages/validation.array.messages.js +3 -3
- package/build/common/messages/validation.messages.js +11 -11
- package/build/i18n/index.js +1 -1
- package/build/legacy/common/constants/DateMode.js +1 -1
- package/build/legacy/common/constants/FormControlType.js +1 -1
- package/build/legacy/common/constants/MonthFormat.js +1 -1
- package/build/legacy/common/constants/Size.js +1 -1
- package/build/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +3 -14
- package/build/legacy/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +3 -1
- package/build/legacy/common/contexts/eventsContext/EventsContext.js +2 -2
- package/build/legacy/common/contexts/eventsContext/EventsContext.spec.js +1 -12
- package/build/legacy/common/contexts/featureContext/FeatureContext.js +1 -12
- package/build/legacy/common/contexts/featureContext/FeatureContext.spec.js +4 -15
- package/build/legacy/common/contexts/logContext/LogContext.js +2 -2
- package/build/legacy/common/contexts/logContext/LogContext.spec.js +1 -12
- package/build/legacy/common/hooks/useExternal/useExternal.spec.js +6 -6
- package/build/legacy/common/hooks/useExternalStepPolling/useExternalStepPolling.js +3 -2
- package/build/legacy/common/hooks/usePersistAsync/usePersistAsync.js +1 -1
- package/build/legacy/common/hooks/usePolling/usePolling.js +4 -2
- package/build/legacy/common/hooks/useStepPolling/useStepPolling.js +5 -3
- package/build/legacy/common/hooks/useStepPolling/useStepPolling.spec.js +4 -4
- package/build/legacy/common/messages.js +2 -2
- package/build/legacy/common/utils/file-utils.spec.js +4 -4
- package/build/legacy/common/utils/mobile-utils.spec.js +1 -1
- package/build/legacy/common/utils/schema-utils.js +2 -2
- package/build/legacy/common/validators/models/model-utils.spec.js +7 -7
- package/build/legacy/common/validators/models/model-validators.js +2 -2
- package/build/legacy/common/validators/models/model-validators.spec.js +54 -54
- package/build/legacy/common/validators/schemas/schema-validators.js +1 -1
- package/build/legacy/common/validators/schemas/schema-validators.spec.js +20 -20
- package/build/legacy/common/validators/validationFailures/validation-failures.js +2 -2
- package/build/legacy/common/validators/validationFailures/validation-failures.spec.js +11 -11
- package/build/legacy/dynamicFlow/BackButton.js +2 -2
- package/build/legacy/dynamicFlow/DynamicFlow.js +5 -5
- package/build/legacy/dynamicFlow/stories/dev-tools/DynamicFlow.story.js +7 -7
- package/build/legacy/dynamicFlow/stories/dev-tools/ErrorResponses.story.js +18 -18
- package/build/legacy/dynamicFlow/stories/dev-tools/Examples.story.js +1 -1
- package/build/legacy/dynamicFlow/stories/dev-tools/Features.story.js +1 -1
- package/build/legacy/dynamicFlow/stories/dev-tools/JsonSchemaForm.story.js +5 -5
- package/build/legacy/dynamicFlow/stories/dev-tools/RefreshOnChange.story.js +24 -24
- package/build/legacy/dynamicFlow/stories/dev-tools/SearchFeature.story.js +10 -21
- package/build/legacy/dynamicFlow/stories/dev-tools/ServerTest.story.js +4 -4
- package/build/legacy/dynamicFlow/stories/dev-tools/Upload.story.js +19 -19
- package/build/legacy/dynamicFlow/stories/dev-tools/ValidationAsync.story.js +18 -18
- package/build/legacy/dynamicFlow/stories/examples/ObjectConst.story.js +25 -25
- package/build/legacy/dynamicFlow/tests/Actions.spec.js +6 -6
- package/build/legacy/dynamicFlow/tests/AllOfSchema.spec.js +17 -17
- package/build/legacy/dynamicFlow/tests/AutocompleteHints.spec.js +6 -6
- package/build/legacy/dynamicFlow/tests/DynamicFlow.BackButton.spec.js +11 -11
- package/build/legacy/dynamicFlow/tests/DynamicFlow.search.spec.js +13 -13
- package/build/legacy/dynamicFlow/tests/DynamicFlow.spec.js +48 -48
- package/build/legacy/dynamicFlow/tests/DynamicImage.spec.js +4 -4
- package/build/legacy/dynamicFlow/tests/DynamicInstructions.spec.js +3 -3
- package/build/legacy/dynamicFlow/tests/HiddenSchemas.spec.js +24 -24
- package/build/legacy/dynamicFlow/tests/ModalLayout.spec.js +20 -20
- package/build/legacy/dynamicFlow/tests/MultiSelect.spec.js +21 -21
- package/build/legacy/dynamicFlow/tests/MultipleFileUploadSchema.spec.js +24 -24
- package/build/legacy/dynamicFlow/tests/ObjectSchema.spec.js +16 -16
- package/build/legacy/dynamicFlow/tests/OneOfSchema.spec.js +77 -77
- package/build/legacy/dynamicFlow/tests/PersistAsync.blob-schema.spec.js +19 -19
- package/build/legacy/dynamicFlow/tests/PersistAsync.string-schema.spec.js +10 -10
- package/build/legacy/dynamicFlow/tests/RefreshStepOnChange.debouncing.spec.js +19 -19
- package/build/legacy/dynamicFlow/tests/RefreshStepOnChange.spec.js +46 -46
- package/build/legacy/dynamicFlow/tests/RepeatableSchema.spec.js +62 -62
- package/build/legacy/dynamicFlow/tests/StepModel.spec.js +6 -6
- package/build/legacy/dynamicFlow/tests/ValidationAsync.spec.js +13 -13
- package/build/legacy/dynamicFlow/utils/responseParsers/response-parsers.spec.js +13 -13
- package/build/legacy/dynamicFlow/utils/useDynamicFlowState.js +4 -4
- package/build/legacy/formControl/FormControl.js +9 -9
- package/build/legacy/formControl/Select.spec.js +3 -3
- package/build/legacy/formControl/utils/getAutocompleteString.js +1 -1
- package/build/legacy/formControl/utils/value-utils.js +1 -1
- package/build/legacy/jsonSchemaForm/JsonSchemaForm.end-to-end.spec.js +66 -66
- package/build/legacy/jsonSchemaForm/JsonSchemaForm.js +1 -1
- package/build/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.js +5 -5
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +1 -1
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +1 -1
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.js +6 -17
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +3 -3
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +1 -1
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.js +7 -7
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.js +6 -6
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.js +7 -7
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.spec.js +190 -190
- package/build/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +8 -19
- package/build/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.js +14 -14
- package/build/legacy/jsonSchemaForm/genericSchema/GenericSchema.rtl.spec.js +2 -2
- package/build/legacy/jsonSchemaForm/help/Help.js +1 -12
- package/build/legacy/jsonSchemaForm/objectSchema/ObjectSchema.js +4 -4
- package/build/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.js +12 -12
- package/build/legacy/jsonSchemaForm/oneOfSchema/utils.js +6 -6
- package/build/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +1 -1
- package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +2 -2
- package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +4 -4
- package/build/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +2 -2
- package/build/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +2 -2
- package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +1 -12
- package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +1 -1
- package/build/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +3 -3
- package/build/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +1 -1
- package/build/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +3 -3
- package/build/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +6 -6
- package/build/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.spec.js +12 -12
- package/build/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +10 -10
- package/build/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.spec.js +23 -23
- package/build/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +2 -2
- package/build/legacy/layout/DynamicLayout.js +1 -1
- package/build/legacy/layout/box/DynamicBox.js +2 -13
- package/build/legacy/layout/button/DynamicButton.js +1 -12
- package/build/legacy/layout/button/DynamicButton.spec.js +13 -24
- package/build/legacy/layout/button/utils.js +3 -3
- package/build/legacy/layout/button/utils.spec.js +6 -6
- package/build/legacy/layout/columns/DynamicColumns.js +4 -15
- package/build/legacy/layout/decision/DynamicDecision.js +1 -12
- package/build/legacy/layout/external/DynamicExternal.js +1 -1
- package/build/legacy/layout/external/DynamicExternal.messages.js +2 -2
- package/build/legacy/layout/form/DynamicForm.js +2 -2
- package/build/legacy/layout/heading/DynamicHeading.js +8 -19
- package/build/legacy/layout/image/DynamicImage.js +5 -4
- package/build/legacy/layout/instructions/DynamicInstructions.js +1 -12
- package/build/legacy/layout/list/DynamicStatusList.js +3 -3
- package/build/legacy/layout/list/DynamicStatusList.spec.js +9 -9
- package/build/legacy/layout/loadingIndicator/DynamicLoadingIndicator.js +1 -1
- package/build/legacy/layout/markdown/DynamicMarkdown.js +2 -13
- package/build/legacy/layout/markdown/DynamicMarkdown.spec.js +4 -4
- package/build/legacy/layout/modal/DynamicModal.js +2 -2
- package/build/legacy/layout/paragraph/DynamicParagraph.js +5 -16
- package/build/legacy/layout/review/DynamicReview.js +3 -14
- package/build/legacy/layout/review/DynamicReview.spec.js +6 -6
- package/build/legacy/layout/search/DynamicSearch.js +2 -13
- package/build/legacy/layout/search/SearchInput.js +1 -12
- package/build/legacy/layout/search/SearchResults.js +3 -14
- package/build/legacy/layout/search/useSearch.js +4 -4
- package/build/legacy/layout/utils/getNavigationOptionMedia.js +2 -13
- package/build/legacy/step/cameraStep/CameraStep.js +1 -1
- package/build/legacy/step/cameraStep/cameraCapture/CameraCapture.js +6 -6
- package/build/legacy/step/cameraStep/cameraCapture/CameraCapture.messages.js +12 -12
- package/build/legacy/step/cameraStep/cameraCapture/CameraCapture.spec.js +13 -13
- package/build/legacy/step/cameraStep/cameraCapture/components/bottomBar/BottomBar.js +3 -14
- package/build/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.js +1 -12
- package/build/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.js +2 -2
- package/build/legacy/step/cameraStep/cameraCapture/hooks/useFullScreenOrientationLock.js +6 -4
- package/build/legacy/step/cameraStep/cameraCapture/hooks/useVideoConstraints.js +1 -1
- package/build/legacy/step/cameraStep/cameraCapture/overlay/Overlay.js +6 -6
- package/build/legacy/step/cameraStep/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.js +1 -12
- package/build/legacy/step/cameraStep/cameraCapture/tracking/index.js +1 -1
- package/build/legacy/step/externalConfirmationStep/ExternalConfirmationStep.js +7 -7
- package/build/legacy/step/layoutStep/LayoutStep.js +1 -1
- package/build/legacy/step/layoutStep/utils/inline-reference-utils.js +3 -3
- package/build/legacy/step/layoutStep/utils/layout-utils.js +12 -12
- package/build/legacy/test-utils/DynamicFlowProviders.js +1 -12
- package/build/legacy/test-utils/legacy-utils.js +4 -4
- package/build/legacy/test-utils/log-utils.js +1 -1
- package/build/revamp/DynamicFlowCore.js +5 -5
- package/build/revamp/DynamicFlowWise.js +1 -1
- package/build/revamp/DynamicFlowWise.spec.js +11 -11
- package/build/revamp/domain/components/AllOfComponent.js +1 -1
- package/build/revamp/domain/components/BooleanInputComponent.js +2 -2
- package/build/revamp/domain/components/ConstComponent.js +1 -1
- package/build/revamp/domain/components/DateInputComponent.js +2 -2
- package/build/revamp/domain/components/IntegerInputComponent.js +2 -2
- package/build/revamp/domain/components/NumberInputComponent.js +2 -2
- package/build/revamp/domain/components/ObjectComponent.js +1 -1
- package/build/revamp/domain/components/SelectInputComponent.js +2 -2
- package/build/revamp/domain/components/StepDomainComponent.js +1 -1
- package/build/revamp/domain/components/TextInputComponent.js +2 -2
- package/build/revamp/domain/components/UploadInputComponent.js +1 -1
- package/build/revamp/domain/components/repeatableComponent/RepeatableComponent.js +1 -1
- package/build/revamp/domain/components/repeatableComponent/RepeatableComponent.spec.js +1 -1
- package/build/revamp/domain/components/searchComponent/SearchComponent.js +4 -3
- package/build/revamp/domain/components/searchComponent/SearchComponent.spec.js +13 -13
- package/build/revamp/domain/components/utils/isPartialLocalValueMatch.spec.js +7 -7
- package/build/revamp/domain/features/persistAsync/getComponentPersistAsync.js +4 -4
- package/build/revamp/domain/features/persistAsync/getComponentPersistAsync.spec.js +1 -1
- package/build/revamp/domain/features/persistAsync/getInitialPersistedState.js +1 -1
- package/build/revamp/domain/features/persistAsync/getPerformPersistAsync.spec.js +17 -17
- package/build/revamp/domain/features/search/getPerformSearchFunction.js +3 -3
- package/build/revamp/domain/features/search/getPerformSearchFunction.spec.js +18 -18
- package/build/revamp/domain/features/summary/summary-utils.js +2 -2
- package/build/revamp/domain/features/summary/summary-utils.spec.js +27 -27
- package/build/revamp/domain/features/utils/http-utils.js +1 -1
- package/build/revamp/domain/features/validation/spec-utils.js +1 -1
- package/build/revamp/domain/features/validation/validation-functions.spec.js +4 -4
- package/build/revamp/domain/features/validation/value-checks.spec.js +4 -4
- package/build/revamp/domain/features/validationAsync/getComponentValidationAsync.js +4 -3
- package/build/revamp/domain/features/validationAsync/getComponentValidationAsync.spec.js +1 -1
- package/build/revamp/domain/features/validationAsync/getInitialValidationState.js +1 -1
- package/build/revamp/domain/features/validationAsync/getPerformValidationAsync.js +1 -1
- package/build/revamp/domain/features/validationAsync/getPerformValidationAsync.spec.js +17 -17
- package/build/revamp/domain/mappers/layout/alertLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/boxLayoutToComponents.js +1 -1
- package/build/revamp/domain/mappers/layout/buttonLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/columnsLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/decisionLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/formLayoutToComponent.js +2 -2
- package/build/revamp/domain/mappers/layout/headingLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/imageLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/infoLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/instructionsLayoutToComponent.js +2 -2
- package/build/revamp/domain/mappers/layout/listLayoutToComponent.js +2 -2
- package/build/revamp/domain/mappers/layout/markdownLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/modalLayoutToComponent.js +2 -2
- package/build/revamp/domain/mappers/layout/paragraphLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/reviewLayoutToComponent.js +3 -3
- package/build/revamp/domain/mappers/layout/searchLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/layout/statusListLayoutToComponent.js +1 -1
- package/build/revamp/domain/mappers/mapSchemaToComponent.js +1 -1
- package/build/revamp/domain/mappers/mapSchemaToComponent.spec.js +22 -22
- package/build/revamp/domain/mappers/mapStepToComponent.js +3 -3
- package/build/revamp/domain/mappers/mapStepToComponent.spec.js +12 -12
- package/build/revamp/domain/mappers/schema/allOfSchemaToComponent.js +1 -1
- package/build/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.js +2 -2
- package/build/revamp/domain/mappers/schema/booleanSchemaToComponent.js +1 -1
- package/build/revamp/domain/mappers/schema/constSchemaToComponent.js +2 -2
- package/build/revamp/domain/mappers/schema/integerSchemaToComponent.js +1 -1
- package/build/revamp/domain/mappers/schema/numberSchemaToComponent.js +1 -1
- package/build/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.js +1 -1
- package/build/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.spec.js +21 -21
- package/build/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.js +4 -4
- package/build/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.spec.js +48 -48
- package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.spec.js +21 -21
- package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToDateInputComponent.js +1 -1
- package/build/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToTextInputComponent.js +1 -1
- package/build/revamp/domain/mappers/schema/utils/getPersistAsyncInitialState.js +1 -1
- package/build/revamp/domain/mappers/schema/utils/getValidationAsyncInitialState.js +1 -1
- package/build/revamp/domain/mappers/utils/getAutocompleteString.js +1 -1
- package/build/revamp/domain/mappers/utils/legacy-utils.js +2 -2
- package/build/revamp/flow/executeRefresh.js +2 -2
- package/build/revamp/flow/executeSubmission.js +1 -1
- package/build/revamp/renderers/CoreContainerRenderer.js +1 -1
- package/build/revamp/renderers/getRenderFunction.js +3 -3
- package/build/revamp/renderers/getSchemaErrorMessageFunction.js +12 -12
- package/build/revamp/renderers/mappers/allOfComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/buttonComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/containerComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/headingComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/hiddenComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/imageComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/instructionsComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/loadingIndicatorComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/markdownComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/modalComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/multiUploadInputComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/objectComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/paragraphComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/repeatableComponentToProps.js +2 -2
- package/build/revamp/renderers/mappers/reviewComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/searchComponentToProps.js +2 -2
- package/build/revamp/renderers/mappers/statusListComponentToProps.js +1 -1
- package/build/revamp/renderers/mappers/utils/inputComponentToProps.js +1 -1
- package/build/revamp/renderers/step/ExternalConfirmationDialog.js +2 -13
- package/build/revamp/renderers/step/StepRenderer.js +2 -13
- package/build/revamp/renderers/stepComponentToProps.js +1 -1
- package/build/revamp/stories/dev-tools/DynamicFlowRevamp.story.js +53 -53
- package/build/revamp/stories/dev-tools/EditableStep.story.js +7 -7
- package/build/revamp/stories/dev-tools/ErrorHandling.story.js +17 -17
- package/build/revamp/stories/dev-tools/External.story.js +6 -6
- package/build/revamp/stories/dev-tools/OneOf.Inititalisation.story.js +14 -14
- package/build/revamp/stories/dev-tools/PersistAsync.story.js +16 -16
- package/build/revamp/stories/dev-tools/RefreshOnChange.story.js +41 -41
- package/build/revamp/stories/dev-tools/RefreshOnChange.with.PersistAsync.story.js +210 -210
- package/build/revamp/stories/dev-tools/ServerTest.story.js +4 -4
- package/build/revamp/stories/dev-tools/Upload.story.js +18 -18
- package/build/revamp/stories/dev-tools/ValidationAsync.story.js +18 -18
- package/build/revamp/stories/examples/ObjectConst.story.js +25 -25
- package/build/revamp/stories/examples/OneOfInitialisation.story.js +10 -10
- package/build/revamp/stories/utils/fixtureHttpClient.js +1 -1
- package/build/revamp/stories/utils/mockSearchHandler.js +8 -8
- package/build/revamp/stories/visual-tests/VisualTests.story.js +1 -1
- package/build/revamp/test-utils/step-utils.js +1 -1
- package/build/revamp/tests/ImageRenderer.spec.js +3 -3
- package/build/revamp/tests/InitialAction.spec.js +9 -9
- package/build/revamp/tests/InitialStep.spec.js +3 -3
- package/build/revamp/tests/Logging.spec.js +5 -5
- package/build/revamp/tests/OneOfInitialisation.spec.js +73 -73
- package/build/revamp/tests/RefreshOnChange.ResponseHandling.spec.js +19 -19
- package/build/revamp/tests/RefreshOnChange.with.Tabs.spec.js +57 -57
- package/build/revamp/tests/RefreshOnChangePreserve.spec.js +13 -13
- package/build/revamp/tests/Submission.ResponseHandling.spec.js +38 -38
- package/build/revamp/tests/Submission.spec.js +23 -23
- package/build/revamp/tests/legacy/HiddenSchemas.spec.js +24 -24
- package/build/revamp/tests/legacy/MultipleFileUploadSchema.spec.js +27 -27
- package/build/revamp/tests/legacy/PersistAsync.blob-schema.spec.js +18 -18
- package/build/revamp/tests/legacy/PersistAsync.string-schema.spec.js +8 -8
- package/build/revamp/tests/legacy/RefreshStepOnChange.debouncing.spec.js +15 -14
- package/build/revamp/tests/legacy/RefreshStepOnChange.spec.js +50 -50
- package/build/revamp/tests/legacy/ValidationAsync.spec.js +14 -14
- package/build/revamp/tests/legacy/useExternal.spec.js +6 -6
- package/build/revamp/utils/component-utils.spec.js +43 -43
- package/build/revamp/utils/findComponent.spec.js +14 -14
- package/build/revamp/utils/type-utils.js +1 -1
- package/build/revamp/wise/renderers/AlertRenderer.js +1 -1
- package/build/revamp/wise/renderers/BooleanInputRenderer.js +2 -2
- package/build/revamp/wise/renderers/BoxRenderer.js +4 -15
- package/build/revamp/wise/renderers/ButtonRenderer.js +2 -13
- package/build/revamp/wise/renderers/ColumnsRenderer.js +4 -15
- package/build/revamp/wise/renderers/DateInputRenderer.js +2 -2
- package/build/revamp/wise/renderers/DecisionRenderer.js +3 -14
- package/build/revamp/wise/renderers/DividerRenderer.js +1 -1
- package/build/revamp/wise/renderers/FormRenderer.js +2 -13
- package/build/revamp/wise/renderers/FormSectionRenderer.js +1 -1
- package/build/revamp/wise/renderers/HeadingRenderer.js +7 -7
- package/build/revamp/wise/renderers/ImageRenderer.js +5 -4
- package/build/revamp/wise/renderers/InstructionsRenderer.js +2 -13
- package/build/revamp/wise/renderers/IntegerInputRenderer.js +3 -3
- package/build/revamp/wise/renderers/LoadingIndicatorRenderer.js +1 -1
- package/build/revamp/wise/renderers/MarkdownRenderer.js +2 -13
- package/build/revamp/wise/renderers/ModalRenderer.js +2 -2
- package/build/revamp/wise/renderers/MultiUploadInputRenderer.js +3 -14
- package/build/revamp/wise/renderers/NumberInputRenderer.js +3 -3
- package/build/revamp/wise/renderers/ParagraphRenderer.js +5 -4
- package/build/revamp/wise/renderers/RepeatableRenderer.js +5 -5
- package/build/revamp/wise/renderers/ReviewRenderer.js +5 -16
- package/build/revamp/wise/renderers/SearchRenderer.js +5 -5
- package/build/revamp/wise/renderers/SelectInputRenderer/OptionMedia.js +2 -13
- package/build/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.js +3 -14
- package/build/revamp/wise/renderers/SelectInputRenderer/SelectInputRenderer.js +1 -1
- package/build/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.js +4 -4
- package/build/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.js +2 -13
- package/build/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.js +3 -14
- package/build/revamp/wise/renderers/StatusListRenderer.js +3 -14
- package/build/revamp/wise/renderers/TextInputRenderer.js +2 -2
- package/build/revamp/wise/renderers/UploadInputRenderer.js +6 -6
- package/build/revamp/wise/renderers/components/FieldInput.js +1 -12
- package/build/revamp/wise/renderers/components/Help.js +1 -12
- package/build/revamp/wise/renderers/components/UploadFieldInput.js +3 -14
- package/build/revamp/wise/renderers/components/icon/NavigationOptionMedia.js +2 -13
- package/build/test-utils/NeptuneProviders.js +1 -1
- package/build/types/common/messages/multi-file-upload.messages.d.ts +9 -9
- package/build/types/legacy/common/utils/mobile-utils.d.ts +1 -1
- package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +6 -6
- package/build/types/legacy/layout/external/DynamicExternal.messages.d.ts +3 -3
- package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
- package/package.json +3 -3
|
@@ -68,7 +68,7 @@ var getProps = function () { return ({
|
|
|
68
68
|
onCompletion: jest.fn(),
|
|
69
69
|
onError: jest.fn(),
|
|
70
70
|
onEvent: jest.fn(),
|
|
71
|
-
onLog: jest.fn()
|
|
71
|
+
onLog: jest.fn(),
|
|
72
72
|
}); };
|
|
73
73
|
describe('RefreshOnChange with Tabs', function () {
|
|
74
74
|
describe('given a oneOf schema with refresh-on-change and the child schemas contain tabs', function () {
|
|
@@ -127,20 +127,20 @@ var currencyObjectSchema = {
|
|
|
127
127
|
analyticsId: 'EUR',
|
|
128
128
|
icon: { name: 'flag-eur' },
|
|
129
129
|
description: 'Euro',
|
|
130
|
-
|
|
130
|
+
const: 'EUR',
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
title: 'GBP',
|
|
134
134
|
analyticsId: 'GBP',
|
|
135
135
|
icon: { name: 'flag-gbp' },
|
|
136
136
|
description: 'British pound',
|
|
137
|
-
|
|
137
|
+
const: 'GBP',
|
|
138
138
|
},
|
|
139
139
|
],
|
|
140
140
|
refreshStepOnChange: true,
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
}
|
|
141
|
+
default: 'EUR',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
144
|
};
|
|
145
145
|
var steps = {
|
|
146
146
|
GBP: {
|
|
@@ -153,7 +153,7 @@ var steps = {
|
|
|
153
153
|
url: '/submit',
|
|
154
154
|
type: 'primary',
|
|
155
155
|
method: 'POST',
|
|
156
|
-
$id: 'submit'
|
|
156
|
+
$id: 'submit',
|
|
157
157
|
},
|
|
158
158
|
],
|
|
159
159
|
schemas: [
|
|
@@ -173,7 +173,7 @@ var steps = {
|
|
|
173
173
|
properties: {
|
|
174
174
|
name: {
|
|
175
175
|
title: 'Full name of the account holder',
|
|
176
|
-
type: 'string'
|
|
176
|
+
type: 'string',
|
|
177
177
|
},
|
|
178
178
|
details: {
|
|
179
179
|
type: 'object',
|
|
@@ -183,20 +183,20 @@ var steps = {
|
|
|
183
183
|
title: 'UK sort code',
|
|
184
184
|
type: 'string',
|
|
185
185
|
placeholder: '40-30-20',
|
|
186
|
-
format: 'numeric'
|
|
186
|
+
format: 'numeric',
|
|
187
187
|
},
|
|
188
188
|
accountNumber: {
|
|
189
189
|
title: 'Account number',
|
|
190
190
|
type: 'string',
|
|
191
191
|
placeholder: '12345678',
|
|
192
|
-
format: 'numeric'
|
|
193
|
-
}
|
|
194
|
-
}
|
|
192
|
+
format: 'numeric',
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
195
|
},
|
|
196
196
|
type: {
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
}
|
|
197
|
+
const: 'SortCode',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
title: 'IBAN',
|
|
@@ -207,7 +207,7 @@ var steps = {
|
|
|
207
207
|
properties: {
|
|
208
208
|
name: {
|
|
209
209
|
title: 'Full name of the account holder',
|
|
210
|
-
type: 'string'
|
|
210
|
+
type: 'string',
|
|
211
211
|
},
|
|
212
212
|
details: {
|
|
213
213
|
type: 'object',
|
|
@@ -217,20 +217,20 @@ var steps = {
|
|
|
217
217
|
title: 'Bank code (BIC/SWIFT)',
|
|
218
218
|
type: 'string',
|
|
219
219
|
hidden: true,
|
|
220
|
-
placeholder: "Please choose recipient's bank"
|
|
220
|
+
placeholder: "Please choose recipient's bank",
|
|
221
221
|
},
|
|
222
222
|
iban: {
|
|
223
223
|
title: 'IBAN',
|
|
224
224
|
type: 'string',
|
|
225
225
|
placeholder: 'DE12345678901234567890',
|
|
226
|
-
displayFormat: '**** **** **** **** **** **** **** ****'
|
|
227
|
-
}
|
|
228
|
-
}
|
|
226
|
+
displayFormat: '**** **** **** **** **** **** **** ****',
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
229
|
},
|
|
230
230
|
type: {
|
|
231
|
-
|
|
232
|
-
}
|
|
233
|
-
}
|
|
231
|
+
const: 'Iban',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
title: 'SWIFT',
|
|
@@ -241,7 +241,7 @@ var steps = {
|
|
|
241
241
|
properties: {
|
|
242
242
|
name: {
|
|
243
243
|
title: 'Full name of the account holder',
|
|
244
|
-
type: 'string'
|
|
244
|
+
type: 'string',
|
|
245
245
|
},
|
|
246
246
|
details: {
|
|
247
247
|
type: 'object',
|
|
@@ -250,35 +250,35 @@ var steps = {
|
|
|
250
250
|
bic: {
|
|
251
251
|
title: 'SWIFT / BIC code',
|
|
252
252
|
type: 'string',
|
|
253
|
-
placeholder: 'BUKBGB22'
|
|
253
|
+
placeholder: 'BUKBGB22',
|
|
254
254
|
},
|
|
255
255
|
accountNumber: {
|
|
256
256
|
title: 'IBAN / Account number',
|
|
257
|
-
type: 'string'
|
|
258
|
-
}
|
|
259
|
-
}
|
|
257
|
+
type: 'string',
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
260
|
},
|
|
261
261
|
type: {
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
}
|
|
262
|
+
const: 'SwiftCode',
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
265
|
},
|
|
266
266
|
],
|
|
267
|
-
control: 'tab'
|
|
267
|
+
control: 'tab',
|
|
268
268
|
},
|
|
269
269
|
],
|
|
270
|
-
$id: 'form'
|
|
270
|
+
$id: 'form',
|
|
271
271
|
},
|
|
272
272
|
],
|
|
273
273
|
refreshFormUrl: '/refresh',
|
|
274
274
|
model: {
|
|
275
275
|
currency: 'GBP',
|
|
276
|
-
details: {}
|
|
276
|
+
details: {},
|
|
277
277
|
},
|
|
278
278
|
layout: [
|
|
279
279
|
{ schema: { $ref: 'form' }, type: 'form' },
|
|
280
280
|
{ type: 'button', action: { $ref: 'submit' } },
|
|
281
|
-
]
|
|
281
|
+
],
|
|
282
282
|
},
|
|
283
283
|
EUR: {
|
|
284
284
|
id: 'account',
|
|
@@ -290,7 +290,7 @@ var steps = {
|
|
|
290
290
|
url: '/submit',
|
|
291
291
|
type: 'primary',
|
|
292
292
|
method: 'POST',
|
|
293
|
-
$id: 'submit'
|
|
293
|
+
$id: 'submit',
|
|
294
294
|
},
|
|
295
295
|
],
|
|
296
296
|
schemas: [
|
|
@@ -310,7 +310,7 @@ var steps = {
|
|
|
310
310
|
properties: {
|
|
311
311
|
name: {
|
|
312
312
|
title: 'Full name of the account holder',
|
|
313
|
-
type: 'string'
|
|
313
|
+
type: 'string',
|
|
314
314
|
},
|
|
315
315
|
details: {
|
|
316
316
|
type: 'object',
|
|
@@ -320,20 +320,20 @@ var steps = {
|
|
|
320
320
|
title: 'Bank code (BIC/SWIFT)',
|
|
321
321
|
type: 'string',
|
|
322
322
|
hidden: true,
|
|
323
|
-
placeholder: 'BARCGB22XXX'
|
|
323
|
+
placeholder: 'BARCGB22XXX',
|
|
324
324
|
},
|
|
325
325
|
iban: {
|
|
326
326
|
title: 'IBAN',
|
|
327
327
|
type: 'string',
|
|
328
|
-
placeholder: 'DE12345678901234567890'
|
|
329
|
-
}
|
|
330
|
-
}
|
|
328
|
+
placeholder: 'DE12345678901234567890',
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
331
|
},
|
|
332
332
|
type: {
|
|
333
|
-
|
|
334
|
-
}
|
|
333
|
+
const: 'Iban',
|
|
334
|
+
},
|
|
335
335
|
},
|
|
336
|
-
required: ['type', 'name', 'details']
|
|
336
|
+
required: ['type', 'name', 'details'],
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
339
|
title: 'Outside Europe',
|
|
@@ -344,7 +344,7 @@ var steps = {
|
|
|
344
344
|
properties: {
|
|
345
345
|
name: {
|
|
346
346
|
title: 'Full name of the account holder',
|
|
347
|
-
type: 'string'
|
|
347
|
+
type: 'string',
|
|
348
348
|
},
|
|
349
349
|
details: {
|
|
350
350
|
type: 'object',
|
|
@@ -353,38 +353,38 @@ var steps = {
|
|
|
353
353
|
bic: {
|
|
354
354
|
title: 'SWIFT / BIC code',
|
|
355
355
|
type: 'string',
|
|
356
|
-
placeholder: 'BUKBGB22'
|
|
356
|
+
placeholder: 'BUKBGB22',
|
|
357
357
|
},
|
|
358
358
|
accountNumber: {
|
|
359
359
|
title: 'IBAN / Account number',
|
|
360
|
-
type: 'string'
|
|
361
|
-
}
|
|
360
|
+
type: 'string',
|
|
361
|
+
},
|
|
362
362
|
},
|
|
363
|
-
required: ['bic', 'accountNumber']
|
|
363
|
+
required: ['bic', 'accountNumber'],
|
|
364
364
|
},
|
|
365
365
|
type: {
|
|
366
|
-
|
|
367
|
-
}
|
|
366
|
+
const: 'SwiftCode',
|
|
367
|
+
},
|
|
368
368
|
},
|
|
369
|
-
required: ['type', 'name', 'details']
|
|
369
|
+
required: ['type', 'name', 'details'],
|
|
370
370
|
},
|
|
371
371
|
],
|
|
372
372
|
control: 'tab',
|
|
373
|
-
placeholder: 'Please select where you are sending to'
|
|
373
|
+
placeholder: 'Please select where you are sending to',
|
|
374
374
|
},
|
|
375
375
|
],
|
|
376
|
-
$id: 'form'
|
|
376
|
+
$id: 'form',
|
|
377
377
|
},
|
|
378
378
|
],
|
|
379
379
|
refreshFormUrl: '/refresh',
|
|
380
380
|
model: {
|
|
381
381
|
currency: 'EUR',
|
|
382
|
-
details: {}
|
|
382
|
+
details: {},
|
|
383
383
|
},
|
|
384
384
|
layout: [
|
|
385
385
|
{ schema: { $ref: 'form' }, type: 'form' },
|
|
386
386
|
{ type: 'button', action: { $ref: 'submit' } },
|
|
387
|
-
]
|
|
388
|
-
}
|
|
387
|
+
],
|
|
388
|
+
},
|
|
389
389
|
};
|
|
390
390
|
var initialStep = steps.EUR;
|
|
@@ -57,7 +57,7 @@ var getProps = function () { return ({
|
|
|
57
57
|
onCompletion: jest.fn(),
|
|
58
58
|
onError: jest.fn(),
|
|
59
59
|
onEvent: jest.fn(),
|
|
60
|
-
onLog: jest.fn()
|
|
60
|
+
onLog: jest.fn(),
|
|
61
61
|
}); };
|
|
62
62
|
var initialSchema = {
|
|
63
63
|
$id: '#schema',
|
|
@@ -72,22 +72,22 @@ var initialSchema = {
|
|
|
72
72
|
method: 'POST',
|
|
73
73
|
param: 'card',
|
|
74
74
|
idProperty: 'token',
|
|
75
|
-
schema: { type: 'string', title: 'Card Number' }
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
75
|
+
schema: { type: 'string', title: 'Card Number' },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
79
|
};
|
|
80
80
|
var submitButton = {
|
|
81
81
|
type: 'button',
|
|
82
82
|
title: 'Submit',
|
|
83
|
-
action: { url: '/submit' }
|
|
83
|
+
action: { url: '/submit' },
|
|
84
84
|
};
|
|
85
85
|
var getStep = function (schema, overrides) {
|
|
86
86
|
var _a;
|
|
87
87
|
return (__assign({ id: 'step-id', title: 'Initial Step Title', schemas: [schema], layout: [
|
|
88
88
|
{
|
|
89
89
|
type: 'form',
|
|
90
|
-
schemaId: (_a = schema.$id) !== null && _a !== void 0 ? _a : ''
|
|
90
|
+
schemaId: (_a = schema.$id) !== null && _a !== void 0 ? _a : '',
|
|
91
91
|
},
|
|
92
92
|
submitButton,
|
|
93
93
|
], refreshUrl: '/refresh' }, overrides));
|
|
@@ -100,7 +100,7 @@ describe('Refresh On Change Preserve', function () {
|
|
|
100
100
|
getStep(initialSchema),
|
|
101
101
|
getStep(initialSchema, {
|
|
102
102
|
title: 'Refreshed Step Title',
|
|
103
|
-
model: { name: 'John', card: 'TOKEN' }
|
|
103
|
+
model: { name: 'John', card: 'TOKEN' },
|
|
104
104
|
}),
|
|
105
105
|
],
|
|
106
106
|
[
|
|
@@ -111,15 +111,15 @@ describe('Refresh On Change Preserve', function () {
|
|
|
111
111
|
layout: [
|
|
112
112
|
{
|
|
113
113
|
type: 'paragraph',
|
|
114
|
-
text: 'The step has been refreshed'
|
|
114
|
+
text: 'The step has been refreshed',
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
type: 'form',
|
|
118
|
-
schemaId: (_a = initialSchema.$id) !== null && _a !== void 0 ? _a : ''
|
|
118
|
+
schemaId: (_a = initialSchema.$id) !== null && _a !== void 0 ? _a : '',
|
|
119
119
|
},
|
|
120
120
|
submitButton,
|
|
121
121
|
],
|
|
122
|
-
model: { name: 'John', card: 'TOKEN' }
|
|
122
|
+
model: { name: 'John', card: 'TOKEN' },
|
|
123
123
|
}),
|
|
124
124
|
],
|
|
125
125
|
[
|
|
@@ -127,7 +127,7 @@ describe('Refresh On Change Preserve', function () {
|
|
|
127
127
|
getStep(initialSchema),
|
|
128
128
|
getStep(initialSchema, {
|
|
129
129
|
title: 'Refreshed Step Title',
|
|
130
|
-
model: { name: 'John' }
|
|
130
|
+
model: { name: 'John' },
|
|
131
131
|
}),
|
|
132
132
|
],
|
|
133
133
|
];
|
|
@@ -156,7 +156,7 @@ describe('Refresh On Change Preserve', function () {
|
|
|
156
156
|
id: 'final-step',
|
|
157
157
|
title: 'Final Step Title',
|
|
158
158
|
layout: [],
|
|
159
|
-
schemas: []
|
|
159
|
+
schemas: [],
|
|
160
160
|
})];
|
|
161
161
|
}
|
|
162
162
|
return [2 /*return*/];
|
|
@@ -57,7 +57,7 @@ var getProps = function () { return ({
|
|
|
57
57
|
onCompletion: jest.fn(),
|
|
58
58
|
onError: jest.fn(),
|
|
59
59
|
onEvent: jest.fn(),
|
|
60
|
-
onLog: jest.fn()
|
|
60
|
+
onLog: jest.fn(),
|
|
61
61
|
}); };
|
|
62
62
|
var initialSchema = {
|
|
63
63
|
$id: '#form',
|
|
@@ -67,13 +67,13 @@ var initialSchema = {
|
|
|
67
67
|
properties: {
|
|
68
68
|
name: {
|
|
69
69
|
title: 'Name',
|
|
70
|
-
type: 'string'
|
|
70
|
+
type: 'string',
|
|
71
71
|
},
|
|
72
72
|
age: {
|
|
73
73
|
title: 'Age',
|
|
74
|
-
type: 'number'
|
|
75
|
-
}
|
|
76
|
-
}
|
|
74
|
+
type: 'number',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
77
|
};
|
|
78
78
|
var initialStep = {
|
|
79
79
|
id: 'step-id',
|
|
@@ -81,21 +81,21 @@ var initialStep = {
|
|
|
81
81
|
layout: [
|
|
82
82
|
{
|
|
83
83
|
type: 'form',
|
|
84
|
-
schemaId: '#form'
|
|
84
|
+
schemaId: '#form',
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
type: 'button',
|
|
88
88
|
title: 'Submit',
|
|
89
|
-
action: { id: 'action-id', url: '/submit', method: 'POST' }
|
|
89
|
+
action: { id: 'action-id', url: '/submit', method: 'POST' },
|
|
90
90
|
},
|
|
91
91
|
],
|
|
92
|
-
schemas: [initialSchema]
|
|
92
|
+
schemas: [initialSchema],
|
|
93
93
|
};
|
|
94
94
|
var newStep = {
|
|
95
95
|
id: 'new-step',
|
|
96
96
|
title: 'New step title',
|
|
97
97
|
layout: [],
|
|
98
|
-
schemas: []
|
|
98
|
+
schemas: [],
|
|
99
99
|
};
|
|
100
100
|
var renderInitialStepAndSubmit = function (httpClient) { return __awaiter(void 0, void 0, void 0, function () {
|
|
101
101
|
var props;
|
|
@@ -141,12 +141,12 @@ describe('Submission response handling', function () {
|
|
|
141
141
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Succeeded', {
|
|
142
142
|
flowId: 'flow-id',
|
|
143
143
|
stepId: 'step-id',
|
|
144
|
-
actionId: 'action-id'
|
|
144
|
+
actionId: 'action-id',
|
|
145
145
|
});
|
|
146
146
|
expect(props.onEvent).toHaveBeenLastCalledWith('Dynamic Flow - Step Shown', {
|
|
147
147
|
flowId: 'flow-id',
|
|
148
148
|
stepId: 'new-step',
|
|
149
|
-
isFirstStep: false
|
|
149
|
+
isFirstStep: false,
|
|
150
150
|
});
|
|
151
151
|
return [2 /*return*/];
|
|
152
152
|
}
|
|
@@ -172,11 +172,11 @@ describe('Submission response handling', function () {
|
|
|
172
172
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Failed', {
|
|
173
173
|
flowId: 'flow-id',
|
|
174
174
|
stepId: 'step-id',
|
|
175
|
-
actionId: 'action-id'
|
|
175
|
+
actionId: 'action-id',
|
|
176
176
|
});
|
|
177
177
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Failed', {
|
|
178
178
|
flowId: 'flow-id',
|
|
179
|
-
stepId: 'step-id'
|
|
179
|
+
stepId: 'step-id',
|
|
180
180
|
});
|
|
181
181
|
return [2 /*return*/];
|
|
182
182
|
}
|
|
@@ -205,12 +205,12 @@ describe('Submission response handling', function () {
|
|
|
205
205
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Succeeded', {
|
|
206
206
|
flowId: 'flow-id',
|
|
207
207
|
stepId: 'step-id',
|
|
208
|
-
actionId: 'action-id'
|
|
208
|
+
actionId: 'action-id',
|
|
209
209
|
});
|
|
210
210
|
expect(props.onEvent).toHaveBeenLastCalledWith('Dynamic Flow - Step Shown', {
|
|
211
211
|
flowId: 'flow-id',
|
|
212
212
|
stepId: 'new-step',
|
|
213
|
-
isFirstStep: false
|
|
213
|
+
isFirstStep: false,
|
|
214
214
|
});
|
|
215
215
|
return [2 /*return*/];
|
|
216
216
|
}
|
|
@@ -238,11 +238,11 @@ describe('Submission response handling', function () {
|
|
|
238
238
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Failed', {
|
|
239
239
|
flowId: 'flow-id',
|
|
240
240
|
stepId: 'step-id',
|
|
241
|
-
actionId: 'action-id'
|
|
241
|
+
actionId: 'action-id',
|
|
242
242
|
});
|
|
243
243
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Failed', {
|
|
244
244
|
flowId: 'flow-id',
|
|
245
|
-
stepId: 'step-id'
|
|
245
|
+
stepId: 'step-id',
|
|
246
246
|
});
|
|
247
247
|
return [2 /*return*/];
|
|
248
248
|
}
|
|
@@ -272,7 +272,7 @@ describe('Submission response handling', function () {
|
|
|
272
272
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Succeeded', {
|
|
273
273
|
flowId: 'flow-id',
|
|
274
274
|
stepId: 'step-id',
|
|
275
|
-
actionId: 'action-id'
|
|
275
|
+
actionId: 'action-id',
|
|
276
276
|
});
|
|
277
277
|
return [2 /*return*/];
|
|
278
278
|
}
|
|
@@ -300,11 +300,11 @@ describe('Submission response handling', function () {
|
|
|
300
300
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Failed', {
|
|
301
301
|
flowId: 'flow-id',
|
|
302
302
|
stepId: 'step-id',
|
|
303
|
-
actionId: 'action-id'
|
|
303
|
+
actionId: 'action-id',
|
|
304
304
|
});
|
|
305
305
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Failed', {
|
|
306
306
|
flowId: 'flow-id',
|
|
307
|
-
stepId: 'step-id'
|
|
307
|
+
stepId: 'step-id',
|
|
308
308
|
});
|
|
309
309
|
return [2 /*return*/];
|
|
310
310
|
}
|
|
@@ -331,11 +331,11 @@ describe('Submission response handling', function () {
|
|
|
331
331
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Succeeded', {
|
|
332
332
|
flowId: 'flow-id',
|
|
333
333
|
stepId: 'step-id',
|
|
334
|
-
actionId: 'action-id'
|
|
334
|
+
actionId: 'action-id',
|
|
335
335
|
});
|
|
336
336
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Succeeded', {
|
|
337
337
|
flowId: 'flow-id',
|
|
338
|
-
stepId: 'step-id'
|
|
338
|
+
stepId: 'step-id',
|
|
339
339
|
});
|
|
340
340
|
return [2 /*return*/];
|
|
341
341
|
}
|
|
@@ -361,11 +361,11 @@ describe('Submission response handling', function () {
|
|
|
361
361
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Succeeded', {
|
|
362
362
|
flowId: 'flow-id',
|
|
363
363
|
stepId: 'step-id',
|
|
364
|
-
actionId: 'action-id'
|
|
364
|
+
actionId: 'action-id',
|
|
365
365
|
});
|
|
366
366
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Succeeded', {
|
|
367
367
|
flowId: 'flow-id',
|
|
368
|
-
stepId: 'step-id'
|
|
368
|
+
stepId: 'step-id',
|
|
369
369
|
});
|
|
370
370
|
return [2 /*return*/];
|
|
371
371
|
}
|
|
@@ -379,7 +379,7 @@ describe('Submission response handling', function () {
|
|
|
379
379
|
return jest.fn().mockResolvedValue(respondWith({
|
|
380
380
|
error: 'Global Error',
|
|
381
381
|
validation: { name: 'Your name is wrong' },
|
|
382
|
-
analytics: { shopping: 'list' }
|
|
382
|
+
analytics: { shopping: 'list' },
|
|
383
383
|
}, { status: 422 }));
|
|
384
384
|
};
|
|
385
385
|
it('should not trigger onError', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -441,7 +441,7 @@ describe('Submission response handling', function () {
|
|
|
441
441
|
flowId: 'flow-id',
|
|
442
442
|
stepId: 'step-id',
|
|
443
443
|
actionId: 'action-id',
|
|
444
|
-
shopping: 'list'
|
|
444
|
+
shopping: 'list',
|
|
445
445
|
}));
|
|
446
446
|
return [2 /*return*/];
|
|
447
447
|
}
|
|
@@ -457,7 +457,7 @@ describe('Submission response handling', function () {
|
|
|
457
457
|
error: 'This is a global error',
|
|
458
458
|
validation: { name: 'Your name is wrong (server-side)' },
|
|
459
459
|
refreshUrl: '/refresh',
|
|
460
|
-
analytics: { shopping: 'list' }
|
|
460
|
+
analytics: { shopping: 'list' },
|
|
461
461
|
}, { status: 422 })];
|
|
462
462
|
}
|
|
463
463
|
if (input === '/refresh') {
|
|
@@ -497,13 +497,13 @@ describe('Submission response handling', function () {
|
|
|
497
497
|
_a.sent();
|
|
498
498
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Refresh Succeeded', {
|
|
499
499
|
flowId: 'flow-id',
|
|
500
|
-
stepId: 'step-id'
|
|
500
|
+
stepId: 'step-id',
|
|
501
501
|
});
|
|
502
502
|
expect(props.onEvent).toHaveBeenCalledWith('Dynamic Flow - Action Failed', {
|
|
503
503
|
flowId: 'flow-id',
|
|
504
504
|
stepId: 'step-id',
|
|
505
505
|
actionId: 'action-id',
|
|
506
|
-
shopping: 'list'
|
|
506
|
+
shopping: 'list',
|
|
507
507
|
});
|
|
508
508
|
return [2 /*return*/];
|
|
509
509
|
}
|
|
@@ -537,10 +537,10 @@ describe('Submission response handling', function () {
|
|
|
537
537
|
error: 'This is a global error',
|
|
538
538
|
validation: {
|
|
539
539
|
name: 'Your name is wrong (server-side)',
|
|
540
|
-
city: 'You now need to enter a city as well (server-side)'
|
|
540
|
+
city: 'You now need to enter a city as well (server-side)',
|
|
541
541
|
},
|
|
542
542
|
refreshUrl: '/refresh',
|
|
543
|
-
analytics: { shopping: 'list' }
|
|
543
|
+
analytics: { shopping: 'list' },
|
|
544
544
|
}, { status: 422 })];
|
|
545
545
|
});
|
|
546
546
|
}); },
|
|
@@ -556,22 +556,22 @@ describe('Submission response handling', function () {
|
|
|
556
556
|
name: {
|
|
557
557
|
title: 'Name',
|
|
558
558
|
type: 'string',
|
|
559
|
-
validationMessages: { required: 'Please enter a name.' }
|
|
559
|
+
validationMessages: { required: 'Please enter a name.' },
|
|
560
560
|
},
|
|
561
561
|
age: {
|
|
562
562
|
title: 'Age',
|
|
563
|
-
type: 'number'
|
|
563
|
+
type: 'number',
|
|
564
564
|
},
|
|
565
565
|
city: {
|
|
566
566
|
title: 'City',
|
|
567
567
|
type: 'string',
|
|
568
|
-
validationMessages: { required: 'Please enter a city.' }
|
|
569
|
-
}
|
|
570
|
-
}
|
|
568
|
+
validationMessages: { required: 'Please enter a city.' },
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
571
|
},
|
|
572
572
|
] }))];
|
|
573
573
|
});
|
|
574
|
-
}); }
|
|
574
|
+
}); },
|
|
575
575
|
});
|
|
576
576
|
return [4 /*yield*/, renderInitialStepAndSubmit(httpClient)];
|
|
577
577
|
case 1:
|
|
@@ -653,7 +653,7 @@ describe('Submission response handling', function () {
|
|
|
653
653
|
expect(props.onEvent).toHaveBeenLastCalledWith('Dynamic Flow - Action Failed', expect.objectContaining({
|
|
654
654
|
flowId: 'flow-id',
|
|
655
655
|
stepId: 'step-id',
|
|
656
|
-
actionId: 'action-id'
|
|
656
|
+
actionId: 'action-id',
|
|
657
657
|
}));
|
|
658
658
|
})];
|
|
659
659
|
case 2:
|