@connectycube/chat-widget 0.34.0 → 0.35.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 CHANGED
@@ -1,3 +1,15 @@
1
+ <a name="0.35.0"></a>
2
+
3
+ ## 0.35.0
4
+
5
+ ### Bug Fixes
6
+
7
+ - “Unknown“ user name and login issue on first open
8
+
9
+ ### Chores
10
+
11
+ - imports build of the Chat Widget for react@19 as default for ESM. Use `import ChatWidget from "@connectycube/chat-widget/react18"` to import the build for react@18
12
+
1
13
  <a name="0.34.0"></a>
2
14
 
3
15
  ## 0.34.0
@@ -12,8 +24,8 @@
12
24
  - implemented auto-grow text input for typing message
13
25
  - ability to change tone of message for typed text via AI
14
26
  - AI text summarization in chat
15
- - new prop `ai` to configure AI options. `ai: { textSummarization: boolean }`
16
- - supported new variable `GOOGLE_GENERATIVE_AI_API_KEY` in `.env` to set `apiKey` for "gemini-2.5-flash" model
27
+ - new prop `ai` to configure AI options. `ai: { apiKey: string; textSummarization?: boolean; changeMessageTone?: boolean; }`
28
+ - supported new variable `CHAT_WIDGET_CONNECTYCUBE_GOOGLE_GENERATIVE_AI_API_KEY` in `.env` to set `ai.apiKey` for "gemini-2.5-flash" model
17
29
 
18
30
  <a name="0.33.0"></a>
19
31
 
package/README.md CHANGED
@@ -87,12 +87,20 @@ import ConnectyCubeChatWidget from "@connectycube/chat-widget";
87
87
 
88
88
  See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-widget-samples> as a reference for faster integration.
89
89
 
90
- #### React 19
90
+ #### React version support
91
91
 
92
- By default, the widget uses the React 18-compatible build. To use it with React 19, import the dedicated ESM-only build instead:
92
+ Since v0.35.0, the default build of the widget targets React 19 and is provided as an ESM module.
93
+ For React 18 projects, use the dedicated ESM-only build:
93
94
 
94
95
  ```js
95
- import ConnectyCubeChatWidget from '@connectycube/chat-widget/react19';
96
+ // v0.35.0 and later:
97
+ import ConnectyCubeChatWidget from '@connectycube/chat-widget'; // default: React 19
98
+ import ConnectyCubeChatWidget from '@connectycube/chat-widget/react19'; // explicit React 19 build
99
+ import ConnectyCubeChatWidget from '@connectycube/chat-widget/react18'; // dedicated React 18 build
100
+
101
+ // v0.34.0 and earlier:
102
+ import ConnectyCubeChatWidget from '@connectycube/chat-widget'; // default: React 18
103
+ import ConnectyCubeChatWidget from '@connectycube/chat-widget/react19'; // React 19 build
96
104
  ```
97
105
 
98
106
  #### Vanilla JS