chrome-types 0.1.237 → 0.1.238

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.
Files changed (3) hide show
  1. package/_all.d.ts +38 -2
  2. package/index.d.ts +38 -2
  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 Thu Oct 26 2023 22:32:46 GMT+0000 (Coordinated Universal Time)
18
- // Built at 98bea80fc8be0cf8e3e1fa4503a8cecc99780bc1
17
+ // Generated on Sat Oct 28 2023 22:31:34 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 6bf3344203786387eb1a86b1865b20ee11bd6dbe
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -32624,6 +32624,19 @@ declare namespace chrome {
32624
32624
  ids?: string[];
32625
32625
  }
32626
32626
 
32627
+ export interface WorldProperties {
32628
+
32629
+ /**
32630
+ * Specifies the world csp. The default is the `` `ISOLATED` `` world csp.
32631
+ */
32632
+ csp?: string;
32633
+
32634
+ /**
32635
+ * Specifies whether messaging APIs are exposed. The default is `false`.
32636
+ */
32637
+ messaging?: boolean;
32638
+ }
32639
+
32627
32640
  /**
32628
32641
  * Registers one or more user scripts for this extension.
32629
32642
  *
@@ -32717,6 +32730,29 @@ declare namespace chrome {
32717
32730
 
32718
32731
  callback?: () => void,
32719
32732
  ): void;
32733
+
32734
+ /**
32735
+ * Configures the `` `USER_SCRIPT` `` execution environment.
32736
+ *
32737
+ * @param properties Contains the user script world configuration.
32738
+ */
32739
+ export function configureWorld(
32740
+
32741
+ properties: WorldProperties,
32742
+ ): Promise<void>;
32743
+
32744
+ /**
32745
+ * Configures the `` `USER_SCRIPT` `` execution environment.
32746
+ *
32747
+ * @param properties Contains the user script world configuration.
32748
+ * @param callback Called once world hase been configured.
32749
+ */
32750
+ export function configureWorld(
32751
+
32752
+ properties: WorldProperties,
32753
+
32754
+ callback?: () => void,
32755
+ ): void;
32720
32756
  }
32721
32757
 
32722
32758
  /**
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Thu Oct 26 2023 22:32:39 GMT+0000 (Coordinated Universal Time)
18
- // Built at 98bea80fc8be0cf8e3e1fa4503a8cecc99780bc1
17
+ // Generated on Sat Oct 28 2023 22:31:27 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 6bf3344203786387eb1a86b1865b20ee11bd6dbe
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -25496,6 +25496,19 @@ declare namespace chrome {
25496
25496
  ids?: string[];
25497
25497
  }
25498
25498
 
25499
+ export interface WorldProperties {
25500
+
25501
+ /**
25502
+ * Specifies the world csp. The default is the `` `ISOLATED` `` world csp.
25503
+ */
25504
+ csp?: string;
25505
+
25506
+ /**
25507
+ * Specifies whether messaging APIs are exposed. The default is `false`.
25508
+ */
25509
+ messaging?: boolean;
25510
+ }
25511
+
25499
25512
  /**
25500
25513
  * Registers one or more user scripts for this extension.
25501
25514
  *
@@ -25589,6 +25602,29 @@ declare namespace chrome {
25589
25602
 
25590
25603
  callback?: () => void,
25591
25604
  ): void;
25605
+
25606
+ /**
25607
+ * Configures the `` `USER_SCRIPT` `` execution environment.
25608
+ *
25609
+ * @param properties Contains the user script world configuration.
25610
+ */
25611
+ export function configureWorld(
25612
+
25613
+ properties: WorldProperties,
25614
+ ): Promise<void>;
25615
+
25616
+ /**
25617
+ * Configures the `` `USER_SCRIPT` `` execution environment.
25618
+ *
25619
+ * @param properties Contains the user script world configuration.
25620
+ * @param callback Called once world hase been configured.
25621
+ */
25622
+ export function configureWorld(
25623
+
25624
+ properties: WorldProperties,
25625
+
25626
+ callback?: () => void,
25627
+ ): void;
25592
25628
  }
25593
25629
 
25594
25630
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "ba22beeb66e811aa"
8
+ "build-hash": "c1110e653cde7695"
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.237"
19
+ "version": "0.1.238"
20
20
  }