@streamscloud/embeddable 1.1.11 → 2.0.0
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/enums.d.ts +33 -0
- package/dist/core/enums.js +39 -0
- package/dist/core/graphql.d.ts +1 -1
- package/dist/core/graphql.js +2 -2
- package/dist/core/media/images-size-detector.service.d.ts +1 -1
- package/dist/core/media/images-size-detector.service.js +1 -1
- package/dist/core/media/index.d.ts +1 -1
- package/dist/core/media/index.js +1 -1
- package/dist/core/media/media-item-url.service.js +2 -1
- package/dist/core/media/types.d.ts +1 -16
- package/dist/core/media/types.js +1 -19
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -3
- package/dist/products/price-helper.d.ts +2 -2
- package/dist/products/price-helper.js +20 -9
- package/dist/short-videos/short-video-viewer/cmp.ad.svelte +74 -0
- package/dist/{advertising/ad-view/cmp.ad-view.svelte.d.ts → short-videos/short-video-viewer/cmp.ad.svelte.d.ts} +2 -3
- package/dist/short-videos/short-video-viewer/cmp.attachments-inline.svelte +70 -0
- package/dist/{streams/components/images/cmp.images-component.svelte.d.ts → short-videos/short-video-viewer/cmp.attachments-inline.svelte.d.ts} +2 -2
- package/dist/short-videos/short-video-viewer/cmp.attachments.svelte +45 -48
- package/dist/short-videos/short-video-viewer/cmp.attachments.svelte.d.ts +4 -2
- package/dist/{streams/components/product/cmp.product-component.svelte → short-videos/short-video-viewer/cmp.product.svelte} +34 -26
- package/dist/short-videos/short-video-viewer/cmp.product.svelte.d.ts +10 -0
- package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte +31 -52
- package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte.d.ts +1 -1
- package/dist/short-videos/short-video-viewer/cmp.short-video-viewer.svelte +6 -6
- package/dist/short-videos/short-video-viewer/index.d.ts +6 -3
- package/dist/short-videos/short-video-viewer/index.js +4 -2
- package/dist/short-videos/short-video-viewer/mapper.js +35 -7
- package/dist/short-videos/short-video-viewer/operations.generated.d.ts +1 -1
- package/dist/short-videos/short-video-viewer/operations.generated.js +67 -103
- package/dist/short-videos/short-video-viewer/operations.graphql +29 -2
- package/dist/short-videos/short-video-viewer/short-video-attachments-localization.svelte.d.ts +12 -0
- package/dist/short-videos/short-video-viewer/short-video-attachments-localization.svelte.js +10 -0
- package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.d.ts +3 -4
- package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.js +4 -15
- package/dist/short-videos/short-video-viewer/short-video-product-localization.svelte.d.ts +7 -0
- package/dist/{products/product-card/product-card-localization.svelte.js → short-videos/short-video-viewer/short-video-product-localization.svelte.js} +1 -1
- package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.d.ts +3 -0
- package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.js +4 -7
- package/dist/short-videos/short-video-viewer/types.d.ts +29 -6
- package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte +4 -4
- package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte.d.ts +2 -2
- package/dist/short-videos/short-videos-player/controls.svelte +42 -35
- package/dist/short-videos/short-videos-player/controls.svelte.d.ts +1 -1
- package/dist/short-videos/short-videos-player/index.d.ts +28 -2
- package/dist/short-videos/short-videos-player/index.js +40 -1
- package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.d.ts +3 -9
- package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.js +2 -17
- package/dist/streams/layout/cmp.layout.svelte +34 -0
- package/dist/streams/{slots/cmp.stream-component-slot.svelte.d.ts → layout/cmp.layout.svelte.d.ts} +2 -2
- package/dist/streams/layout/cmp.slot-content.svelte +32 -0
- package/dist/streams/layout/cmp.slot-content.svelte.d.ts +9 -0
- package/dist/streams/layout/cmp.slot.svelte +26 -0
- package/dist/streams/layout/cmp.slot.svelte.d.ts +9 -0
- package/dist/streams/layout/component.d.ts +6 -0
- package/dist/streams/layout/component.js +1 -0
- package/dist/streams/layout/css-values.d.ts +10 -0
- package/dist/streams/layout/css-values.js +1 -0
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte +16 -0
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte.d.ts +11 -0
- package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte +38 -0
- package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte.d.ts +9 -0
- package/dist/streams/layout/element-views/cmp.images-stream-element.svelte +30 -0
- package/dist/streams/layout/element-views/cmp.images-stream-element.svelte.d.ts +9 -0
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte +97 -0
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte.d.ts +11 -0
- package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte +6 -0
- package/dist/streams/{components/product/cmp.product-component.svelte.d.ts → layout/element-views/cmp.short-video-stream-element.svelte.d.ts} +2 -3
- package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte +45 -0
- package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte.d.ts +9 -0
- package/dist/streams/layout/element-views/cmp.stream-element.svelte +60 -0
- package/dist/streams/layout/element-views/cmp.stream-element.svelte.d.ts +13 -0
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte +23 -0
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte.d.ts +9 -0
- package/dist/streams/layout/element-views/cmp.text-stream-element.svelte +8 -0
- package/dist/{ui/shadow-dom/cmp.shadow-dom.svelte.d.ts → streams/layout/element-views/cmp.text-stream-element.svelte.d.ts} +2 -2
- package/dist/streams/layout/element-views/data-by-key-accessor.d.ts +3 -0
- package/dist/streams/layout/element-views/data-by-key-accessor.js +55 -0
- package/dist/streams/layout/element-views/index.d.ts +11 -0
- package/dist/streams/layout/element-views/index.js +9 -0
- package/dist/streams/layout/element-views/price-stream-element-localization.svelte.d.ts +9 -0
- package/dist/streams/layout/element-views/price-stream-element-localization.svelte.js +8 -0
- package/dist/streams/layout/element-views/stream-element-localization.svelte.d.ts +8 -0
- package/dist/streams/layout/element-views/stream-element-localization.svelte.js +6 -0
- package/dist/streams/layout/elements.d.ts +51 -0
- package/dist/streams/layout/elements.js +1 -0
- package/dist/streams/layout/enums.d.ts +45 -0
- package/dist/streams/layout/enums.js +54 -0
- package/dist/streams/layout/index.d.ts +19 -0
- package/dist/streams/layout/index.js +15 -0
- package/dist/streams/layout/layout.d.ts +13 -0
- package/dist/streams/layout/models/index.d.ts +6 -0
- package/dist/streams/layout/models/index.js +1 -0
- package/dist/streams/layout/models/mapper.d.ts +3 -0
- package/dist/streams/layout/models/mapper.js +62 -0
- package/dist/streams/layout/models/stream-layout-blob-model.d.ts +4 -0
- package/dist/streams/layout/models/stream-layout-media-item-model.d.ts +6 -0
- package/dist/streams/layout/models/stream-layout-media-item-model.js +1 -0
- package/dist/streams/layout/models/stream-layout-post-header-model.d.ts +11 -0
- package/dist/streams/layout/models/stream-layout-post-header-model.js +1 -0
- package/dist/streams/layout/models/stream-layout-product-model.d.ts +19 -0
- package/dist/streams/layout/models/stream-layout-product-model.js +1 -0
- package/dist/streams/layout/models/stream-layout-short-video-model.d.ts +31 -0
- package/dist/streams/layout/models/stream-layout-short-video-model.js +1 -0
- package/dist/streams/layout/serializer.d.ts +3 -0
- package/dist/streams/layout/serializer.js +6 -0
- package/dist/streams/layout/slot-data-input.d.ts +14 -0
- package/dist/streams/layout/slot-data-input.js +1 -0
- package/dist/streams/layout/slot-data.d.ts +18 -0
- package/dist/streams/layout/slot-data.js +1 -0
- package/dist/streams/layout/slot.d.ts +16 -0
- package/dist/streams/layout/slot.js +1 -0
- package/dist/streams/layout/styles-transformer.d.ts +13 -0
- package/dist/streams/layout/styles-transformer.js +140 -0
- package/dist/streams/layout/styles.d.ts +43 -0
- package/dist/streams/layout/styles.js +1 -0
- package/dist/streams/layout/type-guards.d.ts +8 -0
- package/dist/streams/layout/type-guards.js +21 -0
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte +8 -42
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte.d.ts +0 -2
- package/dist/streams/stream-page-viewer/mapper.d.ts +1 -1
- package/dist/streams/stream-page-viewer/mapper.js +7 -8
- package/dist/streams/stream-page-viewer/operations.generated.d.ts +1 -104
- package/dist/streams/stream-page-viewer/operations.generated.js +2 -375
- package/dist/streams/stream-page-viewer/operations.graphql +1 -6
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.d.ts +3 -0
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.js +4 -7
- package/dist/streams/stream-page-viewer/types.d.ts +5 -5
- package/dist/streams/stream-player/cmp.stream-player.svelte +7 -3
- package/dist/streams/stream-player/controls.svelte +43 -35
- package/dist/streams/stream-player/index.d.ts +29 -2
- package/dist/streams/stream-player/index.js +44 -1
- package/dist/streams/stream-player/operations.generated.d.ts +1 -103
- package/dist/streams/stream-player/operations.generated.js +2 -375
- package/dist/streams/stream-player/stream-overview.svelte +2 -2
- package/dist/streams/stream-player/stream-player-buffer.svelte.d.ts +1 -1
- package/dist/streams/stream-player/stream-player-buffer.svelte.js +1 -1
- package/dist/streams/stream-player/stream-player-localization.svelte.d.ts +3 -9
- package/dist/streams/stream-player/stream-player-localization.svelte.js +4 -23
- package/dist/ui/media-item-view/cmp.media-item-view.svelte +2 -1
- package/dist/ui/media-item-view/cmp.media-item-view.svelte.d.ts +2 -1
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte +2 -1
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte.d.ts +2 -1
- package/dist/ui/shadow-dom/_normalize.scss +350 -0
- package/dist/ui/shadow-dom/_reset.scss +189 -0
- package/dist/ui/shadow-dom/index.d.ts +1 -1
- package/dist/ui/shadow-dom/index.js +1 -1
- package/dist/ui/shadow-dom/shadow-host.svelte.d.ts +8 -0
- package/dist/ui/shadow-dom/shadow-host.svelte.js +39 -0
- package/dist/ui/video/cmp.video.svelte +1 -1
- package/package.json +68 -26
- package/dist/advertising/ad-view/cmp.ad-view.svelte +0 -82
- package/dist/advertising/ad-view/index.d.ts +0 -2
- package/dist/advertising/ad-view/index.js +0 -1
- package/dist/advertising/ad-view/mapper.d.ts +0 -3
- package/dist/advertising/ad-view/mapper.js +0 -16
- package/dist/advertising/ad-view/operations.generated.d.ts +0 -17
- package/dist/advertising/ad-view/operations.generated.js +0 -46
- package/dist/advertising/ad-view/operations.graphql +0 -14
- package/dist/advertising/ad-view/types.d.ts +0 -10
- package/dist/advertising/index.d.ts +0 -1
- package/dist/advertising/index.js +0 -1
- package/dist/advertising/types.d.ts +0 -5
- package/dist/advertising/types.js +0 -6
- package/dist/products/index.d.ts +0 -1
- package/dist/products/index.js +0 -1
- package/dist/products/product-card/cmp.product-card.svelte +0 -121
- package/dist/products/product-card/cmp.product-card.svelte.d.ts +0 -10
- package/dist/products/product-card/index.d.ts +0 -3
- package/dist/products/product-card/index.js +0 -3
- package/dist/products/product-card/mapper.d.ts +0 -3
- package/dist/products/product-card/mapper.js +0 -14
- package/dist/products/product-card/operations.generated.d.ts +0 -22
- package/dist/products/product-card/operations.generated.js +0 -65
- package/dist/products/product-card/operations.graphql +0 -19
- package/dist/products/product-card/product-card-localization.svelte.d.ts +0 -7
- package/dist/products/product-card/types.d.ts +0 -10
- package/dist/products/product-card/types.js +0 -1
- package/dist/products/types.d.ts +0 -5
- package/dist/products/types.js +0 -6
- package/dist/short-videos/short-videos-player-modal/cmp.short-videos-player-modal.svelte +0 -490
- package/dist/short-videos/short-videos-player-modal/cmp.short-videos-player-modal.svelte.d.ts +0 -3
- package/dist/short-videos/short-videos-player-modal/index.d.ts +0 -79
- package/dist/short-videos/short-videos-player-modal/index.js +0 -78
- package/dist/short-videos/short-videos-player-modal/short-videos-player-modal-state.svelte.d.ts +0 -16
- package/dist/short-videos/short-videos-player-modal/short-videos-player-modal-state.svelte.js +0 -13
- package/dist/streams/components/cmp.stream-page-component.svelte +0 -16
- package/dist/streams/components/cmp.stream-page-component.svelte.d.ts +0 -10
- package/dist/streams/components/components.factory.d.ts +0 -22
- package/dist/streams/components/components.factory.js +0 -34
- package/dist/streams/components/images/cmp.images-component.svelte +0 -7
- package/dist/streams/components/images/index.d.ts +0 -2
- package/dist/streams/components/images/index.js +0 -1
- package/dist/streams/components/images/types.d.ts +0 -8
- package/dist/streams/components/images/types.js +0 -5
- package/dist/streams/components/index.d.ts +0 -7
- package/dist/streams/components/index.js +0 -6
- package/dist/streams/components/mapper.d.ts +0 -3
- package/dist/streams/components/mapper.js +0 -43
- package/dist/streams/components/operations.generated.d.ts +0 -178
- package/dist/streams/components/operations.generated.js +0 -653
- package/dist/streams/components/operations.graphql +0 -35
- package/dist/streams/components/product/index.d.ts +0 -3
- package/dist/streams/components/product/index.js +0 -2
- package/dist/streams/components/product/mapper.d.ts +0 -3
- package/dist/streams/components/product/mapper.js +0 -14
- package/dist/streams/components/product/operations.generated.d.ts +0 -22
- package/dist/streams/components/product/operations.generated.js +0 -53
- package/dist/streams/components/product/operations.graphql +0 -19
- package/dist/streams/components/product/types.d.ts +0 -10
- package/dist/streams/components/product/types.js +0 -1
- package/dist/streams/components/short-video/cmp.short-video-component.svelte +0 -9
- package/dist/streams/components/short-video/cmp.short-video-component.svelte.d.ts +0 -10
- package/dist/streams/components/short-video/index.d.ts +0 -3
- package/dist/streams/components/short-video/index.js +0 -2
- package/dist/streams/components/short-video/mapper.d.ts +0 -3
- package/dist/streams/components/short-video/mapper.js +0 -4
- package/dist/streams/components/short-video/operations.generated.d.ts +0 -56
- package/dist/streams/components/short-video/operations.generated.js +0 -193
- package/dist/streams/components/short-video/operations.graphql +0 -3
- package/dist/streams/components/short-video/types.d.ts +0 -2
- package/dist/streams/components/stream-components-localization.svelte.d.ts +0 -10
- package/dist/streams/components/stream-components-localization.svelte.js +0 -13
- package/dist/streams/components/types.d.ts +0 -27
- package/dist/streams/components/types.js +0 -6
- package/dist/streams/slots/cmp.stream-component-slot.svelte +0 -35
- package/dist/streams/slots/index.d.ts +0 -3
- package/dist/streams/slots/index.js +0 -2
- package/dist/streams/slots/mapper.d.ts +0 -3
- package/dist/streams/slots/mapper.js +0 -18
- package/dist/streams/slots/operations.generated.d.ts +0 -17
- package/dist/streams/slots/operations.generated.js +0 -34
- package/dist/streams/slots/operations.graphql +0 -14
- package/dist/streams/slots/styles-transformer.d.ts +0 -6
- package/dist/streams/slots/styles-transformer.js +0 -12
- package/dist/streams/slots/types.d.ts +0 -16
- package/dist/streams/slots/types.js +0 -1
- package/dist/streams/stream-player-modal/cmp.stream-player-modal.svelte +0 -491
- package/dist/streams/stream-player-modal/cmp.stream-player-modal.svelte.d.ts +0 -3
- package/dist/streams/stream-player-modal/index.d.ts +0 -79
- package/dist/streams/stream-player-modal/index.js +0 -78
- package/dist/streams/stream-player-modal/stream-player-modal-state.svelte.d.ts +0 -17
- package/dist/streams/stream-player-modal/stream-player-modal-state.svelte.js +0 -14
- package/dist/ui/shadow-dom/cmp.shadow-dom.svelte +0 -26
- /package/dist/{advertising/ad-view/types.js → streams/layout/layout.js} +0 -0
- /package/dist/streams/{components/short-video/types.js → layout/models/stream-layout-blob-model.js} +0 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* Document
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 1. Correct the line height in all browsers.
|
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Sections
|
|
17
|
+
========================================================================== */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove the margin in all browsers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Render the `main` element consistently in IE.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
main {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
font-size: 2em;
|
|
42
|
+
margin: 0.67em 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Grouping content
|
|
46
|
+
========================================================================== */
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
hr {
|
|
54
|
+
box-sizing: content-box; /* 1 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
pre {
|
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Text-level semantics
|
|
70
|
+
========================================================================== */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove the gray background on active links in IE 10.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
a {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
82
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
abbr[title] {
|
|
86
|
+
border-bottom: none; /* 1 */
|
|
87
|
+
text-decoration: underline dotted; /* 2 */
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
b,
|
|
95
|
+
strong {
|
|
96
|
+
font-weight: bolder;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
101
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
code,
|
|
105
|
+
kbd,
|
|
106
|
+
samp {
|
|
107
|
+
font-family: monospace, monospace; /* 1 */
|
|
108
|
+
font-size: 1em; /* 2 */
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Add the correct font size in all browsers.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
small {
|
|
116
|
+
font-size: 80%;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
121
|
+
* all browsers.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
sub,
|
|
125
|
+
sup {
|
|
126
|
+
font-size: 75%;
|
|
127
|
+
line-height: 0;
|
|
128
|
+
position: relative;
|
|
129
|
+
vertical-align: baseline;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
sub {
|
|
133
|
+
bottom: -0.25em;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
sup {
|
|
137
|
+
top: -0.5em;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Embedded content
|
|
141
|
+
========================================================================== */
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Remove the border on images inside links in IE 10.
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
img {
|
|
148
|
+
border-style: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Forms
|
|
152
|
+
========================================================================== */
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 1. Change the font styles in all browsers.
|
|
156
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
button,
|
|
160
|
+
input,
|
|
161
|
+
optgroup,
|
|
162
|
+
select,
|
|
163
|
+
textarea {
|
|
164
|
+
font-family: inherit; /* 1 */
|
|
165
|
+
font-size: 100%; /* 1 */
|
|
166
|
+
line-height: 1.15; /* 1 */
|
|
167
|
+
margin: 0; /* 2 */
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Show the overflow in IE.
|
|
172
|
+
* 1. Show the overflow in Edge.
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
button,
|
|
176
|
+
input {
|
|
177
|
+
/* 1 */
|
|
178
|
+
overflow: visible;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
183
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
button,
|
|
187
|
+
select {
|
|
188
|
+
/* 1 */
|
|
189
|
+
text-transform: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
button,
|
|
197
|
+
[type='button'],
|
|
198
|
+
[type='reset'],
|
|
199
|
+
[type='submit'] {
|
|
200
|
+
-webkit-appearance: button;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Remove the inner border and padding in Firefox.
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
button::-moz-focus-inner,
|
|
208
|
+
[type='button']::-moz-focus-inner,
|
|
209
|
+
[type='reset']::-moz-focus-inner,
|
|
210
|
+
[type='submit']::-moz-focus-inner {
|
|
211
|
+
border-style: none;
|
|
212
|
+
padding: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Restore the focus styles unset by the previous rule.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
button:-moz-focusring,
|
|
220
|
+
[type='button']:-moz-focusring,
|
|
221
|
+
[type='reset']:-moz-focusring,
|
|
222
|
+
[type='submit']:-moz-focusring {
|
|
223
|
+
outline: 1px dotted ButtonText;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Correct the padding in Firefox.
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
fieldset {
|
|
231
|
+
padding: 0.35em 0.75em 0.625em;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
236
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
237
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
238
|
+
* `fieldset` elements in all browsers.
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
legend {
|
|
242
|
+
box-sizing: border-box; /* 1 */
|
|
243
|
+
color: inherit; /* 2 */
|
|
244
|
+
display: table; /* 1 */
|
|
245
|
+
max-width: 100%; /* 1 */
|
|
246
|
+
padding: 0; /* 3 */
|
|
247
|
+
white-space: normal; /* 1 */
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
progress {
|
|
255
|
+
vertical-align: baseline;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
textarea {
|
|
263
|
+
overflow: auto;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* 1. Add the correct box sizing in IE 10.
|
|
268
|
+
* 2. Remove the padding in IE 10.
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
[type='checkbox'],
|
|
272
|
+
[type='radio'] {
|
|
273
|
+
box-sizing: border-box; /* 1 */
|
|
274
|
+
padding: 0; /* 2 */
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
[type='number']::-webkit-inner-spin-button,
|
|
282
|
+
[type='number']::-webkit-outer-spin-button {
|
|
283
|
+
height: auto;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
288
|
+
* 2. Correct the outline style in Safari.
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
[type='search'] {
|
|
292
|
+
-webkit-appearance: textfield; /* 1 */
|
|
293
|
+
outline-offset: -2px; /* 2 */
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
298
|
+
*/
|
|
299
|
+
|
|
300
|
+
[type='search']::-webkit-search-decoration {
|
|
301
|
+
-webkit-appearance: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
306
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
::-webkit-file-upload-button {
|
|
310
|
+
-webkit-appearance: button; /* 1 */
|
|
311
|
+
font: inherit; /* 2 */
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Interactive
|
|
315
|
+
========================================================================== */
|
|
316
|
+
|
|
317
|
+
/*
|
|
318
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
details {
|
|
322
|
+
display: block;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/*
|
|
326
|
+
* Add the correct display in all browsers.
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
summary {
|
|
330
|
+
display: list-item;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* Misc
|
|
334
|
+
========================================================================== */
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Add the correct display in IE 10+.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
template {
|
|
341
|
+
display: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Add the correct display in IE 10.
|
|
346
|
+
*/
|
|
347
|
+
|
|
348
|
+
[hidden] {
|
|
349
|
+
display: none;
|
|
350
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
$input-placeholder-color: var(--input--placeholder--color, #c1c1c1);
|
|
2
|
+
|
|
3
|
+
/*Default margins and paddings are removed*/
|
|
4
|
+
a,
|
|
5
|
+
article,
|
|
6
|
+
aside,
|
|
7
|
+
blockquote,
|
|
8
|
+
body,
|
|
9
|
+
dd,
|
|
10
|
+
div,
|
|
11
|
+
dl,
|
|
12
|
+
dt,
|
|
13
|
+
figcaption,
|
|
14
|
+
figure,
|
|
15
|
+
footer,
|
|
16
|
+
form,
|
|
17
|
+
h1,
|
|
18
|
+
h2,
|
|
19
|
+
h3,
|
|
20
|
+
h4,
|
|
21
|
+
h5,
|
|
22
|
+
h6,
|
|
23
|
+
header,
|
|
24
|
+
html,
|
|
25
|
+
img,
|
|
26
|
+
li,
|
|
27
|
+
nav,
|
|
28
|
+
ol,
|
|
29
|
+
p,
|
|
30
|
+
section,
|
|
31
|
+
table,
|
|
32
|
+
td,
|
|
33
|
+
ul {
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
header,
|
|
39
|
+
section,
|
|
40
|
+
footer,
|
|
41
|
+
aside,
|
|
42
|
+
nav,
|
|
43
|
+
article,
|
|
44
|
+
figure,
|
|
45
|
+
figcaption {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
/*Images are block-level*/
|
|
49
|
+
img,
|
|
50
|
+
svg,
|
|
51
|
+
video,
|
|
52
|
+
canvas,
|
|
53
|
+
audio,
|
|
54
|
+
iframe,
|
|
55
|
+
embed,
|
|
56
|
+
object {
|
|
57
|
+
display: block;
|
|
58
|
+
vertical-align: middle;
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
table {
|
|
63
|
+
border-collapse: collapse;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
img {
|
|
67
|
+
border: none;
|
|
68
|
+
height: auto;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
video {
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/*Lists are unstyled*/
|
|
76
|
+
ul,
|
|
77
|
+
ol {
|
|
78
|
+
list-style: none;
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
li {
|
|
84
|
+
list-style: inherit;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
input {
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
&::placeholder {
|
|
91
|
+
color: $input-placeholder-color !important;
|
|
92
|
+
}
|
|
93
|
+
&:-webkit-autofill,
|
|
94
|
+
&:-webkit-autofill:hover,
|
|
95
|
+
&:-webkit-autofill:focus {
|
|
96
|
+
-webkit-background-clip: text;
|
|
97
|
+
}
|
|
98
|
+
/* Chrome, Safari, Edge, Opera */
|
|
99
|
+
&::-webkit-outer-spin-button,
|
|
100
|
+
&::-webkit-inner-spin-button {
|
|
101
|
+
-webkit-appearance: none;
|
|
102
|
+
margin: 0;
|
|
103
|
+
}
|
|
104
|
+
&[type='number'] {
|
|
105
|
+
-moz-appearance: textfield;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
$scrollbar-width: thin;
|
|
110
|
+
$scrollbar-color: var(--custom-scrollbar-color, #7d7d7d);
|
|
111
|
+
$scrollbar-background-color: var(--custom-scrollbar-background, transparent);
|
|
112
|
+
|
|
113
|
+
textarea {
|
|
114
|
+
vertical-align: top;
|
|
115
|
+
resize: vertical;
|
|
116
|
+
scrollbar-color: $scrollbar-color $scrollbar-background-color;
|
|
117
|
+
scrollbar-width: $scrollbar-width;
|
|
118
|
+
&::-webkit-scrollbar {
|
|
119
|
+
@if ($scrollbar-width == thin) {
|
|
120
|
+
width: 3px;
|
|
121
|
+
height: 3px;
|
|
122
|
+
} @else if ($scrollbar-width == none) {
|
|
123
|
+
width: 0;
|
|
124
|
+
height: 0;
|
|
125
|
+
} @else {
|
|
126
|
+
width: 6px;
|
|
127
|
+
height: 6px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
background: $custom-scrollbar-background;
|
|
131
|
+
visibility: hidden;
|
|
132
|
+
}
|
|
133
|
+
&::-webkit-scrollbar-thumb {
|
|
134
|
+
background: $scrollbar-color;
|
|
135
|
+
}
|
|
136
|
+
&::placeholder {
|
|
137
|
+
color: $input-placeholder-color !important;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
input:focus,
|
|
142
|
+
textarea:focus {
|
|
143
|
+
outline: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
button,
|
|
147
|
+
input[type='submit'] {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
-webkit-appearance: none;
|
|
150
|
+
background-color: transparent;
|
|
151
|
+
padding: 0;
|
|
152
|
+
text-align: left;
|
|
153
|
+
font: inherit;
|
|
154
|
+
color: inherit;
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
&:disabled {
|
|
157
|
+
cursor: default;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
details {
|
|
162
|
+
summary {
|
|
163
|
+
list-style: none;
|
|
164
|
+
&::-webkit-details-marker {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
> * {
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
a {
|
|
174
|
+
color: inherit;
|
|
175
|
+
text-decoration: none;
|
|
176
|
+
transition: color linear 0.2s;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
html {
|
|
180
|
+
box-sizing: border-box;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
*,
|
|
184
|
+
*:before,
|
|
185
|
+
*:after {
|
|
186
|
+
box-sizing: inherit;
|
|
187
|
+
border-width: 0;
|
|
188
|
+
border-style: solid;
|
|
189
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ShadowHost } from './shadow-host.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ShadowHost } from './shadow-host.svelte';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import normalize from './_normalize.scss?raw';
|
|
2
|
+
import reset from './_reset.scss?raw';
|
|
3
|
+
export class ShadowHost {
|
|
4
|
+
shadowRoot;
|
|
5
|
+
host;
|
|
6
|
+
constructor() {
|
|
7
|
+
const host = document.createElement('div');
|
|
8
|
+
host.style.position = 'fixed';
|
|
9
|
+
host.style.inset = '0';
|
|
10
|
+
host.style.zIndex = '9999';
|
|
11
|
+
host.style.lineHeight = '1.15';
|
|
12
|
+
host.style.fontFamily = 'system-ui, Avenir, Helvetica, Arial, sans-serif';
|
|
13
|
+
host.style.fontWeight = '400';
|
|
14
|
+
host.style.margin = '0';
|
|
15
|
+
host.style.boxSizing = 'border-box';
|
|
16
|
+
host.style.textAlign = 'initial';
|
|
17
|
+
document.addEventListener('keydown', this.handleEsc);
|
|
18
|
+
this.host = host;
|
|
19
|
+
this.shadowRoot = host.attachShadow({ mode: 'open' });
|
|
20
|
+
const styleElement = document.createElement('style');
|
|
21
|
+
styleElement.textContent = normalize + reset;
|
|
22
|
+
this.shadowRoot.appendChild(styleElement);
|
|
23
|
+
}
|
|
24
|
+
attachToBody() {
|
|
25
|
+
document.getElementsByTagName('html')[0].style.overflow = 'hidden';
|
|
26
|
+
document.body.appendChild(this.host);
|
|
27
|
+
}
|
|
28
|
+
remove() {
|
|
29
|
+
this.host.remove();
|
|
30
|
+
document.getElementsByTagName('html')[0].style.overflow = '';
|
|
31
|
+
document.removeEventListener('keydown', this.handleEsc);
|
|
32
|
+
}
|
|
33
|
+
handleEsc = (event) => {
|
|
34
|
+
if (event.key === 'Escape' || event.key === 'Esc') {
|
|
35
|
+
// Remove the modal from the DOM, for example:
|
|
36
|
+
this.remove();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { randomNanoid } from '../../core/utils/string-generator';
|
|
11
|
-
import { MediaVolumeManager, PlaybackManager } from '../media-playback';
|
|
12
11
|
import { Icon, IconColor } from '../icon';
|
|
12
|
+
import { MediaVolumeManager, PlaybackManager } from '../media-playback';
|
|
13
13
|
import { Progress } from '../progress';
|
|
14
14
|
import { SeekBar } from '../seek-bar';
|
|
15
15
|
import IconPause from '@fluentui/svg-icons/icons/pause_20_regular.svg';
|