@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.
@@ -1,7 +1,7 @@
1
1
  import { Currency } from '../core/enums';
2
- type CurrecyMode = 'none' | 'symbol' | 'code';
2
+ type CurrencyMode = 'none' | 'symbol' | 'code';
3
3
  export type PriceRepresentationOptions = {
4
- currencyMode?: CurrecyMode;
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 controlsPanelWidht;
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.controlsPanelWidht}px`];
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
- controlsPanelWidht = $state(0);
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.controlsPanelWidht = value;
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 _controlsNavitagionButtonsWidth;
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._controlsNavitagionButtonsWidth);
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
- _controlsNavitagionButtonsWidth = $state(0);
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._controlsNavitagionButtonsWidth = width;
45
+ this._controlsNavigationButtonsWidth = width;
46
46
  };
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",