@lobehub/lobehub 2.0.0-next.76 → 2.0.0-next.78

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 2.0.0-next.78](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.77...v2.0.0-next.78)
6
+
7
+ <sup>Released on **2025-11-18**</sup>
8
+
9
+ <br/>
10
+
11
+ <details>
12
+ <summary><kbd>Improvements and Fixes</kbd></summary>
13
+
14
+ </details>
15
+
16
+ <div align="right">
17
+
18
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
19
+
20
+ </div>
21
+
22
+ ## [Version 2.0.0-next.77](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.76...v2.0.0-next.77)
23
+
24
+ <sup>Released on **2025-11-18**</sup>
25
+
26
+ #### ♻ Code Refactoring
27
+
28
+ - **misc**: Delete /settings/newapi pages in nextjs build.
29
+
30
+ <br/>
31
+
32
+ <details>
33
+ <summary><kbd>Improvements and Fixes</kbd></summary>
34
+
35
+ #### Code refactoring
36
+
37
+ - **misc**: Delete /settings/newapi pages in nextjs build, closes [#10278](https://github.com/lobehub/lobe-chat/issues/10278) ([9d06753](https://github.com/lobehub/lobe-chat/commit/9d06753))
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 2.0.0-next.76](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.75...v2.0.0-next.76)
6
48
 
7
49
  <sup>Released on **2025-11-18**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2025-11-18",
5
+ "version": "2.0.0-next.78"
6
+ },
7
+ {
8
+ "children": {
9
+ "improvements": [
10
+ "Delete /settings/newapi pages in nextjs build."
11
+ ]
12
+ },
13
+ "date": "2025-11-18",
14
+ "version": "2.0.0-next.77"
15
+ },
2
16
  {
3
17
  "children": {
4
18
  "features": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.76",
3
+ "version": "2.0.0-next.78",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent 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",
@@ -1,3 +1,4 @@
1
+ import NewAPI from './newapi';
1
2
  import ProviderGrid from '../(list)/ProviderGrid';
2
3
  import Azure from './azure';
3
4
  import AzureAI from './azureai';
@@ -38,6 +39,9 @@ const ProviderDetailPage = (props: { id?: string | null }) => {
38
39
  case 'ollama': {
39
40
  return <Ollama />;
40
41
  }
42
+ case 'newapi': {
43
+ return <NewAPI />;
44
+ }
41
45
  case 'openai': {
42
46
  return <OpenAI />;
43
47
  }
@@ -30,29 +30,14 @@ export interface ActionDropdownProps extends DropdownProps {
30
30
  }
31
31
 
32
32
  const ActionDropdown = memo<ActionDropdownProps>(
33
- ({
34
- menu,
35
- maxHeight,
36
- minWidth,
37
- maxWidth,
38
- children,
39
- placement = 'top',
40
- prefetch = false,
41
- destroyOnHidden,
42
- forceRender,
43
- ...rest
44
- }) => {
33
+ ({ menu, maxHeight, minWidth, maxWidth, children, placement = 'top', ...rest }) => {
45
34
  const { cx, styles } = useStyles();
46
35
  const isMobile = useIsMobile();
47
36
 
48
- const dropdownForceRender = prefetch ? true : forceRender;
49
- const dropdownDestroyOnHidden = prefetch ? false : destroyOnHidden;
50
-
51
37
  return (
52
38
  <Dropdown
53
39
  arrow={false}
54
- destroyOnHidden={dropdownDestroyOnHidden}
55
- forceRender={dropdownForceRender}
40
+ destroyOnHidden={false}
56
41
  menu={{
57
42
  ...menu,
58
43
  className: cx(styles.dropdownMenu, menu.className),
@@ -146,7 +146,6 @@ const ModelSwitchPanel = memo<IProps>(({ children, onOpenChange, open }) => {
146
146
  onOpenChange={onOpenChange}
147
147
  open={open}
148
148
  placement={'topLeft'}
149
- prefetch
150
149
  >
151
150
  {icon}
152
151
  </ActionDropdown>