@shikijs/vitepress-twoslash 1.14.1 → 1.15.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.
Files changed (2) hide show
  1. package/dist/index.mjs +22 -22
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -25,28 +25,6 @@ function rendererFloatingVue(options = {}) {
25
25
  "popper-class": ["shiki", classFloatingPanel, classCopyIgnore, classCode].join(" "),
26
26
  "theme": floatingVueTheme
27
27
  };
28
- function compose(parts) {
29
- return [
30
- {
31
- type: "element",
32
- tagName: "span",
33
- properties: {},
34
- children: [parts.token]
35
- },
36
- {
37
- type: "element",
38
- tagName: "template",
39
- properties: {
40
- "v-slot:popper": "{}"
41
- },
42
- content: {
43
- type: "root",
44
- children: [vPre(parts.popup)]
45
- },
46
- children: []
47
- }
48
- ];
49
- }
50
28
  const rich = rendererRich({
51
29
  classExtra: classCopyIgnore,
52
30
  ...options,
@@ -164,6 +142,28 @@ function renderMarkdownInline(md, context) {
164
142
  return children[0].children;
165
143
  return children;
166
144
  }
145
+ function compose(parts) {
146
+ return [
147
+ {
148
+ type: "element",
149
+ tagName: "span",
150
+ properties: {},
151
+ children: [parts.token]
152
+ },
153
+ {
154
+ type: "element",
155
+ tagName: "template",
156
+ properties: {
157
+ "v-slot:popper": "{}"
158
+ },
159
+ content: {
160
+ type: "root",
161
+ children: [vPre(parts.popup)]
162
+ },
163
+ children: []
164
+ }
165
+ ];
166
+ }
167
167
 
168
168
  function transformerTwoslash(options = {}) {
169
169
  const {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/vitepress-twoslash",
3
3
  "type": "module",
4
- "version": "1.14.1",
4
+ "version": "1.15.0",
5
5
  "description": "Enable Twoslash support in VitePress",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -48,6 +48,7 @@
48
48
  "dist"
49
49
  ],
50
50
  "dependencies": {
51
+ "@shikijs/twoslash": "^3.1.2",
51
52
  "floating-vue": "^5.2.2",
52
53
  "mdast-util-from-markdown": "^2.0.1",
53
54
  "mdast-util-gfm": "^3.0.0",
@@ -55,8 +56,7 @@
55
56
  "twoslash": "^0.2.9",
56
57
  "twoslash-vue": "^0.2.9",
57
58
  "vue": "^3.4.38",
58
- "@shikijs/twoslash": "1.14.1",
59
- "shiki": "1.14.1"
59
+ "shiki": "1.15.0"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "unbuild",