@connectycube/chat-widget 0.35.0 → 0.36.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 +6 -5
- package/dist/index.es.js +1194 -1196
- package/dist/index.umd.js +73 -79
- package/dist/react18.es.js +211 -211
- package/dist/types/App.d.ts +2 -2
- package/dist/types/index.d.ts +2 -1
- package/package.json +5 -11
- package/CHANGELOG.md +0 -172
package/README.md
CHANGED
|
@@ -14,7 +14,8 @@ The ConnectyCube Web Chat Widget for React is designed to simplify the process o
|
|
|
14
14
|
|
|
15
15
|
## Demo
|
|
16
16
|
|
|
17
|
-
<https://connectycube-chat-widget.onrender.com>
|
|
17
|
+
- React: <https://connectycube-chat-widget.onrender.com>
|
|
18
|
+
- Vanilla JS: <https://connectycube-chat-widget-vanilla.onrender.com>
|
|
18
19
|
|
|
19
20
|
Split-view chat widget:
|
|
20
21
|
|
|
@@ -85,9 +86,9 @@ import ConnectyCubeChatWidget from "@connectycube/chat-widget";
|
|
|
85
86
|
// userId - a User Id from your system
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-widget-samples> as a reference for faster integration.
|
|
89
|
+
See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-widget-samples/tree/main/react-ts> as a reference for faster integration.
|
|
89
90
|
|
|
90
|
-
|
|
91
|
+
##### React version support
|
|
91
92
|
|
|
92
93
|
Since v0.35.0, the default build of the widget targets React 19 and is provided as an ESM module.
|
|
93
94
|
For React 18 projects, use the dedicated ESM-only build:
|
|
@@ -108,7 +109,7 @@ import ConnectyCubeChatWidget from '@connectycube/chat-widget/react19'; // React
|
|
|
108
109
|
Place the following script in your app:
|
|
109
110
|
|
|
110
111
|
```html
|
|
111
|
-
<!
|
|
112
|
+
<!DOCTYPE html>
|
|
112
113
|
<html lang="en">
|
|
113
114
|
<head>
|
|
114
115
|
<!-- ... -->
|
|
@@ -152,7 +153,7 @@ Place the following script in your app:
|
|
|
152
153
|
</html>
|
|
153
154
|
```
|
|
154
155
|
|
|
155
|
-
See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-widget-samples> as a reference for faster integration.
|
|
156
|
+
See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-widget-samples/tree/main/vanilla> as a reference for faster integration.
|
|
156
157
|
|
|
157
158
|
## Props
|
|
158
159
|
|