vue-editify 0.2.1 → 0.2.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.
package/lib/index.d.ts CHANGED
@@ -734,7 +734,7 @@ export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuI
734
734
  export type { ElementMatchConfigType } from './core/function';
735
735
  export { elementIsMatch, getMatchElementByElement, getMatchElementByRange, isList, isTask, elementIsInList, elementIsInTask, hasPreInRange, hasQuoteInRange, hasListInRange, hasTaskInRange, hasLinkInRange, hasTableInRange, hasImageInRange, hasVideoInRange, isRangeInQuote, isRangeInList, isRangeInTask, queryTextStyle, queryTextMark, getRangeText, setIndentIncrease, setIndentDecrease, setQuote, setAlign, setList, setTask, setTextStyle, setTextMark, removeTextStyle, removeTextMark, setLineHeight, insertLink, insertImage, insertVideo, insertTable, insertCodeBlock, insertSeparator } from './core/function';
736
736
  declare const install: (app: App) => void;
737
- declare const version = "0.2.1";
737
+ declare const version = "0.2.2";
738
738
  export { AlexElement } from 'alex-editor';
739
739
  export type { AttachmentOptionsType } from './plugins/attachment';
740
740
  export type { InsertAttachmentUploadErrorType } from './plugins/attachment/insertAttachment/props';
@@ -13,7 +13,7 @@ export type AttachmentOptionsType = {
13
13
  multiple?: boolean;
14
14
  maxSize?: number;
15
15
  minSize?: number;
16
- customUpload?: (files: File[]) => string[] | Promise<string[]>;
16
+ customUpload?: ((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>);
17
17
  handleError?: (error: InsertAttachmentUploadErrorType, file: File) => void;
18
18
  };
19
19
  /**
@@ -24,7 +24,7 @@ declare const _default: import('vue').DefineComponent<{
24
24
  default: null;
25
25
  };
26
26
  customUpload: {
27
- type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
27
+ type: import('vue').PropType<((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>)>;
28
28
  default: null;
29
29
  };
30
30
  handleError: {
@@ -60,7 +60,7 @@ declare const _default: import('vue').DefineComponent<{
60
60
  default: null;
61
61
  };
62
62
  customUpload: {
63
- type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
63
+ type: import('vue').PropType<((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>)>;
64
64
  default: null;
65
65
  };
66
66
  handleError: {
@@ -76,7 +76,7 @@ declare const _default: import('vue').DefineComponent<{
76
76
  multiple: boolean;
77
77
  maxSize: number;
78
78
  minSize: number;
79
- customUpload: (files: File[]) => string[] | Promise<string[]>;
79
+ customUpload: ((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>);
80
80
  handleError: (error: import('./props').InsertAttachmentUploadErrorType, file: File) => void;
81
81
  accept: string;
82
82
  }, {}>;
@@ -27,7 +27,7 @@ export declare const InsertAttachmentProps: {
27
27
  default: null;
28
28
  };
29
29
  customUpload: {
30
- type: PropType<(files: File[]) => string[] | Promise<string[]>>;
30
+ type: PropType<((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>)>;
31
31
  default: null;
32
32
  };
33
33
  handleError: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-editify",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -30,7 +30,7 @@ export const InsertImageProps = {
30
30
  },
31
31
  //是否自定义上传图片
32
32
  customUpload: {
33
- type: Function as PropType<(files: File[]) => string[] | Promise<string[]>>,
33
+ type: Function as PropType<((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>)>,
34
34
  default: null
35
35
  },
36
36
  //处理上传图片异常
@@ -30,7 +30,7 @@ export const InsertVideoProps = {
30
30
  },
31
31
  //是否自定义上传视频
32
32
  customUpload: {
33
- type: Function as PropType<(files: File[]) => string[] | Promise<string[]>>,
33
+ type: Function as PropType<((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>)>,
34
34
  default: null
35
35
  },
36
36
  //处理上传视频异常
package/src/core/tool.ts CHANGED
@@ -43,7 +43,7 @@ export interface MenuImageButtonType extends MenuButtonType {
43
43
  multiple?: boolean
44
44
  maxSize?: number | null
45
45
  minSize?: number | null
46
- customUpload?: (((files: File[]) => string[]) | Promise<string[]>) | null
46
+ customUpload?: ((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>) | null
47
47
  handleError?: ((error: InsertImageUploadErrorType, file: File) => void) | null
48
48
  }
49
49
 
@@ -52,7 +52,7 @@ export interface MenuVideoButtonType extends MenuButtonType {
52
52
  multiple?: boolean
53
53
  maxSize?: number | null
54
54
  minSize?: number | null
55
- customUpload?: (((files: File[]) => string[]) | Promise<string[]>) | null
55
+ customUpload?: ((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>) | null
56
56
  handleError?: ((error: InsertImageUploadErrorType, file: File) => void) | null
57
57
  }
58
58
 
package/src/index.ts CHANGED
@@ -22,7 +22,7 @@ const install = (app: App) => {
22
22
  app.component(Editify.name!, Editify)
23
23
  }
24
24
  //版本号
25
- const version = '0.2.1'
25
+ const version = '0.2.2'
26
26
 
27
27
  //导出AlexElement元素
28
28
  export { AlexElement } from 'alex-editor'
@@ -32,7 +32,7 @@ export type AttachmentOptionsType = {
32
32
  //选择的单个文件最小值,单位kb,不设置将不限制
33
33
  minSize?: number
34
34
  //是否自定义上传附件
35
- customUpload?: (files: File[]) => string[] | Promise<string[]>
35
+ customUpload?: ((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>)
36
36
  //处理上传附件异常
37
37
  handleError?: (error: InsertAttachmentUploadErrorType, file: File) => void
38
38
  }
@@ -35,7 +35,7 @@ export const InsertAttachmentProps = {
35
35
  },
36
36
  //是否自定义上传附件
37
37
  customUpload: {
38
- type: Function as PropType<(files: File[]) => string[] | Promise<string[]>>,
38
+ type: Function as PropType<((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>)>,
39
39
  default: null
40
40
  },
41
41
  //处理上传附件异常