fix: Upgrade \@wxt-dev/browser\ to latest \@types/chrome\ version

This commit is contained in:
aklinker1
2025-03-28 16:01:49 +00:00
committed by github-actions[bot]
parent 5b7b16efba
commit 759e3e3a4d
2 changed files with 2 additions and 135 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@wxt-dev/browser",
"description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome",
"version": "0.0.310",
"version": "0.0.313",
"type": "module",
"main": "src/index.mjs",
"types": "src/index.d.ts",
@@ -23,7 +23,7 @@
"src"
],
"devDependencies": {
"@types/chrome": "0.0.310",
"@types/chrome": "0.0.313",
"fs-extra": "catalog:",
"nano-spawn": "catalog:",
"tsx": "catalog:",
-133
View File
@@ -9798,32 +9798,6 @@ export namespace Browser {
export function updateContentScripts(scripts: RegisteredContentScript[], callback: () => void): void;
}
////////////////////
// Script Badge
////////////////////
export namespace scriptBadge {
export interface GetPopupDetails {
tabId: number;
}
export interface AttentionDetails {
tabId: number;
}
export interface SetPopupDetails {
tabId: number;
popup: string;
}
export interface ScriptBadgeClickedEvent extends Browser.events.Event<(tab: Browser.tabs.Tab) => void> {}
export function getPopup(details: GetPopupDetails, callback: Function): void;
export function getAttention(details: AttentionDetails): void;
export function setPopup(details: SetPopupDetails): void;
export var onClicked: ScriptBadgeClickedEvent;
}
////////////////////
// Sessions
////////////////////
@@ -13445,113 +13419,6 @@ export namespace Browser {
export const onErrorOccurred: WebResponseErrorEvent;
}
////////////////////
// Web Store
////////////////////
/**
* Use the Browser.webstore API to initiate app and extension installations "inline" from your site.
* @since Chrome 15
*/
export namespace webstore {
/**
* @param url Optional. If you have more than one <link> tag on your page with the chrome-webstore-item relation, you can choose which item you'd like to install by passing in its URL here. If it is omitted, then the first (or only) link will be used. An exception will be thrown if the passed in URL does not exist on the page.
* @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension.
* @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
* Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
* Optional parameter errorCode: The error code from the stable set of possible errors.
* * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
* * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
* * * "aborted": The operation was aborted as the requestor is no longer alive.
* * * "installInProgress": An installation of the same extension is in progress.
* * * "notPermitted": The installation is not permitted.
* * * "invalidId": Invalid Chrome Web Store item ID.
* * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
* * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
* * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
* * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
* * * "userCanceled": The user canceled the operation.
* * * "blacklisted": The extension is blacklisted.
* * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
* * * "requirementViolations": Unsatisfied requirements, such as webgl.
* * * "blockedByPolicy": The extension is blocked by management policies.
* * * "launchFeatureDisabled": The launch feature is not available.
* * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
* * * "launchInProgress": A launch of the same extension is in progress.
*/
export function install(
url: string,
successCallback?: Function,
failureCallback?: (error: string, errorCode?: string) => void,
): void;
/**
* @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension.
* @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
* Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
* Optional parameter errorCode: The error code from the stable set of possible errors.
* * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
* * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
* * * "aborted": The operation was aborted as the requestor is no longer alive.
* * * "installInProgress": An installation of the same extension is in progress.
* * * "notPermitted": The installation is not permitted.
* * * "invalidId": Invalid Chrome Web Store item ID.
* * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
* * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
* * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
* * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
* * * "userCanceled": The user canceled the operation.
* * * "blacklisted": The extension is blacklisted.
* * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
* * * "requirementViolations": Unsatisfied requirements, such as webgl.
* * * "blockedByPolicy": The extension is blocked by management policies.
* * * "launchFeatureDisabled": The launch feature is not available.
* * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
* * * "launchInProgress": A launch of the same extension is in progress.
*/
export function install(
successCallback: Function,
failureCallback?: (error: string, errorCode?: string) => void,
): void;
/**
* @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
* Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
* Optional parameter errorCode: The error code from the stable set of possible errors.
* * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
* * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
* * * "aborted": The operation was aborted as the requestor is no longer alive.
* * * "installInProgress": An installation of the same extension is in progress.
* * * "notPermitted": The installation is not permitted.
* * * "invalidId": Invalid Chrome Web Store item ID.
* * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
* * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
* * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
* * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
* * * "userCanceled": The user canceled the operation.
* * * "blacklisted": The extension is blacklisted.
* * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
* * * "requirementViolations": Unsatisfied requirements, such as webgl.
* * * "blockedByPolicy": The extension is blocked by management policies.
* * * "launchFeatureDisabled": The launch feature is not available.
* * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
* * * "launchInProgress": A launch of the same extension is in progress.
*/
export function install(failureCallback?: (error: string, errorCode?: string) => void): void;
export interface InstallationStageEvent extends Browser.events.Event<(stage: string) => void> {}
export interface DownloadProgressEvent extends Browser.events.Event<(percentDownloaded: number) => void> {}
/**
* Fired when an inline installation enters a new InstallStage. In order to receive notifications about this event, listeners must be registered before the inline installation begins.
* @since Chrome 35
*/
export var onInstallStageChanged: InstallationStageEvent;
/**
* Fired periodically with the download progress of an inline install. In order to receive notifications about this event, listeners must be registered before the inline installation begins.
* @since Chrome 35
*/
export var onDownloadProgress: DownloadProgressEvent;
}
////////////////////
// Windows
////////////////////