chrome-types 0.1.212 → 0.1.214

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 +56 -4
  2. package/index.d.ts +55 -3
  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 Wed Jul 05 2023 22:30:03 GMT+0000 (Coordinated Universal Time)
18
- // Built at 8865557ecede3b4453b00383983870bcdeb75ed3
17
+ // Generated on Tue Jul 11 2023 22:32:55 GMT+0000 (Coordinated Universal Time)
18
+ // Built at cf44bf2d2bf94d518e1bf0a12a05fe26640edb3e
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -6636,7 +6636,7 @@ declare namespace chrome {
6636
6636
  visible?: boolean,
6637
6637
 
6638
6638
  /**
6639
- * A function that is called back when the menu item is clicked. Event pages cannot use this; instead, they should register a listener for {@link contextMenus.onClicked}.
6639
+ * A function that is called back when the menu item is clicked. This is not available inside of a service worker; instead, they should register a listener for {@link contextMenus.onClicked}.
6640
6640
  *
6641
6641
  * @param info Information about the item clicked and the context where the click happened.
6642
6642
  * @param tab The details of the tab where the click took place. This parameter is not present for platform apps.
@@ -22464,6 +22464,58 @@ declare namespace chrome {
22464
22464
  ) => void>;
22465
22465
  }
22466
22466
 
22467
+ /**
22468
+ * Use the `chrome.readingList` API to read from and modify the items in the Reading List.
22469
+ *
22470
+ * @alpha
22471
+ * @chrome-permission readingList
22472
+ * @chrome-channel trunk
22473
+ * @chrome-min-manifest MV3
22474
+ */
22475
+ export namespace readingList {
22476
+
22477
+ export interface ReadingListEntry {
22478
+
22479
+ /**
22480
+ * The url of the entry.
22481
+ */
22482
+ url: string;
22483
+
22484
+ /**
22485
+ * The title of the entry.
22486
+ */
22487
+ title: string;
22488
+
22489
+ /**
22490
+ * True if the entry has been read.
22491
+ */
22492
+ hasBeenRead: boolean;
22493
+ }
22494
+
22495
+ /**
22496
+ * Adds an entry to the reading list if it does not exist.
22497
+ *
22498
+ * @param entry The entry to add to the reading list.
22499
+ */
22500
+ export function addEntry(
22501
+
22502
+ entry: ReadingListEntry,
22503
+ ): Promise<void>;
22504
+
22505
+ /**
22506
+ * Adds an entry to the reading list if it does not exist.
22507
+ *
22508
+ * @param entry The entry to add to the reading list.
22509
+ * @param callback Invoked once the entry has been added.
22510
+ */
22511
+ export function addEntry(
22512
+
22513
+ entry: ReadingListEntry,
22514
+
22515
+ callback?: () => void,
22516
+ ): void;
22517
+ }
22518
+
22467
22519
  /**
22468
22520
  * Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
22469
22521
  */
@@ -22758,7 +22810,7 @@ declare namespace chrome {
22758
22810
  }
22759
22811
 
22760
22812
  /**
22761
- * This will be defined during an API method callback if there was an error
22813
+ * Populated with an error message if calling an API function fails; otherwise undefined. This is only defined within the scope of that function's callback. If an error is produced, but `runtime.lastError` is not accessed within the callback, a message is logged to the console listing the API function that produced the error. API functions that return promises do not set this property.
22762
22814
  */
22763
22815
  export let lastError: {
22764
22816
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed Jul 05 2023 22:29:58 GMT+0000 (Coordinated Universal Time)
18
- // Built at 8865557ecede3b4453b00383983870bcdeb75ed3
17
+ // Generated on Tue Jul 11 2023 22:32:48 GMT+0000 (Coordinated Universal Time)
18
+ // Built at cf44bf2d2bf94d518e1bf0a12a05fe26640edb3e
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -3382,7 +3382,7 @@ declare namespace chrome {
3382
3382
  visible?: boolean,
3383
3383
 
3384
3384
  /**
3385
- * A function that is called back when the menu item is clicked. Event pages cannot use this; instead, they should register a listener for {@link contextMenus.onClicked}.
3385
+ * A function that is called back when the menu item is clicked. This is not available inside of a service worker; instead, they should register a listener for {@link contextMenus.onClicked}.
3386
3386
  *
3387
3387
  * @param info Information about the item clicked and the context where the click happened.
3388
3388
  * @param tab The details of the tab where the click took place. This parameter is not present for platform apps.
@@ -17228,6 +17228,58 @@ declare namespace chrome {
17228
17228
  ) => void>;
17229
17229
  }
17230
17230
 
17231
+ /**
17232
+ * Use the `chrome.readingList` API to read from and modify the items in the Reading List.
17233
+ *
17234
+ * @alpha
17235
+ * @chrome-permission readingList
17236
+ * @chrome-channel trunk
17237
+ * @chrome-min-manifest MV3
17238
+ */
17239
+ export namespace readingList {
17240
+
17241
+ export interface ReadingListEntry {
17242
+
17243
+ /**
17244
+ * The url of the entry.
17245
+ */
17246
+ url: string;
17247
+
17248
+ /**
17249
+ * The title of the entry.
17250
+ */
17251
+ title: string;
17252
+
17253
+ /**
17254
+ * True if the entry has been read.
17255
+ */
17256
+ hasBeenRead: boolean;
17257
+ }
17258
+
17259
+ /**
17260
+ * Adds an entry to the reading list if it does not exist.
17261
+ *
17262
+ * @param entry The entry to add to the reading list.
17263
+ */
17264
+ export function addEntry(
17265
+
17266
+ entry: ReadingListEntry,
17267
+ ): Promise<void>;
17268
+
17269
+ /**
17270
+ * Adds an entry to the reading list if it does not exist.
17271
+ *
17272
+ * @param entry The entry to add to the reading list.
17273
+ * @param callback Invoked once the entry has been added.
17274
+ */
17275
+ export function addEntry(
17276
+
17277
+ entry: ReadingListEntry,
17278
+
17279
+ callback?: () => void,
17280
+ ): void;
17281
+ }
17282
+
17231
17283
  /**
17232
17284
  * Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
17233
17285
  */
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "8cf834ad0c5e1d04"
8
+ "build-hash": "fde133ceb9e86557"
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.212"
19
+ "version": "0.1.214"
20
20
  }