@wise/dynamic-flow-client 5.9.0 → 5.9.2-logging-bf0bd22
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 +41 -44
- package/build/main.mjs +41 -44
- package/build/types/domain/components/step/StepDomainComponent.d.ts +2 -1
- package/build/types/domain/components/step/StepDomainComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/mapStepSchemas.d.ts +1 -1
- package/build/types/domain/mappers/mapStepSchemas.d.ts.map +1 -1
- package/build/types/domain/mappers/mapStepToComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts +1 -531
- package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts.map +1 -1
- package/build/types/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts +0 -16
- package/build/types/domain/mappers/schema/persistAsyncSchemaToComponent.d.ts.map +1 -1
- package/build/types/domain/types.d.ts +0 -1
- package/build/types/domain/types.d.ts.map +1 -1
- package/build/types/renderers/mappers/selectInputComponentToProps.d.ts +2 -2
- package/build/types/renderers/mappers/selectInputComponentToProps.d.ts.map +1 -1
- package/package.json +20 -19
- package/build/DynamicFlowCore.js +0 -5
- package/build/common/errorBoundary/ErrorBoundary.js +0 -26
- package/build/common/errorBoundary/ErrorBoundary.test.js +0 -29
- package/build/common/errorBoundary/ErrorBoundaryAlert.js +0 -11
- package/build/common/makeHttpClient/api-utils.js +0 -3
- package/build/common/makeHttpClient/index.js +0 -1
- package/build/common/makeHttpClient/makeHttpClient.js +0 -10
- package/build/common/makeHttpClient/makeHttpClient.test.js +0 -186
- package/build/common/messages/external-confirmation.messages.js +0 -23
- package/build/common/messages/file-upload.messages.js +0 -13
- package/build/common/messages/generic-error.messages.js +0 -18
- package/build/common/messages/help.messages.js +0 -8
- package/build/common/messages/multi-file-upload.messages.js +0 -18
- package/build/common/messages/multi-select.messages.js +0 -8
- package/build/common/messages/paragraph.messages.js +0 -13
- package/build/common/messages/repeatable.messages.js +0 -23
- package/build/common/messages/search.messages.js +0 -8
- package/build/common/messages/validation.array.messages.js +0 -13
- package/build/common/messages/validation.messages.js +0 -53
- package/build/controller/FlowController.js +0 -368
- package/build/controller/executePoll.js +0 -49
- package/build/controller/executeRefresh.js +0 -39
- package/build/controller/executeRequest.js +0 -77
- package/build/controller/executeSubmission.js +0 -69
- package/build/controller/getErrorMessage.js +0 -7
- package/build/controller/getRequestAbortController.js +0 -13
- package/build/controller/getResponseType.js +0 -35
- package/build/controller/getSafeHttpClient.js +0 -8
- package/build/controller/getStepCounter.js +0 -16
- package/build/controller/handleErrorResponse.js +0 -26
- package/build/controller/makeSafeHttpClient.js +0 -8
- package/build/controller/response-utils.js +0 -72
- package/build/domain/components/AlertComponent.js +0 -1
- package/build/domain/components/AllOfComponent.js +0 -40
- package/build/domain/components/BooleanInputComponent.js +0 -50
- package/build/domain/components/BoxComponent.js +0 -3
- package/build/domain/components/ButtonComponent.js +0 -1
- package/build/domain/components/ColumnsComponent.js +0 -3
- package/build/domain/components/ConstComponent.js +0 -18
- package/build/domain/components/ContainerComponent.js +0 -3
- package/build/domain/components/DateInputComponent.js +0 -75
- package/build/domain/components/DecisionComponent.js +0 -1
- package/build/domain/components/DividerComponent.js +0 -1
- package/build/domain/components/FormComponent.js +0 -3
- package/build/domain/components/FormattedValueComponent.js +0 -44
- package/build/domain/components/HeadingComponent.js +0 -1
- package/build/domain/components/ImageComponent.js +0 -1
- package/build/domain/components/InstructionsComponent.js +0 -1
- package/build/domain/components/IntegerInputComponent.js +0 -74
- package/build/domain/components/ListComponent.js +0 -1
- package/build/domain/components/LoadingIndicatorComponent.js +0 -1
- package/build/domain/components/MarkdownComponent.js +0 -1
- package/build/domain/components/MediaComponent.js +0 -1
- package/build/domain/components/ModalComponent.js +0 -16
- package/build/domain/components/ModalLayoutComponent.js +0 -3
- package/build/domain/components/MoneyInputComponent.js +0 -57
- package/build/domain/components/MultiSelectInputComponent.js +0 -81
- package/build/domain/components/MultiUploadInputComponent.js +0 -88
- package/build/domain/components/NumberInputComponent.js +0 -73
- package/build/domain/components/ObjectComponent.js +0 -45
- package/build/domain/components/ParagraphComponent.js +0 -1
- package/build/domain/components/PersistAsyncComponent.js +0 -92
- package/build/domain/components/ProgressComponent.js +0 -1
- package/build/domain/components/RepeatableComponent.js +0 -103
- package/build/domain/components/ReviewComponent.js +0 -1
- package/build/domain/components/RootDomainComponent.js +0 -173
- package/build/domain/components/SectionComponent.js +0 -5
- package/build/domain/components/SelectInputComponent.js +0 -88
- package/build/domain/components/StatusListComponent.js +0 -1
- package/build/domain/components/SubflowDomainComponent.js +0 -9
- package/build/domain/components/TabsComponent.js +0 -1
- package/build/domain/components/TextInputComponent.js +0 -76
- package/build/domain/components/TupleComponent.js +0 -41
- package/build/domain/components/UploadInputComponent.js +0 -83
- package/build/domain/components/UpsellComponent.js +0 -25
- package/build/domain/components/searchComponent/SearchComponent.js +0 -92
- package/build/domain/components/searchComponent/SearchComponent.test.js +0 -190
- package/build/domain/components/step/ExternalConfirmationComponent.js +0 -28
- package/build/domain/components/step/StepDomainComponent.js +0 -73
- package/build/domain/components/step/ToolbarComponent.js +0 -1
- package/build/domain/components/utils/WithUpdate.js +0 -1
- package/build/domain/components/utils/component-utils.js +0 -12
- package/build/domain/components/utils/debounce.js +0 -34
- package/build/domain/components/utils/debounce.test.js +0 -67
- package/build/domain/components/utils/file-utils.js +0 -21
- package/build/domain/components/utils/file-utils.test.js +0 -27
- package/build/domain/components/utils/getRandomId.js +0 -1
- package/build/domain/components/utils/isExactLocalValueMatch.js +0 -14
- package/build/domain/components/utils/isOrWasValid.js +0 -5
- package/build/domain/components/utils/isPartialModelMatch.js +0 -18
- package/build/domain/components/utils/isPartialModelMatch.test.js +0 -74
- package/build/domain/features/eventNames.js +0 -24
- package/build/domain/features/events.js +0 -1
- package/build/domain/features/persistAsync/getComponentMultiPersistAsync.js +0 -50
- package/build/domain/features/persistAsync/getInitialPersistedState.js +0 -7
- package/build/domain/features/persistAsync/getPerformPersistAsync.js +0 -43
- package/build/domain/features/persistAsync/getPerformPersistAsync.test.js +0 -139
- package/build/domain/features/polling/getStepPolling.js +0 -43
- package/build/domain/features/polling/getStepPolling.test.js +0 -90
- package/build/domain/features/prefetch/getStepPrefetch.js +0 -43
- package/build/domain/features/prefetch/request-cache.js +0 -49
- package/build/domain/features/prefetch/request-cache.test.js +0 -70
- package/build/domain/features/refreshAfter/getStepRefreshAfter.js +0 -24
- package/build/domain/features/refreshAfter/getStepRefreshAfter.test.js +0 -40
- package/build/domain/features/schema-on-change/getDebouncedSchemaOnChange.js +0 -50
- package/build/domain/features/schema-on-change/getSchemaOnChange.js +0 -34
- package/build/domain/features/search/getPerformSearchFunction.js +0 -75
- package/build/domain/features/search/getPerformSearchFunction.test.js +0 -301
- package/build/domain/features/summary/summary-utils.js +0 -40
- package/build/domain/features/summary/summary-utils.test.js +0 -125
- package/build/domain/features/utils/http-utils.js +0 -21
- package/build/domain/features/utils/response-utils.js +0 -9
- package/build/domain/features/validation/spec-utils.js +0 -19
- package/build/domain/features/validation/validateStringPattern.js +0 -24
- package/build/domain/features/validation/validation-functions.js +0 -6
- package/build/domain/features/validation/validation-functions.test.js +0 -108
- package/build/domain/features/validation/value-checks.js +0 -125
- package/build/domain/features/validation/value-checks.test.js +0 -262
- package/build/domain/features/validationAsync/getComponentValidationAsync.js +0 -53
- package/build/domain/features/validationAsync/getComponentValidationAsync.test.js +0 -67
- package/build/domain/features/validationAsync/getInitialValidationAsyncState.js +0 -5
- package/build/domain/features/validationAsync/getPerformValidationAsync.js +0 -45
- package/build/domain/features/validationAsync/getPerformValidationAsync.test.js +0 -143
- package/build/domain/mappers/layout/alertLayoutToComponent.js +0 -16
- package/build/domain/mappers/layout/boxLayoutToComponent.js +0 -13
- package/build/domain/mappers/layout/buttonLayoutToComponent.js +0 -77
- package/build/domain/mappers/layout/columnsLayoutToComponent.js +0 -13
- package/build/domain/mappers/layout/decisionLayoutToComponent.js +0 -22
- package/build/domain/mappers/layout/deprecatedListLayoutToComponent.js +0 -30
- package/build/domain/mappers/layout/dividerLayoutToComponent.js +0 -2
- package/build/domain/mappers/layout/formLayoutToComponent.js +0 -19
- package/build/domain/mappers/layout/headingLayoutToComponent.js +0 -12
- package/build/domain/mappers/layout/imageLayoutToComponent.js +0 -20
- package/build/domain/mappers/layout/infoLayoutToComponent.js +0 -12
- package/build/domain/mappers/layout/instructionsLayoutToComponent.js +0 -12
- package/build/domain/mappers/layout/listLayoutToComponent.js +0 -39
- package/build/domain/mappers/layout/loadingIndicatorLayoutToComponent.js +0 -9
- package/build/domain/mappers/layout/markdownLayoutToComponent.js +0 -12
- package/build/domain/mappers/layout/mediaLayoutToComponent.js +0 -12
- package/build/domain/mappers/layout/modalLayoutToComponent.js +0 -17
- package/build/domain/mappers/layout/modalToComponent.js +0 -8
- package/build/domain/mappers/layout/paragraphLayoutToComponent.js +0 -12
- package/build/domain/mappers/layout/progressLayoutToComponent.js +0 -15
- package/build/domain/mappers/layout/reviewLayoutToComponent.js +0 -48
- package/build/domain/mappers/layout/searchLayoutToComponent.js +0 -44
- package/build/domain/mappers/layout/sectionLayoutToComponent.js +0 -15
- package/build/domain/mappers/layout/statusListLayoutToComponent.js +0 -15
- package/build/domain/mappers/layout/tabsLayoutToComponent.js +0 -16
- package/build/domain/mappers/layout/upsellLayoutToComponent.js +0 -25
- package/build/domain/mappers/mapLayoutToComponent.js +0 -81
- package/build/domain/mappers/mapSchemaToComponent.js +0 -61
- package/build/domain/mappers/mapSchemaToComponent.test.js +0 -112
- package/build/domain/mappers/mapStepSchemas.js +0 -17
- package/build/domain/mappers/mapStepToComponent.js +0 -132
- package/build/domain/mappers/mapStepToComponent.test.js +0 -221
- package/build/domain/mappers/mapToolbarToComponent.js +0 -15
- package/build/domain/mappers/schema/allOfSchemaToComponent.js +0 -16
- package/build/domain/mappers/schema/arraySchemaToComponent/arraySchemaToComponent.js +0 -26
- package/build/domain/mappers/schema/arraySchemaToComponent/arraySchemaToMultiSelectComponent.js +0 -55
- package/build/domain/mappers/schema/arraySchemaToComponent/arraySchemaToMultiUploadComponent.js +0 -67
- package/build/domain/mappers/schema/arraySchemaToComponent/arraySchemaToRepeatableComponent.js +0 -57
- package/build/domain/mappers/schema/arraySchemaToComponent/arraySchemaToTupleComponent.js +0 -20
- package/build/domain/mappers/schema/blobSchemaToComponent.js +0 -15
- package/build/domain/mappers/schema/booleanSchemaToComponent.js +0 -29
- package/build/domain/mappers/schema/constSchemaToComponent.js +0 -23
- package/build/domain/mappers/schema/integerSchemaToComponent.js +0 -28
- package/build/domain/mappers/schema/numberSchemaToComponent.js +0 -26
- package/build/domain/mappers/schema/objectSchemaToComponent/assertDisplayOrder.js +0 -23
- package/build/domain/mappers/schema/objectSchemaToComponent/objectSchemaToFormattedValueComponent.js +0 -9
- package/build/domain/mappers/schema/objectSchemaToComponent/objectSchemaToMoneyInputComponent.js +0 -119
- package/build/domain/mappers/schema/objectSchemaToComponent/objectSchemaToMoneyInputComponent.test.js +0 -96
- package/build/domain/mappers/schema/objectSchemaToComponent/objectSchemaToObjectComponent.js +0 -31
- package/build/domain/mappers/schema/objectSchemaToComponent/objectSchemaToObjectComponent.test.js +0 -99
- package/build/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.js +0 -76
- package/build/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.test.js +0 -265
- package/build/domain/mappers/schema/persistAsyncSchemaToComponent.js +0 -29
- package/build/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.js +0 -18
- package/build/domain/mappers/schema/stringSchemaToComponent/stringSchemaToComponent.test.js +0 -133
- package/build/domain/mappers/schema/stringSchemaToComponent/stringSchemaToDateInputComponent.js +0 -48
- package/build/domain/mappers/schema/stringSchemaToComponent/stringSchemaToTextInputComponent.js +0 -37
- package/build/domain/mappers/schema/stringSchemaToComponent/stringSchemaToUploadInputComponent.js +0 -28
- package/build/domain/mappers/schema/tests/test-utils.js +0 -16
- package/build/domain/mappers/schema/types.js +0 -1
- package/build/domain/mappers/schema/utils/getPerformPersistAsyncFn.js +0 -19
- package/build/domain/mappers/schema/utils/getValidationAsyncInitialState.js +0 -23
- package/build/domain/mappers/schema/utils/mapCommonSchemaProps.js +0 -16
- package/build/domain/mappers/types.js +0 -1
- package/build/domain/mappers/utils/FeatureFlags.js +0 -22
- package/build/domain/mappers/utils/behavior-utils.js +0 -44
- package/build/domain/mappers/utils/call-to-action-utils.js +0 -21
- package/build/domain/mappers/utils/getAutocompleteString.js +0 -76
- package/build/domain/mappers/utils/getAutocompleteString.test.js +0 -21
- package/build/domain/mappers/utils/groupLayoutByPinned.js +0 -38
- package/build/domain/mappers/utils/groupLayoutByPinned.test.js +0 -166
- package/build/domain/mappers/utils/image.js +0 -9
- package/build/domain/mappers/utils/layout-utils.js +0 -11
- package/build/domain/mappers/utils/legacy-utils.js +0 -49
- package/build/domain/mappers/utils/media-utils.js +0 -14
- package/build/domain/mappers/utils/suggestions-utils.js +0 -26
- package/build/domain/mappers/utils/suggestions-utils.test.js +0 -36
- package/build/domain/mappers/utils/tags-utils.js +0 -1
- package/build/domain/mappers/utils/utils.js +0 -35
- package/build/domain/types.js +0 -1
- package/build/getSubflowCallbacks.js +0 -38
- package/build/i18n/index.js +0 -40
- package/build/index.js +0 -8
- package/build/renderers/CoreContainerRenderer.js +0 -5
- package/build/renderers/CoreRootRenderer.js +0 -12
- package/build/renderers/EmptyLoadingStateRenderer.js +0 -5
- package/build/renderers/getRenderFunction.js +0 -24
- package/build/renderers/getSchemaErrorMessageFunction.js +0 -97
- package/build/renderers/mappers/alertComponentToProps.js +0 -2
- package/build/renderers/mappers/allOfComponentToProps.js +0 -6
- package/build/renderers/mappers/booleanInputComponentToProps.js +0 -5
- package/build/renderers/mappers/boxComponentToProps.js +0 -13
- package/build/renderers/mappers/buttonComponentToProps.js +0 -4
- package/build/renderers/mappers/columnsComponentToProps.js +0 -11
- package/build/renderers/mappers/componentToRendererProps.js +0 -164
- package/build/renderers/mappers/constComponentToProps.js +0 -5
- package/build/renderers/mappers/containerComponentToProps.js +0 -7
- package/build/renderers/mappers/dateInputComponentToProps.js +0 -2
- package/build/renderers/mappers/decisionComponentToProps.js +0 -16
- package/build/renderers/mappers/dividerComponentToProps.js +0 -2
- package/build/renderers/mappers/externalComponentToProps.js +0 -3
- package/build/renderers/mappers/formComponentToProps.js +0 -12
- package/build/renderers/mappers/formattedValueComponentToProps.js +0 -5
- package/build/renderers/mappers/headingComponentToProps.js +0 -2
- package/build/renderers/mappers/hiddenComponentToProps.js +0 -4
- package/build/renderers/mappers/imageComponentToProps.js +0 -2
- package/build/renderers/mappers/instructionsComponentToProps.js +0 -2
- package/build/renderers/mappers/integerInputComponentToProps.js +0 -2
- package/build/renderers/mappers/listComponentToProps.js +0 -2
- package/build/renderers/mappers/loadingIndicatorComponentToProps.js +0 -2
- package/build/renderers/mappers/markdownComponentToProps.js +0 -2
- package/build/renderers/mappers/mediaComponentToProps.js +0 -2
- package/build/renderers/mappers/modalComponentToProps.js +0 -11
- package/build/renderers/mappers/modalLayoutComponentToProps.js +0 -16
- package/build/renderers/mappers/moneyInputComponentToProps.js +0 -36
- package/build/renderers/mappers/multiSelectComponentToProps.js +0 -23
- package/build/renderers/mappers/multiUploadInputComponentToProps.js +0 -12
- package/build/renderers/mappers/numberInputComponentToProps.js +0 -2
- package/build/renderers/mappers/objectComponentToProps.js +0 -8
- package/build/renderers/mappers/paragraphComponentToProps.js +0 -2
- package/build/renderers/mappers/persistAsyncComponentToProps.js +0 -8
- package/build/renderers/mappers/progressComponentToProps.js +0 -2
- package/build/renderers/mappers/repeatableComponentToProps.js +0 -30
- package/build/renderers/mappers/reviewComponentToProps.js +0 -2
- package/build/renderers/mappers/rootComponentToProps.js +0 -21
- package/build/renderers/mappers/searchComponentToProps.js +0 -57
- package/build/renderers/mappers/sectionComponentToProps.js +0 -6
- package/build/renderers/mappers/selectInputComponentToProps.js +0 -26
- package/build/renderers/mappers/statusListComponentToProps.js +0 -2
- package/build/renderers/mappers/subflowComponentToRendererProps.js +0 -4
- package/build/renderers/mappers/tabsComponentToProps.js +0 -14
- package/build/renderers/mappers/textInputComponentToProps.js +0 -2
- package/build/renderers/mappers/tupleComponentToProps.js +0 -8
- package/build/renderers/mappers/uploadInputComponentToProps.js +0 -8
- package/build/renderers/mappers/upsellComponentToProps.js +0 -2
- package/build/renderers/mappers/utils/getValidationState.js +0 -12
- package/build/renderers/mappers/utils/inputComponentToProps.js +0 -26
- package/build/renderers/mappers/utils/mapErrorsToValidationState.js +0 -9
- package/build/renderers/mappers/utils/pick.js +0 -8
- package/build/renderers/mappers/utils/selectInputOptionsToProps.js +0 -11
- package/build/renderers/stepComponentToProps.js +0 -32
- package/build/renderers/utils.js +0 -69
- package/build/renderers/utils.test.js +0 -70
- package/build/stories/dev-tools/ContainerQueries.story.js +0 -66
- package/build/stories/dev-tools/Debugger.story.js +0 -38
- package/build/stories/dev-tools/FixtureSelect.story.js +0 -23
- package/build/stories/dev-tools/TestServer.story.js +0 -32
- package/build/stories/examples/NativeFlow.story.js +0 -80
- package/build/stories/examples/Recipients.story.js +0 -568
- package/build/stories/spec/behavior/Copy.story.js +0 -59
- package/build/stories/spec/behavior/Modal.story.js +0 -76
- package/build/stories/spec/behavior/Subflow.story.js +0 -267
- package/build/stories/spec/layouts/Decision.story.js +0 -241
- package/build/stories/spec/layouts/Image.story.js +0 -42
- package/build/stories/spec/layouts/Modal.story.js +0 -81
- package/build/stories/spec/layouts/Search.story.js +0 -325
- package/build/stories/spec/layouts/Upsell.story.js +0 -55
- package/build/stories/spec/layouts/button/Button.story.js +0 -100
- package/build/stories/spec/layouts/button/PinnedButton.story.js +0 -81
- package/build/stories/spec/response/ActionResponse.story.js +0 -66
- package/build/stories/spec/schemas/MultiSelect.story.js +0 -148
- package/build/stories/spec/schemas/Upload.story.js +0 -168
- package/build/stories/spec/schemas/const/ConstLayout.story.js +0 -159
- package/build/stories/spec/schemas/const/ObjectConst.story.js +0 -94
- package/build/stories/spec/schemas/features/PersistAsync.story.js +0 -176
- package/build/stories/spec/schemas/features/ValidationAsync.story.js +0 -103
- package/build/stories/spec/schemas/object/FormattedValue.story.js +0 -92
- package/build/stories/spec/schemas/object/MoneyInput.story.js +0 -240
- package/build/stories/spec/schemas/oneOf/OneOfInitialisation.story.js +0 -55
- package/build/stories/spec/step/Controls.story.js +0 -109
- package/build/stories/spec/step/DFModal.story.js +0 -58
- package/build/stories/spec/step/Footer.story.js +0 -70
- package/build/stories/spec/step/Navigation.story.js +0 -20
- package/build/stories/spec/step/Tags.story.js +0 -39
- package/build/stories/spec/step/ToolBar.story.js +0 -60
- package/build/stories/spec/step/features/ErrorHandling.story.js +0 -92
- package/build/stories/spec/step/features/External.story.js +0 -44
- package/build/stories/spec/step/features/Polling.story.js +0 -108
- package/build/stories/spec/step/features/RefreshAfter.story.js +0 -92
- package/build/stories/spec/step/features/refresh/Refresh.story.js +0 -258
- package/build/stories/spec/step/features/refresh/RefreshWithPersistAsync.story.js +0 -958
- package/build/stories/types.js +0 -1
- package/build/stories/utils/fixtureHttpClient.js +0 -70
- package/build/stories/utils/getBasicStep.js +0 -223
- package/build/stories/utils/mockSearchHandler.js +0 -71
- package/build/stories/utils/render-utils.js +0 -41
- package/build/stories/visual-tests/layouts/NotUsingListItem.story.js +0 -17
- package/build/test-utils/DynamicFlowWise.js +0 -32
- package/build/test-utils/DynamicFlowWiseModal.js +0 -34
- package/build/test-utils/NeptuneProviders.js +0 -11
- package/build/test-utils/component-utils.js +0 -5
- package/build/test-utils/fetch-utils.js +0 -45
- package/build/test-utils/getMergedTestRenderers.js +0 -34
- package/build/test-utils/getRandomId.js +0 -1
- package/build/test-utils/index.js +0 -3
- package/build/test-utils/rtl-utils.js +0 -7
- package/build/test-utils/step-utils.js +0 -6
- package/build/test-utils/wait.js +0 -3
- package/build/tests/AlertLayout.test.js +0 -78
- package/build/tests/ArrayTuple.test.js +0 -118
- package/build/tests/ButtonLayout.test.js +0 -308
- package/build/tests/ConstLayout.test.js +0 -95
- package/build/tests/DateInput.test.js +0 -163
- package/build/tests/DecisionLayout.test.js +0 -146
- package/build/tests/DynamicFlow.test.js +0 -147
- package/build/tests/External.test.js +0 -169
- package/build/tests/Flow.test.js +0 -328
- package/build/tests/FormLayout.test.js +0 -28
- package/build/tests/FormattedValue.test.js +0 -107
- package/build/tests/ImageRenderer.test.js +0 -78
- package/build/tests/InitialAction.test.js +0 -179
- package/build/tests/InitialStep.test.js +0 -168
- package/build/tests/InstructionsLayout.test.js +0 -45
- package/build/tests/ListLayout.test.js +0 -145
- package/build/tests/Logging.test.js +0 -53
- package/build/tests/ModalBehavior.test.js +0 -149
- package/build/tests/MoneyInput.test.js +0 -316
- package/build/tests/MultiUpload.test.js +0 -293
- package/build/tests/NativeBack.test.js +0 -267
- package/build/tests/OneOfInitialisation.test.js +0 -571
- package/build/tests/PersistAsync.test.js +0 -653
- package/build/tests/Polling.test.js +0 -617
- package/build/tests/Prefetching.test.js +0 -230
- package/build/tests/RefreshAfter.test.js +0 -63
- package/build/tests/RefreshOnChange.ResponseHandling.test.js +0 -205
- package/build/tests/RefreshOnChange.test.js +0 -233
- package/build/tests/RefreshOnChange.with.Segmented.test.js +0 -348
- package/build/tests/RefreshOnChange.with.Tabs.test.js +0 -358
- package/build/tests/RefreshOnChangePreserve.test.js +0 -224
- package/build/tests/RendererProps.test.js +0 -342
- package/build/tests/Repeatable.test.js +0 -107
- package/build/tests/Rerendering.test.js +0 -67
- package/build/tests/ReviewLayout.test.js +0 -274
- package/build/tests/SchemaOnChange.test.js +0 -133
- package/build/tests/ScrollToError.test.js +0 -217
- package/build/tests/SegmentedControl.test.js +0 -49
- package/build/tests/SingleFileUpload.test.js +0 -88
- package/build/tests/StatusList.test.js +0 -85
- package/build/tests/Subflow.test.js +0 -710
- package/build/tests/Submission.ResponseHandling.test.js +0 -557
- package/build/tests/Submission.merging.test.js +0 -202
- package/build/tests/Submission.test.js +0 -523
- package/build/tests/Tags.test.js +0 -475
- package/build/tests/Upsell.test.js +0 -126
- package/build/tests/ValidationAsync.test.js +0 -295
- package/build/tests/legacy/Actions.test.js +0 -158
- package/build/tests/legacy/BackButton.test.js +0 -114
- package/build/tests/legacy/HiddenSchemas.test.js +0 -246
- package/build/tests/legacy/MultiSelect.test.js +0 -497
- package/build/tests/legacy/MultipleFileUploadSchema.test.js +0 -341
- package/build/tests/legacy/PersistAsync.blob-schema.test.js +0 -224
- package/build/tests/legacy/PersistAsync.string-schema.test.js +0 -211
- package/build/tests/legacy/RefreshStepOnChange.debouncing.test.js +0 -209
- package/build/tests/legacy/RefreshStepOnChange.test.js +0 -424
- package/build/tests/legacy/Search.test.js +0 -437
- package/build/tests/renderers/MultiSelectInputRendererProps.test.js +0 -58
- package/build/tests/renderers/SelectInputRendererProps.test.js +0 -42
- package/build/tests/renderers/TextInputRenderer.test.js +0 -51
- package/build/types.js +0 -1
- package/build/useDynamicFlow.js +0 -104
- package/build/useDynamicFlowModal.js +0 -58
- package/build/utils/analyse-step.js +0 -14
- package/build/utils/component-utils.js +0 -8
- package/build/utils/component-utils.test.js +0 -113
- package/build/utils/getScrollToTop.js +0 -12
- package/build/utils/normalise-flow-id.js +0 -1
- package/build/utils/normalise-flow-id.test.js +0 -24
- package/build/utils/openLinkInNewTab.js +0 -10
- package/build/utils/recursiveMerge.js +0 -40
- package/build/utils/recursiveMerge.test.js +0 -93
- package/build/utils/type-utils.js +0 -21
- package/build/utils/type-validators.js +0 -11
- package/build/utils/type-validators.test.js +0 -180
- package/build/utils/useStableCallback.js +0 -15
package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts
CHANGED
|
@@ -2,535 +2,5 @@ import type { OneOfSchema } from '@wise/dynamic-flow-types/spec';
|
|
|
2
2
|
import type { MapperProps, SchemaMapperProps } from '../types';
|
|
3
3
|
export declare const oneOfSchemaToComponent: (schemaMapperProps: SchemaMapperProps & {
|
|
4
4
|
schema: OneOfSchema;
|
|
5
|
-
}, mapperProps: MapperProps) => import("../../../components/SelectInputComponent").SelectInputComponent
|
|
6
|
-
schemaId?: string;
|
|
7
|
-
isSchemaReferencedInStep?: boolean;
|
|
8
|
-
control?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
help?: string;
|
|
11
|
-
hidden: boolean;
|
|
12
|
-
media?: import("../../../types").Media;
|
|
13
|
-
title?: string;
|
|
14
|
-
tags?: string[];
|
|
15
|
-
getLocalValue: () => import("../../../types").LocalValue;
|
|
16
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
17
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
18
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
19
|
-
validate: () => boolean;
|
|
20
|
-
} & {
|
|
21
|
-
type: "persist-async";
|
|
22
|
-
kind: "input";
|
|
23
|
-
component: import("../../../types").SchemaComponent;
|
|
24
|
-
abortController: AbortController;
|
|
25
|
-
submission: Promise<import("@wise/dynamic-flow-types/spec").JsonElement>;
|
|
26
|
-
lastSubmitted: import("../../../types").LocalValue;
|
|
27
|
-
lastResponse: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
28
|
-
errors: string[];
|
|
29
|
-
persist: () => Promise<import("@wise/dynamic-flow-types/spec").JsonElement>;
|
|
30
|
-
} & {
|
|
31
|
-
kind: "input";
|
|
32
|
-
}) | (import("../../../types").BaseComponent & {
|
|
33
|
-
schemaId?: string;
|
|
34
|
-
isSchemaReferencedInStep?: boolean;
|
|
35
|
-
control?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
help?: string;
|
|
38
|
-
hidden: boolean;
|
|
39
|
-
media?: import("../../../types").Media;
|
|
40
|
-
title?: string;
|
|
41
|
-
tags?: string[];
|
|
42
|
-
getLocalValue: () => import("../../../types").LocalValue;
|
|
43
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
44
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
45
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
46
|
-
validate: () => boolean;
|
|
47
|
-
} & {
|
|
48
|
-
type: "all-of";
|
|
49
|
-
kind: "input";
|
|
50
|
-
components: import("../../../types").SchemaComponent[];
|
|
51
|
-
alert?: import("../../../types").InlineAlert;
|
|
52
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
53
|
-
} & {
|
|
54
|
-
kind: "input";
|
|
55
|
-
}) | (import("../../../types").BaseComponent & {
|
|
56
|
-
schemaId?: string;
|
|
57
|
-
isSchemaReferencedInStep?: boolean;
|
|
58
|
-
control?: string;
|
|
59
|
-
description?: string;
|
|
60
|
-
help?: string;
|
|
61
|
-
hidden: boolean;
|
|
62
|
-
media?: import("../../../types").Media;
|
|
63
|
-
title?: string;
|
|
64
|
-
tags?: string[];
|
|
65
|
-
getLocalValue: () => boolean;
|
|
66
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
67
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
68
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
69
|
-
validate: () => boolean;
|
|
70
|
-
} & {
|
|
71
|
-
id: string;
|
|
72
|
-
autoComplete: string;
|
|
73
|
-
disabled: boolean;
|
|
74
|
-
errors: string[] | undefined;
|
|
75
|
-
placeholder?: string;
|
|
76
|
-
required: boolean;
|
|
77
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
78
|
-
value: boolean;
|
|
79
|
-
alert?: import("../../../types").InlineAlert;
|
|
80
|
-
onBlur: () => void;
|
|
81
|
-
onFocus: () => void;
|
|
82
|
-
} & {
|
|
83
|
-
type: "boolean";
|
|
84
|
-
kind: "input";
|
|
85
|
-
additionalText?: string;
|
|
86
|
-
inlineAlert?: import("../../../types").InlineAlert;
|
|
87
|
-
supportingValues?: import("../../../types").SupportingValues;
|
|
88
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
89
|
-
onChange: (value: boolean) => void;
|
|
90
|
-
} & {
|
|
91
|
-
kind: "input";
|
|
92
|
-
}) | (import("../../../types").BaseComponent & {
|
|
93
|
-
schemaId?: string;
|
|
94
|
-
isSchemaReferencedInStep?: boolean;
|
|
95
|
-
control?: string;
|
|
96
|
-
description?: string;
|
|
97
|
-
help?: string;
|
|
98
|
-
hidden: boolean;
|
|
99
|
-
media?: import("../../../types").Media;
|
|
100
|
-
title?: string;
|
|
101
|
-
tags?: string[];
|
|
102
|
-
getLocalValue: () => import("../../../types").LocalValue;
|
|
103
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
104
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
105
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
106
|
-
validate: () => boolean;
|
|
107
|
-
} & {
|
|
108
|
-
type: "const";
|
|
109
|
-
kind: "input";
|
|
110
|
-
layout: import("../../../types").LayoutComponent[];
|
|
111
|
-
} & {
|
|
112
|
-
kind: "input";
|
|
113
|
-
}) | (import("../../../types").BaseComponent & {
|
|
114
|
-
schemaId?: string;
|
|
115
|
-
isSchemaReferencedInStep?: boolean;
|
|
116
|
-
control?: string;
|
|
117
|
-
description?: string;
|
|
118
|
-
help?: string;
|
|
119
|
-
hidden: boolean;
|
|
120
|
-
media?: import("../../../types").Media;
|
|
121
|
-
title?: string;
|
|
122
|
-
tags?: string[];
|
|
123
|
-
getLocalValue: () => string | null;
|
|
124
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
125
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
126
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
127
|
-
validate: () => boolean;
|
|
128
|
-
} & {
|
|
129
|
-
id: string;
|
|
130
|
-
autoComplete: string;
|
|
131
|
-
disabled: boolean;
|
|
132
|
-
errors: string[] | undefined;
|
|
133
|
-
placeholder?: string;
|
|
134
|
-
required: boolean;
|
|
135
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
136
|
-
value: string | null;
|
|
137
|
-
alert?: import("../../../types").InlineAlert;
|
|
138
|
-
onBlur: () => void;
|
|
139
|
-
onFocus: () => void;
|
|
140
|
-
} & {
|
|
141
|
-
type: "date";
|
|
142
|
-
kind: "input";
|
|
143
|
-
minimumDate?: string;
|
|
144
|
-
maximumDate?: string;
|
|
145
|
-
suggestions?: import("../../../types").Suggestions;
|
|
146
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
147
|
-
onChange: (value: string | null) => void;
|
|
148
|
-
} & {
|
|
149
|
-
kind: "input";
|
|
150
|
-
}) | (import("../../../types").BaseComponent & {
|
|
151
|
-
schemaId?: string;
|
|
152
|
-
isSchemaReferencedInStep?: boolean;
|
|
153
|
-
control?: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
help?: string;
|
|
156
|
-
hidden: boolean;
|
|
157
|
-
media?: import("../../../types").Media;
|
|
158
|
-
title?: string;
|
|
159
|
-
tags?: string[];
|
|
160
|
-
getLocalValue: () => number | null;
|
|
161
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
162
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
163
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
164
|
-
validate: () => boolean;
|
|
165
|
-
} & {
|
|
166
|
-
id: string;
|
|
167
|
-
autoComplete: string;
|
|
168
|
-
disabled: boolean;
|
|
169
|
-
errors: string[] | undefined;
|
|
170
|
-
placeholder?: string;
|
|
171
|
-
required: boolean;
|
|
172
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
173
|
-
value: number | null;
|
|
174
|
-
alert?: import("../../../types").InlineAlert;
|
|
175
|
-
onBlur: () => void;
|
|
176
|
-
onFocus: () => void;
|
|
177
|
-
} & {
|
|
178
|
-
type: "integer";
|
|
179
|
-
kind: "input";
|
|
180
|
-
maximum?: number;
|
|
181
|
-
minimum?: number;
|
|
182
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
183
|
-
onChange: (value: number | null) => void;
|
|
184
|
-
} & {
|
|
185
|
-
kind: "input";
|
|
186
|
-
}) | (import("../../../types").BaseComponent & {
|
|
187
|
-
schemaId?: string;
|
|
188
|
-
isSchemaReferencedInStep?: boolean;
|
|
189
|
-
control?: string;
|
|
190
|
-
description?: string;
|
|
191
|
-
help?: string;
|
|
192
|
-
hidden: boolean;
|
|
193
|
-
media?: import("../../../types").Media;
|
|
194
|
-
title?: string;
|
|
195
|
-
tags?: string[];
|
|
196
|
-
getLocalValue: () => import("../../../types").LocalValueArray | null;
|
|
197
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
198
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
199
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
200
|
-
validate: () => boolean;
|
|
201
|
-
} & {
|
|
202
|
-
id: string;
|
|
203
|
-
autoComplete: string;
|
|
204
|
-
disabled: boolean;
|
|
205
|
-
errors: string[] | undefined;
|
|
206
|
-
placeholder?: string;
|
|
207
|
-
required: boolean;
|
|
208
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
209
|
-
value: import("../../../types").LocalValueArray | null;
|
|
210
|
-
alert?: import("../../../types").InlineAlert;
|
|
211
|
-
onBlur: () => void;
|
|
212
|
-
onFocus: () => void;
|
|
213
|
-
} & {
|
|
214
|
-
type: "multi-select";
|
|
215
|
-
kind: "input";
|
|
216
|
-
children: import("../../../types").SchemaComponent[];
|
|
217
|
-
maxItems?: number;
|
|
218
|
-
minItems?: number;
|
|
219
|
-
options: import("../../../components/SelectInputComponent").SelectInputOption[];
|
|
220
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
221
|
-
selectedIndices: number[];
|
|
222
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
223
|
-
getSelectedChildren: () => import("../../../types").SchemaComponent[] | null;
|
|
224
|
-
onSelect: (indices: number[]) => void;
|
|
225
|
-
} & {
|
|
226
|
-
kind: "input";
|
|
227
|
-
}) | (import("../../../types").BaseComponent & {
|
|
228
|
-
schemaId?: string;
|
|
229
|
-
isSchemaReferencedInStep?: boolean;
|
|
230
|
-
control?: string;
|
|
231
|
-
description?: string;
|
|
232
|
-
help?: string;
|
|
233
|
-
hidden: boolean;
|
|
234
|
-
media?: import("../../../types").Media;
|
|
235
|
-
title?: string;
|
|
236
|
-
tags?: string[];
|
|
237
|
-
getLocalValue: () => File[];
|
|
238
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
239
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
240
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
241
|
-
validate: () => boolean;
|
|
242
|
-
} & {
|
|
243
|
-
id: string;
|
|
244
|
-
autoComplete: string;
|
|
245
|
-
disabled: boolean;
|
|
246
|
-
errors: string[] | undefined;
|
|
247
|
-
placeholder?: string;
|
|
248
|
-
required: boolean;
|
|
249
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
250
|
-
value: File[];
|
|
251
|
-
alert?: import("../../../types").InlineAlert;
|
|
252
|
-
onBlur: () => void;
|
|
253
|
-
onFocus: () => void;
|
|
254
|
-
} & {
|
|
255
|
-
type: "multi-upload";
|
|
256
|
-
kind: "input";
|
|
257
|
-
accepts?: string[];
|
|
258
|
-
cameraConfig?: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
259
|
-
files: {
|
|
260
|
-
file: File;
|
|
261
|
-
errors: string[];
|
|
262
|
-
id: string;
|
|
263
|
-
base64Value: string | null;
|
|
264
|
-
}[];
|
|
265
|
-
format: "blob" | "base64";
|
|
266
|
-
maxItems?: number;
|
|
267
|
-
maxSize?: number;
|
|
268
|
-
minItems?: number;
|
|
269
|
-
persistedState: import("../../../types").PersistedState[];
|
|
270
|
-
source?: import("../../../types").UploadSource;
|
|
271
|
-
validationAsyncState?: undefined;
|
|
272
|
-
uploadLabel?: string;
|
|
273
|
-
onRemoveFile: (index: number) => Promise<void>;
|
|
274
|
-
onInsertFile: (index: number, file: File) => Promise<string>;
|
|
275
|
-
} & {
|
|
276
|
-
kind: "input";
|
|
277
|
-
}) | (import("../../../types").BaseComponent & {
|
|
278
|
-
schemaId?: string;
|
|
279
|
-
isSchemaReferencedInStep?: boolean;
|
|
280
|
-
control?: string;
|
|
281
|
-
description?: string;
|
|
282
|
-
help?: string;
|
|
283
|
-
hidden: boolean;
|
|
284
|
-
media?: import("../../../types").Media;
|
|
285
|
-
title?: string;
|
|
286
|
-
tags?: string[];
|
|
287
|
-
getLocalValue: () => number | null;
|
|
288
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
289
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
290
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
291
|
-
validate: () => boolean;
|
|
292
|
-
} & {
|
|
293
|
-
id: string;
|
|
294
|
-
autoComplete: string;
|
|
295
|
-
disabled: boolean;
|
|
296
|
-
errors: string[] | undefined;
|
|
297
|
-
placeholder?: string;
|
|
298
|
-
required: boolean;
|
|
299
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
300
|
-
value: number | null;
|
|
301
|
-
alert?: import("../../../types").InlineAlert;
|
|
302
|
-
onBlur: () => void;
|
|
303
|
-
onFocus: () => void;
|
|
304
|
-
} & {
|
|
305
|
-
type: "number";
|
|
306
|
-
kind: "input";
|
|
307
|
-
maximum?: number;
|
|
308
|
-
minimum?: number;
|
|
309
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
310
|
-
onChange: (value: number | null) => void;
|
|
311
|
-
} & {
|
|
312
|
-
kind: "input";
|
|
313
|
-
}) | (import("../../../types").BaseComponent & {
|
|
314
|
-
schemaId?: string;
|
|
315
|
-
isSchemaReferencedInStep?: boolean;
|
|
316
|
-
control?: string;
|
|
317
|
-
description?: string;
|
|
318
|
-
help?: string;
|
|
319
|
-
hidden: boolean;
|
|
320
|
-
media?: import("../../../types").Media;
|
|
321
|
-
title?: string;
|
|
322
|
-
tags?: string[];
|
|
323
|
-
getLocalValue: () => import("../../../types").LocalValueObject;
|
|
324
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
325
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
326
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
327
|
-
validate: () => boolean;
|
|
328
|
-
} & {
|
|
329
|
-
type: "object";
|
|
330
|
-
kind: "input";
|
|
331
|
-
componentMap: Record<string, import("../../../types").SchemaComponent>;
|
|
332
|
-
alert?: import("../../../types").InlineAlert;
|
|
333
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
334
|
-
} & {
|
|
335
|
-
kind: "input";
|
|
336
|
-
}) | (import("../../../types").BaseComponent & {
|
|
337
|
-
schemaId?: string;
|
|
338
|
-
isSchemaReferencedInStep?: boolean;
|
|
339
|
-
control?: string;
|
|
340
|
-
description?: string;
|
|
341
|
-
help?: string;
|
|
342
|
-
hidden: boolean;
|
|
343
|
-
media?: import("../../../types").Media;
|
|
344
|
-
title?: string;
|
|
345
|
-
tags?: string[];
|
|
346
|
-
getLocalValue: () => import("../../../types").LocalValueArray;
|
|
347
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
348
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
349
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
350
|
-
validate: () => boolean;
|
|
351
|
-
} & {
|
|
352
|
-
type: "repeatable";
|
|
353
|
-
kind: "input";
|
|
354
|
-
id?: string;
|
|
355
|
-
components: import("../../../types").SchemaComponent[];
|
|
356
|
-
addItemTitle: string;
|
|
357
|
-
alert?: import("../../../types").InlineAlert;
|
|
358
|
-
editableComponent: import("../../../types").SchemaComponent | null;
|
|
359
|
-
editableIndex: number | null;
|
|
360
|
-
editItemTitle: string;
|
|
361
|
-
errors: string[] | undefined;
|
|
362
|
-
maxItems?: number;
|
|
363
|
-
minItems?: number;
|
|
364
|
-
summaryDefaults: import("../../../types").RepeatableSummary;
|
|
365
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
366
|
-
onAdd: () => void;
|
|
367
|
-
onEdit: (itemIndex: number) => void;
|
|
368
|
-
onRemove: () => void;
|
|
369
|
-
onSave: () => boolean;
|
|
370
|
-
} & {
|
|
371
|
-
kind: "input";
|
|
372
|
-
}) | (import("../../../types").BaseComponent & {
|
|
373
|
-
schemaId?: string;
|
|
374
|
-
isSchemaReferencedInStep?: boolean;
|
|
375
|
-
control?: string;
|
|
376
|
-
description?: string;
|
|
377
|
-
help?: string;
|
|
378
|
-
hidden: boolean;
|
|
379
|
-
media?: import("../../../types").Media;
|
|
380
|
-
title?: string;
|
|
381
|
-
tags?: string[];
|
|
382
|
-
getLocalValue: () => string | null;
|
|
383
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
384
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
385
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
386
|
-
validate: () => boolean;
|
|
387
|
-
} & {
|
|
388
|
-
id: string;
|
|
389
|
-
autoComplete: string;
|
|
390
|
-
disabled: boolean;
|
|
391
|
-
errors: string[] | undefined;
|
|
392
|
-
placeholder?: string;
|
|
393
|
-
required: boolean;
|
|
394
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
395
|
-
value: string | null;
|
|
396
|
-
alert?: import("../../../types").InlineAlert;
|
|
397
|
-
onBlur: () => void;
|
|
398
|
-
onFocus: () => void;
|
|
399
|
-
} & {
|
|
400
|
-
type: "text";
|
|
401
|
-
kind: "input";
|
|
402
|
-
autocapitalization?: import("../../../types").Autocapitalization;
|
|
403
|
-
displayFormat?: string;
|
|
404
|
-
maxLength?: number;
|
|
405
|
-
minLength?: number;
|
|
406
|
-
suggestions?: import("../../../types").Suggestions;
|
|
407
|
-
validationAsyncState: import("../../../types").ValidationAsyncState;
|
|
408
|
-
onChange: (value: string | null) => void;
|
|
409
|
-
} & {
|
|
410
|
-
kind: "input";
|
|
411
|
-
}) | (import("../../../types").BaseComponent & {
|
|
412
|
-
schemaId?: string;
|
|
413
|
-
isSchemaReferencedInStep?: boolean;
|
|
414
|
-
control?: string;
|
|
415
|
-
description?: string;
|
|
416
|
-
help?: string;
|
|
417
|
-
hidden: boolean;
|
|
418
|
-
media?: import("../../../types").Media;
|
|
419
|
-
title?: string;
|
|
420
|
-
tags?: string[];
|
|
421
|
-
getLocalValue: () => import("../../../types").LocalValueArray;
|
|
422
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
423
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
424
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
425
|
-
validate: () => boolean;
|
|
426
|
-
} & {
|
|
427
|
-
type: "tuple";
|
|
428
|
-
kind: "input";
|
|
429
|
-
components: import("../../../types").SchemaComponent[];
|
|
430
|
-
alert?: import("../../../types").InlineAlert;
|
|
431
|
-
getChildren: () => import("../../../types").SchemaComponent[];
|
|
432
|
-
} & {
|
|
433
|
-
kind: "input";
|
|
434
|
-
}) | (import("../../../types").BaseComponent & {
|
|
435
|
-
schemaId?: string;
|
|
436
|
-
isSchemaReferencedInStep?: boolean;
|
|
437
|
-
control?: string;
|
|
438
|
-
description?: string;
|
|
439
|
-
help?: string;
|
|
440
|
-
hidden: boolean;
|
|
441
|
-
media?: import("../../../types").Media;
|
|
442
|
-
title?: string;
|
|
443
|
-
tags?: string[];
|
|
444
|
-
getLocalValue: () => File | null;
|
|
445
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
446
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
447
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
448
|
-
validate: () => boolean;
|
|
449
|
-
} & {
|
|
450
|
-
id: string;
|
|
451
|
-
autoComplete: string;
|
|
452
|
-
disabled: boolean;
|
|
453
|
-
errors: string[] | undefined;
|
|
454
|
-
placeholder?: string;
|
|
455
|
-
required: boolean;
|
|
456
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
457
|
-
value: File | null;
|
|
458
|
-
alert?: import("../../../types").InlineAlert;
|
|
459
|
-
onBlur: () => void;
|
|
460
|
-
onFocus: () => void;
|
|
461
|
-
} & {
|
|
462
|
-
type: "upload";
|
|
463
|
-
kind: "input";
|
|
464
|
-
format: "blob" | "base64";
|
|
465
|
-
cameraConfig?: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
466
|
-
maxSize?: number;
|
|
467
|
-
accepts?: string[];
|
|
468
|
-
source?: import("../../../types").UploadSource;
|
|
469
|
-
validationAsyncState?: undefined;
|
|
470
|
-
base64Value: string | null;
|
|
471
|
-
onUpload: (value: File | null) => Promise<void>;
|
|
472
|
-
} & {
|
|
473
|
-
kind: "input";
|
|
474
|
-
}) | (import("../../../types").BaseComponent & {
|
|
475
|
-
schemaId?: string;
|
|
476
|
-
isSchemaReferencedInStep?: boolean;
|
|
477
|
-
control?: string;
|
|
478
|
-
description?: string;
|
|
479
|
-
help?: string;
|
|
480
|
-
hidden: boolean;
|
|
481
|
-
media?: import("../../../types").Media;
|
|
482
|
-
title?: string;
|
|
483
|
-
tags?: string[];
|
|
484
|
-
getLocalValue: () => import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
485
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
486
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
487
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
488
|
-
validate: () => boolean;
|
|
489
|
-
} & {
|
|
490
|
-
type: "formatted-value";
|
|
491
|
-
kind: "input";
|
|
492
|
-
format: string;
|
|
493
|
-
alert?: import("../../../types").InlineAlert;
|
|
494
|
-
errors: string[] | undefined;
|
|
495
|
-
value: import("@wise/dynamic-flow-types/spec").JsonElement;
|
|
496
|
-
onChange: (newValue: import("@wise/dynamic-flow-types/spec").JsonElement) => void;
|
|
497
|
-
} & {
|
|
498
|
-
kind: "input";
|
|
499
|
-
}) | (import("../../../types").BaseComponent & {
|
|
500
|
-
schemaId?: string;
|
|
501
|
-
isSchemaReferencedInStep?: boolean;
|
|
502
|
-
control?: string;
|
|
503
|
-
description?: string;
|
|
504
|
-
help?: string;
|
|
505
|
-
hidden: boolean;
|
|
506
|
-
media?: import("../../../types").Media;
|
|
507
|
-
title?: string;
|
|
508
|
-
tags?: string[];
|
|
509
|
-
getLocalValue: () => import("../../../types").LocalValueObject;
|
|
510
|
-
getSubmittableValueSync: () => import("@wise/dynamic-flow-types/spec").Model;
|
|
511
|
-
getSummary: () => import("../../../types").RepeatableSummary;
|
|
512
|
-
getSubmittableValue: () => Promise<import("@wise/dynamic-flow-types/spec").Model>;
|
|
513
|
-
validate: () => boolean;
|
|
514
|
-
} & {
|
|
515
|
-
id: string;
|
|
516
|
-
autoComplete: string;
|
|
517
|
-
disabled: boolean;
|
|
518
|
-
errors: string[] | undefined;
|
|
519
|
-
placeholder?: string;
|
|
520
|
-
required: boolean;
|
|
521
|
-
validationAsyncState?: import("../../../types").ValidationAsyncState;
|
|
522
|
-
value: import("../../../types").LocalValueObject;
|
|
523
|
-
alert?: import("../../../types").InlineAlert;
|
|
524
|
-
onBlur: () => void;
|
|
525
|
-
onFocus: () => void;
|
|
526
|
-
} & {
|
|
527
|
-
type: "money-input";
|
|
528
|
-
kind: "input";
|
|
529
|
-
components: {
|
|
530
|
-
amount: import("../../../components/TextInputComponent").TextInputComponent;
|
|
531
|
-
currency: import("../../../components/SelectInputComponent").SelectInputComponent;
|
|
532
|
-
};
|
|
533
|
-
} & {
|
|
534
|
-
kind: "input";
|
|
535
|
-
});
|
|
5
|
+
}, mapperProps: MapperProps) => import("../../../components/SelectInputComponent").SelectInputComponent;
|
|
536
6
|
//# sourceMappingURL=oneOfSchemaToComponent.d.ts.map
|
package/build/types/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oneOfSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAU,MAAM,+BAA+B,CAAC;AASzE,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG/D,eAAO,MAAM,sBAAsB,GACjC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,EAC9D,aAAa,WAAW
|
|
1
|
+
{"version":3,"file":"oneOfSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/mappers/schema/oneOfSchemaToComponent/oneOfSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAU,MAAM,+BAA+B,CAAC;AASzE,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG/D,eAAO,MAAM,sBAAsB,GACjC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,EAC9D,aAAa,WAAW,4EAyEzB,CAAC"}
|
|
@@ -5,7 +5,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
5
5
|
schema: SchemaWithPersistAsync;
|
|
6
6
|
}, mapperProps: MapperProps) => import("../../components/PersistAsyncComponent").PersistAsyncComponent | (import("../../types").BaseComponent & {
|
|
7
7
|
schemaId?: string;
|
|
8
|
-
isSchemaReferencedInStep?: boolean;
|
|
9
8
|
control?: string;
|
|
10
9
|
description?: string;
|
|
11
10
|
help?: string;
|
|
@@ -28,7 +27,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
28
27
|
kind: "input";
|
|
29
28
|
}) | (import("../../types").BaseComponent & {
|
|
30
29
|
schemaId?: string;
|
|
31
|
-
isSchemaReferencedInStep?: boolean;
|
|
32
30
|
control?: string;
|
|
33
31
|
description?: string;
|
|
34
32
|
help?: string;
|
|
@@ -65,7 +63,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
65
63
|
kind: "input";
|
|
66
64
|
}) | (import("../../types").BaseComponent & {
|
|
67
65
|
schemaId?: string;
|
|
68
|
-
isSchemaReferencedInStep?: boolean;
|
|
69
66
|
control?: string;
|
|
70
67
|
description?: string;
|
|
71
68
|
help?: string;
|
|
@@ -86,7 +83,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
86
83
|
kind: "input";
|
|
87
84
|
}) | (import("../../types").BaseComponent & {
|
|
88
85
|
schemaId?: string;
|
|
89
|
-
isSchemaReferencedInStep?: boolean;
|
|
90
86
|
control?: string;
|
|
91
87
|
description?: string;
|
|
92
88
|
help?: string;
|
|
@@ -123,7 +119,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
123
119
|
kind: "input";
|
|
124
120
|
}) | (import("../../types").BaseComponent & {
|
|
125
121
|
schemaId?: string;
|
|
126
|
-
isSchemaReferencedInStep?: boolean;
|
|
127
122
|
control?: string;
|
|
128
123
|
description?: string;
|
|
129
124
|
help?: string;
|
|
@@ -159,7 +154,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
159
154
|
kind: "input";
|
|
160
155
|
}) | (import("../../types").BaseComponent & {
|
|
161
156
|
schemaId?: string;
|
|
162
|
-
isSchemaReferencedInStep?: boolean;
|
|
163
157
|
control?: string;
|
|
164
158
|
description?: string;
|
|
165
159
|
help?: string;
|
|
@@ -200,7 +194,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
200
194
|
kind: "input";
|
|
201
195
|
}) | (import("../../types").BaseComponent & {
|
|
202
196
|
schemaId?: string;
|
|
203
|
-
isSchemaReferencedInStep?: boolean;
|
|
204
197
|
control?: string;
|
|
205
198
|
description?: string;
|
|
206
199
|
help?: string;
|
|
@@ -250,7 +243,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
250
243
|
kind: "input";
|
|
251
244
|
}) | (import("../../types").BaseComponent & {
|
|
252
245
|
schemaId?: string;
|
|
253
|
-
isSchemaReferencedInStep?: boolean;
|
|
254
246
|
control?: string;
|
|
255
247
|
description?: string;
|
|
256
248
|
help?: string;
|
|
@@ -286,7 +278,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
286
278
|
kind: "input";
|
|
287
279
|
}) | (import("../../types").BaseComponent & {
|
|
288
280
|
schemaId?: string;
|
|
289
|
-
isSchemaReferencedInStep?: boolean;
|
|
290
281
|
control?: string;
|
|
291
282
|
description?: string;
|
|
292
283
|
help?: string;
|
|
@@ -309,7 +300,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
309
300
|
kind: "input";
|
|
310
301
|
}) | (import("../../types").BaseComponent & {
|
|
311
302
|
schemaId?: string;
|
|
312
|
-
isSchemaReferencedInStep?: boolean;
|
|
313
303
|
control?: string;
|
|
314
304
|
description?: string;
|
|
315
305
|
help?: string;
|
|
@@ -345,7 +335,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
345
335
|
kind: "input";
|
|
346
336
|
}) | (import("../../types").BaseComponent & {
|
|
347
337
|
schemaId?: string;
|
|
348
|
-
isSchemaReferencedInStep?: boolean;
|
|
349
338
|
control?: string;
|
|
350
339
|
description?: string;
|
|
351
340
|
help?: string;
|
|
@@ -384,7 +373,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
384
373
|
kind: "input";
|
|
385
374
|
}) | (import("../../types").BaseComponent & {
|
|
386
375
|
schemaId?: string;
|
|
387
|
-
isSchemaReferencedInStep?: boolean;
|
|
388
376
|
control?: string;
|
|
389
377
|
description?: string;
|
|
390
378
|
help?: string;
|
|
@@ -423,7 +411,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
423
411
|
kind: "input";
|
|
424
412
|
}) | (import("../../types").BaseComponent & {
|
|
425
413
|
schemaId?: string;
|
|
426
|
-
isSchemaReferencedInStep?: boolean;
|
|
427
414
|
control?: string;
|
|
428
415
|
description?: string;
|
|
429
416
|
help?: string;
|
|
@@ -446,7 +433,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
446
433
|
kind: "input";
|
|
447
434
|
}) | (import("../../types").BaseComponent & {
|
|
448
435
|
schemaId?: string;
|
|
449
|
-
isSchemaReferencedInStep?: boolean;
|
|
450
436
|
control?: string;
|
|
451
437
|
description?: string;
|
|
452
438
|
help?: string;
|
|
@@ -486,7 +472,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
486
472
|
kind: "input";
|
|
487
473
|
}) | (import("../../types").BaseComponent & {
|
|
488
474
|
schemaId?: string;
|
|
489
|
-
isSchemaReferencedInStep?: boolean;
|
|
490
475
|
control?: string;
|
|
491
476
|
description?: string;
|
|
492
477
|
help?: string;
|
|
@@ -511,7 +496,6 @@ export declare const persistAsyncSchemaToComponent: (schemaMapperProps: SchemaMa
|
|
|
511
496
|
kind: "input";
|
|
512
497
|
}) | (import("../../types").BaseComponent & {
|
|
513
498
|
schemaId?: string;
|
|
514
|
-
isSchemaReferencedInStep?: boolean;
|
|
515
499
|
control?: string;
|
|
516
500
|
description?: string;
|
|
517
501
|
help?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistAsyncSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/schema/persistAsyncSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAOzD,eAAO,MAAM,6BAA6B,GACxC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,sBAAsB,CAAA;CAAE,EACzE,aAAa,WAAW
|
|
1
|
+
{"version":3,"file":"persistAsyncSchemaToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/schema/persistAsyncSchemaToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAOzD,eAAO,MAAM,6BAA6B,GACxC,mBAAmB,iBAAiB,GAAG;IAAE,MAAM,EAAE,sBAAsB,CAAA;CAAE,EACzE,aAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCzB,CAAC"}
|