@legalplace/wizardx-core 2.12.1 → 2.14.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 +29 -0
- package/dist/PluginLoader.d.ts +3 -2
- package/dist/PluginLoader.js +1 -1
- package/dist/Shimmer.js +1 -1
- package/dist/ThemeLoader.d.ts +2 -2
- package/dist/components/PluginRoute.d.ts +1 -1
- package/dist/components/SmartScript.d.ts +2 -2
- package/dist/components/UserLocked/UserLockedComponent.d.ts +2 -1
- package/dist/componentsConnectors/connectBox.js +1 -1
- package/dist/componentsConnectors/connectDocument.js +1 -1
- package/dist/componentsConnectors/connectHeader.js +1 -1
- package/dist/componentsConnectors/connectOption.d.ts +1 -1
- package/dist/componentsConnectors/connectOption.js +1 -1
- package/dist/componentsConnectors/connectPagination.js +1 -1
- package/dist/componentsConnectors/connectProgress.js +1 -1
- package/dist/componentsConnectors/connectRootOption.js +1 -1
- package/dist/componentsConnectors/connectSection.js +1 -1
- package/dist/componentsConnectors/connectSummary.js +1 -1
- package/dist/componentsConnectors/connectSummaryItem.js +1 -1
- package/dist/componentsConnectors/connectTermsheet.d.ts +1 -1
- package/dist/componentsConnectors/connectVariable.d.ts +1 -1
- package/dist/componentsConnectors/connectVariable.js +1 -1
- package/dist/componentsConnectors/connectWizardWrapper.js +1 -1
- package/dist/componentsConnectors/connector/componentConnector.d.ts +4 -3
- package/dist/helpers/date.helper.d.ts +1 -0
- package/dist/helpers/date.helper.js +5 -0
- package/dist/helpers/outputsParsing.d.ts +1 -1
- package/dist/libs/ConditionsInitiator.d.ts +1 -1
- package/dist/libs/ConditionsRunner.d.ts +2 -2
- package/dist/libs/Eval/NumbersToLetters.js +1 -1
- package/dist/libs/InputsInitiator.d.ts +1 -1
- package/dist/libs/OvcConverter.d.ts +1 -1
- package/dist/libs/PathReader.d.ts +1 -1
- package/dist/libs/SmartScriptStore.d.ts +3 -3
- package/dist/redux/actions/app.d.ts +2 -2
- package/dist/redux/actions/conditions.d.ts +2 -2
- package/dist/redux/actions/inputs.d.ts +2 -2
- package/dist/redux/actions/mandatories.d.ts +1 -1
- package/dist/redux/actions/references.d.ts +2 -2
- package/dist/redux/actions/sagas/data.d.ts +1 -1
- package/dist/redux/actions/sagas/model.d.ts +3 -3
- package/dist/redux/actions/sagas/user.d.ts +1 -1
- package/dist/redux/actions/smartscript.d.ts +2 -2
- package/dist/redux/actions/user.d.ts +2 -2
- package/dist/redux/listeners/subscriber.d.ts +2 -2
- package/dist/redux/middlewares/conditionsWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.d.ts +3 -3
- package/dist/redux/middlewares/mandatoriesWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/mandatoriesWatcherMiddleware.js +9 -2
- package/dist/redux/middlewares/multiplesActionsMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/paginationWatcherMiddleware.d.ts +3 -3
- package/dist/redux/middlewares/paginationWatcherMiddleware.js +1 -1
- package/dist/redux/middlewares/pluginsHookMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/prefillerWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/smartscriptMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/thirdpartyScriptsMiddleware.d.ts +2 -2
- 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/fetchModelNonBlocking.d.ts +1 -1
- package/dist/redux/reducers/app/meta/fetchModelSucceeded.d.ts +1 -1
- package/dist/redux/reducers/app/meta/fetchModelUnhealthy.d.ts +2 -2
- package/dist/redux/reducers/app/meta/fetchModelUserLocked.d.ts +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/goPage.d.ts +2 -2
- package/dist/redux/reducers/app/pagination/goPreviousPage.d.ts +1 -1
- package/dist/redux/reducers/app/pagination/initPagination.d.ts +2 -2
- package/dist/redux/reducers/app/pagination/updateAvailableAppStates.d.ts +2 -2
- package/dist/redux/reducers/app/wizard/updateAvailableSections.d.ts +2 -2
- package/dist/redux/reducers/app.d.ts +2 -2
- package/dist/redux/reducers/conditions/addMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/conditions/deleteMultipleOccurency.d.ts +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/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/inputs/addMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/inputs/deleteMultipleOccurency.d.ts +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/mandatories/addMultipleOccurency.d.ts +2 -2
- package/dist/redux/reducers/mandatories/deleteMultipleOccurency.d.ts +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/pluginsStore.d.ts +2 -2
- 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/updateVariableMeta.d.ts +2 -2
- package/dist/redux/reducers/references.d.ts +2 -2
- 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/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/routerHistory.d.ts +1 -1
- package/dist/redux/routerHistory.js +1 -1
- package/dist/redux/sagas/fetchModel.d.ts +2 -2
- package/dist/redux/sagas/fetchModel.js +3 -3
- package/dist/redux/sagas/initInputs.d.ts +2 -2
- package/dist/redux/sagas/initInputs.js +11 -2
- package/dist/redux/sagas/runner.d.ts +1 -1
- package/dist/redux/sagas/saveData.js +1 -1
- package/dist/redux/selectors/inputs.d.ts +1 -1
- package/dist/redux/selectors/references.js +2 -2
- package/dist/redux/selectors/selectors.d.ts +2 -2
- package/dist/redux/selectors/selectors.js +1 -1
- package/dist/redux/store.d.ts +2 -2
- package/dist/redux/store.js +1 -1
- package/dist/service/api.manager.d.ts +1 -1
- package/dist/service/api.manager.js +1 -1
- package/dist/types/Actions.type.d.ts +13 -13
- package/dist/types/Components.type.d.ts +1 -1
- package/dist/types/getActions.type.d.ts +1 -1
- package/dist/types/getConnectors.type.d.ts +1 -1
- package/dist/types/getSelectors.type.d.ts +1 -1
- package/dist/wizard-params.d.ts +1 -1
- package/package.json +3 -3
|
@@ -109,7 +109,7 @@ export const getCreateInstanceArguments = (permalink, searchParams, modelVersion
|
|
|
109
109
|
};
|
|
110
110
|
export const getClientConfigArguments = (permalink, uniqid) => {
|
|
111
111
|
const apiEndpoint = getConfig().apiEndpoint + (/\/$/.test(getConfig().apiEndpoint) ? "" : "/");
|
|
112
|
-
const route = `${apiEndpoint}client-config${permalink ? `?permalink=${permalink}` : ""}${uniqid ?
|
|
112
|
+
const route = `${apiEndpoint}client-config${permalink ? `?permalink=${permalink}` : ""}${uniqid ? "&disableOnBoarding=true" : ""}`;
|
|
113
113
|
return [
|
|
114
114
|
route,
|
|
115
115
|
{
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { ModelV3, OptionV3, VariableV3 } from "@legalplace/models-v3-types";
|
|
2
|
-
import { StateType } from "./State.type";
|
|
3
|
-
import { UPDATE_AVAILABLE_SECTIONS, UPDATE_AVAILABLE_APPSTATES, GO_PREVIOUS_PAGE, GO_NEXT_PAGE, GO_PAGE, INIT_PAGINATION, UPDATE_INSTANCE_PAID, INIT_INSTANCE, UPDATE_INSTANCE, INIT_META, UPDATE_CURRENT_APPSTATE, UPDATE_CURRENT_SECTION_ID, FETCH_MODEL_SUCCEEDED, FETCH_MODEL_FAILED, SET_DATA_STATUS, SET_FETCH_STATUS, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID } from "../redux/constants/app";
|
|
4
|
-
import { INIT_USER, SET_USER_STATUS, SET_USER_VALID_TOKEN } from "../redux/constants/user";
|
|
5
|
-
import { INIT_REFERENCES, UPDATE_VARIABLE_META, UPDATE_OPTION_META } from "../redux/constants/references";
|
|
6
|
-
import { INIT_INPUTS, INIT_OPTION, UPDATE_OPTION_INPUT, INIT_VARIABLE, UPDATE_VARIABLE_INPUT, ADD_MULTIPLE_OCCURENCY, DELETE_MULTIPLE_OCCURENCY } from "../redux/constants/inputs";
|
|
7
|
-
import { INIT_CONDITIONS, UPDATE_OPTION_CONDITION, UPDATE_VARIABLE_CONDITION, UPDATE_SECTION_CONDITION, UPDATE_PREFILLER_CONDITION, UPDATE_OPTION_VALIDATOR_CONDITION, UPDATE_VARIABLE_VALIDATOR_CONDITION, UPDATE_DOCUMENT_CONDITION } from "../redux/constants/conditions";
|
|
8
|
-
import { FETCH_MODEL, FETCH_MODEL_PREREQUISITES } from "../redux/constants/sagas/model";
|
|
9
|
-
import { SAVE_DATA } from "../redux/constants/sagas/data";
|
|
10
|
-
import { SET_USER_EMAIL, SET_USER_EMAIL_SUCCEEDED } from "../redux/constants/sagas/user";
|
|
11
|
-
import { SET_MANDATORY_IGNORE, SET_MANDATORY_SECTION, SET_MANDATORY_OPTION, SET_MANDATORY_VARIABLE, INIT_MANDATORY_OPTION, INIT_MANDATORY_VARIABLE } from "../redux/constants/mandatories";
|
|
12
|
-
import { ENABLE_SMARTSCRIPT, INIT_SMARTSCRIPT_TRIGGERS, UPDATE_SMARTSCRIPT_OPTION_HIDDEN, UPDATE_SMARTSCRIPT_VARIABLE_HIDDEN } from "../redux/constants/smartscript";
|
|
13
|
-
import { PathReader } from "../libs/PathReader";
|
|
14
|
-
import { WizardConfigResponse } from "./api.type";
|
|
2
|
+
import type { StateType } from "./State.type";
|
|
3
|
+
import type { UPDATE_AVAILABLE_SECTIONS, UPDATE_AVAILABLE_APPSTATES, GO_PREVIOUS_PAGE, GO_NEXT_PAGE, GO_PAGE, INIT_PAGINATION, UPDATE_INSTANCE_PAID, INIT_INSTANCE, UPDATE_INSTANCE, INIT_META, UPDATE_CURRENT_APPSTATE, UPDATE_CURRENT_SECTION_ID, FETCH_MODEL_SUCCEEDED, FETCH_MODEL_FAILED, SET_DATA_STATUS, SET_FETCH_STATUS, INIT_CUSTOMIZATION_META, FETCH_MODEL_UNHEALTHY, FETCH_MODEL_USER_LOCKED, INIT_CUSTOMIZATION_AUTO_DEFAULT, FETCH_MODEL_NONBLOCKING, SET_MODEL_UUID } from "../redux/constants/app";
|
|
4
|
+
import type { INIT_USER, SET_USER_STATUS, SET_USER_VALID_TOKEN } from "../redux/constants/user";
|
|
5
|
+
import type { INIT_REFERENCES, UPDATE_VARIABLE_META, UPDATE_OPTION_META } from "../redux/constants/references";
|
|
6
|
+
import type { INIT_INPUTS, INIT_OPTION, UPDATE_OPTION_INPUT, INIT_VARIABLE, UPDATE_VARIABLE_INPUT, ADD_MULTIPLE_OCCURENCY, DELETE_MULTIPLE_OCCURENCY } from "../redux/constants/inputs";
|
|
7
|
+
import type { INIT_CONDITIONS, UPDATE_OPTION_CONDITION, UPDATE_VARIABLE_CONDITION, UPDATE_SECTION_CONDITION, UPDATE_PREFILLER_CONDITION, UPDATE_OPTION_VALIDATOR_CONDITION, UPDATE_VARIABLE_VALIDATOR_CONDITION, UPDATE_DOCUMENT_CONDITION } from "../redux/constants/conditions";
|
|
8
|
+
import type { FETCH_MODEL, FETCH_MODEL_PREREQUISITES } from "../redux/constants/sagas/model";
|
|
9
|
+
import type { SAVE_DATA } from "../redux/constants/sagas/data";
|
|
10
|
+
import type { SET_USER_EMAIL, SET_USER_EMAIL_SUCCEEDED } from "../redux/constants/sagas/user";
|
|
11
|
+
import type { SET_MANDATORY_IGNORE, SET_MANDATORY_SECTION, SET_MANDATORY_OPTION, SET_MANDATORY_VARIABLE, INIT_MANDATORY_OPTION, INIT_MANDATORY_VARIABLE } from "../redux/constants/mandatories";
|
|
12
|
+
import type { ENABLE_SMARTSCRIPT, INIT_SMARTSCRIPT_TRIGGERS, UPDATE_SMARTSCRIPT_OPTION_HIDDEN, UPDATE_SMARTSCRIPT_VARIABLE_HIDDEN } from "../redux/constants/smartscript";
|
|
13
|
+
import type { PathReader } from "../libs/PathReader";
|
|
14
|
+
import type { WizardConfigResponse } from "./api.type";
|
|
15
15
|
export declare namespace ActionsType {
|
|
16
16
|
namespace App {
|
|
17
17
|
interface initMeta extends Omit<StateType.App.Meta, "fetchStatus"> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OptionV3, VariableV3 } from "@legalplace/models-v3-types";
|
|
2
|
-
import { TermsheetRow } from "./Termsheet.type";
|
|
2
|
+
import type { TermsheetRow } from "./Termsheet.type";
|
|
3
3
|
export interface ProgressPropsType {
|
|
4
4
|
currentSectionTitle: string;
|
|
5
5
|
currentSectionId: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { actionsLibrary } from "../redux/actions/library";
|
|
1
|
+
import type { actionsLibrary } from "../redux/actions/library";
|
|
2
2
|
export declare type ActionsLibraryType = typeof actionsLibrary;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { connectorsLibrary } from "../componentsConnectors/library";
|
|
1
|
+
import type { connectorsLibrary } from "../componentsConnectors/library";
|
|
2
2
|
export declare type ConnectorProps<T extends (c: React.ComponentType<any>) => any> = T extends (c: React.ComponentType<infer P>) => any ? P : {};
|
|
3
3
|
export declare type ComponentsConnectors = typeof connectorsLibrary;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { selectorsLibrary } from "../redux/selectors/library";
|
|
1
|
+
import type { selectorsLibrary } from "../redux/selectors/library";
|
|
2
2
|
export declare type SelectorsLibraryType = typeof selectorsLibrary;
|
package/dist/wizard-params.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/wizardx-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"author": "Moncef Hammou (moncef@legalplace.fr)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"xss": "^1.0.9"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@legalplace/eslint-config": "^2.
|
|
55
|
+
"@legalplace/eslint-config": "^2.2.0",
|
|
56
56
|
"@legalplace/models-v3-types": "^3.6.0",
|
|
57
57
|
"@legalplace/prettier-config": "^2.1.3",
|
|
58
58
|
"@legalplace/typeorm-entities": "3.8.2",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"*.test.ts",
|
|
94
94
|
"*.test.tsx"
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "6f4cf6365562ef14c67d69bcd6d5a03c1f3915a1"
|
|
97
97
|
}
|