@lobehub/chat 1.105.2 → 1.105.4
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,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.105.4](https://github.com/lobehub/lobe-chat/compare/v1.105.3...v1.105.4)
|
6
|
+
|
7
|
+
<sup>Released on **2025-07-29**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Revert jose to ^5 to fix auth issue on desktop.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Revert jose to ^5 to fix auth issue on desktop, closes [#8603](https://github.com/lobehub/lobe-chat/issues/8603) ([57118b0](https://github.com/lobehub/lobe-chat/commit/57118b0))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.105.3](https://github.com/lobehub/lobe-chat/compare/v1.105.2...v1.105.3)
|
31
|
+
|
32
|
+
<sup>Released on **2025-07-29**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Fix subscription plan tag display.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **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))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.105.2](https://github.com/lobehub/lobe-chat/compare/v1.105.1...v1.105.2)
|
6
56
|
|
7
57
|
<sup>Released on **2025-07-29**</sup>
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"fixes": [
|
5
|
+
"Revert jose to ^5 to fix auth issue on desktop."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2025-07-29",
|
9
|
+
"version": "1.105.4"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"fixes": [
|
14
|
+
"Fix subscription plan tag display."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2025-07-29",
|
18
|
+
"version": "1.105.3"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"improvements": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.105.
|
3
|
+
"version": "1.105.4",
|
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",
|
@@ -196,7 +196,7 @@
|
|
196
196
|
"i18next-resources-to-backend": "^1.2.1",
|
197
197
|
"idb-keyval": "^6.2.2",
|
198
198
|
"immer": "^10.1.1",
|
199
|
-
"jose": "^
|
199
|
+
"jose": "^5.10.0",
|
200
200
|
"js-sha256": "^0.11.1",
|
201
201
|
"jsonl-parse-stringify": "^1.0.3",
|
202
202
|
"keyv": "^4.5.4",
|
@@ -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
|
});
|
@@ -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 = {
|
package/src/types/user/index.ts
CHANGED
@@ -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
|
}
|