@wise/dynamic-flow-client 0.1.1 → 0.1.3
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/common/api/utils.d.ts +4 -0
- package/build/common/api/utils.js +13 -0
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.d.ts +11 -0
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.js +36 -0
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.d.ts +4 -0
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.js +13 -0
- package/build/common/contexts/fetcherContext/fetcherContext.d.ts +18 -0
- package/build/common/contexts/fetcherContext/fetcherContext.js +35 -0
- package/build/common/contexts/fetcherContext/index.d.ts +2 -0
- package/build/common/contexts/fetcherContext/index.js +2 -0
- package/build/common/contexts/fetcherContext/makeFetcher.d.ts +2 -0
- package/build/common/contexts/fetcherContext/makeFetcher.js +33 -0
- package/build/common/general/index.d.ts +2 -0
- package/build/common/general/index.js +22 -0
- package/build/common/hooks/useDebouncedFunction.d.ts +2 -0
- package/build/common/hooks/useDebouncedFunction.js +9 -0
- package/build/common/hooks/useDebouncedFunction.test.d.ts +1 -0
- package/build/common/hooks/useDebouncedFunction.test.js +59 -0
- package/build/common/hooks/usePersistAsync.d.ts +7 -0
- package/build/common/hooks/usePersistAsync.js +170 -0
- package/build/common/hooks/usePolling.d.ts +11 -0
- package/build/common/hooks/usePolling.js +48 -0
- package/build/common/hooks/usePrevious.d.ts +2 -0
- package/build/common/hooks/usePrevious.js +9 -0
- package/build/common/index.d.ts +4 -0
- package/build/common/index.js +4 -0
- package/build/common/logging/index.d.ts +22 -0
- package/build/common/logging/index.js +39 -0
- package/build/common/logging/spec.d.ts +1 -0
- package/build/common/logging/spec.js +45 -0
- package/build/common/messages.d.ts +8 -0
- package/build/common/messages.js +8 -0
- package/build/common/propsValues/dateMode.d.ts +4 -0
- package/build/common/propsValues/dateMode.js +4 -0
- package/build/common/propsValues/formControlType.d.ts +17 -0
- package/build/common/propsValues/formControlType.js +17 -0
- package/build/common/propsValues/monthFormat.d.ts +4 -0
- package/build/common/propsValues/monthFormat.js +4 -0
- package/build/common/propsValues/size.d.ts +7 -0
- package/build/common/propsValues/size.js +7 -0
- package/build/common/requirements.d.ts +10 -0
- package/build/common/requirements.js +50 -0
- package/build/common/schemaTypes/schemaTypes.d.ts +23 -0
- package/build/common/schemaTypes/schemaTypes.js +53 -0
- package/build/common/schemaTypes/shouldDebounceSchema.d.ts +2 -0
- package/build/common/schemaTypes/shouldDebounceSchema.js +6 -0
- package/build/common/stepTypes/stepTypes.d.ts +7 -0
- package/build/common/stepTypes/stepTypes.js +42 -0
- package/build/common/tracking/index.d.ts +15 -0
- package/build/common/tracking/index.js +33 -0
- package/build/common/tracking/spec.d.ts +1 -0
- package/build/common/tracking/spec.js +49 -0
- package/build/common/utils/file-utils.d.ts +4 -0
- package/build/common/utils/file-utils.js +45 -0
- package/build/common/utils/generate-random-id.d.ts +1 -0
- package/build/common/utils/generate-random-id.js +5 -0
- package/build/common/utils/generate-random-id.test.d.ts +1 -0
- package/build/common/utils/generate-random-id.test.js +12 -0
- package/build/common/validation/rule-validators/index.d.ts +10 -0
- package/build/common/validation/rule-validators/index.js +40 -0
- package/build/common/validation/rule-validators/spec.d.ts +1 -0
- package/build/common/validation/rule-validators/spec.js +145 -0
- package/build/common/validation/schema-validators/index.d.ts +9 -0
- package/build/common/validation/schema-validators/index.js +98 -0
- package/build/common/validation/schema-validators/spec.d.ts +1 -0
- package/build/common/validation/schema-validators/spec.js +137 -0
- package/build/common/validation/valid-model/index.d.ts +5 -0
- package/build/common/validation/valid-model/index.js +64 -0
- package/build/common/validation/valid-model/spec.d.ts +1 -0
- package/build/common/validation/valid-model/spec.js +605 -0
- package/build/common/validation/valid-model/utils.d.ts +11 -0
- package/build/common/validation/valid-model/utils.js +118 -0
- package/build/common/validation/validation-failures/index.d.ts +23 -0
- package/build/common/validation/validation-failures/index.js +140 -0
- package/build/common/validation/validation-failures/spec.d.ts +1 -0
- package/build/common/validation/validation-failures/spec.js +185 -0
- package/build/dynamic-flow-types/Action.d.ts +19 -0
- package/build/dynamic-flow-types/Action.js +1 -0
- package/build/dynamic-flow-types/FileUploadSchema.d.ts +23 -0
- package/build/dynamic-flow-types/FileUploadSchema.js +3 -0
- package/build/dynamic-flow-types/LayoutComponent.d.ts +129 -0
- package/build/dynamic-flow-types/LayoutComponent.js +1 -0
- package/build/dynamic-flow-types/Model.d.ts +12 -0
- package/build/dynamic-flow-types/Model.js +28 -0
- package/build/dynamic-flow-types/PersistAsync.d.ts +8 -0
- package/build/dynamic-flow-types/PersistAsync.js +1 -0
- package/build/dynamic-flow-types/Polling.d.ts +12 -0
- package/build/dynamic-flow-types/Polling.js +1 -0
- package/build/dynamic-flow-types/Promotion.d.ts +20 -0
- package/build/dynamic-flow-types/Promotion.js +1 -0
- package/build/dynamic-flow-types/Schema.d.ts +184 -0
- package/build/dynamic-flow-types/Schema.js +49 -0
- package/build/dynamic-flow-types/Step.d.ts +127 -0
- package/build/dynamic-flow-types/Step.js +4 -0
- package/build/dynamic-flow-types/ValidationAsync.d.ts +6 -0
- package/build/dynamic-flow-types/ValidationAsync.js +1 -0
- package/build/dynamic-flow-types/core.d.ts +29 -0
- package/build/dynamic-flow-types/core.js +1 -0
- package/build/dynamic-flow-types/index.d.ts +14 -0
- package/build/dynamic-flow-types/index.js +12 -0
- package/build/field/Field.d.ts +69 -0
- package/build/field/Field.js +311 -0
- package/build/field/index.d.ts +2 -0
- package/build/field/index.js +2 -0
- package/build/flow/DynamicFlow.d.ts +4 -0
- package/build/flow/DynamicFlow.js +368 -0
- package/build/flow/DynamicFlowStep.d.ts +9 -0
- package/build/flow/DynamicFlowStep.js +32 -0
- package/build/flow/errorBoundary/ErrorBoundary.d.ts +20 -0
- package/build/flow/errorBoundary/ErrorBoundary.js +45 -0
- package/build/flow/errorBoundary/ErrorBoundary.messages.d.ts +13 -0
- package/build/flow/errorBoundary/ErrorBoundary.messages.js +13 -0
- package/build/flow/errorBoundary/ErrorBoundaryAlert.d.ts +6 -0
- package/build/flow/errorBoundary/ErrorBoundaryAlert.js +12 -0
- package/build/flow/errorBoundary/index.d.ts +1 -0
- package/build/flow/errorBoundary/index.js +1 -0
- package/build/flow/fixtures/components/alert.d.ts +3 -0
- package/build/flow/fixtures/components/alert.js +31 -0
- package/build/flow/fixtures/components/box.d.ts +3 -0
- package/build/flow/fixtures/components/box.js +20 -0
- package/build/flow/fixtures/components/button.d.ts +3 -0
- package/build/flow/fixtures/components/button.js +65 -0
- package/build/flow/fixtures/components/columns.d.ts +3 -0
- package/build/flow/fixtures/components/columns.js +36 -0
- package/build/flow/fixtures/components/copyable.d.ts +3 -0
- package/build/flow/fixtures/components/copyable.js +22 -0
- package/build/flow/fixtures/components/decision.d.ts +3 -0
- package/build/flow/fixtures/components/decision.js +54 -0
- package/build/flow/fixtures/components/heading.d.ts +3 -0
- package/build/flow/fixtures/components/heading.js +14 -0
- package/build/flow/fixtures/components/image.d.ts +3 -0
- package/build/flow/fixtures/components/image.js +22 -0
- package/build/flow/fixtures/components/info.d.ts +3 -0
- package/build/flow/fixtures/components/info.js +17 -0
- package/build/flow/fixtures/components/list.d.ts +3 -0
- package/build/flow/fixtures/components/list.js +34 -0
- package/build/flow/fixtures/components/loading-indicator.d.ts +3 -0
- package/build/flow/fixtures/components/loading-indicator.js +16 -0
- package/build/flow/fixtures/components/paragraph.d.ts +3 -0
- package/build/flow/fixtures/components/paragraph.js +28 -0
- package/build/flow/fixtures/components/review.d.ts +3 -0
- package/build/flow/fixtures/components/review.js +60 -0
- package/build/flow/fixtures/examples/camera-capture.d.ts +3 -0
- package/build/flow/fixtures/examples/camera-capture.js +121 -0
- package/build/flow/fixtures/examples/recipient-update.d.ts +3 -0
- package/build/flow/fixtures/examples/recipient-update.js +250 -0
- package/build/flow/fixtures/examples/recipient.d.ts +3 -0
- package/build/flow/fixtures/examples/recipient.js +313 -0
- package/build/flow/fixtures/examples/single-file-upload.d.ts +3 -0
- package/build/flow/fixtures/examples/single-file-upload.js +96 -0
- package/build/flow/fixtures/examples/step-validation-errors.d.ts +3 -0
- package/build/flow/fixtures/examples/step-validation-errors.js +75 -0
- package/build/flow/fixtures/features/action-response.d.ts +3 -0
- package/build/flow/fixtures/features/action-response.js +29 -0
- package/build/flow/fixtures/features/external.d.ts +3 -0
- package/build/flow/fixtures/features/external.js +31 -0
- package/build/flow/fixtures/features/persist-async.d.ts +3 -0
- package/build/flow/fixtures/features/persist-async.js +44 -0
- package/build/flow/fixtures/features/polling.d.ts +3 -0
- package/build/flow/fixtures/features/polling.js +33 -0
- package/build/flow/fixtures/index.d.ts +42 -0
- package/build/flow/fixtures/index.js +66 -0
- package/build/flow/fixtures/responses/action-response-final.d.ts +3 -0
- package/build/flow/fixtures/responses/action-response-final.js +24 -0
- package/build/flow/fixtures/responses/action.d.ts +5 -0
- package/build/flow/fixtures/responses/action.js +2 -0
- package/build/flow/fixtures/responses/exit.d.ts +6 -0
- package/build/flow/fixtures/responses/exit.js +2 -0
- package/build/flow/fixtures/responses/recipient-update-final.d.ts +3 -0
- package/build/flow/fixtures/responses/recipient-update-final.js +24 -0
- package/build/flow/fixtures/schemas/basic-form.d.ts +3 -0
- package/build/flow/fixtures/schemas/basic-form.js +39 -0
- package/build/flow/fixtures/schemas/number-and-integer.d.ts +3 -0
- package/build/flow/fixtures/schemas/number-and-integer.js +41 -0
- package/build/flow/fixtures/schemas/one-of.d.ts +3 -0
- package/build/flow/fixtures/schemas/one-of.js +223 -0
- package/build/flow/fixtures/schemas/string-formats.d.ts +3 -0
- package/build/flow/fixtures/schemas/string-formats.js +58 -0
- package/build/flow/index.d.ts +1 -0
- package/build/flow/index.js +1 -0
- package/build/flow/response-parsers/index.d.ts +17 -0
- package/build/flow/response-parsers/index.js +112 -0
- package/build/flow/response-parsers/spec.d.ts +1 -0
- package/build/flow/response-parsers/spec.js +263 -0
- package/build/flow/stories/EditableDynamicFlow.d.ts +5 -0
- package/build/flow/stories/EditableDynamicFlow.js +61 -0
- package/build/flow/types.d.ts +77 -0
- package/build/flow/types.js +3 -0
- package/build/flow/useDebouncedRefresh/index.d.ts +1 -0
- package/build/flow/useDebouncedRefresh/index.js +1 -0
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.d.ts +5 -0
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.js +24 -0
- package/build/flow/useDynamicFlowState.d.ts +18 -0
- package/build/flow/useDynamicFlowState.js +111 -0
- package/build/flow/useLoader.d.ts +9 -0
- package/build/flow/useLoader.js +22 -0
- package/build/formControl/FormControl.d.ts +86 -0
- package/build/formControl/FormControl.js +241 -0
- package/build/formControl/index.d.ts +1 -0
- package/build/formControl/index.js +1 -0
- package/build/formControl/types.d.ts +57 -0
- package/build/formControl/types.js +1 -0
- package/build/formControl/value-utils.d.ts +9 -0
- package/build/formControl/value-utils.js +108 -0
- package/build/i18n/cs.json +8 -0
- package/build/i18n/de.json +34 -0
- package/build/i18n/en.json +38 -0
- package/build/i18n/es.json +34 -0
- package/build/i18n/fr.json +34 -0
- package/build/i18n/hu.json +34 -0
- package/build/i18n/id.json +34 -0
- package/build/i18n/index.d.ts +2 -0
- package/build/i18n/index.js +31 -0
- package/build/i18n/it.json +34 -0
- package/build/i18n/ja.json +34 -0
- package/build/i18n/pl.json +11 -0
- package/build/i18n/pt.json +34 -0
- package/build/i18n/ro.json +34 -0
- package/build/i18n/ru.json +34 -0
- package/build/i18n/th.json +34 -0
- package/build/i18n/tr.json +11 -0
- package/build/i18n/uk.json +8 -0
- package/build/i18n/zh-CN.json +34 -0
- package/build/i18n/zh.json +34 -0
- package/build/index.d.ts +12 -0
- package/build/index.js +11 -0
- package/build/jsonSchemaForm/JsonSchemaForm.d.ts +66 -0
- package/build/jsonSchemaForm/JsonSchemaForm.js +31 -0
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +14 -0
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +54 -0
- package/build/jsonSchemaForm/allOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/allOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +15 -0
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +25 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +16 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +26 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +18 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +141 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +24 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +18 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.d.ts +9 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.js +14 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.d.ts +6 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.js +85 -0
- package/build/jsonSchemaForm/arrayTypeSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +1 -0
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +22 -0
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +105 -0
- package/build/jsonSchemaForm/basicTypeSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/basicTypeSchema/index.js +1 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +31 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +79 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts +53 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +53 -0
- package/build/jsonSchemaForm/controlFeedback/index.d.ts +1 -0
- package/build/jsonSchemaForm/controlFeedback/index.js +1 -0
- package/build/jsonSchemaForm/genericSchema/GenericSchema.d.ts +19 -0
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +122 -0
- package/build/jsonSchemaForm/genericSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/genericSchema/index.js +1 -0
- package/build/jsonSchemaForm/help/Help.d.ts +8 -0
- package/build/jsonSchemaForm/help/Help.js +9 -0
- package/build/jsonSchemaForm/help/Help.messages.d.ts +8 -0
- package/build/jsonSchemaForm/help/Help.messages.js +8 -0
- package/build/jsonSchemaForm/help/index.d.ts +1 -0
- package/build/jsonSchemaForm/help/index.js +1 -0
- package/build/jsonSchemaForm/index.d.ts +1 -0
- package/build/jsonSchemaForm/index.js +1 -0
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +16 -0
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +78 -0
- package/build/jsonSchemaForm/objectSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/objectSchema/index.js +1 -0
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +15 -0
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +153 -0
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.d.ts +3 -0
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.js +40 -0
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.d.ts +2 -0
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.js +27 -0
- package/build/jsonSchemaForm/oneOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/oneOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.d.ts +3 -0
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.js +7 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +16 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +26 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +8 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +8 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.d.ts +21 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.js +168 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.d.ts +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.js +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.d.ts +20 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.js +127 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.d.ts +17 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.js +32 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.d.ts +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.js +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +1 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +9 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +72 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.d.ts +2 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.js +8 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.d.ts +7 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.js +27 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.d.ts +23 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.js +31 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.d.ts +9 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.js +32 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +8 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +55 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +16 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +13 -0
- package/build/jsonSchemaForm/readOnlySchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/readOnlySchema/index.js +1 -0
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +25 -0
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +106 -0
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.d.ts +3 -0
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.js +73 -0
- package/build/jsonSchemaForm/schemaFormControl/index.d.ts +1 -0
- package/build/jsonSchemaForm/schemaFormControl/index.js +1 -0
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.d.ts +40 -0
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.js +89 -0
- package/build/jsonSchemaForm/schemas/allOf.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/allOf.json.js +119 -0
- package/build/jsonSchemaForm/schemas/audRecipient.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/audRecipient.json.js +1104 -0
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.js +37 -0
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.js +36 -0
- package/build/jsonSchemaForm/schemas/currency.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/currency.json.js +48 -0
- package/build/jsonSchemaForm/schemas/oneOf.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/oneOf.json.js +119 -0
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.js +53 -0
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.js +56 -0
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.js +102 -0
- package/build/jsonSchemaForm/schemas/simple.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/simple.json.js +48 -0
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.js +71 -0
- package/build/jsonSchemaForm/schemas/validationAsync.json.d.ts +3 -0
- package/build/jsonSchemaForm/schemas/validationAsync.json.js +23 -0
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +17 -0
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +149 -0
- package/build/jsonSchemaForm/validationAsyncSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +1 -0
- package/build/layout/DynamicLayout.d.ts +17 -0
- package/build/layout/DynamicLayout.js +75 -0
- package/build/layout/alert/index.d.ts +6 -0
- package/build/layout/alert/index.js +29 -0
- package/build/layout/box/index.d.ts +8 -0
- package/build/layout/box/index.js +41 -0
- package/build/layout/button/index.d.ts +8 -0
- package/build/layout/button/index.js +58 -0
- package/build/layout/columns/index.d.ts +8 -0
- package/build/layout/columns/index.js +38 -0
- package/build/layout/decision/index.d.ts +9 -0
- package/build/layout/decision/index.js +38 -0
- package/build/layout/divider/index.d.ts +7 -0
- package/build/layout/divider/index.js +9 -0
- package/build/layout/external/DynamicExternal.d.ts +8 -0
- package/build/layout/external/DynamicExternal.js +30 -0
- package/build/layout/external/DynamicExternal.messages.d.ts +8 -0
- package/build/layout/external/DynamicExternal.messages.js +8 -0
- package/build/layout/external/index.d.ts +1 -0
- package/build/layout/external/index.js +1 -0
- package/build/layout/external/useExternalStepPolling.d.ts +11 -0
- package/build/layout/external/useExternalStepPolling.js +68 -0
- package/build/layout/form/index.d.ts +8 -0
- package/build/layout/form/index.js +22 -0
- package/build/layout/heading/index.d.ts +6 -0
- package/build/layout/heading/index.js +31 -0
- package/build/layout/icon/index.d.ts +7 -0
- package/build/layout/icon/index.js +22 -0
- package/build/layout/image/index.d.ts +6 -0
- package/build/layout/image/index.js +126 -0
- package/build/layout/index.d.ts +1 -0
- package/build/layout/index.js +1 -0
- package/build/layout/info/index.d.ts +7 -0
- package/build/layout/info/index.js +19 -0
- package/build/layout/layouts/all.json.d.ts +3 -0
- package/build/layout/layouts/all.json.js +176 -0
- package/build/layout/layouts/final-step-layout.json.d.ts +3 -0
- package/build/layout/layouts/final-step-layout.json.js +39 -0
- package/build/layout/layouts/finalStep.json.d.ts +3 -0
- package/build/layout/layouts/finalStep.json.js +24 -0
- package/build/layout/layouts/list.json.d.ts +3 -0
- package/build/layout/layouts/list.json.js +33 -0
- package/build/layout/layouts/pay-in.json.d.ts +3 -0
- package/build/layout/layouts/pay-in.json.js +97 -0
- package/build/layout/layouts/review.json.d.ts +3 -0
- package/build/layout/layouts/review.json.js +160 -0
- package/build/layout/layouts/success.json.d.ts +3 -0
- package/build/layout/layouts/success.json.js +66 -0
- package/build/layout/list/index.d.ts +8 -0
- package/build/layout/list/index.js +30 -0
- package/build/layout/loading-indicator/index.d.ts +7 -0
- package/build/layout/loading-indicator/index.js +10 -0
- package/build/layout/loading-indicator/spec.d.ts +1 -0
- package/build/layout/loading-indicator/spec.js +11 -0
- package/build/layout/paragraph/DynamicParagraph.d.ts +7 -0
- package/build/layout/paragraph/DynamicParagraph.js +42 -0
- package/build/layout/paragraph/DynamicParagraph.messages.d.ts +13 -0
- package/build/layout/paragraph/DynamicParagraph.messages.js +13 -0
- package/build/layout/paragraph/index.d.ts +1 -0
- package/build/layout/paragraph/index.js +1 -0
- package/build/layout/paragraph/useSnackBarIfAvailable.d.ts +10 -0
- package/build/layout/paragraph/useSnackBarIfAvailable.js +9 -0
- package/build/layout/review/index.d.ts +9 -0
- package/build/layout/review/index.js +33 -0
- package/build/layout/utils.d.ts +7 -0
- package/build/layout/utils.js +31 -0
- package/build/main.css +143 -0
- package/build/schema.d.ts +1 -0
- package/build/schema.js +1 -0
- package/build/step/cameraStep/CameraStep.d.ts +8 -0
- package/build/step/cameraStep/CameraStep.js +125 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.d.ts +16 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +122 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +18 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +18 -0
- package/build/step/cameraStep/cameraCapture/components/index.d.ts +8 -0
- package/build/step/cameraStep/cameraCapture/components/index.js +28 -0
- package/build/step/cameraStep/cameraCapture/hooks/index.d.ts +4 -0
- package/build/step/cameraStep/cameraCapture/hooks/index.js +80 -0
- package/build/step/cameraStep/cameraCapture/index.d.ts +1 -0
- package/build/step/cameraStep/cameraCapture/index.js +1 -0
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.d.ts +11 -0
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +78 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +3 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +19 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +13 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +13 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +6 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +21 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +18 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +18 -0
- package/build/step/cameraStep/cameraCapture/screens/index.d.ts +2 -0
- package/build/step/cameraStep/cameraCapture/screens/index.js +2 -0
- package/build/step/cameraStep/cameraCapture/tracking/index.d.ts +7 -0
- package/build/step/cameraStep/cameraCapture/tracking/index.js +101 -0
- package/build/step/cameraStep/cameraCapture/utils/index.d.ts +8 -0
- package/build/step/cameraStep/cameraCapture/utils/index.js +103 -0
- package/build/step/cameraStep/index.d.ts +1 -0
- package/build/step/cameraStep/index.js +1 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +7 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +64 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +23 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +23 -0
- package/build/step/externalConfirmationStep/index.d.ts +1 -0
- package/build/step/externalConfirmationStep/index.js +1 -0
- package/build/step/features/external/useExternal.d.ts +4 -0
- package/build/step/features/external/useExternal.js +15 -0
- package/build/step/features/index.d.ts +2 -0
- package/build/step/features/index.js +2 -0
- package/build/step/features/polling/useStepPolling.d.ts +2 -0
- package/build/step/features/polling/useStepPolling.js +44 -0
- package/build/step/index.d.ts +3 -0
- package/build/step/index.js +3 -0
- package/build/step/layoutStep/LayoutStep.d.ts +11 -0
- package/build/step/layoutStep/LayoutStep.js +34 -0
- package/build/step/layoutStep/index.d.ts +1 -0
- package/build/step/layoutStep/index.js +1 -0
- package/build/step/layoutStep/layoutService/convertStepToLayout.d.ts +8 -0
- package/build/step/layoutStep/layoutService/convertStepToLayout.js +217 -0
- package/build/step/layoutStep/layoutService/index.d.ts +2 -0
- package/build/step/layoutStep/layoutService/index.js +2 -0
- package/build/step/layoutStep/layoutService/inlineReferences.d.ts +7 -0
- package/build/step/layoutStep/layoutService/inlineReferences.js +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
displayOrder: ['multiUpload'],
|
|
4
|
+
properties: {
|
|
5
|
+
multiUpload: {
|
|
6
|
+
type: 'array',
|
|
7
|
+
minItems: 1,
|
|
8
|
+
maxItems: 5,
|
|
9
|
+
title: 'Multi upload title',
|
|
10
|
+
items: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
persistAsync: {
|
|
13
|
+
url: 'http://localhost:3001/v1/save-file/',
|
|
14
|
+
method: 'POST',
|
|
15
|
+
param: 'bodyAttribute',
|
|
16
|
+
idProperty: 'responseKey',
|
|
17
|
+
schema: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
format: 'base64url',
|
|
20
|
+
maxSize: 5242000,
|
|
21
|
+
title: 'Invoice (optional)',
|
|
22
|
+
description: 'PNG, JPG, or PDF, less than 5mb',
|
|
23
|
+
accepts: ['image/png', 'image/jpg', 'application/pdf'],
|
|
24
|
+
validationMessages: {
|
|
25
|
+
maxSize: 'Your file is too large'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
validationMessages: {
|
|
31
|
+
minItems: 'minimum items not met error (from schema)',
|
|
32
|
+
maxItems: 'maximum items uploaded already (from schema)'
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export default schema;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
displayOrder: ['multiUpload'],
|
|
4
|
+
properties: {
|
|
5
|
+
multiUpload: {
|
|
6
|
+
type: 'array',
|
|
7
|
+
minItems: 1,
|
|
8
|
+
maxItems: 5,
|
|
9
|
+
title: 'Multi upload title',
|
|
10
|
+
items: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
persistAsync: {
|
|
13
|
+
url: 'http://localhost:3001/v1/save-file/',
|
|
14
|
+
method: 'POST',
|
|
15
|
+
param: 'bodyAttribute',
|
|
16
|
+
idProperty: 'responseKey',
|
|
17
|
+
schema: {
|
|
18
|
+
type: 'blob',
|
|
19
|
+
maxSize: 5242000,
|
|
20
|
+
title: 'Invoice (optional)',
|
|
21
|
+
description: 'PNG, JPG, or PDF, less than 5mb',
|
|
22
|
+
accepts: ['image/png', 'image/jpg', 'application/pdf'],
|
|
23
|
+
validationMessages: {
|
|
24
|
+
maxSize: 'Your file is too large'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
validationMessages: {
|
|
30
|
+
minItems: 'minimum items not met error (from schema)',
|
|
31
|
+
maxItems: 'maximum items uploaded already (from schema)'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export default schema;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
displayOrder: ['currency'],
|
|
4
|
+
properties: {
|
|
5
|
+
currency: {
|
|
6
|
+
title: 'Currency',
|
|
7
|
+
type: 'string',
|
|
8
|
+
oneOf: [
|
|
9
|
+
{ title: 'EUR', icon: { name: 'flag-eur' }, description: 'Euro', "const": 'EUR' },
|
|
10
|
+
{
|
|
11
|
+
title: 'GBP',
|
|
12
|
+
icon: { name: 'flag-gbp' },
|
|
13
|
+
description: 'British pound',
|
|
14
|
+
"const": 'GBP'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
title: 'USD',
|
|
18
|
+
icon: { name: 'flag-usd' },
|
|
19
|
+
description: 'United States dollar',
|
|
20
|
+
"const": 'USD'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: 'ARS',
|
|
24
|
+
icon: { name: 'flag-ars' },
|
|
25
|
+
description: 'Argentine peso',
|
|
26
|
+
"const": 'ARS'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: 'AUD',
|
|
30
|
+
icon: { name: 'flag-aud' },
|
|
31
|
+
description: 'Australian dollar',
|
|
32
|
+
"const": 'AUD'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: 'AED',
|
|
36
|
+
icon: { name: 'flag-aed' },
|
|
37
|
+
description: 'United Arab Emirates dirham',
|
|
38
|
+
"const": 'AED'
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
validationMessages: { required: 'Please enter currency.' },
|
|
42
|
+
refreshFormOnChange: true,
|
|
43
|
+
"default": 'EUR'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
required: ['currency']
|
|
47
|
+
};
|
|
48
|
+
export default schema;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
required: ['name', 'details'],
|
|
4
|
+
displayOrder: ['name', 'bankDetails', 'details'],
|
|
5
|
+
properties: {
|
|
6
|
+
name: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
title: 'Full name'
|
|
9
|
+
},
|
|
10
|
+
bankDetails: {
|
|
11
|
+
title: 'Bank type',
|
|
12
|
+
placeholder: 'Please select an account type',
|
|
13
|
+
control: 'tab',
|
|
14
|
+
oneOf: [
|
|
15
|
+
{
|
|
16
|
+
title: 'Bank Code',
|
|
17
|
+
type: 'object',
|
|
18
|
+
required: ['code'],
|
|
19
|
+
displayOrder: ['code'],
|
|
20
|
+
properties: {
|
|
21
|
+
code: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
title: 'Code',
|
|
24
|
+
"default": 'SOIWEUWQE'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: 'Bank Number',
|
|
30
|
+
type: 'object',
|
|
31
|
+
required: ['bankNumber', 'bankSerial'],
|
|
32
|
+
displayOrder: ['bankNumber', 'bankSerial'],
|
|
33
|
+
properties: {
|
|
34
|
+
bankNumber: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
title: 'Bank Number',
|
|
37
|
+
displayFormat: '**-**-**',
|
|
38
|
+
minLength: 6,
|
|
39
|
+
maxLength: 7
|
|
40
|
+
},
|
|
41
|
+
bankSerial: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
title: 'Bank Serial',
|
|
44
|
+
minLength: 8,
|
|
45
|
+
maxLength: 10
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: 'Bank Details',
|
|
51
|
+
type: 'object',
|
|
52
|
+
required: ['bankId', 'bankLicense'],
|
|
53
|
+
displayOrder: ['bankId', 'bankLicense', 'bankName'],
|
|
54
|
+
properties: {
|
|
55
|
+
bankId: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
title: 'Bank ID',
|
|
58
|
+
displayFormat: '**-**-**',
|
|
59
|
+
minLength: 6,
|
|
60
|
+
maxLength: 7
|
|
61
|
+
},
|
|
62
|
+
bankLicense: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
title: 'Bank License',
|
|
65
|
+
minLength: 8,
|
|
66
|
+
maxLength: 10
|
|
67
|
+
},
|
|
68
|
+
bankName: {
|
|
69
|
+
type: 'string',
|
|
70
|
+
title: 'Bank Name',
|
|
71
|
+
minLength: 8,
|
|
72
|
+
maxLength: 10
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
details: {
|
|
79
|
+
title: 'Account type',
|
|
80
|
+
oneOf: [
|
|
81
|
+
{
|
|
82
|
+
title: 'IBAN',
|
|
83
|
+
type: 'object',
|
|
84
|
+
required: ['iban'],
|
|
85
|
+
displayOrder: ['iban'],
|
|
86
|
+
properties: {
|
|
87
|
+
iban: {
|
|
88
|
+
type: 'string',
|
|
89
|
+
title: 'IBAN',
|
|
90
|
+
"default": 'ABCD1234EF123456'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: 'Sort code & Account number',
|
|
96
|
+
type: 'object',
|
|
97
|
+
required: ['sortCode', 'accountNumber'],
|
|
98
|
+
displayOrder: ['sortCode', 'accountNumber'],
|
|
99
|
+
properties: {
|
|
100
|
+
sortCode: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
title: 'Sort code',
|
|
103
|
+
displayFormat: '**-**-**',
|
|
104
|
+
minLength: 6,
|
|
105
|
+
maxLength: 7
|
|
106
|
+
},
|
|
107
|
+
accountNumber: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
title: 'Account number',
|
|
110
|
+
minLength: 8,
|
|
111
|
+
maxLength: 10
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
export default schema;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
allOf: [
|
|
3
|
+
{
|
|
4
|
+
title: 'Recipient Bank Details',
|
|
5
|
+
oneOf: [
|
|
6
|
+
{
|
|
7
|
+
title: 'Sort Code Tab',
|
|
8
|
+
type: 'object',
|
|
9
|
+
displayOrder: ['name', 'sortCode', 'account', 'type'],
|
|
10
|
+
properties: {
|
|
11
|
+
name: {
|
|
12
|
+
title: 'Full name',
|
|
13
|
+
type: 'string'
|
|
14
|
+
},
|
|
15
|
+
sortcode: {
|
|
16
|
+
title: 'Sort Code',
|
|
17
|
+
type: 'string'
|
|
18
|
+
},
|
|
19
|
+
account: {
|
|
20
|
+
title: 'Account number',
|
|
21
|
+
type: 'string'
|
|
22
|
+
},
|
|
23
|
+
type: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
"const": 'SortCode'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: 'IBAN Tab',
|
|
31
|
+
type: 'object',
|
|
32
|
+
displayOrder: ['name', 'iban', 'type'],
|
|
33
|
+
properties: {
|
|
34
|
+
name: {
|
|
35
|
+
title: 'Full name',
|
|
36
|
+
type: 'string'
|
|
37
|
+
},
|
|
38
|
+
iban: {
|
|
39
|
+
title: 'IBAN',
|
|
40
|
+
type: 'string'
|
|
41
|
+
},
|
|
42
|
+
type: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
"const": 'Iban'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
control: 'tab'
|
|
50
|
+
},
|
|
51
|
+
]
|
|
52
|
+
};
|
|
53
|
+
export default schema;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
title: 'Details',
|
|
3
|
+
alert: {
|
|
4
|
+
context: 'positive',
|
|
5
|
+
markdown: 'Some alert here!'
|
|
6
|
+
},
|
|
7
|
+
oneOf: [
|
|
8
|
+
{
|
|
9
|
+
title: 'Name details',
|
|
10
|
+
type: 'object',
|
|
11
|
+
displayOrder: ['name'],
|
|
12
|
+
properties: {
|
|
13
|
+
name: {
|
|
14
|
+
title: 'Name',
|
|
15
|
+
type: 'string'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: 'Address details',
|
|
21
|
+
type: 'object',
|
|
22
|
+
displayOrder: ['name'],
|
|
23
|
+
properties: {
|
|
24
|
+
name: {
|
|
25
|
+
title: 'Address',
|
|
26
|
+
type: 'string'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: 'General details',
|
|
32
|
+
description: 'Tell us about yourself',
|
|
33
|
+
type: 'object',
|
|
34
|
+
promoted: true,
|
|
35
|
+
displayOrder: ['name', 'image'],
|
|
36
|
+
properties: {
|
|
37
|
+
name: {
|
|
38
|
+
title: 'Hobbies',
|
|
39
|
+
type: 'string'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
image: {
|
|
43
|
+
url: 'https://wise.com/public-resources/assets/flags/square/gbp.svg'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
control: 'tab',
|
|
48
|
+
promotion: {
|
|
49
|
+
other: {
|
|
50
|
+
title: 'Select a different group',
|
|
51
|
+
icon: { name: 'bank' },
|
|
52
|
+
heading: { text: 'Other details' }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export default schema;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
allOf: [
|
|
3
|
+
{
|
|
4
|
+
type: 'object',
|
|
5
|
+
displayOrder: ['email'],
|
|
6
|
+
properties: {
|
|
7
|
+
email: {
|
|
8
|
+
title: 'Their email',
|
|
9
|
+
type: 'string',
|
|
10
|
+
placeholder: 'example@example.ex'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: 'Recipient Bank Details',
|
|
16
|
+
oneOf: [
|
|
17
|
+
{
|
|
18
|
+
title: 'Sort Code',
|
|
19
|
+
type: 'object',
|
|
20
|
+
displayOrder: ['name', 'sortcode', 'account', 'type'],
|
|
21
|
+
properties: {
|
|
22
|
+
name: {
|
|
23
|
+
title: 'Full name',
|
|
24
|
+
type: 'string'
|
|
25
|
+
},
|
|
26
|
+
sortcode: {
|
|
27
|
+
title: 'Sort Code',
|
|
28
|
+
type: 'string'
|
|
29
|
+
},
|
|
30
|
+
account: {
|
|
31
|
+
title: 'Account number',
|
|
32
|
+
type: 'string'
|
|
33
|
+
},
|
|
34
|
+
type: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
"const": 'SortCode'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: 'IBAN',
|
|
42
|
+
type: 'object',
|
|
43
|
+
displayOrder: ['name', 'iban', 'type'],
|
|
44
|
+
properties: {
|
|
45
|
+
name: {
|
|
46
|
+
title: 'Full name',
|
|
47
|
+
type: 'string'
|
|
48
|
+
},
|
|
49
|
+
iban: {
|
|
50
|
+
title: 'IBAN',
|
|
51
|
+
type: 'string'
|
|
52
|
+
},
|
|
53
|
+
type: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
"const": 'Iban'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: 'General details',
|
|
61
|
+
description: 'Tell us about yourself',
|
|
62
|
+
type: 'object',
|
|
63
|
+
promoted: true,
|
|
64
|
+
alert: {
|
|
65
|
+
context: 'neutral',
|
|
66
|
+
markdown: "Enter your recipient's email above and we'll send them a link with clear instructions to claim the money securely."
|
|
67
|
+
},
|
|
68
|
+
displayOrder: ['name', 'type'],
|
|
69
|
+
properties: {
|
|
70
|
+
name: {
|
|
71
|
+
title: 'Full name',
|
|
72
|
+
type: 'string'
|
|
73
|
+
},
|
|
74
|
+
type: {
|
|
75
|
+
type: 'string',
|
|
76
|
+
"const": 'Email'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
image: {
|
|
80
|
+
url: 'https://picsum.photos/id/237/200/300'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
control: 'tab',
|
|
85
|
+
promotion: {
|
|
86
|
+
"default": 'other',
|
|
87
|
+
checkedMeans: 'other',
|
|
88
|
+
control: 'checkbox',
|
|
89
|
+
other: {
|
|
90
|
+
title: 'I know their bank details',
|
|
91
|
+
icon: {
|
|
92
|
+
name: 'bank'
|
|
93
|
+
},
|
|
94
|
+
heading: {
|
|
95
|
+
text: 'Bank details'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
]
|
|
101
|
+
};
|
|
102
|
+
export default schema;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
title: 'Object schema',
|
|
3
|
+
type: 'object',
|
|
4
|
+
alert: {
|
|
5
|
+
context: 'warning',
|
|
6
|
+
markdown: 'Some **markdown** goes here'
|
|
7
|
+
},
|
|
8
|
+
properties: {
|
|
9
|
+
number: {
|
|
10
|
+
type: 'number',
|
|
11
|
+
title: 'Number input',
|
|
12
|
+
help: {
|
|
13
|
+
markdown: 'Please see some help [here](https://transferwise.github.io/neptune-web/components/dynamicForms/JsonSchemaForm)'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
string: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
title: 'Text input'
|
|
19
|
+
},
|
|
20
|
+
select: {
|
|
21
|
+
type: 'integer',
|
|
22
|
+
title: 'Select',
|
|
23
|
+
control: 'radio',
|
|
24
|
+
placeholder: 'Favourite number?',
|
|
25
|
+
oneOf: [
|
|
26
|
+
{
|
|
27
|
+
title: 'One',
|
|
28
|
+
"const": 1,
|
|
29
|
+
description: 'The first number'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'Two',
|
|
33
|
+
"const": 2,
|
|
34
|
+
description: 'The second number'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: 'Three',
|
|
38
|
+
"const": 3,
|
|
39
|
+
description: 'The third number',
|
|
40
|
+
disabled: true
|
|
41
|
+
},
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
required: ['number', 'string', 'select'],
|
|
46
|
+
displayOrder: ['number', 'string', 'select']
|
|
47
|
+
};
|
|
48
|
+
export default schema;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
title: 'Object schema',
|
|
3
|
+
type: 'object',
|
|
4
|
+
displayOrder: ['number', 'string', 'select'],
|
|
5
|
+
properties: {
|
|
6
|
+
number: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
title: 'Number input',
|
|
9
|
+
persistAsync: {
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/v1/cards',
|
|
12
|
+
param: 'cardNumber',
|
|
13
|
+
idProperty: 'cardToken',
|
|
14
|
+
schema: {
|
|
15
|
+
title: 'Card Number',
|
|
16
|
+
format: 'base64url',
|
|
17
|
+
type: 'string'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
string: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
title: 'Text input',
|
|
24
|
+
persistAsync: {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
url: '/v1/cards',
|
|
27
|
+
param: 'cardNumber',
|
|
28
|
+
idProperty: 'cardToken',
|
|
29
|
+
schema: {
|
|
30
|
+
title: 'Card Number',
|
|
31
|
+
type: 'string',
|
|
32
|
+
placeholder: '1234567890123456',
|
|
33
|
+
validationMessages: {
|
|
34
|
+
minLength: 'Card number is too short!',
|
|
35
|
+
maxLength: 'Card number is too long!',
|
|
36
|
+
pattern: 'Card number is invalid!'
|
|
37
|
+
},
|
|
38
|
+
pattern: '^[0-9*]{13,19}$',
|
|
39
|
+
minLength: 13,
|
|
40
|
+
maxLength: 19
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
select: {
|
|
45
|
+
type: 'integer',
|
|
46
|
+
title: 'Select',
|
|
47
|
+
control: 'radio',
|
|
48
|
+
placeholder: 'Favourite number?',
|
|
49
|
+
oneOf: [
|
|
50
|
+
{
|
|
51
|
+
title: 'One',
|
|
52
|
+
"const": 1,
|
|
53
|
+
description: 'The first number'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: 'Two',
|
|
57
|
+
"const": 2,
|
|
58
|
+
description: 'The second number'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: 'Three',
|
|
62
|
+
"const": 3,
|
|
63
|
+
description: 'The third number',
|
|
64
|
+
disabled: true
|
|
65
|
+
},
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
required: ['number', 'string', 'select']
|
|
70
|
+
};
|
|
71
|
+
export default schema;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var schema = {
|
|
2
|
+
title: 'Object schema',
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
iban: {
|
|
6
|
+
type: 'string',
|
|
7
|
+
title: 'IBAN',
|
|
8
|
+
description: 'IBAN is the international bank number.',
|
|
9
|
+
validationAsync: {
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/v1/iban/validate',
|
|
12
|
+
param: 'iban'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
number: {
|
|
16
|
+
type: 'number',
|
|
17
|
+
title: 'Number'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
required: ['iban'],
|
|
21
|
+
displayOrder: ['iban', 'number']
|
|
22
|
+
};
|
|
23
|
+
export default schema;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BasicModel } from '../../dynamic-flow-types';
|
|
3
|
+
import { ValidationAsyncSchema as ValidationAsyncSchemaType } from '../../dynamic-flow-types/Schema';
|
|
4
|
+
import { GenericSchemaProps } from '../genericSchema/GenericSchema';
|
|
5
|
+
declare const ValidationAsyncSchema: {
|
|
6
|
+
(props: ValidationAsyncSchemaProps): JSX.Element;
|
|
7
|
+
defaultProps: {
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type ValidationAsyncSchemaProps = Omit<GenericSchemaProps, 'schema' | 'model' | 'errors'> & {
|
|
12
|
+
schema: ValidationAsyncSchemaType;
|
|
13
|
+
model: BasicModel | null;
|
|
14
|
+
errors: string | null;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export default ValidationAsyncSchema;
|