@ibiz-template-plugin/ai-chat 0.0.116 → 0.0.117
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/dist/index.es.js +14650 -12316
- package/dist/index.legacy.js +2 -2
- package/dist/polyfills.legacy.js +1 -1
- package/dist/style.css +2 -2
- package/dist/types/components/chat-container/chat-container.d.ts +25 -24
- package/dist/types/components/chat-group-topics/components/selected-mode-topic/selected-mode-topic.d.ts +21 -0
- package/dist/types/components/chat-group-topics/components/show-hidden-setting/show-hidden-setting.d.ts +17 -0
- package/dist/types/components/chat-group-topics/components/topic-batch-action/topic-batch-action.d.ts +21 -0
- package/dist/types/constants/index.d.ts +4 -0
- package/dist/types/controller/ai-chat/ai-chat.controller.d.ts +12 -0
- package/dist/types/controller/ai-topic/ai-topic.controller.d.ts +83 -5
- package/dist/types/controller/index.d.ts +1 -0
- package/dist/types/controller/overlay/drawer-overlay.controller.d.ts +2 -0
- package/dist/types/controller/overlay/overlay.controller.d.ts +7 -1
- package/dist/types/controller/tiptap/config/file-node-config.d.ts +3 -0
- package/dist/types/controller/tiptap/tiptap.controller.d.ts +50 -0
- package/dist/types/entity/chart-topic/chart-topic.d.ts +1 -0
- package/dist/types/entity/chat-message/chat-message.d.ts +1 -0
- package/dist/types/icons/eye-svg.d.ts +1 -0
- package/dist/types/icons/index.d.ts +2 -0
- package/dist/types/icons/new-folder-svg.d.ts +1 -0
- package/dist/types/icons/system-file/archive.d.ts +1 -0
- package/dist/types/icons/system-file/audio.d.ts +1 -0
- package/dist/types/icons/system-file/excel.d.ts +4 -0
- package/dist/types/icons/system-file/image.d.ts +1 -0
- package/dist/types/icons/system-file/index.d.ts +10 -0
- package/dist/types/icons/system-file/other.d.ts +2 -0
- package/dist/types/icons/system-file/ppt.d.ts +5 -0
- package/dist/types/icons/system-file/program.d.ts +1 -0
- package/dist/types/icons/system-file/text.d.ts +17 -0
- package/dist/types/icons/system-file/video.d.ts +5 -0
- package/dist/types/icons/system-file/word.d.ts +1 -0
- package/dist/types/interface/i-chat-message/i-chat-message.d.ts +6 -0
- package/dist/types/interface/i-remote-resource/i-remote-resource.d.ts +6 -0
- package/dist/types/interface/i-tiptap/i-tiptap.d.ts +51 -0
- package/dist/types/interface/i-topic-options/i-topic-options.d.ts +50 -5
- package/dist/types/interface/index.d.ts +2 -1
- package/dist/types/locale/en/index.d.ts +7 -1
- package/dist/types/locale/zh-CN/index.d.ts +7 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/util/system-file.d.ts +10 -0
- package/dist/types/utils/util/util.d.ts +2 -1
- package/package.json +1 -1
- package/dist/types/components/chat-editor/node/mention-node.d.ts +0 -3
|
@@ -4,6 +4,27 @@ import { IConfigService } from '../i-config-service/i-config-service';
|
|
|
4
4
|
/**
|
|
5
5
|
* @description 业务域数据
|
|
6
6
|
* @export
|
|
7
|
+
* @interface IScopeOption
|
|
8
|
+
*/
|
|
9
|
+
export interface IScopeOption {
|
|
10
|
+
/**
|
|
11
|
+
* @description 值
|
|
12
|
+
* @type {(string | number)}
|
|
13
|
+
* @memberof IScopeOption
|
|
14
|
+
*/
|
|
15
|
+
id: string | number;
|
|
16
|
+
/**
|
|
17
|
+
* @description 文本
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof IScopeOption
|
|
20
|
+
*/
|
|
21
|
+
text: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @description 业务域项数据
|
|
25
|
+
* @author tony001
|
|
26
|
+
* @date 2026-10-20 14:10:18
|
|
27
|
+
* @export
|
|
7
28
|
* @interface IScopeItem
|
|
8
29
|
*/
|
|
9
30
|
export interface IScopeItem {
|
|
@@ -14,11 +35,17 @@ export interface IScopeItem {
|
|
|
14
35
|
*/
|
|
15
36
|
id: string | number;
|
|
16
37
|
/**
|
|
17
|
-
* @description
|
|
18
|
-
* @type {
|
|
38
|
+
* @description 是否显示
|
|
39
|
+
* @type {boolean}
|
|
19
40
|
* @memberof IScopeItem
|
|
20
41
|
*/
|
|
21
|
-
|
|
42
|
+
visible: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @description 是否置顶
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof IScopeItem
|
|
47
|
+
*/
|
|
48
|
+
istop: boolean;
|
|
22
49
|
}
|
|
23
50
|
/**
|
|
24
51
|
* 会话分组数据
|
|
@@ -71,6 +98,18 @@ export interface ITopicGroupNode {
|
|
|
71
98
|
* 显示文本
|
|
72
99
|
*/
|
|
73
100
|
text: string;
|
|
101
|
+
/**
|
|
102
|
+
* @description 域节点是否显示(无存储记录默认 true),显隐由 UI 层控制
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof ITopicGroupNode
|
|
105
|
+
*/
|
|
106
|
+
visible: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* @description 域节点是否置顶(无存储记录默认 false)
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof ITopicGroupNode
|
|
111
|
+
*/
|
|
112
|
+
istop: boolean;
|
|
74
113
|
/**
|
|
75
114
|
* 自定义分组子节点
|
|
76
115
|
*/
|
|
@@ -189,6 +228,12 @@ export interface ITopic {
|
|
|
189
228
|
* @memberof ITopic
|
|
190
229
|
*/
|
|
191
230
|
groupid?: string;
|
|
231
|
+
/**
|
|
232
|
+
* @description 绑定智能体标识
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof ITopic
|
|
235
|
+
*/
|
|
236
|
+
context_code_name?: string;
|
|
192
237
|
/**
|
|
193
238
|
* 上下文
|
|
194
239
|
*
|
|
@@ -235,10 +280,10 @@ export interface ITopicOptions extends ITopic {
|
|
|
235
280
|
disableSelectScope?: boolean;
|
|
236
281
|
/**
|
|
237
282
|
* @description 域列表,当工作模式为WORKSPACE时必填
|
|
238
|
-
* @type {
|
|
283
|
+
* @type {IScopeOption[]}
|
|
239
284
|
* @memberof ITopicOptions
|
|
240
285
|
*/
|
|
241
|
-
scopeList?:
|
|
286
|
+
scopeList?: IScopeOption[];
|
|
242
287
|
/**
|
|
243
288
|
* @description 删除之前提示
|
|
244
289
|
* @param {string} title
|
|
@@ -3,7 +3,7 @@ export type { IChat, IChatOptions } from './i-chat-options/i-chat-options';
|
|
|
3
3
|
export type { IMessageItemProvider } from './i-message-item-provider/i-message-item-provider';
|
|
4
4
|
export type { IPortalAsyncAction } from './i-portal-async-action/i-portal-async-action';
|
|
5
5
|
export type { IChatToolbarItem } from './i-chat-toolbar-item/i-chat-toolbar-item';
|
|
6
|
-
export type { ITopic, ITopicOptions, IScopeItem, IGroupItem, ITopicGroupNode, } from './i-topic-options/i-topic-options';
|
|
6
|
+
export type { ITopic, ITopicOptions, IScopeOption, IScopeItem, IGroupItem, ITopicGroupNode, } from './i-topic-options/i-topic-options';
|
|
7
7
|
export type { IContainerOptions } from './i-container-options/i-container-options';
|
|
8
8
|
export type { IChatThink } from './i-chat-think/i-chat-think';
|
|
9
9
|
export type { IMaterial } from './i-material/i-material';
|
|
@@ -27,4 +27,5 @@ export type { IActionPanelContentProps, TActionPanelComponent, } from './i-actio
|
|
|
27
27
|
export type { ISpeechRecognition } from './i-speech-recognition/i-speech-recognition';
|
|
28
28
|
export type { IFile, IFileItem, IFileItemParams, IFileUploadPrams, } from './i-file-item/i-file-item';
|
|
29
29
|
export type { IFileSystemOptions } from './i-file-system-options/i-file-system-options';
|
|
30
|
+
export { TipTapNodeType, type ITipTapDropData, type TipTapNodeConfig, } from './i-tiptap/i-tiptap';
|
|
30
31
|
export * from './deep-research';
|
|
@@ -36,6 +36,7 @@ export declare const EN: {
|
|
|
36
36
|
thinkThrough: string;
|
|
37
37
|
stopThinking: string;
|
|
38
38
|
thinking: string;
|
|
39
|
+
waitingReply: string;
|
|
39
40
|
requestTimeout: string;
|
|
40
41
|
unsupportedMessageType: string;
|
|
41
42
|
me: string;
|
|
@@ -71,6 +72,8 @@ export declare const EN: {
|
|
|
71
72
|
backfill: string;
|
|
72
73
|
pinTop: string;
|
|
73
74
|
unpin: string;
|
|
75
|
+
showHide: string;
|
|
76
|
+
batchManageScope: string;
|
|
74
77
|
rename: string;
|
|
75
78
|
deleteTopic: string;
|
|
76
79
|
jumpMainView: string;
|
|
@@ -83,6 +86,7 @@ export declare const EN: {
|
|
|
83
86
|
newCreateConversation: string;
|
|
84
87
|
searchTopics: string;
|
|
85
88
|
noTopic: string;
|
|
89
|
+
noScope: string;
|
|
86
90
|
clearSession: string;
|
|
87
91
|
clearSessionConfirmTip: string;
|
|
88
92
|
clearSessionWithGroupConfirmTip: string;
|
|
@@ -91,8 +95,10 @@ export declare const EN: {
|
|
|
91
95
|
batchDeleteConversation: string;
|
|
92
96
|
batchDeleteSession: string;
|
|
93
97
|
batchDeleteConversationConfirmTip: string;
|
|
94
|
-
|
|
98
|
+
batchManage: string;
|
|
99
|
+
batchManageConversation: string;
|
|
95
100
|
selectedCount: string;
|
|
101
|
+
selectedScopeCount: string;
|
|
96
102
|
cancelMultiSelect: string;
|
|
97
103
|
unclassifiedTopic: string;
|
|
98
104
|
newGroup: string;
|
|
@@ -36,6 +36,7 @@ export declare const ZH_CN: {
|
|
|
36
36
|
thinkThrough: string;
|
|
37
37
|
stopThinking: string;
|
|
38
38
|
thinking: string;
|
|
39
|
+
waitingReply: string;
|
|
39
40
|
requestTimeout: string;
|
|
40
41
|
unsupportedMessageType: string;
|
|
41
42
|
me: string;
|
|
@@ -71,6 +72,8 @@ export declare const ZH_CN: {
|
|
|
71
72
|
backfill: string;
|
|
72
73
|
pinTop: string;
|
|
73
74
|
unpin: string;
|
|
75
|
+
showHide: string;
|
|
76
|
+
batchManageScope: string;
|
|
74
77
|
rename: string;
|
|
75
78
|
deleteTopic: string;
|
|
76
79
|
jumpMainView: string;
|
|
@@ -83,6 +86,7 @@ export declare const ZH_CN: {
|
|
|
83
86
|
newCreateConversation: string;
|
|
84
87
|
searchTopics: string;
|
|
85
88
|
noTopic: string;
|
|
89
|
+
noScope: string;
|
|
86
90
|
clearSession: string;
|
|
87
91
|
clearSessionConfirmTip: string;
|
|
88
92
|
clearSessionWithGroupConfirmTip: string;
|
|
@@ -91,8 +95,10 @@ export declare const ZH_CN: {
|
|
|
91
95
|
batchDeleteConversation: string;
|
|
92
96
|
batchDeleteSession: string;
|
|
93
97
|
batchDeleteConversationConfirmTip: string;
|
|
94
|
-
|
|
98
|
+
batchManage: string;
|
|
99
|
+
batchManageConversation: string;
|
|
95
100
|
selectedCount: string;
|
|
101
|
+
selectedScopeCount: string;
|
|
96
102
|
cancelMultiSelect: string;
|
|
97
103
|
unclassifiedTopic: string;
|
|
98
104
|
newGroup: string;
|
|
@@ -12,3 +12,4 @@ export { ChatStepParser } from './util/chat-step-parser';
|
|
|
12
12
|
export { ChatUIActionParser } from './util/chat-ui-action-parser';
|
|
13
13
|
export { ContentProtector } from './util/content-protector';
|
|
14
14
|
export { TextUtil } from './util/util';
|
|
15
|
+
export { FileIcon } from './util/system-file';
|
|
@@ -67,7 +67,8 @@ export declare function md2html(md: string): string;
|
|
|
67
67
|
*
|
|
68
68
|
* 支持嵌套 Map({key=value})、List([a, b])结构;true/false/null 还原为对应类型;
|
|
69
69
|
* 纯数字还原为 number,但前导零(如 000000)视为原始字符串;
|
|
70
|
-
* 值本身为合法 JSON 时(如 avatar=[{"name":"xx"}])优先按 JSON
|
|
70
|
+
* 值本身为合法 JSON 时(如 avatar=[{"name":"xx"}])优先按 JSON 解析;
|
|
71
|
+
* 值内包含成对 {...} 片段或英文逗号时做容错(整体保留在值中),避免结构错位丢数据。
|
|
71
72
|
*
|
|
72
73
|
* @param str - 待转换的原始字符串
|
|
73
74
|
* @returns 解析后的 JavaScript 对象,格式非法时返回空对象
|
package/package.json
CHANGED