@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.
Files changed (247) hide show
  1. package/dist/core/enums.d.ts +33 -0
  2. package/dist/core/enums.js +39 -0
  3. package/dist/core/graphql.d.ts +1 -1
  4. package/dist/core/graphql.js +2 -2
  5. package/dist/core/media/images-size-detector.service.d.ts +1 -1
  6. package/dist/core/media/images-size-detector.service.js +1 -1
  7. package/dist/core/media/index.d.ts +1 -1
  8. package/dist/core/media/index.js +1 -1
  9. package/dist/core/media/media-item-url.service.js +2 -1
  10. package/dist/core/media/types.d.ts +1 -16
  11. package/dist/core/media/types.js +1 -19
  12. package/dist/index.d.ts +1 -3
  13. package/dist/index.js +1 -3
  14. package/dist/products/price-helper.d.ts +2 -2
  15. package/dist/products/price-helper.js +20 -9
  16. package/dist/short-videos/short-video-viewer/cmp.ad.svelte +74 -0
  17. package/dist/{advertising/ad-view/cmp.ad-view.svelte.d.ts → short-videos/short-video-viewer/cmp.ad.svelte.d.ts} +2 -3
  18. package/dist/short-videos/short-video-viewer/cmp.attachments-inline.svelte +70 -0
  19. package/dist/{streams/components/images/cmp.images-component.svelte.d.ts → short-videos/short-video-viewer/cmp.attachments-inline.svelte.d.ts} +2 -2
  20. package/dist/short-videos/short-video-viewer/cmp.attachments.svelte +45 -48
  21. package/dist/short-videos/short-video-viewer/cmp.attachments.svelte.d.ts +4 -2
  22. package/dist/{streams/components/product/cmp.product-component.svelte → short-videos/short-video-viewer/cmp.product.svelte} +34 -26
  23. package/dist/short-videos/short-video-viewer/cmp.product.svelte.d.ts +10 -0
  24. package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte +31 -52
  25. package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte.d.ts +1 -1
  26. package/dist/short-videos/short-video-viewer/cmp.short-video-viewer.svelte +6 -6
  27. package/dist/short-videos/short-video-viewer/index.d.ts +6 -3
  28. package/dist/short-videos/short-video-viewer/index.js +4 -2
  29. package/dist/short-videos/short-video-viewer/mapper.js +35 -7
  30. package/dist/short-videos/short-video-viewer/operations.generated.d.ts +1 -1
  31. package/dist/short-videos/short-video-viewer/operations.generated.js +67 -103
  32. package/dist/short-videos/short-video-viewer/operations.graphql +29 -2
  33. package/dist/short-videos/short-video-viewer/short-video-attachments-localization.svelte.d.ts +12 -0
  34. package/dist/short-videos/short-video-viewer/short-video-attachments-localization.svelte.js +10 -0
  35. package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.d.ts +3 -4
  36. package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.js +4 -15
  37. package/dist/short-videos/short-video-viewer/short-video-product-localization.svelte.d.ts +7 -0
  38. package/dist/{products/product-card/product-card-localization.svelte.js → short-videos/short-video-viewer/short-video-product-localization.svelte.js} +1 -1
  39. package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.d.ts +3 -0
  40. package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.js +4 -7
  41. package/dist/short-videos/short-video-viewer/types.d.ts +29 -6
  42. package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte +4 -4
  43. package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte.d.ts +2 -2
  44. package/dist/short-videos/short-videos-player/controls.svelte +42 -35
  45. package/dist/short-videos/short-videos-player/controls.svelte.d.ts +1 -1
  46. package/dist/short-videos/short-videos-player/index.d.ts +28 -2
  47. package/dist/short-videos/short-videos-player/index.js +40 -1
  48. package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.d.ts +3 -9
  49. package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.js +2 -17
  50. package/dist/streams/layout/cmp.layout.svelte +34 -0
  51. package/dist/streams/{slots/cmp.stream-component-slot.svelte.d.ts → layout/cmp.layout.svelte.d.ts} +2 -2
  52. package/dist/streams/layout/cmp.slot-content.svelte +32 -0
  53. package/dist/streams/layout/cmp.slot-content.svelte.d.ts +9 -0
  54. package/dist/streams/layout/cmp.slot.svelte +26 -0
  55. package/dist/streams/layout/cmp.slot.svelte.d.ts +9 -0
  56. package/dist/streams/layout/component.d.ts +6 -0
  57. package/dist/streams/layout/component.js +1 -0
  58. package/dist/streams/layout/css-values.d.ts +10 -0
  59. package/dist/streams/layout/css-values.js +1 -0
  60. package/dist/streams/layout/element-views/cmp.container-stream-element.svelte +16 -0
  61. package/dist/streams/layout/element-views/cmp.container-stream-element.svelte.d.ts +11 -0
  62. package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte +38 -0
  63. package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte.d.ts +9 -0
  64. package/dist/streams/layout/element-views/cmp.images-stream-element.svelte +30 -0
  65. package/dist/streams/layout/element-views/cmp.images-stream-element.svelte.d.ts +9 -0
  66. package/dist/streams/layout/element-views/cmp.price-stream-element.svelte +97 -0
  67. package/dist/streams/layout/element-views/cmp.price-stream-element.svelte.d.ts +11 -0
  68. package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte +6 -0
  69. package/dist/streams/{components/product/cmp.product-component.svelte.d.ts → layout/element-views/cmp.short-video-stream-element.svelte.d.ts} +2 -3
  70. package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte +45 -0
  71. package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte.d.ts +9 -0
  72. package/dist/streams/layout/element-views/cmp.stream-element.svelte +60 -0
  73. package/dist/streams/layout/element-views/cmp.stream-element.svelte.d.ts +13 -0
  74. package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte +23 -0
  75. package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte.d.ts +9 -0
  76. package/dist/streams/layout/element-views/cmp.text-stream-element.svelte +8 -0
  77. package/dist/{ui/shadow-dom/cmp.shadow-dom.svelte.d.ts → streams/layout/element-views/cmp.text-stream-element.svelte.d.ts} +2 -2
  78. package/dist/streams/layout/element-views/data-by-key-accessor.d.ts +3 -0
  79. package/dist/streams/layout/element-views/data-by-key-accessor.js +55 -0
  80. package/dist/streams/layout/element-views/index.d.ts +11 -0
  81. package/dist/streams/layout/element-views/index.js +9 -0
  82. package/dist/streams/layout/element-views/price-stream-element-localization.svelte.d.ts +9 -0
  83. package/dist/streams/layout/element-views/price-stream-element-localization.svelte.js +8 -0
  84. package/dist/streams/layout/element-views/stream-element-localization.svelte.d.ts +8 -0
  85. package/dist/streams/layout/element-views/stream-element-localization.svelte.js +6 -0
  86. package/dist/streams/layout/elements.d.ts +51 -0
  87. package/dist/streams/layout/elements.js +1 -0
  88. package/dist/streams/layout/enums.d.ts +45 -0
  89. package/dist/streams/layout/enums.js +54 -0
  90. package/dist/streams/layout/index.d.ts +19 -0
  91. package/dist/streams/layout/index.js +15 -0
  92. package/dist/streams/layout/layout.d.ts +13 -0
  93. package/dist/streams/layout/models/index.d.ts +6 -0
  94. package/dist/streams/layout/models/index.js +1 -0
  95. package/dist/streams/layout/models/mapper.d.ts +3 -0
  96. package/dist/streams/layout/models/mapper.js +62 -0
  97. package/dist/streams/layout/models/stream-layout-blob-model.d.ts +4 -0
  98. package/dist/streams/layout/models/stream-layout-media-item-model.d.ts +6 -0
  99. package/dist/streams/layout/models/stream-layout-media-item-model.js +1 -0
  100. package/dist/streams/layout/models/stream-layout-post-header-model.d.ts +11 -0
  101. package/dist/streams/layout/models/stream-layout-post-header-model.js +1 -0
  102. package/dist/streams/layout/models/stream-layout-product-model.d.ts +19 -0
  103. package/dist/streams/layout/models/stream-layout-product-model.js +1 -0
  104. package/dist/streams/layout/models/stream-layout-short-video-model.d.ts +31 -0
  105. package/dist/streams/layout/models/stream-layout-short-video-model.js +1 -0
  106. package/dist/streams/layout/serializer.d.ts +3 -0
  107. package/dist/streams/layout/serializer.js +6 -0
  108. package/dist/streams/layout/slot-data-input.d.ts +14 -0
  109. package/dist/streams/layout/slot-data-input.js +1 -0
  110. package/dist/streams/layout/slot-data.d.ts +18 -0
  111. package/dist/streams/layout/slot-data.js +1 -0
  112. package/dist/streams/layout/slot.d.ts +16 -0
  113. package/dist/streams/layout/slot.js +1 -0
  114. package/dist/streams/layout/styles-transformer.d.ts +13 -0
  115. package/dist/streams/layout/styles-transformer.js +140 -0
  116. package/dist/streams/layout/styles.d.ts +43 -0
  117. package/dist/streams/layout/styles.js +1 -0
  118. package/dist/streams/layout/type-guards.d.ts +8 -0
  119. package/dist/streams/layout/type-guards.js +21 -0
  120. package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte +8 -42
  121. package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte.d.ts +0 -2
  122. package/dist/streams/stream-page-viewer/mapper.d.ts +1 -1
  123. package/dist/streams/stream-page-viewer/mapper.js +7 -8
  124. package/dist/streams/stream-page-viewer/operations.generated.d.ts +1 -104
  125. package/dist/streams/stream-page-viewer/operations.generated.js +2 -375
  126. package/dist/streams/stream-page-viewer/operations.graphql +1 -6
  127. package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.d.ts +3 -0
  128. package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.js +4 -7
  129. package/dist/streams/stream-page-viewer/types.d.ts +5 -5
  130. package/dist/streams/stream-player/cmp.stream-player.svelte +7 -3
  131. package/dist/streams/stream-player/controls.svelte +43 -35
  132. package/dist/streams/stream-player/index.d.ts +29 -2
  133. package/dist/streams/stream-player/index.js +44 -1
  134. package/dist/streams/stream-player/operations.generated.d.ts +1 -103
  135. package/dist/streams/stream-player/operations.generated.js +2 -375
  136. package/dist/streams/stream-player/stream-overview.svelte +2 -2
  137. package/dist/streams/stream-player/stream-player-buffer.svelte.d.ts +1 -1
  138. package/dist/streams/stream-player/stream-player-buffer.svelte.js +1 -1
  139. package/dist/streams/stream-player/stream-player-localization.svelte.d.ts +3 -9
  140. package/dist/streams/stream-player/stream-player-localization.svelte.js +4 -23
  141. package/dist/ui/media-item-view/cmp.media-item-view.svelte +2 -1
  142. package/dist/ui/media-item-view/cmp.media-item-view.svelte.d.ts +2 -1
  143. package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte +2 -1
  144. package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte.d.ts +2 -1
  145. package/dist/ui/shadow-dom/_normalize.scss +350 -0
  146. package/dist/ui/shadow-dom/_reset.scss +189 -0
  147. package/dist/ui/shadow-dom/index.d.ts +1 -1
  148. package/dist/ui/shadow-dom/index.js +1 -1
  149. package/dist/ui/shadow-dom/shadow-host.svelte.d.ts +8 -0
  150. package/dist/ui/shadow-dom/shadow-host.svelte.js +39 -0
  151. package/dist/ui/video/cmp.video.svelte +1 -1
  152. package/package.json +68 -26
  153. package/dist/advertising/ad-view/cmp.ad-view.svelte +0 -82
  154. package/dist/advertising/ad-view/index.d.ts +0 -2
  155. package/dist/advertising/ad-view/index.js +0 -1
  156. package/dist/advertising/ad-view/mapper.d.ts +0 -3
  157. package/dist/advertising/ad-view/mapper.js +0 -16
  158. package/dist/advertising/ad-view/operations.generated.d.ts +0 -17
  159. package/dist/advertising/ad-view/operations.generated.js +0 -46
  160. package/dist/advertising/ad-view/operations.graphql +0 -14
  161. package/dist/advertising/ad-view/types.d.ts +0 -10
  162. package/dist/advertising/index.d.ts +0 -1
  163. package/dist/advertising/index.js +0 -1
  164. package/dist/advertising/types.d.ts +0 -5
  165. package/dist/advertising/types.js +0 -6
  166. package/dist/products/index.d.ts +0 -1
  167. package/dist/products/index.js +0 -1
  168. package/dist/products/product-card/cmp.product-card.svelte +0 -121
  169. package/dist/products/product-card/cmp.product-card.svelte.d.ts +0 -10
  170. package/dist/products/product-card/index.d.ts +0 -3
  171. package/dist/products/product-card/index.js +0 -3
  172. package/dist/products/product-card/mapper.d.ts +0 -3
  173. package/dist/products/product-card/mapper.js +0 -14
  174. package/dist/products/product-card/operations.generated.d.ts +0 -22
  175. package/dist/products/product-card/operations.generated.js +0 -65
  176. package/dist/products/product-card/operations.graphql +0 -19
  177. package/dist/products/product-card/product-card-localization.svelte.d.ts +0 -7
  178. package/dist/products/product-card/types.d.ts +0 -10
  179. package/dist/products/product-card/types.js +0 -1
  180. package/dist/products/types.d.ts +0 -5
  181. package/dist/products/types.js +0 -6
  182. package/dist/short-videos/short-videos-player-modal/cmp.short-videos-player-modal.svelte +0 -490
  183. package/dist/short-videos/short-videos-player-modal/cmp.short-videos-player-modal.svelte.d.ts +0 -3
  184. package/dist/short-videos/short-videos-player-modal/index.d.ts +0 -79
  185. package/dist/short-videos/short-videos-player-modal/index.js +0 -78
  186. package/dist/short-videos/short-videos-player-modal/short-videos-player-modal-state.svelte.d.ts +0 -16
  187. package/dist/short-videos/short-videos-player-modal/short-videos-player-modal-state.svelte.js +0 -13
  188. package/dist/streams/components/cmp.stream-page-component.svelte +0 -16
  189. package/dist/streams/components/cmp.stream-page-component.svelte.d.ts +0 -10
  190. package/dist/streams/components/components.factory.d.ts +0 -22
  191. package/dist/streams/components/components.factory.js +0 -34
  192. package/dist/streams/components/images/cmp.images-component.svelte +0 -7
  193. package/dist/streams/components/images/index.d.ts +0 -2
  194. package/dist/streams/components/images/index.js +0 -1
  195. package/dist/streams/components/images/types.d.ts +0 -8
  196. package/dist/streams/components/images/types.js +0 -5
  197. package/dist/streams/components/index.d.ts +0 -7
  198. package/dist/streams/components/index.js +0 -6
  199. package/dist/streams/components/mapper.d.ts +0 -3
  200. package/dist/streams/components/mapper.js +0 -43
  201. package/dist/streams/components/operations.generated.d.ts +0 -178
  202. package/dist/streams/components/operations.generated.js +0 -653
  203. package/dist/streams/components/operations.graphql +0 -35
  204. package/dist/streams/components/product/index.d.ts +0 -3
  205. package/dist/streams/components/product/index.js +0 -2
  206. package/dist/streams/components/product/mapper.d.ts +0 -3
  207. package/dist/streams/components/product/mapper.js +0 -14
  208. package/dist/streams/components/product/operations.generated.d.ts +0 -22
  209. package/dist/streams/components/product/operations.generated.js +0 -53
  210. package/dist/streams/components/product/operations.graphql +0 -19
  211. package/dist/streams/components/product/types.d.ts +0 -10
  212. package/dist/streams/components/product/types.js +0 -1
  213. package/dist/streams/components/short-video/cmp.short-video-component.svelte +0 -9
  214. package/dist/streams/components/short-video/cmp.short-video-component.svelte.d.ts +0 -10
  215. package/dist/streams/components/short-video/index.d.ts +0 -3
  216. package/dist/streams/components/short-video/index.js +0 -2
  217. package/dist/streams/components/short-video/mapper.d.ts +0 -3
  218. package/dist/streams/components/short-video/mapper.js +0 -4
  219. package/dist/streams/components/short-video/operations.generated.d.ts +0 -56
  220. package/dist/streams/components/short-video/operations.generated.js +0 -193
  221. package/dist/streams/components/short-video/operations.graphql +0 -3
  222. package/dist/streams/components/short-video/types.d.ts +0 -2
  223. package/dist/streams/components/stream-components-localization.svelte.d.ts +0 -10
  224. package/dist/streams/components/stream-components-localization.svelte.js +0 -13
  225. package/dist/streams/components/types.d.ts +0 -27
  226. package/dist/streams/components/types.js +0 -6
  227. package/dist/streams/slots/cmp.stream-component-slot.svelte +0 -35
  228. package/dist/streams/slots/index.d.ts +0 -3
  229. package/dist/streams/slots/index.js +0 -2
  230. package/dist/streams/slots/mapper.d.ts +0 -3
  231. package/dist/streams/slots/mapper.js +0 -18
  232. package/dist/streams/slots/operations.generated.d.ts +0 -17
  233. package/dist/streams/slots/operations.generated.js +0 -34
  234. package/dist/streams/slots/operations.graphql +0 -14
  235. package/dist/streams/slots/styles-transformer.d.ts +0 -6
  236. package/dist/streams/slots/styles-transformer.js +0 -12
  237. package/dist/streams/slots/types.d.ts +0 -16
  238. package/dist/streams/slots/types.js +0 -1
  239. package/dist/streams/stream-player-modal/cmp.stream-player-modal.svelte +0 -491
  240. package/dist/streams/stream-player-modal/cmp.stream-player-modal.svelte.d.ts +0 -3
  241. package/dist/streams/stream-player-modal/index.d.ts +0 -79
  242. package/dist/streams/stream-player-modal/index.js +0 -78
  243. package/dist/streams/stream-player-modal/stream-player-modal-state.svelte.d.ts +0 -17
  244. package/dist/streams/stream-player-modal/stream-player-modal-state.svelte.js +0 -14
  245. package/dist/ui/shadow-dom/cmp.shadow-dom.svelte +0 -26
  246. /package/dist/{advertising/ad-view/types.js → streams/layout/layout.js} +0 -0
  247. /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 { default as ShadowDom } from './cmp.shadow-dom.svelte';
1
+ export { ShadowHost } from './shadow-host.svelte';
@@ -1 +1 @@
1
- export { default as ShadowDom } from './cmp.shadow-dom.svelte';
1
+ export { ShadowHost } from './shadow-host.svelte';
@@ -0,0 +1,8 @@
1
+ export declare class ShadowHost {
2
+ shadowRoot: ShadowRoot;
3
+ private host;
4
+ constructor();
5
+ attachToBody(): void;
6
+ remove(): void;
7
+ private handleEsc;
8
+ }
@@ -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';