md-editor-v3 6.5.0 → 6.5.1

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 +1 @@
1
- "use strict";const e=require("vue"),i=require("./config.cjs"),S=require("./index5.cjs"),x=require("./dom.cjs"),k=require("./vue-tsx.cjs"),t=require("lucide-vue-next"),z=()=>e.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-github-icon"},[e.createVNode("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"},null),e.createVNode("path",{d:"M9 18c-4.51 2-5-2-7-2"},null)]),P={bold:t.Bold,underline:t.Underline,italic:t.Italic,"strike-through":t.Strikethrough,title:t.Heading,sub:t.Subscript,sup:t.Superscript,quote:t.Quote,"unordered-list":t.List,"ordered-list":t.ListOrdered,task:t.ListTodo,"code-row":t.Code,code:t.SquareCode,link:t.Link,image:t.Image,table:t.Table,revoke:t.Reply,next:t.Forward,save:t.Save,prettier:t.SquareCode,minimize:t.Minimize2,maximize:t.Maximize2,"fullscreen-exit":t.Shrink,fullscreen:t.Expand,"preview-only":t.View,preview:t.Eye,"preview-html":t.CodeXml,catalog:t.ListTree,github:z,mermaid:t.ChartArea,formula:t.SquareSigma,close:t.X,delete:t.Trash2,upload:t.Upload},$=e.defineComponent({name:`${i.prefix}-icon-set`,props:{name:{type:String,default:""}},setup(n){return()=>e.h(P[n.name],{class:`${i.prefix}-icon`})}}),p=e.defineComponent({name:`${i.prefix}-icon`,props:{name:{type:String,default:""}},setup(n){const d=e.inject("customIcon");return()=>{const r=d.value[n.name];return typeof r=="object"?typeof r.component=="object"?e.h(r.component,r.props):e.createVNode("span",{innerHTML:r.component},null):e.createVNode($,{name:n.name},null)}}}),B={title:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}},class:{type:String,default:void 0},style:{type:[Object,String],default:()=>({})},showMask:{type:Boolean,default:!0}},m=e.defineComponent({name:"MdModal",props:B,emits:["onClose"],setup(n,d){const r=e.inject("theme"),C=e.inject("rootRef"),f=e.ref(n.visible),c=e.ref([`${i.prefix}-modal`]),h=e.ref(),v=e.ref(),y=e.ref(),b=e.shallowRef();let u=()=>{};const o=e.reactive({maskStyle:{zIndex:-1},modalStyle:{zIndex:-1},initPos:{insetInlineStart:"0px",insetBlockStart:"0px"},historyPos:{insetInlineStart:"0px",insetBlockStart:"0px"}}),w=e.computed(()=>n.isFullscreen?{width:"100%",height:"100%"}:{width:n.width,height:n.height});e.watch(()=>n.isFullscreen,l=>{l?u():e.nextTick(()=>{u=x.keyMove(v.value,(a,s)=>{o.initPos.insetInlineStart=a+"px",o.initPos.insetBlockStart=s+"px"})})}),e.watch(()=>n.visible,l=>{l?(o.maskStyle.zIndex=i.globalConfig.editorConfig.zIndex+S.getZIndexIncrement(),o.modalStyle.zIndex=i.globalConfig.editorConfig.zIndex+S.getZIndexIncrement(),c.value.push("zoom-in"),f.value=l,e.nextTick(()=>{const a=h.value.offsetWidth/2,s=h.value.offsetHeight/2,N=document.documentElement.clientWidth/2,M=document.documentElement.clientHeight/2;o.initPos.insetInlineStart=N-a+"px",o.initPos.insetBlockStart=M-s+"px",n.isFullscreen||(u=x.keyMove(v.value,(V,j)=>{o.initPos.insetInlineStart=V+"px",o.initPos.insetBlockStart=j+"px"}))}),setTimeout(()=>{c.value=c.value.filter(a=>a!=="zoom-in")},140)):(c.value.push("zoom-out"),u(),setTimeout(()=>{c.value=c.value.filter(a=>a!=="zoom-out"),f.value=l},130))});const g=e.computed(()=>({display:f.value?"block":"none"})),I=e.computed(()=>{if(typeof n.style=="string"){const l=Object.entries(g.value).map(([a,s])=>`${a}: ${s}`).join("; ");return[n.style,l].join("; ")}else return n.style instanceof Object?{...g.value,...n.style}:g.value});return e.onMounted(()=>{const l=C.value?.getRootNode();y.value=l instanceof Document?document.body:l}),()=>{const l=k.getSlot({ctx:d}),a=k.getSlot({props:n,ctx:d},"title");return y.value?e.createVNode(e.Teleport,{to:y.value},{default:()=>[e.createVNode("div",{ref:b,class:`${i.prefix}-modal-container`,"data-theme":r.value},[e.createVNode("div",{class:n.class,style:I.value},[n.showMask&&e.createVNode("div",{class:`${i.prefix}-modal-mask`,style:o.maskStyle,onClick:()=>{n.onClose?.(),d.emit("onClose")}},null),e.createVNode("div",{class:c.value,style:{...o.modalStyle,...o.initPos,...w.value},ref:h},[e.createVNode("div",{class:`${i.prefix}-modal-header`,ref:v},[a||""]),e.createVNode("div",{class:`${i.prefix}-modal-body`},[l]),e.createVNode("div",{class:`${i.prefix}-modal-func`},[n.showAdjust&&e.createVNode("div",{class:`${i.prefix}-modal-adjust`,onClick:s=>{s.stopPropagation(),n.isFullscreen?o.initPos=o.historyPos:(o.historyPos=o.initPos,o.initPos={insetInlineStart:"0",insetBlockStart:"0"}),n.onAdjust(!n.isFullscreen)}},[e.createVNode(p,{name:n.isFullscreen?"minimize":"maximize"},null)]),e.createVNode("div",{class:`${i.prefix}-modal-close`,onClick:s=>{s.stopPropagation(),n.onClose?.(),d.emit("onClose")}},[e.createVNode(p,{name:"close"},null)])])])])])]}):""}}});m.install=n=>(n.component(m.name,m),n);exports.Icon=p;exports.MdModal=m;
1
+ "use strict";const e=require("vue"),i=require("./config.cjs"),S=require("./index5.cjs"),x=require("./dom.cjs"),k=require("./vue-tsx.cjs"),t=require("@lucide/vue"),V=()=>e.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-github-icon"},[e.createVNode("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"},null),e.createVNode("path",{d:"M9 18c-4.51 2-5-2-7-2"},null)]),P={bold:t.Bold,underline:t.Underline,italic:t.Italic,"strike-through":t.Strikethrough,title:t.Heading,sub:t.Subscript,sup:t.Superscript,quote:t.Quote,"unordered-list":t.List,"ordered-list":t.ListOrdered,task:t.ListTodo,"code-row":t.Code,code:t.SquareCode,link:t.Link,image:t.Image,table:t.Table,revoke:t.Reply,next:t.Forward,save:t.Save,prettier:t.SquareCode,minimize:t.Minimize2,maximize:t.Maximize2,"fullscreen-exit":t.Shrink,fullscreen:t.Expand,"preview-only":t.View,preview:t.Eye,"preview-html":t.CodeXml,catalog:t.ListTree,github:V,mermaid:t.ChartArea,formula:t.SquareSigma,close:t.X,delete:t.Trash2,upload:t.Upload},$=e.defineComponent({name:`${i.prefix}-icon-set`,props:{name:{type:String,default:""}},setup(n){return()=>e.h(P[n.name],{class:`${i.prefix}-icon`})}}),p=e.defineComponent({name:`${i.prefix}-icon`,props:{name:{type:String,default:""}},setup(n){const d=e.inject("customIcon");return()=>{const r=d.value[n.name];return typeof r=="object"?typeof r.component=="object"?e.h(r.component,r.props):e.createVNode("span",{innerHTML:r.component},null):e.createVNode($,{name:n.name},null)}}}),B={title:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}},class:{type:String,default:void 0},style:{type:[Object,String],default:()=>({})},showMask:{type:Boolean,default:!0}},m=e.defineComponent({name:"MdModal",props:B,emits:["onClose"],setup(n,d){const r=e.inject("theme"),C=e.inject("rootRef"),f=e.ref(n.visible),c=e.ref([`${i.prefix}-modal`]),h=e.ref(),v=e.ref(),y=e.ref(),b=e.shallowRef();let u=()=>{};const o=e.reactive({maskStyle:{zIndex:-1},modalStyle:{zIndex:-1},initPos:{insetInlineStart:"0px",insetBlockStart:"0px"},historyPos:{insetInlineStart:"0px",insetBlockStart:"0px"}}),w=e.computed(()=>n.isFullscreen?{width:"100%",height:"100%"}:{width:n.width,height:n.height});e.watch(()=>n.isFullscreen,l=>{l?u():e.nextTick(()=>{u=x.keyMove(v.value,(a,s)=>{o.initPos.insetInlineStart=a+"px",o.initPos.insetBlockStart=s+"px"})})}),e.watch(()=>n.visible,l=>{l?(o.maskStyle.zIndex=i.globalConfig.editorConfig.zIndex+S.getZIndexIncrement(),o.modalStyle.zIndex=i.globalConfig.editorConfig.zIndex+S.getZIndexIncrement(),c.value.push("zoom-in"),f.value=l,e.nextTick(()=>{const a=h.value.offsetWidth/2,s=h.value.offsetHeight/2,N=document.documentElement.clientWidth/2,M=document.documentElement.clientHeight/2;o.initPos.insetInlineStart=N-a+"px",o.initPos.insetBlockStart=M-s+"px",n.isFullscreen||(u=x.keyMove(v.value,(j,z)=>{o.initPos.insetInlineStart=j+"px",o.initPos.insetBlockStart=z+"px"}))}),setTimeout(()=>{c.value=c.value.filter(a=>a!=="zoom-in")},140)):(c.value.push("zoom-out"),u(),setTimeout(()=>{c.value=c.value.filter(a=>a!=="zoom-out"),f.value=l},130))});const g=e.computed(()=>({display:f.value?"block":"none"})),I=e.computed(()=>{if(typeof n.style=="string"){const l=Object.entries(g.value).map(([a,s])=>`${a}: ${s}`).join("; ");return[n.style,l].join("; ")}else return n.style instanceof Object?{...g.value,...n.style}:g.value});return e.onMounted(()=>{const l=C.value?.getRootNode();y.value=l instanceof Document?document.body:l}),()=>{const l=k.getSlot({ctx:d}),a=k.getSlot({props:n,ctx:d},"title");return y.value?e.createVNode(e.Teleport,{to:y.value},{default:()=>[e.createVNode("div",{ref:b,class:`${i.prefix}-modal-container`,"data-theme":r.value},[e.createVNode("div",{class:n.class,style:I.value},[n.showMask&&e.createVNode("div",{class:`${i.prefix}-modal-mask`,style:o.maskStyle,onClick:()=>{n.onClose?.(),d.emit("onClose")}},null),e.createVNode("div",{class:c.value,style:{...o.modalStyle,...o.initPos,...w.value},ref:h},[e.createVNode("div",{class:`${i.prefix}-modal-header`,ref:v},[a||""]),e.createVNode("div",{class:`${i.prefix}-modal-body`},[l]),e.createVNode("div",{class:`${i.prefix}-modal-func`},[n.showAdjust&&e.createVNode("div",{class:`${i.prefix}-modal-adjust`,onClick:s=>{s.stopPropagation(),n.isFullscreen?o.initPos=o.historyPos:(o.historyPos=o.initPos,o.initPos={insetInlineStart:"0",insetBlockStart:"0"}),n.onAdjust(!n.isFullscreen)}},[e.createVNode(p,{name:n.isFullscreen?"minimize":"maximize"},null)]),e.createVNode("div",{class:`${i.prefix}-modal-close`,onClick:s=>{s.stopPropagation(),n.onClose?.(),d.emit("onClose")}},[e.createVNode(p,{name:"close"},null)])])])])])]}):""}}});m.install=n=>(n.component(m.name,m),n);exports.Icon=p;exports.MdModal=m;
@@ -3,7 +3,7 @@ import { p as l, g as C } from "./config.mjs";
3
3
  import { c as w } from "./index5.mjs";
4
4
  import { k as I } from "./dom.mjs";
5
5
  import { g as z } from "./vue-tsx.mjs";
6
- import { Upload as N, Trash2 as D, X as U, SquareSigma as X, ChartArea as G, ListTree as Q, CodeXml as V, Eye as Z, View as J, Expand as K, Shrink as Y, Maximize2 as _, Minimize2 as ee, SquareCode as M, Save as te, Forward as ne, Reply as oe, Table as ie, Image as le, Link as se, Code as ae, ListTodo as re, ListOrdered as ue, List as ce, Quote as de, Superscript as me, Subscript as fe, Heading as he, Strikethrough as ve, Italic as ye, Underline as ge, Bold as Se } from "lucide-vue-next";
6
+ import { Upload as N, Trash2 as D, X as U, SquareSigma as X, ChartArea as G, ListTree as Q, CodeXml as V, Eye as Z, View as J, Expand as K, Shrink as Y, Maximize2 as _, Minimize2 as ee, SquareCode as M, Save as te, Forward as ne, Reply as oe, Table as ie, Image as le, Link as se, Code as ae, ListTodo as re, ListOrdered as ue, List as ce, Quote as de, Superscript as me, Subscript as fe, Heading as he, Strikethrough as ve, Italic as ye, Underline as ge, Bold as Se } from "@lucide/vue";
7
7
  const pe = () => t("svg", {
8
8
  xmlns: "http://www.w3.org/2000/svg",
9
9
  viewBox: "0 0 24 24",
@@ -1850,18 +1850,10 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
1850
1850
  onOninputBoxWidthChange?: ((...args: any[]) => any) | undefined;
1851
1851
  onOnRemount?: ((...args: any[]) => any) | undefined;
1852
1852
  }>, {
1853
- language: string;
1854
- theme: Themes;
1855
- previewTheme: string;
1856
- codeTheme: string;
1857
- disabled: boolean;
1858
- showToolbarName: boolean;
1859
- onChange: ChangeEvent;
1860
- class: string;
1861
- style: string | vue.CSSProperties;
1862
1853
  preview: boolean;
1863
1854
  pageFullscreen: boolean;
1864
1855
  htmlPreview: boolean;
1856
+ onChange: ChangeEvent;
1865
1857
  onSave: SaveEvent;
1866
1858
  onUploadImg: UploadImgEvent;
1867
1859
  onHtmlChanged: HtmlChangedEvent;
@@ -1890,22 +1882,30 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
1890
1882
  }>;
1891
1883
  noUploadImg: boolean;
1892
1884
  autoFocus: boolean;
1885
+ disabled: boolean;
1893
1886
  readOnly: boolean;
1894
1887
  maxLength: number;
1895
1888
  autoDetectCode: boolean;
1896
1889
  completions: _codemirror_autocomplete.CompletionSource[];
1890
+ showToolbarName: boolean;
1897
1891
  inputBoxWidth: string;
1898
1892
  transformImgUrl: (t: string) => string | Promise<string>;
1899
- catalogLayout: "flat" | "fixed";
1893
+ catalogLayout: "fixed" | "flat";
1900
1894
  catalogMaxDepth: number;
1901
1895
  modelValue: string;
1896
+ theme: Themes;
1897
+ class: string;
1898
+ language: string;
1902
1899
  editorId: string;
1903
1900
  id: string;
1904
1901
  showCodeRowNumber: boolean;
1902
+ previewTheme: string;
1903
+ style: string | vue.CSSProperties;
1905
1904
  mdHeadingId: MdHeadingId;
1906
1905
  sanitize: (html: string) => string;
1907
1906
  noMermaid: boolean;
1908
1907
  noKatex: boolean;
1908
+ codeTheme: string;
1909
1909
  formatCopiedText: (text: string) => string;
1910
1910
  codeStyleReverse: boolean;
1911
1911
  codeStyleReverseList: string[];
@@ -2024,18 +2024,18 @@ declare const _default$b: vue.DefineComponent<vue.ExtractPropTypes<{
2024
2024
  }>> & Readonly<{
2025
2025
  onOnClick?: ((...args: any[]) => any) | undefined;
2026
2026
  }>, {
2027
- onClick: (e: MouseEvent) => void;
2028
2027
  title: string;
2028
+ disabled: boolean;
2029
+ showToolbarName: boolean;
2030
+ theme: Themes;
2031
+ language: string;
2032
+ previewTheme: string;
2033
+ codeTheme: string;
2034
+ onClick: (e: MouseEvent) => void;
2029
2035
  trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2030
2036
  [key: string]: any;
2031
2037
  }>;
2032
2038
  insert: () => void;
2033
- language: string;
2034
- theme: Themes;
2035
- previewTheme: string;
2036
- codeTheme: string;
2037
- disabled: boolean;
2038
- showToolbarName: boolean;
2039
2039
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2040
2040
 
2041
2041
  declare const _default$a: typeof _default$b & {
@@ -2160,17 +2160,17 @@ declare const _default$9: vue.DefineComponent<vue.ExtractPropTypes<{
2160
2160
  onOnChange?: ((...args: any[]) => any) | undefined;
2161
2161
  }>, {
2162
2162
  title: string;
2163
+ onChange: (visible: boolean) => void;
2164
+ disabled: boolean;
2165
+ showToolbarName: boolean;
2166
+ theme: Themes;
2167
+ language: string;
2168
+ previewTheme: string;
2169
+ codeTheme: string;
2163
2170
  trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2164
2171
  [key: string]: any;
2165
2172
  }>;
2166
2173
  insert: () => void;
2167
- language: string;
2168
- theme: Themes;
2169
- previewTheme: string;
2170
- codeTheme: string;
2171
- disabled: boolean;
2172
- showToolbarName: boolean;
2173
- onChange: (visible: boolean) => void;
2174
2174
  visible: boolean;
2175
2175
  overlay: string | VNode<vue.RendererNode, vue.RendererElement, {
2176
2176
  [key: string]: any;
@@ -2368,18 +2368,20 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
2368
2368
  onOnClose?: ((...args: any[]) => any) | undefined;
2369
2369
  onOnAdjust?: ((...args: any[]) => any) | undefined;
2370
2370
  }>, {
2371
- onClick: () => void;
2372
2371
  title: string;
2372
+ disabled: boolean;
2373
+ showToolbarName: boolean;
2374
+ theme: Themes;
2375
+ class: string;
2376
+ language: string;
2377
+ previewTheme: string;
2378
+ style: string | CSSProperties;
2379
+ codeTheme: string;
2380
+ onClick: () => void;
2373
2381
  trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2374
2382
  [key: string]: any;
2375
2383
  }>;
2376
2384
  insert: () => void;
2377
- language: string;
2378
- theme: Themes;
2379
- previewTheme: string;
2380
- codeTheme: string;
2381
- disabled: boolean;
2382
- showToolbarName: boolean;
2383
2385
  visible: boolean;
2384
2386
  onClose: () => void;
2385
2387
  onAdjust: (val: boolean) => void;
@@ -2390,8 +2392,6 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
2390
2392
  height: string;
2391
2393
  showAdjust: boolean;
2392
2394
  isFullscreen: boolean;
2393
- class: string;
2394
- style: string | CSSProperties;
2395
2395
  showMask: boolean;
2396
2396
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2397
2397
 
@@ -2495,14 +2495,14 @@ declare const _default$5: vue.DefineComponent<vue.ExtractPropTypes<{
2495
2495
  }> | VNode<vue.RendererNode, vue.RendererElement, {
2496
2496
  [key: string]: any;
2497
2497
  }>[];
2498
+ class: string;
2499
+ style: string | CSSProperties;
2498
2500
  visible: boolean;
2499
2501
  onAdjust: (val: boolean) => void;
2500
2502
  width: string;
2501
2503
  height: string;
2502
2504
  showAdjust: boolean;
2503
2505
  isFullscreen: boolean;
2504
- class: string;
2505
- style: string | CSSProperties;
2506
2506
  showMask: boolean;
2507
2507
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2508
2508
 
@@ -2555,10 +2555,10 @@ declare const _default$3: vue.DefineComponent<vue.ExtractPropTypes<{
2555
2555
  }>> & Readonly<{
2556
2556
  onOnClick?: ((...args: any[]) => any) | undefined;
2557
2557
  }>, {
2558
- onClick: (e: MouseEvent) => void;
2559
- language: string;
2560
- theme: Themes;
2561
2558
  disabled: boolean;
2559
+ theme: Themes;
2560
+ language: string;
2561
+ onClick: (e: MouseEvent) => void;
2562
2562
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2563
2563
 
2564
2564
  declare const _default$2: typeof _default$3 & {
@@ -2566,49 +2566,49 @@ declare const _default$2: typeof _default$3 & {
2566
2566
  };
2567
2567
 
2568
2568
  declare const MdPreview: vue.DefineComponent<{
2569
- readonly language: string;
2569
+ readonly modelValue: string;
2570
2570
  readonly theme: Themes;
2571
- readonly previewTheme: string;
2572
- readonly codeTheme: string;
2573
2571
  readonly class: string;
2574
- readonly style: string | vue.CSSProperties;
2575
- readonly modelValue: string;
2572
+ readonly language: string;
2576
2573
  readonly showCodeRowNumber: boolean;
2574
+ readonly previewTheme: string;
2575
+ readonly style: string | vue.CSSProperties;
2577
2576
  readonly mdHeadingId: MdHeadingId;
2578
2577
  readonly sanitize: (html: string) => string;
2579
2578
  readonly noMermaid: boolean;
2580
2579
  readonly noKatex: boolean;
2580
+ readonly codeTheme: string;
2581
2581
  readonly formatCopiedText: (text: string) => string;
2582
2582
  readonly codeStyleReverse: boolean;
2583
2583
  readonly codeStyleReverseList: string[];
2584
2584
  readonly noHighlight: boolean;
2585
2585
  readonly noImgZoomIn: boolean;
2586
2586
  readonly customIcon: {
2587
- title?: {
2587
+ bold?: {
2588
2588
  component: vue.Component | vue.VNode | string;
2589
2589
  props?: {
2590
2590
  [key: string | number | symbol]: any;
2591
2591
  };
2592
2592
  } | undefined;
2593
- bold?: {
2593
+ underline?: {
2594
2594
  component: vue.Component | vue.VNode | string;
2595
2595
  props?: {
2596
2596
  [key: string | number | symbol]: any;
2597
2597
  };
2598
2598
  } | undefined;
2599
- underline?: {
2599
+ italic?: {
2600
2600
  component: vue.Component | vue.VNode | string;
2601
2601
  props?: {
2602
2602
  [key: string | number | symbol]: any;
2603
2603
  };
2604
2604
  } | undefined;
2605
- italic?: {
2605
+ "strike-through"?: {
2606
2606
  component: vue.Component | vue.VNode | string;
2607
2607
  props?: {
2608
2608
  [key: string | number | symbol]: any;
2609
2609
  };
2610
2610
  } | undefined;
2611
- "strike-through"?: {
2611
+ title?: {
2612
2612
  component: vue.Component | vue.VNode | string;
2613
2613
  props?: {
2614
2614
  [key: string | number | symbol]: any;
@@ -2801,49 +2801,49 @@ declare const MdPreview: vue.DefineComponent<{
2801
2801
  readonly id: string | undefined;
2802
2802
  readonly previewComponent: vue.Component | undefined;
2803
2803
  }, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "oninputBoxWidthChange" | "onRemount", vue.PublicProps, Readonly<{
2804
- readonly language: string;
2804
+ readonly modelValue: string;
2805
2805
  readonly theme: Themes;
2806
- readonly previewTheme: string;
2807
- readonly codeTheme: string;
2808
2806
  readonly class: string;
2809
- readonly style: string | vue.CSSProperties;
2810
- readonly modelValue: string;
2807
+ readonly language: string;
2811
2808
  readonly showCodeRowNumber: boolean;
2809
+ readonly previewTheme: string;
2810
+ readonly style: string | vue.CSSProperties;
2812
2811
  readonly mdHeadingId: MdHeadingId;
2813
2812
  readonly sanitize: (html: string) => string;
2814
2813
  readonly noMermaid: boolean;
2815
2814
  readonly noKatex: boolean;
2815
+ readonly codeTheme: string;
2816
2816
  readonly formatCopiedText: (text: string) => string;
2817
2817
  readonly codeStyleReverse: boolean;
2818
2818
  readonly codeStyleReverseList: string[];
2819
2819
  readonly noHighlight: boolean;
2820
2820
  readonly noImgZoomIn: boolean;
2821
2821
  readonly customIcon: {
2822
- title?: {
2822
+ bold?: {
2823
2823
  component: vue.Component | vue.VNode | string;
2824
2824
  props?: {
2825
2825
  [key: string | number | symbol]: any;
2826
2826
  };
2827
2827
  } | undefined;
2828
- bold?: {
2828
+ underline?: {
2829
2829
  component: vue.Component | vue.VNode | string;
2830
2830
  props?: {
2831
2831
  [key: string | number | symbol]: any;
2832
2832
  };
2833
2833
  } | undefined;
2834
- underline?: {
2834
+ italic?: {
2835
2835
  component: vue.Component | vue.VNode | string;
2836
2836
  props?: {
2837
2837
  [key: string | number | symbol]: any;
2838
2838
  };
2839
2839
  } | undefined;
2840
- italic?: {
2840
+ "strike-through"?: {
2841
2841
  component: vue.Component | vue.VNode | string;
2842
2842
  props?: {
2843
2843
  [key: string | number | symbol]: any;
2844
2844
  };
2845
2845
  } | undefined;
2846
- "strike-through"?: {
2846
+ title?: {
2847
2847
  component: vue.Component | vue.VNode | string;
2848
2848
  props?: {
2849
2849
  [key: string | number | symbol]: any;
@@ -3050,24 +3050,24 @@ declare const MdPreview: vue.DefineComponent<{
3050
3050
  onOninputBoxWidthChange?: ((...args: any[]) => any) | undefined;
3051
3051
  onOnRemount?: ((...args: any[]) => any) | undefined;
3052
3052
  }>, {
3053
- language: string;
3054
- theme: Themes;
3055
- previewTheme: string;
3056
- codeTheme: string;
3057
3053
  onChange: ChangeEvent;
3058
- class: string;
3059
- style: string | vue.CSSProperties;
3060
3054
  onHtmlChanged: HtmlChangedEvent;
3061
3055
  onGetCatalog: GetCatalogEvent;
3062
3056
  onRemount: () => void;
3063
3057
  modelValue: string;
3058
+ theme: Themes;
3059
+ class: string;
3060
+ language: string;
3064
3061
  editorId: string;
3065
3062
  id: string;
3066
3063
  showCodeRowNumber: boolean;
3064
+ previewTheme: string;
3065
+ style: string | vue.CSSProperties;
3067
3066
  mdHeadingId: MdHeadingId;
3068
3067
  sanitize: (html: string) => string;
3069
3068
  noMermaid: boolean;
3070
3069
  noKatex: boolean;
3070
+ codeTheme: string;
3071
3071
  formatCopiedText: (text: string) => string;
3072
3072
  codeStyleReverse: boolean;
3073
3073
  codeStyleReverseList: string[];
@@ -3255,12 +3255,12 @@ declare const MdCatalog: vue.DefineComponent<vue.ExtractPropTypes<{
3255
3255
  onOnClick?: ((...args: any[]) => any) | undefined;
3256
3256
  onOnActive?: ((...args: any[]) => any) | undefined;
3257
3257
  }>, {
3258
- onClick: (e: MouseEvent, t: TocItem) => void;
3258
+ catalogMaxDepth: number;
3259
3259
  theme: Themes;
3260
3260
  class: string;
3261
- catalogMaxDepth: number;
3262
3261
  editorId: string;
3263
3262
  mdHeadingId: MdHeadingId;
3263
+ onClick: (e: MouseEvent, t: TocItem) => void;
3264
3264
  onActive: (heading: HeadList | undefined, activeElement: HTMLDivElement) => void;
3265
3265
  scrollElement: string | HTMLElement;
3266
3266
  offsetTop: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md-editor-v3",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "vue",
@@ -38,8 +38,8 @@
38
38
  "**/*.css"
39
39
  ],
40
40
  "scripts": {
41
- "dev": "tsx ./scripts/dev",
42
- "build": "tsx ./scripts/build",
41
+ "dev": "node ./scripts/dev.ts",
42
+ "build": "node ./scripts/build.ts",
43
43
  "lint": "eslint --ext .ts,.tsx,.vue --fix packages",
44
44
  "lint-staged": "lint-staged",
45
45
  "prepare": "husky"
@@ -54,11 +54,11 @@
54
54
  "@codemirror/state": "^6.5.2",
55
55
  "@codemirror/view": "^6.38.2",
56
56
  "@lezer/highlight": "^1.2.1",
57
+ "@lucide/vue": "^1.16.0",
57
58
  "@types/markdown-it": "^14.0.1",
58
59
  "@vavt/copy2clipboard": "^1.0.1",
59
60
  "@vavt/util": "^2.1.2",
60
61
  "codemirror": "^6.0.2",
61
- "lucide-vue-next": "^0.543.0",
62
62
  "markdown-it": "^14.0.0",
63
63
  "markdown-it-image-figures": "^2.1.1",
64
64
  "markdown-it-sub": "^2.0.0",
@@ -80,7 +80,6 @@
80
80
  "@vitejs/plugin-vue-jsx": "^5.1.1",
81
81
  "@vue/eslint-config-prettier": "^10.0.0",
82
82
  "@vue/eslint-config-typescript": "^14.6.0",
83
- "axios": "^1.11.0",
84
83
  "cropperjs": "^1.6.2",
85
84
  "echarts": "^6.0.0",
86
85
  "eslint": "^9.35.0",
@@ -99,7 +98,6 @@
99
98
  "prettier": "^3.6.2",
100
99
  "rollup-plugin-dts": "^6.3.0",
101
100
  "screenfull": "^6.0.2",
102
- "tsx": "^4.20.5",
103
101
  "typescript": "^5.9.2",
104
102
  "typescript-eslint": "^8.43.0",
105
103
  "vite": "^7.1.5",