@wangeditor-next/core 6.4.3 → 6.5.0

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/upload.d.ts CHANGED
@@ -1,11 +1,17 @@
1
1
  import ee from "event-emitter";
2
- import { Ancestor, Descendant, Editor, Element as Element$1, Location, Node as Node$1, NodeEntry, Range } from "slate";
2
+ import { Ancestor, Descendant, Editor, Element as Element$1, Location, Node as Node$1, NodeEntry, Range as Range$1 } from "slate";
3
3
  import "dom7";
4
4
 
5
5
  //#region src/utils/dom.d.ts
6
6
 
7
+ type DOMElement = globalThis.Element;
8
+ declare const DOMElement: {
9
+ new (): Element;
10
+ prototype: Element;
11
+ };
7
12
  //#endregion
8
13
  //#region src/menus/interface.d.ts
14
+
9
15
  interface IPositionStyle {
10
16
  top: string;
11
17
  left: string;
@@ -207,7 +213,7 @@ interface ILinkConfig {
207
213
  parseLinkUrl: (url: string) => string;
208
214
  }
209
215
  interface IInsertVideoConfig {
210
- onInsertedVideo: (videoNode: VideoElement) => NodeEntry | Range;
216
+ onInsertedVideo: (videoNode: VideoElement) => NodeEntry | Range$1;
211
217
  checkVideo: (src: string, poster: string) => string | boolean | undefined;
212
218
  parseVideoSrc: (url: string) => string;
213
219
  }
@@ -350,7 +356,7 @@ interface IEditorConfig {
350
356
  placeholder?: string;
351
357
  readOnly: boolean;
352
358
  autoFocus: boolean;
353
- decorate?: (nodeEntry: NodeEntry) => Range[];
359
+ decorate?: (nodeEntry: NodeEntry) => Range$1[];
354
360
  maxLength?: number;
355
361
  imageResize?: IImageResizeConfig;
356
362
  MENU_CONF?: IMenuConfigUpdate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wangeditor-next/core",
3
- "version": "6.4.3",
3
+ "version": "6.5.0",
4
4
  "description": "wangEditor core",
5
5
  "author": "cycleccc <2991205548@qq.com>",
6
6
  "type": "module",
@@ -58,7 +58,7 @@
58
58
  "lodash.throttle": "^4.1.1",
59
59
  "lodash.toarray": "^4.4.0",
60
60
  "nanoid": "^5.0.0",
61
- "slate": "^0.124.0",
61
+ "slate": "^0.124.0 || ^0.126.2",
62
62
  "snabbdom": "^3.6.0"
63
63
  },
64
64
  "dependencies": {
@@ -70,8 +70,8 @@
70
70
  "slate-history": "^0.115.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@uppy/core": "^2.1.1",
74
- "@uppy/xhr-upload": "^2.0.3",
73
+ "@uppy/core": "^5.0.0",
74
+ "@uppy/xhr-upload": "^5.0.0",
75
75
  "@types/is-hotkey": "^0.1.2"
76
76
  },
77
77
  "scripts": {