@lobehub/chat 0.107.11 → 0.107.12

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.
@@ -0,0 +1,13 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: lobehub
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: lobehub/lobe-chat
11
+ otechie: # Replace with a single Otechie username
12
+ lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.107.12](https://github.com/lobehub/lobe-chat/compare/v0.107.11...v0.107.12)
6
+
7
+ <sup>Released on **2023-12-02**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix topic not refresh when switching sessions quickly.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix topic not refresh when switching sessions quickly, closes [#555](https://github.com/lobehub/lobe-chat/issues/555) ([1806c05](https://github.com/lobehub/lobe-chat/commit/1806c05))
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.107.11](https://github.com/lobehub/lobe-chat/compare/v0.107.10...v0.107.11)
6
31
 
7
32
  <sup>Released on **2023-12-01**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.107.11",
3
+ "version": "0.107.12",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -6,7 +6,7 @@ import { memo, useEffect, useRef, useState } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { Center, Flexbox } from 'react-layout-kit';
8
8
 
9
- import { useFileStore } from '@/store/files';
9
+ import { useFileStore } from '@/store/file';
10
10
 
11
11
  const useStyles = createStyles(({ css, token, stylish }) => {
12
12
  return {
@@ -1,7 +1,7 @@
1
1
  import { memo } from 'react';
2
2
 
3
3
  import FileList from '@/app/chat/components/FileList';
4
- import { useFileStore } from '@/store/files';
4
+ import { useFileStore } from '@/store/file';
5
5
 
6
6
  export const LocalFiles = memo(() => {
7
7
  const inputFilesList = useFileStore((s) => s.inputFilesList);
@@ -2,7 +2,7 @@ import { memo } from 'react';
2
2
  import { Flexbox } from 'react-layout-kit';
3
3
 
4
4
  import FileList from '@/app/chat/components/FileList';
5
- import { useFileStore } from '@/store/files';
5
+ import { useFileStore } from '@/store/file';
6
6
 
7
7
  const Files = memo(() => {
8
8
  const inputFilesList = useFileStore((s) => s.inputFilesList);
@@ -6,7 +6,7 @@ import Image from 'next/image';
6
6
  import { memo } from 'react';
7
7
  import { Center, Flexbox } from 'react-layout-kit';
8
8
 
9
- import { useFileStore } from '@/store/files';
9
+ import { useFileStore } from '@/store/file';
10
10
 
11
11
  import { IMAGE_SIZE, useStyles } from './FileItem.style';
12
12
 
@@ -2,7 +2,7 @@ import { createStyles } from 'antd-style';
2
2
  import { memo } from 'react';
3
3
  import Lightbox from 'react-spring-lightbox';
4
4
 
5
- import { filesSelectors, useFileStore } from '@/store/files';
5
+ import { filesSelectors, useFileStore } from '@/store/file';
6
6
 
7
7
  const useStyles = createStyles(({ css, token }) => ({
8
8
  wrapper: css`
@@ -8,7 +8,7 @@ import { useTranslation } from 'react-i18next';
8
8
  import HotKeys from '@/components/HotKeys';
9
9
  import { CLEAN_MESSAGE_KEY, PREFIX_KEY } from '@/const/hotkeys';
10
10
  import { useChatStore } from '@/store/chat';
11
- import { useFileStore } from '@/store/files';
11
+ import { useFileStore } from '@/store/file';
12
12
 
13
13
  const Clear = memo(() => {
14
14
  const { t } = useTranslation('setting');
@@ -6,7 +6,7 @@ import { memo, useState } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { Center } from 'react-layout-kit';
8
8
 
9
- import { useFileStore } from '@/store/files';
9
+ import { useFileStore } from '@/store/file';
10
10
  import { useSessionStore } from '@/store/session';
11
11
  import { agentSelectors } from '@/store/session/selectors';
12
12
 
@@ -1,7 +1,7 @@
1
1
  import { useCallback } from 'react';
2
2
 
3
- import { filesSelectors, useFileStore } from '@/store/files';
4
- import { useChatStore } from 'src/store/chat';
3
+ import { useChatStore } from '@/store/chat';
4
+ import { filesSelectors, useFileStore } from '@/store/file';
5
5
 
6
6
  export const useSendMessage = () => {
7
7
  const [sendMessage, updateInputMessage] = useChatStore((s) => [
@@ -11,7 +11,7 @@ import { DEFAULT_SETTINGS } from '@/const/settings';
11
11
  import AvatarWithUpload from '@/features/AvatarWithUpload';
12
12
  import { localeOptions } from '@/locales/options';
13
13
  import { useChatStore } from '@/store/chat';
14
- import { useFileStore } from '@/store/files';
14
+ import { useFileStore } from '@/store/file';
15
15
  import { settingsSelectors, useGlobalStore } from '@/store/global';
16
16
  import { usePluginStore } from '@/store/plugin';
17
17
  import { useSessionStore } from '@/store/session';
@@ -3,7 +3,7 @@ import { merge } from 'lodash-es';
3
3
 
4
4
  import { VISION_MODEL_WHITE_LIST } from '@/const/llm';
5
5
  import { DEFAULT_AGENT_CONFIG } from '@/const/settings';
6
- import { filesSelectors, useFileStore } from '@/store/files';
6
+ import { filesSelectors, useFileStore } from '@/store/file';
7
7
  import { usePluginStore } from '@/store/plugin';
8
8
  import { pluginSelectors } from '@/store/plugin/selectors';
9
9
  import { ChatMessage } from '@/types/chatMessage';
@@ -125,6 +125,7 @@ export const chatTopic: StateCreator<
125
125
  onSuccess: (topics) => {
126
126
  set({ topics, topicsInit: true }, false, n('useFetchTopics(success)', { sessionId }));
127
127
  },
128
+ dedupingInterval: 0,
128
129
  }),
129
130
  useSearchTopics: (keywords) =>
130
131
  useSWR<ChatTopic[]>(keywords, topicService.searchTopics, {
File without changes
File without changes
File without changes
File without changes
File without changes