@lobehub/chat 1.26.3 → 1.26.4
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
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.26.4](https://github.com/lobehub/lobe-chat/compare/v1.26.3...v1.26.4)
|
6
|
+
|
7
|
+
<sup>Released on **2024-10-28**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Remove the 'resetConversation' hot key.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Remove the 'resetConversation' hot key, closes [#4526](https://github.com/lobehub/lobe-chat/issues/4526) ([653e694](https://github.com/lobehub/lobe-chat/commit/653e694))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.26.3](https://github.com/lobehub/lobe-chat/compare/v1.26.2...v1.26.3)
|
6
31
|
|
7
32
|
<sup>Released on **2024-10-28**</sup>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.26.
|
3
|
+
"version": "1.26.4",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
5
5
|
"keywords": [
|
6
6
|
"framework",
|
@@ -103,7 +103,7 @@
|
|
103
103
|
"@ant-design/icons": "^5.5.1",
|
104
104
|
"@ant-design/pro-components": "^2.7.18",
|
105
105
|
"@anthropic-ai/sdk": "^0.30.0",
|
106
|
-
"@auth/core": "^0.
|
106
|
+
"@auth/core": "^0.37.0",
|
107
107
|
"@aws-sdk/client-bedrock-runtime": "^3.675.0",
|
108
108
|
"@aws-sdk/client-s3": "^3.675.0",
|
109
109
|
"@aws-sdk/s3-request-presigner": "^3.675.0",
|
@@ -1,35 +1,19 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
3
|
import isEqual from 'fast-deep-equal';
|
4
|
-
import { useCallback } from 'react';
|
5
4
|
import { useHotkeys } from 'react-hotkeys-hook';
|
6
5
|
|
7
6
|
import { HOTKEYS } from '@/const/hotkeys';
|
8
7
|
import { useChatStore } from '@/store/chat';
|
9
8
|
import { chatSelectors } from '@/store/chat/selectors';
|
10
|
-
import { useFileStore } from '@/store/file';
|
11
9
|
import { useGlobalStore } from '@/store/global';
|
12
10
|
|
13
11
|
const HotKeys = () => {
|
14
|
-
const [regenerateMessage
|
15
|
-
s.regenerateMessage,
|
16
|
-
s.clearMessage,
|
17
|
-
]);
|
12
|
+
const [regenerateMessage] = useChatStore((s) => [s.regenerateMessage]);
|
18
13
|
const lastMessage = useChatStore(chatSelectors.latestMessage, isEqual);
|
19
14
|
|
20
|
-
const [clearImageList] = useFileStore((s) => [s.clearChatUploadFileList]);
|
21
15
|
const toggleZenMode = useGlobalStore((s) => s.toggleZenMode);
|
22
16
|
|
23
|
-
const resetConversation = useCallback(() => {
|
24
|
-
clearMessage();
|
25
|
-
clearImageList();
|
26
|
-
}, []);
|
27
|
-
|
28
|
-
useHotkeys(HOTKEYS.clear, resetConversation, {
|
29
|
-
enableOnFormTags: true,
|
30
|
-
preventDefault: true,
|
31
|
-
});
|
32
|
-
|
33
17
|
useHotkeys(HOTKEYS.zenMode, toggleZenMode, {
|
34
18
|
enableOnFormTags: true,
|
35
19
|
preventDefault: true,
|