@mxmweb/rtext 1.3.0 → 1.3.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/README.md +15 -2
- package/assets/style.css +1 -1
- package/index.js +7 -2
- package/mockserverdata.d.ts +5 -5
- package/package.json +1 -1
- package/stats.html +1 -1
package/index.js
CHANGED
|
@@ -25668,10 +25668,15 @@ const t6 = Dt.div`
|
|
|
25668
25668
|
.message-text {
|
|
25669
25669
|
width: 100%;
|
|
25670
25670
|
line-height: 1.6;
|
|
25671
|
-
|
|
25671
|
+
white-space: pre-wrap !important; /* 保留换行和空格格式,使用 !important 确保优先级 */
|
|
25672
25672
|
border-radius: 0.5rem;
|
|
25673
25673
|
min-height: ${(e) => e.$isUser ? "auto" : "40px"};
|
|
25674
25674
|
font-size: 0.875rem;
|
|
25675
|
+
|
|
25676
|
+
/* 确保子元素也继承 white-space 属性 */
|
|
25677
|
+
& > * {
|
|
25678
|
+
white-space: pre-wrap !important;
|
|
25679
|
+
}
|
|
25675
25680
|
}
|
|
25676
25681
|
}
|
|
25677
25682
|
`, s6 = Dt.div`
|
|
@@ -27302,7 +27307,7 @@ const t6 = Dt.div`
|
|
|
27302
27307
|
},
|
|
27303
27308
|
`md-${(ct || "").length}-think-${De}`
|
|
27304
27309
|
)
|
|
27305
|
-
] }) : /* @__PURE__ */ N.jsx("div", { children: yr }) }) }) }),
|
|
27310
|
+
] }) : /* @__PURE__ */ N.jsx("div", { style: { whiteSpace: "pre-wrap" }, children: yr }) }) }) }),
|
|
27306
27311
|
ia(),
|
|
27307
27312
|
Ur(),
|
|
27308
27313
|
!c && Cr(),
|
package/mockserverdata.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export declare const mockServerData: {
|
|
|
27
27
|
type: string;
|
|
28
28
|
reference: string;
|
|
29
29
|
webReference: string;
|
|
30
|
-
graphReference: string;
|
|
31
30
|
queryId: string;
|
|
32
31
|
feedbackResult: null;
|
|
33
32
|
feedbackId: null;
|
|
@@ -37,6 +36,7 @@ export declare const mockServerData: {
|
|
|
37
36
|
resultType: number;
|
|
38
37
|
respTime: number;
|
|
39
38
|
tokens: number;
|
|
39
|
+
graphReference?: undefined;
|
|
40
40
|
databaseReference?: undefined;
|
|
41
41
|
};
|
|
42
42
|
} | {
|
|
@@ -57,6 +57,7 @@ export declare const mockServerData: {
|
|
|
57
57
|
type: string;
|
|
58
58
|
reference: string;
|
|
59
59
|
webReference: string;
|
|
60
|
+
graphReference: string;
|
|
60
61
|
queryId: string;
|
|
61
62
|
feedbackResult: null;
|
|
62
63
|
feedbackId: null;
|
|
@@ -65,9 +66,8 @@ export declare const mockServerData: {
|
|
|
65
66
|
llmType: number;
|
|
66
67
|
resultType: number;
|
|
67
68
|
respTime: number;
|
|
68
|
-
databaseReference: string;
|
|
69
69
|
tokens: number;
|
|
70
|
-
|
|
70
|
+
databaseReference?: undefined;
|
|
71
71
|
};
|
|
72
72
|
} | {
|
|
73
73
|
query: {
|
|
@@ -95,7 +95,7 @@ export declare const mockServerData: {
|
|
|
95
95
|
llmType: number;
|
|
96
96
|
resultType: number;
|
|
97
97
|
respTime: number;
|
|
98
|
-
databaseReference:
|
|
98
|
+
databaseReference: string;
|
|
99
99
|
tokens: number;
|
|
100
100
|
graphReference?: undefined;
|
|
101
101
|
};
|
|
@@ -125,9 +125,9 @@ export declare const mockServerData: {
|
|
|
125
125
|
llmType: number;
|
|
126
126
|
resultType: number;
|
|
127
127
|
respTime: number;
|
|
128
|
+
databaseReference: null;
|
|
128
129
|
tokens: number;
|
|
129
130
|
graphReference?: undefined;
|
|
130
|
-
databaseReference?: undefined;
|
|
131
131
|
};
|
|
132
132
|
})[];
|
|
133
133
|
searchConfigDTO: {
|