@livo-tv/blocks 0.0.1 → 1.1.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 +6 -6
- package/dist/index.cjs +307 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.js +246 -57
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# @livo/blocks
|
|
1
|
+
# @livo-tv/blocks
|
|
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/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.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
pnpm add @livo/blocks
|
|
10
|
+
pnpm add @livo-tv/blocks
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Optional peers:
|
|
@@ -21,7 +21,7 @@ Optional peers:
|
|
|
21
21
|
Scan the built package so utilities are not purged:
|
|
22
22
|
|
|
23
23
|
```css
|
|
24
|
-
@source "../../node_modules/@livo/blocks/dist/*.{js,cjs,mjs}";
|
|
24
|
+
@source "../../node_modules/@livo-tv/blocks/dist/*.{js,cjs,mjs}";
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Consumers must define the same shadcn CSS variables (`--primary`, `--background`, `--muted`, …) that Livo frontends already ship.
|
|
@@ -29,7 +29,7 @@ Consumers must define the same shadcn CSS variables (`--primary`, `--background`
|
|
|
29
29
|
## Video
|
|
30
30
|
|
|
31
31
|
```tsx
|
|
32
|
-
import { VideoPlayer } from "@livo/blocks";
|
|
32
|
+
import { VideoPlayer } from "@livo-tv/blocks";
|
|
33
33
|
|
|
34
34
|
<VideoPlayer
|
|
35
35
|
src={playbackUrl}
|
|
@@ -44,7 +44,7 @@ The package is reporting-agnostic. Wire `onError` / `onFirstPlay` in the app.
|
|
|
44
44
|
## Avatar
|
|
45
45
|
|
|
46
46
|
```tsx
|
|
47
|
-
import { AvatarEditorDialog } from "@livo/blocks";
|
|
47
|
+
import { AvatarEditorDialog } from "@livo-tv/blocks";
|
|
48
48
|
|
|
49
49
|
<AvatarEditorDialog
|
|
50
50
|
value={preview}
|