@types/chrome 0.0.227 → 0.0.228

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +16 -0
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 29 Mar 2023 16:33:07 GMT
11
+ * Last updated: Mon, 03 Apr 2023 18:33:22 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
  * Global values: `chrome`
14
14
 
chrome/index.d.ts CHANGED
@@ -10546,8 +10546,16 @@ declare namespace chrome.webNavigation {
10546
10546
  export interface GetFrameResultDetails {
10547
10547
  /** The URL currently associated with this frame, if the frame identified by the frameId existed at one point in the given tab. The fact that an URL is associated with a given frameId does not imply that the corresponding frame still exists. */
10548
10548
  url: string;
10549
+ /** A UUID of the document loaded. */
10550
+ documentId: string;
10551
+ /** The lifecycle the document is in. */
10552
+ documentLifecycle: "prerender" | "active" | "cached" | "pending_deletion";
10549
10553
  /** True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired. */
10550
10554
  errorOccurred: boolean;
10555
+ /** The type of frame the navigation occurred in. */
10556
+ frameType: "outermost_frame" | "fenced_frame" | "sub_frame";
10557
+ /** A UUID of the parent document owning this frame. This is not set if there is no parent. */
10558
+ parentDocumentId?: string | undefined;
10551
10559
  /** ID of frame that wraps the frame. Set to -1 of no parent frame exists. */
10552
10560
  parentFrameId: number;
10553
10561
  }
@@ -10583,6 +10591,14 @@ declare namespace chrome.webNavigation {
10583
10591
  export interface WebNavigationFramedCallbackDetails extends WebNavigationUrlCallbackDetails {
10584
10592
  /** 0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique for a given tab and process. */
10585
10593
  frameId: number;
10594
+ /** The type of frame the navigation occurred in. */
10595
+ frameType: "outermost_frame" | "fenced_frame" | "sub_frame";
10596
+ /** A UUID of the document loaded. (This is not set for onBeforeNavigate callbacks.) */
10597
+ documentId?: string | undefined;
10598
+ /** The lifecycle the document is in. */
10599
+ documentLifecycle: "prerender" | "active" | "cached" | "pending_deletion";
10600
+ /** A UUID of the parent document owning this frame. This is not set if there is no parent. */
10601
+ parentDocumentId?: string | undefined;
10586
10602
  /**
10587
10603
  * The ID of the process runs the renderer for this tab.
10588
10604
  * @since Chrome 22.
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.227",
3
+ "version": "0.0.228",
4
4
  "description": "TypeScript definitions for Chrome extension development",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -93,6 +93,6 @@
93
93
  "@types/filesystem": "*",
94
94
  "@types/har-format": "*"
95
95
  },
96
- "typesPublisherContentHash": "b26234ae73e8db17ff390aa67f6c0f27d176b5ed25a562c4ea728735fa49dfbf",
96
+ "typesPublisherContentHash": "8b74a4d0a766094ef68e1c62ce3972f2098b491a029a4c41b04a3e1f7f53b5d9",
97
97
  "typeScriptVersion": "4.3"
98
98
  }