@tiptap/extension-table-cell 2.5.5 → 2.5.7

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.
@@ -1,2 +1,8 @@
1
1
  import { Node as ProseMirrorNode } from '@tiptap/pm/model';
2
- export declare function isNodeEmpty(node: ProseMirrorNode): boolean;
2
+ /**
3
+ * Returns true if the given node is empty.
4
+ * When `checkChildren` is true (default), it will also check if all children are empty.
5
+ */
6
+ export declare function isNodeEmpty(node: ProseMirrorNode, { checkChildren }?: {
7
+ checkChildren: boolean;
8
+ }): boolean;
@@ -154,9 +154,7 @@ export type GlobalAttributes = {
154
154
  /**
155
155
  * The attributes to add to the node or mark types.
156
156
  */
157
- attributes: {
158
- [key: string]: Attribute;
159
- };
157
+ attributes: Record<string, Attribute | undefined>;
160
158
  }[];
161
159
  export type PickValue<T, K extends keyof T> = T[K];
162
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.5",
4
+ "version": "2.5.7",
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.5"
32
+ "@tiptap/core": "^2.5.7"
33
33
  },
34
34
  "peerDependencies": {
35
- "@tiptap/core": "^2.5.5"
35
+ "@tiptap/core": "^2.5.7"
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",