devtools-protocol 0.0.924707 → 0.0.926580

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.
@@ -10759,6 +10759,7 @@
10759
10759
  "HeaderDisallowedByPreflightResponse",
10760
10760
  "RedirectContainsCredentials",
10761
10761
  "InsecurePrivateNetwork",
10762
+ "InvalidPrivateNetworkAccess",
10762
10763
  "NoCorsRedirectModeNotFollow"
10763
10764
  ]
10764
10765
  },
@@ -13959,6 +13960,46 @@
13959
13960
  }
13960
13961
  ]
13961
13962
  },
13963
+ {
13964
+ "id": "IsolatedElementHighlightConfig",
13965
+ "type": "object",
13966
+ "properties": [
13967
+ {
13968
+ "name": "isolationModeHighlightConfig",
13969
+ "description": "A descriptor for the highlight appearance of an element in isolation mode.",
13970
+ "$ref": "IsolationModeHighlightConfig"
13971
+ },
13972
+ {
13973
+ "name": "nodeId",
13974
+ "description": "Identifier of the isolated element to highlight.",
13975
+ "$ref": "DOM.NodeId"
13976
+ }
13977
+ ]
13978
+ },
13979
+ {
13980
+ "id": "IsolationModeHighlightConfig",
13981
+ "type": "object",
13982
+ "properties": [
13983
+ {
13984
+ "name": "resizerColor",
13985
+ "description": "The fill color of the resizers (default: transparent).",
13986
+ "optional": true,
13987
+ "$ref": "DOM.RGBA"
13988
+ },
13989
+ {
13990
+ "name": "resizerHandleColor",
13991
+ "description": "The fill color for resizer handles (default: transparent).",
13992
+ "optional": true,
13993
+ "$ref": "DOM.RGBA"
13994
+ },
13995
+ {
13996
+ "name": "maskColor",
13997
+ "description": "The fill color for the mask covering non-isolated elements (default: transparent).",
13998
+ "optional": true,
13999
+ "$ref": "DOM.RGBA"
14000
+ }
14001
+ ]
14002
+ },
13962
14003
  {
13963
14004
  "id": "InspectMode",
13964
14005
  "type": "string",
@@ -14404,6 +14445,20 @@
14404
14445
  "$ref": "HingeConfig"
14405
14446
  }
14406
14447
  ]
14448
+ },
14449
+ {
14450
+ "name": "setShowIsolatedElements",
14451
+ "description": "Show elements in isolation mode with overlays.",
14452
+ "parameters": [
14453
+ {
14454
+ "name": "isolatedElementHighlightConfigs",
14455
+ "description": "An array of node identifiers and descriptors for the highlight appearance.",
14456
+ "type": "array",
14457
+ "items": {
14458
+ "$ref": "IsolatedElementHighlightConfig"
14459
+ }
14460
+ }
14461
+ ]
14407
14462
  }
14408
14463
  ],
14409
14464
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.924707",
3
+ "version": "0.0.926580",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -4917,6 +4917,7 @@ domain Network
4917
4917
  HeaderDisallowedByPreflightResponse
4918
4918
  RedirectContainsCredentials
4919
4919
  InsecurePrivateNetwork
4920
+ InvalidPrivateNetworkAccess
4920
4921
  NoCorsRedirectModeNotFollow
4921
4922
 
4922
4923
  type CorsErrorStatus extends object
@@ -6426,6 +6427,22 @@ experimental domain Overlay
6426
6427
  # The style of the descendants' borders.
6427
6428
  optional LineStyle descendantBorder
6428
6429
 
6430
+ type IsolatedElementHighlightConfig extends object
6431
+ properties
6432
+ # A descriptor for the highlight appearance of an element in isolation mode.
6433
+ IsolationModeHighlightConfig isolationModeHighlightConfig
6434
+ # Identifier of the isolated element to highlight.
6435
+ DOM.NodeId nodeId
6436
+
6437
+ type IsolationModeHighlightConfig extends object
6438
+ properties
6439
+ # The fill color of the resizers (default: transparent).
6440
+ optional DOM.RGBA resizerColor
6441
+ # The fill color for resizer handles (default: transparent).
6442
+ optional DOM.RGBA resizerHandleColor
6443
+ # The fill color for the mask covering non-isolated elements (default: transparent).
6444
+ optional DOM.RGBA maskColor
6445
+
6429
6446
  type InspectMode extends string
6430
6447
  enum
6431
6448
  searchForNode
@@ -6640,6 +6657,12 @@ experimental domain Overlay
6640
6657
  # hinge data, null means hideHinge
6641
6658
  optional HingeConfig hingeConfig
6642
6659
 
6660
+ # Show elements in isolation mode with overlays.
6661
+ command setShowIsolatedElements
6662
+ parameters
6663
+ # An array of node identifiers and descriptors for the highlight appearance.
6664
+ array of IsolatedElementHighlightConfig isolatedElementHighlightConfigs
6665
+
6643
6666
  # Fired when the node should be inspected. This happens after call to `setInspectMode` or when
6644
6667
  # user manually inspects an element.
6645
6668
  event inspectNodeRequested
@@ -3362,6 +3362,13 @@ export namespace ProtocolMapping {
3362
3362
  paramsType: [Protocol.Overlay.SetShowHingeRequest?];
3363
3363
  returnType: void;
3364
3364
  };
3365
+ /**
3366
+ * Show elements in isolation mode with overlays.
3367
+ */
3368
+ 'Overlay.setShowIsolatedElements': {
3369
+ paramsType: [Protocol.Overlay.SetShowIsolatedElementsRequest];
3370
+ returnType: void;
3371
+ };
3365
3372
  /**
3366
3373
  * Deprecated, please use addScriptToEvaluateOnNewDocument instead.
3367
3374
  */
@@ -2583,6 +2583,11 @@ export namespace ProtocolProxyApi {
2583
2583
  */
2584
2584
  setShowHinge(params: Protocol.Overlay.SetShowHingeRequest): Promise<void>;
2585
2585
 
2586
+ /**
2587
+ * Show elements in isolation mode with overlays.
2588
+ */
2589
+ setShowIsolatedElements(params: Protocol.Overlay.SetShowIsolatedElementsRequest): Promise<void>;
2590
+
2586
2591
  /**
2587
2592
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
2588
2593
  * user manually inspects an element.
@@ -9276,7 +9276,7 @@ export namespace Protocol {
9276
9276
  /**
9277
9277
  * The reason why request was blocked.
9278
9278
  */
9279
- export type CorsError = ('DisallowedByMode' | 'InvalidResponse' | 'WildcardOriginNotAllowed' | 'MissingAllowOriginHeader' | 'MultipleAllowOriginValues' | 'InvalidAllowOriginValue' | 'AllowOriginMismatch' | 'InvalidAllowCredentials' | 'CorsDisabledScheme' | 'PreflightInvalidStatus' | 'PreflightDisallowedRedirect' | 'PreflightWildcardOriginNotAllowed' | 'PreflightMissingAllowOriginHeader' | 'PreflightMultipleAllowOriginValues' | 'PreflightInvalidAllowOriginValue' | 'PreflightAllowOriginMismatch' | 'PreflightInvalidAllowCredentials' | 'PreflightMissingAllowExternal' | 'PreflightInvalidAllowExternal' | 'InvalidAllowMethodsPreflightResponse' | 'InvalidAllowHeadersPreflightResponse' | 'MethodDisallowedByPreflightResponse' | 'HeaderDisallowedByPreflightResponse' | 'RedirectContainsCredentials' | 'InsecurePrivateNetwork' | 'NoCorsRedirectModeNotFollow');
9279
+ export type CorsError = ('DisallowedByMode' | 'InvalidResponse' | 'WildcardOriginNotAllowed' | 'MissingAllowOriginHeader' | 'MultipleAllowOriginValues' | 'InvalidAllowOriginValue' | 'AllowOriginMismatch' | 'InvalidAllowCredentials' | 'CorsDisabledScheme' | 'PreflightInvalidStatus' | 'PreflightDisallowedRedirect' | 'PreflightWildcardOriginNotAllowed' | 'PreflightMissingAllowOriginHeader' | 'PreflightMultipleAllowOriginValues' | 'PreflightInvalidAllowOriginValue' | 'PreflightAllowOriginMismatch' | 'PreflightInvalidAllowCredentials' | 'PreflightMissingAllowExternal' | 'PreflightInvalidAllowExternal' | 'InvalidAllowMethodsPreflightResponse' | 'InvalidAllowHeadersPreflightResponse' | 'MethodDisallowedByPreflightResponse' | 'HeaderDisallowedByPreflightResponse' | 'RedirectContainsCredentials' | 'InsecurePrivateNetwork' | 'InvalidPrivateNetworkAccess' | 'NoCorsRedirectModeNotFollow');
9280
9280
 
9281
9281
  export interface CorsErrorStatus {
9282
9282
  corsError: CorsError;
@@ -11475,6 +11475,32 @@ export namespace Protocol {
11475
11475
  descendantBorder?: LineStyle;
11476
11476
  }
11477
11477
 
11478
+ export interface IsolatedElementHighlightConfig {
11479
+ /**
11480
+ * A descriptor for the highlight appearance of an element in isolation mode.
11481
+ */
11482
+ isolationModeHighlightConfig: IsolationModeHighlightConfig;
11483
+ /**
11484
+ * Identifier of the isolated element to highlight.
11485
+ */
11486
+ nodeId: DOM.NodeId;
11487
+ }
11488
+
11489
+ export interface IsolationModeHighlightConfig {
11490
+ /**
11491
+ * The fill color of the resizers (default: transparent).
11492
+ */
11493
+ resizerColor?: DOM.RGBA;
11494
+ /**
11495
+ * The fill color for resizer handles (default: transparent).
11496
+ */
11497
+ resizerHandleColor?: DOM.RGBA;
11498
+ /**
11499
+ * The fill color for the mask covering non-isolated elements (default: transparent).
11500
+ */
11501
+ maskColor?: DOM.RGBA;
11502
+ }
11503
+
11478
11504
  export type InspectMode = ('searchForNode' | 'searchForUAShadowDOM' | 'captureAreaScreenshot' | 'showDistances' | 'none');
11479
11505
 
11480
11506
  export interface GetHighlightObjectForTestRequest {
@@ -11748,6 +11774,13 @@ export namespace Protocol {
11748
11774
  hingeConfig?: HingeConfig;
11749
11775
  }
11750
11776
 
11777
+ export interface SetShowIsolatedElementsRequest {
11778
+ /**
11779
+ * An array of node identifiers and descriptors for the highlight appearance.
11780
+ */
11781
+ isolatedElementHighlightConfigs: IsolatedElementHighlightConfig[];
11782
+ }
11783
+
11751
11784
  /**
11752
11785
  * Fired when the node should be inspected. This happens after call to `setInspectMode` or when
11753
11786
  * user manually inspects an element.