@wise/dynamic-flow-client 3.0.0-next-9cca10.3 → 3.0.0
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/README.md +42 -13
- package/build/i18n/de.json +7 -2
- package/build/i18n/en.json +7 -2
- package/build/i18n/es.json +7 -2
- package/build/i18n/fr.json +7 -2
- package/build/i18n/hu.json +8 -3
- package/build/i18n/id.json +7 -2
- package/build/i18n/it.json +7 -2
- package/build/i18n/ja.json +6 -1
- package/build/i18n/pl.json +7 -2
- package/build/i18n/pt.json +8 -3
- package/build/i18n/ro.json +7 -2
- package/build/i18n/ru.json +7 -2
- package/build/i18n/th.json +8 -3
- package/build/i18n/tr.json +8 -3
- package/build/i18n/zh_CN.json +24 -19
- package/build/i18n/zh_HK.json +7 -2
- package/build/main.css +17 -18
- package/build/main.js +2471 -1854
- package/build/main.min.js +8 -1
- package/build/types/common/errorBoundary/ErrorBoundaryAlert.d.ts +5 -0
- package/build/types/common/{contexts/httpClientContext → httpClientContext}/HttpClientContext.d.ts +3 -3
- package/build/types/common/httpClientContext/index.d.ts +1 -0
- package/build/types/common/makeHttpClient/makeHttpClient.d.ts +1 -0
- package/build/types/{step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts → common/messages/generic-error.messages.d.ts} +3 -3
- package/build/types/{dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.d.ts → common/messages/help.messages.d.ts} +1 -6
- package/build/types/{step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts → common/messages/validation.array.messages.d.ts} +2 -2
- package/build/types/common/utils/api-utils.d.ts +0 -3
- package/build/types/index.d.ts +7 -7
- package/build/types/legacy/common/constants/FeatureName.d.ts +3 -0
- package/build/types/{common → legacy/common}/constants/FormControlType.d.ts +2 -0
- package/build/types/legacy/common/contexts/eventsContext/EventsContext.d.ts +14 -0
- package/build/types/legacy/common/contexts/featureContext/FeatureContext.d.ts +10 -0
- package/build/types/{common → legacy/common}/contexts/index.d.ts +0 -1
- package/build/types/{common → legacy/common}/contexts/logContext/LogContext.d.ts +3 -5
- package/build/types/legacy/common/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +2 -0
- package/build/types/{common → legacy/common}/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +1 -1
- package/build/types/{common → legacy/common}/hooks/usePersistAsync/usePersistAsync.d.ts +1 -1
- package/build/types/{common → legacy/common}/hooks/useStepPolling/useStepPolling.d.ts +1 -1
- package/build/types/legacy/common/utils/api-utils.d.ts +2 -0
- package/build/types/legacy/common/utils/debounce.d.ts +6 -0
- package/build/types/{common → legacy/common}/utils/file-utils.d.ts +1 -1
- package/build/types/{common → legacy/common}/utils/index.d.ts +1 -0
- package/build/types/{common → legacy/common}/utils/misc-utils.d.ts +1 -1
- package/build/types/legacy/common/utils/mobile-utils.d.ts +4 -0
- package/build/types/{common → legacy/common}/utils/model-utils.d.ts +1 -1
- package/build/types/{common → legacy/common}/utils/schema-utils.d.ts +1 -1
- package/build/types/{common → legacy/common}/utils/step-utils.d.ts +1 -1
- package/build/types/{common → legacy/common}/validators/models/model-utils.d.ts +1 -1
- package/build/types/{common → legacy/common}/validators/models/model-validators.d.ts +1 -1
- package/build/types/{common → legacy/common}/validators/schemas/schema-validators.d.ts +1 -1
- package/build/types/{common → legacy/common}/validators/validationFailures/validation-failures.d.ts +1 -1
- package/build/types/legacy/dynamic-flow-types.d.ts +57 -0
- package/build/types/legacy/dynamicFlow/BackButton.d.ts +9 -0
- package/build/types/legacy/dynamicFlow/DynamicFlow.d.ts +3 -0
- package/build/types/legacy/dynamicFlow/DynamicFlowStep.d.ts +8 -0
- package/build/types/legacy/dynamicFlow/DynamicFlowTypes.d.ts +8 -0
- package/build/types/{dynamicFlow → legacy/dynamicFlow}/stories/fixtureHttpClient.d.ts +1 -1
- package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/index.d.ts +1 -1
- package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/responseParsers/response-parsers.d.ts +2 -2
- package/build/types/legacy/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +5 -0
- package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/useDynamicFlowState.d.ts +1 -1
- package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/useLoader.d.ts +1 -1
- package/build/types/{formControl → legacy/formControl}/FormControl.d.ts +14 -14
- package/build/types/legacy/formControl/utils/getAutocompleteString.d.ts +2 -0
- package/build/types/legacy/formControl/utils/index.d.ts +2 -0
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/JsonSchemaForm.d.ts +5 -4
- package/build/types/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +13 -0
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +16 -0
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +1 -1
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.d.ts +3 -3
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +8 -0
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +14 -0
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +3 -0
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/controlFeedback/ControlFeedback.d.ts +5 -5
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/genericSchema/GenericSchema.d.ts +4 -4
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/help/Help.d.ts +1 -1
- package/build/types/legacy/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +15 -0
- package/build/types/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +14 -0
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/oneOfSchema/utils.d.ts +1 -1
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +15 -0
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +6 -6
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +6 -6
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +16 -0
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +5 -5
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +8 -0
- package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +7 -0
- package/build/types/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +27 -0
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/schemaFormControl/utils/mapping-utils.d.ts +5 -4
- package/build/types/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +15 -0
- package/build/types/{layout → legacy/layout}/DynamicLayout.d.ts +3 -3
- package/build/types/legacy/layout/button/DynamicButton.d.ts +7 -0
- package/build/types/{layout → legacy/layout}/button/utils.d.ts +1 -1
- package/build/types/legacy/layout/decision/DynamicDecision.d.ts +8 -0
- package/build/types/legacy/layout/form/DynamicForm.d.ts +7 -0
- package/build/types/{layout → legacy/layout}/icon/DynamicIcon.d.ts +1 -1
- package/build/types/{layout → legacy/layout}/icon/FlagIcon.d.ts +1 -1
- package/build/types/{layout → legacy/layout}/icon/NamedIcon.d.ts +1 -1
- package/build/types/legacy/layout/image/DynamicImage.d.ts +6 -0
- package/build/types/{layout → legacy/layout}/index.d.ts +1 -0
- package/build/types/legacy/layout/modal/DynamicModal.d.ts +7 -0
- package/build/types/legacy/layout/paragraph/DynamicParagraph.d.ts +6 -0
- package/build/types/legacy/layout/review/DynamicReview.d.ts +8 -0
- package/build/types/legacy/layout/search/DynamicSearch.d.ts +8 -0
- package/build/types/legacy/layout/search/SearchResults.d.ts +10 -0
- package/build/types/{layout → legacy/layout}/search/useSearch.d.ts +2 -2
- package/build/types/{layout → legacy/layout}/utils/index.d.ts +1 -1
- package/build/types/legacy/step/cameraStep/CameraStep.d.ts +7 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/CameraCapture.d.ts +15 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +58 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/components/index.d.ts +3 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +2 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.d.ts +8 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/hooks/useFullScreenOrientationLock.d.ts +5 -0
- package/build/types/{step → legacy/step}/cameraStep/cameraCapture/overlay/Overlay.d.ts +1 -1
- package/build/types/legacy/step/cameraStep/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.d.ts +3 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/screens/index.d.ts +1 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/tracking/index.d.ts +8 -0
- package/build/types/legacy/step/cameraStep/cameraCapture/types/index.d.ts +11 -0
- package/build/types/{step → legacy/step}/layoutStep/utils/inline-reference-utils.d.ts +1 -1
- package/build/types/legacy/test-utils/DynamicFlowProviders.d.ts +9 -0
- package/build/types/legacy/test-utils/index.d.ts +4 -0
- package/build/types/legacy/test-utils/legacy-utils.d.ts +22 -0
- package/build/types/legacy/test-utils/log-utils.d.ts +9 -0
- package/build/types/revamp/DynamicFlowCore.d.ts +6 -0
- package/build/types/revamp/DynamicFlowWise.d.ts +3 -0
- package/build/types/revamp/domain/components/AlertComponent.d.ts +7 -0
- package/build/types/revamp/domain/components/AllOfComponent.d.ts +18 -0
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +15 -0
- package/build/types/revamp/domain/components/BoxComponent.d.ts +10 -0
- package/build/types/revamp/domain/components/ButtonComponent.d.ts +12 -0
- package/build/types/revamp/domain/components/ColumnsComponent.d.ts +9 -0
- package/build/types/revamp/domain/components/ConstComponent.d.ts +10 -0
- package/build/types/revamp/domain/components/ContainerComponent.d.ts +11 -0
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +17 -0
- package/build/types/revamp/domain/components/DecisionComponent.d.ts +15 -0
- package/build/types/revamp/domain/components/DividerComponent.d.ts +5 -0
- package/build/types/revamp/domain/components/FormComponent.d.ts +7 -0
- package/build/types/revamp/domain/components/HeadingComponent.d.ts +9 -0
- package/build/types/revamp/domain/components/ImageComponent.d.ts +9 -0
- package/build/types/revamp/domain/components/InstructionsComponent.d.ts +11 -0
- package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +15 -0
- package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +8 -0
- package/build/types/revamp/domain/components/MarkdownComponent.d.ts +7 -0
- package/build/types/revamp/domain/components/ModalComponent.d.ts +12 -0
- package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +21 -0
- package/build/types/revamp/domain/components/NumberInputComponent.d.ts +15 -0
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +13 -0
- package/build/types/revamp/domain/components/ParagraphComponent.d.ts +7 -0
- package/build/types/revamp/domain/components/ReviewComponent.d.ts +17 -0
- package/build/types/revamp/domain/components/SelectInputComponent.d.ts +35 -0
- package/build/types/revamp/domain/components/StatusListComponent.d.ts +8 -0
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +16 -0
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +18 -0
- package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +27 -0
- package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +25 -0
- package/build/types/revamp/domain/components/utils/component-utils.d.ts +12 -0
- package/build/types/revamp/domain/components/utils/debounce.d.ts +6 -0
- package/build/types/revamp/domain/components/utils/file-utils.d.ts +1 -0
- package/build/types/revamp/domain/components/utils/isPartialLocalValueMatch.d.ts +2 -0
- package/build/types/revamp/domain/features/events/getAnalyticsEventDispatcher.d.ts +9 -0
- package/build/types/revamp/domain/features/events/getLogggingEventDispatcher.d.ts +4 -0
- package/build/types/revamp/domain/features/events/index.d.ts +2 -0
- package/build/types/revamp/domain/features/persistAsync/getComponentPersistAsync.d.ts +21 -0
- package/build/types/revamp/domain/features/persistAsync/getPerformPersistAsync.d.ts +23 -0
- package/build/types/revamp/domain/features/persistAsync/persist-async-utils.d.ts +3 -0
- package/build/types/revamp/domain/features/refresh/getPerformRefresh.d.ts +5 -0
- package/build/types/revamp/domain/features/search/getPerformSearchFunction.d.ts +3 -0
- package/build/types/revamp/domain/features/summary/summary-utils.d.ts +32 -0
- package/build/types/revamp/domain/features/validation/spec-utils.d.ts +16 -0
- package/build/types/revamp/domain/features/validation/validation-functions.d.ts +7 -0
- package/build/types/revamp/domain/features/validation/value-checks.d.ts +18 -0
- package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/boxLayoutToComponents.d.ts +4 -0
- package/build/types/revamp/domain/mappers/layout/buttonLayoutToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/layout/columnsLayoutToComponent.d.ts +4 -0
- package/build/types/revamp/domain/mappers/layout/decisionLayoutToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/layout/dividerLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +4 -0
- package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/imageLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/infoLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/instructionsLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/listLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/loadingIndicatorLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/markdownLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/modalLayoutToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/layout/reviewLayoutToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/layout/searchLayoutToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/layout/statusListLayoutToComponent.d.ts +2 -0
- package/build/types/revamp/domain/mappers/mapLayoutToComponent.d.ts +4 -0
- package/build/types/revamp/domain/mappers/mapSchemaToComponent.d.ts +3 -0
- package/build/types/revamp/domain/mappers/mapStepToComponents.d.ts +6 -0
- package/build/types/revamp/domain/mappers/schema/allOfSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToMultiUploadComponent.d.ts +9 -0
- package/build/types/revamp/domain/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.d.ts +6 -0
- package/build/types/revamp/domain/mappers/schema/blobSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/booleanSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/constSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/integerSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/numberSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/objectSchemaToComponent/objectSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToDateInputComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToTextInputComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent/stringSchemaToUploadInputComponent.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/tests/test-utils.d.ts +28 -0
- package/build/types/revamp/domain/mappers/schema/types.d.ts +25 -0
- package/build/types/revamp/domain/mappers/schema/utils/getPersistAsyncInitialState.d.ts +5 -0
- package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +27 -0
- package/build/types/revamp/domain/mappers/types.d.ts +19 -0
- package/build/types/revamp/domain/mappers/utils/getAutocompleteString.d.ts +2 -0
- package/build/types/revamp/domain/mappers/utils/getRandomId.d.ts +1 -0
- package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +7 -0
- package/build/types/revamp/domain/types.d.ts +88 -0
- package/build/types/revamp/flow/executeRefresh.d.ts +19 -0
- package/build/types/revamp/flow/executeSubmission.d.ts +20 -0
- package/build/types/revamp/flow/getResponseType.d.ts +10 -0
- package/build/types/revamp/flow/response-utils.d.ts +6 -0
- package/build/types/revamp/renderers/CoreContainerRenderer.d.ts +7 -0
- package/build/types/revamp/renderers/mappers/alertComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/allOfComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/booleanInputComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/boxComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/buttonComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/columnsComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +9 -0
- package/build/types/revamp/renderers/mappers/containerComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/dateInputComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/decisionComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/dividerComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/formComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/headingComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/hiddenComponentToProps.d.ts +2 -0
- package/build/types/revamp/renderers/mappers/imageComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/instructionsComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/integerInputComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/loadingIndicatorComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/markdownComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/modalComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/multiUploadInputComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/numberInputComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/paragraphComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/repeatableComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/reviewComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/searchComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/selectInputComponentToProps.d.ts +4 -0
- package/build/types/revamp/renderers/mappers/statusListComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/textInputComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/uploadInputComponentToProps.d.ts +3 -0
- package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +17 -0
- package/build/types/revamp/renderers/types.d.ts +314 -0
- package/build/types/revamp/step/Step.d.ts +22 -0
- package/build/types/revamp/step/utils/getRenderFunction.d.ts +3 -0
- package/build/types/revamp/step/utils/getSchemaErrorMessageFunction.d.ts +3 -0
- package/build/types/revamp/stories/utils/fixtureHttpClient.d.ts +2 -0
- package/build/types/revamp/stories/utils/mockSearchHandler.d.ts +1 -0
- package/build/types/revamp/test-utils/component-utils.d.ts +2 -0
- package/build/types/revamp/test-utils/step-utils.d.ts +2 -0
- package/build/types/revamp/types.d.ts +41 -0
- package/build/types/revamp/utils/component-utils.d.ts +6 -0
- package/build/types/revamp/utils/findComponent.d.ts +2 -0
- package/build/types/revamp/utils/type-utils.d.ts +41 -0
- package/build/types/revamp/utils/type-validators.d.ts +10 -0
- package/build/types/revamp/wise/renderers/AlertRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/BooleanInputRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/BoxRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ButtonRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ColumnsRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/DateInputRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/DecisionRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/DividerRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/FormRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/FormSectionRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/HeadingRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ImageRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/InstructionsRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/IntegerInputRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/LoadingIndicatorRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/MarkdownRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ModalRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/MultiUploadInputRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/NumberInputRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ParagraphRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/RepeatableRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/ReviewRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/SearchRenderer.d.ts +15 -0
- package/build/types/revamp/wise/renderers/SelectInputRenderer/OptionMedia.d.ts +5 -0
- package/build/types/revamp/wise/renderers/SelectInputRenderer/RadioInputRendererComponent.d.ts +2 -0
- package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectInputRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectInputRendererComponent.d.ts +2 -0
- package/build/types/revamp/wise/renderers/SelectInputRenderer/SelectTriggerMedia.d.ts +5 -0
- package/build/types/revamp/wise/renderers/SelectInputRenderer/TabInputRendererComponent.d.ts +2 -0
- package/build/types/revamp/wise/renderers/StatusListRenderer.d.ts +4 -0
- package/build/types/revamp/wise/renderers/TextInputRenderer.d.ts +3 -0
- package/build/types/revamp/wise/renderers/UploadInputRenderer.d.ts +4 -0
- package/build/types/revamp/wise/renderers/components/FieldInput.d.ts +11 -0
- package/build/types/revamp/wise/renderers/components/Help.d.ts +4 -0
- package/build/types/revamp/wise/renderers/components/LabelContentWithHelp.d.ts +4 -0
- package/build/types/revamp/wise/renderers/components/UploadFieldInput.d.ts +11 -0
- package/build/types/revamp/wise/renderers/components/VariableDateInput.d.ts +9 -0
- package/build/types/revamp/wise/renderers/components/VariableTextInput.d.ts +10 -0
- package/build/types/revamp/wise/renderers/components/icon/DynamicIcon.d.ts +6 -0
- package/build/types/revamp/wise/renderers/components/icon/FlagIcon.d.ts +6 -0
- package/build/types/revamp/wise/renderers/components/icon/NamedIcon.d.ts +6 -0
- package/build/types/revamp/wise/renderers/components/icon/NavigationOptionMedia.d.ts +5 -0
- package/build/types/revamp/wise/renderers/getWiseRenderers.d.ts +1 -0
- package/build/types/revamp/wise/renderers/hooks/useSnackBarIfAvailable.d.ts +10 -0
- package/build/types/revamp/wise/renderers/utils/file-utils.d.ts +3 -0
- package/build/types/revamp/wise/renderers/utils/getRandomId.d.ts +1 -0
- package/build/types/revamp/wise/renderers/utils/input-utils.d.ts +1 -0
- package/build/types/revamp/wise/renderers/utils/layout-utils.d.ts +7 -0
- package/build/types/revamp/wise/renderers/utils/value-utils.d.ts +3 -0
- package/build/types/revamp/wise/renderers/validators/type-validators.d.ts +9 -0
- package/build/types/test-utils/NeptuneProviders.d.ts +5 -0
- package/build/types/test-utils/fetch-utils.d.ts +20 -0
- package/build/types/test-utils/rtl-utils.d.ts +2 -0
- package/package.json +65 -67
- package/build/types/common/contexts/eventsContext/EventsContext.d.ts +0 -15
- package/build/types/common/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +0 -2
- package/build/types/common/utils/debounce.d.ts +0 -6
- package/build/types/dynamicFlow/BackButton.d.ts +0 -9
- package/build/types/dynamicFlow/DynamicFlow.d.ts +0 -3
- package/build/types/dynamicFlow/DynamicFlowStep.d.ts +0 -8
- package/build/types/dynamicFlow/DynamicFlowTypes.d.ts +0 -46
- package/build/types/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.d.ts +0 -5
- package/build/types/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -6
- package/build/types/formControl/utils/index.d.ts +0 -1
- package/build/types/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +0 -13
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -16
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +0 -8
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +0 -14
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +0 -3
- package/build/types/jsonSchemaForm/help/Help.messages.d.ts +0 -8
- package/build/types/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +0 -15
- package/build/types/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +0 -14
- package/build/types/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -15
- package/build/types/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -8
- package/build/types/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +0 -16
- package/build/types/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +0 -8
- package/build/types/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +0 -7
- package/build/types/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +0 -23
- package/build/types/jsonSchemaForm/schemaFormControl/utils/control-type-utils.d.ts +0 -2
- package/build/types/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -15
- package/build/types/layout/button/DynamicButton.d.ts +0 -7
- package/build/types/layout/decision/DynamicDecision.d.ts +0 -8
- package/build/types/layout/form/DynamicForm.d.ts +0 -7
- package/build/types/layout/image/DynamicImage.d.ts +0 -6
- package/build/types/layout/paragraph/DynamicParagraph.d.ts +0 -6
- package/build/types/layout/review/DynamicReview.d.ts +0 -8
- package/build/types/layout/search/DynamicSearch.d.ts +0 -8
- package/build/types/layout/search/SearchResults.d.ts +0 -10
- package/build/types/step/cameraStep/CameraStep.d.ts +0 -7
- package/build/types/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -15
- package/build/types/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -18
- package/build/types/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -2
- package/build/types/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -5
- package/build/types/step/cameraStep/cameraCapture/screens/index.d.ts +0 -2
- package/build/types/step/cameraStep/cameraCapture/tracking/index.d.ts +0 -7
- package/build/types/{dynamicFlow/utils → common}/errorBoundary/ErrorBoundary.d.ts +1 -1
- /package/build/types/{jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts → common/messages/multi-file-upload.messages.d.ts} +0 -0
- /package/build/types/{layout/paragraph/DynamicParagraph.messages.d.ts → common/messages/paragraph.messages.d.ts} +0 -0
- /package/build/types/{jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.messages.d.ts → common/messages/repeatable.messages.d.ts} +0 -0
- /package/build/types/{jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts → common/messages/validation.messages.d.ts} +0 -0
- /package/build/types/{common → legacy/common}/constants/DateMode.d.ts +0 -0
- /package/build/types/{common → legacy/common}/constants/MonthFormat.d.ts +0 -0
- /package/build/types/{common → legacy/common}/constants/Size.d.ts +0 -0
- /package/build/types/{common → legacy/common}/constants/index.d.ts +0 -0
- /package/build/types/{common → legacy/common}/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -0
- /package/build/types/{common → legacy/common}/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +0 -0
- /package/build/types/{common → legacy/common}/hooks/index.d.ts +0 -0
- /package/build/types/{common → legacy/common}/hooks/useExternal/useExternal.d.ts +0 -0
- /package/build/types/{common → legacy/common}/hooks/usePolling/usePolling.d.ts +0 -0
- /package/build/types/{common → legacy/common}/hooks/usePrevious/usePrevious.d.ts +0 -0
- /package/build/types/{common → legacy/common}/messages.d.ts +0 -0
- /package/build/types/{common → legacy/common}/utils/date-utils.d.ts +0 -0
- /package/build/types/{common → legacy/common}/utils/id-utils.d.ts +0 -0
- /package/build/types/{common → legacy/common}/utils/is-equal.d.ts +0 -0
- /package/build/types/{common → legacy/common}/validators/index.d.ts +0 -0
- /package/build/types/{common → legacy/common}/validators/types/type-validators.d.ts +0 -0
- /package/build/types/{common → legacy/common}/validators/validationFailures/validation-failures.utils.d.ts +0 -0
- /package/build/types/{common → legacy/common}/validators/values/value-validators.d.ts +0 -0
- /package/build/types/{dynamicFlow → legacy/dynamicFlow}/index.d.ts +0 -0
- /package/build/types/{formControl → legacy/formControl}/index.d.ts +0 -0
- /package/build/types/{formControl → legacy/formControl}/utils/value-utils.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/allOfSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/ArraySchema.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/basicTypeSchema/BasicTypeSchema.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/basicTypeSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/controlFeedback/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/genericSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/help/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/objectSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/oneOfSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/promoted-one-of-utils.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/readOnlySchema/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/schemaFormControl/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/schemaFormControl/utils/index.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/validationAsyncSchema/index.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/alert/DynamicAlert.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/box/DynamicBox.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/columns/DynamicColumns.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/divider/DynamicDivider.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/external/DynamicExternal.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/external/DynamicExternal.messages.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/heading/DynamicHeading.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/instructions/DynamicInstructions.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/list/DynamicStatusList.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/loadingIndicator/DynamicLoadingIndicator.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/markdown/DynamicMarkdown.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/paragraph/useSnackBarIfAvailable.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/search/SearchInput.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/utils/getNavigationOptionMedia.d.ts +0 -0
- /package/build/types/{step/cameraStep/cameraCapture/components/index.d.ts → legacy/step/cameraStep/cameraCapture/components/bottomBar/BottomBar.d.ts} +0 -0
- /package/build/types/{step/cameraStep/cameraCapture/hooks/index.d.ts → legacy/step/cameraStep/cameraCapture/hooks/useVideoConstraints.d.ts} +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/utils/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -0
- /package/build/types/{step → legacy/step}/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -0
- /package/build/types/{step → legacy/step}/externalConfirmationStep/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/layoutStep/LayoutStep.d.ts +0 -0
- /package/build/types/{step → legacy/step}/layoutStep/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/layoutStep/utils/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/layoutStep/utils/layout-utils.d.ts +0 -0
package/build/types/common/{contexts/httpClientContext → httpClientContext}/HttpClientContext.d.ts
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type HttpClient
|
|
2
|
+
import { type HttpClient } from '../makeHttpClient';
|
|
3
3
|
type ProviderProps = {
|
|
4
4
|
httpClient: HttpClient;
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export declare
|
|
7
|
+
export declare function HttpClientProvider({ httpClient, children }: ProviderProps): JSX.Element;
|
|
8
8
|
type ProviderFromBaseUrlProps = {
|
|
9
9
|
baseUrl: string;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
};
|
|
12
|
-
export declare
|
|
12
|
+
export declare function HttpClientProviderFromBaseUrl({ baseUrl, children }: ProviderFromBaseUrlProps): JSX.Element;
|
|
13
13
|
/**
|
|
14
14
|
* Provides the fetch(er) function for dynamic flows asynchronous operations.
|
|
15
15
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HttpClientContext';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
genericErrorRetryHint: {
|
|
3
3
|
id: string;
|
|
4
4
|
defaultMessage: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
genericError: {
|
|
8
8
|
id: string;
|
|
9
9
|
defaultMessage: string;
|
|
10
10
|
description: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
retry: {
|
|
13
13
|
id: string;
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export declare function isStatus2xx(status: Response['status']): boolean;
|
|
2
|
-
export declare function isStatus422(status: Response['status']): boolean;
|
|
3
|
-
export declare function getJson(response: Response): Promise<any>;
|
|
4
1
|
export declare function isRelativePath(url?: string): boolean;
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { convertStepToLayout, inlineReferences } from './step/layoutStep/utils';
|
|
2
|
-
export { default as DynamicFlow } from './dynamicFlow';
|
|
1
|
+
export { convertStepToLayout, inlineReferences } from './legacy/step/layoutStep/utils';
|
|
2
|
+
export { default as DynamicFlow } from './legacy/dynamicFlow';
|
|
3
3
|
export { makeHttpClient } from './common/makeHttpClient';
|
|
4
|
-
export { default as JsonSchemaForm } from './jsonSchemaForm';
|
|
5
|
-
export { DynamicLayout as Layout } from './layout';
|
|
6
|
-
export { isValidSchema } from './common/validators';
|
|
4
|
+
export { default as JsonSchemaForm } from './legacy/jsonSchemaForm';
|
|
5
|
+
export { DynamicLayout as Layout } from './legacy/layout';
|
|
6
|
+
export { isValidSchema } from './legacy/common/validators';
|
|
7
7
|
export { default as translations } from './i18n';
|
|
8
|
-
export * from './dynamicFlow/DynamicFlow';
|
|
9
|
-
export type { DynamicFlowProps, InitialAction } from './
|
|
8
|
+
export * from './legacy/dynamicFlow/DynamicFlow';
|
|
9
|
+
export type { DynamicFlowProps, InitialAction } from './legacy/dynamic-flow-types';
|
|
10
10
|
export type { Step } from '@wise/dynamic-flow-types';
|
|
@@ -2,11 +2,13 @@ export declare const FormControlType: {
|
|
|
2
2
|
RADIO: string;
|
|
3
3
|
CHECKBOX: string;
|
|
4
4
|
SELECT: string;
|
|
5
|
+
EMAIL: string;
|
|
5
6
|
FILE: string;
|
|
6
7
|
DATE: string;
|
|
7
8
|
DATETIME: string;
|
|
8
9
|
DATELOOKUP: string;
|
|
9
10
|
TEL: string;
|
|
11
|
+
NUMERIC: string;
|
|
10
12
|
NUMBER: string;
|
|
11
13
|
HIDDEN: string;
|
|
12
14
|
PASSWORD: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { EventHandler } from '../../../dynamic-flow-types';
|
|
3
|
+
type Props = {
|
|
4
|
+
metadata?: Record<string, unknown> & {
|
|
5
|
+
flowId?: string;
|
|
6
|
+
stepId?: string;
|
|
7
|
+
};
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
onEvent: EventHandler;
|
|
10
|
+
};
|
|
11
|
+
export declare function EventsContextProvider({ metadata, children, onEvent }: Props): JSX.Element;
|
|
12
|
+
export declare function useEventDispatcher(): EventHandler;
|
|
13
|
+
export declare const getEventDispatcher: (onEvent: EventHandler, metadata?: Record<string, unknown>) => EventHandler;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Feature } from '../../../dynamic-flow-types';
|
|
3
|
+
import type { FeatureName } from '../../constants/FeatureName';
|
|
4
|
+
type FeatureContextProviderProps = {
|
|
5
|
+
features: Feature[] | undefined;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare function FeatureContextProvider({ features, children }: FeatureContextProviderProps): JSX.Element;
|
|
9
|
+
export declare const useFeatureFlag: (featureName: FeatureName) => Feature | undefined;
|
|
10
|
+
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import type { LogLevel, LogEventHandler } from '../../../dynamic-flow-types';
|
|
3
3
|
export type LogTitle = 'Invalid schema or model' | 'Invalid model on change' | 'Invalid response' | 'Action supressed' | 'Deprecation warning' | 'Deprecated schema' | 'Error fetching';
|
|
4
|
-
type
|
|
5
|
-
export type LogEventHandler = (level: LogLevel, message: string, extra: ExtraProps) => void;
|
|
6
|
-
type LogFunction = (title: LogTitle, description: string, extra?: ExtraProps) => void;
|
|
4
|
+
type LogFunction = (title: LogTitle, description: string, extra?: Record<string, unknown>) => void;
|
|
7
5
|
export declare const getLogger: (level: LogLevel, onLog: LogEventHandler, flowId?: string | undefined, stepId?: string | undefined) => LogFunction;
|
|
8
6
|
type LogProviderProps = {
|
|
9
7
|
flowId?: string;
|
|
@@ -11,7 +9,7 @@ type LogProviderProps = {
|
|
|
11
9
|
children: React.ReactNode;
|
|
12
10
|
onLog: LogEventHandler;
|
|
13
11
|
};
|
|
14
|
-
export declare
|
|
12
|
+
export declare function LogProvider({ flowId, stepId, children, onLog }: LogProviderProps): JSX.Element;
|
|
15
13
|
export declare const useLogger: () => {
|
|
16
14
|
debug: LogFunction;
|
|
17
15
|
info: LogFunction;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Action, ExternalStepPollingConfiguration } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { Action, ExternalStepPollingConfiguration } from '@wise/dynamic-flow-types';
|
|
2
2
|
/** @deprecated External step is no longer supported */
|
|
3
3
|
export declare function useExternalStepPolling(polling: ExternalStepPollingConfiguration | undefined, onAction: (action: Action) => void): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PersistAsync } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { PersistAsync } from '@wise/dynamic-flow-types';
|
|
2
2
|
type PersistAsyncModel = string | Blob | null;
|
|
3
3
|
type PerformPersistAsyncFunction = (payload: PersistAsyncModel) => Promise<{
|
|
4
4
|
data: string | number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Action, PollingConfiguration } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { Action, PollingConfiguration } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare function useStepPolling(polling: PollingConfiguration | undefined, onAction: (action: Action) => void): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface DebouncedFunc<T extends (...args: Parameters<T>) => ReturnType<T>> {
|
|
2
|
+
(...args: Parameters<T>): void;
|
|
3
|
+
cancel: () => void;
|
|
4
|
+
flush: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const debounce: <T extends (...args: Parameters<T>) => ReturnType<T>>(callback: T, waitMs: number) => DebouncedFunc<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UploadedFile } from '@transferwise/components';
|
|
1
|
+
import type { UploadedFile } from '@transferwise/components';
|
|
2
2
|
export declare function toKilobytes(sizeInBytes: number): number;
|
|
3
3
|
export declare const toBase64: (file: Blob) => Promise<string>;
|
|
4
4
|
export declare function areFilesSame(newFiles: UploadedFile[], files: UploadedFile[]): boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FormErrors } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { FormErrors } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare const isBasicError: (error: FormErrors) => error is string | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const isMobile: () => boolean;
|
|
2
|
+
export declare const isMobileUA: (userAgent?: string) => boolean;
|
|
3
|
+
export declare const isMobileScreenSize: (width?: number, height?: number) => boolean;
|
|
4
|
+
export declare const isTouchScreen: (navigator?: Navigator, matchMedia?: ((query: string) => MediaQueryList) & typeof matchMedia) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArrayModel, BasicModel, Model, ObjectModel } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { ArrayModel, BasicModel, Model, ObjectModel } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare const isObjectModel: (model: Model) => model is ObjectModel;
|
|
3
3
|
export declare const isNullableObjectModel: (model: Model) => model is ObjectModel | null;
|
|
4
4
|
export declare const isNullableBasicModel: (model: Model) => model is BasicModel | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllOfSchema, ArraySchema, BasicSchema, BlobSchema, ConstSchema, FileUploadSchema, ListArraySchema, MultipleFileUploadSchema, ObjectSchema, OneOfObjectSchema, OneOfSchema, PersistAsyncSchema, Schema, StringSchema, TupleArraySchema, ValidationAsyncSchema } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { AllOfSchema, ArraySchema, BasicSchema, BlobSchema, ConstSchema, FileUploadSchema, ListArraySchema, MultipleFileUploadSchema, ObjectSchema, OneOfObjectSchema, OneOfSchema, PersistAsyncSchema, Schema, StringSchema, TupleArraySchema, ValidationAsyncSchema } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare function isConstSchema(schema: Schema | undefined): schema is ConstSchema;
|
|
3
3
|
export declare function isNoNConstSchema(schema: Schema | undefined): boolean;
|
|
4
4
|
export declare const isReadOnlySchema: (schema: Schema) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllOfSchema, ArrayModel, ArraySchema, BasicModel, Model, ObjectModel, ObjectSchema, OneOfSchema } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { AllOfSchema, ArrayModel, ArraySchema, BasicModel, Model, ObjectModel, ObjectSchema, OneOfSchema } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare function cleanBasicModelWithOneOfSchema(model: BasicModel, schema: OneOfSchema): BasicModel | null;
|
|
3
3
|
export declare function cleanArrayModelWithOneOfSchema(model: ArrayModel, schema: OneOfSchema): ArrayModel | null;
|
|
4
4
|
export declare function cleanModelWithStringSchema(model: Model): string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicModel, Model, ObjectModel, Schema } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { BasicModel, Model, ObjectModel, Schema } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare const getValidModelParts: (model: Model, schema: Schema) => Model;
|
|
3
3
|
export declare function getValidBasicModelOrNull(model: BasicModel | null, schema: Schema): BasicModel | null;
|
|
4
4
|
export declare function getValidObjectModelParts(model: ObjectModel | null, schema: Schema): ObjectModel | null;
|
package/build/types/{common → legacy/common}/validators/validationFailures/validation-failures.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlobSchema, NumberSchema, IntegerSchema, Model, Schema, AllOfSchema, OneOfSchema, StringSchema } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { BlobSchema, NumberSchema, IntegerSchema, Model, Schema, AllOfSchema, OneOfSchema, StringSchema } from '@wise/dynamic-flow-types';
|
|
2
2
|
declare function getValidationFailures(value: Model, schema: Schema, isRequired: boolean): string[];
|
|
3
3
|
declare function getStringValidationFailures(value: Model, schema: StringSchema, isRequired?: boolean): string[];
|
|
4
4
|
declare function getNumberValidationFailures(value: Model, schema: AllOfSchema | OneOfSchema | NumberSchema | IntegerSchema, isRequired?: boolean): string[];
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Size, Step } from '@wise/dynamic-flow-types';
|
|
2
|
+
export type DynamicFlowProps = DynamicFlowPropsWithInitialAction | DynamicFlowPropsWithInitialStep;
|
|
3
|
+
export type DynamicFlowPropsWithInitialAction = DynamicFlowPropsBasic & {
|
|
4
|
+
initialAction: InitialAction;
|
|
5
|
+
initialStep?: never;
|
|
6
|
+
};
|
|
7
|
+
export type DynamicFlowPropsWithInitialStep = DynamicFlowPropsBasic & {
|
|
8
|
+
initialAction?: never;
|
|
9
|
+
initialStep: Step;
|
|
10
|
+
};
|
|
11
|
+
export type HttpClient = typeof fetch;
|
|
12
|
+
export type EventHandler = (eventName: EventName, properties: Record<string, unknown>) => void;
|
|
13
|
+
export type EventName = 'Dynamic Flow - Flow Started' | 'Dynamic Flow - Flow Finished' | 'Dynamic Flow - Step Started' | 'Dynamic Flow - Step Submitted' | 'Dynamic Flow - Step Refreshed' | 'Dynamic Flow - OneOf Selected' | 'Dynamic Flow - PersistAsync' | 'Dynamic Flow - ValidationAsync' | 'Dynamic Flow - Camera Permission Denied' | 'Dynamic Flow - Camera Feed Started' | 'Dynamic Flow - Camera Not Supported' | 'Dynamic Flow - Camera Not Accessible' | 'Dynamic Flow - Camera Orientation Locked' | 'Dynamic Flow - Camera Orientation Lock Overlay Shown' | 'Dynamic Flow - Search Started' | 'Dynamic Flow - Search Result Selected' | 'Dynamic Flow - invalid submission response' | 'Dynamic Flow - onAction supressed' | 'Dynamic Flow - OneOf Searched';
|
|
14
|
+
export type LogLevel = 'debug' | 'info' | 'warning' | 'error' | 'critical';
|
|
15
|
+
export type LogEventHandler = (level: LogLevel, message: string, extra: Record<string, unknown>) => void;
|
|
16
|
+
export type Feature = {
|
|
17
|
+
featureName: string;
|
|
18
|
+
/**
|
|
19
|
+
* The variant of the feature active for the user/profile.
|
|
20
|
+
* 0 is usually the control, and > 0 are variants.
|
|
21
|
+
*/
|
|
22
|
+
variant: number | null;
|
|
23
|
+
/**
|
|
24
|
+
* If the feature is enabled for the user/profile.
|
|
25
|
+
* This is the same as checking if `variant > 0`.
|
|
26
|
+
*/
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
initiation: 'MISSING' | 'SKIPPED' | 'DEFAULT' | 'INITIATED';
|
|
29
|
+
};
|
|
30
|
+
export type InitialAction = {
|
|
31
|
+
$id?: string;
|
|
32
|
+
url: string;
|
|
33
|
+
method?: 'GET';
|
|
34
|
+
data?: never;
|
|
35
|
+
} | {
|
|
36
|
+
$id?: string;
|
|
37
|
+
url: string;
|
|
38
|
+
method: 'POST';
|
|
39
|
+
data: Record<string, unknown>;
|
|
40
|
+
};
|
|
41
|
+
export type LoaderConfig = {
|
|
42
|
+
size?: Size;
|
|
43
|
+
initial?: boolean;
|
|
44
|
+
submission?: boolean;
|
|
45
|
+
};
|
|
46
|
+
type DynamicFlowPropsBasic = {
|
|
47
|
+
flowId: string;
|
|
48
|
+
loaderConfig?: LoaderConfig;
|
|
49
|
+
displayStepTitle?: boolean;
|
|
50
|
+
features?: Feature[];
|
|
51
|
+
httpClient: HttpClient;
|
|
52
|
+
onCompletion: (result: Record<string, unknown> | undefined | null) => void;
|
|
53
|
+
onError: (error: unknown, status?: number) => void;
|
|
54
|
+
onEvent?: EventHandler;
|
|
55
|
+
onLog?: LogEventHandler;
|
|
56
|
+
};
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Action } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnAction } from './DynamicFlowTypes';
|
|
3
|
+
type BackButtonProps = {
|
|
4
|
+
title?: string;
|
|
5
|
+
action: Action;
|
|
6
|
+
onAction: OnAction;
|
|
7
|
+
};
|
|
8
|
+
declare function BackButton({ title, action, onAction }: BackButtonProps): JSX.Element;
|
|
9
|
+
export default BackButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GlobalError, Step } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { LayoutStepProps } from '../step/layoutStep/LayoutStep';
|
|
3
|
+
type DynamicFlowStepProps = Omit<LayoutStepProps, 'stepSpecification'> & {
|
|
4
|
+
step: Step | undefined;
|
|
5
|
+
globalError: GlobalError;
|
|
6
|
+
};
|
|
7
|
+
export declare function DynamicFlowStep(props: DynamicFlowStepProps): JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Action, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnChangeProps } from '../jsonSchemaForm/JsonSchemaForm';
|
|
3
|
+
export type OnModelChangeProps = OnChangeProps & {
|
|
4
|
+
formSchema: Schema;
|
|
5
|
+
};
|
|
6
|
+
export type OnModelChange = (props: OnModelChangeProps) => void;
|
|
7
|
+
export type OnAction = (action: Action) => void;
|
|
8
|
+
export type OnPersistAsync = (promise: Promise<unknown>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './useDebouncedRefresh/useDebouncedRefresh';
|
|
2
2
|
export * from './useDynamicFlowState';
|
|
3
3
|
export * from './useLoader';
|
|
4
|
-
export { default as ErrorBoundary } from '
|
|
4
|
+
export { default as ErrorBoundary } from '../../../common/errorBoundary/ErrorBoundary';
|
|
5
5
|
export * from './responseParsers/response-parsers';
|
package/build/types/{dynamicFlow → legacy/dynamicFlow}/utils/responseParsers/response-parsers.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActionResponseBody, ErrorResponseBody, Step } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { DynamicFlowProps } from '
|
|
1
|
+
import type { ActionResponseBody, ErrorResponseBody, Step } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { DynamicFlowProps } from '../../../dynamic-flow-types';
|
|
3
3
|
type ParsedBody = {
|
|
4
4
|
type: 'exit';
|
|
5
5
|
result: Parameters<DynamicFlowProps['onCompletion']>[0];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
type FetchRefresh = (url: string, data: unknown, etag: string | undefined) => Promise<void | null>;
|
|
3
|
+
export declare function useDebouncedRefresh(fetchRefresh: FetchRefresh): (url: string, data: unknown, etag: string | undefined, schema: Schema) => void;
|
|
4
|
+
export declare const shouldDebounceSchema: (schema: Schema) => boolean;
|
|
5
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FormErrors, GlobalError, ObjectModel, Step } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { FormErrors, GlobalError, ObjectModel, Step } from '@wise/dynamic-flow-types';
|
|
3
3
|
type ModelsMap = {
|
|
4
4
|
[key: string]: ObjectModel;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DynamicFlowProps } from '
|
|
2
|
+
import type { DynamicFlowProps } from '../../dynamic-flow-types';
|
|
3
3
|
type LoadingState = 'idle' | 'initial' | 'refresh' | 'submission';
|
|
4
4
|
export declare function useLoader(loaderConfig: DynamicFlowProps['loaderConfig'], initialState: LoadingState): {
|
|
5
5
|
isLoading: boolean;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { RadioGroupRadios } from '@transferwise/components/build/types/radioGroup/RadioGroup';
|
|
2
|
-
import { UploadProps } from '@transferwise/components/build/types/upload/Upload';
|
|
3
|
-
import {
|
|
4
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import type { RadioGroupRadios } from '@transferwise/components/build/types/radioGroup/RadioGroup';
|
|
2
|
+
import type { UploadProps } from '@transferwise/components/build/types/upload/Upload';
|
|
3
|
+
import type { AutocompleteToken } from '@wise/dynamic-flow-types';
|
|
4
|
+
import { type ReactNode, PureComponent } from 'react';
|
|
5
5
|
import { FormControlType } from '../common/constants';
|
|
6
|
+
import type { OnChangeProps } from '../jsonSchemaForm/JsonSchemaForm';
|
|
6
7
|
export default class FormControl extends PureComponent<FormControlProps, FormControlState> {
|
|
7
8
|
static Type: {
|
|
8
9
|
RADIO: string;
|
|
9
10
|
CHECKBOX: string;
|
|
10
11
|
SELECT: string;
|
|
12
|
+
EMAIL: string;
|
|
11
13
|
FILE: string;
|
|
12
14
|
DATE: string;
|
|
13
15
|
DATETIME: string;
|
|
14
16
|
DATELOOKUP: string;
|
|
15
17
|
TEL: string;
|
|
18
|
+
NUMERIC: string;
|
|
16
19
|
NUMBER: string;
|
|
17
20
|
HIDDEN: string;
|
|
18
21
|
PASSWORD: string;
|
|
@@ -41,13 +44,8 @@ export default class FormControl extends PureComponent<FormControlProps, FormCon
|
|
|
41
44
|
prevValue: string | number | boolean | Date | null;
|
|
42
45
|
value: string | number | boolean | Date | null;
|
|
43
46
|
} | null;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* is present. Chrome ignores autocomplete=off, the only way to disable it is
|
|
47
|
-
* to provide an 'invalid' value, for which 'disabled' serves.
|
|
48
|
-
*/
|
|
49
|
-
getAutocompleteStatus: () => "on" | "disabled";
|
|
50
|
-
handleOnChange: (value: string | number | boolean | null) => void;
|
|
47
|
+
getAutocompleteValue: () => string;
|
|
48
|
+
handleOnChange: (value: string | number | boolean | null, metadata?: OnChangeProps['metadata']) => void;
|
|
51
49
|
handleInputOnChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
52
50
|
handleOnFocus: () => void;
|
|
53
51
|
handleOnBlur: () => void;
|
|
@@ -103,8 +101,10 @@ type FormControlSelectedOption = {
|
|
|
103
101
|
};
|
|
104
102
|
type FormControlProps = {
|
|
105
103
|
name: string;
|
|
106
|
-
onChange: (value: string | number | boolean | null, type?: 'init' | 'user') => void;
|
|
104
|
+
onChange: (value: string | number | boolean | null, type?: 'init' | 'user', metadata?: OnChangeProps['metadata']) => void;
|
|
105
|
+
/** @deprecated - Use autocompleteHint instead */
|
|
107
106
|
autoComplete?: boolean;
|
|
107
|
+
autocompleteHint?: AutocompleteToken[];
|
|
108
108
|
countryCode?: string;
|
|
109
109
|
disabled?: boolean;
|
|
110
110
|
displayPattern?: string;
|
|
@@ -121,7 +121,7 @@ type FormControlProps = {
|
|
|
121
121
|
onBlur?: () => void;
|
|
122
122
|
onFocus?: () => void;
|
|
123
123
|
onSearchChange?: (searchValue: string) => void;
|
|
124
|
-
options:
|
|
124
|
+
options: FormControlOption[];
|
|
125
125
|
placeholder?: string;
|
|
126
126
|
readOnly?: boolean;
|
|
127
127
|
required?: boolean;
|
|
@@ -137,7 +137,7 @@ type FormControlProps = {
|
|
|
137
137
|
};
|
|
138
138
|
type FormControlState = {
|
|
139
139
|
prevValue: FormControlProps['value'];
|
|
140
|
-
selectedOption: FormControlSelectedOption | undefined;
|
|
140
|
+
selectedOption: FormControlSelectedOption | null | undefined;
|
|
141
141
|
touched: boolean;
|
|
142
142
|
};
|
|
143
143
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { EventHandler, LogEventHandler } from '../
|
|
3
|
-
import { OnPersistAsync } from '../dynamicFlow/DynamicFlowTypes';
|
|
4
|
-
declare
|
|
1
|
+
import type { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { EventHandler, LogEventHandler } from '../dynamic-flow-types';
|
|
3
|
+
import type { OnPersistAsync } from '../dynamicFlow/DynamicFlowTypes';
|
|
4
|
+
declare function JsonSchemaForm(props: JsonSchemaFormProps): JSX.Element;
|
|
5
5
|
export type OnChange = (parameters: OnChangeProps) => void;
|
|
6
6
|
export type OnChangeProps = {
|
|
7
7
|
model: Model;
|
|
@@ -9,6 +9,7 @@ export type OnChangeProps = {
|
|
|
9
9
|
triggerModel: Model;
|
|
10
10
|
lastTriggerModel?: Model;
|
|
11
11
|
type?: 'init' | 'user';
|
|
12
|
+
metadata?: Record<string, unknown> | undefined;
|
|
12
13
|
};
|
|
13
14
|
export type JsonSchemaFormProps = {
|
|
14
15
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AllOfSchema as AllOfSchemaType, ObjectModel } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
|
|
3
|
+
declare function AllOfSchema(props: AllOfSchemaProps): JSX.Element;
|
|
4
|
+
declare namespace AllOfSchema {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export type AllOfSchemaProps = Omit<GenericSchemaProps, 'schema' | 'model'> & {
|
|
10
|
+
schema: AllOfSchemaType;
|
|
11
|
+
model: ObjectModel;
|
|
12
|
+
};
|
|
13
|
+
export default AllOfSchema;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ArrayModel, MultipleFileUploadSchema as MultipleFileUploadSchemaType } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
|
|
3
|
+
declare function MultipleFileUploadSchema(props: Props): JSX.Element;
|
|
4
|
+
declare namespace MultipleFileUploadSchema {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
errors: null;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
type Props = Omit<GenericSchemaProps, 'model'> & {
|
|
11
|
+
schema: MultipleFileUploadSchemaType;
|
|
12
|
+
model: ArrayModel | null;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
errors?: string | null;
|
|
15
|
+
};
|
|
16
|
+
export default MultipleFileUploadSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UploadError, UploadResponse } from '@transferwise/components';
|
|
1
|
+
import type { UploadError, UploadResponse } from '@transferwise/components';
|
|
2
2
|
export declare function createPayload(userUploadedFile: Blob | string | null, isBlobSchema: boolean): Promise<string | Blob | null>;
|
|
3
3
|
export declare function constructUploadResponse(response: {
|
|
4
4
|
data: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Icon, Image, Model } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { Icon, Image, Model } from '@wise/dynamic-flow-types';
|
|
2
2
|
export type ItemSummary = {
|
|
3
3
|
value: Model | null;
|
|
4
4
|
title?: string;
|
|
@@ -6,7 +6,7 @@ export type ItemSummary = {
|
|
|
6
6
|
icon?: Icon;
|
|
7
7
|
image?: Image;
|
|
8
8
|
};
|
|
9
|
-
export declare
|
|
9
|
+
export declare function ItemSummaryOption({ item, onClick }: {
|
|
10
10
|
item: ItemSummary;
|
|
11
11
|
onClick: () => void;
|
|
12
|
-
})
|
|
12
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ArrayModel, ListArraySchema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
|
|
3
|
+
type RepeatableSchemaProps = Omit<GenericSchemaProps, 'model' | 'onPersistAsync'> & {
|
|
4
|
+
schema: ListArraySchema;
|
|
5
|
+
model: ArrayModel | null;
|
|
6
|
+
};
|
|
7
|
+
declare function RepeatableSchema({ schema, model, errors, submitted, onChange }: RepeatableSchemaProps): JSX.Element;
|
|
8
|
+
export default RepeatableSchema;
|