@streamscloud/embeddable 16.3.0 → 16.3.1-1775562057401
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/dist/posts/post-viewer/media/post-media.svelte +1 -2
- package/dist/ui/media-items/media-item-view/cmp.media-item-view.svelte +1 -1
- package/package.json +2 -2
|
@@ -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}
|
|
@@ -45,7 +45,7 @@ const parsedRatio = $derived.by(() => {
|
|
|
45
45
|
</div>
|
|
46
46
|
{:else}
|
|
47
47
|
<div class="media-item-view__video" onclick={handleClick} onkeydown={() => {}} role="none">
|
|
48
|
-
<Video src={media.url} poster={
|
|
48
|
+
<Video src={media.url} poster={null} inert={!!on?.click} />
|
|
49
49
|
</div>
|
|
50
50
|
{/if}
|
|
51
51
|
{/snippet}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamscloud/embeddable",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.1-1775562057401",
|
|
4
4
|
"author": "StreamsCloud",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"@graphql-codegen/typescript": "^5.0.7",
|
|
159
159
|
"@graphql-codegen/typescript-operations": "^5.0.7",
|
|
160
160
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
161
|
-
"@streamscloud/kit": "^0.2.
|
|
161
|
+
"@streamscloud/kit": "^0.2.27-1775513705074",
|
|
162
162
|
"@streamscloud/streams-analytics-collector": "^4.0.1",
|
|
163
163
|
"@sveltejs/package": "^2.5.7",
|
|
164
164
|
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|