devtools-protocol 0.0.1707781 → 0.0.1710668

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.
@@ -5990,6 +5990,23 @@
5990
5990
  }
5991
5991
  ]
5992
5992
  },
5993
+ {
5994
+ "name": "forcePositionTryOption",
5995
+ "description": "Forces a position-try option for the given node.",
5996
+ "parameters": [
5997
+ {
5998
+ "name": "nodeId",
5999
+ "description": "The element id for which to force the position-try option.",
6000
+ "$ref": "DOM.NodeId"
6001
+ },
6002
+ {
6003
+ "name": "index",
6004
+ "description": "The 1-based index of the position-try fallback option, 0 for base position (no fallback),\nor omitted to clear the forced state.",
6005
+ "optional": true,
6006
+ "type": "integer"
6007
+ }
6008
+ ]
6009
+ },
5993
6010
  {
5994
6011
  "name": "getBackgroundColors",
5995
6012
  "parameters": [
@@ -282,11 +282,15 @@
282
282
  "$ref": "Location"
283
283
  },
284
284
  {
285
- "name": "empty",
286
- "description": "True if the scope does not declare any variables.\nOnly present if true.\nEmpty scopes are retained in the scope chain because\nthey can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or\nmatched against scopes in source maps.",
285
+ "name": "emptyReason",
286
+ "description": "Present if the scope has no variable values to show. Absent means that\nthe scope declares at least one variable with an available value.\nEmpty scopes are retained in the scope chain because\nthey can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or\nmatched against scopes in source maps.",
287
287
  "experimental": true,
288
288
  "optional": true,
289
- "type": "boolean"
289
+ "type": "string",
290
+ "enum": [
291
+ "no-variables",
292
+ "all-unavailable"
293
+ ]
290
294
  }
291
295
  ]
292
296
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1707781",
3
+ "version": "0.0.1710668",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -712,6 +712,15 @@ experimental domain CSS
712
712
  # Boolean indicating if this is on or off.
713
713
  boolean forced
714
714
 
715
+ # Forces a position-try option for the given node.
716
+ command forcePositionTryOption
717
+ parameters
718
+ # The element id for which to force the position-try option.
719
+ DOM.NodeId nodeId
720
+ # The 1-based index of the position-try fallback option, 0 for base position (no fallback),
721
+ # or omitted to clear the forced state.
722
+ optional integer index
723
+
715
724
  command getBackgroundColors
716
725
  parameters
717
726
  # Id of the node to get background colors for.
@@ -143,12 +143,17 @@ domain Debugger
143
143
  optional Location startLocation
144
144
  # Location in the source code where scope ends
145
145
  optional Location endLocation
146
- # True if the scope does not declare any variables.
147
- # Only present if true.
146
+ # Present if the scope has no variable values to show. Absent means that
147
+ # the scope declares at least one variable with an available value.
148
148
  # Empty scopes are retained in the scope chain because
149
149
  # they can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or
150
150
  # matched against scopes in source maps.
151
- experimental optional boolean empty
151
+ experimental optional enum emptyReason
152
+ # The scope does not declare any variables.
153
+ no-variables
154
+ # The scope declares variables, but none of their values are available
155
+ # (e.g. because they were optimized out or are in their TDZ).
156
+ all-unavailable
152
157
 
153
158
  # Search match for resource.
154
159
  type SearchMatch extends object
@@ -2270,6 +2270,13 @@ export namespace ProtocolMapping {
2270
2270
  paramsType: [Protocol.CSS.ForceStartingStyleRequest];
2271
2271
  returnType: void;
2272
2272
  };
2273
+ /**
2274
+ * Forces a position-try option for the given node.
2275
+ */
2276
+ 'CSS.forcePositionTryOption': {
2277
+ paramsType: [Protocol.CSS.ForcePositionTryOptionRequest];
2278
+ returnType: void;
2279
+ };
2273
2280
  'CSS.getBackgroundColors': {
2274
2281
  paramsType: [Protocol.CSS.GetBackgroundColorsRequest];
2275
2282
  returnType: Protocol.CSS.GetBackgroundColorsResponse;
@@ -1239,6 +1239,11 @@ export namespace ProtocolProxyApi {
1239
1239
  */
1240
1240
  forceStartingStyle(params: Protocol.CSS.ForceStartingStyleRequest): Promise<void>;
1241
1241
 
1242
+ /**
1243
+ * Forces a position-try option for the given node.
1244
+ */
1245
+ forcePositionTryOption(params: Protocol.CSS.ForcePositionTryOptionRequest): Promise<void>;
1246
+
1242
1247
  getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<Protocol.CSS.GetBackgroundColorsResponse>;
1243
1248
 
1244
1249
  /**
@@ -1313,6 +1313,11 @@ export namespace ProtocolTestsProxyApi {
1313
1313
  */
1314
1314
  forceStartingStyle(params: Protocol.CSS.ForceStartingStyleRequest): Promise<{id: number, result: void, sessionId: string}>;
1315
1315
 
1316
+ /**
1317
+ * Forces a position-try option for the given node.
1318
+ */
1319
+ forcePositionTryOption(params: Protocol.CSS.ForcePositionTryOptionRequest): Promise<{id: number, result: void, sessionId: string}>;
1320
+
1316
1321
  getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<{id: number, result: Protocol.CSS.GetBackgroundColorsResponse, sessionId: string}>;
1317
1322
 
1318
1323
  /**
@@ -199,6 +199,11 @@ export namespace Protocol {
199
199
  WasmExpressionStack = 'wasm-expression-stack',
200
200
  }
201
201
 
202
+ export const enum ScopeEmptyReason {
203
+ NoVariables = 'no-variables',
204
+ AllUnavailable = 'all-unavailable',
205
+ }
206
+
202
207
  /**
203
208
  * Scope description.
204
209
  */
@@ -223,14 +228,14 @@ export namespace Protocol {
223
228
  */
224
229
  endLocation?: Location;
225
230
  /**
226
- * True if the scope does not declare any variables.
227
- * Only present if true.
231
+ * Present if the scope has no variable values to show. Absent means that
232
+ * the scope declares at least one variable with an available value.
228
233
  * Empty scopes are retained in the scope chain because
229
234
  * they can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or
230
235
  * matched against scopes in source maps.
231
236
  * @experimental
232
237
  */
233
- empty?: boolean;
238
+ emptyReason?: ('no-variables' | 'all-unavailable');
234
239
  }
235
240
 
236
241
  /**
@@ -6341,6 +6346,18 @@ export namespace Protocol {
6341
6346
  forced: boolean;
6342
6347
  }
6343
6348
 
6349
+ export interface ForcePositionTryOptionRequest {
6350
+ /**
6351
+ * The element id for which to force the position-try option.
6352
+ */
6353
+ nodeId: DOM.NodeId;
6354
+ /**
6355
+ * The 1-based index of the position-try fallback option, 0 for base position (no fallback),
6356
+ * or omitted to clear the forced state.
6357
+ */
6358
+ index?: integer;
6359
+ }
6360
+
6344
6361
  export interface GetBackgroundColorsRequest {
6345
6362
  /**
6346
6363
  * Id of the node to get background colors for.