@types/chrome 0.0.160 → 0.0.164
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +43 -4
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Mon, 15 Nov 2021 19:01:24 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
* Global values: `chrome`
|
14
14
|
|
chrome/index.d.ts
CHANGED
@@ -774,7 +774,7 @@ declare namespace chrome.browserAction {
|
|
774
774
|
|
775
775
|
export interface BadgeTextDetails {
|
776
776
|
/** Any number of characters can be passed, but only about four can fit in the space. */
|
777
|
-
text?: string |
|
777
|
+
text?: string | null;
|
778
778
|
/** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
|
779
779
|
tabId?: number | undefined;
|
780
780
|
}
|
@@ -2042,7 +2042,16 @@ declare namespace chrome.declarativeContent {
|
|
2042
2042
|
constructor(options: PageStateMatcherProperties);
|
2043
2043
|
}
|
2044
2044
|
|
2045
|
-
/**
|
2045
|
+
/**
|
2046
|
+
* Declarative event action that enables the extension's action while the corresponding conditions are met.
|
2047
|
+
* Manifest v3.
|
2048
|
+
*/
|
2049
|
+
export class ShowAction { }
|
2050
|
+
|
2051
|
+
/**
|
2052
|
+
* Declarative event action that shows the extension's page action while the corresponding conditions are met.
|
2053
|
+
* Manifest v2.
|
2054
|
+
*/
|
2046
2055
|
export class ShowPageAction { }
|
2047
2056
|
|
2048
2057
|
/** Declarative event action that changes the icon of the page action while the corresponding conditions are met. */
|
@@ -2941,10 +2950,18 @@ declare namespace chrome.enterprise.platformKeys {
|
|
2941
2950
|
id: string;
|
2942
2951
|
/**
|
2943
2952
|
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
|
2944
|
-
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 can be generated. Each key can be used for signing data at most once.
|
2953
|
+
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 and ECDSA with namedCurve P-256 can be generated. Each key can be used for signing data at most once.
|
2945
2954
|
* Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle. Equally, Key objects created with window.crypto.subtle cannot be used with this interface.
|
2946
2955
|
*/
|
2947
2956
|
subtleCrypto: SubtleCrypto;
|
2957
|
+
/**
|
2958
|
+
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
|
2959
|
+
* Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
|
2960
|
+
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 can be generated. Each key can be used for signing data at most once.
|
2961
|
+
* Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle. Equally, Key objects created with window.crypto.subtle cannot be used with this interface.
|
2962
|
+
* @since Chrome 97.
|
2963
|
+
*/
|
2964
|
+
softwareBackedSubtleCrypto: SubtleCrypto;
|
2948
2965
|
}
|
2949
2966
|
|
2950
2967
|
/**
|
@@ -3074,6 +3091,14 @@ declare namespace chrome.enterprise.deviceAttributes {
|
|
3074
3091
|
* @param callback Called with the Annotated Location of the device.
|
3075
3092
|
*/
|
3076
3093
|
export function getDeviceAnnotatedLocation(callback: (annotatedLocation: string) => void): void;
|
3094
|
+
/**
|
3095
|
+
* @since Chrome 82.
|
3096
|
+
* @description
|
3097
|
+
* Fetches the device's hostname as set by DeviceHostnameTemplate policy.
|
3098
|
+
* If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
|
3099
|
+
* @param callback Called with the hostname of the device.
|
3100
|
+
*/
|
3101
|
+
export function getDeviceHostname(callback: (hostname: string) => void): void;
|
3077
3102
|
}
|
3078
3103
|
|
3079
3104
|
////////////////////
|
@@ -10126,6 +10151,13 @@ declare namespace chrome.webNavigation {
|
|
10126
10151
|
* Optional parameter details: Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.
|
10127
10152
|
*/
|
10128
10153
|
export function getFrame(details: GetFrameDetails, callback: (details: GetFrameResultDetails | null) => void): void;
|
10154
|
+
/**
|
10155
|
+
* Retrieves information about the given frame. A frame refers to an <iframe> or a <frame> of a web page and is identified by a tab ID and a frame ID.
|
10156
|
+
* @param details Information about the frame to retrieve information about.
|
10157
|
+
* @return The getFrame method provides its result via callback or returned as a Promise (MV3 only).
|
10158
|
+
*/
|
10159
|
+
export function getFrame(details: GetFrameDetails): Promise<GetFrameResultDetails | null>;
|
10160
|
+
|
10129
10161
|
/**
|
10130
10162
|
* Retrieves information about all frames of a given tab.
|
10131
10163
|
* @param details Information about the tab to retrieve all frames from.
|
@@ -10136,7 +10168,14 @@ declare namespace chrome.webNavigation {
|
|
10136
10168
|
details: GetAllFrameDetails,
|
10137
10169
|
callback: (details: GetAllFrameResultDetails[] | null) => void,
|
10138
10170
|
): void;
|
10139
|
-
|
10171
|
+
/**
|
10172
|
+
* Retrieves information about all frames of a given tab.
|
10173
|
+
* @param details Information about the tab to retrieve all frames from.
|
10174
|
+
* @return The getAllFrames method provides its result via callback or returned as a Promise (MV3 only).
|
10175
|
+
*/
|
10176
|
+
export function getAllFrames(
|
10177
|
+
details: GetAllFrameDetails,
|
10178
|
+
): Promise<GetAllFrameResultDetails[] | null>;
|
10140
10179
|
/** Fired when the reference fragment of a frame was updated. All future events for that frame will use the updated URL. */
|
10141
10180
|
export var onReferenceFragmentUpdated: WebNavigationTransitionalEvent;
|
10142
10181
|
/** Fired when a document, including the resources it refers to, is completely loaded and initialized. */
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.164",
|
4
4
|
"description": "TypeScript definitions for Chrome extension development",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -98,6 +98,6 @@
|
|
98
98
|
"@types/filesystem": "*",
|
99
99
|
"@types/har-format": "*"
|
100
100
|
},
|
101
|
-
"typesPublisherContentHash": "
|
101
|
+
"typesPublisherContentHash": "3bacf41c8f9f8cfa1d6368ac74b02c3b935e043645ca3e62f2a4abbcd6d8a0f6",
|
102
102
|
"typeScriptVersion": "3.7"
|
103
103
|
}
|