@lobehub/chat 1.136.4 → 1.136.5
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.136.5](https://github.com/lobehub/lobe-chat/compare/v1.136.4...v1.136.5)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-10-11**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **plugin-store**: Fix search functionality for old plugin store.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **plugin-store**: Fix search functionality for old plugin store, closes [#9651](https://github.com/lobehub/lobe-chat/issues/9651) [#9645](https://github.com/lobehub/lobe-chat/issues/9645) ([522fc09](https://github.com/lobehub/lobe-chat/commit/522fc09))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.136.4](https://github.com/lobehub/lobe-chat/compare/v1.136.3...v1.136.4)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-10-10**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.136.
|
|
3
|
+
"version": "1.136.5",
|
|
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",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon } from '@lobehub/ui';
|
|
2
2
|
import { Empty } from 'antd';
|
|
3
3
|
import { ServerCrash } from 'lucide-react';
|
|
4
|
-
import { memo } from 'react';
|
|
4
|
+
import { memo, useEffect } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { Center, Flexbox } from 'react-layout-kit';
|
|
7
7
|
import { Virtuoso } from 'react-virtuoso';
|
|
@@ -25,6 +25,7 @@ export const List = memo(() => {
|
|
|
25
25
|
searchLoading,
|
|
26
26
|
useFetchPluginList,
|
|
27
27
|
loadMorePlugins,
|
|
28
|
+
resetPluginList,
|
|
28
29
|
] = useToolStore((s) => [
|
|
29
30
|
s.isPluginListInit,
|
|
30
31
|
s.activePluginIdentifier,
|
|
@@ -35,8 +36,14 @@ export const List = memo(() => {
|
|
|
35
36
|
s.pluginSearchLoading,
|
|
36
37
|
s.useFetchPluginList,
|
|
37
38
|
s.loadMorePlugins,
|
|
39
|
+
s.resetPluginList,
|
|
38
40
|
]);
|
|
39
41
|
|
|
42
|
+
// 当 keywords 变化时重置列表
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
resetPluginList(keywords);
|
|
45
|
+
}, [keywords, resetPluginList]);
|
|
46
|
+
|
|
40
47
|
const { isLoading, error } = useFetchPluginList({
|
|
41
48
|
page: currentPage,
|
|
42
49
|
pageSize: 20,
|
|
@@ -4,10 +4,18 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { Flexbox } from 'react-layout-kit';
|
|
5
5
|
|
|
6
6
|
import { useToolStore } from '@/store/tool';
|
|
7
|
+
import { PluginStoreTabs } from '@/store/tool/slices/oldStore';
|
|
7
8
|
|
|
8
9
|
export const Search = memo(() => {
|
|
9
10
|
const { t } = useTranslation('plugin');
|
|
10
|
-
const [
|
|
11
|
+
const [listType, mcpKeywords, pluginKeywords] = useToolStore((s) => [
|
|
12
|
+
s.listType,
|
|
13
|
+
s.mcpSearchKeywords,
|
|
14
|
+
s.pluginSearchKeywords,
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
// 根据当前选项卡决定使用哪个关键词
|
|
18
|
+
const keywords = listType === PluginStoreTabs.MCP ? mcpKeywords : pluginKeywords;
|
|
11
19
|
|
|
12
20
|
return (
|
|
13
21
|
<Flexbox align={'center'} gap={8} horizontal justify={'space-between'}>
|
|
@@ -16,7 +24,11 @@ export const Search = memo(() => {
|
|
|
16
24
|
allowClear
|
|
17
25
|
defaultValue={keywords}
|
|
18
26
|
onSearch={(keywords: string) => {
|
|
19
|
-
|
|
27
|
+
if (listType === PluginStoreTabs.MCP) {
|
|
28
|
+
useToolStore.setState({ mcpSearchKeywords: keywords, searchLoading: true });
|
|
29
|
+
} else if (listType === PluginStoreTabs.Plugin) {
|
|
30
|
+
useToolStore.setState({ pluginSearchKeywords: keywords, pluginSearchLoading: true });
|
|
31
|
+
}
|
|
20
32
|
}}
|
|
21
33
|
placeholder={t('store.placeholder')}
|
|
22
34
|
variant={'borderless'}
|