@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePersistAsync.js","sourceRoot":"","sources":["../../../../src/common/hooks/usePersistAsync/usePersistAsync.ts"],"names":[],"mappings":";;;;;;AAAA,iCAAiC;AACjC,2CAAqC;AAErC,2DAAkF;AAClF,yIAA8F;AAC9F,wIAAkI,CAAC,+FAA+F;AAClO,0CAA4D;AAC5D,6CAA4C;AAC5C,iDAAiD;AAQ1C,MAAM,eAAe,GAAG,CAAC,YAA0B,EAA+B,EAAE;IACzF,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAyB,IAAI,CAAC,CAAC;IAErF,MAAM,OAAO,GAAG,IAAA,qBAAU,GAAE,CAAC;IAE7B,MAAM,IAAI,GAAG,IAAA,oBAAO,GAAE,CAAC;IAEvB,MAAM,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC;IAEhC,KAAK,UAAU,kBAAkB,CAAC,KAAwB;QACxD,MAAM,eAAe,GACnB,KAAK,YAAY,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,oBAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,0BAAa,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAEhF,IAAI,IAAA,mBAAM,EAAC,KAAK,CAAC,IAAI,eAAe,EAAE;YACpC,WAAW,EAAE,CAAC;SACf;QAED,OAAO,MAAM,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,uCAAuC,GAAG,GAAG,EAAE;QACnD,IAAI,eAAe,EAAE;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,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;KAC7B;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAc;IACtC,OAAO,IAAA,qBAAQ,EAAC,KAAK,CAAC,IAAI,SAAS,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC;AACpF,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createPollingClosure = exports.usePolling = void 0;
|
|
4
|
-
/* eslint-disable fp/no-mutation */
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
function usePolling({ asyncFn, interval, maxAttempts, maxConsecutiveFails, onPollingResponse, onFailure, }) {
|
|
7
|
-
const onPollingResponseReference = (0, react_1.useRef)(onPollingResponse);
|
|
8
|
-
const onFailureReference = (0, react_1.useRef)(onFailure);
|
|
9
|
-
const poll = (0, react_1.useMemo)(() => createPollingClosure(asyncFn, maxAttempts, maxConsecutiveFails, (pollingResponse) => onPollingResponseReference.current(pollingResponse), () => onFailureReference.current()), [asyncFn, maxAttempts, maxConsecutiveFails]);
|
|
10
|
-
(0, react_1.useEffect)(() => {
|
|
11
|
-
if (interval > 0) {
|
|
12
|
-
const intervalReference = setInterval(() => {
|
|
13
|
-
poll();
|
|
14
|
-
}, interval);
|
|
15
|
-
return () => clearInterval(intervalReference);
|
|
16
|
-
}
|
|
17
|
-
}, [poll, interval]);
|
|
18
|
-
(0, react_1.useEffect)(() => {
|
|
19
|
-
onPollingResponseReference.current = onPollingResponse;
|
|
20
|
-
onFailureReference.current = onFailure;
|
|
21
|
-
}, [onPollingResponse, onFailure]);
|
|
22
|
-
}
|
|
23
|
-
exports.usePolling = usePolling;
|
|
24
|
-
function createPollingClosure(asyncFn, maxAttempts, maxConsecutiveFails, onPollingResponse, onFailure) {
|
|
25
|
-
let isPolling = true;
|
|
26
|
-
let consecutiveFailures = 0;
|
|
27
|
-
let attemptCount = 0;
|
|
28
|
-
return asyncFn
|
|
29
|
-
? () => {
|
|
30
|
-
if (isPolling) {
|
|
31
|
-
attemptCount++;
|
|
32
|
-
asyncFn()
|
|
33
|
-
.then((pollingResponse) => {
|
|
34
|
-
consecutiveFailures = 0;
|
|
35
|
-
isPolling = onPollingResponse(pollingResponse);
|
|
36
|
-
})
|
|
37
|
-
.catch(() => {
|
|
38
|
-
consecutiveFailures++;
|
|
39
|
-
})
|
|
40
|
-
.finally(() => {
|
|
41
|
-
if (consecutiveFailures >= maxConsecutiveFails || attemptCount >= maxAttempts) {
|
|
42
|
-
onFailure();
|
|
43
|
-
isPolling = false;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
: () => {
|
|
49
|
-
//
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
exports.createPollingClosure = createPollingClosure;
|
|
53
|
-
//# sourceMappingURL=usePolling.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePolling.js","sourceRoot":"","sources":["../../../../src/common/hooks/usePolling/usePolling.tsx"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,iCAAmD;AAWnD,SAAgB,UAAU,CAAkB,EAC1C,OAAO,EACP,QAAQ,EACR,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,GACuB;IAChC,MAAM,0BAA0B,GAAG,IAAA,cAAM,EAAC,iBAAiB,CAAC,CAAC;IAC7D,MAAM,kBAAkB,GAAG,IAAA,cAAM,EAAC,SAAS,CAAC,CAAC;IAE7C,MAAM,IAAI,GAAG,IAAA,eAAO,EAClB,GAAG,EAAE,CACH,oBAAoB,CAClB,OAAO,EACP,WAAW,EACX,mBAAmB,EACnB,CAAC,eAAe,EAAE,EAAE,CAAC,0BAA0B,CAAC,OAAO,CAAC,eAAe,CAAC,EACxE,GAAG,EAAE,CAAC,kBAAkB,CAA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AI,WAAW,EAAE;wBAC7E,SAAS,EAAE,CAAC;wBACZ,SAAS,GAAG,KAAK,CAAC;qBACnB;gBACH,CAAC,CAAC,CAAC;aACN;QACH,CAAC;QACH,CAAC,CAAC,GAAG,EAAE;YACH,EAAE;QACJ,CAAC,CAAC;AACR,CAAC;AAlCD,oDAkCC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePrevious = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const usePrevious = (value) => {
|
|
6
|
-
const reference = (0, react_1.useRef)();
|
|
7
|
-
(0, react_1.useEffect)(() => {
|
|
8
|
-
reference.current = value;
|
|
9
|
-
}, [value]);
|
|
10
|
-
return reference.current;
|
|
11
|
-
};
|
|
12
|
-
exports.usePrevious = usePrevious;
|
|
13
|
-
//# sourceMappingURL=usePrevious.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePrevious.js","sourceRoot":"","sources":["../../../../src/common/hooks/usePrevious/usePrevious.js"],"names":[],"mappings":";;;AAAA,iCAA0C;AAEnC,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,EAAE;IACnC,MAAM,SAAS,GAAG,IAAA,cAAM,GAAE,CAAC;IAE3B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;IAC5B,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,SAAS,CAAC,OAAO,CAAC;AAC3B,CAAC,CAAC;AARW,QAAA,WAAW,eAQtB"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStepPolling = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const __1 = require("..");
|
|
6
|
-
const contexts_1 = require("../../contexts");
|
|
7
|
-
function useStepPolling(polling, onAction) {
|
|
8
|
-
const fetcher = (0, contexts_1.useFetcher)();
|
|
9
|
-
const asyncFn = (0, react_1.useMemo)(() => {
|
|
10
|
-
if (polling) {
|
|
11
|
-
return () => {
|
|
12
|
-
return fetcher(polling.url).then((response) => {
|
|
13
|
-
if (response.ok) {
|
|
14
|
-
return response
|
|
15
|
-
.json()
|
|
16
|
-
.then((pollingResponse) => pollingResponse)
|
|
17
|
-
.catch((error) => null);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error('failed');
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
}, [polling, fetcher]);
|
|
29
|
-
const onPollingResponse = (0, react_1.useCallback)((pollingResponse) => {
|
|
30
|
-
if (pollingResponse === null || pollingResponse === void 0 ? void 0 : pollingResponse.action) {
|
|
31
|
-
onAction(pollingResponse.action);
|
|
32
|
-
return false; // stop polling
|
|
33
|
-
}
|
|
34
|
-
return true; // continue polling
|
|
35
|
-
}, [onAction]);
|
|
36
|
-
(0, __1.usePolling)({
|
|
37
|
-
asyncFn,
|
|
38
|
-
interval: 1000 * ((polling === null || polling === void 0 ? void 0 : polling.interval) || 0),
|
|
39
|
-
maxAttempts: (polling === null || polling === void 0 ? void 0 : polling.maxAttempts) || 0,
|
|
40
|
-
maxConsecutiveFails: 1,
|
|
41
|
-
onPollingResponse,
|
|
42
|
-
onFailure: (0, react_1.useCallback)(() => {
|
|
43
|
-
if (polling) {
|
|
44
|
-
onAction(polling.onError.action);
|
|
45
|
-
}
|
|
46
|
-
}, [onAction, polling]),
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
exports.useStepPolling = useStepPolling;
|
|
50
|
-
//# sourceMappingURL=useStepPolling.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStepPolling.js","sourceRoot":"","s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,OAAO,CAAE,QAAQ,KAAI,CAAC,CAAC;QACzC,WAAW,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,KAAI,CAAC;QACtC,mBAAmB,EAAE,CAAC;QACtB,iBAAiB;QACjB,SAAS,EAAE,IAAA,mBAAW,EAAC,GAAG,EAAE;YAC1B,IAAI,OAAO,EAAE;gBACX,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;aAClC;QACH,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;KACxB,CAAC,CAAC;AACL,CAAC;AAhDD,wCAgDC"}
|
|
@@ -1,18 +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("./makeFetcher"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/makeFetcher/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeFetcher = void 0;
|
|
4
|
-
const api_utils_1 = require("../utils/api-utils");
|
|
5
|
-
const makeFetcher = (baseUrl, additionalHeaders) => (input, init) => {
|
|
6
|
-
const resource = applyBaseUrl(input, baseUrl || '');
|
|
7
|
-
const headers = mergeHeaders(init === null || init === void 0 ? void 0 : init.headers, additionalHeaders);
|
|
8
|
-
return fetch(resource, Object.assign(Object.assign({}, (init || {})), { headers }));
|
|
9
|
-
};
|
|
10
|
-
exports.makeFetcher = makeFetcher;
|
|
11
|
-
const applyBaseUrl = (input, baseUrl) => {
|
|
12
|
-
return typeof input === 'string' && (0, api_utils_1.isRelativePath)(input) ? baseUrl + input : input;
|
|
13
|
-
};
|
|
14
|
-
const mergeHeaders = (initHeaders, additionalHeaders) => {
|
|
15
|
-
if (!initHeaders && !additionalHeaders) {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
18
|
-
const headers = new Headers(initHeaders);
|
|
19
|
-
for (const [key, value] of Object.entries(additionalHeaders || {})) {
|
|
20
|
-
headers.set(key, value);
|
|
21
|
-
}
|
|
22
|
-
return headers;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=makeFetcher.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeFetcher.js","sourceRoot":"","sources":["../../../src/common/makeFetcher/makeFetcher.ts"],"names":[],"mappings":";;;AAAA,kDAAoD;AAI7C,MAAM,WAAW,GACtB,CAAC,OAAe,EAAE,iBAA+B,EAAW,EAAE,CAC9D,CAAC,KAAK,EAAE,IAAK,EAAE,EAAE;IACf,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;IACpD,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAC/D,OAAO,KAAK,CAAC,QAAQ,kCAAO,CAAC,IAAI,IAAI,EAAE,CAAC,KAAE,OAAO,IAAG,CAAC;AACvD,CAAC,CAAC;AANS,QAAA,WAAW,eAMpB;AAEJ,MAAM,YAAY,GAAG,CAAC,KAA6B,EAAE,OAAe,EAAE,EAAE;IACtE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAA,0BAAc,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,WAAyB,EAAE,iBAA+B,EAAE,EAAE;IAClF,IAAI,CAAC,WAAW,IAAI,CAAC,iBAAiB,EAAE;QACtC,OAAO,EAAE,CAAC;KACX;IACD,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC,EAAE;QAClE,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAe,CAAC,CAAC;KACnC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
package/build/common/messages.js
DELETED
|
@@ -1,11 +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
|
-
required: {
|
|
6
|
-
id: 'dynamicFlows.DefaultErrorMessages.required',
|
|
7
|
-
defaultMessage: 'Please fill out this field.',
|
|
8
|
-
description: 'Customer has left the required field empty',
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/common/messages.ts"],"names":[],"mappings":";;AAAA,2CAA4C;AAE5C,kBAAe,IAAA,2BAAc,EAAC;IAC5B,QAAQ,EAAE;QACR,EAAE,EAAE,4CAA4C;QAChD,cAAc,EAAE,6BAA6B;QAC7C,WAAW,EAAE,4CAA4C;KAC1D;CACF,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRelativePath = exports.getJson = exports.isStatus422 = exports.isStatus2xx = void 0;
|
|
4
|
-
function isStatus2xx(status) {
|
|
5
|
-
return status >= 200 && status < 300;
|
|
6
|
-
}
|
|
7
|
-
exports.isStatus2xx = isStatus2xx;
|
|
8
|
-
function isStatus422(status) {
|
|
9
|
-
return status === 422;
|
|
10
|
-
}
|
|
11
|
-
exports.isStatus422 = isStatus422;
|
|
12
|
-
function getJson(response) {
|
|
13
|
-
return response.json();
|
|
14
|
-
}
|
|
15
|
-
exports.getJson = getJson;
|
|
16
|
-
function isRelativePath(url = '') {
|
|
17
|
-
return (['https://', 'http://', 'data:'].some((prefix) => url.slice(0, prefix.length) === prefix && url.length > prefix.length) === false);
|
|
18
|
-
}
|
|
19
|
-
exports.isRelativePath = isRelativePath;
|
|
20
|
-
//# sourceMappingURL=api-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-utils.js","sourceRoot":"","sources":["../../../src/common/utils/api-utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,MAA0B;IACpD,OAAO,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC;AACvC,CAAC;AAFD,kCAEC;AAED,SAAgB,WAAW,CAAC,MAA0B;IACpD,OAAO,MAAM,KAAK,GAAG,CAAC;AACxB,CAAC;AAFD,kCAEC;AAED,SAAgB,OAAO,CAAC,QAAkB;IACxC,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACzB,CAAC;AAFD,0BAEC;AAED,SAAgB,cAAc,CAAC,GAAG,GAAG,EAAE;IACrC,OAAO,CACL,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CACnC,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CACjF,KAAK,KAAK,CACZ,CAAC;AACJ,CAAC;AAND,wCAMC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dateToDateString = exports.dateStringToDate = void 0;
|
|
4
|
-
const validators_1 = require("../validators");
|
|
5
|
-
// function taken from: https://stackoverflow.com/questions/23593052/format-javascript-date-as-yyyy-mm-dd
|
|
6
|
-
function formatDate(date) {
|
|
7
|
-
const d = new Date(date);
|
|
8
|
-
const month = `${d.getMonth() + 1}`;
|
|
9
|
-
const day = `${d.getDate()}`;
|
|
10
|
-
const year = d.getFullYear();
|
|
11
|
-
const formattedMonth = month.length < 2 ? `0${month}` : month;
|
|
12
|
-
const formattedDay = day.length < 2 ? `0${day}` : day;
|
|
13
|
-
return [year, formattedMonth, formattedDay].join('-');
|
|
14
|
-
}
|
|
15
|
-
const dateStringToDate = (dateString) => {
|
|
16
|
-
if (!dateString) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
const [year, month, date] = dateString.split('-').map((number) => parseInt(number, 10));
|
|
20
|
-
if (!(0, validators_1.isNumber)(year) || !(0, validators_1.isNumber)(month) || !(0, validators_1.isNumber)(date)) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
return new Date(year, month - 1, date);
|
|
24
|
-
};
|
|
25
|
-
exports.dateStringToDate = dateStringToDate;
|
|
26
|
-
const dateToDateString = (date) => formatDate(date);
|
|
27
|
-
exports.dateToDateString = dateToDateString;
|
|
28
|
-
//# sourceMappingURL=date-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-utils.js","sourceRoot":"","sources":["../../../src/common/utils/date-utils.ts"],"names":[],"mappings":";;;AAAA,8CAAyC;AAEzC,yGAAyG;AACzG,SAAS,UAAU,CAAC,IAAmB;IACrC,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,MAAM,KAAK,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC;IACpC,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;IAE7B,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9D,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAEtD,OAAO,CAAC,IAAI,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACxD,CAAC;AAEM,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAE,EAAE;IACrD,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;IAExF,IAAI,CAAC,IAAA,qBAAQ,EAAC,IAAI,CAAC,IAAI,CAAC,IAAA,qBAAQ,EAAC,KAAK,CAAC,IAAI,CAAC,IAAA,qBAAQ,EAAC,IAAI,CAAC,EAAE;QAC1D,OAAO,IAAI,CAAC;KACb;IAED,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC,CAAC;AAZW,QAAA,gBAAgB,oBAY3B;AAEK,MAAM,gBAAgB,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAApD,QAAA,gBAAgB,oBAAoC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.debounce = void 0;
|
|
4
|
-
const debounce = (callback, waitMs) => {
|
|
5
|
-
let timeoutId;
|
|
6
|
-
let lastArgs;
|
|
7
|
-
const clearTimer = () => {
|
|
8
|
-
if (timeoutId) {
|
|
9
|
-
clearTimeout(timeoutId);
|
|
10
|
-
timeoutId = null;
|
|
11
|
-
}
|
|
12
|
-
lastArgs = null;
|
|
13
|
-
};
|
|
14
|
-
const debouncedFn = (...args) => {
|
|
15
|
-
lastArgs = args;
|
|
16
|
-
if (timeoutId !== null) {
|
|
17
|
-
clearTimeout(timeoutId);
|
|
18
|
-
}
|
|
19
|
-
timeoutId = setTimeout(() => {
|
|
20
|
-
callback(...lastArgs);
|
|
21
|
-
timeoutId = null;
|
|
22
|
-
lastArgs = null;
|
|
23
|
-
}, waitMs);
|
|
24
|
-
};
|
|
25
|
-
debouncedFn.cancel = () => {
|
|
26
|
-
if (timeoutId !== null) {
|
|
27
|
-
clearTimer();
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
debouncedFn.flush = () => {
|
|
31
|
-
if (timeoutId !== null) {
|
|
32
|
-
callback(...lastArgs);
|
|
33
|
-
clearTimer();
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
return debouncedFn;
|
|
37
|
-
};
|
|
38
|
-
exports.debounce = debounce;
|
|
39
|
-
//# sourceMappingURL=debounce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../../src/common/utils/debounce.ts"],"names":[],"mappings":";;;AAOO,MAAM,QAAQ,GAAG,CACtB,QAAW,EACX,MAAc,EACI,EAAE;IACpB,IAAI,SAA+C,CAAC;IACpD,IAAI,QAA8B,CAAC;IAEnC,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,SAAS,EAAE;YACb,YAAY,CAAC,SAAS,CAAC,CAAC;YACxB,SAAS,GAAG,IAAI,CAAC;SAClB;QACD,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,GAAG,IAAmB,EAAE,EAAE;QAC7C,QAAQ,GAAG,IAAI,CAAC;QAEhB,IAAI,SAAS,KAAK,IAAI,EAAE;YACtB,YAAY,CAAC,SAAS,CAAC,CAAC;SACzB;QAED,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;YAC1B,QAAQ,CAAC,GAAI,QAA0B,CAAC,CAAC;YACzC,SAAS,GAAG,IAAI,CAAC;YACjB,QAAQ,GAAG,IAAI,CAAC;QAClB,CAAC,EAAE,MAAM,CAAC,CAAC;IACb,CAAC,CAAC;IAEF,WAAW,CAAC,MAAM,GAAG,GAAG,EAAE;QACxB,IAAI,SAAS,KAAK,IAAI,EAAE;YACtB,UAAU,EAAE,CAAC;SACd;IACH,CAAC,CAAC;IAEF,WAAW,CAAC,KAAK,GAAG,GAAG,EAAE;QACvB,IAAI,SAAS,KAAK,IAAI,EAAE;YACtB,QAAQ,CAAC,GAAI,QAA0B,CAAC,CAAC;YACzC,UAAU,EAAE,CAAC;SACd;IACH,CAAC,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AA3CW,QAAA,QAAQ,YA2CnB"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.areFilesSame = exports.toBase64 = exports.toKilobytes = void 0;
|
|
4
|
-
function toKilobytes(sizeInBytes) {
|
|
5
|
-
const ONE_KB_IN_BYTES = 1024;
|
|
6
|
-
return Math.floor(sizeInBytes / ONE_KB_IN_BYTES);
|
|
7
|
-
}
|
|
8
|
-
exports.toKilobytes = toKilobytes;
|
|
9
|
-
//TODO: Refactor: This is duplicate logic as in CameraStep.tsx
|
|
10
|
-
const toBase64 = (file) => {
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
// we can safely assume the type of reader.result is string
|
|
13
|
-
// because we're calling reader.readAsDataURL
|
|
14
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result
|
|
15
|
-
const reader = new FileReader();
|
|
16
|
-
reader.readAsDataURL(file);
|
|
17
|
-
reader.addEventListener('load', () => resolve(reader.result));
|
|
18
|
-
reader.addEventListener('error', (error) => reject(error));
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.toBase64 = toBase64;
|
|
22
|
-
function areFilesSame(newFiles, files) {
|
|
23
|
-
const fileIdToExistingFileMap = files.reduce((map, fileObject) => {
|
|
24
|
-
return Object.assign(Object.assign({}, map), { [fileObject.id]: fileObject });
|
|
25
|
-
}, {});
|
|
26
|
-
for (const newFile of newFiles) {
|
|
27
|
-
const existingFileObject = fileIdToExistingFileMap[newFile.id];
|
|
28
|
-
const fileDoesNotExistAlready = !existingFileObject;
|
|
29
|
-
if (fileDoesNotExistAlready) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
if (existingFileObject.status !== newFile.status) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
exports.areFilesSame = areFilesSame;
|
|
39
|
-
//# sourceMappingURL=file-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-utils.js","s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AAK,CAAC;SACd;QACD,IAAI,kBAAkB,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE;YAChD,OAAO,KAAK,CAAC;SACd;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAjBD,oCAiBC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateRandomId = void 0;
|
|
4
|
-
const generateRandomId = (prefix = '') => {
|
|
5
|
-
const prefixString = prefix ? `${prefix}-` : '';
|
|
6
|
-
return `${prefixString}${Math.floor(100000000 * Math.random())}`;
|
|
7
|
-
};
|
|
8
|
-
exports.generateRandomId = generateRandomId;
|
|
9
|
-
//# sourceMappingURL=id-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"id-utils.js","sourceRoot":"","sources":["../../../src/common/utils/id-utils.ts"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,CAAC,MAAM,GAAG,EAAE,EAAE,EAAE;IAC9C,MAAM,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAChD,OAAO,GAAG,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;AACnE,CAAC,CAAC;AAHW,QAAA,gBAAgB,oBAG3B"}
|
|
@@ -1,25 +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("./api-utils"), exports);
|
|
18
|
-
__exportStar(require("./date-utils"), exports);
|
|
19
|
-
__exportStar(require("./debounce"), exports);
|
|
20
|
-
__exportStar(require("./is-equal"), exports);
|
|
21
|
-
__exportStar(require("./file-utils"), exports);
|
|
22
|
-
__exportStar(require("./id-utils"), exports);
|
|
23
|
-
__exportStar(require("./schema-utils"), exports);
|
|
24
|
-
__exportStar(require("./step-utils"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,iDAA+B;AAC/B,+CAA6B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isEqual = void 0;
|
|
4
|
-
const isEqual = (a, b) => {
|
|
5
|
-
if (a === b) {
|
|
6
|
-
return true;
|
|
7
|
-
}
|
|
8
|
-
if (Array.isArray(a) && Array.isArray(b)) {
|
|
9
|
-
return a.length === b.length && a.every((item, index) => (0, exports.isEqual)(item, b[index]));
|
|
10
|
-
}
|
|
11
|
-
if (isNonNullObject(a) && isNonNullObject(b) && isObjectEquals(a, b)) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
return false;
|
|
15
|
-
};
|
|
16
|
-
exports.isEqual = isEqual;
|
|
17
|
-
const isObjectEquals = (a, b) => {
|
|
18
|
-
const keysA = Object.keys(a);
|
|
19
|
-
const keysB = Object.keys(b);
|
|
20
|
-
return (keysA.length === keysB.length &&
|
|
21
|
-
keysA.every((key) => Object.prototype.hasOwnProperty.call(b, key) && (0, exports.isEqual)(a[key], b[key])));
|
|
22
|
-
};
|
|
23
|
-
const isNonNullObject = (a) => {
|
|
24
|
-
return typeof a === 'object' && a !== null;
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=is-equal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-equal.js","sourceRoot":"","sources":["../../../src/common/utils/is-equal.ts"],"names":[],"mappings":";;;AAAO,MAAM,OAAO,GAAG,CAAC,CAAU,EAAE,CAAU,EAAW,EAAE;IACzD,IAAI,CAAC,KAAK,CAAC,EAAE;QACX,OAAO,IAAI,CAAC;KACb;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACxC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAA,eAAO,EAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACnF;IAED,IAAI,eAAe,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;QACpE,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAdW,QAAA,OAAO,WAclB;AAEF,MAAM,cAAc,GAAG,CAAC,CAA0B,EAAE,CAA0B,EAAE,EAAE;IAChF,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAE7B,OAAO,CACL,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAC7B,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,IAAA,eAAO,EAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAC9F,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,CAAU,EAAgC,EAAE;IACnE,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,CAAC;AAC7C,CAAC,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.shouldDebounceSchema = exports.getSchemaType = exports.isAllOfSchema = exports.isOneOfSchema = exports.isPromotedOneOfSchema = exports.isReadOnlySchema = void 0;
|
|
4
|
-
const types_1 = require("../../types");
|
|
5
|
-
const constants_1 = require("../constants");
|
|
6
|
-
const isReadOnlySchema = (schema) => !!schema.readOnly && (0, types_1.isBasicSchema)(schema);
|
|
7
|
-
exports.isReadOnlySchema = isReadOnlySchema;
|
|
8
|
-
const isPromotedOneOfSchema = (schema) => !!schema.oneOf && !!schema.promotion;
|
|
9
|
-
exports.isPromotedOneOfSchema = isPromotedOneOfSchema;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Please use isOneOfSchema type guard function from "dynamic-flow-types"
|
|
12
|
-
*/
|
|
13
|
-
exports.isOneOfSchema = types_1.isOneOfSchema;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Please use isAllOfSchema type guard function from "dynamic-flow-types"
|
|
16
|
-
*/
|
|
17
|
-
exports.isAllOfSchema = types_1.isAllOfSchema;
|
|
18
|
-
const getSchemaType = (schema) => {
|
|
19
|
-
// Order of application is important here
|
|
20
|
-
if ((0, exports.isReadOnlySchema)(schema)) {
|
|
21
|
-
return constants_1.SchemaType.READ_ONLY;
|
|
22
|
-
}
|
|
23
|
-
if ((0, types_1.isPersistAsyncSchema)(schema)) {
|
|
24
|
-
return constants_1.SchemaType.PERSIST_ASYNC;
|
|
25
|
-
}
|
|
26
|
-
if ((0, types_1.isValidationAsyncSchema)(schema)) {
|
|
27
|
-
return constants_1.SchemaType.VALIDATION_ASYNC;
|
|
28
|
-
}
|
|
29
|
-
if ((0, types_1.isObjectSchema)(schema)) {
|
|
30
|
-
return constants_1.SchemaType.OBJECT;
|
|
31
|
-
}
|
|
32
|
-
if ((0, types_1.isArraySchema)(schema)) {
|
|
33
|
-
return constants_1.SchemaType.ARRAY;
|
|
34
|
-
}
|
|
35
|
-
if ((0, exports.isPromotedOneOfSchema)(schema)) {
|
|
36
|
-
return constants_1.SchemaType.PROMOTED_ONE_OF;
|
|
37
|
-
}
|
|
38
|
-
if ((0, exports.isOneOfSchema)(schema)) {
|
|
39
|
-
return constants_1.SchemaType.ONE_OF;
|
|
40
|
-
}
|
|
41
|
-
if ((0, exports.isAllOfSchema)(schema)) {
|
|
42
|
-
return constants_1.SchemaType.ALL_OF;
|
|
43
|
-
}
|
|
44
|
-
if ((0, types_1.isBasicSchema)(schema)) {
|
|
45
|
-
return constants_1.SchemaType.BASIC;
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
49
|
-
exports.getSchemaType = getSchemaType;
|
|
50
|
-
function shouldDebounceSchema(schema) {
|
|
51
|
-
return ((0, exports.getSchemaType)(schema) === constants_1.SchemaType.BASIC &&
|
|
52
|
-
schema.type !== 'boolean' &&
|
|
53
|
-
schema.format !== 'base64url');
|
|
54
|
-
}
|
|
55
|
-
exports.shouldDebounceSchema = shouldDebounceSchema;
|
|
56
|
-
//# sourceMappingURL=schema-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-utils.js","sourceRoot":"","sources":["../../../src/common/utils/schema-utils.ts"],"names":[],"mappings":";;;AAAA,uCASqB;AACrB,4CAA0C;AAEnC,MAAM,gBAAgB,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,IAAA,qBAAa,EAAC,MAAM,CAAC,CAAC;AAAlF,QAAA,gBAAgB,oBAAkE;AAExF,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;AAAjF,QAAA,qBAAqB,yBAA4D;AAE9F;;GAEG;AACU,QAAA,aAAa,GAAG,qBAAe,CAAC;AAE7C;;GAEG;AACU,QAAA,aAAa,GAAG,qBAAe,CAAC;AAEtC,MAAM,aAAa,GAAG,CAAC,MAAc,EAAE,EAAE;IAC9C,yCAAyC;IACzC,IAAI,IAAA,wBAAgB,EAAC,MAAM,CAAC,EAAE;QAC5B,OAAO,sBAAU,CAAC,SAAS,CAAC;KAC7B;IACD,IAAI,IAAA,4BAAoB,EAAC,MAAM,CAAC,EAAE;QAChC,OAAO,sBAAU,CAAC,aAAa,CAAC;KACjC;IACD,IAAI,IAAA,+BAAuB,EAAC,MAAM,CAAC,EAAE;QACnC,OAAO,sBAAU,CAAC,gBAAgB,CAAC;KACpC;IACD,IAAI,IAAA,sBAAc,EAAC,MAAM,CAAC,EAAE;QAC1B,OAAO,sBAAU,CAAC,MAAM,CAAC;KAC1B;IACD,IAAI,IAAA,qBAAa,EAAC,MAAM,CAAC,EAAE;QACzB,OAAO,sBAAU,CAAC,KAAK,CAAC;KACzB;IACD,IAAI,IAAA,6BAAqB,EAAC,MAAM,CAAC,EAAE;QACjC,OAAO,sBAAU,CAAC,eAAe,CAAC;KACnC;IACD,IAAI,IAAA,qBAAa,EAAC,MAAM,CAAC,EAAE;QACzB,OAAO,sBAAU,CAAC,MAAM,CAAC;KAC1B;IACD,IAAI,IAAA,qBAAa,EAAC,MAAM,CAAC,EAAE;QACzB,OAAO,sBAAU,CAAC,MAAM,CAAC;KAC1B;IACD,IAAI,IAAA,qBAAa,EAAC,MAAM,CAAC,EAAE;QACzB,OAAO,sBAAU,CAAC,KAAK,CAAC;KACzB;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA9BW,QAAA,aAAa,iBA8BxB;AAEF,SAAgB,oBAAoB,CAAC,MAAc;IACjD,OAAO,CACL,IAAA,qBAAa,EAAC,MAAM,CAAC,KAAK,sBAAU,CAAC,KAAK;QAC1C,MAAM,CAAC,IAAI,KAAK,SAAS;QACzB,MAAM,CAAC,MAAM,KAAK,WAAW,CAC9B,CAAC;AACJ,CAAC;AAND,oDAMC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStepType = exports.filterHiddenSchemas = exports.stepType = void 0;
|
|
4
|
-
const types_1 = require("../../types");
|
|
5
|
-
exports.stepType = {
|
|
6
|
-
LAYOUT: 'layout',
|
|
7
|
-
CAMERA: 'camera',
|
|
8
|
-
};
|
|
9
|
-
const isCameraStep = (step) => {
|
|
10
|
-
return isFormStep(step) && hasSingleAction(step) && hasSingleFileUploadSchemaWithCameraOnly(step);
|
|
11
|
-
};
|
|
12
|
-
const isFormStep = (step) => (step === null || step === void 0 ? void 0 : step.type) === 'form';
|
|
13
|
-
const hasSingleAction = (step) => { var _a; return ((_a = step === null || step === void 0 ? void 0 : step.actions) === null || _a === void 0 ? void 0 : _a.length) === 1; };
|
|
14
|
-
const hasSingleFileUploadSchemaWithCameraOnly = (step) => {
|
|
15
|
-
if (!step.schemas) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
const schemas = (0, exports.filterHiddenSchemas)(step.schemas);
|
|
19
|
-
if ((schemas === null || schemas === void 0 ? void 0 : schemas.length) !== 1) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
const firstSchema = schemas[0];
|
|
23
|
-
if (!(0, types_1.isObjectSchema)(firstSchema) || Object.values(firstSchema.properties).length !== 1) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
const childSchema = Object.values(firstSchema.properties)[0];
|
|
27
|
-
if (!(0, types_1.isFileUploadSchema)(childSchema)) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
return childSchema.source === 'camera';
|
|
31
|
-
};
|
|
32
|
-
const filterHiddenSchemas = (schemas) => {
|
|
33
|
-
return schemas.filter((schema) => {
|
|
34
|
-
if ((0, types_1.isObjectSchema)(schema)) {
|
|
35
|
-
return Object.values((schema === null || schema === void 0 ? void 0 : schema.properties) || {}).find((schema) => (schema === null || schema === void 0 ? void 0 : schema.hidden) !== true);
|
|
36
|
-
}
|
|
37
|
-
return (schema === null || schema === void 0 ? void 0 : schema.hidden) !== true;
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
exports.filterHiddenSchemas = filterHiddenSchemas;
|
|
41
|
-
const getStepType = (step) => {
|
|
42
|
-
if (isCameraStep(step)) {
|
|
43
|
-
return exports.stepType.CAMERA;
|
|
44
|
-
}
|
|
45
|
-
return exports.stepType.LAYOUT;
|
|
46
|
-
};
|
|
47
|
-
exports.getStepType = getStepType;
|
|
48
|
-
//# sourceMappingURL=step-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"step-utils.js","sourceRoot":"","sources":["../../../src/common/utils/step-utils.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAElE,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,IAAU,EAAE,EAAE;IAClC,OAAO,UAAU,CA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C,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;QAC/B,IAAI,IAAA,sBAAc,EAAC,MAAM,CAAC,EAAE;YAC1B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,KAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,IAAI,CAAC,CAAC;SAC1F;QACD,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,IAAI,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,mBAAmB,uBAO9B;AAEK,MAAM,WAAW,GAAG,CAAC,IAAU,EAAE,EAAE;IACxC,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE;QACtB,OAAO,gBAAQ,CAAC,MAAM,CAAC;KACxB;IAED,OAAO,gBAAQ,CAAC,MAAM,CAAC;AACzB,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB"}
|
|
@@ -1,29 +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
|
-
exports.getArrayValidationFailures = exports.getValidationFailures = exports.isValidSchema = exports.getValidBasicModelOrNull = exports.getValidObjectModelParts = exports.getValidModelParts = void 0;
|
|
18
|
-
var model_validators_1 = require("./models/model-validators");
|
|
19
|
-
Object.defineProperty(exports, "getValidModelParts", { enumerable: true, get: function () { return model_validators_1.getValidModelParts; } });
|
|
20
|
-
Object.defineProperty(exports, "getValidObjectModelParts", { enumerable: true, get: function () { return model_validators_1.getValidObjectModelParts; } });
|
|
21
|
-
Object.defineProperty(exports, "getValidBasicModelOrNull", { enumerable: true, get: function () { return model_validators_1.getValidBasicModelOrNull; } });
|
|
22
|
-
var schema_validators_1 = require("./schemas/schema-validators");
|
|
23
|
-
Object.defineProperty(exports, "isValidSchema", { enumerable: true, get: function () { return schema_validators_1.isValidSchema; } });
|
|
24
|
-
var validation_failures_1 = require("./validationFailures/validation-failures");
|
|
25
|
-
Object.defineProperty(exports, "getValidationFailures", { enumerable: true, get: function () { return validation_failures_1.getValidationFailures; } });
|
|
26
|
-
Object.defineProperty(exports, "getArrayValidationFailures", { enumerable: true, get: function () { return validation_failures_1.getArrayValidationFailures; } });
|
|
27
|
-
__exportStar(require("./types/type-validators"), exports);
|
|
28
|
-
__exportStar(require("./values/value-validators"), exports);
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/validators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAImC;AAHjC,sHAAA,kBAAkB,OAAA;AAClB,4HAAA,wBAAwB,OAAA;AACxB,4HAAA,wBAAwB,OAAA;AAG1B,iEAA4D;AAAnD,kHAAA,aAAa,OAAA;AAEtB,gFAGkD;AAFhD,4HAAA,qBAAqB,OAAA;AACrB,iIAAA,0BAA0B,OAAA;AAG5B,0DAAwC;AACxC,4DAA0C"}
|