@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.
@@ -28,6 +28,6 @@ export declare class BrandColors {
28
28
  set: (init: {
29
29
  light: IBrandColorsInit | null;
30
30
  dark: IBrandColorsInit | null;
31
- }) => void;
31
+ } | null) => void;
32
32
  }
33
33
  export declare const brandColors: BrandColors;
@@ -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.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 };
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;
@@ -42,5 +42,5 @@ export type MediaCenterCategoryTagModel = {
42
42
  fontColor: string;
43
43
  backgroundColor: string;
44
44
  } | null;
45
- };
45
+ } | null;
46
46
  };
@@ -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.light}
90
- {@const darkColors = category.value.tag.colorScheme.dark}
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}
@@ -10,8 +10,7 @@ let { id, media, autoplay = 'on-appearance', on } = $props();
10
10
  {:else}
11
11
  <Video
12
12
  src={item.url}
13
- poster={item.thumbnailUrl}
14
- controls={false}
13
+ poster={null}
15
14
  autoplay={autoplay}
16
15
  loop={true}
17
16
  id={id}
@@ -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={media.thumbnailUrl} inert={!!on?.click} />
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.0",
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.23",
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",