@tiptap/extension-invisible-characters 3.18.0 → 3.20.0

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/index.d.cts CHANGED
@@ -62,6 +62,17 @@ interface PluginState {
62
62
  visible: boolean;
63
63
  decorations: DecorationSet;
64
64
  }
65
+ interface InvisibleCharactersStorage {
66
+ /**
67
+ * Get whether the invisible characters are shown or not
68
+ */
69
+ visibility: () => boolean;
70
+ }
71
+ declare module '@tiptap/core' {
72
+ interface Storage {
73
+ invisibleCharacters: InvisibleCharactersStorage;
74
+ }
75
+ }
65
76
 
66
77
  declare module '@tiptap/core' {
67
78
  interface Commands<ReturnType> {
@@ -83,4 +94,4 @@ declare module '@tiptap/core' {
83
94
  }
84
95
  declare const InvisibleCharacters: Extension<InvisibleCharactersOptions, any>;
85
96
 
86
- export { HardBreakNode, InvisibleCharacter, type InvisibleCharacterOptions, InvisibleCharacters, type InvisibleCharactersOptions, InvisibleNode, type InvisibleNodeOptions, ParagraphNode, type PluginState, type Position, SpaceCharacter, InvisibleCharacters as default };
97
+ export { HardBreakNode, InvisibleCharacter, type InvisibleCharacterOptions, InvisibleCharacters, type InvisibleCharactersOptions, type InvisibleCharactersStorage, InvisibleNode, type InvisibleNodeOptions, ParagraphNode, type PluginState, type Position, SpaceCharacter, InvisibleCharacters as default };
package/dist/index.d.ts CHANGED
@@ -62,6 +62,17 @@ interface PluginState {
62
62
  visible: boolean;
63
63
  decorations: DecorationSet;
64
64
  }
65
+ interface InvisibleCharactersStorage {
66
+ /**
67
+ * Get whether the invisible characters are shown or not
68
+ */
69
+ visibility: () => boolean;
70
+ }
71
+ declare module '@tiptap/core' {
72
+ interface Storage {
73
+ invisibleCharacters: InvisibleCharactersStorage;
74
+ }
75
+ }
65
76
 
66
77
  declare module '@tiptap/core' {
67
78
  interface Commands<ReturnType> {
@@ -83,4 +94,4 @@ declare module '@tiptap/core' {
83
94
  }
84
95
  declare const InvisibleCharacters: Extension<InvisibleCharactersOptions, any>;
85
96
 
86
- export { HardBreakNode, InvisibleCharacter, type InvisibleCharacterOptions, InvisibleCharacters, type InvisibleCharactersOptions, InvisibleNode, type InvisibleNodeOptions, ParagraphNode, type PluginState, type Position, SpaceCharacter, InvisibleCharacters as default };
97
+ export { HardBreakNode, InvisibleCharacter, type InvisibleCharacterOptions, InvisibleCharacters, type InvisibleCharactersOptions, type InvisibleCharactersStorage, InvisibleNode, type InvisibleNodeOptions, ParagraphNode, type PluginState, type Position, SpaceCharacter, InvisibleCharacters as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-invisible-characters",
3
3
  "description": "invisible characters extension for tiptap",
4
- "version": "3.18.0",
4
+ "version": "3.20.0",
5
5
  "homepage": "https://tiptap.dev/docs/editor/extensions/functionality/invisiblecharacters",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -31,14 +31,14 @@
31
31
  "dist"
32
32
  ],
33
33
  "devDependencies": {
34
- "@tiptap/core": "^3.18.0",
35
- "@tiptap/pm": "^3.18.0",
36
- "@tiptap/extension-text-style": "^3.18.0"
34
+ "@tiptap/core": "^3.20.0",
35
+ "@tiptap/extension-text-style": "^3.20.0",
36
+ "@tiptap/pm": "^3.20.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@tiptap/core": "^3.18.0",
40
- "@tiptap/extension-text-style": "^3.18.0",
41
- "@tiptap/pm": "^3.18.0"
39
+ "@tiptap/core": "^3.20.0",
40
+ "@tiptap/extension-text-style": "^3.20.0",
41
+ "@tiptap/pm": "^3.20.0"
42
42
  },
43
43
  "repository": {
44
44
  "type": "git",
package/src/types.ts CHANGED
@@ -19,3 +19,16 @@ export interface PluginState {
19
19
  visible: boolean
20
20
  decorations: DecorationSet
21
21
  }
22
+
23
+ export interface InvisibleCharactersStorage {
24
+ /**
25
+ * Get whether the invisible characters are shown or not
26
+ */
27
+ visibility: () => boolean
28
+ }
29
+
30
+ declare module '@tiptap/core' {
31
+ interface Storage {
32
+ invisibleCharacters: InvisibleCharactersStorage
33
+ }
34
+ }