@meowdown/core 0.58.1 → 0.58.2
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.ts +7 -14
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -285,22 +285,19 @@ interface LinkAttrs {
|
|
|
285
285
|
href?: string;
|
|
286
286
|
title?: string;
|
|
287
287
|
}
|
|
288
|
-
|
|
288
|
+
interface InsertLinkOptions {
|
|
289
289
|
href?: string;
|
|
290
290
|
title?: string;
|
|
291
291
|
wrapText?: boolean;
|
|
292
|
-
}
|
|
292
|
+
}
|
|
293
|
+
declare function insertLink({ href, title, wrapText }?: InsertLinkOptions): Command;
|
|
293
294
|
/** Rewrite the `( ... )` of the link at the caret/selection. */
|
|
294
295
|
declare function updateLink(attrs: LinkAttrs): Command;
|
|
295
296
|
/** Unwrap the link at the caret: keep the label text, drop the syntax. */
|
|
296
297
|
declare function removeLink(): Command;
|
|
297
|
-
declare function defineLinkCommands():
|
|
298
|
+
declare function defineLinkCommands(): Extension<{
|
|
298
299
|
Commands: {
|
|
299
|
-
insertLink: [
|
|
300
|
-
href?: string;
|
|
301
|
-
title?: string;
|
|
302
|
-
wrapText?: boolean;
|
|
303
|
-
} | undefined)?];
|
|
300
|
+
insertLink: [options?: InsertLinkOptions];
|
|
304
301
|
updateLink: [attrs: LinkAttrs];
|
|
305
302
|
removeLink: [];
|
|
306
303
|
};
|
|
@@ -640,11 +637,7 @@ declare function defineEditorExtensionImpl(options: EditorExtensionOptions): imp
|
|
|
640
637
|
};
|
|
641
638
|
}>, import("@prosekit/core").PlainExtension]>, import("@prosekit/core").Extension<{
|
|
642
639
|
Commands: {
|
|
643
|
-
insertLink: [
|
|
644
|
-
href?: string;
|
|
645
|
-
title?: string;
|
|
646
|
-
wrapText?: boolean;
|
|
647
|
-
} | undefined)?];
|
|
640
|
+
insertLink: [options?: InsertLinkOptions];
|
|
648
641
|
updateLink: [attrs: LinkAttrs];
|
|
649
642
|
removeLink: [];
|
|
650
643
|
};
|
|
@@ -1176,7 +1169,7 @@ declare function getSelectedText(state: EditorState): string;
|
|
|
1176
1169
|
declare function getVirtualElementFromRange(view: EditorView, range: PositionRange): VirtualElement;
|
|
1177
1170
|
//#endregion
|
|
1178
1171
|
//#region src/extensions/spell-check.d.ts
|
|
1179
|
-
declare function defineSpellCheckPlugin(spellCheck: boolean):
|
|
1172
|
+
declare function defineSpellCheckPlugin(spellCheck: boolean): PlainExtension;
|
|
1180
1173
|
//#endregion
|
|
1181
1174
|
//#region src/utils/format-file-size.d.ts
|
|
1182
1175
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"remark-stringify": "^11.0.0",
|
|
44
44
|
"unicode-by-name": "^0.2.0",
|
|
45
45
|
"unified": "^11.0.5",
|
|
46
|
-
"@meowdown/markdown": "^0.58.
|
|
46
|
+
"@meowdown/markdown": "^0.58.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@ocavue/tsconfig": "^0.7.1",
|