@tiptap/extensions 3.31.4 → 3.32.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.
Files changed (37) hide show
  1. package/dist/character-count/index.d.cts +3 -4
  2. package/dist/character-count/index.d.cts.map +1 -1
  3. package/dist/character-count/index.d.ts +3 -4
  4. package/dist/character-count/index.d.ts.map +1 -1
  5. package/dist/drop-cursor/index.d.cts +2 -3
  6. package/dist/drop-cursor/index.d.cts.map +1 -1
  7. package/dist/drop-cursor/index.d.ts +2 -3
  8. package/dist/drop-cursor/index.d.ts.map +1 -1
  9. package/dist/focus/index.d.cts +2 -3
  10. package/dist/focus/index.d.cts.map +1 -1
  11. package/dist/focus/index.d.ts +2 -3
  12. package/dist/focus/index.d.ts.map +1 -1
  13. package/dist/gap-cursor/index.d.cts +1 -2
  14. package/dist/gap-cursor/index.d.cts.map +1 -1
  15. package/dist/gap-cursor/index.d.ts +1 -2
  16. package/dist/gap-cursor/index.d.ts.map +1 -1
  17. package/dist/index.d.cts +20 -21
  18. package/dist/index.d.cts.map +1 -1
  19. package/dist/index.d.ts +20 -21
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/placeholder/index.d.cts +5 -6
  22. package/dist/placeholder/index.d.cts.map +1 -1
  23. package/dist/placeholder/index.d.ts +5 -6
  24. package/dist/placeholder/index.d.ts.map +1 -1
  25. package/dist/selection/index.d.cts +2 -3
  26. package/dist/selection/index.d.cts.map +1 -1
  27. package/dist/selection/index.d.ts +2 -3
  28. package/dist/selection/index.d.ts.map +1 -1
  29. package/dist/trailing-node/index.d.cts +3 -4
  30. package/dist/trailing-node/index.d.cts.map +1 -1
  31. package/dist/trailing-node/index.d.ts +3 -4
  32. package/dist/trailing-node/index.d.ts.map +1 -1
  33. package/dist/undo-redo/index.d.cts +2 -3
  34. package/dist/undo-redo/index.d.cts.map +1 -1
  35. package/dist/undo-redo/index.d.ts +2 -3
  36. package/dist/undo-redo/index.d.ts.map +1 -1
  37. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  import { Node } from "@tiptap/pm/model";
3
3
  //#region src/character-count/character-count.d.ts
4
- interface CharacterCountOptions {
4
+ export interface CharacterCountOptions {
5
5
  /**
6
6
  * The maximum number of characters that should be allowed. Defaults to `0`.
7
7
  * @default null
@@ -35,7 +35,7 @@ interface CharacterCountOptions {
35
35
  */
36
36
  wordCounter: (text: string) => number;
37
37
  }
38
- interface CharacterCountStorage {
38
+ export interface CharacterCountStorage {
39
39
  /**
40
40
  * Get the number of characters for the current document.
41
41
  * @param options The options for the character count. (optional)
@@ -64,7 +64,6 @@ declare module '@tiptap/core' {
64
64
  * This extension allows you to count the characters and words of your document.
65
65
  * @see https://tiptap.dev/api/extensions/character-count
66
66
  */
67
- declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
67
+ export declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
68
68
  //#endregion
69
- export { CharacterCount, CharacterCountOptions, CharacterCountStorage };
70
69
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/character-count/character-count.ts"],"mappings":";;;UAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;UAGC;;;;;;;EAOf,aAAa;IAAY,OAAO;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAO;;;;YAIjB;IACR,gBAAgB;;;;;;;cAQP,gBAAc,UAAA,uBAAA"}
1
+ {"version":3,"file":"index.d.cts","names":["ProseMirrorNode"],"sources":["../../src/character-count/character-count.ts"],"mappings":";;;iBAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;iBAGC;;;;;;;EAOf,aAAa;IAAY,OAAOA;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAOA;;;;YAIjB;IACR,gBAAgB;;;;;;;qBAQP,gBAAc,UAAA,uBAAA"}
@@ -1,7 +1,7 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  import { Node } from "@tiptap/pm/model";
3
3
  //#region src/character-count/character-count.d.ts
4
- interface CharacterCountOptions {
4
+ export interface CharacterCountOptions {
5
5
  /**
6
6
  * The maximum number of characters that should be allowed. Defaults to `0`.
7
7
  * @default null
@@ -35,7 +35,7 @@ interface CharacterCountOptions {
35
35
  */
36
36
  wordCounter: (text: string) => number;
37
37
  }
38
- interface CharacterCountStorage {
38
+ export interface CharacterCountStorage {
39
39
  /**
40
40
  * Get the number of characters for the current document.
41
41
  * @param options The options for the character count. (optional)
@@ -64,7 +64,6 @@ declare module '@tiptap/core' {
64
64
  * This extension allows you to count the characters and words of your document.
65
65
  * @see https://tiptap.dev/api/extensions/character-count
66
66
  */
67
- declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
67
+ export declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
68
68
  //#endregion
69
- export { CharacterCount, CharacterCountOptions, CharacterCountStorage };
70
69
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/character-count/character-count.ts"],"mappings":";;;UAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;UAGC;;;;;;;EAOf,aAAa;IAAY,OAAO;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAO;;;;YAIjB;IACR,gBAAgB;;;;;;;cAQP,gBAAc,UAAA,uBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["ProseMirrorNode"],"sources":["../../src/character-count/character-count.ts"],"mappings":";;;iBAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;iBAGC;;;;;;;EAOf,aAAa;IAAY,OAAOA;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAOA;;;;YAIjB;IACR,gBAAgB;;;;;;;qBAQP,gBAAc,UAAA,uBAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/drop-cursor/drop-cursor.d.ts
3
- interface DropcursorOptions {
3
+ export interface DropcursorOptions {
4
4
  /**
5
5
  * The color of the drop cursor. Use `false` to apply no color and rely only on class.
6
6
  * @default 'currentColor'
@@ -26,7 +26,6 @@ interface DropcursorOptions {
26
26
  * in-between nodes.
27
27
  * @see https://tiptap.dev/api/extensions/dropcursor
28
28
  */
29
- declare const Dropcursor: Extension<DropcursorOptions, any>;
29
+ export declare const Dropcursor: Extension<DropcursorOptions, any>;
30
30
  //#endregion
31
- export { Dropcursor, DropcursorOptions };
32
31
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/drop-cursor/drop-cursor.ts"],"mappings":";;UAGiB;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;cASW,YAAU,UAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/drop-cursor/drop-cursor.ts"],"mappings":";;iBAGiB;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;qBASW,YAAU,UAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/drop-cursor/drop-cursor.d.ts
3
- interface DropcursorOptions {
3
+ export interface DropcursorOptions {
4
4
  /**
5
5
  * The color of the drop cursor. Use `false` to apply no color and rely only on class.
6
6
  * @default 'currentColor'
@@ -26,7 +26,6 @@ interface DropcursorOptions {
26
26
  * in-between nodes.
27
27
  * @see https://tiptap.dev/api/extensions/dropcursor
28
28
  */
29
- declare const Dropcursor: Extension<DropcursorOptions, any>;
29
+ export declare const Dropcursor: Extension<DropcursorOptions, any>;
30
30
  //#endregion
31
- export { Dropcursor, DropcursorOptions };
32
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/drop-cursor/drop-cursor.ts"],"mappings":";;UAGiB;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;cASW,YAAU,UAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/drop-cursor/drop-cursor.ts"],"mappings":";;iBAGiB;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;qBASW,YAAU,UAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/focus/focus.d.ts
3
- interface FocusOptions {
3
+ export interface FocusOptions {
4
4
  /**
5
5
  * The class name that should be added to the focused node.
6
6
  * @default 'has-focus'
@@ -23,7 +23,6 @@ interface FocusOptions {
23
23
  * This extension allows you to add a class to the focused node.
24
24
  * @see https://www.tiptap.dev/api/extensions/focus
25
25
  */
26
- declare const Focus: Extension<FocusOptions, any>;
26
+ export declare const Focus: Extension<FocusOptions, any>;
27
27
  //#endregion
28
- export { Focus, FocusOptions };
29
28
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/focus/focus.ts"],"mappings":";;UAIiB;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;cAOW,OAAK,UAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/focus/focus.ts"],"mappings":";;iBAIiB;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;qBAOW,OAAK,UAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/focus/focus.d.ts
3
- interface FocusOptions {
3
+ export interface FocusOptions {
4
4
  /**
5
5
  * The class name that should be added to the focused node.
6
6
  * @default 'has-focus'
@@ -23,7 +23,6 @@ interface FocusOptions {
23
23
  * This extension allows you to add a class to the focused node.
24
24
  * @see https://www.tiptap.dev/api/extensions/focus
25
25
  */
26
- declare const Focus: Extension<FocusOptions, any>;
26
+ export declare const Focus: Extension<FocusOptions, any>;
27
27
  //#endregion
28
- export { Focus, FocusOptions };
29
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/focus/focus.ts"],"mappings":";;UAIiB;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;cAOW,OAAK,UAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/focus/focus.ts"],"mappings":";;iBAIiB;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;qBAOW,OAAK,UAAA"}
@@ -20,7 +20,6 @@ declare module '@tiptap/core' {
20
20
  * where no content is present, for example inbetween nodes.
21
21
  * @see https://tiptap.dev/api/extensions/gapcursor
22
22
  */
23
- declare const Gapcursor: Extension<any, any>;
23
+ export declare const Gapcursor: Extension<any, any>;
24
24
  //#endregion
25
- export { Gapcursor };
26
25
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/gap-cursor/gap-cursor.ts"],"mappings":";;;YAKY,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;cAW7B,WAAS"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/gap-cursor/gap-cursor.ts"],"mappings":";;;YAKY,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;qBAW7B,WAAS"}
@@ -20,7 +20,6 @@ declare module '@tiptap/core' {
20
20
  * where no content is present, for example inbetween nodes.
21
21
  * @see https://tiptap.dev/api/extensions/gapcursor
22
22
  */
23
- declare const Gapcursor: Extension<any, any>;
23
+ export declare const Gapcursor: Extension<any, any>;
24
24
  //#endregion
25
- export { Gapcursor };
26
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/gap-cursor/gap-cursor.ts"],"mappings":";;;YAKY,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;cAW7B,WAAS"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/gap-cursor/gap-cursor.ts"],"mappings":";;;YAKY,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;qBAW7B,WAAS"}
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { Node } from "@tiptap/pm/model";
3
3
  import { PluginKey } from "@tiptap/pm/state";
4
4
  import { DecorationSet } from "@tiptap/pm/view";
5
5
  //#region src/character-count/character-count.d.ts
6
- interface CharacterCountOptions {
6
+ export interface CharacterCountOptions {
7
7
  /**
8
8
  * The maximum number of characters that should be allowed. Defaults to `0`.
9
9
  * @default null
@@ -37,7 +37,7 @@ interface CharacterCountOptions {
37
37
  */
38
38
  wordCounter: (text: string) => number;
39
39
  }
40
- interface CharacterCountStorage {
40
+ export interface CharacterCountStorage {
41
41
  /**
42
42
  * Get the number of characters for the current document.
43
43
  * @param options The options for the character count. (optional)
@@ -66,10 +66,10 @@ declare module '@tiptap/core' {
66
66
  * This extension allows you to count the characters and words of your document.
67
67
  * @see https://tiptap.dev/api/extensions/character-count
68
68
  */
69
- declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
69
+ export declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
70
70
  //#endregion
71
71
  //#region src/drop-cursor/drop-cursor.d.ts
72
- interface DropcursorOptions {
72
+ export interface DropcursorOptions {
73
73
  /**
74
74
  * The color of the drop cursor. Use `false` to apply no color and rely only on class.
75
75
  * @default 'currentColor'
@@ -95,10 +95,10 @@ interface DropcursorOptions {
95
95
  * in-between nodes.
96
96
  * @see https://tiptap.dev/api/extensions/dropcursor
97
97
  */
98
- declare const Dropcursor: Extension<DropcursorOptions, any>;
98
+ export declare const Dropcursor: Extension<DropcursorOptions, any>;
99
99
  //#endregion
100
100
  //#region src/focus/focus.d.ts
101
- interface FocusOptions {
101
+ export interface FocusOptions {
102
102
  /**
103
103
  * The class name that should be added to the focused node.
104
104
  * @default 'has-focus'
@@ -121,7 +121,7 @@ interface FocusOptions {
121
121
  * This extension allows you to add a class to the focused node.
122
122
  * @see https://www.tiptap.dev/api/extensions/focus
123
123
  */
124
- declare const Focus: Extension<FocusOptions, any>;
124
+ export declare const Focus: Extension<FocusOptions, any>;
125
125
  //#endregion
126
126
  //#region src/gap-cursor/gap-cursor.d.ts
127
127
  declare module '@tiptap/core' {
@@ -144,16 +144,16 @@ declare module '@tiptap/core' {
144
144
  * where no content is present, for example inbetween nodes.
145
145
  * @see https://tiptap.dev/api/extensions/gapcursor
146
146
  */
147
- declare const Gapcursor: Extension<any, any>;
147
+ export declare const Gapcursor: Extension<any, any>;
148
148
  //#endregion
149
149
  //#region src/placeholder/constants.d.ts
150
150
  /** The default data attribute label */
151
- declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
151
+ export declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
152
152
  /** The plugin key used to store and read the placeholder decoration set */
153
- declare const PLUGIN_KEY: PluginKey<DecorationSet>;
153
+ export declare const PLUGIN_KEY: PluginKey<DecorationSet>;
154
154
  //#endregion
155
155
  //#region src/placeholder/types.d.ts
156
- interface PlaceholderOptions {
156
+ export interface PlaceholderOptions {
157
157
  /**
158
158
  * **The class name for the empty editor**
159
159
  * @default 'is-editor-empty'
@@ -221,7 +221,7 @@ interface PlaceholderOptions {
221
221
  * A placeholder is a text that appears when the editor or a node is empty.
222
222
  * @see https://www.tiptap.dev/api/extensions/placeholder
223
223
  */
224
- declare const Placeholder: Extension<PlaceholderOptions, any>;
224
+ export declare const Placeholder: Extension<PlaceholderOptions, any>;
225
225
  //#endregion
226
226
  //#region src/placeholder/utils/preparePlaceholderAttribute.d.ts
227
227
  /**
@@ -229,10 +229,10 @@ declare const Placeholder: Extension<PlaceholderOptions, any>;
229
229
  * @param attr - The placeholder attribute string.
230
230
  * @returns The prepared placeholder attribute string.
231
231
  */
232
- declare function preparePlaceholderAttribute(attr: string): string;
232
+ export declare function preparePlaceholderAttribute(attr: string): string;
233
233
  //#endregion
234
234
  //#region src/selection/selection.d.ts
235
- type SelectionOptions = {
235
+ export type SelectionOptions = {
236
236
  /**
237
237
  * The class name that should be added to the selected text.
238
238
  * @default 'selection'
@@ -246,16 +246,16 @@ type SelectionOptions = {
246
246
  * decoration) and restores it when the editor is focused again.
247
247
  * @see https://www.tiptap.dev/api/extensions/selection
248
248
  */
249
- declare const Selection: Extension<SelectionOptions, any>;
249
+ export declare const Selection: Extension<SelectionOptions, any>;
250
250
  //#endregion
251
251
  //#region src/trailing-node/trailing-node.d.ts
252
- declare const skipTrailingNodeMeta = "skipTrailingNode";
252
+ export declare const skipTrailingNodeMeta = "skipTrailingNode";
253
253
  /**
254
254
  * Extension based on:
255
255
  * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
256
256
  * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
257
257
  */
258
- interface TrailingNodeOptions {
258
+ export interface TrailingNodeOptions {
259
259
  /**
260
260
  * The node type that should be inserted at the end of the document.
261
261
  * @note the node will always be added to the `notAfter` lists to
@@ -273,10 +273,10 @@ interface TrailingNodeOptions {
273
273
  * This extension allows you to add an extra node at the end of the document.
274
274
  * @see https://www.tiptap.dev/api/extensions/trailing-node
275
275
  */
276
- declare const TrailingNode: Extension<TrailingNodeOptions, any>;
276
+ export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
277
277
  //#endregion
278
278
  //#region src/undo-redo/undo-redo.d.ts
279
- interface UndoRedoOptions {
279
+ export interface UndoRedoOptions {
280
280
  /**
281
281
  * The amount of history events that are collected before the oldest events are discarded.
282
282
  * @default 100
@@ -315,7 +315,6 @@ declare module '@tiptap/core' {
315
315
  *
316
316
  * `@tiptap/extension-collaboration` uses its own history implementation.
317
317
  */
318
- declare const UndoRedo: Extension<UndoRedoOptions, any>;
318
+ export declare const UndoRedo: Extension<UndoRedoOptions, any>;
319
319
  //#endregion
320
- export { CharacterCount, CharacterCountOptions, CharacterCountStorage, DEFAULT_DATA_ATTRIBUTE, Dropcursor, DropcursorOptions, Focus, FocusOptions, Gapcursor, PLUGIN_KEY, Placeholder, PlaceholderOptions, Selection, SelectionOptions, TrailingNode, TrailingNodeOptions, UndoRedo, UndoRedoOptions, preparePlaceholderAttribute, skipTrailingNodeMeta };
321
320
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/character-count/character-count.ts","../src/drop-cursor/drop-cursor.ts","../src/focus/focus.ts","../src/gap-cursor/gap-cursor.ts","../src/placeholder/constants.ts","../src/placeholder/types.ts","../src/placeholder/placeholder.ts","../src/placeholder/utils/preparePlaceholderAttribute.ts","../src/selection/selection.ts","../src/trailing-node/trailing-node.ts","../src/undo-redo/undo-redo.ts"],"mappings":";;;;;UAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;UAGC;;;;;;;EAOf,aAAa;IAAY,OAAO;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAO;;;;YAIjB;IACR,gBAAgB;;;;;;;cAQP,gBAAc,UAAA,uBAAA;;;UC/DV;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;cASW,YAAU,UAAA;;;UC5BN;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;cAOW,OAAK,UAAA;;;;YCxBN,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;cAW7B,WAAS;;;;cCxBT;;cAGA,YAAU,UAAA;;;UCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;cC7DW,aAAW,UAAA;;;;;;;;iBCNR,4BAA4B;;;KCAhC;;;;;;EAMV;;;;;;;;cAqCW,WAAS,UAAA;;;cC5CT;;;;;;UAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;cAOW,cAAY,UAAA;;;UCtCR;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;cAcL,UAAQ,UAAA"}
1
+ {"version":3,"file":"index.d.cts","names":["ProseMirrorNode","_0","_0","ProsemirrorNode"],"sources":["../src/character-count/character-count.ts","../src/drop-cursor/drop-cursor.ts","../src/focus/focus.ts","../src/gap-cursor/gap-cursor.ts","../src/placeholder/constants.ts","../src/placeholder/types.ts","../src/placeholder/placeholder.ts","../src/placeholder/utils/preparePlaceholderAttribute.ts","../src/selection/selection.ts","../src/trailing-node/trailing-node.ts","../src/undo-redo/undo-redo.ts"],"mappings":";;;;;iBAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;iBAGC;;;;;;;EAOf,aAAa;IAAY,OAAOA;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAOA;;;;YAIjB;IACR,gBAAgB;;;;;;;qBAQP,gBAAc,UAAA,uBAAA;;;iBC/DV;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;qBASW,YAAU,UAAA;;;iBC5BN;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;qBAOW,OAAK,UAAA;;;;YCxBN,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;qBAW7B,WAAS;;;;qBCxBT;;qBAGA,YAAU,UAAA;;;iBCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAMG;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAMA;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;qBC7DW,aAAW,UAAA;;;;;;;;wBCNR,4BAA4B;;;YCAhC;;;;;;EAMV;;;;;;;;qBAqCW,WAAS,UAAA;;;qBC5CT;;;;;;iBAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;qBAOW,cAAY,UAAA;;;iBCtCR;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;qBAcL,UAAQ,UAAA"}
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { PluginKey } from "@tiptap/pm/state";
3
3
  import { DecorationSet } from "@tiptap/pm/view";
4
4
  import { Node } from "@tiptap/pm/model";
5
5
  //#region src/character-count/character-count.d.ts
6
- interface CharacterCountOptions {
6
+ export interface CharacterCountOptions {
7
7
  /**
8
8
  * The maximum number of characters that should be allowed. Defaults to `0`.
9
9
  * @default null
@@ -37,7 +37,7 @@ interface CharacterCountOptions {
37
37
  */
38
38
  wordCounter: (text: string) => number;
39
39
  }
40
- interface CharacterCountStorage {
40
+ export interface CharacterCountStorage {
41
41
  /**
42
42
  * Get the number of characters for the current document.
43
43
  * @param options The options for the character count. (optional)
@@ -66,10 +66,10 @@ declare module '@tiptap/core' {
66
66
  * This extension allows you to count the characters and words of your document.
67
67
  * @see https://tiptap.dev/api/extensions/character-count
68
68
  */
69
- declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
69
+ export declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
70
70
  //#endregion
71
71
  //#region src/drop-cursor/drop-cursor.d.ts
72
- interface DropcursorOptions {
72
+ export interface DropcursorOptions {
73
73
  /**
74
74
  * The color of the drop cursor. Use `false` to apply no color and rely only on class.
75
75
  * @default 'currentColor'
@@ -95,10 +95,10 @@ interface DropcursorOptions {
95
95
  * in-between nodes.
96
96
  * @see https://tiptap.dev/api/extensions/dropcursor
97
97
  */
98
- declare const Dropcursor: Extension<DropcursorOptions, any>;
98
+ export declare const Dropcursor: Extension<DropcursorOptions, any>;
99
99
  //#endregion
100
100
  //#region src/focus/focus.d.ts
101
- interface FocusOptions {
101
+ export interface FocusOptions {
102
102
  /**
103
103
  * The class name that should be added to the focused node.
104
104
  * @default 'has-focus'
@@ -121,7 +121,7 @@ interface FocusOptions {
121
121
  * This extension allows you to add a class to the focused node.
122
122
  * @see https://www.tiptap.dev/api/extensions/focus
123
123
  */
124
- declare const Focus: Extension<FocusOptions, any>;
124
+ export declare const Focus: Extension<FocusOptions, any>;
125
125
  //#endregion
126
126
  //#region src/gap-cursor/gap-cursor.d.ts
127
127
  declare module '@tiptap/core' {
@@ -144,16 +144,16 @@ declare module '@tiptap/core' {
144
144
  * where no content is present, for example inbetween nodes.
145
145
  * @see https://tiptap.dev/api/extensions/gapcursor
146
146
  */
147
- declare const Gapcursor: Extension<any, any>;
147
+ export declare const Gapcursor: Extension<any, any>;
148
148
  //#endregion
149
149
  //#region src/placeholder/constants.d.ts
150
150
  /** The default data attribute label */
151
- declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
151
+ export declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
152
152
  /** The plugin key used to store and read the placeholder decoration set */
153
- declare const PLUGIN_KEY: PluginKey<DecorationSet>;
153
+ export declare const PLUGIN_KEY: PluginKey<DecorationSet>;
154
154
  //#endregion
155
155
  //#region src/placeholder/types.d.ts
156
- interface PlaceholderOptions {
156
+ export interface PlaceholderOptions {
157
157
  /**
158
158
  * **The class name for the empty editor**
159
159
  * @default 'is-editor-empty'
@@ -221,7 +221,7 @@ interface PlaceholderOptions {
221
221
  * A placeholder is a text that appears when the editor or a node is empty.
222
222
  * @see https://www.tiptap.dev/api/extensions/placeholder
223
223
  */
224
- declare const Placeholder: Extension<PlaceholderOptions, any>;
224
+ export declare const Placeholder: Extension<PlaceholderOptions, any>;
225
225
  //#endregion
226
226
  //#region src/placeholder/utils/preparePlaceholderAttribute.d.ts
227
227
  /**
@@ -229,10 +229,10 @@ declare const Placeholder: Extension<PlaceholderOptions, any>;
229
229
  * @param attr - The placeholder attribute string.
230
230
  * @returns The prepared placeholder attribute string.
231
231
  */
232
- declare function preparePlaceholderAttribute(attr: string): string;
232
+ export declare function preparePlaceholderAttribute(attr: string): string;
233
233
  //#endregion
234
234
  //#region src/selection/selection.d.ts
235
- type SelectionOptions = {
235
+ export type SelectionOptions = {
236
236
  /**
237
237
  * The class name that should be added to the selected text.
238
238
  * @default 'selection'
@@ -246,16 +246,16 @@ type SelectionOptions = {
246
246
  * decoration) and restores it when the editor is focused again.
247
247
  * @see https://www.tiptap.dev/api/extensions/selection
248
248
  */
249
- declare const Selection: Extension<SelectionOptions, any>;
249
+ export declare const Selection: Extension<SelectionOptions, any>;
250
250
  //#endregion
251
251
  //#region src/trailing-node/trailing-node.d.ts
252
- declare const skipTrailingNodeMeta = "skipTrailingNode";
252
+ export declare const skipTrailingNodeMeta = "skipTrailingNode";
253
253
  /**
254
254
  * Extension based on:
255
255
  * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
256
256
  * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
257
257
  */
258
- interface TrailingNodeOptions {
258
+ export interface TrailingNodeOptions {
259
259
  /**
260
260
  * The node type that should be inserted at the end of the document.
261
261
  * @note the node will always be added to the `notAfter` lists to
@@ -273,10 +273,10 @@ interface TrailingNodeOptions {
273
273
  * This extension allows you to add an extra node at the end of the document.
274
274
  * @see https://www.tiptap.dev/api/extensions/trailing-node
275
275
  */
276
- declare const TrailingNode: Extension<TrailingNodeOptions, any>;
276
+ export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
277
277
  //#endregion
278
278
  //#region src/undo-redo/undo-redo.d.ts
279
- interface UndoRedoOptions {
279
+ export interface UndoRedoOptions {
280
280
  /**
281
281
  * The amount of history events that are collected before the oldest events are discarded.
282
282
  * @default 100
@@ -315,7 +315,6 @@ declare module '@tiptap/core' {
315
315
  *
316
316
  * `@tiptap/extension-collaboration` uses its own history implementation.
317
317
  */
318
- declare const UndoRedo: Extension<UndoRedoOptions, any>;
318
+ export declare const UndoRedo: Extension<UndoRedoOptions, any>;
319
319
  //#endregion
320
- export { CharacterCount, CharacterCountOptions, CharacterCountStorage, DEFAULT_DATA_ATTRIBUTE, Dropcursor, DropcursorOptions, Focus, FocusOptions, Gapcursor, PLUGIN_KEY, Placeholder, PlaceholderOptions, Selection, SelectionOptions, TrailingNode, TrailingNodeOptions, UndoRedo, UndoRedoOptions, preparePlaceholderAttribute, skipTrailingNodeMeta };
321
320
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/character-count/character-count.ts","../src/drop-cursor/drop-cursor.ts","../src/focus/focus.ts","../src/gap-cursor/gap-cursor.ts","../src/placeholder/constants.ts","../src/placeholder/types.ts","../src/placeholder/placeholder.ts","../src/placeholder/utils/preparePlaceholderAttribute.ts","../src/selection/selection.ts","../src/trailing-node/trailing-node.ts","../src/undo-redo/undo-redo.ts"],"mappings":";;;;;UAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;UAGC;;;;;;;EAOf,aAAa;IAAY,OAAO;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAO;;;;YAIjB;IACR,gBAAgB;;;;;;;cAQP,gBAAc,UAAA,uBAAA;;;UC/DV;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;cASW,YAAU,UAAA;;;UC5BN;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;cAOW,OAAK,UAAA;;;;YCxBN,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;cAW7B,WAAS;;;;cCxBT;;cAGA,YAAU,UAAA;;;UCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;cC7DW,aAAW,UAAA;;;;;;;;iBCNR,4BAA4B;;;KCAhC;;;;;;EAMV;;;;;;;;cAqCW,WAAS,UAAA;;;cC5CT;;;;;;UAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;cAOW,cAAY,UAAA;;;UCtCR;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;cAcL,UAAQ,UAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["ProseMirrorNode","_0","_0","ProsemirrorNode"],"sources":["../src/character-count/character-count.ts","../src/drop-cursor/drop-cursor.ts","../src/focus/focus.ts","../src/gap-cursor/gap-cursor.ts","../src/placeholder/constants.ts","../src/placeholder/types.ts","../src/placeholder/placeholder.ts","../src/placeholder/utils/preparePlaceholderAttribute.ts","../src/selection/selection.ts","../src/trailing-node/trailing-node.ts","../src/undo-redo/undo-redo.ts"],"mappings":";;;;;iBAIiB;;;;;;EAMf;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA,cAAc;;;;;;EAMd,cAAc;;iBAGC;;;;;;;EAOf,aAAa;IAAY,OAAOA;IAAiB;;;;;;;EAOjD,QAAQ;IAAY,OAAOA;;;;YAIjB;IACR,gBAAgB;;;;;;;qBAQP,gBAAc,UAAA,uBAAA;;;iBC/DV;;;;;;EAMf;;;;;;EAOA;;;;;;EAOA;;;;;;;;qBASW,YAAU,UAAA;;;iBC5BN;;;;;;EAMf;;;;;;;;;;;EAYA;;;;;;qBAOW,OAAK,UAAA;;;;YCxBN,WAAW,SAAS;;;;;IAK5B,oCAGM;MACA;MACA,SAAS;MACT,SAAS;MACT,QAAQ,aAAa,WAAW;;;;;;;;;;qBAW7B,WAAS;;;;qBCxBT;;qBAGA,YAAU,UAAA;;;iBCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAMG;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAMA;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;qBC7DW,aAAW,UAAA;;;;;;;;wBCNR,4BAA4B;;;YCAhC;;;;;;EAMV;;;;;;;;qBAqCW,WAAS,UAAA;;;qBC5CT;;;;;;iBAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;qBAOW,cAAY,UAAA;;;iBCtCR;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;qBAcL,UAAQ,UAAA"}
@@ -4,12 +4,12 @@ import { Editor, Extension } from "@tiptap/core";
4
4
  import { Node } from "@tiptap/pm/model";
5
5
  //#region src/placeholder/constants.d.ts
6
6
  /** The default data attribute label */
7
- declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
7
+ export declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
8
8
  /** The plugin key used to store and read the placeholder decoration set */
9
- declare const PLUGIN_KEY: PluginKey<DecorationSet>;
9
+ export declare const PLUGIN_KEY: PluginKey<DecorationSet>;
10
10
  //#endregion
11
11
  //#region src/placeholder/types.d.ts
12
- interface PlaceholderOptions {
12
+ export interface PlaceholderOptions {
13
13
  /**
14
14
  * **The class name for the empty editor**
15
15
  * @default 'is-editor-empty'
@@ -77,7 +77,7 @@ interface PlaceholderOptions {
77
77
  * A placeholder is a text that appears when the editor or a node is empty.
78
78
  * @see https://www.tiptap.dev/api/extensions/placeholder
79
79
  */
80
- declare const Placeholder: Extension<PlaceholderOptions, any>;
80
+ export declare const Placeholder: Extension<PlaceholderOptions, any>;
81
81
  //#endregion
82
82
  //#region src/placeholder/utils/preparePlaceholderAttribute.d.ts
83
83
  /**
@@ -85,7 +85,6 @@ declare const Placeholder: Extension<PlaceholderOptions, any>;
85
85
  * @param attr - The placeholder attribute string.
86
86
  * @returns The prepared placeholder attribute string.
87
87
  */
88
- declare function preparePlaceholderAttribute(attr: string): string;
88
+ export declare function preparePlaceholderAttribute(attr: string): string;
89
89
  //#endregion
90
- export { DEFAULT_DATA_ATTRIBUTE, PLUGIN_KEY, Placeholder, PlaceholderOptions, preparePlaceholderAttribute };
91
90
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/placeholder/constants.ts","../../src/placeholder/types.ts","../../src/placeholder/placeholder.ts","../../src/placeholder/utils/preparePlaceholderAttribute.ts"],"mappings":";;;;;;cAIa;;cAGA,YAAU,UAAA;;;UCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;cC7DW,aAAW,UAAA;;;;;;;;iBCNR,4BAA4B"}
1
+ {"version":3,"file":"index.d.cts","names":["ProsemirrorNode"],"sources":["../../src/placeholder/constants.ts","../../src/placeholder/types.ts","../../src/placeholder/placeholder.ts","../../src/placeholder/utils/preparePlaceholderAttribute.ts"],"mappings":";;;;;;qBAIa;;qBAGA,YAAU,UAAA;;;iBCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAMA;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAMA;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;qBC7DW,aAAW,UAAA;;;;;;;;wBCNR,4BAA4B"}
@@ -4,12 +4,12 @@ import { DecorationSet } from "@tiptap/pm/view";
4
4
  import { Node } from "@tiptap/pm/model";
5
5
  //#region src/placeholder/constants.d.ts
6
6
  /** The default data attribute label */
7
- declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
7
+ export declare const DEFAULT_DATA_ATTRIBUTE = "placeholder";
8
8
  /** The plugin key used to store and read the placeholder decoration set */
9
- declare const PLUGIN_KEY: PluginKey<DecorationSet>;
9
+ export declare const PLUGIN_KEY: PluginKey<DecorationSet>;
10
10
  //#endregion
11
11
  //#region src/placeholder/types.d.ts
12
- interface PlaceholderOptions {
12
+ export interface PlaceholderOptions {
13
13
  /**
14
14
  * **The class name for the empty editor**
15
15
  * @default 'is-editor-empty'
@@ -77,7 +77,7 @@ interface PlaceholderOptions {
77
77
  * A placeholder is a text that appears when the editor or a node is empty.
78
78
  * @see https://www.tiptap.dev/api/extensions/placeholder
79
79
  */
80
- declare const Placeholder: Extension<PlaceholderOptions, any>;
80
+ export declare const Placeholder: Extension<PlaceholderOptions, any>;
81
81
  //#endregion
82
82
  //#region src/placeholder/utils/preparePlaceholderAttribute.d.ts
83
83
  /**
@@ -85,7 +85,6 @@ declare const Placeholder: Extension<PlaceholderOptions, any>;
85
85
  * @param attr - The placeholder attribute string.
86
86
  * @returns The prepared placeholder attribute string.
87
87
  */
88
- declare function preparePlaceholderAttribute(attr: string): string;
88
+ export declare function preparePlaceholderAttribute(attr: string): string;
89
89
  //#endregion
90
- export { DEFAULT_DATA_ATTRIBUTE, PLUGIN_KEY, Placeholder, PlaceholderOptions, preparePlaceholderAttribute };
91
90
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/placeholder/constants.ts","../../src/placeholder/types.ts","../../src/placeholder/placeholder.ts","../../src/placeholder/utils/preparePlaceholderAttribute.ts"],"mappings":";;;;;;cAIa;;cAGA,YAAU,UAAA;;;UCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAM;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;cC7DW,aAAW,UAAA;;;;;;;;iBCNR,4BAA4B"}
1
+ {"version":3,"file":"index.d.ts","names":["ProsemirrorNode"],"sources":["../../src/placeholder/constants.ts","../../src/placeholder/types.ts","../../src/placeholder/placeholder.ts","../../src/placeholder/utils/preparePlaceholderAttribute.ts"],"mappings":";;;;;;qBAIa;;qBAGA,YAAU,UAAA;;;iBCJN;;;;;EAKf;;;;;;;EAQA,kBACM;IACA,QAAQ;IACR,MAAMA;IACN;IACA;;;;;;;EASN;;;;;;;EAQA,eACM;IACA,QAAQ;IACR,MAAMA;IACN;IACA;;;;;;;;;EAWN;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;qBC7DW,aAAW,UAAA;;;;;;;;wBCNR,4BAA4B"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/selection/selection.d.ts
3
- type SelectionOptions = {
3
+ export type SelectionOptions = {
4
4
  /**
5
5
  * The class name that should be added to the selected text.
6
6
  * @default 'selection'
@@ -14,7 +14,6 @@ type SelectionOptions = {
14
14
  * decoration) and restores it when the editor is focused again.
15
15
  * @see https://www.tiptap.dev/api/extensions/selection
16
16
  */
17
- declare const Selection: Extension<SelectionOptions, any>;
17
+ export declare const Selection: Extension<SelectionOptions, any>;
18
18
  //#endregion
19
- export { Selection, SelectionOptions };
20
19
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/selection/selection.ts"],"mappings":";;KAKY;;;;;;EAMV;;;;;;;;cAqCW,WAAS,UAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/selection/selection.ts"],"mappings":";;YAKY;;;;;;EAMV;;;;;;;;qBAqCW,WAAS,UAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/selection/selection.d.ts
3
- type SelectionOptions = {
3
+ export type SelectionOptions = {
4
4
  /**
5
5
  * The class name that should be added to the selected text.
6
6
  * @default 'selection'
@@ -14,7 +14,6 @@ type SelectionOptions = {
14
14
  * decoration) and restores it when the editor is focused again.
15
15
  * @see https://www.tiptap.dev/api/extensions/selection
16
16
  */
17
- declare const Selection: Extension<SelectionOptions, any>;
17
+ export declare const Selection: Extension<SelectionOptions, any>;
18
18
  //#endregion
19
- export { Selection, SelectionOptions };
20
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/selection/selection.ts"],"mappings":";;KAKY;;;;;;EAMV;;;;;;;;cAqCW,WAAS,UAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/selection/selection.ts"],"mappings":";;YAKY;;;;;;EAMV;;;;;;;;qBAqCW,WAAS,UAAA"}
@@ -1,12 +1,12 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/trailing-node/trailing-node.d.ts
3
- declare const skipTrailingNodeMeta = "skipTrailingNode";
3
+ export declare const skipTrailingNodeMeta = "skipTrailingNode";
4
4
  /**
5
5
  * Extension based on:
6
6
  * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
7
7
  * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
8
8
  */
9
- interface TrailingNodeOptions {
9
+ export interface TrailingNodeOptions {
10
10
  /**
11
11
  * The node type that should be inserted at the end of the document.
12
12
  * @note the node will always be added to the `notAfter` lists to
@@ -24,7 +24,6 @@ interface TrailingNodeOptions {
24
24
  * This extension allows you to add an extra node at the end of the document.
25
25
  * @see https://www.tiptap.dev/api/extensions/trailing-node
26
26
  */
27
- declare const TrailingNode: Extension<TrailingNodeOptions, any>;
27
+ export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
28
28
  //#endregion
29
- export { TrailingNode, TrailingNodeOptions, skipTrailingNodeMeta };
30
29
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/trailing-node/trailing-node.ts"],"mappings":";;cAIa;;;;;;UAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;cAOW,cAAY,UAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/trailing-node/trailing-node.ts"],"mappings":";;qBAIa;;;;;;iBAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;qBAOW,cAAY,UAAA"}
@@ -1,12 +1,12 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/trailing-node/trailing-node.d.ts
3
- declare const skipTrailingNodeMeta = "skipTrailingNode";
3
+ export declare const skipTrailingNodeMeta = "skipTrailingNode";
4
4
  /**
5
5
  * Extension based on:
6
6
  * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
7
7
  * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
8
8
  */
9
- interface TrailingNodeOptions {
9
+ export interface TrailingNodeOptions {
10
10
  /**
11
11
  * The node type that should be inserted at the end of the document.
12
12
  * @note the node will always be added to the `notAfter` lists to
@@ -24,7 +24,6 @@ interface TrailingNodeOptions {
24
24
  * This extension allows you to add an extra node at the end of the document.
25
25
  * @see https://www.tiptap.dev/api/extensions/trailing-node
26
26
  */
27
- declare const TrailingNode: Extension<TrailingNodeOptions, any>;
27
+ export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
28
28
  //#endregion
29
- export { TrailingNode, TrailingNodeOptions, skipTrailingNodeMeta };
30
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/trailing-node/trailing-node.ts"],"mappings":";;cAIa;;;;;;UAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;cAOW,cAAY,UAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/trailing-node/trailing-node.ts"],"mappings":";;qBAIa;;;;;;iBAkBI;;;;;;;EAOf;;;;;EAKA;;;;;;qBAOW,cAAY,UAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/undo-redo/undo-redo.d.ts
3
- interface UndoRedoOptions {
3
+ export interface UndoRedoOptions {
4
4
  /**
5
5
  * The amount of history events that are collected before the oldest events are discarded.
6
6
  * @default 100
@@ -39,7 +39,6 @@ declare module '@tiptap/core' {
39
39
  *
40
40
  * `@tiptap/extension-collaboration` uses its own history implementation.
41
41
  */
42
- declare const UndoRedo: Extension<UndoRedoOptions, any>;
42
+ export declare const UndoRedo: Extension<UndoRedoOptions, any>;
43
43
  //#endregion
44
- export { UndoRedo, UndoRedoOptions };
45
44
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/undo-redo/undo-redo.ts"],"mappings":";;UAGiB;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;cAcL,UAAQ,UAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/undo-redo/undo-redo.ts"],"mappings":";;iBAGiB;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;qBAcL,UAAQ,UAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  //#region src/undo-redo/undo-redo.d.ts
3
- interface UndoRedoOptions {
3
+ export interface UndoRedoOptions {
4
4
  /**
5
5
  * The amount of history events that are collected before the oldest events are discarded.
6
6
  * @default 100
@@ -39,7 +39,6 @@ declare module '@tiptap/core' {
39
39
  *
40
40
  * `@tiptap/extension-collaboration` uses its own history implementation.
41
41
  */
42
- declare const UndoRedo: Extension<UndoRedoOptions, any>;
42
+ export declare const UndoRedo: Extension<UndoRedoOptions, any>;
43
43
  //#endregion
44
- export { UndoRedo, UndoRedoOptions };
45
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/undo-redo/undo-redo.ts"],"mappings":";;UAGiB;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;cAcL,UAAQ,UAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/undo-redo/undo-redo.ts"],"mappings":";;iBAGiB;;;;;;EAMf;;;;;;EAOA;;;YAIU,SAAS;IACjB;;;;;MAKE,YAAY;;;;;MAKZ,YAAY;;;;;;;;;;;;;qBAcL,UAAQ,UAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiptap/extensions",
3
- "version": "3.31.4",
3
+ "version": "3.32.1",
4
4
  "description": "various extensions for tiptap",
5
5
  "keywords": [
6
6
  "tiptap",
@@ -103,12 +103,12 @@
103
103
  }
104
104
  },
105
105
  "devDependencies": {
106
- "@tiptap/core": "^3.31.4",
107
- "@tiptap/pm": "^3.31.4"
106
+ "@tiptap/core": "^3.32.1",
107
+ "@tiptap/pm": "^3.32.1"
108
108
  },
109
109
  "peerDependencies": {
110
- "@tiptap/core": "3.31.4",
111
- "@tiptap/pm": "3.31.4"
110
+ "@tiptap/core": "3.32.1",
111
+ "@tiptap/pm": "3.32.1"
112
112
  },
113
113
  "scripts": {
114
114
  "build": "vp pack"