@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,36 +1,33 @@
|
|
|
1
1
|
import * as app from "./app";
|
|
2
2
|
export declare const actionsLibrary: {
|
|
3
|
-
setUserEmail: (email: string, disableRedirect?: boolean
|
|
3
|
+
setUserEmail: (email: string, disableRedirect?: boolean, inBackground?: boolean) => import("../..").ActionsType.User.setUserEmail;
|
|
4
4
|
setUserEmailSucceeded: () => import("../..").ActionsType.User.setUserEmailSucceeded;
|
|
5
5
|
fetchModelPrerequisitesAction: (permalink: string, prefix?: string) => import("../..").ActionsType.Sagas.Model.fetchModelPrerequisites;
|
|
6
6
|
fetchModelAction: (permalink: string, prefix: string | undefined, uniqid: string | undefined, uniqidParam: string | undefined, queryParams: URLSearchParams, pathReader: import("../..").PathReader, urlParams: URLSearchParams, clientConfigReturnValue: {
|
|
7
7
|
appStates: string[];
|
|
8
8
|
enableShadowInstance: boolean;
|
|
9
9
|
}, wizardConfig: import("../..").WizardConfigResponse) => import("../..").ActionsType.Sagas.Model.fetchModel;
|
|
10
|
-
saveDataAction: (redirect?: boolean, confirmAnswer?: boolean
|
|
10
|
+
saveDataAction: (redirect?: boolean, confirmAnswer?: boolean, redirectFallback?: string, redirectOverride?: string, additionalProperties?: Record<string, string | number>) => import("../..").ActionsType.Sagas.Data.saveData;
|
|
11
11
|
initUserAction: (user: Omit<import("../..").StateType.User, "status">) => import("../..").ActionsType.User.initUser;
|
|
12
|
-
setUserStatusAction: (status: "
|
|
12
|
+
setUserStatusAction: (status: "authenticated" | "unauthenticated" | "inprogress" | "failed") => import("../..").ActionsType.User.setUserStatus;
|
|
13
13
|
setUserValidTokenAction: (validToken: boolean) => import("../..").ActionsType.User.setUserValidToken;
|
|
14
14
|
enableSmartscriptAction: () => import("../..").ActionsType.SmartScript.enableSmartScript;
|
|
15
|
-
initDataSmartscriptAction: (data:
|
|
15
|
+
initDataSmartscriptAction: (data: import("../..").StateType.SmartScript["data"]) => import("../..").ActionsType.SmartScript.initDataSmartscript;
|
|
16
16
|
callInitDataSmartscriptAction: () => import("../..").ActionsType.SmartScript.requestinitDataSmartscript;
|
|
17
|
-
initSmartscriptTriggersAction: (triggers:
|
|
18
|
-
options: number[];
|
|
19
|
-
variables: number[];
|
|
20
|
-
}) => import("../..").ActionsType.SmartScript.initSmartscriptTriggers;
|
|
17
|
+
initSmartscriptTriggersAction: (triggers: import("../..").StateType.SmartScript["triggers"]) => import("../..").ActionsType.SmartScript.initSmartscriptTriggers;
|
|
21
18
|
updateSmartscriptOptionHiddenAction: (id: number, index: number, hide: boolean) => import("../..").ActionsType.SmartScript.updateSmartscriptOptionHidden;
|
|
22
19
|
updateSmartscriptVariableHiddenAction: (id: number, index: number, hide: boolean) => import("../..").ActionsType.SmartScript.updateSmartscriptVariableHidden;
|
|
23
20
|
initReferencesAction: (references: import("../..").StateType.References) => import("../..").ActionsType.References.initReferences;
|
|
24
|
-
updateVariableMetaAction: (id: number, meta: import("../..").ActionsType.References.
|
|
25
|
-
updateOptionMetaAction: (id: number, meta: import("../..").ActionsType.References.
|
|
26
|
-
setDisabledVariableAction: (id: number, disabled: boolean, index: number, disabledTooltip?: string
|
|
21
|
+
updateVariableMetaAction: (id: number, meta: import("../..").ActionsType.References.updateVariableMeta["meta"], index?: number) => import("../..").ActionsType.References.updateVariableMeta;
|
|
22
|
+
updateOptionMetaAction: (id: number, meta: import("../..").ActionsType.References.updateOptionMeta["meta"]) => import("../..").ActionsType.References.updateOptionMeta;
|
|
23
|
+
setDisabledVariableAction: (id: number, disabled: boolean, index: number, disabledTooltip?: string) => import("../..").ActionsType.References.setDisabledVariable;
|
|
27
24
|
initMandatoryOptionAction: (id: number, value: boolean[]) => import("../..").ActionsType.Mandatories.initMandatoryOption;
|
|
28
25
|
initMandatoryVariableAction: (id: number, value: boolean[]) => import("../..").ActionsType.Mandatories.initMandatoryVariable;
|
|
29
26
|
setMandatoryIgnoreAction: (value: boolean) => import("../..").ActionsType.Mandatories.setMandatoryIgnore;
|
|
30
27
|
setMandatorySectionAction: (id: number, value: boolean) => import("../..").ActionsType.Mandatories.setMandatorySection;
|
|
31
28
|
setMandatoryOptionAction: (id: number, index: number, value: boolean) => import("../..").ActionsType.Mandatories.setMandatoryOption;
|
|
32
29
|
setMandatoryVariableAction: (id: number, index: number, value: boolean) => import("../..").ActionsType.Mandatories.setMandatoryVariable;
|
|
33
|
-
initInputsAction: (inputs: import("../..").StateType.Inputs, references?: import("../..").StateType.References
|
|
30
|
+
initInputsAction: (inputs: import("../..").StateType.Inputs, references?: import("../..").StateType.References) => import("../..").ActionsType.Inputs.initInputs;
|
|
34
31
|
initOptionAction: (id: number, values: boolean[]) => import("../..").ActionsType.Inputs.initOption;
|
|
35
32
|
updateOptionAction: (id: number, value: boolean, index: number) => import("../..").ActionsType.Inputs.updateOptionInput;
|
|
36
33
|
initVariableAction: (id: number, values: (string | number)[]) => import("../..").ActionsType.Inputs.initVariable;
|
|
@@ -46,29 +43,26 @@ export declare const actionsLibrary: {
|
|
|
46
43
|
updateOptionValidatorConditionsAction: (id: number, index: number, value: boolean) => import("../..").ActionsType.Conditions.updateOptionValidatorCondition;
|
|
47
44
|
updateVariableValidatorConditionsAction: (id: number, index: number, value: boolean) => import("../..").ActionsType.Conditions.updateVariableValidatorCondition;
|
|
48
45
|
initMetaAction: (meta: Omit<import("../..").StateType.App.Meta, "fetchStatus">) => import("../..").ActionsType.App.initMeta;
|
|
49
|
-
setModelUuidAction: (modelUuid:
|
|
46
|
+
setModelUuidAction: (modelUuid: import("../..").StateType.App.Meta["modelUuid"]) => import("../..").ActionsType.App.setModelUuid;
|
|
50
47
|
fetchModelSucceededAction: () => import("../..").ActionsType.App.fetchModelSucceeded;
|
|
51
48
|
fetchModelNonBlockingAction: () => import("../..").ActionsType.App.fetchModelNonBlocking;
|
|
52
|
-
fetchModelUnhealthyAction: (report:
|
|
53
|
-
object: import("@legalplace/model-healthcheck/dist/libs/HealthCheck.type").HealthCheckReport;
|
|
54
|
-
raw: string;
|
|
55
|
-
} | undefined) => import("../..").ActionsType.App.fetchModelUnhealthy;
|
|
49
|
+
fetchModelUnhealthyAction: (report: import("../..").StateType.App.Meta["report"]) => import("../..").ActionsType.App.fetchModelUnhealthy;
|
|
56
50
|
fetchModelUserLockedAction: () => import("../..").ActionsType.App.fetchModelUserLocked;
|
|
57
51
|
fetchModelFailedAction: () => import("../..").ActionsType.App.fetchModelFailed;
|
|
58
52
|
setDataStatus: (dataStatus: "saved" | "unsaved" | "saving" | "failed") => import("../..").ActionsType.App.setDataStatus;
|
|
59
|
-
setFetchStatus: (fetchStatus: "
|
|
53
|
+
setFetchStatus: (fetchStatus: "waiting" | "succeeded" | "failed" | "unhealthy" | "userLocked") => import("../..").ActionsType.App.setFetchStatus;
|
|
60
54
|
initInstanceAction: (instance: import("../..").StateType.App.Instance) => import("../..").ActionsType.App.initInstance;
|
|
61
55
|
updateInstanceAction: (instance: Partial<import("../..").StateType.App.Instance>) => import("../..").ActionsType.App.updateInstance;
|
|
62
56
|
updateInstancePaidAction: (isPaid: boolean) => import("../..").ActionsType.App.updateInstancePaid;
|
|
63
57
|
initPaginationAction: (pagination: app.initPaginationActionPropsType) => import("../..").ActionsType.App.initPagination;
|
|
64
|
-
updateAvailableAppStatesAction: (availableAppStates:
|
|
58
|
+
updateAvailableAppStatesAction: (availableAppStates: import("../..").StateType.App.Pagination["availableAppStates"], ingorePluginAppStateReset?: boolean) => import("../..").ActionsType.App.updateAvailableAppStates;
|
|
65
59
|
goPageAction: (page: number, pushHistory?: boolean) => import("../..").ActionsType.App.goPage;
|
|
66
60
|
goNextPageAction: () => import("../..").ActionsType.App.goNextPage;
|
|
67
61
|
goPreviousPageAction: () => import("../..").ActionsType.App.goPreviousPage;
|
|
68
62
|
updateCurrentAppStateAction: (currentAppState: string) => import("../..").ActionsType.App.updateCurrentAppState;
|
|
69
63
|
updateAvailableSectionsAction: (availableSections: number[]) => import("../..").ActionsType.App.updateAvailableSections;
|
|
70
64
|
updateCurrentSectionIdAction: (currentSectionId: number) => import("../..").ActionsType.App.updateCurrentSectionId;
|
|
71
|
-
initCustomizationMetaAction: (meta: import("@legalplace/models-v3-types").
|
|
72
|
-
initCustomizationAutoDefaultAction: (disableAutoDefault:
|
|
65
|
+
initCustomizationMetaAction: (meta: Exclude<import("@legalplace/models-v3-types").ModelV3["customization"]["meta"], undefined>) => import("../..").ActionsType.App.initCustomizationMeta;
|
|
66
|
+
initCustomizationAutoDefaultAction: (disableAutoDefault: import("../..").StateType.App.Customization["disableAutoDefault"]) => import("../..").ActionsType.App.initCustomizationAutoDefault;
|
|
73
67
|
resetStateAction: () => import("../..").ActionsType.App.resetState;
|
|
74
68
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StateType } from "../../types/State.type";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
3
|
export declare const initReferencesAction: (references: StateType.References) => ActionsType.References.initReferences;
|
|
4
|
-
export declare const updateVariableMetaAction: (id: number, meta: ActionsType.References.updateVariableMeta["meta"], index?: number
|
|
4
|
+
export declare const updateVariableMetaAction: (id: number, meta: ActionsType.References.updateVariableMeta["meta"], index?: number) => ActionsType.References.updateVariableMeta;
|
|
5
5
|
export declare const updateOptionMetaAction: (id: number, meta: ActionsType.References.updateOptionMeta["meta"]) => ActionsType.References.updateOptionMeta;
|
|
6
|
-
export declare const setDisabledVariableAction: (id: number, disabled: boolean, index: number, disabledTooltip?: string
|
|
6
|
+
export declare const setDisabledVariableAction: (id: number, disabled: boolean, index: number, disabledTooltip?: string) => ActionsType.References.setDisabledVariable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ActionsType } from "../../../types/Actions.type";
|
|
2
|
-
export declare const saveDataAction: (redirect?: boolean, confirmAnswer?: boolean
|
|
2
|
+
export declare const saveDataAction: (redirect?: boolean, confirmAnswer?: boolean, redirectFallback?: string, redirectOverride?: string, additionalProperties?: Record<string, string | number>) => ActionsType.Sagas.Data.saveData;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ActionsType } from "../../../types/Actions.type";
|
|
2
|
-
export declare const setUserEmail: (email: string, disableRedirect?: boolean
|
|
2
|
+
export declare const setUserEmail: (email: string, disableRedirect?: boolean, inBackground?: boolean) => ActionsType.User.setUserEmail;
|
|
3
3
|
export declare const setUserEmailSucceeded: () => ActionsType.User.setUserEmailSucceeded;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Store, Dispatch, AnyAction } from "redux";
|
|
2
2
|
import type { StateType } from "../../types/State.type";
|
|
3
|
-
export
|
|
3
|
+
export 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
1
|
import type { Dispatch, MiddlewareAPI } from "redux";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
|
-
export
|
|
3
|
+
export 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;
|
|
@@ -2,6 +2,6 @@ import type { MiddlewareAPI, Dispatch } from "redux";
|
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
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
|
-
export
|
|
5
|
+
export 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;
|
|
7
7
|
export default evaluationsWatcherMiddleware;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch, MiddlewareAPI } from "redux";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
|
-
export
|
|
3
|
+
export 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
1
|
import type { MiddlewareAPI, Dispatch } from "redux";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
|
-
export
|
|
3
|
+
export 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
1
|
import type { LocationChangeAction } from "connected-react-router";
|
|
2
2
|
import type { MiddlewareAPI, Dispatch } from "redux";
|
|
3
3
|
import type { ActionsType } from "../../types/Actions.type";
|
|
4
|
-
export
|
|
5
|
-
declare const paginationWatcherMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) =>
|
|
4
|
+
export type WatcherActions = ActionsType.Conditions.updateSectionCondition | LocationChangeAction;
|
|
5
|
+
declare const paginationWatcherMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: WatcherActions) => any;
|
|
6
6
|
export default paginationWatcherMiddleware;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { RunActionAnchor, RunOverrideActionAnchor } from "../../PluginLoader";
|
|
2
1
|
const pluginsHookMiddleware = (mpi) => (next) => (action) => {
|
|
3
|
-
|
|
4
|
-
const overridenAction = RunOverrideActionAnchor(action);
|
|
5
|
-
const nextResult = next(overridenAction);
|
|
6
|
-
const nextState = mpi.getState();
|
|
7
|
-
RunActionAnchor(action.type, previousState, nextState);
|
|
8
|
-
return nextResult;
|
|
2
|
+
return next(action);
|
|
9
3
|
};
|
|
10
4
|
export default pluginsHookMiddleware;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MiddlewareAPI, Dispatch } from "redux";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
|
-
export
|
|
3
|
+
export 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
1
|
import type { MiddlewareAPI, Dispatch } from "redux";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
|
-
export
|
|
3
|
+
export 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;
|
|
@@ -89,13 +89,13 @@ const watchUpdateOptionInput = (mpi, next, action) => __awaiter(void 0, void 0,
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
const watchUpdateVariableInput = (mpi, next, action) => __awaiter(void 0, void 0, void 0, function* () {
|
|
92
|
-
var
|
|
92
|
+
var _a;
|
|
93
93
|
next(action);
|
|
94
94
|
const state = mpi.getState();
|
|
95
95
|
const { id } = action;
|
|
96
96
|
if (state.smartscript.triggers.variables.includes(id)) {
|
|
97
97
|
try {
|
|
98
|
-
const actions = yield ((
|
|
98
|
+
const actions = yield ((_a = iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.triggerListeners("variable", id, cloneDeep(state.inputs)));
|
|
99
99
|
if (Array.isArray(actions)) {
|
|
100
100
|
actions.forEach((_action) => {
|
|
101
101
|
mpi.dispatch(_action);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MiddlewareAPI, Dispatch } from "redux";
|
|
2
2
|
import type { ActionsType } from "../../types/Actions.type";
|
|
3
|
-
export
|
|
3
|
+
export 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,8 +1,7 @@
|
|
|
1
|
-
import { registerPluginsAppStates } from "../../../../PluginLoader";
|
|
2
1
|
export const updateAvailableAppStatesReducer = (state, action) => {
|
|
3
2
|
let availableAppStates;
|
|
4
3
|
if (!action.ingorePluginAppStateReset) {
|
|
5
|
-
availableAppStates =
|
|
4
|
+
availableAppStates = action.availableAppStates;
|
|
6
5
|
}
|
|
7
6
|
else {
|
|
8
7
|
availableAppStates = action.availableAppStates;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ActionsType } from "../../types/Actions.type";
|
|
2
2
|
import type { StateType } from "../../types/State.type";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
3
|
+
export type PaginationReducerActions = ActionsType.App.initPagination | ActionsType.App.goPage | ActionsType.App.goNextPage | ActionsType.App.goPreviousPage | ActionsType.App.updateAvailableAppStates;
|
|
4
|
+
export type WizardReducerActions = ActionsType.App.updateAvailableSections;
|
|
5
|
+
export type CustomizationsReducerActions = ActionsType.App.initCustomizationMeta | ActionsType.App.initCustomizationAutoDefault;
|
|
6
|
+
export type MetaReducerActions = ActionsType.App.initMeta | ActionsType.App.fetchModelSucceeded | ActionsType.App.fetchModelFailed;
|
|
7
|
+
export type InstanceReducerActions = ActionsType.App.initInstance | ActionsType.App.updateInstancePaid | ActionsType.App.setDataStatus;
|
|
8
|
+
export type appReducerActions = PaginationReducerActions | MetaReducerActions | WizardReducerActions | CustomizationsReducerActions | InstanceReducerActions | ActionsType.App.resetState;
|
|
9
9
|
export declare const appReducer: (state: StateType.App | undefined, action: appReducerActions) => StateType.App;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StateType } from "../../types/State.type";
|
|
2
|
-
export
|
|
2
|
+
export type selectInputsType = () => StateType.Inputs;
|
|
3
3
|
export declare const selectInputs: selectInputsType;
|
|
4
4
|
export declare const selectOptionInput: (id: number) => readonly boolean[];
|
|
5
5
|
export declare const selectOptionInputByIndex: (id: number, index: number) => Readonly<boolean | undefined>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Action, MiddlewareAPI, Dispatch } from "redux";
|
|
2
2
|
import type { StateType } from "../../types/State.type";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type SelectorFunction = (state: StateType, ...args: any[]) => any;
|
|
4
|
+
export type SelectorArguments<F extends SelectorFunction> = F extends (state: StateType, ...a: infer A) => any ? A : never;
|
|
5
|
+
export type SelectorReturn<F extends SelectorFunction> = F extends (state: StateType, ...a: any[]) => infer R ? R : never;
|
|
6
|
+
export type SelectorCacheKeyFunction<T extends SelectorFunction> = (state: StateType, ...a: SelectorArguments<T>) => string | false;
|
|
7
7
|
export declare function createSelector<T extends SelectorFunction, R = SelectorReturn<T>>(selector: T, cacheKey?: SelectorCacheKeyFunction<T> | false): (...args: SelectorArguments<T>) => Readonly<R>;
|
|
8
8
|
export declare const selectorsMiddleware: (mpi: MiddlewareAPI) => (next: Dispatch) => (action: Action) => Action<any>;
|
package/dist/redux/store.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { Store
|
|
1
|
+
import type { Store } from "redux";
|
|
2
2
|
import type { StateType } from "../types/State.type";
|
|
3
|
-
export declare const createAppStore: (historyType?: "browser" | "memory") =>
|
|
4
|
-
|
|
3
|
+
export declare const createAppStore: (historyType?: "browser" | "memory") => Store<StateType, any> & {
|
|
4
|
+
dispatch: unknown;
|
|
5
|
+
};
|
|
6
|
+
export declare const getStore: (throwIfDoesNotExist?: boolean) => Store<StateType, any> & {
|
|
5
7
|
dispatch: unknown;
|
|
6
8
|
};
|
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 store;
|
|
32
32
|
}
|
|
33
33
|
const history = createHistory(historyType);
|
|
34
34
|
const wizardxReducers = combineReducers({
|
|
@@ -50,6 +50,7 @@ export const createAppStore = (historyType = "browser") => {
|
|
|
50
50
|
store = createStore(wizardxReducers, middlewares);
|
|
51
51
|
sagasRunner(sagaMiddleware);
|
|
52
52
|
subscribeListeners(store);
|
|
53
|
+
return store;
|
|
53
54
|
};
|
|
54
55
|
export const getStore = (throwIfDoesNotExist = true) => {
|
|
55
56
|
if (store === undefined && throwIfDoesNotExist)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IRouterAdapter } from "../types";
|
|
2
|
+
export declare const createNextJSAdapter: (router: any, pathname: string, searchParams: URLSearchParams | null, params: Record<string, string | string[]>) => IRouterAdapter;
|
|
3
|
+
export declare const useNextJSAdapter: () => IRouterAdapter;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo } from "react";
|
|
14
|
+
export const createNextJSAdapter = (router, pathname, searchParams, params) => {
|
|
15
|
+
const normalizedParams = useMemo(() => {
|
|
16
|
+
const normalized = {};
|
|
17
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
18
|
+
normalized[key] = Array.isArray(value) ? value[0] : value;
|
|
19
|
+
});
|
|
20
|
+
return normalized;
|
|
21
|
+
}, [params]);
|
|
22
|
+
return {
|
|
23
|
+
useParams: () => normalizedParams,
|
|
24
|
+
useNavigate: () => (path) => {
|
|
25
|
+
if (router === null || router === void 0 ? void 0 : router.push) {
|
|
26
|
+
router.push(path);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
useLocation: () => ({
|
|
30
|
+
pathname,
|
|
31
|
+
search: searchParams ? `?${searchParams.toString()}` : "",
|
|
32
|
+
}),
|
|
33
|
+
Link: (_a) => {
|
|
34
|
+
var { to, children } = _a, props = __rest(_a, ["to", "children"]);
|
|
35
|
+
return (_jsx("a", Object.assign({ href: to, onClick: (e) => {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
if (router === null || router === void 0 ? void 0 : router.push) {
|
|
38
|
+
router.push(to);
|
|
39
|
+
}
|
|
40
|
+
} }, props, { children: children })));
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export const useNextJSAdapter = () => {
|
|
45
|
+
const params = {};
|
|
46
|
+
const pathname = "";
|
|
47
|
+
return {
|
|
48
|
+
useParams: () => params,
|
|
49
|
+
useNavigate: () => (path) => {
|
|
50
|
+
console.warn("useNextJSAdapter: Navigation not available. Use createNextJSAdapter with Next.js router instead.");
|
|
51
|
+
},
|
|
52
|
+
useLocation: () => ({
|
|
53
|
+
pathname,
|
|
54
|
+
search: "",
|
|
55
|
+
}),
|
|
56
|
+
Link: (_a) => {
|
|
57
|
+
var { to, children } = _a, props = __rest(_a, ["to", "children"]);
|
|
58
|
+
return (_jsx("a", Object.assign({ href: to }, props, { children: children })));
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useParams as useParamsRR, useHistory, useLocation as useLocationRR, Link as LinkRR, } from "react-router-dom";
|
|
2
|
+
export const createReactRouterAdapter = () => ({
|
|
3
|
+
useParams: () => useParamsRR(),
|
|
4
|
+
useNavigate: () => {
|
|
5
|
+
const history = useHistory();
|
|
6
|
+
return (path) => history.push(path);
|
|
7
|
+
},
|
|
8
|
+
useLocation: () => {
|
|
9
|
+
const location = useLocationRR();
|
|
10
|
+
return {
|
|
11
|
+
pathname: location.pathname,
|
|
12
|
+
search: location.search,
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
Link: LinkRR,
|
|
16
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { IRouterAdapter } from "./types";
|
|
3
|
+
export interface RouterProviderProps {
|
|
4
|
+
adapter: IRouterAdapter;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const RouterProvider: React.FC<RouterProviderProps>;
|
|
8
|
+
export declare const useRouterAdapter: () => IRouterAdapter;
|
|
9
|
+
export declare const useParams: <T = any>() => T;
|
|
10
|
+
export declare const useNavigate: () => (path: string) => void;
|
|
11
|
+
export declare const useLocation: () => {
|
|
12
|
+
pathname: string;
|
|
13
|
+
search: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
const RouterContext = createContext(null);
|
|
4
|
+
export const RouterProvider = ({ adapter, children, }) => (_jsx(RouterContext.Provider, { value: adapter, children: children }));
|
|
5
|
+
export const useRouterAdapter = () => {
|
|
6
|
+
const adapter = useContext(RouterContext);
|
|
7
|
+
if (!adapter) {
|
|
8
|
+
throw new Error("useRouterAdapter must be used within a RouterProvider or use native react-router hooks directly");
|
|
9
|
+
}
|
|
10
|
+
return adapter;
|
|
11
|
+
};
|
|
12
|
+
export const useParams = () => {
|
|
13
|
+
const adapter = useRouterAdapter();
|
|
14
|
+
return adapter.useParams();
|
|
15
|
+
};
|
|
16
|
+
export const useNavigate = () => {
|
|
17
|
+
const adapter = useRouterAdapter();
|
|
18
|
+
return adapter.useNavigate();
|
|
19
|
+
};
|
|
20
|
+
export const useLocation = () => {
|
|
21
|
+
const adapter = useRouterAdapter();
|
|
22
|
+
return adapter.useLocation();
|
|
23
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode, ComponentType } from "react";
|
|
2
|
+
export interface IRouterAdapter {
|
|
3
|
+
useParams: <T = any>() => T;
|
|
4
|
+
useNavigate: () => (path: string) => void;
|
|
5
|
+
useLocation: () => {
|
|
6
|
+
pathname: string;
|
|
7
|
+
search: string;
|
|
8
|
+
};
|
|
9
|
+
Link: ComponentType<{
|
|
10
|
+
to: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export interface IRouteConfig {
|
|
16
|
+
path: string;
|
|
17
|
+
component: ComponentType<any>;
|
|
18
|
+
exact?: boolean;
|
|
19
|
+
strict?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface IWizardCoreRouterProps {
|
|
22
|
+
pathname: string;
|
|
23
|
+
search?: string;
|
|
24
|
+
params: Record<string, string | undefined>;
|
|
25
|
+
navigate: (path: string) => void;
|
|
26
|
+
}
|
|
@@ -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
|
|
7
|
+
export declare const getClientConfigArguments: (permalink?: string, uniqid?: string) => [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>
|
|
10
|
+
export declare const updateInstanceArguments: (permalink: string, uniqid: string | undefined, ovc: OvcType, draft: number, additionalProperties?: Record<string, string | number>) => [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[];
|
|
6
|
+
signal?: AbortSignal;
|
|
7
|
+
variableId?: string | number;
|
|
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 = ({ dataset, inputValue, attributes = [], signal, variableId, })
|
|
28
|
-
var
|
|
27
|
+
export const fetchAutocompleteDataFromInputValue = (_a) => __awaiter(void 0, [_a], void 0, function* ({ dataset, inputValue, attributes = [], signal, variableId, }) {
|
|
28
|
+
var _b;
|
|
29
29
|
try {
|
|
30
30
|
if (dataset === DatasetTypeEnum.DATAGOUV_CITIES_WITH_INPI) {
|
|
31
31
|
return handleDataGouvCitiesWithInpi({
|
|
@@ -58,7 +58,7 @@ export const fetchAutocompleteDataFromInputValue = ({ dataset, inputValue, attri
|
|
|
58
58
|
signal,
|
|
59
59
|
});
|
|
60
60
|
const result = yield Promise.race([searchPromise, errorTimeoutPromise]);
|
|
61
|
-
return (((_b =
|
|
61
|
+
return (((_b = result === null || result === void 0 ? void 0 : result.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",
|
|
2
|
+
const After = () => _jsx("div", { className: "title", children: "Hello world - AFTER" });
|
|
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" }), "!!!"] }));
|
|
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",
|
|
4
|
+
return _jsx("h1", { style: { color: "red" }, children: children });
|
|
5
5
|
};
|
|
6
6
|
export default Title;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const EmailComponent: () => JSX.Element;
|
|
1
|
+
declare const EmailComponent: () => import("react/jsx-runtime").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" });
|
|
3
3
|
export default EmailComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const TermsheetComponent: () => JSX.Element;
|
|
1
|
+
declare const TermsheetComponent: () => import("react/jsx-runtime").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" });
|
|
3
3
|
export default TermsheetComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const WizardComponent: () => JSX.Element;
|
|
1
|
+
declare const WizardComponent: () => import("react/jsx-runtime").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" });
|
|
3
3
|
export default WizardComponent;
|