@shikijs/twoslash 3.15.0 → 3.17.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/core.mjs +5 -3
- package/package.json +5 -5
- package/style-rich.css +2 -2
package/dist/core.mjs
CHANGED
|
@@ -53,7 +53,7 @@ function parseIncludeMeta(meta) {
|
|
|
53
53
|
return match?.[1] ?? null;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
const module = {
|
|
56
|
+
const module$1 = {
|
|
57
57
|
type: "element",
|
|
58
58
|
tagName: "svg",
|
|
59
59
|
properties: {
|
|
@@ -219,7 +219,7 @@ const string = {
|
|
|
219
219
|
]
|
|
220
220
|
};
|
|
221
221
|
const completionIcons = {
|
|
222
|
-
module: module,
|
|
222
|
+
module: module$1,
|
|
223
223
|
"class": {
|
|
224
224
|
type: "element",
|
|
225
225
|
tagName: "svg",
|
|
@@ -799,7 +799,9 @@ function rendererRich(options = {}) {
|
|
|
799
799
|
type: "element",
|
|
800
800
|
tagName: "span",
|
|
801
801
|
properties: {
|
|
802
|
-
|
|
802
|
+
// TODO: `twoslash-query-presisted` was a typo before v3.17. We keep it for backward compatibility.
|
|
803
|
+
// We should remove it in the next major version.
|
|
804
|
+
class: "twoslash-hover twoslash-query-persisted twoslash-query-presisted"
|
|
803
805
|
},
|
|
804
806
|
children: hast?.queryCompose ? hast?.queryCompose({ popup, token: node }) : [popup, node]
|
|
805
807
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shikijs/twoslash",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.17.0",
|
|
5
5
|
"description": "Shiki transformer for twoslash",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"twoslash": "^0.3.4",
|
|
39
|
-
"@shikijs/core": "3.
|
|
40
|
-
"@shikijs/types": "3.
|
|
39
|
+
"@shikijs/core": "3.17.0",
|
|
40
|
+
"@shikijs/types": "3.17.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@iconify-json/carbon": "^1.2.14",
|
|
44
|
-
"@iconify-json/codicon": "^1.2.
|
|
44
|
+
"@iconify-json/codicon": "^1.2.34",
|
|
45
45
|
"hast-util-from-html": "^2.0.3",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
|
-
"@shikijs/twoslash": "3.
|
|
47
|
+
"@shikijs/twoslash": "3.17.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "unbuild",
|
package/style-rich.css
CHANGED
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
box-shadow: var(--twoslash-popup-shadow);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.twoslash .twoslash-query-
|
|
66
|
+
.twoslash .twoslash-query-persisted .twoslash-popup-container {
|
|
67
67
|
z-index: 9;
|
|
68
68
|
transform: translateY(1.5em);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.twoslash .twoslash-hover:hover .twoslash-popup-container,
|
|
72
72
|
.twoslash .twoslash-error-hover:hover .twoslash-popup-container,
|
|
73
|
-
.twoslash .twoslash-query-
|
|
73
|
+
.twoslash .twoslash-query-persisted .twoslash-popup-container,
|
|
74
74
|
.twoslash .twoslash-query-line .twoslash-popup-container {
|
|
75
75
|
opacity: 1;
|
|
76
76
|
pointer-events: auto;
|