devtools-protocol 0.0.1146363 → 0.0.1147663

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.
@@ -2829,6 +2829,36 @@
2829
2829
  "description": "Value range in the underlying resource (if available).",
2830
2830
  "optional": true,
2831
2831
  "$ref": "SourceRange"
2832
+ },
2833
+ {
2834
+ "name": "specificity",
2835
+ "description": "Specificity of the selector.",
2836
+ "experimental": true,
2837
+ "optional": true,
2838
+ "$ref": "Specificity"
2839
+ }
2840
+ ]
2841
+ },
2842
+ {
2843
+ "id": "Specificity",
2844
+ "description": "Specificity:\nhttps://drafts.csswg.org/selectors/#specificity-rules",
2845
+ "experimental": true,
2846
+ "type": "object",
2847
+ "properties": [
2848
+ {
2849
+ "name": "a",
2850
+ "description": "The a component, which represents the number of ID selectors.",
2851
+ "type": "integer"
2852
+ },
2853
+ {
2854
+ "name": "b",
2855
+ "description": "The b component, which represents the number of class selectors, attributes selectors, and\npseudo-classes.",
2856
+ "type": "integer"
2857
+ },
2858
+ {
2859
+ "name": "c",
2860
+ "description": "The c component, which represents the number of type selectors and pseudo-elements.",
2861
+ "type": "integer"
2832
2862
  }
2833
2863
  ]
2834
2864
  },
@@ -4390,6 +4420,9 @@
4390
4420
  {
4391
4421
  "domain": "CacheStorage",
4392
4422
  "experimental": true,
4423
+ "dependencies": [
4424
+ "Storage"
4425
+ ],
4393
4426
  "types": [
4394
4427
  {
4395
4428
  "id": "CacheId",
@@ -4482,6 +4515,12 @@
4482
4515
  "description": "Storage key of the cache.",
4483
4516
  "type": "string"
4484
4517
  },
4518
+ {
4519
+ "name": "storageBucket",
4520
+ "description": "Storage bucket of the cache.",
4521
+ "optional": true,
4522
+ "$ref": "Storage.StorageBucket"
4523
+ },
4485
4524
  {
4486
4525
  "name": "cacheName",
4487
4526
  "description": "The name of the cache.",
@@ -4550,7 +4589,7 @@
4550
4589
  "parameters": [
4551
4590
  {
4552
4591
  "name": "securityOrigin",
4553
- "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
4592
+ "description": "At least and at most one of securityOrigin, storageKey, storageBucket must be specified.\nSecurity origin.",
4554
4593
  "optional": true,
4555
4594
  "type": "string"
4556
4595
  },
@@ -4559,6 +4598,12 @@
4559
4598
  "description": "Storage key.",
4560
4599
  "optional": true,
4561
4600
  "type": "string"
4601
+ },
4602
+ {
4603
+ "name": "storageBucket",
4604
+ "description": "Storage bucket. If not specified, it uses the default bucket.",
4605
+ "optional": true,
4606
+ "$ref": "Storage.StorageBucket"
4562
4607
  }
4563
4608
  ],
4564
4609
  "returns": [
@@ -20064,6 +20109,11 @@
20064
20109
  "description": "Storage key to update.",
20065
20110
  "type": "string"
20066
20111
  },
20112
+ {
20113
+ "name": "bucketId",
20114
+ "description": "Storage bucket to update.",
20115
+ "type": "string"
20116
+ },
20067
20117
  {
20068
20118
  "name": "cacheName",
20069
20119
  "description": "Name of cache in origin.",
@@ -20084,6 +20134,11 @@
20084
20134
  "name": "storageKey",
20085
20135
  "description": "Storage key to update.",
20086
20136
  "type": "string"
20137
+ },
20138
+ {
20139
+ "name": "bucketId",
20140
+ "description": "Storage bucket to update.",
20141
+ "type": "string"
20087
20142
  }
20088
20143
  ]
20089
20144
  },
@@ -23269,17 +23324,6 @@
23269
23324
  "MemoryPressureAfterTriggered"
23270
23325
  ]
23271
23326
  },
23272
- {
23273
- "id": "PreloadEnabledState",
23274
- "type": "string",
23275
- "enum": [
23276
- "Enabled",
23277
- "DisabledByDataSaver",
23278
- "DisabledByBatterySaver",
23279
- "DisabledByPreference",
23280
- "NotSupported"
23281
- ]
23282
- },
23283
23327
  {
23284
23328
  "id": "PreloadingStatus",
23285
23329
  "description": "Preloading status values, see also PreloadingTriggeringOutcome. This\nstatus is shared by prefetchStatusUpdated and prerenderStatusUpdated.",
@@ -23393,8 +23437,16 @@
23393
23437
  "description": "Fired when a preload enabled state is updated.",
23394
23438
  "parameters": [
23395
23439
  {
23396
- "name": "state",
23397
- "$ref": "PreloadEnabledState"
23440
+ "name": "disabledByPreference",
23441
+ "type": "boolean"
23442
+ },
23443
+ {
23444
+ "name": "disabledByDataSaver",
23445
+ "type": "boolean"
23446
+ },
23447
+ {
23448
+ "name": "disabledByBatterySaver",
23449
+ "type": "boolean"
23398
23450
  }
23399
23451
  ]
23400
23452
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1146363",
3
+ "version": "0.0.1147663",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1382,6 +1382,20 @@ experimental domain CSS
1382
1382
  string text
1383
1383
  # Value range in the underlying resource (if available).
1384
1384
  optional SourceRange range
1385
+ # Specificity of the selector.
1386
+ experimental optional Specificity specificity
1387
+
1388
+ # Specificity:
1389
+ # https://drafts.csswg.org/selectors/#specificity-rules
1390
+ experimental type Specificity extends object
1391
+ properties
1392
+ # The a component, which represents the number of ID selectors.
1393
+ integer a
1394
+ # The b component, which represents the number of class selectors, attributes selectors, and
1395
+ # pseudo-classes.
1396
+ integer b
1397
+ # The c component, which represents the number of type selectors and pseudo-elements.
1398
+ integer c
1385
1399
 
1386
1400
  # Selector list data.
1387
1401
  type SelectorList extends object
@@ -2047,6 +2061,7 @@ experimental domain CSS
2047
2061
  StyleSheetId styleSheetId
2048
2062
 
2049
2063
  experimental domain CacheStorage
2064
+ depends on Storage
2050
2065
 
2051
2066
  # Unique identifier of the Cache object.
2052
2067
  type CacheId extends string
@@ -2090,6 +2105,8 @@ experimental domain CacheStorage
2090
2105
  string securityOrigin
2091
2106
  # Storage key of the cache.
2092
2107
  string storageKey
2108
+ # Storage bucket of the cache.
2109
+ optional Storage.StorageBucket storageBucket
2093
2110
  # The name of the cache.
2094
2111
  string cacheName
2095
2112
 
@@ -2121,11 +2138,13 @@ experimental domain CacheStorage
2121
2138
  # Requests cache names.
2122
2139
  command requestCacheNames
2123
2140
  parameters
2124
- # At least and at most one of securityOrigin, storageKey must be specified.
2141
+ # At least and at most one of securityOrigin, storageKey, storageBucket must be specified.
2125
2142
  # Security origin.
2126
2143
  optional string securityOrigin
2127
2144
  # Storage key.
2128
2145
  optional string storageKey
2146
+ # Storage bucket. If not specified, it uses the default bucket.
2147
+ optional Storage.StorageBucket storageBucket
2129
2148
  returns
2130
2149
  # Caches for the security origin.
2131
2150
  array of Cache caches
@@ -9432,6 +9451,8 @@ experimental domain Storage
9432
9451
  string origin
9433
9452
  # Storage key to update.
9434
9453
  string storageKey
9454
+ # Storage bucket to update.
9455
+ string bucketId
9435
9456
  # Name of cache in origin.
9436
9457
  string cacheName
9437
9458
 
@@ -9442,6 +9463,8 @@ experimental domain Storage
9442
9463
  string origin
9443
9464
  # Storage key to update.
9444
9465
  string storageKey
9466
+ # Storage bucket to update.
9467
+ string bucketId
9445
9468
 
9446
9469
  # The origin's IndexedDB object store has been modified.
9447
9470
  event indexedDBContentUpdated
@@ -11024,19 +11047,12 @@ experimental domain Preload
11024
11047
  # that is incompatible with prerender and has caused the cancellation of the attempt
11025
11048
  optional string disallowedApiMethod
11026
11049
 
11027
- type PreloadEnabledState extends string
11028
- enum
11029
- Enabled
11030
- DisabledByDataSaver
11031
- DisabledByBatterySaver
11032
- DisabledByPreference
11033
- # Service not available.
11034
- NotSupported
11035
-
11036
11050
  # Fired when a preload enabled state is updated.
11037
11051
  event preloadEnabledStateUpdated
11038
11052
  parameters
11039
- PreloadEnabledState state
11053
+ boolean disabledByPreference
11054
+ boolean disabledByDataSaver
11055
+ boolean disabledByBatterySaver
11040
11056
 
11041
11057
  # Preloading status values, see also PreloadingTriggeringOutcome. This
11042
11058
  # status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
@@ -4234,6 +4234,30 @@ export namespace Protocol {
4234
4234
  * Value range in the underlying resource (if available).
4235
4235
  */
4236
4236
  range?: SourceRange;
4237
+ /**
4238
+ * Specificity of the selector.
4239
+ */
4240
+ specificity?: Specificity;
4241
+ }
4242
+
4243
+ /**
4244
+ * Specificity:
4245
+ * https://drafts.csswg.org/selectors/#specificity-rules
4246
+ */
4247
+ export interface Specificity {
4248
+ /**
4249
+ * The a component, which represents the number of ID selectors.
4250
+ */
4251
+ a: integer;
4252
+ /**
4253
+ * The b component, which represents the number of class selectors, attributes selectors, and
4254
+ * pseudo-classes.
4255
+ */
4256
+ b: integer;
4257
+ /**
4258
+ * The c component, which represents the number of type selectors and pseudo-elements.
4259
+ */
4260
+ c: integer;
4237
4261
  }
4238
4262
 
4239
4263
  /**
@@ -5329,6 +5353,10 @@ export namespace Protocol {
5329
5353
  * Storage key of the cache.
5330
5354
  */
5331
5355
  storageKey: string;
5356
+ /**
5357
+ * Storage bucket of the cache.
5358
+ */
5359
+ storageBucket?: Storage.StorageBucket;
5332
5360
  /**
5333
5361
  * The name of the cache.
5334
5362
  */
@@ -5370,7 +5398,7 @@ export namespace Protocol {
5370
5398
 
5371
5399
  export interface RequestCacheNamesRequest {
5372
5400
  /**
5373
- * At least and at most one of securityOrigin, storageKey must be specified.
5401
+ * At least and at most one of securityOrigin, storageKey, storageBucket must be specified.
5374
5402
  * Security origin.
5375
5403
  */
5376
5404
  securityOrigin?: string;
@@ -5378,6 +5406,10 @@ export namespace Protocol {
5378
5406
  * Storage key.
5379
5407
  */
5380
5408
  storageKey?: string;
5409
+ /**
5410
+ * Storage bucket. If not specified, it uses the default bucket.
5411
+ */
5412
+ storageBucket?: Storage.StorageBucket;
5381
5413
  }
5382
5414
 
5383
5415
  export interface RequestCacheNamesResponse {
@@ -15158,6 +15190,10 @@ export namespace Protocol {
15158
15190
  * Storage key to update.
15159
15191
  */
15160
15192
  storageKey: string;
15193
+ /**
15194
+ * Storage bucket to update.
15195
+ */
15196
+ bucketId: string;
15161
15197
  /**
15162
15198
  * Name of cache in origin.
15163
15199
  */
@@ -15176,6 +15212,10 @@ export namespace Protocol {
15176
15212
  * Storage key to update.
15177
15213
  */
15178
15214
  storageKey: string;
15215
+ /**
15216
+ * Storage bucket to update.
15217
+ */
15218
+ bucketId: string;
15179
15219
  }
15180
15220
 
15181
15221
  /**
@@ -17167,8 +17207,6 @@ export namespace Protocol {
17167
17207
  */
17168
17208
  export type PrerenderFinalStatus = ('Activated' | 'Destroyed' | 'LowEndDevice' | 'InvalidSchemeRedirect' | 'InvalidSchemeNavigation' | 'InProgressNavigation' | 'NavigationRequestBlockedByCsp' | 'MainFrameNavigation' | 'MojoBinderPolicy' | 'RendererProcessCrashed' | 'RendererProcessKilled' | 'Download' | 'TriggerDestroyed' | 'NavigationNotCommitted' | 'NavigationBadHttpStatus' | 'ClientCertRequested' | 'NavigationRequestNetworkError' | 'MaxNumOfRunningPrerendersExceeded' | 'CancelAllHostsForTesting' | 'DidFailLoad' | 'Stop' | 'SslCertificateError' | 'LoginAuthRequested' | 'UaChangeRequiresReload' | 'BlockedByClient' | 'AudioOutputDeviceRequested' | 'MixedContent' | 'TriggerBackgrounded' | 'EmbedderTriggeredAndCrossOriginRedirected' | 'MemoryLimitExceeded' | 'FailToGetMemoryUsage' | 'DataSaverEnabled' | 'HasEffectiveUrl' | 'ActivatedBeforeStarted' | 'InactivePageRestriction' | 'StartFailed' | 'TimeoutBackgrounded' | 'CrossSiteRedirectInInitialNavigation' | 'CrossSiteNavigationInInitialNavigation' | 'SameSiteCrossOriginRedirectNotOptInInInitialNavigation' | 'SameSiteCrossOriginNavigationNotOptInInInitialNavigation' | 'ActivationNavigationParameterMismatch' | 'ActivatedInBackground' | 'EmbedderHostDisallowed' | 'ActivationNavigationDestroyedBeforeSuccess' | 'TabClosedByUserGesture' | 'TabClosedWithoutUserGesture' | 'PrimaryMainFrameRendererProcessCrashed' | 'PrimaryMainFrameRendererProcessKilled' | 'ActivationFramePolicyNotCompatible' | 'PreloadingDisabled' | 'BatterySaverEnabled' | 'ActivatedDuringMainFrameNavigation' | 'PreloadingUnsupportedByWebContents' | 'CrossSiteRedirectInMainFrameNavigation' | 'CrossSiteNavigationInMainFrameNavigation' | 'SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation' | 'SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation' | 'MemoryPressureOnTrigger' | 'MemoryPressureAfterTriggered');
17169
17209
 
17170
- export type PreloadEnabledState = ('Enabled' | 'DisabledByDataSaver' | 'DisabledByBatterySaver' | 'DisabledByPreference' | 'NotSupported');
17171
-
17172
17210
  /**
17173
17211
  * Preloading status values, see also PreloadingTriggeringOutcome. This
17174
17212
  * status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
@@ -17214,7 +17252,9 @@ export namespace Protocol {
17214
17252
  * Fired when a preload enabled state is updated.
17215
17253
  */
17216
17254
  export interface PreloadEnabledStateUpdatedEvent {
17217
- state: PreloadEnabledState;
17255
+ disabledByPreference: boolean;
17256
+ disabledByDataSaver: boolean;
17257
+ disabledByBatterySaver: boolean;
17218
17258
  }
17219
17259
 
17220
17260
  /**