@streamscloud/embeddable 1.1.7 → 1.1.8

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.
@@ -1,444 +1,12 @@
1
- <svelte:options customElement={{ tag: 'stream-player', shadow: 'open' }} />
2
-
3
- <script lang="ts">import { StreamPlayer } from '../stream-player';
4
- import { StreamPlayerModalState } from './stream-player-modal-state.svelte';
5
- $effect(() => {
6
- document.getElementsByTagName('html')[0].style.overflow = StreamPlayerModalState.playerData ? 'hidden' : '';
1
+ <script lang="ts">import { mount, onMount } from 'svelte';
2
+ import { default as Modal } from './modal.svelte';
3
+ let host;
4
+ onMount(() => {
5
+ const root = host.attachShadow({ mode: 'open' });
6
+ mount(Modal, {
7
+ target: root
8
+ });
7
9
  });
8
10
  </script>
9
11
 
10
- {#if StreamPlayerModalState.playerData}
11
- <div class="stream-player-modal">
12
- <StreamPlayer
13
- streamId={StreamPlayerModalState.playerData.streamId}
14
- graphql={StreamPlayerModalState.playerData.graphql}
15
- localization={StreamPlayerModalState.playerData.localization}
16
- on={{ closePlayer: StreamPlayerModalState.close }} />
17
- </div>
18
- {/if}
19
-
20
- <style>@keyframes fadeIn {
21
- 0% {
22
- opacity: 1;
23
- }
24
- 50% {
25
- opacity: 0.4;
26
- }
27
- 100% {
28
- opacity: 1;
29
- }
30
- }
31
- .stream-player-modal {
32
- all: unset;
33
- /**
34
- * 1. Correct the line height in all browsers.
35
- * 2. Prevent adjustments of font size after orientation changes in iOS.
36
- */
37
- line-height: 1.15; /* 1 */
38
- font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
39
- font-weight: 400;
40
- -webkit-text-size-adjust: 100%; /* 2 */
41
- margin: 0;
42
- box-sizing: border-box;
43
- text-align: initial;
44
- /* Reset browser styles */
45
- /*Default margins and paddings are removed*/
46
- /*Images are block-level*/
47
- /*Lists are unstyled*/
48
- /* Normalize styles */
49
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
50
- /* Document
51
- ========================================================================== */
52
- /**
53
- * Render the `main` element consistently in IE.
54
- */
55
- /**
56
- * Correct the font size and margin on `h1` elements within `section` and
57
- * `article` contexts in Chrome, Firefox, and Safari.
58
- */
59
- /* Grouping content
60
- ========================================================================== */
61
- /**
62
- * 1. Add the correct box sizing in Firefox.
63
- * 2. Show the overflow in Edge and IE.
64
- */
65
- /**
66
- * 1. Correct the inheritance and scaling of font size in all browsers.
67
- * 2. Correct the odd `em` font sizing in all browsers.
68
- */
69
- /* Text-level semantics
70
- ========================================================================== */
71
- /**
72
- * Remove the gray background on active links in IE 10.
73
- */
74
- /**
75
- * 1. Remove the bottom border in Chrome 57-
76
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
77
- */
78
- /**
79
- * Add the correct font weight in Chrome, Edge, and Safari.
80
- */
81
- /**
82
- * 1. Correct the inheritance and scaling of font size in all browsers.
83
- * 2. Correct the odd `em` font sizing in all browsers.
84
- */
85
- /**
86
- * Add the correct font size in all browsers.
87
- */
88
- /**
89
- * Prevent `sub` and `sup` elements from affecting the line height in
90
- * all browsers.
91
- */
92
- /* Embedded content
93
- ========================================================================== */
94
- /**
95
- * Remove the border on images inside links in IE 10.
96
- */
97
- /* Forms
98
- ========================================================================== */
99
- /**
100
- * 1. Change the font styles in all browsers.
101
- * 2. Remove the margin in Firefox and Safari.
102
- */
103
- /**
104
- * Show the overflow in IE.
105
- * 1. Show the overflow in Edge.
106
- */
107
- /**
108
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
109
- * 1. Remove the inheritance of text transform in Firefox.
110
- */
111
- /**
112
- * Correct the inability to style clickable types in iOS and Safari.
113
- */
114
- /**
115
- * Remove the inner border and padding in Firefox.
116
- */
117
- /**
118
- * Restore the focus styles unset by the previous rule.
119
- */
120
- /**
121
- * Correct the padding in Firefox.
122
- */
123
- /**
124
- * 1. Correct the text wrapping in Edge and IE.
125
- * 2. Correct the color inheritance from `fieldset` elements in IE.
126
- * 3. Remove the padding so developers are not caught out when they zero out
127
- * `fieldset` elements in all browsers.
128
- */
129
- /**
130
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
131
- */
132
- /**
133
- * Remove the default vertical scrollbar in IE 10+.
134
- */
135
- /**
136
- * 1. Add the correct box sizing in IE 10.
137
- * 2. Remove the padding in IE 10.
138
- */
139
- /**
140
- * Correct the cursor style of increment and decrement buttons in Chrome.
141
- */
142
- /**
143
- * 1. Correct the odd appearance in Chrome and Safari.
144
- * 2. Correct the outline style in Safari.
145
- */
146
- /**
147
- * Remove the inner padding in Chrome and Safari on macOS.
148
- */
149
- /**
150
- * 1. Correct the inability to style clickable types in iOS and Safari.
151
- * 2. Change font properties to `inherit` in Safari.
152
- */
153
- /* Misc
154
- ========================================================================== */
155
- /**
156
- * Add the correct display in IE 10+.
157
- */
158
- /**
159
- * Add the correct display in IE 10.
160
- */
161
- position: fixed;
162
- top: 0;
163
- left: 0;
164
- bottom: 0;
165
- right: 0;
166
- z-index: 1000;
167
- }
168
- .stream-player-modal :global(a),
169
- .stream-player-modal :global(article),
170
- .stream-player-modal :global(aside),
171
- .stream-player-modal :global(blockquote),
172
- .stream-player-modal :global(body),
173
- .stream-player-modal :global(dd),
174
- .stream-player-modal :global(div),
175
- .stream-player-modal :global(dl),
176
- .stream-player-modal :global(dt),
177
- .stream-player-modal :global(figcaption),
178
- .stream-player-modal :global(figure),
179
- .stream-player-modal :global(footer),
180
- .stream-player-modal :global(form),
181
- .stream-player-modal :global(h1),
182
- .stream-player-modal :global(h2),
183
- .stream-player-modal :global(h3),
184
- .stream-player-modal :global(h4),
185
- .stream-player-modal :global(h5),
186
- .stream-player-modal :global(h6),
187
- .stream-player-modal :global(header),
188
- .stream-player-modal :global(html),
189
- .stream-player-modal :global(img),
190
- .stream-player-modal :global(li),
191
- .stream-player-modal :global(nav),
192
- .stream-player-modal :global(ol),
193
- .stream-player-modal :global(p),
194
- .stream-player-modal :global(section),
195
- .stream-player-modal :global(table),
196
- .stream-player-modal :global(td),
197
- .stream-player-modal :global(ul) {
198
- margin: 0;
199
- padding: 0;
200
- }
201
- .stream-player-modal :global(header),
202
- .stream-player-modal :global(section),
203
- .stream-player-modal :global(footer),
204
- .stream-player-modal :global(aside),
205
- .stream-player-modal :global(nav),
206
- .stream-player-modal :global(article),
207
- .stream-player-modal :global(figure),
208
- .stream-player-modal :global(figcaption) {
209
- display: block;
210
- }
211
- .stream-player-modal :global(img),
212
- .stream-player-modal :global(svg),
213
- .stream-player-modal :global(video),
214
- .stream-player-modal :global(canvas),
215
- .stream-player-modal :global(audio),
216
- .stream-player-modal :global(iframe),
217
- .stream-player-modal :global(embed),
218
- .stream-player-modal :global(object) {
219
- display: block;
220
- vertical-align: middle;
221
- max-width: 100%;
222
- }
223
- .stream-player-modal :global(table) {
224
- border-collapse: collapse;
225
- }
226
- .stream-player-modal :global(img) {
227
- border: none;
228
- height: auto;
229
- }
230
- .stream-player-modal :global(video) {
231
- outline: none;
232
- }
233
- .stream-player-modal :global(ul),
234
- .stream-player-modal :global(ol) {
235
- list-style: none;
236
- margin: 0;
237
- padding: 0;
238
- }
239
- .stream-player-modal :global(li) {
240
- list-style: inherit;
241
- }
242
- .stream-player-modal :global(input) {
243
- vertical-align: middle;
244
- min-width: 0;
245
- /* Chrome, Safari, Edge, Opera */
246
- }
247
- .stream-player-modal :global(input)::placeholder {
248
- color: var(--input--placeholder--color, #c1c1c1) !important;
249
- }
250
- .stream-player-modal :global(input):-webkit-autofill, .stream-player-modal :global(input):-webkit-autofill:hover, .stream-player-modal :global(input):-webkit-autofill:focus {
251
- -webkit-background-clip: text;
252
- }
253
- .stream-player-modal :global(input)::-webkit-outer-spin-button, .stream-player-modal :global(input)::-webkit-inner-spin-button {
254
- -webkit-appearance: none;
255
- margin: 0;
256
- }
257
- .stream-player-modal :global(textarea) {
258
- vertical-align: top;
259
- resize: vertical;
260
- scrollbar-color: var(--custom-scrollbar-color, #b0b0b0) var(--custom-scrollbar-background, #f1f1f1);
261
- scrollbar-width: thin;
262
- }
263
- .stream-player-modal :global(textarea)::-webkit-scrollbar {
264
- width: 3px;
265
- height: 3px;
266
- background: var(--custom-scrollbar-background, transparent);
267
- visibility: hidden;
268
- }
269
- .stream-player-modal :global(textarea)::-webkit-scrollbar-thumb {
270
- background: var(--custom-scrollbar-color, #b0b0b0);
271
- }
272
- .stream-player-modal :global(textarea)::placeholder {
273
- color: var(--input--placeholder--color, #c1c1c1) !important;
274
- }
275
- .stream-player-modal :global(input:focus),
276
- .stream-player-modal :global(textarea:focus) {
277
- outline: none;
278
- }
279
- .stream-player-modal :global(button),
280
- .stream-player-modal :global(input[type="submit"]) {
281
- cursor: pointer;
282
- -webkit-appearance: none;
283
- background-color: transparent;
284
- padding: 0;
285
- text-align: left;
286
- font: inherit;
287
- color: inherit;
288
- box-sizing: border-box;
289
- }
290
- .stream-player-modal :global(button):disabled,
291
- .stream-player-modal :global(input[type="submit"]):disabled {
292
- cursor: default;
293
- }
294
- .stream-player-modal :global(button):focus, .stream-player-modal :global(button):focus-visible,
295
- .stream-player-modal :global(input[type="submit"]):focus,
296
- .stream-player-modal :global(input[type="submit"]):focus-visible {
297
- outline: none;
298
- }
299
- .stream-player-modal :global(a) {
300
- color: inherit;
301
- text-decoration: none;
302
- transition: color linear 0.2s;
303
- }
304
- .stream-player-modal :global(*),
305
- .stream-player-modal :global(*:before),
306
- .stream-player-modal :global(*:after) {
307
- box-sizing: inherit;
308
- border-width: 0;
309
- border-style: solid;
310
- }
311
- .stream-player-modal :global(main) {
312
- display: block;
313
- }
314
- .stream-player-modal :global(h1) {
315
- font-size: 2em;
316
- margin: 0.67em 0;
317
- }
318
- .stream-player-modal :global(hr) {
319
- box-sizing: content-box; /* 1 */
320
- height: 0; /* 1 */
321
- overflow: visible; /* 2 */
322
- }
323
- .stream-player-modal :global(pre) {
324
- font-family: monospace, monospace; /* 1 */
325
- font-size: 1em; /* 2 */
326
- }
327
- .stream-player-modal :global(a) {
328
- background-color: transparent;
329
- }
330
- .stream-player-modal :global(abbr[title]) {
331
- border-bottom: none; /* 1 */
332
- text-decoration: underline; /* 2 */
333
- }
334
- .stream-player-modal :global(b),
335
- .stream-player-modal :global(strong) {
336
- font-weight: bolder;
337
- }
338
- .stream-player-modal :global(code),
339
- .stream-player-modal :global(kbd),
340
- .stream-player-modal :global(samp) {
341
- font-family: monospace, monospace; /* 1 */
342
- font-size: 1em; /* 2 */
343
- }
344
- .stream-player-modal :global(small) {
345
- font-size: 80%;
346
- }
347
- .stream-player-modal :global(sub),
348
- .stream-player-modal :global(sup) {
349
- font-size: 75%;
350
- line-height: 0;
351
- position: relative;
352
- vertical-align: baseline;
353
- }
354
- .stream-player-modal :global(sub) {
355
- bottom: -0.25em;
356
- }
357
- .stream-player-modal :global(sup) {
358
- top: -0.5em;
359
- }
360
- .stream-player-modal :global(img) {
361
- border-style: none;
362
- }
363
- .stream-player-modal :global(button),
364
- .stream-player-modal :global(input),
365
- .stream-player-modal :global(optgroup),
366
- .stream-player-modal :global(select),
367
- .stream-player-modal :global(textarea) {
368
- font-family: inherit; /* 1 */
369
- font-size: 100%; /* 1 */
370
- line-height: 1.15; /* 1 */
371
- margin: 0; /* 2 */
372
- }
373
- .stream-player-modal :global(button),
374
- .stream-player-modal :global(input) {
375
- /* 1 */
376
- overflow: visible;
377
- }
378
- .stream-player-modal :global(button),
379
- .stream-player-modal :global(select) {
380
- /* 1 */
381
- text-transform: none;
382
- }
383
- .stream-player-modal :global(button),
384
- .stream-player-modal :global([type="button"]),
385
- .stream-player-modal :global([type="reset"]),
386
- .stream-player-modal :global([type="submit"]) {
387
- -webkit-appearance: button;
388
- }
389
- .stream-player-modal :global(button::-moz-focus-inner),
390
- .stream-player-modal :global([type="button"]::-moz-focus-inner),
391
- .stream-player-modal :global([type="reset"]::-moz-focus-inner),
392
- .stream-player-modal :global([type="submit"]::-moz-focus-inner) {
393
- border-style: none;
394
- padding: 0;
395
- }
396
- .stream-player-modal :global(button:-moz-focusring),
397
- .stream-player-modal :global([type="button"]:-moz-focusring),
398
- .stream-player-modal :global([type="reset"]:-moz-focusring),
399
- .stream-player-modal :global([type="submit"]:-moz-focusring) {
400
- outline: 1px dotted ButtonText;
401
- }
402
- .stream-player-modal :global(fieldset) {
403
- padding: 0.35em 0.75em 0.625em;
404
- }
405
- .stream-player-modal :global(legend) {
406
- box-sizing: border-box; /* 1 */
407
- color: inherit; /* 2 */
408
- display: table; /* 1 */
409
- max-width: 100%; /* 1 */
410
- padding: 0; /* 3 */
411
- white-space: normal; /* 1 */
412
- }
413
- .stream-player-modal :global(progress) {
414
- vertical-align: baseline;
415
- }
416
- .stream-player-modal :global(textarea) {
417
- overflow: auto;
418
- }
419
- .stream-player-modal :global([type="checkbox"]),
420
- .stream-player-modal :global([type="radio"]) {
421
- box-sizing: border-box; /* 1 */
422
- padding: 0; /* 2 */
423
- }
424
- .stream-player-modal :global([type="number"]::-webkit-inner-spin-button),
425
- .stream-player-modal :global([type="number"]::-webkit-outer-spin-button) {
426
- height: auto;
427
- }
428
- .stream-player-modal :global([type="search"]) {
429
- -webkit-appearance: textfield; /* 1 */
430
- outline-offset: -2px; /* 2 */
431
- }
432
- .stream-player-modal :global([type="search"]::-webkit-search-decoration) {
433
- -webkit-appearance: none;
434
- }
435
- .stream-player-modal :global(::-webkit-file-upload-button) {
436
- -webkit-appearance: button; /* 1 */
437
- font: inherit; /* 2 */
438
- }
439
- .stream-player-modal :global(template) {
440
- display: none;
441
- }
442
- .stream-player-modal :global([hidden]) {
443
- display: none;
444
- }</style>
12
+ <div bind:this={host}></div>
@@ -1,3 +1,18 @@
1
- declare const Cmp: import("svelte").Component<Record<string, never>, {}, "">;
2
- type Cmp = ReturnType<typeof Cmp>;
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const Cmp: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
15
+ [evt: string]: CustomEvent<any>;
16
+ }, {}, {}, string>;
17
+ type Cmp = InstanceType<typeof Cmp>;
3
18
  export default Cmp;