@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
|
@@ -20,8 +20,8 @@ var SearchRenderer = {
|
|
|
20
20
|
canRenderType: 'search',
|
|
21
21
|
render: function (_a) {
|
|
22
22
|
var id = _a.id, isLoading = _a.isLoading, margin = _a.margin, onChange = _a.onChange, query = _a.query, state = _a.state, title = _a.title;
|
|
23
|
-
return (_jsxs("div",
|
|
24
|
-
}
|
|
23
|
+
return (_jsxs("div", { className: getMargin(margin), children: [_jsx(FieldInput, { id: id, description: "", error: "", help: "", label: title, children: _jsx(SearchInput, { id: id, query: query, onChange: onChange }) }), isLoading ? _jsx(_Fragment, { children: "Loading..." }) : _jsx(SearchResultContent, { state: state, onChange: onChange })] }));
|
|
24
|
+
},
|
|
25
25
|
};
|
|
26
26
|
function SearchResultContent(_a) {
|
|
27
27
|
var state = _a.state, onChange = _a.onChange;
|
|
@@ -47,14 +47,14 @@ export function SearchInput(_a) {
|
|
|
47
47
|
export function ErrorResult(_a) {
|
|
48
48
|
var state = _a.state;
|
|
49
49
|
var intl = useIntl();
|
|
50
|
-
return (_jsxs("p",
|
|
50
|
+
return (_jsxs("p", { className: "m-t-2", children: [intl.formatMessage(messages.genericError), "\u00A0", _jsx("button", { type: "submit", onClick: function (e) {
|
|
51
51
|
e.preventDefault();
|
|
52
52
|
state.onRetry();
|
|
53
|
-
}
|
|
53
|
+
}, children: intl.formatMessage(messages.retry) })] }));
|
|
54
54
|
}
|
|
55
55
|
function EmptySearchResult(_a) {
|
|
56
56
|
var state = _a.state;
|
|
57
|
-
return _jsx("p",
|
|
57
|
+
return _jsx("p", { className: "m-t-2", children: state.message });
|
|
58
58
|
}
|
|
59
59
|
export function SearchResults(_a) {
|
|
60
60
|
var state = _a.state;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
import { Avatar, AvatarType } from '@transferwise/components';
|
|
14
3
|
import DynamicIcon from '../components/icon/DynamicIcon';
|
|
@@ -18,10 +7,10 @@ export function OptionMedia(_a) {
|
|
|
18
7
|
return _jsx("img", { src: image.url, alt: image.accessibilityDescription || '', width: "64px" });
|
|
19
8
|
}
|
|
20
9
|
if (icon && 'name' in icon) {
|
|
21
|
-
return (_jsx(Avatar,
|
|
10
|
+
return (_jsx(Avatar, { type: AvatarType.ICON, children: _jsx(DynamicIcon, { name: icon.name }) }));
|
|
22
11
|
}
|
|
23
12
|
if (icon && 'text' in icon) {
|
|
24
|
-
return _jsx(Avatar,
|
|
13
|
+
return _jsx(Avatar, { type: AvatarType.INITIALS, children: icon.text });
|
|
25
14
|
}
|
|
26
15
|
return null;
|
|
27
16
|
}
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import { RadioGroup } from '@transferwise/components';
|
|
14
3
|
import FieldInput from '../components/FieldInput';
|
|
15
4
|
import { OptionMedia } from './OptionMedia';
|
|
16
5
|
export function RadioInputRendererComponent(props) {
|
|
17
6
|
var id = props.id, children = props.children, description = props.description, disabled = props.disabled, error = props.error, help = props.help, label = props.label, options = props.options, selectedIndex = props.selectedIndex, onSelect = props.onSelect;
|
|
18
|
-
return (_jsxs(_Fragment, { children: [_jsx(FieldInput,
|
|
7
|
+
return (_jsxs(_Fragment, { children: [_jsx(FieldInput, { id: id, label: label, help: help, description: description, error: error, children: _jsx("span", { children: _jsx(RadioGroup, { name: id, radios: options.map(function (option, index) { return ({
|
|
19
8
|
label: option.title,
|
|
20
9
|
value: index,
|
|
21
10
|
secondary: option.description,
|
|
22
11
|
disabled: option.disabled || disabled,
|
|
23
|
-
avatar: _jsx(OptionMedia, { icon: option.icon, image: option.image })
|
|
24
|
-
}); }), selectedValue: selectedIndex !== null && selectedIndex !== void 0 ? selectedIndex : undefined, onChange: onSelect }) }) })
|
|
12
|
+
avatar: _jsx(OptionMedia, { icon: option.icon, image: option.image }),
|
|
13
|
+
}); }), selectedValue: selectedIndex !== null && selectedIndex !== void 0 ? selectedIndex : undefined, onChange: onSelect }) }) }), children] }));
|
|
25
14
|
}
|
|
@@ -31,7 +31,7 @@ export function SelectInputRendererComponent(props) {
|
|
|
31
31
|
type: 'option',
|
|
32
32
|
value: index,
|
|
33
33
|
filterMatchers: __spreadArray(__spreadArray([], ((_a = option.keywords) !== null && _a !== void 0 ? _a : []), true), [(_b = option.title) !== null && _b !== void 0 ? _b : '', (_c = option.description) !== null && _c !== void 0 ? _c : ''], false),
|
|
34
|
-
disabled: option.disabled
|
|
34
|
+
disabled: option.disabled,
|
|
35
35
|
});
|
|
36
36
|
});
|
|
37
37
|
var renderValue = function (index, withinTrigger) {
|
|
@@ -43,14 +43,14 @@ export function SelectInputRendererComponent(props) {
|
|
|
43
43
|
? {
|
|
44
44
|
title: option.title,
|
|
45
45
|
note: option.description,
|
|
46
|
-
icon: _jsx(SelectTriggerMedia, { icon: option.icon, image: option.image })
|
|
46
|
+
icon: _jsx(SelectTriggerMedia, { icon: option.icon, image: option.image }),
|
|
47
47
|
}
|
|
48
48
|
: {
|
|
49
49
|
title: option.title,
|
|
50
50
|
description: option.description,
|
|
51
|
-
icon: _jsx(OptionMedia, { icon: option.icon, image: option.image })
|
|
51
|
+
icon: _jsx(OptionMedia, { icon: option.icon, image: option.image }),
|
|
52
52
|
};
|
|
53
53
|
return _jsx(SelectInputOptionContent, __assign({}, contentProps));
|
|
54
54
|
};
|
|
55
|
-
return (_jsxs(_Fragment, { children: [_jsx(FieldInput,
|
|
55
|
+
return (_jsxs(_Fragment, { children: [_jsx(FieldInput, { id: id, label: label, help: help, description: description, error: error, children: _jsx(SelectInput, { name: id, placeholder: placeholder, items: items, disabled: disabled, value: selectedIndex, renderValue: renderValue, filterable: items.length >= 8, onChange: onSelect, onClear: function () { return onSelect(null); } }) }), children] }));
|
|
56
56
|
}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
import { Avatar, AvatarType } from '@transferwise/components';
|
|
14
3
|
import DynamicIcon from '../components/icon/DynamicIcon';
|
|
@@ -18,10 +7,10 @@ export function SelectTriggerMedia(_a) {
|
|
|
18
7
|
return null;
|
|
19
8
|
}
|
|
20
9
|
if (icon && 'name' in icon) {
|
|
21
|
-
return (_jsx(Avatar,
|
|
10
|
+
return (_jsx(Avatar, { type: AvatarType.ICON, size: 24, children: _jsx(DynamicIcon, { name: icon.name }) }));
|
|
22
11
|
}
|
|
23
12
|
if (icon && 'text' in icon) {
|
|
24
|
-
return (_jsx(Avatar,
|
|
13
|
+
return (_jsx(Avatar, { type: AvatarType.ICON, size: 24, children: icon.text }));
|
|
25
14
|
}
|
|
26
15
|
return null;
|
|
27
16
|
}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import { Tabs } from '@transferwise/components';
|
|
14
3
|
import { useEffect } from 'react';
|
|
@@ -20,13 +9,13 @@ export function TabInputRendererComponent(props) {
|
|
|
20
9
|
onSelect(0);
|
|
21
10
|
}
|
|
22
11
|
}, [selectedIndex, onSelect, options.length]);
|
|
23
|
-
return (_jsxs(_Fragment, { children: [_jsx(FieldInput,
|
|
12
|
+
return (_jsxs(_Fragment, { children: [_jsx(FieldInput, { id: id, label: label, help: help, description: description, error: error, children: _jsx(Tabs, { name: id, selected: selectedIndex !== null && selectedIndex !== void 0 ? selectedIndex : 0, tabs: options.map(function (option) { return ({
|
|
24
13
|
title: option.title,
|
|
25
14
|
// if we pass null, we get some props-types console errors
|
|
26
15
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
27
16
|
content: _jsx(_Fragment, {}),
|
|
28
|
-
disabled: option.disabled || disabled
|
|
29
|
-
}); }), onTabSelect: onSelect }) })
|
|
17
|
+
disabled: option.disabled || disabled,
|
|
18
|
+
}); }), onTabSelect: onSelect }) }), children] }));
|
|
30
19
|
}
|
|
31
20
|
var isValidIndex = function (index, options) {
|
|
32
21
|
return index !== null && index >= 0 && index < options;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import { Header, Summary } from '@transferwise/components';
|
|
14
3
|
import DynamicIcon from './components/icon/DynamicIcon';
|
|
@@ -17,11 +6,11 @@ var StatusListRenderer = {
|
|
|
17
6
|
canRenderType: 'status-list',
|
|
18
7
|
render: function (_a) {
|
|
19
8
|
var margin = _a.margin, items = _a.items, title = _a.title;
|
|
20
|
-
return (_jsxs("div",
|
|
9
|
+
return (_jsxs("div", { className: getMargin(margin), children: [title ? _jsx(Header, { title: title }) : null, items.map(function (_a) {
|
|
21
10
|
var description = _a.description, icon = _a.icon, status = _a.status, itemTitle = _a.title;
|
|
22
11
|
return (_jsx(Summary, { title: itemTitle, description: description, icon: icon && 'name' in icon ? _jsx(DynamicIcon, { name: icon.name }) : null, status: mapStatus(status) }, "".concat(title, "/").concat(description || '')));
|
|
23
|
-
})] }))
|
|
24
|
-
}
|
|
12
|
+
})] }));
|
|
13
|
+
},
|
|
25
14
|
};
|
|
26
15
|
export default StatusListRenderer;
|
|
27
16
|
export var mapStatus = function (status) {
|
|
@@ -29,7 +29,7 @@ var TextInputRenderer = {
|
|
|
29
29
|
var id = props.id, control = props.control, label = props.label, description = props.description, help = props.help, error = props.error, type = props.type, initialValue = props.value, rest = __rest(props, ["id", "control", "label", "description", "help", "error", "type", "value"]);
|
|
30
30
|
var value = initialValue !== null && initialValue !== void 0 ? initialValue : '';
|
|
31
31
|
var inputProps = __assign(__assign({}, rest), { value: value, id: id });
|
|
32
|
-
return (_jsx(FieldInput,
|
|
33
|
-
}
|
|
32
|
+
return (_jsx(FieldInput, { id: id, label: label, description: description, error: error, help: help, children: _jsx(VariableTextInput, { control: control, inputProps: inputProps }) }));
|
|
33
|
+
},
|
|
34
34
|
};
|
|
35
35
|
export default TextInputRenderer;
|
|
@@ -71,7 +71,7 @@ var UploadInputRenderer = {
|
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
file = formData.get('file');
|
|
73
73
|
return [2 /*return*/, onUpload(file).then(function () { return ({
|
|
74
|
-
id: getRandomId()
|
|
74
|
+
id: getRandomId(),
|
|
75
75
|
}); })];
|
|
76
76
|
});
|
|
77
77
|
}); };
|
|
@@ -87,8 +87,8 @@ var UploadInputRenderer = {
|
|
|
87
87
|
}); };
|
|
88
88
|
return (
|
|
89
89
|
// We don't pass help here as there is no sensible place to display it
|
|
90
|
-
_jsx(UploadFieldInput,
|
|
91
|
-
}
|
|
90
|
+
_jsx(UploadFieldInput, { id: id, label: undefined, description: undefined, error: error, children: _jsx(UploadInput, { id: id, description: description, disabled: disabled, fileTypes: getAcceptsString(accepts), sizeLimit: maxSize ? toKilobytes(maxSize) : undefined, uploadButtonTitle: label, onDeleteFile: onDeleteFile, onUploadFile: onUploadFile }) }));
|
|
91
|
+
},
|
|
92
92
|
};
|
|
93
93
|
var LargeUploadRenderer = {
|
|
94
94
|
canRenderType: 'input-upload',
|
|
@@ -126,11 +126,11 @@ var LargeUploadRenderer = {
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}); };
|
|
129
|
-
return (_jsx(FieldInput,
|
|
129
|
+
return (_jsx(FieldInput, { id: id, label: label, description: description, error: error, help: help, children: _jsx(Upload, __assign({}, uploadProps, { usAccept: getAcceptsString(accepts), usDisabled: disabled, onSuccess: onUploadFile, onFailure: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
130
130
|
return [2 /*return*/, onUpload(null)];
|
|
131
131
|
}); }); }, onCancel: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
132
132
|
return [2 /*return*/, onUpload(null)];
|
|
133
|
-
}); }); } })) }))
|
|
134
|
-
}
|
|
133
|
+
}); }); } })) }));
|
|
134
|
+
},
|
|
135
135
|
};
|
|
136
136
|
export { UploadInputRenderer, LargeUploadRenderer };
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
import { Field } from '@wise/forms';
|
|
14
3
|
import { LabelContentWithHelp } from './LabelContentWithHelp';
|
|
15
4
|
function FieldInput(_a) {
|
|
16
5
|
var id = _a.id, children = _a.children, label = _a.label, error = _a.error, description = _a.description, help = _a.help;
|
|
17
6
|
var labelContent = label && help ? _jsx(LabelContentWithHelp, { text: label, help: help }) : label;
|
|
18
|
-
return (_jsx(Field,
|
|
7
|
+
return (_jsx(Field, { id: id, label: labelContent, hint: description, error: error, children: children }));
|
|
19
8
|
}
|
|
20
9
|
export default FieldInput;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
import { Info, Markdown } from '@transferwise/components';
|
|
14
3
|
import { useIntl } from 'react-intl';
|
|
@@ -16,6 +5,6 @@ import helpMessages from '../../../../common/messages/help.messages';
|
|
|
16
5
|
function Help(_a) {
|
|
17
6
|
var help = _a.help;
|
|
18
7
|
var intl = useIntl();
|
|
19
|
-
return (_jsx(Info, { className: "m-l-1", content: _jsx(Markdown,
|
|
8
|
+
return (_jsx(Info, { className: "m-l-1", content: _jsx(Markdown, { config: { link: { target: '_blank' } }, children: help }), presentation: "POPOVER", size: "sm", "aria-label": intl.formatMessage(helpMessages.helpAria) }));
|
|
20
9
|
}
|
|
21
10
|
export default Help;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
2
|
import { InlineAlert } from '@transferwise/components';
|
|
14
3
|
import classNames from 'classnames';
|
|
@@ -18,8 +7,8 @@ function UploadFieldInput(_a) {
|
|
|
18
7
|
var id = _a.id, children = _a.children, label = _a.label, description = _a.description, error = _a.error, help = _a.help;
|
|
19
8
|
var labelContent = label && help ? _jsx(LabelContentWithHelp, { text: label, help: help }) : label;
|
|
20
9
|
var descriptionId = description ? "".concat(id, "-description") : undefined;
|
|
21
|
-
return (_jsxs("div",
|
|
22
|
-
'has-error': !!error
|
|
23
|
-
})
|
|
10
|
+
return (_jsxs("div", { className: classNames('form-group d-block', {
|
|
11
|
+
'has-error': !!error,
|
|
12
|
+
}), children: [_jsx("label", { htmlFor: id, className: "control-label", children: labelContent }), children, error && (_jsx(InlineAlert, { type: "negative", id: descriptionId, children: error }))] }));
|
|
24
13
|
}
|
|
25
14
|
export default UploadFieldInput;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
2
|
import { isNullish } from '../../validators/type-validators';
|
|
14
3
|
import DynamicIcon from './DynamicIcon';
|
|
@@ -17,10 +6,10 @@ export function NavigationOptionMedia(_a) {
|
|
|
17
6
|
var icon = _a.icon, image = _a.image;
|
|
18
7
|
if (!isNullish(icon)) {
|
|
19
8
|
if ('name' in icon) {
|
|
20
|
-
return (_jsx(Avatar,
|
|
9
|
+
return (_jsx(Avatar, { type: AvatarType.ICON, children: _jsx(DynamicIcon, { name: icon.name }) }));
|
|
21
10
|
}
|
|
22
11
|
if (icon.text) {
|
|
23
|
-
return _jsx(Avatar,
|
|
12
|
+
return _jsx(Avatar, { type: AvatarType.INITIALS, children: icon.text });
|
|
24
13
|
}
|
|
25
14
|
}
|
|
26
15
|
if (image === null || image === void 0 ? void 0 : image.url) {
|
|
@@ -18,6 +18,6 @@ var lang = getLangFromLocale(locale) || DEFAULT_LANG;
|
|
|
18
18
|
var messages = __assign(__assign({}, componentTranslations[lang]), translations[lang]);
|
|
19
19
|
function NeptuneProviders(_a) {
|
|
20
20
|
var children = _a.children;
|
|
21
|
-
return (_jsx(ThemeProvider,
|
|
21
|
+
return (_jsx(ThemeProvider, { theme: "personal", screenMode: "light", children: _jsx(SnackbarProvider, { children: _jsx(ComponentProvider, { i18n: { locale: locale, messages: messages }, children: children }) }) }));
|
|
22
22
|
}
|
|
23
23
|
export default NeptuneProviders;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
namespace minItemsError {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
let id: string;
|
|
4
|
+
let defaultMessage: string;
|
|
5
|
+
let description: string;
|
|
6
6
|
}
|
|
7
7
|
namespace maxItemsError {
|
|
8
|
-
|
|
8
|
+
let id_1: string;
|
|
9
9
|
export { id_1 as id };
|
|
10
|
-
|
|
10
|
+
let defaultMessage_1: string;
|
|
11
11
|
export { defaultMessage_1 as defaultMessage };
|
|
12
|
-
|
|
12
|
+
let description_1: string;
|
|
13
13
|
export { description_1 as description };
|
|
14
14
|
}
|
|
15
15
|
namespace maxFileSizeError {
|
|
16
|
-
|
|
16
|
+
let id_2: string;
|
|
17
17
|
export { id_2 as id };
|
|
18
|
-
|
|
18
|
+
let defaultMessage_2: string;
|
|
19
19
|
export { defaultMessage_2 as defaultMessage };
|
|
20
|
-
|
|
20
|
+
let description_2: string;
|
|
21
21
|
export { description_2 as description };
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const isMobile: () => boolean;
|
|
2
2
|
export declare const isMobileUA: (userAgent?: string) => boolean;
|
|
3
3
|
export declare const isMobileScreenSize: (width?: number, height?: number) => boolean;
|
|
4
|
-
export declare const isTouchScreen: (navigator?: Navigator, matchMedia?: ((query: string) => MediaQueryList) & typeof matchMedia) => boolean;
|
|
4
|
+
export declare const isTouchScreen: (navigator?: Navigator, matchMedia?: ((query: string) => MediaQueryList) & typeof globalThis.matchMedia) => boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
namespace yes {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
let id: string;
|
|
4
|
+
let defaultMessage: string;
|
|
5
|
+
let description: string;
|
|
6
6
|
}
|
|
7
7
|
namespace no {
|
|
8
|
-
|
|
8
|
+
let id_1: string;
|
|
9
9
|
export { id_1 as id };
|
|
10
|
-
|
|
10
|
+
let defaultMessage_1: string;
|
|
11
11
|
export { defaultMessage_1 as defaultMessage };
|
|
12
|
-
|
|
12
|
+
let description_1: string;
|
|
13
13
|
export { description_1 as description };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -14,7 +14,7 @@ export type MultiUploadInputComponent = InputComponent<File[]> & {
|
|
|
14
14
|
onDelete: (fileId: string) => Promise<void>;
|
|
15
15
|
onUpload: (file: File, fileId: string) => Promise<void>;
|
|
16
16
|
};
|
|
17
|
-
export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent, "analyticsId" | "description" | "disabled" | "format" | "help" | "hidden" | "title" | "placeholder" | "control" | "
|
|
17
|
+
export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent, "analyticsId" | "description" | "disabled" | "format" | "help" | "hidden" | "title" | "placeholder" | "control" | "maxSize" | "accepts" | "id" | "errors" | "minItems" | "maxItems" | "required" | "value" | "autoComplete" | "uid" | "persistedState" | "uploadLabel"> & {
|
|
18
18
|
checks: IsInvalidCheck<File[]>[];
|
|
19
19
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
20
20
|
summariser: (value: string[]) => RepeatableSummary;
|
|
@@ -10,7 +10,7 @@ export type UploadInputComponent = InputComponent<File | null> & {
|
|
|
10
10
|
persistedState: PersistedState;
|
|
11
11
|
onUpload: (value: File | null) => Promise<void>;
|
|
12
12
|
};
|
|
13
|
-
export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "analyticsId" | "description" | "disabled" | "format" | "help" | "hidden" | "title" | "placeholder" | "control" | "
|
|
13
|
+
export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "analyticsId" | "description" | "disabled" | "format" | "help" | "hidden" | "title" | "placeholder" | "control" | "maxSize" | "accepts" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid" | "persistedState"> & {
|
|
14
14
|
checks: IsInvalidCheck<File | null>[];
|
|
15
15
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
16
16
|
performRefresh?: PerformRefresh | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1-experimental-ccbce45",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"stylelint-config-standard": "36.0.0",
|
|
76
76
|
"stylelint-no-unsupported-browser-features": "5.0.4",
|
|
77
77
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
78
|
-
"typescript": "
|
|
78
|
+
"typescript": "5.1.6",
|
|
79
79
|
"webpack": "5.91.0",
|
|
80
80
|
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
81
81
|
},
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"classnames": "2.5.1",
|
|
93
93
|
"react-webcam": "^7.2.0",
|
|
94
94
|
"screenfull": "^5.2.0",
|
|
95
|
-
"@wise/dynamic-flow-types": "2.12.
|
|
95
|
+
"@wise/dynamic-flow-types": "2.12.1-experimental-ccbce45"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"dev": "storybook dev -p 3003",
|