@lobehub/chat 1.99.1 → 1.99.2
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 +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +2 -2
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/components/MultiImagesUpload/index.tsx +9 -4
- package/src/app/[variants]/(main)/image/@menu/features/ConfigPanel/index.tsx +1 -1
- package/src/app/[variants]/(main)/image/features/ImageWorkspace/EmptyState.tsx +12 -26
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.99.2](https://github.com/lobehub/lobe-chat/compare/v1.99.1...v1.99.2)
|
6
|
+
|
7
|
+
<sup>Released on **2025-07-15**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Some ai image generation feedback issues.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Some ai image generation feedback issues, closes [#8440](https://github.com/lobehub/lobe-chat/issues/8440) ([bc41329](https://github.com/lobehub/lobe-chat/commit/bc41329))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.99.1](https://github.com/lobehub/lobe-chat/compare/v1.99.0...v1.99.1)
|
6
31
|
|
7
32
|
<sup>Released on **2025-07-15**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.99.
|
3
|
+
"version": "1.99.2",
|
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",
|
@@ -210,7 +210,7 @@
|
|
210
210
|
"mdast-util-to-markdown": "^2.1.2",
|
211
211
|
"modern-screenshot": "^4.6.0",
|
212
212
|
"nanoid": "^5.1.5",
|
213
|
-
"next": "
|
213
|
+
"next": "~15.3.3",
|
214
214
|
"next-auth": "5.0.0-beta.25",
|
215
215
|
"next-mdx-remote": "^5.0.0",
|
216
216
|
"nextjs-toploader": "^3.8.16",
|
@@ -3,6 +3,7 @@
|
|
3
3
|
// Removed Image import - using img tags instead
|
4
4
|
import { createStyles, useTheme } from 'antd-style';
|
5
5
|
import { Image as ImageIcon, X } from 'lucide-react';
|
6
|
+
import Image from 'next/image';
|
6
7
|
import React, { type FC, memo, useEffect, useRef, useState } from 'react';
|
7
8
|
import { useTranslation } from 'react-i18next';
|
8
9
|
import { Center } from 'react-layout-kit';
|
@@ -429,10 +430,12 @@ const ImageThumbnails: FC<ImageThumbnailsProps> = memo(({ images, onClick, onDel
|
|
429
430
|
|
430
431
|
return (
|
431
432
|
<div className={styles.imageItem} key={imageUrl}>
|
432
|
-
<
|
433
|
+
<Image
|
433
434
|
alt={`Uploaded image ${index + 1}`}
|
435
|
+
fill
|
434
436
|
src={imageUrl}
|
435
|
-
style={{
|
437
|
+
style={{ objectFit: 'cover' }}
|
438
|
+
unoptimized
|
436
439
|
/>
|
437
440
|
{!showOverlay && (
|
438
441
|
<div
|
@@ -478,10 +481,12 @@ const SingleImageDisplay: FC<SingleImageDisplayProps> = memo(({ imageUrl, onClic
|
|
478
481
|
|
479
482
|
return (
|
480
483
|
<div className={styles.singleImageDisplay}>
|
481
|
-
<
|
484
|
+
<Image
|
482
485
|
alt="Uploaded image"
|
486
|
+
fill
|
483
487
|
src={imageUrl}
|
484
|
-
style={{
|
488
|
+
style={{ objectFit: 'contain' }}
|
489
|
+
unoptimized
|
485
490
|
/>
|
486
491
|
|
487
492
|
{/* Delete button */}
|
@@ -26,7 +26,7 @@ interface ConfigItemLayoutProps {
|
|
26
26
|
const ConfigItemLayout = memo<ConfigItemLayoutProps>(({ label, children }) => {
|
27
27
|
return (
|
28
28
|
<Flexbox gap={8}>
|
29
|
-
{label && <Text weight={500}>{label
|
29
|
+
{label && <Text weight={500}>{label}</Text>}
|
30
30
|
{children}
|
31
31
|
</Flexbox>
|
32
32
|
);
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { AuroraBackground } from '@lobehub/ui/awesome';
|
2
1
|
import { memo } from 'react';
|
3
2
|
import { Center, Flexbox } from 'react-layout-kit';
|
4
3
|
|
@@ -6,31 +5,18 @@ import PromptInput from '../PromptInput';
|
|
6
5
|
|
7
6
|
const EmptyState = memo(() => {
|
8
7
|
return (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<Flexbox
|
22
|
-
flex={1}
|
23
|
-
height="100%"
|
24
|
-
style={{
|
25
|
-
overflow: 'hidden',
|
26
|
-
zIndex: 1,
|
27
|
-
}}
|
28
|
-
>
|
29
|
-
<Center flex={1} padding={24}>
|
30
|
-
<PromptInput showTitle={true} />
|
31
|
-
</Center>
|
32
|
-
</Flexbox>
|
33
|
-
</>
|
8
|
+
<Flexbox
|
9
|
+
flex={1}
|
10
|
+
height="100%"
|
11
|
+
style={{
|
12
|
+
overflow: 'hidden',
|
13
|
+
zIndex: 1,
|
14
|
+
}}
|
15
|
+
>
|
16
|
+
<Center flex={1} padding={24}>
|
17
|
+
<PromptInput showTitle={true} />
|
18
|
+
</Center>
|
19
|
+
</Flexbox>
|
34
20
|
);
|
35
21
|
});
|
36
22
|
|