@wise/dynamic-flow-client 4.21.1 → 5.0.0-experimental-feace93
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/i18n/en.json +0 -16
- package/build/main.css +0 -198
- package/build/main.js +256 -7396
- package/build/main.mjs +254 -7399
- package/build/types/{revamp/domain → domain}/components/AllOfComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/BoxComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/ButtonComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/ConstComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/HeadingComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/ImageComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/LoadingIndicatorComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/MarkdownComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/ModalLayoutComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/MoneyInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/MultiUploadInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/ParagraphComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/PersistAsyncComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/RootDomainComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/SelectInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/UploadInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/searchComponent/SearchComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/step/StepDomainComponent.d.ts +2 -2
- package/build/types/{revamp/domain → domain}/components/step/ToolbarComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/components/utils/isPartialModelMatch.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/persistAsync/getComponentMultiPersistAsync.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/persistAsync/getInitialPersistedState.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/persistAsync/getPerformPersistAsync.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/polling/getStepPolling.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/schema-on-change/getSchemaOnChange.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/summary/summary-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/utils/http-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/utils/response-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/validation/value-checks.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/features/validationAsync/getPerformValidationAsync.d.ts +2 -2
- package/build/types/{revamp/domain → domain}/mappers/layout/alertLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/boxLayoutToComponents.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/buttonLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/columnsLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/decisionLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/deprecatedListLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/dividerLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/formLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/headingLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/imageLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/infoLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/instructionsLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/listLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/loadingIndicatorLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/markdownLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/modalLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/modalToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/paragraphLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/progressLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/reviewLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/searchLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/sectionLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/statusListLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/layout/tabsLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/mapLayoutToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/mapStepSchemas.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/mapStepToComponent.d.ts +1 -2
- package/build/types/{revamp/domain → domain}/mappers/mapToolbarToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/allOfSchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/arraySchemaToComponent/arraySchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/arraySchemaToComponent/arraySchemaToMultiSelectComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/arraySchemaToComponent/arraySchemaToMultiUploadComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/arraySchemaToComponent/arraySchemaToTupleComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/blobSchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/booleanSchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/constSchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/integerSchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/numberSchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/objectSchemaToComponent/assertDisplayOrder.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/objectSchemaToComponent/objectSchemaToMoneyInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/objectSchemaToComponent/objectSchemaToObjectComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +36 -36
- package/build/types/{revamp/domain → domain}/mappers/schema/persistAsyncSchemaToComponent.d.ts +32 -32
- package/build/types/{revamp/domain → domain}/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/stringSchemaToComponent/stringSchemaToDateInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/stringSchemaToComponent/stringSchemaToTextInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/stringSchemaToComponent/stringSchemaToUploadInputComponent.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/tests/test-utils.d.ts +3 -3
- package/build/types/{revamp/domain → domain}/mappers/schema/types.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/schema/utils/getPerformPersistAsyncFn.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/types.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/behavior-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/call-to-action-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/getAutocompleteString.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/groupLayoutByPinned.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/image.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/layout-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/legacy-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/media-utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/mappers/utils/suggestions-utils.d.ts +2 -2
- package/build/types/{revamp/domain → domain}/mappers/utils/utils.d.ts +1 -1
- package/build/types/{revamp/domain → domain}/types.d.ts +1 -1
- package/build/types/{revamp/flow → flow}/executePoll.d.ts +1 -1
- package/build/types/{revamp/flow → flow}/executeRefresh.d.ts +1 -1
- package/build/types/{revamp/flow → flow}/executeSubmission.d.ts +1 -1
- package/build/types/{revamp/flow → flow}/response-utils.d.ts +1 -1
- package/build/types/index.d.ts +4 -14
- package/build/types/{revamp/renderers → renderers}/CoreContainerRenderer.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/CoreRootRenderer.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/getRenderFunction.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/alertComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/allOfComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/booleanInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/boxComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/buttonComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/columnsComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/componentToRendererProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/constComponentToProps.d.ts +2 -2
- package/build/types/{revamp/renderers → renderers}/mappers/containerComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/dateInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/decisionComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/dividerComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/externalComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/formComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/headingComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/hiddenComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/imageComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/instructionsComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/integerInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/listComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/loadingIndicatorComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/markdownComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/modalComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/modalLayoutComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/moneyInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/multiSelectComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/multiUploadInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/numberInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/objectComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/paragraphComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/persistAsyncComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/progressComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/repeatableComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/reviewComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/rootComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/searchComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/sectionComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/selectInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/statusListComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/tabsComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/textInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/tupleComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/uploadInputComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/utils/getValidationState.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/mappers/utils/inputComponentToProps.d.ts +2 -4
- package/build/types/{revamp/renderers → renderers}/mappers/utils/mapErrorsToValidationState.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/stepComponentToProps.d.ts +1 -1
- package/build/types/{revamp/renderers → renderers}/utils.d.ts +1 -1
- package/build/types/stories/utils/getBasicStep.d.ts +2 -0
- package/build/types/stories/utils/render-utils.d.ts +5 -0
- package/build/types/test-utils/DynamicFlowWise.d.ts +13 -0
- package/build/types/test-utils/fetch-utils.d.ts +1 -1
- package/build/types/{revamp/types.d.ts → types.d.ts} +5 -14
- package/build/types/{revamp/utils → utils}/analyse-step.d.ts +1 -1
- package/build/types/{revamp/utils → utils}/component-utils.d.ts +1 -1
- package/build/types/{revamp/utils → utils}/type-utils.d.ts +1 -2
- package/package.json +2 -5
- package/build/types/common/cameraCapture/CameraCapture.d.ts +0 -16
- package/build/types/common/cameraCapture/CameraCapture.messages.d.ts +0 -58
- package/build/types/common/cameraCapture/components/bottomBar/BottomBar.d.ts +0 -7
- package/build/types/common/cameraCapture/components/index.d.ts +0 -3
- package/build/types/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.d.ts +0 -2
- package/build/types/common/cameraCapture/components/orientationLockOverlay/OrientationLockOverlay.messages.d.ts +0 -8
- package/build/types/common/cameraCapture/hooks/useFullScreenOrientationLock.d.ts +0 -5
- package/build/types/common/cameraCapture/hooks/useVideoConstraints.d.ts +0 -4
- package/build/types/common/cameraCapture/index.d.ts +0 -1
- package/build/types/common/cameraCapture/overlay/Overlay.d.ts +0 -10
- package/build/types/common/cameraCapture/screens/cameraErrorScreen/CameraErrorScreen.d.ts +0 -3
- package/build/types/common/cameraCapture/screens/index.d.ts +0 -1
- package/build/types/common/cameraCapture/tracking/index.d.ts +0 -8
- package/build/types/common/cameraCapture/types/index.d.ts +0 -11
- package/build/types/common/cameraCapture/utils/index.d.ts +0 -8
- package/build/types/common/cameraCapture/utils/mobile-utils.d.ts +0 -4
- package/build/types/common/httpClientContext/HttpClientContext.d.ts +0 -17
- package/build/types/common/httpClientContext/index.d.ts +0 -1
- package/build/types/common/utils/debounce.d.ts +0 -7
- package/build/types/legacy/common/constants/DateMode.d.ts +0 -4
- package/build/types/legacy/common/constants/FeatureName.d.ts +0 -3
- package/build/types/legacy/common/constants/FormControlType.d.ts +0 -19
- package/build/types/legacy/common/constants/MonthFormat.d.ts +0 -4
- package/build/types/legacy/common/constants/Size.d.ts +0 -7
- package/build/types/legacy/common/constants/index.d.ts +0 -4
- package/build/types/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -10
- package/build/types/legacy/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +0 -4
- package/build/types/legacy/common/contexts/eventsContext/EventsContext.d.ts +0 -14
- package/build/types/legacy/common/contexts/index.d.ts +0 -3
- package/build/types/legacy/common/contexts/logContext/LogContext.d.ts +0 -19
- package/build/types/legacy/common/hooks/index.d.ts +0 -7
- package/build/types/legacy/common/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +0 -2
- package/build/types/legacy/common/hooks/useExternal/useExternal.d.ts +0 -4
- package/build/types/legacy/common/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +0 -3
- package/build/types/legacy/common/hooks/usePersistAsync/usePersistAsync.d.ts +0 -7
- package/build/types/legacy/common/hooks/usePolling/usePolling.d.ts +0 -11
- package/build/types/legacy/common/hooks/usePrevious/usePrevious.d.ts +0 -1
- package/build/types/legacy/common/hooks/useStepPolling/useStepPolling.d.ts +0 -2
- package/build/types/legacy/common/messages.d.ts +0 -8
- package/build/types/legacy/common/utils/api-utils.d.ts +0 -1
- package/build/types/legacy/common/utils/date-utils.d.ts +0 -2
- package/build/types/legacy/common/utils/file-utils.d.ts +0 -4
- package/build/types/legacy/common/utils/id-utils.d.ts +0 -1
- package/build/types/legacy/common/utils/index.d.ts +0 -11
- package/build/types/legacy/common/utils/is-equal.d.ts +0 -1
- package/build/types/legacy/common/utils/misc-utils.d.ts +0 -2
- package/build/types/legacy/common/utils/model-utils.d.ts +0 -7
- package/build/types/legacy/common/utils/schema-utils.d.ts +0 -26
- package/build/types/legacy/common/utils/step-utils.d.ts +0 -3
- package/build/types/legacy/common/validators/index.d.ts +0 -5
- package/build/types/legacy/common/validators/models/model-utils.d.ts +0 -10
- package/build/types/legacy/common/validators/models/model-validators.d.ts +0 -4
- package/build/types/legacy/common/validators/schemas/schema-validators.d.ts +0 -9
- package/build/types/legacy/common/validators/types/type-validators.d.ts +0 -8
- package/build/types/legacy/common/validators/validationFailures/validation-failures.d.ts +0 -23
- package/build/types/legacy/common/validators/validationFailures/validation-failures.utils.d.ts +0 -10
- package/build/types/legacy/common/validators/values/value-validators.d.ts +0 -2
- package/build/types/legacy/dynamic-flow-types.d.ts +0 -43
- package/build/types/legacy/dynamicFlow/BackButton.d.ts +0 -9
- package/build/types/legacy/dynamicFlow/DynamicFlow.d.ts +0 -3
- package/build/types/legacy/dynamicFlow/DynamicFlowStep.d.ts +0 -8
- package/build/types/legacy/dynamicFlow/DynamicFlowTypes.d.ts +0 -8
- package/build/types/legacy/dynamicFlow/index.d.ts +0 -1
- package/build/types/legacy/dynamicFlow/stories/fixtureHttpClient.d.ts +0 -3
- package/build/types/legacy/dynamicFlow/tests/DynamicFlow.InitialAction.spec.d.ts +0 -1
- package/build/types/legacy/dynamicFlow/tests/DynamicFlow.InitialStep.spec.d.ts +0 -1
- package/build/types/legacy/dynamicFlow/tests/DynamicFlow.LoaderConfig.spec.d.ts +0 -1
- package/build/types/legacy/dynamicFlow/utils/index.d.ts +0 -5
- package/build/types/legacy/dynamicFlow/utils/responseParsers/response-parsers.d.ts +0 -17
- package/build/types/legacy/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -9
- package/build/types/legacy/dynamicFlow/utils/useDynamicFlowState.d.ts +0 -17
- package/build/types/legacy/dynamicFlow/utils/useErrorResponse.d.ts +0 -2
- package/build/types/legacy/dynamicFlow/utils/useLoader.d.ts +0 -8
- package/build/types/legacy/formControl/FormControl.d.ts +0 -151
- package/build/types/legacy/formControl/index.d.ts +0 -1
- package/build/types/legacy/formControl/utils/getAutocompleteString.d.ts +0 -5
- package/build/types/legacy/formControl/utils/index.d.ts +0 -2
- package/build/types/legacy/formControl/utils/value-utils.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/JsonSchemaForm.d.ts +0 -65
- package/build/types/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/allOfSchema/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiSelectSchema/MultiSelectSchema.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -10
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +0 -6
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.d.ts +0 -12
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +0 -14
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +0 -3
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +0 -14
- package/build/types/legacy/jsonSchemaForm/basicTypeSchema/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +0 -25
- package/build/types/legacy/jsonSchemaForm/controlFeedback/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/genericSchema/GenericSchema.d.ts +0 -18
- package/build/types/legacy/jsonSchemaForm/genericSchema/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/help/Help.d.ts +0 -7
- package/build/types/legacy/jsonSchemaForm/help/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +0 -9
- package/build/types/legacy/jsonSchemaForm/objectSchema/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +0 -8
- package/build/types/legacy/jsonSchemaForm/oneOfSchema/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/oneOfSchema/utils.d.ts +0 -4
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -10
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +0 -15
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +0 -14
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +0 -16
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.spec.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -8
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/index.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.d.ts +0 -2
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +0 -3
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +0 -22
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +0 -8
- package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +0 -7
- package/build/types/legacy/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -13
- package/build/types/legacy/jsonSchemaForm/readOnlySchema/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +0 -21
- package/build/types/legacy/jsonSchemaForm/schemaFormControl/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/schemaFormControl/utils/index.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.d.ts +0 -33
- package/build/types/legacy/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -10
- package/build/types/legacy/jsonSchemaForm/validationAsyncSchema/index.d.ts +0 -2
- package/build/types/legacy/layout/DynamicLayout.d.ts +0 -16
- package/build/types/legacy/layout/alert/DynamicAlert.d.ts +0 -8
- package/build/types/legacy/layout/alert/DynamicAlert.spec.d.ts +0 -1
- package/build/types/legacy/layout/box/DynamicBox.d.ts +0 -7
- package/build/types/legacy/layout/button/DynamicButton.d.ts +0 -9
- package/build/types/legacy/layout/button/utils.d.ts +0 -5
- package/build/types/legacy/layout/columns/DynamicColumns.d.ts +0 -7
- package/build/types/legacy/layout/decision/DynamicDecision.d.ts +0 -8
- package/build/types/legacy/layout/divider/DynamicDivider.d.ts +0 -6
- package/build/types/legacy/layout/external/DynamicExternal.d.ts +0 -8
- package/build/types/legacy/layout/external/DynamicExternal.messages.d.ts +0 -8
- package/build/types/legacy/layout/external/DynamicExternal.spec.d.ts +0 -1
- package/build/types/legacy/layout/form/DynamicForm.d.ts +0 -7
- package/build/types/legacy/layout/heading/DynamicHeading.d.ts +0 -5
- package/build/types/legacy/layout/heading/DynamicHeading.spec.d.ts +0 -1
- package/build/types/legacy/layout/icon/DynamicIcon.d.ts +0 -6
- package/build/types/legacy/layout/icon/FlagIcon.d.ts +0 -6
- package/build/types/legacy/layout/icon/NamedIcon.d.ts +0 -6
- package/build/types/legacy/layout/image/DynamicImage.d.ts +0 -6
- package/build/types/legacy/layout/index.d.ts +0 -20
- package/build/types/legacy/layout/instructions/DynamicInstructions.d.ts +0 -6
- package/build/types/legacy/layout/list/DynamicStatusList.d.ts +0 -7
- package/build/types/legacy/layout/loadingIndicator/DynamicLoadingIndicator.d.ts +0 -6
- package/build/types/legacy/layout/markdown/DynamicMarkdown.d.ts +0 -10
- package/build/types/legacy/layout/modal/DynamicModal.d.ts +0 -7
- package/build/types/legacy/layout/paragraph/DynamicParagraph.d.ts +0 -6
- package/build/types/legacy/layout/paragraph/DynamicParagraph.spec.d.ts +0 -1
- package/build/types/legacy/layout/paragraph/useSnackBarIfAvailable.d.ts +0 -10
- package/build/types/legacy/layout/review/DynamicReview.d.ts +0 -8
- package/build/types/legacy/layout/search/DynamicSearch.d.ts +0 -8
- package/build/types/legacy/layout/search/SearchInput.d.ts +0 -8
- package/build/types/legacy/layout/search/SearchResults.d.ts +0 -10
- package/build/types/legacy/layout/search/useSearch.d.ts +0 -16
- package/build/types/legacy/layout/utils/getNavigationOptionMedia.d.ts +0 -5
- package/build/types/legacy/layout/utils/index.d.ts +0 -8
- package/build/types/legacy/step/cameraStep/CameraStep.d.ts +0 -7
- package/build/types/legacy/step/cameraStep/index.d.ts +0 -1
- package/build/types/legacy/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -6
- package/build/types/legacy/step/externalConfirmationStep/index.d.ts +0 -1
- package/build/types/legacy/step/index.d.ts +0 -3
- package/build/types/legacy/step/layoutStep/LayoutStep.d.ts +0 -10
- package/build/types/legacy/step/layoutStep/index.d.ts +0 -1
- package/build/types/legacy/step/layoutStep/utils/index.d.ts +0 -2
- package/build/types/legacy/step/layoutStep/utils/inline-reference-utils.d.ts +0 -7
- package/build/types/legacy/step/layoutStep/utils/layout-utils.d.ts +0 -8
- package/build/types/legacy/test-utils/DynamicFlowProviders.d.ts +0 -9
- package/build/types/legacy/test-utils/index.d.ts +0 -4
- package/build/types/legacy/test-utils/legacy-utils.d.ts +0 -9
- package/build/types/legacy/test-utils/log-utils.d.ts +0 -8
- package/build/types/revamp/renderers/mappers/utils/mapMediaToLegacyProps.d.ts +0 -9
- package/build/types/revamp/renderers/mappers/utils/mapSuggestions.d.ts +0 -12
- package/build/types/revamp/renderers/mappers/utils/mapTags.d.ts +0 -8
- package/build/types/revamp/stories/utils/getBasicStep.d.ts +0 -2
- package/build/types/revamp/stories/utils/render-utils.d.ts +0 -5
- package/build/types/revamp/test-utils/DynamicFlowWise.d.ts +0 -15
- package/build/types/revamp/test-utils/component-utils.d.ts +0 -2
- package/build/types/revamp/test-utils/step-utils.d.ts +0 -2
- /package/build/types/{revamp/DynamicFlowCore.d.ts → DynamicFlowCore.d.ts} +0 -0
- /package/build/types/{revamp/DynamicFormCore.d.ts → DynamicFormCore.d.ts} +0 -0
- /package/build/types/common/{utils → makeHttpClient}/api-utils.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/AlertComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/BooleanInputComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/ColumnsComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/ContainerComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/DateInputComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/DecisionComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/DividerComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/FormComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/InstructionsComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/IntegerInputComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/ListComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/ModalComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/MultiSelectInputComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/NumberInputComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/ObjectComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/ProgressComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/RepeatableComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/ReviewComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/SectionComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/StatusListComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/TabsComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/TextInputComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/TupleComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/step/ExternalConfirmationComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/utils/WithUpdate.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/utils/component-utils.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/utils/debounce.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/utils/file-utils.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/utils/getRandomId.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/utils/isExactLocalValueMatch.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/components/utils/isOrWasValid.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/events.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/refreshAfter/getStepRefreshAfter.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/schema-on-change/getDebouncedSchemaOnChange.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/search/getPerformSearchFunction.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/validation/spec-utils.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/validation/validateStringPattern.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/validation/validation-functions.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/validationAsync/getComponentValidationAsync.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/features/validationAsync/getInitialValidationAsyncState.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/mappers/mapSchemaToComponent.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/mappers/schema/utils/getValidationAsyncInitialState.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/mappers/schema/utils/mapCommonSchemaProps.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/mappers/utils/feature-utils.d.ts +0 -0
- /package/build/types/{revamp/domain → domain}/mappers/utils/tags-utils.d.ts +0 -0
- /package/build/types/{revamp/flow → flow}/getErrorMessage.d.ts +0 -0
- /package/build/types/{revamp/flow → flow}/getResponseType.d.ts +0 -0
- /package/build/types/{revamp/renderers → renderers}/getSchemaErrorMessageFunction.d.ts +0 -0
- /package/build/types/{revamp/renderers → renderers}/mappers/utils/pick.d.ts +0 -0
- /package/build/types/{revamp/stories → stories}/types.d.ts +0 -0
- /package/build/types/{revamp/stories → stories}/utils/fixtureHttpClient.d.ts +0 -0
- /package/build/types/{revamp/stories → stories}/utils/mockSearchHandler.d.ts +0 -0
- /package/build/types/{revamp/test-utils → test-utils}/getRandomId.d.ts +0 -0
- /package/build/types/{revamp/tests → tests}/renderers/TextInputRenderer.test.d.ts +0 -0
- /package/build/types/{revamp/useDynamicFlowCore.d.ts → useDynamicFlowCore.d.ts} +0 -0
- /package/build/types/{revamp/utils → utils}/normalise-flow-id.d.ts +0 -0
- /package/build/types/{revamp/utils → utils}/openLinkInNewTab.d.ts +0 -0
- /package/build/types/{revamp/utils → utils}/recursiveMerge.d.ts +0 -0
- /package/build/types/{revamp/utils → utils}/type-validators.d.ts +0 -0
- /package/build/types/{revamp/utils → utils}/useStableCallback.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './CameraCapture';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
overlay?: string;
|
|
3
|
-
outline?: string;
|
|
4
|
-
imageUrl?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
instructions?: string;
|
|
7
|
-
reviewInstructions?: string;
|
|
8
|
-
};
|
|
9
|
-
declare function Overlay({ overlay, outline, imageUrl, title, instructions, reviewInstructions }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Overlay;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CameraErrorScreen } from "./cameraErrorScreen/CameraErrorScreen";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CameraDirection } from '@wise/dynamic-flow-types';
|
|
2
|
-
import type { CameraEventHandler, CameraEventName } from '../CameraCapture';
|
|
3
|
-
export declare const trackCameraError: (message: CameraEventName, onEvent: CameraEventHandler | undefined, error: string | DOMException) => void | undefined;
|
|
4
|
-
export declare const trackCameraFeedStarted: (onEvent: CameraEventHandler | undefined, props: {
|
|
5
|
-
direction?: CameraDirection;
|
|
6
|
-
}, stream: MediaStream) => Promise<void | undefined>;
|
|
7
|
-
export declare const trackCameraOrientationLandscape: (onEvent: CameraEventHandler | undefined) => void;
|
|
8
|
-
export declare const trackCameraOrientationLocked: (onEvent: CameraEventHandler | undefined) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const isSelfieCamera: (stream: MediaStream) => boolean;
|
|
2
|
-
export declare const isMainBackCamera: (deviceInfo?: MediaDeviceInfo) => boolean;
|
|
3
|
-
export declare const generateCanvasFromVideo: (video: HTMLVideoElement | null) => Promise<HTMLCanvasElement>;
|
|
4
|
-
export declare const getAvailableVideoDevices: () => Promise<MediaDeviceInfo[]>;
|
|
5
|
-
export declare const getAvailableVideoDeviceLabels: () => Promise<string[]>;
|
|
6
|
-
export declare const getActiveVideoDeviceLabel: (videoStream: MediaStream) => Promise<string | undefined>;
|
|
7
|
-
export declare const getVideoTrack: (videoStream: MediaStream) => MediaStreamTrack | undefined;
|
|
8
|
-
export declare const getVideoCapabilities: (videoStream: MediaStream) => MediaTrackCapabilities | undefined;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const isMobile: () => boolean;
|
|
2
|
-
export declare const isMobileUA: (userAgent?: string) => boolean;
|
|
3
|
-
export declare const isMobileScreenSize: (width?: number, height?: number) => boolean;
|
|
4
|
-
export declare const isTouchScreen: (navigator?: Navigator, matchMedia?: (query: string) => MediaQueryList) => boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type HttpClient } from '../makeHttpClient';
|
|
2
|
-
type ProviderProps = {
|
|
3
|
-
httpClient: HttpClient;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare function HttpClientProvider({ httpClient, children }: ProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
type ProviderFromBaseUrlProps = {
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export declare function HttpClientProviderFromBaseUrl({ baseUrl, children }: ProviderFromBaseUrlProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
/**
|
|
13
|
-
* Provides the fetch(er) function for dynamic flows asynchronous operations.
|
|
14
|
-
*/
|
|
15
|
-
export declare const useHttpClient: () => typeof fetch;
|
|
16
|
-
export declare const useHasHttpClientProvider: () => boolean;
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './HttpClientContext';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface DebouncedFunc<T extends (...args: Parameters<T>) => ReturnType<T>> {
|
|
2
|
-
(...args: Parameters<T>): void;
|
|
3
|
-
cancel: () => void;
|
|
4
|
-
flush: () => void;
|
|
5
|
-
isPending: () => boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const debounce: <T extends (...args: Parameters<T>) => ReturnType<T>>(callback: T, waitMs: number) => DebouncedFunc<T>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const FormControlType: {
|
|
2
|
-
RADIO: string;
|
|
3
|
-
CHECKBOX: string;
|
|
4
|
-
SELECT: string;
|
|
5
|
-
EMAIL: string;
|
|
6
|
-
FILE: string;
|
|
7
|
-
DATE: string;
|
|
8
|
-
DATETIME: string;
|
|
9
|
-
DATELOOKUP: string;
|
|
10
|
-
TEL: string;
|
|
11
|
-
NUMERIC: string;
|
|
12
|
-
NUMBER: string;
|
|
13
|
-
HIDDEN: string;
|
|
14
|
-
PASSWORD: string;
|
|
15
|
-
TEXT: string;
|
|
16
|
-
TEXTAREA: string;
|
|
17
|
-
UPLOAD: string;
|
|
18
|
-
TAB: string;
|
|
19
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
loading: boolean;
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
};
|
|
5
|
-
export declare const DynamicFlowProvider: ({ loading, children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const useDynamicFlow: () => {
|
|
7
|
-
loading: boolean;
|
|
8
|
-
registerPersistAsyncPromise: (promise: Promise<unknown>) => void;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
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): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function useEventDispatcher(): EventHandler;
|
|
13
|
-
export declare const getEventDispatcher: (onEvent: EventHandler, metadata?: Record<string, unknown>) => EventHandler;
|
|
14
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { LogLevel, LogEventHandler } from '../../../dynamic-flow-types';
|
|
2
|
-
export type LogTitle = 'Invalid schema or model' | 'Invalid model on change' | 'Invalid response' | 'Action supressed' | 'Deprecation warning' | 'Deprecated schema' | 'Error fetching';
|
|
3
|
-
type LogFunction = (title: LogTitle, description: string, extra?: Record<string, unknown>) => void;
|
|
4
|
-
export declare const getLogger: (level: LogLevel, onLog: LogEventHandler, flowId?: string | undefined, stepId?: string | undefined) => LogFunction;
|
|
5
|
-
type LogProviderProps = {
|
|
6
|
-
flowId?: string;
|
|
7
|
-
stepId?: string;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
onLog: LogEventHandler;
|
|
10
|
-
};
|
|
11
|
-
export declare function LogProvider({ flowId, stepId, children, onLog }: LogProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare const useLogger: () => {
|
|
13
|
-
debug: LogFunction;
|
|
14
|
-
info: LogFunction;
|
|
15
|
-
warning: LogFunction;
|
|
16
|
-
error: LogFunction;
|
|
17
|
-
critical: LogFunction;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './useDebouncedFunction/useDebouncedFunction';
|
|
2
|
-
export * from './useExternal/useExternal';
|
|
3
|
-
export * from './useExternalStepPolling/useExternalStepPolling';
|
|
4
|
-
export * from './usePersistAsync/usePersistAsync';
|
|
5
|
-
export * from './usePolling/usePolling';
|
|
6
|
-
export * from './usePrevious/usePrevious';
|
|
7
|
-
export * from './useStepPolling/useStepPolling';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Action, ExternalStepPollingConfiguration } from '@wise/dynamic-flow-types';
|
|
2
|
-
/** @deprecated External step is no longer supported */
|
|
3
|
-
export declare function useExternalStepPolling(polling: ExternalStepPollingConfiguration | undefined, onAction: (action: Action) => void): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PersistAsync } from '@wise/dynamic-flow-types';
|
|
2
|
-
type PersistAsyncModel = string | Blob | null;
|
|
3
|
-
type PerformPersistAsyncFunction = (payload: PersistAsyncModel) => Promise<{
|
|
4
|
-
data: string | number;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const usePersistAsync: (persistAsync: PersistAsync) => PerformPersistAsyncFunction;
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type PollingOptions<PR> = {
|
|
2
|
-
asyncFn: (() => Promise<PR>) | undefined;
|
|
3
|
-
delay: number;
|
|
4
|
-
maxAttempts: number;
|
|
5
|
-
maxConsecutiveFails: number;
|
|
6
|
-
onPollingResponse: (pollingResponse: PR) => boolean;
|
|
7
|
-
onFailure: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare function usePolling<PollingResponse>({ asyncFn, delay, maxAttempts, maxConsecutiveFails, onPollingResponse, onFailure, }: PollingOptions<PollingResponse>): void;
|
|
10
|
-
export declare function createPollingClosure<PR>(asyncFn: (() => Promise<PR>) | undefined, maxAttempts: number, maxConsecutiveFails: number, onPollingResponse: (pollingResponse: PR) => boolean, onFailure: () => void): () => void;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function usePrevious(value: any): undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isStatus2xx(status: Response['status']): boolean;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { UploadedFile } from '@transferwise/components';
|
|
2
|
-
export declare function toKilobytes(sizeInBytes: number): number;
|
|
3
|
-
export declare const toBase64: (file: Blob) => Promise<string>;
|
|
4
|
-
export declare function areFilesSame(newFiles: UploadedFile[], files: UploadedFile[]): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateRandomId: (prefix?: string) => string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from '../../../common/cameraCapture/utils/mobile-utils';
|
|
2
|
-
export * from '../../../common/utils/debounce';
|
|
3
|
-
export * from './api-utils';
|
|
4
|
-
export * from './date-utils';
|
|
5
|
-
export * from './file-utils';
|
|
6
|
-
export * from './id-utils';
|
|
7
|
-
export * from './is-equal';
|
|
8
|
-
export * from './misc-utils';
|
|
9
|
-
export * from './model-utils';
|
|
10
|
-
export * from './schema-utils';
|
|
11
|
-
export * from './step-utils';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isEqual: (a: unknown, b: unknown) => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ArrayModel, BasicModel, Model, ObjectModel } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare const isObjectModel: (model: Model) => model is ObjectModel;
|
|
3
|
-
export declare const isNullableObjectModel: (model: Model) => model is ObjectModel | null;
|
|
4
|
-
export declare const isNullableBasicModel: (model: Model) => model is BasicModel | null;
|
|
5
|
-
export declare const isNullableStringModel: (model: Model) => model is string | null;
|
|
6
|
-
export declare const isArrayModel: (model: Model) => model is ArrayModel;
|
|
7
|
-
export declare const isNullableArrayModel: (model: Model) => model is ArrayModel | null;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { AllOfSchema, ArraySchema, BasicSchema, BlobSchema, ConstSchema, FileUploadSchema, ListArraySchema, MultipleFileUploadSchema, MultiSelectSchema, ObjectSchema, OneOfObjectSchema, OneOfSchema, PersistAsyncSchema, Schema, StringSchema, TupleArraySchema, ValidationAsyncSchema } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare function isConstSchema(schema: Schema | undefined): schema is ConstSchema;
|
|
3
|
-
export declare function isNoNConstSchema(schema: Schema | undefined): boolean;
|
|
4
|
-
export declare const isReadOnlySchema: (schema: Schema) => boolean;
|
|
5
|
-
export declare const isPromotedOneOfSchema: (schema: Schema) => boolean;
|
|
6
|
-
export declare const basicTypes: Set<string>;
|
|
7
|
-
export declare function isBasicSchema(schema: Schema): schema is BasicSchema;
|
|
8
|
-
export declare function isObjectSchema(schema: Schema): schema is ObjectSchema;
|
|
9
|
-
export declare function isOneOfObjectSchema(schema: Schema): schema is OneOfObjectSchema;
|
|
10
|
-
export declare function isOneOfSchema(schema: Schema): schema is OneOfSchema;
|
|
11
|
-
export declare function isAllOfSchema(schema: Schema): schema is AllOfSchema;
|
|
12
|
-
export declare function isBlobSchema(schema: Schema): schema is BlobSchema;
|
|
13
|
-
export declare function isArraySchema(schema: Schema): schema is ArraySchema;
|
|
14
|
-
export declare function isTupleArraySchema(schema: Schema): schema is TupleArraySchema;
|
|
15
|
-
export declare function isListArraySchema(schema: Schema): schema is ListArraySchema;
|
|
16
|
-
export declare function isStringSchema(schema: Schema): schema is StringSchema;
|
|
17
|
-
export declare function isPersistAsyncSchema(schema: Schema): schema is PersistAsyncSchema;
|
|
18
|
-
export declare function isPersistAsyncFileSchema(schema: Schema): schema is PersistAsyncSchema;
|
|
19
|
-
export declare const isValidationAsyncSchema: (schema: Schema) => schema is ValidationAsyncSchema;
|
|
20
|
-
export declare function isFileUploadSchema(schema: {
|
|
21
|
-
type?: string;
|
|
22
|
-
format?: string;
|
|
23
|
-
}): schema is FileUploadSchema;
|
|
24
|
-
export declare const isMultipleFileUploadSchema: (schema: Schema) => schema is MultipleFileUploadSchema;
|
|
25
|
-
export declare const isMultiSelectConstSchema: (schema: Schema) => schema is MultiSelectSchema;
|
|
26
|
-
export declare const getSchemaType: (schema: Schema) => "object" | "persistAsync" | "array" | "allOf" | "oneOf" | "validationAsync" | "readOnly" | "promotedOneOf" | "basic" | null;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { getValidModelParts, getValidObjectModelParts, getValidBasicModelOrNull, } from './models/model-validators';
|
|
2
|
-
export { isValidSchema } from './schemas/schema-validators';
|
|
3
|
-
export { getValidationFailures, getArrayValidationFailures, } from './validationFailures/validation-failures';
|
|
4
|
-
export * from './types/type-validators';
|
|
5
|
-
export * from './values/value-validators';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AllOfSchema, ArrayModel, ArraySchema, BasicModel, Model, ObjectModel, ObjectSchema, OneOfSchema } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare function cleanBasicModelWithOneOfSchema(model: BasicModel, schema: OneOfSchema): BasicModel | null;
|
|
3
|
-
export declare function cleanArrayModelWithOneOfSchema(model: ArrayModel, schema: OneOfSchema): ArrayModel | null;
|
|
4
|
-
export declare function cleanModelWithStringSchema(model: Model): string | null;
|
|
5
|
-
export declare function cleanModelWithNumberSchema(model: Model): number | null;
|
|
6
|
-
export declare function cleanModelWithBooleanSchema(model: Model): boolean | null;
|
|
7
|
-
export declare function cleanModelWithArraySchema(model: Model, schema: ArraySchema): ArrayModel | null;
|
|
8
|
-
export declare function cleanObjectModelWithObjectSchema(model: ObjectModel, schema: ObjectSchema): ObjectModel;
|
|
9
|
-
export declare function cleanObjectModelWithAllOfSchema(model: ObjectModel, schema: AllOfSchema): ObjectModel;
|
|
10
|
-
export declare function cleanObjectModelWithOneOfSchema(model: ObjectModel, schema: OneOfSchema): ObjectModel | null;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { BasicModel, Model, ObjectModel, Schema } from '@wise/dynamic-flow-types';
|
|
2
|
-
export declare const getValidModelParts: (model: Model, schema: Schema) => Model;
|
|
3
|
-
export declare function getValidBasicModelOrNull(model: BasicModel | null, schema: Schema): BasicModel | null;
|
|
4
|
-
export declare function getValidObjectModelParts(model: ObjectModel | null, schema: Schema): ObjectModel | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const isString: (value: unknown) => value is string;
|
|
2
|
-
export declare const isNumber: (value: unknown) => value is number;
|
|
3
|
-
export declare const isInteger: (value: unknown) => value is number;
|
|
4
|
-
export declare const isBoolean: (value: unknown) => value is boolean;
|
|
5
|
-
export declare const isObject: (value: unknown) => value is Record<string, unknown>;
|
|
6
|
-
export declare const isArray: (value: unknown) => value is unknown[];
|
|
7
|
-
export declare const isNull: (value: unknown) => value is null;
|
|
8
|
-
export declare const isUndefined: (value: unknown) => value is undefined;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { BlobSchema, NumberSchema, IntegerSchema, Model, Schema, AllOfSchema, OneOfSchema, StringSchema } from '@wise/dynamic-flow-types';
|
|
2
|
-
declare function getValidationFailures(value: Model, schema: Schema, isRequired: boolean): string[];
|
|
3
|
-
declare function getStringValidationFailures(value: Model, schema: StringSchema, isRequired?: boolean): string[];
|
|
4
|
-
declare function getNumberValidationFailures(value: Model, schema: AllOfSchema | OneOfSchema | NumberSchema | IntegerSchema, isRequired?: boolean): string[];
|
|
5
|
-
declare function getIntegerValidationFailures(value: Model, schema: AllOfSchema | OneOfSchema | NumberSchema | IntegerSchema, isRequired?: boolean): string[];
|
|
6
|
-
declare function getBooleanValidationFailures(value: Model, _schema: Schema, isRequired?: boolean): string[];
|
|
7
|
-
declare function getConstValidationFailures(value: Model, schema: Schema, isRequired?: boolean): string[];
|
|
8
|
-
declare function getArrayValidationFailures(value: Model, schema: {
|
|
9
|
-
minItems?: number;
|
|
10
|
-
maxItems?: number;
|
|
11
|
-
}, isRequired?: boolean): string[];
|
|
12
|
-
declare function getBlobValidationFailures(value: Model, _schema: BlobSchema): string[];
|
|
13
|
-
/**
|
|
14
|
-
* When validating an object we only checking that it is an object and that it
|
|
15
|
-
* has the required properties, we do not check if the properties are valid.
|
|
16
|
-
*
|
|
17
|
-
* @param value
|
|
18
|
-
* @param schema
|
|
19
|
-
*/
|
|
20
|
-
declare function getObjectValidationFailures(value: Model, schema: {
|
|
21
|
-
required?: string[];
|
|
22
|
-
}): string[];
|
|
23
|
-
export { getValidationFailures, getStringValidationFailures, getNumberValidationFailures, getIntegerValidationFailures, getBooleanValidationFailures, getConstValidationFailures, getArrayValidationFailures, getObjectValidationFailures, getBlobValidationFailures, };
|
package/build/types/legacy/common/validators/validationFailures/validation-failures.utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare function isValidRequired(value: unknown, isRequired?: boolean): boolean;
|
|
2
|
-
declare function isValidRequiredArray(value: unknown, isRequired?: boolean): boolean;
|
|
3
|
-
declare function isValidMinLength(value: unknown, minLength: number | undefined): boolean;
|
|
4
|
-
declare function isValidMaxLength(value: unknown, maxLength: number | undefined): boolean;
|
|
5
|
-
declare function isValidPattern(value: string | undefined | null, pattern: string | undefined): boolean;
|
|
6
|
-
declare function isValidMaximum(value: unknown, maximum: string | number | undefined): boolean;
|
|
7
|
-
declare function isValidMinimum(value: unknown, minimum: string | number | undefined): boolean;
|
|
8
|
-
declare function isValidMinItems(value: unknown, minItems: number | undefined): boolean;
|
|
9
|
-
declare function isValidMaxItems(value: unknown, maxItems: number | undefined): boolean;
|
|
10
|
-
export { isValidRequired, isValidMinLength, isValidMaxLength, isValidPattern, isValidMaximum, isValidMinimum, isValidMinItems, isValidMaxItems, isValidRequiredArray, };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { Size, Step } from '@wise/dynamic-flow-types';
|
|
2
|
-
import type { CameraEventName } from '../common/cameraCapture/CameraCapture';
|
|
3
|
-
export type DynamicFlowProps = DynamicFlowPropsWithInitialAction | DynamicFlowPropsWithInitialStep;
|
|
4
|
-
export type DynamicFlowPropsWithInitialAction = DynamicFlowPropsBasic & {
|
|
5
|
-
initialAction: InitialAction;
|
|
6
|
-
initialStep?: never;
|
|
7
|
-
};
|
|
8
|
-
export type DynamicFlowPropsWithInitialStep = DynamicFlowPropsBasic & {
|
|
9
|
-
initialAction?: never;
|
|
10
|
-
initialStep: Step;
|
|
11
|
-
};
|
|
12
|
-
export type HttpClient = typeof fetch;
|
|
13
|
-
export type EventHandler = (eventName: EventName, properties: Record<string, unknown>) => void;
|
|
14
|
-
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 - Polling Failed' | 'Dynamic Flow - ValidationAsync' | 'Dynamic Flow - Search Started' | 'Dynamic Flow - Search Result Selected' | 'Dynamic Flow - invalid submission response' | 'Dynamic Flow - onAction supressed' | 'Dynamic Flow - OneOf Searched' | CameraEventName;
|
|
15
|
-
export type LogLevel = 'debug' | 'info' | 'warning' | 'error' | 'critical';
|
|
16
|
-
export type LogEventHandler = (level: LogLevel, message: string, extra: Record<string, unknown>) => void;
|
|
17
|
-
export type InitialAction = {
|
|
18
|
-
$id?: string;
|
|
19
|
-
url: string;
|
|
20
|
-
method?: 'GET';
|
|
21
|
-
data?: never;
|
|
22
|
-
} | {
|
|
23
|
-
$id?: string;
|
|
24
|
-
url: string;
|
|
25
|
-
method: 'POST';
|
|
26
|
-
data: Record<string, unknown>;
|
|
27
|
-
};
|
|
28
|
-
export type LoaderConfig = {
|
|
29
|
-
size?: Size;
|
|
30
|
-
initial?: boolean;
|
|
31
|
-
submission?: boolean;
|
|
32
|
-
};
|
|
33
|
-
type DynamicFlowPropsBasic = {
|
|
34
|
-
flowId: string;
|
|
35
|
-
loaderConfig?: LoaderConfig;
|
|
36
|
-
displayStepTitle?: boolean;
|
|
37
|
-
httpClient: HttpClient;
|
|
38
|
-
onCompletion: (result: Record<string, unknown> | undefined | null) => void;
|
|
39
|
-
onError: (error: unknown, status?: number) => void;
|
|
40
|
-
onEvent?: EventHandler;
|
|
41
|
-
onLog?: LogEventHandler;
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default BackButton;
|
|
@@ -1,8 +0,0 @@
|
|
|
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): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export { default } from './DynamicFlow';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from './useDebouncedRefresh/useDebouncedRefresh';
|
|
2
|
-
export * from './useDynamicFlowState';
|
|
3
|
-
export * from './useLoader';
|
|
4
|
-
export { default as ErrorBoundary } from '../../../common/errorBoundary/ErrorBoundary';
|
|
5
|
-
export * from './responseParsers/response-parsers';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ActionResponseBody, ErrorResponseBody, Step } from '@wise/dynamic-flow-types';
|
|
2
|
-
import type { DynamicFlowProps } from '../../../dynamic-flow-types';
|
|
3
|
-
type ParsedBody = {
|
|
4
|
-
type: 'exit';
|
|
5
|
-
result: Parameters<DynamicFlowProps['onCompletion']>[0];
|
|
6
|
-
} | {
|
|
7
|
-
type: 'action';
|
|
8
|
-
action: ActionResponseBody['action'];
|
|
9
|
-
} | {
|
|
10
|
-
type: 'step';
|
|
11
|
-
step: Step;
|
|
12
|
-
etag?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare const parseFetchResponse: (response: Response) => Promise<ParsedBody>;
|
|
15
|
-
export declare const parseErrorResponse: (response: Response) => Promise<ErrorResponseBody>;
|
|
16
|
-
export declare const getJsonObjectOrNull: (response: Response) => Promise<Parameters<DynamicFlowProps["onCompletion"]>[0]>;
|
|
17
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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): {
|
|
4
|
-
debouncedRefresh: (url: string, data: unknown, etag: string | undefined, schema: Schema) => void;
|
|
5
|
-
isDebouncing: boolean;
|
|
6
|
-
cancelPendingRefreshes: () => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const shouldDebounceSchema: (schema: Schema) => boolean;
|
|
9
|
-
export {};
|