@lobehub/chat 0.119.5 → 0.119.7
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 +50 -0
- package/package.json +1 -1
- package/src/app/chat/features/ChatHeader/ShareButton/ShareModal.tsx +2 -2
- package/src/features/ChatInput/STT/index.tsx +1 -1
- package/src/features/Conversation/components/ChatList/index.tsx +1 -1
- package/src/features/Conversation/components/VirtualizedList/index.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.119.7](https://github.com/lobehub/lobe-chat/compare/v0.119.6...v0.119.7)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-01-07**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Improve share modal style.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Improve share modal style, closes [#965](https://github.com/lobehub/lobe-chat/issues/965) ([62c0573](https://github.com/lobehub/lobe-chat/commit/62c0573))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.119.6](https://github.com/lobehub/lobe-chat/compare/v0.119.5...v0.119.6)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-01-06**</sup>
|
|
33
|
+
|
|
34
|
+
#### 💄 Styles
|
|
35
|
+
|
|
36
|
+
- **misc**: Improve conversation style.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### Styles
|
|
44
|
+
|
|
45
|
+
- **misc**: Improve conversation style, closes [#962](https://github.com/lobehub/lobe-chat/issues/962) ([b9cc862](https://github.com/lobehub/lobe-chat/commit/b9cc862))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.119.5](https://github.com/lobehub/lobe-chat/compare/v0.119.4...v0.119.5)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-01-06**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.119.
|
|
3
|
+
"version": "0.119.7",
|
|
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",
|
|
@@ -4,13 +4,13 @@ import { memo, useMemo, useState } from 'react';
|
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { Flexbox } from 'react-layout-kit';
|
|
6
6
|
|
|
7
|
-
import { useScreenshot } from '@/app/chat/features/ChatHeader/ShareButton/useScreenshot';
|
|
8
7
|
import { FORM_STYLE } from '@/const/layoutTokens';
|
|
9
8
|
import { useChatStore } from '@/store/chat';
|
|
10
9
|
import { useGlobalStore } from '@/store/global';
|
|
11
10
|
|
|
12
11
|
import Preview from './Preview';
|
|
13
12
|
import { FieldType, ImageType } from './type';
|
|
13
|
+
import { useScreenshot } from './useScreenshot';
|
|
14
14
|
|
|
15
15
|
enum Tab {
|
|
16
16
|
Screenshot = 'screenshot',
|
|
@@ -147,6 +147,7 @@ const ShareModal = memo<ModalProps>(({ onCancel, open }) => {
|
|
|
147
147
|
style={{ width: '100%' }}
|
|
148
148
|
value={tab}
|
|
149
149
|
/>
|
|
150
|
+
{tab === Tab.Screenshot && <Preview title={title} {...fieldValue} />}
|
|
150
151
|
<Form
|
|
151
152
|
initialValues={DEFAULT_FIELD_VALUE}
|
|
152
153
|
items={settings}
|
|
@@ -154,7 +155,6 @@ const ShareModal = memo<ModalProps>(({ onCancel, open }) => {
|
|
|
154
155
|
onValuesChange={(_, v) => setFieldValue(v)}
|
|
155
156
|
{...FORM_STYLE}
|
|
156
157
|
/>
|
|
157
|
-
{tab === Tab.Screenshot && <Preview title={title} {...fieldValue} />}
|
|
158
158
|
</Flexbox>
|
|
159
159
|
</Modal>
|
|
160
160
|
);
|
|
@@ -134,7 +134,7 @@ const STT = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
|
134
134
|
icon={isLoading ? MicOff : Mic}
|
|
135
135
|
onClick={handleTriggerStartStop}
|
|
136
136
|
placement={'bottom'}
|
|
137
|
-
size={mobile ? { blockSize: 36, fontSize: 16 } : {}}
|
|
137
|
+
size={mobile ? { blockSize: 36, fontSize: 16 } : { fontSize: 22 }}
|
|
138
138
|
style={{ flex: 'none' }}
|
|
139
139
|
title={desc}
|
|
140
140
|
/>
|
|
@@ -10,7 +10,7 @@ const ChatList = memo(() => {
|
|
|
10
10
|
const ids = useChatStore(chatSelectors.currentChatIDsWithGuideMessage);
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
|
-
<Flexbox height={'100%'} style={{ position: 'relative' }}>
|
|
13
|
+
<Flexbox height={'100%'} style={{ paddingTop: 24, position: 'relative' }}>
|
|
14
14
|
{ids.map((id, index) => (
|
|
15
15
|
<Item id={id} index={index} key={id} />
|
|
16
16
|
))}
|
|
@@ -14,7 +14,7 @@ const itemContent = (index: number, id: string) => {
|
|
|
14
14
|
const isMobile = isMobileScreen();
|
|
15
15
|
|
|
16
16
|
return index === 0 ? (
|
|
17
|
-
<div style={{ height: isMobile ?
|
|
17
|
+
<div style={{ height: 24 + (isMobile ? 0 : 64) }} />
|
|
18
18
|
) : (
|
|
19
19
|
<Item id={id} index={index - 1} />
|
|
20
20
|
);
|