@connectycube/chat-widget 0.31.0 → 0.32.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/CHANGELOG.md +14 -0
- package/README.md +24 -13
- package/dist/index.es.js +6567 -6625
- package/dist/index.umd.js +46 -46
- package/dist/react19/index.es.js +6216 -6274
- package/dist/react19/types/helpers/widget.d.ts +1 -0
- package/dist/react19/types/locales/en/translation.json.d.ts +1 -1
- package/dist/types/helpers/widget.d.ts +1 -0
- package/dist/types/locales/en/translation.json.d.ts +1 -1
- package/package.json +21 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.32.0
|
|
4
|
+
|
|
5
|
+
### Misc
|
|
6
|
+
|
|
7
|
+
- SSR (Server-Side Rendering) support
|
|
8
|
+
- implemented `localStorage` and `document` guards
|
|
9
|
+
- updated authentication logic
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- removed unnecessary text from `README.md`
|
|
14
|
+
- word "Messed" changed to "Missed" in `en/translation.json` file
|
|
15
|
+
- resets specific store data to prevent displaying the useless toast about a missed call
|
|
16
|
+
|
|
3
17
|
## 0.31.0
|
|
4
18
|
|
|
5
19
|
### Misc
|
package/README.md
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
WebRTCPeerConnection.ts:134 [VideoChat]: onSignalingStateHandler: have-remote-offer
|
|
2
|
-
helpers.ts:7 [useCalls][onRemoteStream][Log]: {session: e, userID: 13308918, stream: MediaStream}
|
|
3
|
-
WebRTCPeerConnection.ts:134 [VideoChat]: setRemoteSessionDescription - success
|
|
4
|
-
WebRTCPeerConnection.ts:134 [VideoChat]: onSignalingStateHandler: stable
|
|
5
|
-
WebRTCPeerConnection.ts:134 [VideoChat]: Set maxBandwidth success [13308918]: 0 kbps
|
|
6
|
-
WebRTCPeerConnection.ts:134 [VideoChat]: getAndSetLocalSessionDescription - success
|
|
7
|
-
|
|
8
1
|
# ConnectyCube Chat Widget
|
|
9
2
|
|
|
10
3
|
A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—without the overhead of building a complete chat system from scratch.
|
|
@@ -39,13 +32,11 @@ Single-view chat widget:
|
|
|
39
32
|
|
|
40
33
|
### React
|
|
41
34
|
|
|
42
|
-
```
|
|
35
|
+
```bash
|
|
36
|
+
# npm
|
|
43
37
|
npm install @connectycube/chat-widget
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
or
|
|
47
38
|
|
|
48
|
-
|
|
39
|
+
# yarn
|
|
49
40
|
yarn add @connectycube/chat-widget
|
|
50
41
|
```
|
|
51
42
|
|
|
@@ -53,7 +44,7 @@ yarn add @connectycube/chat-widget
|
|
|
53
44
|
|
|
54
45
|
Add the following scripts on your html page somewhere in `head` element:
|
|
55
46
|
|
|
56
|
-
```
|
|
47
|
+
```html
|
|
57
48
|
<script src="https://unpkg.com/react@18/umd/react.production.min.js" crossorigin></script>
|
|
58
49
|
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js" crossorigin></script>
|
|
59
50
|
<script src="https://unpkg.com/connectycube@4/dist/connectycube.min.js"></script>
|
|
@@ -163,6 +154,26 @@ See all available props <https://developers.connectycube.com/js/chat-widget/#pro
|
|
|
163
154
|
|
|
164
155
|
See all available recipes <https://developers.connectycube.com/js/chat-widget/#recipes>
|
|
165
156
|
|
|
157
|
+
## SSR (Server-Side Rendering) Guide
|
|
158
|
+
|
|
159
|
+
When using `@connectycube/chat-widget` in SSR environments (e.g., Next.js, Remix), some native Node.js modules like events may cause errors due to differences between Node and browser environments. Here are recommendations to ensure smooth SSR integration:
|
|
160
|
+
|
|
161
|
+
### Usage
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
# npm
|
|
165
|
+
npm install @connectycube/chat-widget
|
|
166
|
+
npx connectycube patch-ssr # Apply SSR patches
|
|
167
|
+
# npx connectycube revert-ssr # Revert SSR patches
|
|
168
|
+
|
|
169
|
+
# yarn
|
|
170
|
+
yarn add @connectycube/chat-widget
|
|
171
|
+
yarn connectycube patch-ssr # Apply SSR patches
|
|
172
|
+
# yarn connectycube revert-ssr # Revert SSR patches
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
The `connectycube` CLI will be available as part of the `connectycube` package, which is installed automatically as a dependency of `@connectycube/chat-widget`. This script applies fixes to make the SDK compatible with SSR environments.
|
|
176
|
+
|
|
166
177
|
## Have an issue?
|
|
167
178
|
|
|
168
179
|
Join our [Discord](https://discord.com/invite/zqbBWNCCFJ) for quick answers to your questions
|