@streamscloud/embeddable 1.2.0 → 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 -486
  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 -487
  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
@@ -160,374 +160,6 @@ export const GetStreamPagesDocument = {
160
160
  ]
161
161
  }
162
162
  },
163
- {
164
- kind: 'FragmentDefinition',
165
- name: { kind: 'Name', value: 'ProductCardPayloadFragment' },
166
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Product' } },
167
- selectionSet: {
168
- kind: 'SelectionSet',
169
- selections: [
170
- {
171
- kind: 'Field',
172
- name: { kind: 'Name', value: 'media' },
173
- selectionSet: {
174
- kind: 'SelectionSet',
175
- selections: [
176
- {
177
- kind: 'Field',
178
- name: { kind: 'Name', value: 'url' },
179
- arguments: [
180
- { kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
181
- ]
182
- },
183
- {
184
- kind: 'Field',
185
- name: { kind: 'Name', value: 'thumbnailUrl' },
186
- arguments: [
187
- { kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
188
- ]
189
- },
190
- { kind: 'Field', name: { kind: 'Name', value: 'type' } }
191
- ]
192
- }
193
- },
194
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
195
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
196
- { kind: 'Field', name: { kind: 'Name', value: 'link' } },
197
- {
198
- kind: 'Field',
199
- name: { kind: 'Name', value: 'priceAndAvailability' },
200
- selectionSet: {
201
- kind: 'SelectionSet',
202
- selections: [
203
- { kind: 'Field', name: { kind: 'Name', value: 'currency' } },
204
- { kind: 'Field', name: { kind: 'Name', value: 'price' } },
205
- {
206
- kind: 'Field',
207
- name: { kind: 'Name', value: 'productSalePrices' },
208
- selectionSet: {
209
- kind: 'SelectionSet',
210
- selections: [
211
- { kind: 'Field', name: { kind: 'Name', value: 'salePrice' } },
212
- { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateFrom' } },
213
- { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateTo' } }
214
- ]
215
- }
216
- }
217
- ]
218
- }
219
- }
220
- ]
221
- }
222
- },
223
- {
224
- kind: 'FragmentDefinition',
225
- name: { kind: 'Name', value: 'AdViewPayloadFragment' },
226
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Ad' } },
227
- selectionSet: {
228
- kind: 'SelectionSet',
229
- selections: [
230
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
231
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
232
- { kind: 'Field', name: { kind: 'Name', value: 'description' } },
233
- { kind: 'Field', name: { kind: 'Name', value: 'buttonText' } },
234
- { kind: 'Field', name: { kind: 'Name', value: 'buttonUrl' } },
235
- { kind: 'Field', name: { kind: 'Name', value: 'openLinkInNewWindow' } },
236
- { kind: 'Field', name: { kind: 'Name', value: 'type' } },
237
- {
238
- kind: 'Field',
239
- name: { kind: 'Name', value: 'media' },
240
- selectionSet: {
241
- kind: 'SelectionSet',
242
- selections: [
243
- { kind: 'Field', name: { kind: 'Name', value: 'type' } },
244
- {
245
- kind: 'Field',
246
- name: { kind: 'Name', value: 'url' },
247
- arguments: [
248
- { kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
249
- ]
250
- },
251
- {
252
- kind: 'Field',
253
- name: { kind: 'Name', value: 'thumbnailUrl' },
254
- arguments: [
255
- { kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
256
- ]
257
- }
258
- ]
259
- }
260
- }
261
- ]
262
- }
263
- },
264
- {
265
- kind: 'FragmentDefinition',
266
- name: { kind: 'Name', value: 'ShortVideoViewerPayloadFragment' },
267
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
268
- selectionSet: {
269
- kind: 'SelectionSet',
270
- selections: [
271
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
272
- { kind: 'Field', name: { kind: 'Name', value: 'enableSocialInteractions' } },
273
- {
274
- kind: 'Field',
275
- name: { kind: 'Name', value: 'postHeading' },
276
- selectionSet: {
277
- kind: 'SelectionSet',
278
- selections: [
279
- { kind: 'Field', name: { kind: 'Name', value: 'sourceImage' } },
280
- { kind: 'Field', name: { kind: 'Name', value: 'sourceName' } },
281
- { kind: 'Field', name: { kind: 'Name', value: 'postDisplayDate' } },
282
- { kind: 'Field', name: { kind: 'Name', value: 'postViewsCount' } }
283
- ]
284
- }
285
- },
286
- {
287
- kind: 'Field',
288
- name: { kind: 'Name', value: 'allProducts' },
289
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProductCardPayloadFragment' } }] }
290
- },
291
- {
292
- kind: 'Field',
293
- name: { kind: 'Name', value: 'ad' },
294
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'AdViewPayloadFragment' } }] }
295
- },
296
- {
297
- kind: 'Field',
298
- name: { kind: 'Name', value: 'postData' },
299
- selectionSet: {
300
- kind: 'SelectionSet',
301
- selections: [
302
- {
303
- kind: 'Field',
304
- name: { kind: 'Name', value: 'media' },
305
- selectionSet: {
306
- kind: 'SelectionSet',
307
- selections: [
308
- {
309
- kind: 'Field',
310
- name: { kind: 'Name', value: 'url' },
311
- arguments: [
312
- {
313
- kind: 'Argument',
314
- name: { kind: 'Name', value: 'scale' },
315
- value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
316
- }
317
- ]
318
- },
319
- {
320
- kind: 'Field',
321
- name: { kind: 'Name', value: 'thumbnailUrl' },
322
- arguments: [
323
- {
324
- kind: 'Argument',
325
- name: { kind: 'Name', value: 'scale' },
326
- value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
327
- }
328
- ]
329
- },
330
- { kind: 'Field', name: { kind: 'Name', value: 'type' } }
331
- ]
332
- }
333
- },
334
- {
335
- kind: 'Field',
336
- name: { kind: 'Name', value: 'shortVideoData' },
337
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
338
- }
339
- ]
340
- }
341
- }
342
- ]
343
- }
344
- },
345
- {
346
- kind: 'FragmentDefinition',
347
- name: { kind: 'Name', value: 'ShortVideoStreamComponentDataFragment' },
348
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
349
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ShortVideoViewerPayloadFragment' } }] }
350
- },
351
- {
352
- kind: 'FragmentDefinition',
353
- name: { kind: 'Name', value: 'ShortVideoStreamComponentParamsFragment' },
354
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ShortVideoStreamComponentParams' } },
355
- selectionSet: {
356
- kind: 'SelectionSet',
357
- selections: [
358
- {
359
- kind: 'Field',
360
- name: { kind: 'Name', value: 'data' },
361
- selectionSet: {
362
- kind: 'SelectionSet',
363
- selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ShortVideoStreamComponentDataFragment' } }]
364
- }
365
- }
366
- ]
367
- }
368
- },
369
- {
370
- kind: 'FragmentDefinition',
371
- name: { kind: 'Name', value: 'ImagesStreamComponentParamsFragment' },
372
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ImagesStreamComponentParams' } },
373
- selectionSet: {
374
- kind: 'SelectionSet',
375
- selections: [
376
- {
377
- kind: 'Field',
378
- name: { kind: 'Name', value: 'images' },
379
- selectionSet: {
380
- kind: 'SelectionSet',
381
- selections: [
382
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
383
- { kind: 'Field', name: { kind: 'Name', value: 'url' } }
384
- ]
385
- }
386
- },
387
- { kind: 'Field', name: { kind: 'Name', value: 'mode' } }
388
- ]
389
- }
390
- },
391
- {
392
- kind: 'FragmentDefinition',
393
- name: { kind: 'Name', value: 'ProductStreamComponentDataFragment' },
394
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Product' } },
395
- selectionSet: {
396
- kind: 'SelectionSet',
397
- selections: [
398
- {
399
- kind: 'Field',
400
- name: { kind: 'Name', value: 'media' },
401
- selectionSet: {
402
- kind: 'SelectionSet',
403
- selections: [
404
- { kind: 'Field', name: { kind: 'Name', value: 'url' } },
405
- { kind: 'Field', name: { kind: 'Name', value: 'thumbnailUrl' } },
406
- { kind: 'Field', name: { kind: 'Name', value: 'type' } }
407
- ]
408
- }
409
- },
410
- { kind: 'Field', name: { kind: 'Name', value: 'title' } },
411
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
412
- { kind: 'Field', name: { kind: 'Name', value: 'link' } },
413
- {
414
- kind: 'Field',
415
- name: { kind: 'Name', value: 'priceAndAvailability' },
416
- selectionSet: {
417
- kind: 'SelectionSet',
418
- selections: [
419
- { kind: 'Field', name: { kind: 'Name', value: 'currency' } },
420
- { kind: 'Field', name: { kind: 'Name', value: 'price' } },
421
- {
422
- kind: 'Field',
423
- name: { kind: 'Name', value: 'productSalePrices' },
424
- selectionSet: {
425
- kind: 'SelectionSet',
426
- selections: [
427
- { kind: 'Field', name: { kind: 'Name', value: 'salePrice' } },
428
- { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateFrom' } },
429
- { kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateTo' } }
430
- ]
431
- }
432
- }
433
- ]
434
- }
435
- }
436
- ]
437
- }
438
- },
439
- {
440
- kind: 'FragmentDefinition',
441
- name: { kind: 'Name', value: 'ProductStreamComponentParamsFragment' },
442
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'ProductStreamComponentParams' } },
443
- selectionSet: {
444
- kind: 'SelectionSet',
445
- selections: [
446
- {
447
- kind: 'Field',
448
- name: { kind: 'Name', value: 'data' },
449
- selectionSet: {
450
- kind: 'SelectionSet',
451
- selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProductStreamComponentDataFragment' } }]
452
- }
453
- }
454
- ]
455
- }
456
- },
457
- {
458
- kind: 'FragmentDefinition',
459
- name: { kind: 'Name', value: 'StreamComponentPayloadFragment' },
460
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'StreamComponent' } },
461
- selectionSet: {
462
- kind: 'SelectionSet',
463
- selections: [
464
- { kind: 'Field', name: { kind: 'Name', value: 'slotId' } },
465
- { kind: 'Field', name: { kind: 'Name', value: 'type' } },
466
- {
467
- kind: 'Field',
468
- name: { kind: 'Name', value: 'params' },
469
- selectionSet: {
470
- kind: 'SelectionSet',
471
- selections: [
472
- {
473
- kind: 'Field',
474
- name: { kind: 'Name', value: 'shortVideo' },
475
- selectionSet: {
476
- kind: 'SelectionSet',
477
- selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ShortVideoStreamComponentParamsFragment' } }]
478
- }
479
- },
480
- {
481
- kind: 'Field',
482
- name: { kind: 'Name', value: 'images' },
483
- selectionSet: {
484
- kind: 'SelectionSet',
485
- selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ImagesStreamComponentParamsFragment' } }]
486
- }
487
- },
488
- {
489
- kind: 'Field',
490
- name: { kind: 'Name', value: 'product' },
491
- selectionSet: {
492
- kind: 'SelectionSet',
493
- selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProductStreamComponentParamsFragment' } }]
494
- }
495
- }
496
- ]
497
- }
498
- }
499
- ]
500
- }
501
- },
502
- {
503
- kind: 'FragmentDefinition',
504
- name: { kind: 'Name', value: 'StreamComponentSlotFragment' },
505
- typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'StreamComponentSlot' } },
506
- selectionSet: {
507
- kind: 'SelectionSet',
508
- selections: [
509
- { kind: 'Field', name: { kind: 'Name', value: 'id' } },
510
- { kind: 'Field', name: { kind: 'Name', value: 'allowedComponents' } },
511
- { kind: 'Field', name: { kind: 'Name', value: 'top' } },
512
- { kind: 'Field', name: { kind: 'Name', value: 'left' } },
513
- { kind: 'Field', name: { kind: 'Name', value: 'width' } },
514
- { kind: 'Field', name: { kind: 'Name', value: 'height' } },
515
- {
516
- kind: 'Field',
517
- name: { kind: 'Name', value: 'styles' },
518
- selectionSet: {
519
- kind: 'SelectionSet',
520
- selections: [
521
- { kind: 'Field', name: { kind: 'Name', value: 'paddingTop' } },
522
- { kind: 'Field', name: { kind: 'Name', value: 'paddingRight' } },
523
- { kind: 'Field', name: { kind: 'Name', value: 'paddingBottom' } },
524
- { kind: 'Field', name: { kind: 'Name', value: 'paddingLeft' } }
525
- ]
526
- }
527
- }
528
- ]
529
- }
530
- },
531
163
  {
532
164
  kind: 'FragmentDefinition',
533
165
  name: { kind: 'Name', value: 'StreamPageViewerPayloadFragment' },
@@ -544,13 +176,8 @@ export const GetStreamPagesDocument = {
544
176
  { kind: 'Field', name: { kind: 'Name', value: 'name' } },
545
177
  {
546
178
  kind: 'Field',
547
- name: { kind: 'Name', value: 'components' },
548
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'StreamComponentPayloadFragment' } }] }
549
- },
550
- {
551
- kind: 'Field',
552
- name: { kind: 'Name', value: 'slots' },
553
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'StreamComponentSlotFragment' } }] }
179
+ name: { kind: 'Name', value: 'layout' },
180
+ arguments: [{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }]
554
181
  }
555
182
  ]
556
183
  }
@@ -163,7 +163,7 @@ let { model, buffer, activePageId, on, uiManager, localization } = $props();
163
163
  background: transparent;
164
164
  }
165
165
  .stream-overview-pages:hover {
166
- scrollbar-color: var(--custom-scrollbar-color, #b0b0b0) var(--custom-scrollbar-background, #f1f1f1);
166
+ scrollbar-color: var(--custom-scrollbar-color, #7d7d7d) var(--custom-scrollbar-background, transparent);
167
167
  scrollbar-width: thin;
168
168
  }
169
169
  .stream-overview-pages:hover::-webkit-scrollbar {
@@ -173,7 +173,7 @@ let { model, buffer, activePageId, on, uiManager, localization } = $props();
173
173
  visibility: hidden;
174
174
  }
175
175
  .stream-overview-pages:hover::-webkit-scrollbar-thumb {
176
- background: var(--custom-scrollbar-color, #b0b0b0);
176
+ background: var(--custom-scrollbar-color, #7d7d7d);
177
177
  }
178
178
  .stream-overview-pages__grid {
179
179
  display: flex;
@@ -1,5 +1,5 @@
1
- import type { IPlayerBuffer } from '../../ui/player';
2
1
  import { type StreamPageViewerModel } from '../stream-page-viewer';
2
+ import type { IPlayerBuffer } from '../../ui/player';
3
3
  import type { Client } from '@urql/core';
4
4
  export declare class StreamPlayerBuffer implements IPlayerBuffer<StreamPageViewerModel> {
5
5
  readonly loaded: StreamPageViewerModel[];
@@ -1,6 +1,6 @@
1
1
  import { ContinuationToken } from '../../core/continuation-token';
2
2
  import { CursorDataLoader } from '../../core/data-loaders';
3
- import { ImageScale } from '../../core/media';
3
+ import { ImageScale } from '../../core/enums';
4
4
  import { Utils } from '../../core/utils';
5
5
  import {} from '../stream-page-viewer';
6
6
  import { mapToStreamPageViewerModel } from '../stream-page-viewer/mapper';
@@ -1,18 +1,12 @@
1
- import type { ITimeAgoLocalization } from '../../ui/time-ago';
1
+ import type { IShortVideoDetailsLocalization } from '../../short-videos/short-video-viewer';
2
2
  export interface IStreamPlayerLocalization {
3
- productsSection?: string;
4
- offersSection?: string;
5
3
  streamNotFound?: string;
6
- viewsCount?: (count: number) => string;
7
4
  pagesCount?: (count: number) => string;
8
- timeAgoLocalization?: ITimeAgoLocalization;
5
+ shortVideoDetailsLocalization?: IShortVideoDetailsLocalization;
9
6
  }
10
7
  export declare class StreamPlayerLocalization {
11
8
  streamNotFound: string;
12
- productsSection: string;
13
- offersSection: string;
14
- viewsCount: (count: number) => string;
15
9
  pagesCount: (count: number) => string;
16
- timeAgoLocalization: ITimeAgoLocalization | undefined;
10
+ shortVideoDetailsLocalization: IShortVideoDetailsLocalization | undefined;
17
11
  constructor(init?: IStreamPlayerLocalization);
18
12
  }
@@ -1,29 +1,10 @@
1
1
  export class StreamPlayerLocalization {
2
2
  streamNotFound = $state('Stream not found');
3
- productsSection = $state('Products');
4
- offersSection = $state('Offers');
5
- viewsCount = $state((count) => (count === 1 ? '1 view' : `${count} views`));
6
3
  pagesCount = $state((count) => (count === 1 ? '1 page' : `${count} pages`));
7
- timeAgoLocalization = $state(undefined);
4
+ shortVideoDetailsLocalization = $state(undefined);
8
5
  constructor(init) {
9
- if (!init) {
10
- return;
11
- }
12
- if (init.streamNotFound !== undefined) {
13
- this.streamNotFound = init.streamNotFound;
14
- }
15
- if (init.productsSection !== undefined) {
16
- this.productsSection = init.productsSection;
17
- }
18
- if (init.offersSection !== undefined) {
19
- this.offersSection = init.offersSection;
20
- }
21
- if (init.viewsCount !== undefined) {
22
- this.viewsCount = init.viewsCount;
23
- }
24
- if (init.pagesCount !== undefined) {
25
- this.pagesCount = init.pagesCount;
26
- }
27
- this.timeAgoLocalization = init.timeAgoLocalization;
6
+ this.streamNotFound = init?.streamNotFound || this.streamNotFound;
7
+ this.pagesCount = init?.pagesCount || this.pagesCount;
8
+ this.shortVideoDetailsLocalization = init?.shortVideoDetailsLocalization || this.shortVideoDetailsLocalization;
28
9
  }
29
10
  }
@@ -1,4 +1,5 @@
1
- <script lang="ts">import { MediaFormat, MediaType, getMediaItemImageUrl } from '../../core/media';
1
+ <script lang="ts">import { MediaFormat, MediaType } from '../../core/enums';
2
+ import { getMediaItemImageUrl } from '../../core/media';
2
3
  import { Image } from '../image';
3
4
  import { ProportionalContainer } from '../proportional-container';
4
5
  import { Video } from '../video';
@@ -1,4 +1,5 @@
1
- import { MediaFormat, type MediaItemModel } from '../../core/media';
1
+ import { MediaFormat } from '../../core/enums';
2
+ import { type MediaItemModel } from '../../core/media';
2
3
  type Props = {
3
4
  media: MediaItemModel | null;
4
5
  ratio?: number | MediaFormat | 'fit-parent';
@@ -7,7 +7,8 @@
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { MediaFormat } from '../../core/media';
10
+ import { MediaFormat } from '../../core/enums';
11
+ import {} from '../../core/media';
11
12
  import { MediaItemView } from '../media-item-view';
12
13
  import { GalleryLayout } from './types';
13
14
  let { media, singleImageRatio = 0, inert = false, on } = $props();
@@ -1,4 +1,5 @@
1
- import { MediaFormat, type MediaItemWithMetadataModel } from '../../core/media';
1
+ import { MediaFormat } from '../../core/enums';
2
+ import { type MediaItemWithMetadataModel } from '../../core/media';
2
3
  type Props = {
3
4
  media: Array<MediaItemWithMetadataModel> | ReadonlyArray<MediaItemWithMetadataModel>;
4
5
  singleImageRatio?: number | MediaFormat;