@centreon/ui-context 24.6.1 → 24.7.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.6.1",
3
+ "version": "24.7.0",
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
@@ -129,3 +129,16 @@ export interface FederatedModule {
129
129
  remoteEntry: string;
130
130
  remoteUrl?: string;
131
131
  }
132
+
133
+ interface Version {
134
+ fix: string;
135
+ major: string;
136
+ minor: string;
137
+ version: string;
138
+ }
139
+
140
+ export interface PlatformVersions {
141
+ modules: Record<string, Version>;
142
+ web: Version;
143
+ widgets: Record<string, Version | null>;
144
+ }