devtools-protocol 0.0.1541017 → 0.0.1541592
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 +68 -0
- package/package.json +1 -1
- package/pdl/domains/CSS.pdl +30 -0
- package/pdl/domains/Target.pdl +3 -0
- package/types/protocol.d.ts +55 -0
|
@@ -5177,6 +5177,59 @@
|
|
|
5177
5177
|
}
|
|
5178
5178
|
]
|
|
5179
5179
|
},
|
|
5180
|
+
{
|
|
5181
|
+
"id": "CSSAtRule",
|
|
5182
|
+
"description": "CSS generic @rule representation.",
|
|
5183
|
+
"type": "object",
|
|
5184
|
+
"properties": [
|
|
5185
|
+
{
|
|
5186
|
+
"name": "type",
|
|
5187
|
+
"description": "Type of at-rule.",
|
|
5188
|
+
"type": "string",
|
|
5189
|
+
"enum": [
|
|
5190
|
+
"font-face",
|
|
5191
|
+
"font-feature-values",
|
|
5192
|
+
"font-palette-values"
|
|
5193
|
+
]
|
|
5194
|
+
},
|
|
5195
|
+
{
|
|
5196
|
+
"name": "subsection",
|
|
5197
|
+
"description": "Subsection of font-feature-values, if this is a subsection.",
|
|
5198
|
+
"optional": true,
|
|
5199
|
+
"type": "string",
|
|
5200
|
+
"enum": [
|
|
5201
|
+
"swash",
|
|
5202
|
+
"annotation",
|
|
5203
|
+
"ornaments",
|
|
5204
|
+
"stylistic",
|
|
5205
|
+
"styleset",
|
|
5206
|
+
"character-variant"
|
|
5207
|
+
]
|
|
5208
|
+
},
|
|
5209
|
+
{
|
|
5210
|
+
"name": "name",
|
|
5211
|
+
"description": "LINT.ThenChange(//third_party/blink/renderer/core/inspector/inspector_style_sheet.cc:FontVariantAlternatesFeatureType,//third_party/blink/renderer/core/inspector/inspector_css_agent.cc:FontVariantAlternatesFeatureType)\nAssociated name, if applicable.",
|
|
5212
|
+
"optional": true,
|
|
5213
|
+
"$ref": "Value"
|
|
5214
|
+
},
|
|
5215
|
+
{
|
|
5216
|
+
"name": "styleSheetId",
|
|
5217
|
+
"description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
|
|
5218
|
+
"optional": true,
|
|
5219
|
+
"$ref": "StyleSheetId"
|
|
5220
|
+
},
|
|
5221
|
+
{
|
|
5222
|
+
"name": "origin",
|
|
5223
|
+
"description": "Parent stylesheet's origin.",
|
|
5224
|
+
"$ref": "StyleSheetOrigin"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
"name": "style",
|
|
5228
|
+
"description": "Associated style declaration.",
|
|
5229
|
+
"$ref": "CSSStyle"
|
|
5230
|
+
}
|
|
5231
|
+
]
|
|
5232
|
+
},
|
|
5180
5233
|
{
|
|
5181
5234
|
"id": "CSSPropertyRule",
|
|
5182
5235
|
"description": "CSS property at-rule representation.",
|
|
@@ -5788,6 +5841,15 @@
|
|
|
5788
5841
|
"optional": true,
|
|
5789
5842
|
"$ref": "CSSFontPaletteValuesRule"
|
|
5790
5843
|
},
|
|
5844
|
+
{
|
|
5845
|
+
"name": "cssAtRules",
|
|
5846
|
+
"description": "A list of simple @rules matching this node or its pseudo-elements.",
|
|
5847
|
+
"optional": true,
|
|
5848
|
+
"type": "array",
|
|
5849
|
+
"items": {
|
|
5850
|
+
"$ref": "CSSAtRule"
|
|
5851
|
+
}
|
|
5852
|
+
},
|
|
5791
5853
|
{
|
|
5792
5854
|
"name": "parentLayoutNodeId",
|
|
5793
5855
|
"description": "Id of the first parent element that does not have display: contents.",
|
|
@@ -28156,6 +28218,12 @@
|
|
|
28156
28218
|
"name": "targetId",
|
|
28157
28219
|
"description": "This can be the page or tab target ID.",
|
|
28158
28220
|
"$ref": "TargetID"
|
|
28221
|
+
},
|
|
28222
|
+
{
|
|
28223
|
+
"name": "panelId",
|
|
28224
|
+
"description": "The id of the panel we want DevTools to open initially. Currently\nsupported panels are elements, console, network, sources and resources.",
|
|
28225
|
+
"optional": true,
|
|
28226
|
+
"type": "string"
|
|
28159
28227
|
}
|
|
28160
28228
|
],
|
|
28161
28229
|
"returns": [
|
package/package.json
CHANGED
package/pdl/domains/CSS.pdl
CHANGED
|
@@ -514,6 +514,34 @@ experimental domain CSS
|
|
|
514
514
|
# Associated style declaration.
|
|
515
515
|
CSSStyle style
|
|
516
516
|
|
|
517
|
+
# CSS generic @rule representation.
|
|
518
|
+
type CSSAtRule extends object
|
|
519
|
+
properties
|
|
520
|
+
# Type of at-rule.
|
|
521
|
+
enum type
|
|
522
|
+
font-face
|
|
523
|
+
font-feature-values
|
|
524
|
+
font-palette-values
|
|
525
|
+
# Subsection of font-feature-values, if this is a subsection.
|
|
526
|
+
optional enum subsection
|
|
527
|
+
# LINT.IfChange(FontVariantAlternatesFeatureType)
|
|
528
|
+
swash
|
|
529
|
+
annotation
|
|
530
|
+
ornaments
|
|
531
|
+
stylistic
|
|
532
|
+
styleset
|
|
533
|
+
character-variant
|
|
534
|
+
# LINT.ThenChange(//third_party/blink/renderer/core/inspector/inspector_style_sheet.cc:FontVariantAlternatesFeatureType,//third_party/blink/renderer/core/inspector/inspector_css_agent.cc:FontVariantAlternatesFeatureType)
|
|
535
|
+
# Associated name, if applicable.
|
|
536
|
+
optional Value name
|
|
537
|
+
# The css style sheet identifier (absent for user agent stylesheet and user-specified
|
|
538
|
+
# stylesheet rules) this rule came from.
|
|
539
|
+
optional StyleSheetId styleSheetId
|
|
540
|
+
# Parent stylesheet's origin.
|
|
541
|
+
StyleSheetOrigin origin
|
|
542
|
+
# Associated style declaration.
|
|
543
|
+
CSSStyle style
|
|
544
|
+
|
|
517
545
|
# CSS property at-rule representation.
|
|
518
546
|
type CSSPropertyRule extends object
|
|
519
547
|
properties
|
|
@@ -774,6 +802,8 @@ experimental domain CSS
|
|
|
774
802
|
optional array of CSSPropertyRegistration cssPropertyRegistrations
|
|
775
803
|
# A font-palette-values rule matching this node.
|
|
776
804
|
optional CSSFontPaletteValuesRule cssFontPaletteValuesRule
|
|
805
|
+
# A list of simple @rules matching this node or its pseudo-elements.
|
|
806
|
+
optional array of CSSAtRule cssAtRules
|
|
777
807
|
# Id of the first parent element that does not have display: contents.
|
|
778
808
|
experimental optional DOM.NodeId parentLayoutNodeId
|
|
779
809
|
# A list of CSS at-function rules referenced by styles of this node.
|
package/pdl/domains/Target.pdl
CHANGED
|
@@ -322,6 +322,9 @@ domain Target
|
|
|
322
322
|
parameters
|
|
323
323
|
# This can be the page or tab target ID.
|
|
324
324
|
TargetID targetId
|
|
325
|
+
# The id of the panel we want DevTools to open initially. Currently
|
|
326
|
+
# supported panels are elements, console, network, sources and resources.
|
|
327
|
+
optional string panelId
|
|
325
328
|
returns
|
|
326
329
|
# The targetId of DevTools page target.
|
|
327
330
|
TargetID targetId
|
package/types/protocol.d.ts
CHANGED
|
@@ -5800,6 +5800,52 @@ export namespace Protocol {
|
|
|
5800
5800
|
style: CSSStyle;
|
|
5801
5801
|
}
|
|
5802
5802
|
|
|
5803
|
+
export const enum CSSAtRuleType {
|
|
5804
|
+
FontFace = 'font-face',
|
|
5805
|
+
FontFeatureValues = 'font-feature-values',
|
|
5806
|
+
FontPaletteValues = 'font-palette-values',
|
|
5807
|
+
}
|
|
5808
|
+
|
|
5809
|
+
export const enum CSSAtRuleSubsection {
|
|
5810
|
+
Swash = 'swash',
|
|
5811
|
+
Annotation = 'annotation',
|
|
5812
|
+
Ornaments = 'ornaments',
|
|
5813
|
+
Stylistic = 'stylistic',
|
|
5814
|
+
Styleset = 'styleset',
|
|
5815
|
+
CharacterVariant = 'character-variant',
|
|
5816
|
+
}
|
|
5817
|
+
|
|
5818
|
+
/**
|
|
5819
|
+
* CSS generic @rule representation.
|
|
5820
|
+
*/
|
|
5821
|
+
export interface CSSAtRule {
|
|
5822
|
+
/**
|
|
5823
|
+
* Type of at-rule.
|
|
5824
|
+
*/
|
|
5825
|
+
type: ('font-face' | 'font-feature-values' | 'font-palette-values');
|
|
5826
|
+
/**
|
|
5827
|
+
* Subsection of font-feature-values, if this is a subsection.
|
|
5828
|
+
*/
|
|
5829
|
+
subsection?: ('swash' | 'annotation' | 'ornaments' | 'stylistic' | 'styleset' | 'character-variant');
|
|
5830
|
+
/**
|
|
5831
|
+
* Associated name, if applicable.
|
|
5832
|
+
*/
|
|
5833
|
+
name?: Value;
|
|
5834
|
+
/**
|
|
5835
|
+
* The css style sheet identifier (absent for user agent stylesheet and user-specified
|
|
5836
|
+
* stylesheet rules) this rule came from.
|
|
5837
|
+
*/
|
|
5838
|
+
styleSheetId?: StyleSheetId;
|
|
5839
|
+
/**
|
|
5840
|
+
* Parent stylesheet's origin.
|
|
5841
|
+
*/
|
|
5842
|
+
origin: StyleSheetOrigin;
|
|
5843
|
+
/**
|
|
5844
|
+
* Associated style declaration.
|
|
5845
|
+
*/
|
|
5846
|
+
style: CSSStyle;
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5803
5849
|
/**
|
|
5804
5850
|
* CSS property at-rule representation.
|
|
5805
5851
|
*/
|
|
@@ -6198,6 +6244,10 @@ export namespace Protocol {
|
|
|
6198
6244
|
* A font-palette-values rule matching this node.
|
|
6199
6245
|
*/
|
|
6200
6246
|
cssFontPaletteValuesRule?: CSSFontPaletteValuesRule;
|
|
6247
|
+
/**
|
|
6248
|
+
* A list of simple @rules matching this node or its pseudo-elements.
|
|
6249
|
+
*/
|
|
6250
|
+
cssAtRules?: CSSAtRule[];
|
|
6201
6251
|
/**
|
|
6202
6252
|
* Id of the first parent element that does not have display: contents.
|
|
6203
6253
|
* @experimental
|
|
@@ -20336,6 +20386,11 @@ export namespace Protocol {
|
|
|
20336
20386
|
* This can be the page or tab target ID.
|
|
20337
20387
|
*/
|
|
20338
20388
|
targetId: TargetID;
|
|
20389
|
+
/**
|
|
20390
|
+
* The id of the panel we want DevTools to open initially. Currently
|
|
20391
|
+
* supported panels are elements, console, network, sources and resources.
|
|
20392
|
+
*/
|
|
20393
|
+
panelId?: string;
|
|
20339
20394
|
}
|
|
20340
20395
|
|
|
20341
20396
|
export interface OpenDevToolsResponse {
|