@centreon/ui-context 24.7.1 → 24.7.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": "24.7.1",
3
+ "version": "24.7.2",
4
4
  "description": "Centreon UI shared context",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [],
package/src/index.ts CHANGED
@@ -11,6 +11,9 @@ export {
11
11
  platformFeaturesAtom,
12
12
  featureFlagsDerivedAtom
13
13
  } from './platformFeauresAtom';
14
+
15
+ export { platformVersionsAtom } from './platformVersionsAtom';
16
+
14
17
  export { isOnPublicPageAtom } from './isOnPublicPageAtom';
15
18
  export { additionalResourcesAtom } from './additionalResources';
16
19
  export {
@@ -0,0 +1,5 @@
1
+ import { atom } from 'jotai';
2
+
3
+ import { PlatformVersions } from './types';
4
+
5
+ export const platformVersionsAtom = atom<PlatformVersions | null>(null);
package/src/types.ts CHANGED
@@ -90,6 +90,7 @@ export interface FeatureFlags {
90
90
  notification?: boolean;
91
91
  resourceStatusFilterRevamp?: boolean;
92
92
  resourceStatusTreeView?: boolean;
93
+ resouresTableOpenTickets: boolean;
93
94
  vault?: boolean;
94
95
  }
95
96
 
@@ -129,3 +130,16 @@ export interface FederatedModule {
129
130
  remoteEntry: string;
130
131
  remoteUrl?: string;
131
132
  }
133
+
134
+ interface Version {
135
+ fix: string;
136
+ major: string;
137
+ minor: string;
138
+ version: string;
139
+ }
140
+
141
+ export interface PlatformVersions {
142
+ modules: Record<string, Version>;
143
+ web: Version;
144
+ widgets: Record<string, Version | null>;
145
+ }