@bobfrankston/mailx-types 0.1.43 → 0.1.45

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.
Files changed (2) hide show
  1. package/mailx-api.d.ts +7 -0
  2. package/package.json +1 -1
package/mailx-api.d.ts CHANGED
@@ -204,6 +204,13 @@ export interface MailxApi {
204
204
  status: number;
205
205
  statusText: string;
206
206
  }>;
207
+ /** Fetch a remote image's bytes for the viewer's "Copy image" action —
208
+ * cross-origin images can't be read inside the WebView (no CORS headers,
209
+ * tainted canvas), so the daemon does it. Optional: desktop-only. */
210
+ fetchRemoteImage?(url: string): Promise<{
211
+ base64: string;
212
+ contentType: string;
213
+ }>;
207
214
  consumePendingMailto(): any | Promise<any>;
208
215
  /** C46 Windows Share target — startup-race twin of the daemon's
209
216
  * fs.watch on pending-share.json. Optional: desktop-only. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-types",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",