eb-player 2.4.0 → 2.4.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.
@@ -78,8 +78,14 @@ export declare class SkinRoot extends BaseComponent {
78
78
  */
79
79
  private updateAdPlayingState;
80
80
  /**
81
- * Applies or removes the dir=rtl attribute without full re-render.
81
+ * Writes a concrete dir attribute without full re-render.
82
82
  * More efficient than re-rendering the entire template for a simple attribute change.
83
+ *
84
+ * Always asserts a direction — never removes the attribute. `dir` is an enumerated
85
+ * attribute: absent and `""` both mean "inherit from the ancestor", so removing it
86
+ * inside an RTL document (`<html dir="rtl">`) left the player mirrored by inheritance
87
+ * while Seekbar/VolumeControl had already switched to their LTR pointer maths. The
88
+ * player element is the authoritative direction root in BOTH states.
83
89
  */
84
90
  private applyRtl;
85
91
  private invokeExtensions;
@@ -1 +1 @@
1
- {"version":3,"file":"skin-root.d.ts","sourceRoot":"","sources":["../../../../../src/skin/skin-root.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAyChD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,QAAS,SAAQ,aAAa;IACzC,OAAO,CAAC,YAAY,CAAgC;IACpD,OAAO,CAAC,mBAAmB,CAA2B;IACtD,OAAO,CAAC,kBAAkB,CAAgC;IAC1D,OAAO,CAAC,iBAAiB,CAAwB;IACjD,OAAO,CAAC,eAAe,CAAsB;IAE7C;;;OAGG;IACH,eAAe,IAAI,gBAAgB,GAAG,IAAI;IAI1C;;;OAGG;IACH,eAAe,IAAI,WAAW,GAAG,IAAI;IAIrC;;;OAGG;IACH,qBAAqB,IAAI,gBAAgB,GAAG,IAAI;IAIhD,SAAS,CAAC,SAAS,IAAI,IAAI;IA6B3B,SAAS,CAAC,QAAQ,IAAI,cAAc;IAgFpC;;;;;;OAMG;IACH,OAAO,CAAC,sBA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ACH,OAAO,CAAC,cAAc;IAWtB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IA0B1B;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAQhC;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAM5B;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,gBAAgB;IA4BxB,UAAU,IAAI,IAAI;CAiBnB"}
@@ -3342,12 +3342,18 @@
3342
3342
  here — it cancels the native mirroring. Only elements positioned with a
3343
3343
  physical inline style (chapter markers use right: N% under RTL) need an
3344
3344
  explicit override.
3345
+
3346
+ Both overrides below MUST stay anchored to .eb-player[dir="rtl"]. As bare
3347
+ [dir="rtl"] descendant selectors they also matched through an ancestor —
3348
+ inside an RTL document (<html dir="rtl">) they fired even when the player
3349
+ itself was LTR, mirroring the markers and volume thumb while Seekbar and
3350
+ VolumeControl used their LTR pointer maths. Never widen these back.
3345
3351
  ============================================================ */
3346
- [dir="rtl"] .eb-chapter-marker {
3352
+ .eb-player[dir="rtl"] .eb-chapter-marker {
3347
3353
  --eb-chapter-marker-x: 50%;
3348
3354
  }
3349
3355
 
3350
- [dir="rtl"] .eb-volume-thumb {
3356
+ .eb-player[dir="rtl"] .eb-volume-thumb {
3351
3357
  --eb-volume-thumb-x: 50%;
3352
3358
  }
3353
3359
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eb-player",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "scripts": {
6
6
  "generate-demo": "pnpm generate --brand default --variant demo && cp dist/players/default/default.js test_player/src/demo.js",