@wangeditor-next/plugin-float-image 1.0.21 → 1.0.22
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/dist/core/src/config/interface.d.ts +3 -4
- package/dist/core/src/upload/interface.d.ts +13 -5
- package/dist/table-module/src/module/menu/MergeCell.d.ts +0 -1
- package/dist/table-module/src/module/pre-parse-html.d.ts +1 -1
- package/dist/video-module/src/module/menu/index.d.ts +1 -1
- package/package.json +2 -2
@@ -90,11 +90,10 @@ interface IInsertVideoConfig {
|
|
90
90
|
checkVideo: (src: string, poster: string) => string | boolean | undefined;
|
91
91
|
parseVideoSrc: (url: string) => string;
|
92
92
|
}
|
93
|
-
export
|
94
|
-
|
95
|
-
export interface IUploadImageConfig extends IUploadConfig {
|
93
|
+
export type IUploadVideoConfig = IUploadConfig;
|
94
|
+
export type IUploadImageConfig = IUploadConfig & {
|
96
95
|
base64LimitSize: number;
|
97
|
-
}
|
96
|
+
};
|
98
97
|
interface ICodeLangConfig {
|
99
98
|
codeLangs: {
|
100
99
|
text: string;
|
@@ -7,11 +7,7 @@ type FilesType = {
|
|
7
7
|
[key: string]: UppyFile<{}, {}>;
|
8
8
|
};
|
9
9
|
type InsertFn = (src: string, poster?: string, alt?: string, href?: string) => void | Promise<void>;
|
10
|
-
|
11
|
-
* 配置参考 https://uppy.io/docs/uppy/
|
12
|
-
*/
|
13
|
-
export interface IUploadConfig {
|
14
|
-
server: string;
|
10
|
+
interface IBaseUploadConfig {
|
15
11
|
fieldName?: string;
|
16
12
|
maxFileSize?: number;
|
17
13
|
maxNumberOfFiles?: number;
|
@@ -32,4 +28,16 @@ export interface IUploadConfig {
|
|
32
28
|
uppyConfig?: Record<string, any>;
|
33
29
|
xhrConfig?: Record<string, any>;
|
34
30
|
}
|
31
|
+
interface IUploadConfigWithCustomUpload extends IBaseUploadConfig {
|
32
|
+
server?: string;
|
33
|
+
customUpload: (files: File, insertFn: InsertFn) => void;
|
34
|
+
}
|
35
|
+
interface IUploadConfigWithoutCustomUpload extends IBaseUploadConfig {
|
36
|
+
server: string;
|
37
|
+
customUpload?: never;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* 配置参考 https://uppy.io/docs/uppy/
|
41
|
+
*/
|
42
|
+
export type IUploadConfig = IUploadConfigWithCustomUpload | IUploadConfigWithoutCustomUpload;
|
35
43
|
export {};
|
@@ -4,7 +4,6 @@ declare class MergeCell implements IButtonMenu {
|
|
4
4
|
readonly title: string;
|
5
5
|
readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z\"/></svg>";
|
6
6
|
readonly tag = "button";
|
7
|
-
private needKeepCell;
|
8
7
|
getValue(_editor: IDomEditor): string | boolean;
|
9
8
|
isActive(_editor: IDomEditor): boolean;
|
10
9
|
isDisabled(editor: IDomEditor): boolean;
|
@@ -18,7 +18,7 @@ export declare const insertVideoMenuConf: {
|
|
18
18
|
export declare const uploadVideoMenuConf: {
|
19
19
|
key: string;
|
20
20
|
factory(): UploadVideoMenu;
|
21
|
-
config: import("@wangeditor-next/core").
|
21
|
+
config: import("@wangeditor-next/core").IUploadConfig;
|
22
22
|
};
|
23
23
|
export declare const editorVideoSizeMenuConf: {
|
24
24
|
key: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wangeditor-next/plugin-float-image",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.22",
|
4
4
|
"description": "wangEditor float image plugin",
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
6
6
|
"type": "module",
|
@@ -34,7 +34,7 @@
|
|
34
34
|
"url": "https://github.com/wangeditor-next/wangeditor-next/issues"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
37
|
-
"@wangeditor-next/editor": "5.6.
|
37
|
+
"@wangeditor-next/editor": "5.6.37",
|
38
38
|
"dom7": "^3.0.0 || ^4.0.0",
|
39
39
|
"slate": "^0.82.0",
|
40
40
|
"snabbdom": "^3.6.0"
|