quill-table-up 3.0.1 → 3.0.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/dist/index.d.ts +3 -2
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.js.map +1 -1
- package/package.json +18 -18
- package/src/__tests__/e2e/table-keyboard-handler.test.ts +2 -2
- package/src/__tests__/e2e/table-menu.test.ts +4 -5
- package/src/__tests__/unit/table-clipboard.test.ts +39 -39
- package/src/__tests__/unit/table-hack.test.ts +2 -2
- package/src/__tests__/unit/table-insert.test.ts +50 -0
- package/src/__tests__/unit/table-redo-undo.test.ts +217 -25
- package/src/__tests__/unit/table-remove.test.ts +3 -1
- package/src/__tests__/unit/utils.ts +2 -1
- package/src/formats/overrides/block-embed.ts +1 -2
- package/src/formats/overrides/block.ts +7 -2
- package/src/formats/table-cell-inner-format.ts +20 -4
- package/src/formats/table-col-format.ts +26 -30
- package/src/formats/table-wrapper-format.ts +9 -1
- package/src/modules/table-selection.ts +4 -1
- package/src/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/src/table-up.ts +6 -5
- package/src/utils/blot-helper.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as quill0 from "quill";
|
|
2
2
|
import Quill, { EmitterSource, Parchment, Range } from "quill";
|
|
3
3
|
import { Context } from "quill/modules/keyboard";
|
|
4
4
|
import TypeScroll from "quill/blots/scroll";
|
|
@@ -210,7 +210,7 @@ declare class BlockOverride extends Block {
|
|
|
210
210
|
//#region src/formats/overrides/block-embed.d.ts
|
|
211
211
|
declare const BlockEmbed$1: typeof BlockEmbed;
|
|
212
212
|
declare class BlockEmbedOverride extends BlockEmbed$1 {
|
|
213
|
-
delta():
|
|
213
|
+
delta(): quill0.Delta;
|
|
214
214
|
length(): number;
|
|
215
215
|
formatAt(index: number, length: number, name: string, value: unknown): void;
|
|
216
216
|
}
|
|
@@ -271,6 +271,7 @@ declare class TableWrapperFormat extends ContainerFormat {
|
|
|
271
271
|
constructor(scroll: any, node: Node, _value: string);
|
|
272
272
|
get tableId(): string;
|
|
273
273
|
checkMerge(): boolean;
|
|
274
|
+
optimize(context: Record<string, any>): void;
|
|
274
275
|
deleteAt(index: number, length: number): void;
|
|
275
276
|
remove(): void;
|
|
276
277
|
isBlockLine(blot: Parchment.Blot): boolean;
|