@streamscloud/embeddable 17.0.0-1775767961522 → 17.0.0-1775770367864
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.
|
@@ -35,14 +35,14 @@ $effect(() => {
|
|
|
35
35
|
<div class="recommended-tab__section-title">{localization.suggestedPlaylist}</div>
|
|
36
36
|
<div class="recommended-tab__playlists">
|
|
37
37
|
{#each data.suggestedPlaylists as playlist (playlist.id)}
|
|
38
|
-
<div class="recommended-tab__playlist-card">
|
|
38
|
+
<div class="recommended-tab__playlist-card" onclick={() => handler.onPlaylistSelect?.(playlist.id)} onkeydown={() => {}} role="none">
|
|
39
39
|
<div class="recommended-tab__playlist-thumbnail">
|
|
40
40
|
<Image src={playlist.thumbnailUrl} />
|
|
41
41
|
</div>
|
|
42
42
|
<div class="recommended-tab__playlist-info">
|
|
43
43
|
<div class="recommended-tab__playlist-name">{playlist.name}</div>
|
|
44
44
|
<div class="recommended-tab__playlist-count">{localization.postsCount(playlist.postsCount)}</div>
|
|
45
|
-
<div class="recommended-tab__playlist-link" onclick={() => handler.
|
|
45
|
+
<div class="recommended-tab__playlist-link" onclick={(e: MouseEvent) => { e.stopPropagation(); handler.onPlaylistShow?.(playlist.id); }} onkeydown={() => {}} role="none">
|
|
46
46
|
{localization.showList}
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
@@ -44,10 +44,7 @@ let { tabs, activeTabId, model, trackingParams, selectedProductId, recommendedHa
|
|
|
44
44
|
{:else if activeTabId === 'article'}
|
|
45
45
|
<ArticleTab model={model} on={{ readMore: on.articleReadMore }} />
|
|
46
46
|
{:else if activeTabId === 'recommended' && recommendedHandler}
|
|
47
|
-
<RecommendedTab
|
|
48
|
-
handler={recommendedHandler}
|
|
49
|
-
currentPostId={model.id}
|
|
50
|
-
trackingParams={trackingParams} />
|
|
47
|
+
<RecommendedTab handler={recommendedHandler} currentPostId={model.id} trackingParams={trackingParams} />
|
|
51
48
|
{:else if activeTabId === 'playlist' && playlistHandler}
|
|
52
49
|
<PlaylistTab handler={playlistHandler} activePostId={model.id} on={{ postActivate: on.postActivate }} />
|
|
53
50
|
{/if}
|
|
@@ -31,6 +31,7 @@ export interface IFeedPlayerRecommendedHandler {
|
|
|
31
31
|
getRecommendations: (postId: string) => Promise<FeedPlayerRecommendedData>;
|
|
32
32
|
onPostSelect?: (postId: string) => void;
|
|
33
33
|
onPlaylistSelect?: (playlistId: string) => void;
|
|
34
|
+
onPlaylistShow?: (playlistId: string) => void;
|
|
34
35
|
onProductSelect?: (productId: string) => void;
|
|
35
36
|
onProductBuy?: (productId: string) => void;
|
|
36
37
|
}
|