@streamscloud/embeddable 16.2.3 → 16.2.5
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/media-center/media-center/handlers/media-center-settings-handler.svelte.d.ts +1 -0
- package/dist/media-center/media-center/handlers/media-center-settings-handler.svelte.js +1 -0
- package/dist/media-center/media-center/media-center-settings.svelte.d.ts +1 -0
- package/dist/media-center/media-center/media-center-settings.svelte.js +2 -0
- package/dist/media-center/media-center/types.d.ts +1 -0
- package/dist/posts/posts-player/index.d.ts +3 -0
- package/dist/posts/posts-player/index.js +2 -0
- package/dist/posts/posts-player/posts-player-proxy.svelte.d.ts +1 -0
- package/dist/posts/posts-player/types.d.ts +1 -0
- package/dist/streams/streams-player/index.d.ts +3 -0
- package/dist/streams/streams-player/index.js +2 -0
- package/dist/streams/streams-player/streams-player-proxy.svelte.d.ts +1 -0
- package/dist/streams/streams-player/types.d.ts +1 -0
- package/dist/ui/player/player/cmp.player.svelte +1 -1
- package/dist/ui/player/player/player-settings.svelte.d.ts +2 -0
- package/dist/ui/player/player/player-settings.svelte.js +4 -0
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ class ContentPlayerSettingsLocal {
|
|
|
32
32
|
settings;
|
|
33
33
|
locale = $derived.by(() => this.settings.locale);
|
|
34
34
|
showStreamsCloudWatermark = $derived.by(() => this.settings.showStreamsCloudWatermark);
|
|
35
|
+
showSwipeIndicator = $derived.by(() => this.settings.showSwipeIndicator);
|
|
35
36
|
overlayMinOffsetTop = $state(0);
|
|
36
37
|
constructor(settings) {
|
|
37
38
|
this.settings = settings;
|
|
@@ -5,6 +5,7 @@ import type { AppLocaleValue } from '@streamscloud/kit/core/locale';
|
|
|
5
5
|
export declare class MediaCenterSettings {
|
|
6
6
|
locale: AppLocaleValue;
|
|
7
7
|
showStreamsCloudWatermark: boolean;
|
|
8
|
+
showSwipeIndicator: boolean;
|
|
8
9
|
disableBackground: boolean;
|
|
9
10
|
theme: ThemeValue | undefined;
|
|
10
11
|
state: MediaCenterState | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export class MediaCenterSettings {
|
|
2
2
|
locale = $state('en');
|
|
3
3
|
showStreamsCloudWatermark = $state(false);
|
|
4
|
+
showSwipeIndicator = $state(true);
|
|
4
5
|
disableBackground = $state(false);
|
|
5
6
|
theme = $state(undefined);
|
|
6
7
|
state = $state.raw(null);
|
|
@@ -10,6 +11,7 @@ export class MediaCenterSettings {
|
|
|
10
11
|
update = (data) => {
|
|
11
12
|
this.locale = data?.locale ?? 'en';
|
|
12
13
|
this.showStreamsCloudWatermark = data?.showStreamsCloudWatermark ?? false;
|
|
14
|
+
this.showSwipeIndicator = data?.showSwipeIndicator ?? true;
|
|
13
15
|
this.disableBackground = data?.disableBackground ?? false;
|
|
14
16
|
this.theme = data?.theme;
|
|
15
17
|
this.state = data?.state ?? null;
|
|
@@ -40,6 +40,7 @@ export type PlayerProps = {
|
|
|
40
40
|
export type IMediaCenterSettings = {
|
|
41
41
|
locale?: AppLocaleValue;
|
|
42
42
|
showStreamsCloudWatermark?: boolean;
|
|
43
|
+
showSwipeIndicator?: boolean;
|
|
43
44
|
disableBackground?: boolean;
|
|
44
45
|
theme?: 'light' | 'dark';
|
|
45
46
|
state?: MediaCenterState | null;
|
|
@@ -42,6 +42,8 @@ export type { ArticleDataProvider, IMediaCenterDataProvider, IPostAnalyticsHandl
|
|
|
42
42
|
* Localization for the player UI. Default is 'en'; use 'no' for Norwegian.
|
|
43
43
|
* - {boolean} [showStreamsCloudWatermark]
|
|
44
44
|
* If true, shows the StreamsCloud watermark.
|
|
45
|
+
* - {boolean} [showSwipeIndicator=true]
|
|
46
|
+
* If false, hides the swipe indicator in mobile view. Default is true.
|
|
45
47
|
* - {'light' | 'dark'} [theme]
|
|
46
48
|
* Optional theme for the player UI.
|
|
47
49
|
*
|
|
@@ -100,6 +102,7 @@ export declare function openPostsPlayer(init: {
|
|
|
100
102
|
disableBackground?: boolean;
|
|
101
103
|
locale?: AppLocaleValue;
|
|
102
104
|
showStreamsCloudWatermark?: boolean;
|
|
105
|
+
showSwipeIndicator?: boolean;
|
|
103
106
|
hideCloseButton?: boolean;
|
|
104
107
|
theme?: 'light' | 'dark';
|
|
105
108
|
};
|
|
@@ -40,6 +40,8 @@ export { PostsPlayer };
|
|
|
40
40
|
* Localization for the player UI. Default is 'en'; use 'no' for Norwegian.
|
|
41
41
|
* - {boolean} [showStreamsCloudWatermark]
|
|
42
42
|
* If true, shows the StreamsCloud watermark.
|
|
43
|
+
* - {boolean} [showSwipeIndicator=true]
|
|
44
|
+
* If false, hides the swipe indicator in mobile view. Default is true.
|
|
43
45
|
* - {'light' | 'dark'} [theme]
|
|
44
46
|
* Optional theme for the player UI.
|
|
45
47
|
*
|
|
@@ -40,6 +40,7 @@ export type PostsPlayerProps = {
|
|
|
40
40
|
export type PostPlayerSettings = {
|
|
41
41
|
locale?: AppLocaleValue;
|
|
42
42
|
showStreamsCloudWatermark?: boolean;
|
|
43
|
+
showSwipeIndicator?: boolean;
|
|
43
44
|
};
|
|
44
45
|
export type PostManagementActions = {
|
|
45
46
|
editPost: ((id: string) => void) | null;
|
|
@@ -35,6 +35,8 @@ export type { IStreamsPlayerDataProvider, IStreamAnalyticsHandler, IMediaCenterD
|
|
|
35
35
|
* If omitted, the default locale 'en' is used.
|
|
36
36
|
* - {boolean} [showStreamsCloudWatermark]
|
|
37
37
|
* If true, shows the StreamsCloud watermark.
|
|
38
|
+
* - {boolean} [showSwipeIndicator=true]
|
|
39
|
+
* If false, hides the swipe indicator in mobile view. Default is true.
|
|
38
40
|
* - {'light' | 'dark'} [theme]
|
|
39
41
|
* Optional theme for the player UI.
|
|
40
42
|
*
|
|
@@ -92,6 +94,7 @@ export type StreamsPlayerSettings = {
|
|
|
92
94
|
disableBackground?: boolean;
|
|
93
95
|
locale?: AppLocaleValue;
|
|
94
96
|
showStreamsCloudWatermark?: boolean;
|
|
97
|
+
showSwipeIndicator?: boolean;
|
|
95
98
|
hideCloseButton?: boolean;
|
|
96
99
|
theme?: 'light' | 'dark';
|
|
97
100
|
};
|
|
@@ -33,6 +33,8 @@ export {};
|
|
|
33
33
|
* If omitted, the default locale 'en' is used.
|
|
34
34
|
* - {boolean} [showStreamsCloudWatermark]
|
|
35
35
|
* If true, shows the StreamsCloud watermark.
|
|
36
|
+
* - {boolean} [showSwipeIndicator=true]
|
|
37
|
+
* If false, hides the swipe indicator in mobile view. Default is true.
|
|
36
38
|
* - {'light' | 'dark'} [theme]
|
|
37
39
|
* Optional theme for the player UI.
|
|
38
40
|
*
|
|
@@ -45,6 +45,7 @@ export type StreamsPlayerProps = {
|
|
|
45
45
|
export type StreamsPlayerSettings = {
|
|
46
46
|
locale?: AppLocaleValue;
|
|
47
47
|
showStreamsCloudWatermark?: boolean;
|
|
48
|
+
showSwipeIndicator?: boolean;
|
|
48
49
|
overlayMinOffsetTop?: number;
|
|
49
50
|
};
|
|
50
51
|
export type StreamAmplificationParameters = {
|
|
@@ -113,7 +113,7 @@ const handleSliderMounted = (node) => {
|
|
|
113
113
|
{#snippet children({ item })}
|
|
114
114
|
<div class="player__content">
|
|
115
115
|
{@render itemView({ item })}
|
|
116
|
-
{#if uiManager.isMobileView && config.playerBuffer && config.playerBuffer.loaded.length > 1 && !everTouched}
|
|
116
|
+
{#if config.settings.showSwipeIndicator && uiManager.isMobileView && config.playerBuffer && config.playerBuffer.loaded.length > 1 && !everTouched}
|
|
117
117
|
<SwipeIndicator />
|
|
118
118
|
{/if}
|
|
119
119
|
</div>
|
|
@@ -2,10 +2,12 @@ import type { AppLocaleValue } from '@streamscloud/kit/core/locale';
|
|
|
2
2
|
export declare class PlayerSettings {
|
|
3
3
|
locale: AppLocaleValue;
|
|
4
4
|
showStreamsCloudWatermark: boolean;
|
|
5
|
+
showSwipeIndicator: boolean;
|
|
5
6
|
constructor(init?: IContentPlayerSettings);
|
|
6
7
|
patch: (settings?: IContentPlayerSettings) => void;
|
|
7
8
|
}
|
|
8
9
|
export type IContentPlayerSettings = {
|
|
9
10
|
locale?: AppLocaleValue;
|
|
10
11
|
showStreamsCloudWatermark?: boolean;
|
|
12
|
+
showSwipeIndicator?: boolean;
|
|
11
13
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export class PlayerSettings {
|
|
2
2
|
locale = $state('en');
|
|
3
3
|
showStreamsCloudWatermark = $state(false);
|
|
4
|
+
showSwipeIndicator = $state(true);
|
|
4
5
|
constructor(init) {
|
|
5
6
|
this.patch(init);
|
|
6
7
|
}
|
|
@@ -11,5 +12,8 @@ export class PlayerSettings {
|
|
|
11
12
|
if (settings?.showStreamsCloudWatermark !== undefined) {
|
|
12
13
|
this.showStreamsCloudWatermark = settings.showStreamsCloudWatermark;
|
|
13
14
|
}
|
|
15
|
+
if (settings?.showSwipeIndicator !== undefined) {
|
|
16
|
+
this.showSwipeIndicator = settings.showSwipeIndicator;
|
|
17
|
+
}
|
|
14
18
|
};
|
|
15
19
|
}
|