@wise/dynamic-flow-client 2.6.1 → 2.7.1
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/main.js +742 -718
- package/build/main.min.js +1 -1
- package/build/types/common/errorBoundary/ErrorBoundaryAlert.d.ts +5 -0
- package/build/types/{dynamicFlow/DynamicFlowTypes.d.ts → dynamic-flow-types.d.ts} +34 -38
- package/build/types/index.d.ts +7 -7
- 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/httpClientContext/HttpClientContext.d.ts +3 -3
- package/build/types/{common → legacy/common}/contexts/logContext/LogContext.d.ts +3 -5
- package/build/types/{common → legacy/common}/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +1 -1
- 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/{common → legacy/common}/utils/api-utils.d.ts +0 -1
- package/build/types/{common → legacy/common}/utils/debounce.d.ts +2 -2
- package/build/types/{common → legacy/common}/utils/file-utils.d.ts +1 -1
- package/build/types/{common → legacy/common}/utils/misc-utils.d.ts +1 -1
- 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/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/{jsonSchemaForm → legacy/jsonSchemaForm}/JsonSchemaForm.d.ts +4 -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/RepeatableSchemaStep.d.ts +3 -3
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +2 -2
- package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/genericSchema/GenericSchema.d.ts +4 -4
- 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/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/{jsonSchemaForm → legacy/jsonSchemaForm}/schemaFormControl/SchemaFormControl.d.ts +5 -5
- 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/decision/DynamicDecision.d.ts +8 -0
- package/build/types/legacy/layout/form/DynamicForm.d.ts +7 -0
- 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/review/DynamicReview.d.ts +8 -0
- package/build/types/legacy/layout/search/DynamicSearch.d.ts +8 -0
- package/build/types/{layout → legacy/layout}/search/useSearch.d.ts +2 -2
- 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/{step → legacy/step}/cameraStep/cameraCapture/overlay/Overlay.d.ts +1 -1
- package/build/types/{step → legacy/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +1 -1
- package/build/types/{step → legacy/step}/cameraStep/cameraCapture/tracking/index.d.ts +2 -2
- 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/DynamicFlowRevamp.d.ts +2 -2
- package/build/types/revamp/domain/components/AlertComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/BoxComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/ButtonComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/HeadingComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +2 -2
- package/build/types/revamp/domain/components/ParagraphComponent.d.ts +3 -3
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +6 -7
- package/build/types/revamp/domain/mappers/layout/alertLayoutToComponent.d.ts +3 -3
- package/build/types/revamp/domain/mappers/layout/boxLayoutToComponents.d.ts +4 -4
- package/build/types/revamp/domain/mappers/layout/buttonLayoutToComponent.d.ts +3 -3
- package/build/types/revamp/domain/mappers/layout/formLayoutToComponent.d.ts +4 -4
- package/build/types/revamp/domain/mappers/layout/headingLayoutToComponent.d.ts +3 -3
- package/build/types/revamp/domain/mappers/layout/paragraphLayoutToComponent.d.ts +3 -3
- package/build/types/revamp/domain/mappers/mapLayoutToComponent.d.ts +4 -4
- package/build/types/revamp/domain/mappers/mapSchemaToComponent.d.ts +3 -4
- package/build/types/revamp/domain/mappers/mapStepToComponents.d.ts +3 -3
- package/build/types/revamp/domain/mappers/schema/objectSchemaToComponent.d.ts +5 -3
- package/build/types/revamp/domain/mappers/schema/stringSchemaToComponent.d.ts +5 -3
- package/build/types/revamp/domain/mappers/schema/types.d.ts +6 -3
- package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +2 -2
- package/build/types/revamp/domain/types.d.ts +8 -8
- package/build/types/revamp/renderers/mappers/alertComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/boxComponentToProps.d.ts +3 -3
- package/build/types/revamp/renderers/mappers/buttonComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/componentToRendererProps.d.ts +3 -3
- package/build/types/revamp/renderers/mappers/headingComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +3 -3
- package/build/types/revamp/renderers/mappers/paragraphComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/mappers/textInputComponentToProps.d.ts +2 -2
- package/build/types/revamp/renderers/types.d.ts +4 -4
- package/build/types/revamp/renderers/utils/mapping-utils.d.ts +2 -2
- package/build/types/revamp/step/Step.d.ts +3 -3
- package/build/types/revamp/step/utils/render-utils.d.ts +3 -3
- package/build/types/revamp/utils/findComponent.d.ts +1 -1
- package/build/types/revamp/utils/getSubmittableData.d.ts +2 -2
- package/build/types/revamp/utils/type-utils.d.ts +2 -2
- package/build/types/revamp/wise/renderers/AlertRenderer.d.ts +1 -1
- package/build/types/revamp/wise/renderers/BoxRenderer.d.ts +1 -1
- package/build/types/revamp/wise/renderers/ButtonRenderer.d.ts +1 -1
- package/build/types/revamp/wise/renderers/HeadingRenderer.d.ts +1 -1
- package/build/types/revamp/wise/renderers/ObjectRenderer.d.ts +1 -1
- package/build/types/revamp/wise/renderers/ParagraphRenderer.d.ts +1 -1
- package/build/types/revamp/wise/renderers/TextInputRenderer.d.ts +1 -1
- package/build/types/revamp/wise/renderers/utils/layout-utils.d.ts +1 -1
- package/build/types/test-utils/NeptuneProviders.d.ts +5 -0
- package/build/types/test-utils/rtl-utils.d.ts +2 -0
- package/package.json +11 -16
- package/build/types/common/contexts/eventsContext/EventsContext.d.ts +0 -15
- package/build/types/common/contexts/featureContext/FeatureContext.d.ts +0 -10
- 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/utils/errorBoundary/ErrorBoundaryAlert.d.ts +0 -5
- package/build/types/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -6
- 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/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/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/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -15
- 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/review/DynamicReview.d.ts +0 -8
- package/build/types/layout/search/DynamicSearch.d.ts +0 -8
- package/build/types/step/cameraStep/CameraStep.d.ts +0 -7
- package/build/types/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -15
- package/build/types/{dynamicFlow/utils → common}/errorBoundary/ErrorBoundary.d.ts +1 -1
- /package/build/types/{dynamicFlow/utils → common}/errorBoundary/ErrorBoundary.messages.d.ts +0 -0
- /package/build/types/{common → legacy/common}/constants/DateMode.d.ts +0 -0
- /package/build/types/{common → legacy/common}/constants/FeatureName.d.ts +0 -0
- /package/build/types/{common → legacy/common}/constants/FormControlType.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}/contexts/index.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/index.d.ts +0 -0
- /package/build/types/{common → legacy/common}/utils/is-equal.d.ts +0 -0
- /package/build/types/{common → legacy/common}/utils/mobile-utils.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}/FormControl.d.ts +0 -0
- /package/build/types/{formControl → legacy/formControl}/index.d.ts +0 -0
- /package/build/types/{formControl → legacy/formControl}/utils/getAutocompleteString.d.ts +0 -0
- /package/build/types/{formControl → legacy/formControl}/utils/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/MultipleFileUploadSchema.messages.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/arrayListSchema/repeatableSchema/ItemSummary.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.messages.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/ControlFeedback.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/controlFeedback/ControlFeedback.messages.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/Help.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/help/Help.messages.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}/oneOfSchema/utils.d.ts +0 -0
- /package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.messages.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}/schemaFormControl/utils/mapping-utils.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}/button/DynamicButton.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/button/utils.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}/icon/DynamicIcon.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/icon/FlagIcon.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/icon/NamedIcon.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/DynamicParagraph.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/paragraph/DynamicParagraph.messages.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}/search/SearchResults.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/utils/getNavigationOptionMedia.d.ts +0 -0
- /package/build/types/{layout → legacy/layout}/utils/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/components/bottomBar/BottomBar.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/components/index.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/hooks/useFullScreenOrientationLock.d.ts +0 -0
- /package/build/types/{step → 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/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +0 -0
- /package/build/types/{step → legacy/step}/cameraStep/cameraCapture/screens/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
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { OnChangeProps } from '../jsonSchemaForm/JsonSchemaForm';
|
|
4
|
-
export type DynamicFlowPropsBasic = {
|
|
5
|
-
flowId: string;
|
|
6
|
-
loaderConfig?: LoaderConfig;
|
|
7
|
-
displayStepTitle?: boolean;
|
|
8
|
-
features?: Feature[];
|
|
9
|
-
httpClient: HttpClient;
|
|
10
|
-
onCompletion: (result: Record<string, unknown> | undefined | null) => void;
|
|
11
|
-
onError: (error: unknown, status?: number) => void;
|
|
12
|
-
onEvent?: EventHandler;
|
|
13
|
-
onLog?: LogEventHandler;
|
|
14
|
-
};
|
|
1
|
+
import type { Size, Step } from '@wise/dynamic-flow-types';
|
|
2
|
+
export type DynamicFlowProps = DynamicFlowPropsWithInitialAction | DynamicFlowPropsWithInitialStep;
|
|
15
3
|
export type DynamicFlowPropsWithInitialAction = DynamicFlowPropsBasic & {
|
|
16
4
|
initialAction: InitialAction;
|
|
17
5
|
initialStep?: never;
|
|
@@ -20,31 +8,11 @@ export type DynamicFlowPropsWithInitialStep = DynamicFlowPropsBasic & {
|
|
|
20
8
|
initialAction?: never;
|
|
21
9
|
initialStep: Step;
|
|
22
10
|
};
|
|
23
|
-
export type DynamicFlowProps = DynamicFlowPropsWithInitialAction | DynamicFlowPropsWithInitialStep;
|
|
24
11
|
export type HttpClient = typeof fetch;
|
|
25
|
-
export type
|
|
26
|
-
export type
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
submission?: boolean;
|
|
30
|
-
};
|
|
31
|
-
export type OnModelChangeProps = OnChangeProps & {
|
|
32
|
-
formSchema: Schema;
|
|
33
|
-
};
|
|
34
|
-
export type OnModelChange = (props: OnModelChangeProps) => void;
|
|
35
|
-
export type OnAction = (action: Action) => void;
|
|
36
|
-
export type OnPersistAsync = (promise: Promise<unknown>) => void;
|
|
37
|
-
export type InitialAction = {
|
|
38
|
-
$id?: string;
|
|
39
|
-
url: string;
|
|
40
|
-
method?: 'GET';
|
|
41
|
-
data?: never;
|
|
42
|
-
} | {
|
|
43
|
-
$id?: string;
|
|
44
|
-
url: string;
|
|
45
|
-
method: 'POST';
|
|
46
|
-
data: Record<string, unknown>;
|
|
47
|
-
};
|
|
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 - 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;
|
|
48
16
|
export type Feature = {
|
|
49
17
|
featureName: string;
|
|
50
18
|
/**
|
|
@@ -59,3 +27,31 @@ export type Feature = {
|
|
|
59
27
|
enabled: boolean;
|
|
60
28
|
initiation: 'MISSING' | 'SKIPPED' | 'DEFAULT' | 'INITIATED';
|
|
61
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 {};
|
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 './dynamic-flow-types';
|
|
10
10
|
export type { Step } from '@wise/dynamic-flow-types';
|
|
@@ -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 {};
|
package/build/types/{common → legacy/common}/contexts/httpClientContext/HttpClientContext.d.ts
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type HttpClient
|
|
2
|
+
import type { HttpClient } from '../../../../dynamic-flow-types';
|
|
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
|
*/
|
|
@@ -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;
|
package/build/types/{common → legacy/common}/hooks/useDebouncedFunction/useDebouncedFunction.d.ts
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DebouncedFunc } from '../../utils';
|
|
1
|
+
import { type DebouncedFunc } from '../../utils';
|
|
2
2
|
export declare function useDebouncedFunction<T extends (...args: any[]) => any>(callback: T, waitMs: number): DebouncedFunc<T>;
|
|
@@ -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;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function isStatus2xx(status: Response['status']): boolean;
|
|
2
2
|
export declare function isStatus422(status: Response['status']): boolean;
|
|
3
|
-
export declare function getJson(response: Response): Promise<any>;
|
|
4
3
|
export declare function isRelativePath(url?: string): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface DebouncedFunc<T extends (...args: any[]) => any> {
|
|
2
2
|
(...args: Parameters<T>): void;
|
|
3
|
-
cancel()
|
|
4
|
-
flush()
|
|
3
|
+
cancel: () => void;
|
|
4
|
+
flush: () => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const debounce: <T extends (...args: any[]) => any>(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;
|
|
@@ -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,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,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;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { FormErrors, ListArraySchema, Model } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { OnModelChange } from '../../../../dynamicFlow/DynamicFlowTypes';
|
|
1
|
+
import type { FormErrors, ListArraySchema, Model } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnModelChange } from '../../../../dynamicFlow/DynamicFlowTypes';
|
|
3
3
|
export type RepeatableActionType = 'add' | 'edit' | 'remove';
|
|
4
4
|
type RepeatableSchemaStepProps = {
|
|
5
5
|
type: 'add' | 'edit';
|
|
@@ -10,5 +10,5 @@ type RepeatableSchemaStepProps = {
|
|
|
10
10
|
onModelChange: OnModelChange;
|
|
11
11
|
onAction: (actionType: RepeatableActionType) => void;
|
|
12
12
|
};
|
|
13
|
-
declare
|
|
13
|
+
declare function RepeatableSchemaStep({ type, schema, model, errors, submitted, onModelChange, onAction, }: RepeatableSchemaStepProps): JSX.Element;
|
|
14
14
|
export default RepeatableSchemaStep;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ArraySchema, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { ItemSummary } from '../ItemSummary';
|
|
1
|
+
import type { ArraySchema, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { ItemSummary } from '../ItemSummary';
|
|
3
3
|
export declare const getItemSummaryFromSchema: (schema: Schema, model: Model | null, defaults?: ArraySchema['summary']) => ItemSummary;
|
package/build/types/{jsonSchemaForm → legacy/jsonSchemaForm}/genericSchema/GenericSchema.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { OnPersistAsync } from '../../dynamicFlow/DynamicFlowTypes';
|
|
3
|
-
import { OnChange } from '../JsonSchemaForm';
|
|
4
|
-
declare
|
|
1
|
+
import type { FormErrors, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnPersistAsync } from '../../dynamicFlow/DynamicFlowTypes';
|
|
3
|
+
import type { OnChange } from '../JsonSchemaForm';
|
|
4
|
+
declare function GenericSchemaForm(props: GenericSchemaFormProps): JSX.Element;
|
|
5
5
|
export type GenericSchemaProps = {
|
|
6
6
|
schema: Schema;
|
|
7
7
|
model: Model;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ObjectModel, ObjectSchema as ObjectSchemaType } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
|
|
3
|
+
declare function ObjectSchema(props: ObjectSchemaProps): JSX.Element;
|
|
4
|
+
declare namespace ObjectSchema {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
hideTitle: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type ObjectSchemaProps = GenericSchemaProps & {
|
|
11
|
+
schema: ObjectSchemaType;
|
|
12
|
+
model: ObjectModel | null;
|
|
13
|
+
hideTitle?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export default ObjectSchema;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OneOfSchema as OneOfSchemaType } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
|
|
3
|
+
declare function OneOfSchema(props: OneOfSchemaProps): JSX.Element | null;
|
|
4
|
+
declare namespace OneOfSchema {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
required: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type OneOfSchemaProps = Omit<GenericSchemaProps, 'schema'> & {
|
|
11
|
+
schema: OneOfSchemaType;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export default OneOfSchema;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PersistAsyncSchema as PersistAsyncSchemaType } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
|
|
3
|
+
declare function PersistAsyncSchema(props: PersistAsyncSchemaProps): JSX.Element;
|
|
4
|
+
declare namespace PersistAsyncSchema {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export type PersistAsyncSchemaProps = Omit<GenericSchemaProps, 'schema' | 'model' | 'errors'> & {
|
|
10
|
+
schema: PersistAsyncSchemaType;
|
|
11
|
+
model: string | null;
|
|
12
|
+
errors: string | null;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export default PersistAsyncSchema;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { PersistAsync, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { GenericSchemaProps } from '../../genericSchema/GenericSchema';
|
|
1
|
+
import type { PersistAsync, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../../genericSchema/GenericSchema';
|
|
3
3
|
export declare const getIdFromResponse: (idProperty: string, response: Record<string, unknown>) => string | number;
|
|
4
4
|
export declare const getErrorFromResponse: (errorProperty: string, response: {
|
|
5
5
|
validation?: Record<string, unknown>;
|
|
6
6
|
}) => unknown;
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
defaultProps: {
|
|
7
|
+
declare function PersistAsyncBasicSchema(props: PersistAsyncBasicSchemaProps): JSX.Element;
|
|
8
|
+
declare namespace PersistAsyncBasicSchema {
|
|
9
|
+
var defaultProps: {
|
|
10
10
|
required: boolean;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
type PersistAsyncBasicSchemaProps = Omit<GenericSchemaProps, 'schema'> & {
|
|
14
14
|
schema: Schema & {
|
|
15
15
|
persistAsync: PersistAsync;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BlobSchema, PersistAsync, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { GenericSchemaProps } from '../../genericSchema/GenericSchema';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
defaultProps: {
|
|
1
|
+
import type { BlobSchema, PersistAsync, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../../genericSchema/GenericSchema';
|
|
3
|
+
declare function PersistAsyncBlobSchema(props: PersistAsyncBlobSchemaProps): JSX.Element;
|
|
4
|
+
declare namespace PersistAsyncBlobSchema {
|
|
5
|
+
var defaultProps: {
|
|
6
6
|
required: boolean;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}
|
|
9
9
|
type PersistAsyncBlobSchemaProps = Omit<GenericSchemaProps, 'model'> & {
|
|
10
10
|
schema: Schema & {
|
|
11
11
|
persistAsync: PersistAsync & {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UploadProps } from '@transferwise/components/build/types/upload/Upload';
|
|
2
|
+
import type { PersistAsync } from '@wise/dynamic-flow-types';
|
|
3
|
+
import type { HttpClient } from '../../../../dynamic-flow-types';
|
|
4
|
+
type Props = UploadProps & {
|
|
5
|
+
id: string;
|
|
6
|
+
httpClient: HttpClient;
|
|
7
|
+
fileId: number | string;
|
|
8
|
+
idProperty: string;
|
|
9
|
+
httpOptions: {
|
|
10
|
+
url: string;
|
|
11
|
+
method?: PersistAsync['method'];
|
|
12
|
+
fileInputName?: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare function UploadInputAdapter(props: Props): JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Icon, Image, Promotion } from '@wise/dynamic-flow-types';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
defaultProps: {
|
|
2
|
+
import type { Icon, Image, Promotion } from '@wise/dynamic-flow-types';
|
|
3
|
+
declare function PromotedOneOfControl(props: PromotedOneOfControlProps): JSX.Element;
|
|
4
|
+
declare namespace PromotedOneOfControl {
|
|
5
|
+
var defaultProps: {
|
|
6
6
|
id: string;
|
|
7
7
|
title: undefined;
|
|
8
8
|
};
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
export type PromotedOneOfControlProps = {
|
|
11
11
|
id?: string;
|
|
12
12
|
title?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PromotedOneOfControlProps } from './PromotedOneOfControl';
|
|
2
|
+
declare function PromotedOneOfRadioControl(props: PromotedOneOfControlProps): JSX.Element;
|
|
3
|
+
declare namespace PromotedOneOfRadioControl {
|
|
4
|
+
var defaultProps: {
|
|
5
|
+
title: undefined;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export default PromotedOneOfRadioControl;
|