@trackunit/react-core-contexts-api 0.2.31 → 0.2.32

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": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
package/src/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from "./assetSortingContext";
3
3
  export * from "./currentUserContext";
4
4
  export * from "./environmentContext";
5
5
  export * from "./globalSelectionContext";
6
+ export * from "./oemBrandingContext";
6
7
  export * from "./toastContext";
7
8
  export * from "./tokenContext";
8
9
  export * from "./userSubscriptionContext";
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Branding information for an asset
3
+ */
4
+ export interface OemBranding {
5
+ /**
6
+ * Weather or not the logo exist for this brand.
7
+ */
8
+ logo: boolean;
9
+ /**
10
+ * Weather or not the darklogo exist for this brand.
11
+ */
12
+ darkLogo: boolean;
13
+ /**
14
+ * Weather or not the banner exist for this brand.
15
+ */
16
+ banner: boolean;
17
+ /**
18
+ * The color to use for this brand if it is set.
19
+ */
20
+ color?: string;
21
+ /**
22
+ * Weather or not the platformLogo exist for this brand.
23
+ */
24
+ platformLogo: boolean;
25
+ /**
26
+ * The conditions for the OEM branding to be applied
27
+ */
28
+ conditions?: {
29
+ /**
30
+ * The can profiles for the OEM branding to be applied
31
+ */
32
+ canProfiles?: string[];
33
+ };
34
+ }
35
+ export type OemBrandingImageType = "logo" | "darkLogo" | "banner" | "platformLogo";
36
+ export interface IOemBrandingContext {
37
+ getOemBranding: (brand: string) => Promise<OemBranding | null>;
38
+ getOemImage: (imageType: OemBrandingImageType, brand: string) => Promise<string | null>;
39
+ }