chrome-types 0.1.277 → 0.1.278

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 +26 -3
  2. package/index.d.ts +2 -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 Tue Apr 02 2024 22:30:12 GMT+0000 (Coordinated Universal Time)
18
- // Built at ac0126f433b8d8657775f500649f513a743db0cb
17
+ // Generated on Mon Apr 08 2024 22:30:29 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 79e17af4688d09d94be946412f9d874a7ce5b4cd
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -37406,6 +37406,29 @@ declare namespace chrome {
37406
37406
  deny(): void;
37407
37407
  }
37408
37408
 
37409
+ /**
37410
+ * The type of `request` object which accompanies an `hid` {@link permissionrequest} DOM event.
37411
+ *
37412
+ * @since Pending
37413
+ */
37414
+ export interface HidPermissionRequest {
37415
+
37416
+ /**
37417
+ * The URL of the frame requesting access to the HID API.
37418
+ */
37419
+ url: string;
37420
+
37421
+ /**
37422
+ * Allow the permission request.
37423
+ */
37424
+ allow(): void;
37425
+
37426
+ /**
37427
+ * Deny the permission request. This is the default behavior if `allow` is not called.
37428
+ */
37429
+ deny(): void;
37430
+ }
37431
+
37409
37432
  /**
37410
37433
  * Describes a rectangle in screen coordinates.
37411
37434
  *
@@ -37664,7 +37687,7 @@ declare namespace chrome {
37664
37687
  * ```
37665
37688
  */
37666
37689
  export const permissionrequest: events.Event<(
37667
- permission: "media" | "geolocation" | "pointerLock" | "download" | "loadplugin" | "filesystem" | "fullscreen",
37690
+ permission: "media" | "geolocation" | "pointerLock" | "download" | "loadplugin" | "filesystem" | "fullscreen" | "hid",
37668
37691
  request: {},
37669
37692
  ) => void>;
37670
37693
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Apr 02 2024 22:30:08 GMT+0000 (Coordinated Universal Time)
18
- // Built at ac0126f433b8d8657775f500649f513a743db0cb
17
+ // Generated on Mon Apr 08 2024 22:30:24 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 79e17af4688d09d94be946412f9d874a7ce5b4cd
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "56e5e0424da20a22"
8
+ "build-hash": "b06b960a47fbaa60"
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.277"
19
+ "version": "0.1.278"
20
20
  }