chrome-types 0.1.283 → 0.1.285

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 +40 -3
  2. package/index.d.ts +40 -3
  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 08 2024 22:30:18 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9977a0679ac0d596c660a7680d5bad888280380f
17
+ // Generated on Fri May 24 2024 22:30:32 GMT+0000 (Coordinated Universal Time)
18
+ // Built at fe6dfcb7ba4fdb66ed5de07ab11a398307bffe49
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -6054,6 +6054,13 @@ declare namespace chrome {
6054
6054
  * Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
6055
6055
  */
6056
6056
  run_at?: extensionTypes.RunAt;
6057
+
6058
+ /**
6059
+ * The JavaScript "world" to run the script in. Defaults to `ISOLATED`. Only available in Manifest V3 extensions.
6060
+ *
6061
+ * @since Chrome 111
6062
+ */
6063
+ world?: extensionTypes.ExecutionWorld;
6057
6064
  }
6058
6065
  }
6059
6066
 
@@ -7403,7 +7410,7 @@ declare namespace chrome {
7403
7410
  }
7404
7411
 
7405
7412
  /**
7406
- * The `chrome.debugger` API serves as an alternate transport for Chrome's [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol). Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the Debuggee `tabId` to target tabs with sendCommand and route events by `tabId` from onEvent callbacks.
7413
+ * The `chrome.debugger` API serves as an alternate transport for Chrome's [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol). Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, and more. Use the {@link Debuggee} property `tabId` to target tabs with `sendCommand` and route events by `tabId` from `onEvent` callbacks.
7407
7414
  *
7408
7415
  * @chrome-permission debugger
7409
7416
  */
@@ -13243,6 +13250,13 @@ declare namespace chrome {
13243
13250
  * @since Chrome 106
13244
13251
  */
13245
13252
  export type DocumentLifecycle = "prerender" | "active" | "cached" | "pending_deletion";
13253
+
13254
+ /**
13255
+ * The JavaScript world for a script to execute within. Can either be an isolated world unique to this extension, the main world of the DOM which is shared with the page's JavaScript, or a user scripts world that is only available for scripts registered with the User Scripts API.
13256
+ *
13257
+ * @since Chrome 111
13258
+ */
13259
+ export type ExecutionWorld = "ISOLATED" | "MAIN" | "USER_SCRIPT";
13246
13260
  }
13247
13261
 
13248
13262
  /**
@@ -16392,6 +16406,29 @@ declare namespace chrome {
16392
16406
  ): void;
16393
16407
  }
16394
16408
 
16409
+ /**
16410
+ * Use `iconVariants` for icon declarations with support for color schemes. In addition to these keys, a size key is allowed with a value of the file path to the image.
16411
+ *
16412
+ * @since Pending
16413
+ */
16414
+ export namespace iconVariants {
16415
+
16416
+ export type ColorScheme = "dark" | "light";
16417
+
16418
+ export interface IconVariant {
16419
+
16420
+ /**
16421
+ * Optional DOMString path to an icon that should be used with any possible size.
16422
+ */
16423
+ any?: string;
16424
+
16425
+ /**
16426
+ * Optional ColorScheme.
16427
+ */
16428
+ color_schemes?: ColorScheme[];
16429
+ }
16430
+ }
16431
+
16395
16432
  /**
16396
16433
  * Use the `chrome.identity` API to get OAuth2 access tokens.
16397
16434
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed May 08 2024 22:30:13 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9977a0679ac0d596c660a7680d5bad888280380f
17
+ // Generated on Fri May 24 2024 22:30:27 GMT+0000 (Coordinated Universal Time)
18
+ // Built at fe6dfcb7ba4fdb66ed5de07ab11a398307bffe49
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -2800,6 +2800,13 @@ declare namespace chrome {
2800
2800
  * Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
2801
2801
  */
2802
2802
  run_at?: extensionTypes.RunAt;
2803
+
2804
+ /**
2805
+ * The JavaScript "world" to run the script in. Defaults to `ISOLATED`. Only available in Manifest V3 extensions.
2806
+ *
2807
+ * @since Chrome 111
2808
+ */
2809
+ world?: extensionTypes.ExecutionWorld;
2803
2810
  }
2804
2811
  }
2805
2812
 
@@ -4149,7 +4156,7 @@ declare namespace chrome {
4149
4156
  }
4150
4157
 
4151
4158
  /**
4152
- * The `chrome.debugger` API serves as an alternate transport for Chrome's [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol). Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the Debuggee `tabId` to target tabs with sendCommand and route events by `tabId` from onEvent callbacks.
4159
+ * The `chrome.debugger` API serves as an alternate transport for Chrome's [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol). Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, and more. Use the {@link Debuggee} property `tabId` to target tabs with `sendCommand` and route events by `tabId` from `onEvent` callbacks.
4153
4160
  *
4154
4161
  * @chrome-permission debugger
4155
4162
  */
@@ -9239,6 +9246,13 @@ declare namespace chrome {
9239
9246
  * @since Chrome 106
9240
9247
  */
9241
9248
  export type DocumentLifecycle = "prerender" | "active" | "cached" | "pending_deletion";
9249
+
9250
+ /**
9251
+ * The JavaScript world for a script to execute within. Can either be an isolated world unique to this extension, the main world of the DOM which is shared with the page's JavaScript, or a user scripts world that is only available for scripts registered with the User Scripts API.
9252
+ *
9253
+ * @since Chrome 111
9254
+ */
9255
+ export type ExecutionWorld = "ISOLATED" | "MAIN" | "USER_SCRIPT";
9242
9256
  }
9243
9257
 
9244
9258
  /**
@@ -11763,6 +11777,29 @@ declare namespace chrome {
11763
11777
  ): void;
11764
11778
  }
11765
11779
 
11780
+ /**
11781
+ * Use `iconVariants` for icon declarations with support for color schemes. In addition to these keys, a size key is allowed with a value of the file path to the image.
11782
+ *
11783
+ * @since Pending
11784
+ */
11785
+ export namespace iconVariants {
11786
+
11787
+ export type ColorScheme = "dark" | "light";
11788
+
11789
+ export interface IconVariant {
11790
+
11791
+ /**
11792
+ * Optional DOMString path to an icon that should be used with any possible size.
11793
+ */
11794
+ any?: string;
11795
+
11796
+ /**
11797
+ * Optional ColorScheme.
11798
+ */
11799
+ color_schemes?: ColorScheme[];
11800
+ }
11801
+ }
11802
+
11766
11803
  /**
11767
11804
  * Use the `chrome.identity` API to get OAuth2 access tokens.
11768
11805
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "22909dcf2601dfe2"
8
+ "build-hash": "6811d3d1b3a835d1"
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.283"
19
+ "version": "0.1.285"
20
20
  }