@tiptap/extension-character-count 2.0.0-beta.21 → 2.0.0-beta.25
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/packages/extension-character-count/src/character-count.d.ts +3 -3
- package/dist/tiptap-extension-character-count.cjs.js +10 -5292
- package/dist/tiptap-extension-character-count.cjs.js.map +1 -1
- package/dist/tiptap-extension-character-count.esm.js +8 -5290
- package/dist/tiptap-extension-character-count.esm.js.map +1 -1
- package/dist/tiptap-extension-character-count.umd.js +13 -5296
- package/dist/tiptap-extension-character-count.umd.js.map +1 -1
- package/package.json +6 -2
- package/src/character-count.ts +10 -10
|
@@ -4,7 +4,7 @@ export interface CharacterCountOptions {
|
|
|
4
4
|
/**
|
|
5
5
|
* The maximum number of characters that should be allowed. Defaults to `0`.
|
|
6
6
|
*/
|
|
7
|
-
limit: number;
|
|
7
|
+
limit: number | null | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* The mode by which the size is calculated. Defaults to 'textSize'.
|
|
10
10
|
*/
|
|
@@ -14,14 +14,14 @@ export interface CharacterCountStorage {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get the number of characters for the current document.
|
|
16
16
|
*/
|
|
17
|
-
characters
|
|
17
|
+
characters: (options?: {
|
|
18
18
|
node?: ProseMirrorNode;
|
|
19
19
|
mode?: 'textSize' | 'nodeSize';
|
|
20
20
|
}) => number;
|
|
21
21
|
/**
|
|
22
22
|
* Get the number of words for the current document.
|
|
23
23
|
*/
|
|
24
|
-
words
|
|
24
|
+
words: (options?: {
|
|
25
25
|
node?: ProseMirrorNode;
|
|
26
26
|
}) => number;
|
|
27
27
|
}
|