@centreon/ui-context 24.8.0 → 24.8.1

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,13 +1,14 @@
1
1
  {
2
2
  "name": "@centreon/ui-context",
3
- "version": "24.8.0",
3
+ "version": "24.8.1",
4
4
  "description": "Centreon UI shared context",
5
5
  "main": "src/index.ts",
6
6
  "keywords": [],
7
7
  "author": "centreon@centreon.com",
8
- "license": "GPL-2.0",
8
+ "license": "MIT",
9
9
  "scripts": {
10
- "eslint": "eslint ./src --ext .ts --max-warnings 0",
11
- "eslint:fix": "pnpm eslint --fix"
10
+ "lint": "biome check ./src/ --error-on-warnings",
11
+ "lint:fix": "pnpm lint --fix",
12
+ "lint:ci": "biome ci ./src/ --error-on-warnings"
12
13
  }
13
14
  }
package/src/defaults.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { User, ThemeMode, ListingVariant } from './types';
1
+ import { ListingVariant, ThemeMode, User } from './types';
2
2
 
3
3
  const defaultUser: User = {
4
4
  alias: '',
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
@@ -91,6 +91,7 @@ export interface FeatureFlags {
91
91
  notification?: boolean;
92
92
  resourceStatusFilterRevamp?: boolean;
93
93
  resourceStatusTreeView?: boolean;
94
+ resouresTableOpenTickets: boolean;
94
95
  vault?: boolean;
95
96
  }
96
97
 
@@ -130,3 +131,16 @@ export interface FederatedModule {
130
131
  remoteEntry: string;
131
132
  remoteUrl?: string;
132
133
  }
134
+
135
+ interface Version {
136
+ fix: string;
137
+ major: string;
138
+ minor: string;
139
+ version: string;
140
+ }
141
+
142
+ export interface PlatformVersions {
143
+ modules: Record<string, Version>;
144
+ web: Version;
145
+ widgets: Record<string, Version | null>;
146
+ }