@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.
Files changed (101) hide show
  1. package/.stylelintrc.js +1 -0
  2. package/CHANGELOG.md +50 -0
  3. package/README.md +1 -1
  4. package/locales/ar/plugin.json +1 -1
  5. package/locales/ar/portal.json +7 -1
  6. package/locales/bg-BG/plugin.json +1 -1
  7. package/locales/bg-BG/portal.json +7 -1
  8. package/locales/de-DE/plugin.json +1 -1
  9. package/locales/de-DE/portal.json +7 -1
  10. package/locales/en-US/plugin.json +1 -1
  11. package/locales/en-US/portal.json +8 -2
  12. package/locales/es-ES/plugin.json +1 -1
  13. package/locales/es-ES/portal.json +7 -1
  14. package/locales/fr-FR/plugin.json +1 -1
  15. package/locales/fr-FR/portal.json +7 -1
  16. package/locales/it-IT/plugin.json +1 -1
  17. package/locales/it-IT/portal.json +7 -1
  18. package/locales/ja-JP/plugin.json +1 -1
  19. package/locales/ja-JP/portal.json +7 -1
  20. package/locales/ko-KR/plugin.json +1 -1
  21. package/locales/ko-KR/portal.json +7 -1
  22. package/locales/nl-NL/plugin.json +1 -1
  23. package/locales/nl-NL/portal.json +7 -1
  24. package/locales/pl-PL/plugin.json +1 -1
  25. package/locales/pl-PL/portal.json +7 -1
  26. package/locales/pt-BR/plugin.json +1 -1
  27. package/locales/pt-BR/portal.json +7 -1
  28. package/locales/ru-RU/plugin.json +1 -1
  29. package/locales/ru-RU/portal.json +7 -1
  30. package/locales/tr-TR/plugin.json +1 -1
  31. package/locales/tr-TR/portal.json +7 -1
  32. package/locales/vi-VN/plugin.json +1 -1
  33. package/locales/vi-VN/portal.json +7 -1
  34. package/locales/zh-CN/plugin.json +1 -1
  35. package/locales/zh-CN/portal.json +8 -2
  36. package/locales/zh-TW/portal.json +7 -1
  37. package/package.json +9 -6
  38. package/src/app/(main)/@nav/_layout/Mobile.tsx +2 -3
  39. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/DragUpload.tsx +1 -1
  40. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/TextArea.tsx +2 -1
  41. package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolUI → ArtifactUI}/Footer.tsx +18 -7
  42. package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolUI → ArtifactUI}/ToolRender.tsx +4 -3
  43. package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolUI → ArtifactUI}/index.tsx +2 -2
  44. package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolList → Artifacts/ArtifactList}/Item/index.tsx +3 -3
  45. package/src/app/(main)/chat/(workspace)/@portal/features/{Tools/ToolList → Artifacts/ArtifactList}/Item/style.ts +3 -2
  46. package/src/app/(main)/chat/(workspace)/@portal/features/Artifacts/ArtifactList/index.tsx +61 -0
  47. package/src/app/(main)/chat/(workspace)/@portal/features/Artifacts/index.tsx +21 -0
  48. package/src/app/(main)/chat/(workspace)/@portal/features/Header.tsx +1 -1
  49. package/src/app/(main)/chat/(workspace)/@portal/index.tsx +12 -6
  50. package/src/app/(main)/chat/(workspace)/@topic/features/SystemRole/style.ts +8 -4
  51. package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem.tsx +1 -1
  52. package/src/app/(main)/chat/(workspace)/_layout/Desktop/Portal.tsx +7 -7
  53. package/src/app/(main)/chat/(workspace)/_layout/Desktop/TopicPanel.tsx +3 -3
  54. package/src/app/(main)/chat/(workspace)/_layout/Desktop/index.tsx +2 -2
  55. package/src/app/(main)/chat/(workspace)/features/ShareButton/style.ts +6 -6
  56. package/src/app/(main)/chat/@session/_layout/Desktop/PanelBody.tsx +3 -1
  57. package/src/app/(main)/chat/@session/_layout/Desktop/SessionHeader.tsx +1 -1
  58. package/src/app/(main)/chat/@session/features/SessionListContent/ListItem/index.tsx +2 -5
  59. package/src/app/(main)/chat/@session/features/SkeletonList.tsx +2 -3
  60. package/src/app/(main)/chat/features/Migration/Start.tsx +1 -1
  61. package/src/app/(main)/chat/settings/features/SubmitAgentButton/style.ts +4 -3
  62. package/src/app/(main)/market/@detail/features/TokenTag.tsx +2 -1
  63. package/src/app/(main)/market/@detail/features/style.ts +4 -3
  64. package/src/app/(main)/market/_layout/Desktop/DetailSidebar.tsx +1 -1
  65. package/src/app/(main)/market/_layout/Desktop/Hero.tsx +3 -2
  66. package/src/app/(main)/market/features/AgentCard/AgentCardBanner.tsx +1 -1
  67. package/src/app/(main)/market/features/AgentCard/index.tsx +2 -2
  68. package/src/app/(main)/market/features/AgentList.tsx +1 -1
  69. package/src/app/(main)/profile/[[...slugs]]/Client.tsx +4 -3
  70. package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +4 -2
  71. package/src/app/(main)/settings/about/features/ItemCard.tsx +2 -1
  72. package/src/app/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +5 -1
  73. package/src/app/(main)/settings/llm/components/ProviderModelList/index.tsx +1 -1
  74. package/src/app/(main)/welcome/features/Hero.tsx +1 -1
  75. package/src/components/Menu/index.tsx +4 -3
  76. package/src/components/Notification/index.tsx +4 -4
  77. package/src/database/client/models/message.ts +1 -1
  78. package/src/features/AgentSetting/AgentPlugin/LoadingList.tsx +1 -1
  79. package/src/features/AgentSetting/AgentPlugin/index.tsx +1 -1
  80. package/src/features/Conversation/Error/APIKeyForm/ProviderAvatar.tsx +10 -0
  81. package/src/features/Conversation/Error/OllamaBizError/SetupGuide.tsx +3 -3
  82. package/src/features/Conversation/Messages/Tool/Inspector/index.tsx +4 -4
  83. package/src/features/Conversation/Messages/Tool/Inspector/style.ts +2 -1
  84. package/src/features/Conversation/Messages/Tool/index.tsx +1 -1
  85. package/src/features/Conversation/components/BackBottom/style.ts +6 -6
  86. package/src/features/Conversation/components/InboxWelcome/QuestionSuggest.tsx +4 -2
  87. package/src/features/Conversation/components/InboxWelcome/index.tsx +5 -7
  88. package/src/features/PluginsUI/Render/Loading.tsx +4 -4
  89. package/src/features/User/DataStatistics.tsx +2 -1
  90. package/src/features/User/UserPanel/index.tsx +2 -2
  91. package/src/locales/default/plugin.ts +1 -1
  92. package/src/locales/default/portal.ts +8 -2
  93. package/src/store/chat/slices/message/action.ts +1 -1
  94. package/src/store/chat/slices/plugin/action.ts +25 -1
  95. package/src/store/chat/slices/portal/action.test.ts +14 -14
  96. package/src/store/chat/slices/portal/action.ts +5 -5
  97. package/src/store/chat/slices/portal/initialState.ts +3 -3
  98. package/src/store/chat/slices/portal/selectors.test.ts +18 -18
  99. package/src/store/chat/slices/portal/selectors.ts +9 -9
  100. package/src/tools/dalle/Render/Item/index.tsx +2 -2
  101. 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;