@lobehub/chat 1.22.17 → 1.22.18
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 +17 -0
- package/package.json +3 -2
- package/src/layout/GlobalProvider/AppTheme.tsx +26 -23
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,23 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.22.18](https://github.com/lobehub/lobe-chat/compare/v1.22.17...v1.22.18)
|
6
|
+
|
7
|
+
<sup>Released on **2024-10-22**</sup>
|
8
|
+
|
9
|
+
<br/>
|
10
|
+
|
11
|
+
<details>
|
12
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
13
|
+
|
14
|
+
</details>
|
15
|
+
|
16
|
+
<div align="right">
|
17
|
+
|
18
|
+
[](#readme-top)
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
5
22
|
### [Version 1.22.17](https://github.com/lobehub/lobe-chat/compare/v1.22.16...v1.22.17)
|
6
23
|
|
7
24
|
<sup>Released on **2024-10-22**</sup>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.22.
|
3
|
+
"version": "1.22.18",
|
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",
|
@@ -230,7 +230,7 @@
|
|
230
230
|
"yaml": "^2.6.0",
|
231
231
|
"yjs": "^13.6.20",
|
232
232
|
"zod": "^3.23.8",
|
233
|
-
"zustand": "^
|
233
|
+
"zustand": "^5.0.0",
|
234
234
|
"zustand-utils": "^1.3.2"
|
235
235
|
},
|
236
236
|
"devDependencies": {
|
@@ -284,6 +284,7 @@
|
|
284
284
|
"lodash": "^4.17.21",
|
285
285
|
"markdown-table": "^3.0.3",
|
286
286
|
"node-fetch": "^3.3.2",
|
287
|
+
"node-gyp": "^10.2.0",
|
287
288
|
"openapi-typescript": "^6.7.6",
|
288
289
|
"p-map": "^7.0.2",
|
289
290
|
"prettier": "^3.3.3",
|
@@ -1,6 +1,7 @@
|
|
1
1
|
'use client';
|
2
2
|
|
3
3
|
import { ConfigProvider, NeutralColors, PrimaryColors, ThemeProvider } from '@lobehub/ui';
|
4
|
+
import { ConfigProvider as AntdConfigProvider } from 'antd';
|
4
5
|
import { ThemeAppearance, createStyles } from 'antd-style';
|
5
6
|
import 'antd/dist/reset.css';
|
6
7
|
import Image from 'next/image';
|
@@ -103,31 +104,33 @@ const AppTheme = memo<AppThemeProps>(
|
|
103
104
|
}, [neutralColor]);
|
104
105
|
|
105
106
|
return (
|
106
|
-
<
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
defaultAppearance={defaultAppearance}
|
113
|
-
onAppearanceChange={(appearance) => {
|
114
|
-
setCookie(LOBE_THEME_APPEARANCE, appearance);
|
115
|
-
}}
|
116
|
-
themeMode={themeMode}
|
117
|
-
>
|
118
|
-
<GlobalStyle />
|
119
|
-
<AntdStaticMethods />
|
120
|
-
<ConfigProvider
|
121
|
-
config={{
|
122
|
-
aAs: Link,
|
123
|
-
imgAs: Image,
|
124
|
-
imgUnoptimized: true,
|
125
|
-
proxy: globalCDN ? 'unpkg' : undefined,
|
107
|
+
<AntdConfigProvider theme={{ cssVar: true }}>
|
108
|
+
<ThemeProvider
|
109
|
+
className={cx(styles.app, styles.scrollbar, styles.scrollbarPolyfill)}
|
110
|
+
customTheme={{
|
111
|
+
neutralColor: neutralColor ?? defaultNeutralColor,
|
112
|
+
primaryColor: primaryColor ?? defaultPrimaryColor,
|
126
113
|
}}
|
114
|
+
defaultAppearance={defaultAppearance}
|
115
|
+
onAppearanceChange={(appearance) => {
|
116
|
+
setCookie(LOBE_THEME_APPEARANCE, appearance);
|
117
|
+
}}
|
118
|
+
themeMode={themeMode}
|
127
119
|
>
|
128
|
-
|
129
|
-
|
130
|
-
|
120
|
+
<GlobalStyle />
|
121
|
+
<AntdStaticMethods />
|
122
|
+
<ConfigProvider
|
123
|
+
config={{
|
124
|
+
aAs: Link,
|
125
|
+
imgAs: Image,
|
126
|
+
imgUnoptimized: true,
|
127
|
+
proxy: globalCDN ? 'unpkg' : undefined,
|
128
|
+
}}
|
129
|
+
>
|
130
|
+
{children}
|
131
|
+
</ConfigProvider>
|
132
|
+
</ThemeProvider>
|
133
|
+
</AntdConfigProvider>
|
131
134
|
);
|
132
135
|
},
|
133
136
|
);
|