@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,218 +0,0 @@
|
|
|
1
|
-
<script lang="ts" generics="T extends { id: string }">import { TouchSynchronizer } from '../utils';
|
|
2
|
-
import { createWheelAdapter } from './wheel-gestures-adapter';
|
|
3
|
-
import { onDestroy, onMount, untrack } from 'svelte';
|
|
4
|
-
let { buffer, on, children } = $props();
|
|
5
|
-
let slidesRef;
|
|
6
|
-
let sliderHeight = $state(0);
|
|
7
|
-
let swipeTransition = $state(0);
|
|
8
|
-
let cssAnimationDuration = $derived(buffer.animationDuration * 0.55);
|
|
9
|
-
let resizeObserver;
|
|
10
|
-
let sliderIndex = $state.raw(untrack(() => buffer.currentIndex));
|
|
11
|
-
const actualTransition = $derived(-sliderHeight * sliderIndex);
|
|
12
|
-
const onKeyPress = (e) => {
|
|
13
|
-
if (e.key === 'ArrowUp' || e.key === 'PageUp') {
|
|
14
|
-
buffer.loadPrevious();
|
|
15
|
-
}
|
|
16
|
-
if (e.key === 'ArrowDown' || e.key === 'PageDown') {
|
|
17
|
-
buffer.loadNext();
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
$effect(() => {
|
|
21
|
-
if (buffer.currentIndex >= 0 && sliderIndex >= 0 && Math.abs(sliderIndex - buffer.currentIndex) === 1) {
|
|
22
|
-
slidesRef.classList.toggle('animate', true);
|
|
23
|
-
}
|
|
24
|
-
else if (buffer.currentIndex >= 0 && (Math.abs(sliderIndex - buffer.currentIndex) !== 0 || !active)) {
|
|
25
|
-
untrack(() => notifyOnItemChanged());
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
let active = null;
|
|
29
|
-
$effect(() => {
|
|
30
|
-
sliderIndex = buffer.currentIndex;
|
|
31
|
-
});
|
|
32
|
-
const notifyOnItemChanged = () => {
|
|
33
|
-
if (active && buffer.current?.id !== active.id) {
|
|
34
|
-
on?.itemDeactivated?.(active.id);
|
|
35
|
-
}
|
|
36
|
-
active = buffer.current;
|
|
37
|
-
if (active) {
|
|
38
|
-
on?.itemActivated?.(active.id);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
onMount(() => {
|
|
42
|
-
let touchStartX = 0;
|
|
43
|
-
let touchStartY = 0;
|
|
44
|
-
let touchMoveY = 0;
|
|
45
|
-
let touchStartTime = 0;
|
|
46
|
-
let swipeState = 'not-initialized';
|
|
47
|
-
window.addEventListener(`keydown`, onKeyPress);
|
|
48
|
-
slidesRef.addEventListener('touchstart', (e) => {
|
|
49
|
-
TouchSynchronizer.touchStarted(slidesRef);
|
|
50
|
-
// The movement gets all janky if there's a transition on the elements.
|
|
51
|
-
slidesRef.classList.toggle('animate', false);
|
|
52
|
-
touchStartX = e.changedTouches[0].screenX;
|
|
53
|
-
touchStartY = e.changedTouches[0].screenY;
|
|
54
|
-
touchStartTime = Date.now();
|
|
55
|
-
swipeState = 'not-initialized';
|
|
56
|
-
}, { passive: true });
|
|
57
|
-
slidesRef.addEventListener('touchmove', (e) => {
|
|
58
|
-
if (swipeState === 'vertical') {
|
|
59
|
-
// Already determined this is a vertical swipe
|
|
60
|
-
e.preventDefault();
|
|
61
|
-
e.stopPropagation();
|
|
62
|
-
TouchSynchronizer.touchMovePropagationBlocked(slidesRef);
|
|
63
|
-
}
|
|
64
|
-
else if (swipeState === 'horizontal') {
|
|
65
|
-
// Already determined this is a horizontal swipe
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const touchCurrentX = e.changedTouches[0].screenX;
|
|
69
|
-
const touchCurrentY = e.changedTouches[0].screenY;
|
|
70
|
-
const diffX = Math.abs(touchCurrentX - touchStartX);
|
|
71
|
-
const diffY = Math.abs(touchCurrentY - touchStartY);
|
|
72
|
-
// Determine direction on first significant movement
|
|
73
|
-
if (diffX > 10 || diffY > 10) {
|
|
74
|
-
if (diffY > diffX) {
|
|
75
|
-
// Vertical swipe - handle it
|
|
76
|
-
swipeState = 'vertical';
|
|
77
|
-
e.preventDefault();
|
|
78
|
-
e.stopPropagation();
|
|
79
|
-
TouchSynchronizer.touchMovePropagationBlocked(slidesRef);
|
|
80
|
-
const newPosition = touchCurrentY;
|
|
81
|
-
const diff = newPosition - touchStartY;
|
|
82
|
-
if ((diff > 0 && buffer.canLoadPrevious) || (diff < 0 && buffer.canLoadNext)) {
|
|
83
|
-
touchMoveY = diff;
|
|
84
|
-
swipeTransition = diff + actualTransition;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
// Horizontal swipe - allow child to handle
|
|
89
|
-
swipeState = 'horizontal';
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}, { passive: false });
|
|
94
|
-
slidesRef.addEventListener('touchend', (e) => {
|
|
95
|
-
const reset = () => {
|
|
96
|
-
swipeTransition = 0;
|
|
97
|
-
touchMoveY = 0;
|
|
98
|
-
};
|
|
99
|
-
// Check if this is a vertical swipe
|
|
100
|
-
if (swipeState !== 'vertical') {
|
|
101
|
-
// Horizontal swipe - don't handle and don't block
|
|
102
|
-
reset();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
// This is a vertical swipe - block propagation
|
|
106
|
-
e.stopPropagation();
|
|
107
|
-
TouchSynchronizer.touchEndPropatationBlocked(slidesRef);
|
|
108
|
-
TouchSynchronizer.touchEnded(slidesRef);
|
|
109
|
-
slidesRef.classList.toggle('animate', true);
|
|
110
|
-
const isFastSwipe = Date.now() - touchStartTime < 300;
|
|
111
|
-
if (!touchMoveY || (!isFastSwipe && Math.abs(touchMoveY) < sliderHeight / 6)) {
|
|
112
|
-
return reset();
|
|
113
|
-
}
|
|
114
|
-
if (touchMoveY > 0) {
|
|
115
|
-
buffer.loadPrevious();
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
buffer.loadNext();
|
|
119
|
-
}
|
|
120
|
-
reset();
|
|
121
|
-
});
|
|
122
|
-
slidesRef.addEventListener('transitionend', (e) => {
|
|
123
|
-
if (e.target !== slidesRef) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
slidesRef.classList.toggle('animate', false);
|
|
127
|
-
notifyOnItemChanged();
|
|
128
|
-
});
|
|
129
|
-
sliderHeight = slidesRef.clientHeight;
|
|
130
|
-
resizeObserver = new ResizeObserver(() => {
|
|
131
|
-
sliderHeight = slidesRef.clientHeight;
|
|
132
|
-
});
|
|
133
|
-
resizeObserver.observe(slidesRef);
|
|
134
|
-
});
|
|
135
|
-
onDestroy(() => {
|
|
136
|
-
if (resizeObserver) {
|
|
137
|
-
resizeObserver.disconnect();
|
|
138
|
-
}
|
|
139
|
-
window.removeEventListener('keydown', onKeyPress);
|
|
140
|
-
});
|
|
141
|
-
const styles = $derived.by(() => {
|
|
142
|
-
const values = [
|
|
143
|
-
`transform: translateY(${swipeTransition || actualTransition}px)`,
|
|
144
|
-
`--_player-slider--animation: ${cssAnimationDuration}ms ease-out transform`
|
|
145
|
-
];
|
|
146
|
-
return values.join(';');
|
|
147
|
-
});
|
|
148
|
-
const wheelCallbacks = {
|
|
149
|
-
canLoadNext: () => buffer.canLoadNext,
|
|
150
|
-
canLoadPrevious: () => buffer.canLoadPrevious,
|
|
151
|
-
onTrigger: (direction) => {
|
|
152
|
-
// direction: 1 -> next, -1 -> previous
|
|
153
|
-
if (direction > 0) {
|
|
154
|
-
buffer.loadNext();
|
|
155
|
-
}
|
|
156
|
-
else if (direction < 0) {
|
|
157
|
-
buffer.loadPrevious();
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
getAnimationDurationMs: () => buffer.animationDuration
|
|
161
|
-
};
|
|
162
|
-
</script>
|
|
163
|
-
|
|
164
|
-
<div class="player-slider">
|
|
165
|
-
<div class="player-slider__slides" bind:this={slidesRef} use:createWheelAdapter={{ cbs: wheelCallbacks }} style={styles}>
|
|
166
|
-
{#each buffer.loaded as item, index (item)}
|
|
167
|
-
<div class="player-slider__slide">
|
|
168
|
-
{#if index >= sliderIndex - 1 && index <= sliderIndex + 1}
|
|
169
|
-
<!-- Only render the active slide and its immediate neighbors for performance -->
|
|
170
|
-
{@render children({ item, active: index === sliderIndex })}
|
|
171
|
-
{/if}
|
|
172
|
-
</div>
|
|
173
|
-
{/each}
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
<style>@keyframes fadeIn {
|
|
178
|
-
0% {
|
|
179
|
-
opacity: 1;
|
|
180
|
-
}
|
|
181
|
-
50% {
|
|
182
|
-
opacity: 0.4;
|
|
183
|
-
}
|
|
184
|
-
100% {
|
|
185
|
-
opacity: 1;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
.player-slider {
|
|
189
|
-
position: relative;
|
|
190
|
-
overflow: clip;
|
|
191
|
-
height: 100%;
|
|
192
|
-
width: 100%;
|
|
193
|
-
min-width: 100%;
|
|
194
|
-
max-width: 100%;
|
|
195
|
-
}
|
|
196
|
-
.player-slider__slides {
|
|
197
|
-
height: 100%;
|
|
198
|
-
min-height: 100%;
|
|
199
|
-
max-height: 100%;
|
|
200
|
-
width: 100%;
|
|
201
|
-
min-width: 100%;
|
|
202
|
-
max-width: 100%;
|
|
203
|
-
}
|
|
204
|
-
.player-slider__slides:global(.animate) {
|
|
205
|
-
transition: var(--_player-slider--animation);
|
|
206
|
-
}
|
|
207
|
-
.player-slider__slide {
|
|
208
|
-
display: flex;
|
|
209
|
-
justify-content: center;
|
|
210
|
-
align-items: center;
|
|
211
|
-
position: relative;
|
|
212
|
-
height: 100%;
|
|
213
|
-
min-height: 100%;
|
|
214
|
-
max-height: 100%;
|
|
215
|
-
width: 100%;
|
|
216
|
-
min-width: 100%;
|
|
217
|
-
max-width: 100%;
|
|
218
|
-
}</style>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { PlayerSliderBuffer, PlayerSliderCallbacks } from './types';
|
|
2
|
-
import { type Snippet } from 'svelte';
|
|
3
|
-
declare class __sveltets_Render<T extends {
|
|
4
|
-
id: string;
|
|
5
|
-
}> {
|
|
6
|
-
props(): {
|
|
7
|
-
buffer: PlayerSliderBuffer<T>;
|
|
8
|
-
on?: PlayerSliderCallbacks;
|
|
9
|
-
children: Snippet<[{
|
|
10
|
-
item: T;
|
|
11
|
-
active?: boolean;
|
|
12
|
-
}]>;
|
|
13
|
-
};
|
|
14
|
-
events(): {};
|
|
15
|
-
slots(): {};
|
|
16
|
-
bindings(): "";
|
|
17
|
-
exports(): {};
|
|
18
|
-
}
|
|
19
|
-
interface $$IsomorphicComponent {
|
|
20
|
-
new <T extends {
|
|
21
|
-
id: string;
|
|
22
|
-
}>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
23
|
-
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
24
|
-
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
25
|
-
<T extends {
|
|
26
|
-
id: string;
|
|
27
|
-
}>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
28
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
29
|
-
}
|
|
30
|
-
declare const Cmp: $$IsomorphicComponent;
|
|
31
|
-
type Cmp<T extends {
|
|
32
|
-
id: string;
|
|
33
|
-
}> = InstanceType<typeof Cmp<T>>;
|
|
34
|
-
export default Cmp;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @type {import('svelte/action').Action} */
|
|
2
|
-
export const preventSliderScroll = (node, value = true) => {
|
|
3
|
-
node.dataset[preventScrollingAttrubute] = value.toString();
|
|
4
|
-
return {
|
|
5
|
-
destroy() {
|
|
6
|
-
// the node has been removed from the DOM
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export const isScrollingPrevented = (node) => node.dataset[preventScrollingAttrubute] === 'true';
|
|
11
|
-
const preventScrollingAttrubute = 'preventPlayerScrolling';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type PlayerSliderCallbacks = {
|
|
2
|
-
itemActivated?: (e: string) => void;
|
|
3
|
-
itemDeactivated?: (e: string) => void;
|
|
4
|
-
};
|
|
5
|
-
export interface PlayerSliderBuffer<T extends {
|
|
6
|
-
id: string;
|
|
7
|
-
}> {
|
|
8
|
-
readonly current: T | null;
|
|
9
|
-
readonly loaded: T[];
|
|
10
|
-
readonly currentIndex: number;
|
|
11
|
-
readonly canLoadNext: boolean;
|
|
12
|
-
readonly canLoadPrevious: boolean;
|
|
13
|
-
readonly animationDuration: number;
|
|
14
|
-
loadNext: () => void;
|
|
15
|
-
loadPrevious: () => void;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type WheelAdapterCallbacks = {
|
|
2
|
-
canLoadNext: () => boolean;
|
|
3
|
-
canLoadPrevious: () => boolean;
|
|
4
|
-
onTrigger: (direction: number) => void;
|
|
5
|
-
getAnimationDurationMs: () => number;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Minimal, robust wheel adapter:
|
|
9
|
-
* - EMA over axisVelocity[1] to smooth noisy streams (esp. on Windows)
|
|
10
|
-
* - Cooldown blocks triggers while animation runs
|
|
11
|
-
* - Mouse fallback: if velocity is near zero but delta is large, treat as a discrete "kick"
|
|
12
|
-
*/
|
|
13
|
-
export declare const createWheelAdapter: (target: HTMLElement, params: {
|
|
14
|
-
cbs: WheelAdapterCallbacks;
|
|
15
|
-
}) => {
|
|
16
|
-
destroy(): void;
|
|
17
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// wheel-gestures-adapter.ts
|
|
2
|
-
import { WheelGestures } from 'wheel-gestures';
|
|
3
|
-
/**
|
|
4
|
-
* Minimal, robust wheel adapter:
|
|
5
|
-
* - EMA over axisVelocity[1] to smooth noisy streams (esp. on Windows)
|
|
6
|
-
* - Cooldown blocks triggers while animation runs
|
|
7
|
-
* - Mouse fallback: if velocity is near zero but delta is large, treat as a discrete "kick"
|
|
8
|
-
*/
|
|
9
|
-
export const createWheelAdapter = (target, params) => {
|
|
10
|
-
const { cbs } = params;
|
|
11
|
-
// Tunables
|
|
12
|
-
const PEAK_THRESHOLD = 0.4; // EMA magnitude threshold to consider as a "peak"
|
|
13
|
-
const ACCEL_THRESHOLD = 0.02; // minimal directional EMA rise to count as real acceleration
|
|
14
|
-
const EMA_ALPHA = 0.35; // EMA smoothing factor (0..1); higher = snappier, noisier
|
|
15
|
-
const MOUSE_DELTA_KICK = 12; // mouse: large delta step (≈12 mac / ≈100 win)
|
|
16
|
-
const MOUSE_STEP_RATIO_KICK = 350; // dimensionless; tune 200–500 if needed
|
|
17
|
-
const wheelGestures = WheelGestures({ preventWheelAction: true, reverseSign: false });
|
|
18
|
-
wheelGestures.observe(target);
|
|
19
|
-
let isAnimating = false;
|
|
20
|
-
let cooldownTimer = null;
|
|
21
|
-
// EMA state
|
|
22
|
-
let emaVelocity = 0;
|
|
23
|
-
let previousEmaVelocity = 0;
|
|
24
|
-
const startCooldown = () => {
|
|
25
|
-
if (cooldownTimer) {
|
|
26
|
-
clearTimeout(cooldownTimer);
|
|
27
|
-
}
|
|
28
|
-
cooldownTimer = window.setTimeout(() => {
|
|
29
|
-
isAnimating = false;
|
|
30
|
-
}, cbs.getAnimationDurationMs() + 100);
|
|
31
|
-
};
|
|
32
|
-
const fire = (direction) => {
|
|
33
|
-
// Respect external guards (e.g., paging boundaries)
|
|
34
|
-
if ((direction > 0 && !cbs.canLoadNext()) || (direction < 0 && !cbs.canLoadPrevious())) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
isAnimating = true;
|
|
38
|
-
cbs.onTrigger(direction);
|
|
39
|
-
startCooldown();
|
|
40
|
-
};
|
|
41
|
-
wheelGestures.on('wheel', ({ axisDelta: [, axisDeltaY], axisVelocity: [, axisVelocityY] }) => {
|
|
42
|
-
const velocityY = axisVelocityY || 0;
|
|
43
|
-
const deltaY = axisDeltaY || 0;
|
|
44
|
-
// Tracking only: always update EMA and compute signs/acceleration
|
|
45
|
-
previousEmaVelocity = emaVelocity;
|
|
46
|
-
emaVelocity += (velocityY - emaVelocity) * EMA_ALPHA;
|
|
47
|
-
const emaMagnitude = Math.abs(emaVelocity);
|
|
48
|
-
const velocitySign = Math.sign(emaVelocity) || Math.sign(velocityY);
|
|
49
|
-
const emaAcceleration = emaVelocity - previousEmaVelocity;
|
|
50
|
-
// During animation we only track; no arming, no triggering
|
|
51
|
-
if (isAnimating) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
// Path 1: mouse-like discrete kick (platform-agnostic via delta/velocity ratio)
|
|
55
|
-
const absDelta = Math.abs(deltaY);
|
|
56
|
-
const absVel = Math.abs(velocityY);
|
|
57
|
-
const stepRatio = absDelta / Math.max(1e-6, absVel);
|
|
58
|
-
const isMouseLikeKick = absDelta >= MOUSE_DELTA_KICK && stepRatio >= MOUSE_STEP_RATIO_KICK;
|
|
59
|
-
if (isMouseLikeKick) {
|
|
60
|
-
const direction = deltaY > 0 ? 1 : -1; // 1 = next/down, -1 = previous/up
|
|
61
|
-
fire(direction);
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
// Path 2: trackpad/inertia via EMA acceleration and peak gating
|
|
65
|
-
const isAcceleratingInDirection = velocitySign !== 0 && emaAcceleration * velocitySign > ACCEL_THRESHOLD;
|
|
66
|
-
if (isAcceleratingInDirection && emaMagnitude > PEAK_THRESHOLD) {
|
|
67
|
-
const direction = velocitySign > 0 ? 1 : -1; // 1 = next/down, -1 = previous/up
|
|
68
|
-
fire(direction);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
return {
|
|
72
|
-
destroy() {
|
|
73
|
-
wheelGestures.unobserve(target);
|
|
74
|
-
if (cooldownTimer) {
|
|
75
|
-
clearTimeout(cooldownTimer);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
};
|