@legalplace/wizardx-core 2.7.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/App.js +2 -2
- package/dist/redux/constants/app.d.ts +1 -1
- package/dist/redux/constants/app.js +1 -1
- package/dist/redux/middlewares/smartscriptMiddleware.js +1 -2
- package/dist/redux/selectors/selectors.js +2 -2
- package/dist/redux/store.js +2 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.7.3](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.7.2...@legalplace/wizardx-core@2.7.3) (2022-02-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* deleting iframe on when enabling smartscript if it already exists ([eef02e9](https://git.legalplace.eu/legalplace/monorepo/commits/eef02e915648fe380bca8c5b95fd490966c051c7)), closes [api#4819](https://git.legalplace.eu/legalplace/monorepo/issues/4819)
|
|
12
|
+
* fix typo ([501d8e7](https://git.legalplace.eu/legalplace/monorepo/commits/501d8e738233496f72aea2e2f6d99f3d89a4afad)), closes [api#4819](https://git.legalplace.eu/legalplace/monorepo/issues/4819)
|
|
13
|
+
* fixing bug with smartscript not reinitiating after store destoying api[#4819](https://git.legalplace.eu/legalplace/monorepo/issues/4819) ([e388116](https://git.legalplace.eu/legalplace/monorepo/commits/e3881168e27774289f313a499c607216b50700da))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [2.7.2](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.7.1...@legalplace/wizardx-core@2.7.2) (2022-01-26)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* copy command from build script api[#4754](https://git.legalplace.eu/legalplace/monorepo/issues/4754) ([6313f44](https://git.legalplace.eu/legalplace/monorepo/commits/6313f44e208b875572505a890064b2e084cbf277))
|
|
25
|
+
* use build:ci script instead of build:local api[#4754](https://git.legalplace.eu/legalplace/monorepo/issues/4754) ([1c0a4e9](https://git.legalplace.eu/legalplace/monorepo/commits/1c0a4e93a2418647d9ded2e29f5573bedfb1f27a))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
## [2.7.1](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.7.0...@legalplace/wizardx-core@2.7.1) (2022-01-18)
|
|
7
32
|
|
|
8
33
|
|
package/dist/App.js
CHANGED
|
@@ -14,7 +14,7 @@ import PluginRoute from "./components/PluginRoute";
|
|
|
14
14
|
import SmartScriptComponent from "./components/SmartScript";
|
|
15
15
|
import { clearPlugins } from "./PluginLoader";
|
|
16
16
|
import { PathReader } from "./libs/PathReader";
|
|
17
|
-
import {
|
|
17
|
+
import { DANGEROUS_DESTROY_STORE } from "./redux/constants/app";
|
|
18
18
|
class WizardXCore extends React.Component {
|
|
19
19
|
constructor(props) {
|
|
20
20
|
var _a;
|
|
@@ -43,7 +43,7 @@ class WizardXCore extends React.Component {
|
|
|
43
43
|
createAppStore(historyType);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
|
-
getStore().dispatch({ type:
|
|
46
|
+
getStore().dispatch({ type: DANGEROUS_DESTROY_STORE });
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
componentDidMount() {
|
|
@@ -20,5 +20,5 @@ export declare const UPDATE_CURRENT_SECTION_ID = "UPDATE_CURRENT_SECTION_ID";
|
|
|
20
20
|
export declare const UPDATE_AVAILABLE_SECTIONS = "UPDATE_AVAILABLE_SECTIONS";
|
|
21
21
|
export declare const INIT_CUSTOMIZATION_META = "INIT_CUSTOMIZATION_META";
|
|
22
22
|
export declare const INIT_CUSTOMIZATION_AUTO_DEFAULT = "INIT_CUSTOMIZATION_AUTO_DEFAULT";
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const DANGEROUS_DESTROY_STORE = "DANGEROUS_DESTROY_STORE";
|
|
24
24
|
export declare const INIT_PLUGINS = "@@INIT_PLUGINS";
|
|
@@ -20,5 +20,5 @@ export const UPDATE_CURRENT_SECTION_ID = "UPDATE_CURRENT_SECTION_ID";
|
|
|
20
20
|
export const UPDATE_AVAILABLE_SECTIONS = "UPDATE_AVAILABLE_SECTIONS";
|
|
21
21
|
export const INIT_CUSTOMIZATION_META = "INIT_CUSTOMIZATION_META";
|
|
22
22
|
export const INIT_CUSTOMIZATION_AUTO_DEFAULT = "INIT_CUSTOMIZATION_AUTO_DEFAULT";
|
|
23
|
-
export const
|
|
23
|
+
export const DANGEROUS_DESTROY_STORE = "DANGEROUS_DESTROY_STORE";
|
|
24
24
|
export const INIT_PLUGINS = "@@INIT_PLUGINS";
|
|
@@ -14,8 +14,7 @@ const watchEnableSmartScript = (mpi, next, action) => {
|
|
|
14
14
|
}
|
|
15
15
|
const iframeElement = document.querySelector("#lp-smartscript");
|
|
16
16
|
if (iframeElement) {
|
|
17
|
-
|
|
18
|
-
return;
|
|
17
|
+
iframeElement.remove();
|
|
19
18
|
}
|
|
20
19
|
iframe = document.createElement("iframe");
|
|
21
20
|
iframe.id = "lp-smartscript";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DANGEROUS_DESTROY_STORE } from "../constants/app";
|
|
2
2
|
import selectorsCache from "./cache";
|
|
3
3
|
let SelectorsStateTrack = -1;
|
|
4
4
|
let globalMPI;
|
|
@@ -31,7 +31,7 @@ export function createSelector(selector, cacheKey) {
|
|
|
31
31
|
}
|
|
32
32
|
export const selectorsMiddleware = (mpi) => (next) => (action) => {
|
|
33
33
|
const result = next(action);
|
|
34
|
-
if (action.type ===
|
|
34
|
+
if (action.type === DANGEROUS_DESTROY_STORE) {
|
|
35
35
|
selectorsCache.clear();
|
|
36
36
|
}
|
|
37
37
|
globalMPI = mpi;
|
package/dist/redux/store.js
CHANGED
|
@@ -24,7 +24,7 @@ import { smartscriptReducer } from "./reducers/smartscript";
|
|
|
24
24
|
import smartscriptMiddleware from "./middlewares/smartscriptMiddleware";
|
|
25
25
|
import thirdPartyScriptsMiddleware from "./middlewares/thirdpartyScriptsMiddleware";
|
|
26
26
|
import { pluginsStoreReducer } from "./reducers/pluginsStore";
|
|
27
|
-
import {
|
|
27
|
+
import { DANGEROUS_DESTROY_STORE } from "./constants/app";
|
|
28
28
|
let store;
|
|
29
29
|
let history = null;
|
|
30
30
|
export const createAppStore = (historyType = "browser") => {
|
|
@@ -41,7 +41,7 @@ export const createAppStore = (historyType = "browser") => {
|
|
|
41
41
|
pluginsStore: pluginsStoreReducer,
|
|
42
42
|
});
|
|
43
43
|
const rootReducer = (state, action) => {
|
|
44
|
-
if (action.type ===
|
|
44
|
+
if (action.type === DANGEROUS_DESTROY_STORE)
|
|
45
45
|
return wizardxReducers(undefined, action);
|
|
46
46
|
return wizardxReducers(state, action);
|
|
47
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/wizardx-core",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"author": "Moncef Hammou (moncef@legalplace.fr)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "npx rimraf dist && npx tsc",
|
|
12
|
+
"build:ci": "npx rimraf dist && npx tsc",
|
|
12
13
|
"start": "npx tsc-watch --noClear -p ./tsconfig.json",
|
|
13
14
|
"lint": "tsc --noEmit && eslint 'src/**/*.{js,jsx,ts,tsx}' --quiet",
|
|
14
15
|
"lint:fix": "tsc --noEmit && eslint 'src/**/*.{js,jsx,ts,tsx}' --fix",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"@legalplace/lp-events": "1.9.0",
|
|
24
25
|
"@legalplace/lplogic": "^2.1.6",
|
|
25
26
|
"@legalplace/model-healthcheck": "^1.1.5",
|
|
26
|
-
"@legalplace/referencesparser": "
|
|
27
|
+
"@legalplace/referencesparser": "1.7.0",
|
|
27
28
|
"@legalplace/storybook": "2.10.4",
|
|
28
29
|
"@loadable/component": "^5.15.0",
|
|
29
30
|
"@redux-saga/core": "^1.1.3",
|
|
@@ -91,5 +92,5 @@
|
|
|
91
92
|
"*.test.ts",
|
|
92
93
|
"*.test.tsx"
|
|
93
94
|
],
|
|
94
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "f4ea7039248325fe53657ed389811df632fb14a1"
|
|
95
96
|
}
|