devtools-protocol 0.0.1338866 → 0.0.1340018

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.
@@ -5870,6 +5870,24 @@
5870
5870
  }
5871
5871
  ]
5872
5872
  },
5873
+ {
5874
+ "id": "DetachedElementInfo",
5875
+ "description": "A structure to hold the top-level node of a detached tree and an array of its retained descendants.",
5876
+ "type": "object",
5877
+ "properties": [
5878
+ {
5879
+ "name": "treeNode",
5880
+ "$ref": "Node"
5881
+ },
5882
+ {
5883
+ "name": "retainedNodeIds",
5884
+ "type": "array",
5885
+ "items": {
5886
+ "$ref": "NodeId"
5887
+ }
5888
+ }
5889
+ ]
5890
+ },
5873
5891
  {
5874
5892
  "id": "RGBA",
5875
5893
  "description": "A structure holding an RGBA color.",
@@ -6958,6 +6976,21 @@
6958
6976
  }
6959
6977
  ]
6960
6978
  },
6979
+ {
6980
+ "name": "getDetachedDomNodes",
6981
+ "description": "Returns list of detached nodes",
6982
+ "experimental": true,
6983
+ "returns": [
6984
+ {
6985
+ "name": "detachedNodes",
6986
+ "description": "The list of detached nodes",
6987
+ "type": "array",
6988
+ "items": {
6989
+ "$ref": "DetachedElementInfo"
6990
+ }
6991
+ }
6992
+ ]
6993
+ },
6961
6994
  {
6962
6995
  "name": "setInspectedNode",
6963
6996
  "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details\n$x functions).",
@@ -20146,6 +20179,16 @@
20146
20179
  "name": "url",
20147
20180
  "description": "Frame's new url.",
20148
20181
  "type": "string"
20182
+ },
20183
+ {
20184
+ "name": "navigationType",
20185
+ "description": "Navigation type",
20186
+ "type": "string",
20187
+ "enum": [
20188
+ "fragment",
20189
+ "historyApi",
20190
+ "other"
20191
+ ]
20149
20192
  }
20150
20193
  ]
20151
20194
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1338866",
3
+ "version": "0.0.1340018",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -2780,6 +2780,12 @@ domain DOM
2780
2780
  optional CompatibilityMode compatibilityMode
2781
2781
  optional BackendNode assignedSlot
2782
2782
 
2783
+ # A structure to hold the top-level node of a detached tree and an array of its retained descendants.
2784
+ type DetachedElementInfo extends object
2785
+ properties
2786
+ Node treeNode
2787
+ array of NodeId retainedNodeIds
2788
+
2783
2789
  # A structure holding an RGBA color.
2784
2790
  type RGBA extends object
2785
2791
  properties
@@ -3290,6 +3296,12 @@ domain DOM
3290
3296
  returns
3291
3297
  string path
3292
3298
 
3299
+ # Returns list of detached nodes
3300
+ experimental command getDetachedDomNodes
3301
+ returns
3302
+ # The list of detached nodes
3303
+ array of DetachedElementInfo detachedNodes
3304
+
3293
3305
  # Enables console to refer to the node with given id via $x (see Command Line API for more details
3294
3306
  # $x functions).
3295
3307
  experimental command setInspectedNode
@@ -9500,6 +9512,15 @@ domain Page
9500
9512
  FrameId frameId
9501
9513
  # Frame's new url.
9502
9514
  string url
9515
+ # Navigation type
9516
+ enum navigationType
9517
+ # Navigation due to fragment navigation.
9518
+ fragment
9519
+ # Navigation due to history API usage.
9520
+ historyApi
9521
+ # Navigation due to other reasons.
9522
+ other
9523
+
9503
9524
 
9504
9525
  # Compressed image data requested by the `startScreencast`.
9505
9526
  experimental event screencastFrame
@@ -2337,6 +2337,13 @@ export namespace ProtocolMapping {
2337
2337
  paramsType: [Protocol.DOM.GetFileInfoRequest];
2338
2338
  returnType: Protocol.DOM.GetFileInfoResponse;
2339
2339
  };
2340
+ /**
2341
+ * Returns list of detached nodes
2342
+ */
2343
+ 'DOM.getDetachedDomNodes': {
2344
+ paramsType: [];
2345
+ returnType: Protocol.DOM.GetDetachedDomNodesResponse;
2346
+ };
2340
2347
  /**
2341
2348
  * Enables console to refer to the node with given id via $x (see Command Line API for more details
2342
2349
  * $x functions).
@@ -1505,6 +1505,11 @@ export namespace ProtocolProxyApi {
1505
1505
  */
1506
1506
  getFileInfo(params: Protocol.DOM.GetFileInfoRequest): Promise<Protocol.DOM.GetFileInfoResponse>;
1507
1507
 
1508
+ /**
1509
+ * Returns list of detached nodes
1510
+ */
1511
+ getDetachedDomNodes(): Promise<Protocol.DOM.GetDetachedDomNodesResponse>;
1512
+
1508
1513
  /**
1509
1514
  * Enables console to refer to the node with given id via $x (see Command Line API for more details
1510
1515
  * $x functions).
@@ -1587,6 +1587,11 @@ export namespace ProtocolTestsProxyApi {
1587
1587
  */
1588
1588
  getFileInfo(params: Protocol.DOM.GetFileInfoRequest): Promise<{id: number, result: Protocol.DOM.GetFileInfoResponse, sessionId: string}>;
1589
1589
 
1590
+ /**
1591
+ * Returns list of detached nodes
1592
+ */
1593
+ getDetachedDomNodes(): Promise<{id: number, result: Protocol.DOM.GetDetachedDomNodesResponse, sessionId: string}>;
1594
+
1590
1595
  /**
1591
1596
  * Enables console to refer to the node with given id via $x (see Command Line API for more details
1592
1597
  * $x functions).
@@ -6133,6 +6133,14 @@ export namespace Protocol {
6133
6133
  assignedSlot?: BackendNode;
6134
6134
  }
6135
6135
 
6136
+ /**
6137
+ * A structure to hold the top-level node of a detached tree and an array of its retained descendants.
6138
+ */
6139
+ export interface DetachedElementInfo {
6140
+ treeNode: Node;
6141
+ retainedNodeIds: NodeId[];
6142
+ }
6143
+
6136
6144
  /**
6137
6145
  * A structure holding an RGBA color.
6138
6146
  */
@@ -6877,6 +6885,13 @@ export namespace Protocol {
6877
6885
  path: string;
6878
6886
  }
6879
6887
 
6888
+ export interface GetDetachedDomNodesResponse {
6889
+ /**
6890
+ * The list of detached nodes
6891
+ */
6892
+ detachedNodes: DetachedElementInfo[];
6893
+ }
6894
+
6880
6895
  export interface SetInspectedNodeRequest {
6881
6896
  /**
6882
6897
  * DOM node id to be accessible by means of $x command line API.
@@ -15067,6 +15082,12 @@ export namespace Protocol {
15067
15082
  timestamp: Network.MonotonicTime;
15068
15083
  }
15069
15084
 
15085
+ export const enum NavigatedWithinDocumentEventNavigationType {
15086
+ Fragment = 'fragment',
15087
+ HistoryAPI = 'historyApi',
15088
+ Other = 'other',
15089
+ }
15090
+
15070
15091
  /**
15071
15092
  * Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
15072
15093
  */
@@ -15079,6 +15100,10 @@ export namespace Protocol {
15079
15100
  * Frame's new url.
15080
15101
  */
15081
15102
  url: string;
15103
+ /**
15104
+ * Navigation type (NavigatedWithinDocumentEventNavigationType enum)
15105
+ */
15106
+ navigationType: ('fragment' | 'historyApi' | 'other');
15082
15107
  }
15083
15108
 
15084
15109
  /**