md-editor-v3 7.1.0 → 7.1.2

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.
@@ -1861,10 +1861,18 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
1861
1861
  onOnInputBoxWidthChange?: ((...args: any[]) => any) | undefined;
1862
1862
  onOnRemount?: ((...args: any[]) => any) | undefined;
1863
1863
  }>, {
1864
+ language: string;
1865
+ theme: Themes;
1866
+ previewTheme: string;
1867
+ codeTheme: string;
1868
+ disabled: boolean;
1869
+ showToolbarName: boolean;
1870
+ class: string;
1871
+ style: string | vue.CSSProperties;
1872
+ onChange: ChangeEvent;
1864
1873
  preview: boolean;
1865
1874
  pageFullscreen: boolean;
1866
1875
  htmlPreview: boolean;
1867
- onChange: ChangeEvent;
1868
1876
  onSave: SaveEvent;
1869
1877
  onUploadImg: UploadImgEvent;
1870
1878
  onHtmlChanged: HtmlChangedEvent;
@@ -1893,30 +1901,22 @@ declare const Editor: vue.DefineComponent<vue.ExtractPropTypes<{
1893
1901
  }>;
1894
1902
  noUploadImg: boolean;
1895
1903
  autoFocus: boolean;
1896
- disabled: boolean;
1897
1904
  readOnly: boolean;
1898
1905
  maxLength: number;
1899
1906
  autoDetectCode: boolean;
1900
1907
  completions: _codemirror_autocomplete.CompletionSource[];
1901
- showToolbarName: boolean;
1902
1908
  inputBoxWidth: string;
1903
1909
  transformImgUrl: (t: string) => string | Promise<string>;
1904
- catalogLayout: "fixed" | "flat";
1910
+ catalogLayout: "flat" | "fixed";
1905
1911
  catalogMaxDepth: number;
1906
1912
  modelValue: string;
1907
- theme: Themes;
1908
- class: string;
1909
- language: string;
1910
1913
  editorId: string;
1911
1914
  id: string;
1912
1915
  showCodeRowNumber: boolean;
1913
- previewTheme: string;
1914
- style: string | vue.CSSProperties;
1915
1916
  mdHeadingId: MdHeadingId;
1916
1917
  sanitize: (html: string) => string;
1917
1918
  noMermaid: boolean;
1918
1919
  noKatex: boolean;
1919
- codeTheme: string;
1920
1920
  formatCopiedText: (text: string) => string;
1921
1921
  codeStyleReverse: boolean;
1922
1922
  codeStyleReverseList: string[];
@@ -2035,18 +2035,18 @@ declare const _default$b: vue.DefineComponent<vue.ExtractPropTypes<{
2035
2035
  }>> & Readonly<{
2036
2036
  onOnClick?: ((...args: any[]) => any) | undefined;
2037
2037
  }>, {
2038
- title: string;
2039
- disabled: boolean;
2040
- showToolbarName: boolean;
2041
- theme: Themes;
2042
- language: string;
2043
- previewTheme: string;
2044
- codeTheme: string;
2045
2038
  onClick: (e: MouseEvent) => void;
2039
+ title: string;
2046
2040
  trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2047
2041
  [key: string]: any;
2048
2042
  }>;
2049
2043
  insert: () => void;
2044
+ language: string;
2045
+ theme: Themes;
2046
+ previewTheme: string;
2047
+ codeTheme: string;
2048
+ disabled: boolean;
2049
+ showToolbarName: boolean;
2050
2050
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2051
2051
 
2052
2052
  declare const _default$a: typeof _default$b & {
@@ -2171,18 +2171,18 @@ declare const _default$9: vue.DefineComponent<vue.ExtractPropTypes<{
2171
2171
  onOnChange?: ((...args: any[]) => any) | undefined;
2172
2172
  }>, {
2173
2173
  title: string;
2174
- onChange: (visible: boolean) => void;
2175
- disabled: boolean;
2176
- showToolbarName: boolean;
2177
- theme: Themes;
2178
- language: string;
2179
- previewTheme: string;
2180
- codeTheme: string;
2181
2174
  trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2182
2175
  [key: string]: any;
2183
2176
  }>;
2184
2177
  insert: () => void;
2178
+ language: string;
2179
+ theme: Themes;
2180
+ previewTheme: string;
2181
+ codeTheme: string;
2182
+ disabled: boolean;
2183
+ showToolbarName: boolean;
2185
2184
  visible: boolean;
2185
+ onChange: (visible: boolean) => void;
2186
2186
  overlay: string | VNode<vue.RendererNode, vue.RendererElement, {
2187
2187
  [key: string]: any;
2188
2188
  }>;
@@ -2379,20 +2379,18 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
2379
2379
  onOnClose?: ((...args: any[]) => any) | undefined;
2380
2380
  onOnAdjust?: ((...args: any[]) => any) | undefined;
2381
2381
  }>, {
2382
- title: string;
2383
- disabled: boolean;
2384
- showToolbarName: boolean;
2385
- theme: Themes;
2386
- class: string;
2387
- language: string;
2388
- previewTheme: string;
2389
- style: string | CSSProperties;
2390
- codeTheme: string;
2391
2382
  onClick: () => void;
2383
+ title: string;
2392
2384
  trigger: string | VNode<vue.RendererNode, vue.RendererElement, {
2393
2385
  [key: string]: any;
2394
2386
  }>;
2395
2387
  insert: () => void;
2388
+ language: string;
2389
+ theme: Themes;
2390
+ previewTheme: string;
2391
+ codeTheme: string;
2392
+ disabled: boolean;
2393
+ showToolbarName: boolean;
2396
2394
  onClose: () => void;
2397
2395
  onAdjust: (val: boolean) => void;
2398
2396
  modalTitle: string | VNode<vue.RendererNode, vue.RendererElement, {
@@ -2403,6 +2401,8 @@ declare const _default$7: vue.DefineComponent<vue.ExtractPropTypes<{
2403
2401
  height: string;
2404
2402
  showAdjust: boolean;
2405
2403
  isFullscreen: boolean;
2404
+ class: string;
2405
+ style: string | CSSProperties;
2406
2406
  showMask: boolean;
2407
2407
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2408
2408
 
@@ -2506,14 +2506,14 @@ declare const _default$5: vue.DefineComponent<vue.ExtractPropTypes<{
2506
2506
  }> | VNode<vue.RendererNode, vue.RendererElement, {
2507
2507
  [key: string]: any;
2508
2508
  }>[];
2509
- class: string;
2510
- style: string | CSSProperties;
2511
2509
  onAdjust: (val: boolean) => void;
2512
2510
  visible: boolean;
2513
2511
  width: string;
2514
2512
  height: string;
2515
2513
  showAdjust: boolean;
2516
2514
  isFullscreen: boolean;
2515
+ class: string;
2516
+ style: string | CSSProperties;
2517
2517
  showMask: boolean;
2518
2518
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2519
2519
 
@@ -2566,10 +2566,10 @@ declare const _default$3: vue.DefineComponent<vue.ExtractPropTypes<{
2566
2566
  }>> & Readonly<{
2567
2567
  onOnClick?: ((...args: any[]) => any) | undefined;
2568
2568
  }>, {
2569
- disabled: boolean;
2570
- theme: Themes;
2571
- language: string;
2572
2569
  onClick: (e: MouseEvent) => void;
2570
+ language: string;
2571
+ theme: Themes;
2572
+ disabled: boolean;
2573
2573
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
2574
2574
 
2575
2575
  declare const _default$2: typeof _default$3 & {
@@ -2577,49 +2577,49 @@ declare const _default$2: typeof _default$3 & {
2577
2577
  };
2578
2578
 
2579
2579
  declare const MdPreview: vue.DefineComponent<{
2580
- readonly modelValue: string;
2581
- readonly theme: Themes;
2582
- readonly class: string;
2583
2580
  readonly language: string;
2584
- readonly showCodeRowNumber: boolean;
2581
+ readonly theme: Themes;
2585
2582
  readonly previewTheme: string;
2583
+ readonly codeTheme: string;
2584
+ readonly class: string;
2586
2585
  readonly style: string | vue.CSSProperties;
2586
+ readonly modelValue: string;
2587
+ readonly showCodeRowNumber: boolean;
2587
2588
  readonly mdHeadingId: MdHeadingId;
2588
2589
  readonly sanitize: (html: string) => string;
2589
2590
  readonly noMermaid: boolean;
2590
2591
  readonly noKatex: boolean;
2591
- readonly codeTheme: string;
2592
2592
  readonly formatCopiedText: (text: string) => string;
2593
2593
  readonly codeStyleReverse: boolean;
2594
2594
  readonly codeStyleReverseList: string[];
2595
2595
  readonly noHighlight: boolean;
2596
2596
  readonly noImgZoomIn: boolean;
2597
2597
  readonly customIcon: {
2598
- bold?: {
2598
+ title?: {
2599
2599
  component: vue.Component | vue.VNode | string;
2600
2600
  props?: {
2601
2601
  [key: string | number | symbol]: any;
2602
2602
  };
2603
2603
  } | undefined;
2604
- underline?: {
2604
+ bold?: {
2605
2605
  component: vue.Component | vue.VNode | string;
2606
2606
  props?: {
2607
2607
  [key: string | number | symbol]: any;
2608
2608
  };
2609
2609
  } | undefined;
2610
- italic?: {
2610
+ underline?: {
2611
2611
  component: vue.Component | vue.VNode | string;
2612
2612
  props?: {
2613
2613
  [key: string | number | symbol]: any;
2614
2614
  };
2615
2615
  } | undefined;
2616
- "strike-through"?: {
2616
+ italic?: {
2617
2617
  component: vue.Component | vue.VNode | string;
2618
2618
  props?: {
2619
2619
  [key: string | number | symbol]: any;
2620
2620
  };
2621
2621
  } | undefined;
2622
- title?: {
2622
+ "strike-through"?: {
2623
2623
  component: vue.Component | vue.VNode | string;
2624
2624
  props?: {
2625
2625
  [key: string | number | symbol]: any;
@@ -2812,49 +2812,49 @@ declare const MdPreview: vue.DefineComponent<{
2812
2812
  readonly id: string | undefined;
2813
2813
  readonly previewComponent: vue.Component | undefined;
2814
2814
  }, () => 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<{
2815
- readonly modelValue: string;
2816
- readonly theme: Themes;
2817
- readonly class: string;
2818
2815
  readonly language: string;
2819
- readonly showCodeRowNumber: boolean;
2816
+ readonly theme: Themes;
2820
2817
  readonly previewTheme: string;
2818
+ readonly codeTheme: string;
2819
+ readonly class: string;
2821
2820
  readonly style: string | vue.CSSProperties;
2821
+ readonly modelValue: string;
2822
+ readonly showCodeRowNumber: boolean;
2822
2823
  readonly mdHeadingId: MdHeadingId;
2823
2824
  readonly sanitize: (html: string) => string;
2824
2825
  readonly noMermaid: boolean;
2825
2826
  readonly noKatex: boolean;
2826
- readonly codeTheme: string;
2827
2827
  readonly formatCopiedText: (text: string) => string;
2828
2828
  readonly codeStyleReverse: boolean;
2829
2829
  readonly codeStyleReverseList: string[];
2830
2830
  readonly noHighlight: boolean;
2831
2831
  readonly noImgZoomIn: boolean;
2832
2832
  readonly customIcon: {
2833
- bold?: {
2833
+ title?: {
2834
2834
  component: vue.Component | vue.VNode | string;
2835
2835
  props?: {
2836
2836
  [key: string | number | symbol]: any;
2837
2837
  };
2838
2838
  } | undefined;
2839
- underline?: {
2839
+ bold?: {
2840
2840
  component: vue.Component | vue.VNode | string;
2841
2841
  props?: {
2842
2842
  [key: string | number | symbol]: any;
2843
2843
  };
2844
2844
  } | undefined;
2845
- italic?: {
2845
+ underline?: {
2846
2846
  component: vue.Component | vue.VNode | string;
2847
2847
  props?: {
2848
2848
  [key: string | number | symbol]: any;
2849
2849
  };
2850
2850
  } | undefined;
2851
- "strike-through"?: {
2851
+ italic?: {
2852
2852
  component: vue.Component | vue.VNode | string;
2853
2853
  props?: {
2854
2854
  [key: string | number | symbol]: any;
2855
2855
  };
2856
2856
  } | undefined;
2857
- title?: {
2857
+ "strike-through"?: {
2858
2858
  component: vue.Component | vue.VNode | string;
2859
2859
  props?: {
2860
2860
  [key: string | number | symbol]: any;
@@ -3061,24 +3061,24 @@ declare const MdPreview: vue.DefineComponent<{
3061
3061
  onOnInputBoxWidthChange?: ((...args: any[]) => any) | undefined;
3062
3062
  onOnRemount?: ((...args: any[]) => any) | undefined;
3063
3063
  }>, {
3064
+ language: string;
3065
+ theme: Themes;
3066
+ previewTheme: string;
3067
+ codeTheme: string;
3068
+ class: string;
3069
+ style: string | vue.CSSProperties;
3064
3070
  onChange: ChangeEvent;
3065
3071
  onHtmlChanged: HtmlChangedEvent;
3066
3072
  onGetCatalog: GetCatalogEvent;
3067
3073
  onRemount: () => void;
3068
3074
  modelValue: string;
3069
- theme: Themes;
3070
- class: string;
3071
- language: string;
3072
3075
  editorId: string;
3073
3076
  id: string;
3074
3077
  showCodeRowNumber: boolean;
3075
- previewTheme: string;
3076
- style: string | vue.CSSProperties;
3077
3078
  mdHeadingId: MdHeadingId;
3078
3079
  sanitize: (html: string) => string;
3079
3080
  noMermaid: boolean;
3080
3081
  noKatex: boolean;
3081
- codeTheme: string;
3082
3082
  formatCopiedText: (text: string) => string;
3083
3083
  codeStyleReverse: boolean;
3084
3084
  codeStyleReverseList: string[];
@@ -3266,12 +3266,12 @@ declare const MdCatalog: vue.DefineComponent<vue.ExtractPropTypes<{
3266
3266
  onOnClick?: ((...args: any[]) => any) | undefined;
3267
3267
  onOnActive?: ((...args: any[]) => any) | undefined;
3268
3268
  }>, {
3269
- catalogMaxDepth: number;
3269
+ onClick: (e: MouseEvent, t: TocItem) => void;
3270
3270
  theme: Themes;
3271
3271
  class: string;
3272
+ catalogMaxDepth: number;
3272
3273
  editorId: string;
3273
3274
  mdHeadingId: MdHeadingId;
3274
- onClick: (e: MouseEvent, t: TocItem) => void;
3275
3275
  onActive: (heading: HeadList | undefined, activeElement: HTMLDivElement) => void;
3276
3276
  scrollElement: string | HTMLElement;
3277
3277
  offsetTop: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md-editor-v3",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "vue",