@mxmweb/rtext 1.7.5 → 1.7.7
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 +9 -0
- package/assets/style.css +1 -1
- package/hooks/useRtextViewportMobile.d.ts +6 -0
- package/index.js +6721 -6675
- package/mockserverdata.d.ts +63 -0
- package/package.json +1 -1
- package/stats.html +1 -1
|
@@ -152,6 +152,15 @@ export interface ChatMessageAdapterProps extends AdapterProps {
|
|
|
152
152
|
* 是否启用 PrismJS 语法高亮(默认 false,使用普通代码块样式)
|
|
153
153
|
*/
|
|
154
154
|
enablePrism?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* 消息区响应式:desktop | mobile | auto(matchMedia 与 breakpoint 配合)。
|
|
157
|
+
* 默认 desktop,不破坏既有行为。2026-04-02 新增
|
|
158
|
+
*/
|
|
159
|
+
renderMode?: 'desktop' | 'mobile' | 'auto';
|
|
160
|
+
/** 与 renderMode=auto 配合,默认 768 */
|
|
161
|
+
breakpoint?: number;
|
|
162
|
+
/** 紧凑排版(可与窄视口叠加,减小卡片内边距等) */
|
|
163
|
+
dense?: boolean;
|
|
155
164
|
}
|
|
156
165
|
/**
|
|
157
166
|
* 聊天消息适配器
|