@livo-tv/blocks 1.32.1 → 1.34.0

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Shared UI components for [Livo](https://github.com/livo-tv) applications.
4
4
 
5
- The main entry is a Client Component boundary (`"use client"`). Import avatar helpers from `@livo-tv/blocks/avatar` in React Server Components.
5
+ The main entry is a Client Component boundary (`"use client"`). Import avatar helpers from `@livo-tv/blocks/avatar` in React Server Components. Import `VideoPlayer`, curtains, shaders, and playback beacons from `@livo-tv/blocks/video` so apps that only need chrome (auth, home, docs) never resolve optional HLS / shader peers.
6
6
 
7
7
  ## Install
8
8
 
@@ -12,7 +12,8 @@ pnpm add @livo-tv/blocks
12
12
 
13
13
  Optional peers:
14
14
 
15
- - `hls.js` — `VideoPlayer` / `useHlsPlayback`
15
+ - `hls.js` — `@livo-tv/blocks/video` (`VideoPlayer` / `useHlsPlayback`)
16
+ - `@shadergradient/react` (plus `three` / `@react-three/fiber` / `three-stdlib` / `camera-controls`) — `@livo-tv/blocks/video` (`ShaderCurtain`)
16
17
  - `framer-motion` — `AvatarEditorDialog`, `ThemeSwitcher`, `LanguageSwitcher`
17
18
  - `next-themes` — `ThemeSwitcher`
18
19
 
@@ -29,7 +30,7 @@ Consumers must define the same shadcn CSS variables (`--primary`, `--background`
29
30
  ## Video
30
31
 
31
32
  ```tsx
32
- import { VideoPlayer } from "@livo-tv/blocks";
33
+ import { VideoPlayer } from "@livo-tv/blocks/video";
33
34
 
34
35
  <VideoPlayer
35
36
  src={playbackUrl}
@@ -46,7 +47,7 @@ The package is reporting-agnostic. Wire `onError` / `onFirstPlay` in the app.
46
47
  `CurtainPicker` is presentational. Apps load the catalog, upload, and confirm deletes; the block only renders tiles and calls back.
47
48
 
48
49
  ```tsx
49
- import { CurtainPicker, CurtainPickerSkeleton } from "@livo-tv/blocks";
50
+ import { CurtainPicker, CurtainPickerSkeleton } from "@livo-tv/blocks/video";
50
51
 
51
52
  <CurtainPicker
52
53
  curtains={curtains}