@lobehub/chat 0.145.5 → 0.145.6

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,23 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.145.6](https://github.com/lobehub/lobe-chat/compare/v0.145.5...v0.145.6)
6
+
7
+ <sup>Released on **2024-04-02**</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
+
5
22
  ### [Version 0.145.5](https://github.com/lobehub/lobe-chat/compare/v0.145.4...v0.145.5)
6
23
 
7
24
  <sup>Released on **2024-03-30**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.145.5",
3
+ "version": "0.145.6",
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",
@@ -7,7 +7,6 @@ import ClientResponsiveContent from '@/components/client/ClientResponsiveContent
7
7
  import { useMarketStore } from '@/store/market';
8
8
 
9
9
  import AgentCard from '../features/AgentCard';
10
- import AgentSearchBar from '../features/AgentSearchBar';
11
10
 
12
11
  const Desktop = memo(() => {
13
12
  useEffect(() => {
@@ -15,12 +14,7 @@ const Desktop = memo(() => {
15
14
  useMarketStore.persist.rehydrate();
16
15
  }, []);
17
16
 
18
- return (
19
- <>
20
- <AgentSearchBar />
21
- <AgentCard CardRender={SpotlightCard as FC<SpotlightCardProps>} />
22
- </>
23
- );
17
+ return <AgentCard CardRender={SpotlightCard as FC<SpotlightCardProps>} />;
24
18
  });
25
19
 
26
20
  export default ClientResponsiveContent({ Desktop, Mobile: () => import('../(mobile)') });
@@ -2,12 +2,10 @@
2
2
 
3
3
  import dynamic from 'next/dynamic';
4
4
  import { memo, useEffect } from 'react';
5
- import { Flexbox } from 'react-layout-kit';
6
5
 
7
6
  import { useMarketStore } from '@/store/market';
8
7
 
9
8
  import AgentCard from '../features/AgentCard';
10
- import AgentSearchBar from '../features/AgentSearchBar';
11
9
  import CardRender from './features/AgentCard';
12
10
 
13
11
  const DetailModal = dynamic(() => import('./features/AgentDetail'), { ssr: false });
@@ -20,10 +18,7 @@ export default memo(() => {
20
18
 
21
19
  return (
22
20
  <>
23
- <Flexbox flex={1} gap={16} style={{ padding: 16 }}>
24
- <AgentSearchBar mobile />
25
- <AgentCard CardRender={CardRender} mobile />{' '}
26
- </Flexbox>
21
+ <AgentCard CardRender={CardRender} mobile />
27
22
  <DetailModal />
28
23
  </>
29
24
  );
@@ -10,6 +10,7 @@ import SafeSpacing from '@/components/SafeSpacing';
10
10
  import ClientResponsiveLayout from '@/components/client/ClientResponsiveLayout';
11
11
  import { MAX_WIDTH } from '@/const/layoutTokens';
12
12
 
13
+ import AgentSearchBar from '../../features/AgentSearchBar';
13
14
  import Header from './Header';
14
15
 
15
16
  const SideBar = dynamic(() => import('./AgentDetail'));
@@ -47,6 +48,7 @@ const Desktop = memo<PropsWithChildren>(({ children }) => {
47
48
  random
48
49
  />
49
50
  </Center>
51
+ <AgentSearchBar />
50
52
  {children}
51
53
  </Flexbox>
52
54
  </Flexbox>
@@ -1,12 +1,17 @@
1
1
  import { PropsWithChildren } from 'react';
2
+ import { Flexbox } from 'react-layout-kit';
2
3
 
4
+ import AgentSearchBar from '../../features/AgentSearchBar';
3
5
  import Header from './Header';
4
6
 
5
7
  const MobileLayout = ({ children }: PropsWithChildren) => {
6
8
  return (
7
9
  <>
8
10
  <Header />
9
- {children}
11
+ <Flexbox flex={1} gap={16} style={{ padding: 16 }}>
12
+ <AgentSearchBar mobile />
13
+ {children}
14
+ </Flexbox>
10
15
  </>
11
16
  );
12
17
  };
@@ -7,9 +7,9 @@ import LazyLoad from 'react-lazy-load';
7
7
 
8
8
  import { agentMarketSelectors, useMarketStore } from '@/store/market';
9
9
 
10
+ import Loading from '../../components/Loading';
10
11
  import TagList from '../TagList';
11
12
  import AgentCardItem from './AgentCardItem';
12
- import Loading from './Loading';
13
13
  import { useStyles } from './style';
14
14
 
15
15
  export interface AgentCardProps {
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { SearchBar } from '@lobehub/ui';
2
4
  import { memo, useCallback, useState } from 'react';
3
5
  import { useTranslation } from 'react-i18next';
@@ -0,0 +1,3 @@
1
+ import Load from './components/Loading';
2
+
3
+ export default () => <Load />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;