@tiptap/extension-task-item 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
|
-
|
|
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-task-item",
|
|
3
3
|
"description": "task item extension for tiptap",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.7",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tiptap/core": "^2.5.
|
|
33
|
-
"@tiptap/pm": "^2.5.
|
|
32
|
+
"@tiptap/core": "^2.5.7",
|
|
33
|
+
"@tiptap/pm": "^2.5.7"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@tiptap/core": "^2.5.
|
|
37
|
-
"@tiptap/pm": "^2.5.
|
|
36
|
+
"@tiptap/core": "^2.5.7",
|
|
37
|
+
"@tiptap/pm": "^2.5.7"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|