@prosekit/basic 0.3.5 → 0.3.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.
- package/dist/_tsup-dts-rollup.d.ts +4 -90
- package/dist/style.css +2 -2
- package/dist/typography.css +1 -0
- package/package.json +7 -7
@@ -1,18 +1,5 @@
|
|
1
|
-
import { Attrs } from 'prosemirror-model';
|
2
|
-
import { DedentListOptions } from 'prosemirror-flat-list';
|
3
1
|
import { Extension } from '@prosekit/core';
|
4
|
-
import { HeadingAttrs } from '@prosekit/extensions/heading';
|
5
|
-
import { ImageAttrs } from '@prosekit/extensions/image';
|
6
|
-
import { IndentListOptions } from 'prosemirror-flat-list';
|
7
|
-
import { LinkAttrs } from '@prosekit/extensions/link';
|
8
|
-
import { ListAttributes } from 'prosemirror-flat-list';
|
9
|
-
import { MarkType } from 'prosemirror-model';
|
10
|
-
import { Node as Node_2 } from 'prosemirror-model';
|
11
|
-
import { NodeRange } from 'prosemirror-model';
|
12
|
-
import { NodeType } from 'prosemirror-model';
|
13
2
|
import { Options } from 'tsup';
|
14
|
-
import { ToggleCollapsedOptions } from 'prosemirror-flat-list';
|
15
|
-
import { UnwrapListOptions } from 'prosemirror-flat-list';
|
16
3
|
|
17
4
|
/**
|
18
5
|
* @public
|
@@ -39,83 +26,10 @@ export declare const default_alias_2: {
|
|
39
26
|
* @public
|
40
27
|
*/
|
41
28
|
export declare function defineBasicExtension(): Extension< {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
insertHeading: [attrs?: HeadingAttrs | undefined];
|
47
|
-
toggleHeading: [attrs?: HeadingAttrs | undefined];
|
48
|
-
undo: [];
|
49
|
-
redo: [];
|
50
|
-
dedentList: [options?: DedentListOptions | undefined];
|
51
|
-
indentList: [options?: IndentListOptions | undefined];
|
52
|
-
moveList: [direction: "up" | "down"];
|
53
|
-
splitList: [];
|
54
|
-
toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
|
55
|
-
toggleList: [attrs: ListAttributes];
|
56
|
-
unwrapList: [options?: UnwrapListOptions | undefined];
|
57
|
-
wrapInList: [getAttrs: ListAttributes | ((range: NodeRange) => ListAttributes | null)];
|
58
|
-
insertList: [attrs?: ListAttributes | undefined];
|
59
|
-
toggleItalic: [];
|
60
|
-
toggleBold: [];
|
61
|
-
toggleUnderline: [];
|
62
|
-
toggleStrike: [];
|
63
|
-
toggleCode: [];
|
64
|
-
addLink: [attrs: LinkAttrs];
|
65
|
-
removeLink: [];
|
66
|
-
toggleLink: [attrs: LinkAttrs];
|
67
|
-
expandLink: [];
|
68
|
-
insertImage: [attrs?: ImageAttrs | undefined];
|
69
|
-
insertTable: [{
|
70
|
-
row: number;
|
71
|
-
col: number;
|
72
|
-
header: boolean;
|
73
|
-
}];
|
74
|
-
exitTable: [];
|
75
|
-
insertText: [{
|
76
|
-
text: string;
|
77
|
-
from?: number | undefined;
|
78
|
-
to?: number | undefined;
|
79
|
-
}];
|
80
|
-
insertNode: [options: {
|
81
|
-
node: Node_2;
|
82
|
-
pos?: number | undefined;
|
83
|
-
type?: undefined;
|
84
|
-
attrs?: undefined;
|
85
|
-
} | {
|
86
|
-
node?: undefined;
|
87
|
-
pos?: number | undefined;
|
88
|
-
type: string;
|
89
|
-
attrs?: Attrs | undefined;
|
90
|
-
}];
|
91
|
-
wrap: [{
|
92
|
-
nodeType: NodeType;
|
93
|
-
attrs?: Attrs | null | undefined;
|
94
|
-
}];
|
95
|
-
setBlockType: [options: {
|
96
|
-
type: string | NodeType;
|
97
|
-
attrs?: Attrs | null | undefined;
|
98
|
-
from?: number | undefined;
|
99
|
-
to?: number | undefined;
|
100
|
-
}];
|
101
|
-
setNodeAttrs: [options: {
|
102
|
-
type: string | NodeType;
|
103
|
-
attrs: Attrs;
|
104
|
-
pos?: number | undefined;
|
105
|
-
}];
|
106
|
-
selectAll: [];
|
107
|
-
addMark: [options: {
|
108
|
-
type: string | MarkType;
|
109
|
-
attrs?: Attrs | null | undefined;
|
110
|
-
from?: number | undefined;
|
111
|
-
to?: number | undefined;
|
112
|
-
}];
|
113
|
-
removeMark: [options: {
|
114
|
-
type: string | MarkType;
|
115
|
-
attrs?: Attrs | null | undefined;
|
116
|
-
from?: number | undefined;
|
117
|
-
to?: number | undefined;
|
118
|
-
}];
|
29
|
+
Nodes: any;
|
30
|
+
Marks: any;
|
31
|
+
Commands: {
|
32
|
+
[x: string]: any;
|
119
33
|
};
|
120
34
|
}>;
|
121
35
|
|
package/dist/style.css
CHANGED
@@ -188,8 +188,8 @@ img.ProseMirror-separator {
|
|
188
188
|
|
189
189
|
/* ../extensions/src/virtual-selection/style.css */
|
190
190
|
.prosekit-virtual-selection {
|
191
|
-
background-color:
|
192
|
-
box-shadow: 0 0 0
|
191
|
+
background-color: #8888884d;
|
192
|
+
box-shadow: 0 0 0 2px #8888884d;
|
193
193
|
border-radius: 2px;
|
194
194
|
}
|
195
195
|
|
package/dist/typography.css
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/basic",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.3.
|
4
|
+
"version": "0.3.7",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -41,17 +41,17 @@
|
|
41
41
|
"dist"
|
42
42
|
],
|
43
43
|
"dependencies": {
|
44
|
-
"@prosekit/core": "^0.4
|
45
|
-
"@prosekit/extensions": "^0.
|
46
|
-
"@prosekit/pm": "^0.1.
|
44
|
+
"@prosekit/core": "^0.5.4",
|
45
|
+
"@prosekit/extensions": "^0.5.2",
|
46
|
+
"@prosekit/pm": "^0.1.4"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
|
-
"@prosekit/dev": "*",
|
50
49
|
"postcss": "^8.4.38",
|
51
|
-
"postcss-nesting": "^12.1.
|
50
|
+
"postcss-nesting": "^12.1.5",
|
52
51
|
"tsup": "^8.0.2",
|
53
52
|
"typescript": "^5.4.5",
|
54
|
-
"vitest": "^1.6.0"
|
53
|
+
"vitest": "^1.6.0",
|
54
|
+
"@prosekit/dev": "0.0.0"
|
55
55
|
},
|
56
56
|
"scripts": {
|
57
57
|
"build:tsup": "tsup",
|