@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.
- package/README.md +13 -8
- package/dist/base.css +20 -0
- package/dist/index.js +401 -35
- package/dist/index.js.map +3 -3
- package/dist/react.js +3 -2
- package/dist/react.js.map +2 -2
- package/dist/style.css +51 -1
- package/dist/theme.css +9 -1
- package/dist/types/editor.d.ts +65 -4
- package/dist/types/extension.d.ts +31 -10
- package/dist/types/extensions/footnotes.d.ts +5 -1
- package/dist/types/extensions/math.d.ts +3 -2
- package/dist/types/extensions/tags.d.ts +8 -3
- package/dist/types/icons.d.ts +11 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/labels.d.ts +4 -0
- package/dist/types/markdown/serialize.d.ts +4 -0
- package/dist/types/react/index.d.ts +2 -2
- package/dist/types/view/dom.d.ts +61 -6
- package/dist/types/view/reveal.d.ts +6 -5
- package/package.json +1 -1
|
@@ -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
|
|
9
|
-
* line going forward (such as a `$$` fence), at the end of its
|
|
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;
|