@streamscloud/embeddable 16.3.0 → 16.3.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/dist/core/theme/brand-colors.svelte.d.ts +1 -1
- package/dist/core/theme/brand-colors.svelte.js +10 -10
- package/dist/external-api/data-providers/internal-media-center-data-provider.svelte.js +2 -8
- package/dist/media-center/config/types.d.ts +2 -2
- package/dist/media-center/media-center/handlers/categories-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/menu/menu.svelte +2 -2
- package/package.json +1 -1
|
@@ -11,16 +11,16 @@ export class BrandColors {
|
|
|
11
11
|
salePrice = $state.raw(EMPTY_PAIR);
|
|
12
12
|
sidebarBackground = $state.raw(EMPTY_PAIR);
|
|
13
13
|
set = (init) => {
|
|
14
|
-
this.brand = { light: init
|
|
15
|
-
this.button = { light: init
|
|
16
|
-
this.buttonInactive = { light: init
|
|
17
|
-
this.cardBackground = { light: init
|
|
18
|
-
this.cardButton = { light: init
|
|
19
|
-
this.menuBackground = { light: init
|
|
20
|
-
this.playerBackground = { light: init
|
|
21
|
-
this.price = { light: init
|
|
22
|
-
this.salePrice = { light: init
|
|
23
|
-
this.sidebarBackground = { light: init
|
|
14
|
+
this.brand = { light: init?.light?.brand ?? null, dark: init?.dark?.brand ?? null };
|
|
15
|
+
this.button = { light: init?.light?.button ?? null, dark: init?.dark?.button ?? null };
|
|
16
|
+
this.buttonInactive = { light: init?.light?.buttonInactive ?? null, dark: init?.dark?.buttonInactive ?? null };
|
|
17
|
+
this.cardBackground = { light: init?.light?.cardBackground ?? null, dark: init?.dark?.cardBackground ?? null };
|
|
18
|
+
this.cardButton = { light: init?.light?.cardButton ?? null, dark: init?.dark?.cardButton ?? null };
|
|
19
|
+
this.menuBackground = { light: init?.light?.menuBackground ?? null, dark: init?.dark?.menuBackground ?? null };
|
|
20
|
+
this.playerBackground = { light: init?.light?.playerBackground ?? null, dark: init?.dark?.playerBackground ?? null };
|
|
21
|
+
this.price = { light: init?.light?.price ?? null, dark: init?.dark?.price ?? null };
|
|
22
|
+
this.salePrice = { light: init?.light?.salePrice ?? null, dark: init?.dark?.salePrice ?? null };
|
|
23
|
+
this.sidebarBackground = { light: init?.light?.sidebarBackground ?? null, dark: init?.dark?.sidebarBackground ?? null };
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export const brandColors = new BrandColors();
|
|
@@ -41,17 +41,11 @@ export class InternalMediaCenterDataProvider {
|
|
|
41
41
|
tag: item.tag
|
|
42
42
|
? {
|
|
43
43
|
text: item.tag.text,
|
|
44
|
-
colorScheme:
|
|
45
|
-
light: item.tag.colorScheme?.light ?? null,
|
|
46
|
-
dark: item.tag.colorScheme?.dark ?? null
|
|
47
|
-
}
|
|
44
|
+
colorScheme: item.tag.colorScheme
|
|
48
45
|
}
|
|
49
46
|
: null
|
|
50
47
|
})),
|
|
51
|
-
playerColors:
|
|
52
|
-
light: config.colorScheme?.light ?? null,
|
|
53
|
-
dark: config.colorScheme?.dark ?? null
|
|
54
|
-
},
|
|
48
|
+
playerColors: config.colorScheme,
|
|
55
49
|
moments: config.moments
|
|
56
50
|
};
|
|
57
51
|
}
|
|
@@ -94,13 +94,13 @@ export type MediaCenterModel = {
|
|
|
94
94
|
fontColor: string;
|
|
95
95
|
backgroundColor: string;
|
|
96
96
|
} | null;
|
|
97
|
-
};
|
|
97
|
+
} | null;
|
|
98
98
|
} | null;
|
|
99
99
|
}[];
|
|
100
100
|
playerColors: {
|
|
101
101
|
light: MediaCenterBrandColors | null;
|
|
102
102
|
dark: MediaCenterBrandColors | null;
|
|
103
|
-
};
|
|
103
|
+
} | null;
|
|
104
104
|
};
|
|
105
105
|
export type MediaCenterBrandColors = {
|
|
106
106
|
brand: string | null;
|
|
@@ -86,8 +86,8 @@ const handleCategoryExpaned = (e, categoryId) => {
|
|
|
86
86
|
{category.value.name}
|
|
87
87
|
</div>
|
|
88
88
|
{#if category.value.tag}
|
|
89
|
-
{@const lightColors = category.value.tag.colorScheme
|
|
90
|
-
{@const darkColors = category.value.tag.colorScheme
|
|
89
|
+
{@const lightColors = category.value.tag.colorScheme?.light}
|
|
90
|
+
{@const darkColors = category.value.tag.colorScheme?.dark}
|
|
91
91
|
<div
|
|
92
92
|
class="menu-item__tag"
|
|
93
93
|
style:--_tag--light--bg={lightColors?.backgroundColor}
|