@lobehub/chat 1.2.2 → 1.2.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/.stylelintrc.js +1 -0
- package/CHANGELOG.md +50 -0
- package/README.md +1 -1
- package/locales/ar/plugin.json +1 -1
- package/locales/ar/portal.json +7 -1
- package/locales/bg-BG/plugin.json +1 -1
- package/locales/bg-BG/portal.json +7 -1
- package/locales/de-DE/plugin.json +1 -1
- package/locales/de-DE/portal.json +7 -1
- package/locales/en-US/plugin.json +1 -1
- package/locales/en-US/portal.json +8 -2
- package/locales/es-ES/plugin.json +1 -1
- package/locales/es-ES/portal.json +7 -1
- package/locales/fr-FR/plugin.json +1 -1
- package/locales/fr-FR/portal.json +7 -1
- package/locales/it-IT/plugin.json +1 -1
- package/locales/it-IT/portal.json +7 -1
- package/locales/ja-JP/plugin.json +1 -1
- package/locales/ja-JP/portal.json +7 -1
- package/locales/ko-KR/plugin.json +1 -1
- package/locales/ko-KR/portal.json +7 -1
- package/locales/nl-NL/plugin.json +1 -1
- package/locales/nl-NL/portal.json +7 -1
- package/locales/pl-PL/plugin.json +1 -1
- package/locales/pl-PL/portal.json +7 -1
- package/locales/pt-BR/plugin.json +1 -1
- package/locales/pt-BR/portal.json +7 -1
- package/locales/ru-RU/plugin.json +1 -1
- package/locales/ru-RU/portal.json +7 -1
- package/locales/tr-TR/plugin.json +1 -1
- package/locales/tr-TR/portal.json +7 -1
- package/locales/vi-VN/plugin.json +1 -1
- package/locales/vi-VN/portal.json +7 -1
- package/locales/zh-CN/plugin.json +1 -1
- package/locales/zh-CN/portal.json +8 -2
- package/locales/zh-TW/portal.json +7 -1
- package/package.json +9 -6
- package/src/app/(main)/@nav/_layout/Mobile.tsx +2 -3
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/DragUpload.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/TextArea.tsx +2 -1
- package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolUI → ArtifactUI}/Footer.tsx +18 -7
- package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolUI → ArtifactUI}/ToolRender.tsx +4 -3
- package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolUI → ArtifactUI}/index.tsx +2 -2
- package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolList → Artifacts/ArtifactList}/Item/index.tsx +3 -3
- package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolList → Artifacts/ArtifactList}/Item/style.ts +3 -2
- package/src/app/(main)/chat/(workspace)/@portal/features/Artifacts/ArtifactList/index.tsx +61 -0
- package/src/app/(main)/chat/(workspace)/@portal/features/Artifacts/index.tsx +21 -0
- package/src/app/(main)/chat/(workspace)/@portal/features/Header.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@portal/index.tsx +12 -6
- package/src/app/(main)/chat/(workspace)/@topic/features/SystemRole/style.ts +8 -4
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/Portal.tsx +7 -7
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/TopicPanel.tsx +3 -3
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/index.tsx +2 -2
- package/src/app/(main)/chat/(workspace)/features/ShareButton/style.ts +6 -6
- package/src/app/(main)/chat/@session/_layout/Desktop/PanelBody.tsx +3 -1
- package/src/app/(main)/chat/@session/_layout/Desktop/SessionHeader.tsx +1 -1
- package/src/app/(main)/chat/@session/features/SessionListContent/ListItem/index.tsx +2 -5
- package/src/app/(main)/chat/@session/features/SkeletonList.tsx +2 -3
- package/src/app/(main)/chat/features/Migration/Start.tsx +1 -1
- package/src/app/(main)/chat/settings/features/SubmitAgentButton/style.ts +4 -3
- package/src/app/(main)/market/@detail/features/TokenTag.tsx +2 -1
- package/src/app/(main)/market/@detail/features/style.ts +4 -3
- package/src/app/(main)/market/_layout/Desktop/DetailSidebar.tsx +1 -1
- package/src/app/(main)/market/_layout/Desktop/Hero.tsx +3 -2
- package/src/app/(main)/market/features/AgentCard/AgentCardBanner.tsx +1 -1
- package/src/app/(main)/market/features/AgentCard/index.tsx +2 -2
- package/src/app/(main)/market/features/AgentList.tsx +1 -1
- package/src/app/(main)/profile/[[...slugs]]/Client.tsx +4 -3
- package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +4 -2
- package/src/app/(main)/settings/about/features/ItemCard.tsx +2 -1
- package/src/app/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +5 -1
- package/src/app/(main)/settings/llm/components/ProviderModelList/index.tsx +1 -1
- package/src/app/(main)/welcome/features/Hero.tsx +1 -1
- package/src/components/Menu/index.tsx +4 -3
- package/src/components/Notification/index.tsx +4 -4
- package/src/database/client/models/message.ts +1 -1
- package/src/features/AgentSetting/AgentPlugin/LoadingList.tsx +1 -1
- package/src/features/AgentSetting/AgentPlugin/index.tsx +1 -1
- package/src/features/Conversation/Error/APIKeyForm/ProviderAvatar.tsx +10 -0
- package/src/features/Conversation/Error/OllamaBizError/SetupGuide.tsx +3 -3
- package/src/features/Conversation/Messages/Tool/Inspector/index.tsx +4 -4
- package/src/features/Conversation/Messages/Tool/Inspector/style.ts +2 -1
- package/src/features/Conversation/Messages/Tool/index.tsx +1 -1
- package/src/features/Conversation/components/BackBottom/style.ts +6 -6
- package/src/features/Conversation/components/InboxWelcome/QuestionSuggest.tsx +4 -2
- package/src/features/Conversation/components/InboxWelcome/index.tsx +5 -7
- package/src/features/PluginsUI/Render/Loading.tsx +4 -4
- package/src/features/User/DataStatistics.tsx +2 -1
- package/src/features/User/UserPanel/index.tsx +2 -2
- package/src/locales/default/plugin.ts +1 -1
- package/src/locales/default/portal.ts +8 -2
- package/src/store/chat/slices/message/action.ts +1 -1
- package/src/store/chat/slices/plugin/action.ts +25 -1
- package/src/store/chat/slices/portal/action.test.ts +14 -14
- package/src/store/chat/slices/portal/action.ts +5 -5
- package/src/store/chat/slices/portal/initialState.ts +3 -3
- package/src/store/chat/slices/portal/selectors.test.ts +18 -18
- package/src/store/chat/slices/portal/selectors.ts +9 -9
- package/src/tools/dalle/Render/Item/index.tsx +2 -2
- package/src/app/(main)/chat/(workspace)/@portal/features/Tools/ToolList/index.tsx +0 -39
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Skeleton } from 'antd';
|
|
2
|
-
import isEqual from 'fast-deep-equal';
|
|
3
|
-
import { Flexbox } from 'react-layout-kit';
|
|
4
|
-
|
|
5
|
-
import { useChatStore } from '@/store/chat';
|
|
6
|
-
import { chatSelectors } from '@/store/chat/selectors';
|
|
7
|
-
|
|
8
|
-
import ToolItem from './Item';
|
|
9
|
-
|
|
10
|
-
const ToolList = () => {
|
|
11
|
-
const messages = useChatStore(chatSelectors.currentToolMessages, isEqual);
|
|
12
|
-
const isCurrentChatLoaded = useChatStore(chatSelectors.isCurrentChatLoaded);
|
|
13
|
-
|
|
14
|
-
return !isCurrentChatLoaded ? (
|
|
15
|
-
<Flexbox gap={12} paddingInline={12}>
|
|
16
|
-
{[1, 1, 1, 1, 1, 1].map((key, index) => (
|
|
17
|
-
<Skeleton.Button
|
|
18
|
-
active
|
|
19
|
-
block
|
|
20
|
-
key={`${key}-${index}`}
|
|
21
|
-
style={{ borderRadius: 8, height: 68 }}
|
|
22
|
-
/>
|
|
23
|
-
))}
|
|
24
|
-
</Flexbox>
|
|
25
|
-
) : (
|
|
26
|
-
<Flexbox gap={12} paddingInline={12}>
|
|
27
|
-
{messages.map((m) => (
|
|
28
|
-
<ToolItem
|
|
29
|
-
identifier={m.plugin?.identifier}
|
|
30
|
-
key={m.id}
|
|
31
|
-
messageId={m.id}
|
|
32
|
-
payload={m.plugin}
|
|
33
|
-
/>
|
|
34
|
-
))}
|
|
35
|
-
</Flexbox>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default ToolList;
|