md-editor-v3 1.11.12 → 2.0.0-beta.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.
@@ -1,51 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { MarkedHeadingId, Themes } from '../../type';
3
- export interface TocItem {
4
- text: string;
5
- level: number;
6
- children?: Array<TocItem>;
7
- }
8
- declare const Catalog: import("vue").DefineComponent<{
9
- editorId: {
10
- type: PropType<string>;
11
- };
12
- class: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- markedHeadingId: {
17
- type: PropType<MarkedHeadingId>;
18
- default: (text: string) => string;
19
- };
20
- scrollElement: {
21
- type: PropType<string | Element>;
22
- };
23
- theme: {
24
- type: PropType<Themes>;
25
- default: string;
26
- };
27
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
- editorId: {
29
- type: PropType<string>;
30
- };
31
- class: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- markedHeadingId: {
36
- type: PropType<MarkedHeadingId>;
37
- default: (text: string) => string;
38
- };
39
- scrollElement: {
40
- type: PropType<string | Element>;
41
- };
42
- theme: {
43
- type: PropType<Themes>;
44
- default: string;
45
- };
46
- }>>, {
47
- theme: Themes;
48
- class: string;
49
- markedHeadingId: MarkedHeadingId;
50
- }>;
51
- export default Catalog;
@@ -1,115 +0,0 @@
1
- declare global {
2
- interface Window {
3
- hljs: any;
4
- prettier: any;
5
- prettierPlugins: any;
6
- Cropper: any;
7
- screenfull: any;
8
- mermaid: any;
9
- }
10
- }
11
- export interface ToolbarTips {
12
- bold?: string;
13
- underline?: string;
14
- italic?: string;
15
- strikeThrough?: string;
16
- title?: string;
17
- sub?: string;
18
- sup?: string;
19
- quote?: string;
20
- unorderedList?: string;
21
- orderedList?: string;
22
- codeRow?: string;
23
- code?: string;
24
- link?: string;
25
- image?: string;
26
- table?: string;
27
- mermaid?: string;
28
- katex?: string;
29
- revoke?: string;
30
- next?: string;
31
- save?: string;
32
- prettier?: string;
33
- pageFullscreen?: string;
34
- fullscreen?: string;
35
- preview?: string;
36
- htmlPreview?: string;
37
- catalog?: string;
38
- github?: string;
39
- '-'?: string;
40
- '='?: string;
41
- }
42
- export interface StaticTextDefaultValue {
43
- toolbarTips?: ToolbarTips;
44
- titleItem?: {
45
- h1?: string;
46
- h2?: string;
47
- h3?: string;
48
- h4?: string;
49
- h5?: string;
50
- h6?: string;
51
- };
52
- imgTitleItem?: {
53
- link: string;
54
- upload: string;
55
- clip2upload: string;
56
- };
57
- linkModalTips?: {
58
- title?: string;
59
- descLable?: string;
60
- descLablePlaceHolder?: string;
61
- urlLable?: string;
62
- UrlLablePlaceHolder?: string;
63
- buttonOK?: string;
64
- };
65
- clipModalTips?: {
66
- title?: string;
67
- buttonUpload?: string;
68
- };
69
- copyCode?: {
70
- text?: string;
71
- tips?: string;
72
- };
73
- mermaid?: {
74
- flow?: string;
75
- sequence?: string;
76
- gantt?: string;
77
- class?: string;
78
- state?: string;
79
- pie?: string;
80
- relationship?: string;
81
- journey?: string;
82
- };
83
- katex?: {
84
- inline: string;
85
- block: string;
86
- };
87
- }
88
- export interface StaticTextDefault {
89
- 'zh-CN': StaticTextDefaultValue;
90
- 'en-US': StaticTextDefaultValue;
91
- }
92
- export declare type StaticTextDefaultKey = keyof StaticTextDefault;
93
- export declare type ToolbarNames = keyof ToolbarTips | number;
94
- export interface SettingType {
95
- pageFullScreen: boolean;
96
- fullscreen: boolean;
97
- preview: boolean;
98
- htmlPreview: boolean;
99
- }
100
- export declare type Themes = 'light' | 'dark';
101
- export declare type PreviewThemes = 'default' | 'github' | 'vuepress';
102
- export interface HeadList {
103
- text: string;
104
- level: 1 | 2 | 3 | 4 | 5 | 6;
105
- }
106
- export declare type MarkedHeading = (text: string, level: 1 | 2 | 3 | 4 | 5 | 6, raw: string, slugger: {
107
- seen: {
108
- [slugValue: string]: number;
109
- };
110
- slug(value: string, options?: {
111
- dryrun: boolean;
112
- }): string;
113
- }) => string;
114
- export declare type MarkedHeadingId = (text: string, level: number) => string;
115
- export declare type MarkedImage = (href: string, title: string, desc: string) => string;