@wangeditor-next/plugin-float-image 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @description Processing blob url
3
+ * @author CodePencil
4
+ */
5
+ /** 提取 blob URL */
6
+ export declare function extractBlobUrlFromImg(html: string): string | null;
7
+ /** 将 blob URL 转换为 base64 */
8
+ export declare function convertBlobUrlToBase64(blobUrl: string): Promise<string | null>;
@@ -2,5 +2,6 @@
2
2
  * @description formats helper
3
3
  * @author wangfupeng
4
4
  */
5
- export declare function genElemId(id: string): string;
5
+ import { ElementType } from 'packages/custom-types';
6
+ export declare function genElemId(type: ElementType, id: string): string;
6
7
  export declare function genTextId(id: string): string;
@@ -12,9 +12,20 @@ import DOMSelection = globalThis.Selection;
12
12
  import DOMStaticRange = globalThis.StaticRange;
13
13
  export { Dom7Array } from 'dom7';
14
14
  export default $;
15
+ export declare enum NodeType {
16
+ ELEMENT_NODE = 1,
17
+ TEXT_NODE = 3,
18
+ CDATA_SECTION_NODE = 4,
19
+ PROCESSING_INSTRUCTION_NODE = 7,
20
+ COMMENT_NODE = 8,
21
+ DOCUMENT_NODE = 9,
22
+ DOCUMENT_TYPE_NODE = 10,
23
+ DOCUMENT_FRAGMENT_NODE = 11
24
+ }
15
25
  export declare const isDocument: (value: any) => value is Document;
16
26
  export declare const isShadowRoot: (value: any) => value is ShadowRoot;
17
27
  export declare const isDataTransfer: (value: any) => value is DataTransfer;
28
+ export declare const isUnprocessedListElement: (el: Element) => boolean;
18
29
  export declare const isHTMLElememt: (value: any) => value is HTMLElement;
19
30
  export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
20
31
  export type DOMPoint = [Node, number];
@@ -85,16 +96,6 @@ export declare function getFirstVoidChild(elem: DOMElement): DOMElement | null;
85
96
  * @param handler handler
86
97
  */
87
98
  export declare function walkTextNodes(elem: DOMElement, handler: (textNode: DOMNode, parent: DOMElement) => void): void;
88
- export declare enum NodeType {
89
- ELEMENT_NODE = 1,
90
- TEXT_NODE = 3,
91
- CDATA_SECTION_NODE = 4,
92
- PROCESSING_INSTRUCTION_NODE = 7,
93
- COMMENT_NODE = 8,
94
- DOCUMENT_NODE = 9,
95
- DOCUMENT_TYPE_NODE = 10,
96
- DOCUMENT_FRAGMENT_NODE = 11
97
- }
98
99
  /**
99
100
  * 获取 tagName lower-case
100
101
  * @param $elem $elem