devtools-protocol 0.0.1271979 → 0.0.1273222

Sign up to get free protection for your applications and to get access to all the features.
@@ -4062,6 +4062,7 @@
4062
4062
  {
4063
4063
  "id": "CSSPositionFallbackRule",
4064
4064
  "description": "CSS position-fallback rule representation.",
4065
+ "deprecated": true,
4065
4066
  "type": "object",
4066
4067
  "properties": [
4067
4068
  {
@@ -4078,6 +4079,34 @@
4078
4079
  }
4079
4080
  ]
4080
4081
  },
4082
+ {
4083
+ "id": "CSSPositionTryRule",
4084
+ "description": "CSS @position-try rule representation.",
4085
+ "type": "object",
4086
+ "properties": [
4087
+ {
4088
+ "name": "name",
4089
+ "description": "The prelude dashed-ident name",
4090
+ "$ref": "Value"
4091
+ },
4092
+ {
4093
+ "name": "styleSheetId",
4094
+ "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
4095
+ "optional": true,
4096
+ "$ref": "StyleSheetId"
4097
+ },
4098
+ {
4099
+ "name": "origin",
4100
+ "description": "Parent stylesheet's origin.",
4101
+ "$ref": "StyleSheetOrigin"
4102
+ },
4103
+ {
4104
+ "name": "style",
4105
+ "description": "Associated style declaration.",
4106
+ "$ref": "CSSStyle"
4107
+ }
4108
+ ]
4109
+ },
4081
4110
  {
4082
4111
  "id": "CSSKeyframesRule",
4083
4112
  "description": "CSS keyframes rule representation.",
@@ -4477,12 +4506,22 @@
4477
4506
  {
4478
4507
  "name": "cssPositionFallbackRules",
4479
4508
  "description": "A list of CSS position fallbacks matching this node.",
4509
+ "deprecated": true,
4480
4510
  "optional": true,
4481
4511
  "type": "array",
4482
4512
  "items": {
4483
4513
  "$ref": "CSSPositionFallbackRule"
4484
4514
  }
4485
4515
  },
4516
+ {
4517
+ "name": "cssPositionTryRules",
4518
+ "description": "A list of CSS @position-try rules matching this node, based on the position-try-options property.",
4519
+ "optional": true,
4520
+ "type": "array",
4521
+ "items": {
4522
+ "$ref": "CSSPositionTryRule"
4523
+ }
4524
+ },
4486
4525
  {
4487
4526
  "name": "cssPropertyRules",
4488
4527
  "description": "A list of CSS at-property rules matching this node.",
@@ -4583,6 +4622,30 @@
4583
4622
  }
4584
4623
  ]
4585
4624
  },
4625
+ {
4626
+ "name": "getLocationForSelector",
4627
+ "description": "Given a CSS selector text and a style sheet ID, getLocationForSelector\nreturns an array of locations of the CSS selector in the style sheet.",
4628
+ "experimental": true,
4629
+ "parameters": [
4630
+ {
4631
+ "name": "styleSheetId",
4632
+ "$ref": "StyleSheetId"
4633
+ },
4634
+ {
4635
+ "name": "selectorText",
4636
+ "type": "string"
4637
+ }
4638
+ ],
4639
+ "returns": [
4640
+ {
4641
+ "name": "ranges",
4642
+ "type": "array",
4643
+ "items": {
4644
+ "$ref": "SourceRange"
4645
+ }
4646
+ }
4647
+ ]
4648
+ },
4586
4649
  {
4587
4650
  "name": "trackComputedStyleUpdates",
4588
4651
  "description": "Starts tracking the given computed styles for updates. The specified array of properties\nreplaces the one previously specified. Pass empty array to disable tracking.\nUse takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\nThe changes to computed style properties are only tracked for nodes pushed to the front-end\nby the DOM agent. If no changes to the tracked properties occur after the node has been pushed\nto the front-end, no updates will be issued for the node.",
@@ -20420,6 +20483,7 @@
20420
20483
  "documentAppend",
20421
20484
  "documentDelete",
20422
20485
  "documentClear",
20486
+ "documentGet",
20423
20487
  "workletSet",
20424
20488
  "workletAppend",
20425
20489
  "workletDelete",
@@ -21075,6 +21139,38 @@
21075
21139
  "reportWindowPassed",
21076
21140
  "excessiveReports"
21077
21141
  ]
21142
+ },
21143
+ {
21144
+ "id": "RelatedWebsiteSet",
21145
+ "description": "A single Related Website Set object.",
21146
+ "experimental": true,
21147
+ "type": "object",
21148
+ "properties": [
21149
+ {
21150
+ "name": "primarySites",
21151
+ "description": "The primary site of this set, along with the ccTLDs if there is any.",
21152
+ "type": "array",
21153
+ "items": {
21154
+ "type": "string"
21155
+ }
21156
+ },
21157
+ {
21158
+ "name": "associatedSites",
21159
+ "description": "The associated sites of this set, along with the ccTLDs if there is any.",
21160
+ "type": "array",
21161
+ "items": {
21162
+ "type": "string"
21163
+ }
21164
+ },
21165
+ {
21166
+ "name": "serviceSites",
21167
+ "description": "The service sites of this set, along with the ccTLDs if there is any.",
21168
+ "type": "array",
21169
+ "items": {
21170
+ "type": "string"
21171
+ }
21172
+ }
21173
+ ]
21078
21174
  }
21079
21175
  ],
21080
21176
  "commands": [
@@ -21570,6 +21666,20 @@
21570
21666
  "type": "boolean"
21571
21667
  }
21572
21668
  ]
21669
+ },
21670
+ {
21671
+ "name": "getRelatedWebsiteSets",
21672
+ "description": "Returns the effective Related Website Sets in use by this profile for the browser\nsession. The effective Related Website Sets will not change during a browser session.",
21673
+ "experimental": true,
21674
+ "returns": [
21675
+ {
21676
+ "name": "sets",
21677
+ "type": "array",
21678
+ "items": {
21679
+ "$ref": "RelatedWebsiteSet"
21680
+ }
21681
+ }
21682
+ ]
21573
21683
  }
21574
21684
  ],
21575
21685
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1271979",
3
+ "version": "0.0.1273222",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1944,12 +1944,25 @@ experimental domain CSS
1944
1944
  CSSStyle style
1945
1945
 
1946
1946
  # CSS position-fallback rule representation.
1947
- type CSSPositionFallbackRule extends object
1947
+ deprecated type CSSPositionFallbackRule extends object
1948
1948
  properties
1949
1949
  Value name
1950
1950
  # List of keyframes.
1951
1951
  array of CSSTryRule tryRules
1952
1952
 
1953
+ # CSS @position-try rule representation.
1954
+ type CSSPositionTryRule extends object
1955
+ properties
1956
+ # The prelude dashed-ident name
1957
+ Value name
1958
+ # The css style sheet identifier (absent for user agent stylesheet and user-specified
1959
+ # stylesheet rules) this rule came from.
1960
+ optional StyleSheetId styleSheetId
1961
+ # Parent stylesheet's origin.
1962
+ StyleSheetOrigin origin
1963
+ # Associated style declaration.
1964
+ CSSStyle style
1965
+
1953
1966
  # CSS keyframes rule representation.
1954
1967
  type CSSKeyframesRule extends object
1955
1968
  properties
@@ -2123,7 +2136,9 @@ experimental domain CSS
2123
2136
  # A list of CSS keyframed animations matching this node.
2124
2137
  optional array of CSSKeyframesRule cssKeyframesRules
2125
2138
  # A list of CSS position fallbacks matching this node.
2126
- optional array of CSSPositionFallbackRule cssPositionFallbackRules
2139
+ deprecated optional array of CSSPositionFallbackRule cssPositionFallbackRules
2140
+ # A list of CSS @position-try rules matching this node, based on the position-try-options property.
2141
+ optional array of CSSPositionTryRule cssPositionTryRules
2127
2142
  # A list of CSS at-property rules matching this node.
2128
2143
  optional array of CSSPropertyRule cssPropertyRules
2129
2144
  # A list of CSS property registrations matching this node.
@@ -2165,6 +2180,15 @@ experimental domain CSS
2165
2180
  returns
2166
2181
  CSSLayerData rootLayer
2167
2182
 
2183
+ # Given a CSS selector text and a style sheet ID, getLocationForSelector
2184
+ # returns an array of locations of the CSS selector in the style sheet.
2185
+ experimental command getLocationForSelector
2186
+ parameters
2187
+ StyleSheetId styleSheetId
2188
+ string selectorText
2189
+ returns
2190
+ array of SourceRange ranges
2191
+
2168
2192
  # Starts tracking the given computed styles for updates. The specified array of properties
2169
2193
  # replaces the one previously specified. Pass empty array to disable tracking.
2170
2194
  # Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
@@ -9665,6 +9689,7 @@ experimental domain Storage
9665
9689
  documentAppend
9666
9690
  documentDelete
9667
9691
  documentClear
9692
+ documentGet
9668
9693
  workletSet
9669
9694
  workletAppend
9670
9695
  workletDelete
@@ -10303,6 +10328,22 @@ experimental domain Storage
10303
10328
  AttributionReportingEventLevelResult eventLevel
10304
10329
  AttributionReportingAggregatableResult aggregatable
10305
10330
 
10331
+ # A single Related Website Set object.
10332
+ experimental type RelatedWebsiteSet extends object
10333
+ properties
10334
+ # The primary site of this set, along with the ccTLDs if there is any.
10335
+ array of string primarySites
10336
+ # The associated sites of this set, along with the ccTLDs if there is any.
10337
+ array of string associatedSites
10338
+ # The service sites of this set, along with the ccTLDs if there is any.
10339
+ array of string serviceSites
10340
+
10341
+ # Returns the effective Related Website Sets in use by this profile for the browser
10342
+ # session. The effective Related Website Sets will not change during a browser session.
10343
+ experimental command getRelatedWebsiteSets
10344
+ returns
10345
+ array of RelatedWebsiteSet sets
10346
+
10306
10347
  # The SystemInfo domain defines methods and events for querying low-level system information.
10307
10348
  experimental domain SystemInfo
10308
10349
 
@@ -1780,6 +1780,14 @@ export namespace ProtocolMapping {
1780
1780
  paramsType: [Protocol.CSS.GetLayersForNodeRequest];
1781
1781
  returnType: Protocol.CSS.GetLayersForNodeResponse;
1782
1782
  };
1783
+ /**
1784
+ * Given a CSS selector text and a style sheet ID, getLocationForSelector
1785
+ * returns an array of locations of the CSS selector in the style sheet.
1786
+ */
1787
+ 'CSS.getLocationForSelector': {
1788
+ paramsType: [Protocol.CSS.GetLocationForSelectorRequest];
1789
+ returnType: Protocol.CSS.GetLocationForSelectorResponse;
1790
+ };
1783
1791
  /**
1784
1792
  * Starts tracking the given computed styles for updates. The specified array of properties
1785
1793
  * replaces the one previously specified. Pass empty array to disable tracking.
@@ -4384,6 +4392,14 @@ export namespace ProtocolMapping {
4384
4392
  paramsType: [Protocol.Storage.SetAttributionReportingTrackingRequest];
4385
4393
  returnType: void;
4386
4394
  };
4395
+ /**
4396
+ * Returns the effective Related Website Sets in use by this profile for the browser
4397
+ * session. The effective Related Website Sets will not change during a browser session.
4398
+ */
4399
+ 'Storage.getRelatedWebsiteSets': {
4400
+ paramsType: [];
4401
+ returnType: Protocol.Storage.GetRelatedWebsiteSetsResponse;
4402
+ };
4387
4403
  /**
4388
4404
  * Returns information about the system.
4389
4405
  */
@@ -1042,6 +1042,12 @@ export namespace ProtocolProxyApi {
1042
1042
  */
1043
1043
  getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<Protocol.CSS.GetLayersForNodeResponse>;
1044
1044
 
1045
+ /**
1046
+ * Given a CSS selector text and a style sheet ID, getLocationForSelector
1047
+ * returns an array of locations of the CSS selector in the style sheet.
1048
+ */
1049
+ getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;
1050
+
1045
1051
  /**
1046
1052
  * Starts tracking the given computed styles for updates. The specified array of properties
1047
1053
  * replaces the one previously specified. Pass empty array to disable tracking.
@@ -3487,6 +3493,12 @@ export namespace ProtocolProxyApi {
3487
3493
  */
3488
3494
  setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<void>;
3489
3495
 
3496
+ /**
3497
+ * Returns the effective Related Website Sets in use by this profile for the browser
3498
+ * session. The effective Related Website Sets will not change during a browser session.
3499
+ */
3500
+ getRelatedWebsiteSets(): Promise<Protocol.Storage.GetRelatedWebsiteSetsResponse>;
3501
+
3490
3502
  /**
3491
3503
  * A cache's contents have been modified.
3492
3504
  */
@@ -1108,6 +1108,12 @@ export namespace ProtocolTestsProxyApi {
1108
1108
  */
1109
1109
  getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<Protocol.CSS.GetLayersForNodeResponse>;
1110
1110
 
1111
+ /**
1112
+ * Given a CSS selector text and a style sheet ID, getLocationForSelector
1113
+ * returns an array of locations of the CSS selector in the style sheet.
1114
+ */
1115
+ getLocationForSelector(params: Protocol.CSS.GetLocationForSelectorRequest): Promise<Protocol.CSS.GetLocationForSelectorResponse>;
1116
+
1111
1117
  /**
1112
1118
  * Starts tracking the given computed styles for updates. The specified array of properties
1113
1119
  * replaces the one previously specified. Pass empty array to disable tracking.
@@ -3759,6 +3765,12 @@ export namespace ProtocolTestsProxyApi {
3759
3765
  */
3760
3766
  setAttributionReportingTracking(params: Protocol.Storage.SetAttributionReportingTrackingRequest): Promise<void>;
3761
3767
 
3768
+ /**
3769
+ * Returns the effective Related Website Sets in use by this profile for the browser
3770
+ * session. The effective Related Website Sets will not change during a browser session.
3771
+ */
3772
+ getRelatedWebsiteSets(): Promise<Protocol.Storage.GetRelatedWebsiteSetsResponse>;
3773
+
3762
3774
  /**
3763
3775
  * A cache's contents have been modified.
3764
3776
  */
@@ -5086,6 +5086,29 @@ export namespace Protocol {
5086
5086
  tryRules: CSSTryRule[];
5087
5087
  }
5088
5088
 
5089
+ /**
5090
+ * CSS @position-try rule representation.
5091
+ */
5092
+ export interface CSSPositionTryRule {
5093
+ /**
5094
+ * The prelude dashed-ident name
5095
+ */
5096
+ name: Value;
5097
+ /**
5098
+ * The css style sheet identifier (absent for user agent stylesheet and user-specified
5099
+ * stylesheet rules) this rule came from.
5100
+ */
5101
+ styleSheetId?: StyleSheetId;
5102
+ /**
5103
+ * Parent stylesheet's origin.
5104
+ */
5105
+ origin: StyleSheetOrigin;
5106
+ /**
5107
+ * Associated style declaration.
5108
+ */
5109
+ style: CSSStyle;
5110
+ }
5111
+
5089
5112
  /**
5090
5113
  * CSS keyframes rule representation.
5091
5114
  */
@@ -5351,6 +5374,10 @@ export namespace Protocol {
5351
5374
  * A list of CSS position fallbacks matching this node.
5352
5375
  */
5353
5376
  cssPositionFallbackRules?: CSSPositionFallbackRule[];
5377
+ /**
5378
+ * A list of CSS @position-try rules matching this node, based on the position-try-options property.
5379
+ */
5380
+ cssPositionTryRules?: CSSPositionTryRule[];
5354
5381
  /**
5355
5382
  * A list of CSS at-property rules matching this node.
5356
5383
  */
@@ -5403,6 +5430,15 @@ export namespace Protocol {
5403
5430
  rootLayer: CSSLayerData;
5404
5431
  }
5405
5432
 
5433
+ export interface GetLocationForSelectorRequest {
5434
+ styleSheetId: StyleSheetId;
5435
+ selectorText: string;
5436
+ }
5437
+
5438
+ export interface GetLocationForSelectorResponse {
5439
+ ranges: SourceRange[];
5440
+ }
5441
+
5406
5442
  export interface TrackComputedStyleUpdatesRequest {
5407
5443
  propertiesToTrack: CSSComputedStyleProperty[];
5408
5444
  }
@@ -15343,7 +15379,7 @@ export namespace Protocol {
15343
15379
  /**
15344
15380
  * Enum of shared storage access types.
15345
15381
  */
15346
- export type SharedStorageAccessType = ('documentAddModule' | 'documentSelectURL' | 'documentRun' | 'documentSet' | 'documentAppend' | 'documentDelete' | 'documentClear' | 'workletSet' | 'workletAppend' | 'workletDelete' | 'workletClear' | 'workletGet' | 'workletKeys' | 'workletEntries' | 'workletLength' | 'workletRemainingBudget' | 'headerSet' | 'headerAppend' | 'headerDelete' | 'headerClear');
15382
+ export type SharedStorageAccessType = ('documentAddModule' | 'documentSelectURL' | 'documentRun' | 'documentSet' | 'documentAppend' | 'documentDelete' | 'documentClear' | 'documentGet' | 'workletSet' | 'workletAppend' | 'workletDelete' | 'workletClear' | 'workletGet' | 'workletKeys' | 'workletEntries' | 'workletLength' | 'workletRemainingBudget' | 'headerSet' | 'headerAppend' | 'headerDelete' | 'headerClear');
15347
15383
 
15348
15384
  /**
15349
15385
  * Struct for a single key-value pair in an origin's shared storage.
@@ -15609,6 +15645,24 @@ export namespace Protocol {
15609
15645
 
15610
15646
  export type AttributionReportingAggregatableResult = ('success' | 'internalError' | 'noCapacityForAttributionDestination' | 'noMatchingSources' | 'excessiveAttributions' | 'excessiveReportingOrigins' | 'noHistograms' | 'insufficientBudget' | 'noMatchingSourceFilterData' | 'notRegistered' | 'prohibitedByBrowserPolicy' | 'deduplicated' | 'reportWindowPassed' | 'excessiveReports');
15611
15647
 
15648
+ /**
15649
+ * A single Related Website Set object.
15650
+ */
15651
+ export interface RelatedWebsiteSet {
15652
+ /**
15653
+ * The primary site of this set, along with the ccTLDs if there is any.
15654
+ */
15655
+ primarySites: string[];
15656
+ /**
15657
+ * The associated sites of this set, along with the ccTLDs if there is any.
15658
+ */
15659
+ associatedSites: string[];
15660
+ /**
15661
+ * The service sites of this set, along with the ccTLDs if there is any.
15662
+ */
15663
+ serviceSites: string[];
15664
+ }
15665
+
15612
15666
  export interface GetStorageKeyForFrameRequest {
15613
15667
  frameId: Page.FrameId;
15614
15668
  }
@@ -15876,6 +15930,10 @@ export namespace Protocol {
15876
15930
  enable: boolean;
15877
15931
  }
15878
15932
 
15933
+ export interface GetRelatedWebsiteSetsResponse {
15934
+ sets: RelatedWebsiteSet[];
15935
+ }
15936
+
15879
15937
  /**
15880
15938
  * A cache's contents have been modified.
15881
15939
  */