@legalplace/wizardx-core 2.3.0 → 2.4.0
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/CHANGELOG.md +20 -0
- package/dist/App.d.ts +5 -5
- package/dist/App.js +22 -35
- package/dist/App.test.js +2 -2
- package/dist/Globals.d.ts +4 -0
- package/dist/Globals.js +9 -6
- package/dist/Loader.d.ts +1 -0
- package/dist/Loader.js +2 -0
- package/dist/PluginLoader.d.ts +3 -3
- package/dist/PluginLoader.js +22 -26
- package/dist/PluginLoader.test.js +6 -6
- package/dist/Shimmer.d.ts +1 -1
- package/dist/Shimmer.js +45 -47
- package/dist/ThemeLoader.d.ts +6 -5
- package/dist/ThemeLoader.js +21 -25
- package/dist/ThemeLoader.test.js +4 -3
- package/dist/components/PluginRoute.d.ts +3 -3
- package/dist/components/PluginRoute.js +8 -7
- package/dist/components/SmartScript.d.ts +7 -8
- package/dist/components/SmartScript.js +22 -21
- package/dist/components/UserLocked/UserLockedComponent.d.ts +1 -1
- package/dist/components/UserLocked/UserLockedComponent.js +5 -6
- package/dist/components/View.d.ts +8 -4
- package/dist/components/View.js +46 -55
- package/dist/components/View.test.js +6 -5
- package/dist/componentsConnectors/connectBox.d.ts +2 -3
- package/dist/componentsConnectors/connectBox.js +4 -4
- package/dist/componentsConnectors/connectBox.test.js +7 -7
- package/dist/componentsConnectors/connectDocument.d.ts +0 -1
- package/dist/componentsConnectors/connectDocument.js +6 -6
- package/dist/componentsConnectors/connectDocument.test.js +5 -5
- package/dist/componentsConnectors/connectHeader.d.ts +0 -1
- package/dist/componentsConnectors/connectHeader.js +2 -2
- package/dist/componentsConnectors/connectMetaTitle.d.ts +0 -1
- package/dist/componentsConnectors/connectMetaTitle.js +2 -2
- package/dist/componentsConnectors/connectMetaTitle.test.js +3 -3
- package/dist/componentsConnectors/connectOption.d.ts +2 -3
- package/dist/componentsConnectors/connectOption.js +9 -9
- package/dist/componentsConnectors/connectPagination.d.ts +0 -1
- package/dist/componentsConnectors/connectPagination.js +3 -3
- package/dist/componentsConnectors/connectPreview.d.ts +0 -1
- package/dist/componentsConnectors/connectPreview.js +2 -2
- package/dist/componentsConnectors/connectProgress.d.ts +0 -1
- package/dist/componentsConnectors/connectProgress.js +3 -3
- package/dist/componentsConnectors/connectRootOption.d.ts +2 -3
- package/dist/componentsConnectors/connectRootOption.js +2 -2
- package/dist/componentsConnectors/connectSection.d.ts +0 -1
- package/dist/componentsConnectors/connectSection.js +4 -4
- package/dist/componentsConnectors/connectSummary.d.ts +0 -1
- package/dist/componentsConnectors/connectSummary.js +2 -2
- package/dist/componentsConnectors/connectSummaryItem.d.ts +0 -1
- package/dist/componentsConnectors/connectSummaryItem.js +6 -6
- package/dist/componentsConnectors/connectTermsheet.d.ts +2 -2
- package/dist/componentsConnectors/connectTermsheet.js +43 -46
- package/dist/componentsConnectors/connectVariable.d.ts +1 -2
- package/dist/componentsConnectors/connectVariable.js +10 -10
- package/dist/componentsConnectors/connectWizardWrapper.d.ts +0 -1
- package/dist/componentsConnectors/connectWizardWrapper.js +4 -4
- package/dist/componentsConnectors/connector/componentConnector.d.ts +8 -8
- package/dist/componentsConnectors/connector/componentConnector.js +16 -19
- package/dist/componentsConnectors/library.d.ts +61 -0
- package/dist/componentsConnectors/library.js +34 -0
- package/dist/config.d.ts +1 -1
- package/dist/constants/phoneValidation.d.ts +3 -0
- package/dist/constants/phoneValidation.js +3 -0
- package/dist/helpers/outputsParsing.d.ts +1 -1
- package/dist/helpers/outputsParsing.js +25 -25
- package/dist/helpers/preloadTheme.js +1 -1
- package/dist/helpers/scriptsLoader.d.ts +1 -0
- package/dist/helpers/scriptsLoader.js +24 -0
- package/dist/helpers/sendinblueHelper.d.ts +3 -3
- package/dist/helpers/sendinblueHelper.js +29 -18
- package/dist/hooks/usePrevious.js +1 -1
- package/dist/libs/ConditionsInitiator.d.ts +1 -1
- package/dist/libs/ConditionsInitiator.js +2 -2
- package/dist/libs/ConditionsRunner/DataPopulator.js +7 -7
- package/dist/libs/ConditionsRunner.d.ts +3 -3
- package/dist/libs/ConditionsRunner.js +43 -43
- package/dist/libs/DocumentsOutputs.d.ts +2 -2
- package/dist/libs/DocumentsOutputs.js +5 -5
- package/dist/libs/Eval/EvalBase.js +17 -17
- package/dist/libs/Eval/EvalFunctions.d.ts +1 -1
- package/dist/libs/Eval/EvalFunctions.js +100 -100
- package/dist/libs/Eval/NumbersToLetters.js +46 -46
- package/dist/libs/EvalVariable.d.ts +2 -2
- package/dist/libs/EvalVariable.js +30 -29
- package/dist/libs/EventsTracking.js +32 -32
- package/dist/libs/Extracts.js +20 -20
- package/dist/libs/InputsInitiator.d.ts +1 -1
- package/dist/libs/InputsInitiator.js +15 -15
- package/dist/libs/NumAuto.js +1 -1
- package/dist/libs/OvcConverter.d.ts +1 -1
- package/dist/libs/OvcConverter.js +23 -23
- package/dist/libs/PathReader.d.ts +1 -1
- package/dist/libs/PathReader.js +22 -22
- package/dist/libs/SectionValidity.js +3 -3
- package/dist/libs/SmartScriptStore.d.ts +6 -6
- package/dist/libs/SmartScriptStore.js +33 -33
- package/dist/misc/test_model.d.ts +2 -2
- package/dist/misc/test_model.js +3807 -3807
- package/dist/polyfills/index.d.ts +5 -0
- package/dist/polyfills/index.js +5 -0
- package/dist/polyfills/prepend.js +2 -2
- package/dist/polyfills/stringRepeat.js +4 -4
- package/dist/redux/actions/app.d.ts +12 -12
- package/dist/redux/actions/app.js +1 -1
- package/dist/redux/actions/conditions.d.ts +2 -2
- package/dist/redux/actions/conditions.js +1 -1
- package/dist/redux/actions/inputs.d.ts +1 -1
- package/dist/redux/actions/inputs.js +1 -1
- package/dist/redux/actions/library.d.ts +73 -0
- package/dist/redux/actions/library.js +11 -0
- package/dist/redux/actions/mandatories.d.ts +1 -1
- package/dist/redux/actions/mandatories.js +1 -1
- package/dist/redux/actions/references.d.ts +4 -4
- package/dist/redux/actions/references.js +1 -1
- package/dist/redux/actions/sagas/data.d.ts +1 -1
- package/dist/redux/actions/sagas/data.js +1 -1
- package/dist/redux/actions/sagas/model.d.ts +3 -3
- package/dist/redux/actions/sagas/model.js +3 -3
- package/dist/redux/actions/sagas/user.d.ts +1 -1
- package/dist/redux/actions/sagas/user.js +1 -1
- package/dist/redux/actions/smartscript.d.ts +3 -3
- package/dist/redux/actions/smartscript.js +1 -1
- package/dist/redux/actions/user.d.ts +4 -4
- package/dist/redux/actions/user.js +1 -1
- package/dist/redux/constants/app.js +22 -22
- package/dist/redux/constants/conditions.js +8 -8
- package/dist/redux/constants/inputs.js +6 -6
- package/dist/redux/constants/mandatories.js +6 -6
- package/dist/redux/constants/references.js +3 -3
- package/dist/redux/constants/sagas/data.js +1 -1
- package/dist/redux/constants/sagas/model.js +2 -2
- package/dist/redux/constants/sagas/user.js +2 -2
- package/dist/redux/constants/smartscript.js +4 -4
- package/dist/redux/constants/user.js +3 -3
- package/dist/redux/listeners/subscriber.d.ts +2 -2
- package/dist/redux/middlewares/conditionsWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/conditionsWatcherMiddleware.js +28 -28
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.d.ts +4 -2
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.js +10 -10
- package/dist/redux/middlewares/mandatoriesWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/mandatoriesWatcherMiddleware.js +13 -13
- package/dist/redux/middlewares/multiplesActionsMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/multiplesActionsMiddleware.js +2 -2
- package/dist/redux/middlewares/paginationWatcherMiddleware.d.ts +3 -3
- package/dist/redux/middlewares/paginationWatcherMiddleware.js +24 -24
- package/dist/redux/middlewares/pluginsHookMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/pluginsHookMiddleware.js +1 -1
- package/dist/redux/middlewares/prefillerWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/prefillerWatcherMiddleware.js +28 -28
- package/dist/redux/middlewares/smartscriptMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/smartscriptMiddleware.js +15 -15
- package/dist/redux/middlewares/thirdpartyScriptsMiddleware.d.ts +5 -0
- package/dist/redux/middlewares/thirdpartyScriptsMiddleware.js +16 -0
- package/dist/redux/reducers/app/customizations/initCustomizationAutoDefault.d.ts +2 -2
- package/dist/redux/reducers/app/customizations/initCustomizationMeta.d.ts +2 -2
- package/dist/redux/reducers/app/instance/initInstance.d.ts +2 -2
- package/dist/redux/reducers/app/instance/setDataStatus.d.ts +2 -2
- package/dist/redux/reducers/app/instance/updateInstance.d.ts +2 -2
- package/dist/redux/reducers/app/instance/updateInstancePaid.d.ts +2 -2
- package/dist/redux/reducers/app/meta/fetchModelFailed.d.ts +1 -1
- package/dist/redux/reducers/app/meta/fetchModelFailed.js +1 -1
- package/dist/redux/reducers/app/meta/fetchModelNonBlocking.d.ts +1 -1
- package/dist/redux/reducers/app/meta/fetchModelNonBlocking.js +1 -1
- package/dist/redux/reducers/app/meta/fetchModelSucceeded.d.ts +1 -1
- package/dist/redux/reducers/app/meta/fetchModelSucceeded.js +1 -1
- package/dist/redux/reducers/app/meta/fetchModelUnhealthy.d.ts +2 -2
- package/dist/redux/reducers/app/meta/fetchModelUnhealthy.js +1 -1
- package/dist/redux/reducers/app/meta/fetchModelUserLocked.d.ts +1 -1
- package/dist/redux/reducers/app/meta/fetchModelUserLocked.js +1 -1
- package/dist/redux/reducers/app/meta/initMeta.d.ts +2 -2
- package/dist/redux/reducers/app/meta/setModelUuid.d.ts +2 -2
- package/dist/redux/reducers/app/pagination/goNextPage.d.ts +1 -1
- package/dist/redux/reducers/app/pagination/goNextPage.js +1 -1
- package/dist/redux/reducers/app/pagination/goPage.d.ts +2 -2
- package/dist/redux/reducers/app/pagination/goPage.js +2 -2
- package/dist/redux/reducers/app/pagination/goPreviousPage.d.ts +1 -1
- package/dist/redux/reducers/app/pagination/goPreviousPage.js +1 -1
- package/dist/redux/reducers/app/pagination/initPagination.d.ts +2 -2
- package/dist/redux/reducers/app/pagination/initPagination.js +1 -1
- package/dist/redux/reducers/app/pagination/updateAvailableAppStates.d.ts +2 -2
- package/dist/redux/reducers/app/pagination/updateAvailableAppStates.js +5 -5
- package/dist/redux/reducers/app/wizard/updateAvailableSections.d.ts +2 -2
- package/dist/redux/reducers/app/wizard/updateAvailableSections.js +2 -2
- package/dist/redux/reducers/app.d.ts +2 -2
- package/dist/redux/reducers/app.js +30 -30
- package/dist/redux/reducers/conditions/addMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/conditions/addMultipleOccurency.js +3 -3
- package/dist/redux/reducers/conditions/deleteMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/conditions/deleteMultipleOccurency.js +2 -2
- package/dist/redux/reducers/conditions/initConditions.d.ts +2 -2
- package/dist/redux/reducers/conditions/updateDocumentConditions.d.ts +2 -2
- package/dist/redux/reducers/conditions/updateOptionConditions.d.ts +2 -2
- package/dist/redux/reducers/conditions/updateOptionValidatorCondition.d.ts +2 -2
- package/dist/redux/reducers/conditions/updatePrefillerConditions.d.ts +2 -2
- package/dist/redux/reducers/conditions/updatePrefillerConditions.js +2 -2
- package/dist/redux/reducers/conditions/updateSectionConditions.d.ts +2 -2
- package/dist/redux/reducers/conditions/updateVariableConditions.d.ts +2 -2
- package/dist/redux/reducers/conditions/updateVariableValidatorCondition.d.ts +2 -2
- package/dist/redux/reducers/conditions.d.ts +2 -2
- package/dist/redux/reducers/conditions.js +13 -13
- package/dist/redux/reducers/inputs/addMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/inputs/addMultipleOccurency.js +4 -4
- package/dist/redux/reducers/inputs/deleteMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/inputs/deleteMultipleOccurency.js +2 -2
- package/dist/redux/reducers/inputs/initOption.d.ts +2 -2
- package/dist/redux/reducers/inputs/initVariable.d.ts +2 -2
- package/dist/redux/reducers/inputs/updateOptionInput.d.ts +2 -2
- package/dist/redux/reducers/inputs/updateVariableInput.d.ts +2 -2
- package/dist/redux/reducers/inputs.d.ts +2 -2
- package/dist/redux/reducers/inputs.js +8 -8
- package/dist/redux/reducers/mandatories/addMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/mandatories/addMultipleOccurency.js +2 -2
- package/dist/redux/reducers/mandatories/deleteMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/mandatories/deleteMultipleOccurency.js +2 -2
- package/dist/redux/reducers/mandatories/initMandatoryOption.d.ts +2 -2
- package/dist/redux/reducers/mandatories/initMandatoryVariable.d.ts +2 -2
- package/dist/redux/reducers/mandatories/setMandatoryIgnore.d.ts +2 -2
- package/dist/redux/reducers/mandatories/setMandatoryOption.d.ts +2 -2
- package/dist/redux/reducers/mandatories/setMandatorySection.d.ts +2 -2
- package/dist/redux/reducers/mandatories/setMandatoryVariable.d.ts +2 -2
- package/dist/redux/reducers/mandatories.d.ts +2 -2
- package/dist/redux/reducers/mandatories.js +11 -11
- package/dist/redux/reducers/references/initReferences.d.ts +2 -2
- package/dist/redux/reducers/references/updateOptionMeta.d.ts +2 -2
- package/dist/redux/reducers/references/updateOptionMeta.js +2 -2
- package/dist/redux/reducers/references/updateVariableMeta.d.ts +2 -2
- package/dist/redux/reducers/references/updateVariableMeta.js +2 -2
- package/dist/redux/reducers/references.d.ts +2 -2
- package/dist/redux/reducers/references.js +5 -5
- package/dist/redux/reducers/smartscript/enableSmartScript.d.ts +1 -1
- package/dist/redux/reducers/smartscript/initSmartScriptTriggers.d.ts +2 -2
- package/dist/redux/reducers/smartscript/updateSmartscriptOptionHidden.d.ts +2 -2
- package/dist/redux/reducers/smartscript/updateSmartscriptVariableHidden.d.ts +2 -2
- package/dist/redux/reducers/smartscript.d.ts +2 -2
- package/dist/redux/reducers/smartscript.js +6 -6
- package/dist/redux/reducers/user/initUser.d.ts +2 -2
- package/dist/redux/reducers/user/setUserStatus.d.ts +2 -2
- package/dist/redux/reducers/user/setUserValidToken.d.ts +2 -2
- package/dist/redux/reducers/user.d.ts +2 -2
- package/dist/redux/reducers/user.js +9 -9
- package/dist/redux/routerHistory.d.ts +2 -2
- package/dist/redux/routerHistory.js +5 -5
- package/dist/redux/sagas/fetchModel.d.ts +4 -4
- package/dist/redux/sagas/fetchModel.js +84 -88
- package/dist/redux/sagas/fetchModel.test.js +2 -3
- package/dist/redux/sagas/homogeneousRadioInputsSaga.js +5 -5
- package/dist/redux/sagas/runner.d.ts +1 -1
- package/dist/redux/sagas/runner.js +5 -5
- package/dist/redux/sagas/saveData.js +34 -25
- package/dist/redux/sagas/setDefaults.js +8 -8
- package/dist/redux/sagas/setUserEmail.js +43 -43
- package/dist/redux/selectors/app.d.ts +1 -0
- package/dist/redux/selectors/app.js +26 -25
- package/dist/redux/selectors/conditions.js +34 -34
- package/dist/redux/selectors/inputs.d.ts +1 -1
- package/dist/redux/selectors/inputs.js +8 -8
- package/dist/{componentsConnectors/connector/connectorSelectors.d.ts → redux/selectors/library.d.ts} +16 -16
- package/dist/redux/selectors/library.js +8 -0
- package/dist/redux/selectors/mandatories.js +10 -10
- package/dist/redux/selectors/references.js +19 -19
- package/dist/redux/selectors/selectors.d.ts +2 -2
- package/dist/redux/selectors/selectors.js +2 -2
- package/dist/redux/selectors/smartscript.js +5 -5
- package/dist/redux/selectors/user.js +5 -5
- package/dist/redux/store.d.ts +6 -2
- package/dist/redux/store.js +31 -31
- package/dist/service/api.manager.d.ts +2 -2
- package/dist/service/api.manager.js +46 -46
- package/dist/service/auth.service.js +2 -2
- package/dist/service/pardot.service.js +2 -2
- package/dist/tests-misc/plugins/jestTestPlugin/after.d.ts +1 -1
- package/dist/tests-misc/plugins/jestTestPlugin/after.js +2 -2
- package/dist/tests-misc/plugins/jestTestPlugin/before.d.ts +1 -1
- package/dist/tests-misc/plugins/jestTestPlugin/before.js +2 -5
- package/dist/tests-misc/plugins/jestTestPlugin/index.js +4 -4
- package/dist/tests-misc/plugins/jestTestPlugin/title.d.ts +1 -1
- package/dist/tests-misc/plugins/jestTestPlugin/title.js +2 -2
- package/dist/tests-misc/themes/jestTestTheme/components/EmailComponent.d.ts +0 -1
- package/dist/tests-misc/themes/jestTestTheme/components/EmailComponent.js +2 -2
- package/dist/tests-misc/themes/jestTestTheme/components/TermsheetComponent.d.ts +0 -1
- package/dist/tests-misc/themes/jestTestTheme/components/TermsheetComponent.js +2 -2
- package/dist/tests-misc/themes/jestTestTheme/components/WizardComponent.d.ts +0 -1
- package/dist/tests-misc/themes/jestTestTheme/components/WizardComponent.js +2 -2
- package/dist/tests-misc/themes/jestTestTheme/faltyIndex.js +1 -1
- package/dist/tests-misc/themes/jestTestTheme/faltyIndexLoader.js +1 -1
- package/dist/tests-misc/themes/jestTestTheme/index.js +4 -4
- package/dist/types/Actions.type.d.ts +37 -37
- package/dist/types/Components.type.d.ts +4 -5
- package/dist/types/State.type.d.ts +9 -9
- package/dist/types/Termsheet.type.d.ts +4 -4
- package/dist/types/api.type.d.ts +4 -4
- package/dist/types/config.type.d.ts +2 -3
- package/dist/types/getActions.type.d.ts +2 -2
- package/dist/types/getConnectors.type.d.ts +2 -3
- package/dist/types/getSelectors.type.d.ts +2 -2
- package/dist/wizard-params.d.ts +1 -1
- package/dist/wizard-params.js +16 -16
- package/jest.config.ts +1 -1
- package/package.json +16 -8
- package/setupJest.ts +8 -0
- package/src/App.tsx +22 -25
- package/src/Globals.ts +12 -8
- package/src/Loader.tsx +8 -0
- package/src/PluginLoader.tsx +20 -37
- package/src/Shimmer.tsx +58 -45
- package/src/ThemeLoader.test.tsx +1 -0
- package/src/ThemeLoader.tsx +27 -42
- package/src/components/PluginRoute.tsx +8 -6
- package/src/components/SmartScript.tsx +29 -28
- package/src/components/UserLocked/UserLockedComponent.tsx +3 -3
- package/src/components/View.test.tsx +3 -0
- package/src/components/View.tsx +52 -54
- package/src/componentsConnectors/connectBox.tsx +6 -6
- package/src/componentsConnectors/connectDocument.tsx +6 -6
- package/src/componentsConnectors/connectHeader.tsx +2 -2
- package/src/componentsConnectors/connectMetaTitle.tsx +2 -2
- package/src/componentsConnectors/connectOption.tsx +11 -11
- package/src/componentsConnectors/connectPagination.tsx +3 -3
- package/src/componentsConnectors/connectPreview.tsx +2 -2
- package/src/componentsConnectors/connectProgress.tsx +3 -3
- package/src/componentsConnectors/connectRootOption.tsx +4 -4
- package/src/componentsConnectors/connectSection.tsx +4 -4
- package/src/componentsConnectors/connectSummary.tsx +2 -2
- package/src/componentsConnectors/connectSummaryItem.tsx +6 -6
- package/src/componentsConnectors/connectTermsheet.tsx +46 -46
- package/src/componentsConnectors/connectVariable.tsx +11 -11
- package/src/componentsConnectors/connectWizardWrapper.tsx +4 -4
- package/src/componentsConnectors/connector/componentConnector.tsx +22 -20
- package/src/componentsConnectors/library.ts +35 -0
- package/src/config.test.ts +2 -1
- package/src/config.ts +1 -1
- package/src/constants/phoneValidation.ts +6 -0
- package/src/definitions/path.join.d.ts +1 -1
- package/src/helpers/outputsParsing.ts +26 -26
- package/src/helpers/preloadTheme.ts +2 -2
- package/src/helpers/scriptsLoader.ts +20 -0
- package/src/helpers/sendinblueHelper.ts +23 -17
- package/src/hooks/usePrevious.ts +1 -1
- package/src/libs/ConditionsInitiator.ts +3 -3
- package/src/libs/ConditionsRunner/DataPopulator.ts +7 -7
- package/src/libs/ConditionsRunner.ts +53 -53
- package/src/libs/DocumentsOutputs.ts +7 -7
- package/src/libs/Eval/EvalBase.ts +17 -17
- package/src/libs/Eval/EvalFunctions.ts +100 -100
- package/src/libs/Eval/NumbersToLetters.ts +48 -48
- package/src/libs/EvalVariable.ts +34 -31
- package/src/libs/EventsTracking.ts +38 -38
- package/src/libs/Extracts.ts +21 -21
- package/src/libs/InputsInitiator.ts +16 -16
- package/src/libs/NumAuto.ts +1 -1
- package/src/libs/OvcConverter.ts +25 -25
- package/src/libs/PathReader.ts +23 -23
- package/src/libs/SectionValidity.ts +3 -3
- package/src/libs/SmartScriptStore.ts +40 -40
- package/src/misc/test_model.ts +3809 -3809
- package/src/polyfills/index.ts +5 -0
- package/src/polyfills/prepend.ts +2 -2
- package/src/polyfills/stringRepeat.ts +4 -4
- package/src/redux/actions/app.ts +13 -13
- package/src/redux/actions/conditions.ts +3 -3
- package/src/redux/actions/inputs.ts +2 -2
- package/src/redux/actions/library.ts +23 -0
- package/src/redux/actions/mandatories.ts +2 -2
- package/src/redux/actions/references.ts +5 -5
- package/src/redux/actions/sagas/data.ts +2 -2
- package/src/redux/actions/sagas/model.ts +6 -6
- package/src/redux/actions/sagas/user.ts +2 -2
- package/src/redux/actions/smartscript.ts +4 -4
- package/src/redux/actions/user.ts +5 -5
- package/src/redux/constants/app.ts +22 -22
- package/src/redux/constants/conditions.ts +8 -8
- package/src/redux/constants/inputs.ts +6 -6
- package/src/redux/constants/mandatories.ts +6 -6
- package/src/redux/constants/references.ts +3 -3
- package/src/redux/constants/sagas/data.ts +1 -1
- package/src/redux/constants/sagas/model.ts +2 -2
- package/src/redux/constants/sagas/user.ts +2 -2
- package/src/redux/constants/smartscript.ts +4 -4
- package/src/redux/constants/user.ts +3 -3
- package/src/redux/listeners/subscriber.ts +2 -2
- package/src/redux/middlewares/conditionsWatcherMiddleware.ts +31 -31
- package/src/redux/middlewares/evaluationsWatcherMiddleware.test.ts +1 -1
- package/src/redux/middlewares/evaluationsWatcherMiddleware.ts +13 -13
- package/src/redux/middlewares/mandatoriesWatcherMiddleware.ts +16 -16
- package/src/redux/middlewares/multiplesActionsMiddleware.ts +6 -6
- package/src/redux/middlewares/paginationWatcherMiddleware.ts +27 -27
- package/src/redux/middlewares/pluginsHookMiddleware.ts +2 -2
- package/src/redux/middlewares/prefillerWatcherMiddleware.ts +31 -31
- package/src/redux/middlewares/smartscriptMiddleware.ts +20 -20
- package/src/redux/middlewares/thirdpartyScriptsMiddleware.ts +41 -0
- package/src/redux/reducers/app/customizations/initCustomizationAutoDefault.ts +2 -2
- package/src/redux/reducers/app/customizations/initCustomizationMeta.ts +2 -2
- package/src/redux/reducers/app/instance/initInstance.ts +2 -2
- package/src/redux/reducers/app/instance/setDataStatus.ts +2 -2
- package/src/redux/reducers/app/instance/updateInstance.ts +2 -2
- package/src/redux/reducers/app/instance/updateInstancePaid.ts +2 -2
- package/src/redux/reducers/app/meta/fetchModelFailed.ts +2 -2
- package/src/redux/reducers/app/meta/fetchModelNonBlocking.ts +2 -2
- package/src/redux/reducers/app/meta/fetchModelSucceeded.ts +2 -2
- package/src/redux/reducers/app/meta/fetchModelUnhealthy.ts +3 -3
- package/src/redux/reducers/app/meta/fetchModelUserLocked.ts +2 -2
- package/src/redux/reducers/app/meta/initMeta.ts +2 -2
- package/src/redux/reducers/app/meta/setModelUuid.ts +2 -2
- package/src/redux/reducers/app/pagination/goNextPage.ts +2 -2
- package/src/redux/reducers/app/pagination/goPage.ts +4 -4
- package/src/redux/reducers/app/pagination/goPreviousPage.ts +2 -2
- package/src/redux/reducers/app/pagination/initPagination.ts +3 -3
- package/src/redux/reducers/app/pagination/updateAvailableAppStates.ts +7 -7
- package/src/redux/reducers/app/wizard/updateAvailableSections.ts +4 -4
- package/src/redux/reducers/app.ts +32 -32
- package/src/redux/reducers/conditions/addMultipleOccurency.ts +5 -5
- package/src/redux/reducers/conditions/deleteMultipleOccurency.ts +4 -4
- package/src/redux/reducers/conditions/initConditions.ts +2 -2
- package/src/redux/reducers/conditions/updateDocumentConditions.ts +2 -2
- package/src/redux/reducers/conditions/updateOptionConditions.ts +2 -2
- package/src/redux/reducers/conditions/updateOptionValidatorCondition.ts +2 -2
- package/src/redux/reducers/conditions/updatePrefillerConditions.ts +4 -4
- package/src/redux/reducers/conditions/updateSectionConditions.ts +2 -2
- package/src/redux/reducers/conditions/updateVariableConditions.ts +2 -2
- package/src/redux/reducers/conditions/updateVariableValidatorCondition.ts +2 -2
- package/src/redux/reducers/conditions.ts +15 -15
- package/src/redux/reducers/inputs/addMultipleOccurency.ts +6 -6
- package/src/redux/reducers/inputs/deleteMultipleOccurency.ts +4 -4
- package/src/redux/reducers/inputs/initOption.ts +2 -2
- package/src/redux/reducers/inputs/initVariable.ts +2 -2
- package/src/redux/reducers/inputs/updateOptionInput.ts +2 -2
- package/src/redux/reducers/inputs/updateVariableInput.ts +2 -2
- package/src/redux/reducers/inputs.ts +10 -10
- package/src/redux/reducers/mandatories/addMultipleOccurency.ts +4 -4
- package/src/redux/reducers/mandatories/deleteMultipleOccurency.ts +4 -4
- package/src/redux/reducers/mandatories/initMandatoryOption.ts +2 -2
- package/src/redux/reducers/mandatories/initMandatoryVariable.ts +2 -2
- package/src/redux/reducers/mandatories/setMandatoryIgnore.ts +2 -2
- package/src/redux/reducers/mandatories/setMandatoryOption.ts +2 -2
- package/src/redux/reducers/mandatories/setMandatorySection.ts +2 -2
- package/src/redux/reducers/mandatories/setMandatoryVariable.ts +2 -2
- package/src/redux/reducers/mandatories.ts +13 -13
- package/src/redux/reducers/references/initReferences.ts +2 -2
- package/src/redux/reducers/references/updateOptionMeta.ts +4 -4
- package/src/redux/reducers/references/updateVariableMeta.ts +4 -4
- package/src/redux/reducers/references.ts +7 -7
- package/src/redux/reducers/smartscript/enableSmartScript.ts +1 -1
- package/src/redux/reducers/smartscript/initSmartScriptTriggers.ts +2 -2
- package/src/redux/reducers/smartscript/updateSmartscriptOptionHidden.ts +2 -2
- package/src/redux/reducers/smartscript/updateSmartscriptVariableHidden.ts +2 -2
- package/src/redux/reducers/smartscript.ts +8 -8
- package/src/redux/reducers/user/initUser.ts +2 -2
- package/src/redux/reducers/user/setUserStatus.ts +2 -2
- package/src/redux/reducers/user/setUserValidToken.ts +2 -2
- package/src/redux/reducers/user.ts +11 -11
- package/src/redux/routerHistory.ts +6 -6
- package/src/redux/sagas/fetchModel.test.ts +2 -5
- package/src/redux/sagas/fetchModel.ts +91 -100
- package/src/redux/sagas/homogeneousRadioInputsSaga.ts +6 -6
- package/src/redux/sagas/runner.ts +6 -6
- package/src/redux/sagas/saveData.ts +32 -28
- package/src/redux/sagas/setDefaults.ts +8 -8
- package/src/redux/sagas/setUserEmail.ts +46 -45
- package/src/redux/selectors/app.ts +34 -28
- package/src/redux/selectors/conditions.ts +41 -41
- package/src/redux/selectors/inputs.ts +10 -10
- package/src/redux/selectors/library.ts +17 -0
- package/src/redux/selectors/mandatories.ts +10 -10
- package/src/redux/selectors/references.ts +21 -21
- package/src/redux/selectors/selectors.ts +4 -4
- package/src/redux/selectors/smartscript.ts +6 -6
- package/src/redux/selectors/user.ts +8 -8
- package/src/redux/store.ts +42 -32
- package/src/service/api.manager.ts +53 -53
- package/src/service/auth.service.ts +2 -2
- package/src/service/pardot.service.ts +2 -2
- package/src/tests-misc/plugins/jestTestPlugin/after.tsx +1 -1
- package/src/tests-misc/plugins/jestTestPlugin/before.tsx +1 -1
- package/src/tests-misc/plugins/jestTestPlugin/index.ts +4 -4
- package/src/tests-misc/plugins/jestTestPlugin/title.tsx +2 -2
- package/src/tests-misc/themes/jestTestTheme/components/EmailComponent.tsx +1 -1
- package/src/tests-misc/themes/jestTestTheme/components/TermsheetComponent.tsx +1 -1
- package/src/tests-misc/themes/jestTestTheme/components/WizardComponent.tsx +1 -1
- package/src/tests-misc/themes/jestTestTheme/faltyIndex.ts +1 -1
- package/src/tests-misc/themes/jestTestTheme/faltyIndexLoader.ts +1 -1
- package/src/tests-misc/themes/jestTestTheme/index.ts +4 -4
- package/src/types/Actions.type.ts +55 -55
- package/src/types/Components.type.ts +4 -4
- package/src/types/State.type.ts +14 -14
- package/src/types/Termsheet.type.ts +4 -4
- package/src/types/api.type.ts +4 -4
- package/src/types/config.type.ts +3 -3
- package/src/types/getActions.type.ts +2 -2
- package/src/types/getConnectors.type.ts +2 -2
- package/src/types/getSelectors.type.ts +2 -2
- package/src/wizard-params.ts +17 -17
- package/tsconfig.json +1 -1
- package/dist/componentsConnectors/connector/connectorSelectors.js +0 -9
- package/dist/componentsConnectors/index.d.ts +0 -16
- package/dist/componentsConnectors/index.js +0 -16
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/index.js +0 -1
- package/dist/helpers/index.d.ts +0 -2
- package/dist/helpers/index.js +0 -2
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +0 -1
- package/dist/index.d.ts +0 -23
- package/dist/index.js +0 -23
- package/dist/libs/index.d.ts +0 -12
- package/dist/libs/index.js +0 -12
- package/dist/redux/actions/index.d.ts +0 -8
- package/dist/redux/actions/index.js +0 -8
- package/dist/redux/actions/sagas/index.d.ts +0 -3
- package/dist/redux/actions/sagas/index.js +0 -3
- package/dist/redux/constants/index.d.ts +0 -8
- package/dist/redux/constants/index.js +0 -8
- package/dist/redux/constants/sagas/index.d.ts +0 -3
- package/dist/redux/constants/sagas/index.js +0 -3
- package/dist/redux/index.d.ts +0 -4
- package/dist/redux/index.js +0 -4
- package/dist/redux/selectors/index.d.ts +0 -7
- package/dist/redux/selectors/index.js +0 -7
- package/dist/service/index.d.ts +0 -3
- package/dist/service/index.js +0 -3
- package/dist/types/index.d.ts +0 -10
- package/dist/types/index.js +0 -10
- package/src/componentsConnectors/connector/connectorSelectors.ts +0 -19
- package/src/componentsConnectors/index.ts +0 -16
- package/src/constants/index.ts +0 -1
- package/src/helpers/index.ts +0 -2
- package/src/hooks/index.ts +0 -1
- package/src/index.ts +0 -47
- package/src/libs/index.ts +0 -12
- package/src/redux/actions/index.ts +0 -8
- package/src/redux/actions/sagas/index.ts +0 -3
- package/src/redux/constants/index.ts +0 -8
- package/src/redux/constants/sagas/index.ts +0 -3
- package/src/redux/index.ts +0 -4
- package/src/redux/selectors/index.ts +0 -7
- package/src/service/index.ts +0 -3
- package/src/types/index.ts +0 -10
package/src/polyfills/prepend.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
// Source: https://github.com/jserz/js_piece/blob/master/DOM/ParentNode/prepend()/prepend().md
|
|
5
5
|
(function (arr) {
|
|
6
6
|
arr.forEach((item) => {
|
|
7
|
-
if (item.hasOwnProperty(
|
|
7
|
+
if (item.hasOwnProperty("prepend")) {
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
|
-
Object.defineProperty(item,
|
|
10
|
+
Object.defineProperty(item, "prepend", {
|
|
11
11
|
configurable: true,
|
|
12
12
|
enumerable: true,
|
|
13
13
|
writable: true,
|
|
@@ -14,20 +14,20 @@ if (!String.prototype.repeat) {
|
|
|
14
14
|
// Check NaN
|
|
15
15
|
if (isNaN(count)) count = 0;
|
|
16
16
|
|
|
17
|
-
if (count < 0) throw new RangeError(
|
|
17
|
+
if (count < 0) throw new RangeError("repeat count must be non-negative");
|
|
18
18
|
|
|
19
19
|
if (count === Infinity)
|
|
20
|
-
throw new RangeError(
|
|
20
|
+
throw new RangeError("repeat count must be less than infinity");
|
|
21
21
|
|
|
22
22
|
count = Math.floor(count);
|
|
23
|
-
if (str.length === 0 || count === 0) return
|
|
23
|
+
if (str.length === 0 || count === 0) return "";
|
|
24
24
|
|
|
25
25
|
// Ensuring count is a 31-bit integer allows us to heavily optimize the
|
|
26
26
|
// main part. But anyway, most current (August 2014) browsers can't handle
|
|
27
27
|
// strings 1 << 28 chars or longer, so:
|
|
28
28
|
if (str.length * count >= 1 << 28)
|
|
29
29
|
throw new RangeError(
|
|
30
|
-
|
|
30
|
+
"repeat count must not overflow maximum string size"
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
const maxCount = str.length * count;
|
package/src/redux/actions/app.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ModelV3 } from
|
|
2
|
-
import { StateType } from
|
|
3
|
-
import { ActionsType } from
|
|
1
|
+
import type { ModelV3 } from "@legalplace/models-v3-types";
|
|
2
|
+
import { StateType } from "../../types/State.type";
|
|
3
|
+
import { ActionsType } from "../../types/Actions.type";
|
|
4
4
|
import {
|
|
5
5
|
INIT_META,
|
|
6
6
|
INIT_INSTANCE,
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
SET_FETCH_STATUS,
|
|
25
25
|
FETCH_MODEL_NONBLOCKING,
|
|
26
26
|
SET_MODEL_UUID,
|
|
27
|
-
} from
|
|
27
|
+
} from "../constants/app";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Meta initialization action
|
|
31
31
|
* @param meta An object containing the document's id, permalink & title
|
|
32
32
|
*/
|
|
33
33
|
export const initMetaAction = (
|
|
34
|
-
meta: Omit<StateType.App.Meta,
|
|
34
|
+
meta: Omit<StateType.App.Meta, "fetchStatus">
|
|
35
35
|
): ActionsType.App.initMeta => ({
|
|
36
36
|
type: INIT_META,
|
|
37
37
|
...meta,
|
|
@@ -41,7 +41,7 @@ export const initMetaAction = (
|
|
|
41
41
|
* Returns a set Model Uuid action
|
|
42
42
|
*/
|
|
43
43
|
export const setModelUuidAction = (
|
|
44
|
-
modelUuid: StateType.App.Meta[
|
|
44
|
+
modelUuid: StateType.App.Meta["modelUuid"]
|
|
45
45
|
): ActionsType.App.setModelUuid => ({
|
|
46
46
|
type: SET_MODEL_UUID,
|
|
47
47
|
modelUuid,
|
|
@@ -67,7 +67,7 @@ export const fetchModelNonBlockingAction =
|
|
|
67
67
|
* Returns a fetch model succeeded action
|
|
68
68
|
*/
|
|
69
69
|
export const fetchModelUnhealthyAction = (
|
|
70
|
-
report: StateType.App.Meta[
|
|
70
|
+
report: StateType.App.Meta["report"]
|
|
71
71
|
): ActionsType.App.fetchModelUnhealthy => ({
|
|
72
72
|
type: FETCH_MODEL_UNHEALTHY,
|
|
73
73
|
report,
|
|
@@ -94,7 +94,7 @@ export const fetchModelFailedAction = (): ActionsType.App.fetchModelFailed => ({
|
|
|
94
94
|
* & isPaid a boolean to define if document is paid or not
|
|
95
95
|
*/
|
|
96
96
|
export const setDataStatus = (
|
|
97
|
-
dataStatus:
|
|
97
|
+
dataStatus: "saved" | "unsaved" | "saving" | "failed"
|
|
98
98
|
): ActionsType.App.setDataStatus => ({
|
|
99
99
|
type: SET_DATA_STATUS,
|
|
100
100
|
dataStatus,
|
|
@@ -104,7 +104,7 @@ export const setDataStatus = (
|
|
|
104
104
|
* Update Fetch Status in case of post fetchModel fetching
|
|
105
105
|
*/
|
|
106
106
|
export const setFetchStatus = (
|
|
107
|
-
fetchStatus:
|
|
107
|
+
fetchStatus: "waiting" | "succeeded" | "failed" | "unhealthy" | "userLocked"
|
|
108
108
|
): ActionsType.App.setFetchStatus => ({
|
|
109
109
|
type: SET_FETCH_STATUS,
|
|
110
110
|
fetchStatus,
|
|
@@ -143,7 +143,7 @@ export const updateInstancePaidAction = (
|
|
|
143
143
|
// eslint-disable-next-line max-len
|
|
144
144
|
export type initPaginationActionPropsType = Omit<
|
|
145
145
|
ActionsType.App.initPagination,
|
|
146
|
-
|
|
146
|
+
"type"
|
|
147
147
|
>;
|
|
148
148
|
export const initPaginationAction = (
|
|
149
149
|
pagination: initPaginationActionPropsType
|
|
@@ -157,7 +157,7 @@ export const initPaginationAction = (
|
|
|
157
157
|
* @param availableAppStates Available app states array
|
|
158
158
|
*/
|
|
159
159
|
export const updateAvailableAppStatesAction = (
|
|
160
|
-
availableAppStates: StateType.App.Pagination[
|
|
160
|
+
availableAppStates: StateType.App.Pagination["availableAppStates"],
|
|
161
161
|
ingorePluginAppStateReset = false
|
|
162
162
|
): ActionsType.App.updateAvailableAppStates => ({
|
|
163
163
|
type: UPDATE_AVAILABLE_APPSTATES,
|
|
@@ -232,7 +232,7 @@ export const updateCurrentSectionIdAction = (
|
|
|
232
232
|
* @param extracts ExtractV3 Array
|
|
233
233
|
*/
|
|
234
234
|
export const initCustomizationMetaAction = (
|
|
235
|
-
meta: Exclude<ModelV3[
|
|
235
|
+
meta: Exclude<ModelV3["customization"]["meta"], undefined>
|
|
236
236
|
): ActionsType.App.initCustomizationMeta => ({
|
|
237
237
|
type: INIT_CUSTOMIZATION_META,
|
|
238
238
|
meta,
|
|
@@ -242,7 +242,7 @@ export const initCustomizationMetaAction = (
|
|
|
242
242
|
* @param disableAutoDefault autoDefault Customization object
|
|
243
243
|
*/
|
|
244
244
|
export const initCustomizationAutoDefaultAction = (
|
|
245
|
-
disableAutoDefault: StateType.App.Customization[
|
|
245
|
+
disableAutoDefault: StateType.App.Customization["disableAutoDefault"]
|
|
246
246
|
): ActionsType.App.initCustomizationAutoDefault => ({
|
|
247
247
|
type: INIT_CUSTOMIZATION_AUTO_DEFAULT,
|
|
248
248
|
disableAutoDefault,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionsType } from
|
|
1
|
+
import { ActionsType } from "../../types/Actions.type";
|
|
2
2
|
import {
|
|
3
3
|
UPDATE_OPTION_CONDITION,
|
|
4
4
|
INIT_CONDITIONS,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
UPDATE_OPTION_VALIDATOR_CONDITION,
|
|
9
9
|
UPDATE_VARIABLE_VALIDATOR_CONDITION,
|
|
10
10
|
UPDATE_DOCUMENT_CONDITION,
|
|
11
|
-
} from
|
|
12
|
-
import { StateType } from
|
|
11
|
+
} from "../constants/conditions";
|
|
12
|
+
import { StateType } from "../../types/State.type";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Initiates conditions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionsType } from
|
|
1
|
+
import { ActionsType } from "../../types/Actions.type";
|
|
2
2
|
import {
|
|
3
3
|
INIT_OPTION,
|
|
4
4
|
INIT_VARIABLE,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
UPDATE_VARIABLE_INPUT,
|
|
7
7
|
ADD_MULTIPLE_OCCURENCY,
|
|
8
8
|
DELETE_MULTIPLE_OCCURENCY,
|
|
9
|
-
} from
|
|
9
|
+
} from "../constants/inputs";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Initiates option's input
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as app from "./app";
|
|
2
|
+
import * as conditions from "./conditions";
|
|
3
|
+
import * as inputs from "./inputs";
|
|
4
|
+
import * as mandatories from "./mandatories";
|
|
5
|
+
import * as references from "./references";
|
|
6
|
+
import * as smartscript from "./smartscript";
|
|
7
|
+
import * as user from "./user";
|
|
8
|
+
import * as dataSaga from "./sagas/data";
|
|
9
|
+
import * as modelSaga from "./sagas/model";
|
|
10
|
+
import * as userSaga from "./sagas/user";
|
|
11
|
+
|
|
12
|
+
export const actionsLibrary = {
|
|
13
|
+
...app,
|
|
14
|
+
...conditions,
|
|
15
|
+
...inputs,
|
|
16
|
+
...mandatories,
|
|
17
|
+
...references,
|
|
18
|
+
...smartscript,
|
|
19
|
+
...user,
|
|
20
|
+
...dataSaga,
|
|
21
|
+
...modelSaga,
|
|
22
|
+
...userSaga,
|
|
23
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionsType } from
|
|
1
|
+
import { ActionsType } from "../../types/Actions.type";
|
|
2
2
|
import {
|
|
3
3
|
SET_MANDATORY_IGNORE,
|
|
4
4
|
SET_MANDATORY_SECTION,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
SET_MANDATORY_VARIABLE,
|
|
7
7
|
INIT_MANDATORY_OPTION,
|
|
8
8
|
INIT_MANDATORY_VARIABLE,
|
|
9
|
-
} from
|
|
9
|
+
} from "../constants/mandatories";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Initiates Mandatory Option
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StateType } from
|
|
2
|
-
import { ActionsType } from
|
|
1
|
+
import { StateType } from "../../types/State.type";
|
|
2
|
+
import { ActionsType } from "../../types/Actions.type";
|
|
3
3
|
import {
|
|
4
4
|
INIT_REFERENCES,
|
|
5
5
|
UPDATE_OPTION_META,
|
|
6
6
|
UPDATE_VARIABLE_META,
|
|
7
|
-
} from
|
|
7
|
+
} from "../constants/references";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Initates references
|
|
@@ -20,7 +20,7 @@ export const initReferencesAction = (
|
|
|
20
20
|
|
|
21
21
|
export const updateVariableMetaAction = (
|
|
22
22
|
id: number,
|
|
23
|
-
meta: ActionsType.References.updateVariableMeta[
|
|
23
|
+
meta: ActionsType.References.updateVariableMeta["meta"]
|
|
24
24
|
): ActionsType.References.updateVariableMeta => ({
|
|
25
25
|
type: UPDATE_VARIABLE_META,
|
|
26
26
|
id,
|
|
@@ -29,7 +29,7 @@ export const updateVariableMetaAction = (
|
|
|
29
29
|
|
|
30
30
|
export const updateOptionMetaAction = (
|
|
31
31
|
id: number,
|
|
32
|
-
meta: ActionsType.References.updateOptionMeta[
|
|
32
|
+
meta: ActionsType.References.updateOptionMeta["meta"]
|
|
33
33
|
): ActionsType.References.updateOptionMeta => ({
|
|
34
34
|
type: UPDATE_OPTION_META,
|
|
35
35
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActionsType } from
|
|
2
|
-
import { SAVE_DATA } from
|
|
1
|
+
import { ActionsType } from "../../../types/Actions.type";
|
|
2
|
+
import { SAVE_DATA } from "../../constants/sagas/data";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns a fetch model action
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { PathReader } from
|
|
2
|
-
import { ActionsType } from
|
|
3
|
-
import { WizardConfigResponse } from
|
|
1
|
+
import { PathReader } from "../../../libs/PathReader";
|
|
2
|
+
import { ActionsType } from "../../../types/Actions.type";
|
|
3
|
+
import { WizardConfigResponse } from "../../../types/api.type";
|
|
4
4
|
import {
|
|
5
5
|
FETCH_MODEL,
|
|
6
6
|
FETCH_MODEL_PREREQUISITES,
|
|
7
|
-
} from
|
|
7
|
+
} from "../../constants/sagas/model";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Returns a fetch model pre-requisites action
|
|
11
11
|
*/
|
|
12
12
|
export const fetchModelPrerequisitesAction = (
|
|
13
13
|
permalink: string,
|
|
14
|
-
prefix =
|
|
14
|
+
prefix = ""
|
|
15
15
|
) => ({
|
|
16
16
|
type: FETCH_MODEL_PREREQUISITES,
|
|
17
17
|
permalink,
|
|
@@ -23,7 +23,7 @@ export const fetchModelPrerequisitesAction = (
|
|
|
23
23
|
*/
|
|
24
24
|
export const fetchModelAction = (
|
|
25
25
|
permalink: string,
|
|
26
|
-
prefix =
|
|
26
|
+
prefix = "",
|
|
27
27
|
uniqid: string | undefined,
|
|
28
28
|
uniqidParam: string | undefined,
|
|
29
29
|
queryParams: URLSearchParams,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SET_USER_EMAIL,
|
|
3
3
|
SET_USER_EMAIL_SUCCEEDED,
|
|
4
|
-
} from
|
|
5
|
-
import { ActionsType } from
|
|
4
|
+
} from "../../constants/sagas/user";
|
|
5
|
+
import { ActionsType } from "../../../types/Actions.type";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Set user email action
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable import/prefer-default-export */
|
|
2
|
-
import { StateType } from
|
|
3
|
-
import { ActionsType } from
|
|
2
|
+
import { StateType } from "../../types/State.type";
|
|
3
|
+
import { ActionsType } from "../../types/Actions.type";
|
|
4
4
|
import {
|
|
5
5
|
ENABLE_SMARTSCRIPT,
|
|
6
6
|
INIT_SMARTSCRIPT_TRIGGERS,
|
|
7
7
|
UPDATE_SMARTSCRIPT_OPTION_HIDDEN,
|
|
8
8
|
UPDATE_SMARTSCRIPT_VARIABLE_HIDDEN,
|
|
9
|
-
} from
|
|
9
|
+
} from "../constants/smartscript";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Enables smartscript
|
|
@@ -20,7 +20,7 @@ export const enableSmartscriptAction =
|
|
|
20
20
|
* Initiates smartscript
|
|
21
21
|
*/
|
|
22
22
|
export const initSmartscriptTriggersAction = (
|
|
23
|
-
triggers: StateType.SmartScript[
|
|
23
|
+
triggers: StateType.SmartScript["triggers"]
|
|
24
24
|
): ActionsType.SmartScript.initSmartscriptTriggers => ({
|
|
25
25
|
type: INIT_SMARTSCRIPT_TRIGGERS,
|
|
26
26
|
triggers,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* eslint-disable import/prefer-default-export */
|
|
2
|
-
import { StateType } from
|
|
3
|
-
import { ActionsType } from
|
|
2
|
+
import { StateType } from "../../types/State.type";
|
|
3
|
+
import { ActionsType } from "../../types/Actions.type";
|
|
4
4
|
import {
|
|
5
5
|
INIT_USER,
|
|
6
6
|
SET_USER_STATUS,
|
|
7
7
|
SET_USER_VALID_TOKEN,
|
|
8
|
-
} from
|
|
8
|
+
} from "../constants/user";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Init user action
|
|
12
12
|
* @param user An object containing user's email & displayName
|
|
13
13
|
*/
|
|
14
14
|
export const initUserAction = (
|
|
15
|
-
user: Omit<StateType.User,
|
|
15
|
+
user: Omit<StateType.User, "status">
|
|
16
16
|
): ActionsType.User.initUser => ({
|
|
17
17
|
type: INIT_USER,
|
|
18
18
|
...user,
|
|
@@ -23,7 +23,7 @@ export const initUserAction = (
|
|
|
23
23
|
* @param status User status ("authenticated", "unauthenticated", "inprogress", "failed")
|
|
24
24
|
*/
|
|
25
25
|
export const setUserStatusAction = (
|
|
26
|
-
status:
|
|
26
|
+
status: "authenticated" | "unauthenticated" | "inprogress" | "failed"
|
|
27
27
|
): ActionsType.User.setUserStatus => ({
|
|
28
28
|
type: SET_USER_STATUS,
|
|
29
29
|
status,
|
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// state.app.meta
|
|
6
|
-
export const INIT_META =
|
|
7
|
-
export const SET_MODEL_UUID =
|
|
8
|
-
export const FETCH_MODEL_SUCCEEDED =
|
|
9
|
-
export const FETCH_MODEL_FAILED =
|
|
10
|
-
export const FETCH_MODEL_UNHEALTHY =
|
|
11
|
-
export const FETCH_MODEL_USER_LOCKED =
|
|
12
|
-
export const FETCH_MODEL_NONBLOCKING =
|
|
6
|
+
export const INIT_META = "INIT_META";
|
|
7
|
+
export const SET_MODEL_UUID = "SET_MODEL_UUID";
|
|
8
|
+
export const FETCH_MODEL_SUCCEEDED = "FETCH_MODEL_SUCCEEDED";
|
|
9
|
+
export const FETCH_MODEL_FAILED = "FETCH_MODEL_FAILED";
|
|
10
|
+
export const FETCH_MODEL_UNHEALTHY = "FETCH_MODEL_UNHEALTHY";
|
|
11
|
+
export const FETCH_MODEL_USER_LOCKED = "FETCH_MODEL_USER_LOCKED";
|
|
12
|
+
export const FETCH_MODEL_NONBLOCKING = "FETCH_MODEL_NONBLOCKING";
|
|
13
13
|
|
|
14
14
|
// state.app.instance
|
|
15
|
-
export const INIT_INSTANCE =
|
|
16
|
-
export const UPDATE_INSTANCE =
|
|
17
|
-
export const UPDATE_INSTANCE_PAID =
|
|
18
|
-
export const SET_DATA_STATUS =
|
|
19
|
-
export const SET_FETCH_STATUS =
|
|
15
|
+
export const INIT_INSTANCE = "INIT_INSTANCE";
|
|
16
|
+
export const UPDATE_INSTANCE = "UPDATE_INSTANCE";
|
|
17
|
+
export const UPDATE_INSTANCE_PAID = "UPDATE_INSTANCE_PAID";
|
|
18
|
+
export const SET_DATA_STATUS = "SET_DATA_STATUS";
|
|
19
|
+
export const SET_FETCH_STATUS = "SET_FETCH_STATUS";
|
|
20
20
|
|
|
21
21
|
// state.app.pagination
|
|
22
|
-
export const INIT_PAGINATION =
|
|
23
|
-
export const GO_PAGE =
|
|
24
|
-
export const GO_NEXT_PAGE =
|
|
25
|
-
export const GO_PREVIOUS_PAGE =
|
|
26
|
-
export const UPDATE_CURRENT_APPSTATE =
|
|
27
|
-
export const UPDATE_AVAILABLE_APPSTATES =
|
|
22
|
+
export const INIT_PAGINATION = "INIT_PAGINATION";
|
|
23
|
+
export const GO_PAGE = "GO_PAGE";
|
|
24
|
+
export const GO_NEXT_PAGE = "GO_NEXT_PAGE";
|
|
25
|
+
export const GO_PREVIOUS_PAGE = "GO_PREVIOUS_PAGE";
|
|
26
|
+
export const UPDATE_CURRENT_APPSTATE = "UPDATE_CURRENT_APPSTATE";
|
|
27
|
+
export const UPDATE_AVAILABLE_APPSTATES = "UPDATE_AVAILABLE_APPSTATES";
|
|
28
28
|
|
|
29
29
|
// state.app.wizard
|
|
30
|
-
export const UPDATE_CURRENT_SECTION_ID =
|
|
31
|
-
export const UPDATE_AVAILABLE_SECTIONS =
|
|
30
|
+
export const UPDATE_CURRENT_SECTION_ID = "UPDATE_CURRENT_SECTION_ID";
|
|
31
|
+
export const UPDATE_AVAILABLE_SECTIONS = "UPDATE_AVAILABLE_SECTIONS";
|
|
32
32
|
|
|
33
33
|
// state.app.customizations
|
|
34
|
-
export const INIT_CUSTOMIZATION_META =
|
|
34
|
+
export const INIT_CUSTOMIZATION_META = "INIT_CUSTOMIZATION_META";
|
|
35
35
|
export const INIT_CUSTOMIZATION_AUTO_DEFAULT =
|
|
36
|
-
|
|
36
|
+
"INIT_CUSTOMIZATION_AUTO_DEFAULT";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* State.conditions
|
|
3
3
|
*/
|
|
4
|
-
export const INIT_CONDITIONS =
|
|
4
|
+
export const INIT_CONDITIONS = "INIT_CONDITIONS";
|
|
5
5
|
|
|
6
6
|
// State.conditions.options
|
|
7
|
-
export const UPDATE_OPTION_CONDITION =
|
|
7
|
+
export const UPDATE_OPTION_CONDITION = "UPDATE_OPTION_CONDITION";
|
|
8
8
|
|
|
9
9
|
// State.conditions.variables
|
|
10
|
-
export const UPDATE_VARIABLE_CONDITION =
|
|
10
|
+
export const UPDATE_VARIABLE_CONDITION = "UPDATE_VARIABLE_CONDITION";
|
|
11
11
|
|
|
12
12
|
// State.conditions.documents
|
|
13
|
-
export const UPDATE_DOCUMENT_CONDITION =
|
|
13
|
+
export const UPDATE_DOCUMENT_CONDITION = "UPDATE_DOCUMENT_CONDITION";
|
|
14
14
|
|
|
15
15
|
// State.conditions.sections
|
|
16
|
-
export const UPDATE_SECTION_CONDITION =
|
|
16
|
+
export const UPDATE_SECTION_CONDITION = "UPDATE_SECTION_CONDITION";
|
|
17
17
|
|
|
18
18
|
// State.conditions.prefillers
|
|
19
|
-
export const UPDATE_PREFILLER_CONDITION =
|
|
19
|
+
export const UPDATE_PREFILLER_CONDITION = "UPDATE_PREFILLER_CONDITION";
|
|
20
20
|
|
|
21
21
|
// State.validators.options
|
|
22
22
|
export const UPDATE_OPTION_VALIDATOR_CONDITION =
|
|
23
|
-
|
|
23
|
+
"UPDATE_OPTION_VALIDATOR_CONDITION";
|
|
24
24
|
export const UPDATE_VARIABLE_VALIDATOR_CONDITION =
|
|
25
|
-
|
|
25
|
+
"UPDATE_VARIABLE_VALIDATOR_CONDITION";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* State.inputs
|
|
3
3
|
*/
|
|
4
|
-
export const ADD_MULTIPLE_OCCURENCY =
|
|
5
|
-
export const DELETE_MULTIPLE_OCCURENCY =
|
|
4
|
+
export const ADD_MULTIPLE_OCCURENCY = "ADD_MULTIPLE_OCCURENCY";
|
|
5
|
+
export const DELETE_MULTIPLE_OCCURENCY = "DELETE_MULTIPLE_OCCURENCY";
|
|
6
6
|
|
|
7
7
|
// State.inputs.options
|
|
8
|
-
export const INIT_OPTION =
|
|
9
|
-
export const UPDATE_OPTION_INPUT =
|
|
8
|
+
export const INIT_OPTION = "INIT_OPTION";
|
|
9
|
+
export const UPDATE_OPTION_INPUT = "UPDATE_OPTION_INPUT";
|
|
10
10
|
|
|
11
11
|
// State.inputs.variables
|
|
12
|
-
export const INIT_VARIABLE =
|
|
13
|
-
export const UPDATE_VARIABLE_INPUT =
|
|
12
|
+
export const INIT_VARIABLE = "INIT_VARIABLE";
|
|
13
|
+
export const UPDATE_VARIABLE_INPUT = "UPDATE_VARIABLE_INPUT";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export const INIT_MANDATORY_OPTION =
|
|
1
|
+
export const INIT_MANDATORY_OPTION = "INIT_MANDATORY_OPTION";
|
|
2
2
|
|
|
3
|
-
export const INIT_MANDATORY_VARIABLE =
|
|
3
|
+
export const INIT_MANDATORY_VARIABLE = "INIT_MANDATORY_VARIABLE";
|
|
4
4
|
|
|
5
|
-
export const SET_MANDATORY_IGNORE =
|
|
5
|
+
export const SET_MANDATORY_IGNORE = "SET_MANDATORY_IGNORE";
|
|
6
6
|
|
|
7
|
-
export const SET_MANDATORY_SECTION =
|
|
7
|
+
export const SET_MANDATORY_SECTION = "SET_MANDATORY_SECTION";
|
|
8
8
|
|
|
9
|
-
export const SET_MANDATORY_OPTION =
|
|
9
|
+
export const SET_MANDATORY_OPTION = "SET_MANDATORY_OPTION";
|
|
10
10
|
|
|
11
|
-
export const SET_MANDATORY_VARIABLE =
|
|
11
|
+
export const SET_MANDATORY_VARIABLE = "SET_MANDATORY_VARIABLE";
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* State.references
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line import/prefer-default-export
|
|
5
|
-
export const INIT_REFERENCES =
|
|
6
|
-
export const UPDATE_VARIABLE_META =
|
|
7
|
-
export const UPDATE_OPTION_META =
|
|
5
|
+
export const INIT_REFERENCES = "INIT_REFERENCES";
|
|
6
|
+
export const UPDATE_VARIABLE_META = "UPDATE_VARIABLE_META";
|
|
7
|
+
export const UPDATE_OPTION_META = "UPDATE_OPTION_META";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SAVE_DATA =
|
|
1
|
+
export const SAVE_DATA = "SAVE_DATA";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const FETCH_MODEL =
|
|
2
|
-
export const FETCH_MODEL_PREREQUISITES =
|
|
1
|
+
export const FETCH_MODEL = "FETCH_MODEL";
|
|
2
|
+
export const FETCH_MODEL_PREREQUISITES = "FETCH_MODEL_PREREQUISITES";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SET_USER_EMAIL =
|
|
2
|
-
export const SET_USER_EMAIL_SUCCEEDED =
|
|
1
|
+
export const SET_USER_EMAIL = "SET_USER_EMAIL";
|
|
2
|
+
export const SET_USER_EMAIL_SUCCEEDED = "SET_USER_EMAIL_SUCCEEDED";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* State.smartscript
|
|
3
3
|
*/
|
|
4
|
-
export const ENABLE_SMARTSCRIPT =
|
|
5
|
-
export const INIT_SMARTSCRIPT_TRIGGERS =
|
|
4
|
+
export const ENABLE_SMARTSCRIPT = "ENABLE_SMARTSCRIPT";
|
|
5
|
+
export const INIT_SMARTSCRIPT_TRIGGERS = "INIT_SMARTSCRIPT_TRIGGERS";
|
|
6
6
|
export const UPDATE_SMARTSCRIPT_OPTION_HIDDEN =
|
|
7
|
-
|
|
7
|
+
"UPDATE_SMARTSCRIPT_OPTION_HIDDEN";
|
|
8
8
|
export const UPDATE_SMARTSCRIPT_VARIABLE_HIDDEN =
|
|
9
|
-
|
|
9
|
+
"UPDATE_SMARTSCRIPT_VARIABLE_HIDDEN";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* State.user
|
|
3
3
|
*/
|
|
4
|
-
export const INIT_USER =
|
|
5
|
-
export const SET_USER_STATUS =
|
|
6
|
-
export const SET_USER_VALID_TOKEN =
|
|
4
|
+
export const INIT_USER = "INIT_USER";
|
|
5
|
+
export const SET_USER_STATUS = "SET_USER_STATUS";
|
|
6
|
+
export const SET_USER_VALID_TOKEN = "SET_USER_VALID_TOKEN";
|