@wangeditor-next/code-highlight 1.3.9 → 1.3.11
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.
|
@@ -70,10 +70,10 @@ interface IInsertVideoConfig {
|
|
|
70
70
|
checkVideo: (src: string, poster: string) => string | boolean | undefined;
|
|
71
71
|
parseVideoSrc: (url: string) => string;
|
|
72
72
|
}
|
|
73
|
-
interface IUploadVideoConfig extends IUploadConfig {
|
|
73
|
+
export interface IUploadVideoConfig extends IUploadConfig {
|
|
74
74
|
}
|
|
75
|
-
interface IUploadImageConfig extends IUploadConfig {
|
|
76
|
-
base64LimitSize
|
|
75
|
+
export interface IUploadImageConfig extends IUploadConfig {
|
|
76
|
+
base64LimitSize: number;
|
|
77
77
|
}
|
|
78
78
|
interface ICodeLangConfig {
|
|
79
79
|
codeLangs: {
|
package/dist/core/src/index.d.ts
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
5
|
import './assets/index.less';
|
|
6
|
-
import { RenderStyleFnType, IRenderElemConf } from './render/index';
|
|
7
|
-
import { styleToHtmlFnType, IElemToHtmlConf } from './to-html/index';
|
|
8
|
-
import { IPreParseHtmlConf, ParseStyleHtmlFnType, IParseElemHtmlConf } from './parse-html/index';
|
|
9
|
-
import { IRegisterMenuConf } from './menus/index';
|
|
10
6
|
import { IDomEditor } from './editor/interface';
|
|
7
|
+
import { IRegisterMenuConf } from './menus/index';
|
|
8
|
+
import { IParseElemHtmlConf, IPreParseHtmlConf, ParseStyleHtmlFnType } from './parse-html/index';
|
|
9
|
+
import { IRenderElemConf, RenderStyleFnType } from './render/index';
|
|
10
|
+
import { IElemToHtmlConf, styleToHtmlFnType } from './to-html/index';
|
|
11
11
|
export * from './create/index';
|
|
12
|
-
export { IEditorConfig, IToolbarConfig } from './config/interface';
|
|
13
|
-
export * from './editor/interface';
|
|
12
|
+
export { IEditorConfig, IToolbarConfig, IUploadImageConfig, IUploadVideoConfig, } from './config/interface';
|
|
14
13
|
export * from './editor/dom-editor';
|
|
14
|
+
export * from './editor/interface';
|
|
15
15
|
export * from './render/index';
|
|
16
16
|
export * from './to-html/index';
|
|
17
17
|
export * from './parse-html/index';
|
|
@@ -6,6 +6,7 @@ import { UppyFile } from '@uppy/core';
|
|
|
6
6
|
type FilesType = {
|
|
7
7
|
[key: string]: UppyFile<{}, {}>;
|
|
8
8
|
};
|
|
9
|
+
type InsertFn = (src: string, poster?: string, alt?: string, href?: string) => void | Promise<void>;
|
|
9
10
|
/**
|
|
10
11
|
* 配置参考 https://uppy.io/docs/uppy/
|
|
11
12
|
*/
|
|
@@ -24,5 +25,9 @@ export interface IUploadConfig {
|
|
|
24
25
|
onProgress?: (progress: number) => void;
|
|
25
26
|
onFailed: (file: UppyFile<{}, {}>, response: any) => void;
|
|
26
27
|
onError: (file: UppyFile<{}, {}>, error: any, res: any) => void;
|
|
28
|
+
allowedFileTypes?: string[];
|
|
29
|
+
customInsert?: (res: any, insertFn: InsertFn) => void;
|
|
30
|
+
customUpload?: (files: File, insertFn: InsertFn) => void;
|
|
31
|
+
customBrowseAndUpload?: (insertFn: InsertFn) => void;
|
|
27
32
|
}
|
|
28
33
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/code-highlight",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "wangEditor code-highlight module",
|
|
5
5
|
"author": "cycleccc <2991205548@qq.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url": "https://github.com/cycleccc/wangEditor/issues"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@wangeditor-next/core": "1.7.
|
|
47
|
+
"@wangeditor-next/core": "1.7.14",
|
|
48
48
|
"dom7": "^3.0.0",
|
|
49
49
|
"slate": "^0.72.0",
|
|
50
50
|
"snabbdom": "^3.1.0"
|