@shikijs/vitepress-twoslash 4.1.0 → 4.2.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.
@@ -1,4 +1,4 @@
1
- import { t as VitePressPluginTwoslashOptions } from "../types-BvNUFoZh.mjs";
1
+ import { t as VitePressPluginTwoslashOptions } from "../types-BygG6v6M.mjs";
2
2
  import { UserConfig } from "vitepress";
3
3
 
4
4
  //#region src/cache-inline/markdown-fence.d.ts
package/dist/client.mjs CHANGED
@@ -41,6 +41,7 @@ const TwoslashFloatingVue = { install: (app, options = {}) => {
41
41
  }
42
42
  }
43
43
  app.use(FloatingVue, {
44
+ strategy: "fixed",
44
45
  ...options,
45
46
  themes: {
46
47
  ...options.themes,
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as rendererFloatingVue, i as defaultHoverInfoProcessor, n as TwoslashFloatingVueOptions, r as TwoslashFloatingVueRendererOptions, t as VitePressPluginTwoslashOptions } from "./types-BvNUFoZh.mjs";
1
+ import { a as rendererFloatingVue, i as defaultHoverInfoProcessor, n as TwoslashFloatingVueOptions, r as TwoslashFloatingVueRendererOptions, t as VitePressPluginTwoslashOptions } from "./types-BygG6v6M.mjs";
2
2
  import { ShikiTransformer } from "shiki";
3
3
 
4
4
  //#region src/index.d.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/vitepress-twoslash",
3
3
  "type": "module",
4
- "version": "4.1.0",
4
+ "version": "4.2.0",
5
5
  "description": "Enable Twoslash support in VitePress",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -40,16 +40,16 @@
40
40
  "floating-vue": "^5.2.2",
41
41
  "lz-string": "^1.5.0",
42
42
  "magic-string": "^0.30.21",
43
- "markdown-it": "^14.1.1",
43
+ "markdown-it": "^14.2.0",
44
44
  "mdast-util-from-markdown": "^2.0.3",
45
45
  "mdast-util-gfm": "^3.1.0",
46
46
  "mdast-util-to-hast": "^13.2.1",
47
47
  "ohash": "^2.0.11",
48
48
  "twoslash": "^0.3.8",
49
49
  "twoslash-vue": "^0.3.8",
50
- "vue": "^3.5.34",
51
- "@shikijs/twoslash": "4.1.0",
52
- "shiki": "4.1.0"
50
+ "vue": "^3.5.35",
51
+ "@shikijs/twoslash": "4.2.0",
52
+ "shiki": "4.2.0"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "tsdown",
package/style-core.css CHANGED
@@ -16,10 +16,6 @@
16
16
  z-index: calc(var(--vp-z-index-local-nav) - 1);
17
17
  }
18
18
 
19
- .v-popper--theme-twoslash.v-popper__popper {
20
- content-visibility: auto;
21
- }
22
-
23
19
  .v-popper--theme-twoslash .v-popper__inner {
24
20
  background: var(--twoslash-popup-bg);
25
21
  color: var(--twoslash-popup-color);
package/style.css CHANGED
@@ -312,10 +312,6 @@
312
312
  z-index: calc(var(--vp-z-index-local-nav) - 1);
313
313
  }
314
314
 
315
- .v-popper--theme-twoslash.v-popper__popper {
316
- content-visibility: auto;
317
- }
318
-
319
315
  .v-popper--theme-twoslash .v-popper__inner {
320
316
  background: var(--twoslash-popup-bg);
321
317
  color: var(--twoslash-popup-color);