@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,17 @@
|
|
|
1
|
-
import { BasicModel, Schema, StringSchema } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { BasicModel, Schema, StringSchema } from '@wise/dynamic-flow-types';
|
|
2
2
|
import { FormControlType } from '../../common/constants';
|
|
3
3
|
export declare const getControlType: (schema: Schema) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
|
|
4
4
|
export declare const getStringSchemaControlType: ({ format, control, }: StringSchema) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
defaultProps: {
|
|
5
|
+
declare function SchemaFormControl(props: SchemaFormControlProps): JSX.Element;
|
|
6
|
+
declare namespace SchemaFormControl {
|
|
7
|
+
var defaultProps: {
|
|
8
8
|
value: null;
|
|
9
9
|
onFocus: null;
|
|
10
10
|
onBlur: null;
|
|
11
11
|
onSearchChange: null;
|
|
12
12
|
disabled: boolean;
|
|
13
13
|
};
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
export type SchemaFormControlProps = {
|
|
16
16
|
id: string;
|
|
17
17
|
value: BasicModel | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BasicModel, ValidationAsyncSchema as ValidationAsyncSchemaType } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { GenericSchemaProps } from '../genericSchema/GenericSchema';
|
|
3
|
+
declare function ValidationAsyncSchema(props: ValidationAsyncSchemaProps): JSX.Element;
|
|
4
|
+
declare namespace ValidationAsyncSchema {
|
|
5
|
+
var defaultProps: {
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export type ValidationAsyncSchemaProps = Omit<GenericSchemaProps, 'schema' | 'model' | 'errors'> & {
|
|
10
|
+
schema: ValidationAsyncSchemaType;
|
|
11
|
+
model: BasicModel | null;
|
|
12
|
+
errors: string | null;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export default ValidationAsyncSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormErrors, LayoutComponent, Model } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { OnAction, OnModelChange, OnPersistAsync } from '../dynamicFlow/DynamicFlowTypes';
|
|
1
|
+
import type { FormErrors, LayoutComponent, Model } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnAction, OnModelChange, OnPersistAsync } from '../dynamicFlow/DynamicFlowTypes';
|
|
3
3
|
export type CommonLayoutProps = {
|
|
4
4
|
model?: Model;
|
|
5
5
|
submitted: boolean;
|
|
@@ -12,5 +12,5 @@ export type CommonLayoutProps = {
|
|
|
12
12
|
type DynamicLayoutProps = {
|
|
13
13
|
components: LayoutComponent[];
|
|
14
14
|
} & CommonLayoutProps;
|
|
15
|
-
declare
|
|
15
|
+
declare function DynamicLayout(props: DynamicLayoutProps): JSX.Element;
|
|
16
16
|
export default DynamicLayout;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DecisionLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnAction } from '../../dynamicFlow/DynamicFlowTypes';
|
|
3
|
+
type Props = {
|
|
4
|
+
component: DecisionLayout;
|
|
5
|
+
onAction: OnAction;
|
|
6
|
+
};
|
|
7
|
+
declare function DynamicDecision({ component, onAction }: Props): JSX.Element;
|
|
8
|
+
export default DynamicDecision;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FormLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { CommonLayoutProps } from '../DynamicLayout';
|
|
3
|
+
type Props = Omit<CommonLayoutProps, 'onAction'> & {
|
|
4
|
+
component: FormLayout;
|
|
5
|
+
};
|
|
6
|
+
declare function DynamicForm({ component, model, errors, submitted, onModelChange, onPersistAsync, }: Props): JSX.Element;
|
|
7
|
+
export default DynamicForm;
|
|
@@ -17,3 +17,4 @@ export { default as DynamicLoadingIndicator } from './loadingIndicator/DynamicLo
|
|
|
17
17
|
export { default as DynamicParagraph } from './paragraph/DynamicParagraph';
|
|
18
18
|
export { default as DynamicReview } from './review/DynamicReview';
|
|
19
19
|
export { default as DynamicSearch } from './search/DynamicSearch';
|
|
20
|
+
export { default as DynamicModal } from './modal/DynamicModal';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ModalLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import { CommonLayoutProps } from '../DynamicLayout';
|
|
3
|
+
type DynamicMarkdownProps = CommonLayoutProps & {
|
|
4
|
+
component: ModalLayout;
|
|
5
|
+
};
|
|
6
|
+
declare const DynamicModal: (props: DynamicMarkdownProps) => JSX.Element;
|
|
7
|
+
export default DynamicModal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReviewLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnAction } from '../../dynamicFlow/DynamicFlowTypes';
|
|
3
|
+
type Props = {
|
|
4
|
+
component: ReviewLayout;
|
|
5
|
+
onAction: OnAction;
|
|
6
|
+
};
|
|
7
|
+
declare function DynamicReview(props: Props): JSX.Element;
|
|
8
|
+
export default DynamicReview;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SearchLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnAction } from '../../dynamicFlow/DynamicFlowTypes';
|
|
3
|
+
type DynamicSearchProps = {
|
|
4
|
+
component: SearchLayout;
|
|
5
|
+
onAction: OnAction;
|
|
6
|
+
};
|
|
7
|
+
declare function DynamicSearch({ component, onAction }: DynamicSearchProps): JSX.Element;
|
|
8
|
+
export default DynamicSearch;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SearchConfig, SearchResult } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { SearchConfig, SearchResult } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare const useSearch: (defaultSearchConfig: SearchConfig) => {
|
|
3
|
-
status: "
|
|
3
|
+
status: "error" | "success" | "loading" | "idle";
|
|
4
4
|
results: SearchResult[];
|
|
5
5
|
search: (query: string, { url, method, param }?: SearchConfig) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Step } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { CommonLayoutProps } from '../../layout/DynamicLayout';
|
|
3
|
+
export type CameraStepProps = Omit<CommonLayoutProps, 'onPersistAsync' | 'baseUrl'> & {
|
|
4
|
+
step: Step;
|
|
5
|
+
};
|
|
6
|
+
declare function CameraStep(props: CameraStepProps): JSX.Element;
|
|
7
|
+
export default CameraStep;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CameraDirection } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { EventHandler } from '../../../../dynamic-flow-types';
|
|
3
|
+
type Props = {
|
|
4
|
+
direction?: CameraDirection;
|
|
5
|
+
overlay?: string;
|
|
6
|
+
outline?: string;
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
instructions?: string;
|
|
10
|
+
showReview?: boolean;
|
|
11
|
+
onCapture: BlobCallback;
|
|
12
|
+
onEvent?: EventHandler;
|
|
13
|
+
};
|
|
14
|
+
declare function CameraCapture({ direction, overlay, outline, imageUrl, title, instructions, showReview, onCapture, onEvent, }: Props): JSX.Element;
|
|
15
|
+
export default CameraCapture;
|
|
@@ -6,5 +6,5 @@ type Props = {
|
|
|
6
6
|
instructions?: string;
|
|
7
7
|
reviewInstructions?: string;
|
|
8
8
|
};
|
|
9
|
-
declare
|
|
9
|
+
declare function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstructions, }: Props): JSX.Element;
|
|
10
10
|
export default Overlay;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CameraDirection } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { EventHandler } from '
|
|
1
|
+
import type { CameraDirection } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { EventHandler } from '../../../../../dynamic-flow-types';
|
|
3
3
|
export declare const trackCameraPermissionDenied: (onEvent: EventHandler | undefined) => void | undefined;
|
|
4
4
|
export declare const trackCameraFeedStarted: (onEvent: EventHandler | undefined, props: {
|
|
5
5
|
direction?: CameraDirection;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action, LayoutComponent, Model, Schema } from '@wise/dynamic-flow-types';
|
|
1
|
+
import type { Action, LayoutComponent, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
2
|
export declare function inlineReferences({ layout, schemas, actions, model, }: {
|
|
3
3
|
layout: LayoutComponent[];
|
|
4
4
|
schemas: Schema[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { EventHandler, LogEventHandler } from '../../dynamic-flow-types';
|
|
3
|
+
type DynamicFlowProvidersProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onLog?: LogEventHandler;
|
|
6
|
+
onEvent?: EventHandler;
|
|
7
|
+
};
|
|
8
|
+
declare function DynamicFlowProviders({ children, onLog, onEvent, }: DynamicFlowProvidersProps): JSX.Element;
|
|
9
|
+
export default DynamicFlowProviders;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as DynamicFlowProviders } from './DynamicFlowProviders';
|
|
2
|
+
export { mount, mountWithOptions, getMockFetchPromise, wait, getI18n, TestContextProviders, } from './legacy-utils';
|
|
3
|
+
export { default as mockUseLogger } from './log-utils';
|
|
4
|
+
export { renderWithProviders } from '../../test-utils/rtl-utils';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactWrapper } from 'enzyme';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { EventHandler, LogEventHandler } from '../../dynamic-flow-types';
|
|
4
|
+
declare const getMockFetchPromise: (status: number, jsonFn: () => void, delay: number, signal?: AbortSignal | null) => Promise<Response>;
|
|
5
|
+
declare const wait: (t: number) => Promise<unknown>;
|
|
6
|
+
declare function mountWithProviders(component: ReactNode, locale?: string, messages?: Record<string, unknown>, baseUrl?: string, onEvent?: EventHandler, onLog?: LogEventHandler): ReactWrapper;
|
|
7
|
+
declare function mountWithOptions({ component, locale, messages, baseUrl, onEvent, onLog, }: {
|
|
8
|
+
component: ReactNode;
|
|
9
|
+
locale?: string;
|
|
10
|
+
messages?: Record<string, unknown>;
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
onEvent?: EventHandler;
|
|
13
|
+
onLog?: LogEventHandler;
|
|
14
|
+
}): ReactWrapper;
|
|
15
|
+
declare function getI18n(locale?: string, messages?: Record<string, string>): {
|
|
16
|
+
locale: string;
|
|
17
|
+
messages: Record<string, string>;
|
|
18
|
+
};
|
|
19
|
+
declare function TestContextProviders({ children }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}): JSX.Element;
|
|
22
|
+
export { mountWithProviders as mount, mountWithOptions, getMockFetchPromise, wait, getI18n, TestContextProviders, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
declare const mockUseLogger: () => {
|
|
3
|
+
debug: jest.Mock<any, any, any>;
|
|
4
|
+
info: jest.Mock<any, any, any>;
|
|
5
|
+
warning: jest.Mock<any, any, any>;
|
|
6
|
+
error: jest.Mock<any, any, any>;
|
|
7
|
+
critical: jest.Mock<any, any, any>;
|
|
8
|
+
};
|
|
9
|
+
export default mockUseLogger;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DynamicFlowProps } from '../
|
|
2
|
-
declare
|
|
1
|
+
import type { DynamicFlowProps } from '../dynamic-flow-types';
|
|
2
|
+
declare function DynamicFlowRevamp({ initialStep, onError }: DynamicFlowProps): JSX.Element;
|
|
3
3
|
export default DynamicFlowRevamp;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context, Margin } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { LayoutComponent } from '../types';
|
|
1
|
+
import type { Context, Margin } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { LayoutComponent } from '../types';
|
|
3
3
|
export type AlertComponent = LayoutComponent & {
|
|
4
4
|
type: 'alert';
|
|
5
5
|
markdown: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Margin, Model, Size } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { RenderableComponent, StepComponent } from '../types';
|
|
1
|
+
import type { Margin, Model, Size } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { RenderableComponent, StepComponent } from '../types';
|
|
3
3
|
export type BoxComponent = RenderableComponent & {
|
|
4
4
|
type: 'box';
|
|
5
5
|
border: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context, Margin } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { LayoutComponent } from '../types';
|
|
1
|
+
import type { Context, Margin } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { LayoutComponent } from '../types';
|
|
3
3
|
export type ButtonComponent = LayoutComponent & {
|
|
4
4
|
type: 'button';
|
|
5
5
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Align, Margin, Size } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { LayoutComponent } from '../types';
|
|
1
|
+
import type { Align, Margin, Size } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { LayoutComponent } from '../types';
|
|
3
3
|
export type HeadingComponent = LayoutComponent & {
|
|
4
4
|
type: 'heading';
|
|
5
5
|
text: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectModel } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { RenderableComponent, StepComponent } from '../types';
|
|
1
|
+
import type { ObjectModel } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { RenderableComponent, StepComponent } from '../types';
|
|
3
3
|
export type ObjectComponent = RenderableComponent & {
|
|
4
4
|
type: 'object';
|
|
5
5
|
title?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Align, Margin } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { LayoutComponent } from '../types';
|
|
1
|
+
import type { Align, Margin } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { LayoutComponent } from '../types';
|
|
3
3
|
export type ParagraphComponent = LayoutComponent & {
|
|
4
4
|
type: 'paragraph';
|
|
5
5
|
text: string;
|
|
6
|
-
control?:
|
|
6
|
+
control?: string;
|
|
7
7
|
align: Align;
|
|
8
8
|
getValue: () => null;
|
|
9
9
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { StringSchema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { InputComponent, UpdateComponent } from '../types';
|
|
1
|
+
import type { StringSchema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { InputComponent, UpdateComponent } from '../types';
|
|
3
3
|
type TextInputFormat = 'text' | 'date';
|
|
4
|
-
type TextInputControl = 'password' | 'textarea' | 'email' | 'numeric' | 'phone-number' | 'date-lookup' | string;
|
|
5
4
|
export type TextInputComponent = InputComponent & {
|
|
6
5
|
type: 'text';
|
|
7
6
|
title?: string;
|
|
8
7
|
description?: string;
|
|
9
8
|
placeholder?: string;
|
|
10
|
-
control?:
|
|
9
|
+
control?: string;
|
|
11
10
|
format: TextInputFormat;
|
|
12
|
-
value: string |
|
|
13
|
-
onChange: (value: string |
|
|
11
|
+
value: string | null;
|
|
12
|
+
onChange: (value: string | null) => void;
|
|
14
13
|
getValue: () => string | null;
|
|
15
14
|
};
|
|
16
15
|
export declare const createTextInputComponent: (textInputProps: {
|
|
@@ -21,6 +20,6 @@ export declare const createTextInputComponent: (textInputProps: {
|
|
|
21
20
|
placeholder?: string | undefined;
|
|
22
21
|
control?: StringSchema['control'];
|
|
23
22
|
format: StringSchema['format'];
|
|
24
|
-
value
|
|
23
|
+
value: string | null;
|
|
25
24
|
}, updateComponent: UpdateComponent) => TextInputComponent;
|
|
26
25
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AlertLayout } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const alertLayoutToComponent: ({ markdown, margin, context }: AlertLayout,
|
|
1
|
+
import type { AlertLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { MapperProps } from '../schema/types';
|
|
3
|
+
export declare const alertLayoutToComponent: (uid: string, { markdown, margin, context }: AlertLayout, mapperProps: MapperProps) => import("../../components/AlertComponent").AlertComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BoxLayout } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { StepComponent } from '../../types';
|
|
3
|
-
import { MapperProps } from '../schema/types';
|
|
4
|
-
export declare const boxLayoutToComponent: ({ components, width, margin, border }: BoxLayout, mapperProps: MapperProps) => StepComponent;
|
|
1
|
+
import type { BoxLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { StepComponent } from '../../types';
|
|
3
|
+
import type { MapperProps } from '../schema/types';
|
|
4
|
+
export declare const boxLayoutToComponent: (uid: string, { components, width, margin, border }: BoxLayout, mapperProps: MapperProps) => StepComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ButtonLayout } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const buttonLayoutToComponent: ({ title, action, context, disabled, control, margin }: ButtonLayout, {
|
|
1
|
+
import type { ButtonLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { MapperProps } from '../schema/types';
|
|
3
|
+
export declare const buttonLayoutToComponent: (uid: string, { title, action, context, disabled, control, margin }: ButtonLayout, { onAction }: MapperProps) => import("../../components/ButtonComponent").ButtonComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormLayout } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { StepComponent } from '../../types';
|
|
3
|
-
import { MapperProps } from '../schema/types';
|
|
4
|
-
export declare const formLayoutToComponent: ({ schemaId }: FormLayout, mapperProps: MapperProps) => StepComponent;
|
|
1
|
+
import type { FormLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { StepComponent } from '../../types';
|
|
3
|
+
import type { MapperProps } from '../schema/types';
|
|
4
|
+
export declare const formLayoutToComponent: (uid: string, { schemaId }: FormLayout, mapperProps: MapperProps) => StepComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HeadingLayout } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const headingLayoutToComponent: ({ text, size, margin, align }: HeadingLayout,
|
|
1
|
+
import type { HeadingLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { MapperProps } from '../schema/types';
|
|
3
|
+
export declare const headingLayoutToComponent: (uid: string, { text, size, margin, align }: HeadingLayout, mapperProps: MapperProps) => import("../../components/HeadingComponent").HeadingComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ParagraphLayout } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { MapperProps } from '../schema/types';
|
|
3
|
-
export declare const paragraphLayoutToComponent: ({ text, control, align, margin }: ParagraphLayout,
|
|
1
|
+
import type { ParagraphLayout } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { MapperProps } from '../schema/types';
|
|
3
|
+
export declare const paragraphLayoutToComponent: (uid: string, { text, control, align, margin }: ParagraphLayout, mapperProps: MapperProps) => import("../../components/ParagraphComponent").ParagraphComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayoutComponent } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { StepComponent } from '../types';
|
|
3
|
-
import { MapperProps } from './schema/types';
|
|
4
|
-
export declare const mapLayoutToComponent: (layout: LayoutComponent, mapperProps: MapperProps) => StepComponent;
|
|
1
|
+
import type { LayoutComponent } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { StepComponent } from '../types';
|
|
3
|
+
import type { MapperProps } from './schema/types';
|
|
4
|
+
export declare const mapLayoutToComponent: (uid: string, layout: LayoutComponent, mapperProps: MapperProps) => StepComponent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const mapSchemaToComponent: (schema: Schema, mapperProps: MapperProps) => StepComponent;
|
|
1
|
+
import type { StepComponent } from '../types';
|
|
2
|
+
import type { MapperProps, SchemaMapperProps } from './schema/types';
|
|
3
|
+
export declare const mapSchemaToComponent: (uid: string, { schema, model }: SchemaMapperProps, mapperProps: MapperProps) => StepComponent;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Step as DFStep } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { OnAction, UpdateComponent } from '../types';
|
|
1
|
+
import type { Step as DFStep } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnAction, UpdateComponent } from '../types';
|
|
3
3
|
type MapStepToComponentsProps = {
|
|
4
4
|
step: DFStep;
|
|
5
5
|
updateComponent: UpdateComponent;
|
|
6
6
|
onAction: OnAction;
|
|
7
7
|
};
|
|
8
|
-
export declare const mapStepToComponents: (
|
|
8
|
+
export declare const mapStepToComponents: (mapperProps: MapStepToComponentsProps) => import("../types").StepComponent[];
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { ObjectSchema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { MapperProps } from './types';
|
|
3
|
-
export declare const objectSchemaToComponent: (
|
|
1
|
+
import type { ObjectSchema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { MapperProps, SchemaMapperProps } from './types';
|
|
3
|
+
export declare const objectSchemaToComponent: (uid: string, { schema, model }: SchemaMapperProps & {
|
|
4
|
+
schema: ObjectSchema;
|
|
5
|
+
}, mapperProps: MapperProps) => import("../../components/ObjectComponent").ObjectComponent;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { StringSchema } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { MapperProps } from './types';
|
|
3
|
-
export declare const stringSchemaToComponent: (
|
|
1
|
+
import type { StringSchema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { MapperProps, SchemaMapperProps } from './types';
|
|
3
|
+
export declare const stringSchemaToComponent: (uid: string, { schema, model }: SchemaMapperProps & {
|
|
4
|
+
schema: StringSchema;
|
|
5
|
+
}, mapperProps: MapperProps) => import("../../components/TextInputComponent").TextInputComponent;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Step as DFStep } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { OnAction, UpdateComponent } from '../../types';
|
|
1
|
+
import type { Step as DFStep, Model, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { OnAction, UpdateComponent } from '../../types';
|
|
3
3
|
export type MapperProps = {
|
|
4
|
-
uid: string;
|
|
5
4
|
step: DFStep;
|
|
6
5
|
onAction: OnAction;
|
|
7
6
|
updateComponent: UpdateComponent;
|
|
8
7
|
};
|
|
8
|
+
export type SchemaMapperProps = {
|
|
9
|
+
schema: Schema;
|
|
10
|
+
model: Model;
|
|
11
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Context, LegacyContext } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare const mapLegacyContext: (context: Context | LegacyContext) => "
|
|
1
|
+
import type { Context, LegacyContext } from '@wise/dynamic-flow-types';
|
|
2
|
+
export declare const mapLegacyContext: (context: Context | LegacyContext) => "warning" | "positive" | "negative" | "neutral";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Action, Margin, Model } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { AlertComponent } from './components/AlertComponent';
|
|
3
|
-
import { BoxComponent } from './components/BoxComponent';
|
|
4
|
-
import { ButtonComponent } from './components/ButtonComponent';
|
|
5
|
-
import { HeadingComponent } from './components/HeadingComponent';
|
|
6
|
-
import { ObjectComponent } from './components/ObjectComponent';
|
|
7
|
-
import { ParagraphComponent } from './components/ParagraphComponent';
|
|
8
|
-
import { TextInputComponent } from './components/TextInputComponent';
|
|
1
|
+
import type { Action, Margin, Model } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { AlertComponent } from './components/AlertComponent';
|
|
3
|
+
import type { BoxComponent } from './components/BoxComponent';
|
|
4
|
+
import type { ButtonComponent } from './components/ButtonComponent';
|
|
5
|
+
import type { HeadingComponent } from './components/HeadingComponent';
|
|
6
|
+
import type { ObjectComponent } from './components/ObjectComponent';
|
|
7
|
+
import type { ParagraphComponent } from './components/ParagraphComponent';
|
|
8
|
+
import type { TextInputComponent } from './components/TextInputComponent';
|
|
9
9
|
export type StepComponent = AlertComponent | BoxComponent | ButtonComponent | HeadingComponent | ObjectComponent | ParagraphComponent | TextInputComponent;
|
|
10
10
|
export type ContainerComponent = ObjectComponent | BoxComponent;
|
|
11
11
|
export type BaseComponent = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AlertComponent } from '../../domain/components/AlertComponent';
|
|
2
|
-
import { AlertRendererProps } from '../types';
|
|
1
|
+
import type { AlertComponent } from '../../domain/components/AlertComponent';
|
|
2
|
+
import type { AlertRendererProps } from '../types';
|
|
3
3
|
export declare const alertComponentToProps: ({ keyProp, markdown, margin, context, }: AlertComponent) => AlertRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BoxComponent } from '../../domain/components/BoxComponent';
|
|
3
|
-
import { BoxRendererProps } from '../types';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { BoxComponent } from '../../domain/components/BoxComponent';
|
|
3
|
+
import type { BoxRendererProps } from '../types';
|
|
4
4
|
export declare const boxComponentToProps: ({ keyProp, border, width, margin }: BoxComponent, children: ReactNode) => BoxRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ButtonComponent } from '../../domain/components/ButtonComponent';
|
|
2
|
-
import { ButtonRendererProps } from '../types';
|
|
1
|
+
import type { ButtonComponent } from '../../domain/components/ButtonComponent';
|
|
2
|
+
import type { ButtonRendererProps } from '../types';
|
|
3
3
|
export declare const buttonComponentToProps: (component: ButtonComponent) => ButtonRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StepComponent } from '../../domain/types';
|
|
3
|
-
import { RendererProps } from '../types';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StepComponent } from '../../domain/types';
|
|
3
|
+
import type { RendererProps } from '../types';
|
|
4
4
|
export declare const componentToRendererProps: (component: StepComponent, children?: ReactNode) => RendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HeadingComponent } from '../../domain/components/HeadingComponent';
|
|
2
|
-
import { HeadingRendererProps } from '../types';
|
|
1
|
+
import type { HeadingComponent } from '../../domain/components/HeadingComponent';
|
|
2
|
+
import type { HeadingRendererProps } from '../types';
|
|
3
3
|
export declare const headingComponentToProps: ({ keyProp, text, align, margin, size, }: HeadingComponent) => HeadingRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ObjectComponent } from '../../domain/components/ObjectComponent';
|
|
3
|
-
import { ObjectRendererProps } from '../types';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ObjectComponent } from '../../domain/components/ObjectComponent';
|
|
3
|
+
import type { ObjectRendererProps } from '../types';
|
|
4
4
|
export declare const objectComponentToProps: ({ keyProp, title, description }: ObjectComponent, children: ReactNode) => ObjectRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ParagraphComponent } from '../../domain/components/ParagraphComponent';
|
|
2
|
-
import { ParagraphRendererProps } from '../types';
|
|
1
|
+
import type { ParagraphComponent } from '../../domain/components/ParagraphComponent';
|
|
2
|
+
import type { ParagraphRendererProps } from '../types';
|
|
3
3
|
export declare const paragraphComponentToProps: ({ keyProp, text, control, align, margin, }: ParagraphComponent) => ParagraphRendererProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TextInputComponent } from '../../domain/components/TextInputComponent';
|
|
2
|
-
import { TextInputRendererProps } from '../types';
|
|
1
|
+
import type { TextInputComponent } from '../../domain/components/TextInputComponent';
|
|
2
|
+
import type { TextInputRendererProps } from '../types';
|
|
3
3
|
export declare const textComponentToProps: ({ keyProp, format, id, title, description, placeholder, value, onChange, }: TextInputComponent) => TextInputRendererProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context as DFContext, Margin as DFMargin, Size as DFSize } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { Context as DFContext, Margin as DFMargin, Size as DFSize } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
3
|
export type Renderer<P extends RendererProps> = {
|
|
4
4
|
canRender: (props: RendererProps) => boolean;
|
|
5
5
|
render: (props: P) => ReactNode;
|
|
@@ -55,8 +55,8 @@ export interface TextInputRendererProps extends RendererProps {
|
|
|
55
55
|
label?: string;
|
|
56
56
|
description?: string;
|
|
57
57
|
placeholder?: string;
|
|
58
|
-
value
|
|
59
|
-
onChange: (value: string |
|
|
58
|
+
value: string | null;
|
|
59
|
+
onChange: (value: string | null) => void;
|
|
60
60
|
}
|
|
61
61
|
export interface ButtonRendererProps extends RendererProps {
|
|
62
62
|
type: 'button';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Align as DFAlign } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { Align } from '../types';
|
|
1
|
+
import type { Align as DFAlign } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { Align } from '../types';
|
|
3
3
|
export declare const mapAlign: (align: DFAlign) => Align;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Step as DFStep } from '@wise/dynamic-flow-types';
|
|
2
|
-
import { Renderer, RendererProps } from '../renderers/types';
|
|
1
|
+
import type { Step as DFStep } from '@wise/dynamic-flow-types';
|
|
2
|
+
import type { Renderer, RendererProps } from '../renderers/types';
|
|
3
3
|
type StepProps = {
|
|
4
4
|
step: DFStep;
|
|
5
5
|
renderers: Renderer<RendererProps>[];
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare function Step({ step: dfStep, renderers }: StepProps): JSX.Element;
|
|
8
8
|
export default Step;
|