@lobehub/chat 1.36.36 → 1.36.38

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,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.36.38](https://github.com/lobehub/lobe-chat/compare/v1.36.37...v1.36.38)
6
+
7
+ <sup>Released on **2024-12-20**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Refactor layout props.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **misc**: Refactor layout props, closes [#5093](https://github.com/lobehub/lobe-chat/issues/5093) ([2990b5a](https://github.com/lobehub/lobe-chat/commit/2990b5a))
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
+
30
+ ### [Version 1.36.37](https://github.com/lobehub/lobe-chat/compare/v1.36.36...v1.36.37)
31
+
32
+ <sup>Released on **2024-12-19**</sup>
33
+
34
+ <br/>
35
+
36
+ <details>
37
+ <summary><kbd>Improvements and Fixes</kbd></summary>
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ### [Version 1.36.36](https://github.com/lobehub/lobe-chat/compare/v1.36.35...v1.36.36)
6
48
 
7
49
  <sup>Released on **2024-12-19**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Refactor layout props."
6
+ ]
7
+ },
8
+ "date": "2024-12-20",
9
+ "version": "1.36.38"
10
+ },
11
+ {
12
+ "children": {},
13
+ "date": "2024-12-19",
14
+ "version": "1.36.37"
15
+ },
2
16
  {
3
17
  "children": {},
4
18
  "date": "2024-12-19",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.36.36",
3
+ "version": "1.36.38",
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",
@@ -186,7 +186,7 @@
186
186
  "openapi-fetch": "^0.9.8",
187
187
  "partial-json": "^0.1.7",
188
188
  "pdf-parse": "^1.1.1",
189
- "pdfjs-dist": "4.4.168",
189
+ "pdfjs-dist": "4.8.69",
190
190
  "pg": "^8.13.0",
191
191
  "pino": "^9.5.0",
192
192
  "polished": "^4.3.1",
@@ -202,7 +202,7 @@
202
202
  "react-i18next": "14.0.2",
203
203
  "react-layout-kit": "^1.9.0",
204
204
  "react-lazy-load": "^4.0.1",
205
- "react-pdf": "^9.1.1",
205
+ "react-pdf": "^9.2.1",
206
206
  "react-scan": "^0.0.46",
207
207
  "react-virtuoso": "^4.12.0",
208
208
  "react-wrap-balancer": "^1.1.1",
@@ -12,7 +12,7 @@ interface Params {
12
12
  id: string;
13
13
  }
14
14
 
15
- type Props = { params: Params };
15
+ type Props = { params: Params & Promise<Params> };
16
16
 
17
17
  const Evaluation = ({ params }: Props) => {
18
18
  const knowledgeBaseId = params.id;
@@ -1,14 +1,18 @@
1
1
  import { notFound } from 'next/navigation';
2
- import { PropsWithChildren } from 'react';
2
+ import { ReactNode } from 'react';
3
3
  import { Flexbox } from 'react-layout-kit';
4
4
 
5
5
  import { serverFeatureFlags } from '@/config/featureFlags';
6
- import { PagePropsWithId } from '@/types/next';
7
6
 
8
7
  import Container from './components/Container';
9
8
  import { Tabs } from './components/Tabs';
10
9
 
11
- export default async (props: PropsWithChildren<PagePropsWithId>) => {
10
+ interface LayoutProps {
11
+ children: ReactNode;
12
+ params: Promise<{ id: string }>;
13
+ }
14
+
15
+ const Layout = async (props: LayoutProps) => {
12
16
  const enableRAGEval = serverFeatureFlags().enableRAGEval;
13
17
  const params = await props.params;
14
18
 
@@ -21,3 +25,5 @@ export default async (props: PropsWithChildren<PagePropsWithId>) => {
21
25
  </Flexbox>
22
26
  );
23
27
  };
28
+
29
+ export default Layout;