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

This commit is contained in:
aklinker1
2025-05-02 01:53:07 +00:00
committed by github-actions[bot]
parent 448cbf16c9
commit edf33fdec9
3 changed files with 60 additions and 80 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.317",
"version": "0.0.318",
"type": "module",
"main": "src/index.mjs",
"types": "src/index.d.ts",
@@ -23,7 +23,7 @@
"src"
],
"devDependencies": {
"@types/chrome": "0.0.317",
"@types/chrome": "0.0.318",
"fs-extra": "catalog:",
"nano-spawn": "catalog:",
"tsx": "catalog:",
+53 -73
View File
@@ -12228,131 +12228,111 @@ export namespace Browser {
*/
export namespace tabGroups {
/** An ID that represents the absence of a group. */
export var TAB_GROUP_ID_NONE: -1;
export const TAB_GROUP_ID_NONE: -1;
export type ColorEnum = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan" | "orange";
/** The group's color. */
export enum Color {
BLUE = "blue",
CYAN = "cyan",
GREEN = "green",
GREY = "grey",
ORANGE = "orange",
PINK = "pink",
PURPLE = "purple",
RED = "red",
YELLOW = "yellow",
}
export interface TabGroup {
/** Whether the group is collapsed. A collapsed group is one whose tabs are hidden. */
collapsed: boolean;
/** The group's color. */
color: ColorEnum;
color: `${Color}`;
/** The ID of the group. Group IDs are unique within a browser session. */
id: number;
/** Optional. The title of the group. */
title?: string | undefined;
/** The title of the group. */
title?: string;
/** The ID of the window that contains the group. */
windowId: number;
}
export interface MoveProperties {
/** The position to move the group to. Use -1 to place the group at the end of the window. */
/** The position to move the group to. Use `-1` to place the group at the end of the window. */
index: number;
/** Optional. The window to move the group to. Defaults to the window the group is currently in. Note that groups can only be moved to and from windows with Browser.windows.WindowType type "normal". */
windowId?: number | undefined;
/** The window to move the group to. Defaults to the window the group is currently in. Note that groups can only be moved to and from windows with {@link windows.windowTypeEnum windows.windowType} type `"normal"`. */
windowId?: number;
}
export interface QueryInfo {
/** Optional. Whether the groups are collapsed. */
collapsed?: boolean | undefined;
/** Optional. The color of the groups. */
color?: ColorEnum | undefined;
/** Optional. Match group titles against a pattern. */
title?: string | undefined;
/** Optional. The ID of the window that contains the group. */
windowId?: number | undefined;
/** Whether the groups are collapsed. */
collapsed?: boolean;
/** The color of the groups. */
color?: `${Color}`;
/** Match group titles against a pattern. */
title?: string;
/** The ID of the parent window, or {@link windows.WINDOW_ID_CURRENT} for the current window. */
windowId?: number;
}
export interface UpdateProperties {
/** Optional. Whether the group should be collapsed. */
collapsed?: boolean | undefined;
/** Optional. The color of the group. */
color?: ColorEnum | undefined;
/** Optional. The title of the group. */
title?: string | undefined;
/** Whether the group should be collapsed. */
collapsed?: boolean;
/** The color of the group. */
color?: `${Color}`;
/** The title of the group. */
title?: string;
}
/**
* Retrieves details about the specified group.
* @param groupId The ID of the tab group.
* @param callback Called with the retrieved tab group.
*
* Can return its result via Promise since Chrome 90.
*/
export function get(groupId: number): Promise<TabGroup>;
export function get(groupId: number, callback: (group: TabGroup) => void): void;
/**
* Retrieves details about the specified group.
* @param groupId The ID of the tab group.
* @return The `get` method provides its result via callback or returned as a `Promise` (MV3 only).
*/
export function get(groupId: number): Promise<TabGroup>;
/**
* Moves the group and all its tabs within its window, or to a new window.
* @param groupId The ID of the group to move.
* @param moveProperties Information on how to move the group.
* @return The `move` method provides its result via callback or returned as a `Promise` (MV3 only).
*/
export function move(groupId: number, moveProperties: MoveProperties): Promise<TabGroup>;
/**
* Moves the group and all its tabs within its window, or to a new window.
* @param groupId The ID of the group to move.
* @param moveProperties Information on how to move the group.
* @param callback Optional.
*
* Can return its result via Promise since Chrome 90.
*/
export function move(groupId: number, moveProperties: MoveProperties): Promise<TabGroup | undefined>;
export function move(
groupId: number,
moveProperties: MoveProperties,
callback: (group: TabGroup) => void,
callback: (group?: TabGroup) => void,
): void;
/**
* Gets all groups that have the specified properties, or all groups if no properties are specified.
* @param queryInfo Object with search parameters.
* @param callback Called with retrieved tab groups.
*
* Can return its result via Promise since Chrome 90.
*/
export function query(queryInfo: QueryInfo): Promise<TabGroup[]>;
export function query(queryInfo: QueryInfo, callback: (result: TabGroup[]) => void): void;
/**
* Gets all groups that have the specified properties, or all groups if no properties are specified.
* @param queryInfo Object with search parameters.
* @return The `query` method provides its result via callback or returned as a `Promise` (MV3 only).
*/
export function query(queryInfo: QueryInfo): Promise<TabGroup[]>;
/**
* Modifies the properties of a group. Properties that are not specified in updateProperties are not modified.
* Modifies the properties of a group. Properties that are not specified in `updateProperties` are not modified.
* @param groupId The ID of the group to modify.
* @param updateProperties Information on how to update the group.
* @return The `update` method provides its result via callback or returned as a `Promise` (MV3 only).
*/
export function update(groupId: number, updateProperties: UpdateProperties): Promise<TabGroup>;
/**
* Modifies the properties of a group. Properties that are not specified in updateProperties are not modified.
* @param groupId The ID of the group to modify.
* @param updateProperties Information on how to update the group.
* @param callback Optional.
*
* Can return its result via Promise since Chrome 90.
*/
export function update(groupId: number, updateProperties: UpdateProperties): Promise<TabGroup | undefined>;
export function update(
groupId: number,
updateProperties: UpdateProperties,
callback: (group: TabGroup) => void,
callback: (group?: TabGroup) => void,
): void;
export interface TabGroupCreatedEvent extends Browser.events.Event<(group: TabGroup) => void> {}
export interface TabGroupMovedEvent extends Browser.events.Event<(group: TabGroup) => void> {}
export interface TabGroupRemovedEvent extends Browser.events.Event<(group: TabGroup) => void> {}
export interface TabGroupUpdated extends Browser.events.Event<(group: TabGroup) => void> {}
/** Fired when a group is created. */
export var onCreated: TabGroupCreatedEvent;
export const onCreated: events.Event<(group: TabGroup) => void>;
/** Fired when a group is moved within a window. Move events are still fired for the individual tabs within the group, as well as for the group itself. This event is not fired when a group is moved between windows; instead, it will be removed from one window and created in another. */
export var onMoved: TabGroupMovedEvent;
/** Fired when a group is closed, either directly by the user or automatically because it contained zero. */
export var onRemoved: TabGroupRemovedEvent;
export const onMoved: events.Event<(group: TabGroup) => void>;
/** Fired when a group is closed, either directly by the user or automatically because it contained zero tabs. */
export const onRemoved: events.Event<(group: TabGroup) => void>;
/** Fired when a group is updated. */
export var onUpdated: TabGroupUpdated;
export const onUpdated: events.Event<(group: TabGroup) => void>;
}
////////////////////
+5 -5
View File
@@ -464,8 +464,8 @@ importers:
version: 1.2.15
devDependencies:
'@types/chrome':
specifier: 0.0.317
version: 0.0.317
specifier: 0.0.318
version: 0.0.318
fs-extra:
specifier: 'catalog:'
version: 11.3.0
@@ -2180,8 +2180,8 @@ packages:
'@types/chrome@0.0.313':
resolution: {integrity: sha512-9R5T7gTaYZhkxlu+Ho4wk9FL+y/werWQY2yjGWSqCuiTsqS7nL/BE5UMTP6rU7J+oIG2FRKqrEycHhJATeltVA==}
'@types/chrome@0.0.317':
resolution: {integrity: sha512-ibKycbXX8ZZToFshjgWg98BTvFUSvQht8m53Xc+87ye3Z6ZoHJubLjoiDsil8rtW+noWE+Z0+7y0nwLxArU+CQ==}
'@types/chrome@0.0.318':
resolution: {integrity: sha512-rrtyYQ1t+g7EyG0FejE+UXQBjSGUHGh0RIdXwUT/laPo9T724NOIgXA94ns6ewmNauwijYa5ck3+dBxWnHcynQ==}
'@types/conventional-commits-parser@5.0.1':
resolution: {integrity: sha512-7uz5EHdzz2TqoMfV7ee61Egf5y6NkcO4FB/1iCCQnbeiI1F3xzv3vK5dBCXUCLQgGYS+mUeigK1iKQzvED+QnQ==}
@@ -6323,7 +6323,7 @@ snapshots:
'@types/filesystem': 0.0.36
'@types/har-format': 1.2.15
'@types/chrome@0.0.317':
'@types/chrome@0.0.318':
dependencies:
'@types/filesystem': 0.0.36
'@types/har-format': 1.2.15