@streamscloud/embeddable 16.0.4 → 16.0.6

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.
@@ -33,4 +33,4 @@ const initHost = (node) => {
33
33
  };
34
34
  </script>
35
35
 
36
- <div class="streams-player-host" use:initHost></div>
36
+ <div class="media-page-host" use:initHost></div>
@@ -81,16 +81,22 @@ const productLinkMounted = (node, productModel) => {
81
81
  {/each}
82
82
  {/if}
83
83
  {/snippet}
84
- {#if productModel && enrichedLink}
85
- <a
86
- class="stream-slot-content-product-link"
87
- href={enrichedLink.href}
88
- onclick={handleProductClick}
89
- target="_blank"
90
- rel="noopener noreferrer"
91
- use:productLinkMounted={productModel}>
92
- {@render slotContent()}
93
- </a>
84
+ {#if productModel}
85
+ {#if enrichedLink}
86
+ <a
87
+ class="stream-slot-content-product-link"
88
+ href={enrichedLink.href}
89
+ onclick={handleProductClick}
90
+ target="_blank"
91
+ rel="noopener noreferrer"
92
+ use:productLinkMounted={productModel}>
93
+ {@render slotContent()}
94
+ </a>
95
+ {:else}
96
+ <button type="button" class="stream-slot-content-product-link" onclick={handleProductClick} use:productLinkMounted={productModel}>
97
+ {@render slotContent()}
98
+ </button>
99
+ {/if}
94
100
  {:else}
95
101
  {@render slotContent()}
96
102
  {/if}
@@ -81,6 +81,7 @@ const styles = $derived.by(() => {
81
81
  --sc-mc-color--text-secondary: light-dark(#6b7280, #d1d5db);
82
82
  --sc-mc-color--text-white: #ffffff;
83
83
  --sc-mc-color--text-white-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.05);
84
+ color: var(--sc-mc-color--text-primary);
84
85
  /* Player brand colors — overridable via --sc-player--{light|dark}--{name} custom properties */
85
86
  --sc-player--background: light-dark(
86
87
  var(--sc-player--light--background, rgb(from var(--sc-mc-color--bg-screen) r g b / 90%)),
@@ -128,10 +129,14 @@ const styles = $derived.by(() => {
128
129
  height: 100%;
129
130
  min-height: 100%;
130
131
  max-height: 100%;
132
+ box-sizing: border-box;
131
133
  container-type: inline-size;
132
134
  display: flex;
133
135
  flex-direction: column;
136
+ font: 400 16px Inter, sans-serif, arial;
137
+ line-height: 1.15;
134
138
  position: relative;
139
+ text-align: initial;
135
140
  }
136
141
  .shadow-root:before {
137
142
  content: "";
@@ -38,6 +38,8 @@
38
38
  --sc-mc-color--text-white: #{colors.$color-white};
39
39
  --sc-mc-color--text-white-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.05);
40
40
 
41
+ color: var(--sc-mc-color--text-primary);
42
+
41
43
  /* Player brand colors — overridable via --sc-player--{light|dark}--{name} custom properties */
42
44
  --sc-player--background: light-dark(
43
45
  var(--sc-player--light--background, rgb(from var(--sc-mc-color--bg-screen) r g b / 90%)),
@@ -10,11 +10,4 @@ export const createShadowRoot = (host) => {
10
10
  };
11
11
  const prepareShadowRootHost = (host) => {
12
12
  host.style.all = 'unset';
13
- host.style.lineHeight = '1.15';
14
- host.style.font = '16px Inter, sans-serif, arial';
15
- host.style.fontWeight = '400';
16
- host.style.margin = '0';
17
- host.style.boxSizing = 'border-box';
18
- host.style.textAlign = 'initial';
19
- host.style.color = 'var(--sc-mc-color--text-primary)';
20
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "16.0.4",
3
+ "version": "16.0.6",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",
@@ -133,7 +133,7 @@
133
133
  }
134
134
  },
135
135
  "peerDependencies": {
136
- "@streamscloud/kit": "^0.1.7",
136
+ "@streamscloud/kit": "^0.1.8",
137
137
  "@streamscloud/streams-analytics-collector": "^4.0.1",
138
138
  "svelte": "^5.51.0"
139
139
  },
@@ -149,7 +149,7 @@
149
149
  "@graphql-codegen/typescript": "^5.0.7",
150
150
  "@graphql-codegen/typescript-operations": "^5.0.7",
151
151
  "@graphql-typed-document-node/core": "^3.2.0",
152
- "@streamscloud/kit": "^0.1.7",
152
+ "@streamscloud/kit": "^0.1.8",
153
153
  "@streamscloud/streams-analytics-collector": "^4.0.1",
154
154
  "@sveltejs/package": "^2.5.7",
155
155
  "@sveltejs/vite-plugin-svelte": "^6.2.4",