@livo-tv/sdk 1.1.0 → 1.1.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.
package/README.md CHANGED
@@ -11,7 +11,7 @@ import "@livo-tv/sdk/styles.css";
11
11
  <LivoStudio guestToken="..." theme={{ primary: "#2563eb" }} />
12
12
  ```
13
13
 
14
- `@livo-tv/sdk/studio` is the native room. Tailwind hosts must `@source` `node_modules/@livo-tv/sdk/dist/*.{js,cjs,mjs}` like `@livo-tv/blocks`. RealtimeKit is an optional peer (`@cloudflare/realtimekit`). Root `<LivoStudio>` remains the iframe fallback.
14
+ `@livo-tv/sdk` and `@livo-tv/sdk/studio` are client entries (the published bundles start with `"use client"`). Import them from `"use client"` files in Next.js App Router — do not import `@livo-tv/sdk/studio` from a Server Component page. Tailwind hosts must `@source` `node_modules/@livo-tv/sdk/dist/*.{js,cjs,mjs}` like `@livo-tv/blocks`. RealtimeKit is an optional peer (`@cloudflare/realtimekit`). Root `<LivoStudio>` remains the iframe fallback.
15
15
 
16
16
  Server (Node / Workers):
17
17
 
package/dist/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  'use strict';
2
3
 
3
4
  var blocks = require('@livo-tv/blocks');
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { VideoPlayer, createPlaybackBeaconClient, CurtainStage } from '@livo-tv/blocks';
2
3
  import { useState, useRef, useEffect, useMemo } from 'react';
3
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  'use strict';
2
3
 
3
4
  var react = require('react');
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { createContext, useContext, useState, useRef, useEffect, useCallback, useMemo } from 'react';
2
3
  import { createPortal } from 'react-dom';
3
4
  import { Loader2, MicOff, Mic, Video, VideoOff, X, EyeOff, Eye, Users, MonitorUp, MessageSquare, Share2, Link2, Maximize, PictureInPicture2, Settings, PhoneOff, Undo2, Volume2, XIcon, Pin, MessageSquareOff, MoreVertical } from 'lucide-react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livo-tv/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Embed the Livo player and studio in a third-party app",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -47,12 +47,13 @@
47
47
  "**/*.css"
48
48
  ],
49
49
  "scripts": {
50
- "build": "tsup && node scripts/copy-css.mjs",
50
+ "build": "tsup && node scripts/copy-css.mjs && node scripts/stamp-client-entries.mjs",
51
51
  "typecheck": "tsc --noEmit",
52
52
  "lint": "eslint . --max-warnings=0",
53
53
  "format": "prettier --write .",
54
54
  "format:check": "prettier --check .",
55
55
  "test": "vitest run --coverage",
56
+ "prepare": "husky",
56
57
  "prepublishOnly": "pnpm build",
57
58
  "release": "semantic-release",
58
59
  "ci:check": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build"
@@ -104,6 +105,8 @@
104
105
  "tailwind-merge": "^3.4.0"
105
106
  },
106
107
  "devDependencies": {
108
+ "@commitlint/cli": "^19.8.1",
109
+ "@commitlint/config-conventional": "^19.8.1",
107
110
  "@eslint/js": "^9.26.0",
108
111
  "@semantic-release/changelog": "^6.0.3",
109
112
  "@semantic-release/git": "^10.0.1",
@@ -116,7 +119,9 @@
116
119
  "@vitest/coverage-istanbul": "^4.0.0",
117
120
  "eslint": "^9.26.0",
118
121
  "eslint-config-prettier": "^10.1.3",
122
+ "husky": "^9.1.7",
119
123
  "jsdom": "^26.1.0",
124
+ "lint-staged": "^16.2.7",
120
125
  "prettier": "^3.5.3",
121
126
  "react": "^19.1.0",
122
127
  "react-dom": "^19.1.0",
@@ -131,5 +136,10 @@
131
136
  "onlyBuiltDependencies": [
132
137
  "esbuild"
133
138
  ]
139
+ },
140
+ "lint-staged": {
141
+ "**/*.{js,jsx,ts,tsx,md,json,yml,yaml,css}": [
142
+ "prettier --write"
143
+ ]
134
144
  }
135
145
  }