1 | import { Node as ProseMirrorNode } from 'prosemirror-model';
|
2 | import { SideEffects, SideEffectsJSON } from './utils/side-effects/types';
|
3 | import { SortOrder } from './constants';
|
4 | export declare type ColumnInfo = Map<number, CellStep>;
|
5 | export interface AddColumnStepInfo {
|
6 | cells: CellStep[];
|
7 | sideEffects?: SideEffects;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export interface CellStep {
|
16 | from: number;
|
17 | to: number;
|
18 | newCell?: ProseMirrorNode;
|
19 | mergeWith?: number;
|
20 | }
|
21 | export interface CellStepJson {
|
22 | from: number;
|
23 | to: number;
|
24 | newCell?: {
|
25 | [key: string]: any;
|
26 | };
|
27 | mergeWith?: number;
|
28 | }
|
29 | export interface AddColumnStepJson {
|
30 | stepType: 'ak-add-column';
|
31 | tablePos: number;
|
32 | cells: CellStepJson[];
|
33 | sideEffects?: SideEffectsJSON;
|
34 | isDelete: boolean;
|
35 | }
|
36 | export interface TableColumnOrdering {
|
37 | columnIndex: number;
|
38 | order: SortOrder;
|
39 | }
|