@streamscloud/embeddable 15.1.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ads/ad-card/cmp.ad-card.svelte +18 -29
- package/dist/ads/ad-card/cmp.ad-card.svelte.d.ts +0 -2
- package/dist/core/graphql.d.ts +1 -1
- package/dist/core/graphql.js +4 -9
- package/dist/core/media/index.d.ts +0 -2
- package/dist/core/media/index.js +0 -2
- package/dist/external-api/data-providers/internal-short-video-player-items-provider.d.ts +1 -1
- package/dist/external-api/data-providers/internal-short-video-player-items-provider.js +2 -2
- package/dist/external-api/data-providers/internal-streams-player-data-provider.js +2 -2
- package/dist/external-api/media-page/index.d.ts +1 -1
- package/dist/external-api/short-videos-player/index.d.ts +1 -1
- package/dist/external-api/streams-player/index.d.ts +1 -1
- package/dist/media-center/media-center/cmp.media-center-proxy.svelte +4 -4
- package/dist/media-center/media-center/discover/community-features-localization.d.ts +4 -6
- package/dist/media-center/media-center/discover/community-features-localization.js +12 -10
- package/dist/media-center/media-center/discover/community-features.svelte +10 -21
- package/dist/media-center/media-center/discover/community-features.svelte.d.ts +0 -2
- package/dist/media-center/media-center/discover/discover-header.svelte +14 -25
- package/dist/media-center/media-center/discover/discover-view-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/discover/discover-view-handler.svelte.js +1 -1
- package/dist/media-center/media-center/discover/discover-view-localization.d.ts +2 -5
- package/dist/media-center/media-center/discover/discover-view-localization.js +6 -8
- package/dist/media-center/media-center/discover/discover-view.svelte +6 -19
- package/dist/media-center/media-center/footer/media-center-footer.svelte +7 -18
- package/dist/media-center/media-center/handlers/media-center-settings-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/header/media-center-header-localization.d.ts +2 -4
- package/dist/media-center/media-center/header/media-center-header-localization.js +12 -12
- package/dist/media-center/media-center/header/media-center-header-mobile.svelte +8 -19
- package/dist/media-center/media-center/header/media-center-header-mobile.svelte.d.ts +0 -2
- package/dist/media-center/media-center/header/media-center-header.svelte +12 -23
- package/dist/media-center/media-center/media-center-context.svelte.d.ts +1 -1
- package/dist/media-center/media-center/media-center-context.svelte.js +1 -1
- package/dist/media-center/media-center/media-center-settings.svelte.d.ts +1 -1
- package/dist/media-center/media-center/media-center-view.svelte +4 -15
- package/dist/media-center/media-center/menu/category-following-wrapper.svelte +5 -16
- package/dist/media-center/media-center/menu/menu-localization.d.ts +5 -8
- package/dist/media-center/media-center/menu/menu-localization.js +15 -14
- package/dist/media-center/media-center/menu/menu.svelte +15 -26
- package/dist/media-center/media-center/moments/cmp.moments-circle.svelte +6 -17
- package/dist/media-center/media-center/moments/moments-feed-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/moments/moments-feed-handler.svelte.js +1 -1
- package/dist/media-center/media-center/moments/moments-state.svelte.d.ts +1 -1
- package/dist/media-center/media-center/posts-feed/feed-providers-generator.d.ts +1 -1
- package/dist/media-center/media-center/posts-feed/feed-providers-generator.js +2 -2
- package/dist/media-center/media-center/posts-feed/posts-feed-handler.svelte.d.ts +2 -2
- package/dist/media-center/media-center/posts-feed/posts-feed-handler.svelte.js +2 -2
- package/dist/media-center/media-center/streams-feed/feed-providers-generator.js +2 -2
- package/dist/media-center/media-center/streams-feed/streams-feed-handler.svelte.d.ts +1 -1
- package/dist/media-center/media-center/streams-feed/streams-feed-handler.svelte.js +1 -1
- package/dist/media-center/media-center/streams-in-category/streams-in-category-panel.svelte +1 -12
- package/dist/media-center/media-center/types.d.ts +2 -2
- package/dist/media-page/index.d.ts +2 -2
- package/dist/posts/attachments/cmp.attachments.svelte +2 -15
- package/dist/posts/attachments/cmp.attachments.svelte.d.ts +0 -2
- package/dist/posts/controls/post-actions-handler.svelte.d.ts +1 -1
- package/dist/posts/controls/post-actions-handler.svelte.js +2 -3
- package/dist/posts/post-viewer/attachments-horizontal.svelte +10 -21
- package/dist/posts/post-viewer/cmp.post-viewer.svelte +7 -18
- package/dist/posts/post-viewer/cmp.post-viewer.svelte.d.ts +1 -3
- package/dist/posts/post-viewer/heading.svelte +8 -20
- package/dist/posts/post-viewer/media/post-media.svelte +11 -22
- package/dist/posts/post-viewer/media/post-media.svelte.d.ts +0 -2
- package/dist/posts/post-viewer/post-texts.svelte +6 -17
- package/dist/posts/post-viewer/post-viewer-localization.d.ts +2 -5
- package/dist/posts/post-viewer/post-viewer-localization.js +6 -8
- package/dist/posts/posts-player/cmp.posts-player.svelte.d.ts +2 -2
- package/dist/posts/posts-player/index.d.ts +1 -1
- package/dist/posts/posts-player/posts-player-proxy.svelte +5 -1
- package/dist/posts/posts-player/posts-player-proxy.svelte.d.ts +2 -2
- package/dist/posts/posts-player/posts-player-view.svelte +34 -30
- package/dist/posts/posts-player/types.d.ts +2 -2
- package/dist/products/price-helper.js +1 -1
- package/dist/products/product-card/cmp.product-card.svelte +16 -30
- package/dist/products/product-card/cmp.product-card.svelte.d.ts +0 -2
- package/dist/products/product-card/product-card-localization.d.ts +1 -3
- package/dist/products/product-card/product-card-localization.js +3 -4
- package/dist/short-videos/short-video-card/cmp.short-video-card.svelte +19 -35
- package/dist/short-videos/short-video-card/cmp.short-video-card.svelte.d.ts +0 -2
- package/dist/short-videos/short-video-card/localization.d.ts +1 -3
- package/dist/short-videos/short-video-card/localization.js +3 -4
- package/dist/streams/layout/cmp.layout.svelte +3 -14
- package/dist/streams/layout/cmp.slot-content.svelte +5 -16
- package/dist/streams/layout/cmp.slot-content.svelte.d.ts +0 -2
- package/dist/streams/layout/cmp.slot.svelte +1 -12
- package/dist/streams/layout/element-views/cmp.annotation-stream-element.svelte +2 -2
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte +2 -3
- package/dist/streams/layout/element-views/cmp.container-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.image-ref-stream-element.svelte +1 -12
- package/dist/streams/layout/element-views/cmp.images-stream-element.svelte +3 -14
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte +2 -2
- package/dist/streams/layout/element-views/cmp.price-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.products-slider-stream-element.svelte +4 -9
- package/dist/streams/layout/element-views/cmp.products-slider-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte +1 -4
- package/dist/streams/layout/element-views/cmp.short-video-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.spacer-stream-element.svelte +3 -14
- package/dist/streams/layout/element-views/cmp.stock-stream-element.svelte +3 -14
- package/dist/streams/layout/element-views/cmp.stock-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.stream-element.svelte +7 -8
- package/dist/streams/layout/element-views/cmp.stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte +5 -5
- package/dist/streams/layout/element-views/cmp.text-ref-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.text-stream-element.svelte +5 -5
- package/dist/streams/layout/element-views/cmp.text-stream-element.svelte.d.ts +0 -2
- package/dist/streams/layout/element-views/cmp.web-view-stream-element.svelte +1 -12
- package/dist/streams/layout/element-views/price-element-view.svelte +7 -18
- package/dist/streams/layout/element-views/price-stream-element-localization.d.ts +2 -5
- package/dist/streams/layout/element-views/price-stream-element-localization.js +6 -8
- package/dist/streams/layout/element-views/stock-stream-element-localization.d.ts +1 -3
- package/dist/streams/layout/element-views/stock-stream-element-localization.js +3 -4
- package/dist/streams/layout/index.d.ts +1 -1
- package/dist/streams/layout/index.js +1 -1
- package/dist/streams/layout/serializer.svelte.js +5 -6
- package/dist/streams/layout/styles-transformer.d.ts +3 -3
- package/dist/streams/layout/styles-transformer.js +1 -1
- package/dist/streams/stream-card/cmp.stream-card.svelte +6 -20
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte +6 -19
- package/dist/streams/stream-page-viewer/cmp.stream-page-viewer.svelte.d.ts +1 -3
- package/dist/streams/streams-player/cmp.streams-player.svelte.d.ts +1 -1
- package/dist/streams/streams-player/index.d.ts +1 -1
- package/dist/streams/streams-player/stream-overview.svelte +5 -16
- package/dist/streams/streams-player/stream-player-localization.d.ts +1 -4
- package/dist/streams/streams-player/stream-player-localization.js +3 -6
- package/dist/streams/streams-player/streams-player-buffer.svelte.d.ts +1 -1
- package/dist/streams/streams-player/streams-player-buffer.svelte.js +1 -1
- package/dist/streams/streams-player/streams-player-proxy.svelte +5 -1
- package/dist/streams/streams-player/streams-player-proxy.svelte.d.ts +1 -1
- package/dist/streams/streams-player/streams-player-view.svelte +71 -79
- package/dist/streams/streams-player/types.d.ts +1 -1
- package/dist/ui/media-item-view/cmp.media-item-view.svelte +5 -16
- package/dist/ui/media-items-gallery/cmp.media-items-gallery.svelte +2 -16
- package/dist/ui/media-items-gallery/types.js +2 -1
- package/dist/ui/player/player/cmp.player.svelte +19 -28
- package/dist/ui/player/player/cmp.player.svelte.d.ts +1 -1
- package/dist/ui/player/player/controls-and-attachments.svelte +16 -32
- package/dist/ui/player/player/controls-and-attachments.svelte.d.ts +1 -1
- package/dist/ui/player/player/overview-panel.svelte +27 -36
- package/dist/ui/player/player/player-config.svelte.d.ts +4 -4
- package/dist/ui/player/player/player-config.svelte.js +3 -3
- package/dist/ui/player/player/player-settings.svelte.d.ts +1 -1
- package/dist/ui/player/progress/cmp.chunks-progress.svelte +1 -12
- package/dist/ui/shadow-dom/cmp.shadow-root.svelte +9 -14
- package/dist/ui/shadow-dom/cmp.shadow-root.svelte.d.ts +2 -0
- package/dist/ui/shadow-dom/colors.scss +2 -2
- package/dist/ui/shadow-dom/shadow-root-service.js +2 -2
- package/package.json +13 -25
- package/dist/core/actions/horizontal-wheel-scroll.d.ts +0 -5
- package/dist/core/actions/horizontal-wheel-scroll.js +0 -20
- package/dist/core/actions/index.d.ts +0 -2
- package/dist/core/actions/index.js +0 -2
- package/dist/core/actions/swallow-touch.d.ts +0 -2
- package/dist/core/actions/swallow-touch.js +0 -17
- package/dist/core/browser.d.ts +0 -1
- package/dist/core/browser.js +0 -1
- package/dist/core/continuation-token.d.ts +0 -11
- package/dist/core/continuation-token.js +0 -35
- package/dist/core/cursor-result.d.ts +0 -9
- package/dist/core/cursor-result.js +0 -1
- package/dist/core/data-loaders/cursor-data-loader.svelte.d.ts +0 -14
- package/dist/core/data-loaders/cursor-data-loader.svelte.js +0 -35
- package/dist/core/data-loaders/data-loader.d.ts +0 -4
- package/dist/core/data-loaders/data-loader.js +0 -1
- package/dist/core/data-loaders/index.d.ts +0 -2
- package/dist/core/data-loaders/index.js +0 -1
- package/dist/core/deferred.d.ts +0 -6
- package/dist/core/deferred.js +0 -13
- package/dist/core/document.event-handlers.d.ts +0 -2
- package/dist/core/document.event-handlers.js +0 -8
- package/dist/core/image-preloader.d.ts +0 -1
- package/dist/core/image-preloader.js +0 -10
- package/dist/core/locale.d.ts +0 -4
- package/dist/core/locale.js +0 -1
- package/dist/core/media/image-helper.d.ts +0 -10
- package/dist/core/media/image-helper.js +0 -30
- package/dist/core/media/images-size-detector.service.d.ts +0 -6
- package/dist/core/media/images-size-detector.service.js +0 -15
- package/dist/core/toastr.d.ts +0 -1
- package/dist/core/toastr.js +0 -26
- package/dist/core/transitions/index.d.ts +0 -1
- package/dist/core/transitions/index.js +0 -1
- package/dist/core/transitions/slide-horizontally.d.ts +0 -7
- package/dist/core/transitions/slide-horizontally.js +0 -55
- package/dist/core/utils/array-helper.d.ts +0 -23
- package/dist/core/utils/array-helper.js +0 -148
- package/dist/core/utils/compact-number.d.ts +0 -8
- package/dist/core/utils/compact-number.js +0 -48
- package/dist/core/utils/date-helper.d.ts +0 -29
- package/dist/core/utils/date-helper.js +0 -146
- package/dist/core/utils/dom-helper.d.ts +0 -12
- package/dist/core/utils/dom-helper.js +0 -76
- package/dist/core/utils/html-helper.d.ts +0 -42
- package/dist/core/utils/html-helper.js +0 -104
- package/dist/core/utils/index.d.ts +0 -3
- package/dist/core/utils/index.js +0 -3
- package/dist/core/utils/number-helper.d.ts +0 -6
- package/dist/core/utils/number-helper.js +0 -28
- package/dist/core/utils/string-generator.d.ts +0 -2
- package/dist/core/utils/string-generator.js +0 -15
- package/dist/core/utils/string-helper.d.ts +0 -10
- package/dist/core/utils/string-helper.js +0 -53
- package/dist/core/utils/url-helper.d.ts +0 -3
- package/dist/core/utils/url-helper.js +0 -13
- package/dist/core/utils/utils.d.ts +0 -29
- package/dist/core/utils/utils.js +0 -104
- package/dist/streams/layout/element-views/short-video-stream-element-localization.d.ts +0 -5
- package/dist/streams/layout/element-views/short-video-stream-element-localization.js +0 -7
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.d.ts +0 -5
- package/dist/streams/stream-page-viewer/stream-page-viewer-localization.js +0 -7
- package/dist/ui/button/cmp.button.svelte +0 -10
- package/dist/ui/button/cmp.button.svelte.d.ts +0 -16
- package/dist/ui/button/cmp.options-button.svelte +0 -123
- package/dist/ui/button/cmp.options-button.svelte.d.ts +0 -20
- package/dist/ui/button/index.d.ts +0 -3
- package/dist/ui/button/index.js +0 -3
- package/dist/ui/button/resources/button-base.svelte +0 -84
- package/dist/ui/button/resources/button-base.svelte.d.ts +0 -13
- package/dist/ui/button/resources/button-theme.svelte +0 -53
- package/dist/ui/button/resources/button-theme.svelte.d.ts +0 -10
- package/dist/ui/button/resources/button-types.d.ts +0 -20
- package/dist/ui/button/resources/button-types.js +0 -22
- package/dist/ui/card-actions/card-action-container.d.ts +0 -2
- package/dist/ui/card-actions/card-action-container.js +0 -17
- package/dist/ui/card-actions/cmp.card-action.svelte +0 -28
- package/dist/ui/card-actions/cmp.card-action.svelte.d.ts +0 -10
- package/dist/ui/card-actions/cmp.card-actions.svelte +0 -71
- package/dist/ui/card-actions/cmp.card-actions.svelte.d.ts +0 -9
- package/dist/ui/card-actions/index.d.ts +0 -4
- package/dist/ui/card-actions/index.js +0 -3
- package/dist/ui/card-actions/types.d.ts +0 -9
- package/dist/ui/card-actions/types.js +0 -1
- package/dist/ui/dropdown/cmp.dropdown.svelte +0 -184
- package/dist/ui/dropdown/cmp.dropdown.svelte.d.ts +0 -23
- package/dist/ui/dropdown/dropdown-ignore.d.ts +0 -6
- package/dist/ui/dropdown/dropdown-ignore.js +0 -11
- package/dist/ui/dropdown/index.d.ts +0 -3
- package/dist/ui/dropdown/index.js +0 -2
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte +0 -5
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte.d.ts +0 -7
- package/dist/ui/dynamic-component/index.d.ts +0 -2
- package/dist/ui/dynamic-component/index.js +0 -2
- package/dist/ui/dynamic-component/types.svelte.d.ts +0 -11
- package/dist/ui/dynamic-component/types.svelte.js +0 -13
- package/dist/ui/icon/cmp.icon.svelte +0 -75
- package/dist/ui/icon/cmp.icon.svelte.d.ts +0 -8
- package/dist/ui/icon/index.d.ts +0 -2
- package/dist/ui/icon/index.js +0 -2
- package/dist/ui/icon/types.d.ts +0 -9
- package/dist/ui/icon/types.js +0 -10
- package/dist/ui/image/cmp.image-round.svelte +0 -41
- package/dist/ui/image/cmp.image-round.svelte.d.ts +0 -11
- package/dist/ui/image/cmp.image-rounded.svelte +0 -64
- package/dist/ui/image/cmp.image-rounded.svelte.d.ts +0 -11
- package/dist/ui/image/cmp.image-stub.svelte +0 -31
- package/dist/ui/image/cmp.image-stub.svelte.d.ts +0 -18
- package/dist/ui/image/cmp.image.svelte +0 -79
- package/dist/ui/image/cmp.image.svelte.d.ts +0 -13
- package/dist/ui/image/image-state.d.ts +0 -6
- package/dist/ui/image/image-state.js +0 -17
- package/dist/ui/image/index.d.ts +0 -4
- package/dist/ui/image/index.js +0 -4
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte +0 -75
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte.d.ts +0 -11
- package/dist/ui/infinite-scrolling/index.d.ts +0 -1
- package/dist/ui/infinite-scrolling/index.js +0 -1
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte +0 -119
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte.d.ts +0 -10
- package/dist/ui/line-clamp/cmp.line-clamp.svelte +0 -84
- package/dist/ui/line-clamp/cmp.line-clamp.svelte.d.ts +0 -11
- package/dist/ui/line-clamp/index.d.ts +0 -2
- package/dist/ui/line-clamp/index.js +0 -2
- package/dist/ui/line-clamp/line-clamp-localization.d.ts +0 -6
- package/dist/ui/line-clamp/line-clamp-localization.js +0 -19
- package/dist/ui/line-clamp/line-clamp-types.d.ts +0 -3
- package/dist/ui/line-clamp/line-clamp-types.js +0 -1
- package/dist/ui/line-clamp/line-clamp-utils.d.ts +0 -8
- package/dist/ui/line-clamp/line-clamp-utils.js +0 -33
- package/dist/ui/loading/cmp.loading.svelte +0 -94
- package/dist/ui/loading/cmp.loading.svelte.d.ts +0 -9
- package/dist/ui/loading/index.d.ts +0 -1
- package/dist/ui/loading/index.js +0 -1
- package/dist/ui/media-playback/index.d.ts +0 -2
- package/dist/ui/media-playback/index.js +0 -2
- package/dist/ui/media-playback/playback-manager.svelte.d.ts +0 -25
- package/dist/ui/media-playback/playback-manager.svelte.js +0 -62
- package/dist/ui/media-playback/volume-manager.svelte.d.ts +0 -10
- package/dist/ui/media-playback/volume-manager.svelte.js +0 -27
- package/dist/ui/player/button/cmp.mobile-player-buttons.svelte +0 -37
- package/dist/ui/player/button/cmp.mobile-player-buttons.svelte.d.ts +0 -7
- package/dist/ui/player/button/cmp.player-buttons.svelte +0 -127
- package/dist/ui/player/button/cmp.player-buttons.svelte.d.ts +0 -9
- package/dist/ui/player/button/cmp.responsive-player-buttons.svelte +0 -32
- package/dist/ui/player/button/cmp.responsive-player-buttons.svelte.d.ts +0 -8
- package/dist/ui/player/button/index.d.ts +0 -4
- package/dist/ui/player/button/index.js +0 -3
- package/dist/ui/player/button/types.d.ts +0 -7
- package/dist/ui/player/button/types.js +0 -1
- package/dist/ui/player/providers/chunks-player-buffer/index.d.ts +0 -2
- package/dist/ui/player/providers/chunks-player-buffer/index.js +0 -2
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.d.ts +0 -9
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk-item.svelte.js +0 -9
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.d.ts +0 -30
- package/dist/ui/player/providers/chunks-player-buffer/player-chunk.svelte.js +0 -73
- package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.d.ts +0 -23
- package/dist/ui/player/providers/chunks-player-buffer/player-chunks-manager.svelte.js +0 -220
- package/dist/ui/player/providers/default-chunks-player-buffer.svelte.d.ts +0 -23
- package/dist/ui/player/providers/default-chunks-player-buffer.svelte.js +0 -71
- package/dist/ui/player/providers/default-feed-player-buffer.svelte.d.ts +0 -29
- package/dist/ui/player/providers/default-feed-player-buffer.svelte.js +0 -121
- package/dist/ui/player/providers/index.d.ts +0 -3
- package/dist/ui/player/providers/index.js +0 -2
- package/dist/ui/player/providers/service.d.ts +0 -2
- package/dist/ui/player/providers/service.js +0 -13
- package/dist/ui/player/providers/types.d.ts +0 -54
- package/dist/ui/player/providers/types.js +0 -1
- package/dist/ui/player/slider/cmp.player-slider.svelte +0 -218
- package/dist/ui/player/slider/cmp.player-slider.svelte.d.ts +0 -34
- package/dist/ui/player/slider/index.d.ts +0 -2
- package/dist/ui/player/slider/index.js +0 -2
- package/dist/ui/player/slider/prevent-slider-scroll.d.ts +0 -5
- package/dist/ui/player/slider/prevent-slider-scroll.js +0 -11
- package/dist/ui/player/slider/types.d.ts +0 -16
- package/dist/ui/player/slider/types.js +0 -1
- package/dist/ui/player/slider/wheel-gestures-adapter.d.ts +0 -17
- package/dist/ui/player/slider/wheel-gestures-adapter.js +0 -79
- package/dist/ui/player/slider-horizontal/cmp.slider.svelte +0 -424
- package/dist/ui/player/slider-horizontal/cmp.slider.svelte.d.ts +0 -31
- package/dist/ui/player/slider-horizontal/index.d.ts +0 -2
- package/dist/ui/player/slider-horizontal/index.js +0 -2
- package/dist/ui/player/slider-horizontal/slider-localization.d.ts +0 -5
- package/dist/ui/player/slider-horizontal/slider-localization.js +0 -13
- package/dist/ui/player/slider-horizontal/types.d.ts +0 -11
- package/dist/ui/player/slider-horizontal/types.js +0 -8
- package/dist/ui/player/utils/index.d.ts +0 -1
- package/dist/ui/player/utils/index.js +0 -1
- package/dist/ui/player/utils/touch-synchronizer.d.ts +0 -7
- package/dist/ui/player/utils/touch-synchronizer.js +0 -21
- package/dist/ui/progress/cmp.progress.svelte +0 -40
- package/dist/ui/progress/cmp.progress.svelte.d.ts +0 -6
- package/dist/ui/progress/index.d.ts +0 -1
- package/dist/ui/progress/index.js +0 -1
- package/dist/ui/proportional-container/cmp.proportional-container.svelte +0 -39
- package/dist/ui/proportional-container/cmp.proportional-container.svelte.d.ts +0 -8
- package/dist/ui/proportional-container/index.d.ts +0 -1
- package/dist/ui/proportional-container/index.js +0 -1
- package/dist/ui/seek-bar/cmp.seek-bar.svelte +0 -167
- package/dist/ui/seek-bar/cmp.seek-bar.svelte.d.ts +0 -15
- package/dist/ui/seek-bar/index.d.ts +0 -1
- package/dist/ui/seek-bar/index.js +0 -1
- package/dist/ui/shadow-dom/normalize-shadow.css +0 -350
- package/dist/ui/shadow-dom/reset-shadow.css +0 -176
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte +0 -124
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte.d.ts +0 -8
- package/dist/ui/swipe-indicator/index.d.ts +0 -1
- package/dist/ui/swipe-indicator/index.js +0 -1
- package/dist/ui/swipe-indicator/swipe-indicator-localization.d.ts +0 -5
- package/dist/ui/swipe-indicator/swipe-indicator-localization.js +0 -13
- package/dist/ui/time-ago/cmp.time-ago.svelte +0 -69
- package/dist/ui/time-ago/cmp.time-ago.svelte.d.ts +0 -9
- package/dist/ui/time-ago/index.d.ts +0 -1
- package/dist/ui/time-ago/index.js +0 -1
- package/dist/ui/time-ago/time-ago-localization.d.ts +0 -12
- package/dist/ui/time-ago/time-ago-localization.js +0 -55
- package/dist/ui/video/cmp.video.svelte +0 -387
- package/dist/ui/video/cmp.video.svelte.d.ts +0 -27
- package/dist/ui/video/index.d.ts +0 -2
- package/dist/ui/video/index.js +0 -2
- package/dist/ui/video/types.d.ts +0 -4
- package/dist/ui/video/types.js +0 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script lang="ts">import { enrichProductLinkWithTracking } from '../../marketing-tracking';
|
|
2
2
|
import { toPriceRepresentation } from '../price-helper';
|
|
3
|
-
import { Image } from '../../ui/image';
|
|
4
|
-
import { LineClamp } from '../../ui/line-clamp';
|
|
5
|
-
import { ProportionalContainer } from '../../ui/proportional-container';
|
|
6
3
|
import { ProductCardLocalization } from './product-card-localization';
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { Image } from '@streamscloud/kit/ui/image';
|
|
5
|
+
import { LineClamp } from '@streamscloud/kit/ui/line-clamp';
|
|
6
|
+
import { ProportionalContainer } from '@streamscloud/kit/ui/proportional-container';
|
|
7
|
+
let { product, includeBeforeNowPrefix, trackingParams, inert = false, on } = $props();
|
|
8
|
+
const localization = new ProductCardLocalization();
|
|
9
9
|
const shortDescriptionPresented = $derived(product.shortDescription && product.shortDescription.length > 0);
|
|
10
10
|
const trackImpression = (node) => {
|
|
11
11
|
if (on?.impression) {
|
|
@@ -44,13 +44,13 @@ const onProductClicked = (event) => {
|
|
|
44
44
|
</ProportionalContainer>
|
|
45
45
|
|
|
46
46
|
<div class="product-card__info">
|
|
47
|
-
<LineClamp maxLines={1}
|
|
47
|
+
<LineClamp maxLines={1}>
|
|
48
48
|
<div class="product-card__brand">{product.brandName}</div>
|
|
49
49
|
</LineClamp>
|
|
50
|
-
<LineClamp maxLines={shortDescriptionPresented ? 1 : 2}
|
|
50
|
+
<LineClamp maxLines={shortDescriptionPresented ? 1 : 2}>
|
|
51
51
|
<div class="product-card__title" class:two-lines={!shortDescriptionPresented}>{product.title}</div>
|
|
52
52
|
</LineClamp>
|
|
53
|
-
<LineClamp maxLines={2}
|
|
53
|
+
<LineClamp maxLines={2}>
|
|
54
54
|
<div class="product-card__description" class:two-lines={shortDescriptionPresented}>{product.shortDescription}</div>
|
|
55
55
|
</LineClamp>
|
|
56
56
|
<div class="product-price">
|
|
@@ -75,18 +75,7 @@ const onProductClicked = (event) => {
|
|
|
75
75
|
{/if}
|
|
76
76
|
</div>
|
|
77
77
|
|
|
78
|
-
<style
|
|
79
|
-
0% {
|
|
80
|
-
opacity: 1;
|
|
81
|
-
}
|
|
82
|
-
50% {
|
|
83
|
-
opacity: 0.4;
|
|
84
|
-
}
|
|
85
|
-
100% {
|
|
86
|
-
opacity: 1;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
.product-card {
|
|
78
|
+
<style>.product-card {
|
|
90
79
|
--_product-card--aspect-ratio: var(--product-card--aspect-ratio, 10/16);
|
|
91
80
|
--_product-card--border-radius: var(--product-card--border-radius, 0.5rem);
|
|
92
81
|
--_product-card--background-color: var(--product-card--background-color, rgb(from light-dark(#ffffff, #000000) r g b / 90%));
|
|
@@ -95,10 +84,10 @@ const onProductClicked = (event) => {
|
|
|
95
84
|
--_product-card--sale-price-color: var(--product-card--sale-price-color, inherit);
|
|
96
85
|
--product-price-color: var(--_product-card--price-color);
|
|
97
86
|
--product-price--sale--color: var(--_product-card--sale-price-color);
|
|
98
|
-
--image--border-radius: 0.25rem;
|
|
99
|
-
--image--object-fit: cover;
|
|
100
|
-
--image--width: auto;
|
|
101
|
-
--image--height: auto;
|
|
87
|
+
--sc-kit--image--border-radius: 0.25rem;
|
|
88
|
+
--sc-kit--image--object-fit: cover;
|
|
89
|
+
--sc-kit--image--width: auto;
|
|
90
|
+
--sc-kit--image--height: auto;
|
|
102
91
|
width: 100%;
|
|
103
92
|
height: max-content;
|
|
104
93
|
display: flex;
|
|
@@ -185,10 +174,7 @@ const onProductClicked = (event) => {
|
|
|
185
174
|
}
|
|
186
175
|
.product-card__link {
|
|
187
176
|
position: absolute;
|
|
188
|
-
|
|
189
|
-
left: 0;
|
|
190
|
-
width: 100%;
|
|
191
|
-
height: 100%;
|
|
177
|
+
inset: 0;
|
|
192
178
|
}
|
|
193
179
|
|
|
194
180
|
.product-price {
|
|
@@ -222,7 +208,7 @@ const onProductClicked = (event) => {
|
|
|
222
208
|
text-align: var(--_product-price--align);
|
|
223
209
|
min-height: var(--_product-price--before--font-size);
|
|
224
210
|
text-overflow: ellipsis;
|
|
225
|
-
width: 100%;
|
|
211
|
+
max-width: 100%;
|
|
226
212
|
white-space: nowrap;
|
|
227
213
|
overflow: hidden;
|
|
228
214
|
}
|
|
@@ -235,7 +221,7 @@ const onProductClicked = (event) => {
|
|
|
235
221
|
text-align: var(--_product-price--align);
|
|
236
222
|
min-height: var(--_product-price--font-size);
|
|
237
223
|
text-overflow: ellipsis;
|
|
238
|
-
width: 100%;
|
|
224
|
+
max-width: 100%;
|
|
239
225
|
white-space: nowrap;
|
|
240
226
|
overflow: hidden;
|
|
241
227
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { Locale } from '../../core/locale';
|
|
2
1
|
import { type TrackingParams } from '../../marketing-tracking';
|
|
3
2
|
import type { ProductCardModel } from './types';
|
|
4
3
|
type Props = {
|
|
5
4
|
product: ProductCardModel;
|
|
6
|
-
locale: Locale;
|
|
7
5
|
includeBeforeNowPrefix?: boolean;
|
|
8
6
|
inert?: boolean;
|
|
9
7
|
trackingParams: TrackingParams;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {} from '
|
|
1
|
+
import { getLocale } from '@streamscloud/kit/locale';
|
|
2
2
|
export class ProductCardLocalization {
|
|
3
|
-
beforeNowPrefix
|
|
4
|
-
|
|
5
|
-
this.beforeNowPrefix = loc.beforeNowPrefix[init];
|
|
3
|
+
get beforeNowPrefix() {
|
|
4
|
+
return loc.beforeNowPrefix[getLocale()];
|
|
6
5
|
}
|
|
7
6
|
}
|
|
8
7
|
const loc = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script lang="ts">import { toPriceRepresentation } from '../../products/price-helper';
|
|
2
|
-
import { Icon } from '../../ui/icon';
|
|
3
|
-
import { ImageRounded } from '../../ui/image';
|
|
4
|
-
import { LineClamp } from '../../ui/line-clamp';
|
|
5
|
-
import { ProportionalContainer } from '../../ui/proportional-container';
|
|
6
|
-
import { TimeAgo } from '../../ui/time-ago';
|
|
7
2
|
import { ShortVideoCardLocalization } from './localization';
|
|
8
3
|
import IconPhone from '@fluentui/svg-icons/icons/phone_20_regular.svg?raw';
|
|
9
4
|
import IconShoppingBag from '@fluentui/svg-icons/icons/shopping_bag_20_regular.svg?raw';
|
|
5
|
+
import { Icon } from '@streamscloud/kit/ui/icon';
|
|
6
|
+
import { ImageRounded } from '@streamscloud/kit/ui/image';
|
|
7
|
+
import { LineClamp } from '@streamscloud/kit/ui/line-clamp';
|
|
8
|
+
import { ProportionalContainer } from '@streamscloud/kit/ui/proportional-container';
|
|
9
|
+
import { TimeAgo } from '@streamscloud/kit/ui/time-ago';
|
|
10
10
|
const ADJUST_TEXT_SIZE = false;
|
|
11
|
-
let { shortVideo,
|
|
12
|
-
const localization =
|
|
11
|
+
let { shortVideo, on } = $props();
|
|
12
|
+
const localization = new ShortVideoCardLocalization();
|
|
13
13
|
const adjustTextSize = (node) => {
|
|
14
14
|
if (!ADJUST_TEXT_SIZE) {
|
|
15
15
|
return;
|
|
@@ -43,7 +43,7 @@ const adjustTextSize = (node) => {
|
|
|
43
43
|
<div class="short-video-card">
|
|
44
44
|
<div class="short-video-card__media">
|
|
45
45
|
<ProportionalContainer ratio={2 / 3}>
|
|
46
|
-
<ImageRounded src={shortVideo.cover} alt=""
|
|
46
|
+
<ImageRounded src={shortVideo.cover} alt="" />
|
|
47
47
|
</ProportionalContainer>
|
|
48
48
|
|
|
49
49
|
<div class="short-video-card__media-icons">
|
|
@@ -53,7 +53,7 @@ const adjustTextSize = (node) => {
|
|
|
53
53
|
|
|
54
54
|
<div class="short-video-card__info">
|
|
55
55
|
<div class="short-video-card__meta">
|
|
56
|
-
<span><TimeAgo date={shortVideo.displayDate}
|
|
56
|
+
<span><TimeAgo date={shortVideo.displayDate} /></span>
|
|
57
57
|
{#if shortVideo.viewsCount}
|
|
58
58
|
<span>·</span>
|
|
59
59
|
<span>{localization.viewsLabel(shortVideo.viewsCount)}</span>
|
|
@@ -70,15 +70,15 @@ const adjustTextSize = (node) => {
|
|
|
70
70
|
{#snippet productView(product: IPostProductCardModel)}
|
|
71
71
|
<div class="product-card">
|
|
72
72
|
<ProportionalContainer ratio={4 / 5}>
|
|
73
|
-
<ImageRounded src={product.image} alt={product.title}
|
|
73
|
+
<ImageRounded src={product.image} alt={product.title} />
|
|
74
74
|
</ProportionalContainer>
|
|
75
75
|
|
|
76
76
|
<div class="product-card__info">
|
|
77
77
|
<div class="product-card__title">
|
|
78
|
-
<LineClamp maxLines={1} enableShowMore={false}
|
|
78
|
+
<LineClamp maxLines={1} enableShowMore={false}>{product.title}</LineClamp>
|
|
79
79
|
</div>
|
|
80
80
|
<div class="product-card__price">
|
|
81
|
-
<LineClamp maxLines={1}
|
|
81
|
+
<LineClamp maxLines={1}>
|
|
82
82
|
<span>
|
|
83
83
|
{toPriceRepresentation({
|
|
84
84
|
amount: product.salePrice || product.price,
|
|
@@ -113,18 +113,7 @@ const adjustTextSize = (node) => {
|
|
|
113
113
|
{/if}
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
|
-
<style
|
|
117
|
-
0% {
|
|
118
|
-
opacity: 1;
|
|
119
|
-
}
|
|
120
|
-
50% {
|
|
121
|
-
opacity: 0.4;
|
|
122
|
-
}
|
|
123
|
-
100% {
|
|
124
|
-
opacity: 1;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
.short-video-card {
|
|
116
|
+
<style>.short-video-card {
|
|
128
117
|
position: relative;
|
|
129
118
|
overflow: hidden;
|
|
130
119
|
container-type: inline-size;
|
|
@@ -134,7 +123,7 @@ const adjustTextSize = (node) => {
|
|
|
134
123
|
display: flex;
|
|
135
124
|
align-items: center;
|
|
136
125
|
justify-content: center;
|
|
137
|
-
--image--rounded--outer--border-radius: 0.5rem;
|
|
126
|
+
--sc-kit--image--rounded--outer--border-radius: 0.5rem;
|
|
138
127
|
}
|
|
139
128
|
.short-video-card__media-icons {
|
|
140
129
|
position: absolute;
|
|
@@ -143,9 +132,9 @@ const adjustTextSize = (node) => {
|
|
|
143
132
|
display: flex;
|
|
144
133
|
align-items: center;
|
|
145
134
|
gap: 0.3125em;
|
|
146
|
-
--icon--size: 1.25em;
|
|
147
|
-
--icon--color: var(--sc-mc-color--icon-overlay);
|
|
148
|
-
--icon--filter: var(--sc-mc-color--icon-overlay-shadow);
|
|
135
|
+
--sc-kit--icon--size: 1.25em;
|
|
136
|
+
--sc-kit--icon--color: var(--sc-mc-color--icon-overlay);
|
|
137
|
+
--sc-kit--icon--filter: var(--sc-mc-color--icon-overlay-shadow);
|
|
149
138
|
}
|
|
150
139
|
.short-video-card__info {
|
|
151
140
|
margin-top: clamp(0.4375rem, 3.6cqi, 0.625rem);
|
|
@@ -175,9 +164,7 @@ const adjustTextSize = (node) => {
|
|
|
175
164
|
display: -webkit-box;
|
|
176
165
|
overflow: hidden;
|
|
177
166
|
-webkit-box-orient: vertical;
|
|
178
|
-
line-clamp: 2;
|
|
179
167
|
-webkit-line-clamp: 2;
|
|
180
|
-
text-overflow: ellipsis;
|
|
181
168
|
}
|
|
182
169
|
.short-video-card__products {
|
|
183
170
|
display: grid;
|
|
@@ -189,14 +176,11 @@ const adjustTextSize = (node) => {
|
|
|
189
176
|
}
|
|
190
177
|
.short-video-card__link {
|
|
191
178
|
position: absolute;
|
|
192
|
-
|
|
193
|
-
left: 0;
|
|
194
|
-
width: 100%;
|
|
195
|
-
height: 100%;
|
|
179
|
+
inset: 0;
|
|
196
180
|
}
|
|
197
181
|
|
|
198
182
|
.product-card {
|
|
199
|
-
--image--rounded--outer--border-radius: 0.375rem;
|
|
183
|
+
--sc-kit--image--rounded--outer--border-radius: 0.375rem;
|
|
200
184
|
container-type: inline-size;
|
|
201
185
|
}
|
|
202
186
|
.product-card__info {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {} from '
|
|
1
|
+
import { getLocale } from '@streamscloud/kit/locale';
|
|
2
2
|
export class ShortVideoCardLocalization {
|
|
3
|
-
viewsLabel
|
|
4
|
-
|
|
5
|
-
this.viewsLabel = loc.viewsLabel[locale];
|
|
3
|
+
get viewsLabel() {
|
|
4
|
+
return loc.viewsLabel[getLocale()];
|
|
6
5
|
}
|
|
7
6
|
}
|
|
8
7
|
const loc = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<script lang="ts">import {
|
|
2
|
-
import {
|
|
1
|
+
<script lang="ts">import { generateStreamLayoutStyles } from './styles-transformer';
|
|
2
|
+
import { ProportionalContainer } from '@streamscloud/kit/ui/proportional-container';
|
|
3
3
|
let { model, children, controls, overlay } = $props();
|
|
4
4
|
</script>
|
|
5
5
|
|
|
@@ -15,18 +15,7 @@ let { model, children, controls, overlay } = $props();
|
|
|
15
15
|
</div>
|
|
16
16
|
</ProportionalContainer>
|
|
17
17
|
|
|
18
|
-
<style
|
|
19
|
-
0% {
|
|
20
|
-
opacity: 1;
|
|
21
|
-
}
|
|
22
|
-
50% {
|
|
23
|
-
opacity: 0.4;
|
|
24
|
-
}
|
|
25
|
-
100% {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
.stream-page-layout {
|
|
18
|
+
<style>.stream-page-layout {
|
|
30
19
|
width: 100%;
|
|
31
20
|
min-width: 100%;
|
|
32
21
|
max-width: 100%;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script lang="ts">import {
|
|
2
|
-
import { enrichProductLinkWithTracking } from '../../marketing-tracking';
|
|
1
|
+
<script lang="ts">import { enrichProductLinkWithTracking } from '../../marketing-tracking';
|
|
3
2
|
import { StreamElementView } from './element-views';
|
|
4
3
|
import { StreamComponentDataType } from './enums';
|
|
5
|
-
|
|
4
|
+
import { Utils } from '@streamscloud/kit/core/utils';
|
|
5
|
+
let { model, trackingParams, on } = $props();
|
|
6
6
|
const slotData = $derived.by(() => {
|
|
7
7
|
return model.data;
|
|
8
8
|
});
|
|
@@ -77,7 +77,7 @@ const productLinkMounted = (node, productModel) => {
|
|
|
77
77
|
{#snippet slotContent()}
|
|
78
78
|
{#if component && (!slotData || dataIsFilled)}
|
|
79
79
|
{#each component.elements as element (element)}
|
|
80
|
-
<StreamElementView model={element} data={slotData} trackingParams={trackingParams}
|
|
80
|
+
<StreamElementView model={element} data={slotData} trackingParams={trackingParams} on={on} />
|
|
81
81
|
{/each}
|
|
82
82
|
{/if}
|
|
83
83
|
{/snippet}
|
|
@@ -95,18 +95,7 @@ const productLinkMounted = (node, productModel) => {
|
|
|
95
95
|
{@render slotContent()}
|
|
96
96
|
{/if}
|
|
97
97
|
|
|
98
|
-
<style
|
|
99
|
-
0% {
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
102
|
-
50% {
|
|
103
|
-
opacity: 0.4;
|
|
104
|
-
}
|
|
105
|
-
100% {
|
|
106
|
-
opacity: 1;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
.stream-slot-content-product-link {
|
|
98
|
+
<style>.stream-slot-content-product-link {
|
|
110
99
|
width: 100%;
|
|
111
100
|
min-width: 100%;
|
|
112
101
|
max-width: 100%;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { Locale } from '../../core/locale';
|
|
2
1
|
import type { StreamTrackingParams } from './types';
|
|
3
2
|
import type { StreamSlot } from './slot';
|
|
4
3
|
type Props = {
|
|
5
4
|
model: StreamSlot;
|
|
6
|
-
locale: Locale;
|
|
7
5
|
trackingParams: StreamTrackingParams;
|
|
8
6
|
on?: {
|
|
9
7
|
productClick: (productId: string) => void;
|
|
@@ -10,17 +10,6 @@ export {};
|
|
|
10
10
|
{@render children()}
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
|
-
<style
|
|
14
|
-
0% {
|
|
15
|
-
opacity: 1;
|
|
16
|
-
}
|
|
17
|
-
50% {
|
|
18
|
-
opacity: 0.4;
|
|
19
|
-
}
|
|
20
|
-
100% {
|
|
21
|
-
opacity: 1;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.stream-layout-slot {
|
|
13
|
+
<style>.stream-layout-slot {
|
|
25
14
|
position: absolute;
|
|
26
15
|
}</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<script lang="ts">import {
|
|
2
|
-
import {
|
|
1
|
+
<script lang="ts">import { generateAnnotationStyles } from '../styles-transformer';
|
|
2
|
+
import { HtmlHelper } from '@streamscloud/kit/core/utils';
|
|
3
3
|
let { model } = $props();
|
|
4
4
|
const svgValue = $derived.by(() => {
|
|
5
5
|
if (model.svg) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">import { StreamElementStyleDirection } from '../enums';
|
|
2
2
|
import { generateContainerStyles } from '../styles-transformer';
|
|
3
3
|
import { default as StreamElement } from './cmp.stream-element.svelte';
|
|
4
|
-
let { model, data, trackingParams
|
|
4
|
+
let { model, data, trackingParams } = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<div class="container-stream-element" style={generateContainerStyles(model.styles)}>
|
|
@@ -10,7 +10,6 @@ let { model, data, trackingParams, locale } = $props();
|
|
|
10
10
|
model={element}
|
|
11
11
|
data={data}
|
|
12
12
|
trackingParams={trackingParams}
|
|
13
|
-
constainerDirection={model.styles?.direction ?? StreamElementStyleDirection.Vertical}
|
|
14
|
-
locale={locale} />
|
|
13
|
+
constainerDirection={model.styles?.direction ?? StreamElementStyleDirection.Vertical} />
|
|
15
14
|
{/each}
|
|
16
15
|
</div>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Locale } from '../../../core/locale';
|
|
2
1
|
import type { StreamTrackingParams } from '..';
|
|
3
2
|
import type { ContainerStreamElementModel } from '../elements';
|
|
4
3
|
import type { StreamSlotData } from '../slot-data';
|
|
@@ -6,7 +5,6 @@ type Props = {
|
|
|
6
5
|
model: ContainerStreamElementModel;
|
|
7
6
|
data: StreamSlotData | null;
|
|
8
7
|
trackingParams: StreamTrackingParams;
|
|
9
|
-
locale: Locale;
|
|
10
8
|
};
|
|
11
9
|
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
12
10
|
type Cmp = ReturnType<typeof Cmp>;
|
|
@@ -18,18 +18,7 @@ const value = $derived(getStringValueByKey(data, model.key));
|
|
|
18
18
|
{/if}
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
|
-
<style
|
|
22
|
-
0% {
|
|
23
|
-
opacity: 1;
|
|
24
|
-
}
|
|
25
|
-
50% {
|
|
26
|
-
opacity: 0.4;
|
|
27
|
-
}
|
|
28
|
-
100% {
|
|
29
|
-
opacity: 1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
.image-ref-stream-element {
|
|
21
|
+
<style>.image-ref-stream-element {
|
|
33
22
|
width: 100%;
|
|
34
23
|
min-width: 100%;
|
|
35
24
|
max-width: 100%;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<script lang="ts">import {
|
|
2
|
-
import {
|
|
1
|
+
<script lang="ts">import { ImagesStreamElementMode } from '../enums';
|
|
2
|
+
import { Image } from '@streamscloud/kit/ui/image';
|
|
3
3
|
let { model, data } = $props();
|
|
4
4
|
</script>
|
|
5
5
|
|
|
@@ -13,18 +13,7 @@ let { model, data } = $props();
|
|
|
13
13
|
{/if}
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<style
|
|
17
|
-
0% {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
}
|
|
20
|
-
50% {
|
|
21
|
-
opacity: 0.4;
|
|
22
|
-
}
|
|
23
|
-
100% {
|
|
24
|
-
opacity: 1;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.images-stream-element {
|
|
16
|
+
<style>.images-stream-element {
|
|
28
17
|
width: 100%;
|
|
29
18
|
height: 100%;
|
|
30
19
|
}</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">import { PriceStreamElementLocalization } from './price-stream-element-localization';
|
|
2
2
|
import { default as PriceElementView } from './price-element-view.svelte';
|
|
3
|
-
let { model, data
|
|
4
|
-
const localization =
|
|
3
|
+
let { model, data } = $props();
|
|
4
|
+
const localization = new PriceStreamElementLocalization();
|
|
5
5
|
let baseMaxHeight = $derived(model.styles?.height || 32);
|
|
6
6
|
let adjustedHeight = $derived(baseMaxHeight);
|
|
7
7
|
</script>
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type { Locale } from '../../../core/locale';
|
|
2
1
|
import type { PriceStreamElementModel } from '../elements';
|
|
3
2
|
import type { StreamLayoutProductPriceModel } from '../models';
|
|
4
3
|
type Props = {
|
|
5
4
|
model: PriceStreamElementModel;
|
|
6
5
|
data: StreamLayoutProductPriceModel;
|
|
7
|
-
locale: Locale;
|
|
8
6
|
};
|
|
9
7
|
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
10
8
|
type Cmp = ReturnType<typeof Cmp>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<script lang="ts">import {
|
|
2
|
-
import { StreamComponentDataType, StreamElementStyleDirection } from '../enums';
|
|
1
|
+
<script lang="ts">import { StreamComponentDataType, StreamElementStyleDirection } from '../enums';
|
|
3
2
|
import { generateProductsSliderStyles } from '../styles-transformer';
|
|
4
3
|
import { default as StreamElement } from './cmp.stream-element.svelte';
|
|
5
|
-
|
|
4
|
+
import { horizontalWheelScroll } from '@streamscloud/kit/core/actions';
|
|
5
|
+
let { model, data, trackingParams } = $props();
|
|
6
6
|
const getProductDataByIndex = (index) => {
|
|
7
7
|
const products = data?.type === StreamComponentDataType.Products ? data.products : [];
|
|
8
8
|
const product = products[index];
|
|
@@ -22,12 +22,7 @@ const getProductDataByIndex = (index) => {
|
|
|
22
22
|
<div class="products-slider-stream-element__item">
|
|
23
23
|
{#each item.elements as element (element)}
|
|
24
24
|
{@const productData = getProductDataByIndex(index)}
|
|
25
|
-
<StreamElement
|
|
26
|
-
model={element}
|
|
27
|
-
data={productData}
|
|
28
|
-
trackingParams={trackingParams}
|
|
29
|
-
constainerDirection={StreamElementStyleDirection.Vertical}
|
|
30
|
-
locale={locale} />
|
|
25
|
+
<StreamElement model={element} data={productData} trackingParams={trackingParams} constainerDirection={StreamElementStyleDirection.Vertical} />
|
|
31
26
|
{/each}
|
|
32
27
|
</div>
|
|
33
28
|
{/each}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Locale } from '../../../core/locale';
|
|
2
1
|
import type { StreamTrackingParams } from '..';
|
|
3
2
|
import type { ProductsSliderStreamElementModel } from '../elements';
|
|
4
3
|
import type { StreamSlotData } from '../slot-data';
|
|
@@ -6,7 +5,6 @@ type Props = {
|
|
|
6
5
|
model: ProductsSliderStreamElementModel;
|
|
7
6
|
data: StreamSlotData | null;
|
|
8
7
|
trackingParams: StreamTrackingParams;
|
|
9
|
-
locale: Locale;
|
|
10
8
|
};
|
|
11
9
|
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
12
10
|
type Cmp = ReturnType<typeof Cmp>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<script lang="ts">import { PostModel } from '../../../posts/model';
|
|
2
2
|
import { PostViewer } from '../../../posts/post-viewer';
|
|
3
|
-
import { ShortVideoStreamElementLocalization } from './short-video-stream-element-localization';
|
|
4
3
|
import { mapToPostModel } from '../models';
|
|
5
|
-
let { data, trackingParams,
|
|
6
|
-
const localization = $derived(new ShortVideoStreamElementLocalization(locale));
|
|
4
|
+
let { data, trackingParams, on } = $props();
|
|
7
5
|
</script>
|
|
8
6
|
|
|
9
7
|
<PostViewer
|
|
@@ -12,5 +10,4 @@ const localization = $derived(new ShortVideoStreamElementLocalization(locale));
|
|
|
12
10
|
autoplay={false}
|
|
13
11
|
enableControls={false}
|
|
14
12
|
controlActions={[]}
|
|
15
|
-
locale={localization.shortVideoViewerLocale}
|
|
16
13
|
on={on} />
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type { Locale } from '../../../core/locale';
|
|
2
1
|
import type { StreamTrackingParams } from '..';
|
|
3
2
|
import { type StreamLayoutShortVideoModel } from '../models';
|
|
4
3
|
type Props = {
|
|
5
4
|
data: StreamLayoutShortVideoModel;
|
|
6
5
|
trackingParams: StreamTrackingParams;
|
|
7
|
-
locale: Locale;
|
|
8
6
|
on?: {
|
|
9
7
|
progress?: (progress: number) => void;
|
|
10
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<script lang="ts">import {
|
|
2
|
-
import { StreamElementStyleDirection } from '../enums';
|
|
1
|
+
<script lang="ts">import { StreamElementStyleDirection } from '../enums';
|
|
3
2
|
import { transformNumericValue } from '../styles-transformer';
|
|
3
|
+
import { Utils } from '@streamscloud/kit/core/utils';
|
|
4
4
|
let { model, parentContainerDirection } = $props();
|
|
5
5
|
const styles = $derived.by(() => {
|
|
6
6
|
const values = [];
|
|
@@ -29,17 +29,6 @@ const styles = $derived.by(() => {
|
|
|
29
29
|
|
|
30
30
|
<div class="spacer-stream-element" style={styles}> </div>
|
|
31
31
|
|
|
32
|
-
<style
|
|
33
|
-
0% {
|
|
34
|
-
opacity: 1;
|
|
35
|
-
}
|
|
36
|
-
50% {
|
|
37
|
-
opacity: 0.4;
|
|
38
|
-
}
|
|
39
|
-
100% {
|
|
40
|
-
opacity: 1;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.spacer-stream-element {
|
|
32
|
+
<style>.spacer-stream-element {
|
|
44
33
|
line-height: 0;
|
|
45
34
|
}</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">import { StockStreamElementLocalization } from './stock-stream-element-localization';
|
|
2
2
|
import { StockStreamElementLevel } from '../enums';
|
|
3
3
|
import { mapFlexJustifyContent, transformNumericValue, transformTextColorValue } from '../styles-transformer';
|
|
4
|
-
let { model, heightOverrideDdu
|
|
5
|
-
const localization =
|
|
4
|
+
let { model, heightOverrideDdu } = $props();
|
|
5
|
+
const localization = new StockStreamElementLocalization();
|
|
6
6
|
const height = $derived(heightOverrideDdu || model.styles?.height || 16);
|
|
7
7
|
const containerStyles = $derived.by(() => {
|
|
8
8
|
const values = [
|
|
@@ -40,18 +40,7 @@ const quantityCustomStyles = $derived.by(() => {
|
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
|
|
43
|
-
<style
|
|
44
|
-
0% {
|
|
45
|
-
opacity: 1;
|
|
46
|
-
}
|
|
47
|
-
50% {
|
|
48
|
-
opacity: 0.4;
|
|
49
|
-
}
|
|
50
|
-
100% {
|
|
51
|
-
opacity: 1;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.stock-stream-element {
|
|
43
|
+
<style>.stock-stream-element {
|
|
55
44
|
display: flex;
|
|
56
45
|
}
|
|
57
46
|
.stock-stream-element__dot {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { Locale } from '../../../core/locale';
|
|
2
1
|
import type { StockStreamElementModel } from '../elements';
|
|
3
2
|
type Props = {
|
|
4
3
|
model: StockStreamElementModel;
|
|
5
4
|
heightOverrideDdu?: number;
|
|
6
|
-
locale: Locale;
|
|
7
5
|
};
|
|
8
6
|
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
9
7
|
type Cmp = ReturnType<typeof Cmp>;
|