@lobehub/chat 0.96.8 → 0.97.0
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/.github/workflows/release.yml +3 -0
- package/CHANGELOG.md +58 -0
- package/CODE_OF_CONDUCT.md +21 -21
- package/CONTRIBUTING.md +1 -1
- package/README.md +26 -9
- package/README.zh-CN.md +29 -12
- package/docs/Deploy-with-Azure-OpenAI.md +6 -6
- package/docs/Home.md +14 -2
- package/docs/Lighthouse.md +8 -8
- package/docs/Plugin-Development.md +3 -3
- package/docs/Plugin-Development.zh-CN.md +3 -3
- package/docs/Usage-Agents.md +195 -0
- package/docs/Usage-Agents.zh-CN.md +196 -0
- package/docs/Usage-Topics.md +31 -0
- package/docs/Usage-Topics.zh-CN.md +31 -0
- package/docs/_Sidebar.md +10 -2
- package/locales/en_US/chat.json +9 -2
- package/locales/ja_JP/chat.json +8 -1
- package/locales/ko_KR/chat.json +8 -1
- package/locales/ru_RU/chat.json +8 -1
- package/locales/zh_CN/chat.json +6 -1
- package/locales/zh_TW/chat.json +8 -1
- package/next.config.mjs +9 -1
- package/package.json +6 -7
- package/scripts/readmeWorkflow/const.ts +19 -0
- package/scripts/readmeWorkflow/index.ts +12 -0
- package/scripts/readmeWorkflow/syncAgentIndex.ts +47 -0
- package/scripts/readmeWorkflow/syncPluginIndex.ts +43 -0
- package/scripts/readmeWorkflow/utlis.ts +52 -0
- package/src/app/chat/(desktop)/features/ChatHeader.tsx +11 -1
- package/src/app/chat/{features/ChatInputContent/Footer/index.tsx → (desktop)/features/ChatInput/Footer.tsx} +1 -1
- package/src/app/chat/(desktop)/features/{ChatInput.tsx → ChatInput/index.tsx} +3 -2
- package/src/app/chat/(desktop)/features/SessionList.tsx +1 -1
- package/src/app/chat/(desktop)/features/SideBar.tsx +1 -1
- package/src/app/chat/(mobile)/features/ChatHeader.tsx +2 -6
- package/src/app/chat/(mobile)/features/TopicList.tsx +1 -1
- package/src/app/chat/features/ChatInputContent/ActionBar/ActionRight.tsx +1 -1
- package/src/app/chat/features/ChatInputContent/{Footer/SaveTopic.tsx → Topic/index.tsx} +13 -11
- package/src/app/chat/features/ChatInputContent/index.tsx +4 -4
- package/src/app/chat/features/Conversation/ChatList/Actions/Error.tsx +1 -7
- package/src/app/chat/features/Conversation/ChatList/Actions/User.tsx +0 -1
- package/src/app/chat/features/Conversation/ChatList/Actions/index.ts +48 -0
- package/src/app/chat/features/Conversation/ChatList/Messages/index.ts +27 -0
- package/src/app/chat/features/Conversation/ChatList/index.tsx +7 -29
- package/src/app/chat/features/{TopicListContent/SystemRole/Header.tsx → SidebarHeader/index.tsx} +9 -8
- package/src/app/chat/features/{TopicListContent/SystemRole → SystemRole}/index.tsx +45 -16
- package/src/app/chat/features/TopicListContent/Header.tsx +86 -0
- package/src/app/chat/features/TopicListContent/Topic/SkeletonList.tsx +1 -1
- package/src/app/chat/features/TopicListContent/TopicSearchBar/index.tsx +8 -3
- package/src/app/chat/features/TopicListContent/index.tsx +18 -7
- package/src/app/settings/features/SideBar/index.tsx +1 -1
- package/src/features/AgentInfo/index.tsx +3 -1
- package/src/features/AgentSetting/AgentMeta/index.tsx +5 -1
- package/src/features/PluginDevModal/MetaForm.tsx +4 -3
- package/src/layout/GlobalLayout/Locale.tsx +12 -2
- package/src/locales/default/chat.ts +6 -1
- package/src/store/global/initialState.ts +2 -0
- package/src/store/global/slices/common.ts +7 -0
- package/src/store/session/slices/chat/actions/message.ts +4 -1
- package/src/store/session/slices/chat/actions/topic.ts +46 -5
- package/src/store/session/slices/chat/selectors/index.ts +2 -1
- package/src/store/session/slices/chat/selectors/topic.ts +4 -0
- package/src/components/EmojiPicker/index.tsx +0 -56
- package/src/components/EmojiPicker/style.ts +0 -30
- /package/src/app/chat/features/{TopicListContent/SystemRole → SystemRole}/style.ts +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createStyles } from 'antd-style';
|
|
2
|
-
import chroma from 'chroma-js';
|
|
3
|
-
|
|
4
|
-
export const useStyles = createStyles(({ css, token, prefixCls }) => ({
|
|
5
|
-
avatar: css`
|
|
6
|
-
border-radius: 50%;
|
|
7
|
-
transition:
|
|
8
|
-
scale 400ms ${token.motionEaseOut},
|
|
9
|
-
box-shadow 100ms ${token.motionEaseOut};
|
|
10
|
-
|
|
11
|
-
&:hover {
|
|
12
|
-
box-shadow: 0 0 0 3px ${token.colorText};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&:active {
|
|
16
|
-
scale: 0.8;
|
|
17
|
-
}
|
|
18
|
-
`,
|
|
19
|
-
picker: css`
|
|
20
|
-
em-emoji-picker {
|
|
21
|
-
--rgb-accent: ${chroma(token.colorPrimary) .rgb() .join(',')};
|
|
22
|
-
--shadow: none;
|
|
23
|
-
}
|
|
24
|
-
`,
|
|
25
|
-
popover: css`
|
|
26
|
-
.${prefixCls}-popover-inner {
|
|
27
|
-
padding: 0;
|
|
28
|
-
}
|
|
29
|
-
`,
|
|
30
|
-
}));
|
|
File without changes
|