@wxt-dev/browser 0.0.318 → 0.0.319
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.
- package/package.json +3 -3
- package/src/gen/index.d.ts +17 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wxt-dev/browser",
|
|
3
3
|
"description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.319",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.mjs",
|
|
7
7
|
"types": "src/index.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"src"
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/chrome": "0.0.
|
|
22
|
+
"@types/chrome": "0.0.319",
|
|
23
23
|
"fs-extra": "^11.3.0",
|
|
24
24
|
"nano-spawn": "^0.2.0",
|
|
25
|
-
"tsx": "4.19.
|
|
25
|
+
"tsx": "4.19.4",
|
|
26
26
|
"typescript": "^5.8.3",
|
|
27
27
|
"vitest": "^3.1.2"
|
|
28
28
|
},
|
package/src/gen/index.d.ts
CHANGED
|
@@ -7480,7 +7480,7 @@ export namespace Browser {
|
|
|
7480
7480
|
*/
|
|
7481
7481
|
export namespace permissions {
|
|
7482
7482
|
export interface Permissions {
|
|
7483
|
-
/** The list of host permissions, including those specified in the `optional_permissions` or `permissions` keys in the manifest, and those associated with [Content Scripts](https://developer.
|
|
7483
|
+
/** The list of host permissions, including those specified in the `optional_permissions` or `permissions` keys in the manifest, and those associated with [Content Scripts](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts). */
|
|
7484
7484
|
origins?: string[];
|
|
7485
7485
|
/** List of named permissions (does not include hosts or origins). */
|
|
7486
7486
|
permissions?: Browser.runtime.ManifestPermissions[];
|
|
@@ -7883,6 +7883,13 @@ export namespace Browser {
|
|
|
7883
7883
|
export function cancelJob(jobId: string): Promise<void>;
|
|
7884
7884
|
export function cancelJob(jobId: string, callback: () => void): void;
|
|
7885
7885
|
|
|
7886
|
+
/**
|
|
7887
|
+
* Returns the status of the print job. This call will fail with a runtime error if the print job with the given `jobId` doesn't exist. `jobId`: The id of the print job to return the status of. This should be the same id received in a {@link SubmitJobResponse}.
|
|
7888
|
+
* @since Chrome 135
|
|
7889
|
+
*/
|
|
7890
|
+
export function getJobStatus(jobId: string): Promise<`${JobStatus}`>;
|
|
7891
|
+
export function getJobStatus(jobId: string, callback: (status: `${JobStatus}`) => void): void;
|
|
7892
|
+
|
|
7886
7893
|
/**
|
|
7887
7894
|
* Returns the status and capabilities of the printer in CDD format. This call will fail with a runtime error if no printers with given id are installed.
|
|
7888
7895
|
* Can return its result via Promise in Manifest V3 or later since Chrome 100.
|
|
@@ -7907,7 +7914,7 @@ export namespace Browser {
|
|
|
7907
7914
|
/**
|
|
7908
7915
|
* Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.
|
|
7909
7916
|
*/
|
|
7910
|
-
export const onJobStatusChanged: Browser.events.Event<(jobId: string, status: JobStatus) => void>;
|
|
7917
|
+
export const onJobStatusChanged: Browser.events.Event<(jobId: string, status: `${JobStatus}`) => void>;
|
|
7911
7918
|
}
|
|
7912
7919
|
|
|
7913
7920
|
////////////////////
|
|
@@ -8498,7 +8505,7 @@ export namespace Browser {
|
|
|
8498
8505
|
}
|
|
8499
8506
|
|
|
8500
8507
|
export interface ConnectionOptions {
|
|
8501
|
-
/** Optional. Flag indicating whether or not the connection should be left open when the application is suspended (see Manage App Lifecycle: https://developer.
|
|
8508
|
+
/** Optional. Flag indicating whether or not the connection should be left open when the application is suspended (see Manage App Lifecycle: https://developer.chrome.com/apps/app_lifecycle).
|
|
8502
8509
|
* The default value is "false." When the application is loaded, any serial connections previously opened with persistent=true can be fetched with getConnections. */
|
|
8503
8510
|
persistent?: boolean | undefined;
|
|
8504
8511
|
/** Optional. An application-defined string to associate with the connection. */
|
|
@@ -8716,13 +8723,13 @@ export namespace Browser {
|
|
|
8716
8723
|
/** The ID of the extension/app. */
|
|
8717
8724
|
export var id: string;
|
|
8718
8725
|
|
|
8719
|
-
/** https://developer.
|
|
8726
|
+
/** https://developer.chrome.com/docs/extensions/reference/api/runtime#type-PlatformOs */
|
|
8720
8727
|
export type PlatformOs = "mac" | "win" | "android" | "cros" | "linux" | "openbsd" | "fuchsia";
|
|
8721
|
-
/** https://developer.
|
|
8728
|
+
/** https://developer.chrome.com/docs/extensions/reference/api/runtime#type-PlatformArch */
|
|
8722
8729
|
export type PlatformArch = "arm" | "arm64" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
8723
|
-
/** https://developer.
|
|
8730
|
+
/** https://developer.chrome.com/docs/extensions/reference/api/runtime#type-PlatformNaclArch */
|
|
8724
8731
|
export type PlatformNaclArch = "arm" | "x86-32" | "x86-64" | "mips" | "mips64";
|
|
8725
|
-
/** https://developer.
|
|
8732
|
+
/** https://developer.chrome.com/docs/extensions/reference/api/runtime#type-ContextType */
|
|
8726
8733
|
export enum ContextType {
|
|
8727
8734
|
TAB = "TAB",
|
|
8728
8735
|
POPUP = "POPUP",
|
|
@@ -8731,7 +8738,7 @@ export namespace Browser {
|
|
|
8731
8738
|
SIDE_PANEL = "SIDE_PANEL",
|
|
8732
8739
|
DEVELOPER_TOOLS = "DEVELOPER_TOOLS",
|
|
8733
8740
|
}
|
|
8734
|
-
/** https://developer.
|
|
8741
|
+
/** https://developer.chrome.com/docs/extensions/reference/api/runtime#type-OnInstalledReason */
|
|
8735
8742
|
export enum OnInstalledReason {
|
|
8736
8743
|
INSTALL = "install",
|
|
8737
8744
|
UPDATE = "update",
|
|
@@ -8958,7 +8965,7 @@ export namespace Browser {
|
|
|
8958
8965
|
default_popup?: string | undefined;
|
|
8959
8966
|
}
|
|
8960
8967
|
|
|
8961
|
-
/** Source: https://developer.
|
|
8968
|
+
/** Source: https://developer.chrome.com/docs/extensions/reference/permissions-list */
|
|
8962
8969
|
export type ManifestPermissions =
|
|
8963
8970
|
| "accessibilityFeatures.modify"
|
|
8964
8971
|
| "accessibilityFeatures.read"
|
|
@@ -9042,7 +9049,7 @@ export namespace Browser {
|
|
|
9042
9049
|
| "webRequestBlocking"
|
|
9043
9050
|
| "webRequestAuthProvider";
|
|
9044
9051
|
|
|
9045
|
-
/** Source : https://developer.
|
|
9052
|
+
/** Source : https://developer.chrome.com/docs/extensions/reference/api/permissions */
|
|
9046
9053
|
export type ManifestOptionalPermissions = Exclude<
|
|
9047
9054
|
ManifestPermissions,
|
|
9048
9055
|
| "debugger"
|