md-editor-v3 6.5.6 → 7.0.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.
- package/lib/cjs/MdEditor.cjs +1 -1
- package/lib/cjs/chunks/config.cjs +14 -1
- package/lib/cjs/chunks/index3.cjs +1 -1
- package/lib/cjs/chunks/index4.cjs +45 -45
- package/lib/cjs/chunks/index5.cjs +7 -2
- package/lib/es/MdEditor.mjs +5 -4
- package/lib/es/chunks/config.mjs +919 -69
- package/lib/es/chunks/event-bus.mjs +5 -5
- package/lib/es/chunks/index3.mjs +57 -56
- package/lib/es/chunks/index4.mjs +701 -635
- package/lib/es/chunks/index5.mjs +199 -32
- package/lib/preview.css +2 -2
- package/lib/style.css +4 -4
- package/lib/types/index.d.ts +80 -80
- package/package.json +3 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -516,7 +516,7 @@ declare const editorProps: {
|
|
|
516
516
|
/**
|
|
517
517
|
* 输入框宽度变化事件
|
|
518
518
|
*/
|
|
519
|
-
|
|
519
|
+
onInputBoxWidthChange: {
|
|
520
520
|
type: PropType<(width: string) => void>;
|
|
521
521
|
default: undefined;
|
|
522
522
|
};
|
|
@@ -1028,10 +1028,10 @@ interface GlobalConfig {
|
|
|
1028
1028
|
instance?: any;
|
|
1029
1029
|
js?: string;
|
|
1030
1030
|
/**
|
|
1031
|
-
* 解析
|
|
1031
|
+
* 解析 ECharts 代码块内容。
|
|
1032
1032
|
*
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1033
|
+
* 从 v7.x 开始,默认基于 JSON5.parse 解析 JSON5 数据,并要求顶层为对象,不会执行代码块中的 JavaScript。
|
|
1034
|
+
* 如需函数回调等 JavaScript 配置可覆盖该方法;自定义解析器需要自行保证输入安全。
|
|
1035
1035
|
*/
|
|
1036
1036
|
parseOption?: (code: string, options: {
|
|
1037
1037
|
editorId: string;
|
|
@@ -1308,7 +1308,7 @@ interface ExposeParam {
|
|
|
1308
1308
|
type ExposePreviewParam = Pick<ExposeParam, 'rerender'>;
|
|
1309
1309
|
type EditorProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof editorProps>>>>;
|
|
1310
1310
|
type MdPreviewProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof mdPreviewProps>>>>;
|
|
1311
|
-
type EditorEmits = Array<'onChange' | 'onSave' | 'onUploadImg' | 'onHtmlChanged' | 'onGetCatalog' | 'onError' | 'update:modelValue' | 'onBlur' | 'onFocus' | 'onInput' | 'onDrop' | '
|
|
1311
|
+
type EditorEmits = Array<'onChange' | 'onSave' | 'onUploadImg' | 'onHtmlChanged' | 'onGetCatalog' | 'onError' | 'update:modelValue' | 'onBlur' | 'onFocus' | 'onInput' | 'onDrop' | 'onInputBoxWidthChange' | 'onRemount'>;
|
|
1312
1312
|
type EditorContext = SetupContext<EditorEmits>;
|
|
1313
1313
|
type CustomStrIcon = {
|
|
1314
1314
|
copy?: string;
|
|
@@ -1450,7 +1450,7 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1450
1450
|
type: vue.PropType<string>;
|
|
1451
1451
|
default: string;
|
|
1452
1452
|
};
|
|
1453
|
-
|
|
1453
|
+
onInputBoxWidthChange: {
|
|
1454
1454
|
type: vue.PropType<(width: string) => void>;
|
|
1455
1455
|
default: undefined;
|
|
1456
1456
|
};
|
|
@@ -1582,7 +1582,7 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1582
1582
|
type: vue.PropType<vue.Component>;
|
|
1583
1583
|
default: undefined;
|
|
1584
1584
|
};
|
|
1585
|
-
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "
|
|
1585
|
+
}>, () => 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<vue.ExtractPropTypes<{
|
|
1586
1586
|
onSave: {
|
|
1587
1587
|
type: vue.PropType<SaveEvent>;
|
|
1588
1588
|
default: undefined;
|
|
@@ -1703,7 +1703,7 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1703
1703
|
type: vue.PropType<string>;
|
|
1704
1704
|
default: string;
|
|
1705
1705
|
};
|
|
1706
|
-
|
|
1706
|
+
onInputBoxWidthChange: {
|
|
1707
1707
|
type: vue.PropType<(width: string) => void>;
|
|
1708
1708
|
default: undefined;
|
|
1709
1709
|
};
|
|
@@ -1847,13 +1847,21 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1847
1847
|
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
1848
1848
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
1849
1849
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
1850
|
-
|
|
1850
|
+
onOnInputBoxWidthChange?: ((...args: any[]) => any) | undefined;
|
|
1851
1851
|
onOnRemount?: ((...args: any[]) => any) | undefined;
|
|
1852
1852
|
}>, {
|
|
1853
|
+
onChange: ChangeEvent;
|
|
1854
|
+
language: string;
|
|
1855
|
+
theme: Themes;
|
|
1856
|
+
previewTheme: string;
|
|
1857
|
+
codeTheme: string;
|
|
1858
|
+
disabled: boolean;
|
|
1859
|
+
showToolbarName: boolean;
|
|
1860
|
+
class: string;
|
|
1861
|
+
style: string | vue.CSSProperties;
|
|
1853
1862
|
preview: boolean;
|
|
1854
1863
|
pageFullscreen: boolean;
|
|
1855
1864
|
htmlPreview: boolean;
|
|
1856
|
-
onChange: ChangeEvent;
|
|
1857
1865
|
onSave: SaveEvent;
|
|
1858
1866
|
onUploadImg: UploadImgEvent;
|
|
1859
1867
|
onHtmlChanged: HtmlChangedEvent;
|
|
@@ -1863,7 +1871,7 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1863
1871
|
onFocus: (event: FocusEvent) => void;
|
|
1864
1872
|
onInput: (event: Event) => void;
|
|
1865
1873
|
onDrop: (event: DragEvent) => void;
|
|
1866
|
-
|
|
1874
|
+
onInputBoxWidthChange: (width: string) => void;
|
|
1867
1875
|
onRemount: () => void;
|
|
1868
1876
|
toolbars: ToolbarNames[];
|
|
1869
1877
|
floatingToolbars: ToolbarNames[];
|
|
@@ -1882,30 +1890,22 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1882
1890
|
}>;
|
|
1883
1891
|
noUploadImg: boolean;
|
|
1884
1892
|
autoFocus: boolean;
|
|
1885
|
-
disabled: boolean;
|
|
1886
1893
|
readOnly: boolean;
|
|
1887
1894
|
maxLength: number;
|
|
1888
1895
|
autoDetectCode: boolean;
|
|
1889
1896
|
completions: _codemirror_autocomplete.CompletionSource[];
|
|
1890
|
-
showToolbarName: boolean;
|
|
1891
1897
|
inputBoxWidth: string;
|
|
1892
1898
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
1893
|
-
catalogLayout: "
|
|
1899
|
+
catalogLayout: "flat" | "fixed";
|
|
1894
1900
|
catalogMaxDepth: number;
|
|
1895
1901
|
modelValue: string;
|
|
1896
|
-
theme: Themes;
|
|
1897
|
-
class: string;
|
|
1898
|
-
language: string;
|
|
1899
1902
|
editorId: string;
|
|
1900
1903
|
id: string;
|
|
1901
1904
|
showCodeRowNumber: boolean;
|
|
1902
|
-
previewTheme: string;
|
|
1903
|
-
style: string | vue.CSSProperties;
|
|
1904
1905
|
mdHeadingId: MdHeadingId;
|
|
1905
1906
|
sanitize: (html: string) => string;
|
|
1906
1907
|
noMermaid: boolean;
|
|
1907
1908
|
noKatex: boolean;
|
|
1908
|
-
codeTheme: string;
|
|
1909
1909
|
formatCopiedText: (text: string) => string;
|
|
1910
1910
|
codeStyleReverse: boolean;
|
|
1911
1911
|
codeStyleReverseList: string[];
|
|
@@ -2025,17 +2025,17 @@ declare const _default$b: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2025
2025
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
2026
2026
|
}>, {
|
|
2027
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;
|
|
2035
2028
|
trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2036
2029
|
[key: string]: any;
|
|
2037
2030
|
}>;
|
|
2038
2031
|
insert: () => void;
|
|
2032
|
+
language: string;
|
|
2033
|
+
theme: Themes;
|
|
2034
|
+
previewTheme: string;
|
|
2035
|
+
codeTheme: string;
|
|
2036
|
+
disabled: boolean;
|
|
2037
|
+
showToolbarName: boolean;
|
|
2038
|
+
onClick: (e: MouseEvent) => void;
|
|
2039
2039
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
2040
2040
|
|
|
2041
2041
|
declare const _default$a: typeof _default$b & {
|
|
@@ -2159,22 +2159,22 @@ declare const _default$9: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2159
2159
|
}>> & Readonly<{
|
|
2160
2160
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
2161
2161
|
}>, {
|
|
2162
|
-
title: string;
|
|
2163
2162
|
onChange: (visible: boolean) => void;
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
theme: Themes;
|
|
2167
|
-
language: string;
|
|
2168
|
-
previewTheme: string;
|
|
2169
|
-
codeTheme: string;
|
|
2163
|
+
title: string;
|
|
2164
|
+
visible: boolean;
|
|
2170
2165
|
trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2171
2166
|
[key: string]: any;
|
|
2172
2167
|
}>;
|
|
2173
|
-
insert: () => void;
|
|
2174
|
-
visible: boolean;
|
|
2175
2168
|
overlay: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2176
2169
|
[key: string]: any;
|
|
2177
2170
|
}>;
|
|
2171
|
+
insert: () => void;
|
|
2172
|
+
language: string;
|
|
2173
|
+
theme: Themes;
|
|
2174
|
+
previewTheme: string;
|
|
2175
|
+
codeTheme: string;
|
|
2176
|
+
disabled: boolean;
|
|
2177
|
+
showToolbarName: boolean;
|
|
2178
2178
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
2179
2179
|
|
|
2180
2180
|
declare const _default$8: typeof _default$9 & {
|
|
@@ -2369,20 +2369,18 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2369
2369
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
2370
2370
|
}>, {
|
|
2371
2371
|
title: string;
|
|
2372
|
-
|
|
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;
|
|
2372
|
+
visible: boolean;
|
|
2381
2373
|
trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2382
2374
|
[key: string]: any;
|
|
2383
2375
|
}>;
|
|
2384
2376
|
insert: () => void;
|
|
2385
|
-
|
|
2377
|
+
language: string;
|
|
2378
|
+
theme: Themes;
|
|
2379
|
+
previewTheme: string;
|
|
2380
|
+
codeTheme: string;
|
|
2381
|
+
disabled: boolean;
|
|
2382
|
+
showToolbarName: boolean;
|
|
2383
|
+
onClick: () => void;
|
|
2386
2384
|
onClose: () => void;
|
|
2387
2385
|
onAdjust: (val: boolean) => void;
|
|
2388
2386
|
modalTitle: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
@@ -2392,6 +2390,8 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2392
2390
|
height: string;
|
|
2393
2391
|
showAdjust: boolean;
|
|
2394
2392
|
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;
|
|
2500
2498
|
visible: boolean;
|
|
2501
2499
|
onAdjust: (val: boolean) => void;
|
|
2502
2500
|
width: string;
|
|
2503
2501
|
height: string;
|
|
2504
2502
|
showAdjust: boolean;
|
|
2505
2503
|
isFullscreen: boolean;
|
|
2504
|
+
class: string;
|
|
2505
|
+
style: string | CSSProperties;
|
|
2506
2506
|
showMask: boolean;
|
|
2507
2507
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
2508
2508
|
|
|
@@ -2555,9 +2555,9 @@ declare const _default$3: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2555
2555
|
}>> & Readonly<{
|
|
2556
2556
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
2557
2557
|
}>, {
|
|
2558
|
-
disabled: boolean;
|
|
2559
|
-
theme: Themes;
|
|
2560
2558
|
language: string;
|
|
2559
|
+
theme: Themes;
|
|
2560
|
+
disabled: boolean;
|
|
2561
2561
|
onClick: (e: MouseEvent) => void;
|
|
2562
2562
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
2563
2563
|
|
|
@@ -2566,49 +2566,49 @@ declare const _default$2: typeof _default$3 & {
|
|
|
2566
2566
|
};
|
|
2567
2567
|
|
|
2568
2568
|
declare const MdPreview: vue.DefineComponent<{
|
|
2569
|
-
readonly modelValue: string;
|
|
2570
|
-
readonly theme: Themes;
|
|
2571
|
-
readonly class: string;
|
|
2572
2569
|
readonly language: string;
|
|
2573
|
-
readonly
|
|
2570
|
+
readonly theme: Themes;
|
|
2574
2571
|
readonly previewTheme: string;
|
|
2572
|
+
readonly codeTheme: string;
|
|
2573
|
+
readonly class: string;
|
|
2575
2574
|
readonly style: string | vue.CSSProperties;
|
|
2575
|
+
readonly modelValue: string;
|
|
2576
|
+
readonly showCodeRowNumber: boolean;
|
|
2576
2577
|
readonly mdHeadingId: MdHeadingId;
|
|
2577
2578
|
readonly sanitize: (html: string) => string;
|
|
2578
2579
|
readonly noMermaid: boolean;
|
|
2579
2580
|
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
|
-
|
|
2587
|
+
title?: {
|
|
2588
2588
|
component: vue.Component | vue.VNode | string;
|
|
2589
2589
|
props?: {
|
|
2590
2590
|
[key: string | number | symbol]: any;
|
|
2591
2591
|
};
|
|
2592
2592
|
} | undefined;
|
|
2593
|
-
|
|
2593
|
+
bold?: {
|
|
2594
2594
|
component: vue.Component | vue.VNode | string;
|
|
2595
2595
|
props?: {
|
|
2596
2596
|
[key: string | number | symbol]: any;
|
|
2597
2597
|
};
|
|
2598
2598
|
} | undefined;
|
|
2599
|
-
|
|
2599
|
+
underline?: {
|
|
2600
2600
|
component: vue.Component | vue.VNode | string;
|
|
2601
2601
|
props?: {
|
|
2602
2602
|
[key: string | number | symbol]: any;
|
|
2603
2603
|
};
|
|
2604
2604
|
} | undefined;
|
|
2605
|
-
|
|
2605
|
+
italic?: {
|
|
2606
2606
|
component: vue.Component | vue.VNode | string;
|
|
2607
2607
|
props?: {
|
|
2608
2608
|
[key: string | number | symbol]: any;
|
|
2609
2609
|
};
|
|
2610
2610
|
} | undefined;
|
|
2611
|
-
|
|
2611
|
+
"strike-through"?: {
|
|
2612
2612
|
component: vue.Component | vue.VNode | string;
|
|
2613
2613
|
props?: {
|
|
2614
2614
|
[key: string | number | symbol]: any;
|
|
@@ -2800,50 +2800,50 @@ declare const MdPreview: vue.DefineComponent<{
|
|
|
2800
2800
|
readonly editorId: string | undefined;
|
|
2801
2801
|
readonly id: string | undefined;
|
|
2802
2802
|
readonly previewComponent: vue.Component | undefined;
|
|
2803
|
-
}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "
|
|
2804
|
-
readonly modelValue: string;
|
|
2805
|
-
readonly theme: Themes;
|
|
2806
|
-
readonly class: string;
|
|
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<{
|
|
2807
2804
|
readonly language: string;
|
|
2808
|
-
readonly
|
|
2805
|
+
readonly theme: Themes;
|
|
2809
2806
|
readonly previewTheme: string;
|
|
2807
|
+
readonly codeTheme: string;
|
|
2808
|
+
readonly class: string;
|
|
2810
2809
|
readonly style: string | vue.CSSProperties;
|
|
2810
|
+
readonly modelValue: string;
|
|
2811
|
+
readonly showCodeRowNumber: boolean;
|
|
2811
2812
|
readonly mdHeadingId: MdHeadingId;
|
|
2812
2813
|
readonly sanitize: (html: string) => string;
|
|
2813
2814
|
readonly noMermaid: boolean;
|
|
2814
2815
|
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
|
-
|
|
2822
|
+
title?: {
|
|
2823
2823
|
component: vue.Component | vue.VNode | string;
|
|
2824
2824
|
props?: {
|
|
2825
2825
|
[key: string | number | symbol]: any;
|
|
2826
2826
|
};
|
|
2827
2827
|
} | undefined;
|
|
2828
|
-
|
|
2828
|
+
bold?: {
|
|
2829
2829
|
component: vue.Component | vue.VNode | string;
|
|
2830
2830
|
props?: {
|
|
2831
2831
|
[key: string | number | symbol]: any;
|
|
2832
2832
|
};
|
|
2833
2833
|
} | undefined;
|
|
2834
|
-
|
|
2834
|
+
underline?: {
|
|
2835
2835
|
component: vue.Component | vue.VNode | string;
|
|
2836
2836
|
props?: {
|
|
2837
2837
|
[key: string | number | symbol]: any;
|
|
2838
2838
|
};
|
|
2839
2839
|
} | undefined;
|
|
2840
|
-
|
|
2840
|
+
italic?: {
|
|
2841
2841
|
component: vue.Component | vue.VNode | string;
|
|
2842
2842
|
props?: {
|
|
2843
2843
|
[key: string | number | symbol]: any;
|
|
2844
2844
|
};
|
|
2845
2845
|
} | undefined;
|
|
2846
|
-
|
|
2846
|
+
"strike-through"?: {
|
|
2847
2847
|
component: vue.Component | vue.VNode | string;
|
|
2848
2848
|
props?: {
|
|
2849
2849
|
[key: string | number | symbol]: any;
|
|
@@ -3047,27 +3047,27 @@ declare const MdPreview: vue.DefineComponent<{
|
|
|
3047
3047
|
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
3048
3048
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
3049
3049
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
3050
|
-
|
|
3050
|
+
onOnInputBoxWidthChange?: ((...args: any[]) => any) | undefined;
|
|
3051
3051
|
onOnRemount?: ((...args: any[]) => any) | undefined;
|
|
3052
3052
|
}>, {
|
|
3053
3053
|
onChange: ChangeEvent;
|
|
3054
|
+
language: string;
|
|
3055
|
+
theme: Themes;
|
|
3056
|
+
previewTheme: string;
|
|
3057
|
+
codeTheme: string;
|
|
3058
|
+
class: string;
|
|
3059
|
+
style: string | vue.CSSProperties;
|
|
3054
3060
|
onHtmlChanged: HtmlChangedEvent;
|
|
3055
3061
|
onGetCatalog: GetCatalogEvent;
|
|
3056
3062
|
onRemount: () => void;
|
|
3057
3063
|
modelValue: string;
|
|
3058
|
-
theme: Themes;
|
|
3059
|
-
class: string;
|
|
3060
|
-
language: string;
|
|
3061
3064
|
editorId: string;
|
|
3062
3065
|
id: string;
|
|
3063
3066
|
showCodeRowNumber: boolean;
|
|
3064
|
-
previewTheme: string;
|
|
3065
|
-
style: string | vue.CSSProperties;
|
|
3066
3067
|
mdHeadingId: MdHeadingId;
|
|
3067
3068
|
sanitize: (html: string) => string;
|
|
3068
3069
|
noMermaid: boolean;
|
|
3069
3070
|
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
|
-
catalogMaxDepth: number;
|
|
3259
3258
|
theme: Themes;
|
|
3259
|
+
onClick: (e: MouseEvent, t: TocItem) => void;
|
|
3260
3260
|
class: string;
|
|
3261
|
+
catalogMaxDepth: number;
|
|
3261
3262
|
editorId: string;
|
|
3262
3263
|
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": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -57,9 +57,10 @@
|
|
|
57
57
|
"@lucide/vue": "^1.16.0",
|
|
58
58
|
"@types/markdown-it": "^14.0.1",
|
|
59
59
|
"@vavt/copy2clipboard": "^1.0.1",
|
|
60
|
-
"@vavt/markdown-theme": "^
|
|
60
|
+
"@vavt/markdown-theme": "^6.0.0",
|
|
61
61
|
"@vavt/util": "^2.1.2",
|
|
62
62
|
"codemirror": "^6.0.2",
|
|
63
|
+
"json5": "^2.2.3",
|
|
63
64
|
"markdown-it": "^14.0.0",
|
|
64
65
|
"markdown-it-image-figures": "^2.1.1",
|
|
65
66
|
"markdown-it-sub": "^2.0.0",
|