@lobehub/chat 1.22.2 → 1.22.4

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,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.22.4](https://github.com/lobehub/lobe-chat/compare/v1.22.3...v1.22.4)
6
+
7
+ <sup>Released on **2024-10-13**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Separate message slice and aiChat slice.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **misc**: Separate message slice and aiChat slice, closes [#4359](https://github.com/lobehub/lobe-chat/issues/4359) ([7d037f6](https://github.com/lobehub/lobe-chat/commit/7d037f6))
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.22.3](https://github.com/lobehub/lobe-chat/compare/v1.22.2...v1.22.3)
31
+
32
+ <sup>Released on **2024-10-13**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Support multi-windows for PWA.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Support multi-windows for PWA, closes [#4334](https://github.com/lobehub/lobe-chat/issues/4334) ([0284606](https://github.com/lobehub/lobe-chat/commit/0284606))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.22.2](https://github.com/lobehub/lobe-chat/compare/v1.22.1...v1.22.2)
6
56
 
7
57
  <sup>Released on **2024-10-13**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.22.2",
3
+ "version": "1.22.4",
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",
@@ -2,7 +2,7 @@ import { useCallback, useMemo } from 'react';
2
2
 
3
3
  import { useChatStore } from '@/store/chat';
4
4
  import { chatSelectors } from '@/store/chat/selectors';
5
- import { SendMessageParams } from '@/store/chat/slices/message/action';
5
+ import { SendMessageParams } from '@/store/chat/slices/aiChat/action';
6
6
  import { fileChatSelectors, useFileStore } from '@/store/file';
7
7
 
8
8
  export type UseSendMessageParams = Pick<
@@ -50,9 +50,6 @@ export class Manifest {
50
50
  icons: icons.map((item) => this._getIcon(item)),
51
51
  id: id,
52
52
  immutable: 'true',
53
- launch_handler: {
54
- client_mode: ['navigate-existing', 'auto'],
55
- },
56
53
  max_age: MAX_AGE,
57
54
  name: name,
58
55
  orientation: 'portrait',
@@ -4,15 +4,18 @@ import { ChatPortalState, initialChatPortalState } from './slices/portal/initial
4
4
  import { ChatMessageState, initialMessageState } from './slices/message/initialState';
5
5
  import { ChatShareState, initialShareState } from './slices/share/initialState';
6
6
  import { ChatTopicState, initialTopicState } from './slices/topic/initialState';
7
+ import { ChatAIChatState, initialAiChatState } from './slices/aiChat/initialState';
7
8
 
8
9
  export type ChatStoreState = ChatTopicState &
9
10
  ChatMessageState &
11
+ ChatAIChatState &
10
12
  ChatToolState &
11
13
  ChatShareState &
12
14
  ChatPortalState;
13
15
 
14
16
  export const initialState: ChatStoreState = {
15
17
  ...initialMessageState,
18
+ ...initialAiChatState,
16
19
  ...initialTopicState,
17
20
  ...initialToolState,
18
21
  ...initialShareState,