@twick/live-player 0.14.17 → 0.14.20

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/README.md CHANGED
@@ -19,7 +19,7 @@ This package provides a powerful video player component that supports complex ti
19
19
 
20
20
  ## Requirements
21
21
 
22
- - React 18 or higher
22
+ - React 18 or 19
23
23
  - Browser environment with HTML5 Video support
24
24
 
25
25
  ## Installation
@@ -30,6 +30,8 @@ npm install @twick/live-player
30
30
  pnpm add @twick/live-player
31
31
  ```
32
32
 
33
+ **Note:** All required dependencies (`@twick/visualizer`, `@twick/media-utils`) are automatically installed with `@twick/live-player`.
34
+
33
35
  ## Quick Start
34
36
 
35
37
  ```tsx
package/dist/index.js CHANGED
@@ -22943,8 +22943,9 @@ const c_ = { name: "circle", *create({ containerRef: r, element: e, view: t }) {
22943
22943
  const s = Oe();
22944
22944
  nn(`SceneElement: ${JSON.stringify(e)}`), yield r().add(ke(je, { ref: s, fill: e.backgroundColor ?? Uu, size: "100%" })), e.type === tc.IMAGE ? yield* Gu.create({ containerRef: r, element: e, view: t }) : e.type === tc.VIDEO && (yield* zu.create({ containerRef: r, element: e, view: t })), yield s().remove();
22945
22945
  } }, p_ = { name: "text", *create({ containerRef: r, element: e, view: t }) {
22946
+ var n, a;
22946
22947
  const s = Oe();
22947
- yield* oe(e == null ? void 0 : e.s), yield r().add(ke($t, { ref: s, text: e.t, ...e.props }, e.id)), yield* Se(Ts({ elementRef: s, element: e, view: t }), o_({ elementRef: s, element: e }), oe(Math.max(0, e.e - e.s))), yield s().remove();
22948
+ yield* oe(e == null ? void 0 : e.s), yield r().add(ke($t, { ref: s, text: e.t, textWrap: ((n = e.props) == null ? void 0 : n.textWrap) ?? true, textAlign: ((a = e.props) == null ? void 0 : a.textAlign) ?? "center", ...e.props }, e.id)), yield* Se(Ts({ elementRef: s, element: e, view: t }), o_({ elementRef: s, element: e }), oe(Math.max(0, e.e - e.s))), yield s().remove();
22948
22949
  } };
22949
22950
  class g_ {
22950
22951
  constructor() {