chrome-types 0.1.263 → 0.1.264

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 +6 -12
  2. package/index.d.ts +6 -12
  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 Sat Feb 10 2024 22:27:44 GMT+0000 (Coordinated Universal Time)
18
- // Built at bed6501a3f04072f9522d4f56e76404b6260216b
17
+ // Generated on Mon Feb 12 2024 22:29:59 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 91e574de90af79aabdcb9670a3565eafc8da2756
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -6001,15 +6001,6 @@ declare namespace chrome {
6001
6001
  */
6002
6002
  export namespace contentScripts {
6003
6003
 
6004
- /**
6005
- * The stage in the document lifecycle when the javascript file is injected.
6006
- *
6007
- * @chrome-enum "document\_idle" The browser chooses a time to inject scripts between "document\_end" and immediately after the window.onload event fires. The exact moment of injection depends on how complex the document is and how long it is taking to load, and is optimized for page load speed. Content scripts running at "document\_idle" do not need to listen for the window.onload event; they are guaranteed to run after the DOM is complete. If a script definitely needs to run after window.onload, the extension can check if onload has already fired by using the document.readyState property.
6008
- * @chrome-enum "document\_start" Scripts are injected after any files from css, but before any other DOM is constructed or any other script is run.
6009
- * @chrome-enum "document\_end" Scripts are injected immediately after the DOM is complete, but before subresources like images and frames have loaded.
6010
- */
6011
- export type RunAt = "document_idle" | "document_start" | "document_end";
6012
-
6013
6004
  export interface ContentScript {
6014
6005
 
6015
6006
  /**
@@ -6062,7 +6053,7 @@ declare namespace chrome {
6062
6053
  /**
6063
6054
  * Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
6064
6055
  */
6065
- run_at?: RunAt;
6056
+ run_at?: extensionTypes.RunAt;
6066
6057
  }
6067
6058
  }
6068
6059
 
@@ -12390,6 +12381,9 @@ declare namespace chrome {
12390
12381
  /**
12391
12382
  * The soonest that the JavaScript or CSS will be injected into the tab.
12392
12383
  *
12384
+ * @chrome-enum "document\_start" Script is injected after any files from css, but before any other DOM is constructed or any other script is run.
12385
+ * @chrome-enum "document\_end" Script is injected immediately after the DOM is complete, but before subresources like images and frames have loaded.
12386
+ * @chrome-enum "document\_idle" The browser chooses a time to inject the script between "document\_end" and immediately after the window.onload event fires. The exact moment of injection depends on how complex the document is and how long it is taking to load, and is optimized for page load speed. Content scripts running at "document\_idle" do not need to listen for the window.onload event; they are guaranteed to run after the DOM is complete. If a script definitely needs to run after window.onload, the extension can check if onload has already fired by using the document.readyState property.
12393
12387
  * @since Chrome 44
12394
12388
  */
12395
12389
  export type RunAt = "document_start" | "document_end" | "document_idle";
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Feb 10 2024 22:27:39 GMT+0000 (Coordinated Universal Time)
18
- // Built at bed6501a3f04072f9522d4f56e76404b6260216b
17
+ // Generated on Mon Feb 12 2024 22:29:54 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 91e574de90af79aabdcb9670a3565eafc8da2756
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -2747,15 +2747,6 @@ declare namespace chrome {
2747
2747
  */
2748
2748
  export namespace contentScripts {
2749
2749
 
2750
- /**
2751
- * The stage in the document lifecycle when the javascript file is injected.
2752
- *
2753
- * @chrome-enum "document\_idle" The browser chooses a time to inject scripts between "document\_end" and immediately after the window.onload event fires. The exact moment of injection depends on how complex the document is and how long it is taking to load, and is optimized for page load speed. Content scripts running at "document\_idle" do not need to listen for the window.onload event; they are guaranteed to run after the DOM is complete. If a script definitely needs to run after window.onload, the extension can check if onload has already fired by using the document.readyState property.
2754
- * @chrome-enum "document\_start" Scripts are injected after any files from css, but before any other DOM is constructed or any other script is run.
2755
- * @chrome-enum "document\_end" Scripts are injected immediately after the DOM is complete, but before subresources like images and frames have loaded.
2756
- */
2757
- export type RunAt = "document_idle" | "document_start" | "document_end";
2758
-
2759
2750
  export interface ContentScript {
2760
2751
 
2761
2752
  /**
@@ -2808,7 +2799,7 @@ declare namespace chrome {
2808
2799
  /**
2809
2800
  * Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
2810
2801
  */
2811
- run_at?: RunAt;
2802
+ run_at?: extensionTypes.RunAt;
2812
2803
  }
2813
2804
  }
2814
2805
 
@@ -8386,6 +8377,9 @@ declare namespace chrome {
8386
8377
  /**
8387
8378
  * The soonest that the JavaScript or CSS will be injected into the tab.
8388
8379
  *
8380
+ * @chrome-enum "document\_start" Script is injected after any files from css, but before any other DOM is constructed or any other script is run.
8381
+ * @chrome-enum "document\_end" Script is injected immediately after the DOM is complete, but before subresources like images and frames have loaded.
8382
+ * @chrome-enum "document\_idle" The browser chooses a time to inject the script between "document\_end" and immediately after the window.onload event fires. The exact moment of injection depends on how complex the document is and how long it is taking to load, and is optimized for page load speed. Content scripts running at "document\_idle" do not need to listen for the window.onload event; they are guaranteed to run after the DOM is complete. If a script definitely needs to run after window.onload, the extension can check if onload has already fired by using the document.readyState property.
8389
8383
  * @since Chrome 44
8390
8384
  */
8391
8385
  export type RunAt = "document_start" | "document_end" | "document_idle";
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "7b9ad915b95393b2"
8
+ "build-hash": "17dca98fdc56fc03"
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.263"
19
+ "version": "0.1.264"
20
20
  }