@vscode/markdown-editor 0.0.2-94 → 0.0.2-96
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.d.ts +4 -4
- package/dist/index.js +1409 -1290
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/view/editor.css +20 -1
package/dist/index.d.ts
CHANGED
|
@@ -1859,7 +1859,7 @@ declare class HeadingViewData {
|
|
|
1859
1859
|
constructor(ast: HeadingAstNode, content: readonly AnyViewData[]);
|
|
1860
1860
|
}
|
|
1861
1861
|
|
|
1862
|
-
export declare function hiddenCursorRanges(doc: DocumentAstNode, markerVisibleBlocks: ReadonlySet<BlockAstNode>,
|
|
1862
|
+
export declare function hiddenCursorRanges(doc: DocumentAstNode, markerVisibleBlocks: ReadonlySet<BlockAstNode>, selectionRange: OffsetRange): readonly OffsetRange[];
|
|
1863
1863
|
|
|
1864
1864
|
export declare type HistoryKeyboardAction = 'undo' | 'redo';
|
|
1865
1865
|
|
|
@@ -2592,14 +2592,14 @@ declare interface NestedItem {
|
|
|
2592
2592
|
}
|
|
2593
2593
|
|
|
2594
2594
|
/**
|
|
2595
|
-
* Move the cursor one position left or right, skipping over hidden
|
|
2595
|
+
* Move the cursor one position left or right, skipping over hidden source
|
|
2596
2596
|
* ranges in inactive blocks (and inactive items of an active list).
|
|
2597
2597
|
*/
|
|
2598
|
-
export declare function nextCursorPosition(doc: DocumentAstNode, markerVisibleBlocks: ReadonlySet<BlockAstNode>, cursor: number, direction: 'left' | 'right'): number;
|
|
2598
|
+
export declare function nextCursorPosition(doc: DocumentAstNode, markerVisibleBlocks: ReadonlySet<BlockAstNode>, cursor: number, direction: 'left' | 'right', selectionRange?: OffsetRange): number;
|
|
2599
2599
|
|
|
2600
2600
|
declare const NO_ACTIVE_BLOCKS: unique symbol;
|
|
2601
2601
|
|
|
2602
|
-
export declare function normalizeCursorPosition(doc: DocumentAstNode, markerVisibleBlocks: ReadonlySet<BlockAstNode>, cursor: number, target: number, direction: 'left' | 'right', includeHiddenRangeBoundary?: boolean): number;
|
|
2602
|
+
export declare function normalizeCursorPosition(doc: DocumentAstNode, markerVisibleBlocks: ReadonlySet<BlockAstNode>, cursor: number, target: number, direction: 'left' | 'right', includeHiddenRangeBoundary?: boolean, selectionRange?: OffsetRange): number;
|
|
2603
2603
|
|
|
2604
2604
|
export declare class OffsetRange {
|
|
2605
2605
|
readonly start: number;
|