@conference-kit/ui-next 0.0.1 → 0.0.3
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 +37 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @conference-kit/ui-next
|
|
2
|
+
|
|
3
|
+
Next.js entry point for the React UI kit. It re-exports everything from `@conference-kit/ui-react` so you can import from a Next-scoped package.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @conference-kit/ui-next
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Peer deps: React 18+, React DOM, Next 13+, TailwindCSS 3.4+.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
// app/call/page.tsx (app router)
|
|
17
|
+
import { ParticipantGrid, ConnectionBadge } from "@conference-kit/ui-next";
|
|
18
|
+
|
|
19
|
+
export default function Page() {
|
|
20
|
+
return (
|
|
21
|
+
<div className="space-y-4">
|
|
22
|
+
<ConnectionBadge
|
|
23
|
+
status={{ signaling: "open", media: "ready", data: "ready" }}
|
|
24
|
+
/>
|
|
25
|
+
<ParticipantGrid participants={[]} />
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Pair these components with state from `@conference-kit/react` (or `@conference-kit/nextjs`) inside client components.
|
|
32
|
+
|
|
33
|
+
## Build
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm run build
|
|
37
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conference-kit/ui-next",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"tailwindcss": ">=3.4.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@conference-kit/ui-react": "^0.0.
|
|
24
|
-
"@conference-kit/react": "^0.0.
|
|
25
|
-
"@conference-kit/core": "^0.0.
|
|
23
|
+
"@conference-kit/ui-react": "^0.0.3",
|
|
24
|
+
"@conference-kit/react": "^0.0.3",
|
|
25
|
+
"@conference-kit/core": "^0.0.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^18.3.27",
|