devtools-protocol 0.0.1704034 → 0.0.1704951

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/README.md CHANGED
@@ -9,3 +9,23 @@ Use the [protocol viewer](https://chromedevtools.github.io/devtools-protocol/) f
9
9
  TypeScript definitions for the protocol's types are available in ['types/protocol.d.ts'](https://github.com/ChromeDevTools/devtools-protocol/tree/master/types). Mappings from Commands and events to these types are available in either generated `DomainApi` style in [`types/protocol-proxy-api.d.ts`](https://github.com/ChromeDevTools/devtools-protocol/blob/master/types/protocol-proxy-api.d.ts) or in simple name-to-type-interface style in [`types/protocol-mapping.d.ts`](https://github.com/ChromeDevTools/devtools-protocol/blob/master/types/protocol-mapping.d.ts).
10
10
 
11
11
  Also, this repo is published as the [`devtools-protocol`](https://www.npmjs.com/package/devtools-protocol) npm module.
12
+
13
+ ## Development
14
+
15
+ The `.pdl` files, the `json/` files and the TypeScript definitions in `types/`
16
+ are all generated by [`scripts/update-to-latest.sh`](scripts/update-to-latest.sh),
17
+ which runs daily. Do not edit them by hand.
18
+
19
+ The TypeScript generator itself lives in Chromium, at
20
+ [`//third_party/blink/public/devtools_protocol/scripts/protocol_dts_generator.ts`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/scripts/protocol_dts_generator.ts),
21
+ so that Chromium and this repo share a single source of truth. It is fetched
22
+ into `tmp/chromium/` by the sparse checkout in `update-to-latest.sh`. Changes to
23
+ the generator should be made in Chromium.
24
+
25
+ To regenerate `types/` against an existing local Chromium checkout:
26
+
27
+ ```sh
28
+ cd scripts
29
+ CHROMIUM_PROTOCOL_SCRIPTS_DIR=/path/to/src/third_party/blink/public/devtools_protocol/scripts \
30
+ npm run build-protocol-dts
31
+ ```
@@ -11603,6 +11603,17 @@
11603
11603
  "enable",
11604
11604
  "default"
11605
11605
  ]
11606
+ },
11607
+ {
11608
+ "name": "textLayoutMode",
11609
+ "description": "Text layout mode. Default: `default`. Note: if `mobile` is `true`,\nmobile text layout mode (text autosizing) is always enabled.",
11610
+ "experimental": true,
11611
+ "optional": true,
11612
+ "type": "string",
11613
+ "enum": [
11614
+ "mobile",
11615
+ "default"
11616
+ ]
11606
11617
  }
11607
11618
  ]
11608
11619
  },
@@ -26205,6 +26216,12 @@
26205
26216
  "name": "status",
26206
26217
  "$ref": "PreloadingStatus"
26207
26218
  },
26219
+ {
26220
+ "name": "effectiveAction",
26221
+ "description": "The action currently performed by this attempt. This differs from\n`key.action` after a prerender-until-script attempt is upgraded in place\nto a full prerender.",
26222
+ "optional": true,
26223
+ "$ref": "SpeculationAction"
26224
+ },
26208
26225
  {
26209
26226
  "name": "prerenderStatus",
26210
26227
  "optional": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1704034",
3
+ "version": "0.0.1704951",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -330,6 +330,14 @@ domain Emulation
330
330
  # Restores the default viewport meta behavior (disabled on desktop,
331
331
  # enabled on mobile).
332
332
  default
333
+ # Text layout mode. Default: `default`. Note: if `mobile` is `true`,
334
+ # mobile text layout mode (text autosizing) is always enabled.
335
+ experimental optional enum textLayoutMode
336
+ # Enables mobile text layout mode (text autosizing / CSS text-size-adjust).
337
+ mobile
338
+ # Restores the default text layout mode behavior (disabled on desktop,
339
+ # enabled on mobile).
340
+ default
333
341
 
334
342
  # Start reporting the given posture value to the Device Posture API.
335
343
  # This override can also be set in setDeviceMetricsOverride().
@@ -287,6 +287,10 @@ experimental domain Preload
287
287
  PreloadingAttemptKey key
288
288
  PreloadPipelineId pipelineId
289
289
  PreloadingStatus status
290
+ # The action currently performed by this attempt. This differs from
291
+ # `key.action` after a prerender-until-script attempt is upgraded in place
292
+ # to a full prerender.
293
+ optional SpeculationAction effectiveAction
290
294
  optional PrerenderFinalStatus prerenderStatus
291
295
  # This is used to give users more information about the name of Mojo interface
292
296
  # that is incompatible with prerender and has caused the cancellation of the attempt.
@@ -1,12 +1,12 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
- import Protocol from './protocol'
9
+ import Protocol from './protocol.js'
10
10
 
11
11
  /**
12
12
  * Mappings from protocol event and command names to the types required for them.
@@ -1,12 +1,12 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
- import Protocol from './protocol'
9
+ import Protocol from './protocol.js'
10
10
 
11
11
  /**
12
12
  * API generated from Protocol commands and events.
@@ -1,12 +1,12 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
- import Protocol from './protocol'
9
+ import Protocol from './protocol.js'
10
10
 
11
11
  /**
12
12
  * API generated from Protocol commands and events.
@@ -1,9 +1,9 @@
1
- // Copyright (c) 2026 The Chromium Authors. All rights reserved.
1
+ // Copyright 2026 The Chromium Authors
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
5
  /**********************************************************************
6
- * Auto-generated by protocol-dts-generator.ts. Do not edit manually. *
6
+ * Auto-generated by protocol_dts_generator.ts. Do not edit manually. *
7
7
  **********************************************************************/
8
8
 
9
9
  /**
@@ -13,6 +13,7 @@
13
13
  export namespace Protocol {
14
14
 
15
15
  export type integer = number
16
+ export type binary = string
16
17
 
17
18
  /**
18
19
  * This domain is deprecated - use Runtime or Log instead.
@@ -9776,6 +9777,11 @@ export namespace Protocol {
9776
9777
  Default = 'default',
9777
9778
  }
9778
9779
 
9780
+ export const enum SetDeviceMetricsOverrideRequestTextLayoutMode {
9781
+ Mobile = 'mobile',
9782
+ Default = 'default',
9783
+ }
9784
+
9779
9785
  export interface SetDeviceMetricsOverrideRequest {
9780
9786
  /**
9781
9787
  * Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
@@ -9870,6 +9876,12 @@ export namespace Protocol {
9870
9876
  * @experimental
9871
9877
  */
9872
9878
  viewportMeta?: ('enable' | 'default');
9879
+ /**
9880
+ * Text layout mode. Default: `default`. Note: if `mobile` is `true`,
9881
+ * mobile text layout mode (text autosizing) is always enabled.
9882
+ * @experimental
9883
+ */
9884
+ textLayoutMode?: ('mobile' | 'default');
9873
9885
  }
9874
9886
 
9875
9887
  export interface SetDevicePostureOverrideRequest {
@@ -19340,6 +19352,12 @@ export namespace Protocol {
19340
19352
  key: PreloadingAttemptKey;
19341
19353
  pipelineId: PreloadPipelineId;
19342
19354
  status: PreloadingStatus;
19355
+ /**
19356
+ * The action currently performed by this attempt. This differs from
19357
+ * `key.action` after a prerender-until-script attempt is upgraded in place
19358
+ * to a full prerender.
19359
+ */
19360
+ effectiveAction?: SpeculationAction;
19343
19361
  prerenderStatus?: PrerenderFinalStatus;
19344
19362
  /**
19345
19363
  * This is used to give users more information about the name of Mojo interface