@legalplace/wizardx-core 4.42.9 → 4.42.10-nightly.20251125120616
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 +376 -1
- package/dist/App.d.ts +1 -6
- package/dist/App.js +2 -7
- package/dist/Loader.d.ts +1 -1
- package/dist/Loader.js +1 -1
- package/dist/PluginLoader.d.ts +21 -36
- package/dist/PluginLoader.js +90 -227
- package/dist/Shimmer.d.ts +8 -11
- package/dist/Shimmer.js +4 -4
- package/dist/ThemeLoader.d.ts +8 -8
- package/dist/WizardCore.d.ts +29 -0
- package/dist/WizardCore.js +153 -0
- package/dist/app.entry.d.ts +2 -0
- package/dist/app.entry.js +1 -0
- package/dist/components/PluginRoute.d.ts +2 -2
- package/dist/components/PluginRoute.js +3 -4
- package/dist/components/SmartScript.d.ts +2 -6
- 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 +5 -7
- package/dist/componentsConnectors/connectBox.d.ts +4 -6
- package/dist/componentsConnectors/connectDocument.d.ts +4 -6
- package/dist/componentsConnectors/connectHeader.d.ts +4 -6
- package/dist/componentsConnectors/connectMetaTitle.d.ts +3 -7
- package/dist/componentsConnectors/connectOption.d.ts +5 -7
- package/dist/componentsConnectors/connectPagination.d.ts +5 -7
- package/dist/componentsConnectors/connectPreview.d.ts +3 -7
- package/dist/componentsConnectors/connectProgress.d.ts +4 -6
- package/dist/componentsConnectors/connectRootOption.d.ts +5 -7
- package/dist/componentsConnectors/connectSection.d.ts +4 -6
- package/dist/componentsConnectors/connectSummary.d.ts +5 -9
- package/dist/componentsConnectors/connectSummaryItem.d.ts +4 -6
- package/dist/componentsConnectors/connectTermsheet.js +1 -1
- package/dist/componentsConnectors/connectVariable.d.ts +6 -8
- package/dist/componentsConnectors/connectWizardWrapper.d.ts +4 -6
- package/dist/componentsConnectors/connector/componentConnector.d.ts +7 -10
- package/dist/componentsConnectors/connector/componentConnector.js +3 -3
- package/dist/componentsConnectors/library.d.ts +47 -81
- 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 +3 -13
- package/dist/helpers/autosave.helper.js +3 -70
- 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 +3 -0
- package/dist/index.js +3 -0
- 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/PathReader.d.ts +96 -1
- package/dist/libs/PathReader.js +1 -2
- package/dist/libs/SmartScriptStore.d.ts +6 -6
- package/dist/redux/actions/app.d.ts +1 -1
- package/dist/redux/actions/inputs.d.ts +1 -1
- package/dist/redux/actions/library.d.ts +15 -21
- package/dist/redux/actions/references.d.ts +2 -2
- package/dist/redux/actions/sagas/data.d.ts +1 -1
- package/dist/redux/actions/sagas/user.d.ts +1 -1
- package/dist/redux/listeners/subscriber.d.ts +1 -1
- package/dist/redux/middlewares/conditionsWatcherMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/mandatoriesWatcherMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/multiplesActionsMiddleware.d.ts +1 -1
- package/dist/redux/middlewares/paginationWatcherMiddleware.d.ts +2 -2
- package/dist/redux/middlewares/pluginsHookMiddleware.d.ts +1 -2
- package/dist/redux/middlewares/pluginsHookMiddleware.js +1 -7
- package/dist/redux/middlewares/prefillerWatcherMiddleware.d.ts +1 -1
- 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/pagination/updateAvailableAppStates.js +1 -2
- package/dist/redux/reducers/app.d.ts +6 -6
- package/dist/redux/reducers/references.js +2 -0
- package/dist/redux/selectors/inputs.d.ts +1 -1
- package/dist/redux/selectors/selectors.d.ts +4 -4
- package/dist/redux/store.d.ts +5 -3
- package/dist/redux/store.js +2 -1
- package/dist/routing/adapters/nextjs.adapter.d.ts +3 -0
- package/dist/routing/adapters/nextjs.adapter.js +61 -0
- package/dist/routing/adapters/reactRouter.adapter.d.ts +2 -0
- package/dist/routing/adapters/reactRouter.adapter.js +16 -0
- package/dist/routing/context.d.ts +14 -0
- package/dist/routing/context.js +23 -0
- package/dist/routing/index.d.ts +4 -0
- package/dist/routing/index.js +4 -0
- package/dist/routing/types.d.ts +26 -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 +70 -6
- package/dist/types/Components.type.d.ts +3 -2
- package/dist/types/PluginConfig.type.d.ts +18 -52
- 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/dist/wizardcore.entry.d.ts +3 -0
- package/dist/wizardcore.entry.js +2 -0
- package/package.json +40 -17
- package/dist/App.test.js +0 -37
- package/dist/PluginLoader.test.d.ts +0 -1
- package/dist/PluginLoader.test.js +0 -52
- package/dist/ThemeLoader.test.d.ts +0 -2
- package/dist/ThemeLoader.test.js +0 -65
- package/dist/components/View.test.d.ts +0 -2
- package/dist/components/View.test.js +0 -84
- package/dist/componentsConnectors/connectBox.test.d.ts +0 -1
- package/dist/componentsConnectors/connectBox.test.js +0 -218
- package/dist/componentsConnectors/connectDocument.test.d.ts +0 -1
- package/dist/componentsConnectors/connectDocument.test.js +0 -95
- package/dist/componentsConnectors/connectMetaTitle.test.d.ts +0 -1
- package/dist/componentsConnectors/connectMetaTitle.test.js +0 -32
- package/dist/config.test.d.ts +0 -1
- package/dist/config.test.js +0 -54
- package/dist/libs/NumAuto.test.d.ts +0 -1
- package/dist/libs/NumAuto.test.js +0 -43
- package/dist/libs/SectionValidity.test.d.ts +0 -1
- package/dist/libs/SectionValidity.test.js +0 -116
- package/dist/redux/actions/app.test.d.ts +0 -1
- package/dist/redux/actions/app.test.js +0 -90
- package/dist/redux/actions/conditions.test.d.ts +0 -1
- package/dist/redux/actions/conditions.test.js +0 -68
- package/dist/redux/actions/inputs.test.d.ts +0 -1
- package/dist/redux/actions/inputs.test.js +0 -53
- package/dist/redux/actions/references.test.d.ts +0 -1
- package/dist/redux/actions/references.test.js +0 -43
- package/dist/redux/actions/sagas/data.test.d.ts +0 -1
- package/dist/redux/actions/sagas/data.test.js +0 -11
- package/dist/redux/actions/sagas/model.test.d.ts +0 -1
- package/dist/redux/actions/sagas/model.test.js +0 -11
- package/dist/redux/actions/user.test.d.ts +0 -1
- package/dist/redux/actions/user.test.js +0 -16
- package/dist/redux/listeners/subscriber.test.d.ts +0 -1
- package/dist/redux/listeners/subscriber.test.js +0 -31
- package/dist/redux/middlewares/conditionsWatcherMiddleware.test.d.ts +0 -1
- package/dist/redux/middlewares/conditionsWatcherMiddleware.test.js +0 -330
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.test.d.ts +0 -1
- package/dist/redux/middlewares/evaluationsWatcherMiddleware.test.js +0 -242
- package/dist/redux/middlewares/multiplesActionsMiddleware.test.d.ts +0 -1
- package/dist/redux/middlewares/multiplesActionsMiddleware.test.js +0 -209
- package/dist/redux/middlewares/prefillerWatcherMiddleware.test.d.ts +0 -1
- package/dist/redux/middlewares/prefillerWatcherMiddleware.test.js +0 -84
- package/dist/redux/reducers/app/instance.test.d.ts +0 -1
- package/dist/redux/reducers/app/instance.test.js +0 -75
- package/dist/redux/reducers/app/meta.test.d.ts +0 -1
- package/dist/redux/reducers/app/meta.test.js +0 -70
- package/dist/redux/reducers/app/pagination.test.d.ts +0 -1
- package/dist/redux/reducers/app/pagination.test.js +0 -134
- package/dist/redux/reducers/app/wizard.test.d.ts +0 -1
- package/dist/redux/reducers/app/wizard.test.js +0 -53
- package/dist/redux/reducers/app.test.d.ts +0 -1
- package/dist/redux/reducers/app.test.js +0 -175
- package/dist/redux/reducers/conditions/addMultipleOccurency.test.d.ts +0 -1
- package/dist/redux/reducers/conditions/addMultipleOccurency.test.js +0 -108
- package/dist/redux/reducers/conditions/deleteMultipleOccurency.test.d.ts +0 -1
- package/dist/redux/reducers/conditions/deleteMultipleOccurency.test.js +0 -77
- package/dist/redux/reducers/conditions/updateDocumentConditions.test.d.ts +0 -1
- package/dist/redux/reducers/conditions/updateDocumentConditions.test.js +0 -35
- package/dist/redux/reducers/conditions/updateOptionValidatorCondition.test.d.ts +0 -1
- package/dist/redux/reducers/conditions/updateOptionValidatorCondition.test.js +0 -35
- package/dist/redux/reducers/conditions/updateVariableValidatorCondition.test.d.ts +0 -1
- package/dist/redux/reducers/conditions/updateVariableValidatorCondition.test.js +0 -35
- package/dist/redux/reducers/conditions.test.d.ts +0 -1
- package/dist/redux/reducers/conditions.test.js +0 -196
- package/dist/redux/reducers/inputs/addMultipleOccurency.test.d.ts +0 -1
- package/dist/redux/reducers/inputs/addMultipleOccurency.test.js +0 -101
- package/dist/redux/reducers/inputs/deleteMultipleOccurency.test.d.ts +0 -1
- package/dist/redux/reducers/inputs/deleteMultipleOccurency.test.js +0 -56
- package/dist/redux/reducers/inputs.test.d.ts +0 -1
- package/dist/redux/reducers/inputs.test.js +0 -171
- package/dist/redux/reducers/user.test.d.ts +0 -1
- package/dist/redux/reducers/user.test.js +0 -42
- package/dist/redux/routerHistore.test.d.ts +0 -1
- package/dist/redux/routerHistore.test.js +0 -15
- package/dist/redux/sagas/fetchModel.test.d.ts +0 -1
- package/dist/redux/sagas/fetchModel.test.js +0 -127
- package/dist/redux/sagas/runner.test.d.ts +0 -1
- package/dist/redux/sagas/runner.test.js +0 -10
- package/dist/redux/sagas/saveData.test.d.ts +0 -1
- package/dist/redux/sagas/saveData.test.js +0 -74
- package/dist/redux/sagas/setDefaults.test.d.ts +0 -1
- package/dist/redux/sagas/setDefaults.test.js +0 -73
- package/dist/redux/selectors/app.test.d.ts +0 -1
- package/dist/redux/selectors/app.test.js +0 -99
- package/dist/redux/selectors/conditions.test.d.ts +0 -1
- package/dist/redux/selectors/conditions.test.js +0 -70
- package/dist/redux/selectors/inputs.test.d.ts +0 -1
- package/dist/redux/selectors/inputs.test.js +0 -44
- package/dist/redux/selectors/references.test.d.ts +0 -1
- package/dist/redux/selectors/references.test.js +0 -471
- package/dist/redux/selectors/selectors.test.d.ts +0 -1
- package/dist/redux/selectors/selectors.test.js +0 -16
- package/dist/redux/selectors/user.test.d.ts +0 -1
- package/dist/redux/selectors/user.test.js +0 -29
- package/dist/redux/store.test.d.ts +0 -1
- package/dist/redux/store.test.js +0 -16
- /package/dist/{App.test.d.ts → routing/types.js} +0 -0
|
@@ -1,89 +1,55 @@
|
|
|
1
1
|
import { componentConnector } from "./connector/componentConnector";
|
|
2
2
|
export declare const connectorsLibrary: {
|
|
3
3
|
connectBox: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectBox").ConnectBoxOwnProps & import("./connectBox").ConnectBoxMapProps & AdditionnalProps>, connectorOptions?: {
|
|
4
|
-
memoizeStateToProps?: boolean
|
|
5
|
-
} | undefined) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
memoizeStateToProps?: boolean | undefined;
|
|
15
|
-
} | undefined) => ((props: any) => JSX.Element) | import("react-redux").ConnectedComponent<import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>, import("react-redux").Omit<any, never> & import("./connectHeader").ConnectHeaderOwnProps & AdditionnalProps_2 & {
|
|
16
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
connectMetaTitle: <AdditionnalProps_3 = {}>(Component: import("react").ComponentType<{
|
|
19
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
4
|
+
memoizeStateToProps?: boolean;
|
|
5
|
+
} | undefined) => any;
|
|
6
|
+
connectDocument: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectDocument").ConnectDocumentOwnProps & import("./connectDocument").ConnectDocumentMapProps & AdditionnalProps>, connectorOptions?: {
|
|
7
|
+
memoizeStateToProps?: boolean;
|
|
8
|
+
} | undefined) => any;
|
|
9
|
+
connectHeader: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectHeader").ConnectHeaderOwnProps & import("./connectHeader").ConnectHeaderMapProps & AdditionnalProps>, connectorOptions?: {
|
|
10
|
+
memoizeStateToProps?: boolean;
|
|
11
|
+
} | undefined) => any;
|
|
12
|
+
connectMetaTitle: <AdditionnalProps = {}>(Component: import("react").ComponentType<{
|
|
13
|
+
store?: import("redux").Store;
|
|
20
14
|
} & {
|
|
21
15
|
title: string;
|
|
22
|
-
} &
|
|
23
|
-
memoizeStateToProps?: boolean
|
|
24
|
-
} | undefined) =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
store?: import("redux").Store
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
store?: import("redux").Store
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
connectRootOption: <AdditionnalProps_8 = {}>(Component: import("react").ComponentType<import("./connectRootOption").ConnectRootOptionOwnProps & import("./connectRootOption").ConnectRootOptionMapProps & import("./connectRootOption").ConnectRootOptionDispatchProps & AdditionnalProps_8>, connectorOptions?: {
|
|
54
|
-
memoizeStateToProps?: boolean | undefined;
|
|
55
|
-
} | undefined) => ((props: any) => JSX.Element) | import("react-redux").ConnectedComponent<import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>, import("react-redux").Omit<any, never> & import("./connectRootOption").ConnectRootOptionOwnProps & AdditionnalProps_8 & {
|
|
56
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
57
|
-
}>;
|
|
58
|
-
connectSection: <AdditionnalProps_9 = {}>(Component: import("react").ComponentType<import("./connectSection").ConnectSectionOwnProps & import("./connectSection").ConnectSectionMapProps & AdditionnalProps_9>, connectorOptions?: {
|
|
59
|
-
memoizeStateToProps?: boolean | undefined;
|
|
60
|
-
} | undefined) => ((props: any) => JSX.Element) | import("react-redux").ConnectedComponent<import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>, import("react-redux").Omit<any, never> & import("./connectSection").ConnectSectionOwnProps & AdditionnalProps_9 & {
|
|
61
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
62
|
-
}>;
|
|
63
|
-
connectSummary: <AdditionnalProps_10 = {}>(Component: import("react").ComponentType<{
|
|
64
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
65
|
-
} & import("./connectSummary").ConnectSummaryMapProps & AdditionnalProps_10>, connectorOptions?: {
|
|
66
|
-
memoizeStateToProps?: boolean | undefined;
|
|
67
|
-
} | undefined) => ((props: any) => JSX.Element) | import("react-redux").ConnectedComponent<import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>, import("react-redux").Omit<any, never> & {
|
|
68
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
69
|
-
} & AdditionnalProps_10 & {
|
|
70
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
71
|
-
}>;
|
|
72
|
-
connectSummaryItem: <AdditionnalProps_11 = {}>(Component: import("react").ComponentType<import("./connectSummaryItem").ConnectSummaryItemOwnProps & import("./connectSummaryItem").ConnectSummaryItemMapProps & AdditionnalProps_11>, connectorOptions?: {
|
|
73
|
-
memoizeStateToProps?: boolean | undefined;
|
|
74
|
-
} | undefined) => ((props: any) => JSX.Element) | import("react-redux").ConnectedComponent<import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>, import("react-redux").Omit<any, never> & import("./connectSummaryItem").ConnectSummaryItemOwnProps & AdditionnalProps_11 & {
|
|
75
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
76
|
-
}>;
|
|
16
|
+
} & AdditionnalProps>, connectorOptions?: {
|
|
17
|
+
memoizeStateToProps?: boolean;
|
|
18
|
+
} | undefined) => any;
|
|
19
|
+
connectOption: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectOption").ConnectOptionOwnProps & import("./connectOption").ConnectOptionMapProps & import("./connectOption").ConnectOptionDispatchProps & AdditionnalProps>, connectorOptions?: {
|
|
20
|
+
memoizeStateToProps?: boolean;
|
|
21
|
+
} | undefined) => any;
|
|
22
|
+
connectPagination: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectPagination").ConnectPaginationMapProps & import("./connectPagination").ConnectPaginationDispatchProps & AdditionnalProps>, connectorOptions?: {
|
|
23
|
+
memoizeStateToProps?: boolean;
|
|
24
|
+
} | undefined) => any;
|
|
25
|
+
connectPreview: <AdditionnalProps = {}>(Component: import("react").ComponentType<{
|
|
26
|
+
store?: import("redux").Store;
|
|
27
|
+
} & AdditionnalProps>, connectorOptions?: {
|
|
28
|
+
memoizeStateToProps?: boolean;
|
|
29
|
+
} | undefined) => any;
|
|
30
|
+
connectProgress: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectProgress").ConnectPreviewOwnProps & import("./connectProgress").ConnectPreviewMapProps & AdditionnalProps>, connectorOptions?: {
|
|
31
|
+
memoizeStateToProps?: boolean;
|
|
32
|
+
} | undefined) => any;
|
|
33
|
+
connectRootOption: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectRootOption").ConnectRootOptionOwnProps & import("./connectRootOption").ConnectRootOptionMapProps & import("./connectRootOption").ConnectRootOptionDispatchProps & AdditionnalProps>, connectorOptions?: {
|
|
34
|
+
memoizeStateToProps?: boolean;
|
|
35
|
+
} | undefined) => any;
|
|
36
|
+
connectSection: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectSection").ConnectSectionOwnProps & import("./connectSection").ConnectSectionMapProps & AdditionnalProps>, connectorOptions?: {
|
|
37
|
+
memoizeStateToProps?: boolean;
|
|
38
|
+
} | undefined) => any;
|
|
39
|
+
connectSummary: <AdditionnalProps = {}>(Component: import("react").ComponentType<{
|
|
40
|
+
store?: import("redux").Store;
|
|
41
|
+
} & import("./connectSummary").ConnectSummaryMapProps & AdditionnalProps>, connectorOptions?: {
|
|
42
|
+
memoizeStateToProps?: boolean;
|
|
43
|
+
} | undefined) => any;
|
|
44
|
+
connectSummaryItem: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectSummaryItem").ConnectSummaryItemOwnProps & import("./connectSummaryItem").ConnectSummaryItemMapProps & AdditionnalProps>, connectorOptions?: {
|
|
45
|
+
memoizeStateToProps?: boolean;
|
|
46
|
+
} | undefined) => any;
|
|
77
47
|
connectTermsheet: import("redux").Func1<import("react").ComponentType<import("..").TermsheetPropsType>, import("react-redux").ConnectedComponent<import("react").FC<import("..").TermsheetPropsType>, import("react-redux").Omit<import("..").TermsheetPropsType, "termsheet" | "parseLink">>>;
|
|
78
|
-
connectVariable: <
|
|
79
|
-
memoizeStateToProps?: boolean
|
|
80
|
-
} | undefined) =>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
memoizeStateToProps?: boolean | undefined;
|
|
85
|
-
} | undefined) => ((props: any) => JSX.Element) | import("react-redux").ConnectedComponent<import("react").ComponentClass<any, any> | import("react").FunctionComponent<any>, import("react-redux").Omit<any, never> & AdditionnalProps_13 & {
|
|
86
|
-
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
87
|
-
}>;
|
|
48
|
+
connectVariable: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectVariable").ConnectVariableOwnProps & import("./connectVariable").ConnectVariableMapProps & import("./connectVariable").ConnectVariableDispatchProps & AdditionnalProps>, connectorOptions?: {
|
|
49
|
+
memoizeStateToProps?: boolean;
|
|
50
|
+
} | undefined) => any;
|
|
51
|
+
connectWizardWrapper: <AdditionnalProps = {}>(Component: import("react").ComponentType<import("./connectWizardWrapper").ConnectWizardWrapperDispatchProps & AdditionnalProps>, connectorOptions?: {
|
|
52
|
+
memoizeStateToProps?: boolean;
|
|
53
|
+
} | undefined) => any;
|
|
88
54
|
componentConnector: typeof componentConnector;
|
|
89
55
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IActivities } from "../types/autocomplete.type";
|
|
2
2
|
export declare const api: import("axios").AxiosInstance;
|
|
3
|
-
export declare const getAllActivities: (signal?: AbortSignal
|
|
4
|
-
export declare const initializeActivities: (signal?: AbortSignal
|
|
5
|
-
export declare const searchInActivities: (inputValue: string, limit: number, signal?: AbortSignal
|
|
3
|
+
export declare const getAllActivities: (signal?: AbortSignal) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
export declare const initializeActivities: (signal?: AbortSignal) => Promise<void>;
|
|
5
|
+
export declare const searchInActivities: (inputValue: string, limit: number, signal?: AbortSignal) => Promise<Omit<IActivities, "keywords">[]>;
|
|
@@ -2,6 +2,6 @@ import type { AutocompleteDatasetType } from "@legalplace/models-v3-types";
|
|
|
2
2
|
export declare const handleDataGouvCitiesWithInpi: ({ inputValue, dataset, signal, variableId, }: {
|
|
3
3
|
inputValue: string;
|
|
4
4
|
dataset: AutocompleteDatasetType;
|
|
5
|
-
signal?: AbortSignal
|
|
6
|
-
variableId?: string | number
|
|
5
|
+
signal?: AbortSignal;
|
|
6
|
+
variableId?: string | number;
|
|
7
7
|
}) => Promise<Record<string, string | number | null | undefined>[]>;
|
|
@@ -11,7 +11,7 @@ import { DataGouvApi } from "@legalplace/data-gouv";
|
|
|
11
11
|
import { autocompleteDatasetConfig } from "../constants/autocomplete";
|
|
12
12
|
import { DatasetTypeEnum } from "../types/autocomplete.type";
|
|
13
13
|
import { initializeInpiCities, mixDataGouvAndInpiCities, } from "./inpiCitiesHelper";
|
|
14
|
-
export const handleDataGouvCitiesWithInpi = (
|
|
14
|
+
export const handleDataGouvCitiesWithInpi = (_a) => __awaiter(void 0, [_a], void 0, function* ({ inputValue, dataset, signal, variableId, }) {
|
|
15
15
|
yield initializeInpiCities();
|
|
16
16
|
if (inputValue.length < 3) {
|
|
17
17
|
return [];
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { StateType } from "../types";
|
|
3
|
-
export declare const
|
|
4
|
-
id: number;
|
|
5
|
-
value: Readonly<string | number>;
|
|
6
|
-
condition: boolean | undefined;
|
|
7
|
-
}[];
|
|
8
|
-
export declare const getAutoCompleteParentVariableId: (variableId: number, index: number, type?: string | undefined) => number | undefined;
|
|
9
|
-
export declare const autoSave: (variablesData: {
|
|
10
|
-
variablesIds: number[];
|
|
11
|
-
updateValue: string;
|
|
12
|
-
index: number;
|
|
13
|
-
}[], store: Store<EmptyObject & StateType, AnyAction> & {
|
|
1
|
+
import type { Store } from "redux";
|
|
2
|
+
import type { StateType } from "../types/State.type";
|
|
3
|
+
export declare const autoSave: (variablesData: any[], store: Store<StateType, any> & {
|
|
14
4
|
dispatch: unknown;
|
|
15
5
|
}) => Promise<void>;
|
|
@@ -7,75 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import { fetchAutocompleteDataFromInputValue } from "../service";
|
|
12
|
-
import { cleanString } from "../libs";
|
|
13
|
-
export const getRelatedParentsByVariableId = (variableId, index) => {
|
|
14
|
-
const parentOptionId = selectVariableParents(variableId)[0];
|
|
15
|
-
const optionData = selectOptionReference(parentOptionId);
|
|
16
|
-
const variablesSection = selectVariablesReference(optionData === null || optionData === void 0 ? void 0 : optionData.variables);
|
|
17
|
-
return variablesSection
|
|
18
|
-
.filter((variableItem) => variableItem.type === "autocomplete" &&
|
|
19
|
-
Object.values((variableItem === null || variableItem === void 0 ? void 0 : variableItem.linkedVariables) || []).includes(variableId))
|
|
20
|
-
.map((parentVariable) => ({
|
|
21
|
-
id: parentVariable.id,
|
|
22
|
-
value: selectVariableInputByIndex(parentVariable.id, index) || "",
|
|
23
|
-
condition: selectVariableConditionValue(parentVariable.id, index),
|
|
24
|
-
}));
|
|
25
|
-
};
|
|
26
|
-
export const getAutoCompleteParentVariableId = (variableId, index, type) => {
|
|
27
|
-
if (type === "autocomplete") {
|
|
28
|
-
return variableId;
|
|
29
|
-
}
|
|
30
|
-
const autoCompleteParents = getRelatedParentsByVariableId(variableId, index);
|
|
31
|
-
if (autoCompleteParents.length) {
|
|
32
|
-
const { id: idParent } = autoCompleteParents[0];
|
|
33
|
-
return idParent;
|
|
34
|
-
}
|
|
35
|
-
return undefined;
|
|
36
|
-
};
|
|
37
|
-
const getResultAutoComplete = (variableId, updateValue, index, store) => __awaiter(void 0, void 0, void 0, function* () {
|
|
38
|
-
const linkedVariables = selectLinkedVariables(variableId);
|
|
39
|
-
const autocompleteDataset = selectAutocompleteDataset(variableId);
|
|
40
|
-
const autocompleteResults = yield fetchAutocompleteDataFromInputValue({
|
|
41
|
-
dataset: autocompleteDataset,
|
|
42
|
-
inputValue: cleanString(updateValue),
|
|
43
|
-
attributes: Object.keys(linkedVariables || {}),
|
|
44
|
-
variableId,
|
|
45
|
-
});
|
|
46
|
-
if (!autocompleteResults) {
|
|
47
|
-
window.parent.postMessage({ from: "WIZARD", data: "ERROR" }, "*");
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (autocompleteResults.length) {
|
|
51
|
-
const selectedValue = autocompleteResults[0];
|
|
52
|
-
yield store.dispatch(updateVariableAction(variableId, (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.field) || (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.primary) || updateValue, index));
|
|
53
|
-
Object.entries(linkedVariables || {}).forEach(([key, linkedVariableId]) => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
-
yield store.dispatch(updateVariableAction(linkedVariableId, selectedValue[key] || "", index));
|
|
55
|
-
}));
|
|
56
|
-
store.dispatch(saveDataAction());
|
|
57
|
-
}
|
|
58
|
-
});
|
|
10
|
+
import { PathReader } from "../libs/PathReader";
|
|
59
11
|
export const autoSave = (variablesData, store) => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
let contentVariable = variableData.updateValue;
|
|
63
|
-
if (variableData.variablesIds.length > 1) {
|
|
64
|
-
contentVariable = `${variableData.updateValue.split(",")[indexVariable] || ""}`.trim();
|
|
65
|
-
}
|
|
66
|
-
const variable = store.getState().references.variables[variableId];
|
|
67
|
-
const variableParentId = getAutoCompleteParentVariableId(variableId, variableData.index, variable === null || variable === void 0 ? void 0 : variable.type);
|
|
68
|
-
if (variableParentId) {
|
|
69
|
-
yield getResultAutoComplete(variableParentId, contentVariable, variableData.index, store);
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
yield store.dispatch(updateVariableAction(variableId, contentVariable, variableData.index));
|
|
73
|
-
setTimeout(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
74
|
-
if (indexVariable === variableData.variablesIds.length - 1 &&
|
|
75
|
-
indexVariablesData === variablesData.length - 1) {
|
|
76
|
-
store.dispatch(saveDataAction());
|
|
77
|
-
}
|
|
78
|
-
}), 200);
|
|
79
|
-
}));
|
|
80
|
-
}));
|
|
12
|
+
if (PathReader.isSmartScriptPath())
|
|
13
|
+
return;
|
|
81
14
|
});
|
|
@@ -68,8 +68,8 @@ function addressKey(address) {
|
|
|
68
68
|
return address.postcode;
|
|
69
69
|
}
|
|
70
70
|
export function mixDataGouvAndInpiCities(dataGouvResult, inputValue) {
|
|
71
|
-
var _a;
|
|
72
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
var _a;
|
|
73
73
|
if (!cachedInpiCities) {
|
|
74
74
|
yield initializeInpiCities();
|
|
75
75
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { OptionsVariablesType } from "../libs/InputsInitiator";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type relVarsValsT = Record<string, string | number>;
|
|
3
|
+
export type getRelatedVarsT = (optionId: number, index: number, variables: number[]) => relVarsValsT;
|
|
4
4
|
export declare const getRelatedVariablesValues: getRelatedVarsT;
|
|
5
|
-
export
|
|
5
|
+
export type parseContentT = (output: string, id: number, index: number, variables: relVarsValsT) => string;
|
|
6
6
|
export declare const parseContentWithVariables: parseContentT;
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type autonumsType = [string, string, number, string | null][];
|
|
8
|
+
export type parseOutputT = (output: string, id: number, index: number, variables: relVarsValsT, autonums: autonumsType) => string;
|
|
9
9
|
export declare const parseOutputWithVariables: parseOutputT;
|
|
10
|
-
export
|
|
10
|
+
export type parseVariableLabelT = (id: number, index: number) => string;
|
|
11
11
|
export declare const parseVariableLabel: parseVariableLabelT;
|
|
12
|
-
export
|
|
12
|
+
export type parseOptionLabelT = (id: number, index: number) => string;
|
|
13
13
|
export declare const parseOptionLabel: parseOptionLabelT;
|
|
14
|
-
export
|
|
14
|
+
export type parseRawT = (text: string, inputs?: OptionsVariablesType, placeholder?: string) => string;
|
|
15
15
|
export declare const parseRawWithVariables: parseRawT;
|
|
16
|
-
export
|
|
16
|
+
export type parseRawWithRelatedVariablesT = (text: string, optionId: number, index: number, inputs?: OptionsVariablesType, placeholder?: string) => string;
|
|
17
17
|
export declare const parseRawWithRelatedVariables: parseRawWithRelatedVariablesT;
|
|
18
18
|
export declare const parsePrefillerValue: (variableId: number, inputIndex: number, prefillerIndex: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useDispatch(): import("redux").Dispatch<
|
|
1
|
+
export declare function useDispatch(): import("redux").Dispatch<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { default as App } from "./App";
|
|
2
2
|
export * from "./App";
|
|
3
|
+
export { default as WizardCore } from "./WizardCore";
|
|
4
|
+
export * from "./WizardCore";
|
|
5
|
+
export * from "./routing";
|
|
3
6
|
export * from "./config";
|
|
4
7
|
export * from "./Globals";
|
|
5
8
|
export * from "./PluginLoader";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { default as App } from "./App";
|
|
2
2
|
export * from "./App";
|
|
3
|
+
export { default as WizardCore } from "./WizardCore";
|
|
4
|
+
export * from "./WizardCore";
|
|
5
|
+
export * from "./routing";
|
|
3
6
|
export * from "./config";
|
|
4
7
|
export * from "./Globals";
|
|
5
8
|
export * from "./PluginLoader";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dispatch } from "redux";
|
|
2
2
|
import type { StateType, MAPPED_CONDITIONS } from "../types/State.type";
|
|
3
|
-
export
|
|
3
|
+
export 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;
|
|
6
6
|
constructor(dispatch: Dispatch);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const cleanString: (str?: string
|
|
1
|
+
export declare const cleanString: (str?: string) => string;
|
|
@@ -21,7 +21,102 @@ export declare class PathReader {
|
|
|
21
21
|
appStates: string[];
|
|
22
22
|
};
|
|
23
23
|
getAppStatesPages(): {
|
|
24
|
-
|
|
24
|
+
length: number;
|
|
25
|
+
toString(): string;
|
|
26
|
+
toLocaleString(): string;
|
|
27
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
28
|
+
pop(): string | undefined;
|
|
29
|
+
push(...items: string[]): number;
|
|
30
|
+
concat(...items: ConcatArray<string>[]): string[];
|
|
31
|
+
concat(...items: (string | ConcatArray<string>)[]): string[];
|
|
32
|
+
join(separator?: string): string;
|
|
33
|
+
reverse(): string[];
|
|
34
|
+
shift(): string | undefined;
|
|
35
|
+
slice(start?: number, end?: number): string[];
|
|
36
|
+
sort(compareFn?: ((a: string, b: string) => number) | undefined): string[];
|
|
37
|
+
splice(start: number, deleteCount?: number): string[];
|
|
38
|
+
splice(start: number, deleteCount: number, ...items: string[]): string[];
|
|
39
|
+
unshift(...items: string[]): number;
|
|
40
|
+
indexOf(searchElement: string, fromIndex?: number): number;
|
|
41
|
+
lastIndexOf(searchElement: string, fromIndex?: number): number;
|
|
42
|
+
every<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): this is S[];
|
|
43
|
+
every(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
44
|
+
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
45
|
+
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
|
|
46
|
+
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
|
|
47
|
+
filter<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S[];
|
|
48
|
+
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
49
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
50
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
51
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U;
|
|
52
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
53
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
54
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U;
|
|
55
|
+
find<S extends string>(predicate: (value: string, index: number, obj: string[]) => value is S, thisArg?: any): S | undefined;
|
|
56
|
+
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
57
|
+
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
|
|
58
|
+
fill(value: string, start?: number, end?: number): string[];
|
|
59
|
+
copyWithin(target: number, start: number, end?: number): string[];
|
|
60
|
+
entries(): ArrayIterator<[number, string]>;
|
|
61
|
+
keys(): ArrayIterator<number>;
|
|
62
|
+
values(): ArrayIterator<string>;
|
|
63
|
+
includes(searchElement: string, fromIndex?: number): boolean;
|
|
64
|
+
flatMap<U, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U | readonly U[], thisArg?: This | undefined): U[];
|
|
65
|
+
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
66
|
+
at(index: number): string | undefined;
|
|
67
|
+
findLast<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S | undefined;
|
|
68
|
+
findLast(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string | undefined;
|
|
69
|
+
findLastIndex(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): number;
|
|
70
|
+
toReversed(): string[];
|
|
71
|
+
toSorted(compareFn?: ((a: string, b: string) => number) | undefined): string[];
|
|
72
|
+
toSpliced(start: number, deleteCount: number, ...items: string[]): string[];
|
|
73
|
+
toSpliced(start: number, deleteCount?: number): string[];
|
|
74
|
+
with(index: number, value: string): string[];
|
|
75
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
76
|
+
[Symbol.unscopables]: {
|
|
77
|
+
[x: number]: boolean | undefined;
|
|
78
|
+
length?: boolean | undefined;
|
|
79
|
+
toString?: boolean | undefined;
|
|
80
|
+
toLocaleString?: boolean | undefined;
|
|
81
|
+
pop?: boolean | undefined;
|
|
82
|
+
push?: boolean | undefined;
|
|
83
|
+
concat?: boolean | undefined;
|
|
84
|
+
join?: boolean | undefined;
|
|
85
|
+
reverse?: boolean | undefined;
|
|
86
|
+
shift?: boolean | undefined;
|
|
87
|
+
slice?: boolean | undefined;
|
|
88
|
+
sort?: boolean | undefined;
|
|
89
|
+
splice?: boolean | undefined;
|
|
90
|
+
unshift?: boolean | undefined;
|
|
91
|
+
indexOf?: boolean | undefined;
|
|
92
|
+
lastIndexOf?: boolean | undefined;
|
|
93
|
+
every?: boolean | undefined;
|
|
94
|
+
some?: boolean | undefined;
|
|
95
|
+
forEach?: boolean | undefined;
|
|
96
|
+
map?: boolean | undefined;
|
|
97
|
+
filter?: boolean | undefined;
|
|
98
|
+
reduce?: boolean | undefined;
|
|
99
|
+
reduceRight?: boolean | undefined;
|
|
100
|
+
find?: boolean | undefined;
|
|
101
|
+
findIndex?: boolean | undefined;
|
|
102
|
+
fill?: boolean | undefined;
|
|
103
|
+
copyWithin?: boolean | undefined;
|
|
104
|
+
entries?: boolean | undefined;
|
|
105
|
+
keys?: boolean | undefined;
|
|
106
|
+
values?: boolean | undefined;
|
|
107
|
+
includes?: boolean | undefined;
|
|
108
|
+
flatMap?: boolean | undefined;
|
|
109
|
+
flat?: boolean | undefined;
|
|
110
|
+
at?: boolean | undefined;
|
|
111
|
+
findLast?: boolean | undefined;
|
|
112
|
+
findLastIndex?: boolean | undefined;
|
|
113
|
+
toReversed?: boolean | undefined;
|
|
114
|
+
toSorted?: boolean | undefined;
|
|
115
|
+
toSpliced?: boolean | undefined;
|
|
116
|
+
with?: boolean | undefined;
|
|
117
|
+
[Symbol.iterator]?: boolean | undefined;
|
|
118
|
+
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
119
|
+
};
|
|
25
120
|
};
|
|
26
121
|
parsePath(page?: number, uniqid?: string | undefined, modelVersion?: string | undefined): string;
|
|
27
122
|
static isWizardInstancePath(): boolean;
|
package/dist/libs/PathReader.js
CHANGED
|
@@ -2,7 +2,6 @@ import { createMatchSelector } from "connected-react-router";
|
|
|
2
2
|
import queryString from "query-string";
|
|
3
3
|
import { matchPath, generatePath } from "react-router";
|
|
4
4
|
import { getConfig } from "../config";
|
|
5
|
-
import { getPluginsPageAppStates } from "../PluginLoader";
|
|
6
5
|
import { selectAvailableSections, selectAvailableAppStates, selectInstanceUniqid, selectMetaFetchStatus, } from "../redux/selectors/app";
|
|
7
6
|
import { selectSectionReference } from "../redux/selectors/references";
|
|
8
7
|
import Globals from "../Globals";
|
|
@@ -125,7 +124,7 @@ export class PathReader {
|
|
|
125
124
|
}
|
|
126
125
|
getAppStatesPages() {
|
|
127
126
|
const globalAppStates = getConfig().router.appStatesPages || {};
|
|
128
|
-
const pluginsAppStates =
|
|
127
|
+
const pluginsAppStates = [];
|
|
129
128
|
return Object.assign(Object.assign({}, globalAppStates), pluginsAppStates);
|
|
130
129
|
}
|
|
131
130
|
parsePath(page = this.currentPage, uniqid = this.currentUniqid, modelVersion = this.modelVersion) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Action } from "redux";
|
|
2
2
|
import type { ActionsType } from "../types/Actions.type";
|
|
3
3
|
import type { StateType } from "../types/State.type";
|
|
4
|
-
export
|
|
4
|
+
export type CallbackType = () => void;
|
|
5
5
|
export declare class SmartScriptStore {
|
|
6
6
|
static hooks: {
|
|
7
7
|
variables: Record<string, CallbackType[]>;
|
|
@@ -29,11 +29,11 @@ export declare class SmartScriptStore {
|
|
|
29
29
|
static onVariableChange(id: number | number[], callback: CallbackType): void;
|
|
30
30
|
static updateVariableInput: (id: number, value: string | number, index?: number) => void;
|
|
31
31
|
static updateOptionInput: (id: number, value: boolean, index?: number) => void;
|
|
32
|
-
static updateVariableMeta: (id: number, _meta: ActionsType.References.updateVariableMeta["meta"], index?: number
|
|
32
|
+
static updateVariableMeta: (id: number, _meta: ActionsType.References.updateVariableMeta["meta"], index?: number) => void;
|
|
33
33
|
static updateOptionMeta: (id: number, _meta: ActionsType.References.updateOptionMeta["meta"]) => void;
|
|
34
34
|
static retrieveExternalData: () => Readonly<false | any[]>;
|
|
35
|
-
static hideOption: (id: number, index?: number
|
|
36
|
-
static displayOption: (id: number, index?: number
|
|
37
|
-
static hideVariable: (id: number, index?: number
|
|
38
|
-
static displayVariable: (id: number, index?: number
|
|
35
|
+
static hideOption: (id: number, index?: number) => void;
|
|
36
|
+
static displayOption: (id: number, index?: number) => void;
|
|
37
|
+
static hideVariable: (id: number, index?: number) => void;
|
|
38
|
+
static displayVariable: (id: number, index?: number) => void;
|
|
39
39
|
}
|
|
@@ -13,7 +13,7 @@ export declare const setFetchStatus: (fetchStatus: "waiting" | "succeeded" | "fa
|
|
|
13
13
|
export declare const initInstanceAction: (instance: StateType.App.Instance) => ActionsType.App.initInstance;
|
|
14
14
|
export declare const updateInstanceAction: (instance: Partial<StateType.App.Instance>) => ActionsType.App.updateInstance;
|
|
15
15
|
export declare const updateInstancePaidAction: (isPaid: boolean) => ActionsType.App.updateInstancePaid;
|
|
16
|
-
export
|
|
16
|
+
export type initPaginationActionPropsType = Omit<ActionsType.App.initPagination, "type">;
|
|
17
17
|
export declare const initPaginationAction: (pagination: initPaginationActionPropsType) => ActionsType.App.initPagination;
|
|
18
18
|
export declare const updateAvailableAppStatesAction: (availableAppStates: StateType.App.Pagination["availableAppStates"], ingorePluginAppStateReset?: boolean) => ActionsType.App.updateAvailableAppStates;
|
|
19
19
|
export declare const goPageAction: (page: number, pushHistory?: boolean) => ActionsType.App.goPage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StateType } from "../../types/State.type";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
|
-
export declare const initInputsAction: (inputs: StateType.Inputs, references?: StateType.References
|
|
3
|
+
export declare const initInputsAction: (inputs: StateType.Inputs, references?: StateType.References) => 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;
|
|
6
6
|
export declare const initVariableAction: (id: number, values: (string | number)[]) => ActionsType.Inputs.initVariable;
|