@mxmweb/rtext 1.4.3 → 1.5.3
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 +16 -0
- package/assets/style.css +1 -1
- package/containers/ThoughtChainContainer.d.ts +10 -0
- package/core/UnifiedRichText.d.ts +3 -0
- package/core/converters/slateConverters.d.ts +5 -0
- package/core/editor/editorCommands.d.ts +145 -0
- package/core/editor/useEditorCommands.d.ts +34 -0
- package/core/hooks/useMobileParagraphSelection.d.ts +12 -0
- package/core/richElements/styles.d.ts +1 -0
- package/elements/ThoughtChainSection.d.ts +10 -0
- package/examples/webvieweditor/index.d.ts +7 -0
- package/index.js +9439 -8592
- package/lib_enter.d.ts +2 -0
- package/mockserverdata.d.ts +1 -1
- package/package.json +1 -1
- package/stats.html +1 -1
- package/thought_chain_types.d.ts +3 -3
- package/utils/thought_chain_mapper.d.ts +3 -1
|
@@ -131,6 +131,22 @@ export interface ChatMessageAdapterProps extends AdapterProps {
|
|
|
131
131
|
* 已映射好的思维链节点(实时 SSE 场景可直接传入)
|
|
132
132
|
*/
|
|
133
133
|
thoughtChainNodes?: ThoughtNode[];
|
|
134
|
+
/**
|
|
135
|
+
* 思维链状态(数字类型)
|
|
136
|
+
* 4 表示思维链正在进行中,其他值表示思维链已经完成输出
|
|
137
|
+
*/
|
|
138
|
+
thoughtChainStatus?: number;
|
|
139
|
+
/**
|
|
140
|
+
* 是否开启思维链(后端字段 enableCot)
|
|
141
|
+
* 2026-01-06 新增:当 enableCot = 0 时,仍然展示「思考完成」下拉框,但只展示 businessType === "think" 的内容,
|
|
142
|
+
* 不展示时间轴 UI。
|
|
143
|
+
*/
|
|
144
|
+
enableCot?: number;
|
|
145
|
+
/**
|
|
146
|
+
* 思维链总耗时(毫秒),从后端 SSE 流中的 chainRespTime 字段获取
|
|
147
|
+
* 2026-01-06 新增:优先使用此值计算思维链用时,如果没有则回退到累加各节点的 respTime
|
|
148
|
+
*/
|
|
149
|
+
chainRespTime?: number;
|
|
134
150
|
}
|
|
135
151
|
/**
|
|
136
152
|
* 聊天消息适配器
|