@legalplace/wizardx-core 2.12.1 → 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.
- package/CHANGELOG.md +11 -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/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/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/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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
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)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @legalplace/wizardx-core
|
package/dist/PluginLoader.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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>;
|
package/dist/PluginLoader.js
CHANGED
|
@@ -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(
|
|
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: [
|
|
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"
|
package/dist/ThemeLoader.d.ts
CHANGED
|
@@ -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,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,4 @@
|
|
|
1
|
-
import { 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
|
|
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,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
|
|
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
|
|
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
|
|
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
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import queryString from "query-string";
|
|
2
|
-
import { 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
|
|
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
|
|
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
|
|
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:
|
|
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,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(
|
|
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,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(
|
|
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;
|
|
@@ -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 goPageReducer: (state: StateType.App, action: ActionsType.App.goPage) => StateType.App;
|