@centreon/ui-context 25.1.1 → 25.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui-context",
3
- "version": "25.1.1",
3
+ "version": "25.2.0",
4
4
  "description": "Centreon UI shared context",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [],
package/src/index.ts CHANGED
@@ -7,6 +7,8 @@ export { default as cloudServicesAtom } from './cloudServicesAtom';
7
7
  export { default as acknowledgementAtom } from './acknowledgementAtom';
8
8
  export { default as resourceStorageOptimizationModeAtom } from './resourceStorageOptimizationMode';
9
9
  export { default as platformNameAtom } from './platformNameAtom';
10
+ export { default as userPermissionsAtom } from './userPermissionsAtom';
11
+
10
12
  export { ThemeMode, ListingVariant, DashboardGlobalRole } from './types';
11
13
  export {
12
14
  platformFeaturesAtom,
@@ -34,5 +36,6 @@ export type {
34
36
  DashboardRolesAndPermissions,
35
37
  FeatureFlags,
36
38
  PlatformFeatures,
37
- AdditionalResource
39
+ AdditionalResource,
40
+ UserPermissions
38
41
  } from './types';
package/src/types.ts CHANGED
@@ -140,3 +140,8 @@ export interface PlatformVersions {
140
140
  web: Version;
141
141
  widgets: Record<string, Version | null>;
142
142
  }
143
+
144
+ export interface UserPermissions {
145
+ top_counter: boolean;
146
+ poller_statistics: boolean;
147
+ }
@@ -0,0 +1,6 @@
1
+ import { atom } from 'jotai';
2
+ import { UserPermissions } from '.';
3
+
4
+ const userPermissionsAtom = atom<UserPermissions | null>(null);
5
+
6
+ export default userPermissionsAtom;