Merge remote-tracking branch 'upstream/main'

This commit is contained in:
2026-08-26 09:31:34 +08:00
parent 9b8c4bfab6
commit 394eb0285d
34137 changed files with 3589424 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import Delta from 'quill-delta';
import type { Op } from 'quill-delta';
import Module from '../core/module.js';
export type CellData = {
content?: Delta['ops'];
attributes?: Record<string, unknown>;
};
export type TableRowColumnOp = Omit<Op, 'insert'> & {
insert?: {
id: string;
};
};
export interface TableData {
rows?: Delta['ops'];
columns?: Delta['ops'];
cells?: Record<string, CellData>;
}
export declare const composePosition: (delta: Delta, index: number) => number | null;
export declare const tableHandler: {
compose(a: TableData, b: TableData, keepNull?: boolean): TableData;
transform(a: TableData, b: TableData, priority: boolean): TableData;
invert(change: TableData, base: TableData): TableData;
};
declare class TableEmbed extends Module {
static register(): void;
}
export default TableEmbed;