@haklex/rich-ext-code-snippet 0.0.2 → 0.0.4
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/CodeEditorModal.d.ts.map +1 -1
- package/dist/CodeSnippetRenderer.d.ts.map +1 -1
- package/dist/FileIcon.d.ts.map +1 -1
- package/dist/index.mjs +394 -4644
- package/dist/rich-ext-code-snippet.css +82 -78
- package/dist/styles.css.d.ts +98 -0
- package/dist/styles.css.d.ts.map +1 -1
- package/package.json +8 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.hjkryc0 {
|
|
2
2
|
position: relative;
|
|
3
3
|
border-radius: 0.5rem;
|
|
4
4
|
overflow: hidden;
|
|
@@ -6,24 +6,24 @@
|
|
|
6
6
|
background: var(--rc-code-bg);
|
|
7
7
|
font-size: 0.875rem;
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.hjkryc1 {
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: space-between;
|
|
13
13
|
padding: 0 12px;
|
|
14
14
|
min-height: 40px;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.hjkryc2 {
|
|
17
17
|
display: flex;
|
|
18
18
|
align-items: center;
|
|
19
19
|
gap: 2px;
|
|
20
20
|
overflow-x: auto;
|
|
21
21
|
scrollbar-width: none;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.hjkryc2::-webkit-scrollbar {
|
|
24
24
|
display: none;
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.hjkryc3 {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: center;
|
|
29
29
|
gap: 6px;
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
flex-shrink: 0;
|
|
41
41
|
transition: color 0.15s, background 0.15s;
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.hjkryc3:hover {
|
|
44
44
|
color: var(--rc-text);
|
|
45
45
|
background: color-mix(in srgb, var(--rc-text) 5%, transparent);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.hjkryc5 {
|
|
48
48
|
color: var(--rc-text);
|
|
49
49
|
background: color-mix(in srgb, var(--rc-text) 8%, transparent);
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.hjkryc7 {
|
|
52
52
|
display: flex;
|
|
53
53
|
align-items: center;
|
|
54
54
|
gap: 6px;
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
font-weight: 500;
|
|
59
59
|
color: var(--rc-text-secondary);
|
|
60
60
|
}
|
|
61
|
-
.
|
|
61
|
+
.hjkryc8 {
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
opacity: 0;
|
|
65
65
|
transition: opacity 0.15s;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.hjkryc0:hover .hjkryc8 {
|
|
68
68
|
opacity: 1;
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.hjkryc9 {
|
|
71
71
|
display: inline-flex;
|
|
72
72
|
align-items: center;
|
|
73
73
|
justify-content: center;
|
|
@@ -80,44 +80,44 @@
|
|
|
80
80
|
cursor: pointer;
|
|
81
81
|
transition: background 0.15s, color 0.15s;
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
.hjkryc9:hover {
|
|
84
84
|
background: color-mix(in srgb, var(--rc-text) 8%, transparent);
|
|
85
85
|
color: var(--rc-text);
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
.hjkryca {
|
|
88
88
|
height: 1px;
|
|
89
89
|
background: var(--rc-border);
|
|
90
90
|
opacity: 0.6;
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
.hjkrycb {
|
|
93
93
|
overflow-x: auto;
|
|
94
94
|
}
|
|
95
|
-
.
|
|
95
|
+
.hjkrycc {
|
|
96
96
|
padding: 12px 16px;
|
|
97
97
|
margin: 0;
|
|
98
98
|
font-size: 0.8125rem;
|
|
99
99
|
line-height: 1.7;
|
|
100
100
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.hjkrycc pre {
|
|
103
103
|
margin: 0;
|
|
104
104
|
background: transparent !important;
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.hjkrycc code {
|
|
107
107
|
font-family: inherit;
|
|
108
108
|
}
|
|
109
|
-
.
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-
|
|
109
|
+
.hjkrycd {
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
flex-shrink: 0;
|
|
112
112
|
}
|
|
113
|
-
.
|
|
113
|
+
.hjkrycd svg {
|
|
114
114
|
width: 100%;
|
|
115
115
|
height: 100%;
|
|
116
116
|
}
|
|
117
|
-
.
|
|
117
|
+
.hjkryce {
|
|
118
118
|
position: relative;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
.hjkrycf {
|
|
121
121
|
position: absolute;
|
|
122
122
|
inset: 0;
|
|
123
123
|
z-index: 5;
|
|
@@ -128,10 +128,10 @@
|
|
|
128
128
|
background: transparent;
|
|
129
129
|
border: none;
|
|
130
130
|
}
|
|
131
|
-
.
|
|
131
|
+
.hjkrycf:hover {
|
|
132
132
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
133
133
|
}
|
|
134
|
-
.
|
|
134
|
+
.hjkrycg {
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: center;
|
|
137
137
|
gap: 6px;
|
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
opacity: 0;
|
|
146
146
|
transition: opacity 0.2s;
|
|
147
147
|
}
|
|
148
|
-
.
|
|
148
|
+
.hjkryce:hover .hjkrycg {
|
|
149
149
|
opacity: 1;
|
|
150
150
|
}
|
|
151
|
-
.
|
|
151
|
+
.hjkrych.hjkrych {
|
|
152
152
|
padding: 0;
|
|
153
153
|
gap: 0;
|
|
154
154
|
display: flex;
|
|
@@ -158,20 +158,20 @@
|
|
|
158
158
|
height: min(720px, 80vh);
|
|
159
159
|
border-radius: 0.75rem;
|
|
160
160
|
}
|
|
161
|
-
.
|
|
161
|
+
.hjkrych.hjkrych[data-open] {
|
|
162
162
|
animation: none;
|
|
163
163
|
}
|
|
164
|
-
.
|
|
164
|
+
.hjkrych.hjkrych[data-closed] {
|
|
165
165
|
animation: none;
|
|
166
166
|
}
|
|
167
|
-
.
|
|
167
|
+
.hjkryci {
|
|
168
168
|
display: flex;
|
|
169
169
|
flex-direction: column;
|
|
170
170
|
flex: 1;
|
|
171
171
|
min-height: 0;
|
|
172
172
|
overflow: hidden;
|
|
173
173
|
}
|
|
174
|
-
.
|
|
174
|
+
.hjkrycj {
|
|
175
175
|
display: flex;
|
|
176
176
|
align-items: center;
|
|
177
177
|
justify-content: space-between;
|
|
@@ -180,12 +180,12 @@
|
|
|
180
180
|
border-bottom: 1px solid var(--rc-border);
|
|
181
181
|
flex-shrink: 0;
|
|
182
182
|
}
|
|
183
|
-
.
|
|
183
|
+
.hjkryck {
|
|
184
184
|
font-size: 0.75rem;
|
|
185
185
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
186
186
|
color: var(--rc-text-secondary);
|
|
187
187
|
}
|
|
188
|
-
.
|
|
188
|
+
.hjkrycl {
|
|
189
189
|
display: inline-flex;
|
|
190
190
|
align-items: center;
|
|
191
191
|
justify-content: center;
|
|
@@ -198,16 +198,16 @@
|
|
|
198
198
|
cursor: pointer;
|
|
199
199
|
transition: background 0.15s, color 0.15s;
|
|
200
200
|
}
|
|
201
|
-
.
|
|
201
|
+
.hjkrycl:hover {
|
|
202
202
|
background: color-mix(in srgb, var(--rc-text) 8%, transparent);
|
|
203
203
|
color: var(--rc-text);
|
|
204
204
|
}
|
|
205
|
-
.
|
|
205
|
+
.hjkrycm {
|
|
206
206
|
display: flex;
|
|
207
207
|
flex: 1;
|
|
208
208
|
min-height: 0;
|
|
209
209
|
}
|
|
210
|
-
.
|
|
210
|
+
.hjkrycn {
|
|
211
211
|
width: 224px;
|
|
212
212
|
flex-shrink: 0;
|
|
213
213
|
border-right: 1px solid var(--rc-border);
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
flex-direction: column;
|
|
216
216
|
overflow: hidden;
|
|
217
217
|
}
|
|
218
|
-
.
|
|
218
|
+
.hjkryco {
|
|
219
219
|
display: flex;
|
|
220
220
|
align-items: center;
|
|
221
221
|
justify-content: space-between;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
letter-spacing: 0.05em;
|
|
227
227
|
color: color-mix(in srgb, var(--rc-text-secondary) 60%, transparent);
|
|
228
228
|
}
|
|
229
|
-
.
|
|
229
|
+
.hjkrycp {
|
|
230
230
|
display: inline-flex;
|
|
231
231
|
align-items: center;
|
|
232
232
|
justify-content: center;
|
|
@@ -239,16 +239,16 @@
|
|
|
239
239
|
cursor: pointer;
|
|
240
240
|
transition: background 0.15s, color 0.15s;
|
|
241
241
|
}
|
|
242
|
-
.
|
|
242
|
+
.hjkrycp:hover {
|
|
243
243
|
background: color-mix(in srgb, var(--rc-text) 8%, transparent);
|
|
244
244
|
color: var(--rc-text);
|
|
245
245
|
}
|
|
246
|
-
.
|
|
246
|
+
.hjkrycq {
|
|
247
247
|
flex: 1;
|
|
248
248
|
overflow-y: auto;
|
|
249
249
|
padding: 0 6px 8px;
|
|
250
250
|
}
|
|
251
|
-
.
|
|
251
|
+
.hjkrycr {
|
|
252
252
|
display: flex;
|
|
253
253
|
align-items: center;
|
|
254
254
|
gap: 4px;
|
|
@@ -261,7 +261,18 @@
|
|
|
261
261
|
color: var(--rc-text-secondary);
|
|
262
262
|
transition: background 0.15s, color 0.15s;
|
|
263
263
|
}
|
|
264
|
-
.
|
|
264
|
+
.hjkrycr:hover {
|
|
265
|
+
background: color-mix(in srgb, var(--rc-text) 5%, transparent);
|
|
266
|
+
color: var(--rc-text);
|
|
267
|
+
}
|
|
268
|
+
.hjkryct {
|
|
269
|
+
background: color-mix(in srgb, var(--rc-text) 8%, transparent);
|
|
270
|
+
color: var(--rc-text);
|
|
271
|
+
}
|
|
272
|
+
.hjkrycv {
|
|
273
|
+
opacity: 0.4;
|
|
274
|
+
}
|
|
275
|
+
.hjkrycx {
|
|
265
276
|
display: inline-flex;
|
|
266
277
|
align-items: center;
|
|
267
278
|
cursor: grab;
|
|
@@ -269,24 +280,16 @@
|
|
|
269
280
|
flex-shrink: 0;
|
|
270
281
|
touch-action: none;
|
|
271
282
|
}
|
|
272
|
-
.
|
|
283
|
+
.hjkrycx:active {
|
|
273
284
|
cursor: grabbing;
|
|
274
285
|
}
|
|
275
|
-
.
|
|
276
|
-
background: color-mix(in srgb, var(--rc-text) 5%, transparent);
|
|
277
|
-
color: var(--rc-text);
|
|
278
|
-
}
|
|
279
|
-
.rcs-file-item-active {
|
|
280
|
-
background: color-mix(in srgb, var(--rc-text) 8%, transparent);
|
|
281
|
-
color: var(--rc-text);
|
|
282
|
-
}
|
|
283
|
-
.rcs-file-name {
|
|
286
|
+
.hjkrycy {
|
|
284
287
|
flex: 1;
|
|
285
288
|
overflow: hidden;
|
|
286
289
|
text-overflow: ellipsis;
|
|
287
290
|
white-space: nowrap;
|
|
288
291
|
}
|
|
289
|
-
.
|
|
292
|
+
.hjkrycz {
|
|
290
293
|
display: none;
|
|
291
294
|
align-items: center;
|
|
292
295
|
justify-content: center;
|
|
@@ -299,14 +302,14 @@
|
|
|
299
302
|
cursor: pointer;
|
|
300
303
|
flex-shrink: 0;
|
|
301
304
|
}
|
|
302
|
-
.
|
|
305
|
+
.hjkrycr:hover .hjkrycz {
|
|
303
306
|
display: inline-flex;
|
|
304
307
|
}
|
|
305
|
-
.
|
|
308
|
+
.hjkrycz:hover {
|
|
306
309
|
color: var(--rc-alert-caution);
|
|
307
310
|
background: color-mix(in srgb, var(--rc-alert-caution) 10%, transparent);
|
|
308
311
|
}
|
|
309
|
-
.
|
|
312
|
+
.hjkryc10 {
|
|
310
313
|
flex: 1;
|
|
311
314
|
min-width: 0;
|
|
312
315
|
padding: 1px 4px;
|
|
@@ -318,16 +321,16 @@
|
|
|
318
321
|
color: var(--rc-text);
|
|
319
322
|
outline: none;
|
|
320
323
|
}
|
|
321
|
-
.
|
|
324
|
+
.hjkryc10:focus {
|
|
322
325
|
border-color: color-mix(in srgb, var(--rc-text) 30%, transparent);
|
|
323
326
|
}
|
|
324
|
-
.
|
|
327
|
+
.hjkryc11 {
|
|
325
328
|
flex: 1;
|
|
326
329
|
display: flex;
|
|
327
330
|
flex-direction: column;
|
|
328
331
|
min-width: 0;
|
|
329
332
|
}
|
|
330
|
-
.
|
|
333
|
+
.hjkryc12 {
|
|
331
334
|
display: flex;
|
|
332
335
|
align-items: center;
|
|
333
336
|
justify-content: space-between;
|
|
@@ -336,7 +339,7 @@
|
|
|
336
339
|
border-bottom: 1px solid color-mix(in srgb, var(--rc-border) 50%, transparent);
|
|
337
340
|
flex-shrink: 0;
|
|
338
341
|
}
|
|
339
|
-
.
|
|
342
|
+
.hjkryc13 {
|
|
340
343
|
display: flex;
|
|
341
344
|
align-items: center;
|
|
342
345
|
gap: 6px;
|
|
@@ -345,67 +348,68 @@
|
|
|
345
348
|
color: var(--rc-text-secondary);
|
|
346
349
|
overflow: hidden;
|
|
347
350
|
}
|
|
348
|
-
.
|
|
351
|
+
.hjkryc14 {
|
|
349
352
|
color: var(--rc-text);
|
|
350
353
|
white-space: nowrap;
|
|
351
354
|
overflow: hidden;
|
|
352
355
|
text-overflow: ellipsis;
|
|
353
356
|
}
|
|
354
|
-
.
|
|
357
|
+
.hjkryc15 {
|
|
355
358
|
opacity: 0.5;
|
|
356
359
|
}
|
|
357
|
-
.
|
|
360
|
+
.hjkryc16 {
|
|
358
361
|
flex: 1;
|
|
359
362
|
min-height: 0;
|
|
360
363
|
position: relative;
|
|
361
364
|
overflow: auto;
|
|
362
365
|
background-color: transparent !important;
|
|
363
366
|
}
|
|
364
|
-
.
|
|
367
|
+
.hjkryc16 pre code {
|
|
368
|
+
display: flex;
|
|
369
|
+
flex-direction: column;
|
|
370
|
+
}
|
|
371
|
+
.hjkryc16 > .shikicode.output {
|
|
365
372
|
position: static !important;
|
|
366
373
|
inset: auto !important;
|
|
367
374
|
}
|
|
368
|
-
.
|
|
375
|
+
.hjkryc16 .shikicode {
|
|
369
376
|
height: 100%;
|
|
370
377
|
font-size: 0.8125rem;
|
|
371
378
|
line-height: 1.7;
|
|
372
379
|
}
|
|
373
|
-
.
|
|
380
|
+
.hjkryc16 .shiki, .hjkryc16 code, .hjkryc16 pre {
|
|
374
381
|
background: transparent !important;
|
|
375
382
|
}
|
|
376
|
-
.
|
|
383
|
+
.hjkryc16 pre {
|
|
377
384
|
margin: 0 !important;
|
|
378
385
|
padding: 0 !important;
|
|
379
386
|
}
|
|
380
|
-
.
|
|
387
|
+
.hjkryc16 .shikicode.output .line::before {
|
|
381
388
|
background-color: transparent !important;
|
|
382
389
|
}
|
|
383
|
-
.
|
|
390
|
+
.hjkryc16 .line {
|
|
384
391
|
display: block;
|
|
385
392
|
padding: 0 1rem;
|
|
386
393
|
}
|
|
387
|
-
.
|
|
394
|
+
.hjkryc16 .shikicode.input.line-numbers {
|
|
388
395
|
padding-left: calc(5em + 1rem);
|
|
389
396
|
}
|
|
390
|
-
.
|
|
397
|
+
.hjkryc16 .shikicode.input:not(.line-numbers) {
|
|
391
398
|
padding-left: 1rem;
|
|
392
399
|
}
|
|
393
|
-
.
|
|
400
|
+
.hjkryc16 .line > span:last-child {
|
|
394
401
|
margin-right: 1rem;
|
|
395
402
|
}
|
|
396
|
-
.
|
|
403
|
+
.hjkryc16 .line::after {
|
|
397
404
|
content: ' ';
|
|
398
405
|
}
|
|
399
|
-
.
|
|
400
|
-
opacity: 0.4;
|
|
401
|
-
}
|
|
402
|
-
.rcs-drag-overlay {
|
|
406
|
+
.hjkryc17 {
|
|
403
407
|
background: var(--rc-bg-secondary);
|
|
404
408
|
border-radius: 6px;
|
|
405
409
|
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
|
|
406
410
|
}
|
|
407
411
|
@media (min-width: 640px) {
|
|
408
|
-
.
|
|
412
|
+
.hjkrych.hjkrych {
|
|
409
413
|
max-width: 64rem;
|
|
410
414
|
}
|
|
411
415
|
}
|
package/dist/styles.css.d.ts
CHANGED
|
@@ -1,3 +1,101 @@
|
|
|
1
|
+
export declare const semanticClassNames: {
|
|
2
|
+
readonly container: "rcs-container";
|
|
3
|
+
readonly header: "rcs-header";
|
|
4
|
+
readonly tabs: "rcs-tabs";
|
|
5
|
+
readonly tab: "rcs-tab";
|
|
6
|
+
readonly tabActive: "rcs-tab-active";
|
|
7
|
+
readonly titleBar: "rcs-title-bar";
|
|
8
|
+
readonly headerActions: "rcs-header-actions";
|
|
9
|
+
readonly copyButton: "rcs-copy-btn";
|
|
10
|
+
readonly separator: "rcs-separator";
|
|
11
|
+
readonly codePanel: "rcs-code-panel";
|
|
12
|
+
readonly codeScroll: "rcs-code-scroll";
|
|
13
|
+
readonly codeBody: "rcs-code-body";
|
|
14
|
+
readonly fileIcon: "rcs-file-icon";
|
|
15
|
+
readonly editContainer: "rcs-edit-container";
|
|
16
|
+
readonly editOverlay: "rcs-edit-overlay";
|
|
17
|
+
readonly editLabel: "rcs-edit-label";
|
|
18
|
+
readonly modal: "rcs-modal";
|
|
19
|
+
readonly modalTitlebar: "rcs-modal-titlebar";
|
|
20
|
+
readonly modalTitle: "rcs-modal-title";
|
|
21
|
+
readonly modalIconButton: "rcs-modal-icon-btn";
|
|
22
|
+
readonly modalBody: "rcs-modal-body";
|
|
23
|
+
readonly modalSidebar: "rcs-modal-sidebar";
|
|
24
|
+
readonly sidebarHeader: "rcs-sidebar-header";
|
|
25
|
+
readonly sidebarAddButton: "rcs-sidebar-add-btn";
|
|
26
|
+
readonly fileList: "rcs-file-list";
|
|
27
|
+
readonly fileItem: "rcs-file-item";
|
|
28
|
+
readonly fileItemActive: "rcs-file-item-active";
|
|
29
|
+
readonly fileItemDragging: "rcs-file-item-dragging";
|
|
30
|
+
readonly fileDragHandle: "rcs-file-drag-handle";
|
|
31
|
+
readonly fileName: "rcs-file-name";
|
|
32
|
+
readonly fileDelete: "rcs-file-delete";
|
|
33
|
+
readonly renameInput: "rcs-rename-input";
|
|
34
|
+
readonly modalEditor: "rcs-modal-editor";
|
|
35
|
+
readonly breadcrumb: "rcs-breadcrumb";
|
|
36
|
+
readonly breadcrumbLeft: "rcs-breadcrumb-left";
|
|
37
|
+
readonly breadcrumbName: "rcs-breadcrumb-name";
|
|
38
|
+
readonly breadcrumbLang: "rcs-breadcrumb-lang";
|
|
39
|
+
readonly editorContainer: "rcs-editor-container";
|
|
40
|
+
readonly dragOverlay: "rcs-drag-overlay";
|
|
41
|
+
};
|
|
42
|
+
export declare const container: string;
|
|
43
|
+
export declare const header: string;
|
|
44
|
+
export declare const tabs: string;
|
|
45
|
+
export declare const tab: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
46
|
+
active: {
|
|
47
|
+
true: {
|
|
48
|
+
color: `var(--${string})`;
|
|
49
|
+
background: `color-mix(in srgb, var(--${string}) 8%, transparent)`;
|
|
50
|
+
};
|
|
51
|
+
false: {};
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
export declare const titleBar: string;
|
|
55
|
+
export declare const headerActions: string;
|
|
56
|
+
export declare const copyButton: string;
|
|
57
|
+
export declare const separator: string;
|
|
58
|
+
export declare const codeScroll: string;
|
|
59
|
+
export declare const codeBody: string;
|
|
60
|
+
export declare const fileIcon: string;
|
|
61
|
+
export declare const editContainer: string;
|
|
62
|
+
export declare const editOverlay: string;
|
|
63
|
+
export declare const editLabel: string;
|
|
1
64
|
declare const _codeSnippetDialogPopup: string;
|
|
2
65
|
export { _codeSnippetDialogPopup as codeSnippetDialogPopup };
|
|
66
|
+
export declare const modal: string;
|
|
67
|
+
export declare const modalTitlebar: string;
|
|
68
|
+
export declare const modalTitle: string;
|
|
69
|
+
export declare const modalIconButton: string;
|
|
70
|
+
export declare const modalBody: string;
|
|
71
|
+
export declare const modalSidebar: string;
|
|
72
|
+
export declare const sidebarHeader: string;
|
|
73
|
+
export declare const sidebarAddButton: string;
|
|
74
|
+
export declare const fileList: string;
|
|
75
|
+
export declare const fileItem: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
76
|
+
active: {
|
|
77
|
+
true: {
|
|
78
|
+
background: `color-mix(in srgb, var(--${string}) 8%, transparent)`;
|
|
79
|
+
color: `var(--${string})`;
|
|
80
|
+
};
|
|
81
|
+
false: {};
|
|
82
|
+
};
|
|
83
|
+
dragging: {
|
|
84
|
+
true: {
|
|
85
|
+
opacity: number;
|
|
86
|
+
};
|
|
87
|
+
false: {};
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
export declare const fileDragHandle: string;
|
|
91
|
+
export declare const fileName: string;
|
|
92
|
+
export declare const fileDelete: string;
|
|
93
|
+
export declare const renameInput: string;
|
|
94
|
+
export declare const modalEditor: string;
|
|
95
|
+
export declare const breadcrumb: string;
|
|
96
|
+
export declare const breadcrumbLeft: string;
|
|
97
|
+
export declare const breadcrumbName: string;
|
|
98
|
+
export declare const breadcrumbLang: string;
|
|
99
|
+
export declare const editorContainer: string;
|
|
100
|
+
export declare const dragOverlay: string;
|
|
3
101
|
//# sourceMappingURL=styles.css.d.ts.map
|
package/dist/styles.css.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../src/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../src/styles.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCrB,CAAA;AAEV,eAAO,MAAM,SAAS,QAOpB,CAAA;AAEF,eAAO,MAAM,MAAM,QAMjB,CAAA;AAEF,eAAO,MAAM,IAAI,QAWf,CAAA;AA0BF,eAAO,MAAM,GAAG;;;;;;;;EAcd,CAAA;AAEF,eAAO,MAAM,QAAQ,QASnB,CAAA;AAEF,eAAO,MAAM,aAAa,QAUxB,CAAA;AAEF,eAAO,MAAM,UAAU,QAkBrB,CAAA;AAEF,eAAO,MAAM,SAAS,QAIpB,CAAA;AAEF,eAAO,MAAM,UAAU,QAErB,CAAA;AAEF,eAAO,MAAM,QAAQ,QAMnB,CAAA;AAWF,eAAO,MAAM,QAAQ,QAGnB,CAAA;AAOF,eAAO,MAAM,aAAa,QAExB,CAAA;AAEF,eAAO,MAAM,WAAW,QAetB,CAAA;AAEF,eAAO,MAAM,SAAS,QAkBpB,CAAA;AAEF,QAAA,MAAM,uBAAuB,QAAY,CAAA;AAsBzC,OAAO,EAAE,uBAAuB,IAAI,sBAAsB,EAAE,CAAA;AAE5D,eAAO,MAAM,KAAK,QAMhB,CAAA;AAEF,eAAO,MAAM,aAAa,QAQxB,CAAA;AAEF,eAAO,MAAM,UAAU,QAIrB,CAAA;AAEF,eAAO,MAAM,eAAe,QAkB1B,CAAA;AAEF,eAAO,MAAM,SAAS,QAIpB,CAAA;AAEF,eAAO,MAAM,YAAY,QAOvB,CAAA;AAEF,eAAO,MAAM,aAAa,QAUxB,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAkB3B,CAAA;AAEF,eAAO,MAAM,QAAQ,QAInB,CAAA;AAsBF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;EAqBnB,CAAA;AAEF,eAAO,MAAM,cAAc,QAYzB,CAAA;AAEF,eAAO,MAAM,QAAQ,QAKnB,CAAA;AAEF,eAAO,MAAM,UAAU,QAqBrB,CAAA;AAEF,eAAO,MAAM,WAAW,QAgBtB,CAAA;AAEF,eAAO,MAAM,WAAW,QAKtB,CAAA;AAEF,eAAO,MAAM,UAAU,QAQrB,CAAA;AAEF,eAAO,MAAM,cAAc,QAQzB,CAAA;AAEF,eAAO,MAAM,cAAc,QAKzB,CAAA;AAEF,eAAO,MAAM,cAAc,QAEzB,CAAA;AAEF,eAAO,MAAM,eAAe,QAM1B,CAAA;AAoDF,eAAO,MAAM,WAAW,QAItB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-code-snippet",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Multi-file code snippet extension",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,29 +23,28 @@
|
|
|
23
23
|
"@iconify/utils": "^2.3.0",
|
|
24
24
|
"lucide-react": "^0.574.0",
|
|
25
25
|
"shikicode": "*",
|
|
26
|
-
"@haklex/rich-
|
|
26
|
+
"@haklex/rich-editor": "0.0.4",
|
|
27
|
+
"@haklex/rich-editor-ui": "0.0.4",
|
|
28
|
+
"@haklex/rich-style-token": "0.0.4",
|
|
29
|
+
"@haklex/rich-renderer-codeblock": "0.0.4"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
29
32
|
"@lexical/react": "^0.39.0",
|
|
30
33
|
"@types/react": "^19.0.0",
|
|
31
34
|
"@types/react-dom": "^19.0.0",
|
|
32
35
|
"@vanilla-extract/css": "^1.17.1",
|
|
36
|
+
"@vanilla-extract/recipes": "^0.5.7",
|
|
33
37
|
"@vanilla-extract/vite-plugin": "^4.0.20",
|
|
34
38
|
"lexical": "^0.39.0",
|
|
35
39
|
"react": "19.2.4",
|
|
36
40
|
"react-dom": "19.2.4",
|
|
37
41
|
"typescript": "^5.9.0",
|
|
38
42
|
"vite": "^7.3.1",
|
|
39
|
-
"vite-plugin-dts": "^4.5.0"
|
|
40
|
-
"@haklex/rich-editor-ui": "0.0.2",
|
|
41
|
-
"@haklex/rich-editor": "0.0.2",
|
|
42
|
-
"@haklex/rich-style-token": "0.0.2"
|
|
43
|
+
"vite-plugin-dts": "^4.5.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"lexical": "^0.39.0",
|
|
46
|
-
"react": ">=19"
|
|
47
|
-
"@haklex/rich-editor": "0.0.2",
|
|
48
|
-
"@haklex/rich-editor-ui": "0.0.2"
|
|
47
|
+
"react": ">=19"
|
|
49
48
|
},
|
|
50
49
|
"publishConfig": {
|
|
51
50
|
"access": "public"
|