@relaya-chat/react 1.0.0 → 1.0.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 +10 -10
- package/package.json +19 -5
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# @relaya/react
|
|
1
|
+
# @relaya-chat/react
|
|
2
2
|
|
|
3
3
|
**Community chat for creators and platforms. Embed a fully moderated, real-time chat box on any website or app — no backend required.**
|
|
4
4
|
|
|
5
5
|
```tsx
|
|
6
|
-
import { RelayaChat } from '@relaya/react';
|
|
7
|
-
import '@relaya/react/styles';
|
|
6
|
+
import { RelayaChat } from '@relaya-chat/react';
|
|
7
|
+
import '@relaya-chat/react/styles';
|
|
8
8
|
|
|
9
9
|
export default function CommunityPage() {
|
|
10
10
|
return (
|
|
@@ -31,8 +31,8 @@ Stop scattering your audience across Discord or WhatsApp groups you don't contro
|
|
|
31
31
|
| Path | Who it's for |
|
|
32
32
|
|---|---|
|
|
33
33
|
| **iframe embed** | Creators on Wix, Squarespace, WordPress — copy, paste, done |
|
|
34
|
-
| **`@relaya/react`** | Web developers who want a React component, not an iframe |
|
|
35
|
-
| **`@relaya/react-native`** | Mobile developers who need App Store-compliant UGC |
|
|
34
|
+
| **`@relaya-chat/react`** | Web developers who want a React component, not an iframe |
|
|
35
|
+
| **`@relaya-chat/react-native`** | Mobile developers who need App Store-compliant UGC |
|
|
36
36
|
|
|
37
37
|
One subscription covers all three. Pick your path, start in minutes.
|
|
38
38
|
|
|
@@ -54,7 +54,7 @@ Report, ban, and delete tools on every plan, from day one. No upgrade required f
|
|
|
54
54
|
|
|
55
55
|
### 🧩 From iframe to SDK. One product.
|
|
56
56
|
|
|
57
|
-
Copy-paste an iframe onto your Wix site. Drop `@relaya/react` into your Next.js app. Ship a React Native mobile app with App Store–compliant chat. One subscription, every integration path.
|
|
57
|
+
Copy-paste an iframe onto your Wix site. Drop `@relaya-chat/react` into your Next.js app. Ship a React Native mobile app with App Store–compliant chat. One subscription, every integration path.
|
|
58
58
|
|
|
59
59
|
### 🎨 Custom branding
|
|
60
60
|
|
|
@@ -85,7 +85,7 @@ Auth uses short-lived tokens in memory + rotating refresh tokens in `sessionStor
|
|
|
85
85
|
## Installation
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
npm install @relaya/react
|
|
88
|
+
npm install @relaya-chat/react
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
**Peer dependencies:** React 18+
|
|
@@ -108,8 +108,8 @@ Create a free account at [relaya.chat](https://relaya.chat) and set up your firs
|
|
|
108
108
|
### 2. Drop in the component
|
|
109
109
|
|
|
110
110
|
```tsx
|
|
111
|
-
import { RelayaChat } from '@relaya/react';
|
|
112
|
-
import '@relaya/react/styles';
|
|
111
|
+
import { RelayaChat } from '@relaya-chat/react';
|
|
112
|
+
import '@relaya-chat/react/styles';
|
|
113
113
|
|
|
114
114
|
export default function CommunityPage() {
|
|
115
115
|
return (
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
MessageInput,
|
|
137
137
|
useRelayaAuth,
|
|
138
138
|
useRelayaChat
|
|
139
|
-
} from '@relaya/react';
|
|
139
|
+
} from '@relaya-chat/react';
|
|
140
140
|
```
|
|
141
141
|
|
|
142
142
|
The hooks handle all state, connection management, and auth token refresh. The components accept `className` overrides for custom styling. See the [component reference](https://relaya.chat/docs/react) for the full API.
|
package/package.json
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relaya-chat/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Drop-in community chat component for React apps — real-time, moderated, WebSocket-based. Connects to the Relaya SaaS at api.relaya.chat. Embed with one line or go headless with hooks.",
|
|
6
6
|
"keywords": [
|
|
7
|
-
"chat",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"chat",
|
|
8
|
+
"real-time",
|
|
9
|
+
"realtime",
|
|
10
|
+
"community-chat",
|
|
11
|
+
"react",
|
|
12
|
+
"react-component",
|
|
13
|
+
"websocket",
|
|
14
|
+
"moderation",
|
|
15
|
+
"live",
|
|
16
|
+
"ugc",
|
|
17
|
+
"embeddable",
|
|
18
|
+
"radio",
|
|
19
|
+
"component-library"
|
|
10
20
|
],
|
|
11
21
|
"license": "MIT",
|
|
12
22
|
"repository": {
|
|
@@ -31,7 +41,11 @@
|
|
|
31
41
|
},
|
|
32
42
|
"./styles": "./dist/relaya.css"
|
|
33
43
|
},
|
|
34
|
-
"files": [
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"README.md",
|
|
47
|
+
"LICENSE"
|
|
48
|
+
],
|
|
35
49
|
"scripts": {
|
|
36
50
|
"build": "vite build",
|
|
37
51
|
"dev": "vite build --watch",
|