Skip to content

Changelog

2.0.0-alpha.10.1

2026-06-14

🔧 Improvements

  • DemoPreview runner style isolation built-in: merged .vp-doc typography reset (headings/links/paragraphs/lists/code blocks/tables) into theme package demo-preview.css, zero config for consumers
  • Complete table reset: covers all .vp-doc table styles (border/padding/background/nth-child stripes/font-size/font-weight/display etc.)

2.0.0-alpha.10

2026-06-14

🐛 Bug Fixes

  • Fix DemoPreview inline mode token ordering: source slot and <DemoPreview> opening tag were reversed (ensureImport's splice(0,0) caused index drift), switched to indexOf for correct token positioning

2.0.0-alpha.9

2026-06-14

✨ New Features

  • DemoPreview component: three modes supported
    • Directory import <DemoPreview dir="demos/alert" />: scans directory, index.vue runs, all files shown as source
    • File import <DemoPreview src="./MyButton.vue" />: single file import
    • Inline code <DemoPreview>...code...</DemoPreview>: Vite virtual module compilation, no disk temp files
  • Themed styling: dark mode beam border + brand-colored tabs + glassmorphism toolbar + runner area glow
  • Style isolation: runner area uses not-prose, demos rendered as-is
  • Markdown plugin: preConfig registration, token rewriting + import injection

2.0.0-alpha.8

2026-05-18

🐛 Bug Fixes

  • Fix style.css unresolvable with moduleResolution: "bundler": Restored types condition for CSS export pointing to style.css.d.ts, ensuring TypeScript correctly resolves side-effect imports

2.0.0-alpha.7

2026-05-18

🐛 Bug Fixes

  • Fix type resolution failure under Volar/pnpm: index.d.ts no longer imports Theme from vitepress, avoiding cross-module resolution failures that caused "has no default export" errors
  • Fix style.css "invalid interface" resolver error: Removed types condition from CSS export to prevent TypeScript/Volar from misinterpreting .d.ts as a resolver

2.0.0-alpha.6

2026-05-18

🐛 Bug Fixes

  • Fix missing default export in npm packages: types/index.d.ts now includes export default
  • Fix style.css path resolution: Simplified package.json exports field format for compatibility with npm, pnpm, bun, yarn and other package managers
  • Added top-level types field for compatibility with older tools

Released under the MIT License