devtools-protocol 0.0.1392070 → 0.0.1393284
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 +50 -2
- package/json/js_protocol.json +10 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +27 -0
- package/pdl/js_protocol.pdl +4 -0
- package/types/protocol-mapping.d.ts +10 -0
- package/types/protocol-proxy-api.d.ts +8 -0
- package/types/protocol-tests-proxy-api.d.ts +8 -0
- package/types/protocol.d.ts +43 -0
@@ -4697,6 +4697,54 @@
|
|
4697
4697
|
}
|
4698
4698
|
]
|
4699
4699
|
},
|
4700
|
+
{
|
4701
|
+
"name": "resolveValues",
|
4702
|
+
"description": "Resolve the specified values in the context of the provided element.\nFor example, a value of '1em' is evaluated according to the computed\n'font-size' of the element and a value 'calc(1px + 2px)' will be\nresolved to '3px'.",
|
4703
|
+
"parameters": [
|
4704
|
+
{
|
4705
|
+
"name": "values",
|
4706
|
+
"description": "Substitution functions (var()/env()/attr()) and cascade-dependent\nkeywords (revert/revert-layer) do not work.",
|
4707
|
+
"type": "array",
|
4708
|
+
"items": {
|
4709
|
+
"type": "string"
|
4710
|
+
}
|
4711
|
+
},
|
4712
|
+
{
|
4713
|
+
"name": "nodeId",
|
4714
|
+
"description": "Id of the node in whose context the expression is evaluated",
|
4715
|
+
"$ref": "DOM.NodeId"
|
4716
|
+
},
|
4717
|
+
{
|
4718
|
+
"name": "propertyName",
|
4719
|
+
"description": "Only longhands and custom property names are accepted.",
|
4720
|
+
"optional": true,
|
4721
|
+
"type": "string"
|
4722
|
+
},
|
4723
|
+
{
|
4724
|
+
"name": "pseudoType",
|
4725
|
+
"description": "Pseudo element type, only works for pseudo elements that generate\nelements in the tree, such as ::before and ::after.",
|
4726
|
+
"experimental": true,
|
4727
|
+
"optional": true,
|
4728
|
+
"$ref": "DOM.PseudoType"
|
4729
|
+
},
|
4730
|
+
{
|
4731
|
+
"name": "pseudoIdentifier",
|
4732
|
+
"description": "Pseudo element custom ident.",
|
4733
|
+
"experimental": true,
|
4734
|
+
"optional": true,
|
4735
|
+
"type": "string"
|
4736
|
+
}
|
4737
|
+
],
|
4738
|
+
"returns": [
|
4739
|
+
{
|
4740
|
+
"name": "results",
|
4741
|
+
"type": "array",
|
4742
|
+
"items": {
|
4743
|
+
"type": "string"
|
4744
|
+
}
|
4745
|
+
}
|
4746
|
+
]
|
4747
|
+
},
|
4700
4748
|
{
|
4701
4749
|
"name": "getInlineStylesForNode",
|
4702
4750
|
"description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\nattributes) for a DOM node identified by `nodeId`.",
|
@@ -15772,7 +15820,7 @@
|
|
15772
15820
|
},
|
15773
15821
|
{
|
15774
15822
|
"name": "headers",
|
15775
|
-
"description": "Raw response headers as they were received over the wire
|
15823
|
+
"description": "Raw response headers as they were received over the wire.\nDuplicate headers in the response are represented as a single key with their values\nconcatentated using `\\n` as the separator.\nSee also `headersText` that contains verbatim text for HTTP/1.*.",
|
15776
15824
|
"$ref": "Headers"
|
15777
15825
|
},
|
15778
15826
|
{
|
@@ -15827,7 +15875,7 @@
|
|
15827
15875
|
},
|
15828
15876
|
{
|
15829
15877
|
"name": "headers",
|
15830
|
-
"description": "Raw response headers as they were received over the wire
|
15878
|
+
"description": "Raw response headers as they were received over the wire.\nDuplicate headers in the response are represented as a single key with their values\nconcatentated using `\\n` as the separator.\nSee also `headersText` that contains verbatim text for HTTP/1.*.",
|
15831
15879
|
"$ref": "Headers"
|
15832
15880
|
}
|
15833
15881
|
]
|
package/json/js_protocol.json
CHANGED
@@ -1312,6 +1312,11 @@
|
|
1312
1312
|
"description": "Content hash of the script, SHA-256.",
|
1313
1313
|
"type": "string"
|
1314
1314
|
},
|
1315
|
+
{
|
1316
|
+
"name": "buildId",
|
1317
|
+
"description": "For Wasm modules, the content of the `build_id` custom section.",
|
1318
|
+
"type": "string"
|
1319
|
+
},
|
1315
1320
|
{
|
1316
1321
|
"name": "executionContextAuxData",
|
1317
1322
|
"description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
|
@@ -1416,6 +1421,11 @@
|
|
1416
1421
|
"description": "Content hash of the script, SHA-256.",
|
1417
1422
|
"type": "string"
|
1418
1423
|
},
|
1424
|
+
{
|
1425
|
+
"name": "buildId",
|
1426
|
+
"description": "For Wasm modules, the content of the `build_id` custom section.",
|
1427
|
+
"type": "string"
|
1428
|
+
},
|
1419
1429
|
{
|
1420
1430
|
"name": "executionContextAuxData",
|
1421
1431
|
"description": "Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2264,6 +2264,27 @@ experimental domain CSS
|
|
2264
2264
|
# Computed style for the specified DOM node.
|
2265
2265
|
array of CSSComputedStyleProperty computedStyle
|
2266
2266
|
|
2267
|
+
# Resolve the specified values in the context of the provided element.
|
2268
|
+
# For example, a value of '1em' is evaluated according to the computed
|
2269
|
+
# 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
2270
|
+
# resolved to '3px'.
|
2271
|
+
command resolveValues
|
2272
|
+
parameters
|
2273
|
+
# Substitution functions (var()/env()/attr()) and cascade-dependent
|
2274
|
+
# keywords (revert/revert-layer) do not work.
|
2275
|
+
array of string values
|
2276
|
+
# Id of the node in whose context the expression is evaluated
|
2277
|
+
DOM.NodeId nodeId
|
2278
|
+
# Only longhands and custom property names are accepted.
|
2279
|
+
optional string propertyName
|
2280
|
+
# Pseudo element type, only works for pseudo elements that generate
|
2281
|
+
# elements in the tree, such as ::before and ::after.
|
2282
|
+
experimental optional DOM.PseudoType pseudoType
|
2283
|
+
# Pseudo element custom ident.
|
2284
|
+
experimental optional string pseudoIdentifier
|
2285
|
+
returns
|
2286
|
+
array of string results
|
2287
|
+
|
2267
2288
|
# Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
2268
2289
|
# attributes) for a DOM node identified by `nodeId`.
|
2269
2290
|
command getInlineStylesForNode
|
@@ -7293,6 +7314,9 @@ domain Network
|
|
7293
7314
|
# are represented by the invalid cookie line string instead of a proper cookie.
|
7294
7315
|
array of BlockedSetCookieWithReason blockedCookies
|
7295
7316
|
# Raw response headers as they were received over the wire.
|
7317
|
+
# Duplicate headers in the response are represented as a single key with their values
|
7318
|
+
# concatentated using `\n` as the separator.
|
7319
|
+
# See also `headersText` that contains verbatim text for HTTP/1.*.
|
7296
7320
|
Headers headers
|
7297
7321
|
# The IP address space of the resource. The address space can only be determined once the transport
|
7298
7322
|
# established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
|
@@ -7321,6 +7345,9 @@ domain Network
|
|
7321
7345
|
# Request identifier. Used to match this information to another responseReceived event.
|
7322
7346
|
RequestId requestId
|
7323
7347
|
# Raw response headers as they were received over the wire.
|
7348
|
+
# Duplicate headers in the response are represented as a single key with their values
|
7349
|
+
# concatentated using `\n` as the separator.
|
7350
|
+
# See also `headersText` that contains verbatim text for HTTP/1.*.
|
7324
7351
|
Headers headers
|
7325
7352
|
|
7326
7353
|
# Fired exactly once for each Trust Token operation. Depending on
|
package/pdl/js_protocol.pdl
CHANGED
@@ -641,6 +641,8 @@ domain Debugger
|
|
641
641
|
Runtime.ExecutionContextId executionContextId
|
642
642
|
# Content hash of the script, SHA-256.
|
643
643
|
string hash
|
644
|
+
# For Wasm modules, the content of the `build_id` custom section.
|
645
|
+
string buildId
|
644
646
|
# Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
|
645
647
|
optional object executionContextAuxData
|
646
648
|
# URL of source map associated with script (if any).
|
@@ -680,6 +682,8 @@ domain Debugger
|
|
680
682
|
Runtime.ExecutionContextId executionContextId
|
681
683
|
# Content hash of the script, SHA-256.
|
682
684
|
string hash
|
685
|
+
# For Wasm modules, the content of the `build_id` custom section.
|
686
|
+
string buildId
|
683
687
|
# Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
|
684
688
|
optional object executionContextAuxData
|
685
689
|
# True, if this script is generated as a result of the live edit operation.
|
@@ -1818,6 +1818,16 @@ export namespace ProtocolMapping {
|
|
1818
1818
|
paramsType: [Protocol.CSS.GetComputedStyleForNodeRequest];
|
1819
1819
|
returnType: Protocol.CSS.GetComputedStyleForNodeResponse;
|
1820
1820
|
};
|
1821
|
+
/**
|
1822
|
+
* Resolve the specified values in the context of the provided element.
|
1823
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1824
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1825
|
+
* resolved to '3px'.
|
1826
|
+
*/
|
1827
|
+
'CSS.resolveValues': {
|
1828
|
+
paramsType: [Protocol.CSS.ResolveValuesRequest];
|
1829
|
+
returnType: Protocol.CSS.ResolveValuesResponse;
|
1830
|
+
};
|
1821
1831
|
/**
|
1822
1832
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1823
1833
|
* attributes) for a DOM node identified by `nodeId`.
|
@@ -1061,6 +1061,14 @@ export namespace ProtocolProxyApi {
|
|
1061
1061
|
*/
|
1062
1062
|
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<Protocol.CSS.GetComputedStyleForNodeResponse>;
|
1063
1063
|
|
1064
|
+
/**
|
1065
|
+
* Resolve the specified values in the context of the provided element.
|
1066
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1067
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1068
|
+
* resolved to '3px'.
|
1069
|
+
*/
|
1070
|
+
resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<Protocol.CSS.ResolveValuesResponse>;
|
1071
|
+
|
1064
1072
|
/**
|
1065
1073
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1066
1074
|
* attributes) for a DOM node identified by `nodeId`.
|
@@ -1129,6 +1129,14 @@ export namespace ProtocolTestsProxyApi {
|
|
1129
1129
|
*/
|
1130
1130
|
getComputedStyleForNode(params: Protocol.CSS.GetComputedStyleForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetComputedStyleForNodeResponse, sessionId: string}>;
|
1131
1131
|
|
1132
|
+
/**
|
1133
|
+
* Resolve the specified values in the context of the provided element.
|
1134
|
+
* For example, a value of '1em' is evaluated according to the computed
|
1135
|
+
* 'font-size' of the element and a value 'calc(1px + 2px)' will be
|
1136
|
+
* resolved to '3px'.
|
1137
|
+
*/
|
1138
|
+
resolveValues(params: Protocol.CSS.ResolveValuesRequest): Promise<{id: number, result: Protocol.CSS.ResolveValuesResponse, sessionId: string}>;
|
1139
|
+
|
1132
1140
|
/**
|
1133
1141
|
* Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
|
1134
1142
|
* attributes) for a DOM node identified by `nodeId`.
|
package/types/protocol.d.ts
CHANGED
@@ -921,6 +921,10 @@ export namespace Protocol {
|
|
921
921
|
* Content hash of the script, SHA-256.
|
922
922
|
*/
|
923
923
|
hash: string;
|
924
|
+
/**
|
925
|
+
* For Wasm modules, the content of the `build_id` custom section.
|
926
|
+
*/
|
927
|
+
buildId: string;
|
924
928
|
/**
|
925
929
|
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
|
926
930
|
*/
|
@@ -996,6 +1000,10 @@ export namespace Protocol {
|
|
996
1000
|
* Content hash of the script, SHA-256.
|
997
1001
|
*/
|
998
1002
|
hash: string;
|
1003
|
+
/**
|
1004
|
+
* For Wasm modules, the content of the `build_id` custom section.
|
1005
|
+
*/
|
1006
|
+
buildId: string;
|
999
1007
|
/**
|
1000
1008
|
* Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
|
1001
1009
|
*/
|
@@ -5476,6 +5484,35 @@ export namespace Protocol {
|
|
5476
5484
|
computedStyle: CSSComputedStyleProperty[];
|
5477
5485
|
}
|
5478
5486
|
|
5487
|
+
export interface ResolveValuesRequest {
|
5488
|
+
/**
|
5489
|
+
* Substitution functions (var()/env()/attr()) and cascade-dependent
|
5490
|
+
* keywords (revert/revert-layer) do not work.
|
5491
|
+
*/
|
5492
|
+
values: string[];
|
5493
|
+
/**
|
5494
|
+
* Id of the node in whose context the expression is evaluated
|
5495
|
+
*/
|
5496
|
+
nodeId: DOM.NodeId;
|
5497
|
+
/**
|
5498
|
+
* Only longhands and custom property names are accepted.
|
5499
|
+
*/
|
5500
|
+
propertyName?: string;
|
5501
|
+
/**
|
5502
|
+
* Pseudo element type, only works for pseudo elements that generate
|
5503
|
+
* elements in the tree, such as ::before and ::after.
|
5504
|
+
*/
|
5505
|
+
pseudoType?: DOM.PseudoType;
|
5506
|
+
/**
|
5507
|
+
* Pseudo element custom ident.
|
5508
|
+
*/
|
5509
|
+
pseudoIdentifier?: string;
|
5510
|
+
}
|
5511
|
+
|
5512
|
+
export interface ResolveValuesResponse {
|
5513
|
+
results: string[];
|
5514
|
+
}
|
5515
|
+
|
5479
5516
|
export interface GetInlineStylesForNodeRequest {
|
5480
5517
|
nodeId: DOM.NodeId;
|
5481
5518
|
}
|
@@ -12511,6 +12548,9 @@ export namespace Protocol {
|
|
12511
12548
|
blockedCookies: BlockedSetCookieWithReason[];
|
12512
12549
|
/**
|
12513
12550
|
* Raw response headers as they were received over the wire.
|
12551
|
+
* Duplicate headers in the response are represented as a single key with their values
|
12552
|
+
* concatentated using `\n` as the separator.
|
12553
|
+
* See also `headersText` that contains verbatim text for HTTP/1.*.
|
12514
12554
|
*/
|
12515
12555
|
headers: Headers;
|
12516
12556
|
/**
|
@@ -12557,6 +12597,9 @@ export namespace Protocol {
|
|
12557
12597
|
requestId: RequestId;
|
12558
12598
|
/**
|
12559
12599
|
* Raw response headers as they were received over the wire.
|
12600
|
+
* Duplicate headers in the response are represented as a single key with their values
|
12601
|
+
* concatentated using `\n` as the separator.
|
12602
|
+
* See also `headersText` that contains verbatim text for HTTP/1.*.
|
12560
12603
|
*/
|
12561
12604
|
headers: Headers;
|
12562
12605
|
}
|