UNPKG

markstream-vue

Version:

Vue 3 Markdown renderer optimized for large docs: progressive Mermaid, streaming diff code blocks, and fast real-time preview.

171 lines (170 loc) 5.25 kB
{ "name": "markstream-vue", "type": "module", "version": "0.0.2-beta.8", "packageManager": "pnpm@10.24.0", "description": "Vue 3 Markdown renderer optimized for large docs: progressive Mermaid, streaming diff code blocks, and fast real-time preview.", "author": "Simon He", "license": "MIT", "homepage": "https://github.com/Simon-He95/markstream-vue", "repository": { "type": "git", "url": "git+https://github.com/Simon-He95/markstream-vue.git", "homepage": "https://github.com/Simon-He95/markstream-vue#readme" }, "bugs": { "url": "https://github.com/Simon-He95/markstream-vue/issues" }, "keywords": [ "vue", "vue3", "markdown", "markdown-to-html", "markdown-renderer", "vue-markdown", "vue-component", "html", "renderer", "custom-component", "mermaid", "progressive-mermaid", "streaming-diff", "diff-codeblock", "large-documents", "performance", "real-time-preview", "markstream-vue" ], "sideEffects": [ "src/index.css" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.js" }, "./index.css": "./dist/index.css", "./index.tailwind.css": "./dist/index.tailwind.css", "./tailwind": "./dist/tailwind.ts", "./workers/katexRenderer.worker": "./dist/workers/katexRenderer.worker.js", "./workers/mermaidParser.worker": "./dist/workers/mermaidParser.worker.js" }, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist", "dist/workers" ], "scripts": { "dev": "pnpm run -C playground dev", "test": "vitest", "lint": "eslint . --cache", "lint:fix": "pnpm run lint --fix", "test:ui": "vitest --ui", "test:update": "vitest -u", "typecheck": "vue-tsc --noEmit", "check:ssr": "vitest --run -t \"SSR import safety\"", "prepublishOnly": "npm run build", "play": "pnpm run -C playground dev", "play:build": "pnpm run -C playground build", "play:nuxt": "pnpm run -C playground-nuxt dev", "play:nuxt:build": "pnpm run -C playground-nuxt build", "play:nuxt:preview": "pnpm run -C playground-nuxt preview", "preview": "pnpm run -C playground preview", "build": "vite build --mode npm && vite build --config vite.config.tailwind.ts --mode npm && pnpm run build:dts", "docs:dev": "vitepress dev docs", "docs:sync-zh": "node scripts/sync-zh-docs.mjs", "docs:check-zh": "node scripts/check-zh-parity.mjs", "docs:build": "vitepress build docs", "docs:build:netlify": "VITEPRESS_BASE=/ pnpm docs:build", "docs:serve": "vitepress serve docs", "docs:deploy": "VITEPRESS_BASE=/markstream-vue/ pnpm docs:build && pnpm docs:serve", "docs:deploy:netlify": "pnpm docs:build && echo 'Docs built to docs/.vitepress/dist'", "build:dts": "rollup -c ./scripts/rollup.dts.config.mjs && node ./scripts/clean-dts.cjs", "build:demo": "vite build", "build:view": "vite preview", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "release": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && bumpp --commit --push --tag && npm publish", "check:peer-deps": "node ./scripts/check-peer-deps.cjs" }, "peerDependencies": { "katex": ">=0.16.22", "mermaid": ">=11", "shiki": "^3.13.0", "stream-markdown": ">=0.0.10", "stream-monaco": ">=0.0.7", "vue": ">=3.0.0", "vue-i18n": ">=9" }, "peerDependenciesMeta": { "katex": { "optional": true }, "mermaid": { "optional": true }, "shiki": { "optional": true }, "stream-markdown": { "optional": true }, "stream-monaco": { "optional": true }, "vue-i18n": { "optional": true } }, "dependencies": { "@floating-ui/dom": "^1.7.4", "stream-markdown-parser": "^0.0.34" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@types/markdown-it-emoji": "^3.0.1", "@types/node": "^18.19.130", "@vitejs/plugin-vue": "^5.2.4", "@vitest/ui": "^4.0.14", "@vue/test-utils": "^2.4.6", "autoprefixer": "^10.4.22", "bumpp": "^8.2.1", "conventional-changelog-cli": "^5.0.0", "eslint": "^9.39.1", "lint-staged": "^13.3.0", "lz-string": "^1.5.0", "markdown-it-emoji": "^3.0.0", "picocolors": "^1.1.1", "postcss-cli": "^11.0.1", "rollup": "^3.29.5", "rollup-plugin-dts": "^5.3.1", "rollup-plugin-visualizer": "^6.0.5", "tailwindcss": "^3.4.18", "terser": "^5.44.1", "tsx": "^4.20.6", "typescript": "^5.9.3", "unplugin-class-extractor": "^0.0.22", "unplugin-vue-components": "^28.8.0", "vite": "^7.2.4", "vite-plugin-dts": "^4.5.4", "vite-plugin-pages": "^0.33.1", "vite-svg-loader": "^5.1.0", "vitepress": "^1.6.4", "vitest": "^4.0.14", "vue": "^3.5.25", "vue-tsc": "^2.2.12" }, "pnpm": { "overrides": { "@vue/reactivity": "3.5.25", "@vue/runtime-core": "3.5.25", "@vue/runtime-dom": "3.5.25", "vue": "3.5.25" } }, "lint-staged": { "*.{vue,js,ts,jsx,tsx,md,json}": "eslint --fix" } }