@lobehub/chat 1.88.6 → 1.88.8

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,58 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.88.8](https://github.com/lobehub/lobe-chat/compare/v1.88.7...v1.88.8)
6
+
7
+ <sup>Released on **2025-05-26**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Allow `SliderWithInput` to have no input limit.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Allow `SliderWithInput` to have no input limit, closes [#7708](https://github.com/lobehub/lobe-chat/issues/7708) ([bdb02b2](https://github.com/lobehub/lobe-chat/commit/bdb02b2))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.88.7](https://github.com/lobehub/lobe-chat/compare/v1.88.6...v1.88.7)
31
+
32
+ <sup>Released on **2025-05-26**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **DragUpload**: Resolve issue with pasting clipboard images in Safari.
37
+ - **misc**: Fix chat header in the desktop.
38
+
39
+ <br/>
40
+
41
+ <details>
42
+ <summary><kbd>Improvements and Fixes</kbd></summary>
43
+
44
+ #### What's fixed
45
+
46
+ - **DragUpload**: Resolve issue with pasting clipboard images in Safari, closes [#7961](https://github.com/lobehub/lobe-chat/issues/7961) ([3c3cc75](https://github.com/lobehub/lobe-chat/commit/3c3cc75))
47
+ - **misc**: Fix chat header in the desktop, closes [#7973](https://github.com/lobehub/lobe-chat/issues/7973) ([63c3a71](https://github.com/lobehub/lobe-chat/commit/63c3a71))
48
+
49
+ </details>
50
+
51
+ <div align="right">
52
+
53
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
54
+
55
+ </div>
56
+
5
57
  ### [Version 1.88.6](https://github.com/lobehub/lobe-chat/compare/v1.88.5...v1.88.6)
6
58
 
7
59
  <sup>Released on **2025-05-25**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Allow SliderWithInput to have no input limit."
6
+ ]
7
+ },
8
+ "date": "2025-05-26",
9
+ "version": "1.88.8"
10
+ },
11
+ {
12
+ "children": {
13
+ "fixes": [
14
+ "Fix chat header in the desktop."
15
+ ]
16
+ },
17
+ "date": "2025-05-26",
18
+ "version": "1.88.7"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.88.6",
3
+ "version": "1.88.8",
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",
@@ -5,10 +5,21 @@ import { ChatHeader } from '@lobehub/ui/chat';
5
5
  import { useGlobalStore } from '@/store/global';
6
6
  import { systemStatusSelectors } from '@/store/global/selectors';
7
7
 
8
+ import HeaderAction from './HeaderAction';
9
+ import Main from './Main';
10
+
8
11
  const Header = () => {
9
12
  const showHeader = useGlobalStore(systemStatusSelectors.showChatHeader);
10
13
 
11
- return showHeader && <ChatHeader style={{ paddingInline: 8, position: 'initial', zIndex: 11 }} />;
14
+ return (
15
+ showHeader && (
16
+ <ChatHeader
17
+ left={<Main />}
18
+ right={<HeaderAction />}
19
+ style={{ paddingInline: 8, position: 'initial', zIndex: 11 }}
20
+ />
21
+ )
22
+ );
12
23
  };
13
24
 
14
25
  export default Header;
@@ -37,18 +37,22 @@ const getFileListFromDataTransferItems = async (items: DataTransferItem[]) => {
37
37
  const filePromises: Promise<File[]>[] = [];
38
38
  for (const item of items) {
39
39
  if (item.kind === 'file') {
40
- const entry = item.webkitGetAsEntry();
41
- if (entry) {
42
- filePromises.push(processEntry(entry));
40
+ // Safari browser may throw error when using FileSystemFileEntry.file()
41
+ // So we prioritize using getAsFile() method first for better browser compatibility
42
+ const file = item.getAsFile();
43
+
44
+ if (file) {
45
+ filePromises.push(
46
+ new Promise((resolve) => {
47
+ resolve([file]);
48
+ }),
49
+ );
43
50
  } else {
44
- const file = item.getAsFile();
45
-
46
- if (file)
47
- filePromises.push(
48
- new Promise((resolve) => {
49
- resolve([file]);
50
- }),
51
- );
51
+ const entry = item.webkitGetAsEntry();
52
+
53
+ if (entry) {
54
+ filePromises.push(processEntry(entry));
55
+ }
52
56
  }
53
57
  }
54
58
  }
@@ -67,7 +67,7 @@ const AgentChat = memo(() => {
67
67
  valuePropName: 'checked',
68
68
  },
69
69
  {
70
- children: <SliderWithInput max={8} min={0} />,
70
+ children: <SliderWithInput max={8} min={0} unlimitedInput={true} />,
71
71
  desc: t('settingChat.autoCreateTopicThreshold.desc'),
72
72
  divider: false,
73
73
  hidden: !config.enableAutoCreateTopic,
@@ -83,7 +83,7 @@ const AgentChat = memo(() => {
83
83
  valuePropName: 'checked',
84
84
  },
85
85
  {
86
- children: <SliderWithInput max={20} min={0} />,
86
+ children: <SliderWithInput max={20} min={0} unlimitedInput={true} />,
87
87
  desc: t('settingChat.historyCount.desc'),
88
88
  divider: false,
89
89
  hidden: !config.enableHistoryCount,
@@ -66,7 +66,7 @@ const AgentModal = memo(() => {
66
66
  valuePropName: 'checked',
67
67
  },
68
68
  {
69
- children: <SliderWithInput max={32_000} min={0} step={100} />,
69
+ children: <SliderWithInput max={32_000} min={0} step={100} unlimitedInput={true} />,
70
70
  desc: t('settingModel.maxTokens.desc'),
71
71
  divider: false,
72
72
  hidden: !config.chatConfig.enableMaxTokens,
@@ -45,6 +45,7 @@ const Controls = memo<ControlsProps>(({ updating, setUpdating }) => {
45
45
  maxWidth: 64,
46
46
  },
47
47
  }}
48
+ unlimitedInput={true}
48
49
  />
49
50
  ),
50
51
  name: 'historyCount',