@wxt-dev/browser 0.1.32 → 0.1.36
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 -4
- package/src/gen/index.d.ts +71 -3
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.1.
|
|
4
|
+
"version": "0.1.36",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.mjs",
|
|
7
7
|
"types": "src/index.d.ts",
|
|
@@ -19,12 +19,11 @@
|
|
|
19
19
|
"src"
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/chrome": "0.1.
|
|
22
|
+
"@types/chrome": "0.1.36",
|
|
23
23
|
"fs-extra": "^11.3.1",
|
|
24
24
|
"nano-spawn": "^1.0.2",
|
|
25
|
-
"tsx": "4.19.4",
|
|
26
25
|
"typescript": "^5.9.2",
|
|
27
|
-
"vitest": "^
|
|
26
|
+
"vitest": "^4.0.16"
|
|
28
27
|
},
|
|
29
28
|
"dependencies": {
|
|
30
29
|
"@types/filesystem": "*",
|
package/src/gen/index.d.ts
CHANGED
|
@@ -1031,7 +1031,7 @@ export namespace Browser {
|
|
|
1031
1031
|
cookies?: boolean | undefined;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Stored passwords.
|
|
1034
|
-
* @deprecated Support for password deletion through extensions has been removed. This data type will be ignored.
|
|
1034
|
+
* @deprecated since Chrome 144. Support for password deletion through extensions has been removed. This data type will be ignored.
|
|
1035
1035
|
*/
|
|
1036
1036
|
passwords?: boolean | undefined;
|
|
1037
1037
|
/**
|
|
@@ -1127,7 +1127,7 @@ export namespace Browser {
|
|
|
1127
1127
|
* Clears the browser's stored passwords.
|
|
1128
1128
|
*
|
|
1129
1129
|
* Can return its result via Promise in Manifest V3 or later since Chrome 96.
|
|
1130
|
-
* @deprecated Support for password deletion through extensions has been removed. This function has no effect.
|
|
1130
|
+
* @deprecated since Chrome 144. Support for password deletion through extensions has been removed. This function has no effect.
|
|
1131
1131
|
*/
|
|
1132
1132
|
export function removePasswords(options: RemovalOptions): Promise<void>;
|
|
1133
1133
|
export function removePasswords(options: RemovalOptions, callback: () => void): void;
|
|
@@ -3781,6 +3781,8 @@ export namespace Browser {
|
|
|
3781
3781
|
BLOCKED_SCAN_FAILED = "blockedScanFailed",
|
|
3782
3782
|
/** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to Google Drive. */
|
|
3783
3783
|
FORCE_SAVE_TO_GDRIVE = "forceSaveToGdrive",
|
|
3784
|
+
/** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to OneDrive. */
|
|
3785
|
+
FORCE_SAVE_TO_ONEDRIVE = "forceSaveToOnedrive",
|
|
3784
3786
|
}
|
|
3785
3787
|
|
|
3786
3788
|
export interface DownloadItem {
|
|
@@ -13087,6 +13089,10 @@ export namespace Browser {
|
|
|
13087
13089
|
EXTRA_HEADERS = "extraHeaders",
|
|
13088
13090
|
/** Specifies that the response headers should be included in the event. */
|
|
13089
13091
|
RESPONSE_HEADERS = "responseHeaders",
|
|
13092
|
+
/** Specifies that the SecurityInfo should be included in the event. */
|
|
13093
|
+
SECURITY_INFO = "securityInfo",
|
|
13094
|
+
/** Specifies that the SecurityInfo with raw bytes of certificates should be included in the event. */
|
|
13095
|
+
SECURITY_INFO_RAW_DER = "securityInfoRawDer",
|
|
13090
13096
|
}
|
|
13091
13097
|
|
|
13092
13098
|
/** @since Chrome 44 */
|
|
@@ -13147,6 +13153,23 @@ export namespace Browser {
|
|
|
13147
13153
|
OTHER = "other",
|
|
13148
13154
|
}
|
|
13149
13155
|
|
|
13156
|
+
/** @since Chrome 144 */
|
|
13157
|
+
export interface SecurityInfo {
|
|
13158
|
+
/** A list of certificates */
|
|
13159
|
+
certificates: {
|
|
13160
|
+
/** Fingerprints of the certificate. */
|
|
13161
|
+
fingerprint: {
|
|
13162
|
+
/** sha256 fingerprint of the certificate. */
|
|
13163
|
+
sha256: string;
|
|
13164
|
+
};
|
|
13165
|
+
/** Raw bytes of DER encoded server certificate */
|
|
13166
|
+
rawDER?: ArrayBuffer;
|
|
13167
|
+
}[];
|
|
13168
|
+
|
|
13169
|
+
/** State of the connection. One of secure, insecure, broken. */
|
|
13170
|
+
state: string;
|
|
13171
|
+
}
|
|
13172
|
+
|
|
13150
13173
|
/** Contains data uploaded in a URL request. */
|
|
13151
13174
|
export interface UploadData {
|
|
13152
13175
|
/** An ArrayBuffer with a copy of the data. */
|
|
@@ -13164,7 +13187,7 @@ export namespace Browser {
|
|
|
13164
13187
|
* The UUID of the document making the request.
|
|
13165
13188
|
* @since Chrome 106
|
|
13166
13189
|
*/
|
|
13167
|
-
documentId
|
|
13190
|
+
documentId?: string;
|
|
13168
13191
|
/**
|
|
13169
13192
|
* The lifecycle the document is in.
|
|
13170
13193
|
* @since Chrome 106
|
|
@@ -13284,6 +13307,11 @@ export namespace Browser {
|
|
|
13284
13307
|
export interface OnHeadersReceivedDetails extends WebRequestDetails {
|
|
13285
13308
|
/** The HTTP response headers that have been received with this response. */
|
|
13286
13309
|
responseHeaders?: HttpHeader[];
|
|
13310
|
+
/**
|
|
13311
|
+
* Information about the TLS/QUIC connection used for the underlying connection. Only provided if `securityInfo` is specified in the `extraInfoSpec` parameter.
|
|
13312
|
+
* @since Chrome 144
|
|
13313
|
+
*/
|
|
13314
|
+
securityInfo?: SecurityInfo;
|
|
13287
13315
|
/** Standard HTTP status code returned by the server. */
|
|
13288
13316
|
statusCode: number;
|
|
13289
13317
|
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers.*/
|
|
@@ -13954,6 +13982,32 @@ export namespace Browser {
|
|
|
13954
13982
|
*/
|
|
13955
13983
|
excludedTabIds?: number[] | undefined;
|
|
13956
13984
|
|
|
13985
|
+
/**
|
|
13986
|
+
* The rule will only match network requests when the associated top-level frame's domain matches one from the list of `topDomains`. If the list is omitted, the rule is applied to requests associated with all top-level frame domains. An empty list is not allowed.
|
|
13987
|
+
*
|
|
13988
|
+
* Notes:
|
|
13989
|
+
* - Sub-domains like "a.example.com" are also allowed.
|
|
13990
|
+
* - The entries must consist of only ascii characters.
|
|
13991
|
+
* - Use punycode encoding for internationalized domains.
|
|
13992
|
+
* - Sub-domains of the listed domains are also matched.
|
|
13993
|
+
* - For requests with no associated top-level frame (e.g. ServiceWorker initiated requests, the request initiator's domain is considered instead.
|
|
13994
|
+
* @since Chrome 141
|
|
13995
|
+
*/
|
|
13996
|
+
topDomains?: string[] | undefined;
|
|
13997
|
+
|
|
13998
|
+
/**
|
|
13999
|
+
* The rule will not match network requests when the associated top-level frame's domain matches one from the list of `excludedTopDomains`. If the list is empty or omitted, no domains are excluded. This takes precedence over `topDomains`.
|
|
14000
|
+
*
|
|
14001
|
+
* Notes:
|
|
14002
|
+
* - Sub-domains like "a.example.com" are also allowed.
|
|
14003
|
+
* - The entries must consist of only ascii characters.
|
|
14004
|
+
* - Use punycode encoding for internationalized domains.
|
|
14005
|
+
* - Sub-domains of the listed domains are also excluded.
|
|
14006
|
+
* - For requests with no associated top-level frame (e.g. ServiceWorker initiated requests, the request initiator's domain is considered instead.
|
|
14007
|
+
* @since Chrome 141
|
|
14008
|
+
*/
|
|
14009
|
+
excludedTopDomains?: string[] | undefined;
|
|
14010
|
+
|
|
13957
14011
|
/** Whether the `urlFilter` or `regexFilter` (whichever is specified) is case sensitive. Default is false. */
|
|
13958
14012
|
isUrlFilterCaseSensitive?: boolean | undefined;
|
|
13959
14013
|
|
|
@@ -14517,6 +14571,14 @@ export namespace Browser {
|
|
|
14517
14571
|
default_path: string;
|
|
14518
14572
|
}
|
|
14519
14573
|
|
|
14574
|
+
/**
|
|
14575
|
+
* Closes the extension's side panel. This is a no-op if the panel is already closed.
|
|
14576
|
+
* @param options Specifies the context in which to close the side panel.
|
|
14577
|
+
* @since Chrome 141
|
|
14578
|
+
*/
|
|
14579
|
+
export function close(options: CloseOptions): Promise<void>;
|
|
14580
|
+
export function close(options: CloseOptions, callback: () => void): void;
|
|
14581
|
+
|
|
14520
14582
|
/**
|
|
14521
14583
|
* Returns the side panel's current layout.
|
|
14522
14584
|
* @since Chrome 140
|
|
@@ -14569,6 +14631,12 @@ export namespace Browser {
|
|
|
14569
14631
|
export function setPanelBehavior(behavior: PanelBehavior): Promise<void>;
|
|
14570
14632
|
export function setPanelBehavior(behavior: PanelBehavior, callback: () => void): void;
|
|
14571
14633
|
|
|
14634
|
+
/**
|
|
14635
|
+
* Fired when the extension's side panel is closed.
|
|
14636
|
+
* @since Chrome 142
|
|
14637
|
+
*/
|
|
14638
|
+
const onClosed: events.Event<(info: PanelClosedInfo) => void>;
|
|
14639
|
+
|
|
14572
14640
|
/**
|
|
14573
14641
|
* Fired when the extension's side panel is opened.
|
|
14574
14642
|
* @since Chrome 141
|