chrome-types 0.1.149 → 0.1.151
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 +71 -3
- package/index.d.ts +71 -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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue Nov 22 2022 22:31:08 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 5220e2b954a14017eb44362e55580fbe5a15b3b5
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -533,6 +533,74 @@ declare namespace chrome {
|
|
|
533
533
|
) => void,
|
|
534
534
|
): void;
|
|
535
535
|
|
|
536
|
+
/**
|
|
537
|
+
* Sets the text color for the badge.
|
|
538
|
+
*
|
|
539
|
+
* @since Pending
|
|
540
|
+
*/
|
|
541
|
+
export function setBadgeTextColor(
|
|
542
|
+
|
|
543
|
+
details: {
|
|
544
|
+
|
|
545
|
+
/**
|
|
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`. 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.
|
|
547
|
+
*/
|
|
548
|
+
color: string | browserAction.ColorArray,
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
552
|
+
*/
|
|
553
|
+
tabId?: number,
|
|
554
|
+
},
|
|
555
|
+
): Promise<void>;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Sets the text color for the badge.
|
|
559
|
+
*
|
|
560
|
+
* @since Pending
|
|
561
|
+
*/
|
|
562
|
+
export function setBadgeTextColor(
|
|
563
|
+
|
|
564
|
+
details: {
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* 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.
|
|
568
|
+
*/
|
|
569
|
+
color: string | browserAction.ColorArray,
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
573
|
+
*/
|
|
574
|
+
tabId?: number,
|
|
575
|
+
},
|
|
576
|
+
|
|
577
|
+
callback?: () => void,
|
|
578
|
+
): void;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Gets the text color of the action.
|
|
582
|
+
*
|
|
583
|
+
* @since Pending
|
|
584
|
+
*/
|
|
585
|
+
export function getBadgeTextColor(
|
|
586
|
+
|
|
587
|
+
details: TabDetails,
|
|
588
|
+
): Promise<browserAction.ColorArray>;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Gets the text color of the action.
|
|
592
|
+
*
|
|
593
|
+
* @since Pending
|
|
594
|
+
*/
|
|
595
|
+
export function getBadgeTextColor(
|
|
596
|
+
|
|
597
|
+
details: TabDetails,
|
|
598
|
+
|
|
599
|
+
callback?: (
|
|
600
|
+
result: browserAction.ColorArray,
|
|
601
|
+
) => void,
|
|
602
|
+
): void;
|
|
603
|
+
|
|
536
604
|
/**
|
|
537
605
|
* Enables the action for a tab. By default, actions are enabled.
|
|
538
606
|
*
|
|
@@ -23478,7 +23546,7 @@ declare namespace chrome {
|
|
|
23478
23546
|
): void;
|
|
23479
23547
|
|
|
23480
23548
|
/**
|
|
23481
|
-
* Attempts to connect
|
|
23549
|
+
* Attempts to connect listeners within an extension/app (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable). Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via {@link tabs.connect}.
|
|
23482
23550
|
*
|
|
23483
23551
|
* @param extensionId The ID of the extension or app to connect to. If omitted, a connection will be attempted with your own extension. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
|
|
23484
23552
|
* @returns Port through which messages can be sent and received. The port's {@link Port onDisconnect} event is fired if the extension/app does not exist.
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Tue Nov
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue Nov 22 2022 22:31:03 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 5220e2b954a14017eb44362e55580fbe5a15b3b5
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -591,6 +591,74 @@ declare namespace chrome {
|
|
|
591
591
|
) => void,
|
|
592
592
|
): void;
|
|
593
593
|
|
|
594
|
+
/**
|
|
595
|
+
* Sets the text color for the badge.
|
|
596
|
+
*
|
|
597
|
+
* @since Pending
|
|
598
|
+
*/
|
|
599
|
+
export function setBadgeTextColor(
|
|
600
|
+
|
|
601
|
+
details: {
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* 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.
|
|
605
|
+
*/
|
|
606
|
+
color: string | browserAction.ColorArray,
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
610
|
+
*/
|
|
611
|
+
tabId?: number,
|
|
612
|
+
},
|
|
613
|
+
): Promise<void>;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Sets the text color for the badge.
|
|
617
|
+
*
|
|
618
|
+
* @since Pending
|
|
619
|
+
*/
|
|
620
|
+
export function setBadgeTextColor(
|
|
621
|
+
|
|
622
|
+
details: {
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* 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.
|
|
626
|
+
*/
|
|
627
|
+
color: string | browserAction.ColorArray,
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.
|
|
631
|
+
*/
|
|
632
|
+
tabId?: number,
|
|
633
|
+
},
|
|
634
|
+
|
|
635
|
+
callback?: () => void,
|
|
636
|
+
): void;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Gets the text color of the action.
|
|
640
|
+
*
|
|
641
|
+
* @since Pending
|
|
642
|
+
*/
|
|
643
|
+
export function getBadgeTextColor(
|
|
644
|
+
|
|
645
|
+
details: TabDetails,
|
|
646
|
+
): Promise<browserAction.ColorArray>;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Gets the text color of the action.
|
|
650
|
+
*
|
|
651
|
+
* @since Pending
|
|
652
|
+
*/
|
|
653
|
+
export function getBadgeTextColor(
|
|
654
|
+
|
|
655
|
+
details: TabDetails,
|
|
656
|
+
|
|
657
|
+
callback?: (
|
|
658
|
+
result: browserAction.ColorArray,
|
|
659
|
+
) => void,
|
|
660
|
+
): void;
|
|
661
|
+
|
|
594
662
|
/**
|
|
595
663
|
* Enables the action for a tab. By default, actions are enabled.
|
|
596
664
|
*
|
|
@@ -18348,7 +18416,7 @@ declare namespace chrome {
|
|
|
18348
18416
|
): void;
|
|
18349
18417
|
|
|
18350
18418
|
/**
|
|
18351
|
-
* Attempts to connect
|
|
18419
|
+
* Attempts to connect listeners within an extension/app (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable). Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via {@link tabs.connect}.
|
|
18352
18420
|
*
|
|
18353
18421
|
* @param extensionId The ID of the extension or app to connect to. If omitted, a connection will be attempted with your own extension. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
|
|
18354
18422
|
* @returns Port through which messages can be sent and received. The port's {@link Port onDisconnect} event is fired if the extension/app does not exist.
|
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": "1ed48c59bf4093d3"
|
|
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.151"
|
|
20
20
|
}
|