@mxmweb/rtext 1.5.3 → 1.5.5
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/adopters/ChatMessageAdapter.d.ts +6 -6
- package/assets/style.css +1 -1
- package/containers/ThoughtChainContainer.d.ts +1 -1
- package/core/UnifiedRichText.d.ts +4 -4
- package/core/converters/slateConverters.d.ts +0 -5
- package/core/richElements/styles.d.ts +0 -1
- package/elements/ThoughtChainSection.d.ts +0 -10
- package/index.js +8278 -9026
- package/lib_enter.d.ts +0 -2
- package/mockserverdata.d.ts +93 -3
- package/package.json +1 -1
- package/stats.html +1 -1
- package/thought_chain_types.d.ts +6 -4
- package/utils/thought_chain_mapper.d.ts +3 -3
package/lib_enter.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ export { DataType } from './core/UnifiedRichText';
|
|
|
3
3
|
export type { DataSource, UnifiedRichTextProps } from './core/UnifiedRichText';
|
|
4
4
|
export { default as UnifiedRichText } from './core/UnifiedRichText';
|
|
5
5
|
export { serializeToMarkdown, serializeToHtml } from './core/converters/slateConverters';
|
|
6
|
-
export { toggleBold, toggleItalic, toggleUnderline, toggleStrikethrough, toggleCode, toggleHeading, toggleBulletList, toggleNumberedList, toggleBlockQuote, insertLink, insertImage, insertTable, insertCodeBlock, setAlignment, isBoldActive, isItalicActive, isUnderlineActive, isStrikethroughActive, isCodeActive, isHeadingActive, isBulletListActive, isNumberedListActive, isBlockQuoteActive, getAlignment, } from './core/editor/editorCommands';
|
|
7
|
-
export { useEditorCommands } from './core/editor/useEditorCommands';
|
|
8
6
|
export { default as ChatMessageAdapter } from './adopters/ChatMessageAdapter';
|
|
9
7
|
export { default as Markdownit } from './adopters/Markdownit';
|
|
10
8
|
export { default as PromptTempDesigner } from './adopters/PromptTempDesigner';
|
package/mockserverdata.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const mockServerData: {
|
|
|
12
12
|
filePath: string;
|
|
13
13
|
configId: number;
|
|
14
14
|
kbId: null;
|
|
15
|
-
queryReplyPairList: {
|
|
15
|
+
queryReplyPairList: ({
|
|
16
16
|
query: {
|
|
17
17
|
id: string;
|
|
18
18
|
gmtCreate: number;
|
|
@@ -30,6 +30,7 @@ export declare const mockServerData: {
|
|
|
30
30
|
type: string;
|
|
31
31
|
reference: string;
|
|
32
32
|
webReference: string;
|
|
33
|
+
knowledgeBases: never[];
|
|
33
34
|
queryId: string;
|
|
34
35
|
feedbackResult: null;
|
|
35
36
|
feedbackId: null;
|
|
@@ -53,10 +54,13 @@ export declare const mockServerData: {
|
|
|
53
54
|
reference: null;
|
|
54
55
|
webReference: null;
|
|
55
56
|
databaseReference: null;
|
|
57
|
+
knowledgeBases: null;
|
|
56
58
|
docsTree: null;
|
|
57
59
|
resultType: null;
|
|
58
60
|
filePaths: null;
|
|
59
|
-
respTime:
|
|
61
|
+
respTime: null;
|
|
62
|
+
chainRespTime: number;
|
|
63
|
+
enableCot: number;
|
|
60
64
|
tokens: number;
|
|
61
65
|
promptContent: null;
|
|
62
66
|
llmType: number;
|
|
@@ -66,7 +70,93 @@ export declare const mockServerData: {
|
|
|
66
70
|
enableCot: number;
|
|
67
71
|
tokens: number;
|
|
68
72
|
};
|
|
69
|
-
}
|
|
73
|
+
} | {
|
|
74
|
+
query: {
|
|
75
|
+
id: string;
|
|
76
|
+
gmtCreate: number;
|
|
77
|
+
content: string;
|
|
78
|
+
type: string;
|
|
79
|
+
queryId: string;
|
|
80
|
+
audioUrl: string;
|
|
81
|
+
filePaths: null;
|
|
82
|
+
currentFiles: null;
|
|
83
|
+
};
|
|
84
|
+
reply: {
|
|
85
|
+
id: string;
|
|
86
|
+
gmtCreate: number;
|
|
87
|
+
content: string;
|
|
88
|
+
type: string;
|
|
89
|
+
chain: {
|
|
90
|
+
businessType: string;
|
|
91
|
+
nodeStatus: number;
|
|
92
|
+
content: string;
|
|
93
|
+
type: string;
|
|
94
|
+
}[];
|
|
95
|
+
reference: string;
|
|
96
|
+
webReference: string;
|
|
97
|
+
queryId: string;
|
|
98
|
+
knowledgeBases: {
|
|
99
|
+
knowledgeBaseName: string;
|
|
100
|
+
treeData: ({
|
|
101
|
+
name: string;
|
|
102
|
+
type: string;
|
|
103
|
+
fileCount: number;
|
|
104
|
+
fileType?: undefined;
|
|
105
|
+
fetchUrl?: undefined;
|
|
106
|
+
} | {
|
|
107
|
+
name: string;
|
|
108
|
+
type: string;
|
|
109
|
+
fileType: string;
|
|
110
|
+
fetchUrl: string;
|
|
111
|
+
fileCount?: undefined;
|
|
112
|
+
})[];
|
|
113
|
+
totalFileCount: number;
|
|
114
|
+
fetchUrl: string;
|
|
115
|
+
}[];
|
|
116
|
+
feedbackResult: null;
|
|
117
|
+
feedbackId: null;
|
|
118
|
+
parsedFilePaths: null;
|
|
119
|
+
recommendQuestion: string;
|
|
120
|
+
llmType: number;
|
|
121
|
+
resultType: number;
|
|
122
|
+
respTime: number;
|
|
123
|
+
databaseReference: null;
|
|
124
|
+
tokens: number;
|
|
125
|
+
enableCot?: undefined;
|
|
126
|
+
};
|
|
127
|
+
} | {
|
|
128
|
+
query: {
|
|
129
|
+
id: number;
|
|
130
|
+
gmtCreate: string;
|
|
131
|
+
content: string;
|
|
132
|
+
type: string;
|
|
133
|
+
queryId: string;
|
|
134
|
+
audioUrl: string;
|
|
135
|
+
filePaths: null;
|
|
136
|
+
currentFiles: null;
|
|
137
|
+
};
|
|
138
|
+
reply: {
|
|
139
|
+
id: number;
|
|
140
|
+
gmtCreate: string;
|
|
141
|
+
content: string;
|
|
142
|
+
type: string;
|
|
143
|
+
reference: string;
|
|
144
|
+
webReference: string;
|
|
145
|
+
queryId: string;
|
|
146
|
+
feedbackResult: null;
|
|
147
|
+
feedbackId: null;
|
|
148
|
+
parsedFilePaths: null;
|
|
149
|
+
recommendQuestion: string;
|
|
150
|
+
llmType: number;
|
|
151
|
+
resultType: number;
|
|
152
|
+
respTime: number;
|
|
153
|
+
databaseReference: null;
|
|
154
|
+
tokens: number;
|
|
155
|
+
knowledgeBases?: undefined;
|
|
156
|
+
chain?: undefined;
|
|
157
|
+
enableCot?: undefined;
|
|
158
|
+
};
|
|
159
|
+
})[];
|
|
70
160
|
searchConfigDTO: {
|
|
71
161
|
id: number;
|
|
72
162
|
status: number;
|