@connectycube/chat-widget 0.38.7 → 0.39.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 +1 -17
- package/dist/index.umd.js +46 -46
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Add the following scripts on your html page somewhere in `head` element:
|
|
|
48
48
|
```html
|
|
49
49
|
<script src="https://unpkg.com/react@18/umd/react.production.min.js" crossorigin></script>
|
|
50
50
|
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js" crossorigin></script>
|
|
51
|
-
<script src="https://unpkg.com/connectycube@
|
|
51
|
+
<script src="https://unpkg.com/connectycube@latest/dist/connectycube.min.js"></script>
|
|
52
52
|
<script src="https://unpkg.com/@connectycube/chat-widget@latest/dist/index.umd.js"></script>
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -88,22 +88,6 @@ import ConnectyCubeChatWidget from "@connectycube/chat-widget";
|
|
|
88
88
|
|
|
89
89
|
See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-widget-samples/tree/main/react-ts> as a reference for faster integration.
|
|
90
90
|
|
|
91
|
-
##### React version support
|
|
92
|
-
|
|
93
|
-
Since v0.35.0, the default build of the widget targets React 19 and is provided as an ESM module.
|
|
94
|
-
For React 18 projects, use the dedicated ESM-only build:
|
|
95
|
-
|
|
96
|
-
```js
|
|
97
|
-
// v0.35.0 and later:
|
|
98
|
-
import ConnectyCubeChatWidget from '@connectycube/chat-widget'; // default: React 19
|
|
99
|
-
import ConnectyCubeChatWidget from '@connectycube/chat-widget/react19'; // explicit React 19 build
|
|
100
|
-
import ConnectyCubeChatWidget from '@connectycube/chat-widget/react18'; // dedicated React 18 build
|
|
101
|
-
|
|
102
|
-
// v0.34.0 and earlier:
|
|
103
|
-
import ConnectyCubeChatWidget from '@connectycube/chat-widget'; // default: React 18
|
|
104
|
-
import ConnectyCubeChatWidget from '@connectycube/chat-widget/react19'; // React 19 build
|
|
105
|
-
```
|
|
106
|
-
|
|
107
91
|
#### Vanilla JS
|
|
108
92
|
|
|
109
93
|
Place the following script in your app:
|