@paulirish/trace_engine 0.0.67-beta.0 → 0.0.67-beta.2

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.
Files changed (147) hide show
  1. package/README.md +60 -22
  2. package/core/common/ParsedURL.d.ts +8 -0
  3. package/core/common/Settings.d.ts +2 -0
  4. package/core/host/Platform.d.ts +5 -0
  5. package/core/host/UserMetricsEnums.d.ts +8 -3
  6. package/core/platform/StringUtilities.d.ts +21 -0
  7. package/core/root/ExperimentNames.d.ts +2 -1
  8. package/core/root/Runtime.d.ts +4 -2
  9. package/core/sdk/CSSModel.d.ts +5 -0
  10. package/core/sdk/CSSPropertyParser.d.ts +0 -5
  11. package/core/sdk/DOMModel.d.ts +8 -4
  12. package/core/sdk/DebuggerModel.d.ts +37 -4
  13. package/core/sdk/NetworkRequest.d.ts +30 -2
  14. package/core/sdk/ResourceTreeModel.d.ts +3 -1
  15. package/core/sdk/RuntimeModel.d.ts +1 -0
  16. package/core/sdk/SDKSettings.d.ts +1 -0
  17. package/core/sdk/SourceMap.d.ts +20 -6
  18. package/core/sdk/SourceMapFunctionRanges.d.ts +3 -6
  19. package/core/sdk/SourceMapScopesInfo.d.ts +98 -23
  20. package/core/text_utils/Markdown.d.ts +13 -0
  21. package/core/text_utils/text_utils.d.ts +2 -1
  22. package/entrypoints/formatter_actions/formatter_actions.d.ts +17 -0
  23. package/generated/protocol-mapping.d.ts +64 -9
  24. package/generated/protocol-proxy-api.d.ts +58 -7
  25. package/generated/protocol.d.ts +93 -30
  26. package/index.d.ts +2 -0
  27. package/locales/af.json +129 -126
  28. package/locales/am.json +128 -125
  29. package/locales/ar.json +130 -127
  30. package/locales/as.json +130 -127
  31. package/locales/az.json +130 -127
  32. package/locales/be.json +128 -125
  33. package/locales/bg.json +130 -127
  34. package/locales/bn.json +130 -127
  35. package/locales/bs.json +130 -127
  36. package/locales/ca.json +130 -127
  37. package/locales/cs.json +128 -125
  38. package/locales/cy.json +130 -127
  39. package/locales/da.json +129 -126
  40. package/locales/de.json +130 -127
  41. package/locales/el.json +130 -127
  42. package/locales/en-GB.json +130 -127
  43. package/locales/en-US.json +1058 -0
  44. package/locales/es-419.json +129 -126
  45. package/locales/es.json +130 -127
  46. package/locales/et.json +95 -92
  47. package/locales/eu.json +130 -127
  48. package/locales/fa.json +130 -127
  49. package/locales/fi.json +129 -126
  50. package/locales/fil.json +130 -127
  51. package/locales/fr-CA.json +130 -127
  52. package/locales/fr.json +130 -127
  53. package/locales/gl.json +130 -127
  54. package/locales/gu.json +130 -127
  55. package/locales/he.json +130 -127
  56. package/locales/hi.json +130 -127
  57. package/locales/hr.json +128 -125
  58. package/locales/hu.json +90 -87
  59. package/locales/hy.json +127 -124
  60. package/locales/id.json +130 -127
  61. package/locales/is.json +129 -126
  62. package/locales/it.json +130 -127
  63. package/locales/ja.json +130 -127
  64. package/locales/ka.json +129 -126
  65. package/locales/kk.json +38 -35
  66. package/locales/km.json +130 -127
  67. package/locales/kn.json +130 -127
  68. package/locales/ko.json +22 -19
  69. package/locales/ky.json +130 -127
  70. package/locales/lo.json +130 -127
  71. package/locales/lt.json +130 -127
  72. package/locales/lv.json +66 -63
  73. package/locales/mk.json +130 -127
  74. package/locales/ml.json +129 -126
  75. package/locales/mn.json +129 -126
  76. package/locales/mr.json +130 -127
  77. package/locales/ms.json +130 -127
  78. package/locales/my.json +130 -127
  79. package/locales/ne.json +128 -125
  80. package/locales/nl.json +129 -126
  81. package/locales/no.json +130 -127
  82. package/locales/or.json +130 -127
  83. package/locales/pa.json +130 -127
  84. package/locales/pl.json +130 -127
  85. package/locales/pt-PT.json +129 -126
  86. package/locales/pt.json +130 -127
  87. package/locales/ro.json +129 -126
  88. package/locales/ru.json +50 -47
  89. package/locales/si.json +130 -127
  90. package/locales/sk.json +130 -127
  91. package/locales/sl.json +130 -127
  92. package/locales/sq.json +129 -126
  93. package/locales/sr-Latn.json +130 -127
  94. package/locales/sr.json +130 -127
  95. package/locales/sv.json +130 -127
  96. package/locales/sw.json +130 -127
  97. package/locales/ta.json +129 -126
  98. package/locales/te.json +130 -127
  99. package/locales/th.json +92 -89
  100. package/locales/tr.json +129 -126
  101. package/locales/uk.json +128 -125
  102. package/locales/ur.json +130 -127
  103. package/locales/uz.json +126 -123
  104. package/locales/vi.json +130 -127
  105. package/locales/zh-HK.json +130 -127
  106. package/locales/zh-TW.json +130 -127
  107. package/locales/zh.json +130 -127
  108. package/locales/zu.json +129 -126
  109. package/models/emulation/DeviceModeModel.d.ts +1 -0
  110. package/models/formatter/FormatterWorkerPool.d.ts +2 -2
  111. package/models/formatter/ScriptFormatter.d.ts +2 -2
  112. package/models/trace/extras/StackTraceForEvent.d.ts +1 -1
  113. package/models/trace/handlers/AnimationFramesHandler.d.ts +1 -1
  114. package/models/trace/handlers/AsyncJSCallsHandler.d.ts +2 -2
  115. package/models/trace/handlers/ImagePaintingHandler.d.ts +2 -2
  116. package/models/trace/handlers/InitiatorsHandler.d.ts +2 -2
  117. package/models/trace/handlers/LayerTreeHandler.d.ts +1 -1
  118. package/models/trace/handlers/NetworkRequestsHandler.d.ts +1 -1
  119. package/models/trace/handlers/PageLoadMetricsHandler.d.ts +1 -1
  120. package/models/trace/handlers/ScriptsHandler.d.ts +1 -1
  121. package/models/trace/handlers/WarningsHandler.d.ts +1 -1
  122. package/models/trace/helpers/SamplesIntegrator.d.ts +3 -1
  123. package/models/trace/helpers/Trace.d.ts +2 -0
  124. package/models/trace/insights/CLSCulprits.d.ts +1 -1
  125. package/models/trace/insights/DuplicatedJavaScript.d.ts +1 -1
  126. package/models/trace/insights/ImageDelivery.d.ts +1 -0
  127. package/models/trace/lantern/core/NetworkAnalyzer.d.ts +1 -0
  128. package/models/trace/lantern/graph/CPUNode.d.ts +4 -2
  129. package/models/trace/lantern/simulation/TCPConnection.d.ts +4 -4
  130. package/models/trace/lantern/types/Lantern.d.ts +15 -0
  131. package/models/trace/trace.js +21 -4
  132. package/models/trace/types/Overlays.d.ts +4 -3
  133. package/models/trace/types/TraceEvents.d.ts +184 -124
  134. package/package.json +14 -4
  135. package/third_party/marked/marked.d.ts +2 -0
  136. package/third_party/marked/package/lib/marked.esm.d.ts +760 -0
  137. package/third_party/source-map-scopes-codec/package/src/builder/builder.d.ts +4 -1
  138. package/third_party/source-map-scopes-codec/package/src/builder/safe_builder.d.ts +3 -1
  139. package/third_party/source-map-scopes-codec/package/src/codec.d.ts +6 -5
  140. package/third_party/source-map-scopes-codec/package/src/decode/decode.d.ts +2 -0
  141. package/third_party/source-map-scopes-codec/package/src/encode/encoder.d.ts +4 -1
  142. package/third_party/source-map-scopes-codec/package/src/scopes.d.ts +4 -3
  143. package/third_party/source-map-scopes-codec/package/src/vlq.d.ts +1 -1
  144. package/models/trace/lantern/lantern.js +0 -8
  145. package/models/trace/types/Timing.js +0 -8
  146. package/models/trace/types/TraceEvents.js +0 -189
  147. package/models/trace/types/types.js +0 -8
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file is auto-generated, do not edit manually. *
3
- * Re-generate with: npm run generate-protocol-resources.
3
+ * Re-generate with: scripts/tools/dt.py generate-protocol-resources.
4
4
  */
5
5
  export type integer = number;
6
6
  export type binary = string;
@@ -816,7 +816,6 @@ export declare namespace Audits {
816
816
  ExcludeSameSiteLax = "ExcludeSameSiteLax",
817
817
  ExcludeSameSiteStrict = "ExcludeSameSiteStrict",
818
818
  ExcludeDomainNonASCII = "ExcludeDomainNonASCII",
819
- ExcludeThirdPartyCookieBlockedInFirstPartySet = "ExcludeThirdPartyCookieBlockedInFirstPartySet",
820
819
  ExcludeThirdPartyPhaseout = "ExcludeThirdPartyPhaseout",
821
820
  ExcludePortMismatch = "ExcludePortMismatch",
822
821
  ExcludeSchemeMismatch = "ExcludeSchemeMismatch"
@@ -1200,7 +1199,8 @@ export declare namespace Audits {
1200
1199
  FormModelContextMissingToolName = "FormModelContextMissingToolName",
1201
1200
  FormModelContextMissingToolDescription = "FormModelContextMissingToolDescription",
1202
1201
  FormModelContextRequiredParameterMissingName = "FormModelContextRequiredParameterMissingName",
1203
- FormModelContextParameterMissingName = "FormModelContextParameterMissingName"
1202
+ FormModelContextParameterMissingName = "FormModelContextParameterMissingName",
1203
+ GeolocationPromptWithoutUserGesture = "GeolocationPromptWithoutUserGesture"
1204
1204
  }
1205
1205
  /**
1206
1206
  * Depending on the concrete errorType, different properties are set.
@@ -3789,6 +3789,17 @@ export declare namespace CSS {
3789
3789
  */
3790
3790
  forced: boolean;
3791
3791
  }
3792
+ interface ForcePositionTryOptionRequest {
3793
+ /**
3794
+ * The element id for which to force the position-try option.
3795
+ */
3796
+ nodeId: DOM.NodeId;
3797
+ /**
3798
+ * The 1-based index of the position-try fallback option, 0 for base position (no fallback),
3799
+ * or omitted to clear the forced state.
3800
+ */
3801
+ index?: integer;
3802
+ }
3792
3803
  interface GetBackgroundColorsRequest {
3793
3804
  /**
3794
3805
  * Id of the node to get background colors for.
@@ -6942,6 +6953,10 @@ export declare namespace Emulation {
6942
6953
  Enable = "enable",
6943
6954
  Default = "default"
6944
6955
  }
6956
+ const enum SetDeviceMetricsOverrideRequestTextLayoutMode {
6957
+ Mobile = "mobile",
6958
+ Default = "default"
6959
+ }
6945
6960
  interface SetDeviceMetricsOverrideRequest {
6946
6961
  /**
6947
6962
  * Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
@@ -7024,6 +7039,11 @@ export declare namespace Emulation {
7024
7039
  * the viewport meta tag is always enabled.
7025
7040
  */
7026
7041
  viewportMeta?: SetDeviceMetricsOverrideRequestViewportMeta;
7042
+ /**
7043
+ * Text layout mode. Default: `default`. Note: if `mobile` is `true`,
7044
+ * mobile text layout mode (text autosizing) is always enabled.
7045
+ */
7046
+ textLayoutMode?: SetDeviceMetricsOverrideRequestTextLayoutMode;
7027
7047
  }
7028
7048
  interface SetDevicePostureOverrideRequest {
7029
7049
  posture: DevicePosture;
@@ -8017,6 +8037,14 @@ export declare namespace FileSystem {
8017
8037
  directory: Directory;
8018
8038
  }
8019
8039
  }
8040
+ /**
8041
+ * This domain provides commands to trigger the "Find in page" feature.
8042
+ */
8043
+ export declare namespace FindInPage {
8044
+ interface FindFirstRequest {
8045
+ query: string;
8046
+ }
8047
+ }
8020
8048
  /**
8021
8049
  * This domain provides experimental commands only supported in headless mode.
8022
8050
  */
@@ -10479,7 +10507,6 @@ export declare namespace Network {
10479
10507
  SameSiteNoneInsecure = "SameSiteNoneInsecure",
10480
10508
  UserPreferences = "UserPreferences",
10481
10509
  ThirdPartyPhaseout = "ThirdPartyPhaseout",
10482
- ThirdPartyBlockedInFirstPartySet = "ThirdPartyBlockedInFirstPartySet",
10483
10510
  SyntaxError = "SyntaxError",
10484
10511
  SchemeNotSupported = "SchemeNotSupported",
10485
10512
  OverwriteSecure = "OverwriteSecure",
@@ -10506,7 +10533,6 @@ export declare namespace Network {
10506
10533
  SameSiteNoneInsecure = "SameSiteNoneInsecure",
10507
10534
  UserPreferences = "UserPreferences",
10508
10535
  ThirdPartyPhaseout = "ThirdPartyPhaseout",
10509
- ThirdPartyBlockedInFirstPartySet = "ThirdPartyBlockedInFirstPartySet",
10510
10536
  UnknownError = "UnknownError",
10511
10537
  SchemefulSameSiteStrict = "SchemefulSameSiteStrict",
10512
10538
  SchemefulSameSiteLax = "SchemefulSameSiteLax",
@@ -12028,6 +12054,11 @@ export declare namespace Network {
12028
12054
  * Total number of bytes received for this request.
12029
12055
  */
12030
12056
  encodedDataLength: number;
12057
+ /**
12058
+ * Size of the response body before removing content encodings.
12059
+ * Includes cached bodies, but excludes headers and transfer framing.
12060
+ */
12061
+ encodedBodyLength?: number;
12031
12062
  }
12032
12063
  /**
12033
12064
  * Fired if request ended up loading from cache.
@@ -13732,11 +13763,10 @@ export declare namespace Page {
13732
13763
  PrivateStateTokenRedemption = "private-state-token-redemption",
13733
13764
  PublickeyCredentialsCreate = "publickey-credentials-create",
13734
13765
  PublickeyCredentialsGet = "publickey-credentials-get",
13766
+ PublickeyCredentialsRemoteClientDataJson = "publickey-credentials-remote-client-data-json",
13735
13767
  Rewriter = "rewriter",
13736
13768
  ScreenWakeLock = "screen-wake-lock",
13737
13769
  Serial = "serial",
13738
- SharedStorage = "shared-storage",
13739
- SharedStorageSelectUrl = "shared-storage-select-url",
13740
13770
  SmartCard = "smart-card",
13741
13771
  SpeakerSelection = "speaker-selection",
13742
13772
  StorageAccess = "storage-access",
@@ -13745,6 +13775,7 @@ export declare namespace Page {
13745
13775
  SyncXhr = "sync-xhr",
13746
13776
  Tools = "tools",
13747
13777
  Translator = "translator",
13778
+ UnboundedElement = "unbounded-element",
13748
13779
  Unload = "unload",
13749
13780
  Usb = "usb",
13750
13781
  UsbUnrestricted = "usb-unrestricted",
@@ -14049,6 +14080,10 @@ export declare namespace Page {
14049
14080
  * Frame swap timestamp.
14050
14081
  */
14051
14082
  timestamp?: Network.TimeSinceEpoch;
14083
+ /**
14084
+ * Frame swap timestamp as monotonic time.
14085
+ */
14086
+ monotonicTimestamp?: Network.MonotonicTime;
14052
14087
  }
14053
14088
  /**
14054
14089
  * Javascript dialog type.
@@ -14849,6 +14884,12 @@ export declare namespace Page {
14849
14884
  */
14850
14885
  adScriptAncestry?: Network.AdAncestry;
14851
14886
  }
14887
+ interface GetSpellCheckCustomDictionaryRequest {
14888
+ frameId: FrameId;
14889
+ }
14890
+ interface GetSpellCheckCustomDictionaryResponse extends ProtocolResponseWithError {
14891
+ words: string[];
14892
+ }
14852
14893
  interface GetFrameTreeResponse extends ProtocolResponseWithError {
14853
14894
  /**
14854
14895
  * Present frame tree structure.
@@ -15439,6 +15480,12 @@ export declare namespace Page {
15439
15480
  */
15440
15481
  content: binary;
15441
15482
  }
15483
+ interface SetInputVisualizationRequest {
15484
+ /**
15485
+ * Whether to enable click visualization.
15486
+ */
15487
+ clicks?: boolean;
15488
+ }
15442
15489
  interface DomContentEventFiredEvent {
15443
15490
  timestamp: Network.MonotonicTime;
15444
15491
  }
@@ -16296,6 +16343,12 @@ export declare namespace Preload {
16296
16343
  key: PreloadingAttemptKey;
16297
16344
  pipelineId: PreloadPipelineId;
16298
16345
  status: PreloadingStatus;
16346
+ /**
16347
+ * The action currently performed by this attempt. This differs from
16348
+ * `key.action` after a prerender-until-script attempt is upgraded in place
16349
+ * to a full prerender.
16350
+ */
16351
+ effectiveAction?: SpeculationAction;
16299
16352
  prerenderStatus?: PrerenderFinalStatus;
16300
16353
  /**
16301
16354
  * This is used to give users more information about the name of Mojo interface
@@ -17164,6 +17217,19 @@ export declare namespace Storage {
17164
17217
  */
17165
17218
  token: string;
17166
17219
  }
17220
+ /**
17221
+ * Configuration for a Private Verification Tokens issuer.
17222
+ */
17223
+ interface PrivateVerificationTokensIssuerConfig {
17224
+ /**
17225
+ * Origin of the token issuer.
17226
+ */
17227
+ issuerOrigin: string;
17228
+ /**
17229
+ * Origins authorized to redeem tokens from this issuer.
17230
+ */
17231
+ redeemerOrigins: string[];
17232
+ }
17167
17233
  const enum StorageBucketsDurability {
17168
17234
  Relaxed = "relaxed",
17169
17235
  Strict = "strict"
@@ -17186,23 +17252,6 @@ export declare namespace Storage {
17186
17252
  persistent: boolean;
17187
17253
  durability: StorageBucketsDurability;
17188
17254
  }
17189
- /**
17190
- * A single Related Website Set object.
17191
- */
17192
- interface RelatedWebsiteSet {
17193
- /**
17194
- * The primary site of this set, along with the ccTLDs if there is any.
17195
- */
17196
- primarySites: string[];
17197
- /**
17198
- * The associated sites of this set, along with the ccTLDs if there is any.
17199
- */
17200
- associatedSites: string[];
17201
- /**
17202
- * The service sites of this set, along with the ccTLDs if there is any.
17203
- */
17204
- serviceSites: string[];
17205
- }
17206
17255
  interface GetStorageKeyForFrameRequest {
17207
17256
  frameId: Page.FrameId;
17208
17257
  }
@@ -17366,6 +17415,9 @@ export declare namespace Storage {
17366
17415
  interface GetPrivateVerificationTokensResponse extends ProtocolResponseWithError {
17367
17416
  tokens: PrivateVerificationToken[];
17368
17417
  }
17418
+ interface GetPrivateVerificationTokensIssuerConfigsResponse extends ProtocolResponseWithError {
17419
+ configs: PrivateVerificationTokensIssuerConfig[];
17420
+ }
17369
17421
  interface ClearPrivateVerificationTokensRequest {
17370
17422
  issuerOrigin: string;
17371
17423
  }
@@ -17385,9 +17437,6 @@ export declare namespace Storage {
17385
17437
  interface RunBounceTrackingMitigationsResponse extends ProtocolResponseWithError {
17386
17438
  deletedSites: string[];
17387
17439
  }
17388
- interface GetRelatedWebsiteSetsResponse extends ProtocolResponseWithError {
17389
- sets: RelatedWebsiteSet[];
17390
- }
17391
17440
  /**
17392
17441
  * A cache's contents have been modified.
17393
17442
  */
@@ -18911,6 +18960,10 @@ export declare namespace WebMCP {
18911
18960
  * A hint indicating that executing the tool will result in consequential actions, ex: booking a flight, transferring money.
18912
18961
  */
18913
18962
  consequential?: boolean;
18963
+ /**
18964
+ * If true, indicates that the tool is intended for debugging and developer tooling rather than end-user interactions.
18965
+ */
18966
+ debugging?: boolean;
18914
18967
  /**
18915
18968
  * If the declarative tool was declared with the autosubmit attribute.
18916
18969
  */
@@ -19166,6 +19219,10 @@ export declare namespace Debugger {
19166
19219
  Module = "module",
19167
19220
  WasmExpressionStack = "wasm-expression-stack"
19168
19221
  }
19222
+ const enum ScopeEmptyReason {
19223
+ NoVariables = "no-variables",
19224
+ AllUnavailable = "all-unavailable"
19225
+ }
19169
19226
  /**
19170
19227
  * Scope description.
19171
19228
  */
@@ -19190,13 +19247,13 @@ export declare namespace Debugger {
19190
19247
  */
19191
19248
  endLocation?: Location;
19192
19249
  /**
19193
- * True if the scope does not declare any variables or have a runtime context.
19194
- * Only present if true.
19250
+ * Present if the scope has no variable values to show. Absent means that
19251
+ * the scope declares at least one variable with an available value.
19195
19252
  * Empty scopes are retained in the scope chain because
19196
19253
  * they can be targeted via `evaluateOnCallFrame` (using `scopeNumber`) or
19197
19254
  * matched against scopes in source maps.
19198
19255
  */
19199
- empty?: boolean;
19256
+ emptyReason?: ScopeEmptyReason;
19200
19257
  }
19201
19258
  /**
19202
19259
  * Search match for resource.
@@ -19765,6 +19822,12 @@ export declare namespace Debugger {
19765
19822
  * The skipList specifies location ranges that should be skipped on step over.
19766
19823
  */
19767
19824
  skipList?: LocationRange[];
19825
+ /**
19826
+ * Functions whose source range lies within one of the enterRanges are
19827
+ * entered as if by stepInto, even when they are called (directly or
19828
+ * indirectly) from a call that is stepped over.
19829
+ */
19830
+ enterRanges?: LocationRange[];
19768
19831
  }
19769
19832
  /**
19770
19833
  * Fired when breakpoint is resolved to an actual script and location.
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './models/trace/trace.js';
2
+ export {default} from './models/trace/trace.js';