@trackunit/react-core-contexts-api 0.2.32 → 0.2.34
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/oemBrandingContext.d.ts +10 -4
package/package.json
CHANGED
@@ -7,13 +7,13 @@ export interface OemBranding {
|
|
7
7
|
*/
|
8
8
|
logo: boolean;
|
9
9
|
/**
|
10
|
-
* Weather or not the
|
10
|
+
* Weather or not the darkLogo exist for this brand.
|
11
11
|
*/
|
12
12
|
darkLogo: boolean;
|
13
13
|
/**
|
14
14
|
* Weather or not the banner exist for this brand.
|
15
15
|
*/
|
16
|
-
|
16
|
+
assetBanner: boolean;
|
17
17
|
/**
|
18
18
|
* The color to use for this brand if it is set.
|
19
19
|
*/
|
@@ -31,9 +31,15 @@ export interface OemBranding {
|
|
31
31
|
*/
|
32
32
|
canProfiles?: string[];
|
33
33
|
};
|
34
|
+
/**
|
35
|
+
* Default list of asset model images.
|
36
|
+
*/
|
37
|
+
modelImages?: {
|
38
|
+
[key: string]: string;
|
39
|
+
};
|
34
40
|
}
|
35
|
-
export type OemBrandingImageType = "logo" | "darkLogo" | "
|
41
|
+
export type OemBrandingImageType = "logo" | "darkLogo" | "assetBanner" | "platformLogo" | "modelImages";
|
36
42
|
export interface IOemBrandingContext {
|
37
43
|
getOemBranding: (brand: string) => Promise<OemBranding | null>;
|
38
|
-
getOemImage: (imageType: OemBrandingImageType, brand: string) => Promise<string | null>;
|
44
|
+
getOemImage: (imageType: OemBrandingImageType, brand: string, model?: string) => Promise<string | null>;
|
39
45
|
}
|