chrome-devtools-frontend 1.0.1684555 → 1.0.1689415

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 (602) hide show
  1. package/.agents/skills/gerrit-cli/SKILL.md +29 -8
  2. package/.agents/skills/gerrit-cli/references/commands.md +51 -18
  3. package/.agents/skills/gerrit-cli/references/workflows.md +6 -6
  4. package/.agents/skills/gerrit-cli/scripts/import_upstream.py +43 -70
  5. package/config/typescript/tsconfig.base.json +1 -0
  6. package/config/typescript/tsconfig.eslint.json +9 -0
  7. package/docs/contributing/issues.md +1 -1
  8. package/docs/styleguide/ux/writing.md +2 -2
  9. package/eslint.config.mjs +18 -10
  10. package/front_end/core/common/Base64.ts +1 -1
  11. package/front_end/core/common/Color.ts +28 -6
  12. package/front_end/core/common/ColorConverter.ts +12 -0
  13. package/front_end/core/common/Console.ts +2 -1
  14. package/front_end/core/common/Object.ts +2 -2
  15. package/front_end/core/common/ResourceType.ts +12 -13
  16. package/front_end/core/common/Revealer.ts +1 -1
  17. package/front_end/core/common/Settings.ts +2 -2
  18. package/front_end/core/common/TextDictionary.ts +2 -2
  19. package/front_end/core/common/Throttler.ts +1 -1
  20. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -2
  21. package/front_end/core/host/UserMetrics.ts +51 -37
  22. package/front_end/core/host/host.ts +1 -1
  23. package/front_end/core/i18n/i18nImpl.ts +1 -1
  24. package/front_end/core/platform/HostRuntime.ts +3 -3
  25. package/front_end/core/platform/KeyboardUtilities.ts +1 -1
  26. package/front_end/core/protocol_client/InspectorBackend.ts +7 -6
  27. package/front_end/core/root/Runtime.ts +4 -2
  28. package/front_end/core/sdk/AnimationModel.ts +1 -1
  29. package/front_end/core/sdk/CPUThrottlingManager.ts +198 -0
  30. package/front_end/core/sdk/CSSMetadata.ts +11 -6
  31. package/front_end/core/sdk/CSSPropertyParser.ts +5 -3
  32. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +90 -59
  33. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  34. package/front_end/core/sdk/DOMModel.ts +3 -3
  35. package/front_end/core/sdk/DebuggerModel.ts +1 -1
  36. package/front_end/core/sdk/EmulationModel.ts +5 -0
  37. package/front_end/core/sdk/LayerTreeBase.ts +1 -1
  38. package/front_end/core/sdk/NetworkManager.ts +1 -1
  39. package/front_end/core/sdk/README.md +40 -0
  40. package/front_end/core/sdk/RehydratingConnection.ts +1 -1
  41. package/front_end/core/sdk/RemoteObject.ts +1 -1
  42. package/front_end/core/sdk/ResourceTreeModel.ts +2 -2
  43. package/front_end/core/sdk/SDKModel.ts +1 -1
  44. package/front_end/core/sdk/SDKSettings.ts +6 -0
  45. package/front_end/core/sdk/Script.ts +2 -1
  46. package/front_end/core/sdk/SecurityOrigin.ts +48 -0
  47. package/front_end/core/sdk/ServiceWorkerManager.ts +75 -17
  48. package/front_end/core/sdk/sdk.ts +2 -0
  49. package/front_end/core/text_utils/ContentData.ts +1 -1
  50. package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +3 -1
  51. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
  52. package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
  53. package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
  54. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
  55. package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -1
  56. package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
  57. package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -1
  58. package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +3 -3
  59. package/front_end/entrypoints/inspector_main/renderingOptions.css +3 -3
  60. package/front_end/entrypoints/js_app/js_app.ts +25 -9
  61. package/front_end/entrypoints/node_app/app/nodeConnectionsPanel.css +5 -5
  62. package/front_end/entrypoints/node_app/node_app.ts +1 -1
  63. package/front_end/generated/ARIAProperties.ts +39 -1
  64. package/front_end/generated/InspectorBackendCommands.ts +2 -1
  65. package/front_end/generated/SupportedCSSProperties.ts +60 -119
  66. package/front_end/generated/protocol-mapping.d.ts +9 -0
  67. package/front_end/generated/protocol-proxy-api.d.ts +7 -0
  68. package/front_end/generated/protocol.ts +12 -2
  69. package/front_end/models/ai_assistance/AiAgent2.ts +13 -7
  70. package/front_end/models/ai_assistance/AiConversation.ts +8 -17
  71. package/front_end/models/ai_assistance/AiHistoryStorage.ts +2 -2
  72. package/front_end/models/ai_assistance/AiUtils.ts +16 -0
  73. package/front_end/models/ai_assistance/EvaluateAction.ts +1 -1
  74. package/front_end/models/ai_assistance/README.md +1 -1
  75. package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +2 -3
  76. package/front_end/models/ai_assistance/agents/AiAgent.ts +29 -6
  77. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -3
  78. package/front_end/models/ai_assistance/agents/FileAgent.ts +2 -2
  79. package/front_end/models/ai_assistance/agents/NetworkAgent.ts +2 -2
  80. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -1
  81. package/front_end/models/ai_assistance/agents/StorageAgent.ts +7 -5
  82. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
  83. package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -7
  84. package/front_end/models/ai_assistance/ai_assistance.ts +8 -0
  85. package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +16 -1
  86. package/front_end/models/ai_assistance/contexts/FileContext.ts +6 -0
  87. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +150 -325
  88. package/front_end/models/ai_assistance/injected.ts +5 -3
  89. package/front_end/models/ai_assistance/performance/AIContext.ts +1 -1
  90. package/front_end/models/ai_assistance/skills/README.md +1 -1
  91. package/front_end/models/ai_assistance/skills/accessibility.md +19 -10
  92. package/front_end/models/ai_assistance/skills/network.md +13 -7
  93. package/front_end/models/ai_assistance/skills/performance.md +22 -16
  94. package/front_end/models/ai_assistance/skills/sources.md +13 -7
  95. package/front_end/models/ai_assistance/skills/storage.md +19 -18
  96. package/front_end/models/ai_assistance/skills/styling.md +30 -37
  97. package/front_end/models/ai_assistance/tools/CookieUtils.ts +120 -0
  98. package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +53 -4
  99. package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +8 -32
  100. package/front_end/models/ai_assistance/tools/GetCookieValues.ts +146 -0
  101. package/front_end/models/ai_assistance/tools/GetDetailedCallTree.ts +11 -9
  102. package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +17 -5
  103. package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +12 -11
  104. package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +11 -11
  105. package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +3 -2
  106. package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +3 -3
  107. package/front_end/models/ai_assistance/tools/GetResourceContent.ts +12 -12
  108. package/front_end/models/ai_assistance/tools/GetSourceContent.ts +3 -2
  109. package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +132 -0
  110. package/front_end/models/ai_assistance/tools/GetStorageValues.ts +17 -4
  111. package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -3
  112. package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +9 -8
  113. package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +13 -14
  114. package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +12 -10
  115. package/front_end/models/ai_assistance/tools/ListCookies.ts +93 -0
  116. package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +15 -6
  117. package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +3 -3
  118. package/front_end/models/ai_assistance/tools/ListSources.ts +5 -3
  119. package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +16 -4
  120. package/front_end/models/ai_assistance/tools/RecordPerformanceTrace.ts +3 -2
  121. package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +4 -3
  122. package/front_end/models/ai_assistance/tools/RunLighthouse.ts +9 -9
  123. package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +9 -8
  124. package/front_end/models/ai_assistance/tools/Tool.ts +21 -11
  125. package/front_end/models/ai_assistance/tools/ToolRegistry.ts +41 -8
  126. package/front_end/models/badges/AiExplorerBadge.ts +3 -3
  127. package/front_end/models/badges/CodeWhispererBadge.ts +2 -2
  128. package/front_end/models/badges/DOMDetectiveBadge.ts +3 -3
  129. package/front_end/models/badges/SpeedsterBadge.ts +3 -3
  130. package/front_end/models/badges/StarterBadge.ts +4 -4
  131. package/front_end/models/bindings/CompilerScriptMapping.ts +11 -2
  132. package/front_end/models/bindings/ContentProviderBasedProject.ts +3 -2
  133. package/front_end/models/breakpoints/BreakpointManager.ts +1 -1
  134. package/front_end/models/emulation/EmulatedDevices.ts +2 -2
  135. package/front_end/models/formatter/FormatterWorkerPool.ts +2 -2
  136. package/front_end/models/formatter/ScriptFormatter.ts +1 -2
  137. package/front_end/models/geometry/GeometryImpl.ts +2 -2
  138. package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +1 -1
  139. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +3 -2
  140. package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -5
  141. package/front_end/models/issues_manager/GenericIssue.ts +18 -18
  142. package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
  143. package/front_end/models/javascript_metadata/{NativeFunctions.js → NativeFunctions.ts} +25 -9
  144. package/front_end/models/live-metrics/LiveMetrics.ts +9 -3
  145. package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +58 -6
  146. package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +2 -62
  147. package/front_end/models/network_time_calculator/RequestTimeRanges.ts +2 -2
  148. package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +5 -0
  149. package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
  150. package/front_end/models/persistence/NetworkPersistenceManager.ts +35 -6
  151. package/front_end/models/stack_trace/StackTraceImpl.ts +2 -2
  152. package/front_end/models/trace/LanternComputationData.ts +2 -3
  153. package/front_end/models/trace/extras/StackTraceForEvent.ts +3 -2
  154. package/front_end/models/trace/extras/ThirdParties.ts +9 -9
  155. package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +7 -4
  156. package/front_end/models/trace/handlers/FramesHandler.ts +3 -3
  157. package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +2 -2
  158. package/front_end/models/trace/handlers/SamplesHandler.ts +4 -2
  159. package/front_end/models/trace/handlers/UserInteractionsHandler.ts +1 -1
  160. package/front_end/models/trace/handlers/WarningsHandler.ts +2 -2
  161. package/front_end/models/trace/helpers/Network.ts +3 -3
  162. package/front_end/models/trace/helpers/Trace.ts +1 -1
  163. package/front_end/models/trace/insights/CLSCulprits.ts +2 -1
  164. package/front_end/models/trace/insights/Cache.ts +3 -1
  165. package/front_end/models/trace/insights/CharacterSet.ts +3 -1
  166. package/front_end/models/trace/insights/DOMSize.ts +3 -1
  167. package/front_end/models/trace/insights/DocumentLatency.ts +3 -1
  168. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +3 -1
  169. package/front_end/models/trace/insights/FontDisplay.ts +2 -1
  170. package/front_end/models/trace/insights/ForcedReflow.ts +2 -1
  171. package/front_end/models/trace/insights/INPBreakdown.ts +3 -1
  172. package/front_end/models/trace/insights/ImageDelivery.ts +3 -1
  173. package/front_end/models/trace/insights/LCPBreakdown.ts +3 -1
  174. package/front_end/models/trace/insights/LCPDiscovery.ts +3 -1
  175. package/front_end/models/trace/insights/LegacyJavaScript.ts +3 -1
  176. package/front_end/models/trace/insights/ModernHTTP.ts +2 -1
  177. package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -1
  178. package/front_end/models/trace/insights/RenderBlocking.ts +5 -4
  179. package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -1
  180. package/front_end/models/trace/insights/ThirdParties.ts +5 -3
  181. package/front_end/models/trace/insights/Viewport.ts +2 -1
  182. package/front_end/models/trace/lantern/simulation/Constants.ts +34 -2
  183. package/front_end/models/trace/lantern/simulation/DNSCache.ts +1 -1
  184. package/front_end/models/trace/types/TraceEvents.ts +8 -3
  185. package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -1
  186. package/front_end/models/workspace/WorkspaceImpl.ts +18 -2
  187. package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +686 -2
  188. package/front_end/panels/accessibility/accessibilityNode.css +4 -4
  189. package/front_end/panels/accessibility/accessibilityProperties.css +1 -1
  190. package/front_end/panels/accessibility/accessibilitySidebarView.css +2 -2
  191. package/front_end/panels/accessibility/axBreadcrumbs.css +13 -13
  192. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +14 -14
  193. package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
  194. package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
  195. package/front_end/panels/ai_assistance/components/ChatInput.ts +3 -2
  196. package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
  197. package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
  198. package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
  199. package/front_end/panels/ai_assistance/components/chatInput.css +12 -12
  200. package/front_end/panels/ai_assistance/components/chatMessage.css +16 -16
  201. package/front_end/panels/ai_assistance/components/chatView.css +2 -2
  202. package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
  203. package/front_end/panels/ai_assistance/components/exportForAgentsDialog.css +4 -0
  204. package/front_end/panels/ai_assistance/components/walkthroughView.css +6 -6
  205. package/front_end/panels/animation/animationTimeline.css +62 -62
  206. package/front_end/panels/application/ApplicationPanelSidebar.ts +6 -1
  207. package/front_end/panels/application/BackgroundServiceView.ts +290 -252
  208. package/front_end/panels/application/WebMCPView.ts +15 -7
  209. package/front_end/panels/application/appManifestView.css +5 -5
  210. package/front_end/panels/application/backgroundServiceView.css +18 -2
  211. package/front_end/panels/application/components/AdsView.ts +100 -4
  212. package/front_end/panels/application/components/adsView.css +8 -5
  213. package/front_end/panels/application/components/backForwardCacheView.css +5 -5
  214. package/front_end/panels/application/components/bounceTrackingMitigationsView.css +1 -1
  215. package/front_end/panels/application/components/endpointsGrid.css +1 -1
  216. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  217. package/front_end/panels/application/components/protocolHandlersView.css +6 -6
  218. package/front_end/panels/application/components/reportsGrid.css +1 -1
  219. package/front_end/panels/application/components/serviceWorkerRouterView.css +4 -4
  220. package/front_end/panels/application/components/trustTokensView.css +7 -7
  221. package/front_end/panels/application/cookieItemsView.css +3 -3
  222. package/front_end/panels/application/deviceBoundSessionsView.css +3 -3
  223. package/front_end/panels/application/frameDetailsReportView.css +11 -11
  224. package/front_end/panels/application/indexedDBViews.css +7 -7
  225. package/front_end/panels/application/originTrialTokenRows.css +2 -2
  226. package/front_end/panels/application/originTrialTreeView.css +3 -3
  227. package/front_end/panels/application/preloading/components/RuleSetDetailsView.css +2 -2
  228. package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +1 -1
  229. package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +2 -2
  230. package/front_end/panels/application/preloading/components/preloadingGrid.css +2 -2
  231. package/front_end/panels/application/preloading/components/usedPreloadingView.css +7 -7
  232. package/front_end/panels/application/preloading/preloadingView.css +1 -1
  233. package/front_end/panels/application/preloading/preloadingViewDropDown.css +3 -3
  234. package/front_end/panels/application/serviceWorkerCacheViews.css +5 -5
  235. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +12 -12
  236. package/front_end/panels/application/serviceWorkersView.css +15 -16
  237. package/front_end/panels/application/storageView.css +5 -5
  238. package/front_end/panels/application/webMCPView.css +9 -9
  239. package/front_end/panels/autofill/autofillView.css +4 -4
  240. package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +4 -4
  241. package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +5 -3
  242. package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +4 -4
  243. package/front_end/panels/changes/changesSidebar.css +1 -1
  244. package/front_end/panels/changes/changesView.css +1 -1
  245. package/front_end/panels/changes/combinedDiffView.css +1 -1
  246. package/front_end/panels/common/CPUThrottlingOption.ts +5 -10
  247. package/front_end/panels/common/badgeNotification.css +2 -2
  248. package/front_end/panels/common/domLinkifier.css +1 -1
  249. package/front_end/panels/common/gdpSignUpDialog.css +3 -3
  250. package/front_end/panels/common/geminiRebrandPromoDialog.css +1 -1
  251. package/front_end/panels/console/ConsolePrompt.ts +6 -3
  252. package/front_end/panels/console/ConsoleView.ts +6 -3
  253. package/front_end/panels/console/ConsoleViewMessage.ts +3 -1
  254. package/front_end/panels/console/console-meta.ts +5 -24
  255. package/front_end/panels/console/consoleContextSelector.css +2 -2
  256. package/front_end/panels/console/consolePinPane.css +9 -9
  257. package/front_end/panels/console/consolePrompt.css +5 -5
  258. package/front_end/panels/console/consoleView.css +39 -39
  259. package/front_end/panels/coverage/coverageListView.css +2 -2
  260. package/front_end/panels/css_overview/cssOverviewCompletedView.css +34 -34
  261. package/front_end/panels/css_overview/cssOverviewProcessingView.css +5 -5
  262. package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +1 -1
  263. package/front_end/panels/css_overview/cssOverviewStartView.css +17 -17
  264. package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +209 -62
  265. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +4 -4
  266. package/front_end/panels/elements/DOMTreeContextMenu.ts +59 -54
  267. package/front_end/panels/elements/ElementsPanel.ts +1 -1
  268. package/front_end/panels/elements/ElementsTreeElement.ts +130 -94
  269. package/front_end/panels/elements/ElementsTreeOutline.ts +1751 -363
  270. package/front_end/panels/elements/ShortcutTreeElement.ts +6 -3
  271. package/front_end/panels/elements/StylePropertiesSection.ts +65 -8
  272. package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -0
  273. package/front_end/panels/elements/StylesSidebarPane.ts +143 -8
  274. package/front_end/panels/elements/classesPaneWidget.css +6 -6
  275. package/front_end/panels/elements/components/stylePropertyEditor.css +7 -7
  276. package/front_end/panels/elements/computedStyleWidget.css +1 -1
  277. package/front_end/panels/elements/elementStatePaneWidget.css +8 -8
  278. package/front_end/panels/elements/elements-meta.ts +14 -0
  279. package/front_end/panels/elements/elementsPanel.css +4 -4
  280. package/front_end/panels/elements/elementsTreeOutline.css +222 -38
  281. package/front_end/panels/elements/layersWidget.css +4 -4
  282. package/front_end/panels/elements/layoutPane.css +18 -18
  283. package/front_end/panels/elements/metricsSidebarPane.css +11 -11
  284. package/front_end/panels/elements/platformFontsWidget.css +5 -5
  285. package/front_end/panels/elements/propertiesWidget.css +2 -2
  286. package/front_end/panels/elements/stylePropertiesTreeOutline.css +20 -20
  287. package/front_end/panels/elements/stylesSidebarPane.css +37 -20
  288. package/front_end/panels/emulation/deviceModeView.css +49 -49
  289. package/front_end/panels/emulation/mediaQueryInspector.css +18 -18
  290. package/front_end/panels/event_listeners/eventListenersView.css +1 -1
  291. package/front_end/panels/explain/components/consoleInsight.css +29 -29
  292. package/front_end/panels/issues/components/elementsPanelLink.css +2 -2
  293. package/front_end/panels/issues/components/hideIssuesMenu.css +1 -1
  294. package/front_end/panels/issues/issuesPane.css +2 -2
  295. package/front_end/panels/issues/issuesTree.css +50 -50
  296. package/front_end/panels/layer_viewer/Layers3DView.ts +9 -10
  297. package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
  298. package/front_end/panels/layer_viewer/layerTreeOutline.css +2 -2
  299. package/front_end/panels/layer_viewer/layers3DView.css +1 -1
  300. package/front_end/panels/layer_viewer/paintProfiler.css +1 -1
  301. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
  302. package/front_end/panels/media/playerListView.css +9 -9
  303. package/front_end/panels/media/playerMessagesView.css +8 -8
  304. package/front_end/panels/media/playerPropertiesView.css +6 -6
  305. package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
  306. package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +9 -9
  307. package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
  308. package/front_end/panels/network/NetworkPanel.ts +9 -4
  309. package/front_end/panels/network/RequestConditionsDrawer.ts +12 -12
  310. package/front_end/panels/network/RequestPayloadView.ts +78 -26
  311. package/front_end/panels/network/binaryResourceView.css +1 -1
  312. package/front_end/panels/network/components/EditableSpan.css +3 -3
  313. package/front_end/panels/network/components/HeaderSectionRow.css +14 -14
  314. package/front_end/panels/network/components/RequestHeaderSection.css +7 -7
  315. package/front_end/panels/network/components/RequestHeadersView.css +18 -18
  316. package/front_end/panels/network/components/RequestTrustTokensView.css +1 -1
  317. package/front_end/panels/network/network-meta.ts +9 -9
  318. package/front_end/panels/network/networkConfigView.css +11 -11
  319. package/front_end/panels/network/networkLogView.css +35 -35
  320. package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
  321. package/front_end/panels/network/networkPanel.css +7 -7
  322. package/front_end/panels/network/networkTimingTable.css +13 -13
  323. package/front_end/panels/network/requestConditionsDrawer.css +4 -4
  324. package/front_end/panels/network/requestCookiesView.css +5 -5
  325. package/front_end/panels/network/requestDeviceBoundSessionsView.css +1 -1
  326. package/front_end/panels/network/requestHTMLView.css +1 -1
  327. package/front_end/panels/network/requestHeadersTree.css +19 -19
  328. package/front_end/panels/network/requestInitiatorView.css +1 -1
  329. package/front_end/panels/network/requestInitiatorViewTree.css +3 -3
  330. package/front_end/panels/network/requestPayloadTree.css +5 -5
  331. package/front_end/panels/network/requestPayloadView.css +1 -1
  332. package/front_end/panels/network/resourceChunkView.css +3 -3
  333. package/front_end/panels/network/signedExchangeInfoTree.css +6 -6
  334. package/front_end/panels/profiler/heapProfiler.css +15 -15
  335. package/front_end/panels/profiler/profileLauncherView.css +10 -10
  336. package/front_end/panels/recorder/RecordingView.ts +1 -1
  337. package/front_end/panels/recorder/StepEditor.ts +86 -7
  338. package/front_end/panels/recorder/TimelineSection.ts +2 -1
  339. package/front_end/panels/recorder/createRecordingView.css +17 -17
  340. package/front_end/panels/recorder/extensionView.css +5 -5
  341. package/front_end/panels/recorder/injected/RecordingClient.ts +1 -1
  342. package/front_end/panels/recorder/models/SchemaUtils.ts +2 -2
  343. package/front_end/panels/recorder/models/ScreenshotStorage.ts +1 -1
  344. package/front_end/panels/recorder/recorderPanel.css +7 -7
  345. package/front_end/panels/recorder/recordingListView.css +12 -12
  346. package/front_end/panels/recorder/recordingView.css +47 -47
  347. package/front_end/panels/recorder/stepEditor.css +2 -2
  348. package/front_end/panels/recorder/stepView.css +20 -20
  349. package/front_end/panels/recorder/timelineSection.css +9 -9
  350. package/front_end/panels/screencast/screencastView.css +12 -12
  351. package/front_end/panels/search/searchResultsPane.css +10 -10
  352. package/front_end/panels/search/searchView.css +9 -9
  353. package/front_end/panels/security/SecurityPanel.ts +84 -54
  354. package/front_end/panels/security/mainView.css +26 -26
  355. package/front_end/panels/security/originView.css +15 -15
  356. package/front_end/panels/sensors/locationsSettingsTab.css +6 -6
  357. package/front_end/panels/sensors/sensors.css +28 -28
  358. package/front_end/panels/settings/components/syncSection.css +5 -5
  359. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +13 -13
  360. package/front_end/panels/settings/emulation/devicesSettingsTab.css +16 -16
  361. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +2 -2
  362. package/front_end/panels/settings/keybindsSettingsTab.css +2 -2
  363. package/front_end/panels/settings/settingsScreen.css +5 -5
  364. package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
  365. package/front_end/panels/sources/breakpointEditDialog.css +9 -9
  366. package/front_end/panels/sources/breakpointsView.css +25 -25
  367. package/front_end/panels/sources/callStackSidebarPane.css +10 -10
  368. package/front_end/panels/sources/components/HeadersView.css +6 -6
  369. package/front_end/panels/sources/debuggerPausedMessage.css +4 -4
  370. package/front_end/panels/sources/dialog.css +2 -2
  371. package/front_end/panels/sources/navigatorTree.css +2 -2
  372. package/front_end/panels/sources/navigatorView.css +2 -2
  373. package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
  374. package/front_end/panels/sources/sourcesNavigator.css +1 -1
  375. package/front_end/panels/sources/sourcesPanel.css +2 -2
  376. package/front_end/panels/sources/sourcesView.css +1 -1
  377. package/front_end/panels/sources/threadsSidebarPane.css +5 -5
  378. package/front_end/panels/sources/watchExpressionsSidebarPane.css +8 -8
  379. package/front_end/panels/timeline/TimelineDetailsView.ts +9 -21
  380. package/front_end/panels/timeline/TimelineFlameChartView.ts +3 -5
  381. package/front_end/panels/timeline/TimelineMiniMap.ts +3 -3
  382. package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
  383. package/front_end/panels/timeline/components/breadcrumbsUI.css +3 -3
  384. package/front_end/panels/timeline/components/exportTraceOptions.css +1 -1
  385. package/front_end/panels/timeline/components/fieldSettingsDialog.css +13 -13
  386. package/front_end/panels/timeline/components/ignoreListSetting.css +3 -3
  387. package/front_end/panels/timeline/components/liveMetricsView.css +39 -39
  388. package/front_end/panels/timeline/components/metricCard.css +20 -20
  389. package/front_end/panels/timeline/components/networkRequestDetails.css +9 -9
  390. package/front_end/panels/timeline/components/networkRequestTooltip.css +14 -14
  391. package/front_end/panels/timeline/components/networkTrackWidget.css +2 -2
  392. package/front_end/panels/timeline/components/originMap.css +4 -4
  393. package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
  394. package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +4 -4
  395. package/front_end/panels/timeline/components/sidebarInsightsTab.css +5 -5
  396. package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +1 -1
  397. package/front_end/panels/timeline/components/timelineSummary.css +4 -4
  398. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +4 -4
  399. package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
  400. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +6 -6
  401. package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
  402. package/front_end/panels/timeline/thirdPartyTreeView.css +5 -5
  403. package/front_end/panels/timeline/timeline-meta.ts +0 -6
  404. package/front_end/panels/timeline/timelineDetailsView.css +11 -11
  405. package/front_end/panels/timeline/timelinePanel.css +20 -20
  406. package/front_end/panels/timeline/timelineTreeView.css +8 -8
  407. package/front_end/panels/webauthn/webauthnPane.css +6 -6
  408. package/front_end/panels/whats_new/ReleaseNoteText.ts +2 -2
  409. package/front_end/third_party/chromium/README.chromium +1 -1
  410. package/front_end/third_party/i18n/i18n-impl.ts +1 -1
  411. package/front_end/third_party/puppeteer/README.chromium +2 -2
  412. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +15 -1
  413. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +42 -8
  414. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts +4 -0
  415. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts.map +1 -1
  416. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js +15 -2
  417. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js.map +1 -1
  418. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts +14 -1
  419. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts.map +1 -1
  420. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js +23 -1
  421. package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js.map +1 -1
  422. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
  423. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
  424. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
  425. package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
  426. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts.map +1 -1
  427. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js +77 -6
  428. package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js.map +1 -1
  429. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
  430. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
  431. package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js.map +1 -1
  432. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
  433. package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
  434. package/front_end/third_party/puppeteer/package/lib/types.d.ts +15 -1
  435. package/front_end/third_party/puppeteer/package/package.json +2 -2
  436. package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -2
  437. package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +36 -1
  438. package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
  439. package/front_end/third_party/puppeteer/package/src/injected/Poller.ts +86 -6
  440. package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
  441. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  442. package/front_end/third_party/web-vitals/README.chromium +2 -2
  443. package/front_end/third_party/web-vitals/package/README.md +22 -7
  444. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +6 -2
  445. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
  446. package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +30 -3
  447. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +14 -0
  448. package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +19 -13
  449. package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +1 -1
  450. package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
  451. package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -3
  452. package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +3 -1
  453. package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +15 -1
  454. package/front_end/third_party/web-vitals/package/package.json +1 -2
  455. package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +9 -2
  456. package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +36 -5
  457. package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +21 -15
  458. package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
  459. package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +4 -1
  460. package/front_end/third_party/web-vitals/package/src/types/lcp.ts +16 -1
  461. package/front_end/third_party/web-vitals/rebuild.sh +3 -3
  462. package/front_end/ui/comments/CommentAnchorResolver.ts +15 -4
  463. package/front_end/ui/comments/commentsOverlay.css +6 -5
  464. package/front_end/ui/components/adorners/Adorner.ts +1 -1
  465. package/front_end/ui/components/adorners/adorner.css +6 -6
  466. package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
  467. package/front_end/ui/components/buttons/button.css +9 -9
  468. package/front_end/ui/components/buttons/floatingButton.css +2 -2
  469. package/front_end/ui/components/buttons/textButton.css +12 -12
  470. package/front_end/ui/components/dialogs/Dialog.ts +1 -1
  471. package/front_end/ui/components/dialogs/dialog.css +1 -1
  472. package/front_end/ui/components/diff_view/diffView.css +3 -3
  473. package/front_end/ui/components/expandable_list/expandableList.css +9 -9
  474. package/front_end/ui/components/highlighting/HighlightElement.ts +1 -1
  475. package/front_end/ui/components/highlighting/HighlightManager.ts +4 -0
  476. package/front_end/ui/components/icon_button/iconButton.css +2 -2
  477. package/front_end/ui/components/input/checkbox.css +8 -8
  478. package/front_end/ui/components/input/textInput.css +3 -3
  479. package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
  480. package/front_end/ui/components/linkifier/linkifierImpl.css +1 -1
  481. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
  482. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -1
  483. package/front_end/ui/components/markdown_view/codeBlock.css +2 -2
  484. package/front_end/ui/components/markdown_view/markdownView.css +7 -7
  485. package/front_end/ui/components/menus/menuGroup.css +2 -2
  486. package/front_end/ui/components/menus/menuItem.css +2 -2
  487. package/front_end/ui/components/menus/selectMenu.css +2 -2
  488. package/front_end/ui/components/menus/selectMenuButton.css +4 -4
  489. package/front_end/ui/components/panel_feedback/panelFeedback.css +15 -15
  490. package/front_end/ui/components/panel_feedback/previewToggle.css +2 -2
  491. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +7 -7
  492. package/front_end/ui/components/report_view/report.css +3 -3
  493. package/front_end/ui/components/report_view/reportSectionDivider.css +1 -1
  494. package/front_end/ui/components/report_view/reportValue.css +1 -1
  495. package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
  496. package/front_end/ui/components/settings/settingCheckbox.css +6 -6
  497. package/front_end/ui/components/text_editor/TextEditor.ts +3 -1
  498. package/front_end/ui/components/text_editor/config.ts +16 -4
  499. package/front_end/ui/kit/icons/icon.css +4 -4
  500. package/front_end/ui/kit/link/link.css +1 -1
  501. package/front_end/ui/legacy/ActionRegistration.ts +23 -23
  502. package/front_end/ui/legacy/Dialog.ts +1 -1
  503. package/front_end/ui/legacy/DockController.ts +3 -3
  504. package/front_end/ui/legacy/EmptyWidget.ts +13 -34
  505. package/front_end/ui/legacy/FilterBar.ts +4 -4
  506. package/front_end/ui/legacy/Infobar.ts +2 -2
  507. package/front_end/ui/legacy/InspectorDrawerView.ts +6 -6
  508. package/front_end/ui/legacy/InspectorView.ts +19 -26
  509. package/front_end/ui/legacy/ListWidget.ts +7 -7
  510. package/front_end/ui/legacy/PlusButton.ts +1 -3
  511. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +6 -6
  512. package/front_end/ui/legacy/SearchableView.ts +16 -16
  513. package/front_end/ui/legacy/SoftContextMenu.ts +8 -8
  514. package/front_end/ui/legacy/SoftDropDown.ts +1 -1
  515. package/front_end/ui/legacy/SuggestBox.ts +2 -2
  516. package/front_end/ui/legacy/TabbedPane.ts +10 -10
  517. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
  518. package/front_end/ui/legacy/Toolbar.ts +5 -5
  519. package/front_end/ui/legacy/Treeoutline.ts +1 -1
  520. package/front_end/ui/legacy/UIUtils.ts +80 -20
  521. package/front_end/ui/legacy/ViewManager.ts +1 -1
  522. package/front_end/ui/legacy/ViewRegistration.ts +7 -7
  523. package/front_end/ui/legacy/Widget.ts +5 -5
  524. package/front_end/ui/legacy/checkboxTextLabel.css +3 -3
  525. package/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts +16 -0
  526. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -0
  527. package/front_end/ui/legacy/components/color_picker/spectrum.css +90 -90
  528. package/front_end/ui/legacy/components/cookie_table/cookiesTable.css +1 -1
  529. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +26 -28
  530. package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -7
  531. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +13 -13
  532. package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +7 -7
  533. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +5 -5
  534. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +18 -18
  535. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +104 -86
  536. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -6
  537. package/front_end/ui/legacy/components/object_ui/objectPopover.css +4 -4
  538. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +6 -6
  539. package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +28 -11
  540. package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +0 -4
  541. package/front_end/ui/legacy/components/perf_ui/chartViewport.css +4 -4
  542. package/front_end/ui/legacy/components/perf_ui/filmStripView.css +6 -6
  543. package/front_end/ui/legacy/components/perf_ui/flameChart.css +7 -7
  544. package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -11
  545. package/front_end/ui/legacy/components/perf_ui/pieChart.css +6 -6
  546. package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +5 -5
  547. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +3 -3
  548. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
  549. package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
  550. package/front_end/ui/legacy/components/source_frame/jsonView.css +1 -1
  551. package/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css +1 -1
  552. package/front_end/ui/legacy/components/source_frame/xmlTree.css +3 -3
  553. package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
  554. package/front_end/ui/legacy/components/utils/jsUtils.css +10 -10
  555. package/front_end/ui/legacy/dropTarget.css +2 -2
  556. package/front_end/ui/legacy/emptyWidget.css +6 -0
  557. package/front_end/ui/legacy/filter.css +19 -19
  558. package/front_end/ui/legacy/infobar.css +2 -2
  559. package/front_end/ui/legacy/inspectorCommon.css +67 -67
  560. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
  561. package/front_end/ui/legacy/listWidget.css +5 -5
  562. package/front_end/ui/legacy/progressIndicator.css +4 -4
  563. package/front_end/ui/legacy/reportView.css +7 -7
  564. package/front_end/ui/legacy/searchableView.css +5 -5
  565. package/front_end/ui/legacy/smallBubble.css +3 -3
  566. package/front_end/ui/legacy/softContextMenu.css +4 -4
  567. package/front_end/ui/legacy/softDropDownButton.css +1 -1
  568. package/front_end/ui/legacy/splitWidget.css +9 -31
  569. package/front_end/ui/legacy/suggestBox.css +4 -4
  570. package/front_end/ui/legacy/tabbedPane.css +17 -17
  571. package/front_end/ui/legacy/textPrompt.css +2 -2
  572. package/front_end/ui/legacy/toolbar.css +4 -4
  573. package/front_end/ui/legacy/treeoutline.css +14 -14
  574. package/front_end/ui/legacy/viewContainers.css +6 -6
  575. package/front_end/ui/settings/ConsoleSettings.ts +34 -0
  576. package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
  577. package/inspector_overlay/common.ts +12 -12
  578. package/inspector_overlay/css_grid_label_helpers.ts +16 -17
  579. package/inspector_overlay/drag_resize_handler.ts +2 -2
  580. package/inspector_overlay/highlight_common.ts +11 -13
  581. package/inspector_overlay/highlight_container_query.ts +2 -2
  582. package/inspector_overlay/highlight_flex_common.ts +6 -7
  583. package/inspector_overlay/highlight_grid_common.ts +3 -3
  584. package/inspector_overlay/highlight_isolated_element.ts +12 -3
  585. package/inspector_overlay/highlight_scroll_snap.ts +2 -2
  586. package/inspector_overlay/loadCSS.rollup.js +0 -1
  587. package/inspector_overlay/testing/InspectorOverlayHelpers.ts +13 -13
  588. package/inspector_overlay/tool_green_dev_anchors.ts +3 -3
  589. package/inspector_overlay/tool_highlight.ts +9 -9
  590. package/inspector_overlay/tool_paused.ts +4 -4
  591. package/inspector_overlay/tool_persistent.ts +11 -11
  592. package/inspector_overlay/tool_screenshot.ts +7 -7
  593. package/inspector_overlay/tool_source_order.ts +4 -4
  594. package/inspector_overlay/tool_viewport_size.ts +3 -3
  595. package/inspector_overlay/tool_window_controls.ts +4 -4
  596. package/mcp/mcp.ts +1 -0
  597. package/package.json +2 -2
  598. package/front_end/generated/protocol-tsconfig.json +0 -10
  599. package/front_end/panels/js_timeline/DIR_METADATA +0 -3
  600. package/front_end/panels/js_timeline/js_timeline-meta.ts +0 -193
  601. package/front_end/panels/js_timeline/js_timeline.ts +0 -1
  602. /package/front_end/entrypoints/{formatter_worker/FormatterActions.ts → formatter_actions/formatter_actions.ts} +0 -0
@@ -127,8 +127,8 @@ export function getFormat(formatText: string): Format|null {
127
127
  }
128
128
 
129
129
  // Returns the `ColorSpace` equivalent from the color space text
130
- type ColorSpace = Format.SRGB|Format.SRGB_LINEAR|Format.DISPLAY_P3|Format.A98_RGB|Format.PROPHOTO_RGB|
131
- Format.REC_2020|Format.XYZ|Format.XYZ_D50|Format.XYZ_D65;
130
+ type ColorSpace = Format.SRGB|Format.SRGB_LINEAR|Format.DISPLAY_P3|Format.DISPLAY_P3_LINEAR|Format.A98_RGB|
131
+ Format.PROPHOTO_RGB|Format.REC_2020|Format.XYZ|Format.XYZ_D50|Format.XYZ_D65;
132
132
  function getColorSpace(colorSpaceText: string): ColorSpace|null {
133
133
  switch (colorSpaceText) {
134
134
  case Format.SRGB:
@@ -137,6 +137,8 @@ function getColorSpace(colorSpaceText: string): ColorSpace|null {
137
137
  return Format.SRGB_LINEAR;
138
138
  case Format.DISPLAY_P3:
139
139
  return Format.DISPLAY_P3;
140
+ case Format.DISPLAY_P3_LINEAR:
141
+ return Format.DISPLAY_P3_LINEAR;
140
142
  case Format.A98_RGB:
141
143
  return Format.A98_RGB;
142
144
  case Format.PROPHOTO_RGB:
@@ -651,6 +653,7 @@ interface ColorConversions<T = void> {
651
653
  [Format.SRGB](self: T): ColorFunction;
652
654
  [Format.SRGB_LINEAR](self: T): ColorFunction;
653
655
  [Format.DISPLAY_P3](self: T): ColorFunction;
656
+ [Format.DISPLAY_P3_LINEAR](self: T): ColorFunction;
654
657
  [Format.A98_RGB](self: T): ColorFunction;
655
658
  [Format.PROPHOTO_RGB](self: T): ColorFunction;
656
659
  [Format.REC_2020](self: T): ColorFunction;
@@ -727,6 +730,7 @@ export const enum Format {
727
730
  SRGB = 'srgb',
728
731
  SRGB_LINEAR = 'srgb-linear',
729
732
  DISPLAY_P3 = 'display-p3',
733
+ DISPLAY_P3_LINEAR = 'display-p3-linear',
730
734
  A98_RGB = 'a98-rgb',
731
735
  PROPHOTO_RGB = 'prophoto-rgb',
732
736
  REC_2020 = 'rec2020',
@@ -766,6 +770,8 @@ export class Lab implements Color {
766
770
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
767
771
  [Format.DISPLAY_P3]: (self: Lab) =>
768
772
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
773
+ [Format.DISPLAY_P3_LINEAR]: (self: Lab) => new ColorFunction(
774
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
769
775
  [Format.A98_RGB]: (self: Lab) =>
770
776
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
771
777
  [Format.PROPHOTO_RGB]: (self: Lab) =>
@@ -905,6 +911,8 @@ export class LCH implements Color {
905
911
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
906
912
  [Format.DISPLAY_P3]: (self: LCH) =>
907
913
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
914
+ [Format.DISPLAY_P3_LINEAR]: (self: LCH) => new ColorFunction(
915
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
908
916
  [Format.A98_RGB]: (self: LCH) =>
909
917
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
910
918
  [Format.PROPHOTO_RGB]: (self: LCH) =>
@@ -1047,6 +1055,8 @@ export class Oklab implements Color {
1047
1055
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
1048
1056
  [Format.DISPLAY_P3]: (self: Oklab) =>
1049
1057
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
1058
+ [Format.DISPLAY_P3_LINEAR]: (self: Oklab) => new ColorFunction(
1059
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
1050
1060
  [Format.A98_RGB]: (self: Oklab) =>
1051
1061
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
1052
1062
  [Format.PROPHOTO_RGB]: (self: Oklab) =>
@@ -1186,6 +1196,8 @@ export class Oklch implements Color {
1186
1196
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
1187
1197
  [Format.DISPLAY_P3]: (self: Oklch) =>
1188
1198
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
1199
+ [Format.DISPLAY_P3_LINEAR]: (self: Oklch) => new ColorFunction(
1200
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
1189
1201
  [Format.A98_RGB]: (self: Oklch) =>
1190
1202
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
1191
1203
  [Format.PROPHOTO_RGB]: (self: Oklch) =>
@@ -1329,6 +1341,8 @@ export class ColorFunction implements Color {
1329
1341
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
1330
1342
  [Format.DISPLAY_P3]: (self: ColorFunction) =>
1331
1343
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
1344
+ [Format.DISPLAY_P3_LINEAR]: (self: ColorFunction) => new ColorFunction(
1345
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
1332
1346
  [Format.A98_RGB]: (self: ColorFunction) =>
1333
1347
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
1334
1348
  [Format.PROPHOTO_RGB]: (self: ColorFunction) =>
@@ -1352,6 +1366,8 @@ export class ColorFunction implements Color {
1352
1366
  return ColorConverter.srgbLinearToXyzd50(p0, p1, p2);
1353
1367
  case Format.DISPLAY_P3:
1354
1368
  return ColorConverter.displayP3ToXyzd50(p0, p1, p2);
1369
+ case Format.DISPLAY_P3_LINEAR:
1370
+ return ColorConverter.displayP3LinearToXyzd50(p0, p1, p2);
1355
1371
  case Format.A98_RGB:
1356
1372
  return ColorConverter.adobeRGBToXyzd50(p0, p1, p2);
1357
1373
  case Format.PROPHOTO_RGB:
@@ -1560,6 +1576,8 @@ export class HSL implements Color {
1560
1576
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
1561
1577
  [Format.DISPLAY_P3]: (self: HSL) =>
1562
1578
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
1579
+ [Format.DISPLAY_P3_LINEAR]: (self: HSL) => new ColorFunction(
1580
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
1563
1581
  [Format.A98_RGB]: (self: HSL) =>
1564
1582
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
1565
1583
  [Format.PROPHOTO_RGB]: (self: HSL) =>
@@ -1714,6 +1732,8 @@ export class HWB implements Color {
1714
1732
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
1715
1733
  [Format.DISPLAY_P3]: (self: HWB) =>
1716
1734
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
1735
+ [Format.DISPLAY_P3_LINEAR]: (self: HWB) => new ColorFunction(
1736
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
1717
1737
  [Format.A98_RGB]: (self: HWB) =>
1718
1738
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
1719
1739
  [Format.PROPHOTO_RGB]: (self: HWB) =>
@@ -1983,6 +2003,8 @@ export class Legacy implements Color {
1983
2003
  new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
1984
2004
  [Format.DISPLAY_P3]: (self: Legacy) =>
1985
2005
  new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
2006
+ [Format.DISPLAY_P3_LINEAR]: (self: Legacy) => new ColorFunction(
2007
+ Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
1986
2008
  [Format.A98_RGB]: (self: Legacy) =>
1987
2009
  new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
1988
2010
  [Format.PROPHOTO_RGB]: (self: Legacy) =>
@@ -2403,7 +2425,7 @@ console.assert(
2403
2425
  COLOR_TO_RGBA_ENTRIES.every(([nickname]) => nickname.toLowerCase() === nickname),
2404
2426
  'All color nicknames must be lowercase.');
2405
2427
 
2406
- export const Nicknames = new Map(COLOR_TO_RGBA_ENTRIES);
2428
+ export const Nicknames: Map<string, number[]> = new Map(COLOR_TO_RGBA_ENTRIES);
2407
2429
 
2408
2430
  const RGBAToNickname = new Map(
2409
2431
  // Default opacity to 1 if the color only specified 3 channels
@@ -2414,7 +2436,7 @@ const RGBAToNickname = new Map(
2414
2436
 
2415
2437
  const LAYOUT_LINES_HIGHLIGHT_COLOR = [127, 32, 210];
2416
2438
 
2417
- export const PageHighlight = {
2439
+ export const PageHighlight: Record<string, Legacy> = {
2418
2440
  Content: Legacy.fromRGBA([111, 168, 220, .66]),
2419
2441
  ContentLight: Legacy.fromRGBA([111, 168, 220, .5]),
2420
2442
  ContentOutline: Legacy.fromRGBA([9, 83, 148]),
@@ -2435,12 +2457,12 @@ export const PageHighlight = {
2435
2457
  GridAreaBorder: Legacy.fromRGBA([26, 115, 232, 1]),
2436
2458
  };
2437
2459
 
2438
- export const SourceOrderHighlight = {
2460
+ export const SourceOrderHighlight: Record<string, Legacy> = {
2439
2461
  ParentOutline: Legacy.fromRGBA([224, 90, 183, 1]),
2440
2462
  ChildOutline: Legacy.fromRGBA([0, 120, 212, 1]),
2441
2463
  };
2442
2464
 
2443
- export const IsolationModeHighlight = {
2465
+ export const IsolationModeHighlight: Record<string, Legacy> = {
2444
2466
  Resizer: Legacy.fromRGBA([222, 225, 230, 1]), // --color-background-elevation-2
2445
2467
  ResizerHandle: Legacy.fromRGBA([166, 166, 166, 1]),
2446
2468
  Mask: Legacy.fromRGBA([248, 249, 249, 1]),
@@ -308,6 +308,18 @@ export class ColorConverter {
308
308
  NAMED_TRANSFER_FN.sRGB_INVERSE, rgbOutput.values[0], rgbOutput.values[1], rgbOutput.values[2]);
309
309
  }
310
310
 
311
+ static displayP3LinearToXyzd50(r: number, g: number, b: number): [number, number, number] {
312
+ const rgbInput = new Vector3([r, g, b]);
313
+ const xyzOutput = NAMED_GAMUTS.displayP3.multiply(rgbInput);
314
+ return xyzOutput.values;
315
+ }
316
+
317
+ static xyzd50ToDisplayP3Linear(x: number, y: number, z: number): [number, number, number] {
318
+ const xyzInput = new Vector3([x, y, z]);
319
+ const rgbResult = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
320
+ return rgbResult.values;
321
+ }
322
+
311
323
  static proPhotoToXyzd50(r: number, g: number, b: number): [number, number, number] {
312
324
  const [mappedR, mappedG, mappedB] = applyTransferFns(NAMED_TRANSFER_FN.proPhotoRGB, r, g, b);
313
325
  const rgbInput = new Vector3([mappedR, mappedG, mappedB]);
@@ -30,7 +30,8 @@ export class Console extends ObjectWrapper<EventTypes> {
30
30
  * @param show whether to show the Console panel (if it's not already shown).
31
31
  * @param source the message source.
32
32
  */
33
- addMessage(text: string, level = MessageLevel.INFO, show = false, source?: FrontendMessageSource): void {
33
+ addMessage(text: string, level: MessageLevel = MessageLevel.INFO, show = false,
34
+ source?: FrontendMessageSource): void {
34
35
  const message = new Message(text, level, Date.now(), show, source);
35
36
  this.#messages.push(message);
36
37
  this.dispatchEventToListeners(Events.MESSAGE_ADDED, message);
@@ -119,8 +119,8 @@ export type EventMixinBase = {
119
119
  dispatchDOMEvent ? (event: Event) : void,
120
120
  }&object;
121
121
 
122
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
123
- export function eventMixin<Events, Base extends Platform.Constructor.Constructor<EventMixinBase>>(base: Base) {
122
+ export function eventMixin<Events, Base extends Platform.Constructor.Constructor<EventMixinBase>>(base: Base):
123
+ Platform.Constructor.Constructor<EventTarget<Events>>&Base {
124
124
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
125
125
  console.assert(base as any !== HTMLElement);
126
126
  return class EventHandling extends base implements EventTarget<Events> {
@@ -368,9 +368,9 @@ export class ResourceCategory {
368
368
  }
369
369
  }
370
370
 
371
- export const resourceCategories = {
372
- XHR: new ResourceCategory(
373
- 'Fetch and XHR', i18nLazyString(UIStrings.fetchAndXHR), i18n.i18n.lockedLazyString('Fetch/XHR')),
371
+ export const resourceCategories: Record<string, ResourceCategory> = {
372
+ XHR: new ResourceCategory('Fetch and XHR', i18nLazyString(UIStrings.fetchAndXHR),
373
+ i18n.i18n.lockedLazyString('Fetch/XHR')),
374
374
  Document: new ResourceCategory(UIStrings.document, i18nLazyString(UIStrings.document), i18nLazyString(UIStrings.doc)),
375
375
  Stylesheet: new ResourceCategory(UIStrings.css, i18nLazyString(UIStrings.css), i18nLazyString(UIStrings.css)),
376
376
  Script:
@@ -380,11 +380,10 @@ export const resourceCategories = {
380
380
  Media: new ResourceCategory(UIStrings.media, i18nLazyString(UIStrings.media), i18nLazyString(UIStrings.media)),
381
381
  Manifest:
382
382
  new ResourceCategory(UIStrings.manifest, i18nLazyString(UIStrings.manifest), i18nLazyString(UIStrings.manifest)),
383
- Socket: new ResourceCategory(
384
- 'Socket', i18n.i18n.lockedLazyString('WebSocket | WebTransport | DirectSocket'),
385
- i18nLazyString(UIStrings.socketShort)),
386
- Wasm: new ResourceCategory(
387
- UIStrings.webassembly, i18nLazyString(UIStrings.webassembly), i18nLazyString(UIStrings.wasm)),
383
+ Socket: new ResourceCategory('Socket', i18n.i18n.lockedLazyString('WebSocket | WebTransport | DirectSocket'),
384
+ i18nLazyString(UIStrings.socketShort)),
385
+ Wasm: new ResourceCategory(UIStrings.webassembly, i18nLazyString(UIStrings.webassembly),
386
+ i18nLazyString(UIStrings.wasm)),
388
387
  Other: new ResourceCategory(UIStrings.other, i18nLazyString(UIStrings.other), i18nLazyString(UIStrings.other)),
389
388
  };
390
389
 
@@ -394,7 +393,7 @@ export const resourceCategories = {
394
393
  * (for example Wasm that is based on Fetch), additional types are added here.
395
394
  * For these types, make sure to update `fromMimeTypeOverride` to implement the custom logic.
396
395
  */
397
- export const resourceTypes = {
396
+ export const resourceTypes: Record<string, ResourceType> = {
398
397
  Document: new ResourceType('document', i18nLazyString(UIStrings.document), resourceCategories.Document, true),
399
398
  Stylesheet: new ResourceType('stylesheet', i18nLazyString(UIStrings.stylesheet), resourceCategories.Stylesheet, true),
400
399
  Image: new ResourceType('image', i18nLazyString(UIStrings.image), resourceCategories.Image, false),
@@ -416,8 +415,8 @@ export const resourceTypes = {
416
415
  SignedExchange:
417
416
  new ResourceType('signed-exchange', i18nLazyString(UIStrings.signedexchange), resourceCategories.Other, false),
418
417
  Ping: new ResourceType('ping', i18nLazyString(UIStrings.ping), resourceCategories.Other, false),
419
- CSPViolationReport: new ResourceType(
420
- 'csp-violation-report', i18nLazyString(UIStrings.cspviolationreport), resourceCategories.Other, false),
418
+ CSPViolationReport: new ResourceType('csp-violation-report', i18nLazyString(UIStrings.cspviolationreport),
419
+ resourceCategories.Other, false),
421
420
  Other: new ResourceType('other', i18nLazyString(UIStrings.other), resourceCategories.Other, false),
422
421
  Preflight: new ResourceType('preflight', i18nLazyString(UIStrings.preflight), resourceCategories.Other, true),
423
422
  SourceMapScript: new ResourceType('sm-script', i18nLazyString(UIStrings.script), resourceCategories.Script, true),
@@ -432,7 +431,7 @@ const mimeTypeByName = new Map([
432
431
  ]);
433
432
 
434
433
  // clang-format off
435
- export const resourceTypeByExtension = new Map([
434
+ export const resourceTypeByExtension: Map<string, ResourceType> = new Map([
436
435
  ['js', resourceTypes.Script],
437
436
  ['mjs', resourceTypes.Script],
438
437
 
@@ -467,7 +466,7 @@ export const resourceTypeByExtension = new Map([
467
466
  ]);
468
467
  // clang-format on
469
468
 
470
- export const mimeTypeByExtension = new Map([
469
+ export const mimeTypeByExtension: Map<string, string> = new Map([
471
470
  // Web extensions
472
471
  ['js', 'text/javascript'],
473
472
  ['mjs', 'text/javascript'],
@@ -178,7 +178,7 @@ export interface RevealerRegistration<T> {
178
178
  destination?: RevealerDestination;
179
179
  }
180
180
 
181
- export const RevealerDestination = {
181
+ export const RevealerDestination: Record<string, RevealerDestination> = {
182
182
  DEVELOPER_RESOURCES_PANEL: i18nLazyString(UIStrings.developerResourcesPanel),
183
183
  ELEMENTS_PANEL: i18nLazyString(UIStrings.elementsPanel),
184
184
  STYLES_SIDEBAR: i18nLazyString(UIStrings.stylesSidebar),
@@ -110,10 +110,10 @@ export class Settings {
110
110
 
111
111
  readonly #settingRegistrations: SettingRegistration[];
112
112
  readonly #sessionStorage = new SettingsStorage({});
113
- settingNameSet = new Set<string>();
113
+ settingNameSet: Set<string> = new Set<string>();
114
114
  #eventSupport = new ObjectWrapper<GenericEvents>();
115
115
  #registry = new Map<string, Setting<unknown>>();
116
- readonly moduleSettings = new Map<string, Setting<unknown>>();
116
+ readonly moduleSettings: Map<string, Setting<unknown>> = new Map<string, Setting<unknown>>();
117
117
  #logSettingAccess?: (name: string, value: number|string|boolean) => Promise<void>;
118
118
  readonly #console: Console;
119
119
 
@@ -5,8 +5,8 @@
5
5
  import {Trie} from './Trie.js';
6
6
 
7
7
  export class TextDictionary {
8
- readonly words = new Map<string, number>();
9
- readonly index = Trie.newStringTrie();
8
+ readonly words: Map<string, number> = new Map<string, number>();
9
+ readonly index: Trie<string> = Trie.newStringTrie();
10
10
 
11
11
  addWord(word: string): void {
12
12
  let count = this.words.get(word) || 0;
@@ -49,7 +49,7 @@ export class Throttler {
49
49
  this.#process = null;
50
50
  }
51
51
 
52
- async schedule(process: () => (void|Promise<unknown>), scheduling = Scheduling.DEFAULT): Promise<void> {
52
+ async schedule(process: () => (void|Promise<unknown>), scheduling: Scheduling = Scheduling.DEFAULT): Promise<void> {
53
53
  // Deliberately skip previous #process.
54
54
  this.#process = process;
55
55
 
@@ -42,7 +42,7 @@ export enum Events {
42
42
  /* eslint-enable @typescript-eslint/naming-convention */
43
43
  }
44
44
 
45
- export const EventDescriptors = [
45
+ export const EventDescriptors: ReadonlyArray<readonly[Events, readonly string[], boolean?]> = [
46
46
  [Events.AppendedToURL, ['url']],
47
47
  [Events.CanceledSaveURL, ['url']],
48
48
  [Events.ColorThemeChanged, []],
@@ -60,7 +60,7 @@ export const EventDescriptors = [
60
60
  [Events.FileSystemRemoved, ['fileSystemPath']],
61
61
  [Events.FileSystemAdded, ['errorMessage', 'fileSystem']],
62
62
  [Events.FileSystemFilesChangedAddedRemoved, ['changed', 'added', 'removed']],
63
- [Events.IndexingTotalWorkCalculated, , ['requestId', 'fileSystemPath', 'totalWork']],
63
+ [Events.IndexingTotalWorkCalculated, ['requestId', 'fileSystemPath', 'totalWork']],
64
64
  [Events.IndexingWorked, ['requestId', 'fileSystemPath', 'worked']],
65
65
  [Events.IndexingDone, ['requestId', 'fileSystemPath']],
66
66
  [Events.KeyEventUnhandled, ['event']],
@@ -340,121 +340,135 @@ function createDynamicEnumProxy<T extends object>(enumName: string, fallbackEnum
340
340
  }
341
341
 
342
342
  export type Action = Enums.Action;
343
- export const Action = createDynamicEnumProxy<typeof Enums.Action>('Action', Enums.Action);
343
+ export const Action: typeof Enums.Action = createDynamicEnumProxy<typeof Enums.Action>('Action', Enums.Action);
344
344
 
345
345
  export type PanelCodes = Enums.PanelCodes;
346
- export const PanelCodes = createDynamicEnumProxy<typeof Enums.PanelCodes>('PanelCodes', Enums.PanelCodes);
346
+ export const PanelCodes: typeof Enums.PanelCodes =
347
+ createDynamicEnumProxy<typeof Enums.PanelCodes>('PanelCodes', Enums.PanelCodes);
347
348
 
348
349
  export type MediaTypes = Enums.MediaTypes;
349
- export const MediaTypes = createDynamicEnumProxy<typeof Enums.MediaTypes>('MediaTypes', Enums.MediaTypes);
350
+ export const MediaTypes: typeof Enums.MediaTypes =
351
+ createDynamicEnumProxy<typeof Enums.MediaTypes>('MediaTypes', Enums.MediaTypes);
350
352
 
351
353
  export type KeybindSetSettings = Enums.KeybindSetSettings;
352
- export const KeybindSetSettings =
354
+ export const KeybindSetSettings: typeof Enums.KeybindSetSettings =
353
355
  createDynamicEnumProxy<typeof Enums.KeybindSetSettings>('KeybindSetSettings', Enums.KeybindSetSettings);
354
356
 
355
357
  export type KeyboardShortcutAction = Enums.KeyboardShortcutAction;
356
- export const KeyboardShortcutAction =
358
+ export const KeyboardShortcutAction: typeof Enums.KeyboardShortcutAction =
357
359
  createDynamicEnumProxy<typeof Enums.KeyboardShortcutAction>('KeyboardShortcutAction', Enums.KeyboardShortcutAction);
358
360
 
359
361
  export type IssueOpener = Enums.IssueOpener;
360
- export const IssueOpener = createDynamicEnumProxy<typeof Enums.IssueOpener>('IssueOpener', Enums.IssueOpener);
362
+ export const IssueOpener: typeof Enums.IssueOpener =
363
+ createDynamicEnumProxy<typeof Enums.IssueOpener>('IssueOpener', Enums.IssueOpener);
361
364
 
362
365
  export type DevtoolsExperiments = Enums.DevtoolsExperiments;
363
- export const DevtoolsExperiments =
366
+ export const DevtoolsExperiments: typeof Enums.DevtoolsExperiments =
364
367
  createDynamicEnumProxy<typeof Enums.DevtoolsExperiments>('DevtoolsExperiments', Enums.DevtoolsExperiments);
365
368
 
366
369
  export type IssueExpanded = Enums.IssueExpanded;
367
- export const IssueExpanded = createDynamicEnumProxy<typeof Enums.IssueExpanded>('IssueExpanded', Enums.IssueExpanded);
370
+ export const IssueExpanded: typeof Enums.IssueExpanded =
371
+ createDynamicEnumProxy<typeof Enums.IssueExpanded>('IssueExpanded', Enums.IssueExpanded);
368
372
 
369
373
  export type IssueResourceOpened = Enums.IssueResourceOpened;
370
- export const IssueResourceOpened =
374
+ export const IssueResourceOpened: typeof Enums.IssueResourceOpened =
371
375
  createDynamicEnumProxy<typeof Enums.IssueResourceOpened>('IssueResourceOpened', Enums.IssueResourceOpened);
372
376
 
373
377
  export type IssueCreated = Enums.IssueCreated;
374
- export const IssueCreated = createDynamicEnumProxy<typeof Enums.IssueCreated>('IssueCreated', Enums.IssueCreated);
378
+ export const IssueCreated: typeof Enums.IssueCreated =
379
+ createDynamicEnumProxy<typeof Enums.IssueCreated>('IssueCreated', Enums.IssueCreated);
375
380
 
376
381
  export type DeveloperResourceLoaded = Enums.DeveloperResourceLoaded;
377
- export const DeveloperResourceLoaded = createDynamicEnumProxy<typeof Enums.DeveloperResourceLoaded>(
378
- 'DeveloperResourceLoaded', Enums.DeveloperResourceLoaded);
382
+ export const DeveloperResourceLoaded: typeof Enums.DeveloperResourceLoaded =
383
+ createDynamicEnumProxy<typeof Enums.DeveloperResourceLoaded>('DeveloperResourceLoaded',
384
+ Enums.DeveloperResourceLoaded);
379
385
 
380
386
  export type DeveloperResourceScheme = Enums.DeveloperResourceScheme;
381
- export const DeveloperResourceScheme = createDynamicEnumProxy<typeof Enums.DeveloperResourceScheme>(
382
- 'DeveloperResourceScheme', Enums.DeveloperResourceScheme);
387
+ export const DeveloperResourceScheme: typeof Enums.DeveloperResourceScheme =
388
+ createDynamicEnumProxy<typeof Enums.DeveloperResourceScheme>('DeveloperResourceScheme',
389
+ Enums.DeveloperResourceScheme);
383
390
 
384
391
  export type Language = Enums.Language;
385
- export const Language = createDynamicEnumProxy<typeof Enums.Language>('Language', Enums.Language);
392
+ export const Language: typeof Enums.Language =
393
+ createDynamicEnumProxy<typeof Enums.Language>('Language', Enums.Language);
386
394
 
387
395
  export type SyncSetting = Enums.SyncSetting;
388
- export const SyncSetting = createDynamicEnumProxy<typeof Enums.SyncSetting>('SyncSetting', Enums.SyncSetting);
396
+ export const SyncSetting: typeof Enums.SyncSetting =
397
+ createDynamicEnumProxy<typeof Enums.SyncSetting>('SyncSetting', Enums.SyncSetting);
389
398
 
390
399
  export type RecordingToggled = Enums.RecordingToggled;
391
- export const RecordingToggled =
400
+ export const RecordingToggled: typeof Enums.RecordingToggled =
392
401
  createDynamicEnumProxy<typeof Enums.RecordingToggled>('RecordingToggled', Enums.RecordingToggled);
393
402
 
394
403
  export type RecordingAssertion = Enums.RecordingAssertion;
395
- export const RecordingAssertion =
404
+ export const RecordingAssertion: typeof Enums.RecordingAssertion =
396
405
  createDynamicEnumProxy<typeof Enums.RecordingAssertion>('RecordingAssertion', Enums.RecordingAssertion);
397
406
 
398
407
  export type RecordingReplayFinished = Enums.RecordingReplayFinished;
399
- export const RecordingReplayFinished = createDynamicEnumProxy<typeof Enums.RecordingReplayFinished>(
400
- 'RecordingReplayFinished', Enums.RecordingReplayFinished);
408
+ export const RecordingReplayFinished: typeof Enums.RecordingReplayFinished =
409
+ createDynamicEnumProxy<typeof Enums.RecordingReplayFinished>('RecordingReplayFinished',
410
+ Enums.RecordingReplayFinished);
401
411
 
402
412
  export type RecordingReplaySpeed = Enums.RecordingReplaySpeed;
403
- export const RecordingReplaySpeed =
413
+ export const RecordingReplaySpeed: typeof Enums.RecordingReplaySpeed =
404
414
  createDynamicEnumProxy<typeof Enums.RecordingReplaySpeed>('RecordingReplaySpeed', Enums.RecordingReplaySpeed);
405
415
 
406
416
  export type RecordingReplayStarted = Enums.RecordingReplayStarted;
407
- export const RecordingReplayStarted =
417
+ export const RecordingReplayStarted: typeof Enums.RecordingReplayStarted =
408
418
  createDynamicEnumProxy<typeof Enums.RecordingReplayStarted>('RecordingReplayStarted', Enums.RecordingReplayStarted);
409
419
 
410
420
  export type RecordingEdited = Enums.RecordingEdited;
411
- export const RecordingEdited =
421
+ export const RecordingEdited: typeof Enums.RecordingEdited =
412
422
  createDynamicEnumProxy<typeof Enums.RecordingEdited>('RecordingEdited', Enums.RecordingEdited);
413
423
 
414
424
  export type RecordingExported = Enums.RecordingExported;
415
- export const RecordingExported =
425
+ export const RecordingExported: typeof Enums.RecordingExported =
416
426
  createDynamicEnumProxy<typeof Enums.RecordingExported>('RecordingExported', Enums.RecordingExported);
417
427
 
418
428
  export type RecordingCodeToggled = Enums.RecordingCodeToggled;
419
- export const RecordingCodeToggled =
429
+ export const RecordingCodeToggled: typeof Enums.RecordingCodeToggled =
420
430
  createDynamicEnumProxy<typeof Enums.RecordingCodeToggled>('RecordingCodeToggled', Enums.RecordingCodeToggled);
421
431
 
422
432
  export type RecordingCopiedToClipboard = Enums.RecordingCopiedToClipboard;
423
- export const RecordingCopiedToClipboard = createDynamicEnumProxy<typeof Enums.RecordingCopiedToClipboard>(
424
- 'RecordingCopiedToClipboard', Enums.RecordingCopiedToClipboard);
433
+ export const RecordingCopiedToClipboard: typeof Enums.RecordingCopiedToClipboard =
434
+ createDynamicEnumProxy<typeof Enums.RecordingCopiedToClipboard>('RecordingCopiedToClipboard',
435
+ Enums.RecordingCopiedToClipboard);
425
436
 
426
437
  export type ManifestSectionCodes = Enums.ManifestSectionCodes;
427
- export const ManifestSectionCodes =
438
+ export const ManifestSectionCodes: typeof Enums.ManifestSectionCodes =
428
439
  createDynamicEnumProxy<typeof Enums.ManifestSectionCodes>('ManifestSectionCodes', Enums.ManifestSectionCodes);
429
440
 
430
441
  export type LighthouseModeRun = Enums.LighthouseModeRun;
431
- export const LighthouseModeRun =
442
+ export const LighthouseModeRun: typeof Enums.LighthouseModeRun =
432
443
  createDynamicEnumProxy<typeof Enums.LighthouseModeRun>('LighthouseModeRun', Enums.LighthouseModeRun);
433
444
 
434
445
  export type LighthouseCategoryUsed = Enums.LighthouseCategoryUsed;
435
- export const LighthouseCategoryUsed =
446
+ export const LighthouseCategoryUsed: typeof Enums.LighthouseCategoryUsed =
436
447
  createDynamicEnumProxy<typeof Enums.LighthouseCategoryUsed>('LighthouseCategoryUsed', Enums.LighthouseCategoryUsed);
437
448
 
438
449
  export type SwatchType = Enums.SwatchType;
439
- export const SwatchType = createDynamicEnumProxy<typeof Enums.SwatchType>('SwatchType', Enums.SwatchType);
450
+ export const SwatchType: typeof Enums.SwatchType =
451
+ createDynamicEnumProxy<typeof Enums.SwatchType>('SwatchType', Enums.SwatchType);
440
452
 
441
453
  export type BadgeType = Enums.BadgeType;
442
- export const BadgeType = createDynamicEnumProxy<typeof Enums.BadgeType>('BadgeType', Enums.BadgeType);
454
+ export const BadgeType: typeof Enums.BadgeType =
455
+ createDynamicEnumProxy<typeof Enums.BadgeType>('BadgeType', Enums.BadgeType);
443
456
 
444
457
  export type AnimationsPlaybackRate = Enums.AnimationsPlaybackRate;
445
- export const AnimationsPlaybackRate =
458
+ export const AnimationsPlaybackRate: typeof Enums.AnimationsPlaybackRate =
446
459
  createDynamicEnumProxy<typeof Enums.AnimationsPlaybackRate>('AnimationsPlaybackRate', Enums.AnimationsPlaybackRate);
447
460
 
448
461
  export type TimelineNavigationSetting = Enums.TimelineNavigationSetting;
449
- export const TimelineNavigationSetting = createDynamicEnumProxy<typeof Enums.TimelineNavigationSetting>(
450
- 'TimelineNavigationSetting', Enums.TimelineNavigationSetting);
462
+ export const TimelineNavigationSetting: typeof Enums.TimelineNavigationSetting =
463
+ createDynamicEnumProxy<typeof Enums.TimelineNavigationSetting>('TimelineNavigationSetting',
464
+ Enums.TimelineNavigationSetting);
451
465
 
452
466
  export type BuiltInAiAvailability = Enums.BuiltInAiAvailability;
453
- export const BuiltInAiAvailability =
467
+ export const BuiltInAiAvailability: typeof Enums.BuiltInAiAvailability =
454
468
  createDynamicEnumProxy<typeof Enums.BuiltInAiAvailability>('BuiltInAiAvailability', Enums.BuiltInAiAvailability);
455
469
 
456
470
  export type ResendRequestType = Enums.ResendRequestType;
457
- export const ResendRequestType =
471
+ export const ResendRequestType: typeof Enums.ResendRequestType =
458
472
  createDynamicEnumProxy<typeof Enums.ResendRequestType>('ResendRequestType', Enums.ResendRequestType);
459
473
 
460
474
  const resendRequestTypeMap = new Map<Common.ResourceType.ResourceType, keyof typeof Enums.ResendRequestType>([
@@ -28,4 +28,4 @@ export {
28
28
  UserMetrics,
29
29
  };
30
30
 
31
- export const userMetrics = new UserMetrics.UserMetrics();
31
+ export const userMetrics: UserMetrics.UserMetrics = new UserMetrics.UserMetrics();
@@ -67,7 +67,7 @@ export async function fetchAndRegisterLocaleData(
67
67
  locale: Intl.UnicodeBCP47LocaleIdentifier,
68
68
  // Type issue with universal types.
69
69
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
70
- location = (globalThis as any).location?.toString() ?? ''): Promise<void> {
70
+ location: string = (globalThis as any).location?.toString() ?? ''): Promise<void> {
71
71
  const localeDataTextPromise =
72
72
  fetch(getLocaleFetchUrl(locale, location)).then(result => result.json()) as Promise<I18n.I18n.LocalizedMessages>;
73
73
  const timeoutPromise = new Promise<never>(
@@ -6,14 +6,14 @@ import type * as Api from './api/api.js';
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8
8
  // @ts-ignore 'process' is not available when type-checking against browser types.
9
- export const IS_NODE = typeof (process as unknown) !== 'undefined' && process.versions?.node !== null;
9
+ export const IS_NODE: boolean = typeof (process as unknown) !== 'undefined' && process.versions?.node !== null;
10
10
 
11
- export const IS_BROWSER =
11
+ export const IS_BROWSER: boolean =
12
12
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
13
13
  // @ts-ignore 'window' is not available when type-checking against node.js types.
14
14
  typeof window !== 'undefined' || (typeof self !== 'undefined' && typeof self.postMessage === 'function');
15
15
 
16
- export const HOST_RUNTIME = await (async(): Promise<Api.HostRuntime.HostRuntime> => {
16
+ export const HOST_RUNTIME: Api.HostRuntime.HostRuntime = await (async(): Promise<Api.HostRuntime.HostRuntime> => {
17
17
  // Check IS_BROWSER first: in some embedder environments, both IS_NODE
18
18
  // and IS_BROWSER can be true because `process` is available in renderer
19
19
  // contexts. The browser runtime is always correct when browser APIs
@@ -18,7 +18,7 @@ export const ENTER_KEY = 'Enter';
18
18
  export const ESCAPE_KEY = 'Escape';
19
19
  export const TAB_KEY = 'Tab';
20
20
 
21
- export const ARROW_KEYS = new Set<ArrowKey>([
21
+ export const ARROW_KEYS: Set<ArrowKey> = new Set<ArrowKey>([
22
22
  ArrowKey.UP,
23
23
  ArrowKey.DOWN,
24
24
  ArrowKey.LEFT,
@@ -65,10 +65,11 @@ type ReadonlyEventParameterNames = ReadonlyMap<QualifiedName, string[]>;
65
65
  type CommandParameter = InspectorBackendCommands.CommandParameter;
66
66
 
67
67
  export class InspectorBackend implements InspectorBackendCommands.InspectorBackendAPI {
68
- readonly agentPrototypes = new Map<ProtocolDomainName, AgentPrototype>();
69
- #eventParameterNamesForDomain = new Map<ProtocolDomainName, EventParameterNames>();
70
- readonly typeMap = new Map<QualifiedName, CommandParameter[]>();
71
- readonly enumMap = new Map<QualifiedName, Record<string, string>>();
68
+ readonly agentPrototypes: Map<ProtocolDomainName, AgentPrototype> = new Map<ProtocolDomainName, AgentPrototype>();
69
+ #eventParameterNamesForDomain: Map<ProtocolDomainName, EventParameterNames> =
70
+ new Map<ProtocolDomainName, EventParameterNames>();
71
+ readonly typeMap: Map<QualifiedName, CommandParameter[]> = new Map<QualifiedName, CommandParameter[]>();
72
+ readonly enumMap: Map<QualifiedName, Record<string, string>> = new Map<QualifiedName, Record<string, string>>();
72
73
 
73
74
  constructor() {
74
75
  // Create the global here because registering commands will involve putting
@@ -673,7 +674,7 @@ const IGNORED_ERRORS = new Set<CDPErrorStatus>([
673
674
  * The reasons this is done is so that on the prototypes we can install the implementations
674
675
  * of the invoke_enable, etc. methods that the front-end uses.
675
676
  */
676
- class AgentPrototype {
677
+ export class AgentPrototype {
677
678
  description = '';
678
679
  metadata: Record<string, {parameters: CommandParameter[], description: string, replyArgs: string[]}>;
679
680
  readonly domain: string;
@@ -773,4 +774,4 @@ class DispatcherManager<Domain extends ProtocolDomainName> {
773
774
  }
774
775
  }
775
776
 
776
- export const inspectorBackend = new InspectorBackend();
777
+ export const inspectorBackend: InspectorBackend = new InspectorBackend();
@@ -323,7 +323,7 @@ export class Experiment {
323
323
  }
324
324
 
325
325
  /** This must be constructed after the query parameters have been parsed. **/
326
- export const experiments = new ExperimentsSupport();
326
+ export const experiments: ExperimentsSupport = new ExperimentsSupport();
327
327
 
328
328
  export enum GenAiEnterprisePolicyValue {
329
329
  ALLOW = 0,
@@ -632,6 +632,8 @@ export const hostConfig: Platform.TypeScriptUtilities.RecursiveReadonly<HostConf
632
632
  */
633
633
  export type Condition = (config?: HostConfig) => boolean;
634
634
 
635
- export const conditions = {
635
+ export const conditions: {
636
+ canDock: Condition,
637
+ } = {
636
638
  canDock: () => Boolean(Runtime.queryParam('can_dock')),
637
639
  };
@@ -287,7 +287,7 @@ export class AnimationModel extends SDKModel<EventTypes> {
287
287
  readonly runtimeModel: RuntimeModel;
288
288
  readonly agent: ProtocolProxyApi.AnimationApi;
289
289
  #animationsById = new Map<string, AnimationImpl>();
290
- readonly animationGroups = new Map<string, AnimationGroup>();
290
+ readonly animationGroups: Map<string, AnimationGroup> = new Map<string, AnimationGroup>();
291
291
  #pendingAnimations = new Set<string>();
292
292
  playbackRate = 1;
293
293
  #flushPendingAnimations: () => void;