devtools-protocol 0.0.1547617 → 0.0.1548823

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.
@@ -5150,34 +5150,6 @@
5150
5150
  }
5151
5151
  ]
5152
5152
  },
5153
- {
5154
- "id": "CSSFontPaletteValuesRule",
5155
- "description": "CSS font-palette-values rule representation.",
5156
- "type": "object",
5157
- "properties": [
5158
- {
5159
- "name": "styleSheetId",
5160
- "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
5161
- "optional": true,
5162
- "$ref": "StyleSheetId"
5163
- },
5164
- {
5165
- "name": "origin",
5166
- "description": "Parent stylesheet's origin.",
5167
- "$ref": "StyleSheetOrigin"
5168
- },
5169
- {
5170
- "name": "fontPaletteName",
5171
- "description": "Associated font palette name.",
5172
- "$ref": "Value"
5173
- },
5174
- {
5175
- "name": "style",
5176
- "description": "Associated style declaration.",
5177
- "$ref": "CSSStyle"
5178
- }
5179
- ]
5180
- },
5181
5153
  {
5182
5154
  "id": "CSSAtRule",
5183
5155
  "description": "CSS generic @rule representation.",
@@ -5836,12 +5808,6 @@
5836
5808
  "$ref": "CSSPropertyRegistration"
5837
5809
  }
5838
5810
  },
5839
- {
5840
- "name": "cssFontPaletteValuesRule",
5841
- "description": "A font-palette-values rule matching this node.",
5842
- "optional": true,
5843
- "$ref": "CSSFontPaletteValuesRule"
5844
- },
5845
5811
  {
5846
5812
  "name": "cssAtRules",
5847
5813
  "description": "A list of simple @rules matching this node or its pseudo-elements.",
@@ -23340,6 +23306,26 @@
23340
23306
  "type": "boolean"
23341
23307
  }
23342
23308
  ]
23309
+ },
23310
+ {
23311
+ "name": "getAnnotatedPageContent",
23312
+ "description": "Get the annotated page content for the main frame.\nThis is an experimental command that is subject to change.",
23313
+ "experimental": true,
23314
+ "parameters": [
23315
+ {
23316
+ "name": "includeActionableInformation",
23317
+ "description": "Whether to include actionable information. Defaults to true.",
23318
+ "optional": true,
23319
+ "type": "boolean"
23320
+ }
23321
+ ],
23322
+ "returns": [
23323
+ {
23324
+ "name": "content",
23325
+ "description": "The annotated page content as a base64 encoded protobuf.\nThe format is defined by the `AnnotatedPageContent` message in\ncomponents/optimization_guide/proto/features/common_quality_data.proto (Encoded as a base64 string when passed over JSON)",
23326
+ "type": "string"
23327
+ }
23328
+ ]
23343
23329
  }
23344
23330
  ],
23345
23331
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1547617",
3
+ "version": "0.0.1548823",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -500,20 +500,6 @@ experimental domain CSS
500
500
  boolean inherits
501
501
  string syntax
502
502
 
503
-
504
- # CSS font-palette-values rule representation.
505
- type CSSFontPaletteValuesRule extends object
506
- properties
507
- # The css style sheet identifier (absent for user agent stylesheet and user-specified
508
- # stylesheet rules) this rule came from.
509
- optional StyleSheetId styleSheetId
510
- # Parent stylesheet's origin.
511
- StyleSheetOrigin origin
512
- # Associated font palette name.
513
- Value fontPaletteName
514
- # Associated style declaration.
515
- CSSStyle style
516
-
517
503
  # CSS generic @rule representation.
518
504
  type CSSAtRule extends object
519
505
  properties
@@ -800,8 +786,6 @@ experimental domain CSS
800
786
  optional array of CSSPropertyRule cssPropertyRules
801
787
  # A list of CSS property registrations matching this node.
802
788
  optional array of CSSPropertyRegistration cssPropertyRegistrations
803
- # A font-palette-values rule matching this node.
804
- optional CSSFontPaletteValuesRule cssFontPaletteValuesRule
805
789
  # A list of simple @rules matching this node or its pseudo-elements.
806
790
  optional array of CSSAtRule cssAtRules
807
791
  # Id of the first parent element that does not have display: contents.
@@ -1767,3 +1767,15 @@ domain Page
1767
1767
  experimental command setPrerenderingAllowed
1768
1768
  parameters
1769
1769
  boolean isAllowed
1770
+
1771
+ # Get the annotated page content for the main frame.
1772
+ # This is an experimental command that is subject to change.
1773
+ experimental command getAnnotatedPageContent
1774
+ parameters
1775
+ # Whether to include actionable information. Defaults to true.
1776
+ optional boolean includeActionableInformation
1777
+ returns
1778
+ # The annotated page content as a base64 encoded protobuf.
1779
+ # The format is defined by the `AnnotatedPageContent` message in
1780
+ # components/optimization_guide/proto/features/common_quality_data.proto
1781
+ binary content
@@ -5154,6 +5154,15 @@ export namespace ProtocolMapping {
5154
5154
  paramsType: [Protocol.Page.SetPrerenderingAllowedRequest];
5155
5155
  returnType: void;
5156
5156
  };
5157
+ /**
5158
+ * Get the annotated page content for the main frame.
5159
+ * This is an experimental command that is subject to change.
5160
+ * @experimental
5161
+ */
5162
+ 'Page.getAnnotatedPageContent': {
5163
+ paramsType: [Protocol.Page.GetAnnotatedPageContentRequest?];
5164
+ returnType: Protocol.Page.GetAnnotatedPageContentResponse;
5165
+ };
5157
5166
  /**
5158
5167
  * Disable collecting and reporting metrics.
5159
5168
  */
@@ -4068,6 +4068,13 @@ export namespace ProtocolProxyApi {
4068
4068
  */
4069
4069
  setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<void>;
4070
4070
 
4071
+ /**
4072
+ * Get the annotated page content for the main frame.
4073
+ * This is an experimental command that is subject to change.
4074
+ * @experimental
4075
+ */
4076
+ getAnnotatedPageContent(params: Protocol.Page.GetAnnotatedPageContentRequest): Promise<Protocol.Page.GetAnnotatedPageContentResponse>;
4077
+
4071
4078
  on(event: 'domContentEventFired', listener: (params: Protocol.Page.DomContentEventFiredEvent) => void): void;
4072
4079
 
4073
4080
  /**
@@ -4330,6 +4330,13 @@ export namespace ProtocolTestsProxyApi {
4330
4330
  */
4331
4331
  setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<{id: number, result: void, sessionId: string}>;
4332
4332
 
4333
+ /**
4334
+ * Get the annotated page content for the main frame.
4335
+ * This is an experimental command that is subject to change.
4336
+ * @experimental
4337
+ */
4338
+ getAnnotatedPageContent(params: Protocol.Page.GetAnnotatedPageContentRequest): Promise<{id: number, result: Protocol.Page.GetAnnotatedPageContentResponse, sessionId: string}>;
4339
+
4333
4340
  onDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
4334
4341
  offDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
4335
4342
  onceDomContentEventFired(eventMatcher?: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => boolean): Promise<{ params: Protocol.Page.DomContentEventFiredEvent }>;
@@ -5777,29 +5777,6 @@ export namespace Protocol {
5777
5777
  syntax: string;
5778
5778
  }
5779
5779
 
5780
- /**
5781
- * CSS font-palette-values rule representation.
5782
- */
5783
- export interface CSSFontPaletteValuesRule {
5784
- /**
5785
- * The css style sheet identifier (absent for user agent stylesheet and user-specified
5786
- * stylesheet rules) this rule came from.
5787
- */
5788
- styleSheetId?: StyleSheetId;
5789
- /**
5790
- * Parent stylesheet's origin.
5791
- */
5792
- origin: StyleSheetOrigin;
5793
- /**
5794
- * Associated font palette name.
5795
- */
5796
- fontPaletteName: Value;
5797
- /**
5798
- * Associated style declaration.
5799
- */
5800
- style: CSSStyle;
5801
- }
5802
-
5803
5780
  export const enum CSSAtRuleType {
5804
5781
  FontFace = 'font-face',
5805
5782
  FontFeatureValues = 'font-feature-values',
@@ -6240,10 +6217,6 @@ export namespace Protocol {
6240
6217
  * A list of CSS property registrations matching this node.
6241
6218
  */
6242
6219
  cssPropertyRegistrations?: CSSPropertyRegistration[];
6243
- /**
6244
- * A font-palette-values rule matching this node.
6245
- */
6246
- cssFontPaletteValuesRule?: CSSFontPaletteValuesRule;
6247
6220
  /**
6248
6221
  * A list of simple @rules matching this node or its pseudo-elements.
6249
6222
  */
@@ -17439,6 +17412,22 @@ export namespace Protocol {
17439
17412
  isAllowed: boolean;
17440
17413
  }
17441
17414
 
17415
+ export interface GetAnnotatedPageContentRequest {
17416
+ /**
17417
+ * Whether to include actionable information. Defaults to true.
17418
+ */
17419
+ includeActionableInformation?: boolean;
17420
+ }
17421
+
17422
+ export interface GetAnnotatedPageContentResponse {
17423
+ /**
17424
+ * The annotated page content as a base64 encoded protobuf.
17425
+ * The format is defined by the `AnnotatedPageContent` message in
17426
+ * components/optimization_guide/proto/features/common_quality_data.proto (Encoded as a base64 string when passed over JSON)
17427
+ */
17428
+ content: string;
17429
+ }
17430
+
17442
17431
  export interface DomContentEventFiredEvent {
17443
17432
  timestamp: Network.MonotonicTime;
17444
17433
  }