@haklex/rich-compose 0.51.1 → 0.52.0
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/litexml-html-preview-client.css +17 -55
- package/dist/litexml-html-preview-client.js +3038 -563
- package/dist/{module-D1w72FNW.js → module-BdSMK_5W.js} +1 -1
- package/dist/modules/code-block/edit.mjs +1 -1
- package/dist/modules/code-block/index.mjs +1 -1
- package/dist/modules/code-block/ssr-fallback.d.ts +1 -1
- package/dist/renderer.mjs +1 -1
- package/dist/style/code-block.css +1 -1
- package/dist/style/code-snippet.css +1 -1
- package/dist/style/embed.css +1 -1
- package/dist/style.css +3 -3
- package/package.json +27 -27
- package/dist/cli/shiki-cdn.d.ts +0 -16
- package/dist/cli/shiki-cdn.d.ts.map +0 -1
- package/dist/cli/shiki-engine-cdn.d.ts +0 -2
- package/dist/cli/shiki-engine-cdn.d.ts.map +0 -1
|
@@ -1554,13 +1554,13 @@
|
|
|
1554
1554
|
color: var(--rc-text);
|
|
1555
1555
|
}
|
|
1556
1556
|
.qy3solb {
|
|
1557
|
-
counter-reset:
|
|
1557
|
+
counter-reset: code-line 0;
|
|
1558
1558
|
}
|
|
1559
1559
|
.qy3solb .line {
|
|
1560
|
-
counter-increment:
|
|
1560
|
+
counter-increment: code-line 1;
|
|
1561
1561
|
}
|
|
1562
1562
|
.qy3solb .line::before {
|
|
1563
|
-
content: counter(
|
|
1563
|
+
content: counter(code-line);
|
|
1564
1564
|
color: transparent;
|
|
1565
1565
|
text-align: right;
|
|
1566
1566
|
box-sizing: content-box;
|
|
@@ -1596,15 +1596,12 @@
|
|
|
1596
1596
|
font-family: var(--rc-font-mono) !important;
|
|
1597
1597
|
line-height: inherit;
|
|
1598
1598
|
}
|
|
1599
|
-
.qy3sol0 .
|
|
1599
|
+
.qy3sol0 .highlights, .qy3sol0 code, .qy3sol0 pre {
|
|
1600
1600
|
background: transparent !important;
|
|
1601
1601
|
line-height: inherit;
|
|
1602
1602
|
}
|
|
1603
|
-
[data-theme='dark'] .qy3sol0 .
|
|
1604
|
-
color: var(--
|
|
1605
|
-
font-style: var(--shiki-dark-font-style) !important;
|
|
1606
|
-
font-weight: var(--shiki-dark-font-weight) !important;
|
|
1607
|
-
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
1603
|
+
[data-theme='dark'] .qy3sol0 .highlights-themes, [data-theme='dark'] .qy3sol0 .highlights-themes span {
|
|
1604
|
+
color: var(--hls-dark) !important;
|
|
1608
1605
|
}
|
|
1609
1606
|
.qy3sol0 .line {
|
|
1610
1607
|
display: block;
|
|
@@ -5889,11 +5886,8 @@ figure.rich-image[data-display="fixed-height"] img {
|
|
|
5889
5886
|
._1v9rg4be code {
|
|
5890
5887
|
font-family: inherit;
|
|
5891
5888
|
}
|
|
5892
|
-
[data-theme='dark'] ._1v9rg4be .
|
|
5893
|
-
color: var(--
|
|
5894
|
-
font-style: var(--shiki-dark-font-style) !important;
|
|
5895
|
-
font-weight: var(--shiki-dark-font-weight) !important;
|
|
5896
|
-
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
5889
|
+
[data-theme='dark'] ._1v9rg4be .highlights-themes, [data-theme='dark'] ._1v9rg4be .highlights-themes span {
|
|
5890
|
+
color: var(--hls-dark) !important;
|
|
5897
5891
|
}
|
|
5898
5892
|
._1v9rg4bf {
|
|
5899
5893
|
display: inline-flex;
|
|
@@ -6335,13 +6329,6 @@ figure.rich-image[data-display="fixed-height"] img {
|
|
|
6335
6329
|
text-align: right;
|
|
6336
6330
|
color: var(--rc-text-quaternary) !important;
|
|
6337
6331
|
}
|
|
6338
|
-
.pa8uv2b > .shikicode.output {
|
|
6339
|
-
position: static !important;
|
|
6340
|
-
inset: auto !important;
|
|
6341
|
-
}
|
|
6342
|
-
.pa8uv2c > textarea.shikicode {
|
|
6343
|
-
display: none;
|
|
6344
|
-
}
|
|
6345
6332
|
.pa8uv2d {
|
|
6346
6333
|
position: absolute;
|
|
6347
6334
|
left: 0;
|
|
@@ -6370,13 +6357,6 @@ figure.rich-image[data-display="fixed-height"] img {
|
|
|
6370
6357
|
.pa8uv2e:hover {
|
|
6371
6358
|
color: var(--rc-text);
|
|
6372
6359
|
}
|
|
6373
|
-
.pa8uv20 .shikicode.input, .pa8uv20 .shikicode.output, .pa8uv20 .shikicode.output code, .pa8uv20 .shikicode.output .line, .pa8uv20 .shikicode.output .line span {
|
|
6374
|
-
font-variant-ligatures: none;
|
|
6375
|
-
font-kerning: none;
|
|
6376
|
-
}
|
|
6377
|
-
.pa8uv20 .shikicode.input, .pa8uv20 .shikicode.output {
|
|
6378
|
-
font-family: var(--rc-font-mono) !important;
|
|
6379
|
-
}
|
|
6380
6360
|
.pa8uv2b pre, .pa8uv2b code, .pa8uv2b .line, .pa8uv2b .line span {
|
|
6381
6361
|
font-family: var(--rc-font-mono) !important;
|
|
6382
6362
|
}
|
|
@@ -6396,34 +6376,16 @@ figure.rich-image[data-display="fixed-height"] img {
|
|
|
6396
6376
|
flex-direction: column;
|
|
6397
6377
|
font-family: var(--rc-font-mono) !important;
|
|
6398
6378
|
}
|
|
6399
|
-
.pa8uv20 .
|
|
6379
|
+
.pa8uv20 .highlights, .pa8uv20 code, .pa8uv20 pre {
|
|
6400
6380
|
background: transparent !important;
|
|
6401
6381
|
}
|
|
6402
|
-
[data-theme='dark'] .pa8uv20 .
|
|
6403
|
-
color: var(--
|
|
6404
|
-
font-style: var(--shiki-dark-font-style) !important;
|
|
6405
|
-
font-weight: var(--shiki-dark-font-weight) !important;
|
|
6406
|
-
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
6407
|
-
}
|
|
6408
|
-
.pa8uv2b:has(.shikicode.input.line-numbers) .shikicode.output .line::before {
|
|
6409
|
-
background-color: transparent !important;
|
|
6410
|
-
color: var(--rc-text-quaternary) !important;
|
|
6411
|
-
min-width: calc(var(--rc-ln-digits, 2) * 1ch);
|
|
6412
|
-
padding-right: 16px;
|
|
6413
|
-
}
|
|
6414
|
-
.pa8uv2b:not(:has(.shikicode.input.line-numbers)) .shikicode.output .line::before {
|
|
6415
|
-
display: none;
|
|
6382
|
+
[data-theme='dark'] .pa8uv20 .highlights-themes, [data-theme='dark'] .pa8uv20 .highlights-themes span {
|
|
6383
|
+
color: var(--hls-dark) !important;
|
|
6416
6384
|
}
|
|
6417
6385
|
.pa8uv20 .line {
|
|
6418
6386
|
display: block;
|
|
6419
6387
|
padding: 0 16px;
|
|
6420
6388
|
}
|
|
6421
|
-
.pa8uv20 .shikicode.input.line-numbers {
|
|
6422
|
-
padding-left: calc(2ch + 32px);
|
|
6423
|
-
}
|
|
6424
|
-
.pa8uv20 .shikicode.input:not(.line-numbers) {
|
|
6425
|
-
padding-left: 16px;
|
|
6426
|
-
}
|
|
6427
6389
|
.pa8uv20 .line > span:last-child {
|
|
6428
6390
|
margin-right: 16px;
|
|
6429
6391
|
}
|
|
@@ -6473,13 +6435,13 @@ figure.rich-image[data-display="fixed-height"] img {
|
|
|
6473
6435
|
color: #ef4444;
|
|
6474
6436
|
}
|
|
6475
6437
|
.pa8uv2f {
|
|
6476
|
-
counter-reset:
|
|
6438
|
+
counter-reset: code-line 0;
|
|
6477
6439
|
}
|
|
6478
6440
|
.pa8uv2f .line {
|
|
6479
|
-
counter-increment:
|
|
6441
|
+
counter-increment: code-line 1;
|
|
6480
6442
|
}
|
|
6481
6443
|
.pa8uv2f .line::before {
|
|
6482
|
-
content: counter(
|
|
6444
|
+
content: counter(code-line);
|
|
6483
6445
|
color: transparent;
|
|
6484
6446
|
text-align: right;
|
|
6485
6447
|
box-sizing: content-box;
|
|
@@ -6923,7 +6885,7 @@ pre.rich-code-block, code.rich-code-block {
|
|
|
6923
6885
|
user-select: none;
|
|
6924
6886
|
}
|
|
6925
6887
|
._1kngc4rc {
|
|
6926
|
-
counter-reset:
|
|
6888
|
+
counter-reset: code-line var(--start-line, 0);
|
|
6927
6889
|
}
|
|
6928
6890
|
._1kngc4rc pre {
|
|
6929
6891
|
margin: 0;
|
|
@@ -6944,8 +6906,8 @@ pre.rich-code-block, code.rich-code-block {
|
|
|
6944
6906
|
line-height: 1.5;
|
|
6945
6907
|
}
|
|
6946
6908
|
._1kngc4rc .line::before {
|
|
6947
|
-
content: counter(
|
|
6948
|
-
counter-increment:
|
|
6909
|
+
content: counter(code-line);
|
|
6910
|
+
counter-increment: code-line;
|
|
6949
6911
|
flex-shrink: 0;
|
|
6950
6912
|
width: 4ch;
|
|
6951
6913
|
text-align: right;
|