quill-table-up 2.0.0 → 2.0.1

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 CHANGED
@@ -207,17 +207,23 @@ declare class ListItemOverride extends ListItemOverride_base {
207
207
  static register(): void;
208
208
  }
209
209
 
210
- declare const ScrollBlot: any;
211
- declare class ScrollOverride extends ScrollBlot {
212
- createBlock(attributes: Record<string, any>, refBlot?: Parchment.Blot): Parchment.ParentBlot;
213
- }
214
-
215
- declare class TableBodyFormat extends ContainerFormat {
216
- static blotName: "table-up-body";
210
+ declare class TableCellFormat extends ContainerFormat {
211
+ static blotName: "table-up-cell";
217
212
  static tagName: string;
218
- static create(value: string): HTMLElement;
213
+ static className: string;
214
+ static allowDataAttrs: Set<string>;
215
+ static allowAttrs: Set<string>;
216
+ static allowStyle: Set<string>;
217
+ static isAllowStyle(str: string): boolean;
218
+ static create(value: TableCellValue): HTMLElement;
219
+ static formats(domNode: HTMLElement): Record<string, any>;
220
+ setFormatValue(name: string, value?: any): void;
219
221
  get tableId(): string;
220
- insertRow(targetIndex: number): void;
222
+ get rowId(): string;
223
+ get colId(): string;
224
+ get rowspan(): number;
225
+ get colspan(): number;
226
+ getCellInner(): TableCellInnerFormat;
221
227
  checkMerge(): boolean;
222
228
  optimize(context: Record<string, any>): void;
223
229
  }
@@ -251,23 +257,17 @@ declare class TableCellInnerFormat extends ContainerFormat {
251
257
  insertBefore(blot: Parchment.Blot, ref?: Parchment.Blot | null): void;
252
258
  }
253
259
 
254
- declare class TableCellFormat extends ContainerFormat {
255
- static blotName: "table-up-cell";
260
+ declare const ScrollBlot: any;
261
+ declare class ScrollOverride extends ScrollBlot {
262
+ createBlock(attributes: Record<string, any>, refBlot?: Parchment.Blot): Parchment.ParentBlot | TableCellInnerFormat;
263
+ }
264
+
265
+ declare class TableBodyFormat extends ContainerFormat {
266
+ static blotName: "table-up-body";
256
267
  static tagName: string;
257
- static className: string;
258
- static allowDataAttrs: Set<string>;
259
- static allowAttrs: Set<string>;
260
- static allowStyle: Set<string>;
261
- static isAllowStyle(str: string): boolean;
262
- static create(value: TableCellValue): HTMLElement;
263
- static formats(domNode: HTMLElement): Record<string, any>;
264
- setFormatValue(name: string, value?: any): void;
268
+ static create(value: string): HTMLElement;
265
269
  get tableId(): string;
266
- get rowId(): string;
267
- get colId(): string;
268
- get rowspan(): number;
269
- get colspan(): number;
270
- getCellInner(): TableCellInnerFormat;
270
+ insertRow(targetIndex: number): void;
271
271
  checkMerge(): boolean;
272
272
  optimize(context: Record<string, any>): void;
273
273
  }