@centreon/ui-context 24.10.2 → 24.11.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": "24.10.2",
3
+ "version": "24.11.0",
4
4
  "description": "Centreon UI shared context",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [],
package/src/index.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export { default as userAtom } from './userAtom';
2
- export { default as profileAtom } from './profileAtom';
3
2
  export { default as aclAtom } from './aclAtom';
4
3
  export { default as downtimeAtom } from './downtimeAtom';
5
4
  export { default as refreshIntervalAtom } from './refreshIntervalAtom';
@@ -24,7 +23,6 @@ export {
24
23
 
25
24
  export type {
26
25
  User,
27
- Profile,
28
26
  UserContext,
29
27
  ActionAcl,
30
28
  Actions,
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Dispatch, SetStateAction } from 'react';
1
+ import type { Dispatch, SetStateAction } from 'react';
2
2
 
3
3
  export enum ListingVariant {
4
4
  compact = 'compact',
@@ -34,10 +34,6 @@ export interface User {
34
34
  user_interface_density: ListingVariant;
35
35
  }
36
36
 
37
- export interface Profile {
38
- favoriteDashboards?: Array<number>;
39
- }
40
-
41
37
  export enum ThemeMode {
42
38
  dark = 'dark',
43
39
  light = 'light'
@@ -92,6 +88,7 @@ export interface FeatureFlags {
92
88
  adExclusionPeriods?: boolean;
93
89
  notification?: boolean;
94
90
  vault?: boolean;
91
+ mapVisxViewer?: boolean;
95
92
  }
96
93
 
97
94
  export interface PlatformFeatures {
@@ -1,7 +0,0 @@
1
- import { atom } from 'jotai';
2
-
3
- import { Profile } from '.';
4
-
5
- const profileAtom = atom<Profile>({});
6
-
7
- export default profileAtom;