@vuepress/plugin-markdown-chart 2.0.0-rc.124 → 2.0.0-rc.125

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 (35) hide show
  1. package/{lib → dist}/client/components/ChartJS.d.ts +0 -2
  2. package/{lib → dist}/client/components/ECharts.d.ts +0 -2
  3. package/{lib → dist}/client/components/FlowChart.d.ts +0 -2
  4. package/{lib → dist}/client/components/MarkMap.d.ts +0 -2
  5. package/{lib → dist}/client/components/Mermaid.d.ts +0 -2
  6. package/{lib → dist}/client/components/Mermaid.js +1 -1
  7. package/{lib → dist}/client/index.js +1 -1
  8. package/{lib/mermaid-BPRrFw7i.js → dist/mermaid-mwYgrO0I.js} +1 -1
  9. package/{lib/mermaid-BPRrFw7i.js.map → dist/mermaid-mwYgrO0I.js.map} +1 -1
  10. package/package.json +12 -12
  11. /package/{lib → dist}/client/components/ChartJS.js +0 -0
  12. /package/{lib → dist}/client/components/ChartJS.js.map +0 -0
  13. /package/{lib → dist}/client/components/ECharts.js +0 -0
  14. /package/{lib → dist}/client/components/ECharts.js.map +0 -0
  15. /package/{lib → dist}/client/components/FlowChart.js +0 -0
  16. /package/{lib → dist}/client/components/FlowChart.js.map +0 -0
  17. /package/{lib → dist}/client/components/MarkMap.js +0 -0
  18. /package/{lib → dist}/client/components/MarkMap.js.map +0 -0
  19. /package/{lib → dist}/client/components/Mermaid.js.map +0 -0
  20. /package/{lib → dist}/client/index.d.ts +0 -0
  21. /package/{lib → dist}/client/styles/chartjs.css +0 -0
  22. /package/{lib → dist}/client/styles/chartjs.css.map +0 -0
  23. /package/{lib → dist}/client/styles/echarts.css +0 -0
  24. /package/{lib → dist}/client/styles/echarts.css.map +0 -0
  25. /package/{lib → dist}/client/styles/flowchart.css +0 -0
  26. /package/{lib → dist}/client/styles/flowchart.css.map +0 -0
  27. /package/{lib → dist}/client/styles/markmap.css +0 -0
  28. /package/{lib → dist}/client/styles/markmap.css.map +0 -0
  29. /package/{lib → dist}/client/styles/mermaid.css +0 -0
  30. /package/{lib → dist}/client/styles/mermaid.css.map +0 -0
  31. /package/{lib → dist}/echarts-C9C0qkV9.js +0 -0
  32. /package/{lib → dist}/echarts-C9C0qkV9.js.map +0 -0
  33. /package/{lib → dist}/node/index.d.ts +0 -0
  34. /package/{lib → dist}/node/index.js +0 -0
  35. /package/{lib → dist}/node/index.js.map +0 -0
@@ -1,7 +1,5 @@
1
1
  import * as vue from "vue";
2
2
  import { PropType, VNode } from "vue";
3
- import "../styles/chartjs.css";
4
-
5
3
  //#region src/client/components/ChartJS.d.ts
6
4
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
7
5
  /**
@@ -1,7 +1,5 @@
1
1
  import * as vue from "vue";
2
2
  import { PropType, VNode } from "vue";
3
- import "../styles/echarts.css";
4
-
5
3
  //#region src/client/components/ECharts.d.ts
6
4
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
7
5
  /**
@@ -1,7 +1,5 @@
1
1
  import * as vue from "vue";
2
2
  import { PropType, VNode } from "vue";
3
- import "../styles/flowchart.css";
4
-
5
3
  //#region src/client/components/FlowChart.d.ts
6
4
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
7
5
  /**
@@ -1,7 +1,5 @@
1
1
  import * as vue from "vue";
2
2
  import { VNode } from "vue";
3
- import "../styles/markmap.css";
4
-
5
3
  //#region src/client/components/MarkMap.d.ts
6
4
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
7
5
  /**
@@ -1,7 +1,5 @@
1
1
  import * as vue from "vue";
2
2
  import { VNode } from "vue";
3
- import "../styles/mermaid.css";
4
-
5
3
  //#region src/client/components/Mermaid.d.ts
6
4
  declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
7
5
  /**
@@ -1,2 +1,2 @@
1
- import{n as e}from"../../mermaid-BPRrFw7i.js";import{LoadingIcon as t,decodeData as n,encodeSVG as r,isFunction as i,useDarkMode as a}from"@vuepress/helper/client";import{watchImmediate as o}from"@vueuse/core";import{computed as s,defineComponent as c,h as l,onMounted as u,ref as d,shallowRef as f,useId as p}from"vue";import"../styles/mermaid.css";const m={useMaxWidth:!1};var h=c({name:`Mermaid`,props:{code:{type:String,required:!0},title:String},setup(c){let h=p(),g=a(),{themeVariables:_,...v}=e(),y=f(),b=s(()=>n(c.code)),x=d(``),S=async()=>{if(__VUEPRESS_SSR__)return;let{default:e}=await import(`mermaid/dist/mermaid.esm.min.mjs`);e.initialize({theme:g.value?`dark`:`default`,themeVariables:{dark:g.value,...i(_)?_(g.value):_},flowchart:m,sequence:m,journey:m,gantt:m,er:m,pie:m,...v,startOnLoad:!1}),x.value=(await e.render(h,b.value)).svg},C=()=>{let{body:e}=document,t=document.createElement(`div`);t.classList.add(`mermaid-preview`),t.innerHTML=x.value,e.append(t),t.addEventListener(`click`,()=>{t.remove()})},w=()=>{let e=r(x.value),t=document.createElement(`a`);t.setAttribute(`href`,e),t.setAttribute(`download`,`${c.title?n(c.title):h}.svg`),t.click()};return u(()=>{o(g,S,{flush:`post`})}),()=>[l(`div`,{class:`mermaid-actions`},[l(`button`,{class:`preview-button`,title:`preview`,innerHTML:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1316 1024" fill="currentColor"><path d="M658.286 0C415.89 0 0 297.106 0 512c0 214.82 415.89 512 658.286 512 242.322 0 658.285-294.839 658.285-512S900.608 0 658.286 0zm0 877.714c-161.573 0-512-221.769-512-365.714 0-144.018 350.427-365.714 512-365.714 161.572 0 512 217.16 512 365.714s-350.428 365.714-512 365.714z"/><path d="M658.286 292.571a219.429 219.429 0 1 0 0 438.858 219.429 219.429 0 0 0 0-438.858zm0 292.572a73.143 73.143 0 1 1 0-146.286 73.143 73.143 0 0 1 0 146.286z"/></svg>`,onClick:C}),l(`button`,{class:`download-button`,title:`download`,innerHTML:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="currentColor"><path d="M828.976 894.125H190.189c-70.55 0-127.754-57.185-127.754-127.753V606.674c0-17.634 14.31-31.933 31.933-31.933h63.889c17.634 0 31.932 14.299 31.932 31.933v95.822c0 35.282 28.596 63.877 63.877 63.877h511.033c35.281 0 63.877-28.595 63.877-63.877v-95.822c0-17.634 14.298-31.933 31.943-31.933h63.878c17.635 0 31.933 14.299 31.933 31.933v159.7c0 70.566-57.191 127.751-127.754 127.751zM249.939 267.51c12.921-12.92 33.885-12.92 46.807 0l148.97 148.972V94.893c0-17.634 14.302-31.947 31.934-31.947h63.876c17.638 0 31.946 14.313 31.946 31.947v321.589l148.97-148.972c12.922-12.92 33.876-12.92 46.797 0l46.814 46.818c12.922 12.922 12.922 33.874 0 46.807L552.261 624.93c-1.14 1.138-21.664 13.684-42.315 13.693-20.877.01-41.88-12.542-43.021-13.693L203.122 361.135c-12.923-12.934-12.923-33.885 0-46.807l46.817-46.818z"/></svg>`,onClick:w})]),l(`div`,{ref:y,class:`mermaid-wrapper`},x.value?l(`div`,{class:`mermaid-content`,innerHTML:x.value}):l(t,{class:`mermaid-loading`,height:96}))]}});export{h as default};
1
+ import{n as e}from"../../mermaid-mwYgrO0I.js";import{LoadingIcon as t,decodeData as n,encodeSVG as r,isFunction as i,useDarkMode as a}from"@vuepress/helper/client";import{watchImmediate as o}from"@vueuse/core";import{computed as s,defineComponent as c,h as l,onMounted as u,ref as d,shallowRef as f,useId as p}from"vue";import"../styles/mermaid.css";const m={useMaxWidth:!1};var h=c({name:`Mermaid`,props:{code:{type:String,required:!0},title:String},setup(c){let h=p(),g=a(),{themeVariables:_,...v}=e(),y=f(),b=s(()=>n(c.code)),x=d(``),S=async()=>{if(__VUEPRESS_SSR__)return;let{default:e}=await import(`mermaid/dist/mermaid.esm.min.mjs`);e.initialize({theme:g.value?`dark`:`default`,themeVariables:{dark:g.value,...i(_)?_(g.value):_},flowchart:m,sequence:m,journey:m,gantt:m,er:m,pie:m,...v,startOnLoad:!1}),x.value=(await e.render(h,b.value)).svg},C=()=>{let{body:e}=document,t=document.createElement(`div`);t.classList.add(`mermaid-preview`),t.innerHTML=x.value,e.append(t),t.addEventListener(`click`,()=>{t.remove()})},w=()=>{let e=r(x.value),t=document.createElement(`a`);t.setAttribute(`href`,e),t.setAttribute(`download`,`${c.title?n(c.title):h}.svg`),t.click()};return u(()=>{o(g,S,{flush:`post`})}),()=>[l(`div`,{class:`mermaid-actions`},[l(`button`,{class:`preview-button`,title:`preview`,innerHTML:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1316 1024" fill="currentColor"><path d="M658.286 0C415.89 0 0 297.106 0 512c0 214.82 415.89 512 658.286 512 242.322 0 658.285-294.839 658.285-512S900.608 0 658.286 0zm0 877.714c-161.573 0-512-221.769-512-365.714 0-144.018 350.427-365.714 512-365.714 161.572 0 512 217.16 512 365.714s-350.428 365.714-512 365.714z"/><path d="M658.286 292.571a219.429 219.429 0 1 0 0 438.858 219.429 219.429 0 0 0 0-438.858zm0 292.572a73.143 73.143 0 1 1 0-146.286 73.143 73.143 0 0 1 0 146.286z"/></svg>`,onClick:C}),l(`button`,{class:`download-button`,title:`download`,innerHTML:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="currentColor"><path d="M828.976 894.125H190.189c-70.55 0-127.754-57.185-127.754-127.753V606.674c0-17.634 14.31-31.933 31.933-31.933h63.889c17.634 0 31.932 14.299 31.932 31.933v95.822c0 35.282 28.596 63.877 63.877 63.877h511.033c35.281 0 63.877-28.595 63.877-63.877v-95.822c0-17.634 14.298-31.933 31.943-31.933h63.878c17.635 0 31.933 14.299 31.933 31.933v159.7c0 70.566-57.191 127.751-127.754 127.751zM249.939 267.51c12.921-12.92 33.885-12.92 46.807 0l148.97 148.972V94.893c0-17.634 14.302-31.947 31.934-31.947h63.876c17.638 0 31.946 14.313 31.946 31.947v321.589l148.97-148.972c12.922-12.92 33.876-12.92 46.797 0l46.814 46.818c12.922 12.922 12.922 33.874 0 46.807L552.261 624.93c-1.14 1.138-21.664 13.684-42.315 13.693-20.877.01-41.88-12.542-43.021-13.693L203.122 361.135c-12.923-12.934-12.923-33.885 0-46.807l46.817-46.818z"/></svg>`,onClick:w})]),l(`div`,{ref:y,class:`mermaid-wrapper`},x.value?l(`div`,{class:`mermaid-content`,innerHTML:x.value}):l(t,{class:`mermaid-loading`,height:96}))]}});export{h as default};
2
2
  //# sourceMappingURL=Mermaid.js.map
@@ -1 +1 @@
1
- import{n as e,t}from"../echarts-C9C0qkV9.js";import{n,t as r}from"../mermaid-BPRrFw7i.js";export{t as defineEChartsConfig,r as defineMermaidConfig,e as useEChartsConfig,n as useMermaidOptions};
1
+ import{n as e,t}from"../echarts-C9C0qkV9.js";import{n,t as r}from"../mermaid-mwYgrO0I.js";export{t as defineEChartsConfig,r as defineMermaidConfig,e as useEChartsConfig,n as useMermaidOptions};
@@ -1,2 +1,2 @@
1
1
  let e={};const t=t=>{e=t},n=()=>e;export{n,t};
2
- //# sourceMappingURL=mermaid-BPRrFw7i.js.map
2
+ //# sourceMappingURL=mermaid-mwYgrO0I.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mermaid-BPRrFw7i.js","names":[],"sources":["../src/client/helpers/mermaid.ts"],"sourcesContent":["import type { MermaidOptions } from '../typings/index.js'\n\nlet mermaidOptions: MermaidOptions = {}\n\nexport const defineMermaidConfig = (options: MermaidOptions): void => {\n mermaidOptions = options\n}\n\n/**\n * @internal\n *\n * @returns Mermaid options defined by user / 用户定义的 Mermaid 配置\n */\nexport const useMermaidOptions = (): MermaidOptions => mermaidOptions\n"],"mappings":"AAEA,IAAI,EAAiC,EAAE,CAEvC,MAAa,EAAuB,GAAkC,CACpE,EAAiB,GAQN,MAA0C"}
1
+ {"version":3,"file":"mermaid-mwYgrO0I.js","names":[],"sources":["../src/client/helpers/mermaid.ts"],"sourcesContent":["import type { MermaidOptions } from '../typings/index.js'\n\nlet mermaidOptions: MermaidOptions = {}\n\nexport const defineMermaidConfig = (options: MermaidOptions): void => {\n mermaidOptions = options\n}\n\n/**\n * @internal\n *\n * @returns Mermaid options defined by user / 用户定义的 Mermaid 配置\n */\nexport const useMermaidOptions = (): MermaidOptions => mermaidOptions\n"],"mappings":"AAEA,IAAI,EAAiC,EAAE,CAEvC,MAAa,EAAuB,GAAkC,CACpE,EAAiB,GAQN,MAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/plugin-markdown-chart",
3
- "version": "2.0.0-rc.124",
3
+ "version": "2.0.0-rc.125",
4
4
  "description": "VuePress plugin - markdown chart",
5
5
  "keywords": [
6
6
  "chart",
@@ -30,31 +30,31 @@
30
30
  "directory": "plugins/markdown/plugin-markdown-chart"
31
31
  },
32
32
  "files": [
33
- "lib"
33
+ "dist"
34
34
  ],
35
35
  "type": "module",
36
36
  "sideEffects": [
37
- "./lib/client/styles/**/*.css"
37
+ "./dist/client/styles/**/*.css"
38
38
  ],
39
39
  "exports": {
40
40
  ".": {
41
- "types": "./lib/node/index.d.ts",
42
- "default": "./lib/node/index.js"
41
+ "types": "./dist/node/index.d.ts",
42
+ "default": "./dist/node/index.js"
43
43
  },
44
44
  "./client": {
45
- "types": "./lib/client/index.d.ts",
46
- "default": "./lib/client/index.js"
45
+ "types": "./dist/client/index.d.ts",
46
+ "default": "./dist/client/index.js"
47
47
  },
48
- "./client/components/*": "./lib/client/components/*",
48
+ "./client/components/*": "./dist/client/components/*",
49
49
  "./package.json": "./package.json"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
54
  "dependencies": {
55
- "@mdit/plugin-container": "^0.23.0",
56
- "@mdit/plugin-plantuml": "^0.24.0",
57
- "@vuepress/helper": "2.0.0-rc.124",
55
+ "@mdit/plugin-container": "^0.23.1",
56
+ "@mdit/plugin-plantuml": "^0.24.1",
57
+ "@vuepress/helper": "2.0.0-rc.125",
58
58
  "@vueuse/core": "^14.2.1",
59
59
  "vue": "^3.5.29"
60
60
  },
@@ -96,5 +96,5 @@
96
96
  "optional": true
97
97
  }
98
98
  },
99
- "gitHead": "f17e7479b1ef3c06814b6107df9188ba351702da"
99
+ "gitHead": "58e660bb7138f1883e5440a08903d09cdbabcdc8"
100
100
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes