@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.
Files changed (140) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/PluginLoader.d.ts +3 -2
  3. package/dist/PluginLoader.js +1 -1
  4. package/dist/Shimmer.js +1 -1
  5. package/dist/ThemeLoader.d.ts +2 -2
  6. package/dist/components/PluginRoute.d.ts +1 -1
  7. package/dist/components/SmartScript.d.ts +2 -2
  8. package/dist/components/UserLocked/UserLockedComponent.d.ts +2 -1
  9. package/dist/componentsConnectors/connectBox.js +1 -1
  10. package/dist/componentsConnectors/connectDocument.js +1 -1
  11. package/dist/componentsConnectors/connectHeader.js +1 -1
  12. package/dist/componentsConnectors/connectOption.d.ts +1 -1
  13. package/dist/componentsConnectors/connectOption.js +1 -1
  14. package/dist/componentsConnectors/connectPagination.js +1 -1
  15. package/dist/componentsConnectors/connectProgress.js +1 -1
  16. package/dist/componentsConnectors/connectRootOption.js +1 -1
  17. package/dist/componentsConnectors/connectSection.js +1 -1
  18. package/dist/componentsConnectors/connectSummary.js +1 -1
  19. package/dist/componentsConnectors/connectSummaryItem.js +1 -1
  20. package/dist/componentsConnectors/connectTermsheet.d.ts +1 -1
  21. package/dist/componentsConnectors/connectVariable.d.ts +1 -1
  22. package/dist/componentsConnectors/connectVariable.js +1 -1
  23. package/dist/componentsConnectors/connectWizardWrapper.js +1 -1
  24. package/dist/componentsConnectors/connector/componentConnector.d.ts +4 -3
  25. package/dist/helpers/date.helper.d.ts +1 -0
  26. package/dist/helpers/date.helper.js +5 -0
  27. package/dist/helpers/outputsParsing.d.ts +1 -1
  28. package/dist/libs/ConditionsInitiator.d.ts +1 -1
  29. package/dist/libs/ConditionsRunner.d.ts +2 -2
  30. package/dist/libs/Eval/NumbersToLetters.js +1 -1
  31. package/dist/libs/InputsInitiator.d.ts +1 -1
  32. package/dist/libs/OvcConverter.d.ts +1 -1
  33. package/dist/libs/PathReader.d.ts +1 -1
  34. package/dist/libs/SmartScriptStore.d.ts +3 -3
  35. package/dist/redux/actions/app.d.ts +2 -2
  36. package/dist/redux/actions/conditions.d.ts +2 -2
  37. package/dist/redux/actions/inputs.d.ts +2 -2
  38. package/dist/redux/actions/mandatories.d.ts +1 -1
  39. package/dist/redux/actions/references.d.ts +2 -2
  40. package/dist/redux/actions/sagas/data.d.ts +1 -1
  41. package/dist/redux/actions/sagas/model.d.ts +3 -3
  42. package/dist/redux/actions/sagas/user.d.ts +1 -1
  43. package/dist/redux/actions/smartscript.d.ts +2 -2
  44. package/dist/redux/actions/user.d.ts +2 -2
  45. package/dist/redux/listeners/subscriber.d.ts +2 -2
  46. package/dist/redux/middlewares/conditionsWatcherMiddleware.d.ts +2 -2
  47. package/dist/redux/middlewares/evaluationsWatcherMiddleware.d.ts +3 -3
  48. package/dist/redux/middlewares/mandatoriesWatcherMiddleware.d.ts +2 -2
  49. package/dist/redux/middlewares/mandatoriesWatcherMiddleware.js +9 -2
  50. package/dist/redux/middlewares/multiplesActionsMiddleware.d.ts +2 -2
  51. package/dist/redux/middlewares/paginationWatcherMiddleware.d.ts +3 -3
  52. package/dist/redux/middlewares/paginationWatcherMiddleware.js +1 -1
  53. package/dist/redux/middlewares/pluginsHookMiddleware.d.ts +1 -1
  54. package/dist/redux/middlewares/prefillerWatcherMiddleware.d.ts +2 -2
  55. package/dist/redux/middlewares/smartscriptMiddleware.d.ts +2 -2
  56. package/dist/redux/middlewares/thirdpartyScriptsMiddleware.d.ts +2 -2
  57. package/dist/redux/reducers/app/customizations/initCustomizationAutoDefault.d.ts +2 -2
  58. package/dist/redux/reducers/app/customizations/initCustomizationMeta.d.ts +2 -2
  59. package/dist/redux/reducers/app/instance/initInstance.d.ts +2 -2
  60. package/dist/redux/reducers/app/instance/setDataStatus.d.ts +2 -2
  61. package/dist/redux/reducers/app/instance/updateInstance.d.ts +2 -2
  62. package/dist/redux/reducers/app/instance/updateInstancePaid.d.ts +2 -2
  63. package/dist/redux/reducers/app/meta/fetchModelFailed.d.ts +1 -1
  64. package/dist/redux/reducers/app/meta/fetchModelNonBlocking.d.ts +1 -1
  65. package/dist/redux/reducers/app/meta/fetchModelSucceeded.d.ts +1 -1
  66. package/dist/redux/reducers/app/meta/fetchModelUnhealthy.d.ts +2 -2
  67. package/dist/redux/reducers/app/meta/fetchModelUserLocked.d.ts +1 -1
  68. package/dist/redux/reducers/app/meta/initMeta.d.ts +2 -2
  69. package/dist/redux/reducers/app/meta/setModelUuid.d.ts +2 -2
  70. package/dist/redux/reducers/app/pagination/goNextPage.d.ts +1 -1
  71. package/dist/redux/reducers/app/pagination/goPage.d.ts +2 -2
  72. package/dist/redux/reducers/app/pagination/goPreviousPage.d.ts +1 -1
  73. package/dist/redux/reducers/app/pagination/initPagination.d.ts +2 -2
  74. package/dist/redux/reducers/app/pagination/updateAvailableAppStates.d.ts +2 -2
  75. package/dist/redux/reducers/app/wizard/updateAvailableSections.d.ts +2 -2
  76. package/dist/redux/reducers/app.d.ts +2 -2
  77. package/dist/redux/reducers/conditions/addMultipleOccurency.d.ts +2 -2
  78. package/dist/redux/reducers/conditions/deleteMultipleOccurency.d.ts +2 -2
  79. package/dist/redux/reducers/conditions/initConditions.d.ts +2 -2
  80. package/dist/redux/reducers/conditions/updateDocumentConditions.d.ts +2 -2
  81. package/dist/redux/reducers/conditions/updateOptionConditions.d.ts +2 -2
  82. package/dist/redux/reducers/conditions/updateOptionValidatorCondition.d.ts +2 -2
  83. package/dist/redux/reducers/conditions/updatePrefillerConditions.d.ts +2 -2
  84. package/dist/redux/reducers/conditions/updateSectionConditions.d.ts +2 -2
  85. package/dist/redux/reducers/conditions/updateVariableConditions.d.ts +2 -2
  86. package/dist/redux/reducers/conditions/updateVariableValidatorCondition.d.ts +2 -2
  87. package/dist/redux/reducers/conditions.d.ts +2 -2
  88. package/dist/redux/reducers/inputs/addMultipleOccurency.d.ts +2 -2
  89. package/dist/redux/reducers/inputs/deleteMultipleOccurency.d.ts +2 -2
  90. package/dist/redux/reducers/inputs/initOption.d.ts +2 -2
  91. package/dist/redux/reducers/inputs/initVariable.d.ts +2 -2
  92. package/dist/redux/reducers/inputs/updateOptionInput.d.ts +2 -2
  93. package/dist/redux/reducers/inputs/updateVariableInput.d.ts +2 -2
  94. package/dist/redux/reducers/inputs.d.ts +2 -2
  95. package/dist/redux/reducers/mandatories/addMultipleOccurency.d.ts +2 -2
  96. package/dist/redux/reducers/mandatories/deleteMultipleOccurency.d.ts +2 -2
  97. package/dist/redux/reducers/mandatories/initMandatoryOption.d.ts +2 -2
  98. package/dist/redux/reducers/mandatories/initMandatoryVariable.d.ts +2 -2
  99. package/dist/redux/reducers/mandatories/setMandatoryIgnore.d.ts +2 -2
  100. package/dist/redux/reducers/mandatories/setMandatoryOption.d.ts +2 -2
  101. package/dist/redux/reducers/mandatories/setMandatorySection.d.ts +2 -2
  102. package/dist/redux/reducers/mandatories/setMandatoryVariable.d.ts +2 -2
  103. package/dist/redux/reducers/mandatories.d.ts +2 -2
  104. package/dist/redux/reducers/pluginsStore.d.ts +2 -2
  105. package/dist/redux/reducers/references/initReferences.d.ts +2 -2
  106. package/dist/redux/reducers/references/updateOptionMeta.d.ts +2 -2
  107. package/dist/redux/reducers/references/updateVariableMeta.d.ts +2 -2
  108. package/dist/redux/reducers/references.d.ts +2 -2
  109. package/dist/redux/reducers/smartscript/enableSmartScript.d.ts +1 -1
  110. package/dist/redux/reducers/smartscript/initSmartScriptTriggers.d.ts +2 -2
  111. package/dist/redux/reducers/smartscript/updateSmartscriptOptionHidden.d.ts +2 -2
  112. package/dist/redux/reducers/smartscript/updateSmartscriptVariableHidden.d.ts +2 -2
  113. package/dist/redux/reducers/smartscript.d.ts +2 -2
  114. package/dist/redux/reducers/user/initUser.d.ts +2 -2
  115. package/dist/redux/reducers/user/setUserStatus.d.ts +2 -2
  116. package/dist/redux/reducers/user/setUserValidToken.d.ts +2 -2
  117. package/dist/redux/reducers/user.d.ts +2 -2
  118. package/dist/redux/routerHistory.d.ts +1 -1
  119. package/dist/redux/routerHistory.js +1 -1
  120. package/dist/redux/sagas/fetchModel.d.ts +2 -2
  121. package/dist/redux/sagas/fetchModel.js +3 -3
  122. package/dist/redux/sagas/initInputs.d.ts +2 -2
  123. package/dist/redux/sagas/initInputs.js +11 -2
  124. package/dist/redux/sagas/runner.d.ts +1 -1
  125. package/dist/redux/sagas/saveData.js +1 -1
  126. package/dist/redux/selectors/inputs.d.ts +1 -1
  127. package/dist/redux/selectors/references.js +2 -2
  128. package/dist/redux/selectors/selectors.d.ts +2 -2
  129. package/dist/redux/selectors/selectors.js +1 -1
  130. package/dist/redux/store.d.ts +2 -2
  131. package/dist/redux/store.js +1 -1
  132. package/dist/service/api.manager.d.ts +1 -1
  133. package/dist/service/api.manager.js +1 -1
  134. package/dist/types/Actions.type.d.ts +13 -13
  135. package/dist/types/Components.type.d.ts +1 -1
  136. package/dist/types/getActions.type.d.ts +1 -1
  137. package/dist/types/getConnectors.type.d.ts +1 -1
  138. package/dist/types/getSelectors.type.d.ts +1 -1
  139. package/dist/wizard-params.d.ts +1 -1
  140. 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 ? `&disableOnBoarding=true` : ""}`;
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;
@@ -1,3 +1,3 @@
1
- import { IWizardParams } from "./types/config.type";
1
+ import type { IWizardParams } from "./types/config.type";
2
2
  declare const config: IWizardParams;
3
3
  export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "2.12.1",
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.1.5",
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": "3d35bf3433a95dd7b1de71d7ea1dd59cc4400c45"
96
+ "gitHead": "6f4cf6365562ef14c67d69bcd6d5a03c1f3915a1"
97
97
  }