devtools-protocol 0.0.1066334 → 0.0.1068494

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.
@@ -2173,8 +2173,7 @@
2173
2173
  "type": "string",
2174
2174
  "enum": [
2175
2175
  "granted",
2176
- "denied",
2177
- "prompt"
2176
+ "denied"
2178
2177
  ]
2179
2178
  },
2180
2179
  {
@@ -3313,6 +3312,18 @@
3313
3312
  "description": "Optional name for the container.",
3314
3313
  "optional": true,
3315
3314
  "type": "string"
3315
+ },
3316
+ {
3317
+ "name": "physicalAxes",
3318
+ "description": "Optional physical axes queried for the container.",
3319
+ "optional": true,
3320
+ "$ref": "DOM.PhysicalAxes"
3321
+ },
3322
+ {
3323
+ "name": "logicalAxes",
3324
+ "description": "Optional logical axes queried for the container.",
3325
+ "optional": true,
3326
+ "$ref": "DOM.LogicalAxes"
3316
3327
  }
3317
3328
  ]
3318
3329
  },
@@ -4717,6 +4728,26 @@
4717
4728
  "NoQuirksMode"
4718
4729
  ]
4719
4730
  },
4731
+ {
4732
+ "id": "PhysicalAxes",
4733
+ "description": "ContainerSelector physical axes",
4734
+ "type": "string",
4735
+ "enum": [
4736
+ "Horizontal",
4737
+ "Vertical",
4738
+ "Both"
4739
+ ]
4740
+ },
4741
+ {
4742
+ "id": "LogicalAxes",
4743
+ "description": "ContainerSelector logical axes",
4744
+ "type": "string",
4745
+ "enum": [
4746
+ "Inline",
4747
+ "Block",
4748
+ "Both"
4749
+ ]
4750
+ },
4720
4751
  {
4721
4752
  "id": "Node",
4722
4753
  "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.\nDOMNode is a base node mirror type.",
@@ -6078,7 +6109,7 @@
6078
6109
  },
6079
6110
  {
6080
6111
  "name": "getContainerForNode",
6081
- "description": "Returns the container of the given node based on container query conditions.\nIf containerName is given, it will find the nearest container with a matching name;\notherwise it will find the nearest container regardless of its container name.",
6112
+ "description": "Returns the query container of the given node based on container query\nconditions: containerName, physical, and logical axes. If no axes are\nprovided, the style container is returned, which is the direct parent or the\nclosest element with a matching container-name.",
6082
6113
  "experimental": true,
6083
6114
  "parameters": [
6084
6115
  {
@@ -6089,6 +6120,16 @@
6089
6120
  "name": "containerName",
6090
6121
  "optional": true,
6091
6122
  "type": "string"
6123
+ },
6124
+ {
6125
+ "name": "physicalAxes",
6126
+ "optional": true,
6127
+ "$ref": "PhysicalAxes"
6128
+ },
6129
+ {
6130
+ "name": "logicalAxes",
6131
+ "optional": true,
6132
+ "$ref": "LogicalAxes"
6092
6133
  }
6093
6134
  ],
6094
6135
  "returns": [
@@ -8588,25 +8629,13 @@
8588
8629
  },
8589
8630
  {
8590
8631
  "name": "disable",
8591
- "description": "Disables headless events for the target."
8632
+ "description": "Disables headless events for the target.",
8633
+ "deprecated": true
8592
8634
  },
8593
8635
  {
8594
8636
  "name": "enable",
8595
- "description": "Enables headless events for the target."
8596
- }
8597
- ],
8598
- "events": [
8599
- {
8600
- "name": "needsBeginFramesChanged",
8601
- "description": "Issued when the target starts or stops needing BeginFrames.\nDeprecated. Issue beginFrame unconditionally instead and use result from\nbeginFrame to detect whether the frames were suppressed.",
8602
- "deprecated": true,
8603
- "parameters": [
8604
- {
8605
- "name": "needsBeginFrames",
8606
- "description": "True if BeginFrames are needed, false otherwise.",
8607
- "type": "boolean"
8608
- }
8609
- ]
8637
+ "description": "Enables headless events for the target.",
8638
+ "deprecated": true
8610
8639
  }
8611
8640
  ]
8612
8641
  },
@@ -13814,6 +13843,12 @@
13814
13843
  "description": "The client security state set for the request.",
13815
13844
  "optional": true,
13816
13845
  "$ref": "ClientSecurityState"
13846
+ },
13847
+ {
13848
+ "name": "siteHasCookieInOtherPartition",
13849
+ "description": "Whether the site has partitioned cookies stored in a partition different than the current one.",
13850
+ "optional": true,
13851
+ "type": "boolean"
13817
13852
  }
13818
13853
  ]
13819
13854
  },
@@ -19691,6 +19726,57 @@
19691
19726
  }
19692
19727
  ]
19693
19728
  },
19729
+ {
19730
+ "name": "setSharedStorageEntry",
19731
+ "description": "Sets entry with `key` and `value` for a given origin's shared storage.",
19732
+ "experimental": true,
19733
+ "parameters": [
19734
+ {
19735
+ "name": "ownerOrigin",
19736
+ "type": "string"
19737
+ },
19738
+ {
19739
+ "name": "key",
19740
+ "type": "string"
19741
+ },
19742
+ {
19743
+ "name": "value",
19744
+ "type": "string"
19745
+ },
19746
+ {
19747
+ "name": "ignoreIfPresent",
19748
+ "description": "If `ignoreIfPresent` is included and true, then only sets the entry if\n`key` doesn't already exist.",
19749
+ "optional": true,
19750
+ "type": "boolean"
19751
+ }
19752
+ ]
19753
+ },
19754
+ {
19755
+ "name": "deleteSharedStorageEntry",
19756
+ "description": "Deletes entry for `key` (if it exists) for a given origin's shared storage.",
19757
+ "experimental": true,
19758
+ "parameters": [
19759
+ {
19760
+ "name": "ownerOrigin",
19761
+ "type": "string"
19762
+ },
19763
+ {
19764
+ "name": "key",
19765
+ "type": "string"
19766
+ }
19767
+ ]
19768
+ },
19769
+ {
19770
+ "name": "clearSharedStorageEntries",
19771
+ "description": "Clears all entries for a given origin's shared storage.",
19772
+ "experimental": true,
19773
+ "parameters": [
19774
+ {
19775
+ "name": "ownerOrigin",
19776
+ "type": "string"
19777
+ }
19778
+ ]
19779
+ },
19694
19780
  {
19695
19781
  "name": "setSharedStorageTracking",
19696
19782
  "description": "Enables/disables issuing of sharedStorageAccessed events.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1066334",
3
+ "version": "0.0.1068494",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1094,7 +1094,6 @@ domain Browser
1094
1094
  enum
1095
1095
  granted
1096
1096
  denied
1097
- prompt
1098
1097
 
1099
1098
  # Definition of PermissionDescriptor defined in the Permissions API:
1100
1099
  # https://w3c.github.io/permissions/#dictdef-permissiondescriptor.
@@ -1600,6 +1599,10 @@ experimental domain CSS
1600
1599
  optional StyleSheetId styleSheetId
1601
1600
  # Optional name for the container.
1602
1601
  optional string name
1602
+ # Optional physical axes queried for the container.
1603
+ optional DOM.PhysicalAxes physicalAxes
1604
+ # Optional logical axes queried for the container.
1605
+ optional DOM.LogicalAxes logicalAxes
1603
1606
 
1604
1607
  # CSS Supports at-rule descriptor.
1605
1608
  experimental type CSSSupports extends object
@@ -2254,6 +2257,20 @@ domain DOM
2254
2257
  LimitedQuirksMode
2255
2258
  NoQuirksMode
2256
2259
 
2260
+ # ContainerSelector physical axes
2261
+ type PhysicalAxes extends string
2262
+ enum
2263
+ Horizontal
2264
+ Vertical
2265
+ Both
2266
+
2267
+ # ContainerSelector logical axes
2268
+ type LogicalAxes extends string
2269
+ enum
2270
+ Inline
2271
+ Block
2272
+ Both
2273
+
2257
2274
  # DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
2258
2275
  # DOMNode is a base node mirror type.
2259
2276
  type Node extends object
@@ -2866,13 +2883,16 @@ domain DOM
2866
2883
  # Id of the node at given coordinates, only when enabled and requested document.
2867
2884
  optional NodeId nodeId
2868
2885
 
2869
- # Returns the container of the given node based on container query conditions.
2870
- # If containerName is given, it will find the nearest container with a matching name;
2871
- # otherwise it will find the nearest container regardless of its container name.
2886
+ # Returns the query container of the given node based on container query
2887
+ # conditions: containerName, physical, and logical axes. If no axes are
2888
+ # provided, the style container is returned, which is the direct parent or the
2889
+ # closest element with a matching container-name.
2872
2890
  experimental command getContainerForNode
2873
2891
  parameters
2874
2892
  NodeId nodeId
2875
2893
  optional string containerName
2894
+ optional PhysicalAxes physicalAxes
2895
+ optional LogicalAxes logicalAxes
2876
2896
  returns
2877
2897
  # The container node for the given node, or null if not found.
2878
2898
  optional NodeId nodeId
@@ -3942,18 +3962,10 @@ experimental domain HeadlessExperimental
3942
3962
  optional binary screenshotData
3943
3963
 
3944
3964
  # Disables headless events for the target.
3945
- command disable
3965
+ deprecated command disable
3946
3966
 
3947
3967
  # Enables headless events for the target.
3948
- command enable
3949
-
3950
- # Issued when the target starts or stops needing BeginFrames.
3951
- # Deprecated. Issue beginFrame unconditionally instead and use result from
3952
- # beginFrame to detect whether the frames were suppressed.
3953
- deprecated event needsBeginFramesChanged
3954
- parameters
3955
- # True if BeginFrames are needed, false otherwise.
3956
- boolean needsBeginFrames
3968
+ deprecated command enable
3957
3969
 
3958
3970
  # Input/Output operations for streams produced by DevTools.
3959
3971
  domain IO
@@ -6333,6 +6345,8 @@ domain Network
6333
6345
  experimental ConnectTiming connectTiming
6334
6346
  # The client security state set for the request.
6335
6347
  optional ClientSecurityState clientSecurityState
6348
+ # Whether the site has partitioned cookies stored in a partition different than the current one.
6349
+ optional boolean siteHasCookieInOtherPartition
6336
6350
 
6337
6351
  # Fired when additional information about a responseReceived event is available from the network
6338
6352
  # stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for
@@ -9307,6 +9321,27 @@ experimental domain Storage
9307
9321
  returns
9308
9322
  array of SharedStorageEntry entries
9309
9323
 
9324
+ # Sets entry with `key` and `value` for a given origin's shared storage.
9325
+ experimental command setSharedStorageEntry
9326
+ parameters
9327
+ string ownerOrigin
9328
+ string key
9329
+ string value
9330
+ # If `ignoreIfPresent` is included and true, then only sets the entry if
9331
+ # `key` doesn't already exist.
9332
+ optional boolean ignoreIfPresent
9333
+
9334
+ # Deletes entry for `key` (if it exists) for a given origin's shared storage.
9335
+ experimental command deleteSharedStorageEntry
9336
+ parameters
9337
+ string ownerOrigin
9338
+ string key
9339
+
9340
+ # Clears all entries for a given origin's shared storage.
9341
+ experimental command clearSharedStorageEntries
9342
+ parameters
9343
+ string ownerOrigin
9344
+
9310
9345
  # Enables/disables issuing of sharedStorageAccessed events.
9311
9346
  experimental command setSharedStorageTracking
9312
9347
  parameters
@@ -233,12 +233,6 @@ export namespace ProtocolMapping {
233
233
  * Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
234
234
  */
235
235
  'Emulation.virtualTimeBudgetExpired': [];
236
- /**
237
- * Issued when the target starts or stops needing BeginFrames.
238
- * Deprecated. Issue beginFrame unconditionally instead and use result from
239
- * beginFrame to detect whether the frames were suppressed.
240
- */
241
- 'HeadlessExperimental.needsBeginFramesChanged': [Protocol.HeadlessExperimental.NeedsBeginFramesChangedEvent];
242
236
  /**
243
237
  * Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to
244
238
  * restore normal drag and drop behavior.
@@ -2224,9 +2218,10 @@ export namespace ProtocolMapping {
2224
2218
  returnType: Protocol.DOM.GetFrameOwnerResponse;
2225
2219
  };
2226
2220
  /**
2227
- * Returns the container of the given node based on container query conditions.
2228
- * If containerName is given, it will find the nearest container with a matching name;
2229
- * otherwise it will find the nearest container regardless of its container name.
2221
+ * Returns the query container of the given node based on container query
2222
+ * conditions: containerName, physical, and logical axes. If no axes are
2223
+ * provided, the style container is returned, which is the direct parent or the
2224
+ * closest element with a matching container-name.
2230
2225
  */
2231
2226
  'DOM.getContainerForNode': {
2232
2227
  paramsType: [Protocol.DOM.GetContainerForNodeRequest];
@@ -4113,6 +4108,27 @@ export namespace ProtocolMapping {
4113
4108
  paramsType: [Protocol.Storage.GetSharedStorageEntriesRequest];
4114
4109
  returnType: Protocol.Storage.GetSharedStorageEntriesResponse;
4115
4110
  };
4111
+ /**
4112
+ * Sets entry with `key` and `value` for a given origin's shared storage.
4113
+ */
4114
+ 'Storage.setSharedStorageEntry': {
4115
+ paramsType: [Protocol.Storage.SetSharedStorageEntryRequest];
4116
+ returnType: void;
4117
+ };
4118
+ /**
4119
+ * Deletes entry for `key` (if it exists) for a given origin's shared storage.
4120
+ */
4121
+ 'Storage.deleteSharedStorageEntry': {
4122
+ paramsType: [Protocol.Storage.DeleteSharedStorageEntryRequest];
4123
+ returnType: void;
4124
+ };
4125
+ /**
4126
+ * Clears all entries for a given origin's shared storage.
4127
+ */
4128
+ 'Storage.clearSharedStorageEntries': {
4129
+ paramsType: [Protocol.Storage.ClearSharedStorageEntriesRequest];
4130
+ returnType: void;
4131
+ };
4116
4132
  /**
4117
4133
  * Enables/disables issuing of sharedStorageAccessed events.
4118
4134
  */
@@ -1440,9 +1440,10 @@ export namespace ProtocolProxyApi {
1440
1440
  getFrameOwner(params: Protocol.DOM.GetFrameOwnerRequest): Promise<Protocol.DOM.GetFrameOwnerResponse>;
1441
1441
 
1442
1442
  /**
1443
- * Returns the container of the given node based on container query conditions.
1444
- * If containerName is given, it will find the nearest container with a matching name;
1445
- * otherwise it will find the nearest container regardless of its container name.
1443
+ * Returns the query container of the given node based on container query
1444
+ * conditions: containerName, physical, and logical axes. If no axes are
1445
+ * provided, the style container is returned, which is the direct parent or the
1446
+ * closest element with a matching container-name.
1446
1447
  */
1447
1448
  getContainerForNode(params: Protocol.DOM.GetContainerForNodeRequest): Promise<Protocol.DOM.GetContainerForNodeResponse>;
1448
1449
 
@@ -1850,13 +1851,6 @@ export namespace ProtocolProxyApi {
1850
1851
  */
1851
1852
  enable(): Promise<void>;
1852
1853
 
1853
- /**
1854
- * Issued when the target starts or stops needing BeginFrames.
1855
- * Deprecated. Issue beginFrame unconditionally instead and use result from
1856
- * beginFrame to detect whether the frames were suppressed.
1857
- */
1858
- on(event: 'needsBeginFramesChanged', listener: (params: Protocol.HeadlessExperimental.NeedsBeginFramesChangedEvent) => void): void;
1859
-
1860
1854
  }
1861
1855
 
1862
1856
  export interface IOApi {
@@ -3324,6 +3318,21 @@ export namespace ProtocolProxyApi {
3324
3318
  */
3325
3319
  getSharedStorageEntries(params: Protocol.Storage.GetSharedStorageEntriesRequest): Promise<Protocol.Storage.GetSharedStorageEntriesResponse>;
3326
3320
 
3321
+ /**
3322
+ * Sets entry with `key` and `value` for a given origin's shared storage.
3323
+ */
3324
+ setSharedStorageEntry(params: Protocol.Storage.SetSharedStorageEntryRequest): Promise<void>;
3325
+
3326
+ /**
3327
+ * Deletes entry for `key` (if it exists) for a given origin's shared storage.
3328
+ */
3329
+ deleteSharedStorageEntry(params: Protocol.Storage.DeleteSharedStorageEntryRequest): Promise<void>;
3330
+
3331
+ /**
3332
+ * Clears all entries for a given origin's shared storage.
3333
+ */
3334
+ clearSharedStorageEntries(params: Protocol.Storage.ClearSharedStorageEntriesRequest): Promise<void>;
3335
+
3327
3336
  /**
3328
3337
  * Enables/disables issuing of sharedStorageAccessed events.
3329
3338
  */
@@ -3705,7 +3705,7 @@ export namespace Protocol {
3705
3705
 
3706
3706
  export type PermissionType = ('accessibilityEvents' | 'audioCapture' | 'backgroundSync' | 'backgroundFetch' | 'clipboardReadWrite' | 'clipboardSanitizedWrite' | 'displayCapture' | 'durableStorage' | 'flash' | 'geolocation' | 'midi' | 'midiSysex' | 'nfc' | 'notifications' | 'paymentHandler' | 'periodicBackgroundSync' | 'protectedMediaIdentifier' | 'sensors' | 'videoCapture' | 'videoCapturePanTiltZoom' | 'idleDetection' | 'wakeLockScreen' | 'wakeLockSystem');
3707
3707
 
3708
- export type PermissionSetting = ('granted' | 'denied' | 'prompt');
3708
+ export type PermissionSetting = ('granted' | 'denied');
3709
3709
 
3710
3710
  /**
3711
3711
  * Definition of PermissionDescriptor defined in the Permissions API:
@@ -4511,6 +4511,14 @@ export namespace Protocol {
4511
4511
  * Optional name for the container.
4512
4512
  */
4513
4513
  name?: string;
4514
+ /**
4515
+ * Optional physical axes queried for the container.
4516
+ */
4517
+ physicalAxes?: DOM.PhysicalAxes;
4518
+ /**
4519
+ * Optional logical axes queried for the container.
4520
+ */
4521
+ logicalAxes?: DOM.LogicalAxes;
4514
4522
  }
4515
4523
 
4516
4524
  /**
@@ -5376,6 +5384,16 @@ export namespace Protocol {
5376
5384
  */
5377
5385
  export type CompatibilityMode = ('QuirksMode' | 'LimitedQuirksMode' | 'NoQuirksMode');
5378
5386
 
5387
+ /**
5388
+ * ContainerSelector physical axes
5389
+ */
5390
+ export type PhysicalAxes = ('Horizontal' | 'Vertical' | 'Both');
5391
+
5392
+ /**
5393
+ * ContainerSelector logical axes
5394
+ */
5395
+ export type LogicalAxes = ('Inline' | 'Block' | 'Both');
5396
+
5379
5397
  /**
5380
5398
  * DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
5381
5399
  * DOMNode is a base node mirror type.
@@ -6293,6 +6311,8 @@ export namespace Protocol {
6293
6311
  export interface GetContainerForNodeRequest {
6294
6312
  nodeId: NodeId;
6295
6313
  containerName?: string;
6314
+ physicalAxes?: PhysicalAxes;
6315
+ logicalAxes?: LogicalAxes;
6296
6316
  }
6297
6317
 
6298
6318
  export interface GetContainerForNodeResponse {
@@ -7844,18 +7864,6 @@ export namespace Protocol {
7844
7864
  */
7845
7865
  screenshotData?: string;
7846
7866
  }
7847
-
7848
- /**
7849
- * Issued when the target starts or stops needing BeginFrames.
7850
- * Deprecated. Issue beginFrame unconditionally instead and use result from
7851
- * beginFrame to detect whether the frames were suppressed.
7852
- */
7853
- export interface NeedsBeginFramesChangedEvent {
7854
- /**
7855
- * True if BeginFrames are needed, false otherwise.
7856
- */
7857
- needsBeginFrames: boolean;
7858
- }
7859
7867
  }
7860
7868
 
7861
7869
  /**
@@ -11353,6 +11361,10 @@ export namespace Protocol {
11353
11361
  * The client security state set for the request.
11354
11362
  */
11355
11363
  clientSecurityState?: ClientSecurityState;
11364
+ /**
11365
+ * Whether the site has partitioned cookies stored in a partition different than the current one.
11366
+ */
11367
+ siteHasCookieInOtherPartition?: boolean;
11356
11368
  }
11357
11369
 
11358
11370
  /**
@@ -14871,6 +14883,26 @@ export namespace Protocol {
14871
14883
  entries: SharedStorageEntry[];
14872
14884
  }
14873
14885
 
14886
+ export interface SetSharedStorageEntryRequest {
14887
+ ownerOrigin: string;
14888
+ key: string;
14889
+ value: string;
14890
+ /**
14891
+ * If `ignoreIfPresent` is included and true, then only sets the entry if
14892
+ * `key` doesn't already exist.
14893
+ */
14894
+ ignoreIfPresent?: boolean;
14895
+ }
14896
+
14897
+ export interface DeleteSharedStorageEntryRequest {
14898
+ ownerOrigin: string;
14899
+ key: string;
14900
+ }
14901
+
14902
+ export interface ClearSharedStorageEntriesRequest {
14903
+ ownerOrigin: string;
14904
+ }
14905
+
14874
14906
  export interface SetSharedStorageTrackingRequest {
14875
14907
  enable: boolean;
14876
14908
  }