chrome-types 0.1.426 → 0.1.427
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/_all.d.ts +50 -6
- package/index.d.ts +50 -3
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Wed May
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed May 13 2026 20:31:36 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 077f70b0e0b2584f8c62ddd9453e8bb5979dc422
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -749,6 +749,13 @@ declare namespace chrome {
|
|
|
749
749
|
* If not null, the alarm is a repeating alarm and will fire again in `periodInMinutes` minutes.
|
|
750
750
|
*/
|
|
751
751
|
periodInMinutes?: number;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Whether the alarm should persist across sessions (browser restarts).
|
|
755
|
+
*
|
|
756
|
+
* @since Pending
|
|
757
|
+
*/
|
|
758
|
+
persistAcrossSessions: boolean;
|
|
752
759
|
}
|
|
753
760
|
|
|
754
761
|
export interface AlarmCreateInfo {
|
|
@@ -767,6 +774,13 @@ declare namespace chrome {
|
|
|
767
774
|
* If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once.
|
|
768
775
|
*/
|
|
769
776
|
periodInMinutes?: number;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Whether the alarm should persist across sessions (browser restarts). In Chrome, this defaults to true to match historical behavior, but you should set this explicitly to maximize compatibility across browsers.
|
|
780
|
+
*
|
|
781
|
+
* @since Pending
|
|
782
|
+
*/
|
|
783
|
+
persistAcrossSessions?: boolean;
|
|
770
784
|
}
|
|
771
785
|
|
|
772
786
|
/**
|
|
@@ -6504,7 +6518,7 @@ declare namespace chrome {
|
|
|
6504
6518
|
*
|
|
6505
6519
|
* @since Chrome 44
|
|
6506
6520
|
*/
|
|
6507
|
-
export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action";
|
|
6521
|
+
export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action" | "tab";
|
|
6508
6522
|
|
|
6509
6523
|
/**
|
|
6510
6524
|
* The type of menu item.
|
|
@@ -19705,6 +19719,19 @@ declare namespace chrome {
|
|
|
19705
19719
|
info: StreamInfo,
|
|
19706
19720
|
) => void,
|
|
19707
19721
|
): void;
|
|
19722
|
+
|
|
19723
|
+
/**
|
|
19724
|
+
* Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
|
|
19725
|
+
*/
|
|
19726
|
+
export function abortAndFallbackToNativeHandler(): Promise<void>;
|
|
19727
|
+
|
|
19728
|
+
/**
|
|
19729
|
+
* Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
|
|
19730
|
+
*/
|
|
19731
|
+
export function abortAndFallbackToNativeHandler(
|
|
19732
|
+
|
|
19733
|
+
callback?: () => void,
|
|
19734
|
+
): void;
|
|
19708
19735
|
}
|
|
19709
19736
|
|
|
19710
19737
|
/**
|
|
@@ -22185,6 +22212,26 @@ declare namespace chrome {
|
|
|
22185
22212
|
|
|
22186
22213
|
callback?: () => void,
|
|
22187
22214
|
): void;
|
|
22215
|
+
|
|
22216
|
+
/**
|
|
22217
|
+
* Determines whether the extension has an active document.
|
|
22218
|
+
*
|
|
22219
|
+
* @returns Promise that resolves with the result of whether the extension has an active offscreen document.
|
|
22220
|
+
* @since Pending
|
|
22221
|
+
*/
|
|
22222
|
+
export function hasDocument(): Promise<boolean>;
|
|
22223
|
+
|
|
22224
|
+
/**
|
|
22225
|
+
* Determines whether the extension has an active document.
|
|
22226
|
+
*
|
|
22227
|
+
* @since Pending
|
|
22228
|
+
*/
|
|
22229
|
+
export function hasDocument(
|
|
22230
|
+
|
|
22231
|
+
callback?: (
|
|
22232
|
+
result: boolean,
|
|
22233
|
+
) => void,
|
|
22234
|
+
): void;
|
|
22188
22235
|
}
|
|
22189
22236
|
|
|
22190
22237
|
/**
|
|
@@ -38109,9 +38156,6 @@ declare namespace chrome {
|
|
|
38109
38156
|
* @chrome-permission webview
|
|
38110
38157
|
* @chrome-platform-apps
|
|
38111
38158
|
* @chrome-platform chromeos
|
|
38112
|
-
* @chrome-platform linux
|
|
38113
|
-
* @chrome-platform mac
|
|
38114
|
-
* @chrome-platform win
|
|
38115
38159
|
*/
|
|
38116
38160
|
export namespace webviewTag {
|
|
38117
38161
|
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Wed May
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed May 13 2026 20:31:31 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 077f70b0e0b2584f8c62ddd9453e8bb5979dc422
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -807,6 +807,13 @@ declare namespace chrome {
|
|
|
807
807
|
* If not null, the alarm is a repeating alarm and will fire again in `periodInMinutes` minutes.
|
|
808
808
|
*/
|
|
809
809
|
periodInMinutes?: number;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Whether the alarm should persist across sessions (browser restarts).
|
|
813
|
+
*
|
|
814
|
+
* @since Pending
|
|
815
|
+
*/
|
|
816
|
+
persistAcrossSessions: boolean;
|
|
810
817
|
}
|
|
811
818
|
|
|
812
819
|
export interface AlarmCreateInfo {
|
|
@@ -825,6 +832,13 @@ declare namespace chrome {
|
|
|
825
832
|
* If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once.
|
|
826
833
|
*/
|
|
827
834
|
periodInMinutes?: number;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Whether the alarm should persist across sessions (browser restarts). In Chrome, this defaults to true to match historical behavior, but you should set this explicitly to maximize compatibility across browsers.
|
|
838
|
+
*
|
|
839
|
+
* @since Pending
|
|
840
|
+
*/
|
|
841
|
+
persistAcrossSessions?: boolean;
|
|
828
842
|
}
|
|
829
843
|
|
|
830
844
|
/**
|
|
@@ -3323,7 +3337,7 @@ declare namespace chrome {
|
|
|
3323
3337
|
*
|
|
3324
3338
|
* @since Chrome 44
|
|
3325
3339
|
*/
|
|
3326
|
-
export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action";
|
|
3340
|
+
export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action" | "tab";
|
|
3327
3341
|
|
|
3328
3342
|
/**
|
|
3329
3343
|
* The type of menu item.
|
|
@@ -14796,6 +14810,19 @@ declare namespace chrome {
|
|
|
14796
14810
|
info: StreamInfo,
|
|
14797
14811
|
) => void,
|
|
14798
14812
|
): void;
|
|
14813
|
+
|
|
14814
|
+
/**
|
|
14815
|
+
* Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
|
|
14816
|
+
*/
|
|
14817
|
+
export function abortAndFallbackToNativeHandler(): Promise<void>;
|
|
14818
|
+
|
|
14819
|
+
/**
|
|
14820
|
+
* Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
|
|
14821
|
+
*/
|
|
14822
|
+
export function abortAndFallbackToNativeHandler(
|
|
14823
|
+
|
|
14824
|
+
callback?: () => void,
|
|
14825
|
+
): void;
|
|
14799
14826
|
}
|
|
14800
14827
|
|
|
14801
14828
|
/**
|
|
@@ -15269,6 +15296,26 @@ declare namespace chrome {
|
|
|
15269
15296
|
|
|
15270
15297
|
callback?: () => void,
|
|
15271
15298
|
): void;
|
|
15299
|
+
|
|
15300
|
+
/**
|
|
15301
|
+
* Determines whether the extension has an active document.
|
|
15302
|
+
*
|
|
15303
|
+
* @returns Promise that resolves with the result of whether the extension has an active offscreen document.
|
|
15304
|
+
* @since Pending
|
|
15305
|
+
*/
|
|
15306
|
+
export function hasDocument(): Promise<boolean>;
|
|
15307
|
+
|
|
15308
|
+
/**
|
|
15309
|
+
* Determines whether the extension has an active document.
|
|
15310
|
+
*
|
|
15311
|
+
* @since Pending
|
|
15312
|
+
*/
|
|
15313
|
+
export function hasDocument(
|
|
15314
|
+
|
|
15315
|
+
callback?: (
|
|
15316
|
+
result: boolean,
|
|
15317
|
+
) => void,
|
|
15318
|
+
): void;
|
|
15272
15319
|
}
|
|
15273
15320
|
|
|
15274
15321
|
/**
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "59ca8136a271fc42"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.427"
|
|
20
20
|
}
|