@streamscloud/embeddable 6.5.0 → 6.5.1
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/products/price-helper.d.ts +2 -2
- package/dist/short-videos/short-video-viewer/cmp.attachments-horizontal.svelte +4 -0
- package/dist/short-videos/short-video-viewer/ui-manager.svelte.d.ts +1 -1
- package/dist/short-videos/short-video-viewer/ui-manager.svelte.js +3 -3
- package/dist/short-videos/short-videos-player/ui-manager.svelte.d.ts +1 -1
- package/dist/short-videos/short-videos-player/ui-manager.svelte.js +3 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Currency } from '../core/enums';
|
|
2
|
-
type
|
|
2
|
+
type CurrencyMode = 'none' | 'symbol' | 'code';
|
|
3
3
|
export type PriceRepresentationOptions = {
|
|
4
|
-
currencyMode?:
|
|
4
|
+
currencyMode?: CurrencyMode;
|
|
5
5
|
missingFractionMode?: 'hide' | 'currency-placeholder' | 'zeros' | 'zeros-or-placeholder';
|
|
6
6
|
locale?: string;
|
|
7
7
|
};
|
|
@@ -89,6 +89,7 @@ $effect(() => {
|
|
|
89
89
|
<div
|
|
90
90
|
class="attachments-horizontal__item"
|
|
91
91
|
class:attachments-horizontal__item--single={attachmentsToShow.length === 1}
|
|
92
|
+
data-theme={attachment.isAd ? 'default' : 'dark'}
|
|
92
93
|
onclick={() => handleAttachmentClick(attachment)}
|
|
93
94
|
onkeydown={() => {}}
|
|
94
95
|
role="none"
|
|
@@ -217,4 +218,7 @@ $effect(() => {
|
|
|
217
218
|
white-space: nowrap;
|
|
218
219
|
overflow: hidden;
|
|
219
220
|
text-overflow: ellipsis;
|
|
221
|
+
}
|
|
222
|
+
:global([data-theme="dark"]) .attachments-card__extra-info {
|
|
223
|
+
color: #ffffff;
|
|
220
224
|
}</style>
|
|
@@ -2,7 +2,7 @@ export declare class ShortVideoViewerUiManager {
|
|
|
2
2
|
readonly globalCssVariables: string;
|
|
3
3
|
readonly showAttachments: boolean;
|
|
4
4
|
readonly showControls: boolean;
|
|
5
|
-
private
|
|
5
|
+
private controlsPanelWidth;
|
|
6
6
|
private canShowControls;
|
|
7
7
|
private canShowAttachments;
|
|
8
8
|
private enableAttachments;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export class ShortVideoViewerUiManager {
|
|
2
2
|
globalCssVariables = $derived.by(() => {
|
|
3
|
-
const values = [`--_short-video-viewer--controls-panel--width: ${this.
|
|
3
|
+
const values = [`--_short-video-viewer--controls-panel--width: ${this.controlsPanelWidth}px`];
|
|
4
4
|
return values.join(';');
|
|
5
5
|
});
|
|
6
6
|
showAttachments = $derived.by(() => {
|
|
@@ -9,7 +9,7 @@ export class ShortVideoViewerUiManager {
|
|
|
9
9
|
showControls = $derived.by(() => {
|
|
10
10
|
return this.canShowControls;
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
controlsPanelWidth = $state(0);
|
|
13
13
|
// is provided from the calling side
|
|
14
14
|
canShowControls = $state(false);
|
|
15
15
|
// is provided from the calling side
|
|
@@ -26,6 +26,6 @@ export class ShortVideoViewerUiManager {
|
|
|
26
26
|
this.enableAttachments = !this.enableAttachments;
|
|
27
27
|
};
|
|
28
28
|
setControlsPanelWidth(value) {
|
|
29
|
-
this.
|
|
29
|
+
this.controlsPanelWidth = value;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -9,7 +9,7 @@ export declare class ShortVideosPlayerUiManager {
|
|
|
9
9
|
private _mainViewColumnWidth;
|
|
10
10
|
private _mediaCenterHeaderHeight;
|
|
11
11
|
private _controlsAttachmentsPanelWidth;
|
|
12
|
-
private
|
|
12
|
+
private _controlsNavigationButtonsWidth;
|
|
13
13
|
private _controlsAvailableSpace;
|
|
14
14
|
private _controlsContentWidth;
|
|
15
15
|
get viewTotalWidth(): number;
|
|
@@ -17,12 +17,12 @@ export class ShortVideosPlayerUiManager {
|
|
|
17
17
|
isMobileView = $derived.by(() => this._viewTotalWidth <= 576);
|
|
18
18
|
viewInitialized = $derived.by(() => !!this._viewTotalWidth && !!this._mainViewColumnWidth);
|
|
19
19
|
showShortVideoOverlayAttachments = $derived.by(() => this.viewInitialized && this._controlsAttachmentsPanelWidth < CONTROLS_ATTACHMENTS_MAX_WIDTH + 10);
|
|
20
|
-
showShortVideoOverlayControls = $derived.by(() => this.viewInitialized && this._controlsContentWidth < this.
|
|
20
|
+
showShortVideoOverlayControls = $derived.by(() => this.viewInitialized && this._controlsContentWidth < this._controlsNavigationButtonsWidth);
|
|
21
21
|
_viewTotalWidth = $state(0);
|
|
22
22
|
_mainViewColumnWidth = $state(0);
|
|
23
23
|
_mediaCenterHeaderHeight = $state(0);
|
|
24
24
|
_controlsAttachmentsPanelWidth = $state(0);
|
|
25
|
-
|
|
25
|
+
_controlsNavigationButtonsWidth = $state(0);
|
|
26
26
|
_controlsAvailableSpace = $derived.by(() => (this._viewTotalWidth - this._mainViewColumnWidth) / 2);
|
|
27
27
|
_controlsContentWidth = $derived.by(() => this._controlsAvailableSpace - CONTROLS_PADDING_HORIZONTAL * 2);
|
|
28
28
|
get viewTotalWidth() {
|
|
@@ -42,6 +42,6 @@ export class ShortVideosPlayerUiManager {
|
|
|
42
42
|
this._controlsAttachmentsPanelWidth = width;
|
|
43
43
|
};
|
|
44
44
|
setNavigationButtonsBlockWidth = (width) => {
|
|
45
|
-
this.
|
|
45
|
+
this._controlsNavigationButtonsWidth = width;
|
|
46
46
|
};
|
|
47
47
|
}
|