@streamscloud/embeddable 1.1.2
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/README.md +1 -0
- package/dist/advertising/ad-view/cmp.ad-view.svelte +82 -0
- package/dist/advertising/ad-view/cmp.ad-view.svelte.d.ts +8 -0
- package/dist/advertising/ad-view/index.d.ts +2 -0
- package/dist/advertising/ad-view/index.js +1 -0
- package/dist/advertising/ad-view/mapper.d.ts +3 -0
- package/dist/advertising/ad-view/mapper.js +16 -0
- package/dist/advertising/ad-view/operations.generated.d.ts +17 -0
- package/dist/advertising/ad-view/operations.generated.js +46 -0
- package/dist/advertising/ad-view/operations.graphql +14 -0
- package/dist/advertising/ad-view/types.d.ts +10 -0
- package/dist/advertising/ad-view/types.js +1 -0
- package/dist/advertising/index.d.ts +1 -0
- package/dist/advertising/index.js +1 -0
- package/dist/advertising/types.d.ts +5 -0
- package/dist/advertising/types.js +6 -0
- package/dist/core/continuation-token.d.ts +10 -0
- package/dist/core/continuation-token.js +32 -0
- package/dist/core/cursor-result.d.ts +9 -0
- package/dist/core/cursor-result.js +1 -0
- package/dist/core/data-loaders/cursor-data-loader.svelte.d.ts +14 -0
- package/dist/core/data-loaders/cursor-data-loader.svelte.js +35 -0
- package/dist/core/data-loaders/data-loader.d.ts +4 -0
- package/dist/core/data-loaders/data-loader.js +1 -0
- package/dist/core/data-loaders/index.d.ts +2 -0
- package/dist/core/data-loaders/index.js +1 -0
- package/dist/core/deferred.d.ts +6 -0
- package/dist/core/deferred.js +13 -0
- package/dist/core/graphql.d.ts +1 -0
- package/dist/core/graphql.js +10 -0
- package/dist/core/media/image-helper.d.ts +10 -0
- package/dist/core/media/image-helper.js +30 -0
- package/dist/core/media/images-size-detector.service.d.ts +6 -0
- package/dist/core/media/images-size-detector.service.js +15 -0
- package/dist/core/media/index.d.ts +4 -0
- package/dist/core/media/index.js +4 -0
- package/dist/core/media/media-item-url.service.d.ts +2 -0
- package/dist/core/media/media-item-url.service.js +2 -0
- package/dist/core/media/types.d.ts +28 -0
- package/dist/core/media/types.js +19 -0
- package/dist/core/toastr.d.ts +1 -0
- package/dist/core/toastr.js +26 -0
- package/dist/core/transitions/index.d.ts +1 -0
- package/dist/core/transitions/index.js +1 -0
- package/dist/core/transitions/slide-horizontally.d.ts +7 -0
- package/dist/core/transitions/slide-horizontally.js +55 -0
- package/dist/core/utils/array-helper.d.ts +23 -0
- package/dist/core/utils/array-helper.js +148 -0
- package/dist/core/utils/date-helper.d.ts +29 -0
- package/dist/core/utils/date-helper.js +146 -0
- package/dist/core/utils/dom-helper.d.ts +12 -0
- package/dist/core/utils/dom-helper.js +76 -0
- package/dist/core/utils/html-helper.d.ts +40 -0
- package/dist/core/utils/html-helper.js +97 -0
- package/dist/core/utils/index.d.ts +3 -0
- package/dist/core/utils/index.js +3 -0
- package/dist/core/utils/number-helper.d.ts +6 -0
- package/dist/core/utils/number-helper.js +28 -0
- package/dist/core/utils/string-generator.d.ts +2 -0
- package/dist/core/utils/string-generator.js +15 -0
- package/dist/core/utils/string-helper.d.ts +10 -0
- package/dist/core/utils/string-helper.js +53 -0
- package/dist/core/utils/url-helper.d.ts +3 -0
- package/dist/core/utils/url-helper.js +13 -0
- package/dist/core/utils/utils.d.ts +28 -0
- package/dist/core/utils/utils.js +100 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/products/index.d.ts +1 -0
- package/dist/products/index.js +1 -0
- package/dist/products/price-helper.d.ts +4 -0
- package/dist/products/price-helper.js +36 -0
- package/dist/products/product-card/cmp.product-card.svelte +121 -0
- package/dist/products/product-card/cmp.product-card.svelte.d.ts +10 -0
- package/dist/products/product-card/index.d.ts +3 -0
- package/dist/products/product-card/index.js +3 -0
- package/dist/products/product-card/mapper.d.ts +3 -0
- package/dist/products/product-card/mapper.js +14 -0
- package/dist/products/product-card/operations.generated.d.ts +22 -0
- package/dist/products/product-card/operations.generated.js +65 -0
- package/dist/products/product-card/operations.graphql +19 -0
- package/dist/products/product-card/product-card-localization.svelte.d.ts +7 -0
- package/dist/products/product-card/product-card-localization.svelte.js +11 -0
- package/dist/products/product-card/types.d.ts +10 -0
- package/dist/products/product-card/types.js +1 -0
- package/dist/products/types.d.ts +5 -0
- package/dist/products/types.js +6 -0
- package/dist/short-videos/short-video-viewer/cmp.attachments.svelte +71 -0
- package/dist/short-videos/short-video-viewer/cmp.attachments.svelte.d.ts +7 -0
- package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte +145 -0
- package/dist/short-videos/short-video-viewer/cmp.short-video-details.svelte.d.ts +10 -0
- package/dist/short-videos/short-video-viewer/cmp.short-video-heading.svelte +86 -0
- package/dist/short-videos/short-video-viewer/cmp.short-video-heading.svelte.d.ts +9 -0
- package/dist/short-videos/short-video-viewer/cmp.short-video-viewer.svelte +133 -0
- package/dist/short-videos/short-video-viewer/cmp.short-video-viewer.svelte.d.ts +12 -0
- package/dist/short-videos/short-video-viewer/description.svelte +46 -0
- package/dist/short-videos/short-video-viewer/description.svelte.d.ts +9 -0
- package/dist/short-videos/short-video-viewer/index.d.ts +6 -0
- package/dist/short-videos/short-video-viewer/index.js +4 -0
- package/dist/short-videos/short-video-viewer/mapper.d.ts +3 -0
- package/dist/short-videos/short-video-viewer/mapper.js +28 -0
- package/dist/short-videos/short-video-viewer/operations.generated.d.ts +56 -0
- package/dist/short-videos/short-video-viewer/operations.generated.js +187 -0
- package/dist/short-videos/short-video-viewer/operations.graphql +26 -0
- package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.d.ts +14 -0
- package/dist/short-videos/short-video-viewer/short-video-details-localization.svelte.js +21 -0
- package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.d.ts +10 -0
- package/dist/short-videos/short-video-viewer/short-video-viewer-localization.svelte.js +13 -0
- package/dist/short-videos/short-video-viewer/types.d.ts +17 -0
- package/dist/short-videos/short-video-viewer/types.js +1 -0
- package/dist/short-videos/short-video-viewer/ui-manager.svelte.d.ts +12 -0
- package/dist/short-videos/short-video-viewer/ui-manager.svelte.js +26 -0
- package/dist/short-videos/short-videos-player/action-button.svelte +38 -0
- package/dist/short-videos/short-videos-player/action-button.svelte.d.ts +10 -0
- package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte +91 -0
- package/dist/short-videos/short-videos-player/cmp.short-videos-player.svelte.d.ts +13 -0
- package/dist/short-videos/short-videos-player/controls.svelte +215 -0
- package/dist/short-videos/short-videos-player/controls.svelte.d.ts +15 -0
- package/dist/short-videos/short-videos-player/index.d.ts +2 -0
- package/dist/short-videos/short-videos-player/index.js +1 -0
- package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.d.ts +14 -0
- package/dist/short-videos/short-videos-player/short-videos-player-localization.svelte.js +21 -0
- package/dist/short-videos/short-videos-player/ui-manager.svelte.d.ts +16 -0
- package/dist/short-videos/short-videos-player/ui-manager.svelte.js +25 -0
- package/dist/short-videos/short-videos-player-modal/cmp.short-videos-player-modal.svelte +485 -0
- package/dist/short-videos/short-videos-player-modal/cmp.short-videos-player-modal.svelte.d.ts +3 -0
- package/dist/short-videos/short-videos-player-modal/index.d.ts +79 -0
- package/dist/short-videos/short-videos-player-modal/index.js +78 -0
- package/dist/short-videos/short-videos-player-modal/short-videos-player-modal-state.svelte.d.ts +16 -0
- package/dist/short-videos/short-videos-player-modal/short-videos-player-modal-state.svelte.js +13 -0
- package/dist/streams/components/cmp.stream-page-component.svelte +16 -0
- package/dist/streams/components/cmp.stream-page-component.svelte.d.ts +10 -0
- package/dist/streams/components/components.factory.d.ts +22 -0
- package/dist/streams/components/components.factory.js +34 -0
- package/dist/streams/components/images/cmp.images-component.svelte +7 -0
- package/dist/streams/components/images/cmp.images-component.svelte.d.ts +7 -0
- package/dist/streams/components/images/index.d.ts +2 -0
- package/dist/streams/components/images/index.js +1 -0
- package/dist/streams/components/images/types.d.ts +8 -0
- package/dist/streams/components/images/types.js +5 -0
- package/dist/streams/components/index.d.ts +7 -0
- package/dist/streams/components/index.js +6 -0
- package/dist/streams/components/mapper.d.ts +3 -0
- package/dist/streams/components/mapper.js +43 -0
- package/dist/streams/components/operations.generated.d.ts +178 -0
- package/dist/streams/components/operations.generated.js +653 -0
- package/dist/streams/components/operations.graphql +35 -0
- package/dist/streams/components/product/cmp.product-component.svelte +148 -0
- package/dist/streams/components/product/cmp.product-component.svelte.d.ts +8 -0
- package/dist/streams/components/product/index.d.ts +3 -0
- package/dist/streams/components/product/index.js +2 -0
- package/dist/streams/components/product/mapper.d.ts +3 -0
- package/dist/streams/components/product/mapper.js +14 -0
- package/dist/streams/components/product/operations.generated.d.ts +22 -0
- package/dist/streams/components/product/operations.generated.js +53 -0
- package/dist/streams/components/product/operations.graphql +19 -0
- package/dist/streams/components/product/types.d.ts +10 -0
- package/dist/streams/components/product/types.js +1 -0
- package/dist/streams/components/short-video/cmp.short-video-component.svelte +9 -0
- package/dist/streams/components/short-video/cmp.short-video-component.svelte.d.ts +10 -0
- package/dist/streams/components/short-video/index.d.ts +3 -0
- package/dist/streams/components/short-video/index.js +2 -0
- package/dist/streams/components/short-video/mapper.d.ts +3 -0
- package/dist/streams/components/short-video/mapper.js +4 -0
- package/dist/streams/components/short-video/operations.generated.d.ts +56 -0
- package/dist/streams/components/short-video/operations.generated.js +193 -0
- package/dist/streams/components/short-video/operations.graphql +3 -0
- package/dist/streams/components/short-video/types.d.ts +2 -0
- package/dist/streams/components/short-video/types.js +1 -0
- package/dist/streams/components/stream-components-localization.svelte.d.ts +10 -0
- package/dist/streams/components/stream-components-localization.svelte.js +13 -0
- package/dist/streams/components/types.d.ts +27 -0
- package/dist/streams/components/types.js +6 -0
- package/dist/streams/slots/cmp.stream-component-slot.svelte +35 -0
- package/dist/streams/slots/cmp.stream-component-slot.svelte.d.ts +9 -0
- package/dist/streams/slots/index.d.ts +3 -0
- package/dist/streams/slots/index.js +2 -0
- package/dist/streams/slots/mapper.d.ts +3 -0
- package/dist/streams/slots/mapper.js +18 -0
- package/dist/streams/slots/operations.generated.d.ts +17 -0
- package/dist/streams/slots/operations.generated.js +34 -0
- package/dist/streams/slots/operations.graphql +14 -0
- package/dist/streams/slots/styles-transformer.d.ts +6 -0
- package/dist/streams/slots/styles-transformer.js +12 -0
- package/dist/streams/slots/types.d.ts +16 -0
- package/dist/streams/slots/types.js +1 -0
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte +47 -0
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte.d.ts +9 -0
- package/dist/streams/stream-page-viewer/index.d.ts +2 -0
- package/dist/streams/stream-page-viewer/index.js +1 -0
- package/dist/streams/stream-page-viewer/mapper.d.ts +3 -0
- package/dist/streams/stream-page-viewer/mapper.js +23 -0
- package/dist/streams/stream-page-viewer/operations.generated.d.ts +113 -0
- package/dist/streams/stream-page-viewer/operations.generated.js +400 -0
- package/dist/streams/stream-page-viewer/operations.graphql +13 -0
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.d.ts +10 -0
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.svelte.js +13 -0
- package/dist/streams/stream-page-viewer/types.d.ts +18 -0
- package/dist/streams/stream-page-viewer/types.js +1 -0
- package/dist/streams/stream-player/action-button.svelte +38 -0
- package/dist/streams/stream-player/action-button.svelte.d.ts +10 -0
- package/dist/streams/stream-player/cmp.stream-player.svelte +141 -0
- package/dist/streams/stream-player/cmp.stream-player.svelte.d.ts +16 -0
- package/dist/streams/stream-player/controls.svelte +222 -0
- package/dist/streams/stream-player/controls.svelte.d.ts +14 -0
- package/dist/streams/stream-player/index.d.ts +2 -0
- package/dist/streams/stream-player/index.js +1 -0
- package/dist/streams/stream-player/mapper.d.ts +3 -0
- package/dist/streams/stream-player/mapper.js +15 -0
- package/dist/streams/stream-player/operations.generated.d.ts +161 -0
- package/dist/streams/stream-player/operations.generated.js +559 -0
- package/dist/streams/stream-player/operations.graphql +32 -0
- package/dist/streams/stream-player/stream-overview.svelte +239 -0
- package/dist/streams/stream-player/stream-overview.svelte.d.ts +17 -0
- package/dist/streams/stream-player/stream-player-buffer.svelte.d.ts +25 -0
- package/dist/streams/stream-player/stream-player-buffer.svelte.js +84 -0
- package/dist/streams/stream-player/stream-player-localization.svelte.d.ts +18 -0
- package/dist/streams/stream-player/stream-player-localization.svelte.js +29 -0
- package/dist/streams/stream-player/types.d.ts +12 -0
- package/dist/streams/stream-player/types.js +1 -0
- package/dist/streams/stream-player/ui-manager.svelte.d.ts +17 -0
- package/dist/streams/stream-player/ui-manager.svelte.js +26 -0
- package/dist/streams/stream-player-modal/cmp.stream-player-modal.svelte +486 -0
- package/dist/streams/stream-player-modal/cmp.stream-player-modal.svelte.d.ts +3 -0
- package/dist/streams/stream-player-modal/index.d.ts +79 -0
- package/dist/streams/stream-player-modal/index.js +78 -0
- package/dist/streams/stream-player-modal/stream-player-modal-state.svelte.d.ts +17 -0
- package/dist/streams/stream-player-modal/stream-player-modal-state.svelte.js +14 -0
- package/dist/ui/button/cmp.button.svelte +10 -0
- package/dist/ui/button/cmp.button.svelte.d.ts +16 -0
- package/dist/ui/button/index.d.ts +2 -0
- package/dist/ui/button/index.js +2 -0
- package/dist/ui/button/resources/button-base.svelte +84 -0
- package/dist/ui/button/resources/button-base.svelte.d.ts +13 -0
- package/dist/ui/button/resources/button-theme.svelte +204 -0
- package/dist/ui/button/resources/button-theme.svelte.d.ts +10 -0
- package/dist/ui/button/resources/button-types.d.ts +21 -0
- package/dist/ui/button/resources/button-types.js +23 -0
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte +5 -0
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte.d.ts +7 -0
- package/dist/ui/dynamic-component/index.d.ts +2 -0
- package/dist/ui/dynamic-component/index.js +2 -0
- package/dist/ui/dynamic-component/types.svelte.d.ts +11 -0
- package/dist/ui/dynamic-component/types.svelte.js +13 -0
- package/dist/ui/icon/cmp.icon.svelte +113 -0
- package/dist/ui/icon/cmp.icon.svelte.d.ts +8 -0
- package/dist/ui/icon/index.d.ts +2 -0
- package/dist/ui/icon/index.js +2 -0
- package/dist/ui/icon/types.d.ts +9 -0
- package/dist/ui/icon/types.js +10 -0
- package/dist/ui/image/cmp.image-round.svelte +41 -0
- package/dist/ui/image/cmp.image-round.svelte.d.ts +11 -0
- package/dist/ui/image/cmp.image-rounded.svelte +71 -0
- package/dist/ui/image/cmp.image-rounded.svelte.d.ts +11 -0
- package/dist/ui/image/cmp.image-stub.svelte +34 -0
- package/dist/ui/image/cmp.image-stub.svelte.d.ts +18 -0
- package/dist/ui/image/cmp.image.svelte +82 -0
- package/dist/ui/image/cmp.image.svelte.d.ts +13 -0
- package/dist/ui/image/image-state.d.ts +6 -0
- package/dist/ui/image/image-state.js +17 -0
- package/dist/ui/image/index.d.ts +4 -0
- package/dist/ui/image/index.js +4 -0
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte +84 -0
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte.d.ts +11 -0
- package/dist/ui/infinite-scrolling/index.d.ts +1 -0
- package/dist/ui/infinite-scrolling/index.js +1 -0
- package/dist/ui/line-clamp/cmp.line-clamp.svelte +89 -0
- package/dist/ui/line-clamp/cmp.line-clamp.svelte.d.ts +12 -0
- package/dist/ui/line-clamp/index.d.ts +2 -0
- package/dist/ui/line-clamp/index.js +2 -0
- package/dist/ui/line-clamp/line-clamp-localization.svelte.d.ts +9 -0
- package/dist/ui/line-clamp/line-clamp-localization.svelte.js +15 -0
- package/dist/ui/line-clamp/line-clamp-types.d.ts +3 -0
- package/dist/ui/line-clamp/line-clamp-types.js +1 -0
- package/dist/ui/line-clamp/line-clamp-utils.d.ts +8 -0
- package/dist/ui/line-clamp/line-clamp-utils.js +33 -0
- package/dist/ui/loading/cmp.loading.svelte +97 -0
- package/dist/ui/loading/cmp.loading.svelte.d.ts +9 -0
- package/dist/ui/loading/index.d.ts +1 -0
- package/dist/ui/loading/index.js +1 -0
- package/dist/ui/media-item-view/cmp.media-item-view.svelte +90 -0
- package/dist/ui/media-item-view/cmp.media-item-view.svelte.d.ts +12 -0
- package/dist/ui/media-item-view/index.d.ts +1 -0
- package/dist/ui/media-item-view/index.js +1 -0
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte +277 -0
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte.d.ts +12 -0
- package/dist/ui/media-items-gallery/index.d.ts +1 -0
- package/dist/ui/media-items-gallery/index.js +1 -0
- package/dist/ui/media-items-gallery/types.d.ts +12 -0
- package/dist/ui/media-items-gallery/types.js +35 -0
- package/dist/ui/media-playback/index.d.ts +2 -0
- package/dist/ui/media-playback/index.js +2 -0
- package/dist/ui/media-playback/playback-manager.svelte.d.ts +25 -0
- package/dist/ui/media-playback/playback-manager.svelte.js +62 -0
- package/dist/ui/media-playback/volume-manager.svelte.d.ts +10 -0
- package/dist/ui/media-playback/volume-manager.svelte.js +27 -0
- package/dist/ui/player/cmp.player-slider.svelte +161 -0
- package/dist/ui/player/cmp.player-slider.svelte.d.ts +33 -0
- package/dist/ui/player/index.d.ts +4 -0
- package/dist/ui/player/index.js +3 -0
- package/dist/ui/player/player-buffer.svelte.d.ts +28 -0
- package/dist/ui/player/player-buffer.svelte.js +64 -0
- package/dist/ui/player/prevent-slider-scroll.d.ts +5 -0
- package/dist/ui/player/prevent-slider-scroll.js +11 -0
- package/dist/ui/player/types.d.ts +14 -0
- package/dist/ui/player/types.js +1 -0
- package/dist/ui/progress/cmp.progress.svelte +37 -0
- package/dist/ui/progress/cmp.progress.svelte.d.ts +6 -0
- package/dist/ui/progress/index.d.ts +1 -0
- package/dist/ui/progress/index.js +1 -0
- package/dist/ui/proportional-container/cmp.proportional-container.svelte +39 -0
- package/dist/ui/proportional-container/cmp.proportional-container.svelte.d.ts +8 -0
- package/dist/ui/proportional-container/index.d.ts +1 -0
- package/dist/ui/proportional-container/index.js +1 -0
- package/dist/ui/seek-bar/cmp.seek-bar.svelte +63 -0
- package/dist/ui/seek-bar/cmp.seek-bar.svelte.d.ts +12 -0
- package/dist/ui/seek-bar/index.d.ts +1 -0
- package/dist/ui/seek-bar/index.js +1 -0
- package/dist/ui/shadow-dom/cmp.shadow-dom.svelte +26 -0
- package/dist/ui/shadow-dom/cmp.shadow-dom.svelte.d.ts +7 -0
- package/dist/ui/shadow-dom/index.d.ts +1 -0
- package/dist/ui/shadow-dom/index.js +1 -0
- package/dist/ui/spotlight-layout/cmp.spotlight-layout.svelte +120 -0
- package/dist/ui/spotlight-layout/cmp.spotlight-layout.svelte.d.ts +18 -0
- package/dist/ui/spotlight-layout/index.d.ts +1 -0
- package/dist/ui/spotlight-layout/index.js +1 -0
- package/dist/ui/time-ago/cmp.time-ago.svelte +69 -0
- package/dist/ui/time-ago/cmp.time-ago.svelte.d.ts +9 -0
- package/dist/ui/time-ago/index.d.ts +2 -0
- package/dist/ui/time-ago/index.js +1 -0
- package/dist/ui/time-ago/time-ago-localization.svelte.d.ts +21 -0
- package/dist/ui/time-ago/time-ago-localization.svelte.js +39 -0
- package/dist/ui/video/cmp.video.svelte +377 -0
- package/dist/ui/video/cmp.video.svelte.d.ts +24 -0
- package/dist/ui/video/index.d.ts +1 -0
- package/dist/ui/video/index.js +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
fragment StreamComponentPayloadFragment on StreamComponent {
|
|
2
|
+
slotId
|
|
3
|
+
type
|
|
4
|
+
params {
|
|
5
|
+
shortVideo {
|
|
6
|
+
...ShortVideoStreamComponentParamsFragment
|
|
7
|
+
}
|
|
8
|
+
images {
|
|
9
|
+
...ImagesStreamComponentParamsFragment
|
|
10
|
+
}
|
|
11
|
+
product {
|
|
12
|
+
...ProductStreamComponentParamsFragment
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
fragment ShortVideoStreamComponentParamsFragment on ShortVideoStreamComponentParams {
|
|
18
|
+
data {
|
|
19
|
+
...ShortVideoStreamComponentDataFragment
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
fragment ImagesStreamComponentParamsFragment on ImagesStreamComponentParams {
|
|
24
|
+
images {
|
|
25
|
+
id
|
|
26
|
+
url
|
|
27
|
+
}
|
|
28
|
+
mode
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
fragment ProductStreamComponentParamsFragment on ProductStreamComponentParams {
|
|
32
|
+
data {
|
|
33
|
+
...ProductStreamComponentDataFragment
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
<script lang="ts">import { toPriceRepresentation } from '../../../products/price-helper';
|
|
2
|
+
import { ImageRounded } from '../../../ui/image';
|
|
3
|
+
import { ProportionalContainer } from '../../../ui/proportional-container';
|
|
4
|
+
let { model, fitToContainer = true } = $props();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div class="product-component">
|
|
8
|
+
{#if fitToContainer}
|
|
9
|
+
<div class="product-component__image">
|
|
10
|
+
<ImageRounded src={model.image} noBorders={true} />
|
|
11
|
+
</div>
|
|
12
|
+
{:else}
|
|
13
|
+
<ProportionalContainer ratio={4 / 5}>
|
|
14
|
+
<ImageRounded src={model.image} noBorders={true} />
|
|
15
|
+
</ProportionalContainer>
|
|
16
|
+
{/if}
|
|
17
|
+
<div class="product-component__name">{model.title}</div>
|
|
18
|
+
<div class="product-component__price">
|
|
19
|
+
<div class="product-price">
|
|
20
|
+
{#if !model.salePrice}
|
|
21
|
+
<div class="product-price__price">{toPriceRepresentation(model.price, model.currency)}</div>
|
|
22
|
+
{:else}
|
|
23
|
+
<div class="product-price__before-price">
|
|
24
|
+
{toPriceRepresentation(model.price, model.currency)}
|
|
25
|
+
</div>
|
|
26
|
+
<div class="product-price__price product-price__price--sale">
|
|
27
|
+
{toPriceRepresentation(model.salePrice, model.currency)}
|
|
28
|
+
</div>
|
|
29
|
+
{/if}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
{#if model.link}
|
|
34
|
+
<a href={model.link} target="_blank" rel="noopener noreferrer" class="product-component__link" aria-label="none"> </a>
|
|
35
|
+
{/if}
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<style>@keyframes fadeIn {
|
|
39
|
+
0% {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
}
|
|
42
|
+
50% {
|
|
43
|
+
opacity: 0.4;
|
|
44
|
+
}
|
|
45
|
+
100% {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.product-component {
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
position: relative;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
container-type: inline-size;
|
|
56
|
+
--image--rounded--outer--border-radius: 0.25em;
|
|
57
|
+
}
|
|
58
|
+
.product-component__image {
|
|
59
|
+
flex: 1;
|
|
60
|
+
min-height: 0;
|
|
61
|
+
}
|
|
62
|
+
.product-component__name {
|
|
63
|
+
width: 100%;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
font-size: 0.9375rem;
|
|
66
|
+
color: #2e2e2e;
|
|
67
|
+
margin-top: 0.5rem;
|
|
68
|
+
padding: 0 0.3125rem;
|
|
69
|
+
text-align: center;
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
width: 100%;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
/* Set 'container-type: inline-size;' to reference container*/
|
|
75
|
+
}
|
|
76
|
+
@container (width < 300px) {
|
|
77
|
+
.product-component__name {
|
|
78
|
+
font-size: 0.75rem;
|
|
79
|
+
margin-top: 0.3125rem;
|
|
80
|
+
padding: 0 0.25rem;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.product-component__price {
|
|
84
|
+
padding-top: 0.3125rem;
|
|
85
|
+
margin-top: auto;
|
|
86
|
+
/* Set 'container-type: inline-size;' to reference container*/
|
|
87
|
+
}
|
|
88
|
+
@container (width < 300px) {
|
|
89
|
+
.product-component__price {
|
|
90
|
+
padding-top: 0.25rem;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.product-component__link {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 0;
|
|
96
|
+
left: 0;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.product-price {
|
|
102
|
+
width: 100%;
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
gap: 0.4375rem;
|
|
106
|
+
/* Set 'container-type: inline-size;' to reference container*/
|
|
107
|
+
}
|
|
108
|
+
@container (width < 300px) {
|
|
109
|
+
.product-price {
|
|
110
|
+
gap: 0.3125rem;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.product-price__before-price {
|
|
114
|
+
width: 100%;
|
|
115
|
+
color: #e5e7eb;
|
|
116
|
+
text-decoration: line-through;
|
|
117
|
+
font-size: 0.75rem;
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
text-align: center;
|
|
120
|
+
text-overflow: ellipsis;
|
|
121
|
+
width: 100%;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
/* Set 'container-type: inline-size;' to reference container*/
|
|
125
|
+
}
|
|
126
|
+
@container (width < 300px) {
|
|
127
|
+
.product-price__before-price {
|
|
128
|
+
font-size: 0.625em;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.product-price__price {
|
|
132
|
+
width: 100%;
|
|
133
|
+
font-size: 1.0625em;
|
|
134
|
+
color: #2e2e2e;
|
|
135
|
+
font-weight: 800;
|
|
136
|
+
margin-top: auto;
|
|
137
|
+
text-align: center;
|
|
138
|
+
text-overflow: ellipsis;
|
|
139
|
+
width: 100%;
|
|
140
|
+
white-space: nowrap;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
/* Set 'container-type: inline-size;' to reference container*/
|
|
143
|
+
}
|
|
144
|
+
@container (width < 300px) {
|
|
145
|
+
.product-price__price {
|
|
146
|
+
font-size: 0.9375em;
|
|
147
|
+
}
|
|
148
|
+
}</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getMediaItemImageUrl } from '../../../core/media';
|
|
2
|
+
import { shouldUseSalePrice } from '../../../products/price-helper';
|
|
3
|
+
export const mapToProductComponentData = (payload) => {
|
|
4
|
+
const effectiveSalePrice = payload.priceAndAvailability.productSalePrices?.find((x) => shouldUseSalePrice(payload.priceAndAvailability.price, x.salePrice, x.salePriceEffectiveDateFrom, x.salePriceEffectiveDateTo));
|
|
5
|
+
return {
|
|
6
|
+
id: payload.id,
|
|
7
|
+
title: payload.title,
|
|
8
|
+
image: payload.media[0] ? getMediaItemImageUrl(payload.media[0]) : null,
|
|
9
|
+
link: payload.link,
|
|
10
|
+
currency: payload.priceAndAvailability.currency,
|
|
11
|
+
price: payload.priceAndAvailability.price,
|
|
12
|
+
salePrice: effectiveSalePrice?.salePrice || null
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as SchemaTypes from '../../../../gql/types';
|
|
2
|
+
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export type ProductStreamComponentDataFragment = {
|
|
4
|
+
title: string;
|
|
5
|
+
id: string;
|
|
6
|
+
link: string | null;
|
|
7
|
+
media: Array<{
|
|
8
|
+
url: string;
|
|
9
|
+
thumbnailUrl: string | null;
|
|
10
|
+
type: SchemaTypes.MediaType;
|
|
11
|
+
}>;
|
|
12
|
+
priceAndAvailability: {
|
|
13
|
+
currency: SchemaTypes.Currency;
|
|
14
|
+
price: number;
|
|
15
|
+
productSalePrices: Array<{
|
|
16
|
+
salePrice: number;
|
|
17
|
+
salePriceEffectiveDateFrom: any | null;
|
|
18
|
+
salePriceEffectiveDateTo: any | null;
|
|
19
|
+
}> | null;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const ProductStreamComponentDataFragmentDoc: DocumentNode<ProductStreamComponentDataFragment, unknown>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const ProductStreamComponentDataFragmentDoc = {
|
|
2
|
+
kind: 'Document',
|
|
3
|
+
definitions: [
|
|
4
|
+
{
|
|
5
|
+
kind: 'FragmentDefinition',
|
|
6
|
+
name: { kind: 'Name', value: 'ProductStreamComponentDataFragment' },
|
|
7
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Product' } },
|
|
8
|
+
selectionSet: {
|
|
9
|
+
kind: 'SelectionSet',
|
|
10
|
+
selections: [
|
|
11
|
+
{
|
|
12
|
+
kind: 'Field',
|
|
13
|
+
name: { kind: 'Name', value: 'media' },
|
|
14
|
+
selectionSet: {
|
|
15
|
+
kind: 'SelectionSet',
|
|
16
|
+
selections: [
|
|
17
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'url' } },
|
|
18
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'thumbnailUrl' } },
|
|
19
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'type' } }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
24
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
25
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'link' } },
|
|
26
|
+
{
|
|
27
|
+
kind: 'Field',
|
|
28
|
+
name: { kind: 'Name', value: 'priceAndAvailability' },
|
|
29
|
+
selectionSet: {
|
|
30
|
+
kind: 'SelectionSet',
|
|
31
|
+
selections: [
|
|
32
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currency' } },
|
|
33
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'price' } },
|
|
34
|
+
{
|
|
35
|
+
kind: 'Field',
|
|
36
|
+
name: { kind: 'Name', value: 'productSalePrices' },
|
|
37
|
+
selectionSet: {
|
|
38
|
+
kind: 'SelectionSet',
|
|
39
|
+
selections: [
|
|
40
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'salePrice' } },
|
|
41
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateFrom' } },
|
|
42
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateTo' } }
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
fragment ProductStreamComponentDataFragment on Product {
|
|
2
|
+
media {
|
|
3
|
+
url
|
|
4
|
+
thumbnailUrl
|
|
5
|
+
type
|
|
6
|
+
}
|
|
7
|
+
title
|
|
8
|
+
id
|
|
9
|
+
link
|
|
10
|
+
priceAndAvailability {
|
|
11
|
+
currency
|
|
12
|
+
price
|
|
13
|
+
productSalePrices {
|
|
14
|
+
salePrice
|
|
15
|
+
salePriceEffectiveDateFrom
|
|
16
|
+
salePriceEffectiveDateTo
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Currency } from '../../../products';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script lang="ts">import { ShortVideosViewer } from '../../../short-videos/short-video-viewer';
|
|
2
|
+
import { StreamComponentsLocalization } from '../stream-components-localization.svelte';
|
|
3
|
+
let { model, autoplay = true, localization } = $props();
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<ShortVideosViewer
|
|
7
|
+
model={model}
|
|
8
|
+
autoplay={autoplay ? 'on-appearance' : false}
|
|
9
|
+
localization={{ viewsCount: localization.viewsCount, timeAgoLocalization: localization.timeAgoLocalization }} />
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StreamComponentsLocalization } from '../stream-components-localization.svelte';
|
|
2
|
+
import type { ShortVideoStreamComponentData } from './types';
|
|
3
|
+
type Props = {
|
|
4
|
+
model: ShortVideoStreamComponentData;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
localization: StreamComponentsLocalization;
|
|
7
|
+
};
|
|
8
|
+
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type Cmp = ReturnType<typeof Cmp>;
|
|
10
|
+
export default Cmp;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ShortVideoStreamComponentDataFragment } from './operations.generated';
|
|
2
|
+
import type { ShortVideoStreamComponentData } from './types';
|
|
3
|
+
export declare const mapToShortVideoStreamComponentData: (payload: ShortVideoStreamComponentDataFragment) => ShortVideoStreamComponentData;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type * as SchemaTypes from '../../../../gql/types';
|
|
2
|
+
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
export type ShortVideoStreamComponentDataFragment = {
|
|
4
|
+
id: string;
|
|
5
|
+
enableSocialInteractions: boolean;
|
|
6
|
+
postHeading: {
|
|
7
|
+
sourceImage: string | null;
|
|
8
|
+
sourceName: string;
|
|
9
|
+
postDisplayDate: any;
|
|
10
|
+
postViewsCount: number;
|
|
11
|
+
};
|
|
12
|
+
allProducts: Array<{
|
|
13
|
+
title: string;
|
|
14
|
+
id: string;
|
|
15
|
+
link: string | null;
|
|
16
|
+
media: Array<{
|
|
17
|
+
url: string;
|
|
18
|
+
thumbnailUrl: string | null;
|
|
19
|
+
type: SchemaTypes.MediaType;
|
|
20
|
+
}>;
|
|
21
|
+
priceAndAvailability: {
|
|
22
|
+
currency: SchemaTypes.Currency;
|
|
23
|
+
price: number;
|
|
24
|
+
productSalePrices: Array<{
|
|
25
|
+
salePrice: number;
|
|
26
|
+
salePriceEffectiveDateFrom: any | null;
|
|
27
|
+
salePriceEffectiveDateTo: any | null;
|
|
28
|
+
}> | null;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
ad: {
|
|
32
|
+
id: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string | null;
|
|
35
|
+
buttonText: string | null;
|
|
36
|
+
buttonUrl: string | null;
|
|
37
|
+
openLinkInNewWindow: boolean | null;
|
|
38
|
+
type: SchemaTypes.AdType;
|
|
39
|
+
media: Array<{
|
|
40
|
+
type: SchemaTypes.MediaType;
|
|
41
|
+
url: string;
|
|
42
|
+
thumbnailUrl: string | null;
|
|
43
|
+
}>;
|
|
44
|
+
} | null;
|
|
45
|
+
postData: {
|
|
46
|
+
media: Array<{
|
|
47
|
+
url: string;
|
|
48
|
+
thumbnailUrl: string | null;
|
|
49
|
+
type: SchemaTypes.MediaType;
|
|
50
|
+
}>;
|
|
51
|
+
shortVideoData: {
|
|
52
|
+
text: string | null;
|
|
53
|
+
} | null;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const ShortVideoStreamComponentDataFragmentDoc: DocumentNode<ShortVideoStreamComponentDataFragment, unknown>;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
export const ShortVideoStreamComponentDataFragmentDoc = {
|
|
2
|
+
kind: 'Document',
|
|
3
|
+
definitions: [
|
|
4
|
+
{
|
|
5
|
+
kind: 'FragmentDefinition',
|
|
6
|
+
name: { kind: 'Name', value: 'ShortVideoStreamComponentDataFragment' },
|
|
7
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
|
|
8
|
+
selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ShortVideoViewerPayloadFragment' } }] }
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
kind: 'FragmentDefinition',
|
|
12
|
+
name: { kind: 'Name', value: 'ProductCardPayloadFragment' },
|
|
13
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Product' } },
|
|
14
|
+
selectionSet: {
|
|
15
|
+
kind: 'SelectionSet',
|
|
16
|
+
selections: [
|
|
17
|
+
{
|
|
18
|
+
kind: 'Field',
|
|
19
|
+
name: { kind: 'Name', value: 'media' },
|
|
20
|
+
selectionSet: {
|
|
21
|
+
kind: 'SelectionSet',
|
|
22
|
+
selections: [
|
|
23
|
+
{
|
|
24
|
+
kind: 'Field',
|
|
25
|
+
name: { kind: 'Name', value: 'url' },
|
|
26
|
+
arguments: [
|
|
27
|
+
{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
kind: 'Field',
|
|
32
|
+
name: { kind: 'Name', value: 'thumbnailUrl' },
|
|
33
|
+
arguments: [
|
|
34
|
+
{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'type' } }
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
42
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
43
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'link' } },
|
|
44
|
+
{
|
|
45
|
+
kind: 'Field',
|
|
46
|
+
name: { kind: 'Name', value: 'priceAndAvailability' },
|
|
47
|
+
selectionSet: {
|
|
48
|
+
kind: 'SelectionSet',
|
|
49
|
+
selections: [
|
|
50
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currency' } },
|
|
51
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'price' } },
|
|
52
|
+
{
|
|
53
|
+
kind: 'Field',
|
|
54
|
+
name: { kind: 'Name', value: 'productSalePrices' },
|
|
55
|
+
selectionSet: {
|
|
56
|
+
kind: 'SelectionSet',
|
|
57
|
+
selections: [
|
|
58
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'salePrice' } },
|
|
59
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateFrom' } },
|
|
60
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'salePriceEffectiveDateTo' } }
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
kind: 'FragmentDefinition',
|
|
72
|
+
name: { kind: 'Name', value: 'AdViewPayloadFragment' },
|
|
73
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Ad' } },
|
|
74
|
+
selectionSet: {
|
|
75
|
+
kind: 'SelectionSet',
|
|
76
|
+
selections: [
|
|
77
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
78
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'title' } },
|
|
79
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
80
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'buttonText' } },
|
|
81
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'buttonUrl' } },
|
|
82
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'openLinkInNewWindow' } },
|
|
83
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'type' } },
|
|
84
|
+
{
|
|
85
|
+
kind: 'Field',
|
|
86
|
+
name: { kind: 'Name', value: 'media' },
|
|
87
|
+
selectionSet: {
|
|
88
|
+
kind: 'SelectionSet',
|
|
89
|
+
selections: [
|
|
90
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'type' } },
|
|
91
|
+
{
|
|
92
|
+
kind: 'Field',
|
|
93
|
+
name: { kind: 'Name', value: 'url' },
|
|
94
|
+
arguments: [
|
|
95
|
+
{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
kind: 'Field',
|
|
100
|
+
name: { kind: 'Name', value: 'thumbnailUrl' },
|
|
101
|
+
arguments: [
|
|
102
|
+
{ kind: 'Argument', name: { kind: 'Name', value: 'scale' }, value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } } }
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
kind: 'FragmentDefinition',
|
|
113
|
+
name: { kind: 'Name', value: 'ShortVideoViewerPayloadFragment' },
|
|
114
|
+
typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'Post' } },
|
|
115
|
+
selectionSet: {
|
|
116
|
+
kind: 'SelectionSet',
|
|
117
|
+
selections: [
|
|
118
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
119
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'enableSocialInteractions' } },
|
|
120
|
+
{
|
|
121
|
+
kind: 'Field',
|
|
122
|
+
name: { kind: 'Name', value: 'postHeading' },
|
|
123
|
+
selectionSet: {
|
|
124
|
+
kind: 'SelectionSet',
|
|
125
|
+
selections: [
|
|
126
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'sourceImage' } },
|
|
127
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'sourceName' } },
|
|
128
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postDisplayDate' } },
|
|
129
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'postViewsCount' } }
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
kind: 'Field',
|
|
135
|
+
name: { kind: 'Name', value: 'allProducts' },
|
|
136
|
+
selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'ProductCardPayloadFragment' } }] }
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
kind: 'Field',
|
|
140
|
+
name: { kind: 'Name', value: 'ad' },
|
|
141
|
+
selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'FragmentSpread', name: { kind: 'Name', value: 'AdViewPayloadFragment' } }] }
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
kind: 'Field',
|
|
145
|
+
name: { kind: 'Name', value: 'postData' },
|
|
146
|
+
selectionSet: {
|
|
147
|
+
kind: 'SelectionSet',
|
|
148
|
+
selections: [
|
|
149
|
+
{
|
|
150
|
+
kind: 'Field',
|
|
151
|
+
name: { kind: 'Name', value: 'media' },
|
|
152
|
+
selectionSet: {
|
|
153
|
+
kind: 'SelectionSet',
|
|
154
|
+
selections: [
|
|
155
|
+
{
|
|
156
|
+
kind: 'Field',
|
|
157
|
+
name: { kind: 'Name', value: 'url' },
|
|
158
|
+
arguments: [
|
|
159
|
+
{
|
|
160
|
+
kind: 'Argument',
|
|
161
|
+
name: { kind: 'Name', value: 'scale' },
|
|
162
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
kind: 'Field',
|
|
168
|
+
name: { kind: 'Name', value: 'thumbnailUrl' },
|
|
169
|
+
arguments: [
|
|
170
|
+
{
|
|
171
|
+
kind: 'Argument',
|
|
172
|
+
name: { kind: 'Name', value: 'scale' },
|
|
173
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'image_scale' } }
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'type' } }
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
kind: 'Field',
|
|
183
|
+
name: { kind: 'Name', value: 'shortVideoData' },
|
|
184
|
+
selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'text' } }] }
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ITimeAgoLocalization } from '../../ui/time-ago';
|
|
2
|
+
export interface IStreamComponentsLocalization {
|
|
3
|
+
viewsCount?: (count: number) => string;
|
|
4
|
+
timeAgoLocalization?: ITimeAgoLocalization;
|
|
5
|
+
}
|
|
6
|
+
export declare class StreamComponentsLocalization {
|
|
7
|
+
viewsCount: (count: number) => string;
|
|
8
|
+
timeAgoLocalization: ITimeAgoLocalization | undefined;
|
|
9
|
+
constructor(init?: IStreamComponentsLocalization);
|
|
10
|
+
}
|