@wise/dynamic-flow-client 0.2.0 → 0.3.0-beta-d45b31.38
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/package.json +34 -32
- package/build/common/api/utils.d.ts +0 -4
- package/build/common/api/utils.js +0 -13
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.d.ts +0 -11
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.js +0 -36
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.d.ts +0 -4
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.js +0 -13
- package/build/common/contexts/fetcherContext/fetcherContext.d.ts +0 -18
- package/build/common/contexts/fetcherContext/fetcherContext.js +0 -35
- package/build/common/contexts/fetcherContext/index.d.ts +0 -2
- package/build/common/contexts/fetcherContext/index.js +0 -2
- package/build/common/contexts/fetcherContext/makeFetcher.d.ts +0 -2
- package/build/common/contexts/fetcherContext/makeFetcher.js +0 -33
- package/build/common/general/index.d.ts +0 -2
- package/build/common/general/index.js +0 -22
- package/build/common/hooks/useDebouncedFunction.d.ts +0 -2
- package/build/common/hooks/useDebouncedFunction.js +0 -9
- package/build/common/hooks/useDebouncedFunction.test.d.ts +0 -1
- package/build/common/hooks/useDebouncedFunction.test.js +0 -59
- package/build/common/hooks/usePersistAsync.d.ts +0 -7
- package/build/common/hooks/usePersistAsync.js +0 -170
- package/build/common/hooks/usePolling.d.ts +0 -11
- package/build/common/hooks/usePolling.js +0 -48
- package/build/common/hooks/usePrevious.d.ts +0 -2
- package/build/common/hooks/usePrevious.js +0 -9
- package/build/common/index.d.ts +0 -4
- package/build/common/index.js +0 -4
- package/build/common/logging/index.d.ts +0 -22
- package/build/common/logging/index.js +0 -39
- package/build/common/logging/spec.d.ts +0 -1
- package/build/common/logging/spec.js +0 -45
- package/build/common/messages.d.ts +0 -8
- package/build/common/messages.js +0 -8
- package/build/common/propsValues/dateMode.d.ts +0 -4
- package/build/common/propsValues/dateMode.js +0 -4
- package/build/common/propsValues/formControlType.d.ts +0 -17
- package/build/common/propsValues/formControlType.js +0 -17
- package/build/common/propsValues/monthFormat.d.ts +0 -4
- package/build/common/propsValues/monthFormat.js +0 -4
- package/build/common/propsValues/size.d.ts +0 -7
- package/build/common/propsValues/size.js +0 -7
- package/build/common/requirements.d.ts +0 -10
- package/build/common/requirements.js +0 -50
- package/build/common/schemaTypes/schemaTypes.d.ts +0 -23
- package/build/common/schemaTypes/schemaTypes.js +0 -53
- package/build/common/schemaTypes/shouldDebounceSchema.d.ts +0 -2
- package/build/common/schemaTypes/shouldDebounceSchema.js +0 -6
- package/build/common/stepTypes/stepTypes.d.ts +0 -7
- package/build/common/stepTypes/stepTypes.js +0 -42
- package/build/common/tracking/index.d.ts +0 -15
- package/build/common/tracking/index.js +0 -33
- package/build/common/tracking/spec.d.ts +0 -1
- package/build/common/tracking/spec.js +0 -49
- package/build/common/utils/file-utils.d.ts +0 -4
- package/build/common/utils/file-utils.js +0 -45
- package/build/common/utils/generate-random-id.d.ts +0 -1
- package/build/common/utils/generate-random-id.js +0 -5
- package/build/common/utils/generate-random-id.test.d.ts +0 -1
- package/build/common/utils/generate-random-id.test.js +0 -12
- package/build/common/validation/rule-validators/index.d.ts +0 -10
- package/build/common/validation/rule-validators/index.js +0 -40
- package/build/common/validation/rule-validators/spec.d.ts +0 -1
- package/build/common/validation/rule-validators/spec.js +0 -145
- package/build/common/validation/schema-validators/index.d.ts +0 -9
- package/build/common/validation/schema-validators/index.js +0 -98
- package/build/common/validation/schema-validators/spec.d.ts +0 -1
- package/build/common/validation/schema-validators/spec.js +0 -137
- package/build/common/validation/valid-model/index.d.ts +0 -5
- package/build/common/validation/valid-model/index.js +0 -64
- package/build/common/validation/valid-model/spec.d.ts +0 -1
- package/build/common/validation/valid-model/spec.js +0 -605
- package/build/common/validation/valid-model/utils.d.ts +0 -11
- package/build/common/validation/valid-model/utils.js +0 -118
- package/build/common/validation/validation-failures/index.d.ts +0 -23
- package/build/common/validation/validation-failures/index.js +0 -140
- package/build/common/validation/validation-failures/spec.d.ts +0 -1
- package/build/common/validation/validation-failures/spec.js +0 -185
- package/build/dynamic-flow-types/Action.d.ts +0 -19
- package/build/dynamic-flow-types/Action.js +0 -1
- package/build/dynamic-flow-types/FileUploadSchema.d.ts +0 -23
- package/build/dynamic-flow-types/FileUploadSchema.js +0 -3
- package/build/dynamic-flow-types/LayoutComponent.d.ts +0 -129
- package/build/dynamic-flow-types/LayoutComponent.js +0 -1
- package/build/dynamic-flow-types/Model.d.ts +0 -12
- package/build/dynamic-flow-types/Model.js +0 -28
- package/build/dynamic-flow-types/PersistAsync.d.ts +0 -8
- package/build/dynamic-flow-types/PersistAsync.js +0 -1
- package/build/dynamic-flow-types/Polling.d.ts +0 -12
- package/build/dynamic-flow-types/Polling.js +0 -1
- package/build/dynamic-flow-types/Promotion.d.ts +0 -20
- package/build/dynamic-flow-types/Promotion.js +0 -1
- package/build/dynamic-flow-types/Schema.d.ts +0 -184
- package/build/dynamic-flow-types/Schema.js +0 -49
- package/build/dynamic-flow-types/Step.d.ts +0 -127
- package/build/dynamic-flow-types/Step.js +0 -4
- package/build/dynamic-flow-types/ValidationAsync.d.ts +0 -6
- package/build/dynamic-flow-types/ValidationAsync.js +0 -1
- package/build/dynamic-flow-types/core.d.ts +0 -29
- package/build/dynamic-flow-types/core.js +0 -1
- package/build/dynamic-flow-types/index.d.ts +0 -14
- package/build/dynamic-flow-types/index.js +0 -12
- package/build/field/Field.d.ts +0 -69
- package/build/field/Field.js +0 -311
- package/build/field/index.d.ts +0 -2
- package/build/field/index.js +0 -2
- package/build/flow/DynamicFlow.d.ts +0 -3
- package/build/flow/DynamicFlow.js +0 -368
- package/build/flow/DynamicFlowStep.d.ts +0 -8
- package/build/flow/DynamicFlowStep.js +0 -32
- package/build/flow/errorBoundary/ErrorBoundary.d.ts +0 -20
- package/build/flow/errorBoundary/ErrorBoundary.js +0 -45
- package/build/flow/errorBoundary/ErrorBoundary.messages.d.ts +0 -13
- package/build/flow/errorBoundary/ErrorBoundary.messages.js +0 -13
- package/build/flow/errorBoundary/ErrorBoundaryAlert.d.ts +0 -5
- package/build/flow/errorBoundary/ErrorBoundaryAlert.js +0 -12
- package/build/flow/errorBoundary/index.d.ts +0 -1
- package/build/flow/errorBoundary/index.js +0 -1
- package/build/flow/fixtures/components/alert.d.ts +0 -3
- package/build/flow/fixtures/components/alert.js +0 -31
- package/build/flow/fixtures/components/box.d.ts +0 -3
- package/build/flow/fixtures/components/box.js +0 -20
- package/build/flow/fixtures/components/button.d.ts +0 -3
- package/build/flow/fixtures/components/button.js +0 -65
- package/build/flow/fixtures/components/columns.d.ts +0 -3
- package/build/flow/fixtures/components/columns.js +0 -36
- package/build/flow/fixtures/components/copyable.d.ts +0 -3
- package/build/flow/fixtures/components/copyable.js +0 -22
- package/build/flow/fixtures/components/decision.d.ts +0 -3
- package/build/flow/fixtures/components/decision.js +0 -54
- package/build/flow/fixtures/components/heading.d.ts +0 -3
- package/build/flow/fixtures/components/heading.js +0 -14
- package/build/flow/fixtures/components/image.d.ts +0 -3
- package/build/flow/fixtures/components/image.js +0 -22
- package/build/flow/fixtures/components/info.d.ts +0 -3
- package/build/flow/fixtures/components/info.js +0 -17
- package/build/flow/fixtures/components/list.d.ts +0 -3
- package/build/flow/fixtures/components/list.js +0 -34
- package/build/flow/fixtures/components/loading-indicator.d.ts +0 -3
- package/build/flow/fixtures/components/loading-indicator.js +0 -16
- package/build/flow/fixtures/components/paragraph.d.ts +0 -3
- package/build/flow/fixtures/components/paragraph.js +0 -28
- package/build/flow/fixtures/components/review.d.ts +0 -3
- package/build/flow/fixtures/components/review.js +0 -60
- package/build/flow/fixtures/examples/camera-capture.d.ts +0 -3
- package/build/flow/fixtures/examples/camera-capture.js +0 -121
- package/build/flow/fixtures/examples/recipient-update.d.ts +0 -3
- package/build/flow/fixtures/examples/recipient-update.js +0 -250
- package/build/flow/fixtures/examples/recipient.d.ts +0 -3
- package/build/flow/fixtures/examples/recipient.js +0 -313
- package/build/flow/fixtures/examples/single-file-upload.d.ts +0 -3
- package/build/flow/fixtures/examples/single-file-upload.js +0 -96
- package/build/flow/fixtures/examples/step-validation-errors.d.ts +0 -3
- package/build/flow/fixtures/examples/step-validation-errors.js +0 -75
- package/build/flow/fixtures/features/action-response.d.ts +0 -3
- package/build/flow/fixtures/features/action-response.js +0 -29
- package/build/flow/fixtures/features/external.d.ts +0 -3
- package/build/flow/fixtures/features/external.js +0 -31
- package/build/flow/fixtures/features/persist-async.d.ts +0 -3
- package/build/flow/fixtures/features/persist-async.js +0 -44
- package/build/flow/fixtures/features/polling.d.ts +0 -3
- package/build/flow/fixtures/features/polling.js +0 -33
- package/build/flow/fixtures/index.d.ts +0 -42
- package/build/flow/fixtures/index.js +0 -66
- package/build/flow/fixtures/responses/action-response-final.d.ts +0 -3
- package/build/flow/fixtures/responses/action-response-final.js +0 -24
- package/build/flow/fixtures/responses/action.d.ts +0 -5
- package/build/flow/fixtures/responses/action.js +0 -2
- package/build/flow/fixtures/responses/exit.d.ts +0 -6
- package/build/flow/fixtures/responses/exit.js +0 -2
- package/build/flow/fixtures/responses/recipient-update-final.d.ts +0 -3
- package/build/flow/fixtures/responses/recipient-update-final.js +0 -24
- package/build/flow/fixtures/schemas/basic-form.d.ts +0 -3
- package/build/flow/fixtures/schemas/basic-form.js +0 -39
- package/build/flow/fixtures/schemas/number-and-integer.d.ts +0 -3
- package/build/flow/fixtures/schemas/number-and-integer.js +0 -41
- package/build/flow/fixtures/schemas/one-of.d.ts +0 -3
- package/build/flow/fixtures/schemas/one-of.js +0 -223
- package/build/flow/fixtures/schemas/string-formats.d.ts +0 -3
- package/build/flow/fixtures/schemas/string-formats.js +0 -58
- package/build/flow/index.d.ts +0 -1
- package/build/flow/index.js +0 -1
- package/build/flow/response-parsers/index.d.ts +0 -17
- package/build/flow/response-parsers/index.js +0 -112
- package/build/flow/response-parsers/spec.d.ts +0 -1
- package/build/flow/response-parsers/spec.js +0 -263
- package/build/flow/stories/EditableDynamicFlow.d.ts +0 -4
- package/build/flow/stories/EditableDynamicFlow.js +0 -61
- package/build/flow/types.d.ts +0 -77
- package/build/flow/types.js +0 -3
- package/build/flow/useDebouncedRefresh/index.d.ts +0 -1
- package/build/flow/useDebouncedRefresh/index.js +0 -1
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -5
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.js +0 -24
- package/build/flow/useDynamicFlowState.d.ts +0 -18
- package/build/flow/useDynamicFlowState.js +0 -111
- package/build/flow/useLoader.d.ts +0 -9
- package/build/flow/useLoader.js +0 -22
- package/build/formControl/FormControl.d.ts +0 -86
- package/build/formControl/FormControl.js +0 -241
- package/build/formControl/index.d.ts +0 -1
- package/build/formControl/index.js +0 -1
- package/build/formControl/types.d.ts +0 -57
- package/build/formControl/types.js +0 -1
- package/build/formControl/value-utils.d.ts +0 -9
- package/build/formControl/value-utils.js +0 -108
- package/build/i18n/cs.json +0 -8
- package/build/i18n/de.json +0 -34
- package/build/i18n/en.json +0 -38
- package/build/i18n/es.json +0 -34
- package/build/i18n/fr.json +0 -34
- package/build/i18n/hu.json +0 -34
- package/build/i18n/id.json +0 -34
- package/build/i18n/index.d.ts +0 -2
- package/build/i18n/index.js +0 -31
- package/build/i18n/it.json +0 -34
- package/build/i18n/ja.json +0 -34
- package/build/i18n/pl.json +0 -11
- package/build/i18n/pt.json +0 -34
- package/build/i18n/ro.json +0 -34
- package/build/i18n/ru.json +0 -34
- package/build/i18n/th.json +0 -34
- package/build/i18n/tr.json +0 -11
- package/build/i18n/uk.json +0 -8
- package/build/i18n/zh-CN.json +0 -34
- package/build/i18n/zh.json +0 -34
- package/build/index.d.ts +0 -12
- package/build/index.js +0 -11
- package/build/jsonSchemaForm/JsonSchemaForm.d.ts +0 -65
- package/build/jsonSchemaForm/JsonSchemaForm.js +0 -31
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +0 -13
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +0 -54
- package/build/jsonSchemaForm/allOfSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/allOfSchema/index.js +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +0 -14
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +0 -25
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -15
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +0 -26
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -17
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +0 -141
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +0 -24
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +0 -18
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.d.ts +0 -9
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.js +0 -14
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.d.ts +0 -6
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.js +0 -85
- package/build/jsonSchemaForm/arrayTypeSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +0 -1
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +0 -21
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +0 -105
- package/build/jsonSchemaForm/basicTypeSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/basicTypeSchema/index.js +0 -1
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +0 -30
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +0 -79
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts +0 -53
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +0 -53
- package/build/jsonSchemaForm/controlFeedback/index.d.ts +0 -1
- package/build/jsonSchemaForm/controlFeedback/index.js +0 -1
- package/build/jsonSchemaForm/genericSchema/GenericSchema.d.ts +0 -18
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +0 -122
- package/build/jsonSchemaForm/genericSchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/genericSchema/index.js +0 -1
- package/build/jsonSchemaForm/help/Help.d.ts +0 -7
- package/build/jsonSchemaForm/help/Help.js +0 -9
- package/build/jsonSchemaForm/help/Help.messages.d.ts +0 -8
- package/build/jsonSchemaForm/help/Help.messages.js +0 -8
- package/build/jsonSchemaForm/help/index.d.ts +0 -1
- package/build/jsonSchemaForm/help/index.js +0 -1
- package/build/jsonSchemaForm/index.d.ts +0 -1
- package/build/jsonSchemaForm/index.js +0 -1
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +0 -15
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +0 -78
- package/build/jsonSchemaForm/objectSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/objectSchema/index.js +0 -1
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +0 -14
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +0 -153
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.d.ts +0 -3
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.js +0 -40
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.d.ts +0 -2
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.js +0 -27
- package/build/jsonSchemaForm/oneOfSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/oneOfSchema/index.js +0 -1
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.d.ts +0 -3
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.js +0 -7
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -15
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +0 -26
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -8
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +0 -8
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.d.ts +0 -20
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.js +0 -168
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.js +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.d.ts +0 -19
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.js +0 -127
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.d.ts +0 -16
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.js +0 -32
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.js +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +0 -72
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.d.ts +0 -2
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.js +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.d.ts +0 -6
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.js +0 -27
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.d.ts +0 -23
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.js +0 -31
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.d.ts +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.js +0 -32
- package/build/jsonSchemaForm/promotedOneOfSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +0 -1
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +0 -7
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +0 -55
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -16
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +0 -13
- package/build/jsonSchemaForm/readOnlySchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/readOnlySchema/index.js +0 -1
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +0 -24
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +0 -106
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.d.ts +0 -3
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.js +0 -73
- package/build/jsonSchemaForm/schemaFormControl/index.d.ts +0 -1
- package/build/jsonSchemaForm/schemaFormControl/index.js +0 -1
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.d.ts +0 -39
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.js +0 -89
- package/build/jsonSchemaForm/schemas/allOf.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/allOf.json.js +0 -119
- package/build/jsonSchemaForm/schemas/audRecipient.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/audRecipient.json.js +0 -1104
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.js +0 -37
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.js +0 -36
- package/build/jsonSchemaForm/schemas/currency.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/currency.json.js +0 -48
- package/build/jsonSchemaForm/schemas/oneOf.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/oneOf.json.js +0 -119
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.js +0 -53
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.js +0 -56
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.js +0 -102
- package/build/jsonSchemaForm/schemas/simple.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/simple.json.js +0 -48
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.js +0 -71
- package/build/jsonSchemaForm/schemas/validationAsync.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/validationAsync.json.js +0 -23
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -16
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +0 -149
- package/build/jsonSchemaForm/validationAsyncSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +0 -1
- package/build/layout/DynamicLayout.d.ts +0 -16
- package/build/layout/DynamicLayout.js +0 -75
- package/build/layout/alert/index.d.ts +0 -5
- package/build/layout/alert/index.js +0 -29
- package/build/layout/box/index.d.ts +0 -7
- package/build/layout/box/index.js +0 -41
- package/build/layout/button/index.d.ts +0 -7
- package/build/layout/button/index.js +0 -58
- package/build/layout/columns/index.d.ts +0 -7
- package/build/layout/columns/index.js +0 -38
- package/build/layout/decision/index.d.ts +0 -8
- package/build/layout/decision/index.js +0 -38
- package/build/layout/divider/index.d.ts +0 -6
- package/build/layout/divider/index.js +0 -9
- package/build/layout/external/DynamicExternal.d.ts +0 -7
- package/build/layout/external/DynamicExternal.js +0 -30
- package/build/layout/external/DynamicExternal.messages.d.ts +0 -8
- package/build/layout/external/DynamicExternal.messages.js +0 -8
- package/build/layout/external/index.d.ts +0 -1
- package/build/layout/external/index.js +0 -1
- package/build/layout/external/useExternalStepPolling.d.ts +0 -11
- package/build/layout/external/useExternalStepPolling.js +0 -68
- package/build/layout/form/index.d.ts +0 -7
- package/build/layout/form/index.js +0 -22
- package/build/layout/heading/index.d.ts +0 -5
- package/build/layout/heading/index.js +0 -31
- package/build/layout/icon/index.d.ts +0 -6
- package/build/layout/icon/index.js +0 -22
- package/build/layout/image/index.d.ts +0 -5
- package/build/layout/image/index.js +0 -126
- package/build/layout/index.d.ts +0 -1
- package/build/layout/index.js +0 -1
- package/build/layout/info/index.d.ts +0 -6
- package/build/layout/info/index.js +0 -19
- package/build/layout/layouts/all.json.d.ts +0 -3
- package/build/layout/layouts/all.json.js +0 -176
- package/build/layout/layouts/final-step-layout.json.d.ts +0 -3
- package/build/layout/layouts/final-step-layout.json.js +0 -39
- package/build/layout/layouts/finalStep.json.d.ts +0 -3
- package/build/layout/layouts/finalStep.json.js +0 -24
- package/build/layout/layouts/list.json.d.ts +0 -3
- package/build/layout/layouts/list.json.js +0 -33
- package/build/layout/layouts/pay-in.json.d.ts +0 -3
- package/build/layout/layouts/pay-in.json.js +0 -97
- package/build/layout/layouts/review.json.d.ts +0 -3
- package/build/layout/layouts/review.json.js +0 -160
- package/build/layout/layouts/success.json.d.ts +0 -3
- package/build/layout/layouts/success.json.js +0 -66
- package/build/layout/list/index.d.ts +0 -7
- package/build/layout/list/index.js +0 -30
- package/build/layout/loading-indicator/index.d.ts +0 -6
- package/build/layout/loading-indicator/index.js +0 -10
- package/build/layout/loading-indicator/spec.d.ts +0 -1
- package/build/layout/loading-indicator/spec.js +0 -11
- package/build/layout/paragraph/DynamicParagraph.d.ts +0 -6
- package/build/layout/paragraph/DynamicParagraph.js +0 -42
- package/build/layout/paragraph/DynamicParagraph.messages.d.ts +0 -13
- package/build/layout/paragraph/DynamicParagraph.messages.js +0 -13
- package/build/layout/paragraph/index.d.ts +0 -1
- package/build/layout/paragraph/index.js +0 -1
- package/build/layout/paragraph/useSnackBarIfAvailable.d.ts +0 -10
- package/build/layout/paragraph/useSnackBarIfAvailable.js +0 -9
- package/build/layout/review/index.d.ts +0 -8
- package/build/layout/review/index.js +0 -33
- package/build/layout/utils.d.ts +0 -7
- package/build/layout/utils.js +0 -31
- package/build/main.css +0 -143
- package/build/schema.d.ts +0 -1
- package/build/schema.js +0 -1
- package/build/step/cameraStep/CameraStep.d.ts +0 -7
- package/build/step/cameraStep/CameraStep.js +0 -125
- package/build/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -15
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +0 -122
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -18
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +0 -18
- package/build/step/cameraStep/cameraCapture/components/index.d.ts +0 -7
- package/build/step/cameraStep/cameraCapture/components/index.js +0 -28
- package/build/step/cameraStep/cameraCapture/hooks/index.d.ts +0 -4
- package/build/step/cameraStep/cameraCapture/hooks/index.js +0 -80
- package/build/step/cameraStep/cameraCapture/index.d.ts +0 -1
- package/build/step/cameraStep/cameraCapture/index.js +0 -1
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.d.ts +0 -10
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +0 -78
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -2
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +0 -19
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +0 -13
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +0 -13
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -5
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +0 -21
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +0 -18
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +0 -18
- package/build/step/cameraStep/cameraCapture/screens/index.d.ts +0 -2
- package/build/step/cameraStep/cameraCapture/screens/index.js +0 -2
- package/build/step/cameraStep/cameraCapture/tracking/index.d.ts +0 -7
- package/build/step/cameraStep/cameraCapture/tracking/index.js +0 -101
- package/build/step/cameraStep/cameraCapture/utils/index.d.ts +0 -8
- package/build/step/cameraStep/cameraCapture/utils/index.js +0 -103
- package/build/step/cameraStep/index.d.ts +0 -1
- package/build/step/cameraStep/index.js +0 -1
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -6
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +0 -64
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -23
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +0 -23
- package/build/step/externalConfirmationStep/index.d.ts +0 -1
- package/build/step/externalConfirmationStep/index.js +0 -1
- package/build/step/features/external/useExternal.d.ts +0 -4
- package/build/step/features/external/useExternal.js +0 -15
- package/build/step/features/index.d.ts +0 -2
- package/build/step/features/index.js +0 -2
- package/build/step/features/polling/useStepPolling.d.ts +0 -2
- package/build/step/features/polling/useStepPolling.js +0 -44
- package/build/step/index.d.ts +0 -3
- package/build/step/index.js +0 -3
- package/build/step/layoutStep/LayoutStep.d.ts +0 -10
- package/build/step/layoutStep/LayoutStep.js +0 -34
- package/build/step/layoutStep/index.d.ts +0 -1
- package/build/step/layoutStep/index.js +0 -1
- package/build/step/layoutStep/layoutService/convertStepToLayout.d.ts +0 -8
- package/build/step/layoutStep/layoutService/convertStepToLayout.js +0 -217
- package/build/step/layoutStep/layoutService/index.d.ts +0 -2
- package/build/step/layoutStep/layoutService/index.js +0 -2
- package/build/step/layoutStep/layoutService/inlineReferences.d.ts +0 -7
- package/build/step/layoutStep/layoutService/inlineReferences.js +0 -91
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isArray, isBoolean, isNull, isNumber, isString } from '@transferwise/neptune-validation';
|
|
2
|
-
export var isObjectModel = function (model) {
|
|
3
|
-
return typeof model === 'object' && model !== null && model.constructor === Object;
|
|
4
|
-
};
|
|
5
|
-
export var isNullableObjectModel = function (model) {
|
|
6
|
-
return isNull(model) || isObjectModel(model);
|
|
7
|
-
};
|
|
8
|
-
export var isNullableBasicModel = function (model) {
|
|
9
|
-
return isBoolean(model) || isNumber(model) || isString(model) || isNull(model);
|
|
10
|
-
};
|
|
11
|
-
export var isNullableStringModel = function (model) {
|
|
12
|
-
return isString(model) || isNull(model);
|
|
13
|
-
};
|
|
14
|
-
export var isArrayModel = function (model) {
|
|
15
|
-
if (isArray(model)) {
|
|
16
|
-
if (model.length === 0) {
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
return model.every(function (item) { return typeof item === 'string' || typeof item === 'number' || typeof item === 'boolean'; });
|
|
20
|
-
}
|
|
21
|
-
return false;
|
|
22
|
-
};
|
|
23
|
-
export var isNullableArrayModel = function (model) {
|
|
24
|
-
if (isNull(model)) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
return isArrayModel(model);
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Icon, Image } from './core';
|
|
2
|
-
export type Promotion = {
|
|
3
|
-
displayTwice?: boolean;
|
|
4
|
-
other: {
|
|
5
|
-
description?: string;
|
|
6
|
-
heading?: {
|
|
7
|
-
text: string;
|
|
8
|
-
};
|
|
9
|
-
icon?: Icon;
|
|
10
|
-
image?: Image;
|
|
11
|
-
title: string;
|
|
12
|
-
};
|
|
13
|
-
promoted?: {
|
|
14
|
-
title?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
};
|
|
17
|
-
control?: string;
|
|
18
|
-
checkedMeans?: 'promoted' | 'other';
|
|
19
|
-
default?: 'promoted' | 'other';
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { FileUploadSchema } from './FileUploadSchema';
|
|
2
|
-
import { Model, ObjectModel } from './Model';
|
|
3
|
-
import { PersistAsync } from './PersistAsync';
|
|
4
|
-
import { Promotion } from './Promotion';
|
|
5
|
-
import { ValidationAsync } from './ValidationAsync';
|
|
6
|
-
import { Icon, Image, Alert, Help } from './core';
|
|
7
|
-
export type Schema = AllOfSchema | ArraySchema | BlobSchema | BooleanSchema | IntegerSchema | NumberSchema | ObjectSchema | OneOfSchema | StringSchema | ListArraySchema | TupleArraySchema | FileUploadSchema | MultipleFileUploadSchema | ConstSchema;
|
|
8
|
-
type SchemaBase = {
|
|
9
|
-
$id?: string;
|
|
10
|
-
type?: 'boolean' | 'blob' | 'array' | 'integer' | 'number' | 'string' | 'object';
|
|
11
|
-
alert?: Alert;
|
|
12
|
-
autofillProvider?: string;
|
|
13
|
-
autofillKey?: string;
|
|
14
|
-
allOf?: never;
|
|
15
|
-
analyticsId?: string;
|
|
16
|
-
const?: Model;
|
|
17
|
-
default?: Model;
|
|
18
|
-
description?: string;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
format?: string;
|
|
21
|
-
help?: Help;
|
|
22
|
-
hidden?: boolean;
|
|
23
|
-
icon?: Icon;
|
|
24
|
-
image?: Image;
|
|
25
|
-
oneOf?: never;
|
|
26
|
-
persistAsync?: never;
|
|
27
|
-
promoted?: boolean;
|
|
28
|
-
promotion?: never;
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Please use disabled
|
|
31
|
-
*/
|
|
32
|
-
readOnly?: boolean;
|
|
33
|
-
refreshFormOnChange?: boolean;
|
|
34
|
-
refreshFormUrl?: string;
|
|
35
|
-
summary?: SchemaSummary;
|
|
36
|
-
title?: string;
|
|
37
|
-
validationAsync?: ValidationAsync;
|
|
38
|
-
validationMessages?: Record<string, string>;
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Please use oneOf instead
|
|
41
|
-
*/
|
|
42
|
-
values?: {
|
|
43
|
-
label: string;
|
|
44
|
-
value: string | number;
|
|
45
|
-
}[];
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Please use layouts instead
|
|
48
|
-
*/
|
|
49
|
-
width?: string;
|
|
50
|
-
keywords?: string[];
|
|
51
|
-
};
|
|
52
|
-
export type AllOfSchema = Omit<SchemaBase, 'allOf'> & {
|
|
53
|
-
allOf: Schema[];
|
|
54
|
-
maximum?: number;
|
|
55
|
-
minimum?: number;
|
|
56
|
-
minLength?: number;
|
|
57
|
-
maxLength?: number;
|
|
58
|
-
minItems?: number;
|
|
59
|
-
maxItems?: number;
|
|
60
|
-
required?: string[];
|
|
61
|
-
};
|
|
62
|
-
export type ArraySchema = Omit<SchemaBase, 'persistAsync'> & {
|
|
63
|
-
type: 'array';
|
|
64
|
-
addItemTitle?: string;
|
|
65
|
-
editItemTitle?: string;
|
|
66
|
-
removeItemTitle?: string;
|
|
67
|
-
items: Schema | Schema[];
|
|
68
|
-
maxItems?: number;
|
|
69
|
-
minItems?: number;
|
|
70
|
-
persistAsync?: PersistAsync;
|
|
71
|
-
summary?: ArraySchemaSummary;
|
|
72
|
-
};
|
|
73
|
-
export type ListArraySchema = ArraySchema & {
|
|
74
|
-
items: Schema;
|
|
75
|
-
};
|
|
76
|
-
export type TupleArraySchema = ArraySchema & {
|
|
77
|
-
items: Schema[];
|
|
78
|
-
};
|
|
79
|
-
export type MultipleFileUploadSchema = ListArraySchema & {
|
|
80
|
-
items: PersistAsyncSchema;
|
|
81
|
-
};
|
|
82
|
-
export type BlobSchema = SchemaBase & {
|
|
83
|
-
type: 'blob';
|
|
84
|
-
accepts?: string[];
|
|
85
|
-
maxSize?: number;
|
|
86
|
-
};
|
|
87
|
-
export type BooleanSchema = SchemaBase & {
|
|
88
|
-
type: 'boolean';
|
|
89
|
-
default?: boolean;
|
|
90
|
-
const?: boolean;
|
|
91
|
-
oneOf?: BooleanSchema[];
|
|
92
|
-
};
|
|
93
|
-
export type ConstSchema = SchemaBase & {
|
|
94
|
-
type?: never;
|
|
95
|
-
const: Model;
|
|
96
|
-
};
|
|
97
|
-
export type IntegerSchema = Omit<SchemaBase, 'persistAsync'> & {
|
|
98
|
-
type: 'integer';
|
|
99
|
-
default?: number;
|
|
100
|
-
maximum?: number;
|
|
101
|
-
minimum?: number;
|
|
102
|
-
persistAsync?: PersistAsync;
|
|
103
|
-
placeholder?: number;
|
|
104
|
-
const?: number;
|
|
105
|
-
oneOf?: IntegerSchema[];
|
|
106
|
-
};
|
|
107
|
-
export type NumberSchema = SchemaBase & Omit<IntegerSchema, 'type'> & {
|
|
108
|
-
type: 'number';
|
|
109
|
-
oneOf?: NumberSchema[];
|
|
110
|
-
};
|
|
111
|
-
export type ObjectSchema = SchemaBase & {
|
|
112
|
-
type: 'object';
|
|
113
|
-
displayOrder: string[];
|
|
114
|
-
properties: Record<string, Schema>;
|
|
115
|
-
required?: string[];
|
|
116
|
-
oneOf?: ObjectSchema[];
|
|
117
|
-
};
|
|
118
|
-
export type OneOfSchema = Omit<SchemaBase, 'oneOf' | 'promotion'> & {
|
|
119
|
-
oneOf: Schema[];
|
|
120
|
-
promotion?: Promotion;
|
|
121
|
-
maximum?: number;
|
|
122
|
-
minimum?: number;
|
|
123
|
-
minLength?: number;
|
|
124
|
-
maxLength?: number;
|
|
125
|
-
minItems?: number;
|
|
126
|
-
maxItems?: number;
|
|
127
|
-
required?: string[];
|
|
128
|
-
default?: Model;
|
|
129
|
-
placeholder?: Model;
|
|
130
|
-
control?: string;
|
|
131
|
-
};
|
|
132
|
-
export type OneOfObjectSchema = Omit<OneOfSchema, 'oneOf' | 'default'> & {
|
|
133
|
-
oneOf: ObjectSchema[];
|
|
134
|
-
default?: ObjectModel;
|
|
135
|
-
};
|
|
136
|
-
export type PersistAsyncSchema = Schema & {
|
|
137
|
-
persistAsync: PersistAsync;
|
|
138
|
-
};
|
|
139
|
-
export type StringSchema = Omit<SchemaBase, 'persistAsync'> & {
|
|
140
|
-
type: 'string';
|
|
141
|
-
control?: string;
|
|
142
|
-
default?: string;
|
|
143
|
-
displayFormat?: string;
|
|
144
|
-
minimum?: string;
|
|
145
|
-
maximum?: string;
|
|
146
|
-
maxLength?: number;
|
|
147
|
-
minLength?: number;
|
|
148
|
-
pattern?: string;
|
|
149
|
-
persistAsync?: PersistAsync;
|
|
150
|
-
placeholder?: string;
|
|
151
|
-
const?: string;
|
|
152
|
-
oneOf?: StringSchema[];
|
|
153
|
-
};
|
|
154
|
-
export type BasicSchema = BooleanSchema | IntegerSchema | NumberSchema | StringSchema;
|
|
155
|
-
export type ValidationAsyncSchema = BasicSchema & {
|
|
156
|
-
validationAsync: ValidationAsync;
|
|
157
|
-
};
|
|
158
|
-
type SchemaSummary = {
|
|
159
|
-
providesDescription?: boolean;
|
|
160
|
-
providesIcon?: boolean;
|
|
161
|
-
providesImage?: boolean;
|
|
162
|
-
providesTitle?: boolean;
|
|
163
|
-
};
|
|
164
|
-
type ArraySchemaSummary = SchemaSummary & {
|
|
165
|
-
defaultDescription?: string;
|
|
166
|
-
defaultIcon?: Icon;
|
|
167
|
-
defaultImage?: Image;
|
|
168
|
-
defaultTitle?: string;
|
|
169
|
-
};
|
|
170
|
-
export declare function isBasicSchema(schema: Schema): schema is BasicSchema;
|
|
171
|
-
export declare function isObjectSchema(schema: Schema): schema is ObjectSchema;
|
|
172
|
-
export declare function isOneOfObjectSchema(schema: Schema): schema is OneOfObjectSchema;
|
|
173
|
-
export declare function isOneOfSchema(schema: Schema): schema is OneOfSchema;
|
|
174
|
-
export declare function isAllOfSchema(schema: Schema): schema is AllOfSchema;
|
|
175
|
-
export declare function isBlobSchema(schema: Schema): schema is BlobSchema;
|
|
176
|
-
export declare function isArraySchema(schema: Schema): schema is ArraySchema;
|
|
177
|
-
export declare function isTupleArraySchema(schema: ArraySchema): schema is TupleArraySchema;
|
|
178
|
-
export declare function isListArraySchema(schema: ArraySchema): schema is ListArraySchema;
|
|
179
|
-
export declare function isStringSchema(schema: Schema): schema is StringSchema;
|
|
180
|
-
export declare function isPersistAsyncSchema(schema: Schema): schema is PersistAsyncSchema;
|
|
181
|
-
export declare function isPersistAsyncFileSchema(schema: Schema): schema is PersistAsyncSchema;
|
|
182
|
-
export declare const isValidationAsyncSchema: (schema: Schema) => schema is ValidationAsyncSchema;
|
|
183
|
-
export declare const isMultipleFileUploadSchema: (schema: Schema) => schema is MultipleFileUploadSchema;
|
|
184
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var basicTypes = new Set(['string', 'number', 'integer', 'boolean']);
|
|
2
|
-
export function isBasicSchema(schema) {
|
|
3
|
-
return basicTypes.has(schema.type || '') || ('const' in schema && schema["const"] !== undefined);
|
|
4
|
-
}
|
|
5
|
-
export function isObjectSchema(schema) {
|
|
6
|
-
return schema.type === 'object';
|
|
7
|
-
}
|
|
8
|
-
export function isOneOfObjectSchema(schema) {
|
|
9
|
-
return isOneOfSchema(schema) && schema.oneOf.every(function (subSchema) { return subSchema.type === 'object'; });
|
|
10
|
-
}
|
|
11
|
-
export function isOneOfSchema(schema) {
|
|
12
|
-
return !!schema.oneOf;
|
|
13
|
-
}
|
|
14
|
-
export function isAllOfSchema(schema) {
|
|
15
|
-
return !!schema.allOf;
|
|
16
|
-
}
|
|
17
|
-
export function isBlobSchema(schema) {
|
|
18
|
-
return schema.type === 'blob';
|
|
19
|
-
}
|
|
20
|
-
export function isArraySchema(schema) {
|
|
21
|
-
return schema.type === 'array';
|
|
22
|
-
}
|
|
23
|
-
export function isTupleArraySchema(schema) {
|
|
24
|
-
var schemaItems = schema.items;
|
|
25
|
-
return Array.isArray(schemaItems);
|
|
26
|
-
}
|
|
27
|
-
export function isListArraySchema(schema) {
|
|
28
|
-
var schemaItems = schema.items;
|
|
29
|
-
return !Array.isArray(schemaItems);
|
|
30
|
-
}
|
|
31
|
-
export function isStringSchema(schema) {
|
|
32
|
-
return schema.type === 'string';
|
|
33
|
-
}
|
|
34
|
-
export function isPersistAsyncSchema(schema) {
|
|
35
|
-
return !!schema.persistAsync;
|
|
36
|
-
}
|
|
37
|
-
export function isPersistAsyncFileSchema(schema) {
|
|
38
|
-
return (isPersistAsyncSchema(schema) &&
|
|
39
|
-
(isBlobSchema(schema.persistAsync.schema) || isBase64FileSchema(schema.persistAsync.schema)));
|
|
40
|
-
}
|
|
41
|
-
export var isValidationAsyncSchema = function (schema) {
|
|
42
|
-
return isBasicSchema(schema) && !!schema.validationAsync;
|
|
43
|
-
};
|
|
44
|
-
function isBase64FileSchema(schema) {
|
|
45
|
-
return schema.type === 'string' && schema.format === 'base64url';
|
|
46
|
-
}
|
|
47
|
-
export var isMultipleFileUploadSchema = function (schema) {
|
|
48
|
-
return (isArraySchema(schema) && isListArraySchema(schema) && isPersistAsyncFileSchema(schema.items));
|
|
49
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { ExternalStepPollingConfiguration } from '../layout/external/useExternalStepPolling';
|
|
2
|
-
import { Action } from './Action';
|
|
3
|
-
import { LayoutComponent } from './LayoutComponent';
|
|
4
|
-
import { ObjectModel } from './Model';
|
|
5
|
-
import { PollingConfiguration } from './Polling';
|
|
6
|
-
import { Schema } from './Schema';
|
|
7
|
-
import { Image, HttpMethod } from './core';
|
|
8
|
-
export type Step = FormStep | DecisionStep | ExternalStep | WebStep | FinalStep;
|
|
9
|
-
type BaseStep = {
|
|
10
|
-
key?: string;
|
|
11
|
-
type: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
analytics?: Record<string, unknown>;
|
|
15
|
-
layout?: LayoutComponent[];
|
|
16
|
-
schemas?: Schema[];
|
|
17
|
-
actions?: Action[];
|
|
18
|
-
model?: ObjectModel;
|
|
19
|
-
refreshFormUrl?: string;
|
|
20
|
-
polling?: PollingConfiguration;
|
|
21
|
-
external?: {
|
|
22
|
-
url: string;
|
|
23
|
-
};
|
|
24
|
-
errors?: {
|
|
25
|
-
error?: GlobalError;
|
|
26
|
-
validation?: FormErrors;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export type FormStep = BaseStep & {
|
|
30
|
-
type: 'form';
|
|
31
|
-
title: string;
|
|
32
|
-
layout: LayoutComponent[];
|
|
33
|
-
actions: Action[];
|
|
34
|
-
schemas: Schema[];
|
|
35
|
-
errors?: unknown;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Please use a form step with a layout instead
|
|
39
|
-
*/
|
|
40
|
-
export type FinalStep = BaseStep & {
|
|
41
|
-
type: 'final';
|
|
42
|
-
actions: Action[];
|
|
43
|
-
details: {
|
|
44
|
-
description: string;
|
|
45
|
-
image?: Image;
|
|
46
|
-
title: string;
|
|
47
|
-
};
|
|
48
|
-
success: boolean;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Please use the external feature set instead
|
|
52
|
-
*/
|
|
53
|
-
export type ExternalStep = BaseStep & {
|
|
54
|
-
type: 'external';
|
|
55
|
-
description?: string;
|
|
56
|
-
polling?: Omit<ExternalStepPollingConfiguration, 'responseHandlers'>;
|
|
57
|
-
requestUrl: string;
|
|
58
|
-
responseHandlers?: ExternalStepPollingConfiguration['responseHandlers'];
|
|
59
|
-
retryTitle?: string;
|
|
60
|
-
title: string;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Please use the external feature set instead
|
|
64
|
-
*/
|
|
65
|
-
type WebStep = BaseStep & {
|
|
66
|
-
type: 'web';
|
|
67
|
-
hideBackButton?: boolean;
|
|
68
|
-
initialRequest: {
|
|
69
|
-
body?: string;
|
|
70
|
-
headers?: Record<string, string>;
|
|
71
|
-
method: HttpMethod;
|
|
72
|
-
url: string;
|
|
73
|
-
};
|
|
74
|
-
interceptablePatterns: {
|
|
75
|
-
action?: Action;
|
|
76
|
-
regexPattern: string;
|
|
77
|
-
threshold?: number;
|
|
78
|
-
type: 'submit' | 'cancel' | 'redirect' | 'abort-load' | 'log';
|
|
79
|
-
}[];
|
|
80
|
-
javaScriptMessageHandler?: unknown;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Please use DecisionLayout instead
|
|
84
|
-
*/
|
|
85
|
-
export type DecisionStep = BaseStep & {
|
|
86
|
-
type: 'decision';
|
|
87
|
-
options?: DecisionStepOption[];
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated Please use DecisionLayout instead
|
|
91
|
-
*/
|
|
92
|
-
export type DecisionStepOption = {
|
|
93
|
-
title: string;
|
|
94
|
-
description?: string;
|
|
95
|
-
url: string;
|
|
96
|
-
disabled?: boolean;
|
|
97
|
-
};
|
|
98
|
-
export type FormErrors = Record<string, unknown> | string | undefined | null;
|
|
99
|
-
export type GlobalError = string | undefined | null;
|
|
100
|
-
export type ErrorResponseBody = {
|
|
101
|
-
error?: GlobalError;
|
|
102
|
-
validation?: FormErrors;
|
|
103
|
-
refreshFormUrl?: string;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated Please use the review layout component
|
|
107
|
-
*/
|
|
108
|
-
export type LegacyReviewStep = Omit<FormStep, 'actions' | 'schemas' | 'layout'> & {
|
|
109
|
-
reviewFields?: LegacyReviewFields;
|
|
110
|
-
actions?: Action[];
|
|
111
|
-
schemas?: Schema[];
|
|
112
|
-
};
|
|
113
|
-
export type LegacyReviewFields = {
|
|
114
|
-
title?: string;
|
|
115
|
-
fields: Array<{
|
|
116
|
-
title: string;
|
|
117
|
-
value: string;
|
|
118
|
-
}>;
|
|
119
|
-
};
|
|
120
|
-
export type LegacyFormStep = Step & {
|
|
121
|
-
type: 'form';
|
|
122
|
-
reviewFields?: LegacyReviewFields;
|
|
123
|
-
schemas?: Schema[];
|
|
124
|
-
actions?: Action[];
|
|
125
|
-
};
|
|
126
|
-
export declare const isBasicError: (error: FormErrors) => error is string | null;
|
|
127
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type Image = {
|
|
2
|
-
url: string;
|
|
3
|
-
text?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
};
|
|
6
|
-
export type Icon = {
|
|
7
|
-
name?: string;
|
|
8
|
-
text?: never;
|
|
9
|
-
} | {
|
|
10
|
-
name?: never;
|
|
11
|
-
text?: string;
|
|
12
|
-
};
|
|
13
|
-
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
14
|
-
export type Margin = Size;
|
|
15
|
-
export type Context = 'neutral' | 'warning' | 'positive' | 'negative';
|
|
16
|
-
export type Orientation = 'horizontal' | 'vertical';
|
|
17
|
-
export type Align = 'left' | 'right' | 'center';
|
|
18
|
-
export type HttpMethod = 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE';
|
|
19
|
-
export type Reference = {
|
|
20
|
-
$ref: string;
|
|
21
|
-
};
|
|
22
|
-
export type Alert = {
|
|
23
|
-
markdown: string;
|
|
24
|
-
context?: Context;
|
|
25
|
-
margin?: Margin;
|
|
26
|
-
};
|
|
27
|
-
export type Help = {
|
|
28
|
-
markdown: string;
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './core';
|
|
2
|
-
export * from './Action';
|
|
3
|
-
export * from './LayoutComponent';
|
|
4
|
-
export * from './Model';
|
|
5
|
-
export * from './Polling';
|
|
6
|
-
export * from './Step';
|
|
7
|
-
export * from './PersistAsync';
|
|
8
|
-
export * from './ValidationAsync';
|
|
9
|
-
export * from './Promotion';
|
|
10
|
-
export type { Schema, AllOfSchema, ArraySchema, BasicSchema, BlobSchema, BooleanSchema, IntegerSchema, NumberSchema, ObjectSchema, OneOfObjectSchema, OneOfSchema, PersistAsyncSchema, StringSchema, ListArraySchema, TupleArraySchema, ValidationAsyncSchema, } from './Schema';
|
|
11
|
-
export { isObjectSchema, isOneOfSchema, isAllOfSchema, isBlobSchema, isArraySchema, isTupleArraySchema, isListArraySchema, isValidationAsyncSchema, isPersistAsyncSchema, isBasicSchema, } from './Schema';
|
|
12
|
-
export type { FileUploadSchema, CameraDirection } from './FileUploadSchema';
|
|
13
|
-
export { isFileUploadSchema } from './FileUploadSchema';
|
|
14
|
-
export { isBasicError } from './Step';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './core';
|
|
2
|
-
export * from './Action';
|
|
3
|
-
export * from './LayoutComponent';
|
|
4
|
-
export * from './Model';
|
|
5
|
-
export * from './Polling';
|
|
6
|
-
export * from './Step';
|
|
7
|
-
export * from './PersistAsync';
|
|
8
|
-
export * from './ValidationAsync';
|
|
9
|
-
export * from './Promotion';
|
|
10
|
-
export { isObjectSchema, isOneOfSchema, isAllOfSchema, isBlobSchema, isArraySchema, isTupleArraySchema, isListArraySchema, isValidationAsyncSchema, isPersistAsyncSchema, isBasicSchema, } from './Schema';
|
|
11
|
-
export { isFileUploadSchema } from './FileUploadSchema';
|
|
12
|
-
export { isBasicError } from './Step';
|
package/build/field/Field.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export namespace FieldTypes {
|
|
2
|
-
const STRING: string;
|
|
3
|
-
const NUMBER: string;
|
|
4
|
-
const INTEGER: string;
|
|
5
|
-
const BOOLEAN: string;
|
|
6
|
-
const BLOB: string;
|
|
7
|
-
}
|
|
8
|
-
export namespace FieldFormats {
|
|
9
|
-
const DATE: string;
|
|
10
|
-
const PHONE: string;
|
|
11
|
-
const BASE_64_URL: string;
|
|
12
|
-
const PASSWORD: string;
|
|
13
|
-
const EMAIL: string;
|
|
14
|
-
const URI: string;
|
|
15
|
-
}
|
|
16
|
-
declare class Field extends Component<any, any, any> {
|
|
17
|
-
constructor(props: any);
|
|
18
|
-
state: {
|
|
19
|
-
focused: boolean;
|
|
20
|
-
changed: boolean;
|
|
21
|
-
error: any;
|
|
22
|
-
};
|
|
23
|
-
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
24
|
-
onFocus(value: any): void;
|
|
25
|
-
onBlur(value: any): void;
|
|
26
|
-
onChange(value: any): void;
|
|
27
|
-
validateValue(newValue: any): {};
|
|
28
|
-
objectSizeOf: (object: any) => number;
|
|
29
|
-
updateAlert(control: any): {
|
|
30
|
-
type: string;
|
|
31
|
-
content: any;
|
|
32
|
-
} | {
|
|
33
|
-
type: null;
|
|
34
|
-
content: null;
|
|
35
|
-
};
|
|
36
|
-
render(): JSX.Element;
|
|
37
|
-
}
|
|
38
|
-
declare namespace Field {
|
|
39
|
-
namespace propTypes {
|
|
40
|
-
const name: any;
|
|
41
|
-
const value: any;
|
|
42
|
-
const field: any;
|
|
43
|
-
const countryCode: any;
|
|
44
|
-
const onChange: any;
|
|
45
|
-
const onFocus: any;
|
|
46
|
-
const onBlur: any;
|
|
47
|
-
const errorMessage: any;
|
|
48
|
-
const warningMessage: any;
|
|
49
|
-
const label: any;
|
|
50
|
-
}
|
|
51
|
-
namespace defaultProps {
|
|
52
|
-
const countryCode_1: null;
|
|
53
|
-
export { countryCode_1 as countryCode };
|
|
54
|
-
const value_1: null;
|
|
55
|
-
export { value_1 as value };
|
|
56
|
-
const errorMessage_1: null;
|
|
57
|
-
export { errorMessage_1 as errorMessage };
|
|
58
|
-
const warningMessage_1: null;
|
|
59
|
-
export { warningMessage_1 as warningMessage };
|
|
60
|
-
const onFocus_1: null;
|
|
61
|
-
export { onFocus_1 as onFocus };
|
|
62
|
-
const onBlur_1: null;
|
|
63
|
-
export { onBlur_1 as onBlur };
|
|
64
|
-
const label_1: null;
|
|
65
|
-
export { label_1 as label };
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export default Field;
|
|
69
|
-
import { Component } from "react";
|