lakelib 0.3.2 → 0.3.4

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.
Files changed (173) hide show
  1. package/README.md +28 -22
  2. package/dist/lake.min.css +1 -1
  3. package/dist/lake.min.js +22 -22
  4. package/dist/lake.min.js.map +1 -1
  5. package/lib/lake.css +4 -1
  6. package/lib/lake.d.ts +2148 -0
  7. package/lib/lake.js +1211 -605
  8. package/lib/lake.js.map +1 -1
  9. package/package.json +30 -33
  10. package/lib/config/element-rules.d.ts +0 -1
  11. package/lib/config/menu-items.d.ts +0 -9
  12. package/lib/config/tag-names.d.ts +0 -6
  13. package/lib/config/toolbar-items.d.ts +0 -2
  14. package/lib/css/index.d.ts +0 -17
  15. package/lib/editor.d.ts +0 -93
  16. package/lib/elements/bookmark.d.ts +0 -2
  17. package/lib/elements/box.d.ts +0 -2
  18. package/lib/i18n/en-US/index.d.ts +0 -169
  19. package/lib/i18n/index.d.ts +0 -2
  20. package/lib/i18n/ja/index.d.ts +0 -169
  21. package/lib/i18n/ko/index.d.ts +0 -169
  22. package/lib/i18n/types.d.ts +0 -1233
  23. package/lib/i18n/zh-CN/index.d.ts +0 -169
  24. package/lib/icons/index.d.ts +0 -1
  25. package/lib/index.d.ts +0 -35
  26. package/lib/managers/box-manager.d.ts +0 -6
  27. package/lib/managers/command.d.ts +0 -23
  28. package/lib/managers/history.d.ts +0 -32
  29. package/lib/managers/keystroke.d.ts +0 -11
  30. package/lib/managers/plugin.d.ts +0 -7
  31. package/lib/managers/selection.d.ts +0 -40
  32. package/lib/models/box.d.ts +0 -25
  33. package/lib/models/fragment.d.ts +0 -8
  34. package/lib/models/nodes.d.ts +0 -98
  35. package/lib/models/range.d.ts +0 -56
  36. package/lib/operations/add-mark.d.ts +0 -3
  37. package/lib/operations/delete-contents.d.ts +0 -2
  38. package/lib/operations/insert-block.d.ts +0 -3
  39. package/lib/operations/insert-bookmark.d.ts +0 -6
  40. package/lib/operations/insert-box.d.ts +0 -4
  41. package/lib/operations/insert-contents.d.ts +0 -4
  42. package/lib/operations/remove-box.d.ts +0 -3
  43. package/lib/operations/remove-mark.d.ts +0 -2
  44. package/lib/operations/set-blocks.d.ts +0 -3
  45. package/lib/operations/split-block.d.ts +0 -3
  46. package/lib/operations/split-marks.d.ts +0 -3
  47. package/lib/operations/to-bookmark.d.ts +0 -6
  48. package/lib/parsers/html-parser.d.ts +0 -13
  49. package/lib/parsers/text-parser.d.ts +0 -6
  50. package/lib/plugins/align.d.ts +0 -3
  51. package/lib/plugins/arrow-keys.d.ts +0 -3
  52. package/lib/plugins/backspace-key.d.ts +0 -3
  53. package/lib/plugins/block-quote.d.ts +0 -3
  54. package/lib/plugins/bold.d.ts +0 -3
  55. package/lib/plugins/code-block/code-block-box.d.ts +0 -4
  56. package/lib/plugins/code-block/index.d.ts +0 -5
  57. package/lib/plugins/code.d.ts +0 -3
  58. package/lib/plugins/copy.d.ts +0 -3
  59. package/lib/plugins/cut.d.ts +0 -3
  60. package/lib/plugins/delete-key.d.ts +0 -3
  61. package/lib/plugins/drop.d.ts +0 -3
  62. package/lib/plugins/emoji/emoji-box.d.ts +0 -4
  63. package/lib/plugins/emoji/index.d.ts +0 -5
  64. package/lib/plugins/enter-key.d.ts +0 -3
  65. package/lib/plugins/equation/equation-box.d.ts +0 -4
  66. package/lib/plugins/equation/index.d.ts +0 -5
  67. package/lib/plugins/escape-key.d.ts +0 -3
  68. package/lib/plugins/file/file-box.d.ts +0 -4
  69. package/lib/plugins/file/index.d.ts +0 -5
  70. package/lib/plugins/font-color.d.ts +0 -3
  71. package/lib/plugins/font-family.d.ts +0 -3
  72. package/lib/plugins/font-size.d.ts +0 -3
  73. package/lib/plugins/format-painter.d.ts +0 -3
  74. package/lib/plugins/heading.d.ts +0 -3
  75. package/lib/plugins/highlight.d.ts +0 -3
  76. package/lib/plugins/hr/hr-box.d.ts +0 -4
  77. package/lib/plugins/hr/index.d.ts +0 -5
  78. package/lib/plugins/image/image-box.d.ts +0 -5
  79. package/lib/plugins/image/index.d.ts +0 -5
  80. package/lib/plugins/indent.d.ts +0 -3
  81. package/lib/plugins/italic.d.ts +0 -3
  82. package/lib/plugins/link/index.d.ts +0 -3
  83. package/lib/plugins/link/insert-link.d.ts +0 -3
  84. package/lib/plugins/link/link-popup.d.ts +0 -32
  85. package/lib/plugins/list.d.ts +0 -3
  86. package/lib/plugins/markdown.d.ts +0 -3
  87. package/lib/plugins/mention/index.d.ts +0 -5
  88. package/lib/plugins/mention/mention-box.d.ts +0 -4
  89. package/lib/plugins/mention/mention-menu.d.ts +0 -15
  90. package/lib/plugins/mention/types.d.ts +0 -6
  91. package/lib/plugins/paste.d.ts +0 -3
  92. package/lib/plugins/redo.d.ts +0 -3
  93. package/lib/plugins/remove-format.d.ts +0 -3
  94. package/lib/plugins/select-all.d.ts +0 -3
  95. package/lib/plugins/shift-enter-key.d.ts +0 -3
  96. package/lib/plugins/slash/index.d.ts +0 -3
  97. package/lib/plugins/slash/slash-items.d.ts +0 -2
  98. package/lib/plugins/slash/slash-menu.d.ts +0 -19
  99. package/lib/plugins/slash/types.d.ts +0 -20
  100. package/lib/plugins/special-character.d.ts +0 -3
  101. package/lib/plugins/strikethrough.d.ts +0 -3
  102. package/lib/plugins/subscript.d.ts +0 -3
  103. package/lib/plugins/superscript.d.ts +0 -3
  104. package/lib/plugins/tab-key.d.ts +0 -3
  105. package/lib/plugins/table/delete-column.d.ts +0 -2
  106. package/lib/plugins/table/delete-row.d.ts +0 -2
  107. package/lib/plugins/table/delete-table.d.ts +0 -2
  108. package/lib/plugins/table/index.d.ts +0 -4
  109. package/lib/plugins/table/insert-column.d.ts +0 -4
  110. package/lib/plugins/table/insert-row.d.ts +0 -4
  111. package/lib/plugins/table/insert-table.d.ts +0 -3
  112. package/lib/plugins/table/merge-cells.d.ts +0 -3
  113. package/lib/plugins/table/split-cell.d.ts +0 -3
  114. package/lib/plugins/table/utils.d.ts +0 -6
  115. package/lib/plugins/underline.d.ts +0 -3
  116. package/lib/plugins/undo.d.ts +0 -3
  117. package/lib/plugins/unlink.d.ts +0 -3
  118. package/lib/plugins/video/index.d.ts +0 -5
  119. package/lib/plugins/video/video-box.d.ts +0 -4
  120. package/lib/storage/box-instances.d.ts +0 -2
  121. package/lib/storage/boxes.d.ts +0 -2
  122. package/lib/storage/editors.d.ts +0 -2
  123. package/lib/types/box.d.ts +0 -15
  124. package/lib/types/corner-toolbar.d.ts +0 -7
  125. package/lib/types/dropdown.d.ts +0 -23
  126. package/lib/types/native.d.ts +0 -2
  127. package/lib/types/node.d.ts +0 -13
  128. package/lib/types/object.d.ts +0 -3
  129. package/lib/types/plugin.d.ts +0 -3
  130. package/lib/types/request.d.ts +0 -20
  131. package/lib/types/selection.d.ts +0 -14
  132. package/lib/types/toolbar.d.ts +0 -29
  133. package/lib/ui/button.d.ts +0 -19
  134. package/lib/ui/corner-toolbar.d.ts +0 -18
  135. package/lib/ui/dropdown.d.ts +0 -36
  136. package/lib/ui/floating-toolbar.d.ts +0 -16
  137. package/lib/ui/menu.d.ts +0 -33
  138. package/lib/ui/resizer.d.ts +0 -17
  139. package/lib/ui/toolbar.d.ts +0 -29
  140. package/lib/utils/append-break.d.ts +0 -2
  141. package/lib/utils/camel-case.d.ts +0 -1
  142. package/lib/utils/change-tag-name.d.ts +0 -2
  143. package/lib/utils/debug.d.ts +0 -1
  144. package/lib/utils/denormalize-value.d.ts +0 -1
  145. package/lib/utils/encode.d.ts +0 -1
  146. package/lib/utils/file-size.d.ts +0 -1
  147. package/lib/utils/fix-numbered-list.d.ts +0 -2
  148. package/lib/utils/from-base64.d.ts +0 -1
  149. package/lib/utils/get-box.d.ts +0 -3
  150. package/lib/utils/get-css.d.ts +0 -1
  151. package/lib/utils/get-deep-element.d.ts +0 -2
  152. package/lib/utils/in-string.d.ts +0 -1
  153. package/lib/utils/indent-block.d.ts +0 -2
  154. package/lib/utils/merge-nodes.d.ts +0 -5
  155. package/lib/utils/modifier-text.d.ts +0 -1
  156. package/lib/utils/morph.d.ts +0 -56
  157. package/lib/utils/normalize-value.d.ts +0 -1
  158. package/lib/utils/parse-style.d.ts +0 -2
  159. package/lib/utils/query.d.ts +0 -2
  160. package/lib/utils/remove-break.d.ts +0 -2
  161. package/lib/utils/remove-empty-marks.d.ts +0 -2
  162. package/lib/utils/remove-zws.d.ts +0 -2
  163. package/lib/utils/request.d.ts +0 -27
  164. package/lib/utils/scroll-to-node.d.ts +0 -2
  165. package/lib/utils/split-nodes.d.ts +0 -5
  166. package/lib/utils/template.d.ts +0 -1
  167. package/lib/utils/to-base64.d.ts +0 -1
  168. package/lib/utils/to-hex.d.ts +0 -1
  169. package/lib/utils/to-node-list.d.ts +0 -1
  170. package/lib/utils/unsafe-template.d.ts +0 -1
  171. package/lib/utils/upload-file.d.ts +0 -11
  172. package/lib/utils/visible-info.d.ts +0 -10
  173. package/lib/utils/wrap-node-list.d.ts +0 -2
@@ -1,36 +0,0 @@
1
- import { TranslationFunctions } from '../i18n/types';
2
- import { DropdownLocation, DropdownDirection, DropdownItem, DropdownMenuItem } from '../types/dropdown';
3
- import { Nodes } from '../models/nodes';
4
- type DropdownConfig = DropdownItem & {
5
- root: Nodes;
6
- locale?: TranslationFunctions;
7
- tabIndex?: number;
8
- location?: DropdownLocation;
9
- direction?: DropdownDirection;
10
- onSelect: (value: string) => void;
11
- };
12
- export declare class Dropdown {
13
- private readonly config;
14
- private readonly root;
15
- private readonly locale;
16
- private readonly location;
17
- private readonly direction;
18
- private readonly menuNode;
19
- readonly node: Nodes;
20
- constructor(config: DropdownConfig);
21
- static getValue(node: Nodes): string[];
22
- static setValue(node: Nodes, value: string[]): void;
23
- static getMenuMap(menuItems: DropdownMenuItem[], locale: TranslationFunctions): Map<string, string>;
24
- private updateColorAccent;
25
- private apppendMenuItems;
26
- private clickListener;
27
- private scrollListener;
28
- private resizeListener;
29
- private appendMenu;
30
- private updatePosition;
31
- private showMenu;
32
- private hideMenu;
33
- render(): void;
34
- unmount(): void;
35
- }
36
- export {};
@@ -1,16 +0,0 @@
1
- import { Nodes } from '../models/nodes';
2
- import { Range } from '../models/range';
3
- import { Toolbar, ToolbarConfig } from './toolbar';
4
- type FloatingToolbarConfig = ToolbarConfig & {
5
- target: Nodes | Range;
6
- };
7
- export declare class FloatingToolbar extends Toolbar {
8
- private range;
9
- constructor(config: FloatingToolbarConfig);
10
- private scrollListener;
11
- private resizeListener;
12
- private updatePosition;
13
- render(): void;
14
- unmount(): void;
15
- }
16
- export {};
package/lib/ui/menu.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import { Nodes } from '../models/nodes';
2
- import { Range } from '../models/range';
3
- export type MenuConfig<Item> = {
4
- items: Item[];
5
- onShow?: () => void;
6
- onHide?: () => void;
7
- };
8
- export declare abstract class Menu<Item> {
9
- private horizontalDirection;
10
- private verticalDirection;
11
- private onShow;
12
- private onHide;
13
- protected items: Item[];
14
- protected range: Range | null;
15
- protected noMouseEvent: boolean;
16
- container: Nodes;
17
- constructor(config: MenuConfig<Item>);
18
- protected abstract getItemNode(item: Item): Nodes;
19
- protected abstract search(keyword: string): Item[];
20
- private appendItemNode;
21
- private appendItems;
22
- private selectFirstItemNodeIfNeeded;
23
- private keydownListener;
24
- private clickListener;
25
- private scrollListener;
26
- private resizeListener;
27
- private updatePosition;
28
- get visible(): boolean;
29
- update(keyword: string): void;
30
- show(range: Range, keyword?: string): void;
31
- hide(): void;
32
- unmount(): void;
33
- }
@@ -1,17 +0,0 @@
1
- import { Nodes } from '../models/nodes';
2
- type ResizerConfig = {
3
- root: Nodes;
4
- target: Nodes;
5
- onResize?: (width: number, height: number) => void;
6
- onStop: (width: number, height: number) => void;
7
- };
8
- export declare class Resizer {
9
- private config;
10
- private root;
11
- private target;
12
- container: Nodes;
13
- constructor(config: ResizerConfig);
14
- private bindEvents;
15
- render(): void;
16
- }
17
- export {};
@@ -1,29 +0,0 @@
1
- import type { Editor } from '../editor';
2
- import { SelectionState } from '../types/selection';
3
- import { ToolbarItem } from '../types/toolbar';
4
- import { Nodes } from '../models/nodes';
5
- type ToolbarPlacement = 'top' | 'bottom';
6
- export type ToolbarConfig = {
7
- root?: string | Node | Nodes;
8
- items?: (string | ToolbarItem)[];
9
- placement?: ToolbarPlacement;
10
- };
11
- export declare class Toolbar {
12
- private items;
13
- private placement;
14
- private allMenuMap;
15
- private buttonItemList;
16
- private dropdownItemList;
17
- private dropdownList;
18
- root: Nodes;
19
- container: Nodes;
20
- constructor(config: ToolbarConfig);
21
- private appendDivider;
22
- private appendNormalButton;
23
- private appendDropdown;
24
- private appendUploadButton;
25
- updateState(state?: SelectionState): void;
26
- render(editor: Editor): void;
27
- unmount(): void;
28
- }
29
- export {};
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function appendBreak(block: Nodes): Nodes;
@@ -1 +0,0 @@
1
- export declare function camelCase(value: string): string;
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function changeTagName(element: Nodes, newTagName: string): Nodes;
@@ -1 +0,0 @@
1
- export declare function debug(...data: any[]): void;
@@ -1 +0,0 @@
1
- export declare function denormalizeValue(value: string): string;
@@ -1 +0,0 @@
1
- export declare function encode(value: string): string;
@@ -1 +0,0 @@
1
- export declare function fileSize(size: number): string;
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function fixNumberedList(blocks: Nodes[]): void;
@@ -1 +0,0 @@
1
- export declare function fromBase64(value: string): string;
@@ -1,3 +0,0 @@
1
- import { Nodes } from '../models/nodes';
2
- import { Box } from '../models/box';
3
- export declare function getBox(boxNode: string | Node | Nodes): Box;
@@ -1 +0,0 @@
1
- export declare function getCSS(element: Element, propertyName: string): string;
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function getDeepElement(element: Nodes): Nodes;
@@ -1 +0,0 @@
1
- export declare function inString(string: string, value: string, delimiter?: string): boolean;
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function indentBlock(block: Nodes, type: 'increase' | 'decrease'): void;
@@ -1,5 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function mergeNodes(node: Nodes, otherNode: Nodes): {
3
- node: Nodes;
4
- offset: number;
5
- };
@@ -1 +0,0 @@
1
- export declare function modifierText(value: string, userAgent?: string): string;
@@ -1,56 +0,0 @@
1
- /**
2
- BSD 2-Clause License
3
-
4
- Copyright (c) 2022, Big Sky Software
5
- All rights reserved.
6
-
7
- Redistribution and use in source and binary forms, with or without
8
- modification, are permitted provided that the following conditions are met:
9
-
10
- 1. Redistributions of source code must retain the above copyright notice, this
11
- list of conditions and the following disclaimer.
12
-
13
- 2. Redistributions in binary form must reproduce the above copyright notice,
14
- this list of conditions and the following disclaimer in the documentation
15
- and/or other materials provided with the distribution.
16
-
17
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
-
28
- Repository: https://github.com/bigskysoftware/idiomorph
29
- */
30
- import type { Nodes } from '../models/nodes';
31
- declare global {
32
- interface Node {
33
- generatedByIdiomorph: boolean;
34
- }
35
- }
36
- declare type configType = {
37
- morphStyle?: 'innerHTML' | 'outerHTML';
38
- ignoreActive?: boolean;
39
- ignoreActiveValue?: boolean;
40
- head?: {
41
- style?: 'merge' | 'append' | 'morph' | 'none';
42
- };
43
- callbacks?: {
44
- beforeNodeAdded?: (node: Node) => void | boolean;
45
- afterNodeAdded?: (node: Node) => void;
46
- beforeNodeMorphed?: (oldNode: Node, newNode: Node) => void | boolean;
47
- afterNodeMorphed?: (oldNode: Node, newNode: Node) => void;
48
- beforeNodeRemoved?: (node: Node) => void | boolean;
49
- afterNodeRemoved?: (node: Node) => void;
50
- beforeAttributeUpdated?: (attributeName: string, node: Node, mutationType: string) => void | boolean;
51
- afterAttributeUpdated?: (attributeName: string, node: Node, mutationType: string) => void;
52
- beforeChildrenUpdated?: (oldNode: Node, newNode: Node) => void | boolean;
53
- };
54
- };
55
- export declare function morph(node: Nodes, otherNode: Nodes, config?: configType): void;
56
- export {};
@@ -1 +0,0 @@
1
- export declare function normalizeValue(value: string): string;
@@ -1,2 +0,0 @@
1
- import { KeyValue } from '../types/object';
2
- export declare function parseStyle(styleValue: string): KeyValue;
@@ -1,2 +0,0 @@
1
- import { Nodes } from '../models/nodes';
2
- export declare function query(content: string | Node | Nodes): Nodes;
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function removeBreak(block: Nodes): void;
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function removeEmptyMarks(node: Nodes): void;
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function removeZWS(node: Nodes): void;
@@ -1,27 +0,0 @@
1
- /**
2
- The MIT License (MIT)
3
-
4
- Copyright (c) 2016-present react-component
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
-
24
- Repository: https://github.com/react-component/upload
25
- */
26
- import { UploadRequestOption } from '../types/request';
27
- export declare function request(option: UploadRequestOption): XMLHttpRequest;
@@ -1,2 +0,0 @@
1
- import { Nodes } from '../models/nodes';
2
- export declare function scrollToNode(node: Nodes, options?: ScrollIntoViewOptions): void;
@@ -1,5 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function splitNodes(node: Nodes, offset: number, limitNode: Nodes): {
3
- start: Nodes;
4
- end: Nodes;
5
- } | null;
@@ -1 +0,0 @@
1
- export declare function template(strings: TemplateStringsArray, ...keys: any[]): string;
@@ -1 +0,0 @@
1
- export declare function toBase64(value: string): string;
@@ -1 +0,0 @@
1
- export declare function toHex(value: string): string;
@@ -1 +0,0 @@
1
- export declare function toNodeList(content: string | Node, valueType?: 'text' | 'html'): Node[];
@@ -1 +0,0 @@
1
- export declare function unsafeTemplate(strings: TemplateStringsArray, ...keys: any[]): string;
@@ -1,11 +0,0 @@
1
- import type { Editor } from '../editor';
2
- import { Box } from '../models/box';
3
- type UploadConfig = {
4
- editor: Editor;
5
- name: string;
6
- file: File;
7
- onError?: (error: string) => void;
8
- onSuccess?: () => void;
9
- };
10
- export declare function uploadFile(config: UploadConfig): Box;
11
- export {};
@@ -1,10 +0,0 @@
1
- import { Nodes } from '../models/nodes';
2
- import { Range } from '../models/range';
3
- type VisibleType = -1 | 0 | 1;
4
- export declare function visibleInfo(target: Nodes | Range): {
5
- left: VisibleType;
6
- right: VisibleType;
7
- top: VisibleType;
8
- bottom: VisibleType;
9
- };
10
- export {};
@@ -1,2 +0,0 @@
1
- import type { Nodes } from '../models/nodes';
2
- export declare function wrapNodeList(nodeList: Nodes[], wrapper?: Nodes): Nodes;