@haklex/rich-renderer-mermaid 0.0.20 → 0.0.23
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.mjs +5 -4
- package/dist/mermaid-theme.d.ts.map +1 -1
- package/dist/rich-renderer-mermaid.css +1 -398
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -41,12 +41,13 @@ var editorFooter = "_36yqiey";
|
|
|
41
41
|
var footerActions = "_36yqie12";
|
|
42
42
|
var footerBtnCancel = "_36yqie14 _36yqie13";
|
|
43
43
|
var footerBtnSave = "_36yqie15 _36yqie13";
|
|
44
|
+
const MERMAID_FONT_SIZE = "0.875em";
|
|
44
45
|
const lightTheme = {
|
|
45
46
|
theme: "base",
|
|
46
47
|
themeVariables: {
|
|
47
48
|
background: "#ffffff",
|
|
48
49
|
fontFamily: "system-ui, sans-serif",
|
|
49
|
-
fontSize:
|
|
50
|
+
fontSize: MERMAID_FONT_SIZE,
|
|
50
51
|
primaryColor: "#f5f5f5",
|
|
51
52
|
primaryTextColor: "#0a0a0a",
|
|
52
53
|
primaryBorderColor: "#d4d4d4",
|
|
@@ -118,7 +119,7 @@ const lightTheme = {
|
|
|
118
119
|
pieTitleTextColor: "#0a0a0a",
|
|
119
120
|
pieSectionTextColor: "#ffffff",
|
|
120
121
|
pieLegendTextColor: "#0a0a0a",
|
|
121
|
-
pieLegendTextSize:
|
|
122
|
+
pieLegendTextSize: MERMAID_FONT_SIZE,
|
|
122
123
|
pieStrokeColor: "#ffffff",
|
|
123
124
|
pieStrokeWidth: "2px",
|
|
124
125
|
classText: "#0a0a0a",
|
|
@@ -164,7 +165,7 @@ const darkTheme = {
|
|
|
164
165
|
themeVariables: {
|
|
165
166
|
background: "#0a0a0a",
|
|
166
167
|
fontFamily: "system-ui, sans-serif",
|
|
167
|
-
fontSize:
|
|
168
|
+
fontSize: MERMAID_FONT_SIZE,
|
|
168
169
|
primaryColor: "#1a1a1a",
|
|
169
170
|
primaryTextColor: "#ededed",
|
|
170
171
|
primaryBorderColor: "#333333",
|
|
@@ -236,7 +237,7 @@ const darkTheme = {
|
|
|
236
237
|
pieTitleTextColor: "#ededed",
|
|
237
238
|
pieSectionTextColor: "#0a0a0a",
|
|
238
239
|
pieLegendTextColor: "#ededed",
|
|
239
|
-
pieLegendTextSize:
|
|
240
|
+
pieLegendTextSize: MERMAID_FONT_SIZE,
|
|
240
241
|
pieStrokeColor: "#0a0a0a",
|
|
241
242
|
pieStrokeWidth: "2px",
|
|
242
243
|
classText: "#ededed",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mermaid-theme.d.ts","sourceRoot":"","sources":["../src/mermaid-theme.ts"],"names":[],"mappings":"AAAA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;
|
|
1
|
+
{"version":3,"file":"mermaid-theme.d.ts","sourceRoot":"","sources":["../src/mermaid-theme.ts"],"names":[],"mappings":"AAAA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAID,eAAO,MAAM,UAAU,EAAE,kBAsIxB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,kBAsIvB,CAAA"}
|
|
@@ -1,398 +1 @@
|
|
|
1
|
-
@keyframes _36yqie5 {
|
|
2
|
-
to {
|
|
3
|
-
transform: rotate(360deg);
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
._36yqie0 {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: center;
|
|
10
|
-
margin: 1rem 0;
|
|
11
|
-
position: relative;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
cursor: grab;
|
|
14
|
-
}
|
|
15
|
-
._36yqie0:active {
|
|
16
|
-
cursor: grabbing;
|
|
17
|
-
}
|
|
18
|
-
._36yqie0 img {
|
|
19
|
-
max-width: 100%;
|
|
20
|
-
height: auto;
|
|
21
|
-
}
|
|
22
|
-
._36yqie1 {
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 8px;
|
|
25
|
-
right: 8px;
|
|
26
|
-
padding: 2px 8px;
|
|
27
|
-
border-radius: 4px;
|
|
28
|
-
font-size: 0.75rem;
|
|
29
|
-
color: var(--rc-text-secondary);
|
|
30
|
-
background-color: color-mix(in srgb, var(--rc-bg) 80%, transparent);
|
|
31
|
-
backdrop-filter: blur(4px);
|
|
32
|
-
opacity: 0;
|
|
33
|
-
transition: opacity 0.2s;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
z-index: 2;
|
|
36
|
-
}
|
|
37
|
-
._36yqie1:hover {
|
|
38
|
-
color: var(--rc-text);
|
|
39
|
-
background-color: color-mix(in srgb, var(--rc-bg) 95%, transparent);
|
|
40
|
-
}
|
|
41
|
-
._36yqie0:hover ._36yqie1 {
|
|
42
|
-
opacity: 1;
|
|
43
|
-
}
|
|
44
|
-
._36yqie2 {
|
|
45
|
-
position: absolute;
|
|
46
|
-
bottom: 8px;
|
|
47
|
-
right: 8px;
|
|
48
|
-
display: flex;
|
|
49
|
-
gap: 2px;
|
|
50
|
-
opacity: 0;
|
|
51
|
-
transition: opacity 0.2s;
|
|
52
|
-
z-index: 2;
|
|
53
|
-
}
|
|
54
|
-
._36yqie0:hover ._36yqie2 {
|
|
55
|
-
opacity: 1;
|
|
56
|
-
}
|
|
57
|
-
._36yqie3 {
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
width: 28px;
|
|
62
|
-
height: 28px;
|
|
63
|
-
border-radius: 0.25rem;
|
|
64
|
-
border: none;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
color: var(--rc-text-secondary);
|
|
67
|
-
background-color: color-mix(in srgb, var(--rc-bg) 80%, transparent);
|
|
68
|
-
backdrop-filter: blur(4px);
|
|
69
|
-
transition: color 0.15s, background-color 0.15s;
|
|
70
|
-
}
|
|
71
|
-
._36yqie3:hover {
|
|
72
|
-
color: var(--rc-text);
|
|
73
|
-
background-color: color-mix(in srgb, var(--rc-bg) 95%, transparent);
|
|
74
|
-
}
|
|
75
|
-
._36yqie4 {
|
|
76
|
-
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: center;
|
|
79
|
-
min-height: 80px;
|
|
80
|
-
color: var(--rc-text-secondary);
|
|
81
|
-
font-size: 0.875rem;
|
|
82
|
-
}
|
|
83
|
-
._36yqie4::after {
|
|
84
|
-
content: "";
|
|
85
|
-
display: inline-block;
|
|
86
|
-
width: 16px;
|
|
87
|
-
height: 16px;
|
|
88
|
-
margin-left: 8px;
|
|
89
|
-
border: 2px solid currentColor;
|
|
90
|
-
border-right-color: transparent;
|
|
91
|
-
border-radius: 50%;
|
|
92
|
-
animation: _36yqie5 0.6s linear infinite;
|
|
93
|
-
}
|
|
94
|
-
._36yqie6 {
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
min-height: 50px;
|
|
99
|
-
padding: 0.75rem 1rem;
|
|
100
|
-
border-radius: 0.5rem;
|
|
101
|
-
background-color: color-mix(in srgb, var(--rc-alert-caution) 10%, transparent);
|
|
102
|
-
color: var(--rc-alert-caution);
|
|
103
|
-
font-size: 0.875rem;
|
|
104
|
-
}
|
|
105
|
-
._36yqie7._36yqie7 {
|
|
106
|
-
padding: 0;
|
|
107
|
-
gap: 0;
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
overflow: hidden;
|
|
111
|
-
width: calc(100vw - 2rem);
|
|
112
|
-
height: min(680px, 85vh);
|
|
113
|
-
border-radius: 0.5rem;
|
|
114
|
-
}
|
|
115
|
-
._36yqie8 {
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: space-between;
|
|
119
|
-
padding: 0 1rem;
|
|
120
|
-
height: 48px;
|
|
121
|
-
border-bottom: 1px solid var(--rc-border);
|
|
122
|
-
flex-shrink: 0;
|
|
123
|
-
}
|
|
124
|
-
._36yqie9 {
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 0.75rem;
|
|
128
|
-
}
|
|
129
|
-
._36yqiea {
|
|
130
|
-
display: flex;
|
|
131
|
-
align-items: center;
|
|
132
|
-
gap: 4px;
|
|
133
|
-
}
|
|
134
|
-
._36yqieb {
|
|
135
|
-
width: 1px;
|
|
136
|
-
height: 16px;
|
|
137
|
-
background-color: var(--rc-border);
|
|
138
|
-
flex-shrink: 0;
|
|
139
|
-
}
|
|
140
|
-
._36yqiec {
|
|
141
|
-
display: flex;
|
|
142
|
-
align-items: center;
|
|
143
|
-
gap: 0.5rem;
|
|
144
|
-
font-size: 0.875rem;
|
|
145
|
-
font-weight: 500;
|
|
146
|
-
color: var(--rc-text);
|
|
147
|
-
}
|
|
148
|
-
._36yqied {
|
|
149
|
-
padding: 0.25rem 0.5rem;
|
|
150
|
-
font-size: 0.75rem;
|
|
151
|
-
color: var(--rc-text-secondary);
|
|
152
|
-
background: none;
|
|
153
|
-
border: none;
|
|
154
|
-
border-radius: 0.375rem;
|
|
155
|
-
cursor: pointer;
|
|
156
|
-
transition: color 0.15s, background-color 0.15s;
|
|
157
|
-
}
|
|
158
|
-
._36yqied:hover {
|
|
159
|
-
color: var(--rc-text);
|
|
160
|
-
background-color: color-mix(in srgb, var(--rc-text) 5%, transparent);
|
|
161
|
-
}
|
|
162
|
-
._36yqiee {
|
|
163
|
-
display: flex;
|
|
164
|
-
align-items: center;
|
|
165
|
-
background-color: color-mix(in srgb, var(--rc-text) 5%, transparent);
|
|
166
|
-
border-radius: 0.375rem;
|
|
167
|
-
padding: 2px;
|
|
168
|
-
margin-right: 4px;
|
|
169
|
-
}
|
|
170
|
-
._36yqief {
|
|
171
|
-
display: inline-flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
justify-content: center;
|
|
174
|
-
padding: 4px;
|
|
175
|
-
border-radius: 0.25rem;
|
|
176
|
-
border: none;
|
|
177
|
-
background: none;
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
color: var(--rc-text-secondary);
|
|
180
|
-
transition: color 0.15s, background-color 0.15s, box-shadow 0.15s;
|
|
181
|
-
}
|
|
182
|
-
._36yqief:hover {
|
|
183
|
-
color: var(--rc-text);
|
|
184
|
-
}
|
|
185
|
-
._36yqieg {
|
|
186
|
-
background-color: var(--rc-bg);
|
|
187
|
-
color: var(--rc-text);
|
|
188
|
-
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
|
|
189
|
-
}
|
|
190
|
-
._36yqieh {
|
|
191
|
-
display: inline-flex;
|
|
192
|
-
align-items: center;
|
|
193
|
-
justify-content: center;
|
|
194
|
-
width: 28px;
|
|
195
|
-
height: 28px;
|
|
196
|
-
border-radius: 0.25rem;
|
|
197
|
-
border: none;
|
|
198
|
-
background: none;
|
|
199
|
-
cursor: pointer;
|
|
200
|
-
color: var(--rc-text-secondary);
|
|
201
|
-
transition: color 0.15s, background-color 0.15s;
|
|
202
|
-
}
|
|
203
|
-
._36yqieh:hover {
|
|
204
|
-
color: var(--rc-text);
|
|
205
|
-
background-color: color-mix(in srgb, var(--rc-text) 5%, transparent);
|
|
206
|
-
}
|
|
207
|
-
._36yqiei {
|
|
208
|
-
display: flex;
|
|
209
|
-
flex: 1;
|
|
210
|
-
min-height: 0;
|
|
211
|
-
}
|
|
212
|
-
._36yqiej {
|
|
213
|
-
display: flex;
|
|
214
|
-
flex-direction: column;
|
|
215
|
-
border-right: 1px solid var(--rc-border);
|
|
216
|
-
}
|
|
217
|
-
._36yqiek {
|
|
218
|
-
width: 50%;
|
|
219
|
-
}
|
|
220
|
-
._36yqiel {
|
|
221
|
-
flex: 1;
|
|
222
|
-
}
|
|
223
|
-
._36yqiem {
|
|
224
|
-
display: flex;
|
|
225
|
-
align-items: center;
|
|
226
|
-
padding: 0 0.75rem;
|
|
227
|
-
height: 32px;
|
|
228
|
-
border-bottom: 1px solid var(--rc-border);
|
|
229
|
-
background-color: color-mix(in srgb, var(--rc-text) 2%, transparent);
|
|
230
|
-
flex-shrink: 0;
|
|
231
|
-
font-size: 0.6875rem;
|
|
232
|
-
font-weight: 500;
|
|
233
|
-
color: var(--rc-text-secondary);
|
|
234
|
-
text-transform: uppercase;
|
|
235
|
-
letter-spacing: 0.05em;
|
|
236
|
-
}
|
|
237
|
-
._36yqien {
|
|
238
|
-
display: flex;
|
|
239
|
-
flex-direction: column;
|
|
240
|
-
flex: 1;
|
|
241
|
-
}
|
|
242
|
-
._36yqieo {
|
|
243
|
-
display: flex;
|
|
244
|
-
flex: 1;
|
|
245
|
-
min-height: 0;
|
|
246
|
-
align-items: center;
|
|
247
|
-
justify-content: center;
|
|
248
|
-
position: relative;
|
|
249
|
-
overflow: hidden;
|
|
250
|
-
cursor: grab;
|
|
251
|
-
}
|
|
252
|
-
._36yqieo:active {
|
|
253
|
-
cursor: grabbing;
|
|
254
|
-
}
|
|
255
|
-
._36yqieo:hover ._36yqie2 {
|
|
256
|
-
opacity: 1;
|
|
257
|
-
}
|
|
258
|
-
._36yqieo img {
|
|
259
|
-
max-width: 100%;
|
|
260
|
-
height: auto;
|
|
261
|
-
}
|
|
262
|
-
._36yqiep {
|
|
263
|
-
font-size: 0.875rem;
|
|
264
|
-
color: color-mix(in srgb, var(--rc-text-secondary) 50%, transparent);
|
|
265
|
-
}
|
|
266
|
-
._36yqieq {
|
|
267
|
-
display: flex;
|
|
268
|
-
flex-direction: column;
|
|
269
|
-
align-items: center;
|
|
270
|
-
gap: 0.75rem;
|
|
271
|
-
max-width: 320px;
|
|
272
|
-
text-align: center;
|
|
273
|
-
}
|
|
274
|
-
._36yqier {
|
|
275
|
-
display: inline-flex;
|
|
276
|
-
align-items: center;
|
|
277
|
-
justify-content: center;
|
|
278
|
-
width: 32px;
|
|
279
|
-
height: 32px;
|
|
280
|
-
border-radius: 0.375rem;
|
|
281
|
-
background-color: color-mix(in srgb, var(--rc-alert-caution) 10%, transparent);
|
|
282
|
-
color: var(--rc-alert-caution);
|
|
283
|
-
}
|
|
284
|
-
._36yqies {
|
|
285
|
-
font-size: 0.875rem;
|
|
286
|
-
font-weight: 500;
|
|
287
|
-
color: var(--rc-text);
|
|
288
|
-
}
|
|
289
|
-
._36yqiet {
|
|
290
|
-
font-size: 0.75rem;
|
|
291
|
-
color: var(--rc-text-secondary);
|
|
292
|
-
line-height: 1.5;
|
|
293
|
-
display: -webkit-box;
|
|
294
|
-
-webkit-line-clamp: 3;
|
|
295
|
-
-webkit-box-orient: vertical;
|
|
296
|
-
overflow: hidden;
|
|
297
|
-
}
|
|
298
|
-
._36yqieu {
|
|
299
|
-
position: relative;
|
|
300
|
-
display: flex;
|
|
301
|
-
flex: 1;
|
|
302
|
-
min-height: 0;
|
|
303
|
-
overflow: hidden;
|
|
304
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
305
|
-
font-size: 0.8125rem;
|
|
306
|
-
line-height: 1.25rem;
|
|
307
|
-
}
|
|
308
|
-
._36yqiev {
|
|
309
|
-
flex-shrink: 0;
|
|
310
|
-
width: 40px;
|
|
311
|
-
overflow: hidden;
|
|
312
|
-
user-select: none;
|
|
313
|
-
border-right: 1px solid var(--rc-border);
|
|
314
|
-
background-color: color-mix(in srgb, var(--rc-text) 2%, transparent);
|
|
315
|
-
padding: 0.75rem 0;
|
|
316
|
-
}
|
|
317
|
-
._36yqiew {
|
|
318
|
-
padding: 0 0.5rem;
|
|
319
|
-
text-align: right;
|
|
320
|
-
line-height: 1.25rem;
|
|
321
|
-
color: color-mix(in srgb, var(--rc-text-secondary) 40%, transparent);
|
|
322
|
-
}
|
|
323
|
-
._36yqiex {
|
|
324
|
-
flex: 1;
|
|
325
|
-
resize: none;
|
|
326
|
-
background-color: transparent;
|
|
327
|
-
padding: 0.75rem;
|
|
328
|
-
color: var(--rc-text);
|
|
329
|
-
outline: none;
|
|
330
|
-
border: none;
|
|
331
|
-
line-height: 1.25rem;
|
|
332
|
-
font-family: inherit;
|
|
333
|
-
font-size: inherit;
|
|
334
|
-
tab-size: 2;
|
|
335
|
-
}
|
|
336
|
-
._36yqiex::placeholder {
|
|
337
|
-
color: color-mix(in srgb, var(--rc-text-secondary) 40%, transparent);
|
|
338
|
-
}
|
|
339
|
-
._36yqiey {
|
|
340
|
-
display: flex;
|
|
341
|
-
align-items: center;
|
|
342
|
-
justify-content: flex-end;
|
|
343
|
-
padding: 0 1rem;
|
|
344
|
-
height: 44px;
|
|
345
|
-
border-top: 1px solid var(--rc-border);
|
|
346
|
-
flex-shrink: 0;
|
|
347
|
-
background-color: color-mix(in srgb, var(--rc-text) 1.5%, transparent);
|
|
348
|
-
}
|
|
349
|
-
._36yqiez {
|
|
350
|
-
display: flex;
|
|
351
|
-
align-items: center;
|
|
352
|
-
gap: 0.5rem;
|
|
353
|
-
}
|
|
354
|
-
._36yqie10 {
|
|
355
|
-
width: 6px;
|
|
356
|
-
height: 6px;
|
|
357
|
-
border-radius: 50%;
|
|
358
|
-
background-color: var(--rc-alert-tip);
|
|
359
|
-
}
|
|
360
|
-
._36yqie11 {
|
|
361
|
-
font-size: 0.6875rem;
|
|
362
|
-
color: var(--rc-text-secondary);
|
|
363
|
-
}
|
|
364
|
-
._36yqie12 {
|
|
365
|
-
display: flex;
|
|
366
|
-
align-items: center;
|
|
367
|
-
gap: 0.5rem;
|
|
368
|
-
}
|
|
369
|
-
._36yqie13 {
|
|
370
|
-
padding: 0.25rem 0.75rem;
|
|
371
|
-
border-radius: 0.375rem;
|
|
372
|
-
font-size: 0.75rem;
|
|
373
|
-
font-weight: 500;
|
|
374
|
-
cursor: pointer;
|
|
375
|
-
height: 28px;
|
|
376
|
-
transition: background-color 0.15s, border-color 0.15s;
|
|
377
|
-
}
|
|
378
|
-
._36yqie14 {
|
|
379
|
-
background-color: transparent;
|
|
380
|
-
color: var(--rc-text-secondary);
|
|
381
|
-
border: 1px solid var(--rc-border);
|
|
382
|
-
}
|
|
383
|
-
._36yqie14:hover {
|
|
384
|
-
background-color: color-mix(in srgb, var(--rc-text) 4%, transparent);
|
|
385
|
-
}
|
|
386
|
-
._36yqie15 {
|
|
387
|
-
background-color: var(--rc-text);
|
|
388
|
-
color: var(--rc-bg);
|
|
389
|
-
border: 1px solid transparent;
|
|
390
|
-
}
|
|
391
|
-
._36yqie15:hover {
|
|
392
|
-
background-color: color-mix(in srgb, var(--rc-text) 85%, transparent);
|
|
393
|
-
}
|
|
394
|
-
@media (min-width: 640px) {
|
|
395
|
-
._36yqie7._36yqie7 {
|
|
396
|
-
max-width: 64rem;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
1
|
+
@keyframes _36yqie5{to{transform:rotate(360deg)}}._36yqie0{display:flex;flex-direction:column;align-items:center;margin:1rem 0;position:relative;overflow:hidden;cursor:grab}._36yqie0:active{cursor:grabbing}._36yqie0 img{max-width:100%;height:auto}._36yqie1{position:absolute;top:8px;right:8px;padding:2px 8px;border-radius:4px;font-size:var(--rc-font-size-xs);color:var(--rc-text-secondary);background-color:color-mix(in srgb,var(--rc-bg) 80%,transparent);backdrop-filter:blur(4px);opacity:0;transition:opacity .2s;cursor:pointer;z-index:2}._36yqie1:hover{color:var(--rc-text);background-color:color-mix(in srgb,var(--rc-bg) 95%,transparent)}._36yqie0:hover ._36yqie1{opacity:1}._36yqie2{position:absolute;bottom:8px;right:8px;display:flex;gap:2px;opacity:0;transition:opacity .2s;z-index:2}._36yqie0:hover ._36yqie2{opacity:1}._36yqie3{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:.25rem;border:none;cursor:pointer;color:var(--rc-text-secondary);background-color:color-mix(in srgb,var(--rc-bg) 80%,transparent);backdrop-filter:blur(4px);transition:color .15s,background-color .15s}._36yqie3:hover{color:var(--rc-text);background-color:color-mix(in srgb,var(--rc-bg) 95%,transparent)}._36yqie4{display:flex;align-items:center;justify-content:center;min-height:80px;color:var(--rc-text-secondary);font-size:var(--rc-font-size-md)}._36yqie4:after{content:"";display:inline-block;width:16px;height:16px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:_36yqie5 .6s linear infinite}._36yqie6{display:flex;align-items:center;justify-content:center;min-height:50px;padding:.75rem 1rem;border-radius:.5rem;background-color:color-mix(in srgb,var(--rc-alert-caution) 10%,transparent);color:var(--rc-alert-caution);font-size:var(--rc-font-size-md)}._36yqie7._36yqie7{padding:0;gap:0;display:flex;flex-direction:column;overflow:hidden;width:calc(100vw - 2rem);height:min(680px,85vh);border-radius:.5rem}._36yqie8{display:flex;align-items:center;justify-content:space-between;padding:0 1rem;height:48px;border-bottom:1px solid var(--rc-border);flex-shrink:0}._36yqie9{display:flex;align-items:center;gap:.75rem}._36yqiea{display:flex;align-items:center;gap:4px}._36yqieb{width:1px;height:16px;background-color:var(--rc-border);flex-shrink:0}._36yqiec{display:flex;align-items:center;gap:.5rem;font-size:var(--rc-font-size-md);font-weight:500;color:var(--rc-text)}._36yqied{padding:.25rem .5rem;font-size:var(--rc-font-size-xs);color:var(--rc-text-secondary);background:none;border:none;border-radius:.375rem;cursor:pointer;transition:color .15s,background-color .15s}._36yqied:hover{color:var(--rc-text);background-color:color-mix(in srgb,var(--rc-text) 5%,transparent)}._36yqiee{display:flex;align-items:center;background-color:color-mix(in srgb,var(--rc-text) 5%,transparent);border-radius:.375rem;padding:2px;margin-right:4px}._36yqief{display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:.25rem;border:none;background:none;cursor:pointer;color:var(--rc-text-secondary);transition:color .15s,background-color .15s,box-shadow .15s}._36yqief:hover{color:var(--rc-text)}._36yqieg{background-color:var(--rc-bg);color:var(--rc-text);box-shadow:0 1px 2px #0000000d}._36yqieh{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:.25rem;border:none;background:none;cursor:pointer;color:var(--rc-text-secondary);transition:color .15s,background-color .15s}._36yqieh:hover{color:var(--rc-text);background-color:color-mix(in srgb,var(--rc-text) 5%,transparent)}._36yqiei{display:flex;flex:1;min-height:0}._36yqiej{display:flex;flex-direction:column;border-right:1px solid var(--rc-border)}._36yqiek{width:50%}._36yqiel{flex:1}._36yqiem{display:flex;align-items:center;padding:0 .75rem;height:32px;border-bottom:1px solid var(--rc-border);background-color:color-mix(in srgb,var(--rc-text) 2%,transparent);flex-shrink:0;font-size:var(--rc-font-size-xs);font-weight:500;color:var(--rc-text-secondary);text-transform:uppercase;letter-spacing:.05em}._36yqien{display:flex;flex-direction:column;flex:1}._36yqieo{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;position:relative;overflow:hidden;cursor:grab}._36yqieo:active{cursor:grabbing}._36yqieo:hover ._36yqie2{opacity:1}._36yqieo img{max-width:100%;height:auto}._36yqiep{font-size:var(--rc-font-size-md);color:color-mix(in srgb,var(--rc-text-secondary) 50%,transparent)}._36yqieq{display:flex;flex-direction:column;align-items:center;gap:.75rem;max-width:320px;text-align:center}._36yqier{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:.375rem;background-color:color-mix(in srgb,var(--rc-alert-caution) 10%,transparent);color:var(--rc-alert-caution)}._36yqies{font-size:var(--rc-font-size-md);font-weight:500;color:var(--rc-text)}._36yqiet{font-size:var(--rc-font-size-xs);color:var(--rc-text-secondary);line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}._36yqieu{position:relative;display:flex;flex:1;min-height:0;overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:var(--rc-font-size-sm);line-height:1.25rem}._36yqiev{flex-shrink:0;width:40px;overflow:hidden;user-select:none;border-right:1px solid var(--rc-border);background-color:color-mix(in srgb,var(--rc-text) 2%,transparent);padding:.75rem 0}._36yqiew{padding:0 .5rem;text-align:right;line-height:1.25rem;color:color-mix(in srgb,var(--rc-text-secondary) 40%,transparent)}._36yqiex{flex:1;resize:none;background-color:transparent;padding:.75rem;color:var(--rc-text);outline:none;border:none;line-height:1.25rem;font-family:inherit;font-size:inherit;tab-size:2}._36yqiex::placeholder{color:color-mix(in srgb,var(--rc-text-secondary) 40%,transparent)}._36yqiey{display:flex;align-items:center;justify-content:flex-end;padding:0 1rem;height:44px;border-top:1px solid var(--rc-border);flex-shrink:0;background-color:color-mix(in srgb,var(--rc-text) 1.5%,transparent)}._36yqiez{display:flex;align-items:center;gap:.5rem}._36yqie10{width:6px;height:6px;border-radius:50%;background-color:var(--rc-alert-tip)}._36yqie11{font-size:var(--rc-font-size-xs);color:var(--rc-text-secondary)}._36yqie12{display:flex;align-items:center;gap:.5rem}._36yqie13{padding:.25rem .75rem;border-radius:.375rem;font-size:var(--rc-font-size-xs);font-weight:500;cursor:pointer;height:28px;transition:background-color .15s,border-color .15s}._36yqie14{background-color:transparent;color:var(--rc-text-secondary);border:1px solid var(--rc-border)}._36yqie14:hover{background-color:color-mix(in srgb,var(--rc-text) 4%,transparent)}._36yqie15{background-color:var(--rc-text);color:var(--rc-bg);border:1px solid transparent}._36yqie15:hover{background-color:color-mix(in srgb,var(--rc-text) 85%,transparent)}@media(min-width:640px){._36yqie7._36yqie7{max-width:64rem}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderer-mermaid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "Mermaid diagram renderer",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"lucide-react": "^0.574.0",
|
|
20
20
|
"mermaid": "^11.12.3",
|
|
21
21
|
"react-zoom-pan-pinch": "^3.7.0",
|
|
22
|
-
"@haklex/rich-editor": "0.0.
|
|
23
|
-
"@haklex/rich-
|
|
24
|
-
"@haklex/rich-
|
|
22
|
+
"@haklex/rich-editor": "0.0.23",
|
|
23
|
+
"@haklex/rich-editor-ui": "0.0.23",
|
|
24
|
+
"@haklex/rich-style-token": "0.0.23"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "^19.2.14",
|