md-editor-v3 6.0.0 → 6.0.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.
@@ -23,8 +23,8 @@ export interface ProvideOptions {
23
23
  *
24
24
  * @param props 预览组件的props
25
25
  */
26
- export declare const useProvidePreview: (props: MdPreviewProps, { editorId, rootRef }: Pick<ProvideOptions, "editorId" | "rootRef">) => {
27
- editorId: string;
26
+ export declare const useProvidePreview: (props: MdPreviewProps, { editorId, rootRef, setting }: Partial<Pick<ProvideOptions, "editorId" | "rootRef" | "setting">>) => {
27
+ editorId: string | undefined;
28
28
  };
29
29
  /**
30
30
  * 向下提供部分公共参数
@@ -32,7 +32,7 @@ export declare const useProvidePreview: (props: MdPreviewProps, { editorId, root
32
32
  * @param props
33
33
  */
34
34
  export declare const useProvide: (props: EditorProps, options: ProvideOptions) => {
35
- editorId: string;
35
+ editorId: string | undefined;
36
36
  };
37
37
  /**
38
38
  * 抽离预览组件需要嵌入的脚本
@@ -11,12 +11,6 @@ declare const ContentPreview: import("vue").DefineComponent<ExtractPropTypes<{
11
11
  type: import("vue").PropType<(v: string) => void>;
12
12
  default: () => void;
13
13
  };
14
- setting: {
15
- type: import("vue").PropType<import("../../type").SettingType>;
16
- default: () => {
17
- preview: boolean;
18
- };
19
- };
20
14
  onHtmlChanged: {
21
15
  type: import("vue").PropType<(h: string) => void>;
22
16
  default: () => void;
@@ -80,12 +74,6 @@ declare const ContentPreview: import("vue").DefineComponent<ExtractPropTypes<{
80
74
  type: import("vue").PropType<(v: string) => void>;
81
75
  default: () => void;
82
76
  };
83
- setting: {
84
- type: import("vue").PropType<import("../../type").SettingType>;
85
- default: () => {
86
- preview: boolean;
87
- };
88
- };
89
77
  onHtmlChanged: {
90
78
  type: import("vue").PropType<(h: string) => void>;
91
79
  default: () => void;
@@ -152,6 +140,5 @@ declare const ContentPreview: import("vue").DefineComponent<ExtractPropTypes<{
152
140
  noKatex: boolean;
153
141
  formatCopiedText: (text: string) => string;
154
142
  noHighlight: boolean;
155
- setting: import("../../type").SettingType;
156
143
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
157
144
  export default ContentPreview;
@@ -15,7 +15,6 @@ declare const _default: import("vue").DefineComponent<{
15
15
  readonly noKatex: boolean;
16
16
  readonly formatCopiedText: (text: string) => string;
17
17
  readonly noHighlight: boolean;
18
- readonly setting: import("../../type").SettingType;
19
18
  readonly updateModelValue: (v: string) => void;
20
19
  readonly onInput: ((event: Event) => void) | undefined;
21
20
  readonly oninputBoxWidthChange: ((width: string) => void) | undefined;
@@ -51,7 +50,6 @@ declare const _default: import("vue").DefineComponent<{
51
50
  readonly noKatex: boolean;
52
51
  readonly formatCopiedText: (text: string) => string;
53
52
  readonly noHighlight: boolean;
54
- readonly setting: import("../../type").SettingType;
55
53
  readonly updateModelValue: (v: string) => void;
56
54
  readonly onInput: ((event: Event) => void) | undefined;
57
55
  readonly oninputBoxWidthChange: ((width: string) => void) | undefined;
@@ -87,7 +85,6 @@ declare const _default: import("vue").DefineComponent<{
87
85
  noKatex: boolean;
88
86
  formatCopiedText: (text: string) => string;
89
87
  noHighlight: boolean;
90
- setting: import("../../type").SettingType;
91
88
  updateModelValue: (v: string) => void;
92
89
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
93
90
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { CompletionSource } from '@codemirror/autocomplete';
2
2
  import { LooseRequired } from '@vue/shared';
3
3
  import { ExtractPropTypes, PropType } from 'vue';
4
- import { HeadList, SettingType, MdHeadingId } from '../../type';
4
+ import { HeadList, MdHeadingId } from '../../type';
5
5
  export declare const contentPreviewProps: {
6
6
  modelValue: {
7
7
  type: PropType<string>;
@@ -11,12 +11,6 @@ export declare const contentPreviewProps: {
11
11
  type: PropType<(v: string) => void>;
12
12
  default: () => void;
13
13
  };
14
- setting: {
15
- type: PropType<SettingType>;
16
- default: () => {
17
- preview: boolean;
18
- };
19
- };
20
14
  onHtmlChanged: {
21
15
  type: PropType<(h: string) => void>;
22
16
  default: () => void;
@@ -144,12 +138,6 @@ export declare const contentProps: {
144
138
  type: PropType<(v: string) => void>;
145
139
  default: () => void;
146
140
  };
147
- setting: {
148
- type: PropType<SettingType>;
149
- default: () => {
150
- preview: boolean;
151
- };
152
- };
153
141
  onHtmlChanged: {
154
142
  type: PropType<(h: string) => void>;
155
143
  default: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md-editor-v3",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "vue",