chrome-types 0.1.139 → 0.1.141
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 +81 -3
- package/index.d.ts +81 -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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Fri Oct 21 2022 22:30:12 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 78090b3d041b11319fb81a9cb504b58c5d449a3d
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -579,6 +579,35 @@ declare namespace chrome {
|
|
|
579
579
|
callback?: () => void,
|
|
580
580
|
): void;
|
|
581
581
|
|
|
582
|
+
/**
|
|
583
|
+
* Retrieves the state of whether the extension action is enabled for a tab (or globally if no tab is provided).
|
|
584
|
+
*
|
|
585
|
+
* @param tabId The id of the tab for which you want check enabled status.
|
|
586
|
+
* @since Pending
|
|
587
|
+
*/
|
|
588
|
+
export function isEnabled(
|
|
589
|
+
|
|
590
|
+
tabId?: number,
|
|
591
|
+
): Promise<boolean>;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Retrieves the state of whether the extension action is enabled for a tab (or globally if no tab is provided).
|
|
595
|
+
*
|
|
596
|
+
* @param tabId The id of the tab for which you want check enabled status.
|
|
597
|
+
* @since Pending
|
|
598
|
+
*/
|
|
599
|
+
export function isEnabled(
|
|
600
|
+
|
|
601
|
+
tabId?: number,
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @param isEnabled True if the extension action is enabled.
|
|
605
|
+
*/
|
|
606
|
+
callback?: (
|
|
607
|
+
isEnabled: boolean,
|
|
608
|
+
) => void,
|
|
609
|
+
): void;
|
|
610
|
+
|
|
582
611
|
/**
|
|
583
612
|
* Returns the user-specified settings relating to an extension's action.
|
|
584
613
|
*
|
|
@@ -13471,6 +13500,55 @@ declare namespace chrome {
|
|
|
13471
13500
|
): void;
|
|
13472
13501
|
}
|
|
13473
13502
|
|
|
13503
|
+
/**
|
|
13504
|
+
* `file_handlers` manifest key defintion. File Handlers allow developers to let extensions interact with files on the operating system. This manifest key can be used by developers to register an extension to a given file type.
|
|
13505
|
+
*
|
|
13506
|
+
* @since Pending
|
|
13507
|
+
*/
|
|
13508
|
+
export namespace fileHandlers {
|
|
13509
|
+
|
|
13510
|
+
export interface Icon {
|
|
13511
|
+
|
|
13512
|
+
/**
|
|
13513
|
+
* URL from which a user agent can fetch image data.
|
|
13514
|
+
*/
|
|
13515
|
+
src: string;
|
|
13516
|
+
|
|
13517
|
+
/**
|
|
13518
|
+
* Multiple space-separated size values to also accommodate image formats that can act as containers for multiple images of varying dimensions: e.g. "16x16", "16x16 32x32".
|
|
13519
|
+
*/
|
|
13520
|
+
sizes?: string;
|
|
13521
|
+
|
|
13522
|
+
/**
|
|
13523
|
+
* MIME type is purely advisory with no default value.
|
|
13524
|
+
*/
|
|
13525
|
+
type?: string;
|
|
13526
|
+
}
|
|
13527
|
+
|
|
13528
|
+
export interface FileHandler {
|
|
13529
|
+
|
|
13530
|
+
/**
|
|
13531
|
+
* Specifies the url after the origin that is the navigation destination for file handling launches.
|
|
13532
|
+
*/
|
|
13533
|
+
action: string;
|
|
13534
|
+
|
|
13535
|
+
/**
|
|
13536
|
+
* Description of the file type.
|
|
13537
|
+
*/
|
|
13538
|
+
name: string;
|
|
13539
|
+
|
|
13540
|
+
/**
|
|
13541
|
+
* Array of ImageResources.
|
|
13542
|
+
*/
|
|
13543
|
+
icons?: Icon[];
|
|
13544
|
+
|
|
13545
|
+
/**
|
|
13546
|
+
* Whether multiple files should be opened in a single client or multiple. Defaults to \`single-client\`.
|
|
13547
|
+
*/
|
|
13548
|
+
launch_type?: string;
|
|
13549
|
+
}
|
|
13550
|
+
}
|
|
13551
|
+
|
|
13474
13552
|
/**
|
|
13475
13553
|
* Use the `chrome.fileSystem` API to create, read, navigate, and write to the user's local file system. With this API, Chrome Apps can read and write to a user-selected location. For example, a text editor app can use the API to read and write local documents. All failures are notified via chrome.runtime.lastError.
|
|
13476
13554
|
*
|
|
@@ -32432,7 +32510,7 @@ declare namespace chrome {
|
|
|
32432
32510
|
}
|
|
32433
32511
|
|
|
32434
32512
|
/**
|
|
32435
|
-
* A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/
|
|
32513
|
+
* A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/main/docs/user\_data\_dir.md#default-location).
|
|
32436
32514
|
*
|
|
32437
32515
|
* The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
|
|
32438
32516
|
*
|
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 Oct 21 2022 22:30:07 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 78090b3d041b11319fb81a9cb504b58c5d449a3d
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -637,6 +637,35 @@ declare namespace chrome {
|
|
|
637
637
|
callback?: () => void,
|
|
638
638
|
): void;
|
|
639
639
|
|
|
640
|
+
/**
|
|
641
|
+
* Retrieves the state of whether the extension action is enabled for a tab (or globally if no tab is provided).
|
|
642
|
+
*
|
|
643
|
+
* @param tabId The id of the tab for which you want check enabled status.
|
|
644
|
+
* @since Pending
|
|
645
|
+
*/
|
|
646
|
+
export function isEnabled(
|
|
647
|
+
|
|
648
|
+
tabId?: number,
|
|
649
|
+
): Promise<boolean>;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Retrieves the state of whether the extension action is enabled for a tab (or globally if no tab is provided).
|
|
653
|
+
*
|
|
654
|
+
* @param tabId The id of the tab for which you want check enabled status.
|
|
655
|
+
* @since Pending
|
|
656
|
+
*/
|
|
657
|
+
export function isEnabled(
|
|
658
|
+
|
|
659
|
+
tabId?: number,
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* @param isEnabled True if the extension action is enabled.
|
|
663
|
+
*/
|
|
664
|
+
callback?: (
|
|
665
|
+
isEnabled: boolean,
|
|
666
|
+
) => void,
|
|
667
|
+
): void;
|
|
668
|
+
|
|
640
669
|
/**
|
|
641
670
|
* Returns the user-specified settings relating to an extension's action.
|
|
642
671
|
*
|
|
@@ -9523,6 +9552,55 @@ declare namespace chrome {
|
|
|
9523
9552
|
): void;
|
|
9524
9553
|
}
|
|
9525
9554
|
|
|
9555
|
+
/**
|
|
9556
|
+
* `file_handlers` manifest key defintion. File Handlers allow developers to let extensions interact with files on the operating system. This manifest key can be used by developers to register an extension to a given file type.
|
|
9557
|
+
*
|
|
9558
|
+
* @since Pending
|
|
9559
|
+
*/
|
|
9560
|
+
export namespace fileHandlers {
|
|
9561
|
+
|
|
9562
|
+
export interface Icon {
|
|
9563
|
+
|
|
9564
|
+
/**
|
|
9565
|
+
* URL from which a user agent can fetch image data.
|
|
9566
|
+
*/
|
|
9567
|
+
src: string;
|
|
9568
|
+
|
|
9569
|
+
/**
|
|
9570
|
+
* Multiple space-separated size values to also accommodate image formats that can act as containers for multiple images of varying dimensions: e.g. "16x16", "16x16 32x32".
|
|
9571
|
+
*/
|
|
9572
|
+
sizes?: string;
|
|
9573
|
+
|
|
9574
|
+
/**
|
|
9575
|
+
* MIME type is purely advisory with no default value.
|
|
9576
|
+
*/
|
|
9577
|
+
type?: string;
|
|
9578
|
+
}
|
|
9579
|
+
|
|
9580
|
+
export interface FileHandler {
|
|
9581
|
+
|
|
9582
|
+
/**
|
|
9583
|
+
* Specifies the url after the origin that is the navigation destination for file handling launches.
|
|
9584
|
+
*/
|
|
9585
|
+
action: string;
|
|
9586
|
+
|
|
9587
|
+
/**
|
|
9588
|
+
* Description of the file type.
|
|
9589
|
+
*/
|
|
9590
|
+
name: string;
|
|
9591
|
+
|
|
9592
|
+
/**
|
|
9593
|
+
* Array of ImageResources.
|
|
9594
|
+
*/
|
|
9595
|
+
icons?: Icon[];
|
|
9596
|
+
|
|
9597
|
+
/**
|
|
9598
|
+
* Whether multiple files should be opened in a single client or multiple. Defaults to \`single-client\`.
|
|
9599
|
+
*/
|
|
9600
|
+
launch_type?: string;
|
|
9601
|
+
}
|
|
9602
|
+
}
|
|
9603
|
+
|
|
9526
9604
|
/**
|
|
9527
9605
|
* Use the `chrome.fileSystemProvider` API to create file systems, that can be accessible from the file manager on Chrome OS.
|
|
9528
9606
|
*
|
|
@@ -25640,7 +25718,7 @@ declare namespace chrome {
|
|
|
25640
25718
|
}
|
|
25641
25719
|
|
|
25642
25720
|
/**
|
|
25643
|
-
* A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/
|
|
25721
|
+
* A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/main/docs/user\_data\_dir.md#default-location).
|
|
25644
25722
|
*
|
|
25645
25723
|
* The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
|
|
25646
25724
|
*
|
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": "53c932fabca5e5b8"
|
|
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.141"
|
|
20
20
|
}
|