@opentiny/fluent-editor 3.23.1 → 3.23.2
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 +102 -101
- package/es/attributors/font-style.es.js +1 -1
- package/es/attributors/font-style.es.js.map +1 -1
- package/es/attributors/line-height.es.js.map +1 -1
- package/es/config/base64-image.es.js.map +1 -1
- package/es/config/editor.config.es.js.map +1 -1
- package/es/config/editor.utils.es.js.map +1 -1
- package/es/config/i18n/en-us.es.js.map +1 -1
- package/es/config/i18n/zh-cn.es.js.map +1 -1
- package/es/config/icons.config.es.js.map +1 -1
- package/es/config/index.es.js.map +1 -1
- package/es/counter/index.es.js.map +1 -1
- package/es/custom-clipboard.es.js.map +1 -1
- package/es/custom-image/BlotFormatter.es.js.map +1 -1
- package/es/custom-image/Options.es.js.map +1 -1
- package/es/custom-image/actions/Action.es.js.map +1 -1
- package/es/custom-image/actions/CustomResizeAction.es.js.map +1 -1
- package/es/custom-image/actions/DeleteAction.es.js.map +1 -1
- package/es/custom-image/image.es.js +1 -1
- package/es/custom-image/image.es.js.map +1 -1
- package/es/custom-image/specs/BlotSpec.es.js.map +1 -1
- package/es/custom-image/specs/CustomImageSpec.es.js.map +1 -1
- package/es/custom-image/specs/ImageSpec.es.js.map +1 -1
- package/es/custom-uploader.es.js.map +1 -1
- package/es/emoji/emoji-list/people.es.js.map +1 -1
- package/es/emoji/emoji-list.es.js.map +1 -1
- package/es/emoji/emoji-map.es.js.map +1 -1
- package/es/emoji/formats/emoji-blot.es.js.map +1 -1
- package/es/emoji/index.es.js.map +1 -1
- package/es/emoji/modules/emoji.es.js.map +1 -1
- package/es/emoji/modules/toolbar-emoji.es.js.map +1 -1
- package/es/emoji/utils.es.js.map +1 -1
- package/es/file/formats/file.es.js.map +1 -1
- package/es/file/index.es.js.map +1 -1
- package/es/file/modules/file-bar.es.js.map +1 -1
- package/es/fluent-editor.es.js +1 -0
- package/es/fluent-editor.es.js.map +1 -1
- package/es/global-link/constants.es.js.map +1 -1
- package/es/global-link/formats/customer-widget-link.es.js.map +1 -1
- package/es/global-link/formats/doc-link.es.js.map +1 -1
- package/es/global-link/formats/wiki-link.es.js.map +1 -1
- package/es/global-link/formats/work-item-link.es.js.map +1 -1
- package/es/global-link/index.es.js.map +1 -1
- package/es/global-link/utils/createTable.es.js.map +1 -1
- package/es/link/formats/link.es.js.map +1 -1
- package/es/link/index.es.js.map +1 -1
- package/es/link/modules/tooltip.es.js.map +1 -1
- package/es/mathlive/formats.es.js +3 -32
- package/es/mathlive/formats.es.js.map +1 -1
- package/es/mathlive/index.es.js +23 -6
- package/es/mathlive/index.es.js.map +1 -1
- package/es/mathlive/tooltip.es.js +5 -5
- package/es/mathlive/tooltip.es.js.map +1 -1
- package/es/mention/Mention.es.js.map +1 -1
- package/es/mention/MentionLink.es.js.map +1 -1
- package/es/mention/constants.es.js.map +1 -1
- package/es/quick-menu/index.es.js.map +1 -1
- package/es/screenshot/index.es.js.map +1 -1
- package/es/soft-break/index.es.js.map +1 -1
- package/es/strike/index.es.js.map +1 -1
- package/es/syntax/index.es.js.map +1 -1
- package/es/table/better-table.es.js.map +1 -1
- package/es/table/formats/header.es.js.map +1 -1
- package/es/table/formats/list.es.js.map +1 -1
- package/es/table/formats/table.es.js.map +1 -1
- package/es/table/modules/table-column-tool.es.js.map +1 -1
- package/es/table/modules/table-operation-menu.es.js +16 -12
- package/es/table/modules/table-operation-menu.es.js.map +1 -1
- package/es/table/modules/table-scroll-bar.es.js.map +1 -1
- package/es/table/modules/table-selection.es.js.map +1 -1
- package/es/table/table-config.es.js.map +1 -1
- package/es/table/utils/index.es.js.map +1 -1
- package/es/table/utils/node-matchers.es.js.map +1 -1
- package/es/toolbar/better-picker.es.js.map +1 -1
- package/es/toolbar/index.es.js.map +1 -1
- package/es/utils/debounce.es.js.map +1 -1
- package/es/utils/method.es.js.map +1 -1
- package/es/video/index.es.js.map +1 -1
- package/lib/attributors/font-style.cjs.js +1 -1
- package/lib/attributors/font-style.cjs.js.map +1 -1
- package/lib/attributors/line-height.cjs.js.map +1 -1
- package/lib/config/base64-image.cjs.js.map +1 -1
- package/lib/config/editor.config.cjs.js.map +1 -1
- package/lib/config/editor.utils.cjs.js.map +1 -1
- package/lib/config/i18n/en-us.cjs.js.map +1 -1
- package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
- package/lib/config/icons.config.cjs.js.map +1 -1
- package/lib/config/index.cjs.js.map +1 -1
- package/lib/counter/index.cjs.js.map +1 -1
- package/lib/custom-clipboard.cjs.js.map +1 -1
- package/lib/custom-image/BlotFormatter.cjs.js.map +1 -1
- package/lib/custom-image/Options.cjs.js.map +1 -1
- package/lib/custom-image/actions/Action.cjs.js.map +1 -1
- package/lib/custom-image/actions/CustomResizeAction.cjs.js.map +1 -1
- package/lib/custom-image/actions/DeleteAction.cjs.js.map +1 -1
- package/lib/custom-image/image.cjs.js +1 -1
- package/lib/custom-image/image.cjs.js.map +1 -1
- package/lib/custom-image/specs/BlotSpec.cjs.js.map +1 -1
- package/lib/custom-image/specs/CustomImageSpec.cjs.js.map +1 -1
- package/lib/custom-image/specs/ImageSpec.cjs.js.map +1 -1
- package/lib/custom-uploader.cjs.js.map +1 -1
- package/lib/emoji/emoji-list/people.cjs.js.map +1 -1
- package/lib/emoji/emoji-list.cjs.js.map +1 -1
- package/lib/emoji/emoji-map.cjs.js.map +1 -1
- package/lib/emoji/formats/emoji-blot.cjs.js.map +1 -1
- package/lib/emoji/index.cjs.js.map +1 -1
- package/lib/emoji/modules/emoji.cjs.js.map +1 -1
- package/lib/emoji/modules/toolbar-emoji.cjs.js.map +1 -1
- package/lib/emoji/utils.cjs.js.map +1 -1
- package/lib/file/formats/file.cjs.js.map +1 -1
- package/lib/file/index.cjs.js.map +1 -1
- package/lib/file/modules/file-bar.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js +1 -0
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/global-link/constants.cjs.js.map +1 -1
- package/lib/global-link/formats/customer-widget-link.cjs.js.map +1 -1
- package/lib/global-link/formats/doc-link.cjs.js.map +1 -1
- package/lib/global-link/formats/wiki-link.cjs.js.map +1 -1
- package/lib/global-link/formats/work-item-link.cjs.js.map +1 -1
- package/lib/global-link/index.cjs.js.map +1 -1
- package/lib/global-link/utils/createTable.cjs.js.map +1 -1
- package/lib/link/formats/link.cjs.js.map +1 -1
- package/lib/link/index.cjs.js.map +1 -1
- package/lib/link/modules/tooltip.cjs.js.map +1 -1
- package/lib/mathlive/formats.cjs.js +3 -32
- package/lib/mathlive/formats.cjs.js.map +1 -1
- package/lib/mathlive/index.cjs.js +22 -5
- package/lib/mathlive/index.cjs.js.map +1 -1
- package/lib/mathlive/tooltip.cjs.js +6 -6
- package/lib/mathlive/tooltip.cjs.js.map +1 -1
- package/lib/mention/Mention.cjs.js.map +1 -1
- package/lib/mention/MentionLink.cjs.js.map +1 -1
- package/lib/mention/constants.cjs.js.map +1 -1
- package/lib/quick-menu/index.cjs.js.map +1 -1
- package/lib/screenshot/index.cjs.js.map +1 -1
- package/lib/soft-break/index.cjs.js.map +1 -1
- package/lib/strike/index.cjs.js.map +1 -1
- package/lib/syntax/index.cjs.js.map +1 -1
- package/lib/table/better-table.cjs.js.map +1 -1
- package/lib/table/formats/header.cjs.js.map +1 -1
- package/lib/table/formats/list.cjs.js.map +1 -1
- package/lib/table/formats/table.cjs.js.map +1 -1
- package/lib/table/modules/table-column-tool.cjs.js.map +1 -1
- package/lib/table/modules/table-operation-menu.cjs.js +16 -12
- package/lib/table/modules/table-operation-menu.cjs.js.map +1 -1
- package/lib/table/modules/table-scroll-bar.cjs.js.map +1 -1
- package/lib/table/modules/table-selection.cjs.js.map +1 -1
- package/lib/table/table-config.cjs.js.map +1 -1
- package/lib/table/utils/index.cjs.js.map +1 -1
- package/lib/table/utils/node-matchers.cjs.js.map +1 -1
- package/lib/toolbar/better-picker.cjs.js.map +1 -1
- package/lib/toolbar/index.cjs.js.map +1 -1
- package/lib/utils/debounce.cjs.js.map +1 -1
- package/lib/utils/method.cjs.js.map +1 -1
- package/lib/video/index.cjs.js.map +1 -1
- package/package.json +57 -57
- package/style.css +3 -37
- package/types/attributors/font-size.d.ts +1 -1
- package/types/attributors/font-style.d.ts +1 -1
- package/types/attributors/index.d.ts +4 -4
- package/types/attributors/line-height.d.ts +1 -1
- package/types/attributors/text-indent.d.ts +1 -1
- package/types/config/base64-image.d.ts +3 -3
- package/types/config/editor.config.d.ts +225 -225
- package/types/config/editor.utils.d.ts +42 -42
- package/types/config/i18n/en-us.d.ts +106 -106
- package/types/config/i18n/zh-cn.d.ts +106 -106
- package/types/config/icons.config.d.ts +34 -34
- package/types/config/index.d.ts +8 -8
- package/types/config/types/additional-toolbar-item.interface.d.ts +6 -7
- package/types/config/types/content-change.interface.d.ts +13 -13
- package/types/config/types/content-save.interface.d.ts +6 -6
- package/types/config/types/counter-option.interface.d.ts +7 -8
- package/types/config/types/editor-config.interface.d.ts +18 -19
- package/types/config/types/editor-modules.interface.d.ts +29 -30
- package/types/config/types/editor-toolbar.interface.d.ts +3 -4
- package/types/config/types/file-operation.interface.d.ts +10 -11
- package/types/config/types/focus-change.interface.d.ts +4 -4
- package/types/config/types/fullscreen-module.interface.d.ts +4 -4
- package/types/config/types/help-panel-item.interface.d.ts +5 -5
- package/types/config/types/help-panel-option.interface.d.ts +5 -6
- package/types/config/types/image-module.interface.d.ts +3 -3
- package/types/config/types/image-upload.interface.d.ts +5 -6
- package/types/config/types/index.d.ts +23 -23
- package/types/config/types/load-on-demand-module.interface.d.ts +5 -5
- package/types/config/types/mention-module.interface.d.ts +8 -8
- package/types/config/types/paste-change.interface.d.ts +4 -5
- package/types/config/types/quick-menu-module.interface.d.ts +3 -3
- package/types/config/types/range.interface.d.ts +4 -4
- package/types/config/types/registry-options.interface.d.ts +5 -5
- package/types/config/types/selection-change.interface.d.ts +6 -7
- package/types/config/types/toolbar-item.interface.d.ts +13 -13
- package/types/config/types/type.d.ts +3 -4
- package/types/config/types/validate-error.interface.d.ts +13 -13
- package/types/counter/index.d.ts +14 -15
- package/types/custom-clipboard.d.ts +26 -27
- package/types/custom-image/BlotFormatter.d.ts +20 -21
- package/types/custom-image/Options.d.ts +36 -36
- package/types/custom-image/actions/Action.d.ts +7 -7
- package/types/custom-image/actions/CustomResizeAction.d.ts +22 -23
- package/types/custom-image/actions/DeleteAction.d.ts +5 -6
- package/types/custom-image/image.d.ts +28 -28
- package/types/custom-image/specs/BlotSpec.d.ts +10 -11
- package/types/custom-image/specs/CustomImageSpec.d.ts +17 -18
- package/types/custom-image/specs/ImageSpec.d.ts +8 -9
- package/types/custom-uploader.d.ts +28 -29
- package/types/emoji/emoji-list/index.d.ts +1 -1
- package/types/emoji/emoji-list/people.d.ts +1 -1
- package/types/emoji/emoji-list.d.ts +2 -2
- package/types/emoji/emoji-map.d.ts +2 -2
- package/types/emoji/formats/emoji-blot.d.ts +13 -13
- package/types/emoji/index.d.ts +6 -7
- package/types/emoji/modules/emoji.d.ts +38 -38
- package/types/emoji/modules/toolbar-emoji.d.ts +8 -8
- package/types/emoji/utils.d.ts +1 -1
- package/types/file/formats/file.d.ts +15 -15
- package/types/file/index.d.ts +9 -10
- package/types/file/modules/file-bar.d.ts +14 -14
- package/types/fluent-editor.d.ts +12 -13
- package/types/format-painter/index.d.ts +13 -14
- package/types/fullscreen/handler.d.ts +1 -2
- package/types/global-link/constants.d.ts +3 -3
- package/types/global-link/formats/customer-widget-link.d.ts +14 -14
- package/types/global-link/formats/doc-link.d.ts +17 -17
- package/types/global-link/formats/wiki-link.d.ts +16 -16
- package/types/global-link/formats/work-item-link.d.ts +16 -16
- package/types/global-link/global-link-panel.d.ts +17 -18
- package/types/global-link/index.d.ts +18 -18
- package/types/global-link/utils/createTable.d.ts +1 -1
- package/types/index.d.ts +2 -3
- package/types/link/formats/link.d.ts +14 -15
- package/types/link/index.d.ts +6 -6
- package/types/link/modules/tooltip.d.ts +31 -32
- package/types/mathlive/formats.d.ts +20 -26
- package/types/mathlive/index.d.ts +7 -7
- package/types/mathlive/tooltip.d.ts +16 -15
- package/types/mention/Mention.d.ts +53 -54
- package/types/mention/MentionLink.d.ts +14 -15
- package/types/mention/constants.d.ts +3 -3
- package/types/quick-menu/index.d.ts +20 -21
- package/types/screenshot/index.d.ts +17 -18
- package/types/soft-break/index.d.ts +14 -14
- package/types/strike/index.d.ts +7 -7
- package/types/syntax/index.d.ts +12 -13
- package/types/table/better-table.d.ts +24 -25
- package/types/table/formats/header.d.ts +22 -22
- package/types/table/formats/list.d.ts +34 -34
- package/types/table/formats/table.d.ts +145 -146
- package/types/table/modules/table-column-tool.d.ts +23 -23
- package/types/table/modules/table-operation-menu.d.ts +38 -38
- package/types/table/modules/table-scroll-bar.d.ts +33 -33
- package/types/table/modules/table-selection.d.ts +37 -37
- package/types/table/table-config.d.ts +38 -38
- package/types/table/utils/index.d.ts +17 -17
- package/types/table/utils/node-matchers.d.ts +9 -9
- package/types/toolbar/better-picker.d.ts +1 -1
- package/types/toolbar/index.d.ts +7 -8
- package/types/toolbar/toolbar-tip.d.ts +6 -7
- package/types/utils/debounce.d.ts +6 -6
- package/types/utils/image.d.ts +1 -1
- package/types/utils/is.d.ts +2 -2
- package/types/utils/method.d.ts +6 -6
- package/types/utils/scroll-lock.d.ts +6 -6
- package/types/video/index.d.ts +14 -15
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { default as Quill } from 'quill';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export default QuickMenu;
|
|
2
|
+
interface QuickMenuOptions {
|
|
3
|
+
container: string;
|
|
4
|
+
component: any;
|
|
5
|
+
}
|
|
6
|
+
declare class QuickMenu {
|
|
7
|
+
private quill;
|
|
8
|
+
private options;
|
|
9
|
+
private container;
|
|
10
|
+
private hostElement;
|
|
11
|
+
private quickMenu;
|
|
12
|
+
private quickMenuContainer;
|
|
13
|
+
constructor(quill: Quill, options: QuickMenuOptions);
|
|
14
|
+
handleSlashKeyDown: (_range: any, context: any) => void;
|
|
15
|
+
private isOpen;
|
|
16
|
+
hideQuickMenu: (event: any) => void;
|
|
17
|
+
handleArrowUpKey: (_range: any, _context: any) => boolean;
|
|
18
|
+
handleArrowDownKey: (_range: any, _context: any) => boolean;
|
|
19
|
+
handleEnterKey: (_range: any, _context: any) => boolean;
|
|
20
|
+
}
|
|
21
|
+
export default QuickMenu;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { default as html2canvas, Options as Html2CanvasOptions } from 'html2canvas';
|
|
2
2
|
import { default as Toolbar } from 'quill/modules/toolbar';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
3
|
+
export type ScreenShotOptions = Partial<Html2CanvasOptions> & {
|
|
4
|
+
Html2Canvas: typeof html2canvas;
|
|
5
|
+
beforeCreateCanvas: () => void | Promise<void>;
|
|
6
|
+
beforeCreateImage: (canvas: HTMLCanvasElement) => HTMLCanvasElement | string | Promise<HTMLCanvasElement | string>;
|
|
7
|
+
};
|
|
8
|
+
interface ScreenShotOptionsInQuill {
|
|
9
|
+
quill: {
|
|
10
|
+
options: {
|
|
11
|
+
screenshot: Partial<ScreenShotOptions>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function Screenshot(this: Toolbar & ScreenShotOptionsInQuill): void;
|
|
16
|
+
export declare namespace Screenshot {
|
|
17
|
+
var toolName: string;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare const Embed: unknown;
|
|
2
|
-
declare class SoftBreak extends Embed {
|
|
3
|
-
static blotName: string;
|
|
4
|
-
static tagName: string;
|
|
5
|
-
static className: string;
|
|
6
|
-
domNode: any;
|
|
7
|
-
prev: any;
|
|
8
|
-
next: any;
|
|
9
|
-
remove: () => void;
|
|
10
|
-
static create(): any;
|
|
11
|
-
optimize(): void;
|
|
12
|
-
length(): number;
|
|
13
|
-
}
|
|
14
|
-
export default SoftBreak;
|
|
1
|
+
declare const Embed: unknown;
|
|
2
|
+
declare class SoftBreak extends Embed {
|
|
3
|
+
static blotName: string;
|
|
4
|
+
static tagName: string;
|
|
5
|
+
static className: string;
|
|
6
|
+
domNode: any;
|
|
7
|
+
prev: any;
|
|
8
|
+
next: any;
|
|
9
|
+
remove: () => void;
|
|
10
|
+
static create(): any;
|
|
11
|
+
optimize(): void;
|
|
12
|
+
length(): number;
|
|
13
|
+
}
|
|
14
|
+
export default SoftBreak;
|
package/types/strike/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const Inline: unknown;
|
|
2
|
-
declare class StrikeBlot extends Inline {
|
|
3
|
-
static blotName: string;
|
|
4
|
-
static className: string;
|
|
5
|
-
static tagName: string;
|
|
6
|
-
}
|
|
7
|
-
export default StrikeBlot;
|
|
1
|
+
declare const Inline: unknown;
|
|
2
|
+
declare class StrikeBlot extends Inline {
|
|
3
|
+
static blotName: string;
|
|
4
|
+
static className: string;
|
|
5
|
+
static tagName: string;
|
|
6
|
+
}
|
|
7
|
+
export default StrikeBlot;
|
package/types/syntax/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { default as TypeSyntax } from 'quill/modules/syntax';
|
|
2
|
-
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export default CustomSyntax;
|
|
2
|
+
declare const Syntax: typeof TypeSyntax;
|
|
3
|
+
declare class CustomSyntax extends Syntax {
|
|
4
|
+
static DEFAULTS: {
|
|
5
|
+
hljs: any;
|
|
6
|
+
interval: number;
|
|
7
|
+
languages: {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export default CustomSyntax;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { default as TableColumnTool } from './modules/table-column-tool';
|
|
2
2
|
import { default as TableScrollBar } from './modules/table-scroll-bar';
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export default BetterTable;
|
|
3
|
+
declare const Module: unknown;
|
|
4
|
+
declare class BetterTable extends Module {
|
|
5
|
+
static keyboardBindings: any;
|
|
6
|
+
isComposition: boolean;
|
|
7
|
+
quill: any;
|
|
8
|
+
table: any;
|
|
9
|
+
modulesContainer: any;
|
|
10
|
+
tableSelection: any;
|
|
11
|
+
subscriber: any;
|
|
12
|
+
tableOperationMenu: any;
|
|
13
|
+
columnTool: TableColumnTool;
|
|
14
|
+
tableScrollBar: TableScrollBar;
|
|
15
|
+
static register(): void;
|
|
16
|
+
constructor(quill: any, options: any);
|
|
17
|
+
handleMouseDown(evt: any, quill: any): void;
|
|
18
|
+
handleKeyDown(evt: any, quill: any): void;
|
|
19
|
+
handleCompositionstart(quill: any): void;
|
|
20
|
+
handleCompositionend(quill: any): void;
|
|
21
|
+
getTable(range?: any): any[];
|
|
22
|
+
insertTable(rows: any, columns: any): void;
|
|
23
|
+
showTableTools(table: any, quill: any): void;
|
|
24
|
+
hideTableTools(): void;
|
|
25
|
+
}
|
|
26
|
+
export default BetterTable;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
declare const Block: unknown;
|
|
2
|
-
declare class Header extends Block {
|
|
3
|
-
static tagName: any;
|
|
4
|
-
static blotName: string;
|
|
5
|
-
domNode: any;
|
|
6
|
-
replaceWith: any;
|
|
7
|
-
parent: any;
|
|
8
|
-
wrap: any;
|
|
9
|
-
enforceAllowedChildren: any;
|
|
10
|
-
uiNode: any;
|
|
11
|
-
children: any;
|
|
12
|
-
statics: any;
|
|
13
|
-
appendChild: any;
|
|
14
|
-
remove: any;
|
|
15
|
-
cache: Record<string, any>;
|
|
16
|
-
scroll: any;
|
|
17
|
-
static create(value: any): any;
|
|
18
|
-
static formats(domNode: any): any;
|
|
19
|
-
format(name: any, value: any): void;
|
|
20
|
-
optimize(_context: any): void;
|
|
21
|
-
}
|
|
22
|
-
export default Header;
|
|
1
|
+
declare const Block: unknown;
|
|
2
|
+
declare class Header extends Block {
|
|
3
|
+
static tagName: any;
|
|
4
|
+
static blotName: string;
|
|
5
|
+
domNode: any;
|
|
6
|
+
replaceWith: any;
|
|
7
|
+
parent: any;
|
|
8
|
+
wrap: any;
|
|
9
|
+
enforceAllowedChildren: any;
|
|
10
|
+
uiNode: any;
|
|
11
|
+
children: any;
|
|
12
|
+
statics: any;
|
|
13
|
+
appendChild: any;
|
|
14
|
+
remove: any;
|
|
15
|
+
cache: Record<string, any>;
|
|
16
|
+
scroll: any;
|
|
17
|
+
static create(value: any): any;
|
|
18
|
+
static formats(domNode: any): any;
|
|
19
|
+
format(name: any, value: any): void;
|
|
20
|
+
optimize(_context: any): void;
|
|
21
|
+
}
|
|
22
|
+
export default Header;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
declare const Block: unknown;
|
|
2
|
-
declare const Container: unknown;
|
|
3
|
-
declare class ListContainer extends Container {
|
|
4
|
-
static allowedChildren: any;
|
|
5
|
-
static blotName: string;
|
|
6
|
-
static tagName: string;
|
|
7
|
-
replaceWith: any;
|
|
8
|
-
domNode: any;
|
|
9
|
-
parent: any;
|
|
10
|
-
statics: any;
|
|
11
|
-
wrap: any;
|
|
12
|
-
format(name: any, value: any): void;
|
|
13
|
-
}
|
|
14
|
-
declare class ListItem extends Block {
|
|
15
|
-
static blotName: string;
|
|
16
|
-
static tagName: string;
|
|
17
|
-
static requiredContainer: typeof ListContainer;
|
|
18
|
-
statics: any;
|
|
19
|
-
attachUI: any;
|
|
20
|
-
domNode: any;
|
|
21
|
-
replaceWith: any;
|
|
22
|
-
parent: any;
|
|
23
|
-
wrap: any;
|
|
24
|
-
children: any;
|
|
25
|
-
prev: any;
|
|
26
|
-
remove: () => void;
|
|
27
|
-
static create(value: any): any;
|
|
28
|
-
static formats(domNode: any): any;
|
|
29
|
-
static register(): void;
|
|
30
|
-
constructor(scroll: any, domNode: any);
|
|
31
|
-
format(name: any, value: any): void;
|
|
32
|
-
optimize(context: any): void;
|
|
33
|
-
}
|
|
34
|
-
export { ListContainer, ListItem as default };
|
|
1
|
+
declare const Block: unknown;
|
|
2
|
+
declare const Container: unknown;
|
|
3
|
+
declare class ListContainer extends Container {
|
|
4
|
+
static allowedChildren: any;
|
|
5
|
+
static blotName: string;
|
|
6
|
+
static tagName: string;
|
|
7
|
+
replaceWith: any;
|
|
8
|
+
domNode: any;
|
|
9
|
+
parent: any;
|
|
10
|
+
statics: any;
|
|
11
|
+
wrap: any;
|
|
12
|
+
format(name: any, value: any): void;
|
|
13
|
+
}
|
|
14
|
+
declare class ListItem extends Block {
|
|
15
|
+
static blotName: string;
|
|
16
|
+
static tagName: string;
|
|
17
|
+
static requiredContainer: typeof ListContainer;
|
|
18
|
+
statics: any;
|
|
19
|
+
attachUI: any;
|
|
20
|
+
domNode: any;
|
|
21
|
+
replaceWith: any;
|
|
22
|
+
parent: any;
|
|
23
|
+
wrap: any;
|
|
24
|
+
children: any;
|
|
25
|
+
prev: any;
|
|
26
|
+
remove: () => void;
|
|
27
|
+
static create(value: any): any;
|
|
28
|
+
static formats(domNode: any): any;
|
|
29
|
+
static register(): void;
|
|
30
|
+
constructor(scroll: any, domNode: any);
|
|
31
|
+
format(name: any, value: any): void;
|
|
32
|
+
optimize(context: any): void;
|
|
33
|
+
}
|
|
34
|
+
export { ListContainer, ListItem as default };
|
|
@@ -1,147 +1,146 @@
|
|
|
1
1
|
import { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS } from '../table-config';
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
static
|
|
7
|
-
static
|
|
8
|
-
static
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
static
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
static
|
|
24
|
-
static
|
|
25
|
-
static
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
static
|
|
63
|
-
static
|
|
64
|
-
static
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
static
|
|
86
|
-
static
|
|
87
|
-
static
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
static
|
|
92
|
-
static
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
static
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
static
|
|
102
|
-
static
|
|
103
|
-
static
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
static
|
|
112
|
-
static
|
|
113
|
-
static
|
|
114
|
-
static
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
static
|
|
140
|
-
static
|
|
141
|
-
static
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
declare function
|
|
146
|
-
|
|
147
|
-
export { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS, cellId, rowId, TableBody, TableCell, TableCellLine, TableCol, TableColGroup, TableContainer, TableRow, TableViewWrapper, };
|
|
2
|
+
declare const Block: unknown;
|
|
3
|
+
declare const Container: unknown;
|
|
4
|
+
declare class TableCellLine extends Block {
|
|
5
|
+
static requiredContainer: any;
|
|
6
|
+
static tagName: string;
|
|
7
|
+
static className: string;
|
|
8
|
+
static blotName: any;
|
|
9
|
+
domNode: any;
|
|
10
|
+
statics: any;
|
|
11
|
+
wrap: any;
|
|
12
|
+
parent: any;
|
|
13
|
+
static create(value: any): any;
|
|
14
|
+
static formats(domNode: any): Record<string, any>;
|
|
15
|
+
toggleAttribute(name: any, value: any): void;
|
|
16
|
+
formatChildren(name: any, value: any): void;
|
|
17
|
+
format(name: any, value: any): void;
|
|
18
|
+
optimize(context: any): void;
|
|
19
|
+
tableCell(): any;
|
|
20
|
+
}
|
|
21
|
+
declare class TableCell extends Container {
|
|
22
|
+
static allowedChildren: any;
|
|
23
|
+
static blotName: any;
|
|
24
|
+
static requiredContainer: any;
|
|
25
|
+
static tagName: string;
|
|
26
|
+
next: any;
|
|
27
|
+
children: any;
|
|
28
|
+
parent: any;
|
|
29
|
+
domNode: any;
|
|
30
|
+
statics: any;
|
|
31
|
+
wrap: any;
|
|
32
|
+
splitAfter: any;
|
|
33
|
+
prev: any;
|
|
34
|
+
scroll: any;
|
|
35
|
+
static create(value?: {
|
|
36
|
+
row: string;
|
|
37
|
+
}): any;
|
|
38
|
+
static formats(domNode: any): {
|
|
39
|
+
height: any;
|
|
40
|
+
row: any;
|
|
41
|
+
};
|
|
42
|
+
checkMerge(): boolean;
|
|
43
|
+
cellOffset(): any;
|
|
44
|
+
formats(): {};
|
|
45
|
+
toggleAttribute(name: any, value: any): void;
|
|
46
|
+
formatChildren(name: any, value: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* this method is for TableCellLine to change cell background color
|
|
49
|
+
* if use `format('cell-bg', value)` will loop trigger
|
|
50
|
+
* TableCellLine.optimize -> TableCell.format -> TableCellLine.optimize ...
|
|
51
|
+
*/
|
|
52
|
+
setCellBg(value?: string): void;
|
|
53
|
+
format(name: any, value: any): void;
|
|
54
|
+
optimize(context: any): void;
|
|
55
|
+
getFormat(domNode: any): Record<string, any>;
|
|
56
|
+
row(): any;
|
|
57
|
+
rowOffset(): any;
|
|
58
|
+
table(): any;
|
|
59
|
+
}
|
|
60
|
+
declare class TableRow extends Container {
|
|
61
|
+
static requiredContainer: any;
|
|
62
|
+
static allowedChildren: any;
|
|
63
|
+
static blotName: string;
|
|
64
|
+
static tagName: string;
|
|
65
|
+
next: any;
|
|
66
|
+
children: any;
|
|
67
|
+
domNode: any;
|
|
68
|
+
statics: any;
|
|
69
|
+
wrap: any;
|
|
70
|
+
splitAfter: any;
|
|
71
|
+
enforceAllowedChildren: any;
|
|
72
|
+
uiNode: any;
|
|
73
|
+
parent: any;
|
|
74
|
+
prev: any;
|
|
75
|
+
static create(value: any): any;
|
|
76
|
+
checkMerge(): boolean;
|
|
77
|
+
formats(): {};
|
|
78
|
+
format(key: any, value: any): void;
|
|
79
|
+
optimize(context: any): void;
|
|
80
|
+
rowOffset(): any;
|
|
81
|
+
table(): any;
|
|
82
|
+
}
|
|
83
|
+
declare class TableBody extends Container {
|
|
84
|
+
static requiredContainer: any;
|
|
85
|
+
static allowedChildren: any;
|
|
86
|
+
static blotName: string;
|
|
87
|
+
static tagName: string;
|
|
88
|
+
}
|
|
89
|
+
declare class TableCol extends Block {
|
|
90
|
+
static requiredContainer: any;
|
|
91
|
+
static blotName: string;
|
|
92
|
+
static tagName: string;
|
|
93
|
+
domNode: any;
|
|
94
|
+
static create(value: any): any;
|
|
95
|
+
static formats(domNode: any): {};
|
|
96
|
+
format(name: any, value: any): void;
|
|
97
|
+
html(): any;
|
|
98
|
+
}
|
|
99
|
+
declare class TableColGroup extends Container {
|
|
100
|
+
static requiredContainer: any;
|
|
101
|
+
static allowedChildren: any;
|
|
102
|
+
static blotName: string;
|
|
103
|
+
static tagName: string;
|
|
104
|
+
parent: any;
|
|
105
|
+
statics: any;
|
|
106
|
+
optimize(context: any): void;
|
|
107
|
+
findTdColspanInTbody(tbody: any, trId: any): number;
|
|
108
|
+
}
|
|
109
|
+
declare class TableContainer extends Container {
|
|
110
|
+
static blotName: string;
|
|
111
|
+
static className: string;
|
|
112
|
+
static tagName: string;
|
|
113
|
+
static requiredContainer: any;
|
|
114
|
+
static allowedChildren: any;
|
|
115
|
+
domNode: any;
|
|
116
|
+
parent: any;
|
|
117
|
+
children: any;
|
|
118
|
+
descendants: any;
|
|
119
|
+
scroll: any;
|
|
120
|
+
remove: any;
|
|
121
|
+
static create(): any;
|
|
122
|
+
constructor(scroll: any, domNode: any);
|
|
123
|
+
updateTableWidth(): void;
|
|
124
|
+
cells(column: any): any;
|
|
125
|
+
colGroup(): any;
|
|
126
|
+
deleteColumns(compareRect: any, delIndexes: any[], editorWrapper: any): boolean;
|
|
127
|
+
deleteRow(compareRect: any, editorWrapper: any): void;
|
|
128
|
+
tableDestroy(): void;
|
|
129
|
+
insertCell(tableRow: any, ref: any, bg?: string): void;
|
|
130
|
+
insertColumn(compareRect: any, colIndex: any, isRight: boolean, editorWrapper: any): any[];
|
|
131
|
+
insertRow(compareRect: any, isDown: any, editorWrapper: any): any[];
|
|
132
|
+
mergeCells(_compareRect: any, mergingCells: any, rowspan: any, colspan: any, _editorWrapper: any): any;
|
|
133
|
+
unmergeCells(unmergingCells: any, editorWrapper: any): void;
|
|
134
|
+
emptyCells(selectedTds: any): void;
|
|
135
|
+
rows(): any;
|
|
136
|
+
}
|
|
137
|
+
declare class TableViewWrapper extends Container {
|
|
138
|
+
static blotName: string;
|
|
139
|
+
static tagName: string;
|
|
140
|
+
static className: string;
|
|
141
|
+
static allowedChildren: any;
|
|
142
|
+
constructor(scroll: any, domNode: any);
|
|
143
|
+
}
|
|
144
|
+
declare function rowId(): string;
|
|
145
|
+
declare function cellId(): string;
|
|
146
|
+
export { CELL_ATTRIBUTES, CELL_IDENTITY_KEYS, cellId, rowId, TableBody, TableCell, TableCellLine, TableCol, TableColGroup, TableContainer, TableRow, TableViewWrapper, };
|