@legalplace/wizardx-core 2.12.0 → 2.13.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 (136) hide show
  1. package/CHANGELOG.md +19 -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/outputsParsing.d.ts +1 -1
  26. package/dist/libs/ConditionsInitiator.d.ts +1 -1
  27. package/dist/libs/ConditionsRunner.d.ts +2 -2
  28. package/dist/libs/Eval/NumbersToLetters.js +1 -1
  29. package/dist/libs/InputsInitiator.d.ts +1 -1
  30. package/dist/libs/OvcConverter.d.ts +1 -1
  31. package/dist/libs/PathReader.d.ts +1 -1
  32. package/dist/libs/SmartScriptStore.d.ts +3 -3
  33. package/dist/redux/actions/app.d.ts +2 -2
  34. package/dist/redux/actions/conditions.d.ts +2 -2
  35. package/dist/redux/actions/inputs.d.ts +2 -2
  36. package/dist/redux/actions/mandatories.d.ts +1 -1
  37. package/dist/redux/actions/references.d.ts +2 -2
  38. package/dist/redux/actions/sagas/data.d.ts +1 -1
  39. package/dist/redux/actions/sagas/model.d.ts +3 -3
  40. package/dist/redux/actions/sagas/user.d.ts +1 -1
  41. package/dist/redux/actions/smartscript.d.ts +2 -2
  42. package/dist/redux/actions/user.d.ts +2 -2
  43. package/dist/redux/listeners/subscriber.d.ts +2 -2
  44. package/dist/redux/middlewares/conditionsWatcherMiddleware.d.ts +2 -2
  45. package/dist/redux/middlewares/evaluationsWatcherMiddleware.d.ts +3 -3
  46. package/dist/redux/middlewares/mandatoriesWatcherMiddleware.d.ts +2 -2
  47. package/dist/redux/middlewares/multiplesActionsMiddleware.d.ts +2 -2
  48. package/dist/redux/middlewares/paginationWatcherMiddleware.d.ts +3 -3
  49. package/dist/redux/middlewares/paginationWatcherMiddleware.js +1 -1
  50. package/dist/redux/middlewares/pluginsHookMiddleware.d.ts +1 -1
  51. package/dist/redux/middlewares/prefillerWatcherMiddleware.d.ts +2 -2
  52. package/dist/redux/middlewares/smartscriptMiddleware.d.ts +2 -2
  53. package/dist/redux/middlewares/thirdpartyScriptsMiddleware.d.ts +2 -2
  54. package/dist/redux/reducers/app/customizations/initCustomizationAutoDefault.d.ts +2 -2
  55. package/dist/redux/reducers/app/customizations/initCustomizationMeta.d.ts +2 -2
  56. package/dist/redux/reducers/app/instance/initInstance.d.ts +2 -2
  57. package/dist/redux/reducers/app/instance/setDataStatus.d.ts +2 -2
  58. package/dist/redux/reducers/app/instance/updateInstance.d.ts +2 -2
  59. package/dist/redux/reducers/app/instance/updateInstancePaid.d.ts +2 -2
  60. package/dist/redux/reducers/app/meta/fetchModelFailed.d.ts +1 -1
  61. package/dist/redux/reducers/app/meta/fetchModelNonBlocking.d.ts +1 -1
  62. package/dist/redux/reducers/app/meta/fetchModelSucceeded.d.ts +1 -1
  63. package/dist/redux/reducers/app/meta/fetchModelUnhealthy.d.ts +2 -2
  64. package/dist/redux/reducers/app/meta/fetchModelUserLocked.d.ts +1 -1
  65. package/dist/redux/reducers/app/meta/initMeta.d.ts +2 -2
  66. package/dist/redux/reducers/app/meta/setModelUuid.d.ts +2 -2
  67. package/dist/redux/reducers/app/pagination/goNextPage.d.ts +1 -1
  68. package/dist/redux/reducers/app/pagination/goPage.d.ts +2 -2
  69. package/dist/redux/reducers/app/pagination/goPreviousPage.d.ts +1 -1
  70. package/dist/redux/reducers/app/pagination/initPagination.d.ts +2 -2
  71. package/dist/redux/reducers/app/pagination/updateAvailableAppStates.d.ts +2 -2
  72. package/dist/redux/reducers/app/wizard/updateAvailableSections.d.ts +2 -2
  73. package/dist/redux/reducers/app.d.ts +2 -2
  74. package/dist/redux/reducers/conditions/addMultipleOccurency.d.ts +2 -2
  75. package/dist/redux/reducers/conditions/deleteMultipleOccurency.d.ts +2 -2
  76. package/dist/redux/reducers/conditions/initConditions.d.ts +2 -2
  77. package/dist/redux/reducers/conditions/updateDocumentConditions.d.ts +2 -2
  78. package/dist/redux/reducers/conditions/updateOptionConditions.d.ts +2 -2
  79. package/dist/redux/reducers/conditions/updateOptionValidatorCondition.d.ts +2 -2
  80. package/dist/redux/reducers/conditions/updatePrefillerConditions.d.ts +2 -2
  81. package/dist/redux/reducers/conditions/updateSectionConditions.d.ts +2 -2
  82. package/dist/redux/reducers/conditions/updateVariableConditions.d.ts +2 -2
  83. package/dist/redux/reducers/conditions/updateVariableValidatorCondition.d.ts +2 -2
  84. package/dist/redux/reducers/conditions.d.ts +2 -2
  85. package/dist/redux/reducers/inputs/addMultipleOccurency.d.ts +2 -2
  86. package/dist/redux/reducers/inputs/deleteMultipleOccurency.d.ts +2 -2
  87. package/dist/redux/reducers/inputs/initOption.d.ts +2 -2
  88. package/dist/redux/reducers/inputs/initVariable.d.ts +2 -2
  89. package/dist/redux/reducers/inputs/updateOptionInput.d.ts +2 -2
  90. package/dist/redux/reducers/inputs/updateVariableInput.d.ts +2 -2
  91. package/dist/redux/reducers/inputs.d.ts +2 -2
  92. package/dist/redux/reducers/mandatories/addMultipleOccurency.d.ts +2 -2
  93. package/dist/redux/reducers/mandatories/deleteMultipleOccurency.d.ts +2 -2
  94. package/dist/redux/reducers/mandatories/initMandatoryOption.d.ts +2 -2
  95. package/dist/redux/reducers/mandatories/initMandatoryVariable.d.ts +2 -2
  96. package/dist/redux/reducers/mandatories/setMandatoryIgnore.d.ts +2 -2
  97. package/dist/redux/reducers/mandatories/setMandatoryOption.d.ts +2 -2
  98. package/dist/redux/reducers/mandatories/setMandatorySection.d.ts +2 -2
  99. package/dist/redux/reducers/mandatories/setMandatoryVariable.d.ts +2 -2
  100. package/dist/redux/reducers/mandatories.d.ts +2 -2
  101. package/dist/redux/reducers/pluginsStore.d.ts +2 -2
  102. package/dist/redux/reducers/references/initReferences.d.ts +2 -2
  103. package/dist/redux/reducers/references/updateOptionMeta.d.ts +2 -2
  104. package/dist/redux/reducers/references/updateVariableMeta.d.ts +2 -2
  105. package/dist/redux/reducers/references.d.ts +2 -2
  106. package/dist/redux/reducers/smartscript/enableSmartScript.d.ts +1 -1
  107. package/dist/redux/reducers/smartscript/initSmartScriptTriggers.d.ts +2 -2
  108. package/dist/redux/reducers/smartscript/updateSmartscriptOptionHidden.d.ts +2 -2
  109. package/dist/redux/reducers/smartscript/updateSmartscriptVariableHidden.d.ts +2 -2
  110. package/dist/redux/reducers/smartscript.d.ts +2 -2
  111. package/dist/redux/reducers/user/initUser.d.ts +2 -2
  112. package/dist/redux/reducers/user/setUserStatus.d.ts +2 -2
  113. package/dist/redux/reducers/user/setUserValidToken.d.ts +2 -2
  114. package/dist/redux/reducers/user.d.ts +2 -2
  115. package/dist/redux/routerHistory.d.ts +1 -1
  116. package/dist/redux/routerHistory.js +1 -1
  117. package/dist/redux/sagas/fetchModel.d.ts +2 -2
  118. package/dist/redux/sagas/fetchModel.js +3 -3
  119. package/dist/redux/sagas/initInputs.d.ts +2 -2
  120. package/dist/redux/sagas/runner.d.ts +1 -1
  121. package/dist/redux/sagas/saveData.js +1 -1
  122. package/dist/redux/selectors/inputs.d.ts +1 -1
  123. package/dist/redux/selectors/references.js +2 -2
  124. package/dist/redux/selectors/selectors.d.ts +2 -2
  125. package/dist/redux/selectors/selectors.js +1 -1
  126. package/dist/redux/store.d.ts +2 -2
  127. package/dist/redux/store.js +1 -1
  128. package/dist/service/api.manager.d.ts +1 -1
  129. package/dist/service/api.manager.js +1 -1
  130. package/dist/types/Actions.type.d.ts +13 -13
  131. package/dist/types/Components.type.d.ts +1 -1
  132. package/dist/types/getActions.type.d.ts +1 -1
  133. package/dist/types/getConnectors.type.d.ts +1 -1
  134. package/dist/types/getSelectors.type.d.ts +1 -1
  135. package/dist/wizard-params.d.ts +1 -1
  136. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.13.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.12.1...@legalplace/wizardx-core@2.13.0) (2022-12-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * improving eslint config, adding basic config (without react) and linting all api[#7212](https://git.legalplace.eu/legalplace/monorepo/issues/7212) ([e4f9168](https://git.legalplace.eu/legalplace/monorepo/commits/e4f9168048ce0b5d8315aa918ff9cde3f03644c2))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.12.1](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.12.0...@legalplace/wizardx-core@2.12.1) (2022-12-26)
18
+
19
+ **Note:** Version bump only for package @legalplace/wizardx-core
20
+
21
+
22
+
23
+
24
+
6
25
  # [2.12.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.4...@legalplace/wizardx-core@2.12.0) (2022-09-23)
7
26
 
8
27
 
@@ -1,5 +1,6 @@
1
- import React, { Props } from "react";
2
- import { LoadableComponent } from "@loadable/component";
1
+ import type { Props } from "react";
2
+ import React from "react";
3
+ import type { LoadableComponent } from "@loadable/component";
3
4
  import type { Action, AnyAction, CombinedState, Reducer } from "redux";
4
5
  declare let pluginsStoreReducers: Record<string, Reducer<CombinedState<Record<string, any>>, AnyAction>>;
5
6
  export declare const getPluginsStoreReducers: () => Readonly<typeof pluginsStoreReducers>;
@@ -65,7 +65,7 @@ export const pluginPageAppState = (page) => {
65
65
  if (appStates.length === 1)
66
66
  return appStates[0];
67
67
  if (appStates.length > 1)
68
- throw new Error(`Found multipled appStates when checking for plugins page name`);
68
+ throw new Error("Found multipled appStates when checking for plugins page name");
69
69
  return false;
70
70
  };
71
71
  export const getPluginsPageAppStates = () => PluginsPageAppStates;
package/dist/Shimmer.js CHANGED
@@ -51,7 +51,7 @@ const Shimmer = (props) => {
51
51
  return _jsx(ThemeShimmer, {}, void 0);
52
52
  }
53
53
  return (_jsxs(_Fragment, { children: [["waiting", "failed"].includes(props.fetchStatus) && (_jsxs("div", Object.assign({ style: style }, { children: [props.fetchStatus === "waiting" && (_jsxs("div", Object.assign({ className: "lds-ripple" }, { children: [_jsx("div", {}, void 0), _jsx("div", {}, void 0)] }), void 0)), props.fetchStatus === "failed" &&
54
- "Une erreur a eu lieu pendant le chargement du questionnaire"] }), void 0)), props.fetchStatus === "userLocked" && (_jsxs(_Fragment, { children: [_jsx(PluginLoader, { anchor: [`userLockedScreen`], props: props }, void 0), _jsx(UserLockedComponent, { unhealthyStyle: unhealthyStyle }, void 0)] }, void 0)), props.fetchStatus === "unhealthy" && (_jsxs("div", Object.assign({ style: unhealthyStyle }, { children: ["Le mod\u00E8le semble contenir des erreurs", _jsx("pre", Object.assign({ style: unhealthyStylePre }, { children: (_a = props.report) === null || _a === void 0 ? void 0 : _a.raw }), void 0)] }), void 0))] }, void 0));
54
+ "Une erreur a eu lieu pendant le chargement du questionnaire"] }), void 0)), props.fetchStatus === "userLocked" && (_jsxs(_Fragment, { children: [_jsx(PluginLoader, { anchor: ["userLockedScreen"], props: props }, void 0), _jsx(UserLockedComponent, { unhealthyStyle: unhealthyStyle }, void 0)] }, void 0)), props.fetchStatus === "unhealthy" && (_jsxs("div", Object.assign({ style: unhealthyStyle }, { children: ["Le mod\u00E8le semble contenir des erreurs", _jsx("pre", Object.assign({ style: unhealthyStylePre }, { children: (_a = props.report) === null || _a === void 0 ? void 0 : _a.raw }), void 0)] }), void 0))] }, void 0));
55
55
  };
56
56
  const mapStateToProps = (state) => ({
57
57
  fetchStatus: state.app.meta.fetchStatus === "succeeded"
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { IWizardParamsTheme } from "./types/config.type";
1
+ import type React from "react";
2
+ import type { IWizardParamsTheme } from "./types/config.type";
3
3
  export declare const loadTheme: (theme?: string | undefined, force?: boolean | undefined) => Promise<void>;
4
4
  export declare const getThemeShimmer: () => React.LazyExoticComponent<React.FC<{}>> | null;
5
5
  export declare const setWizardTheme: (theme: IWizardParamsTheme) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { RouteComponentProps } from "react-router-dom";
1
+ import type { RouteComponentProps } from "react-router-dom";
2
2
  export interface IRouteProps {
3
3
  path: string;
4
4
  }
@@ -1,7 +1,7 @@
1
- import { Action } from "redux";
1
+ import type { Action } from "redux";
2
2
  import moment from "moment-business-days";
3
3
  import { SmartScriptStore } from "../libs/SmartScriptStore";
4
- import { StateType } from "../types/State.type";
4
+ import type { StateType } from "../types/State.type";
5
5
  export declare type TInitTriggersCallback = (triggers: StateType.SmartScript["triggers"], actions: Action[]) => void;
6
6
  declare global {
7
7
  interface Window {
@@ -1,4 +1,5 @@
1
- import React, { CSSProperties } from "react";
1
+ import type { CSSProperties } from "react";
2
+ import React from "react";
2
3
  export interface IProps {
3
4
  unhealthyStyle: CSSProperties;
4
5
  }
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  import { getRelatedVariablesValues, parseContentWithVariables, } from "../helpers/outputsParsing";
3
3
  const stateToProps = (selectors) => (state, ownProps) => {
4
4
  const { id, index } = ownProps;
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  import { NumAuto } from "../libs/NumAuto";
3
3
  import { DocumentsOutputs } from "../libs/DocumentsOutputs";
4
4
  import { selectAllSectionsReferences } from "../redux/selectors/references";
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  const stateToProps = (selectors) => () => ({
3
3
  hasValidAuthToken: selectors.selectUserValidToken(),
4
4
  });
@@ -1,5 +1,5 @@
1
1
  import type { OptionV3 } from "@legalplace/models-v3-types";
2
- import { ConnectorMapSelectors } from "./connector/componentConnector";
2
+ import type { ConnectorMapSelectors } from "./connector/componentConnector";
3
3
  export declare type ConnectOptionOwnProps = {
4
4
  id: number;
5
5
  index: number;
@@ -1,5 +1,5 @@
1
1
  import { parseOptionLabel, parseRawWithVariables, } from "../helpers/outputsParsing";
2
- import { componentConnector, } from "./connector/componentConnector";
2
+ import { componentConnector } from "./connector/componentConnector";
3
3
  import { isStepAvailable } from "../redux/selectors/app";
4
4
  export const canOptionDisplay = (id, index, selectors) => {
5
5
  const option = selectors.selectOptionReference(id);
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  const stateToProps = (selectors) => () => {
3
3
  const { selectIsFirstPage, selectCurrentPage, selectIsLastPage, selectIsLastWizardPage, selectAvailableSections, selectUserStatus, selectMandatorySection, selectCurrentSectionId, selectFirstUnfinishedSectionId, selectMandatoryIgnore, } = selectors;
4
4
  const isFirstPage = selectIsFirstPage();
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  const stateToProps = (selectors) => (state, ownProps) => {
3
3
  const { selectCurrentSectionId, selectAvailableSections, selectSectionReference, selectCurrentPage, } = selectors;
4
4
  const currentSectionId = typeof ownProps.id === "number" ? ownProps.id : selectCurrentSectionId();
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  const stateToProps = (selectors) => (state, ownProps) => {
3
3
  var _a, _b;
4
4
  const { selectOptionReference } = selectors;
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  const stateToProps = (selectors) => (state, ownProps) => {
3
3
  const { selectCurrentSectionId, selectSectionReference, selectOptionReference, } = selectors;
4
4
  const id = typeof ownProps.id !== "undefined" ? ownProps.id : selectCurrentSectionId();
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  const stateToProps = (selectors) => () => ({
3
3
  sections: selectors.selectAvailableSections(),
4
4
  });
@@ -1,5 +1,5 @@
1
1
  import queryString from "query-string";
2
- import { componentConnector, } from "./connector/componentConnector";
2
+ import { componentConnector } from "./connector/componentConnector";
3
3
  import { PathReader } from "../libs/PathReader";
4
4
  import { SectionValidity } from "../libs/SectionValidity";
5
5
  const stateToProps = (selectors) => (state, ownProps) => {
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- import { TermsheetPropsType } from "../types/Components.type";
2
+ import type { TermsheetPropsType } from "../types/Components.type";
3
3
  export declare const connectTermsheet: import("redux").Func1<React.ComponentType<TermsheetPropsType>, import("react-redux").ConnectedComponent<React.FC<TermsheetPropsType>, import("react-redux").Omit<TermsheetPropsType, "termsheet" | "parseLink">>>;
@@ -1,5 +1,5 @@
1
1
  import type { VariableV3 } from "@legalplace/models-v3-types";
2
- import { ConnectorMapSelectors } from "./connector/componentConnector";
2
+ import type { ConnectorMapSelectors } from "./connector/componentConnector";
3
3
  export declare type ConnectVariableOwnProps = {
4
4
  id: number;
5
5
  index: number;
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  import { isStepAvailable } from "../redux/selectors/app";
3
3
  import { parseRawWithVariables, parseVariableLabel, } from "../helpers/outputsParsing";
4
4
  export const canVariableDisplay = (id, index, selectors) => {
@@ -1,4 +1,4 @@
1
- import { componentConnector, } from "./connector/componentConnector";
1
+ import { componentConnector } from "./connector/componentConnector";
2
2
  const dispatchToProps = () => (dispatch) => ({
3
3
  openPreview: () => dispatch({ type: "OPEN_PREVIEW" }),
4
4
  closePreview: () => dispatch({ type: "CLOSE_PREVIEW" }),
@@ -1,5 +1,6 @@
1
- import { Dispatch, Store } from "redux";
2
- import React, { ComponentType } from "react";
1
+ import type { Dispatch, Store } from "redux";
2
+ import type { ComponentType } from "react";
3
+ import React from "react";
3
4
  import type { StateType } from "../../types/State.type";
4
5
  import type { SelectorsLibraryType } from "../../types/getSelectors.type";
5
6
  import type { ActionsLibraryType } from "../../types/getActions.type";
@@ -21,7 +22,7 @@ export declare function componentConnector<OwnProps = {}, MapProps = {}, Dispatc
21
22
  stateToProps?: ConnectorStateToProps<OwnPropsWithStore, MapProps> | undefined;
22
23
  dispatchToProps?: ConnectorDispatchProps<OwnPropsWithStore, DispatchProps> | undefined;
23
24
  additionnalHooks?: AdditionnalHooksFunction<InjectedProps>;
24
- }): <AdditionnalProps = {}>(Component: React.ComponentType<InjectedProps & AdditionnalProps>, connectorOptions?: {
25
+ }): <AdditionnalProps = {}>(Component: ComponentType<InjectedProps & AdditionnalProps>, connectorOptions?: {
25
26
  memoizeStateToProps?: boolean | undefined;
26
27
  } | undefined) => ((props: any) => JSX.Element) | import("react-redux").ConnectedComponent<React.ComponentClass<any, any> | React.FunctionComponent<any>, import("react-redux").Omit<any, never> & OwnPropsWithStore & AdditionnalProps & {
27
28
  store?: Store<any, import("redux").AnyAction> | undefined;
@@ -1,4 +1,4 @@
1
- import { OVC_TYPE } from "../libs/InputsInitiator";
1
+ import type { OVC_TYPE } from "../libs/InputsInitiator";
2
2
  export declare type relVarsValsT = Record<string, string | number>;
3
3
  export declare type getRelatedVarsT = (optionId: number, index: number, variables: number[]) => relVarsValsT;
4
4
  export declare const getRelatedVariablesValues: getRelatedVarsT;
@@ -1,4 +1,4 @@
1
- import { StateType } from "../types/State.type";
1
+ import type { StateType } from "../types/State.type";
2
2
  export declare class ConditionsInitiator {
3
3
  private conditions;
4
4
  private references;
@@ -1,5 +1,5 @@
1
- import { Dispatch } from "redux";
2
- import { StateType, MAPPED_CONDITIONS } from "../types/State.type";
1
+ import type { Dispatch } from "redux";
2
+ import type { StateType, MAPPED_CONDITIONS } from "../types/State.type";
3
3
  export declare type AllConditions = StateType.Conditions.Options | StateType.Conditions.Variables | StateType.Conditions.Validators | StateType.Conditions.Prefillers | StateType.Conditions.Sections | any[];
4
4
  export declare class ConditionsRunner {
5
5
  dispatch: Dispatch;
@@ -142,7 +142,7 @@ export class NumberToLetter {
142
142
  numberToLetter = `${this.French(quotient)} billions ${this.French(left)}`;
143
143
  break;
144
144
  default:
145
- throw new Error(`Capacity overrun`);
145
+ throw new Error("Capacity overrun");
146
146
  }
147
147
  if (numberToLetter.substr(numberToLetter.length - "quatre-vingt".length, "quatre-vingt".length) === "quatre-vingt")
148
148
  numberToLetter += "s";
@@ -1,4 +1,4 @@
1
- import { StateType } from "../types/State.type";
1
+ import type { StateType } from "../types/State.type";
2
2
  export declare type OVC_TYPE = {
3
3
  options: {
4
4
  [key: string]: boolean[];
@@ -1,4 +1,4 @@
1
- import { StateType } from "../types/State.type";
1
+ import type { StateType } from "../types/State.type";
2
2
  export interface OvcType {
3
3
  o: {
4
4
  [k: string]: string | number | (string | number)[];
@@ -1,4 +1,4 @@
1
- import { StateType } from "../types/State.type";
1
+ import type { StateType } from "../types/State.type";
2
2
  export declare class PathReader {
3
3
  currentPage: number;
4
4
  currentSectionId: number;
@@ -1,6 +1,6 @@
1
- import { Action } from "redux";
2
- import { ActionsType } from "../types/Actions.type";
3
- import { StateType } from "../types/State.type";
1
+ import type { Action } from "redux";
2
+ import type { ActionsType } from "../types/Actions.type";
3
+ import type { StateType } from "../types/State.type";
4
4
  export declare type CallbackType = () => void;
5
5
  export declare class SmartScriptStore {
6
6
  static hooks: {
@@ -1,6 +1,6 @@
1
1
  import type { ModelV3 } from "@legalplace/models-v3-types";
2
- import { StateType } from "../../types/State.type";
3
- import { ActionsType } from "../../types/Actions.type";
2
+ import type { StateType } from "../../types/State.type";
3
+ import type { ActionsType } from "../../types/Actions.type";
4
4
  export declare const initMetaAction: (meta: Omit<StateType.App.Meta, "fetchStatus">) => ActionsType.App.initMeta;
5
5
  export declare const setModelUuidAction: (modelUuid: StateType.App.Meta["modelUuid"]) => ActionsType.App.setModelUuid;
6
6
  export declare const fetchModelSucceededAction: () => ActionsType.App.fetchModelSucceeded;
@@ -1,5 +1,5 @@
1
- import { ActionsType } from "../../types/Actions.type";
2
- import { StateType } from "../../types/State.type";
1
+ import type { ActionsType } from "../../types/Actions.type";
2
+ import type { StateType } from "../../types/State.type";
3
3
  export declare const initConditionsAction: (conditions: StateType.Conditions) => ActionsType.Conditions.initConditions;
4
4
  export declare const updateOptionConditionsAction: (id: number, index: number, value: boolean) => ActionsType.Conditions.updateOptionCondition;
5
5
  export declare const updateVariableConditionsAction: (id: number, index: number, value: boolean) => ActionsType.Conditions.updateVariableCondition;
@@ -1,5 +1,5 @@
1
- import { StateType } from "../../types/State.type";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { StateType } from "../../types/State.type";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare const initInputsAction: (inputs: StateType.Inputs, references?: StateType.References | undefined) => ActionsType.Inputs.initInputs;
4
4
  export declare const initOptionAction: (id: number, values: boolean[]) => ActionsType.Inputs.initOption;
5
5
  export declare const updateOptionAction: (id: number, value: boolean, index: number) => ActionsType.Inputs.updateOptionInput;
@@ -1,4 +1,4 @@
1
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { ActionsType } from "../../types/Actions.type";
2
2
  export declare const initMandatoryOptionAction: (id: number, value: boolean[]) => ActionsType.Mandatories.initMandatoryOption;
3
3
  export declare const initMandatoryVariableAction: (id: number, value: boolean[]) => ActionsType.Mandatories.initMandatoryVariable;
4
4
  export declare const setMandatoryIgnoreAction: (value: boolean) => ActionsType.Mandatories.setMandatoryIgnore;
@@ -1,5 +1,5 @@
1
- import { StateType } from "../../types/State.type";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { StateType } from "../../types/State.type";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare const initReferencesAction: (references: StateType.References) => ActionsType.References.initReferences;
4
4
  export declare const updateVariableMetaAction: (id: number, meta: ActionsType.References.updateVariableMeta["meta"]) => ActionsType.References.updateVariableMeta;
5
5
  export declare const updateOptionMetaAction: (id: number, meta: ActionsType.References.updateOptionMeta["meta"]) => ActionsType.References.updateOptionMeta;
@@ -1,2 +1,2 @@
1
- import { ActionsType } from "../../../types/Actions.type";
1
+ import type { ActionsType } from "../../../types/Actions.type";
2
2
  export declare const saveDataAction: (redirect?: boolean, confirmAnswer?: boolean | undefined, redirectFallback?: string | undefined, redirectOverride?: string | undefined, additionalProperties?: Record<string, string | number> | undefined) => ActionsType.Sagas.Data.saveData;
@@ -1,6 +1,6 @@
1
- import { PathReader } from "../../../libs/PathReader";
2
- import { ActionsType } from "../../../types/Actions.type";
3
- import { WizardConfigResponse } from "../../../types/api.type";
1
+ import type { PathReader } from "../../../libs/PathReader";
2
+ import type { ActionsType } from "../../../types/Actions.type";
3
+ import type { WizardConfigResponse } from "../../../types/api.type";
4
4
  export declare const fetchModelPrerequisitesAction: (permalink: string, prefix?: string) => ActionsType.Sagas.Model.fetchModelPrerequisites;
5
5
  export declare const fetchModelAction: (permalink: string, prefix: string | undefined, uniqid: string | undefined, uniqidParam: string | undefined, queryParams: URLSearchParams, pathReader: PathReader, urlParams: URLSearchParams, clientConfigReturnValue: {
6
6
  appStates: string[];
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../types/Actions.type";
1
+ import type { ActionsType } from "../../../types/Actions.type";
2
2
  export declare const setUserEmail: (email: string, disableRedirect?: boolean | undefined, inBackground?: boolean | undefined) => ActionsType.User.setUserEmail;
3
3
  export declare const setUserEmailSucceeded: () => ActionsType.User.setUserEmailSucceeded;
@@ -1,5 +1,5 @@
1
- import { StateType } from "../../types/State.type";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { StateType } from "../../types/State.type";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare const enableSmartscriptAction: () => ActionsType.SmartScript.enableSmartScript;
4
4
  export declare const initSmartscriptTriggersAction: (triggers: StateType.SmartScript["triggers"]) => ActionsType.SmartScript.initSmartscriptTriggers;
5
5
  export declare const updateSmartscriptOptionHiddenAction: (id: number, index: number, hide: boolean) => ActionsType.SmartScript.updateSmartscriptOptionHidden;
@@ -1,5 +1,5 @@
1
- import { StateType } from "../../types/State.type";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { StateType } from "../../types/State.type";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare const initUserAction: (user: Omit<StateType.User, "status">) => ActionsType.User.initUser;
4
4
  export declare const setUserStatusAction: (status: "authenticated" | "unauthenticated" | "inprogress" | "failed") => ActionsType.User.setUserStatus;
5
5
  export declare const setUserValidTokenAction: (validToken: boolean) => ActionsType.User.setUserValidToken;
@@ -1,5 +1,5 @@
1
- import { Store, Dispatch, AnyAction } from "redux";
2
- import { StateType } from "../../types/State.type";
1
+ import type { Store, Dispatch, AnyAction } from "redux";
2
+ import type { StateType } from "../../types/State.type";
3
3
  export declare type StoreListener = (previousState: StateType, currentState: StateType, dispatch: Dispatch<AnyAction>) => void;
4
4
  declare const subscribeListeners: (store: Store, listenersToSubscribe?: StoreListener[]) => void;
5
5
  export default subscribeListeners;
@@ -1,5 +1,5 @@
1
- import { Dispatch, MiddlewareAPI } from "redux";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { Dispatch, MiddlewareAPI } from "redux";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare type WatcherActions = ActionsType.Inputs.updateOptionInput | ActionsType.Inputs.updateVariableInput | ActionsType.Inputs.addMultipleOccurency | ActionsType.Inputs.deleteMultipleOccurency | ActionsType.Conditions.initConditions;
4
4
  declare const conditionsWatcherMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | WatcherActions;
5
5
  export default conditionsWatcherMiddleware;
@@ -1,6 +1,6 @@
1
- import { MiddlewareAPI, Dispatch } from "redux";
2
- import { ActionsType } from "../../types/Actions.type";
3
- import { StateType } from "../../types/State.type";
1
+ import type { MiddlewareAPI, Dispatch } from "redux";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
+ import type { StateType } from "../../types/State.type";
4
4
  export declare const watchUpdateVariable: (mpi: MiddlewareAPI<Dispatch, StateType>, next: Dispatch, action: ActionsType.Inputs.updateVariableInput | ActionsType.Conditions.updateVariableCondition) => ActionsType.Inputs.updateVariableInput | ActionsType.Conditions.updateVariableCondition;
5
5
  export declare type WatcherActions = ActionsType.Conditions.updateVariableCondition | ActionsType.Conditions.updateOptionCondition | ActionsType.Inputs.updateOptionInput | ActionsType.Inputs.updateVariableInput | ActionsType.App.fetchModelSucceeded;
6
6
  declare const evaluationsWatcherMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | WatcherActions;
@@ -1,5 +1,5 @@
1
- import { Dispatch, MiddlewareAPI } from "redux";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { Dispatch, MiddlewareAPI } from "redux";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare type WatcherActions = ActionsType.Inputs.updateOptionInput | ActionsType.Inputs.updateVariableInput | ActionsType.Inputs.addMultipleOccurency | ActionsType.Inputs.deleteMultipleOccurency | ActionsType.Mandatories.setMandatoryOption | ActionsType.Mandatories.setMandatoryVariable;
4
4
  declare const mandatoriesWatcherMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | WatcherActions;
5
5
  export default mandatoriesWatcherMiddleware;
@@ -1,5 +1,5 @@
1
- import { MiddlewareAPI, Dispatch } from "redux";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { MiddlewareAPI, Dispatch } from "redux";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare type WatcherActions = ActionsType.Inputs.addMultipleOccurency | ActionsType.Inputs.deleteMultipleOccurency;
4
4
  declare const multiplesActionsMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | WatcherActions;
5
5
  export default multiplesActionsMiddleware;
@@ -1,6 +1,6 @@
1
- import { LocationChangeAction } from "connected-react-router";
2
- import { MiddlewareAPI, Dispatch } from "redux";
3
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { LocationChangeAction } from "connected-react-router";
2
+ import type { MiddlewareAPI, Dispatch } from "redux";
3
+ import type { ActionsType } from "../../types/Actions.type";
4
4
  export declare type WatcherActions = ActionsType.Conditions.updateSectionCondition | LocationChangeAction;
5
5
  declare const paginationWatcherMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | WatcherActions;
6
6
  export default paginationWatcherMiddleware;
@@ -44,7 +44,7 @@ const watchSectionConditionUpdate = (mpi, next, action) => {
44
44
  const result = next(action);
45
45
  const sectionsReferences = selectAllSectionsReferences();
46
46
  if (sectionsReferences === undefined)
47
- throw new Error(`Sections references not found`);
47
+ throw new Error("Sections references not found");
48
48
  const availableSections = Object.keys(sectionsReferences)
49
49
  .filter((sectionId) => {
50
50
  const condition = selectSectionConditionValue(parseInt(sectionId, 10)) !== false;
@@ -1,3 +1,3 @@
1
- import { MiddlewareAPI, Dispatch, Action } from "redux";
1
+ import type { MiddlewareAPI, Dispatch, Action } from "redux";
2
2
  declare const pluginsHookMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: Action) => Action<any>;
3
3
  export default pluginsHookMiddleware;
@@ -1,5 +1,5 @@
1
- import { MiddlewareAPI, Dispatch } from "redux";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { MiddlewareAPI, Dispatch } from "redux";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare type WatcherActions = ActionsType.Conditions.updatePrefillerCondition;
4
4
  declare const prefillerWatcherMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | ActionsType.Conditions.updatePrefillerCondition;
5
5
  export default prefillerWatcherMiddleware;
@@ -1,5 +1,5 @@
1
- import { MiddlewareAPI, Dispatch } from "redux";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { MiddlewareAPI, Dispatch } from "redux";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare type WatcherActions = ActionsType.SmartScript.enableSmartScript | ActionsType.Inputs.updateOptionInput | ActionsType.Inputs.updateVariableInput;
4
4
  declare const smartscriptMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | WatcherActions;
5
5
  export default smartscriptMiddleware;
@@ -1,5 +1,5 @@
1
- import { MiddlewareAPI, Dispatch } from "redux";
2
- import { ActionsType } from "../../types/Actions.type";
1
+ import type { MiddlewareAPI, Dispatch } from "redux";
2
+ import type { ActionsType } from "../../types/Actions.type";
3
3
  export declare type WatcherActions = ActionsType.App.fetchModelSucceeded;
4
4
  declare const thirdPartyScriptsMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => void | ActionsType.App.fetchModelSucceeded;
5
5
  export default thirdPartyScriptsMiddleware;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const initCustomizationAutoDefaultTypeReducer: (state: StateType.App, action: ActionsType.App.initCustomizationAutoDefault) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const initCustomizationMetaReducer: (state: StateType.App, action: ActionsType.App.initCustomizationMeta) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const initInstanceReducer: (state: StateType.App, action: ActionsType.App.initInstance) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const setDataStatusReducer: (state: StateType.App, action: ActionsType.App.setDataStatus) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const updateInstanceReducer: (state: StateType.App, action: ActionsType.App.updateInstance) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const updateInstancePaidReducer: (state: StateType.App, action: ActionsType.App.updateInstancePaid) => StateType.App;
@@ -1,2 +1,2 @@
1
- import { StateType } from "../../../../types/State.type";
1
+ import type { StateType } from "../../../../types/State.type";
2
2
  export declare const fetchModelFailedReducer: (state: StateType.App) => StateType.App;
@@ -1,2 +1,2 @@
1
- import { StateType } from "../../../../types/State.type";
1
+ import type { StateType } from "../../../../types/State.type";
2
2
  export declare const fetchModelNonBlockingReducer: (state: StateType.App) => StateType.App;
@@ -1,2 +1,2 @@
1
- import { StateType } from "../../../../types/State.type";
1
+ import type { StateType } from "../../../../types/State.type";
2
2
  export declare const fetchModelSucceededReducer: (state: StateType.App) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { StateType } from "../../../../types/State.type";
2
- import { ActionsType } from "../../../../types/Actions.type";
1
+ import type { StateType } from "../../../../types/State.type";
2
+ import type { ActionsType } from "../../../../types/Actions.type";
3
3
  export declare const fetchModelUnhealthyReducer: (state: StateType.App, action: ActionsType.App.fetchModelUnhealthy) => StateType.App;
@@ -1,2 +1,2 @@
1
- import { StateType } from "../../../../types/State.type";
1
+ import type { StateType } from "../../../../types/State.type";
2
2
  export declare const fetchModelUserLockedReducer: (state: StateType.App) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const initMetaReducer: (state: StateType.App, action: ActionsType.App.initMeta) => StateType.App;
@@ -1,3 +1,3 @@
1
- import { ActionsType } from "../../../../types/Actions.type";
2
- import { StateType } from "../../../../types/State.type";
1
+ import type { ActionsType } from "../../../../types/Actions.type";
2
+ import type { StateType } from "../../../../types/State.type";
3
3
  export declare const setModelUuidReducer: (state: StateType.App, action: ActionsType.App.setModelUuid) => StateType.App;
@@ -1,2 +1,2 @@
1
- import { StateType } from "../../../../types/State.type";
1
+ import type { StateType } from "../../../../types/State.type";
2
2
  export declare const goNextPageReducer: (state: StateType.App) => StateType.App;