@usememos/editor 26.10.5 → 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/index.js +14 -0
- package/dist/index.js.map +2 -2
- package/dist/types/editor.d.ts +2 -0
- package/dist/types/ui/handle.d.ts +2 -0
- package/package.json +1 -1
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;
|
|
@@ -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;
|