1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

chore(deps): WXT 0.20.0 bump + lockfile regen (#199)

* chore(deps): wxt 0.20.0 bump #134

* chore: 3.2.1 manifest bump
This commit is contained in:
2025-11-14 02:16:57 +03:00
committed by GitHub
parent 3cd3c4453d
commit b51dd6083f
26 changed files with 1380 additions and 2153 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
import { Tabs } from "wxt/browser";
export async function closeTabsAsync(tabs: Tabs.Tab[]): Promise<void>
export async function closeTabsAsync(tabs: Browser.tabs.Tab[]): Promise<void>
{
if (tabs.length < 1)
return;
+3 -4
View File
@@ -1,7 +1,6 @@
import { CollectionItem, GroupItem } from "@/models/CollectionModels";
import { Tabs } from "wxt/browser";
export async function createCollectionFromTabs(tabs: Tabs.Tab[]): Promise<CollectionItem>
export async function createCollectionFromTabs(tabs: Browser.tabs.Tab[]): Promise<CollectionItem>
{
const collection: CollectionItem = {
type: "collection",
@@ -36,7 +35,7 @@ export async function createCollectionFromTabs(tabs: Tabs.Tab[]): Promise<Collec
tabs.every(i => i.groupId === tabs[0].groupId)
)
{
const group = await chrome.tabGroups.get(tabs[0].groupId);
const group = await browser.tabGroups.get(tabs[0].groupId);
collection.title = group.title;
collection.color = group.color;
@@ -63,7 +62,7 @@ export async function createCollectionFromTabs(tabs: Tabs.Tab[]): Promise<Collec
if (!activeGroup || activeGroup !== tab.groupId)
{
activeGroup = tab.groupId;
const group = await chrome.tabGroups.get(activeGroup);
const group = await browser.tabGroups.get(activeGroup!);
collection.items.push({
type: "group",
+2 -3
View File
@@ -1,9 +1,8 @@
import { Tabs } from "wxt/browser";
import { settings } from "./settings";
export async function getTabsToSaveAsync(): Promise<[Tabs.Tab[], number]>
export async function getTabsToSaveAsync(): Promise<[Browser.tabs.Tab[], number]>
{
let tabs: Tabs.Tab[] = await browser.tabs.query({
let tabs: Browser.tabs.Tab[] = await browser.tabs.query({
currentWindow: true,
highlighted: true
});
+1 -1
View File
@@ -1,4 +1,4 @@
import { Unwatch } from "wxt/storage";
import { Unwatch } from "wxt/utils/storage";
export default function watchTabSelection(onChange: TabSelectChangeHandler): Unwatch
{