@lobehub/chat 1.70.7 → 1.70.8

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 CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.70.8](https://github.com/lobehub/lobe-chat/compare/v1.70.7...v1.70.8)
6
+
7
+ <sup>Released on **2025-03-12**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix theme flicking.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix theme flicking, closes [#6926](https://github.com/lobehub/lobe-chat/issues/6926) ([103c3e3](https://github.com/lobehub/lobe-chat/commit/103c3e3))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 1.70.7](https://github.com/lobehub/lobe-chat/compare/v1.70.6...v1.70.7)
6
31
 
7
32
  <sup>Released on **2025-03-12**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix theme flicking."
6
+ ]
7
+ },
8
+ "date": "2025-03-12",
9
+ "version": "1.70.8"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.70.7",
3
+ "version": "1.70.8",
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",
@@ -14,7 +14,11 @@ import Link from 'next/link';
14
14
  import { ReactNode, memo, useEffect } from 'react';
15
15
 
16
16
  import AntdStaticMethods from '@/components/AntdStaticMethods';
17
- import { LOBE_THEME_NEUTRAL_COLOR, LOBE_THEME_PRIMARY_COLOR } from '@/const/theme';
17
+ import {
18
+ LOBE_THEME_APPEARANCE,
19
+ LOBE_THEME_NEUTRAL_COLOR,
20
+ LOBE_THEME_PRIMARY_COLOR,
21
+ } from '@/const/theme';
18
22
  import { useGlobalStore } from '@/store/global';
19
23
  import { systemStatusSelectors } from '@/store/global/selectors';
20
24
  import { useUserStore } from '@/store/user';
@@ -125,6 +129,11 @@ const AppTheme = memo<AppThemeProps>(
125
129
  primaryColor: primaryColor ?? defaultPrimaryColor,
126
130
  }}
127
131
  defaultAppearance={defaultAppearance}
132
+ onAppearanceChange={(appearance) => {
133
+ if (themeMode !== 'auto') return;
134
+
135
+ setCookie(LOBE_THEME_APPEARANCE, appearance);
136
+ }}
128
137
  theme={{
129
138
  cssVar: true,
130
139
  token: {