@livo-tv/blocks 1.32.0 → 1.33.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 +5 -4
- package/dist/index.cjs +83 -4910
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -609
- package/dist/index.d.ts +1 -609
- package/dist/index.js +21 -4816
- package/dist/index.js.map +1 -1
- package/dist/video.cjs +5124 -0
- package/dist/video.cjs.map +1 -0
- package/dist/video.d.cts +611 -0
- package/dist/video.d.ts +611 -0
- package/dist/video.js +5071 -0
- package/dist/video.js.map +1 -0
- package/package.json +11 -1
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}
|