@prosekit/extensions 0.6.0 → 0.6.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/_tsup-dts-rollup.d.ts +57 -38
- package/package.json +2 -2
@@ -141,11 +141,9 @@ export declare function defineAutocomplete(rule: AutocompleteRule): Extension;
|
|
141
141
|
* @public
|
142
142
|
*/
|
143
143
|
export declare function defineBlockquote(): Extension< {
|
144
|
-
Nodes:
|
145
|
-
Marks:
|
146
|
-
Commands:
|
147
|
-
[x: string]: any;
|
148
|
-
};
|
144
|
+
Nodes: "blockquote";
|
145
|
+
Marks: never;
|
146
|
+
Commands: never;
|
149
147
|
}>;
|
150
148
|
|
151
149
|
/**
|
@@ -164,10 +162,10 @@ Commands: never;
|
|
164
162
|
* @public
|
165
163
|
*/
|
166
164
|
export declare function defineBold(): Extension< {
|
167
|
-
Nodes:
|
168
|
-
Marks:
|
165
|
+
Nodes: never;
|
166
|
+
Marks: "bold";
|
169
167
|
Commands: {
|
170
|
-
|
168
|
+
toggleBold: [];
|
171
169
|
};
|
172
170
|
}>;
|
173
171
|
|
@@ -193,10 +191,10 @@ Commands: never;
|
|
193
191
|
* @public
|
194
192
|
*/
|
195
193
|
export declare function defineCode(): Extension< {
|
196
|
-
Nodes:
|
197
|
-
Marks:
|
194
|
+
Nodes: never;
|
195
|
+
Marks: "code";
|
198
196
|
Commands: {
|
199
|
-
|
197
|
+
toggleCode: [];
|
200
198
|
};
|
201
199
|
}>;
|
202
200
|
|
@@ -212,10 +210,13 @@ Commands: {
|
|
212
210
|
* @public
|
213
211
|
*/
|
214
212
|
declare function defineCodeBlock(): Extension< {
|
215
|
-
Nodes:
|
216
|
-
Marks:
|
213
|
+
Nodes: "codeBlock";
|
214
|
+
Marks: never;
|
217
215
|
Commands: {
|
218
|
-
|
216
|
+
setCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
217
|
+
insertCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
218
|
+
toggleCodeBlock: [attrs?: CodeBlockAttrs | undefined];
|
219
|
+
setCodeBlockAttrs: [attrs: CodeBlockAttrs];
|
219
220
|
};
|
220
221
|
}>;
|
221
222
|
export { defineCodeBlock }
|
@@ -341,10 +342,12 @@ export declare function defineEnterRule({ regex, handler, stop, }: EnterRuleOpti
|
|
341
342
|
* @public
|
342
343
|
*/
|
343
344
|
export declare function defineHeading(): Extension< {
|
344
|
-
Nodes:
|
345
|
-
Marks:
|
345
|
+
Nodes: "heading";
|
346
|
+
Marks: never;
|
346
347
|
Commands: {
|
347
|
-
|
348
|
+
setHeading: [attrs?: HeadingAttrs | undefined];
|
349
|
+
insertHeading: [attrs?: HeadingAttrs | undefined];
|
350
|
+
toggleHeading: [attrs?: HeadingAttrs | undefined];
|
348
351
|
};
|
349
352
|
}>;
|
350
353
|
|
@@ -410,10 +413,10 @@ export declare function defineInputRule(rule: InputRule): Extension;
|
|
410
413
|
* @public
|
411
414
|
*/
|
412
415
|
export declare function defineItalic(): Extension< {
|
413
|
-
Nodes:
|
414
|
-
Marks:
|
416
|
+
Nodes: never;
|
417
|
+
Marks: "italic";
|
415
418
|
Commands: {
|
416
|
-
|
419
|
+
toggleItalic: [];
|
417
420
|
};
|
418
421
|
}>;
|
419
422
|
|
@@ -439,10 +442,13 @@ Commands: never;
|
|
439
442
|
* @public
|
440
443
|
*/
|
441
444
|
export declare function defineLink(): Extension< {
|
442
|
-
Nodes:
|
443
|
-
Marks:
|
445
|
+
Nodes: never;
|
446
|
+
Marks: "link";
|
444
447
|
Commands: {
|
445
|
-
[
|
448
|
+
addLink: [attrs: LinkAttrs];
|
449
|
+
removeLink: [];
|
450
|
+
toggleLink: [attrs: LinkAttrs];
|
451
|
+
expandLink: [];
|
446
452
|
};
|
447
453
|
}>;
|
448
454
|
|
@@ -482,10 +488,18 @@ Commands: never;
|
|
482
488
|
* @public
|
483
489
|
*/
|
484
490
|
export declare function defineList(): Extension<{
|
485
|
-
Nodes:
|
486
|
-
Marks:
|
491
|
+
Nodes: "list";
|
492
|
+
Marks: never;
|
487
493
|
Commands: {
|
488
|
-
|
494
|
+
dedentList: [options?: DedentListOptions | undefined];
|
495
|
+
indentList: [options?: IndentListOptions | undefined];
|
496
|
+
moveList: [direction: "up" | "down"];
|
497
|
+
splitList: [];
|
498
|
+
toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
|
499
|
+
toggleList: [attrs: ListAttributes];
|
500
|
+
unwrapList: [options?: UnwrapListOptions | undefined];
|
501
|
+
wrapInList: [getAttrs: ListAttributes | ((range: NodeRange) => ListAttributes | null)];
|
502
|
+
insertList: [attrs?: ListAttributes | undefined];
|
489
503
|
};
|
490
504
|
}>;
|
491
505
|
|
@@ -616,10 +630,10 @@ export declare function defineSearchQuery(options: SearchQueryOptions): Extensio
|
|
616
630
|
* @public
|
617
631
|
*/
|
618
632
|
export declare function defineStrike(): Extension< {
|
619
|
-
Nodes:
|
620
|
-
Marks:
|
633
|
+
Nodes: never;
|
634
|
+
Marks: "strike";
|
621
635
|
Commands: {
|
622
|
-
|
636
|
+
toggleStrike: [];
|
623
637
|
};
|
624
638
|
}>;
|
625
639
|
|
@@ -645,10 +659,15 @@ Commands: never;
|
|
645
659
|
* @public
|
646
660
|
*/
|
647
661
|
export declare function defineTable(): Extension< {
|
648
|
-
Nodes:
|
649
|
-
Marks:
|
662
|
+
Nodes: "table" | "tableRow" | "tableCell" | "tableHeaderCell";
|
663
|
+
Marks: never;
|
650
664
|
Commands: {
|
651
|
-
|
665
|
+
insertTable: [{
|
666
|
+
row: number;
|
667
|
+
col: number;
|
668
|
+
header: boolean;
|
669
|
+
}];
|
670
|
+
exitTable: [];
|
652
671
|
};
|
653
672
|
}>;
|
654
673
|
|
@@ -718,10 +737,10 @@ export { defineTableSpec as defineTableSpec_alias_1 }
|
|
718
737
|
* @public
|
719
738
|
*/
|
720
739
|
export declare function defineTextAlign(options: TextAlignOptions): Extension<{
|
721
|
-
Nodes:
|
722
|
-
Marks:
|
740
|
+
Nodes: never;
|
741
|
+
Marks: never;
|
723
742
|
Commands: {
|
724
|
-
[
|
743
|
+
setTextAlign: [value: string | null];
|
725
744
|
};
|
726
745
|
}>;
|
727
746
|
|
@@ -779,10 +798,10 @@ export declare function defineTextBlockInputRule({ regex, type, attrs, }: {
|
|
779
798
|
* @public
|
780
799
|
*/
|
781
800
|
export declare function defineUnderline(): Extension< {
|
782
|
-
Nodes:
|
783
|
-
Marks:
|
801
|
+
Nodes: never;
|
802
|
+
Marks: "underline";
|
784
803
|
Commands: {
|
785
|
-
|
804
|
+
toggleUnderline: [];
|
786
805
|
};
|
787
806
|
}>;
|
788
807
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/extensions",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.6.
|
4
|
+
"version": "0.6.1",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -176,7 +176,7 @@
|
|
176
176
|
"prosemirror-search": "^0.1.0",
|
177
177
|
"prosemirror-tables": "^1.3.7",
|
178
178
|
"shiki": "^1.9.0",
|
179
|
-
"@prosekit/core": "^0.6.
|
179
|
+
"@prosekit/core": "^0.6.1",
|
180
180
|
"@prosekit/pm": "^0.1.5"
|
181
181
|
},
|
182
182
|
"devDependencies": {
|