@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usememos/editor",
3
- "version": "26.10.5",
3
+ "version": "26.10.6",
4
4
  "description": "A block editor for standard Markdown. Zero runtime dependencies, with an optional React component.",
5
5
  "keywords": [
6
6
  "markdown",