@rabby-wallet/electron-chrome-extensions
Advanced tools
Comparing version 3.9.7 to 3.9.8
/// <reference types="chrome" /> | ||
import type { ExtensionEvent } from "./router"; | ||
declare type PromiseOrIt<T> = Promise<T> | T; | ||
declare type ImplContext = { | ||
event: ExtensionEvent; | ||
}; | ||
/** App-specific implementation details for extensions. */ | ||
export interface ChromeExtensionImpl { | ||
createTab?(details: chrome.tabs.CreateProperties): PromiseOrIt<[Electron.WebContents, Electron.BrowserWindow]>; | ||
createTab?(details: chrome.tabs.CreateProperties, ctx: ImplContext): PromiseOrIt<[Electron.WebContents, Electron.BrowserWindow]>; | ||
selectTab?(tab: Electron.WebContents, window: Electron.BrowserWindow): void; | ||
@@ -17,9 +20,8 @@ removeTab?(tab: Electron.WebContents, window: Electron.BrowserWindow): void; | ||
*/ | ||
windowsGetCurrent?: (win: Electron.BrowserWindow | null, ctx: { | ||
event: ExtensionEvent; | ||
windowsGetCurrent?: (win: Electron.BrowserWindow | null, ctx: ImplContext & { | ||
lastFocusedWindow: Electron.BrowserWindow | null; | ||
}) => PromiseOrIt<Electron.BrowserWindow | null>; | ||
createWindow?(details: chrome.windows.CreateData): PromiseOrIt<Electron.BrowserWindow>; | ||
createWindow?(details: chrome.windows.CreateData, ctx: ImplContext): PromiseOrIt<Electron.BrowserWindow>; | ||
removeWindow?(window: Electron.BrowserWindow): void; | ||
} | ||
export {}; |
@@ -35,3 +35,3 @@ /// <reference types="chrome" /> | ||
removeTab(tab: Electron.WebContents): void; | ||
createTab(details: chrome.tabs.CreateProperties): Promise<Electron.WebContents>; | ||
createTab(details: chrome.tabs.CreateProperties, event: ExtensionEvent): Promise<Electron.WebContents>; | ||
getActiveTabFromWindow(win: Electron.BrowserWindow): Electron.WebContents | undefined; | ||
@@ -38,0 +38,0 @@ getActiveTabFromWebContents(wc: Electron.WebContents): Electron.WebContents | undefined; |
{ | ||
"name": "@rabby-wallet/electron-chrome-extensions", | ||
"version": "3.9.7", | ||
"version": "3.9.8", | ||
"description": "Chrome extension support for Electron", | ||
@@ -83,3 +83,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "405959256a6752ecbda3f7fafda7f35656cd20bb" | ||
"gitHead": "d0410b6865c8939f8d3274e8da6a3b8ad53e4d81" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
489755
5057