@tiptap/extension-invisible-characters 3.32.0 → 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.
- package/dist/index.d.cts +13 -13
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -2,14 +2,14 @@ import { Extension } from "@tiptap/core";
|
|
|
2
2
|
import { Node } from "@tiptap/pm/model";
|
|
3
3
|
import { DecorationSet } from "@tiptap/pm/view";
|
|
4
4
|
//#region src/plugin/InvisibleNode.d.ts
|
|
5
|
-
interface InvisibleNodeOptions {
|
|
5
|
+
export interface InvisibleNodeOptions {
|
|
6
6
|
content?: string;
|
|
7
7
|
position?: (node: Node, pos: number) => number;
|
|
8
8
|
predicate: (value: Node) => boolean;
|
|
9
9
|
priority?: number;
|
|
10
10
|
type: string;
|
|
11
11
|
}
|
|
12
|
-
declare class InvisibleNode {
|
|
12
|
+
export declare class InvisibleNode {
|
|
13
13
|
predicate: (value: Node) => boolean;
|
|
14
14
|
position: (node: Node, pos: number) => number;
|
|
15
15
|
content?: string;
|
|
@@ -21,23 +21,23 @@ declare class InvisibleNode {
|
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/plugin/invisible-characters/hardBreak.d.ts
|
|
24
|
-
declare class HardBreakNode extends InvisibleNode {
|
|
24
|
+
export declare class HardBreakNode extends InvisibleNode {
|
|
25
25
|
constructor();
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/plugin/invisible-characters/paragraph.d.ts
|
|
29
|
-
declare class ParagraphNode extends InvisibleNode {
|
|
29
|
+
export declare class ParagraphNode extends InvisibleNode {
|
|
30
30
|
constructor();
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/plugin/InvisibleCharacter.d.ts
|
|
34
|
-
interface InvisibleCharacterOptions {
|
|
34
|
+
export interface InvisibleCharacterOptions {
|
|
35
35
|
type: string;
|
|
36
36
|
predicate: (value: string) => boolean;
|
|
37
37
|
priority?: number;
|
|
38
38
|
content?: string;
|
|
39
39
|
}
|
|
40
|
-
declare class InvisibleCharacter {
|
|
40
|
+
export declare class InvisibleCharacter {
|
|
41
41
|
predicate: (value: string) => boolean;
|
|
42
42
|
content?: string;
|
|
43
43
|
type: string;
|
|
@@ -48,26 +48,26 @@ declare class InvisibleCharacter {
|
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/plugin/invisible-characters/space.d.ts
|
|
51
|
-
declare class SpaceCharacter extends InvisibleCharacter {
|
|
51
|
+
export declare class SpaceCharacter extends InvisibleCharacter {
|
|
52
52
|
constructor();
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/types.d.ts
|
|
56
|
-
interface InvisibleCharactersOptions {
|
|
56
|
+
export interface InvisibleCharactersOptions {
|
|
57
57
|
visible: boolean;
|
|
58
58
|
builders: Array<InvisibleCharacter | InvisibleNode>;
|
|
59
59
|
injectCSS: boolean;
|
|
60
60
|
injectNonce: string | undefined;
|
|
61
61
|
}
|
|
62
|
-
interface Position {
|
|
62
|
+
export interface Position {
|
|
63
63
|
pos: number;
|
|
64
64
|
text: string;
|
|
65
65
|
}
|
|
66
|
-
interface PluginState {
|
|
66
|
+
export interface PluginState {
|
|
67
67
|
visible: boolean;
|
|
68
68
|
decorations: DecorationSet;
|
|
69
69
|
}
|
|
70
|
-
interface InvisibleCharactersStorage {
|
|
70
|
+
export interface InvisibleCharactersStorage {
|
|
71
71
|
/**
|
|
72
72
|
* Get whether the invisible characters are shown or not
|
|
73
73
|
*/
|
|
@@ -98,7 +98,7 @@ declare module '@tiptap/core' {
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
declare const InvisibleCharacters: Extension<InvisibleCharactersOptions, any>;
|
|
101
|
+
export declare const InvisibleCharacters: Extension<InvisibleCharactersOptions, any>;
|
|
102
102
|
//#endregion
|
|
103
|
-
export {
|
|
103
|
+
export { InvisibleCharacters as default };
|
|
104
104
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/plugin/InvisibleNode.ts","../src/plugin/invisible-characters/hardBreak.ts","../src/plugin/invisible-characters/paragraph.ts","../src/plugin/InvisibleCharacter.ts","../src/plugin/invisible-characters/space.ts","../src/types.ts","../src/invisible-characters.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["_0"],"sources":["../src/plugin/InvisibleNode.ts","../src/plugin/invisible-characters/hardBreak.ts","../src/plugin/invisible-characters/paragraph.ts","../src/plugin/InvisibleCharacter.ts","../src/plugin/invisible-characters/space.ts","../src/types.ts","../src/invisible-characters.ts"],"mappings":";;;;iBAKiB;EACf;EACA,YAAY,MAAM,MAAM;EACxB,YAAY,OAAO;EACnB;EACA;;qBAMW;EACX,YAAY,OAAO;EAEnB,WAAW,MAAM,MAAM;EAEvB;EAEA;EAEA;EAEY,YAAA,SAAS;EAQrB,iBAAiB,cAAc,YAAY,KAAK,MAAM,aAAa,gBAAa;EAoBhF,KAAK,OAAO;;;;qBCrDD,sBAAsB;;;;;qBCAtB,sBAAsB;;;;;iBCIlB;EACf;EACA,YAAY;EACZ;EACA;;qBAGW;EACX,YAAY;EAEZ;EAEA;EAEA;EAEY,YAAA,SAAS;EAOrB,iBAAiB,cAAc,YAAY,KAAK,MAAM,aAAa,gBAAa;EAchF,KAAK;;;;qBCzCM,uBAAuB;;;;;iBCGnB;EACf;EACA,UAAU,MAAM,qBAAqB;EACrC;EACA;;iBAGe;EACf;EACA;;iBAGe;EACf;EACA,aAAa;;iBAGE;;;;EAIf;;;YAIU;IACR,qBAAqB;;;;;;YCpBb,SAAS;IACjB;;;;MAIE,0BAA0B,mBAAmB;;;;MAK7C,+BAA+B;;;;MAK/B,iCAAiC;;;;qBAK1B,qBAAmB,UAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { Extension } from "@tiptap/core";
|
|
|
2
2
|
import { DecorationSet } from "@tiptap/pm/view";
|
|
3
3
|
import { Node } from "@tiptap/pm/model";
|
|
4
4
|
//#region src/plugin/InvisibleNode.d.ts
|
|
5
|
-
interface InvisibleNodeOptions {
|
|
5
|
+
export interface InvisibleNodeOptions {
|
|
6
6
|
content?: string;
|
|
7
7
|
position?: (node: Node, pos: number) => number;
|
|
8
8
|
predicate: (value: Node) => boolean;
|
|
9
9
|
priority?: number;
|
|
10
10
|
type: string;
|
|
11
11
|
}
|
|
12
|
-
declare class InvisibleNode {
|
|
12
|
+
export declare class InvisibleNode {
|
|
13
13
|
predicate: (value: Node) => boolean;
|
|
14
14
|
position: (node: Node, pos: number) => number;
|
|
15
15
|
content?: string;
|
|
@@ -21,23 +21,23 @@ declare class InvisibleNode {
|
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/plugin/invisible-characters/hardBreak.d.ts
|
|
24
|
-
declare class HardBreakNode extends InvisibleNode {
|
|
24
|
+
export declare class HardBreakNode extends InvisibleNode {
|
|
25
25
|
constructor();
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/plugin/invisible-characters/paragraph.d.ts
|
|
29
|
-
declare class ParagraphNode extends InvisibleNode {
|
|
29
|
+
export declare class ParagraphNode extends InvisibleNode {
|
|
30
30
|
constructor();
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/plugin/InvisibleCharacter.d.ts
|
|
34
|
-
interface InvisibleCharacterOptions {
|
|
34
|
+
export interface InvisibleCharacterOptions {
|
|
35
35
|
type: string;
|
|
36
36
|
predicate: (value: string) => boolean;
|
|
37
37
|
priority?: number;
|
|
38
38
|
content?: string;
|
|
39
39
|
}
|
|
40
|
-
declare class InvisibleCharacter {
|
|
40
|
+
export declare class InvisibleCharacter {
|
|
41
41
|
predicate: (value: string) => boolean;
|
|
42
42
|
content?: string;
|
|
43
43
|
type: string;
|
|
@@ -48,26 +48,26 @@ declare class InvisibleCharacter {
|
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/plugin/invisible-characters/space.d.ts
|
|
51
|
-
declare class SpaceCharacter extends InvisibleCharacter {
|
|
51
|
+
export declare class SpaceCharacter extends InvisibleCharacter {
|
|
52
52
|
constructor();
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/types.d.ts
|
|
56
|
-
interface InvisibleCharactersOptions {
|
|
56
|
+
export interface InvisibleCharactersOptions {
|
|
57
57
|
visible: boolean;
|
|
58
58
|
builders: Array<InvisibleCharacter | InvisibleNode>;
|
|
59
59
|
injectCSS: boolean;
|
|
60
60
|
injectNonce: string | undefined;
|
|
61
61
|
}
|
|
62
|
-
interface Position {
|
|
62
|
+
export interface Position {
|
|
63
63
|
pos: number;
|
|
64
64
|
text: string;
|
|
65
65
|
}
|
|
66
|
-
interface PluginState {
|
|
66
|
+
export interface PluginState {
|
|
67
67
|
visible: boolean;
|
|
68
68
|
decorations: DecorationSet;
|
|
69
69
|
}
|
|
70
|
-
interface InvisibleCharactersStorage {
|
|
70
|
+
export interface InvisibleCharactersStorage {
|
|
71
71
|
/**
|
|
72
72
|
* Get whether the invisible characters are shown or not
|
|
73
73
|
*/
|
|
@@ -98,7 +98,7 @@ declare module '@tiptap/core' {
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
declare const InvisibleCharacters: Extension<InvisibleCharactersOptions, any>;
|
|
101
|
+
export declare const InvisibleCharacters: Extension<InvisibleCharactersOptions, any>;
|
|
102
102
|
//#endregion
|
|
103
|
-
export {
|
|
103
|
+
export { InvisibleCharacters as default };
|
|
104
104
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/plugin/InvisibleNode.ts","../src/plugin/invisible-characters/hardBreak.ts","../src/plugin/invisible-characters/paragraph.ts","../src/plugin/InvisibleCharacter.ts","../src/plugin/invisible-characters/space.ts","../src/types.ts","../src/invisible-characters.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["_0"],"sources":["../src/plugin/InvisibleNode.ts","../src/plugin/invisible-characters/hardBreak.ts","../src/plugin/invisible-characters/paragraph.ts","../src/plugin/InvisibleCharacter.ts","../src/plugin/invisible-characters/space.ts","../src/types.ts","../src/invisible-characters.ts"],"mappings":";;;;iBAKiB;EACf;EACA,YAAY,MAAM,MAAM;EACxB,YAAY,OAAO;EACnB;EACA;;qBAMW;EACX,YAAY,OAAO;EAEnB,WAAW,MAAM,MAAM;EAEvB;EAEA;EAEA;EAEY,YAAA,SAAS;EAQrB,iBAAiB,cAAc,YAAY,KAAK,MAAM,aAAa,gBAAa;EAoBhF,KAAK,OAAO;;;;qBCrDD,sBAAsB;;;;;qBCAtB,sBAAsB;;;;;iBCIlB;EACf;EACA,YAAY;EACZ;EACA;;qBAGW;EACX,YAAY;EAEZ;EAEA;EAEA;EAEY,YAAA,SAAS;EAOrB,iBAAiB,cAAc,YAAY,KAAK,MAAM,aAAa,gBAAa;EAchF,KAAK;;;;qBCzCM,uBAAuB;;;;;iBCGnB;EACf;EACA,UAAU,MAAM,qBAAqB;EACrC;EACA;;iBAGe;EACf;EACA;;iBAGe;EACf;EACA,aAAa;;iBAGE;;;;EAIf;;;YAIU;IACR,qBAAqB;;;;;;YCpBb,SAAS;IACjB;;;;MAIE,0BAA0B,mBAAmB;;;;MAK7C,+BAA+B;;;;MAK/B,iCAAiC;;;;qBAK1B,qBAAmB,UAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/extension-invisible-characters",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.1",
|
|
4
4
|
"description": "invisible characters extension for tiptap",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tiptap",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tiptap/core": "^3.32.
|
|
43
|
-
"@tiptap/
|
|
44
|
-
"@tiptap/
|
|
42
|
+
"@tiptap/core": "^3.32.1",
|
|
43
|
+
"@tiptap/extension-text-style": "^3.32.1",
|
|
44
|
+
"@tiptap/pm": "^3.32.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@tiptap/core": "3.32.
|
|
48
|
-
"@tiptap/extension-text-style": "3.32.
|
|
49
|
-
"@tiptap/pm": "3.32.
|
|
47
|
+
"@tiptap/core": "3.32.1",
|
|
48
|
+
"@tiptap/extension-text-style": "3.32.1",
|
|
49
|
+
"@tiptap/pm": "3.32.1"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "vp pack"
|