devtools-protocol 0.0.1305504 → 0.0.1308459

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.
@@ -7071,6 +7071,31 @@
7071
7071
  }
7072
7072
  }
7073
7073
  ]
7074
+ },
7075
+ {
7076
+ "name": "getAnchorElement",
7077
+ "description": "Returns the target anchor element of the given anchor query according to\nhttps://www.w3.org/TR/css-anchor-position-1/#target.",
7078
+ "experimental": true,
7079
+ "parameters": [
7080
+ {
7081
+ "name": "nodeId",
7082
+ "description": "Id of the positioned element from which to find the anchor.",
7083
+ "$ref": "NodeId"
7084
+ },
7085
+ {
7086
+ "name": "anchorSpecifier",
7087
+ "description": "An optional anchor specifier, as defined in\nhttps://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.\nIf not provided, it will return the implicit anchor element for\nthe given positioned element.",
7088
+ "optional": true,
7089
+ "type": "string"
7090
+ }
7091
+ ],
7092
+ "returns": [
7093
+ {
7094
+ "name": "nodeId",
7095
+ "description": "The anchor element of the given anchor query.",
7096
+ "$ref": "NodeId"
7097
+ }
7098
+ ]
7074
7099
  }
7075
7100
  ],
7076
7101
  "events": [
@@ -15325,7 +15350,7 @@
15325
15350
  "FailedPrecondition",
15326
15351
  "ResourceExhausted",
15327
15352
  "AlreadyExists",
15328
- "Unavailable",
15353
+ "ResourceLimited",
15329
15354
  "Unauthorized",
15330
15355
  "BadResponse",
15331
15356
  "InternalError",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1305504",
3
+ "version": "0.0.1308459",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -3337,6 +3337,21 @@ domain DOM
3337
3337
  # Descendant nodes with container queries against the given container.
3338
3338
  array of NodeId nodeIds
3339
3339
 
3340
+ # Returns the target anchor element of the given anchor query according to
3341
+ # https://www.w3.org/TR/css-anchor-position-1/#target.
3342
+ experimental command getAnchorElement
3343
+ parameters
3344
+ # Id of the positioned element from which to find the anchor.
3345
+ NodeId nodeId
3346
+ # An optional anchor specifier, as defined in
3347
+ # https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.
3348
+ # If not provided, it will return the implicit anchor element for
3349
+ # the given positioned element.
3350
+ optional string anchorSpecifier
3351
+ returns
3352
+ # The anchor element of the given anchor query.
3353
+ NodeId nodeId
3354
+
3340
3355
  # Fired when `Element`'s attribute is modified.
3341
3356
  event attributeModified
3342
3357
  parameters
@@ -7078,7 +7093,7 @@ domain Network
7078
7093
  FailedPrecondition
7079
7094
  ResourceExhausted
7080
7095
  AlreadyExists
7081
- Unavailable
7096
+ ResourceLimited
7082
7097
  Unauthorized
7083
7098
  BadResponse
7084
7099
  InternalError
@@ -2384,6 +2384,14 @@ export namespace ProtocolMapping {
2384
2384
  paramsType: [Protocol.DOM.GetQueryingDescendantsForContainerRequest];
2385
2385
  returnType: Protocol.DOM.GetQueryingDescendantsForContainerResponse;
2386
2386
  };
2387
+ /**
2388
+ * Returns the target anchor element of the given anchor query according to
2389
+ * https://www.w3.org/TR/css-anchor-position-1/#target.
2390
+ */
2391
+ 'DOM.getAnchorElement': {
2392
+ paramsType: [Protocol.DOM.GetAnchorElementRequest];
2393
+ returnType: Protocol.DOM.GetAnchorElementResponse;
2394
+ };
2387
2395
  /**
2388
2396
  * Returns event listeners of the given object.
2389
2397
  */
@@ -1538,6 +1538,12 @@ export namespace ProtocolProxyApi {
1538
1538
  */
1539
1539
  getQueryingDescendantsForContainer(params: Protocol.DOM.GetQueryingDescendantsForContainerRequest): Promise<Protocol.DOM.GetQueryingDescendantsForContainerResponse>;
1540
1540
 
1541
+ /**
1542
+ * Returns the target anchor element of the given anchor query according to
1543
+ * https://www.w3.org/TR/css-anchor-position-1/#target.
1544
+ */
1545
+ getAnchorElement(params: Protocol.DOM.GetAnchorElementRequest): Promise<Protocol.DOM.GetAnchorElementResponse>;
1546
+
1541
1547
  /**
1542
1548
  * Fired when `Element`'s attribute is modified.
1543
1549
  */
@@ -1620,6 +1620,12 @@ export namespace ProtocolTestsProxyApi {
1620
1620
  */
1621
1621
  getQueryingDescendantsForContainer(params: Protocol.DOM.GetQueryingDescendantsForContainerRequest): Promise<{id: number, result: Protocol.DOM.GetQueryingDescendantsForContainerResponse, sessionId: string}>;
1622
1622
 
1623
+ /**
1624
+ * Returns the target anchor element of the given anchor query according to
1625
+ * https://www.w3.org/TR/css-anchor-position-1/#target.
1626
+ */
1627
+ getAnchorElement(params: Protocol.DOM.GetAnchorElementRequest): Promise<{id: number, result: Protocol.DOM.GetAnchorElementResponse, sessionId: string}>;
1628
+
1623
1629
  /**
1624
1630
  * Fired when `Element`'s attribute is modified.
1625
1631
  */
@@ -6950,6 +6950,27 @@ export namespace Protocol {
6950
6950
  nodeIds: NodeId[];
6951
6951
  }
6952
6952
 
6953
+ export interface GetAnchorElementRequest {
6954
+ /**
6955
+ * Id of the positioned element from which to find the anchor.
6956
+ */
6957
+ nodeId: NodeId;
6958
+ /**
6959
+ * An optional anchor specifier, as defined in
6960
+ * https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.
6961
+ * If not provided, it will return the implicit anchor element for
6962
+ * the given positioned element.
6963
+ */
6964
+ anchorSpecifier?: string;
6965
+ }
6966
+
6967
+ export interface GetAnchorElementResponse {
6968
+ /**
6969
+ * The anchor element of the given anchor query.
6970
+ */
6971
+ nodeId: NodeId;
6972
+ }
6973
+
6953
6974
  /**
6954
6975
  * Fired when `Element`'s attribute is modified.
6955
6976
  */
@@ -12287,7 +12308,7 @@ export namespace Protocol {
12287
12308
  FailedPrecondition = 'FailedPrecondition',
12288
12309
  ResourceExhausted = 'ResourceExhausted',
12289
12310
  AlreadyExists = 'AlreadyExists',
12290
- Unavailable = 'Unavailable',
12311
+ ResourceLimited = 'ResourceLimited',
12291
12312
  Unauthorized = 'Unauthorized',
12292
12313
  BadResponse = 'BadResponse',
12293
12314
  InternalError = 'InternalError',
@@ -12308,7 +12329,7 @@ export namespace Protocol {
12308
12329
  * of the operation already exists und thus, the operation was abort
12309
12330
  * preemptively (e.g. a cache hit). (TrustTokenOperationDoneEventStatus enum)
12310
12331
  */
12311
- status: ('Ok' | 'InvalidArgument' | 'MissingIssuerKeys' | 'FailedPrecondition' | 'ResourceExhausted' | 'AlreadyExists' | 'Unavailable' | 'Unauthorized' | 'BadResponse' | 'InternalError' | 'UnknownError' | 'FulfilledLocally');
12332
+ status: ('Ok' | 'InvalidArgument' | 'MissingIssuerKeys' | 'FailedPrecondition' | 'ResourceExhausted' | 'AlreadyExists' | 'ResourceLimited' | 'Unauthorized' | 'BadResponse' | 'InternalError' | 'UnknownError' | 'FulfilledLocally');
12312
12333
  type: TrustTokenOperationType;
12313
12334
  requestId: RequestId;
12314
12335
  /**