@wise/dynamic-flow-client 0.4.1 → 0.4.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/main.js +9606 -0
- package/build/main.min.js +31 -0
- package/build/types/index.d.ts +11 -15
- package/build/types/types/index.d.ts +15 -0
- package/package.json +6 -5
- package/build/common/constants/DateMode.js +0 -8
- package/build/common/constants/DateMode.js.map +0 -1
- package/build/common/constants/FormControlType.js +0 -21
- package/build/common/constants/FormControlType.js.map +0 -1
- package/build/common/constants/MonthFormat.js +0 -8
- package/build/common/constants/MonthFormat.js.map +0 -1
- package/build/common/constants/SchemaType.js +0 -15
- package/build/common/constants/SchemaType.js.map +0 -1
- package/build/common/constants/Size.js +0 -11
- package/build/common/constants/Size.js.map +0 -1
- package/build/common/constants/index.js +0 -22
- package/build/common/constants/index.js.map +0 -1
- package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +0 -30
- package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js.map +0 -1
- package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +0 -20
- package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js.map +0 -1
- package/build/common/contexts/eventsContext/EventsContext.js +0 -23
- package/build/common/contexts/eventsContext/EventsContext.js.map +0 -1
- package/build/common/contexts/fetcherContexts/FetcherContexts.js +0 -30
- package/build/common/contexts/fetcherContexts/FetcherContexts.js.map +0 -1
- package/build/common/contexts/index.js +0 -21
- package/build/common/contexts/index.js.map +0 -1
- package/build/common/contexts/logContext/LogContext.js +0 -28
- package/build/common/contexts/logContext/LogContext.js.map +0 -1
- package/build/common/hooks/index.js +0 -24
- package/build/common/hooks/index.js.map +0 -1
- package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +0 -14
- package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js.map +0 -1
- package/build/common/hooks/useExternal/useExternal.js +0 -20
- package/build/common/hooks/useExternal/useExternal.js.map +0 -1
- package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +0 -63
- package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js.map +0 -1
- package/build/common/hooks/usePersistAsync/usePersistAsync.js +0 -99
- package/build/common/hooks/usePersistAsync/usePersistAsync.js.map +0 -1
- package/build/common/hooks/usePolling/usePolling.js +0 -53
- package/build/common/hooks/usePolling/usePolling.js.map +0 -1
- package/build/common/hooks/usePrevious/usePrevious.js +0 -13
- package/build/common/hooks/usePrevious/usePrevious.js.map +0 -1
- package/build/common/hooks/useStepPolling/useStepPolling.js +0 -50
- package/build/common/hooks/useStepPolling/useStepPolling.js.map +0 -1
- package/build/common/makeFetcher/index.js +0 -18
- package/build/common/makeFetcher/index.js.map +0 -1
- package/build/common/makeFetcher/makeFetcher.js +0 -24
- package/build/common/makeFetcher/makeFetcher.js.map +0 -1
- package/build/common/messages.js +0 -11
- package/build/common/messages.js.map +0 -1
- package/build/common/utils/api-utils.js +0 -20
- package/build/common/utils/api-utils.js.map +0 -1
- package/build/common/utils/date-utils.js +0 -28
- package/build/common/utils/date-utils.js.map +0 -1
- package/build/common/utils/debounce.js +0 -39
- package/build/common/utils/debounce.js.map +0 -1
- package/build/common/utils/file-utils.js +0 -39
- package/build/common/utils/file-utils.js.map +0 -1
- package/build/common/utils/id-utils.js +0 -9
- package/build/common/utils/id-utils.js.map +0 -1
- package/build/common/utils/index.js +0 -25
- package/build/common/utils/index.js.map +0 -1
- package/build/common/utils/is-equal.js +0 -26
- package/build/common/utils/is-equal.js.map +0 -1
- package/build/common/utils/schema-utils.js +0 -56
- package/build/common/utils/schema-utils.js.map +0 -1
- package/build/common/utils/step-utils.js +0 -48
- package/build/common/utils/step-utils.js.map +0 -1
- package/build/common/validators/index.js +0 -29
- package/build/common/validators/index.js.map +0 -1
- package/build/common/validators/models/model-validators.js +0 -70
- package/build/common/validators/models/model-validators.js.map +0 -1
- package/build/common/validators/models/models.utils.js +0 -118
- package/build/common/validators/models/models.utils.js.map +0 -1
- package/build/common/validators/schemas/schema-validators.js +0 -100
- package/build/common/validators/schemas/schema-validators.js.map +0 -1
- package/build/common/validators/types/type-validators.js +0 -22
- package/build/common/validators/types/type-validators.js.map +0 -1
- package/build/common/validators/validationFailures/validation-failures.js +0 -152
- package/build/common/validators/validationFailures/validation-failures.js.map +0 -1
- package/build/common/validators/validationFailures/validation-failures.utils.js +0 -50
- package/build/common/validators/validationFailures/validation-failures.utils.js.map +0 -1
- package/build/common/validators/values/value-validators.js +0 -8
- package/build/common/validators/values/value-validators.js.map +0 -1
- package/build/dynamicFlow/DynamicFlow.js +0 -251
- package/build/dynamicFlow/DynamicFlow.js.map +0 -1
- package/build/dynamicFlow/DynamicFlowStep.js +0 -26
- package/build/dynamicFlow/DynamicFlowStep.js.map +0 -1
- package/build/dynamicFlow/DynamicFlowTypes.js +0 -9
- package/build/dynamicFlow/DynamicFlowTypes.js.map +0 -1
- package/build/dynamicFlow/index.js +0 -9
- package/build/dynamicFlow/index.js.map +0 -1
- package/build/dynamicFlow/stories/DynamicFlow.story.js +0 -37
- package/build/dynamicFlow/stories/DynamicFlow.story.js.map +0 -1
- package/build/dynamicFlow/stories/EditableDynamicFlow.js +0 -55
- package/build/dynamicFlow/stories/EditableDynamicFlow.js.map +0 -1
- package/build/dynamicFlow/stories/fixtureFetcher.js +0 -61
- package/build/dynamicFlow/stories/fixtureFetcher.js.map +0 -1
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +0 -30
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js.map +0 -1
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +0 -16
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js.map +0 -1
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +0 -19
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js.map +0 -1
- package/build/dynamicFlow/utils/index.js +0 -27
- package/build/dynamicFlow/utils/index.js.map +0 -1
- package/build/dynamicFlow/utils/responseParsers/response-parsers.js +0 -67
- package/build/dynamicFlow/utils/responseParsers/response-parsers.js.map +0 -1
- package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +0 -28
- package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js.map +0 -1
- package/build/dynamicFlow/utils/useDynamicFlowState.js +0 -92
- package/build/dynamicFlow/utils/useDynamicFlowState.js.map +0 -1
- package/build/dynamicFlow/utils/useLoader.js +0 -16
- package/build/dynamicFlow/utils/useLoader.js.map +0 -1
- package/build/fixtures/components/alert.js +0 -34
- package/build/fixtures/components/alert.js.map +0 -1
- package/build/fixtures/components/box.js +0 -23
- package/build/fixtures/components/box.js.map +0 -1
- package/build/fixtures/components/button.js +0 -57
- package/build/fixtures/components/button.js.map +0 -1
- package/build/fixtures/components/columns.js +0 -39
- package/build/fixtures/components/columns.js.map +0 -1
- package/build/fixtures/components/copyable.js +0 -25
- package/build/fixtures/components/copyable.js.map +0 -1
- package/build/fixtures/components/decision.js +0 -57
- package/build/fixtures/components/decision.js.map +0 -1
- package/build/fixtures/components/heading.js +0 -17
- package/build/fixtures/components/heading.js.map +0 -1
- package/build/fixtures/components/image.js +0 -26
- package/build/fixtures/components/image.js.map +0 -1
- package/build/fixtures/components/index.js +0 -33
- package/build/fixtures/components/index.js.map +0 -1
- package/build/fixtures/components/info.js +0 -36
- package/build/fixtures/components/info.js.map +0 -1
- package/build/fixtures/components/list.js +0 -37
- package/build/fixtures/components/list.js.map +0 -1
- package/build/fixtures/components/loading-indicator.js +0 -19
- package/build/fixtures/components/loading-indicator.js.map +0 -1
- package/build/fixtures/components/paragraph.js +0 -31
- package/build/fixtures/components/paragraph.js.map +0 -1
- package/build/fixtures/components/review.js +0 -63
- package/build/fixtures/components/review.js.map +0 -1
- package/build/fixtures/examples/camera-capture.js +0 -124
- package/build/fixtures/examples/camera-capture.js.map +0 -1
- package/build/fixtures/examples/index.js +0 -17
- package/build/fixtures/examples/index.js.map +0 -1
- package/build/fixtures/examples/recipient-update.js +0 -253
- package/build/fixtures/examples/recipient-update.js.map +0 -1
- package/build/fixtures/examples/recipient.js +0 -316
- package/build/fixtures/examples/recipient.js.map +0 -1
- package/build/fixtures/examples/single-file-upload.js +0 -101
- package/build/fixtures/examples/single-file-upload.js.map +0 -1
- package/build/fixtures/examples/step-validation-errors.js +0 -78
- package/build/fixtures/examples/step-validation-errors.js.map +0 -1
- package/build/fixtures/features/action-response.js +0 -32
- package/build/fixtures/features/action-response.js.map +0 -1
- package/build/fixtures/features/external.js +0 -34
- package/build/fixtures/features/external.js.map +0 -1
- package/build/fixtures/features/index.js +0 -17
- package/build/fixtures/features/index.js.map +0 -1
- package/build/fixtures/features/persist-async.js +0 -47
- package/build/fixtures/features/persist-async.js.map +0 -1
- package/build/fixtures/features/polling.js +0 -36
- package/build/fixtures/features/polling.js.map +0 -1
- package/build/fixtures/features/validation-async.js +0 -41
- package/build/fixtures/features/validation-async.js.map +0 -1
- package/build/fixtures/index.js +0 -39
- package/build/fixtures/index.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/allOf.js +0 -122
- package/build/fixtures/jsonSchemaForm/allOf.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/audRecipient.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/audRecipient.js +0 -1107
- package/build/fixtures/jsonSchemaForm/audRecipient.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/currency.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/currency.js +0 -51
- package/build/fixtures/jsonSchemaForm/currency.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +0 -40
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +0 -39
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/oneOf.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/oneOf.js +0 -122
- package/build/fixtures/jsonSchemaForm/oneOf.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/oneOfTabs.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/oneOfTabs.js +0 -56
- package/build/fixtures/jsonSchemaForm/oneOfTabs.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/promotedOneOf.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/promotedOneOf.js +0 -59
- package/build/fixtures/jsonSchemaForm/promotedOneOf.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +0 -105
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/simple.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/simple.js +0 -51
- package/build/fixtures/jsonSchemaForm/simple.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +0 -74
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js.map +0 -1
- package/build/fixtures/jsonSchemaForm/validationAsync.d.ts +0 -3
- package/build/fixtures/jsonSchemaForm/validationAsync.js +0 -26
- package/build/fixtures/jsonSchemaForm/validationAsync.js.map +0 -1
- package/build/fixtures/layouts/all.js +0 -179
- package/build/fixtures/layouts/all.js.map +0 -1
- package/build/fixtures/layouts/final-step-layout.js +0 -42
- package/build/fixtures/layouts/final-step-layout.js.map +0 -1
- package/build/fixtures/layouts/index.js +0 -19
- package/build/fixtures/layouts/index.js.map +0 -1
- package/build/fixtures/layouts/list.js +0 -36
- package/build/fixtures/layouts/list.js.map +0 -1
- package/build/fixtures/layouts/pay-in.js +0 -100
- package/build/fixtures/layouts/pay-in.js.map +0 -1
- package/build/fixtures/layouts/review.js +0 -163
- package/build/fixtures/layouts/review.js.map +0 -1
- package/build/fixtures/layouts/success.js +0 -69
- package/build/fixtures/layouts/success.js.map +0 -1
- package/build/fixtures/responses/action-response-final.js +0 -27
- package/build/fixtures/responses/action-response-final.js.map +0 -1
- package/build/fixtures/responses/action.js +0 -5
- package/build/fixtures/responses/action.js.map +0 -1
- package/build/fixtures/responses/exit.js +0 -5
- package/build/fixtures/responses/exit.js.map +0 -1
- package/build/fixtures/responses/index.js +0 -15
- package/build/fixtures/responses/index.js.map +0 -1
- package/build/fixtures/responses/recipient-update-final.js +0 -27
- package/build/fixtures/responses/recipient-update-final.js.map +0 -1
- package/build/fixtures/schemas/basic-form.js +0 -42
- package/build/fixtures/schemas/basic-form.js.map +0 -1
- package/build/fixtures/schemas/index.js +0 -15
- package/build/fixtures/schemas/index.js.map +0 -1
- package/build/fixtures/schemas/number-and-integer.js +0 -44
- package/build/fixtures/schemas/number-and-integer.js.map +0 -1
- package/build/fixtures/schemas/one-of.js +0 -223
- package/build/fixtures/schemas/one-of.js.map +0 -1
- package/build/fixtures/schemas/string-formats.js +0 -65
- package/build/fixtures/schemas/string-formats.js.map +0 -1
- package/build/fixtures/utils/image-util.js +0 -23
- package/build/fixtures/utils/image-util.js.map +0 -1
- package/build/formControl/FormControl.js +0 -214
- package/build/formControl/FormControl.js.map +0 -1
- package/build/formControl/index.js +0 -9
- package/build/formControl/index.js.map +0 -1
- package/build/formControl/utils/index.js +0 -18
- package/build/formControl/utils/index.js.map +0 -1
- package/build/formControl/utils/value-utils.js +0 -112
- package/build/formControl/utils/value-utils.js.map +0 -1
- package/build/i18n/index.js +0 -37
- package/build/i18n/index.js.map +0 -1
- package/build/index.d.ts +0 -11
- package/build/index.js +0 -39
- package/build/index.js.map +0 -1
- package/build/jsonSchemaForm/JsonSchemaForm.js +0 -23
- package/build/jsonSchemaForm/JsonSchemaForm.js.map +0 -1
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +0 -47
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js.map +0 -1
- package/build/jsonSchemaForm/allOfSchema/index.js +0 -9
- package/build/jsonSchemaForm/allOfSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +0 -20
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +0 -21
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +0 -9
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +0 -87
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +0 -21
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +0 -9
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +0 -19
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +0 -39
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +0 -21
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js.map +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +0 -9
- package/build/jsonSchemaForm/arrayTypeSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +0 -92
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js.map +0 -1
- package/build/jsonSchemaForm/basicTypeSchema/index.js +0 -9
- package/build/jsonSchemaForm/basicTypeSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +0 -74
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js.map +0 -1
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +0 -56
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js.map +0 -1
- package/build/jsonSchemaForm/controlFeedback/index.js +0 -9
- package/build/jsonSchemaForm/controlFeedback/index.js.map +0 -1
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +0 -119
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js.map +0 -1
- package/build/jsonSchemaForm/genericSchema/index.js +0 -9
- package/build/jsonSchemaForm/genericSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/help/Help.js +0 -15
- package/build/jsonSchemaForm/help/Help.js.map +0 -1
- package/build/jsonSchemaForm/help/Help.messages.js +0 -11
- package/build/jsonSchemaForm/help/Help.messages.js.map +0 -1
- package/build/jsonSchemaForm/help/index.js +0 -9
- package/build/jsonSchemaForm/help/index.js.map +0 -1
- package/build/jsonSchemaForm/index.js +0 -9
- package/build/jsonSchemaForm/index.js.map +0 -1
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +0 -63
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js.map +0 -1
- package/build/jsonSchemaForm/objectSchema/index.js +0 -9
- package/build/jsonSchemaForm/objectSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +0 -136
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js.map +0 -1
- package/build/jsonSchemaForm/oneOfSchema/index.js +0 -9
- package/build/jsonSchemaForm/oneOfSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +0 -14
- package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js.map +0 -1
- package/build/jsonSchemaForm/oneOfSchema/utils/index.js +0 -19
- package/build/jsonSchemaForm/oneOfSchema/utils/index.js.map +0 -1
- package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +0 -70
- package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +0 -21
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +0 -11
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +0 -9
- package/build/jsonSchemaForm/persistAsyncSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +0 -120
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +0 -9
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +0 -67
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +0 -37
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js.map +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +0 -9
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +0 -59
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js.map +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +0 -9
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js.map +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +0 -13
- package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js.map +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +0 -19
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js.map +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +0 -26
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js.map +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +0 -24
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js.map +0 -1
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +0 -59
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js.map +0 -1
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +0 -16
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js.map +0 -1
- package/build/jsonSchemaForm/readOnlySchema/index.js +0 -9
- package/build/jsonSchemaForm/readOnlySchema/index.js.map +0 -1
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +0 -99
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js.map +0 -1
- package/build/jsonSchemaForm/schemaFormControl/index.js +0 -9
- package/build/jsonSchemaForm/schemaFormControl/index.js.map +0 -1
- package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +0 -78
- package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js.map +0 -1
- package/build/jsonSchemaForm/schemaFormControl/utils/index.js +0 -18
- package/build/jsonSchemaForm/schemaFormControl/utils/index.js.map +0 -1
- package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +0 -111
- package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js.map +0 -1
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +0 -90
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js.map +0 -1
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +0 -9
- package/build/jsonSchemaForm/validationAsyncSchema/index.js.map +0 -1
- package/build/layout/DynamicLayout.js +0 -53
- package/build/layout/DynamicLayout.js.map +0 -1
- package/build/layout/alert/DynamicAlert.js +0 -32
- package/build/layout/alert/DynamicAlert.js.map +0 -1
- package/build/layout/box/DynamicBox.js +0 -33
- package/build/layout/box/DynamicBox.js.map +0 -1
- package/build/layout/button/DynamicButton.js +0 -50
- package/build/layout/button/DynamicButton.js.map +0 -1
- package/build/layout/columns/DynamicColumns.js +0 -30
- package/build/layout/columns/DynamicColumns.js.map +0 -1
- package/build/layout/decision/DynamicDecision.js +0 -30
- package/build/layout/decision/DynamicDecision.js.map +0 -1
- package/build/layout/divider/DynamicDivider.js +0 -11
- package/build/layout/divider/DynamicDivider.js.map +0 -1
- package/build/layout/external/DynamicExternal.js +0 -26
- package/build/layout/external/DynamicExternal.js.map +0 -1
- package/build/layout/external/DynamicExternal.messages.js +0 -11
- package/build/layout/external/DynamicExternal.messages.js.map +0 -1
- package/build/layout/form/DynamicForm.js +0 -17
- package/build/layout/form/DynamicForm.js.map +0 -1
- package/build/layout/heading/DynamicHeading.js +0 -23
- package/build/layout/heading/DynamicHeading.js.map +0 -1
- package/build/layout/icon/DynamicIcon.js +0 -50
- package/build/layout/icon/DynamicIcon.js.map +0 -1
- package/build/layout/image/DynamicImage.js +0 -63
- package/build/layout/image/DynamicImage.js.map +0 -1
- package/build/layout/index.js +0 -41
- package/build/layout/index.js.map +0 -1
- package/build/layout/info/DynamicInfo.js +0 -10
- package/build/layout/info/DynamicInfo.js.map +0 -1
- package/build/layout/list/DynamicList.js +0 -22
- package/build/layout/list/DynamicList.js.map +0 -1
- package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +0 -13
- package/build/layout/loadingIndicator/DynamicLoadingIndicator.js.map +0 -1
- package/build/layout/paragraph/DynamicParagraph.js +0 -31
- package/build/layout/paragraph/DynamicParagraph.js.map +0 -1
- package/build/layout/paragraph/DynamicParagraph.messages.js +0 -16
- package/build/layout/paragraph/DynamicParagraph.messages.js.map +0 -1
- package/build/layout/paragraph/useSnackBarIfAvailable.js +0 -14
- package/build/layout/paragraph/useSnackBarIfAvailable.js.map +0 -1
- package/build/layout/review/DynamicReview.js +0 -24
- package/build/layout/review/DynamicReview.js.map +0 -1
- package/build/layout/utils.js +0 -34
- package/build/layout/utils.js.map +0 -1
- package/build/step/cameraStep/CameraStep.js +0 -85
- package/build/step/cameraStep/CameraStep.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +0 -71
- package/build/step/cameraStep/cameraCapture/CameraCapture.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +0 -21
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/components/index.js +0 -19
- package/build/step/cameraStep/cameraCapture/components/index.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/hooks/index.js +0 -30
- package/build/step/cameraStep/cameraCapture/hooks/index.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/index.js +0 -9
- package/build/step/cameraStep/cameraCapture/index.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +0 -69
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +0 -14
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +0 -16
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +0 -15
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +0 -21
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/screens/index.js +0 -11
- package/build/step/cameraStep/cameraCapture/screens/index.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/tracking/index.js +0 -23
- package/build/step/cameraStep/cameraCapture/tracking/index.js.map +0 -1
- package/build/step/cameraStep/cameraCapture/utils/index.js +0 -52
- package/build/step/cameraStep/cameraCapture/utils/index.js.map +0 -1
- package/build/step/cameraStep/index.js +0 -9
- package/build/step/cameraStep/index.js.map +0 -1
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +0 -69
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js.map +0 -1
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +0 -26
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js.map +0 -1
- package/build/step/externalConfirmationStep/index.js +0 -9
- package/build/step/externalConfirmationStep/index.js.map +0 -1
- package/build/step/index.js +0 -13
- package/build/step/index.js.map +0 -1
- package/build/step/layoutStep/LayoutStep.js +0 -36
- package/build/step/layoutStep/LayoutStep.js.map +0 -1
- package/build/step/layoutStep/index.js +0 -9
- package/build/step/layoutStep/index.js.map +0 -1
- package/build/step/layoutStep/utils/index.js +0 -8
- package/build/step/layoutStep/utils/index.js.map +0 -1
- package/build/step/layoutStep/utils/inline-reference-utils.js +0 -79
- package/build/step/layoutStep/utils/inline-reference-utils.js.map +0 -1
- package/build/step/layoutStep/utils/layout-utils.js +0 -204
- package/build/step/layoutStep/utils/layout-utils.js.map +0 -1
- package/build/types/common/FormControl.js +0 -3
- package/build/types/common/FormControl.js.map +0 -1
- package/build/types/index.js +0 -43
- package/build/types/index.js.map +0 -1
- package/build/types/specification/Action.js +0 -3
- package/build/types/specification/Action.js.map +0 -1
- package/build/types/specification/FileUploadSchema.js +0 -9
- package/build/types/specification/FileUploadSchema.js.map +0 -1
- package/build/types/specification/LayoutComponent.js +0 -3
- package/build/types/specification/LayoutComponent.js.map +0 -1
- package/build/types/specification/Model.js +0 -31
- package/build/types/specification/Model.js.map +0 -1
- package/build/types/specification/PersistAsync.js +0 -3
- package/build/types/specification/PersistAsync.js.map +0 -1
- package/build/types/specification/Polling.js +0 -3
- package/build/types/specification/Polling.js.map +0 -1
- package/build/types/specification/Promotion.js +0 -3
- package/build/types/specification/Promotion.js.map +0 -1
- package/build/types/specification/Schema.js +0 -68
- package/build/types/specification/Schema.js.map +0 -1
- package/build/types/specification/Step.js +0 -7
- package/build/types/specification/Step.js.map +0 -1
- package/build/types/specification/ValidationAsync.js +0 -3
- package/build/types/specification/ValidationAsync.js.map +0 -1
- package/build/types/specification/core.js +0 -3
- package/build/types/specification/core.js.map +0 -1
- /package/build/{common → types/common}/constants/DateMode.d.ts +0 -0
- /package/build/{common → types/common}/constants/FormControlType.d.ts +0 -0
- /package/build/{common → types/common}/constants/MonthFormat.d.ts +0 -0
- /package/build/{common → types/common}/constants/SchemaType.d.ts +0 -0
- /package/build/{common → types/common}/constants/Size.d.ts +0 -0
- /package/build/{common → types/common}/constants/index.d.ts +0 -0
- /package/build/{common → types/common}/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -0
- /package/build/{common → types/common}/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +0 -0
- /package/build/{common → types/common}/contexts/eventsContext/EventsContext.d.ts +0 -0
- /package/build/{common → types/common}/contexts/fetcherContexts/FetcherContexts.d.ts +0 -0
- /package/build/{common → types/common}/contexts/index.d.ts +0 -0
- /package/build/{common → types/common}/contexts/logContext/LogContext.d.ts +0 -0
- /package/build/{common → types/common}/hooks/index.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useExternal/useExternal.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +0 -0
- /package/build/{common → types/common}/hooks/usePersistAsync/usePersistAsync.d.ts +0 -0
- /package/build/{common → types/common}/hooks/usePolling/usePolling.d.ts +0 -0
- /package/build/{common → types/common}/hooks/usePrevious/usePrevious.d.ts +0 -0
- /package/build/{common → types/common}/hooks/useStepPolling/useStepPolling.d.ts +0 -0
- /package/build/{common → types/common}/makeFetcher/index.d.ts +0 -0
- /package/build/{common → types/common}/makeFetcher/makeFetcher.d.ts +0 -0
- /package/build/{common → types/common}/messages.d.ts +0 -0
- /package/build/{common → types/common}/utils/api-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/date-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/debounce.d.ts +0 -0
- /package/build/{common → types/common}/utils/file-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/id-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/index.d.ts +0 -0
- /package/build/{common → types/common}/utils/is-equal.d.ts +0 -0
- /package/build/{common → types/common}/utils/schema-utils.d.ts +0 -0
- /package/build/{common → types/common}/utils/step-utils.d.ts +0 -0
- /package/build/{common → types/common}/validators/index.d.ts +0 -0
- /package/build/{common → types/common}/validators/models/model-validators.d.ts +0 -0
- /package/build/{common → types/common}/validators/models/models.utils.d.ts +0 -0
- /package/build/{common → types/common}/validators/schemas/schema-validators.d.ts +0 -0
- /package/build/{common → types/common}/validators/types/type-validators.d.ts +0 -0
- /package/build/{common → types/common}/validators/validationFailures/validation-failures.d.ts +0 -0
- /package/build/{common → types/common}/validators/validationFailures/validation-failures.utils.d.ts +0 -0
- /package/build/{common → types/common}/validators/values/value-validators.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlow.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowStep.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/DynamicFlowTypes.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/index.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/stories/DynamicFlow.story.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/stories/EditableDynamicFlow.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/stories/fixtureFetcher.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundary.messages.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/errorBoundary/ErrorBoundaryAlert.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/index.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/responseParsers/response-parsers.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/useDynamicFlowState.d.ts +0 -0
- /package/build/{dynamicFlow → types/dynamicFlow}/utils/useLoader.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/alert.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/box.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/button.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/columns.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/copyable.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/decision.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/heading.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/image.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/info.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/list.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/loading-indicator.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/paragraph.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/components/review.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/camera-capture.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/recipient-update.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/recipient.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/single-file-upload.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/examples/step-validation-errors.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/action-response.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/external.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/persist-async.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/polling.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/features/validation-async.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/jsonSchemaForm/allOf.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/all.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/final-step-layout.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/list.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/pay-in.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/review.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/layouts/success.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/action-response-final.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/action.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/exit.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/responses/recipient-update-final.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/basic-form.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/index.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/number-and-integer.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/one-of.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/schemas/string-formats.d.ts +0 -0
- /package/build/{fixtures → types/fixtures}/utils/image-util.d.ts +0 -0
- /package/build/{formControl → types/formControl}/FormControl.d.ts +0 -0
- /package/build/{formControl → types/formControl}/index.d.ts +0 -0
- /package/build/{formControl → types/formControl}/utils/index.d.ts +0 -0
- /package/build/{formControl → types/formControl}/utils/value-utils.d.ts +0 -0
- /package/build/{i18n → types/i18n}/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/JsonSchemaForm.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/AllOfSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/allOfSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/ArraySchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/arrayTypeSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/BasicTypeSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/basicTypeSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/ControlFeedback.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/controlFeedback/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/GenericSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/genericSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/Help.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/help/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/ObjectSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/objectSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/OneOfSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/const-schema-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/oneOfSchema/utils/one-of-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promoted-one-of-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/readOnlySchema/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/SchemaFormControl.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/currency-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/index.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/schemaFormControl/utils/mapping-utils.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -0
- /package/build/{jsonSchemaForm → types/jsonSchemaForm}/validationAsyncSchema/index.d.ts +0 -0
- /package/build/{layout → types/layout}/DynamicLayout.d.ts +0 -0
- /package/build/{layout → types/layout}/alert/DynamicAlert.d.ts +0 -0
- /package/build/{layout → types/layout}/box/DynamicBox.d.ts +0 -0
- /package/build/{layout → types/layout}/button/DynamicButton.d.ts +0 -0
- /package/build/{layout → types/layout}/columns/DynamicColumns.d.ts +0 -0
- /package/build/{layout → types/layout}/decision/DynamicDecision.d.ts +0 -0
- /package/build/{layout → types/layout}/divider/DynamicDivider.d.ts +0 -0
- /package/build/{layout → types/layout}/external/DynamicExternal.d.ts +0 -0
- /package/build/{layout → types/layout}/external/DynamicExternal.messages.d.ts +0 -0
- /package/build/{layout → types/layout}/form/DynamicForm.d.ts +0 -0
- /package/build/{layout → types/layout}/heading/DynamicHeading.d.ts +0 -0
- /package/build/{layout → types/layout}/icon/DynamicIcon.d.ts +0 -0
- /package/build/{layout → types/layout}/image/DynamicImage.d.ts +0 -0
- /package/build/{layout → types/layout}/index.d.ts +0 -0
- /package/build/{layout → types/layout}/info/DynamicInfo.d.ts +0 -0
- /package/build/{layout → types/layout}/list/DynamicList.d.ts +0 -0
- /package/build/{layout → types/layout}/loadingIndicator/DynamicLoadingIndicator.d.ts +0 -0
- /package/build/{layout → types/layout}/paragraph/DynamicParagraph.d.ts +0 -0
- /package/build/{layout → types/layout}/paragraph/DynamicParagraph.messages.d.ts +0 -0
- /package/build/{layout → types/layout}/paragraph/useSnackBarIfAvailable.d.ts +0 -0
- /package/build/{layout → types/layout}/review/DynamicReview.d.ts +0 -0
- /package/build/{layout → types/layout}/utils.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/CameraStep.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/components/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/hooks/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/overlay/Overlay.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/screens/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/tracking/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/cameraCapture/utils/index.d.ts +0 -0
- /package/build/{step → types/step}/cameraStep/index.d.ts +0 -0
- /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -0
- /package/build/{step → types/step}/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -0
- /package/build/{step → types/step}/externalConfirmationStep/index.d.ts +0 -0
- /package/build/{step → types/step}/index.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/LayoutStep.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/index.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/utils/index.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/utils/inline-reference-utils.d.ts +0 -0
- /package/build/{step → types/step}/layoutStep/utils/layout-utils.d.ts +0 -0
- /package/build/types/{common → types/common}/FormControl.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Action.d.ts +0 -0
- /package/build/types/{specification → types/specification}/FileUploadSchema.d.ts +0 -0
- /package/build/types/{specification → types/specification}/LayoutComponent.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Model.d.ts +0 -0
- /package/build/types/{specification → types/specification}/PersistAsync.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Polling.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Promotion.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Schema.d.ts +0 -0
- /package/build/types/{specification → types/specification}/Step.d.ts +0 -0
- /package/build/types/{specification → types/specification}/ValidationAsync.d.ts +0 -0
- /package/build/types/{specification → types/specification}/core.d.ts +0 -0
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSafeDateStringValue = exports.getSafeDateOrStringValue = exports.getSafeBooleanValue = exports.getSafeStringOrNumberValue = exports.getSafeStringValue = void 0;
|
|
4
|
-
/* eslint-disable no-console */
|
|
5
|
-
const utils_1 = require("../../common/utils");
|
|
6
|
-
const validators_1 = require("../../common/validators");
|
|
7
|
-
const getSafeStringValue = (value, options = {}) => {
|
|
8
|
-
const { coerceValue = false } = options;
|
|
9
|
-
if ((0, validators_1.isNull)(value)) {
|
|
10
|
-
return undefined;
|
|
11
|
-
}
|
|
12
|
-
if ((0, validators_1.isObject)(value)) {
|
|
13
|
-
logInvalidTypeFallbackWarning({ received: 'object', expected: 'string' });
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
if (!(0, validators_1.isString)(value)) {
|
|
17
|
-
if (coerceValue) {
|
|
18
|
-
// TODO: Remove this coercion once we're sure everyone has had a chance to address warnings
|
|
19
|
-
logInvalidTypeCoercedWarning({ received: typeof value, expected: 'string' });
|
|
20
|
-
return String(value);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
logInvalidTypeFallbackWarning({ received: typeof value, expected: 'string' });
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return value;
|
|
28
|
-
};
|
|
29
|
-
exports.getSafeStringValue = getSafeStringValue;
|
|
30
|
-
const getSafeStringOrNumberValue = (value, options = {}) => {
|
|
31
|
-
const { coerceValue = false } = options;
|
|
32
|
-
if ((0, validators_1.isNull)(value)) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
if ((0, validators_1.isNumber)(value)) {
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
const logProps = { received: typeof value, expected: 'string or number' };
|
|
39
|
-
if ((0, validators_1.isObject)(value)) {
|
|
40
|
-
logInvalidTypeFallbackWarning(logProps);
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
if (!(0, validators_1.isString)(value)) {
|
|
44
|
-
if (coerceValue) {
|
|
45
|
-
// TODO: Remove this coercion once we're sure everyone has had a chance to address warnings
|
|
46
|
-
logInvalidTypeCoercedWarning(logProps);
|
|
47
|
-
return String(value);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
logInvalidTypeFallbackWarning(logProps);
|
|
51
|
-
return undefined;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return value;
|
|
55
|
-
};
|
|
56
|
-
exports.getSafeStringOrNumberValue = getSafeStringOrNumberValue;
|
|
57
|
-
const getSafeBooleanValue = (value, options = {}) => {
|
|
58
|
-
const { coerceValue = false } = options;
|
|
59
|
-
if ((0, validators_1.isNull)(value)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
if (!(0, validators_1.isBoolean)(value)) {
|
|
63
|
-
if (coerceValue) {
|
|
64
|
-
// TODO: Remove this coercion once we're sure everyone has had a chance to address warnings
|
|
65
|
-
logInvalidTypeCoercedWarning({ received: typeof value, expected: 'boolean' });
|
|
66
|
-
return Boolean(value);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
logInvalidTypeFallbackWarning({ received: typeof value, expected: 'boolean' });
|
|
70
|
-
return undefined;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return value;
|
|
74
|
-
};
|
|
75
|
-
exports.getSafeBooleanValue = getSafeBooleanValue;
|
|
76
|
-
const getSafeDateOrStringValue = (value) => {
|
|
77
|
-
if ((0, validators_1.isNull)(value)) {
|
|
78
|
-
return undefined;
|
|
79
|
-
}
|
|
80
|
-
if (!(value instanceof Date) && !(0, validators_1.isString)(value)) {
|
|
81
|
-
logInvalidTypeFallbackWarning({ received: typeof value, expected: 'string or Date' });
|
|
82
|
-
return undefined;
|
|
83
|
-
}
|
|
84
|
-
return value;
|
|
85
|
-
};
|
|
86
|
-
exports.getSafeDateOrStringValue = getSafeDateOrStringValue;
|
|
87
|
-
const getSafeDateStringValue = (value) => {
|
|
88
|
-
if ((0, validators_1.isNull)(value)) {
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
if (!(0, validators_1.isString)(value)) {
|
|
92
|
-
logInvalidTypeFallbackWarning({
|
|
93
|
-
received: typeof value,
|
|
94
|
-
expected: 'string',
|
|
95
|
-
fallback: 'null',
|
|
96
|
-
});
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
const date = (0, utils_1.dateStringToDate)(value);
|
|
100
|
-
if (date === null) {
|
|
101
|
-
console.warn('Incorrectly formatted date string. Falling back to null.');
|
|
102
|
-
}
|
|
103
|
-
return date;
|
|
104
|
-
};
|
|
105
|
-
exports.getSafeDateStringValue = getSafeDateStringValue;
|
|
106
|
-
const logInvalidTypeCoercedWarning = ({ received, expected, }) => {
|
|
107
|
-
console.warn(`Value with type ${received} passed to control that only accepts type ${expected}. Type will be coerced, but this behaviour will change in the future, so please fix your code.`);
|
|
108
|
-
};
|
|
109
|
-
const logInvalidTypeFallbackWarning = ({ received, expected, fallback = 'undefined', }) => {
|
|
110
|
-
console.warn(`Value with type ${received} passed to control that only accepts type ${expected}. Falling back to ${fallback}`);
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=value-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"value-utils.js","sourceRoot":"","sources":["../../../src/formControl/utils/value-utils.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,8CAAsD;AACtD,wDA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/build/i18n/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const de_json_1 = __importDefault(require("./de.json"));
|
|
7
|
-
const en_json_1 = __importDefault(require("./en.json"));
|
|
8
|
-
const es_json_1 = __importDefault(require("./es.json"));
|
|
9
|
-
const fr_json_1 = __importDefault(require("./fr.json"));
|
|
10
|
-
const hu_json_1 = __importDefault(require("./hu.json"));
|
|
11
|
-
const id_json_1 = __importDefault(require("./id.json"));
|
|
12
|
-
const it_json_1 = __importDefault(require("./it.json"));
|
|
13
|
-
const ja_json_1 = __importDefault(require("./ja.json"));
|
|
14
|
-
const pl_json_1 = __importDefault(require("./pl.json"));
|
|
15
|
-
const pt_json_1 = __importDefault(require("./pt.json"));
|
|
16
|
-
const ro_json_1 = __importDefault(require("./ro.json"));
|
|
17
|
-
const ru_json_1 = __importDefault(require("./ru.json"));
|
|
18
|
-
const tr_json_1 = __importDefault(require("./tr.json"));
|
|
19
|
-
const zh_json_1 = __importDefault(require("./zh.json"));
|
|
20
|
-
const translations = {
|
|
21
|
-
en: en_json_1.default,
|
|
22
|
-
de: de_json_1.default,
|
|
23
|
-
es: es_json_1.default,
|
|
24
|
-
fr: fr_json_1.default,
|
|
25
|
-
hu: hu_json_1.default,
|
|
26
|
-
id: id_json_1.default,
|
|
27
|
-
it: it_json_1.default,
|
|
28
|
-
ja: ja_json_1.default,
|
|
29
|
-
pl: pl_json_1.default,
|
|
30
|
-
pt: pt_json_1.default,
|
|
31
|
-
ro: ro_json_1.default,
|
|
32
|
-
ru: ru_json_1.default,
|
|
33
|
-
tr: tr_json_1.default,
|
|
34
|
-
zh: zh_json_1.default,
|
|
35
|
-
};
|
|
36
|
-
exports.default = translations;
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
package/build/i18n/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAC3B,wDAA2B;AAE3B,MAAM,YAAY,GAA2C;IAC3D,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;IACF,EAAE,EAAF,iBAAE;CACH,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
package/build/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { convertStepToLayout, inlineReferences } from './step/layoutStep/utils';
|
|
2
|
-
export { default as DynamicFlow } from './dynamicFlow';
|
|
3
|
-
export { makeFetcher } from './common/makeFetcher';
|
|
4
|
-
export { default as JsonSchemaForm } from './jsonSchemaForm';
|
|
5
|
-
export { DynamicLayout as Layout } from './layout';
|
|
6
|
-
export { isValidSchema } from './common/validators';
|
|
7
|
-
export { fixtures } from './fixtures';
|
|
8
|
-
export { default as translations } from './i18n';
|
|
9
|
-
export * from './dynamicFlow/DynamicFlow';
|
|
10
|
-
export type { DynamicFlowProps } from './dynamicFlow/DynamicFlowTypes';
|
|
11
|
-
export type { Step } from './types';
|
package/build/index.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.translations = exports.fixtures = exports.isValidSchema = exports.Layout = exports.JsonSchemaForm = exports.makeFetcher = exports.DynamicFlow = exports.inlineReferences = exports.convertStepToLayout = void 0;
|
|
21
|
-
var utils_1 = require("./step/layoutStep/utils");
|
|
22
|
-
Object.defineProperty(exports, "convertStepToLayout", { enumerable: true, get: function () { return utils_1.convertStepToLayout; } });
|
|
23
|
-
Object.defineProperty(exports, "inlineReferences", { enumerable: true, get: function () { return utils_1.inlineReferences; } });
|
|
24
|
-
var dynamicFlow_1 = require("./dynamicFlow");
|
|
25
|
-
Object.defineProperty(exports, "DynamicFlow", { enumerable: true, get: function () { return __importDefault(dynamicFlow_1).default; } });
|
|
26
|
-
var makeFetcher_1 = require("./common/makeFetcher");
|
|
27
|
-
Object.defineProperty(exports, "makeFetcher", { enumerable: true, get: function () { return makeFetcher_1.makeFetcher; } });
|
|
28
|
-
var jsonSchemaForm_1 = require("./jsonSchemaForm");
|
|
29
|
-
Object.defineProperty(exports, "JsonSchemaForm", { enumerable: true, get: function () { return __importDefault(jsonSchemaForm_1).default; } });
|
|
30
|
-
var layout_1 = require("./layout");
|
|
31
|
-
Object.defineProperty(exports, "Layout", { enumerable: true, get: function () { return layout_1.DynamicLayout; } });
|
|
32
|
-
var validators_1 = require("./common/validators");
|
|
33
|
-
Object.defineProperty(exports, "isValidSchema", { enumerable: true, get: function () { return validators_1.isValidSchema; } });
|
|
34
|
-
var fixtures_1 = require("./fixtures");
|
|
35
|
-
Object.defineProperty(exports, "fixtures", { enumerable: true, get: function () { return fixtures_1.fixtures; } });
|
|
36
|
-
var i18n_1 = require("./i18n");
|
|
37
|
-
Object.defineProperty(exports, "translations", { enumerable: true, get: function () { return __importDefault(i18n_1).default; } });
|
|
38
|
-
__exportStar(require("./dynamicFlow/DynamicFlow"), exports);
|
|
39
|
-
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,iDAAgF;AAAvE,4GAAA,mBAAmB,OAAA;AAAE,yGAAA,gBAAgB,OAAA;AAC9C,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,oDAAmD;AAA1C,0GAAA,WAAW,OAAA;AACpB,mDAA6D;AAApD,iIAAA,OAAO,OAAkB;AAClC,mCAAmD;AAA1C,gGAAA,aAAa,OAAU;AAChC,kDAAoD;AAA3C,2GAAA,aAAa,OAAA;AAEtB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAEjB,+BAAiD;AAAxC,qHAAA,OAAO,OAAgB;AAEhC,4DAA0C"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const contexts_1 = require("../common/contexts");
|
|
8
|
-
const genericSchema_1 = __importDefault(require("./genericSchema"));
|
|
9
|
-
const JsonSchemaForm = (props) => {
|
|
10
|
-
const schemaProps = Object.assign({ model: null, errors: null, disabled: false, baseUrl: '' }, props);
|
|
11
|
-
if ((0, contexts_1.useHasFetcherProvider)() || schemaProps.baseUrl == null) {
|
|
12
|
-
return (0, jsx_runtime_1.jsx)(genericSchema_1.default, Object.assign({}, schemaProps));
|
|
13
|
-
}
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)(Providers, Object.assign({ baseUrl: schemaProps.baseUrl, onEvent: schemaProps.onEvent, onLog: schemaProps.onLog }, { children: (0, jsx_runtime_1.jsx)(genericSchema_1.default, Object.assign({}, schemaProps)) })));
|
|
15
|
-
};
|
|
16
|
-
exports.default = JsonSchemaForm;
|
|
17
|
-
const Providers = ({ baseUrl, onEvent, onLog, children }) => {
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(contexts_1.LogProvider, Object.assign({ flowId: "JsonSchemaForm", stepId: "JsonSchemaForm", onLog: onLog !== null && onLog !== void 0 ? onLog : noop }, { children: (0, jsx_runtime_1.jsx)(contexts_1.EventsContextProvider, Object.assign({ metadata: { flowId: 'JsonSchemaForm', stepId: 'JsonSchemaForm' }, onEvent: onEvent !== null && onEvent !== void 0 ? onEvent : noop }, { children: (0, jsx_runtime_1.jsx)(contexts_1.FetcherProviderFromBaseUrl, Object.assign({ baseUrl: baseUrl }, { children: children })) })) })));
|
|
19
|
-
};
|
|
20
|
-
const noop = () => {
|
|
21
|
-
// noop
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=JsonSchemaForm.js.map
|
|
@@ -1 +0,0 @@
|
|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M,IAAI,GAAG,GAAG,EAAE;IAChB,OAAO;AACT,CAAC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const validators_1 = require("../../common/validators");
|
|
10
|
-
const genericSchema_1 = __importDefault(require("../genericSchema"));
|
|
11
|
-
const splitModel = (model, schemas) => {
|
|
12
|
-
// If wew receive a model, break it down to parts valid for each schema
|
|
13
|
-
return schemas.map((schema) => (0, validators_1.getValidObjectModelParts)(model, schema) || {});
|
|
14
|
-
};
|
|
15
|
-
const combineModels = (models) => {
|
|
16
|
-
return models.reduce((current, combined) => {
|
|
17
|
-
return Object.assign(Object.assign({}, combined), current);
|
|
18
|
-
}, {});
|
|
19
|
-
};
|
|
20
|
-
const getSchemaColumnClasses = (width) => {
|
|
21
|
-
return {
|
|
22
|
-
'col-xs-12': true,
|
|
23
|
-
'col-sm-6': width === 'md',
|
|
24
|
-
'col-sm-4': width === 'sm',
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
const AllOfSchema = (props) => {
|
|
28
|
-
const onChangeModelIndex = (index, onChangeProps) => {
|
|
29
|
-
const modelSchema = props.schema.allOf[index];
|
|
30
|
-
// FIXME we should not mutate models here
|
|
31
|
-
// eslint-disable-next-line fp/no-mutation
|
|
32
|
-
models[index] = (0, validators_1.getValidObjectModelParts)(onChangeProps.model, modelSchema) || {};
|
|
33
|
-
setModels(models);
|
|
34
|
-
props.onChange(Object.assign(Object.assign({}, onChangeProps), { model: combineModels(models) }));
|
|
35
|
-
};
|
|
36
|
-
const [models, setModels] = (0, react_1.useState)(splitModel(props.model, props.schema.allOf));
|
|
37
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [props.schema.title && (0, jsx_runtime_1.jsx)("h3", Object.assign({ className: "page-header" }, { children: props.schema.title })), props.schema.description && (0, jsx_runtime_1.jsx)("p", { children: props.schema.description }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "row" }, { children: props.schema.allOf.map((schema, index) => (
|
|
38
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
39
|
-
(0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, classnames_1.default)(getSchemaColumnClasses(schema.width)) }, { children: (0, jsx_runtime_1.jsx)(genericSchema_1.default, { schema: schema, model: models[index], errors: props.errors, submitted: props.submitted, disabled: props.disabled, onChange: (onChangeProps) => onChangeModelIndex(index, Object.assign(Object.assign({}, onChangeProps), {
|
|
40
|
-
// We can safely assume that the model here is going to be of the same type as the model prop
|
|
41
|
-
model: onChangeProps.model })), onPersistAsync: props.onPersistAsync }) }), index))) }))] }));
|
|
42
|
-
};
|
|
43
|
-
AllOfSchema.defaultProps = {
|
|
44
|
-
disabled: false,
|
|
45
|
-
};
|
|
46
|
-
exports.default = AllOfSchema;
|
|
47
|
-
//# sourceMappingURL=AllOfSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AllOfSchema.js","sourceRoot":"","sources":["../../../src/jsonSchemaForm/allOfSchema/AllOfSchema.tsx"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,iCAAiC;AAEjC,wDAAmE;AAGnE,qEAA6C;AAG7C,MAAM,UAAU,GAAG,CAAC,KAAkB,EAAE,OAAiB,EAAE,EAAE;IAC3D,uEAAuE;IACvE,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,qCAAwB,EAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;AAChF,CAAC,CAAC;AAEF,MAAM,aAAa,G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GAAK,EAC9D,8CAAK,SAAS,EAAC,KAAK,gBACjB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;gBACzC,oDAAoD;gBACpD,8CAAiB,SAAS,EAAE,IAAA,oBAAU,EAAC,sBAAsB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,gBAC1E,uBAAC,uBAAa,IACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,CAAC,aAAa,EAAE,EAAE,CAC1B,kBAAkB,CAAC,KAAK,kCACnB,aAAa;4BAChB,6FAA6F;4BAC7F,KAAK,EAAE,aAAa,CAAC,KAAgC,IACrD,EAEJ,cAAc,EAAE,KAAK,CAAC,cAAc,GACpC,KAfM,KAAK,CAgBT,CACP,CAAC,IACE,IACL,CACJ,CAAC;AACJ,CAAC,CAAC;AAOF,WAAW,CAAC,YAAY,GAAG;IACzB,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var AllOfSchema_1 = require("./AllOfSchema");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AllOfSchema_1).default; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/jsonSchemaForm/allOfSchema/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAwC;AAA/B,uHAAA,OAAO,OAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const types_1 = require("../../types");
|
|
8
|
-
const ArrayListSchema_1 = __importDefault(require("./arrayListSchema/ArrayListSchema"));
|
|
9
|
-
const ArraySchema = (props) => {
|
|
10
|
-
const { schema } = props;
|
|
11
|
-
if ((0, types_1.isListArraySchema)(schema)) {
|
|
12
|
-
return (0, jsx_runtime_1.jsx)(ArrayListSchema_1.default, Object.assign({}, props));
|
|
13
|
-
}
|
|
14
|
-
throw new Error('Not implemented'); // Tuple not implemented
|
|
15
|
-
};
|
|
16
|
-
ArraySchema.defaultProps = {
|
|
17
|
-
required: false,
|
|
18
|
-
};
|
|
19
|
-
exports.default = ArraySchema;
|
|
20
|
-
//# sourceMappingURL=ArraySchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArraySchema.js","sourceRoot":"","sources":["../../../src/jsonSchemaForm/arrayTypeSchema/ArraySchema.tsx"],"names":[],"mappings":";;;;;;AAAA,uCAA4F;AAG5F,wFAAgE;AAEhE,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC9C,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEzB,IAAI,IAAA,yBAAiB,EAAC,MAAM,CAAC,EAAE;QAC7B,OAAO,uBAAC,yBAAe,oBAAK,KAAK,EAAI,CAAC;KACvC;IAED,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,wBAAwB;AAC9D,CAAC,CAAC;AAQF,WAAW,CAAC,YAAY,GAAG;IACzB,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const Schema_1 = require("../../../types/specification/Schema");
|
|
8
|
-
const multipleFileUploadSchema_1 = __importDefault(require("./multipleFileUploadSchema"));
|
|
9
|
-
const ArrayListSchema = (props) => {
|
|
10
|
-
const { schema } = props;
|
|
11
|
-
if ((0, Schema_1.isMultipleFileUploadSchema)(schema)) {
|
|
12
|
-
return (0, jsx_runtime_1.jsx)(multipleFileUploadSchema_1.default, Object.assign({}, props, { schema: schema }));
|
|
13
|
-
}
|
|
14
|
-
throw new Error('Not implemented');
|
|
15
|
-
};
|
|
16
|
-
ArrayListSchema.defaultProps = {
|
|
17
|
-
errors: null,
|
|
18
|
-
required: false,
|
|
19
|
-
};
|
|
20
|
-
exports.default = ArrayListSchema;
|
|
21
|
-
//# sourceMappingURL=ArrayListSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayListSchema.js","sourceRoot":"","sources":["../../../../src/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.tsx"],"names":[],"mappings":";;;;;;AACA,gEAAiF;AAGjF,0FAAkE;AAElE,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,EAAE;IACvC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,IAAI,IAAA,mCAA0B,EAAC,MAAM,CAAC,EAAE;QACtC,OAAO,uBAAC,kCAAwB,oBAAK,KAAK,IAAE,MAAM,EAAE,MAAM,IAAI,CAAC;KAChE;IAED,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;AACrC,CAAC,CAAC;AAQF,eAAe,CAAC,YAAY,GAAG;IAC7B,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var ArrayListSchema_1 = require("./ArrayListSchema");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ArrayListSchema_1).default; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA4C;AAAnC,2HAAA,OAAO,OAAA"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const components_1 = require("@transferwise/components");
|
|
8
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
const react_1 = require("react");
|
|
10
|
-
const contexts_1 = require("../../../../common/contexts");
|
|
11
|
-
const hooks_1 = require("../../../../common/hooks");
|
|
12
|
-
const utils_1 = require("../../../../common/utils");
|
|
13
|
-
const validators_1 = require("../../../../common/validators");
|
|
14
|
-
const types_1 = require("../../../../types");
|
|
15
|
-
const controlFeedback_1 = __importDefault(require("../../../controlFeedback"));
|
|
16
|
-
const utils_2 = require("./utils");
|
|
17
|
-
const useFormattedDefaultErrorMessages_1 = require("./utils/useFormattedDefaultErrorMessages");
|
|
18
|
-
const MultipleFileUploadSchema = (props) => {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
const { onChange, schema } = props;
|
|
21
|
-
const onEvent = (0, contexts_1.useEventDispatcher)();
|
|
22
|
-
const defaultErrorMessages = (0, useFormattedDefaultErrorMessages_1.useFormattedDefaultErrorMessages)(schema);
|
|
23
|
-
const uid = (0, react_1.useMemo)(() => schema.$id || (0, utils_1.generateRandomId)(), [schema.$id]);
|
|
24
|
-
const [inputChanged, setInputChanged] = (0, react_1.useState)(false);
|
|
25
|
-
const [files, setFiles] = (0, react_1.useState)(() => convertFileIdsToComponentFileObjects(props.model || []));
|
|
26
|
-
const performPersistAsync = (0, hooks_1.usePersistAsync)(schema.items.persistAsync);
|
|
27
|
-
const fileSchemaDescriptor = schema.items.persistAsync.schema;
|
|
28
|
-
const isBlob = (0, types_1.isBlobSchema)(fileSchemaDescriptor);
|
|
29
|
-
const uploadFile = async (userUploadedFile) => {
|
|
30
|
-
setInputChanged(true);
|
|
31
|
-
try {
|
|
32
|
-
const payload = await (0, utils_2.createPayload)(userUploadedFile, isBlob);
|
|
33
|
-
onEvent('Dynamic Flow - PersistAsync', { status: 'pending', schemaId: schema.$id });
|
|
34
|
-
const response = await performPersistAsync(payload);
|
|
35
|
-
onEvent('Dynamic Flow - PersistAsync', { status: 'success', schemaId: schema.$id });
|
|
36
|
-
return (0, utils_2.constructUploadResponse)(response);
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
onEvent('Dynamic Flow - PersistAsync', { status: 'failure', schemaId: schema.$id });
|
|
40
|
-
return Promise.reject((0, utils_2.constructUploadError)(error));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
function onFilesChange(newFiles) {
|
|
44
|
-
if ((0, utils_1.areFilesSame)(newFiles, files)) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
setFiles(newFiles);
|
|
48
|
-
const validFiles = getSuccessfullyProcessedFiles(newFiles);
|
|
49
|
-
const data = validFiles.map((file) => file.id);
|
|
50
|
-
onChange({
|
|
51
|
-
model: data,
|
|
52
|
-
triggerSchema: schema,
|
|
53
|
-
triggerModel: data,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
const validFiles = getSuccessfullyProcessedFiles(files);
|
|
57
|
-
const fileIds = validFiles.map((file) => file.id);
|
|
58
|
-
const fileListValidationFailures = (0, validators_1.getArrayValidationFailures)(fileIds, schema, props.required);
|
|
59
|
-
const showError = Boolean(props.errors) ||
|
|
60
|
-
((inputChanged || props.submitted) && Boolean(fileListValidationFailures.length));
|
|
61
|
-
const accepts = 'accepts' in fileSchemaDescriptor && fileSchemaDescriptor.accepts;
|
|
62
|
-
const maxSize = 'maxSize' in fileSchemaDescriptor && fileSchemaDescriptor.maxSize;
|
|
63
|
-
const uploadInputProps = Object.assign(Object.assign(Object.assign({ multiple: true, className: 'form-control', files, fileInputName: uid, id: uid }, (accepts ? { fileTypes: accepts } : undefined)), (maxSize ? { sizeLimit: (0, utils_1.toKilobytes)(maxSize) } : undefined)), { sizeLimitErrorMessage: ((_a = fileSchemaDescriptor.validationMessages) === null || _a === void 0 ? void 0 : _a.maxSize) ||
|
|
64
|
-
defaultErrorMessages.maxFileSizeErrorMessage, maxFiles: props.schema.maxItems, maxFilesErrorMessage: ((_b = props.schema.validationMessages) === null || _b === void 0 ? void 0 : _b.maxItems) || defaultErrorMessages.maxItemsErrorMessage, uploadButtonTitle: fileSchemaDescriptor.title, description: fileSchemaDescriptor.description, disabled: props.disabled, onUploadFile: (formData) => uploadFile(formData.get(uid)), onFilesChange, onDeleteFile: () => Promise.resolve() });
|
|
65
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: (0, classnames_1.default)('form-group', { 'has-error': showError }) }, { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ className: "d-block control-label", htmlFor: uid }, { children: props.schema.title })), (0, jsx_runtime_1.jsx)(components_1.UploadInput, Object.assign({}, uploadInputProps)), (0, jsx_runtime_1.jsx)(controlFeedback_1.default, { changed: inputChanged, submitted: props.submitted, errors: props.errors, schema: props.schema, validations: fileListValidationFailures, validationMessages: getValidationMessages(schema, Boolean(props.required), defaultErrorMessages), infoMessage: null, focused: false, blurred: true })] })));
|
|
66
|
-
};
|
|
67
|
-
MultipleFileUploadSchema.defaultProps = {
|
|
68
|
-
errors: null,
|
|
69
|
-
required: false,
|
|
70
|
-
};
|
|
71
|
-
exports.default = MultipleFileUploadSchema;
|
|
72
|
-
function getSuccessfullyProcessedFiles(allFiles) {
|
|
73
|
-
return allFiles.filter((file) => !file.error && file.status === 'succeeded');
|
|
74
|
-
}
|
|
75
|
-
function convertFileIdsToComponentFileObjects(fileIds) {
|
|
76
|
-
return fileIds
|
|
77
|
-
.map((id) => (isValidId(id) ? { id, status: components_1.Status.SUCCEEDED } : null))
|
|
78
|
-
.filter((item) => item !== null);
|
|
79
|
-
}
|
|
80
|
-
function isValidId(id) {
|
|
81
|
-
return (0, validators_1.isNumber)(id) || (0, validators_1.isString)(id);
|
|
82
|
-
}
|
|
83
|
-
function getValidationMessages(schema, required, defaultErrorMessages) {
|
|
84
|
-
const { minItems, maxItems } = schema;
|
|
85
|
-
return Object.assign(Object.assign(Object.assign({}, (required && { required: defaultErrorMessages.requiredMessage })), (minItems && { minItems: defaultErrorMessages.minItemsErrorMessage })), (maxItems && { maxItems: defaultErrorMessages.maxItemsErrorMessage }));
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=MultipleFileUploadSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleFileUploadSchema.js","sourceRoot":"","sources":["../../../../../src/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.tsx"],"names":[],"mappings":";;;;;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C,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,IAAI,CAAmB,CAAC;AACvD,CAAC;AAED,SAAS,SAAS,CAAC,EAAW;IAC5B,OAAO,IAAA,qBAAQ,EAAC,EAAE,CAAC,IAAI,IAAA,qBAAQ,EAAC,EAAE,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,qBAAqB,CAC5B,MAAuB,EACvB,QAAiB,EACjB,oBAAyE;IAEzE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IACtC,qDACK,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,eAAe,EAAE,CAAC,GAChE,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,oBAAoB,EAAE,CAAC,GACrE,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,oBAAoB,EAAE,CAAC,EACxE;AACJ,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const react_intl_1 = require("react-intl");
|
|
4
|
-
exports.default = (0, react_intl_1.defineMessages)({
|
|
5
|
-
minItemsError: {
|
|
6
|
-
id: 'dynamicFlows.MultipleFileUploadSchema.minItemsError',
|
|
7
|
-
defaultMessage: 'Please upload at least {minItems} file(s).',
|
|
8
|
-
description: 'Customer has uploaded not enough files. To fix: upload more files.',
|
|
9
|
-
},
|
|
10
|
-
maxItemsError: {
|
|
11
|
-
id: 'dynamicFlows.MultipleFileUploadSchema.maxItemsError',
|
|
12
|
-
defaultMessage: 'Please upload {maxItems} or fewer files.',
|
|
13
|
-
description: 'Customer has uploaded too many files. To fix: upload fewer files.',
|
|
14
|
-
},
|
|
15
|
-
maxFileSizeError: {
|
|
16
|
-
id: 'dynamicFlows.MultipleFileUploadSchema.maxFileSizeError',
|
|
17
|
-
defaultMessage: 'Sorry, that file is too big. Please upload a smaller file.',
|
|
18
|
-
description: "Customer has uploaded a file that's too big. To fix: upload a smaller file.",
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=MultipleFileUploadSchema.messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleFileUploadSchema.messages.js","sourceRoot":"","sources":["../../../../../src/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js"],"names":[],"mappings":";;AAAA,2CAA4C;AAE5C,kBAAe,IAAA,2BAAc,EAAC;IAC5B,aAAa,EAAE;QACb,EAAE,EAAE,qDAAqD;QACzD,cAAc,EAAE,4CAA4C;QAC5D,WAAW,EAAE,oEAAoE;KAClF;IACD,aAAa,EAAE;QACb,EAAE,EAAE,qDAAqD;QACzD,cAAc,EAAE,0CAA0C;QAC1D,WAAW,EAAE,mEAAmE;KACjF;IACD,gBAAgB,EAAE;QAChB,EAAE,EAAE,wDAAwD;QAC5D,cAAc,EAAE,4DAA4D;QAC5E,WAAW,EAAE,6EAA6E;KAC3F;CACF,CAAC,CAAC"}
|
package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var MultipleFileUploadSchema_1 = require("./MultipleFileUploadSchema");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(MultipleFileUploadSchema_1).default; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.ts"],"names":[],"mappings":";;;;;;AAAA,uEAAqD;AAA5C,oIAAA,OAAO,OAAA"}
|
package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./upload-utils"), exports);
|
|
18
|
-
__exportStar(require("./useFormattedDefaultErrorMessages"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,qEAAmD"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.constructUploadError = exports.constructUploadResponse = exports.createPayload = void 0;
|
|
4
|
-
const utils_1 = require("../../../../../common/utils");
|
|
5
|
-
const validators_1 = require("../../../../../common/validators");
|
|
6
|
-
async function createPayload(userUploadedFile, isBlobSchema) {
|
|
7
|
-
if (isBlobSchema) {
|
|
8
|
-
return userUploadedFile;
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
if (userUploadedFile instanceof Blob) {
|
|
12
|
-
return (0, utils_1.toBase64)(userUploadedFile);
|
|
13
|
-
}
|
|
14
|
-
throw new Error('Error creating payload for MultipleFileUploadSchema. Uploaded file is not an instance of Blob.');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.createPayload = createPayload;
|
|
18
|
-
function constructUploadResponse(response) {
|
|
19
|
-
const id = response.data;
|
|
20
|
-
return Object.assign({ id }, response);
|
|
21
|
-
}
|
|
22
|
-
exports.constructUploadResponse = constructUploadResponse;
|
|
23
|
-
function constructUploadError(response) {
|
|
24
|
-
const isError = response instanceof Error;
|
|
25
|
-
const hasValidData = (0, validators_1.isObject)(response) && 'data' in response;
|
|
26
|
-
const isInvalidResponseData = !hasValidData && !isError;
|
|
27
|
-
if (isInvalidResponseData) {
|
|
28
|
-
return (0, validators_1.isString)(response) ? response : undefined;
|
|
29
|
-
}
|
|
30
|
-
if (isError) {
|
|
31
|
-
const error = response;
|
|
32
|
-
return { id: (0, utils_1.generateRandomId)(), message: error.message };
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return Object.assign({ message: (0, validators_1.isString)(response.message) ? response.message : '' }, response);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.constructUploadError = constructUploadError;
|
|
39
|
-
//# sourceMappingURL=upload-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-utils.js","sourceRoot":"","sources":["../../../../../../src/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multiple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|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useFormattedDefaultErrorMessages = void 0;
|
|
7
|
-
const react_intl_1 = require("react-intl");
|
|
8
|
-
const messages_1 = __importDefault(require("../../../../../common/messages"));
|
|
9
|
-
const MultipleFileUploadSchema_messages_1 = __importDefault(require("../MultipleFileUploadSchema.messages"));
|
|
10
|
-
function useFormattedDefaultErrorMessages({ maxItems, minItems, }) {
|
|
11
|
-
const { formatMessage } = (0, react_intl_1.useIntl)();
|
|
12
|
-
const { maxFileSizeError, maxItemsError, minItemsError } = MultipleFileUploadSchema_messages_1.default;
|
|
13
|
-
return {
|
|
14
|
-
maxFileSizeErrorMessage: formatMessage(maxFileSizeError),
|
|
15
|
-
maxItemsErrorMessage: formatMessage(maxItemsError, { maxItems }),
|
|
16
|
-
minItemsErrorMessage: formatMessage(minItemsError, { minItems }),
|
|
17
|
-
requiredMessage: formatMessage(messages_1.default.required),
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
exports.useFormattedDefaultErrorMessages = useFormattedDefaultErrorMessages;
|
|
21
|
-
//# sourceMappingURL=useFormattedDefaultErrorMessages.js.map
|