@centreon/ui-context 24.4.2 → 24.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui-context",
3
- "version": "24.4.2",
3
+ "version": "24.4.4",
4
4
  "description": "Centreon UI shared context",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [],
package/src/index.ts CHANGED
@@ -6,11 +6,11 @@ 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 { ThemeMode, ListingVariant, DashboardGlobalRole } from './types';
9
+ export { ThemeMode, ListingVariant } from './types';
10
10
  export {
11
11
  platformFeaturesAtom,
12
12
  featureFlagsDerivedAtom
13
- } from './platformFeauresAtom';
13
+ } from './platformFeaturesAtom';
14
14
 
15
15
  export type {
16
16
  User,
@@ -21,7 +21,6 @@ export type {
21
21
  CloudServices,
22
22
  Acknowledgement,
23
23
  Acl,
24
- DashboardRolesAndPermissions,
25
24
  FeatureFlags,
26
25
  PlatformFeatures
27
26
  } from './types';
@@ -3,6 +3,7 @@ import { atom } from 'jotai';
3
3
  import { FeatureFlags, PlatformFeatures } from './types';
4
4
 
5
5
  export const platformFeaturesAtom = atom<PlatformFeatures | null>(null);
6
+
6
7
  export const featureFlagsDerivedAtom = atom<FeatureFlags | null>(
7
8
  (get): FeatureFlags => {
8
9
  const platformFeatures = get(platformFeaturesAtom);
package/src/types.ts CHANGED
@@ -5,22 +5,8 @@ export enum ListingVariant {
5
5
  extended = 'extended'
6
6
  }
7
7
 
8
- export enum DashboardGlobalRole {
9
- administrator = 'administrator',
10
- creator = 'creator',
11
- viewer = 'viewer'
12
- }
13
-
14
- export interface DashboardRolesAndPermissions {
15
- createDashboards: boolean;
16
- globalUserRole: DashboardGlobalRole;
17
- manageAllDashboards: boolean;
18
- viewDashboards: boolean;
19
- }
20
-
21
8
  export interface User {
22
9
  alias: string;
23
- dashboard?: DashboardRolesAndPermissions | null;
24
10
  default_page?: string | null;
25
11
  isExportButtonEnabled: boolean;
26
12
  locale: string;
@@ -85,7 +71,6 @@ export interface FeatureFlags {
85
71
  adExclusionPeriods?: boolean;
86
72
  dashboard?: boolean;
87
73
  notification?: boolean;
88
- resourceStatusFilterRevamp?: boolean;
89
74
  resourceStatusTreeView?: boolean;
90
75
  vault?: boolean;
91
76
  }