devtools-protocol 0.0.1548244 → 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.
|
@@ -23306,6 +23306,26 @@
|
|
|
23306
23306
|
"type": "boolean"
|
|
23307
23307
|
}
|
|
23308
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
|
+
]
|
|
23309
23329
|
}
|
|
23310
23330
|
],
|
|
23311
23331
|
"events": [
|
package/package.json
CHANGED
package/pdl/domains/Page.pdl
CHANGED
|
@@ -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 }>;
|
package/types/protocol.d.ts
CHANGED
|
@@ -17412,6 +17412,22 @@ export namespace Protocol {
|
|
|
17412
17412
|
isAllowed: boolean;
|
|
17413
17413
|
}
|
|
17414
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
|
+
|
|
17415
17431
|
export interface DomContentEventFiredEvent {
|
|
17416
17432
|
timestamp: Network.MonotonicTime;
|
|
17417
17433
|
}
|