@trackunit/react-core-contexts-api 0.2.91-alpha-acd06a6798.0 → 0.2.91
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 +1 -1
- package/src/index.d.ts +0 -1
- package/src/globalSelectionContext.d.ts +0 -18
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -4,7 +4,6 @@ export * from "./assetSortingContext";
|
|
4
4
|
export * from "./currentUserContext";
|
5
5
|
export * from "./environmentContext";
|
6
6
|
export * from "./filterBarContext";
|
7
|
-
export * from "./globalSelectionContext";
|
8
7
|
export * from "./navigationContext";
|
9
8
|
export * from "./oemBrandingContext";
|
10
9
|
export * from "./toastContext";
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export interface IGlobalSelectionContext {
|
2
|
-
/**
|
3
|
-
* Details about the globally selected entity and its type
|
4
|
-
* returns `null` if no selection currently.
|
5
|
-
*/
|
6
|
-
selection: Readonly<SiteSelection | GroupSelection> | null;
|
7
|
-
}
|
8
|
-
export interface SiteSelection extends TypedSelection<"site"> {
|
9
|
-
siteId: string;
|
10
|
-
}
|
11
|
-
export interface GroupSelection extends TypedSelection<"group"> {
|
12
|
-
groupId: string;
|
13
|
-
}
|
14
|
-
interface TypedSelection<Type extends string> {
|
15
|
-
type: Type;
|
16
|
-
displayName: string;
|
17
|
-
}
|
18
|
-
export {};
|