lakelib 0.3.3 → 0.3.5
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/README.md +30 -24
- package/dist/lake.min.css +15 -15
- package/dist/lake.min.js +22 -22
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.css +267 -39
- package/lib/lake.d.ts +2148 -0
- package/lib/lake.js +1323 -759
- package/lib/lake.js.map +1 -1
- package/package.json +31 -34
- package/lib/config/element-rules.d.ts +0 -1
- package/lib/config/menu-items.d.ts +0 -9
- package/lib/config/tag-names.d.ts +0 -6
- package/lib/config/toolbar-items.d.ts +0 -2
- package/lib/css/index.d.ts +0 -17
- package/lib/editor.d.ts +0 -93
- package/lib/elements/bookmark.d.ts +0 -2
- package/lib/elements/box.d.ts +0 -2
- package/lib/i18n/en-US/index.d.ts +0 -169
- package/lib/i18n/index.d.ts +0 -2
- package/lib/i18n/ja/index.d.ts +0 -169
- package/lib/i18n/ko/index.d.ts +0 -169
- package/lib/i18n/types.d.ts +0 -1233
- package/lib/i18n/zh-CN/index.d.ts +0 -169
- package/lib/icons/index.d.ts +0 -1
- package/lib/index.d.ts +0 -35
- package/lib/managers/box-manager.d.ts +0 -6
- package/lib/managers/command.d.ts +0 -23
- package/lib/managers/history.d.ts +0 -32
- package/lib/managers/keystroke.d.ts +0 -11
- package/lib/managers/plugin.d.ts +0 -7
- package/lib/managers/selection.d.ts +0 -40
- package/lib/models/box.d.ts +0 -25
- package/lib/models/fragment.d.ts +0 -8
- package/lib/models/nodes.d.ts +0 -98
- package/lib/models/range.d.ts +0 -56
- package/lib/operations/add-mark.d.ts +0 -3
- package/lib/operations/delete-contents.d.ts +0 -2
- package/lib/operations/insert-block.d.ts +0 -3
- package/lib/operations/insert-bookmark.d.ts +0 -6
- package/lib/operations/insert-box.d.ts +0 -4
- package/lib/operations/insert-contents.d.ts +0 -4
- package/lib/operations/remove-box.d.ts +0 -3
- package/lib/operations/remove-mark.d.ts +0 -2
- package/lib/operations/set-blocks.d.ts +0 -3
- package/lib/operations/split-block.d.ts +0 -3
- package/lib/operations/split-marks.d.ts +0 -3
- package/lib/operations/to-bookmark.d.ts +0 -6
- package/lib/parsers/html-parser.d.ts +0 -13
- package/lib/parsers/text-parser.d.ts +0 -6
- package/lib/plugins/align.d.ts +0 -3
- package/lib/plugins/arrow-keys.d.ts +0 -3
- package/lib/plugins/backspace-key.d.ts +0 -3
- package/lib/plugins/block-quote.d.ts +0 -3
- package/lib/plugins/bold.d.ts +0 -3
- package/lib/plugins/code-block/code-block-box.d.ts +0 -4
- package/lib/plugins/code-block/index.d.ts +0 -5
- package/lib/plugins/code.d.ts +0 -3
- package/lib/plugins/copy.d.ts +0 -3
- package/lib/plugins/cut.d.ts +0 -3
- package/lib/plugins/delete-key.d.ts +0 -3
- package/lib/plugins/drop.d.ts +0 -3
- package/lib/plugins/emoji/emoji-box.d.ts +0 -4
- package/lib/plugins/emoji/index.d.ts +0 -5
- package/lib/plugins/enter-key.d.ts +0 -3
- package/lib/plugins/equation/equation-box.d.ts +0 -4
- package/lib/plugins/equation/index.d.ts +0 -5
- package/lib/plugins/escape-key.d.ts +0 -3
- package/lib/plugins/file/file-box.d.ts +0 -4
- package/lib/plugins/file/index.d.ts +0 -5
- package/lib/plugins/font-color.d.ts +0 -3
- package/lib/plugins/font-family.d.ts +0 -3
- package/lib/plugins/font-size.d.ts +0 -3
- package/lib/plugins/format-painter.d.ts +0 -3
- package/lib/plugins/heading.d.ts +0 -3
- package/lib/plugins/highlight.d.ts +0 -3
- package/lib/plugins/hr/hr-box.d.ts +0 -4
- package/lib/plugins/hr/index.d.ts +0 -5
- package/lib/plugins/image/image-box.d.ts +0 -5
- package/lib/plugins/image/index.d.ts +0 -5
- package/lib/plugins/indent.d.ts +0 -3
- package/lib/plugins/italic.d.ts +0 -3
- package/lib/plugins/link/index.d.ts +0 -3
- package/lib/plugins/link/insert-link.d.ts +0 -3
- package/lib/plugins/link/link-popup.d.ts +0 -32
- package/lib/plugins/list.d.ts +0 -3
- package/lib/plugins/markdown.d.ts +0 -3
- package/lib/plugins/mention/index.d.ts +0 -5
- package/lib/plugins/mention/mention-box.d.ts +0 -4
- package/lib/plugins/mention/mention-menu.d.ts +0 -15
- package/lib/plugins/mention/types.d.ts +0 -6
- package/lib/plugins/paste.d.ts +0 -3
- package/lib/plugins/redo.d.ts +0 -3
- package/lib/plugins/remove-format.d.ts +0 -3
- package/lib/plugins/select-all.d.ts +0 -3
- package/lib/plugins/shift-enter-key.d.ts +0 -3
- package/lib/plugins/slash/index.d.ts +0 -3
- package/lib/plugins/slash/slash-items.d.ts +0 -2
- package/lib/plugins/slash/slash-menu.d.ts +0 -19
- package/lib/plugins/slash/types.d.ts +0 -20
- package/lib/plugins/special-character.d.ts +0 -3
- package/lib/plugins/strikethrough.d.ts +0 -3
- package/lib/plugins/subscript.d.ts +0 -3
- package/lib/plugins/superscript.d.ts +0 -3
- package/lib/plugins/tab-key.d.ts +0 -3
- package/lib/plugins/table/delete-column.d.ts +0 -2
- package/lib/plugins/table/delete-row.d.ts +0 -2
- package/lib/plugins/table/delete-table.d.ts +0 -2
- package/lib/plugins/table/index.d.ts +0 -4
- package/lib/plugins/table/insert-column.d.ts +0 -4
- package/lib/plugins/table/insert-row.d.ts +0 -4
- package/lib/plugins/table/insert-table.d.ts +0 -3
- package/lib/plugins/table/merge-cells.d.ts +0 -3
- package/lib/plugins/table/split-cell.d.ts +0 -3
- package/lib/plugins/table/utils.d.ts +0 -6
- package/lib/plugins/underline.d.ts +0 -3
- package/lib/plugins/undo.d.ts +0 -3
- package/lib/plugins/unlink.d.ts +0 -3
- package/lib/plugins/video/index.d.ts +0 -5
- package/lib/plugins/video/video-box.d.ts +0 -4
- package/lib/storage/box-instances.d.ts +0 -2
- package/lib/storage/boxes.d.ts +0 -2
- package/lib/storage/editors.d.ts +0 -2
- package/lib/types/box.d.ts +0 -15
- package/lib/types/corner-toolbar.d.ts +0 -7
- package/lib/types/dropdown.d.ts +0 -23
- package/lib/types/native.d.ts +0 -2
- package/lib/types/node.d.ts +0 -13
- package/lib/types/object.d.ts +0 -3
- package/lib/types/plugin.d.ts +0 -3
- package/lib/types/request.d.ts +0 -20
- package/lib/types/selection.d.ts +0 -14
- package/lib/types/toolbar.d.ts +0 -29
- package/lib/ui/button.d.ts +0 -19
- package/lib/ui/corner-toolbar.d.ts +0 -18
- package/lib/ui/dropdown.d.ts +0 -36
- package/lib/ui/floating-toolbar.d.ts +0 -16
- package/lib/ui/menu.d.ts +0 -33
- package/lib/ui/resizer.d.ts +0 -17
- package/lib/ui/toolbar.d.ts +0 -29
- package/lib/utils/append-break.d.ts +0 -2
- package/lib/utils/camel-case.d.ts +0 -1
- package/lib/utils/change-tag-name.d.ts +0 -2
- package/lib/utils/debug.d.ts +0 -1
- package/lib/utils/denormalize-value.d.ts +0 -1
- package/lib/utils/encode.d.ts +0 -1
- package/lib/utils/file-size.d.ts +0 -1
- package/lib/utils/fix-numbered-list.d.ts +0 -2
- package/lib/utils/from-base64.d.ts +0 -1
- package/lib/utils/get-box.d.ts +0 -3
- package/lib/utils/get-css.d.ts +0 -1
- package/lib/utils/get-deep-element.d.ts +0 -2
- package/lib/utils/in-string.d.ts +0 -1
- package/lib/utils/indent-block.d.ts +0 -2
- package/lib/utils/merge-nodes.d.ts +0 -5
- package/lib/utils/modifier-text.d.ts +0 -1
- package/lib/utils/morph.d.ts +0 -56
- package/lib/utils/normalize-value.d.ts +0 -1
- package/lib/utils/parse-style.d.ts +0 -2
- package/lib/utils/query.d.ts +0 -2
- package/lib/utils/remove-break.d.ts +0 -2
- package/lib/utils/remove-empty-marks.d.ts +0 -2
- package/lib/utils/remove-zws.d.ts +0 -2
- package/lib/utils/request.d.ts +0 -27
- package/lib/utils/scroll-to-node.d.ts +0 -2
- package/lib/utils/split-nodes.d.ts +0 -5
- package/lib/utils/template.d.ts +0 -1
- package/lib/utils/to-base64.d.ts +0 -1
- package/lib/utils/to-hex.d.ts +0 -1
- package/lib/utils/to-node-list.d.ts +0 -1
- package/lib/utils/unsafe-template.d.ts +0 -1
- package/lib/utils/upload-file.d.ts +0 -11
- package/lib/utils/visible-info.d.ts +0 -10
- package/lib/utils/wrap-node-list.d.ts +0 -2
package/lib/ui/dropdown.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib/ui/resizer.d.ts
DELETED
|
@@ -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 {};
|
package/lib/ui/toolbar.d.ts
DELETED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export declare function camelCase(value: string): string;
|
package/lib/utils/debug.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function debug(...data: any[]): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function denormalizeValue(value: string): string;
|
package/lib/utils/encode.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function encode(value: string): string;
|
package/lib/utils/file-size.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function fileSize(size: number): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function fromBase64(value: string): string;
|
package/lib/utils/get-box.d.ts
DELETED
package/lib/utils/get-css.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getCSS(element: Element, propertyName: string): string;
|
package/lib/utils/in-string.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function inString(string: string, value: string, delimiter?: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function modifierText(value: string, userAgent?: string): string;
|
package/lib/utils/morph.d.ts
DELETED
|
@@ -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;
|
package/lib/utils/query.d.ts
DELETED
package/lib/utils/request.d.ts
DELETED
|
@@ -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;
|
package/lib/utils/template.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function template(strings: TemplateStringsArray, ...keys: any[]): string;
|
package/lib/utils/to-base64.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function toBase64(value: string): string;
|
package/lib/utils/to-hex.d.ts
DELETED
|
@@ -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 {};
|