@tiptap/extension-table-cell 2.5.4 → 2.5.6
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.
|
@@ -6,10 +6,8 @@ import { ExtensionManager } from './ExtensionManager.js';
|
|
|
6
6
|
import { NodePos } from './NodePos.js';
|
|
7
7
|
import { CanCommands, ChainedCommands, EditorEvents, EditorOptions, JSONContent, SingleCommands, TextSerializer } from './types.js';
|
|
8
8
|
export * as extensions from './extensions/index.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
editor?: Editor;
|
|
12
|
-
}
|
|
9
|
+
export interface TiptapEditorHTMLElement extends HTMLElement {
|
|
10
|
+
editor?: Editor;
|
|
13
11
|
}
|
|
14
12
|
export declare class Editor extends EventEmitter<EditorEvents> {
|
|
15
13
|
private commandManager;
|
|
@@ -40,6 +40,11 @@ export interface EditorEvents {
|
|
|
40
40
|
editor: Editor;
|
|
41
41
|
transaction: Transaction;
|
|
42
42
|
};
|
|
43
|
+
beforeTransaction: {
|
|
44
|
+
editor: Editor;
|
|
45
|
+
transaction: Transaction;
|
|
46
|
+
nextState: EditorState;
|
|
47
|
+
};
|
|
43
48
|
transaction: {
|
|
44
49
|
editor: Editor;
|
|
45
50
|
transaction: Transaction;
|
|
@@ -149,9 +154,7 @@ export type GlobalAttributes = {
|
|
|
149
154
|
/**
|
|
150
155
|
* The attributes to add to the node or mark types.
|
|
151
156
|
*/
|
|
152
|
-
attributes:
|
|
153
|
-
[key: string]: Attribute;
|
|
154
|
-
};
|
|
157
|
+
attributes: Record<string, Attribute | undefined>;
|
|
155
158
|
}[];
|
|
156
159
|
export type PickValue<T, K extends keyof T> = T[K];
|
|
157
160
|
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/extension-table-cell",
|
|
3
3
|
"description": "table cell extension for tiptap",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.6",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tiptap/core": "^2.5.
|
|
32
|
+
"@tiptap/core": "^2.5.6"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@tiptap/core": "^2.5.
|
|
35
|
+
"@tiptap/core": "^2.5.6"
|
|
36
36
|
},
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|