@shikijs/twoslash 3.16.0 → 3.17.1
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.d.mts +1 -1
- package/dist/core.mjs +3 -1
- package/package.json +4 -4
- package/style-rich.css +2 -2
package/dist/core.d.mts
CHANGED
package/dist/core.mjs
CHANGED
|
@@ -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.1",
|
|
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.1",
|
|
40
|
+
"@shikijs/types": "3.17.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@iconify-json/carbon": "^1.2.14",
|
|
44
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.1"
|
|
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;
|