md-editor-v3 6.3.2 → 6.4.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/README.md +3 -0
- package/lib/cjs/chunks/index3.cjs +9 -9
- package/lib/es/chunks/index3.mjs +87 -71
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/index.d.ts +57 -57
- package/package.json +2 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -1840,12 +1840,6 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1840
1840
|
onOninputBoxWidthChange?: ((...args: any[]) => any) | undefined;
|
|
1841
1841
|
onOnRemount?: ((...args: any[]) => any) | undefined;
|
|
1842
1842
|
}>, {
|
|
1843
|
-
language: string;
|
|
1844
|
-
theme: Themes;
|
|
1845
|
-
previewTheme: string;
|
|
1846
|
-
codeTheme: string;
|
|
1847
|
-
disabled: boolean;
|
|
1848
|
-
showToolbarName: boolean;
|
|
1849
1843
|
preview: boolean;
|
|
1850
1844
|
pageFullscreen: boolean;
|
|
1851
1845
|
htmlPreview: boolean;
|
|
@@ -1878,24 +1872,30 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1878
1872
|
}>;
|
|
1879
1873
|
noUploadImg: boolean;
|
|
1880
1874
|
autoFocus: boolean;
|
|
1875
|
+
disabled: boolean;
|
|
1881
1876
|
readOnly: boolean;
|
|
1882
1877
|
maxLength: number;
|
|
1883
1878
|
autoDetectCode: boolean;
|
|
1884
1879
|
completions: _codemirror_autocomplete.CompletionSource[];
|
|
1880
|
+
showToolbarName: boolean;
|
|
1885
1881
|
inputBoxWidth: string;
|
|
1886
1882
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
1887
|
-
catalogLayout: "
|
|
1883
|
+
catalogLayout: "fixed" | "flat";
|
|
1888
1884
|
catalogMaxDepth: number;
|
|
1889
1885
|
modelValue: string;
|
|
1886
|
+
theme: Themes;
|
|
1890
1887
|
class: string;
|
|
1888
|
+
language: string;
|
|
1891
1889
|
editorId: string;
|
|
1892
1890
|
id: string;
|
|
1893
1891
|
showCodeRowNumber: boolean;
|
|
1892
|
+
previewTheme: string;
|
|
1894
1893
|
style: string | vue.CSSProperties;
|
|
1895
1894
|
mdHeadingId: MdHeadingId;
|
|
1896
1895
|
sanitize: (html: string) => string;
|
|
1897
1896
|
noMermaid: boolean;
|
|
1898
1897
|
noKatex: boolean;
|
|
1898
|
+
codeTheme: string;
|
|
1899
1899
|
formatCopiedText: (text: string) => string;
|
|
1900
1900
|
codeStyleReverse: boolean;
|
|
1901
1901
|
codeStyleReverseList: string[];
|
|
@@ -2014,18 +2014,18 @@ declare const _default$b: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2014
2014
|
}>> & Readonly<{
|
|
2015
2015
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
2016
2016
|
}>, {
|
|
2017
|
-
onClick: (e: MouseEvent) => void;
|
|
2018
2017
|
title: string;
|
|
2018
|
+
disabled: boolean;
|
|
2019
|
+
showToolbarName: boolean;
|
|
2020
|
+
theme: Themes;
|
|
2021
|
+
language: string;
|
|
2022
|
+
previewTheme: string;
|
|
2023
|
+
codeTheme: string;
|
|
2024
|
+
onClick: (e: MouseEvent) => void;
|
|
2019
2025
|
trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2020
2026
|
[key: string]: any;
|
|
2021
2027
|
}>;
|
|
2022
2028
|
insert: () => void;
|
|
2023
|
-
language: string;
|
|
2024
|
-
theme: Themes;
|
|
2025
|
-
previewTheme: string;
|
|
2026
|
-
codeTheme: string;
|
|
2027
|
-
disabled: boolean;
|
|
2028
|
-
showToolbarName: boolean;
|
|
2029
2029
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
2030
2030
|
|
|
2031
2031
|
declare const _default$a: typeof _default$b & {
|
|
@@ -2150,17 +2150,17 @@ declare const _default$9: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2150
2150
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
2151
2151
|
}>, {
|
|
2152
2152
|
title: string;
|
|
2153
|
+
onChange: (visible: boolean) => void;
|
|
2154
|
+
disabled: boolean;
|
|
2155
|
+
showToolbarName: boolean;
|
|
2156
|
+
theme: Themes;
|
|
2157
|
+
language: string;
|
|
2158
|
+
previewTheme: string;
|
|
2159
|
+
codeTheme: string;
|
|
2153
2160
|
trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2154
2161
|
[key: string]: any;
|
|
2155
2162
|
}>;
|
|
2156
2163
|
insert: () => void;
|
|
2157
|
-
language: string;
|
|
2158
|
-
theme: Themes;
|
|
2159
|
-
previewTheme: string;
|
|
2160
|
-
codeTheme: string;
|
|
2161
|
-
disabled: boolean;
|
|
2162
|
-
showToolbarName: boolean;
|
|
2163
|
-
onChange: (visible: boolean) => void;
|
|
2164
2164
|
visible: boolean;
|
|
2165
2165
|
overlay: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2166
2166
|
[key: string]: any;
|
|
@@ -2358,20 +2358,20 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2358
2358
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
2359
2359
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
2360
2360
|
}>, {
|
|
2361
|
-
onClick: () => void;
|
|
2362
2361
|
title: string;
|
|
2363
|
-
trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2364
|
-
[key: string]: any;
|
|
2365
|
-
}>;
|
|
2366
|
-
insert: () => void;
|
|
2367
|
-
language: string;
|
|
2368
|
-
theme: Themes;
|
|
2369
|
-
previewTheme: string;
|
|
2370
|
-
codeTheme: string;
|
|
2371
2362
|
disabled: boolean;
|
|
2372
2363
|
showToolbarName: boolean;
|
|
2364
|
+
theme: Themes;
|
|
2373
2365
|
class: string;
|
|
2366
|
+
language: string;
|
|
2367
|
+
previewTheme: string;
|
|
2374
2368
|
style: string | CSSProperties;
|
|
2369
|
+
codeTheme: string;
|
|
2370
|
+
onClick: () => void;
|
|
2371
|
+
trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
|
|
2372
|
+
[key: string]: any;
|
|
2373
|
+
}>;
|
|
2374
|
+
insert: () => void;
|
|
2375
2375
|
visible: boolean;
|
|
2376
2376
|
onClose: () => void;
|
|
2377
2377
|
onAdjust: (val: boolean) => void;
|
|
@@ -2545,10 +2545,10 @@ declare const _default$3: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
2545
2545
|
}>> & Readonly<{
|
|
2546
2546
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
2547
2547
|
}>, {
|
|
2548
|
-
onClick: (e: MouseEvent) => void;
|
|
2549
|
-
language: string;
|
|
2550
|
-
theme: Themes;
|
|
2551
2548
|
disabled: boolean;
|
|
2549
|
+
theme: Themes;
|
|
2550
|
+
language: string;
|
|
2551
|
+
onClick: (e: MouseEvent) => void;
|
|
2552
2552
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
2553
2553
|
|
|
2554
2554
|
declare const _default$2: typeof _default$3 & {
|
|
@@ -2556,49 +2556,49 @@ declare const _default$2: typeof _default$3 & {
|
|
|
2556
2556
|
};
|
|
2557
2557
|
|
|
2558
2558
|
declare const MdPreview: vue.DefineComponent<{
|
|
2559
|
-
readonly language: string;
|
|
2560
|
-
readonly theme: Themes;
|
|
2561
|
-
readonly previewTheme: string;
|
|
2562
|
-
readonly codeTheme: string;
|
|
2563
2559
|
readonly modelValue: string;
|
|
2560
|
+
readonly theme: Themes;
|
|
2564
2561
|
readonly class: string;
|
|
2562
|
+
readonly language: string;
|
|
2565
2563
|
readonly showCodeRowNumber: boolean;
|
|
2564
|
+
readonly previewTheme: string;
|
|
2566
2565
|
readonly style: string | vue.CSSProperties;
|
|
2567
2566
|
readonly mdHeadingId: MdHeadingId;
|
|
2568
2567
|
readonly sanitize: (html: string) => string;
|
|
2569
2568
|
readonly noMermaid: boolean;
|
|
2570
2569
|
readonly noKatex: boolean;
|
|
2570
|
+
readonly codeTheme: string;
|
|
2571
2571
|
readonly formatCopiedText: (text: string) => string;
|
|
2572
2572
|
readonly codeStyleReverse: boolean;
|
|
2573
2573
|
readonly codeStyleReverseList: string[];
|
|
2574
2574
|
readonly noHighlight: boolean;
|
|
2575
2575
|
readonly noImgZoomIn: boolean;
|
|
2576
2576
|
readonly customIcon: {
|
|
2577
|
-
|
|
2577
|
+
bold?: {
|
|
2578
2578
|
component: vue.Component | vue.VNode | string;
|
|
2579
2579
|
props?: {
|
|
2580
2580
|
[key: string | number | symbol]: any;
|
|
2581
2581
|
};
|
|
2582
2582
|
} | undefined;
|
|
2583
|
-
|
|
2583
|
+
underline?: {
|
|
2584
2584
|
component: vue.Component | vue.VNode | string;
|
|
2585
2585
|
props?: {
|
|
2586
2586
|
[key: string | number | symbol]: any;
|
|
2587
2587
|
};
|
|
2588
2588
|
} | undefined;
|
|
2589
|
-
|
|
2589
|
+
italic?: {
|
|
2590
2590
|
component: vue.Component | vue.VNode | string;
|
|
2591
2591
|
props?: {
|
|
2592
2592
|
[key: string | number | symbol]: any;
|
|
2593
2593
|
};
|
|
2594
2594
|
} | undefined;
|
|
2595
|
-
|
|
2595
|
+
"strike-through"?: {
|
|
2596
2596
|
component: vue.Component | vue.VNode | string;
|
|
2597
2597
|
props?: {
|
|
2598
2598
|
[key: string | number | symbol]: any;
|
|
2599
2599
|
};
|
|
2600
2600
|
} | undefined;
|
|
2601
|
-
|
|
2601
|
+
title?: {
|
|
2602
2602
|
component: vue.Component | vue.VNode | string;
|
|
2603
2603
|
props?: {
|
|
2604
2604
|
[key: string | number | symbol]: any;
|
|
@@ -2791,49 +2791,49 @@ declare const MdPreview: vue.DefineComponent<{
|
|
|
2791
2791
|
readonly id: string | undefined;
|
|
2792
2792
|
readonly previewComponent: vue.Component | undefined;
|
|
2793
2793
|
}, () => 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<{
|
|
2794
|
-
readonly language: string;
|
|
2795
|
-
readonly theme: Themes;
|
|
2796
|
-
readonly previewTheme: string;
|
|
2797
|
-
readonly codeTheme: string;
|
|
2798
2794
|
readonly modelValue: string;
|
|
2795
|
+
readonly theme: Themes;
|
|
2799
2796
|
readonly class: string;
|
|
2797
|
+
readonly language: string;
|
|
2800
2798
|
readonly showCodeRowNumber: boolean;
|
|
2799
|
+
readonly previewTheme: string;
|
|
2801
2800
|
readonly style: string | vue.CSSProperties;
|
|
2802
2801
|
readonly mdHeadingId: MdHeadingId;
|
|
2803
2802
|
readonly sanitize: (html: string) => string;
|
|
2804
2803
|
readonly noMermaid: boolean;
|
|
2805
2804
|
readonly noKatex: boolean;
|
|
2805
|
+
readonly codeTheme: string;
|
|
2806
2806
|
readonly formatCopiedText: (text: string) => string;
|
|
2807
2807
|
readonly codeStyleReverse: boolean;
|
|
2808
2808
|
readonly codeStyleReverseList: string[];
|
|
2809
2809
|
readonly noHighlight: boolean;
|
|
2810
2810
|
readonly noImgZoomIn: boolean;
|
|
2811
2811
|
readonly customIcon: {
|
|
2812
|
-
|
|
2812
|
+
bold?: {
|
|
2813
2813
|
component: vue.Component | vue.VNode | string;
|
|
2814
2814
|
props?: {
|
|
2815
2815
|
[key: string | number | symbol]: any;
|
|
2816
2816
|
};
|
|
2817
2817
|
} | undefined;
|
|
2818
|
-
|
|
2818
|
+
underline?: {
|
|
2819
2819
|
component: vue.Component | vue.VNode | string;
|
|
2820
2820
|
props?: {
|
|
2821
2821
|
[key: string | number | symbol]: any;
|
|
2822
2822
|
};
|
|
2823
2823
|
} | undefined;
|
|
2824
|
-
|
|
2824
|
+
italic?: {
|
|
2825
2825
|
component: vue.Component | vue.VNode | string;
|
|
2826
2826
|
props?: {
|
|
2827
2827
|
[key: string | number | symbol]: any;
|
|
2828
2828
|
};
|
|
2829
2829
|
} | undefined;
|
|
2830
|
-
|
|
2830
|
+
"strike-through"?: {
|
|
2831
2831
|
component: vue.Component | vue.VNode | string;
|
|
2832
2832
|
props?: {
|
|
2833
2833
|
[key: string | number | symbol]: any;
|
|
2834
2834
|
};
|
|
2835
2835
|
} | undefined;
|
|
2836
|
-
|
|
2836
|
+
title?: {
|
|
2837
2837
|
component: vue.Component | vue.VNode | string;
|
|
2838
2838
|
props?: {
|
|
2839
2839
|
[key: string | number | symbol]: any;
|
|
@@ -3040,24 +3040,24 @@ declare const MdPreview: vue.DefineComponent<{
|
|
|
3040
3040
|
onOninputBoxWidthChange?: ((...args: any[]) => any) | undefined;
|
|
3041
3041
|
onOnRemount?: ((...args: any[]) => any) | undefined;
|
|
3042
3042
|
}>, {
|
|
3043
|
-
language: string;
|
|
3044
|
-
theme: Themes;
|
|
3045
|
-
previewTheme: string;
|
|
3046
|
-
codeTheme: string;
|
|
3047
3043
|
onChange: ChangeEvent;
|
|
3048
3044
|
onHtmlChanged: HtmlChangedEvent;
|
|
3049
3045
|
onGetCatalog: GetCatalogEvent;
|
|
3050
3046
|
onRemount: () => void;
|
|
3051
3047
|
modelValue: string;
|
|
3048
|
+
theme: Themes;
|
|
3052
3049
|
class: string;
|
|
3050
|
+
language: string;
|
|
3053
3051
|
editorId: string;
|
|
3054
3052
|
id: string;
|
|
3055
3053
|
showCodeRowNumber: boolean;
|
|
3054
|
+
previewTheme: string;
|
|
3056
3055
|
style: string | vue.CSSProperties;
|
|
3057
3056
|
mdHeadingId: MdHeadingId;
|
|
3058
3057
|
sanitize: (html: string) => string;
|
|
3059
3058
|
noMermaid: boolean;
|
|
3060
3059
|
noKatex: boolean;
|
|
3060
|
+
codeTheme: string;
|
|
3061
3061
|
formatCopiedText: (text: string) => string;
|
|
3062
3062
|
codeStyleReverse: boolean;
|
|
3063
3063
|
codeStyleReverseList: string[];
|
|
@@ -3245,12 +3245,12 @@ declare const MdCatalog: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
3245
3245
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
3246
3246
|
onOnActive?: ((...args: any[]) => any) | undefined;
|
|
3247
3247
|
}>, {
|
|
3248
|
-
onClick: (e: MouseEvent, t: TocItem) => void;
|
|
3249
|
-
theme: Themes;
|
|
3250
3248
|
catalogMaxDepth: number;
|
|
3249
|
+
theme: Themes;
|
|
3251
3250
|
class: string;
|
|
3252
3251
|
editorId: string;
|
|
3253
3252
|
mdHeadingId: MdHeadingId;
|
|
3253
|
+
onClick: (e: MouseEvent, t: TocItem) => void;
|
|
3254
3254
|
onActive: (heading: HeadList | undefined, activeElement: HTMLDivElement) => void;
|
|
3255
3255
|
scrollElement: string | HTMLElement;
|
|
3256
3256
|
offsetTop: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "md-editor-v3",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
76
76
|
"@typescript-eslint/parser": "^8.43.0",
|
|
77
77
|
"@typescript-eslint/utils": "^8.43.0",
|
|
78
|
-
"@vavt/markdown-theme": "^5.0.
|
|
78
|
+
"@vavt/markdown-theme": "^5.0.2",
|
|
79
79
|
"@vavt/vite-plugin-import-markdown": "^1.0.0",
|
|
80
80
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
81
81
|
"@vitejs/plugin-vue-jsx": "^5.1.1",
|