@powerduck/md-editor 0.10.5 → 0.10.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/index.cjs +4 -4
- package/dist/index.mjs +203 -146
- package/dist/plugins/doclink.d.ts +4 -0
- package/dist/plugins/mention.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -81,6 +81,10 @@ export declare class DocLinkController {
|
|
|
81
81
|
constructor(view: EditorView, options?: DocLinkOptions);
|
|
82
82
|
/** Called on every CodeMirror update. */
|
|
83
83
|
update(): void;
|
|
84
|
+
/** Returns true if the dropdown is currently visible. */
|
|
85
|
+
isOpen(): boolean;
|
|
86
|
+
/** Select the currently highlighted item. Used by keymap-level Enter handling. */
|
|
87
|
+
selectCurrent(): void;
|
|
84
88
|
/** Handle keyboard events for dropdown navigation. */
|
|
85
89
|
handleKey(event: KeyboardEvent): boolean;
|
|
86
90
|
private findTrigger;
|
|
@@ -60,6 +60,10 @@ export declare class MentionController {
|
|
|
60
60
|
* the dropdown visibility.
|
|
61
61
|
*/
|
|
62
62
|
update(): void;
|
|
63
|
+
/** Returns true if the dropdown is currently visible. */
|
|
64
|
+
isOpen(): boolean;
|
|
65
|
+
/** Select the currently highlighted item. Used by keymap-level Enter handling. */
|
|
66
|
+
selectCurrent(): void;
|
|
63
67
|
/**
|
|
64
68
|
* Handle keyboard events for dropdown navigation.
|
|
65
69
|
* Returns true if the event was handled (and should not propagate).
|