@legalplace/wizardx-core 2.11.0 → 2.11.2

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 CHANGED
@@ -3,6 +3,28 @@
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.11.2](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.1...@legalplace/wizardx-core@2.11.2) (2022-05-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix bug with email app state removal. api[#5434](https://git.legalplace.eu/legalplace/monorepo/issues/5434) ([1a7624d](https://git.legalplace.eu/legalplace/monorepo/commits/1a7624dd49a18616f801e996433eab622b0cb3f2))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.11.1](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.11.0...@legalplace/wizardx-core@2.11.1) (2022-04-25)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * change order for OPS to enable to access to admin fields ([5f327c8](https://git.legalplace.eu/legalplace/monorepo/commits/5f327c8a0316c12db0c3b60038ed595a20eb583f)), closes [api#5365](https://git.legalplace.eu/legalplace/monorepo/issues/5365)
23
+
24
+
25
+
26
+
27
+
6
28
  # [2.11.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/wizardx-core@2.10.1...@legalplace/wizardx-core@2.11.0) (2022-04-20)
7
29
 
8
30
 
@@ -97,8 +97,11 @@ function* setUserEmailDecorator(action) {
97
97
  }, 1000);
98
98
  }
99
99
  const availableAppStates = [...selectAvailableAppStates()];
100
- availableAppStates.splice(availableAppStates.indexOf("email"), 1);
101
- yield put(updateAvailableAppStatesAction(availableAppStates));
100
+ const emailAppStateIndex = availableAppStates.indexOf("email");
101
+ if (emailAppStateIndex > -1) {
102
+ availableAppStates.splice(emailAppStateIndex, 1);
103
+ yield put(updateAvailableAppStatesAction(availableAppStates));
104
+ }
102
105
  if (!inBackground)
103
106
  yield put(goNextPageAction());
104
107
  yield put(setUserEmailSucceeded());
@@ -9,6 +9,6 @@ export const selectUserEmail = createSelector((state) => state.user && state.use
9
9
  : false);
10
10
  export const isLevelAccessibleForUser = createSelector((state, level) => {
11
11
  const currentUserLevel = state.user ? state.user.level : "GUEST";
12
- const levelEnum = ["GUEST", "USER", "MANAGER", "OPS", "ADMIN", "SUPER"];
12
+ const levelEnum = ["GUEST", "USER", "MANAGER", "ADMIN", "OPS", "SUPER"];
13
13
  return levelEnum.indexOf(level) <= levelEnum.indexOf(currentUserLevel);
14
14
  }, (state, level) => (state.user ? `${state.user.level}-${level}` : false));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/wizardx-core",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "author": "Moncef Hammou (moncef@legalplace.fr)",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -92,5 +92,5 @@
92
92
  "*.test.ts",
93
93
  "*.test.tsx"
94
94
  ],
95
- "gitHead": "91c2fbffa238edebf2874a844920628bebebd006"
95
+ "gitHead": "5a5dc07e6ba7a8da5dba96248ee9c1c1213585fd"
96
96
  }