@legalplace/wizardx-core 4.37.14 → 4.38.1

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.
@@ -22,23 +22,24 @@ const SmartScriptComponent = ({ inpiActivities = [] }) => {
22
22
  var _a;
23
23
  const [smartScriptLoaded, setSmartScriptLoaded] = useState(false);
24
24
  const [isNewInstance, setIsNewInstance] = useState(true);
25
- window.onInit = SmartScriptStore.onInit;
26
- window.onLoad = SmartScriptStore.onLoad;
27
- window.onOptionChange = SmartScriptStore.onOptionChange;
28
- window.onVariableChange = SmartScriptStore.onVariableChange;
29
- window.updateOptionInput = SmartScriptStore.updateOptionInput;
30
- window.updateVariableInput = SmartScriptStore.updateVariableInput;
31
- window.updateOptionMeta = SmartScriptStore.updateOptionMeta;
25
+ const logSmartScriptFunctionArgs = (func) => (...args) => func(...args);
26
+ window.onInit = logSmartScriptFunctionArgs(SmartScriptStore.onInit);
27
+ window.onLoad = logSmartScriptFunctionArgs(SmartScriptStore.onLoad);
28
+ window.onOptionChange = logSmartScriptFunctionArgs(SmartScriptStore.onOptionChange);
29
+ window.onVariableChange = logSmartScriptFunctionArgs(SmartScriptStore.onVariableChange);
30
+ window.updateOptionInput = logSmartScriptFunctionArgs(SmartScriptStore.updateOptionInput);
31
+ window.updateVariableInput = logSmartScriptFunctionArgs(SmartScriptStore.updateVariableInput);
32
+ window.updateOptionMeta = logSmartScriptFunctionArgs(SmartScriptStore.updateOptionMeta);
32
33
  window.retrieveExternalData = SmartScriptStore.retrieveExternalData;
33
- window.updateVariableMeta = SmartScriptStore.updateVariableMeta;
34
- window.option = SmartScriptStore.getOptionInput;
35
- window.variable = SmartScriptStore.getVariableInput;
36
- window.optionAll = SmartScriptStore.getOptionAllInput;
37
- window.variableAll = SmartScriptStore.getVariableAllInput;
38
- window.hideVariable = SmartScriptStore.hideVariable;
39
- window.displayVariable = SmartScriptStore.displayVariable;
40
- window.hideOption = SmartScriptStore.hideOption;
41
- window.displayOption = SmartScriptStore.displayOption;
34
+ window.updateVariableMeta = logSmartScriptFunctionArgs(SmartScriptStore.updateVariableMeta);
35
+ window.option = logSmartScriptFunctionArgs(SmartScriptStore.getOptionInput);
36
+ window.variable = logSmartScriptFunctionArgs(SmartScriptStore.getVariableInput);
37
+ window.optionAll = logSmartScriptFunctionArgs(SmartScriptStore.getOptionAllInput);
38
+ window.variableAll = logSmartScriptFunctionArgs(SmartScriptStore.getVariableAllInput);
39
+ window.hideVariable = logSmartScriptFunctionArgs(SmartScriptStore.hideVariable);
40
+ window.displayVariable = logSmartScriptFunctionArgs(SmartScriptStore.displayVariable);
41
+ window.hideOption = logSmartScriptFunctionArgs(SmartScriptStore.hideOption);
42
+ window.displayOption = logSmartScriptFunctionArgs(SmartScriptStore.displayOption);
42
43
  window.moment = moment;
43
44
  const apiEndpoint = getConfig().apiEndpoint + (/\/$/.test(getConfig().apiEndpoint) ? "" : "/");
44
45
  const { permalink, uniqid } = useParams();
@@ -1 +1 @@
1
- export declare const NOT_FOUND_PAGE_LINK = "https://www.legalplace.fr/page_introuvable/";
1
+ export declare const NOT_FOUND_PAGE_LINK: string;
@@ -1 +1,2 @@
1
- export const NOT_FOUND_PAGE_LINK = "https://www.legalplace.fr/page_introuvable/";
1
+ export const NOT_FOUND_PAGE_LINK = process.env.REACT_APP_NOT_FOUND_PAGE_LINK ||
2
+ "https://www.legalplace.fr/page_introuvable/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "4.37.14",
3
+ "version": "4.38.1",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@appnest/masonry-layout": "^2.0.8",
23
23
  "@cryptography/sha1": "^0.2.0",
24
- "@legalplace/data-gouv": "^1.6.61",
24
+ "@legalplace/data-gouv": "^1.6.62",
25
25
  "@legalplace/lp-events": "1.14.0",
26
26
  "@legalplace/lplogic": "2.3.1",
27
27
  "@legalplace/model-healthcheck": "^1.1.5",
@@ -62,7 +62,7 @@
62
62
  "@legalplace/eslint-config": "^2.3.0",
63
63
  "@legalplace/models-v3-types": "^5.13.39",
64
64
  "@legalplace/prettier-config": "^2.1.3",
65
- "@legalplace/typeorm-entities": "^5.63.7",
65
+ "@legalplace/typeorm-entities": "^5.63.8",
66
66
  "@swc-node/jest": "^1.3.2",
67
67
  "@swc/core": "^1.2.93",
68
68
  "@swc/jest": "^0.2.4",
@@ -100,5 +100,5 @@
100
100
  "*.test.ts",
101
101
  "*.test.tsx"
102
102
  ],
103
- "gitHead": "ad311f10251e92f22a596294d17e9056b92bea07"
103
+ "gitHead": "474d2e9a1e58bcafdcc71c6df6769cd8ec1079b2"
104
104
  }