@vscode/markdown-editor 0.0.2-90 → 0.0.2-92
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 +21 -18
- package/dist/index.js +1028 -991
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -72,15 +72,16 @@ declare interface AstVisualizationNode {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Strategy for hosts that
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* (`navigator.clipboard`), which webviews are granted.
|
|
75
|
+
* Strategy for hosts that intercept native clipboard shortcuts, notably
|
|
76
|
+
* VS Code webviews. Their preload prevents the default Ctrl/Cmd+C/X/V handling
|
|
77
|
+
* and forwards the keydowns to the host. This strategy handles the keystrokes
|
|
78
|
+
* directly using the async {@link Clipboard} API (`navigator.clipboard`),
|
|
79
|
+
* which webviews are granted.
|
|
81
80
|
*
|
|
82
81
|
* Cut deletes synchronously once the text is captured; the clipboard write is
|
|
83
82
|
* fire-and-forget. Paste must wait for the async read before inserting.
|
|
83
|
+
* Handled keydowns must not reach the host, which may replay native clipboard
|
|
84
|
+
* commands even when the browser's default has been prevented.
|
|
84
85
|
*/
|
|
85
86
|
export declare class AsyncClipboardStrategy implements IClipboardStrategy {
|
|
86
87
|
private readonly _clipboard;
|
|
@@ -1501,10 +1502,10 @@ export declare interface EditorViewOptions extends BlockViewOptions {
|
|
|
1501
1502
|
|
|
1502
1503
|
export declare class EmphasisAstNode extends AstNode {
|
|
1503
1504
|
readonly openMarker: MarkerAstNode;
|
|
1504
|
-
readonly content: readonly
|
|
1505
|
+
readonly content: readonly InlineContentAstNode[];
|
|
1505
1506
|
readonly closeMarker: MarkerAstNode;
|
|
1506
1507
|
readonly kind = "emphasis";
|
|
1507
|
-
constructor(openMarker: MarkerAstNode, content: readonly
|
|
1508
|
+
constructor(openMarker: MarkerAstNode, content: readonly InlineContentAstNode[], closeMarker: MarkerAstNode);
|
|
1508
1509
|
get children(): readonly AstNode[];
|
|
1509
1510
|
mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
|
|
1510
1511
|
}
|
|
@@ -1798,10 +1799,10 @@ export declare type GutterMarkerType = 'added' | 'modified' | 'deleted';
|
|
|
1798
1799
|
export declare class HeadingAstNode extends BlockAstNodeBase {
|
|
1799
1800
|
readonly level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1800
1801
|
readonly marker: MarkerAstNode;
|
|
1801
|
-
readonly content: readonly
|
|
1802
|
+
readonly content: readonly InlineContentAstNode[];
|
|
1802
1803
|
readonly leadingTrivia?: GlueAstNode | undefined;
|
|
1803
1804
|
readonly kind = "heading";
|
|
1804
|
-
constructor(level: 1 | 2 | 3 | 4 | 5 | 6, marker: MarkerAstNode, content: readonly
|
|
1805
|
+
constructor(level: 1 | 2 | 3 | 4 | 5 | 6, marker: MarkerAstNode, content: readonly InlineContentAstNode[], leadingTrivia?: GlueAstNode | undefined);
|
|
1805
1806
|
get children(): readonly AstNode[];
|
|
1806
1807
|
mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
|
|
1807
1808
|
withLeadingTrivia(trivia: GlueAstNode | undefined): HeadingAstNode;
|
|
@@ -2015,6 +2016,8 @@ declare class InlineCodeViewData {
|
|
|
2015
2016
|
constructor(ast: InlineCodeAstNode, content: readonly AnyViewData[]);
|
|
2016
2017
|
}
|
|
2017
2018
|
|
|
2019
|
+
declare type InlineContentAstNode = InlineAstNode | MarkerAstNode | GlueAstNode;
|
|
2020
|
+
|
|
2018
2021
|
export declare class InlineMathAstNode extends AstNode {
|
|
2019
2022
|
readonly content: readonly (MarkerAstNode | GlueAstNode)[];
|
|
2020
2023
|
readonly kind = "inlineMath";
|
|
@@ -2184,9 +2187,9 @@ export declare class LengthReplacement {
|
|
|
2184
2187
|
|
|
2185
2188
|
export declare class LinkAstNode extends AstNode {
|
|
2186
2189
|
readonly url: string;
|
|
2187
|
-
readonly content: readonly
|
|
2190
|
+
readonly content: readonly InlineContentAstNode[];
|
|
2188
2191
|
readonly kind = "link";
|
|
2189
|
-
constructor(url: string, content: readonly
|
|
2192
|
+
constructor(url: string, content: readonly InlineContentAstNode[]);
|
|
2190
2193
|
get children(): readonly AstNode[];
|
|
2191
2194
|
mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
|
|
2192
2195
|
protected _localEquals(o: this): boolean;
|
|
@@ -2591,10 +2594,10 @@ declare interface OpenHtmlCommentSource extends HtmlCommentSourceBase {
|
|
|
2591
2594
|
export declare function outdent(config?: IndentationConfig): EditCommand;
|
|
2592
2595
|
|
|
2593
2596
|
export declare class ParagraphAstNode extends BlockAstNodeBase {
|
|
2594
|
-
readonly content: readonly
|
|
2597
|
+
readonly content: readonly InlineContentAstNode[];
|
|
2595
2598
|
readonly leadingTrivia?: GlueAstNode | undefined;
|
|
2596
2599
|
readonly kind = "paragraph";
|
|
2597
|
-
constructor(content: readonly
|
|
2600
|
+
constructor(content: readonly InlineContentAstNode[], leadingTrivia?: GlueAstNode | undefined);
|
|
2598
2601
|
get children(): readonly AstNode[];
|
|
2599
2602
|
mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
|
|
2600
2603
|
withLeadingTrivia(trivia: GlueAstNode | undefined): ParagraphAstNode;
|
|
@@ -2892,10 +2895,10 @@ export declare type SourceOffset = number;
|
|
|
2892
2895
|
|
|
2893
2896
|
export declare class StrikethroughAstNode extends AstNode {
|
|
2894
2897
|
readonly openMarker: MarkerAstNode;
|
|
2895
|
-
readonly content: readonly
|
|
2898
|
+
readonly content: readonly InlineContentAstNode[];
|
|
2896
2899
|
readonly closeMarker: MarkerAstNode;
|
|
2897
2900
|
readonly kind = "strikethrough";
|
|
2898
|
-
constructor(openMarker: MarkerAstNode, content: readonly
|
|
2901
|
+
constructor(openMarker: MarkerAstNode, content: readonly InlineContentAstNode[], closeMarker: MarkerAstNode);
|
|
2899
2902
|
get children(): readonly AstNode[];
|
|
2900
2903
|
mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
|
|
2901
2904
|
}
|
|
@@ -2950,10 +2953,10 @@ export declare class StringValue {
|
|
|
2950
2953
|
|
|
2951
2954
|
export declare class StrongAstNode extends AstNode {
|
|
2952
2955
|
readonly openMarker: MarkerAstNode;
|
|
2953
|
-
readonly content: readonly
|
|
2956
|
+
readonly content: readonly InlineContentAstNode[];
|
|
2954
2957
|
readonly closeMarker: MarkerAstNode;
|
|
2955
2958
|
readonly kind = "strong";
|
|
2956
|
-
constructor(openMarker: MarkerAstNode, content: readonly
|
|
2959
|
+
constructor(openMarker: MarkerAstNode, content: readonly InlineContentAstNode[], closeMarker: MarkerAstNode);
|
|
2957
2960
|
get children(): readonly AstNode[];
|
|
2958
2961
|
mapChildren(m: ReadonlyMap<AstNode, AstNode>): AstNode;
|
|
2959
2962
|
}
|