@vscode/markdown-editor 0.0.2-125 → 0.0.2-127

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 CHANGED
@@ -85,14 +85,16 @@ declare interface AstVisualizationNode {
85
85
  * commands even when the browser's default has been prevented.
86
86
  *
87
87
  * Hosts can supply a paste callback to read images or other clipboard formats.
88
- * It receives the original context and whether Shift requested plain text.
88
+ * It receives the original context, whether Shift requested plain text, and
89
+ * native clipboard data when a paste event supplied it. Context menus focus a
90
+ * temporary editable target so native paste works with EditContext roots too.
89
91
  * The callback owns asynchronous errors and stale-selection checks. It does
90
92
  * not override copy/cut or clipboard handling in nested native inputs.
91
93
  */
92
94
  export declare class AsyncClipboardStrategy implements IClipboardStrategy {
93
95
  private readonly _clipboard;
94
96
  private readonly _paste?;
95
- constructor(_clipboard?: Clipboard, _paste?: ((context: IClipboardContext, plainText: boolean) => Promise<void>) | undefined);
97
+ constructor(_clipboard?: Clipboard, _paste?: ((context: IClipboardContext, plainText: boolean, nativeData?: NativeClipboardData) => Promise<void>) | undefined);
96
98
  writeText(text: string): Promise<void>;
97
99
  connect(context: IClipboardContext): IDisposable;
98
100
  }