@usememos/editor 26.10.2 → 26.10.4

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.
@@ -1,12 +1,13 @@
1
1
  import type { SyntaxView } from '../extension.js';
2
- import { type EditorState, type Position, type RawBlock } from '../model.js';
2
+ import { type CodeBlock, type EditorState, type Position, type RawBlock } from '../model.js';
3
3
  import { type BlockReveal } from './dom.js';
4
4
  /** Per block, the views that show their source. Empty when `active` is false (read-only or unfocused). */
5
5
  export declare function revealedViews(state: EditorState, views: ReadonlyMap<string, SyntaxView>, active: boolean): Map<string, BlockReveal>;
6
6
  export declare function sameRevealed(a: ReadonlyMap<string, BlockReveal>, b: ReadonlyMap<string, BlockReveal>): boolean;
7
7
  /**
8
- * Where the caret goes in a rendered raw block's source: past its opening
9
- * line going forward (such as a `$$` fence), at the end of its next-to-last
10
- * line going back or on a click.
8
+ * Where the caret goes in a rendered block's source. A raw block: past its
9
+ * opening line going forward (such as a `$$` fence), at the end of its
10
+ * next-to-last line going back or on a click. A code block holds only the
11
+ * code: its start or its end.
11
12
  */
12
- export declare function viewEntry(block: RawBlock, forward: boolean): Position;
13
+ export declare function viewEntry(block: RawBlock | CodeBlock, forward: boolean): Position;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usememos/editor",
3
- "version": "26.10.2",
3
+ "version": "26.10.4",
4
4
  "description": "A block editor for standard Markdown. Zero runtime dependencies, with an optional React component.",
5
5
  "keywords": [
6
6
  "markdown",