chrome-types 0.1.326 → 0.1.328
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 +62 -3
- package/index.d.ts +62 -3
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025 Google LLC
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Jan 01 2025 22:31:10 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at c318291f2b36c727f89fe269b3f87dfe0a62cad9
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -34544,6 +34544,13 @@ declare namespace chrome {
|
|
|
34544
34544
|
* The JavaScript execution environment to run the script in. The default is `` `USER_SCRIPT` ``.
|
|
34545
34545
|
*/
|
|
34546
34546
|
world?: ExecutionWorld;
|
|
34547
|
+
|
|
34548
|
+
/**
|
|
34549
|
+
* If specified, specifies a specific user script world ID to execute in. Only valid if `world` is omitted or is `USER_SCRIPT`. If omitted, the script will execute in the default user script world. Values with leading underscores (`_`) are reserved.
|
|
34550
|
+
*
|
|
34551
|
+
* @since Pending
|
|
34552
|
+
*/
|
|
34553
|
+
worldId?: string;
|
|
34547
34554
|
}
|
|
34548
34555
|
|
|
34549
34556
|
export interface UserScriptFilter {
|
|
@@ -34556,6 +34563,13 @@ declare namespace chrome {
|
|
|
34556
34563
|
|
|
34557
34564
|
export interface WorldProperties {
|
|
34558
34565
|
|
|
34566
|
+
/**
|
|
34567
|
+
* Specifies the ID of the specific user script world to update. If not provided, updates the properties of the default user script world. Values with leading underscores (`_`) are reserved.
|
|
34568
|
+
*
|
|
34569
|
+
* @since Pending
|
|
34570
|
+
*/
|
|
34571
|
+
worldId?: string;
|
|
34572
|
+
|
|
34559
34573
|
/**
|
|
34560
34574
|
* Specifies the world csp. The default is the `` `ISOLATED` `` world csp.
|
|
34561
34575
|
*/
|
|
@@ -34683,6 +34697,51 @@ declare namespace chrome {
|
|
|
34683
34697
|
|
|
34684
34698
|
callback?: () => void,
|
|
34685
34699
|
): void;
|
|
34700
|
+
|
|
34701
|
+
/**
|
|
34702
|
+
* Retrieves all registered world configurations.
|
|
34703
|
+
*
|
|
34704
|
+
* @since Pending
|
|
34705
|
+
*/
|
|
34706
|
+
export function getWorldConfigurations(): Promise<WorldProperties[]>;
|
|
34707
|
+
|
|
34708
|
+
/**
|
|
34709
|
+
* Retrieves all registered world configurations.
|
|
34710
|
+
*
|
|
34711
|
+
* @param callback Called with the registered world configurations.
|
|
34712
|
+
* @since Pending
|
|
34713
|
+
*/
|
|
34714
|
+
export function getWorldConfigurations(
|
|
34715
|
+
|
|
34716
|
+
callback?: (
|
|
34717
|
+
worlds: WorldProperties[],
|
|
34718
|
+
) => void,
|
|
34719
|
+
): void;
|
|
34720
|
+
|
|
34721
|
+
/**
|
|
34722
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
34723
|
+
*
|
|
34724
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
34725
|
+
* @since Pending
|
|
34726
|
+
*/
|
|
34727
|
+
export function resetWorldConfiguration(
|
|
34728
|
+
|
|
34729
|
+
worldId?: string,
|
|
34730
|
+
): Promise<void>;
|
|
34731
|
+
|
|
34732
|
+
/**
|
|
34733
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
34734
|
+
*
|
|
34735
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
34736
|
+
* @param callback Called when the configuration is reset.
|
|
34737
|
+
* @since Pending
|
|
34738
|
+
*/
|
|
34739
|
+
export function resetWorldConfiguration(
|
|
34740
|
+
|
|
34741
|
+
worldId?: string,
|
|
34742
|
+
|
|
34743
|
+
callback?: () => void,
|
|
34744
|
+
): void;
|
|
34686
34745
|
}
|
|
34687
34746
|
|
|
34688
34747
|
/**
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2025 Google LLC
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Jan 01 2025 22:31:05 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at c318291f2b36c727f89fe269b3f87dfe0a62cad9
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -27350,6 +27350,13 @@ declare namespace chrome {
|
|
|
27350
27350
|
* The JavaScript execution environment to run the script in. The default is `` `USER_SCRIPT` ``.
|
|
27351
27351
|
*/
|
|
27352
27352
|
world?: ExecutionWorld;
|
|
27353
|
+
|
|
27354
|
+
/**
|
|
27355
|
+
* If specified, specifies a specific user script world ID to execute in. Only valid if `world` is omitted or is `USER_SCRIPT`. If omitted, the script will execute in the default user script world. Values with leading underscores (`_`) are reserved.
|
|
27356
|
+
*
|
|
27357
|
+
* @since Pending
|
|
27358
|
+
*/
|
|
27359
|
+
worldId?: string;
|
|
27353
27360
|
}
|
|
27354
27361
|
|
|
27355
27362
|
export interface UserScriptFilter {
|
|
@@ -27362,6 +27369,13 @@ declare namespace chrome {
|
|
|
27362
27369
|
|
|
27363
27370
|
export interface WorldProperties {
|
|
27364
27371
|
|
|
27372
|
+
/**
|
|
27373
|
+
* Specifies the ID of the specific user script world to update. If not provided, updates the properties of the default user script world. Values with leading underscores (`_`) are reserved.
|
|
27374
|
+
*
|
|
27375
|
+
* @since Pending
|
|
27376
|
+
*/
|
|
27377
|
+
worldId?: string;
|
|
27378
|
+
|
|
27365
27379
|
/**
|
|
27366
27380
|
* Specifies the world csp. The default is the `` `ISOLATED` `` world csp.
|
|
27367
27381
|
*/
|
|
@@ -27489,6 +27503,51 @@ declare namespace chrome {
|
|
|
27489
27503
|
|
|
27490
27504
|
callback?: () => void,
|
|
27491
27505
|
): void;
|
|
27506
|
+
|
|
27507
|
+
/**
|
|
27508
|
+
* Retrieves all registered world configurations.
|
|
27509
|
+
*
|
|
27510
|
+
* @since Pending
|
|
27511
|
+
*/
|
|
27512
|
+
export function getWorldConfigurations(): Promise<WorldProperties[]>;
|
|
27513
|
+
|
|
27514
|
+
/**
|
|
27515
|
+
* Retrieves all registered world configurations.
|
|
27516
|
+
*
|
|
27517
|
+
* @param callback Called with the registered world configurations.
|
|
27518
|
+
* @since Pending
|
|
27519
|
+
*/
|
|
27520
|
+
export function getWorldConfigurations(
|
|
27521
|
+
|
|
27522
|
+
callback?: (
|
|
27523
|
+
worlds: WorldProperties[],
|
|
27524
|
+
) => void,
|
|
27525
|
+
): void;
|
|
27526
|
+
|
|
27527
|
+
/**
|
|
27528
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
27529
|
+
*
|
|
27530
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
27531
|
+
* @since Pending
|
|
27532
|
+
*/
|
|
27533
|
+
export function resetWorldConfiguration(
|
|
27534
|
+
|
|
27535
|
+
worldId?: string,
|
|
27536
|
+
): Promise<void>;
|
|
27537
|
+
|
|
27538
|
+
/**
|
|
27539
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
27540
|
+
*
|
|
27541
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
27542
|
+
* @param callback Called when the configuration is reset.
|
|
27543
|
+
* @since Pending
|
|
27544
|
+
*/
|
|
27545
|
+
export function resetWorldConfiguration(
|
|
27546
|
+
|
|
27547
|
+
worldId?: string,
|
|
27548
|
+
|
|
27549
|
+
callback?: () => void,
|
|
27550
|
+
): void;
|
|
27492
27551
|
}
|
|
27493
27552
|
|
|
27494
27553
|
/**
|
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": "17c72f0738cccf74"
|
|
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.328"
|
|
20
20
|
}
|