devtools-protocol 0.0.1392711 → 0.0.1395251
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 +77 -0
- package/json/js_protocol.json +10 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +30 -0
- package/pdl/js_protocol.pdl +4 -0
- package/types/protocol-mapping.d.ts +8 -0
- package/types/protocol-proxy-api.d.ts +6 -0
- package/types/protocol-tests-proxy-api.d.ts +6 -0
- package/types/protocol.d.ts +56 -0
@@ -3393,6 +3393,24 @@
|
|
3393
3393
|
}
|
3394
3394
|
]
|
3395
3395
|
},
|
3396
|
+
{
|
3397
|
+
"id": "CSSAnimationStyle",
|
3398
|
+
"description": "CSS style coming from animations with the name of the animation.",
|
3399
|
+
"type": "object",
|
3400
|
+
"properties": [
|
3401
|
+
{
|
3402
|
+
"name": "name",
|
3403
|
+
"description": "The name of the animation.",
|
3404
|
+
"optional": true,
|
3405
|
+
"type": "string"
|
3406
|
+
},
|
3407
|
+
{
|
3408
|
+
"name": "style",
|
3409
|
+
"description": "The style coming from the animation.",
|
3410
|
+
"$ref": "CSSStyle"
|
3411
|
+
}
|
3412
|
+
]
|
3413
|
+
},
|
3396
3414
|
{
|
3397
3415
|
"id": "InheritedStyleEntry",
|
3398
3416
|
"description": "Inherited CSS rule collection from ancestor node.",
|
@@ -3414,6 +3432,28 @@
|
|
3414
3432
|
}
|
3415
3433
|
]
|
3416
3434
|
},
|
3435
|
+
{
|
3436
|
+
"id": "InheritedAnimatedStyleEntry",
|
3437
|
+
"description": "Inherited CSS style collection for animated styles from ancestor node.",
|
3438
|
+
"type": "object",
|
3439
|
+
"properties": [
|
3440
|
+
{
|
3441
|
+
"name": "animationStyles",
|
3442
|
+
"description": "Styles coming from the animations of the ancestor, if any, in the style inheritance chain.",
|
3443
|
+
"optional": true,
|
3444
|
+
"type": "array",
|
3445
|
+
"items": {
|
3446
|
+
"$ref": "CSSAnimationStyle"
|
3447
|
+
}
|
3448
|
+
},
|
3449
|
+
{
|
3450
|
+
"name": "transitionsStyle",
|
3451
|
+
"description": "The style coming from the transitions of the ancestor, if any, in the style inheritance chain.",
|
3452
|
+
"optional": true,
|
3453
|
+
"$ref": "CSSStyle"
|
3454
|
+
}
|
3455
|
+
]
|
3456
|
+
},
|
3417
3457
|
{
|
3418
3458
|
"id": "InheritedPseudoElementMatches",
|
3419
3459
|
"description": "Inherited pseudo element matches from pseudos of an ancestor node.",
|
@@ -4769,6 +4809,43 @@
|
|
4769
4809
|
}
|
4770
4810
|
]
|
4771
4811
|
},
|
4812
|
+
{
|
4813
|
+
"name": "getAnimatedStylesForNode",
|
4814
|
+
"description": "Returns the styles coming from animations & transitions\nincluding the animation & transition styles coming from inheritance chain.",
|
4815
|
+
"experimental": true,
|
4816
|
+
"parameters": [
|
4817
|
+
{
|
4818
|
+
"name": "nodeId",
|
4819
|
+
"$ref": "DOM.NodeId"
|
4820
|
+
}
|
4821
|
+
],
|
4822
|
+
"returns": [
|
4823
|
+
{
|
4824
|
+
"name": "animationStyles",
|
4825
|
+
"description": "Styles coming from animations.",
|
4826
|
+
"optional": true,
|
4827
|
+
"type": "array",
|
4828
|
+
"items": {
|
4829
|
+
"$ref": "CSSAnimationStyle"
|
4830
|
+
}
|
4831
|
+
},
|
4832
|
+
{
|
4833
|
+
"name": "transitionsStyle",
|
4834
|
+
"description": "Style coming from transitions.",
|
4835
|
+
"optional": true,
|
4836
|
+
"$ref": "CSSStyle"
|
4837
|
+
},
|
4838
|
+
{
|
4839
|
+
"name": "inherited",
|
4840
|
+
"description": "Inherited style entries for animationsStyle and transitionsStyle from\nthe inheritance chain of the element.",
|
4841
|
+
"optional": true,
|
4842
|
+
"type": "array",
|
4843
|
+
"items": {
|
4844
|
+
"$ref": "InheritedAnimatedStyleEntry"
|
4845
|
+
}
|
4846
|
+
}
|
4847
|
+
]
|
4848
|
+
},
|
4772
4849
|
{
|
4773
4850
|
"name": "getMatchedStylesForNode",
|
4774
4851
|
"description": "Returns requested styles for a DOM node identified by `nodeId`.",
|
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
@@ -1701,6 +1701,14 @@ experimental domain CSS
|
|
1701
1701
|
# Matches of CSS rules applicable to the pseudo style.
|
1702
1702
|
array of RuleMatch matches
|
1703
1703
|
|
1704
|
+
# CSS style coming from animations with the name of the animation.
|
1705
|
+
type CSSAnimationStyle extends object
|
1706
|
+
properties
|
1707
|
+
# The name of the animation.
|
1708
|
+
optional string name
|
1709
|
+
# The style coming from the animation.
|
1710
|
+
CSSStyle style
|
1711
|
+
|
1704
1712
|
# Inherited CSS rule collection from ancestor node.
|
1705
1713
|
type InheritedStyleEntry extends object
|
1706
1714
|
properties
|
@@ -1709,6 +1717,14 @@ experimental domain CSS
|
|
1709
1717
|
# Matches of CSS rules matching the ancestor node in the style inheritance chain.
|
1710
1718
|
array of RuleMatch matchedCSSRules
|
1711
1719
|
|
1720
|
+
# Inherited CSS style collection for animated styles from ancestor node.
|
1721
|
+
type InheritedAnimatedStyleEntry extends object
|
1722
|
+
properties
|
1723
|
+
# Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
|
1724
|
+
optional array of CSSAnimationStyle animationStyles
|
1725
|
+
# The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
|
1726
|
+
optional CSSStyle transitionsStyle
|
1727
|
+
|
1712
1728
|
# Inherited pseudo element matches from pseudos of an ancestor node.
|
1713
1729
|
type InheritedPseudoElementMatches extends object
|
1714
1730
|
properties
|
@@ -2296,6 +2312,20 @@ experimental domain CSS
|
|
2296
2312
|
# Attribute-defined element style (e.g. resulting from "width=20 height=100%").
|
2297
2313
|
optional CSSStyle attributesStyle
|
2298
2314
|
|
2315
|
+
# Returns the styles coming from animations & transitions
|
2316
|
+
# including the animation & transition styles coming from inheritance chain.
|
2317
|
+
experimental command getAnimatedStylesForNode
|
2318
|
+
parameters
|
2319
|
+
DOM.NodeId nodeId
|
2320
|
+
returns
|
2321
|
+
# Styles coming from animations.
|
2322
|
+
optional array of CSSAnimationStyle animationStyles
|
2323
|
+
# Style coming from transitions.
|
2324
|
+
optional CSSStyle transitionsStyle
|
2325
|
+
# Inherited style entries for animationsStyle and transitionsStyle from
|
2326
|
+
# the inheritance chain of the element.
|
2327
|
+
optional array of InheritedAnimatedStyleEntry inherited
|
2328
|
+
|
2299
2329
|
# Returns requested styles for a DOM node identified by `nodeId`.
|
2300
2330
|
command getMatchedStylesForNode
|
2301
2331
|
parameters
|
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.
|
@@ -1836,6 +1836,14 @@ export namespace ProtocolMapping {
|
|
1836
1836
|
paramsType: [Protocol.CSS.GetInlineStylesForNodeRequest];
|
1837
1837
|
returnType: Protocol.CSS.GetInlineStylesForNodeResponse;
|
1838
1838
|
};
|
1839
|
+
/**
|
1840
|
+
* Returns the styles coming from animations & transitions
|
1841
|
+
* including the animation & transition styles coming from inheritance chain.
|
1842
|
+
*/
|
1843
|
+
'CSS.getAnimatedStylesForNode': {
|
1844
|
+
paramsType: [Protocol.CSS.GetAnimatedStylesForNodeRequest];
|
1845
|
+
returnType: Protocol.CSS.GetAnimatedStylesForNodeResponse;
|
1846
|
+
};
|
1839
1847
|
/**
|
1840
1848
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1841
1849
|
*/
|
@@ -1075,6 +1075,12 @@ export namespace ProtocolProxyApi {
|
|
1075
1075
|
*/
|
1076
1076
|
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<Protocol.CSS.GetInlineStylesForNodeResponse>;
|
1077
1077
|
|
1078
|
+
/**
|
1079
|
+
* Returns the styles coming from animations & transitions
|
1080
|
+
* including the animation & transition styles coming from inheritance chain.
|
1081
|
+
*/
|
1082
|
+
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<Protocol.CSS.GetAnimatedStylesForNodeResponse>;
|
1083
|
+
|
1078
1084
|
/**
|
1079
1085
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1080
1086
|
*/
|
@@ -1143,6 +1143,12 @@ export namespace ProtocolTestsProxyApi {
|
|
1143
1143
|
*/
|
1144
1144
|
getInlineStylesForNode(params: Protocol.CSS.GetInlineStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetInlineStylesForNodeResponse, sessionId: string}>;
|
1145
1145
|
|
1146
|
+
/**
|
1147
|
+
* Returns the styles coming from animations & transitions
|
1148
|
+
* including the animation & transition styles coming from inheritance chain.
|
1149
|
+
*/
|
1150
|
+
getAnimatedStylesForNode(params: Protocol.CSS.GetAnimatedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetAnimatedStylesForNodeResponse, sessionId: string}>;
|
1151
|
+
|
1146
1152
|
/**
|
1147
1153
|
* Returns requested styles for a DOM node identified by `nodeId`.
|
1148
1154
|
*/
|
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
|
*/
|
@@ -4531,6 +4539,20 @@ export namespace Protocol {
|
|
4531
4539
|
matches: RuleMatch[];
|
4532
4540
|
}
|
4533
4541
|
|
4542
|
+
/**
|
4543
|
+
* CSS style coming from animations with the name of the animation.
|
4544
|
+
*/
|
4545
|
+
export interface CSSAnimationStyle {
|
4546
|
+
/**
|
4547
|
+
* The name of the animation.
|
4548
|
+
*/
|
4549
|
+
name?: string;
|
4550
|
+
/**
|
4551
|
+
* The style coming from the animation.
|
4552
|
+
*/
|
4553
|
+
style: CSSStyle;
|
4554
|
+
}
|
4555
|
+
|
4534
4556
|
/**
|
4535
4557
|
* Inherited CSS rule collection from ancestor node.
|
4536
4558
|
*/
|
@@ -4545,6 +4567,20 @@ export namespace Protocol {
|
|
4545
4567
|
matchedCSSRules: RuleMatch[];
|
4546
4568
|
}
|
4547
4569
|
|
4570
|
+
/**
|
4571
|
+
* Inherited CSS style collection for animated styles from ancestor node.
|
4572
|
+
*/
|
4573
|
+
export interface InheritedAnimatedStyleEntry {
|
4574
|
+
/**
|
4575
|
+
* Styles coming from the animations of the ancestor, if any, in the style inheritance chain.
|
4576
|
+
*/
|
4577
|
+
animationStyles?: CSSAnimationStyle[];
|
4578
|
+
/**
|
4579
|
+
* The style coming from the transitions of the ancestor, if any, in the style inheritance chain.
|
4580
|
+
*/
|
4581
|
+
transitionsStyle?: CSSStyle;
|
4582
|
+
}
|
4583
|
+
|
4548
4584
|
/**
|
4549
4585
|
* Inherited pseudo element matches from pseudos of an ancestor node.
|
4550
4586
|
*/
|
@@ -5520,6 +5556,26 @@ export namespace Protocol {
|
|
5520
5556
|
attributesStyle?: CSSStyle;
|
5521
5557
|
}
|
5522
5558
|
|
5559
|
+
export interface GetAnimatedStylesForNodeRequest {
|
5560
|
+
nodeId: DOM.NodeId;
|
5561
|
+
}
|
5562
|
+
|
5563
|
+
export interface GetAnimatedStylesForNodeResponse {
|
5564
|
+
/**
|
5565
|
+
* Styles coming from animations.
|
5566
|
+
*/
|
5567
|
+
animationStyles?: CSSAnimationStyle[];
|
5568
|
+
/**
|
5569
|
+
* Style coming from transitions.
|
5570
|
+
*/
|
5571
|
+
transitionsStyle?: CSSStyle;
|
5572
|
+
/**
|
5573
|
+
* Inherited style entries for animationsStyle and transitionsStyle from
|
5574
|
+
* the inheritance chain of the element.
|
5575
|
+
*/
|
5576
|
+
inherited?: InheritedAnimatedStyleEntry[];
|
5577
|
+
}
|
5578
|
+
|
5523
5579
|
export interface GetMatchedStylesForNodeRequest {
|
5524
5580
|
nodeId: DOM.NodeId;
|
5525
5581
|
}
|