@fluxo-dev/state 25.1.3 → 25.1.4

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/index.esm.js CHANGED
@@ -165,6 +165,7 @@ const initialState = {
165
165
  hasAdminAccess: false,
166
166
  hasDeveloperAccess: false,
167
167
  hasDataAnalystAccess: false,
168
+ userId: '',
168
169
  mode: 'single-session',
169
170
  routes: {}
170
171
  };
@@ -218,6 +219,7 @@ const layoutSlice = createSlice({
218
219
  state.hasAdminAccess = action.payload.admin;
219
220
  state.hasDeveloperAccess = action.payload.developer;
220
221
  state.hasDataAnalystAccess = action.payload.dataAnalyst;
222
+ state.userId = action.payload.userId;
221
223
  },
222
224
  setMode(state, action) {
223
225
  state.mode = action.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxo-dev/state",
3
- "version": "25.1.3",
3
+ "version": "25.1.4",
4
4
  "peerDependencies": {
5
5
  "react-redux": "^8.0.5",
6
6
  "@reduxjs/toolkit": "^1.9.1"
@@ -2,6 +2,7 @@ export declare const openSearchPanel: import("@reduxjs/toolkit").ActionCreatorWi
2
2
  admin: boolean;
3
3
  developer: boolean;
4
4
  dataAnalyst: boolean;
5
+ userId: string;
5
6
  }, "layout/setSysRoleAccess">, setMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<"single-session" | "multi-session", "layout/setMode">, setRoutes: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
6
7
  [id: string]: {
7
8
  title: string | undefined;
@@ -23,6 +24,7 @@ declare const _default: import("redux").Reducer<{
23
24
  hasAdminAccess: boolean;
24
25
  hasDeveloperAccess: boolean;
25
26
  hasDataAnalystAccess: boolean;
27
+ userId: string;
26
28
  mode: "single-session" | "multi-session";
27
29
  routes: {
28
30
  [id: string]: {