chrome-types 0.1.300 → 0.1.302

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 +52 -2
  2. package/index.d.ts +52 -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 Mon Aug 19 2024 22:32:28 GMT+0000 (Coordinated Universal Time)
18
- // Built at 468cfe614c11a9ca78d8a8e82a7e6510c88fc235
17
+ // Generated on Sat Sep 07 2024 22:31:52 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 218dfceeb37976e28272a0bad6d095fc909f0838
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -207,6 +207,17 @@ declare namespace chrome {
207
207
  isOnToolbar: boolean;
208
208
  }
209
209
 
210
+ /**
211
+ * @since Pending
212
+ */
213
+ export interface UserSettingsChange {
214
+
215
+ /**
216
+ * Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user).
217
+ */
218
+ isOnToolbar?: boolean;
219
+ }
220
+
210
221
  /**
211
222
  * @since Chrome 99
212
223
  */
@@ -225,6 +236,15 @@ declare namespace chrome {
225
236
  tab: tabs.Tab,
226
237
  ) => void>;
227
238
 
239
+ /**
240
+ * Fired when user-specified settings relating to an extension's action change.
241
+ *
242
+ * @since Pending
243
+ */
244
+ export const onUserSettingsChanged: events.Event<(
245
+ change: UserSettingsChange,
246
+ ) => void>;
247
+
228
248
  /**
229
249
  * Sets the title of the action. This shows up in the tooltip.
230
250
  */
@@ -6867,6 +6887,13 @@ declare namespace chrome {
6867
6887
  * The top-level site the partitioned cookie is available in.
6868
6888
  */
6869
6889
  topLevelSite?: string;
6890
+
6891
+ /**
6892
+ * Indicates if the cookie was set in a cross-cross site context. This prevents a top-level site embedded in a cross-site context from accessing cookies set by the top-level site in a same-site context.
6893
+ *
6894
+ * @since Pending
6895
+ */
6896
+ hasCrossSiteAncestor?: boolean;
6870
6897
  }
6871
6898
 
6872
6899
  /**
@@ -28339,6 +28366,29 @@ declare namespace chrome {
28339
28366
  ) => void,
28340
28367
  ): void;
28341
28368
 
28369
+ /**
28370
+ * Gets all keys from storage.
28371
+ *
28372
+ * @since Pending
28373
+ */
28374
+ getKeys(): Promise<string[]>;
28375
+
28376
+ /**
28377
+ * Gets all keys from storage.
28378
+ *
28379
+ * @param callback Callback with storage keys, or on failure (in which case {@link runtime.lastError} will be set).
28380
+ * @since Pending
28381
+ */
28382
+ getKeys(
28383
+
28384
+ /**
28385
+ * @param keys Array with keys read from storage.
28386
+ */
28387
+ callback?: (
28388
+ keys: string[],
28389
+ ) => void,
28390
+ ): void;
28391
+
28342
28392
  /**
28343
28393
  * Gets the amount of space (in bytes) being used by one or more items.
28344
28394
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Mon Aug 19 2024 22:32:23 GMT+0000 (Coordinated Universal Time)
18
- // Built at 468cfe614c11a9ca78d8a8e82a7e6510c88fc235
17
+ // Generated on Sat Sep 07 2024 22:31:47 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 218dfceeb37976e28272a0bad6d095fc909f0838
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -265,6 +265,17 @@ declare namespace chrome {
265
265
  isOnToolbar: boolean;
266
266
  }
267
267
 
268
+ /**
269
+ * @since Pending
270
+ */
271
+ export interface UserSettingsChange {
272
+
273
+ /**
274
+ * Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user).
275
+ */
276
+ isOnToolbar?: boolean;
277
+ }
278
+
268
279
  /**
269
280
  * @since Chrome 99
270
281
  */
@@ -283,6 +294,15 @@ declare namespace chrome {
283
294
  tab: tabs.Tab,
284
295
  ) => void>;
285
296
 
297
+ /**
298
+ * Fired when user-specified settings relating to an extension's action change.
299
+ *
300
+ * @since Pending
301
+ */
302
+ export const onUserSettingsChanged: events.Event<(
303
+ change: UserSettingsChange,
304
+ ) => void>;
305
+
286
306
  /**
287
307
  * Sets the title of the action. This shows up in the tooltip.
288
308
  */
@@ -3613,6 +3633,13 @@ declare namespace chrome {
3613
3633
  * The top-level site the partitioned cookie is available in.
3614
3634
  */
3615
3635
  topLevelSite?: string;
3636
+
3637
+ /**
3638
+ * Indicates if the cookie was set in a cross-cross site context. This prevents a top-level site embedded in a cross-site context from accessing cookies set by the top-level site in a same-site context.
3639
+ *
3640
+ * @since Pending
3641
+ */
3642
+ hasCrossSiteAncestor?: boolean;
3616
3643
  }
3617
3644
 
3618
3645
  /**
@@ -21811,6 +21838,29 @@ declare namespace chrome {
21811
21838
  ) => void,
21812
21839
  ): void;
21813
21840
 
21841
+ /**
21842
+ * Gets all keys from storage.
21843
+ *
21844
+ * @since Pending
21845
+ */
21846
+ getKeys(): Promise<string[]>;
21847
+
21848
+ /**
21849
+ * Gets all keys from storage.
21850
+ *
21851
+ * @param callback Callback with storage keys, or on failure (in which case {@link runtime.lastError} will be set).
21852
+ * @since Pending
21853
+ */
21854
+ getKeys(
21855
+
21856
+ /**
21857
+ * @param keys Array with keys read from storage.
21858
+ */
21859
+ callback?: (
21860
+ keys: string[],
21861
+ ) => void,
21862
+ ): void;
21863
+
21814
21864
  /**
21815
21865
  * Gets the amount of space (in bytes) being used by one or more items.
21816
21866
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "132711f0aa46ed86"
8
+ "build-hash": "78274e6c67807cd9"
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.300"
19
+ "version": "0.1.302"
20
20
  }