@lobehub/chat 0.126.2 → 0.126.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 0.126.3](https://github.com/lobehub/lobe-chat/compare/v0.126.2...v0.126.3)
6
+
7
+ <sup>Released on **2024-02-09**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix auth layout error.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix auth layout error ([efd7d14](https://github.com/lobehub/lobe-chat/commit/efd7d14))
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 0.126.2](https://github.com/lobehub/lobe-chat/compare/v0.126.1...v0.126.2)
6
31
 
7
32
  <sup>Released on **2024-02-09**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.126.2",
3
+ "version": "0.126.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",
@@ -4,7 +4,6 @@ import { PropsWithChildren } from 'react';
4
4
  import { isRtlLang } from 'rtl-detect';
5
5
 
6
6
  import Analytics from '@/components/Analytics';
7
- import { getServerConfig } from '@/config/server';
8
7
  import { DEFAULT_LANG, LOBE_LOCALE_COOKIE } from '@/const/locale';
9
8
  import {
10
9
  LOBE_THEME_APPEARANCE,
@@ -15,8 +14,6 @@ import Layout from '@/layout/GlobalLayout';
15
14
 
16
15
  import StyleRegistry from './StyleRegistry';
17
16
 
18
- const { ENABLE_OAUTH_SSO } = getServerConfig();
19
-
20
17
  const RootLayout = ({ children }: PropsWithChildren) => {
21
18
  // get default theme config to use with ssr
22
19
  const cookieStore = cookies();
@@ -35,7 +32,6 @@ const RootLayout = ({ children }: PropsWithChildren) => {
35
32
  defaultLang={lang?.value}
36
33
  defaultNeutralColor={neutralColor?.value as any}
37
34
  defaultPrimaryColor={primaryColor?.value as any}
38
- enableOAuthSSO={ENABLE_OAUTH_SSO}
39
35
  >
40
36
  {children}
41
37
  </Layout>
@@ -46,29 +46,19 @@ const Container = memo<PropsWithChildren>(({ children }) => {
46
46
 
47
47
  interface GlobalLayoutProps extends AppThemeProps {
48
48
  defaultLang?: string;
49
- enableOAuthSSO?: boolean;
50
49
  }
51
50
 
52
- const GlobalLayout = ({
53
- children,
54
- defaultLang,
55
- enableOAuthSSO = false,
56
- ...theme
57
- }: GlobalLayoutProps) => {
58
- const content = (
59
- <AppTheme {...theme}>
60
- <Locale defaultLang={defaultLang}>
61
- <StoreHydration />
62
- <Container>{children}</Container>
63
- <DebugUI />
64
- </Locale>
65
- </AppTheme>
66
- );
67
-
68
- return enableOAuthSSO ? (
69
- <SessionProvider basePath={API_ENDPOINTS.oauth}>{content}</SessionProvider>
70
- ) : (
71
- content
51
+ const GlobalLayout = ({ children, defaultLang, ...theme }: GlobalLayoutProps) => {
52
+ return (
53
+ <SessionProvider basePath={API_ENDPOINTS.oauth}>
54
+ <AppTheme {...theme}>
55
+ <Locale defaultLang={defaultLang}>
56
+ <StoreHydration />
57
+ <Container>{children}</Container>
58
+ <DebugUI />
59
+ </Locale>
60
+ </AppTheme>
61
+ </SessionProvider>
72
62
  );
73
63
  };
74
64