quill-table-up 2.2.2 → 2.2.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.
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/e2e/table-blots.test.ts +39 -1
- package/src/__tests__/unit/table-blots.test.ts +58 -1
- package/src/__tests__/unit/table-clipboard.test.ts +97 -1
- package/src/formats/table-main-format.ts +44 -1
- package/src/modules/table-clipboard.ts +12 -4
- package/src/modules/table-resize/table-resize-scale.ts +1 -0
- package/src/table-up.ts +17 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Quill, { Parchment, Range, EmitterSource } from 'quill';
|
|
2
2
|
import { Context } from 'quill/modules/keyboard';
|
|
3
|
+
import TypeScroll from 'quill/blots/scroll';
|
|
3
4
|
import TypeBlock, { BlockEmbed as BlockEmbed$1 } from 'quill/blots/block';
|
|
4
5
|
import BaseTheme from 'quill/themes/base';
|
|
5
6
|
import Picker from 'quill/ui/picker';
|
|
6
|
-
import TypeScroll from 'quill/blots/scroll';
|
|
7
7
|
import { Delta } from 'quill/core';
|
|
8
8
|
import TypeClipboard from 'quill/modules/clipboard';
|
|
9
9
|
import TypeInline from 'quill/blots/inline';
|
|
@@ -119,11 +119,12 @@ declare class TableRowFormat extends ContainerFormat {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
declare class TableMainFormat extends ContainerFormat {
|
|
122
|
+
scroll: TypeScroll;
|
|
122
123
|
static blotName: "table-up-main";
|
|
123
124
|
static tagName: string;
|
|
124
125
|
static className: string;
|
|
125
126
|
static create(value: TableValue): HTMLElement;
|
|
126
|
-
constructor(scroll:
|
|
127
|
+
constructor(scroll: TypeScroll, domNode: HTMLElement, _value: unknown);
|
|
127
128
|
colWidthFillTable(): number | undefined;
|
|
128
129
|
get tableId(): string;
|
|
129
130
|
get full(): boolean;
|
|
@@ -139,6 +140,7 @@ declare class TableMainFormat extends ContainerFormat {
|
|
|
139
140
|
getColIds(): string[];
|
|
140
141
|
checkMerge(): boolean;
|
|
141
142
|
optimize(context: Record<string, any>): void;
|
|
143
|
+
sortMergeChildren(): void;
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
declare class TableBodyFormat extends ContainerFormat {
|