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