@legalplace/wizardx-core 4.42.10-nightly.20251125120616 → 4.42.11
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/README.md +1 -376
- package/dist/App.d.ts +6 -1
- package/dist/App.js +7 -2
- package/dist/App.test.js +37 -0
- package/dist/Loader.d.ts +1 -1
- package/dist/Loader.js +1 -1
- package/dist/PluginLoader.d.ts +36 -21
- package/dist/PluginLoader.js +227 -90
- package/dist/PluginLoader.test.d.ts +1 -0
- package/dist/PluginLoader.test.js +52 -0
- package/dist/Shimmer.d.ts +11 -8
- package/dist/Shimmer.js +4 -4
- package/dist/ThemeLoader.d.ts +8 -8
- package/dist/ThemeLoader.test.d.ts +2 -0
- package/dist/ThemeLoader.test.js +65 -0
- package/dist/components/PluginRoute.d.ts +2 -2
- package/dist/components/PluginRoute.js +4 -3
- package/dist/components/SmartScript.d.ts +6 -2
- package/dist/components/SmartScript.js +1 -1
- package/dist/components/UserLocked/UserLockedComponent.js +2 -2
- package/dist/components/View.d.ts +3 -3
- package/dist/components/View.js +7 -5
- package/dist/components/View.test.d.ts +2 -0
- package/dist/components/View.test.js +84 -0
- package/dist/componentsConnectors/connectBox.d.ts +6 -4
- package/dist/componentsConnectors/connectBox.test.d.ts +1 -0
- package/dist/componentsConnectors/connectBox.test.js +218 -0
- package/dist/componentsConnectors/connectDocument.d.ts +6 -4
- package/dist/componentsConnectors/connectDocument.test.d.ts +1 -0
- package/dist/componentsConnectors/connectDocument.test.js +95 -0
- package/dist/componentsConnectors/connectHeader.d.ts +6 -4
- package/dist/componentsConnectors/connectMetaTitle.d.ts +7 -3
- package/dist/componentsConnectors/connectMetaTitle.test.d.ts +1 -0
- package/dist/componentsConnectors/connectMetaTitle.test.js +32 -0
- package/dist/componentsConnectors/connectOption.d.ts +7 -5
- package/dist/componentsConnectors/connectPagination.d.ts +7 -5
- package/dist/componentsConnectors/connectPreview.d.ts +7 -3
- package/dist/componentsConnectors/connectProgress.d.ts +6 -4
- package/dist/componentsConnectors/connectRootOption.d.ts +7 -5
- package/dist/componentsConnectors/connectSection.d.ts +6 -4
- package/dist/componentsConnectors/connectSummary.d.ts +9 -5
- package/dist/componentsConnectors/connectSummaryItem.d.ts +6 -4
- package/dist/componentsConnectors/connectTermsheet.js +1 -1
- package/dist/componentsConnectors/connectVariable.d.ts +8 -6
- package/dist/componentsConnectors/connectWizardWrapper.d.ts +6 -4
- package/dist/componentsConnectors/connector/componentConnector.d.ts +10 -7
- package/dist/componentsConnectors/connector/componentConnector.js +3 -3
- package/dist/componentsConnectors/library.d.ts +81 -47
- package/dist/config.test.d.ts +1 -0
- package/dist/config.test.js +54 -0
- package/dist/helpers/activitiesHelper.d.ts +3 -3
- package/dist/helpers/autocomplete.helper.d.ts +2 -2
- package/dist/helpers/autocomplete.helper.js +1 -1
- package/dist/helpers/autosave.helper.d.ts +13 -3
- package/dist/helpers/autosave.helper.js +70 -3
- package/dist/helpers/inpiCitiesHelper.js +1 -1
- package/dist/helpers/outputsParsing.d.ts +9 -9
- package/dist/hooks/useDispatch.d.ts +1 -1
- package/dist/hooks/usePrevious.js +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/libs/ConditionsRunner.d.ts +1 -1
- package/dist/libs/Formatter/FormatAddress.d.ts +1 -1
- package/dist/libs/InputsInitiator.d.ts +1 -1
- package/dist/libs/NumAuto.test.d.ts +1 -0
- package/dist/libs/NumAuto.test.js +43 -0
- package/dist/libs/PathReader.d.ts +1 -96
- package/dist/libs/PathReader.js +2 -1
- package/dist/libs/SectionValidity.test.d.ts +1 -0
- package/dist/libs/SectionValidity.test.js +116 -0
- package/dist/libs/SmartScriptStore.d.ts +6 -6
- package/dist/redux/actions/app.d.ts +1 -1
- package/dist/redux/actions/app.test.d.ts +1 -0
- package/dist/redux/actions/app.test.js +90 -0
- package/dist/redux/actions/conditions.test.d.ts +1 -0
- package/dist/redux/actions/conditions.test.js +68 -0
- package/dist/redux/actions/inputs.d.ts +1 -1
- package/dist/redux/actions/inputs.test.d.ts +1 -0
- package/dist/redux/actions/inputs.test.js +53 -0
- package/dist/redux/actions/library.d.ts +21 -15
- package/dist/redux/actions/references.d.ts +2 -2
- package/dist/redux/actions/references.test.d.ts +1 -0
- package/dist/redux/actions/references.test.js +43 -0
- package/dist/redux/actions/sagas/data.d.ts +1 -1
- package/dist/redux/actions/sagas/data.test.d.ts +1 -0
- package/dist/redux/actions/sagas/data.test.js +11 -0
- package/dist/redux/actions/sagas/model.test.d.ts +1 -0
- package/dist/redux/actions/sagas/model.test.js +11 -0
- package/dist/redux/actions/sagas/user.d.ts +1 -1
- package/dist/redux/actions/user.test.d.ts +1 -0
- package/dist/redux/actions/user.test.js +16 -0
- package/dist/redux/listeners/subscriber.d.ts +1 -1
- package/dist/redux/listeners/subscriber.test.d.ts +1 -0
- package/dist/redux/listeners/subscriber.test.js +31 -0
- package/dist/redux/middlewares/conditionsWatcherMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/conditionsWatcherMiddleware.test.d.ts +1 -0
- package/dist/redux/middlewares/conditionsWatcherMiddleware.test.js +330 -0
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.test.d.ts +1 -0
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.test.js +242 -0
- package/dist/redux/middlewares/mandatoriesWatcherMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/multiplesActionsMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/multiplesActionsMiddleware.test.d.ts +1 -0
- package/dist/redux/middlewares/multiplesActionsMiddleware.test.js +209 -0
- package/dist/redux/middlewares/paginationWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/pluginsHookMiddleware.d.ts +2 -1
- package/dist/redux/middlewares/pluginsHookMiddleware.js +7 -1
- package/dist/redux/middlewares/prefillerWatcherMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/prefillerWatcherMiddleware.test.d.ts +1 -0
- package/dist/redux/middlewares/prefillerWatcherMiddleware.test.js +84 -0
- package/dist/redux/middlewares/smartscriptMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/smartscriptMiddleware.js +2 -2
- package/dist/redux/middlewares/thirdpartyScriptsMiddleware.d.ts +1 -1
- package/dist/redux/reducers/app/instance.test.d.ts +1 -0
- package/dist/redux/reducers/app/instance.test.js +75 -0
- package/dist/redux/reducers/app/meta.test.d.ts +1 -0
- package/dist/redux/reducers/app/meta.test.js +70 -0
- package/dist/redux/reducers/app/pagination/updateAvailableAppStates.js +2 -1
- package/dist/redux/reducers/app/pagination.test.d.ts +1 -0
- package/dist/redux/reducers/app/pagination.test.js +134 -0
- package/dist/redux/reducers/app/wizard.test.d.ts +1 -0
- package/dist/redux/reducers/app/wizard.test.js +53 -0
- package/dist/redux/reducers/app.d.ts +6 -6
- package/dist/redux/reducers/app.test.d.ts +1 -0
- package/dist/redux/reducers/app.test.js +175 -0
- package/dist/redux/reducers/conditions/addMultipleOccurency.test.d.ts +1 -0
- package/dist/redux/reducers/conditions/addMultipleOccurency.test.js +108 -0
- package/dist/redux/reducers/conditions/deleteMultipleOccurency.test.d.ts +1 -0
- package/dist/redux/reducers/conditions/deleteMultipleOccurency.test.js +77 -0
- package/dist/redux/reducers/conditions/updateDocumentConditions.test.d.ts +1 -0
- package/dist/redux/reducers/conditions/updateDocumentConditions.test.js +35 -0
- package/dist/redux/reducers/conditions/updateOptionValidatorCondition.test.d.ts +1 -0
- package/dist/redux/reducers/conditions/updateOptionValidatorCondition.test.js +35 -0
- package/dist/redux/reducers/conditions/updateVariableValidatorCondition.test.d.ts +1 -0
- package/dist/redux/reducers/conditions/updateVariableValidatorCondition.test.js +35 -0
- package/dist/redux/reducers/conditions.test.d.ts +1 -0
- package/dist/redux/reducers/conditions.test.js +196 -0
- package/dist/redux/reducers/inputs/addMultipleOccurency.test.d.ts +1 -0
- package/dist/redux/reducers/inputs/addMultipleOccurency.test.js +101 -0
- package/dist/redux/reducers/inputs/deleteMultipleOccurency.test.d.ts +1 -0
- package/dist/redux/reducers/inputs/deleteMultipleOccurency.test.js +56 -0
- package/dist/redux/reducers/inputs.test.d.ts +1 -0
- package/dist/redux/reducers/inputs.test.js +171 -0
- package/dist/redux/reducers/references.js +0 -2
- package/dist/redux/reducers/user.test.d.ts +1 -0
- package/dist/redux/reducers/user.test.js +42 -0
- package/dist/redux/routerHistore.test.d.ts +1 -0
- package/dist/redux/routerHistore.test.js +15 -0
- package/dist/redux/sagas/fetchModel.test.d.ts +1 -0
- package/dist/redux/sagas/fetchModel.test.js +127 -0
- package/dist/redux/sagas/runner.test.d.ts +1 -0
- package/dist/redux/sagas/runner.test.js +10 -0
- package/dist/redux/sagas/saveData.test.d.ts +1 -0
- package/dist/redux/sagas/saveData.test.js +74 -0
- package/dist/redux/sagas/setDefaults.test.d.ts +1 -0
- package/dist/redux/sagas/setDefaults.test.js +73 -0
- package/dist/redux/selectors/app.test.d.ts +1 -0
- package/dist/redux/selectors/app.test.js +99 -0
- package/dist/redux/selectors/conditions.test.d.ts +1 -0
- package/dist/redux/selectors/conditions.test.js +70 -0
- package/dist/redux/selectors/inputs.d.ts +1 -1
- package/dist/redux/selectors/inputs.test.d.ts +1 -0
- package/dist/redux/selectors/inputs.test.js +44 -0
- package/dist/redux/selectors/references.test.d.ts +1 -0
- package/dist/redux/selectors/references.test.js +471 -0
- package/dist/redux/selectors/selectors.d.ts +4 -4
- package/dist/redux/selectors/selectors.test.d.ts +1 -0
- package/dist/redux/selectors/selectors.test.js +16 -0
- package/dist/redux/selectors/user.test.d.ts +1 -0
- package/dist/redux/selectors/user.test.js +29 -0
- package/dist/redux/store.d.ts +3 -5
- package/dist/redux/store.js +1 -2
- package/dist/redux/store.test.d.ts +1 -0
- package/dist/redux/store.test.js +16 -0
- package/dist/service/api.manager.d.ts +2 -2
- package/dist/service/autocomplete.manager.d.ts +3 -3
- package/dist/service/autocomplete.manager.js +3 -3
- package/dist/tests-misc/plugins/jestTestPlugin/after.js +1 -1
- package/dist/tests-misc/plugins/jestTestPlugin/before.js +1 -1
- package/dist/tests-misc/plugins/jestTestPlugin/title.js +1 -1
- package/dist/tests-misc/themes/jestTestTheme/components/EmailComponent.d.ts +1 -1
- package/dist/tests-misc/themes/jestTestTheme/components/EmailComponent.js +1 -1
- package/dist/tests-misc/themes/jestTestTheme/components/TermsheetComponent.d.ts +1 -1
- package/dist/tests-misc/themes/jestTestTheme/components/TermsheetComponent.js +1 -1
- package/dist/tests-misc/themes/jestTestTheme/components/WizardComponent.d.ts +1 -1
- package/dist/tests-misc/themes/jestTestTheme/components/WizardComponent.js +1 -1
- package/dist/types/Actions.type.d.ts +6 -70
- package/dist/types/Components.type.d.ts +2 -3
- package/dist/types/PluginConfig.type.d.ts +52 -18
- package/dist/types/State.type.d.ts +2 -2
- package/dist/types/config.type.d.ts +1 -1
- package/dist/types/getActions.type.d.ts +1 -1
- package/dist/types/getConnectors.type.d.ts +2 -2
- package/dist/types/getSelectors.type.d.ts +1 -1
- package/package.json +22 -45
- package/dist/WizardCore.d.ts +0 -29
- package/dist/WizardCore.js +0 -153
- package/dist/app.entry.d.ts +0 -2
- package/dist/app.entry.js +0 -1
- package/dist/routing/adapters/nextjs.adapter.d.ts +0 -3
- package/dist/routing/adapters/nextjs.adapter.js +0 -61
- package/dist/routing/adapters/reactRouter.adapter.d.ts +0 -2
- package/dist/routing/adapters/reactRouter.adapter.js +0 -16
- package/dist/routing/context.d.ts +0 -14
- package/dist/routing/context.js +0 -23
- package/dist/routing/index.d.ts +0 -4
- package/dist/routing/index.js +0 -4
- package/dist/routing/types.d.ts +0 -26
- package/dist/wizardcore.entry.d.ts +0 -3
- package/dist/wizardcore.entry.js +0 -2
- /package/dist/{routing/types.js → App.test.d.ts} +0 -0
package/dist/redux/store.js
CHANGED
|
@@ -28,7 +28,7 @@ let store;
|
|
|
28
28
|
export const createAppStore = (historyType = "browser") => {
|
|
29
29
|
if (store !== undefined) {
|
|
30
30
|
createHistory(historyType);
|
|
31
|
-
return
|
|
31
|
+
return;
|
|
32
32
|
}
|
|
33
33
|
const history = createHistory(historyType);
|
|
34
34
|
const wizardxReducers = combineReducers({
|
|
@@ -50,7 +50,6 @@ export const createAppStore = (historyType = "browser") => {
|
|
|
50
50
|
store = createStore(wizardxReducers, middlewares);
|
|
51
51
|
sagasRunner(sagaMiddleware);
|
|
52
52
|
subscribeListeners(store);
|
|
53
|
-
return store;
|
|
54
53
|
};
|
|
55
54
|
export const getStore = (throwIfDoesNotExist = true) => {
|
|
56
55
|
if (store === undefined && throwIfDoesNotExist)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createAppStore, getStore } from './store';
|
|
2
|
+
describe('Store Creation', () => {
|
|
3
|
+
it('Throws error when trying to get store before creation', () => {
|
|
4
|
+
expect(() => getStore()).toThrowError('Store not yet created');
|
|
5
|
+
});
|
|
6
|
+
it('It creates store', () => {
|
|
7
|
+
createAppStore();
|
|
8
|
+
const store = getStore();
|
|
9
|
+
return expect(store).toHaveProperty('getState');
|
|
10
|
+
});
|
|
11
|
+
it('It properly connects redux', () => {
|
|
12
|
+
createAppStore();
|
|
13
|
+
const state = getStore().getState();
|
|
14
|
+
return expect(state).toHaveProperty('router');
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -4,10 +4,10 @@ export declare const getWizardConfigArguments: (permalink: string, uniqidParam:
|
|
|
4
4
|
export declare const getModelInformationArguments: (modelUuid: string, queryParams: URLSearchParams) => (RequestInfo | RequestInit)[];
|
|
5
5
|
export declare const getFetchModelArguments: (permalink: string, uniqidParam: string, prefix: string, queryParams: URLSearchParams) => (RequestInfo | RequestInit)[];
|
|
6
6
|
export declare const getCreateInstanceArguments: (permalink: string, searchParams: string, modelVersion: string) => (RequestInfo | RequestInit)[];
|
|
7
|
-
export declare const getClientConfigArguments: (permalink?: string, uniqid?: string) => [RequestInfo, RequestInit?];
|
|
7
|
+
export declare const getClientConfigArguments: (permalink?: string | undefined, uniqid?: string | undefined) => [RequestInfo, RequestInit?];
|
|
8
8
|
export declare const checkInstanceModel: (uniqid: string) => [RequestInfo, RequestInit?];
|
|
9
9
|
export declare const getUserProfileArguments: () => [RequestInfo, RequestInit?];
|
|
10
|
-
export declare const updateInstanceArguments: (permalink: string, uniqid: string | undefined, ovc: OvcType, draft: number, additionalProperties?: Record<string, string | number>) => [RequestInfo, RequestInit?];
|
|
10
|
+
export declare const updateInstanceArguments: (permalink: string, uniqid: string | undefined, ovc: OvcType, draft: number, additionalProperties?: Record<string, string | number> | undefined) => [RequestInfo, RequestInit?];
|
|
11
11
|
export declare const updateProofModule: (uniqid: string) => [RequestInfo, RequestInit?];
|
|
12
12
|
export declare const getInpiActivities: () => [RequestInfo, RequestInit?];
|
|
13
13
|
export declare const getInpiCities: () => [RequestInfo, RequestInit?];
|
|
@@ -2,7 +2,7 @@ import type { AutocompleteDatasetType } from "@legalplace/models-v3-types";
|
|
|
2
2
|
export declare const fetchAutocompleteDataFromInputValue: ({ dataset, inputValue, attributes, signal, variableId, }: {
|
|
3
3
|
dataset: AutocompleteDatasetType;
|
|
4
4
|
inputValue: string;
|
|
5
|
-
attributes?: string[];
|
|
6
|
-
signal?: AbortSignal;
|
|
7
|
-
variableId?: string | number;
|
|
5
|
+
attributes?: string[] | undefined;
|
|
6
|
+
signal?: AbortSignal | undefined;
|
|
7
|
+
variableId?: string | number | undefined;
|
|
8
8
|
}) => Promise<Record<string, string | number | null | undefined>[] | null>;
|
|
@@ -24,8 +24,8 @@ import { DatasetTypeEnum } from "../types/autocomplete.type";
|
|
|
24
24
|
import { initializeActivities, searchInActivities, } from "../helpers/activitiesHelper";
|
|
25
25
|
import { autocompleteDatasetConfig, LegalStatusMapperConfig, } from "../constants/autocomplete";
|
|
26
26
|
import { handleDataGouvCitiesWithInpi } from "../helpers/autocomplete.helper";
|
|
27
|
-
export const fetchAutocompleteDataFromInputValue = (
|
|
28
|
-
var _b;
|
|
27
|
+
export const fetchAutocompleteDataFromInputValue = ({ dataset, inputValue, attributes = [], signal, variableId, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
|
+
var _a, _b;
|
|
29
29
|
try {
|
|
30
30
|
if (dataset === DatasetTypeEnum.DATAGOUV_CITIES_WITH_INPI) {
|
|
31
31
|
return handleDataGouvCitiesWithInpi({
|
|
@@ -58,7 +58,7 @@ export const fetchAutocompleteDataFromInputValue = (_a) => __awaiter(void 0, [_a
|
|
|
58
58
|
signal,
|
|
59
59
|
});
|
|
60
60
|
const result = yield Promise.race([searchPromise, errorTimeoutPromise]);
|
|
61
|
-
return (((_b = result === null ||
|
|
61
|
+
return (((_b = (_a = result) === null || _a === void 0 ? void 0 : _a.features) === null || _b === void 0 ? void 0 : _b.map((feature) => {
|
|
62
62
|
const properties = feature.properties || {};
|
|
63
63
|
const { postcode, city, citycode, street, housenumber } = properties || {};
|
|
64
64
|
if (dataset === DatasetTypeEnum.DATAGOUV_ADDRESSES_V2) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const After = () => _jsx("div", { className: "title", children: "Hello world - AFTER" });
|
|
2
|
+
const After = () => _jsx("div", Object.assign({ className: "title" }, { children: "Hello world - AFTER" }), void 0);
|
|
3
3
|
export default After;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const Before = () => (_jsxs("h1", { children: ["Hello", _jsx("b", { children: "world" }), "!!!"] }));
|
|
2
|
+
const Before = () => (_jsxs("h1", { children: ["Hello", _jsx("b", { children: "world" }, void 0), "!!!"] }, void 0));
|
|
3
3
|
export default Before;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
const Title = (props) => {
|
|
3
3
|
const { children } = props;
|
|
4
|
-
return _jsx("h1", { style: { color: "red" }, children: children });
|
|
4
|
+
return _jsx("h1", Object.assign({ style: { color: "red" } }, { children: children }), void 0);
|
|
5
5
|
};
|
|
6
6
|
export default Title;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const EmailComponent: () =>
|
|
1
|
+
declare const EmailComponent: () => JSX.Element;
|
|
2
2
|
export default EmailComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const EmailComponent = () => _jsx("h1", { children: "Wizard test theme, EmailComponent" });
|
|
2
|
+
const EmailComponent = () => _jsx("h1", { children: "Wizard test theme, EmailComponent" }, void 0);
|
|
3
3
|
export default EmailComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const TermsheetComponent: () =>
|
|
1
|
+
declare const TermsheetComponent: () => JSX.Element;
|
|
2
2
|
export default TermsheetComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const TermsheetComponent = () => _jsx("h1", { children: "Wizard test theme, TermsheetComponent" });
|
|
2
|
+
const TermsheetComponent = () => _jsx("h1", { children: "Wizard test theme, TermsheetComponent" }, void 0);
|
|
3
3
|
export default TermsheetComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const WizardComponent: () =>
|
|
1
|
+
declare const WizardComponent: () => JSX.Element;
|
|
2
2
|
export default WizardComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const WizardComponent = () => _jsx("h1", { children: "Wizard test theme, WizardComponent" });
|
|
2
|
+
const WizardComponent = () => _jsx("h1", { children: "Wizard test theme, WizardComponent" }, void 0);
|
|
3
3
|
export default WizardComponent;
|
|
@@ -15,53 +15,41 @@ 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"> {
|
|
18
|
-
[key: string]: any;
|
|
19
18
|
type: typeof INIT_META;
|
|
20
19
|
}
|
|
21
20
|
interface setModelUuid extends Pick<StateType.App.Meta, "modelUuid"> {
|
|
22
|
-
[key: string]: any;
|
|
23
21
|
type: typeof SET_MODEL_UUID;
|
|
24
22
|
}
|
|
25
23
|
interface fetchModelSucceeded {
|
|
26
|
-
[key: string]: any;
|
|
27
24
|
type: typeof FETCH_MODEL_SUCCEEDED;
|
|
28
25
|
}
|
|
29
26
|
interface fetchModelNonBlocking {
|
|
30
|
-
[key: string]: any;
|
|
31
27
|
type: typeof FETCH_MODEL_NONBLOCKING;
|
|
32
28
|
}
|
|
33
29
|
interface fetchModelUnhealthy extends Pick<StateType.App.Meta, "report"> {
|
|
34
|
-
[key: string]: any;
|
|
35
30
|
type: typeof FETCH_MODEL_UNHEALTHY;
|
|
36
31
|
}
|
|
37
32
|
interface fetchModelUserLocked extends Pick<StateType.App.Meta, "report"> {
|
|
38
|
-
[key: string]: any;
|
|
39
33
|
type: typeof FETCH_MODEL_USER_LOCKED;
|
|
40
34
|
}
|
|
41
35
|
interface fetchModelFailed {
|
|
42
|
-
[key: string]: any;
|
|
43
36
|
type: typeof FETCH_MODEL_FAILED;
|
|
44
37
|
}
|
|
45
38
|
interface initInstance extends StateType.App.Instance {
|
|
46
|
-
[key: string]: any;
|
|
47
39
|
type: typeof INIT_INSTANCE;
|
|
48
40
|
}
|
|
49
41
|
interface updateInstance extends Partial<StateType.App.Instance> {
|
|
50
|
-
[key: string]: any;
|
|
51
42
|
type: typeof UPDATE_INSTANCE;
|
|
52
43
|
}
|
|
53
44
|
interface updateInstancePaid {
|
|
54
|
-
[key: string]: any;
|
|
55
45
|
type: typeof UPDATE_INSTANCE_PAID;
|
|
56
46
|
isPaid: boolean;
|
|
57
47
|
}
|
|
58
48
|
interface setDataStatus {
|
|
59
|
-
[key: string]: any;
|
|
60
49
|
type: typeof SET_DATA_STATUS;
|
|
61
50
|
dataStatus: "saved" | "unsaved" | "saving" | "failed";
|
|
62
51
|
}
|
|
63
52
|
interface setFetchStatus {
|
|
64
|
-
[key: string]: any;
|
|
65
53
|
type: typeof SET_FETCH_STATUS;
|
|
66
54
|
fetchStatus: "waiting" | "succeeded" | "failed" | "unhealthy" | "userLocked";
|
|
67
55
|
}
|
|
@@ -69,76 +57,61 @@ export declare namespace ActionsType {
|
|
|
69
57
|
type AppPaginationWithoutIsLastPage = Omit<AppPaginationWithoutIsFirstPage, "isLastPage">;
|
|
70
58
|
type AppPaginationWithoutTotalPages = Omit<AppPaginationWithoutIsLastPage, "totalPages">;
|
|
71
59
|
interface initPagination extends AppPaginationWithoutTotalPages, StateType.App.Wizard {
|
|
72
|
-
[key: string]: any;
|
|
73
60
|
type: typeof INIT_PAGINATION;
|
|
74
61
|
}
|
|
75
62
|
interface goPage {
|
|
76
|
-
[key: string]: any;
|
|
77
63
|
type: typeof GO_PAGE;
|
|
78
64
|
currentPage: number;
|
|
79
65
|
pushHistory: boolean;
|
|
80
66
|
}
|
|
81
67
|
interface goNextPage {
|
|
82
|
-
[key: string]: any;
|
|
83
68
|
type: typeof GO_NEXT_PAGE;
|
|
84
69
|
}
|
|
85
70
|
interface goPreviousPage {
|
|
86
|
-
[key: string]: any;
|
|
87
71
|
type: typeof GO_PREVIOUS_PAGE;
|
|
88
72
|
}
|
|
89
73
|
interface updateAvailableSections {
|
|
90
|
-
[key: string]: any;
|
|
91
74
|
type: typeof UPDATE_AVAILABLE_SECTIONS;
|
|
92
75
|
availableSections: StateType.App.Wizard["availableSections"];
|
|
93
76
|
}
|
|
94
77
|
interface updateAvailableAppStates {
|
|
95
|
-
[key: string]: any;
|
|
96
78
|
type: typeof UPDATE_AVAILABLE_APPSTATES;
|
|
97
79
|
availableAppStates: StateType.App.Pagination["availableAppStates"];
|
|
98
80
|
ingorePluginAppStateReset: boolean;
|
|
99
81
|
}
|
|
100
82
|
interface updateCurrentAppState {
|
|
101
|
-
[key: string]: any;
|
|
102
83
|
type: typeof UPDATE_CURRENT_APPSTATE;
|
|
103
84
|
currentAppState: string;
|
|
104
85
|
}
|
|
105
86
|
interface updateCurrentSectionId {
|
|
106
|
-
[key: string]: any;
|
|
107
87
|
type: typeof UPDATE_CURRENT_SECTION_ID;
|
|
108
88
|
currentSectionId: number;
|
|
109
89
|
}
|
|
110
90
|
interface initCustomizationMeta {
|
|
111
|
-
[key: string]: any;
|
|
112
91
|
type: typeof INIT_CUSTOMIZATION_META;
|
|
113
92
|
meta: Exclude<ModelV3["customization"]["meta"], undefined>;
|
|
114
93
|
}
|
|
115
94
|
interface initCustomizationAutoDefault {
|
|
116
|
-
[key: string]: any;
|
|
117
95
|
type: typeof INIT_CUSTOMIZATION_AUTO_DEFAULT;
|
|
118
96
|
disableAutoDefault: StateType.App.Customization["disableAutoDefault"];
|
|
119
97
|
}
|
|
120
98
|
interface resetState {
|
|
121
|
-
[key: string]: any;
|
|
122
99
|
type: typeof RESET_STATE;
|
|
123
100
|
}
|
|
124
101
|
}
|
|
125
102
|
namespace User {
|
|
126
103
|
interface initUser extends Omit<StateType.User, "status"> {
|
|
127
|
-
[key: string]: any;
|
|
128
104
|
type: typeof INIT_USER;
|
|
129
105
|
}
|
|
130
106
|
interface setUserStatus {
|
|
131
|
-
[key: string]: any;
|
|
132
107
|
type: typeof SET_USER_STATUS;
|
|
133
108
|
status: StateType.User["status"];
|
|
134
109
|
}
|
|
135
110
|
interface setUserValidToken {
|
|
136
|
-
[key: string]: any;
|
|
137
111
|
type: typeof SET_USER_VALID_TOKEN;
|
|
138
112
|
validToken: StateType.User["validToken"];
|
|
139
113
|
}
|
|
140
114
|
interface setUserEmail {
|
|
141
|
-
[key: string]: any;
|
|
142
115
|
type: typeof SET_USER_EMAIL;
|
|
143
116
|
email: StateType.User["email"];
|
|
144
117
|
disableRedirect?: boolean;
|
|
@@ -146,17 +119,14 @@ export declare namespace ActionsType {
|
|
|
146
119
|
inBackground?: boolean;
|
|
147
120
|
}
|
|
148
121
|
interface setUserEmailSucceeded {
|
|
149
|
-
[key: string]: any;
|
|
150
122
|
type: typeof SET_USER_EMAIL_SUCCEEDED;
|
|
151
123
|
}
|
|
152
124
|
}
|
|
153
125
|
namespace References {
|
|
154
126
|
interface initReferences extends StateType.References {
|
|
155
|
-
[key: string]: any;
|
|
156
127
|
type: typeof INIT_REFERENCES;
|
|
157
128
|
}
|
|
158
129
|
interface VariableUpdatableMeta extends Omit<VariableV3, "id" | "label" | "step" | "type" | "prefillings" | "conditions" | "validator"> {
|
|
159
|
-
[key: string]: any;
|
|
160
130
|
label?: string;
|
|
161
131
|
step?: "*" | number[];
|
|
162
132
|
validator?: {
|
|
@@ -164,14 +134,12 @@ export declare namespace ActionsType {
|
|
|
164
134
|
};
|
|
165
135
|
}
|
|
166
136
|
interface updateVariableMeta {
|
|
167
|
-
[key: string]: any;
|
|
168
137
|
type: typeof UPDATE_VARIABLE_META;
|
|
169
138
|
id: number;
|
|
170
139
|
meta: VariableUpdatableMeta;
|
|
171
140
|
index?: number;
|
|
172
141
|
}
|
|
173
142
|
interface setDisabledVariable {
|
|
174
|
-
[key: string]: any;
|
|
175
143
|
type: typeof SET_DISABLED_VARIABLE;
|
|
176
144
|
id: number;
|
|
177
145
|
disabled: boolean;
|
|
@@ -179,7 +147,6 @@ export declare namespace ActionsType {
|
|
|
179
147
|
index: number;
|
|
180
148
|
}
|
|
181
149
|
interface OptionUpdatableMeta extends Omit<OptionV3["meta"], "id" | "label" | "step" | "type" | "conditions" | "repeatOption" | "validator" | "multiple"> {
|
|
182
|
-
[key: string]: any;
|
|
183
150
|
label?: string;
|
|
184
151
|
step?: "*" | number[];
|
|
185
152
|
validator?: {
|
|
@@ -192,7 +159,6 @@ export declare namespace ActionsType {
|
|
|
192
159
|
};
|
|
193
160
|
}
|
|
194
161
|
interface updateOptionMeta {
|
|
195
|
-
[key: string]: any;
|
|
196
162
|
type: typeof UPDATE_OPTION_META;
|
|
197
163
|
id: number;
|
|
198
164
|
meta: OptionUpdatableMeta;
|
|
@@ -200,39 +166,33 @@ export declare namespace ActionsType {
|
|
|
200
166
|
}
|
|
201
167
|
namespace Inputs {
|
|
202
168
|
interface initInputs {
|
|
203
|
-
[key: string]: any;
|
|
204
169
|
type: typeof INIT_INPUTS;
|
|
205
170
|
references?: StateType.References;
|
|
206
171
|
inputs: StateType.Inputs;
|
|
207
172
|
}
|
|
208
173
|
interface initOption {
|
|
209
|
-
[key: string]: any;
|
|
210
174
|
type: typeof INIT_OPTION;
|
|
211
175
|
id: number;
|
|
212
176
|
values: boolean[];
|
|
213
177
|
}
|
|
214
178
|
interface updateOptionInput {
|
|
215
|
-
[key: string]: any;
|
|
216
179
|
type: typeof UPDATE_OPTION_INPUT;
|
|
217
180
|
id: number;
|
|
218
181
|
value: boolean;
|
|
219
182
|
index: number;
|
|
220
183
|
}
|
|
221
184
|
interface initVariable {
|
|
222
|
-
[key: string]: any;
|
|
223
185
|
type: typeof INIT_VARIABLE;
|
|
224
186
|
id: number;
|
|
225
187
|
values: (string | number)[];
|
|
226
188
|
}
|
|
227
189
|
interface updateVariableInput {
|
|
228
|
-
[key: string]: any;
|
|
229
190
|
type: typeof UPDATE_VARIABLE_INPUT;
|
|
230
191
|
id: number;
|
|
231
192
|
value: string | number;
|
|
232
193
|
index: number;
|
|
233
194
|
}
|
|
234
195
|
interface addMultipleOccurency {
|
|
235
|
-
[key: string]: any;
|
|
236
196
|
type: typeof ADD_MULTIPLE_OCCURENCY;
|
|
237
197
|
id: number;
|
|
238
198
|
optionRelations?: StateType.References.Relations.Options;
|
|
@@ -240,7 +200,6 @@ export declare namespace ActionsType {
|
|
|
240
200
|
prefillersVariables?: Record<string, StateType.References.Variables.Variable["prefillings"]>;
|
|
241
201
|
}
|
|
242
202
|
interface deleteMultipleOccurency {
|
|
243
|
-
[key: string]: any;
|
|
244
203
|
type: typeof DELETE_MULTIPLE_OCCURENCY;
|
|
245
204
|
id: number;
|
|
246
205
|
index: number;
|
|
@@ -249,37 +208,31 @@ export declare namespace ActionsType {
|
|
|
249
208
|
}
|
|
250
209
|
namespace Mandatories {
|
|
251
210
|
interface setMandatoryIgnore {
|
|
252
|
-
[key: string]: any;
|
|
253
211
|
type: typeof SET_MANDATORY_IGNORE;
|
|
254
212
|
value: boolean;
|
|
255
213
|
}
|
|
256
214
|
interface initMandatoryOption {
|
|
257
|
-
[key: string]: any;
|
|
258
215
|
type: typeof INIT_MANDATORY_OPTION;
|
|
259
216
|
id: number;
|
|
260
217
|
value: boolean[];
|
|
261
218
|
}
|
|
262
219
|
interface initMandatoryVariable {
|
|
263
|
-
[key: string]: any;
|
|
264
220
|
type: typeof INIT_MANDATORY_VARIABLE;
|
|
265
221
|
id: number;
|
|
266
222
|
value: boolean[];
|
|
267
223
|
}
|
|
268
224
|
interface setMandatorySection {
|
|
269
|
-
[key: string]: any;
|
|
270
225
|
type: typeof SET_MANDATORY_SECTION;
|
|
271
226
|
id: number;
|
|
272
227
|
value: boolean;
|
|
273
228
|
}
|
|
274
229
|
interface setMandatoryOption {
|
|
275
|
-
[key: string]: any;
|
|
276
230
|
type: typeof SET_MANDATORY_OPTION;
|
|
277
231
|
id: number;
|
|
278
232
|
index: number;
|
|
279
233
|
value: boolean;
|
|
280
234
|
}
|
|
281
235
|
interface setMandatoryVariable {
|
|
282
|
-
[key: string]: any;
|
|
283
236
|
type: typeof SET_MANDATORY_VARIABLE;
|
|
284
237
|
id: number;
|
|
285
238
|
index: number;
|
|
@@ -288,52 +241,44 @@ export declare namespace ActionsType {
|
|
|
288
241
|
}
|
|
289
242
|
namespace Conditions {
|
|
290
243
|
interface initConditions extends StateType.Conditions {
|
|
291
|
-
[key: string]: any;
|
|
292
244
|
type: typeof INIT_CONDITIONS;
|
|
293
245
|
}
|
|
294
246
|
interface updateOptionCondition {
|
|
295
|
-
[key: string]: any;
|
|
296
247
|
type: typeof UPDATE_OPTION_CONDITION;
|
|
297
248
|
id: number;
|
|
298
249
|
index: number;
|
|
299
250
|
value: boolean;
|
|
300
251
|
}
|
|
301
252
|
interface updateVariableCondition {
|
|
302
|
-
[key: string]: any;
|
|
303
253
|
type: typeof UPDATE_VARIABLE_CONDITION;
|
|
304
254
|
id: number;
|
|
305
255
|
index: number;
|
|
306
256
|
value: boolean;
|
|
307
257
|
}
|
|
308
258
|
interface updateDocumentCondition {
|
|
309
|
-
[key: string]: any;
|
|
310
259
|
type: typeof UPDATE_DOCUMENT_CONDITION;
|
|
311
260
|
name: string;
|
|
312
261
|
value: boolean;
|
|
313
262
|
}
|
|
314
263
|
interface updateSectionCondition {
|
|
315
|
-
[key: string]: any;
|
|
316
264
|
type: typeof UPDATE_SECTION_CONDITION;
|
|
317
265
|
document: string;
|
|
318
266
|
id: number;
|
|
319
267
|
value: boolean;
|
|
320
268
|
}
|
|
321
269
|
interface updatePrefillerCondition {
|
|
322
|
-
[key: string]: any;
|
|
323
270
|
type: typeof UPDATE_PREFILLER_CONDITION;
|
|
324
271
|
id: number;
|
|
325
272
|
index: number;
|
|
326
273
|
value: boolean[];
|
|
327
274
|
}
|
|
328
275
|
interface updateOptionValidatorCondition {
|
|
329
|
-
[key: string]: any;
|
|
330
276
|
type: typeof UPDATE_OPTION_VALIDATOR_CONDITION;
|
|
331
277
|
id: number;
|
|
332
278
|
index: number;
|
|
333
279
|
value: boolean;
|
|
334
280
|
}
|
|
335
281
|
interface updateVariableValidatorCondition {
|
|
336
|
-
[key: string]: any;
|
|
337
282
|
type: typeof UPDATE_VARIABLE_VALIDATOR_CONDITION;
|
|
338
283
|
id: number;
|
|
339
284
|
index: number;
|
|
@@ -343,13 +288,11 @@ export declare namespace ActionsType {
|
|
|
343
288
|
namespace Sagas {
|
|
344
289
|
namespace Model {
|
|
345
290
|
interface fetchModelPrerequisites {
|
|
346
|
-
[key: string]: any;
|
|
347
291
|
type: typeof FETCH_MODEL_PREREQUISITES;
|
|
348
292
|
permalink: string;
|
|
349
293
|
prefix: string;
|
|
350
294
|
}
|
|
351
295
|
interface fetchModel {
|
|
352
|
-
[key: string]: any;
|
|
353
296
|
type: typeof FETCH_MODEL;
|
|
354
297
|
permalink: string;
|
|
355
298
|
prefix: string;
|
|
@@ -369,7 +312,6 @@ export declare namespace ActionsType {
|
|
|
369
312
|
}
|
|
370
313
|
namespace Data {
|
|
371
314
|
interface saveData {
|
|
372
|
-
[key: string]: any;
|
|
373
315
|
type: typeof SAVE_DATA;
|
|
374
316
|
confirmAnswer?: boolean;
|
|
375
317
|
redirect: boolean;
|
|
@@ -381,32 +323,26 @@ export declare namespace ActionsType {
|
|
|
381
323
|
}
|
|
382
324
|
namespace SmartScript {
|
|
383
325
|
interface enableSmartScript {
|
|
384
|
-
[key: string]: any;
|
|
385
326
|
type: typeof ENABLE_SMARTSCRIPT;
|
|
386
327
|
}
|
|
387
328
|
interface initDataSmartscript {
|
|
388
|
-
[key: string]: any;
|
|
389
329
|
type: typeof INIT_DATA_SMARTSCRIPT;
|
|
390
330
|
data?: object;
|
|
391
331
|
}
|
|
392
332
|
interface requestinitDataSmartscript {
|
|
393
|
-
[key: string]: any;
|
|
394
333
|
type: typeof REQUEST_INIT_DATA_SMARTSCRIPT;
|
|
395
334
|
}
|
|
396
335
|
interface initSmartscriptTriggers {
|
|
397
|
-
[key: string]: any;
|
|
398
336
|
type: typeof INIT_SMARTSCRIPT_TRIGGERS;
|
|
399
337
|
triggers: StateType.SmartScript["triggers"];
|
|
400
338
|
}
|
|
401
339
|
interface updateSmartscriptOptionHidden {
|
|
402
|
-
[key: string]: any;
|
|
403
340
|
type: typeof UPDATE_SMARTSCRIPT_OPTION_HIDDEN;
|
|
404
341
|
id: number;
|
|
405
342
|
index: number;
|
|
406
343
|
hide: boolean;
|
|
407
344
|
}
|
|
408
345
|
interface updateSmartscriptVariableHidden {
|
|
409
|
-
[key: string]: any;
|
|
410
346
|
type: typeof UPDATE_SMARTSCRIPT_VARIABLE_HIDDEN;
|
|
411
347
|
id: number;
|
|
412
348
|
index: number;
|
|
@@ -414,9 +350,9 @@ export declare namespace ActionsType {
|
|
|
414
350
|
}
|
|
415
351
|
}
|
|
416
352
|
}
|
|
417
|
-
export type ConditionsActions = ActionsType.Conditions.initConditions | ActionsType.Conditions.updateOptionCondition | ActionsType.Conditions.updateVariableCondition | ActionsType.Conditions.updateSectionCondition | ActionsType.Conditions.updateVariableValidatorCondition | ActionsType.Conditions.updatePrefillerCondition | ActionsType.Conditions.updateOptionValidatorCondition | ActionsType.App.resetState;
|
|
418
|
-
export type UserActions = ActionsType.User.initUser | ActionsType.User.setUserStatus | ActionsType.App.resetState;
|
|
419
|
-
export type ReferencesActions = ActionsType.References.initReferences | ActionsType.References.updateOptionMeta | ActionsType.References.updateVariableMeta | ActionsType.References.setDisabledVariable | ActionsType.App.resetState;
|
|
420
|
-
export type InputsActions = ActionsType.Inputs.initVariable | ActionsType.Inputs.updateVariableInput | ActionsType.Inputs.initOption | ActionsType.Inputs.updateOptionInput | ActionsType.App.resetState;
|
|
421
|
-
export type MandatoriesActions = ActionsType.Mandatories.initMandatoryOption | ActionsType.Mandatories.initMandatoryVariable | ActionsType.Mandatories.setMandatoryIgnore | ActionsType.Mandatories.setMandatorySection | ActionsType.Mandatories.setMandatoryOption | ActionsType.Mandatories.setMandatoryVariable | ActionsType.App.resetState;
|
|
422
|
-
export type SmartScriptActions = ActionsType.SmartScript.enableSmartScript | ActionsType.SmartScript.initSmartscriptTriggers | ActionsType.App.resetState;
|
|
353
|
+
export declare type ConditionsActions = ActionsType.Conditions.initConditions | ActionsType.Conditions.updateOptionCondition | ActionsType.Conditions.updateVariableCondition | ActionsType.Conditions.updateSectionCondition | ActionsType.Conditions.updateVariableValidatorCondition | ActionsType.Conditions.updatePrefillerCondition | ActionsType.Conditions.updateOptionValidatorCondition | ActionsType.App.resetState;
|
|
354
|
+
export declare type UserActions = ActionsType.User.initUser | ActionsType.User.setUserStatus | ActionsType.App.resetState;
|
|
355
|
+
export declare type ReferencesActions = ActionsType.References.initReferences | ActionsType.References.updateOptionMeta | ActionsType.References.updateVariableMeta | ActionsType.References.setDisabledVariable | ActionsType.App.resetState;
|
|
356
|
+
export declare type InputsActions = ActionsType.Inputs.initVariable | ActionsType.Inputs.updateVariableInput | ActionsType.Inputs.initOption | ActionsType.Inputs.updateOptionInput | ActionsType.App.resetState;
|
|
357
|
+
export declare type MandatoriesActions = ActionsType.Mandatories.initMandatoryOption | ActionsType.Mandatories.initMandatoryVariable | ActionsType.Mandatories.setMandatoryIgnore | ActionsType.Mandatories.setMandatorySection | ActionsType.Mandatories.setMandatoryOption | ActionsType.Mandatories.setMandatoryVariable | ActionsType.App.resetState;
|
|
358
|
+
export declare type SmartScriptActions = ActionsType.SmartScript.enableSmartScript | ActionsType.SmartScript.initSmartscriptTriggers | ActionsType.App.resetState;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import type { OptionV3, VariableV3 } from "@legalplace/models-v3-types";
|
|
3
2
|
import type { TermsheetRow } from "./Termsheet.type";
|
|
4
3
|
export interface ProgressPropsType {
|
|
@@ -20,7 +19,7 @@ export interface PaginationPropsFromDispatch {
|
|
|
20
19
|
goNextPage: () => void;
|
|
21
20
|
goPreviousPage: () => void;
|
|
22
21
|
}
|
|
23
|
-
export type PaginationPropsType = PaginationPropsFromState & PaginationPropsFromDispatch;
|
|
22
|
+
export declare type PaginationPropsType = PaginationPropsFromState & PaginationPropsFromDispatch;
|
|
24
23
|
export interface DocumentTitlePropsType {
|
|
25
24
|
title: string;
|
|
26
25
|
}
|
|
@@ -61,7 +60,7 @@ export interface OptionPropsFromDispatch {
|
|
|
61
60
|
}
|
|
62
61
|
export interface OptionPropsType extends OptionPropsFromState, OptionPropsFromDispatch {
|
|
63
62
|
deleteOccurency?: (() => void) | false;
|
|
64
|
-
addOccurency?:
|
|
63
|
+
addOccurency?: JSX.Element;
|
|
65
64
|
}
|
|
66
65
|
export interface VariablePropsFromState {
|
|
67
66
|
id: number;
|
|
@@ -1,23 +1,57 @@
|
|
|
1
1
|
import type { LoadableComponent } from "@loadable/component";
|
|
2
|
-
import type
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { AnyAction, CombinedState, Reducer } from "redux";
|
|
3
4
|
import type { ActionsLibraryType } from "./getActions.type";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export interface IPluginConfig {
|
|
6
|
+
componentsHooks?: IPluginConfigComponentsHooks;
|
|
7
|
+
redux?: IPluginConfigRedux;
|
|
8
|
+
pagination?: IPluginConfigPagination;
|
|
9
|
+
requires?: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface IPluginConfigComponentsHooks {
|
|
12
|
+
replace?: IPluginConfigComponentsHooksList;
|
|
13
|
+
before?: IPluginConfigComponentsHooksList;
|
|
14
|
+
after?: IPluginConfigComponentsHooksList;
|
|
15
|
+
}
|
|
16
|
+
export interface IPluginConfigComponentsHooksList {
|
|
17
|
+
[key: string]: React.LazyExoticComponent<React.ComponentType<any>> | LoadableComponent<React.ComponentType<any>> | React.ComponentType<any>;
|
|
18
|
+
}
|
|
19
|
+
export interface IPluginComponentHookConfig {
|
|
20
|
+
[key: string]: React.ComponentType<any> | Promise<any>;
|
|
21
|
+
}
|
|
22
|
+
export declare type InferAction<T extends (...args: any) => {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
type: any;
|
|
25
|
+
}> = T extends (...args: any) => infer P ? P : never;
|
|
26
|
+
export declare type InferActionType<T extends (...args: any) => {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
type: any;
|
|
29
|
+
}> = T extends (...args: any) => {
|
|
30
|
+
type: infer P;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
} ? P : never;
|
|
33
|
+
export interface IPluginConfigRedux {
|
|
34
|
+
watchers?: IPluginConfigReduxWatchers;
|
|
35
|
+
overrides?: IPluginConfigReduxOverrides;
|
|
36
|
+
reducer?: IPluginConfigReduxReducer;
|
|
37
|
+
}
|
|
38
|
+
export declare type IPluginConfigReduxWatchers = {
|
|
39
|
+
[I in keyof ActionsLibraryType as InferActionType<ActionsLibraryType[I]>]?: (action: InferAction<ActionsLibraryType[I]>) => void;
|
|
14
40
|
};
|
|
15
|
-
export type
|
|
16
|
-
|
|
17
|
-
sagas: IPluginConfigReduxSaga[];
|
|
18
|
-
stateKey: K;
|
|
41
|
+
export declare type IPluginConfigReduxOverrides = {
|
|
42
|
+
[I in keyof ActionsLibraryType as InferActionType<ActionsLibraryType[I]>]?: (action: InferAction<ActionsLibraryType[I]>) => InferAction<ActionsLibraryType[I]>;
|
|
19
43
|
};
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
44
|
+
export declare type IPluginConfigReduxReducer<T extends Record<string, any> = {}> = Reducer<CombinedState<T>, AnyAction>;
|
|
45
|
+
export interface IPluginConfigPagination {
|
|
46
|
+
alterAppStates?: (currentAppStates: string[]) => string[];
|
|
47
|
+
appstates?: IPluginConfigPaginationAppState[];
|
|
48
|
+
routes?: IPluginConfigPaginationRoute[];
|
|
49
|
+
}
|
|
50
|
+
export interface IPluginConfigPaginationAppState {
|
|
51
|
+
page?: string;
|
|
52
|
+
component?: React.LazyExoticComponent<React.ComponentType<any>> | LoadableComponent<React.ComponentType<any>> | React.ComponentType<any>;
|
|
53
|
+
}
|
|
54
|
+
export interface IPluginConfigPaginationRoute {
|
|
55
|
+
path?: string;
|
|
56
|
+
component?: React.LazyExoticComponent<React.ComponentType<any>> | LoadableComponent<React.ComponentType<any>> | React.ComponentType<any>;
|
|
23
57
|
}
|
|
@@ -2,7 +2,7 @@ import type { OptionV3, VariableV3, SectionV3, ConditionV3, ModelV3 } from "@leg
|
|
|
2
2
|
import type { Types } from "@legalplace/referencesparser";
|
|
3
3
|
import type { HealthCheckReport } from "@legalplace/model-healthcheck/dist/libs/HealthCheck.type";
|
|
4
4
|
import type { ContractMeta } from "@legalplace/typeorm-entities";
|
|
5
|
-
export type MAPPED_CONDITIONS = {
|
|
5
|
+
export declare type MAPPED_CONDITIONS = {
|
|
6
6
|
dataMap: {
|
|
7
7
|
o: number[];
|
|
8
8
|
v: number[];
|
|
@@ -160,7 +160,7 @@ export interface AppCustomizationType {
|
|
|
160
160
|
disableAutoDefault?: boolean;
|
|
161
161
|
meta?: AppCustomizationMetaType;
|
|
162
162
|
}
|
|
163
|
-
export type ModelV3CustomizationMeta = Exclude<ModelV3["customization"]["meta"], undefined>;
|
|
163
|
+
export declare type ModelV3CustomizationMeta = Exclude<ModelV3["customization"]["meta"], undefined>;
|
|
164
164
|
export interface AppCustomizationMetaType extends ModelV3CustomizationMeta {
|
|
165
165
|
}
|
|
166
166
|
export interface AppInstanceType {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { actionsLibrary } from "../redux/actions/library";
|
|
2
|
-
export type ActionsLibraryType = typeof actionsLibrary;
|
|
2
|
+
export declare type ActionsLibraryType = typeof actionsLibrary;
|