devtools-protocol 0.0.866556 → 0.0.869402

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/changelog.md CHANGED
@@ -1,5 +1,38 @@
1
1
 
2
2
 
3
+ ## Roll protocol to r868034
4
+ ###### _2021-03-31 03:16:20_ | Diff: [3948369...a3a5f92](https://github.com/ChromeDevTools/devtools-protocol/compare/3948369...a3a5f92)
5
+ #### `Overlay`: new command
6
+ * [`Overlay.setShowScrollSnapOverlays`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowScrollSnapOverlays)
7
+ #### `Overlay`: new types
8
+ * [`Overlay.ScrollSnapContainerHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapContainerHighlightConfig)
9
+ * [`Overlay.ScrollSnapHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapHighlightConfig)
10
+
11
+
12
+ ## Roll protocol to r867593
13
+ ###### _2021-03-30 07:16:08_ | Diff: [154b166...3948369](https://github.com/ChromeDevTools/devtools-protocol/compare/154b166...3948369)
14
+ #### `Overlay`: removed command
15
+ * [`Overlay.setShowScrollSnapOverlays`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowScrollSnapOverlays)
16
+ #### `Overlay`: removed types
17
+ * [`Overlay.ScrollSnapContainerHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapContainerHighlightConfig)
18
+ * [`Overlay.ScrollSnapHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapHighlightConfig)
19
+
20
+
21
+ ## Roll protocol to r867545
22
+ ###### _2021-03-30 03:16:09_ | Diff: [f7c029d...154b166](https://github.com/ChromeDevTools/devtools-protocol/compare/f7c029d...154b166)
23
+ #### `Overlay`: new command
24
+ * [`Overlay.setShowScrollSnapOverlays`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowScrollSnapOverlays)
25
+ #### `Overlay`: new types
26
+ * [`Overlay.ScrollSnapContainerHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapContainerHighlightConfig)
27
+ * [`Overlay.ScrollSnapHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapHighlightConfig)
28
+
29
+
30
+ ## Roll protocol to r866556
31
+ ###### _2021-03-25 05:16:07_ | Diff: [70fd1b8...f7c029d](https://github.com/ChromeDevTools/devtools-protocol/compare/70fd1b8...f7c029d)
32
+ #### `Audits`: modified type
33
+ * [`Audits.CorsIssueDetails`](https://chromedevtools.github.io/devtools-protocol/tot/Audits/#type-CorsIssueDetails) - The `resourceIPAddressSpace` in the properties had `$ref` _removed_. The `resourceIPAddressSpace` in the properties had `name` _updated_. The `clientSecurityState` in the properties had `name` _updated_. The `clientSecurityState` in the properties had `$ref` _updated_. The properties's `type` _added_. The properties's `clientSecurityState` _added_.
34
+
35
+
3
36
  ## Roll protocol to r866105
4
37
  ###### _2021-03-24 07:16:09_ | Diff: [6024018...70fd1b8](https://github.com/ChromeDevTools/devtools-protocol/compare/6024018...70fd1b8)
5
38
  #### `Network`: new commands
@@ -8295,9 +8295,95 @@
8295
8295
  "id": "TimeSinceEpoch",
8296
8296
  "description": "UTC time in seconds, counted from January 1, 1970.",
8297
8297
  "type": "number"
8298
+ },
8299
+ {
8300
+ "id": "DragDataItem",
8301
+ "experimental": true,
8302
+ "type": "object",
8303
+ "properties": [
8304
+ {
8305
+ "name": "mimeType",
8306
+ "description": "Mime type of the dragged data.",
8307
+ "type": "string"
8308
+ },
8309
+ {
8310
+ "name": "data",
8311
+ "description": "Depending of the value of `mimeType`, it contains the dragged link,\ntext, HTML markup or any other data.",
8312
+ "type": "string"
8313
+ },
8314
+ {
8315
+ "name": "title",
8316
+ "description": "Title associated with a link. Only valid when `mimeType` == \"text/uri-list\".",
8317
+ "optional": true,
8318
+ "type": "string"
8319
+ },
8320
+ {
8321
+ "name": "baseURL",
8322
+ "description": "Stores the base URL for the contained markup. Only valid when `mimeType`\n== \"text/html\".",
8323
+ "optional": true,
8324
+ "type": "string"
8325
+ }
8326
+ ]
8327
+ },
8328
+ {
8329
+ "id": "DragData",
8330
+ "experimental": true,
8331
+ "type": "object",
8332
+ "properties": [
8333
+ {
8334
+ "name": "items",
8335
+ "type": "array",
8336
+ "items": {
8337
+ "$ref": "DragDataItem"
8338
+ }
8339
+ },
8340
+ {
8341
+ "name": "dragOperationsMask",
8342
+ "description": "Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16",
8343
+ "type": "integer"
8344
+ }
8345
+ ]
8298
8346
  }
8299
8347
  ],
8300
8348
  "commands": [
8349
+ {
8350
+ "name": "dispatchDragEvent",
8351
+ "description": "Dispatches a drag event into the page.",
8352
+ "experimental": true,
8353
+ "parameters": [
8354
+ {
8355
+ "name": "type",
8356
+ "description": "Type of the drag event.",
8357
+ "type": "string",
8358
+ "enum": [
8359
+ "dragEnter",
8360
+ "dragOver",
8361
+ "drop",
8362
+ "dragCancel"
8363
+ ]
8364
+ },
8365
+ {
8366
+ "name": "x",
8367
+ "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
8368
+ "type": "number"
8369
+ },
8370
+ {
8371
+ "name": "y",
8372
+ "description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to\nthe top of the viewport and Y increases as it proceeds towards the bottom of the viewport.",
8373
+ "type": "number"
8374
+ },
8375
+ {
8376
+ "name": "data",
8377
+ "$ref": "DragData"
8378
+ },
8379
+ {
8380
+ "name": "modifiers",
8381
+ "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
8382
+ "optional": true,
8383
+ "type": "integer"
8384
+ }
8385
+ ]
8386
+ },
8301
8387
  {
8302
8388
  "name": "dispatchKeyEvent",
8303
8389
  "description": "Dispatches a key event to the page.",
@@ -13021,6 +13107,52 @@
13021
13107
  }
13022
13108
  ]
13023
13109
  },
13110
+ {
13111
+ "id": "ScrollSnapContainerHighlightConfig",
13112
+ "type": "object",
13113
+ "properties": [
13114
+ {
13115
+ "name": "snapportBorder",
13116
+ "description": "The style of the snapport border (default: transparent)",
13117
+ "optional": true,
13118
+ "$ref": "LineStyle"
13119
+ },
13120
+ {
13121
+ "name": "snapAreaBorder",
13122
+ "description": "The style of the snap area border (default: transparent)",
13123
+ "optional": true,
13124
+ "$ref": "LineStyle"
13125
+ },
13126
+ {
13127
+ "name": "scrollMarginColor",
13128
+ "description": "The margin highlight fill color (default: transparent).",
13129
+ "optional": true,
13130
+ "$ref": "DOM.RGBA"
13131
+ },
13132
+ {
13133
+ "name": "scrollPaddingColor",
13134
+ "description": "The padding highlight fill color (default: transparent).",
13135
+ "optional": true,
13136
+ "$ref": "DOM.RGBA"
13137
+ }
13138
+ ]
13139
+ },
13140
+ {
13141
+ "id": "ScrollSnapHighlightConfig",
13142
+ "type": "object",
13143
+ "properties": [
13144
+ {
13145
+ "name": "scrollSnapContainerHighlightConfig",
13146
+ "description": "A descriptor for the highlight appearance of scroll snap containers.",
13147
+ "$ref": "ScrollSnapContainerHighlightConfig"
13148
+ },
13149
+ {
13150
+ "name": "nodeId",
13151
+ "description": "Identifier of the node to highlight.",
13152
+ "$ref": "DOM.NodeId"
13153
+ }
13154
+ ]
13155
+ },
13024
13156
  {
13025
13157
  "id": "HingeConfig",
13026
13158
  "description": "Configuration for dual screen hinge",
@@ -13387,6 +13519,19 @@
13387
13519
  }
13388
13520
  ]
13389
13521
  },
13522
+ {
13523
+ "name": "setShowScrollSnapOverlays",
13524
+ "parameters": [
13525
+ {
13526
+ "name": "scrollSnapHighlightConfigs",
13527
+ "description": "An array of node identifiers and descriptors for the highlight appearance.",
13528
+ "type": "array",
13529
+ "items": {
13530
+ "$ref": "ScrollSnapHighlightConfig"
13531
+ }
13532
+ }
13533
+ ]
13534
+ },
13390
13535
  {
13391
13536
  "name": "setShowPaintRects",
13392
13537
  "description": "Requests that backend shows paint rectangles",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.866556",
3
+ "version": "0.0.869402",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -3766,6 +3766,47 @@ domain Input
3766
3766
  # UTC time in seconds, counted from January 1, 1970.
3767
3767
  type TimeSinceEpoch extends number
3768
3768
 
3769
+ experimental type DragDataItem extends object
3770
+ properties
3771
+ # Mime type of the dragged data.
3772
+ string mimeType
3773
+ # Depending of the value of `mimeType`, it contains the dragged link,
3774
+ # text, HTML markup or any other data.
3775
+ string data
3776
+
3777
+ # Title associated with a link. Only valid when `mimeType` == "text/uri-list".
3778
+ optional string title
3779
+
3780
+ # Stores the base URL for the contained markup. Only valid when `mimeType`
3781
+ # == "text/html".
3782
+ optional string baseURL
3783
+
3784
+
3785
+ experimental type DragData extends object
3786
+ properties
3787
+ array of DragDataItem items
3788
+ # Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
3789
+ integer dragOperationsMask
3790
+
3791
+ # Dispatches a drag event into the page.
3792
+ experimental command dispatchDragEvent
3793
+ parameters
3794
+ # Type of the drag event.
3795
+ enum type
3796
+ dragEnter
3797
+ dragOver
3798
+ drop
3799
+ dragCancel
3800
+ # X coordinate of the event relative to the main frame's viewport in CSS pixels.
3801
+ number x
3802
+ # Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
3803
+ # the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
3804
+ number y
3805
+ DragData data
3806
+ # Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
3807
+ # (default: 0).
3808
+ optional integer modifiers
3809
+
3769
3810
  # Dispatches a key event to the page.
3770
3811
  command dispatchKeyEvent
3771
3812
  parameters
@@ -5995,6 +6036,24 @@ experimental domain Overlay
5995
6036
  # Identifier of the node to highlight.
5996
6037
  DOM.NodeId nodeId
5997
6038
 
6039
+ type ScrollSnapContainerHighlightConfig extends object
6040
+ properties
6041
+ # The style of the snapport border (default: transparent)
6042
+ optional LineStyle snapportBorder
6043
+ # The style of the snap area border (default: transparent)
6044
+ optional LineStyle snapAreaBorder
6045
+ # The margin highlight fill color (default: transparent).
6046
+ optional DOM.RGBA scrollMarginColor
6047
+ # The padding highlight fill color (default: transparent).
6048
+ optional DOM.RGBA scrollPaddingColor
6049
+
6050
+ type ScrollSnapHighlightConfig extends object
6051
+ properties
6052
+ # A descriptor for the highlight appearance of scroll snap containers.
6053
+ ScrollSnapContainerHighlightConfig scrollSnapContainerHighlightConfig
6054
+ # Identifier of the node to highlight.
6055
+ DOM.NodeId nodeId
6056
+
5998
6057
  # Configuration for dual screen hinge
5999
6058
  type HingeConfig extends object
6000
6059
  properties
@@ -6165,6 +6224,11 @@ experimental domain Overlay
6165
6224
  # An array of node identifiers and descriptors for the highlight appearance.
6166
6225
  array of FlexNodeHighlightConfig flexNodeHighlightConfigs
6167
6226
 
6227
+ command setShowScrollSnapOverlays
6228
+ parameters
6229
+ # An array of node identifiers and descriptors for the highlight appearance.
6230
+ array of ScrollSnapHighlightConfig scrollSnapHighlightConfigs
6231
+
6168
6232
  # Requests that backend shows paint rectangles
6169
6233
  command setShowPaintRects
6170
6234
  parameters
@@ -2593,6 +2593,13 @@ export namespace ProtocolMapping {
2593
2593
  paramsType: [Protocol.IndexedDB.RequestDatabaseNamesRequest];
2594
2594
  returnType: Protocol.IndexedDB.RequestDatabaseNamesResponse;
2595
2595
  };
2596
+ /**
2597
+ * Dispatches a drag event into the page.
2598
+ */
2599
+ 'Input.dispatchDragEvent': {
2600
+ paramsType: [Protocol.Input.DispatchDragEventRequest];
2601
+ returnType: void;
2602
+ };
2596
2603
  /**
2597
2604
  * Dispatches a key event to the page.
2598
2605
  */
@@ -3200,6 +3207,10 @@ export namespace ProtocolMapping {
3200
3207
  paramsType: [Protocol.Overlay.SetShowFlexOverlaysRequest];
3201
3208
  returnType: void;
3202
3209
  };
3210
+ 'Overlay.setShowScrollSnapOverlays': {
3211
+ paramsType: [Protocol.Overlay.SetShowScrollSnapOverlaysRequest];
3212
+ returnType: void;
3213
+ };
3203
3214
  /**
3204
3215
  * Requests that backend shows paint rectangles
3205
3216
  */
@@ -1851,6 +1851,11 @@ export namespace ProtocolProxyApi {
1851
1851
  }
1852
1852
 
1853
1853
  export interface InputApi {
1854
+ /**
1855
+ * Dispatches a drag event into the page.
1856
+ */
1857
+ dispatchDragEvent(params: Protocol.Input.DispatchDragEventRequest): Promise<void>;
1858
+
1854
1859
  /**
1855
1860
  * Dispatches a key event to the page.
1856
1861
  */
@@ -2453,6 +2458,8 @@ export namespace ProtocolProxyApi {
2453
2458
 
2454
2459
  setShowFlexOverlays(params: Protocol.Overlay.SetShowFlexOverlaysRequest): Promise<void>;
2455
2460
 
2461
+ setShowScrollSnapOverlays(params: Protocol.Overlay.SetShowScrollSnapOverlaysRequest): Promise<void>;
2462
+
2456
2463
  /**
2457
2464
  * Requests that backend shows paint rectangles
2458
2465
  */
@@ -7700,6 +7700,64 @@ export namespace Protocol {
7700
7700
  */
7701
7701
  export type TimeSinceEpoch = number;
7702
7702
 
7703
+ export interface DragDataItem {
7704
+ /**
7705
+ * Mime type of the dragged data.
7706
+ */
7707
+ mimeType: string;
7708
+ /**
7709
+ * Depending of the value of `mimeType`, it contains the dragged link,
7710
+ * text, HTML markup or any other data.
7711
+ */
7712
+ data: string;
7713
+ /**
7714
+ * Title associated with a link. Only valid when `mimeType` == "text/uri-list".
7715
+ */
7716
+ title?: string;
7717
+ /**
7718
+ * Stores the base URL for the contained markup. Only valid when `mimeType`
7719
+ * == "text/html".
7720
+ */
7721
+ baseURL?: string;
7722
+ }
7723
+
7724
+ export interface DragData {
7725
+ items: DragDataItem[];
7726
+ /**
7727
+ * Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
7728
+ */
7729
+ dragOperationsMask: integer;
7730
+ }
7731
+
7732
+ export const enum DispatchDragEventRequestType {
7733
+ DragEnter = 'dragEnter',
7734
+ DragOver = 'dragOver',
7735
+ Drop = 'drop',
7736
+ DragCancel = 'dragCancel',
7737
+ }
7738
+
7739
+ export interface DispatchDragEventRequest {
7740
+ /**
7741
+ * Type of the drag event. (DispatchDragEventRequestType enum)
7742
+ */
7743
+ type: ('dragEnter' | 'dragOver' | 'drop' | 'dragCancel');
7744
+ /**
7745
+ * X coordinate of the event relative to the main frame's viewport in CSS pixels.
7746
+ */
7747
+ x: number;
7748
+ /**
7749
+ * Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
7750
+ * the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
7751
+ */
7752
+ y: number;
7753
+ data: DragData;
7754
+ /**
7755
+ * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
7756
+ * (default: 0).
7757
+ */
7758
+ modifiers?: integer;
7759
+ }
7760
+
7703
7761
  export const enum DispatchKeyEventRequestType {
7704
7762
  KeyDown = 'keyDown',
7705
7763
  KeyUp = 'keyUp',
@@ -10889,6 +10947,36 @@ export namespace Protocol {
10889
10947
  nodeId: DOM.NodeId;
10890
10948
  }
10891
10949
 
10950
+ export interface ScrollSnapContainerHighlightConfig {
10951
+ /**
10952
+ * The style of the snapport border (default: transparent)
10953
+ */
10954
+ snapportBorder?: LineStyle;
10955
+ /**
10956
+ * The style of the snap area border (default: transparent)
10957
+ */
10958
+ snapAreaBorder?: LineStyle;
10959
+ /**
10960
+ * The margin highlight fill color (default: transparent).
10961
+ */
10962
+ scrollMarginColor?: DOM.RGBA;
10963
+ /**
10964
+ * The padding highlight fill color (default: transparent).
10965
+ */
10966
+ scrollPaddingColor?: DOM.RGBA;
10967
+ }
10968
+
10969
+ export interface ScrollSnapHighlightConfig {
10970
+ /**
10971
+ * A descriptor for the highlight appearance of scroll snap containers.
10972
+ */
10973
+ scrollSnapContainerHighlightConfig: ScrollSnapContainerHighlightConfig;
10974
+ /**
10975
+ * Identifier of the node to highlight.
10976
+ */
10977
+ nodeId: DOM.NodeId;
10978
+ }
10979
+
10892
10980
  /**
10893
10981
  * Configuration for dual screen hinge
10894
10982
  */
@@ -11120,6 +11208,13 @@ export namespace Protocol {
11120
11208
  flexNodeHighlightConfigs: FlexNodeHighlightConfig[];
11121
11209
  }
11122
11210
 
11211
+ export interface SetShowScrollSnapOverlaysRequest {
11212
+ /**
11213
+ * An array of node identifiers and descriptors for the highlight appearance.
11214
+ */
11215
+ scrollSnapHighlightConfigs: ScrollSnapHighlightConfig[];
11216
+ }
11217
+
11123
11218
  export interface SetShowPaintRectsRequest {
11124
11219
  /**
11125
11220
  * True for showing paint rectangles