chrome-types 0.1.73 → 0.1.74

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 +18 -4
  2. package/index.d.ts +18 -4
  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 Tue Nov 30 2021 22:30:35 GMT+0000 (Coordinated Universal Time)
18
- // Built at 31f0caa685a9d6e1b75493e13c7e501cdd4ca980
17
+ // Generated on Wed Dec 15 2021 22:29:07 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 3b76b1d66afc55f20ba6462f45fbafd2d3d026d6
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -12589,6 +12589,13 @@ declare namespace chrome {
12589
12589
  windowId?: number,
12590
12590
  ): Window[];
12591
12591
 
12592
+ /**
12593
+ * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
12594
+ *
12595
+ * @chrome-returns-extra since Pending
12596
+ */
12597
+ export function isAllowedIncognitoAccess(): Promise<boolean>;
12598
+
12592
12599
  /**
12593
12600
  * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
12594
12601
  */
@@ -12597,11 +12604,18 @@ declare namespace chrome {
12597
12604
  /**
12598
12605
  * @param isAllowedAccess True if the extension has access to Incognito mode, false otherwise.
12599
12606
  */
12600
- callback: (
12607
+ callback?: (
12601
12608
  isAllowedAccess: boolean,
12602
12609
  ) => void,
12603
12610
  ): void;
12604
12611
 
12612
+ /**
12613
+ * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
12614
+ *
12615
+ * @chrome-returns-extra since Pending
12616
+ */
12617
+ export function isAllowedFileSchemeAccess(): Promise<boolean>;
12618
+
12605
12619
  /**
12606
12620
  * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
12607
12621
  */
@@ -12610,7 +12624,7 @@ declare namespace chrome {
12610
12624
  /**
12611
12625
  * @param isAllowedAccess True if the extension can access the 'file://' scheme, false otherwise.
12612
12626
  */
12613
- callback: (
12627
+ callback?: (
12614
12628
  isAllowedAccess: boolean,
12615
12629
  ) => void,
12616
12630
  ): void;
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Nov 30 2021 22:30:29 GMT+0000 (Coordinated Universal Time)
18
- // Built at 31f0caa685a9d6e1b75493e13c7e501cdd4ca980
17
+ // Generated on Wed Dec 15 2021 22:29:01 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 3b76b1d66afc55f20ba6462f45fbafd2d3d026d6
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -8455,6 +8455,13 @@ declare namespace chrome {
8455
8455
  */
8456
8456
  export function getBackgroundPage(): Window | undefined;
8457
8457
 
8458
+ /**
8459
+ * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
8460
+ *
8461
+ * @chrome-returns-extra since Pending
8462
+ */
8463
+ export function isAllowedIncognitoAccess(): Promise<boolean>;
8464
+
8458
8465
  /**
8459
8466
  * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
8460
8467
  */
@@ -8463,11 +8470,18 @@ declare namespace chrome {
8463
8470
  /**
8464
8471
  * @param isAllowedAccess True if the extension has access to Incognito mode, false otherwise.
8465
8472
  */
8466
- callback: (
8473
+ callback?: (
8467
8474
  isAllowedAccess: boolean,
8468
8475
  ) => void,
8469
8476
  ): void;
8470
8477
 
8478
+ /**
8479
+ * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
8480
+ *
8481
+ * @chrome-returns-extra since Pending
8482
+ */
8483
+ export function isAllowedFileSchemeAccess(): Promise<boolean>;
8484
+
8471
8485
  /**
8472
8486
  * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
8473
8487
  */
@@ -8476,7 +8490,7 @@ declare namespace chrome {
8476
8490
  /**
8477
8491
  * @param isAllowedAccess True if the extension can access the 'file://' scheme, false otherwise.
8478
8492
  */
8479
- callback: (
8493
+ callback?: (
8480
8494
  isAllowedAccess: boolean,
8481
8495
  ) => void,
8482
8496
  ): void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "70ec3a15fa5e165a"
8
+ "build-hash": "5dbc01a35996ed47"
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.73"
19
+ "version": "0.1.74"
20
20
  }