@usememos/editor 26.10.4 → 26.10.6
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/types/editor.d.ts
CHANGED
|
@@ -541,6 +541,8 @@ export declare class Editor {
|
|
|
541
541
|
private onBlockKey;
|
|
542
542
|
private blockMenuSections;
|
|
543
543
|
private closeBlockMenu;
|
|
544
|
+
/** A press anywhere but the block menu or the block handle closes the menu, in the editor's text too. */
|
|
545
|
+
private onDocumentPointerDown;
|
|
544
546
|
private updateUi;
|
|
545
547
|
private syncActiveDescendant;
|
|
546
548
|
private hideUi;
|
|
@@ -20,9 +20,9 @@ export declare function serializeInline(inline: Inline, options?: MarkdownOption
|
|
|
20
20
|
* - Whitespace at the edges of a bold, italic or strike run moves outside it,
|
|
21
21
|
* because `**foo **` is not valid emphasis.
|
|
22
22
|
* - A "\n" in a code span is a hard break outside the code span.
|
|
23
|
-
* - Spaces and tabs that end a line of text are dropped, because
|
|
24
|
-
* strips them. Writing them as character references instead would
|
|
25
|
-
* " " behind wherever someone typed a space last. A line
|
|
26
|
-
* whitespace keeps it, so the line is not lost.
|
|
23
|
+
* - Spaces and tabs that start or end a line of text are dropped, because
|
|
24
|
+
* Markdown strips them. Writing them as character references instead would
|
|
25
|
+
* leave " " behind wherever someone typed a space first or last. A line
|
|
26
|
+
* of only whitespace keeps it, so the line is not lost.
|
|
27
27
|
*/
|
|
28
28
|
export declare function representableInline(inline: Inline): Span[];
|
|
@@ -9,6 +9,8 @@ export declare class BlockHandle {
|
|
|
9
9
|
private onMove;
|
|
10
10
|
/** Shows the handle next to a block. */
|
|
11
11
|
showFor(blockId: string): void;
|
|
12
|
+
/** True when `node` is the handle or inside it. */
|
|
13
|
+
contains(node: Node): boolean;
|
|
12
14
|
hide(): void;
|
|
13
15
|
private scheduleHide;
|
|
14
16
|
private cancelHide;
|