@legalplace/wizardx-core 4.9.0 → 4.10.0

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.
@@ -6,6 +6,6 @@ export declare const selectOptionInputByIndex: (id: number, index: number) => Re
6
6
  export declare const selectVariableInput: (id: number) => readonly (string | number)[];
7
7
  export declare const selectVariableInputByIndex: (id: number, index: number) => Readonly<string | number>;
8
8
  export declare const selectLinkedVariables: (id: number) => Readonly<Record<string, number>>;
9
- export declare const selectAutocompleteDataset: (id: number) => Readonly<"datagouv_addresses" | undefined>;
9
+ export declare const selectAutocompleteDataset: (id: number) => Readonly<import("@legalplace/models-v3-types").AutocompleteDatasetType | undefined>;
10
10
  export declare const selectIsVariableDisabled: (id: number) => Readonly<boolean>;
11
11
  export declare const selectVariableDisabledTooltip: (id: number) => string;
@@ -18,9 +18,7 @@ export const selectVariableInput = createSelector((state, id) => {
18
18
  return `${state.inputs.variables[id].reduce((p, c) => `${p}-${c}`, "")}_${id.toString()}`;
19
19
  });
20
20
  export const selectVariableInputByIndex = createSelector((state, id, index) => state.inputs.variables[id][index], (state, id, index) => `${state.inputs.variables[id].reduce((p, c) => `${p}-${c}`, "")}_${id.toString()}_${index}`);
21
- export const selectLinkedVariables = createSelector((state, id) => state.references.variables[id].linkedVariables || {}, (state, id) => Object.entries(state.references.variables[id].linkedVariables || {}).length
22
- ? "1"
23
- : "0");
24
- export const selectAutocompleteDataset = createSelector((state, id) => state.references.variables[id].autocompleteDataset, (state, id) => state.references.variables[id].autocompleteDataset ? "1" : "0");
21
+ export const selectLinkedVariables = createSelector((state, id) => state.references.variables[id].linkedVariables || {}, (state, id) => `${Object.entries(state.references.variables[id].linkedVariables || {}).reduce((p, c) => `${p}-${c}`, "")}_${id.toString()}`);
22
+ export const selectAutocompleteDataset = createSelector((state, id) => state.references.variables[id].autocompleteDataset, (state, id) => `${state.references.variables[id].autocompleteDataset}_${id.toString()}`);
25
23
  export const selectIsVariableDisabled = createSelector((state, id) => state.references.variables[id].disabled || false, (state, id) => state.references.variables[id].disabled ? "1" : "0");
26
24
  export const selectVariableDisabledTooltip = createSelector((state, id) => state.references.variables[id].disabledTooltip || "", (state, id) => { var _a; return ((_a = state.references.variables[id].disabledTooltip) === null || _a === void 0 ? void 0 : _a.length) ? "1" : "0"; });
@@ -51,7 +51,7 @@ export declare const selectorsLibrary: {
51
51
  selectVariableInput: (id: number) => readonly (string | number)[];
52
52
  selectVariableInputByIndex: (id: number, index: number) => Readonly<string | number>;
53
53
  selectLinkedVariables: (id: number) => Readonly<Record<string, number>>;
54
- selectAutocompleteDataset: (id: number) => Readonly<"datagouv_addresses" | undefined>;
54
+ selectAutocompleteDataset: (id: number) => Readonly<import("@legalplace/models-v3-types").AutocompleteDatasetType | undefined>;
55
55
  selectIsVariableDisabled: (id: number) => Readonly<boolean>;
56
56
  selectVariableDisabledTooltip: (id: number) => string;
57
57
  selectOptionConditionValue(id: number): Readonly<boolean[] | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -24,9 +24,9 @@
24
24
  "@legalplace/lp-events": "1.14.0",
25
25
  "@legalplace/lplogic": "2.3.1",
26
26
  "@legalplace/model-healthcheck": "^1.1.5",
27
- "@legalplace/referencesparser": "^3.1.9",
27
+ "@legalplace/referencesparser": "^3.1.11",
28
28
  "@legalplace/storybook": "^2.171.0",
29
- "@legalplace/typeorm-constants": "^3.25.2",
29
+ "@legalplace/typeorm-constants": "^3.25.4",
30
30
  "@loadable/component": "^5.15.0",
31
31
  "@redux-saga/core": "^1.1.3",
32
32
  "connected-react-router": "^6.8.0",
@@ -56,9 +56,9 @@
56
56
  "devDependencies": {
57
57
  "@legalplace/data-gouv": "^1.4.0",
58
58
  "@legalplace/eslint-config": "^2.2.0",
59
- "@legalplace/models-v3-types": "^5.6.1",
59
+ "@legalplace/models-v3-types": "^5.8.0",
60
60
  "@legalplace/prettier-config": "^2.1.3",
61
- "@legalplace/typeorm-entities": "^5.28.0",
61
+ "@legalplace/typeorm-entities": "^5.28.2",
62
62
  "@swc-node/jest": "^1.3.2",
63
63
  "@swc/core": "^1.2.93",
64
64
  "@swc/jest": "^0.2.4",
@@ -96,5 +96,5 @@
96
96
  "*.test.ts",
97
97
  "*.test.tsx"
98
98
  ],
99
- "gitHead": "723959ac478d09dd6cde34a54b85ced150a196d9"
99
+ "gitHead": "b5523505e3dc54654af1d8a59e61cac52a5eca9e"
100
100
  }