devtools-protocol 0.0.1588251 → 0.0.1589152
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.
- package/json/browser_protocol.json +24 -0
- package/package.json +1 -1
- package/pdl/domains/DOM.pdl +9 -0
- package/pdl/domains/Emulation.pdl +1 -0
- package/types/protocol-mapping.d.ts +5 -0
- package/types/protocol-proxy-api.d.ts +6 -0
- package/types/protocol-tests-proxy-api.d.ts +8 -0
- package/types/protocol.d.ts +20 -1
|
@@ -7222,6 +7222,12 @@
|
|
|
7222
7222
|
"items": {
|
|
7223
7223
|
"$ref": "StyleSheetId"
|
|
7224
7224
|
}
|
|
7225
|
+
},
|
|
7226
|
+
{
|
|
7227
|
+
"name": "isAdRelated",
|
|
7228
|
+
"experimental": true,
|
|
7229
|
+
"optional": true,
|
|
7230
|
+
"type": "boolean"
|
|
7225
7231
|
}
|
|
7226
7232
|
]
|
|
7227
7233
|
},
|
|
@@ -8776,6 +8782,23 @@
|
|
|
8776
8782
|
}
|
|
8777
8783
|
]
|
|
8778
8784
|
},
|
|
8785
|
+
{
|
|
8786
|
+
"name": "adRelatedStateUpdated",
|
|
8787
|
+
"description": "Fired when a node's ad related state changes.",
|
|
8788
|
+
"experimental": true,
|
|
8789
|
+
"parameters": [
|
|
8790
|
+
{
|
|
8791
|
+
"name": "nodeId",
|
|
8792
|
+
"description": "The id of the node.",
|
|
8793
|
+
"$ref": "DOM.NodeId"
|
|
8794
|
+
},
|
|
8795
|
+
{
|
|
8796
|
+
"name": "isAdRelated",
|
|
8797
|
+
"description": "If the node is ad related.",
|
|
8798
|
+
"type": "boolean"
|
|
8799
|
+
}
|
|
8800
|
+
]
|
|
8801
|
+
},
|
|
8779
8802
|
{
|
|
8780
8803
|
"name": "affectedByStartingStylesFlagUpdated",
|
|
8781
8804
|
"description": "Fired when a node's starting styles changes.",
|
|
@@ -10777,6 +10800,7 @@
|
|
|
10777
10800
|
"type": "string",
|
|
10778
10801
|
"enum": [
|
|
10779
10802
|
"avif",
|
|
10803
|
+
"jxl",
|
|
10780
10804
|
"webp"
|
|
10781
10805
|
]
|
|
10782
10806
|
}
|
package/package.json
CHANGED
package/pdl/domains/DOM.pdl
CHANGED
|
@@ -183,6 +183,7 @@ domain DOM
|
|
|
183
183
|
experimental optional boolean isScrollable
|
|
184
184
|
experimental optional boolean affectedByStartingStyles
|
|
185
185
|
experimental optional array of StyleSheetId adoptedStyleSheets
|
|
186
|
+
experimental optional boolean isAdRelated
|
|
186
187
|
|
|
187
188
|
# A structure to hold the top-level node of a detached tree and an array of its retained descendants.
|
|
188
189
|
type DetachedElementInfo extends object
|
|
@@ -912,6 +913,14 @@ domain DOM
|
|
|
912
913
|
# If the node is scrollable.
|
|
913
914
|
boolean isScrollable
|
|
914
915
|
|
|
916
|
+
# Fired when a node's ad related state changes.
|
|
917
|
+
experimental event adRelatedStateUpdated
|
|
918
|
+
parameters
|
|
919
|
+
# The id of the node.
|
|
920
|
+
DOM.NodeId nodeId
|
|
921
|
+
# If the node is ad related.
|
|
922
|
+
boolean isAdRelated
|
|
923
|
+
|
|
915
924
|
# Fired when a node's starting styles changes.
|
|
916
925
|
experimental event affectedByStartingStylesFlagUpdated
|
|
917
926
|
parameters
|
|
@@ -262,6 +262,11 @@ export namespace ProtocolMapping {
|
|
|
262
262
|
* @experimental
|
|
263
263
|
*/
|
|
264
264
|
'DOM.scrollableFlagUpdated': [Protocol.DOM.ScrollableFlagUpdatedEvent];
|
|
265
|
+
/**
|
|
266
|
+
* Fired when a node's ad related state changes.
|
|
267
|
+
* @experimental
|
|
268
|
+
*/
|
|
269
|
+
'DOM.adRelatedStateUpdated': [Protocol.DOM.AdRelatedStateUpdatedEvent];
|
|
265
270
|
/**
|
|
266
271
|
* Fired when a node's starting styles changes.
|
|
267
272
|
* @experimental
|
|
@@ -1903,6 +1903,12 @@ export namespace ProtocolProxyApi {
|
|
|
1903
1903
|
*/
|
|
1904
1904
|
on(event: 'scrollableFlagUpdated', listener: (params: Protocol.DOM.ScrollableFlagUpdatedEvent) => void): void;
|
|
1905
1905
|
|
|
1906
|
+
/**
|
|
1907
|
+
* Fired when a node's ad related state changes.
|
|
1908
|
+
* @experimental
|
|
1909
|
+
*/
|
|
1910
|
+
on(event: 'adRelatedStateUpdated', listener: (params: Protocol.DOM.AdRelatedStateUpdatedEvent) => void): void;
|
|
1911
|
+
|
|
1906
1912
|
/**
|
|
1907
1913
|
* Fired when a node's starting styles changes.
|
|
1908
1914
|
* @experimental
|
|
@@ -2019,6 +2019,14 @@ export namespace ProtocolTestsProxyApi {
|
|
|
2019
2019
|
offScrollableFlagUpdated(listener: (event: { params: Protocol.DOM.ScrollableFlagUpdatedEvent }) => void): void;
|
|
2020
2020
|
onceScrollableFlagUpdated(eventMatcher?: (event: { params: Protocol.DOM.ScrollableFlagUpdatedEvent }) => boolean): Promise<{ params: Protocol.DOM.ScrollableFlagUpdatedEvent }>;
|
|
2021
2021
|
|
|
2022
|
+
/**
|
|
2023
|
+
* Fired when a node's ad related state changes.
|
|
2024
|
+
* @experimental
|
|
2025
|
+
*/
|
|
2026
|
+
onAdRelatedStateUpdated(listener: (event: { params: Protocol.DOM.AdRelatedStateUpdatedEvent }) => void): void;
|
|
2027
|
+
offAdRelatedStateUpdated(listener: (event: { params: Protocol.DOM.AdRelatedStateUpdatedEvent }) => void): void;
|
|
2028
|
+
onceAdRelatedStateUpdated(eventMatcher?: (event: { params: Protocol.DOM.AdRelatedStateUpdatedEvent }) => boolean): Promise<{ params: Protocol.DOM.AdRelatedStateUpdatedEvent }>;
|
|
2029
|
+
|
|
2022
2030
|
/**
|
|
2023
2031
|
* Fired when a node's starting styles changes.
|
|
2024
2032
|
* @experimental
|
package/types/protocol.d.ts
CHANGED
|
@@ -7005,6 +7005,10 @@ export namespace Protocol {
|
|
|
7005
7005
|
* @experimental
|
|
7006
7006
|
*/
|
|
7007
7007
|
adoptedStyleSheets?: StyleSheetId[];
|
|
7008
|
+
/**
|
|
7009
|
+
* @experimental
|
|
7010
|
+
*/
|
|
7011
|
+
isAdRelated?: boolean;
|
|
7008
7012
|
}
|
|
7009
7013
|
|
|
7010
7014
|
/**
|
|
@@ -8070,6 +8074,21 @@ export namespace Protocol {
|
|
|
8070
8074
|
isScrollable: boolean;
|
|
8071
8075
|
}
|
|
8072
8076
|
|
|
8077
|
+
/**
|
|
8078
|
+
* Fired when a node's ad related state changes.
|
|
8079
|
+
* @experimental
|
|
8080
|
+
*/
|
|
8081
|
+
export interface AdRelatedStateUpdatedEvent {
|
|
8082
|
+
/**
|
|
8083
|
+
* The id of the node.
|
|
8084
|
+
*/
|
|
8085
|
+
nodeId: DOM.NodeId;
|
|
8086
|
+
/**
|
|
8087
|
+
* If the node is ad related.
|
|
8088
|
+
*/
|
|
8089
|
+
isAdRelated: boolean;
|
|
8090
|
+
}
|
|
8091
|
+
|
|
8073
8092
|
/**
|
|
8074
8093
|
* Fired when a node's starting styles changes.
|
|
8075
8094
|
* @experimental
|
|
@@ -9318,7 +9337,7 @@ export namespace Protocol {
|
|
|
9318
9337
|
* Enum of image types that can be disabled.
|
|
9319
9338
|
* @experimental
|
|
9320
9339
|
*/
|
|
9321
|
-
export type DisabledImageType = ('avif' | 'webp');
|
|
9340
|
+
export type DisabledImageType = ('avif' | 'jxl' | 'webp');
|
|
9322
9341
|
|
|
9323
9342
|
export interface CanEmulateResponse {
|
|
9324
9343
|
/**
|