chrome-types 0.1.352 → 0.1.353
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.
- package/_all.d.ts +30 -25
- package/index.d.ts +24 -12
- 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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Fri May 30 2025 14:28:33 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at f3c1029454d8d2c2db74c6816d9cb0a7436aa3b6
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -317,7 +317,7 @@ declare namespace chrome {
|
|
|
317
317
|
/**
|
|
318
318
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
319
319
|
*/
|
|
320
|
-
imageData?:
|
|
320
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
323
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -341,7 +341,7 @@ declare namespace chrome {
|
|
|
341
341
|
/**
|
|
342
342
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
343
343
|
*/
|
|
344
|
-
imageData?:
|
|
344
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
347
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -487,7 +487,7 @@ declare namespace chrome {
|
|
|
487
487
|
/**
|
|
488
488
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
489
489
|
*/
|
|
490
|
-
color: string |
|
|
490
|
+
color: string | extensionTypes.ColorArray,
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -506,7 +506,7 @@ declare namespace chrome {
|
|
|
506
506
|
/**
|
|
507
507
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
508
508
|
*/
|
|
509
|
-
color: string |
|
|
509
|
+
color: string | extensionTypes.ColorArray,
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
512
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -523,7 +523,7 @@ declare namespace chrome {
|
|
|
523
523
|
export function getBadgeBackgroundColor(
|
|
524
524
|
|
|
525
525
|
details: TabDetails,
|
|
526
|
-
): Promise<
|
|
526
|
+
): Promise<extensionTypes.ColorArray>;
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* Gets the background color of the action.
|
|
@@ -533,7 +533,7 @@ declare namespace chrome {
|
|
|
533
533
|
details: TabDetails,
|
|
534
534
|
|
|
535
535
|
callback?: (
|
|
536
|
-
result:
|
|
536
|
+
result: extensionTypes.ColorArray,
|
|
537
537
|
) => void,
|
|
538
538
|
): void;
|
|
539
539
|
|
|
@@ -549,7 +549,7 @@ declare namespace chrome {
|
|
|
549
549
|
/**
|
|
550
550
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
551
551
|
*/
|
|
552
|
-
color: string |
|
|
552
|
+
color: string | extensionTypes.ColorArray,
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
555
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -570,7 +570,7 @@ declare namespace chrome {
|
|
|
570
570
|
/**
|
|
571
571
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
572
572
|
*/
|
|
573
|
-
color: string |
|
|
573
|
+
color: string | extensionTypes.ColorArray,
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
576
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -589,7 +589,7 @@ declare namespace chrome {
|
|
|
589
589
|
export function getBadgeTextColor(
|
|
590
590
|
|
|
591
591
|
details: TabDetails,
|
|
592
|
-
): Promise<
|
|
592
|
+
): Promise<extensionTypes.ColorArray>;
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* Gets the text color of the action.
|
|
@@ -601,7 +601,7 @@ declare namespace chrome {
|
|
|
601
601
|
details: TabDetails,
|
|
602
602
|
|
|
603
603
|
callback?: (
|
|
604
|
-
result:
|
|
604
|
+
result: extensionTypes.ColorArray,
|
|
605
605
|
) => void,
|
|
606
606
|
): void;
|
|
607
607
|
|
|
@@ -4507,13 +4507,6 @@ declare namespace chrome {
|
|
|
4507
4507
|
*/
|
|
4508
4508
|
export namespace browserAction {
|
|
4509
4509
|
|
|
4510
|
-
export type ColorArray = [number, number, number, number];
|
|
4511
|
-
|
|
4512
|
-
/**
|
|
4513
|
-
* Pixel data for an image. Must be an ImageData object; for example, from a `canvas` element.
|
|
4514
|
-
*/
|
|
4515
|
-
export type ImageDataType = ImageData;
|
|
4516
|
-
|
|
4517
4510
|
/**
|
|
4518
4511
|
* @since Chrome 88
|
|
4519
4512
|
*/
|
|
@@ -4611,7 +4604,7 @@ declare namespace chrome {
|
|
|
4611
4604
|
/**
|
|
4612
4605
|
* Either an ImageData object or a dictionary {size -> ImageData} representing an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
4613
4606
|
*/
|
|
4614
|
-
imageData?: ImageDataType | {[name: string]: any},
|
|
4607
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
4615
4608
|
|
|
4616
4609
|
/**
|
|
4617
4610
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -4635,7 +4628,7 @@ declare namespace chrome {
|
|
|
4635
4628
|
/**
|
|
4636
4629
|
* Either an ImageData object or a dictionary {size -> ImageData} representing an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
4637
4630
|
*/
|
|
4638
|
-
imageData?: ImageDataType | {[name: string]: any},
|
|
4631
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
4639
4632
|
|
|
4640
4633
|
/**
|
|
4641
4634
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to an icon to be set. If the icon is specified as a dictionary, the image used is chosen depending on the screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then an image with size `scale` \* n is selected, where _n_ is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -4797,7 +4790,7 @@ declare namespace chrome {
|
|
|
4797
4790
|
/**
|
|
4798
4791
|
* An array of four integers in the range 0-255 that make up the RGBA color of the badge. Can also be a string with a CSS hex color value; for example, `#FF0000` or `#F00` (red). Renders colors at full opacity.
|
|
4799
4792
|
*/
|
|
4800
|
-
color: string | ColorArray,
|
|
4793
|
+
color: string | extensionTypes.ColorArray,
|
|
4801
4794
|
|
|
4802
4795
|
/**
|
|
4803
4796
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -4816,7 +4809,7 @@ declare namespace chrome {
|
|
|
4816
4809
|
/**
|
|
4817
4810
|
* An array of four integers in the range 0-255 that make up the RGBA color of the badge. Can also be a string with a CSS hex color value; for example, `#FF0000` or `#F00` (red). Renders colors at full opacity.
|
|
4818
4811
|
*/
|
|
4819
|
-
color: string | ColorArray,
|
|
4812
|
+
color: string | extensionTypes.ColorArray,
|
|
4820
4813
|
|
|
4821
4814
|
/**
|
|
4822
4815
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -4838,7 +4831,7 @@ declare namespace chrome {
|
|
|
4838
4831
|
export function getBadgeBackgroundColor(
|
|
4839
4832
|
|
|
4840
4833
|
details: TabDetails,
|
|
4841
|
-
): Promise<ColorArray>;
|
|
4834
|
+
): Promise<extensionTypes.ColorArray>;
|
|
4842
4835
|
|
|
4843
4836
|
/**
|
|
4844
4837
|
* Gets the background color of the browser action.
|
|
@@ -4848,7 +4841,7 @@ declare namespace chrome {
|
|
|
4848
4841
|
details: TabDetails,
|
|
4849
4842
|
|
|
4850
4843
|
callback?: (
|
|
4851
|
-
result: ColorArray,
|
|
4844
|
+
result: extensionTypes.ColorArray,
|
|
4852
4845
|
) => void,
|
|
4853
4846
|
): void;
|
|
4854
4847
|
|
|
@@ -13398,6 +13391,18 @@ declare namespace chrome {
|
|
|
13398
13391
|
*/
|
|
13399
13392
|
export namespace extensionTypes {
|
|
13400
13393
|
|
|
13394
|
+
/**
|
|
13395
|
+
* @since Pending
|
|
13396
|
+
*/
|
|
13397
|
+
export type ColorArray = [number, number, number, number];
|
|
13398
|
+
|
|
13399
|
+
/**
|
|
13400
|
+
* Pixel data for an image. Must be an ImageData object; for example, from a `canvas` element.
|
|
13401
|
+
*
|
|
13402
|
+
* @since Pending
|
|
13403
|
+
*/
|
|
13404
|
+
export type ImageDataType = ImageData;
|
|
13405
|
+
|
|
13401
13406
|
/**
|
|
13402
13407
|
* The format of an image.
|
|
13403
13408
|
*
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Fri May 30 2025 14:28:28 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at f3c1029454d8d2c2db74c6816d9cb0a7436aa3b6
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -375,7 +375,7 @@ declare namespace chrome {
|
|
|
375
375
|
/**
|
|
376
376
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
377
377
|
*/
|
|
378
|
-
imageData?:
|
|
378
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
381
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -399,7 +399,7 @@ declare namespace chrome {
|
|
|
399
399
|
/**
|
|
400
400
|
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
401
401
|
*/
|
|
402
|
-
imageData?:
|
|
402
|
+
imageData?: extensionTypes.ImageDataType | {[name: string]: any},
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
@@ -545,7 +545,7 @@ declare namespace chrome {
|
|
|
545
545
|
/**
|
|
546
546
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
547
547
|
*/
|
|
548
|
-
color: string |
|
|
548
|
+
color: string | extensionTypes.ColorArray,
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -564,7 +564,7 @@ declare namespace chrome {
|
|
|
564
564
|
/**
|
|
565
565
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`.
|
|
566
566
|
*/
|
|
567
|
-
color: string |
|
|
567
|
+
color: string | extensionTypes.ColorArray,
|
|
568
568
|
|
|
569
569
|
/**
|
|
570
570
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -581,7 +581,7 @@ declare namespace chrome {
|
|
|
581
581
|
export function getBadgeBackgroundColor(
|
|
582
582
|
|
|
583
583
|
details: TabDetails,
|
|
584
|
-
): Promise<
|
|
584
|
+
): Promise<extensionTypes.ColorArray>;
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* Gets the background color of the action.
|
|
@@ -591,7 +591,7 @@ declare namespace chrome {
|
|
|
591
591
|
details: TabDetails,
|
|
592
592
|
|
|
593
593
|
callback?: (
|
|
594
|
-
result:
|
|
594
|
+
result: extensionTypes.ColorArray,
|
|
595
595
|
) => void,
|
|
596
596
|
): void;
|
|
597
597
|
|
|
@@ -607,7 +607,7 @@ declare namespace chrome {
|
|
|
607
607
|
/**
|
|
608
608
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
609
609
|
*/
|
|
610
|
-
color: string |
|
|
610
|
+
color: string | extensionTypes.ColorArray,
|
|
611
611
|
|
|
612
612
|
/**
|
|
613
613
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -628,7 +628,7 @@ declare namespace chrome {
|
|
|
628
628
|
/**
|
|
629
629
|
* An array of four integers in the range \[0,255\] that make up the RGBA color of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a string with a CSS value, with opaque red being `#FF0000` or `#F00`. Not setting this value will cause a color to be automatically chosen that will contrast with the badge's background color so the text will be visible. Colors with alpha values equivalent to 0 will not be set and will return an error.
|
|
630
630
|
*/
|
|
631
|
-
color: string |
|
|
631
|
+
color: string | extensionTypes.ColorArray,
|
|
632
632
|
|
|
633
633
|
/**
|
|
634
634
|
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
@@ -647,7 +647,7 @@ declare namespace chrome {
|
|
|
647
647
|
export function getBadgeTextColor(
|
|
648
648
|
|
|
649
649
|
details: TabDetails,
|
|
650
|
-
): Promise<
|
|
650
|
+
): Promise<extensionTypes.ColorArray>;
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
653
|
* Gets the text color of the action.
|
|
@@ -659,7 +659,7 @@ declare namespace chrome {
|
|
|
659
659
|
details: TabDetails,
|
|
660
660
|
|
|
661
661
|
callback?: (
|
|
662
|
-
result:
|
|
662
|
+
result: extensionTypes.ColorArray,
|
|
663
663
|
) => void,
|
|
664
664
|
): void;
|
|
665
665
|
|
|
@@ -9407,6 +9407,18 @@ declare namespace chrome {
|
|
|
9407
9407
|
*/
|
|
9408
9408
|
export namespace extensionTypes {
|
|
9409
9409
|
|
|
9410
|
+
/**
|
|
9411
|
+
* @since Pending
|
|
9412
|
+
*/
|
|
9413
|
+
export type ColorArray = [number, number, number, number];
|
|
9414
|
+
|
|
9415
|
+
/**
|
|
9416
|
+
* Pixel data for an image. Must be an ImageData object; for example, from a `canvas` element.
|
|
9417
|
+
*
|
|
9418
|
+
* @since Pending
|
|
9419
|
+
*/
|
|
9420
|
+
export type ImageDataType = ImageData;
|
|
9421
|
+
|
|
9410
9422
|
/**
|
|
9411
9423
|
* The format of an image.
|
|
9412
9424
|
*
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "7e5dd444ae8761d7"
|
|
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.
|
|
19
|
+
"version": "0.1.353"
|
|
20
20
|
}
|