@lobehub/chat 1.105.2 → 1.105.3

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.105.3](https://github.com/lobehub/lobe-chat/compare/v1.105.2...v1.105.3)
6
+
7
+ <sup>Released on **2025-07-29**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix subscription plan tag display.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix subscription plan tag display, closes [#8599](https://github.com/lobehub/lobe-chat/issues/8599) ([2a3754a](https://github.com/lobehub/lobe-chat/commit/2a3754a))
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.105.2](https://github.com/lobehub/lobe-chat/compare/v1.105.1...v1.105.2)
6
31
 
7
32
  <sup>Released on **2025-07-29**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix subscription plan tag display."
6
+ ]
7
+ },
8
+ "date": "2025-07-29",
9
+ "version": "1.105.3"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.105.2",
3
+ "version": "1.105.3",
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",
@@ -30,9 +30,10 @@ export interface UserInfoProps extends FlexboxProps {
30
30
  const UserInfo = memo<UserInfoProps>(({ avatarProps, onClick, ...rest }) => {
31
31
  const { styles, theme } = useStyles();
32
32
  const isSignedIn = useUserStore(authSelectors.isLogin);
33
- const [nickname, username] = useUserStore((s) => [
33
+ const [nickname, username, subscriptionPlan] = useUserStore((s) => [
34
34
  userProfileSelectors.nickName(s),
35
35
  userProfileSelectors.username(s),
36
+ s.subscriptionPlan,
36
37
  ]);
37
38
 
38
39
  return (
@@ -52,7 +53,7 @@ const UserInfo = memo<UserInfoProps>(({ avatarProps, onClick, ...rest }) => {
52
53
  <div className={styles.username}>{username}</div>
53
54
  </Flexbox>
54
55
  </Flexbox>
55
- {isSignedIn && <PlanTag />}
56
+ {isSignedIn && <PlanTag type={subscriptionPlan} />}
56
57
  </Flexbox>
57
58
  );
58
59
  });
@@ -113,6 +113,7 @@ export const createCommonSlice: StateCreator<
113
113
  preference,
114
114
  serverLanguageModel: serverConfig.languageModel,
115
115
  settings: data.settings || {},
116
+ subscriptionPlan: data.subscriptionPlan,
116
117
  user,
117
118
  },
118
119
  false,
@@ -1,9 +1,12 @@
1
+ import { Plans } from '@/types/subscription';
2
+
1
3
  export interface CommonState {
2
4
  isOnboard: boolean;
3
5
  isShowPWAGuide: boolean;
4
6
  isUserCanEnableTrace: boolean;
5
7
  isUserHasConversation: boolean;
6
8
  isUserStateInit: boolean;
9
+ subscriptionPlan?: Plans;
7
10
  }
8
11
 
9
12
  export const initialCommonState: CommonState = {
@@ -1,6 +1,7 @@
1
1
  import type { PartialDeep } from 'type-fest';
2
2
  import { z } from 'zod';
3
3
 
4
+ import { Plans } from '@/types/subscription';
4
5
  import { TopicDisplayMode } from '@/types/topic';
5
6
  import { UserSettings } from '@/types/user/settings';
6
7
 
@@ -56,6 +57,7 @@ export interface UserInitializationState {
56
57
  lastName?: string;
57
58
  preference: UserPreference;
58
59
  settings: PartialDeep<UserSettings>;
60
+ subscriptionPlan?: Plans;
59
61
  userId?: string;
60
62
  username?: string;
61
63
  }