@streamscloud/embeddable 6.3.8 → 6.3.10
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.
|
@@ -34,15 +34,17 @@ let { ad, inert = false } = $props();
|
|
|
34
34
|
</div>
|
|
35
35
|
<div class="ad-card__button-container">
|
|
36
36
|
{#if ad.ctaButton}
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
<div class="ad-card__button">
|
|
38
|
+
<Button
|
|
39
|
+
size={ButtonSize.Standard}
|
|
40
|
+
on={{ click: () => ad.ctaButton && window.open(ad.ctaButton.url, '_blank') }}
|
|
41
|
+
--button--font--size="1em"
|
|
42
|
+
--button--font--color={ad.ctaButton.textColor}
|
|
43
|
+
--button--background={ad.ctaButton.background}
|
|
44
|
+
--button--min-width="100%">
|
|
45
|
+
<span class="ad-card__button-text">{ad.ctaButton.text}</span>
|
|
46
|
+
</Button>
|
|
47
|
+
</div>
|
|
46
48
|
{/if}
|
|
47
49
|
</div>
|
|
48
50
|
</div>
|
|
@@ -60,13 +62,16 @@ let { ad, inert = false } = $props();
|
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
.ad-card {
|
|
65
|
+
--image--object-fit: cover;
|
|
66
|
+
--image--width: auto;
|
|
67
|
+
--image--height: auto;
|
|
63
68
|
width: 100%;
|
|
64
69
|
height: max-content;
|
|
65
70
|
display: flex;
|
|
66
71
|
flex-direction: column;
|
|
67
72
|
position: relative;
|
|
68
73
|
container-type: inline-size;
|
|
69
|
-
aspect-ratio:
|
|
74
|
+
aspect-ratio: 9/16;
|
|
70
75
|
color: #000000;
|
|
71
76
|
background-color: rgba(255, 255, 255, 0.9);
|
|
72
77
|
border: 0.038125rem solid #f2f2f3;
|
|
@@ -93,7 +98,6 @@ let { ad, inert = false } = $props();
|
|
|
93
98
|
width: 100%;
|
|
94
99
|
--image--width: 100%;
|
|
95
100
|
--image--height: 100%;
|
|
96
|
-
--image--object-fit: cover;
|
|
97
101
|
}
|
|
98
102
|
.ad-card__info {
|
|
99
103
|
display: grid;
|
|
@@ -128,6 +132,8 @@ let { ad, inert = false } = $props();
|
|
|
128
132
|
justify-content: flex-end;
|
|
129
133
|
align-items: center;
|
|
130
134
|
min-height: 3rem;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
min-width: 0;
|
|
131
137
|
/* Set 'container-type: inline-size;' to reference container*/
|
|
132
138
|
}
|
|
133
139
|
@container (width < 230px) {
|
|
@@ -142,6 +148,7 @@ let { ad, inert = false } = $props();
|
|
|
142
148
|
align-items: end;
|
|
143
149
|
min-height: 2.5rem;
|
|
144
150
|
margin-top: 0.125rem;
|
|
151
|
+
min-width: 0px;
|
|
145
152
|
/* Set 'container-type: inline-size;' to reference container*/
|
|
146
153
|
}
|
|
147
154
|
@container (width < 230px) {
|
|
@@ -187,12 +194,14 @@ let { ad, inert = false } = $props();
|
|
|
187
194
|
}
|
|
188
195
|
}
|
|
189
196
|
.ad-card__price {
|
|
190
|
-
font-size: 1.
|
|
197
|
+
font-size: 1.6875rem;
|
|
191
198
|
font-weight: 700;
|
|
192
199
|
text-align: right;
|
|
193
200
|
display: flex;
|
|
194
201
|
align-items: end;
|
|
195
202
|
gap: 0.625rem;
|
|
203
|
+
min-width: 0;
|
|
204
|
+
white-space: nowrap;
|
|
196
205
|
/* Set 'container-type: inline-size;' to reference container*/
|
|
197
206
|
}
|
|
198
207
|
@container (width < 230px) {
|
|
@@ -205,11 +214,15 @@ let { ad, inert = false } = $props();
|
|
|
205
214
|
font-weight: 400;
|
|
206
215
|
font-style: normal;
|
|
207
216
|
font-size: 0.75rem;
|
|
208
|
-
line-height: 1.
|
|
217
|
+
line-height: 1.09125rem;
|
|
209
218
|
letter-spacing: 0;
|
|
210
219
|
text-align: right;
|
|
211
220
|
color: #6b7280;
|
|
212
221
|
white-space: nowrap;
|
|
222
|
+
overflow: hidden;
|
|
223
|
+
text-overflow: ellipsis;
|
|
224
|
+
flex: 1 1 auto;
|
|
225
|
+
min-width: 0;
|
|
213
226
|
/* Set 'container-type: inline-size;' to reference container*/
|
|
214
227
|
}
|
|
215
228
|
@container (width < 230px) {
|
|
@@ -217,4 +230,11 @@ let { ad, inert = false } = $props();
|
|
|
217
230
|
font-size: 0.625rem;
|
|
218
231
|
line-height: 0.875rem;
|
|
219
232
|
}
|
|
233
|
+
}
|
|
234
|
+
.ad-card__button {
|
|
235
|
+
width: 100%;
|
|
236
|
+
}
|
|
237
|
+
.ad-card__button :global(*) {
|
|
238
|
+
width: 100%;
|
|
239
|
+
--button--min-width: 100%;
|
|
220
240
|
}</style>
|
|
@@ -6,7 +6,7 @@ export declare class InternalStreamAnalyticsHandler implements IStreamAnalyticsH
|
|
|
6
6
|
trackStreamPageView: (pageId: string, streamId: string) => void;
|
|
7
7
|
trackStreamEngagementTime: (streamId: string, engagementTime: number) => void;
|
|
8
8
|
trackStreamScrollDepth: (streamId: string, scrollDepth: number) => void;
|
|
9
|
-
trackStreamProductImpression: (productId: string, streamId: string) =>
|
|
9
|
+
trackStreamProductImpression: (productId: string, streamId: string) => void;
|
|
10
10
|
trackStreamProductClicked: (productId: string, streamId: string) => void;
|
|
11
11
|
reportPageVideoViews: (videoId: string, streamId: string) => void;
|
|
12
12
|
trackShortVideoView: (videoId: string) => void;
|