chrome-devtools-frontend 1.0.1538523 → 1.0.1539728

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 (245) hide show
  1. package/eslint.config.mjs +1 -1
  2. package/front_end/core/protocol_client/CDPConnection.ts +12 -10
  3. package/front_end/core/protocol_client/InspectorBackend.ts +74 -101
  4. package/front_end/core/protocol_client/NodeURL.ts +1 -3
  5. package/front_end/core/sdk/ChildTargetManager.ts +5 -41
  6. package/front_end/core/sdk/Connections.ts +9 -58
  7. package/front_end/core/sdk/DOMModel.ts +1 -0
  8. package/front_end/core/sdk/RehydratingConnection.ts +1 -1
  9. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +15 -26
  10. package/front_end/entrypoints/node_app/{NodeConnectionsPanel.ts → app/NodeConnectionsPanel.ts} +8 -8
  11. package/front_end/entrypoints/node_app/{NodeMain.ts → app/NodeMain.ts} +11 -11
  12. package/front_end/entrypoints/node_app/app/app.ts +6 -0
  13. package/front_end/entrypoints/node_app/node_app.ts +4 -2
  14. package/front_end/generated/{InspectorBackendCommands.js → InspectorBackendCommands.ts} +16 -34
  15. package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +18 -3
  16. package/front_end/models/trace/types/TraceEvents.ts +19 -0
  17. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +49 -26
  18. package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
  19. package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
  20. package/front_end/panels/ai_assistance/components/ChatView.ts +1 -134
  21. package/front_end/panels/ai_assistance/components/DisabledWidget.ts +170 -0
  22. package/front_end/panels/ai_assistance/components/ExploreWidget.ts +4 -4
  23. package/front_end/panels/ai_assistance/components/chatView.css +0 -31
  24. package/front_end/panels/ai_assistance/components/disabledWidget.css +45 -0
  25. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  26. package/front_end/panels/application/components/FrameDetailsView.ts +1 -1
  27. package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
  28. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
  29. package/front_end/panels/elements/ElementsTreeElement.ts +123 -95
  30. package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
  31. package/front_end/panels/elements/NodeStackTraceWidget.ts +8 -2
  32. package/front_end/panels/explain/components/ConsoleInsight.ts +0 -1
  33. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +57 -33
  34. package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +1 -1
  35. package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +12 -5
  36. package/front_end/panels/network/RequestInitiatorView.ts +1 -1
  37. package/front_end/panels/network/components/EditableSpan.ts +1 -1
  38. package/front_end/panels/recorder/components/StepView.ts +1 -1
  39. package/front_end/panels/recorder/models/RecordingPlayer.ts +8 -7
  40. package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +4 -4
  41. package/front_end/panels/timeline/TimelineFlameChartView.ts +10 -10
  42. package/front_end/panels/timeline/TimelinePanel.ts +3 -3
  43. package/front_end/panels/timeline/TimelineUIUtils.ts +21 -24
  44. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +3 -2
  45. package/front_end/panels/utils/utils.ts +4 -2
  46. package/front_end/services/puppeteer/PuppeteerConnection.ts +56 -53
  47. package/front_end/third_party/puppeteer/README.chromium +2 -2
  48. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +3 -1
  49. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
  50. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +4 -2
  51. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
  52. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +3 -1
  53. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
  54. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
  55. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
  56. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -1
  57. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
  58. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
  59. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +4 -3
  60. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
  61. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +1 -1
  62. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  63. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +1 -1
  64. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
  65. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts +2 -1
  66. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
  67. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +3 -2
  68. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
  69. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +26 -9
  71. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  72. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
  73. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  74. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +11 -0
  75. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  77. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +9 -2
  78. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
  79. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +4 -2
  81. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
  82. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +1 -1
  83. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +2 -2
  85. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
  86. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.d.ts.map +1 -1
  87. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js +2 -1
  88. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js.map +1 -1
  89. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +6 -1
  90. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
  91. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +11 -2
  92. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
  93. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +2 -0
  94. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
  95. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +4 -3
  96. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
  97. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +7 -0
  98. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  99. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  100. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +4 -0
  101. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  102. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +10 -4
  103. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
  104. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  105. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  106. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  107. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +9 -3
  108. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +37 -18
  109. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +3 -1
  110. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
  111. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +4 -2
  112. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
  113. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +3 -1
  114. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
  115. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
  116. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
  117. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js +1 -1
  118. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js.map +1 -1
  119. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
  120. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +4 -3
  121. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
  122. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +1 -1
  123. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
  124. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +1 -1
  125. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
  126. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts +2 -1
  127. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
  128. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +3 -2
  129. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
  130. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  131. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +26 -9
  132. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  133. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +1 -0
  134. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
  135. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +11 -0
  136. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
  137. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
  138. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +9 -2
  139. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
  140. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
  141. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +4 -2
  142. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
  143. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +1 -1
  144. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
  145. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +2 -2
  146. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
  147. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.d.ts.map +1 -1
  148. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js +2 -1
  149. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js.map +1 -1
  150. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +6 -1
  151. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
  152. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +11 -2
  153. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
  154. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +2 -0
  155. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
  156. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +4 -3
  157. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
  158. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +7 -0
  159. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
  160. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +4 -0
  161. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
  162. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +10 -4
  163. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
  164. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  165. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  166. package/front_end/third_party/puppeteer/package/lib/types.d.ts +9 -3
  167. package/front_end/third_party/puppeteer/package/package.json +3 -3
  168. package/front_end/third_party/puppeteer/package/src/api/Browser.ts +4 -2
  169. package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +3 -1
  170. package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +1 -0
  171. package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +8 -1
  172. package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +1 -1
  173. package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +4 -1
  174. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +34 -10
  175. package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -0
  176. package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +8 -2
  177. package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -0
  178. package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
  179. package/front_end/third_party/puppeteer/package/src/cdp/CdpSession.ts +2 -1
  180. package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -1
  181. package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +7 -5
  182. package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +8 -0
  183. package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +22 -1
  184. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  185. package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
  186. package/front_end/ui/components/switch/Switch.docs.ts +38 -0
  187. package/front_end/ui/components/tooltips/Tooltip.ts +69 -45
  188. package/front_end/ui/legacy/Slider.docs.ts +49 -0
  189. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +77 -5
  190. package/front_end/ui/legacy/components/utils/Linkifier.ts +62 -3
  191. package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
  192. package/package.json +1 -1
  193. package/front_end/third_party/puppeteer/package/src/templates/version.ts.tmpl +0 -4
  194. package/front_end/ui/components/docs/color_swatch/basic.html +0 -32
  195. package/front_end/ui/components/docs/color_swatch/basic.ts +0 -38
  196. package/front_end/ui/components/docs/color_swatch/change-color.html +0 -24
  197. package/front_end/ui/components/docs/color_swatch/change-color.ts +0 -28
  198. package/front_end/ui/components/docs/computed_style_property/basic.html +0 -25
  199. package/front_end/ui/components/docs/computed_style_property/basic.ts +0 -19
  200. package/front_end/ui/components/docs/computed_style_property/traceable.html +0 -25
  201. package/front_end/ui/components/docs/computed_style_property/traceable.ts +0 -16
  202. package/front_end/ui/components/docs/computed_style_trace/basic.html +0 -25
  203. package/front_end/ui/components/docs/computed_style_trace/basic.ts +0 -24
  204. package/front_end/ui/components/docs/console_insight/basic.html +0 -28
  205. package/front_end/ui/components/docs/console_insight/basic.ts +0 -103
  206. package/front_end/ui/components/docs/console_insight/error.html +0 -28
  207. package/front_end/ui/components/docs/console_insight/error.ts +0 -33
  208. package/front_end/ui/components/docs/console_insight/loading.html +0 -28
  209. package/front_end/ui/components/docs/console_insight/loading.ts +0 -47
  210. package/front_end/ui/components/docs/elements_breadcrumbs/basic.html +0 -43
  211. package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +0 -54
  212. package/front_end/ui/components/docs/elements_breadcrumbs/helpers.ts +0 -29
  213. package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.html +0 -38
  214. package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +0 -90
  215. package/front_end/ui/components/docs/elements_breadcrumbs/scroll.html +0 -29
  216. package/front_end/ui/components/docs/elements_breadcrumbs/scroll.ts +0 -62
  217. package/front_end/ui/components/docs/icon_button/basic.html +0 -34
  218. package/front_end/ui/components/docs/icon_button/basic.ts +0 -67
  219. package/front_end/ui/components/docs/issue_counter/basic.html +0 -35
  220. package/front_end/ui/components/docs/issue_counter/basic.ts +0 -34
  221. package/front_end/ui/components/docs/issue_link_icon/basic.html +0 -31
  222. package/front_end/ui/components/docs/issue_link_icon/basic.ts +0 -26
  223. package/front_end/ui/components/docs/linear_memory_inspector/basic.html +0 -26
  224. package/front_end/ui/components/docs/linear_memory_inspector/basic.ts +0 -44
  225. package/front_end/ui/components/docs/menu/basic.html +0 -28
  226. package/front_end/ui/components/docs/menu/basic.ts +0 -66
  227. package/front_end/ui/components/docs/recorder_control_button/basic.html +0 -20
  228. package/front_end/ui/components/docs/recorder_control_button/basic.ts +0 -15
  229. package/front_end/ui/components/docs/recorder_recording_list_view/basic.html +0 -20
  230. package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +0 -26
  231. package/front_end/ui/components/docs/recorder_select_button/basic.html +0 -20
  232. package/front_end/ui/components/docs/recorder_select_button/basic.ts +0 -81
  233. package/front_end/ui/components/docs/recorder_split_view/basic.html +0 -17
  234. package/front_end/ui/components/docs/recorder_split_view/basic.ts +0 -22
  235. package/front_end/ui/components/docs/request_link_icon/basic.html +0 -31
  236. package/front_end/ui/components/docs/request_link_icon/basic.ts +0 -21
  237. package/front_end/ui/components/docs/slider/basic.ts +0 -62
  238. package/front_end/ui/components/docs/style_property_editor/flex.html +0 -21
  239. package/front_end/ui/components/docs/style_property_editor/flex.ts +0 -52
  240. package/front_end/ui/components/docs/style_property_editor/grid.html +0 -22
  241. package/front_end/ui/components/docs/style_property_editor/grid.ts +0 -50
  242. package/front_end/ui/components/docs/style_property_editor/masonry.html +0 -21
  243. package/front_end/ui/components/docs/style_property_editor/masonry.ts +0 -50
  244. package/front_end/ui/components/docs/switch/basic.ts +0 -51
  245. /package/front_end/entrypoints/node_app/{nodeConnectionsPanel.css → app/nodeConnectionsPanel.css} +0 -0
@@ -1,20 +0,0 @@
1
- <!--
2
- Copyright 2023 The Chromium Authors
3
- Use of this source code is governed by a BSD-style license that can be
4
- found in the LICENSE file.
5
- -->
6
- <!DOCTYPE html>
7
- <html>
8
-
9
- <head>
10
- <meta charset="UTF-8" />
11
- <meta name="viewport" content="width=device-width" />
12
- <title>Recorder: select button</title>
13
- </head>
14
-
15
- <body>
16
- <div id="container"></div>
17
- <script src="./basic.js" type="module"></script>
18
- </body>
19
-
20
- </html>
@@ -1,81 +0,0 @@
1
- // Copyright 2023 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as ComponentHelpers from '../../../../../front_end/ui/components/helpers/helpers.js';
6
- import * as Lit from '../../../../../front_end/ui/lit/lit.js';
7
- import * as RecorderComponents from '../../../../panels/recorder/components/components.js';
8
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
9
-
10
- const {html} = Lit;
11
-
12
- await ComponentHelpers.ComponentServerSetup.setup();
13
- await FrontendHelpers.initializeGlobalVars();
14
-
15
- const container = document.getElementById('container');
16
- const throttlingIconUrl = new URL('../../../../panels/recorder/images/throttling_icon.svg', import.meta.url).toString();
17
- const playIconUrl = new URL('../../../../images/play_icon.svg', import.meta.url).toString();
18
-
19
- const items = [
20
- {
21
- value: 'performance',
22
- label: () => 'Performance panel',
23
- buttonIconUrl: throttlingIconUrl,
24
- },
25
- {
26
- value: 'performance_insights',
27
- label: () => 'Performance insights panel',
28
- buttonIconUrl: throttlingIconUrl,
29
- },
30
- ];
31
-
32
- const replayItems = [
33
- {
34
- value: 'normal',
35
- buttonIconUrl: playIconUrl,
36
- buttonLabel: () => 'Replay',
37
- label: () => 'Normal (Default)',
38
- },
39
- {value: 'slow', buttonIconUrl: playIconUrl, buttonLabel: () => 'Slow replay', label: (): string => 'Slow'},
40
- {
41
- value: 'very_slow',
42
- buttonIconUrl: playIconUrl,
43
- buttonLabel: () => 'Very slow replay',
44
- label: () => 'Very slow',
45
- },
46
- {
47
- value: 'extremely_slow',
48
- buttonIconUrl: playIconUrl,
49
- buttonLabel: () => 'Extremely slow replay',
50
- label: () => 'Extremely slow',
51
- },
52
- ];
53
-
54
- function litRender(template: Lit.TemplateResult): void {
55
- const div = document.createElement('div');
56
- div.style.width = '400px';
57
- div.style.display = 'flex';
58
- div.style.margin = '10px';
59
- div.style.flexDirection = 'row-reverse';
60
- container?.appendChild(div);
61
- Lit.render(template, div);
62
- }
63
-
64
- litRender(html`
65
- <devtools-select-button .items=${items} .value=${items[0].value}></devtools-select-button>`);
66
- litRender(html`
67
- <devtools-select-button .disabled=${true} .items=${items} .value=${items[0].value}>
68
- </devtools-select-button>`);
69
- litRender(html`
70
- <devtools-select-button
71
- .variant=${RecorderComponents.SelectButton.Variant.OUTLINED}
72
- .items=${replayItems}
73
- .value=${replayItems[0].value}>
74
- </devtools-select-button>`);
75
- litRender(html`
76
- <devtools-select-button
77
- .disabled=${true}
78
- .variant=${RecorderComponents.SelectButton.Variant.OUTLINED}
79
- .items=${replayItems}
80
- .value=${replayItems[2].value}>
81
- </devtools-select-button>`);
@@ -1,17 +0,0 @@
1
- <!--
2
- Copyright 2023 The Chromium Authors
3
- Use of this source code is governed by a BSD-style license that can be
4
- found in the LICENSE file.
5
- -->
6
- <!DOCTYPE html>
7
- <html>
8
- <head>
9
- <meta charset="UTF-8" />
10
- <meta name="viewport" content="width=device-width" />
11
- <title>Recorder: Split View</title>
12
- </head>
13
- <body>
14
- <div id="container" style="width: 90vw; height: 90vh;"></div>
15
- <script src="./basic.js" type="module"></script>
16
- </body>
17
- </html>
@@ -1,22 +0,0 @@
1
- // Copyright 2023 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import '../../../../panels/recorder/components/components.js';
6
-
7
- import * as ComponentHelpers from '../../../../../front_end/ui/components/helpers/helpers.js';
8
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
9
-
10
- await ComponentHelpers.ComponentServerSetup.setup();
11
- await FrontendHelpers.initializeGlobalVars();
12
-
13
- (document.getElementById('container') as HTMLElement).innerHTML = `
14
- <devtools-split-view>
15
- <div slot="main" style="padding: 10px;">
16
- Left
17
- </div>
18
- <div slot="sidebar" style="padding: 10px;">
19
- Sidebar
20
- </div>
21
- </devtools-split-view>
22
- `;
@@ -1,31 +0,0 @@
1
- <!--
2
- Copyright 2021 The Chromium Authors
3
- Use of this source code is governed by a BSD-style license that can be
4
- found in the LICENSE file.
5
- -->
6
- <!DOCTYPE html>
7
- <html>
8
-
9
- <head>
10
- <meta charset="UTF-8" />
11
- <meta name="viewport" content="width=device-width" />
12
- <title>Basic Request Link Icon example</title>
13
- <style>
14
- #container {
15
- width: 80%;
16
- border: 1px solid black;
17
- padding: 20px;
18
- height: 300px;
19
- }
20
- </style>
21
- </head>
22
-
23
- <body>
24
- <div id="container">
25
- </div>
26
-
27
- <ul id="events"></ul>
28
- <script type="module" src="./basic.js"></script>
29
- </body>
30
-
31
- </html>
@@ -1,21 +0,0 @@
1
- // Copyright 2021 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
6
- import type * as RequestLinkIconModule from '../../../../ui/components/request_link_icon/request_link_icon.js';
7
- import * as ComponentHelpers from '../../helpers/helpers.js';
8
-
9
- await ComponentHelpers.ComponentServerSetup.setup();
10
- await FrontendHelpers.initializeGlobalVars();
11
-
12
- const RequestLinkIcon: typeof RequestLinkIconModule =
13
- await import('../../../../ui/components/request_link_icon/request_link_icon.js');
14
-
15
- function appendComponent(data: RequestLinkIconModule.RequestLinkIcon.RequestLinkIconData) {
16
- const component = new RequestLinkIcon.RequestLinkIcon.RequestLinkIcon();
17
- component.data = data;
18
- document.getElementById('container')?.appendChild(component);
19
- }
20
-
21
- appendComponent({});
@@ -1,62 +0,0 @@
1
- // Copyright 2024 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as UI from '../../../legacy/legacy.js';
6
- import * as ComponentHelpers from '../../helpers/helpers.js';
7
-
8
- await ComponentHelpers.ComponentServerSetup.setup();
9
- function sliderExample({min, max, tabIndex, disabled}: {
10
- min: number,
11
- max: number,
12
- tabIndex: number,
13
- disabled: boolean,
14
- }): HTMLElement {
15
- const example = document.createElement('div');
16
- example.style.marginTop = '20px';
17
- const minExplanation = document.createElement('div');
18
- const maxExplanation = document.createElement('div');
19
- const valueExplanation = document.createElement('div');
20
- const disabledExplanation = document.createElement('div');
21
- const tabbableExplanation = document.createElement('div');
22
- const component = UI.UIUtils.createSlider(min, max, tabIndex);
23
- component.disabled = disabled;
24
- minExplanation.textContent = `min: ${min}`;
25
- maxExplanation.textContent = `max: ${max}`;
26
- valueExplanation.textContent = `value: ${component.value}`;
27
- disabledExplanation.textContent = `is disabled? ${component.disabled}`;
28
- tabbableExplanation.textContent = `is tabbable? ${component.tabIndex >= 0}`;
29
-
30
- component.addEventListener('change', () => {
31
- valueExplanation.textContent = `value: ${component.value}`;
32
- });
33
- example.appendChild(component);
34
- example.appendChild(minExplanation);
35
- example.appendChild(maxExplanation);
36
- example.appendChild(valueExplanation);
37
- example.appendChild(disabledExplanation);
38
- example.appendChild(tabbableExplanation);
39
- return example;
40
- }
41
-
42
- function init(): void {
43
- const container = document.getElementById('container');
44
- if (!container) {
45
- return;
46
- }
47
-
48
- container.style.padding = '42px 42px';
49
- container.style.margin = '42px 42px';
50
- container.style.border = '1px solid rgb(0 0 0 / 20%)';
51
-
52
- // Basic
53
- container.appendChild(sliderExample({min: 0, max: 100, tabIndex: 0, disabled: false}));
54
-
55
- // Not tab reachable
56
- container.appendChild(sliderExample({min: 0, max: 100, tabIndex: -1, disabled: false}));
57
-
58
- // Disabled
59
- container.appendChild(sliderExample({min: 0, max: 100, tabIndex: 0, disabled: true}));
60
- }
61
-
62
- init();
@@ -1,21 +0,0 @@
1
- <!--
2
- Copyright 2021 The Chromium Authors
3
- Use of this source code is governed by a BSD-style license that can be
4
- found in the LICENSE file.
5
- -->
6
- <!DOCTYPE html>
7
- <head>
8
- <meta charset="UTF-8">
9
- <meta name="viewport" content="width=device-width,initial-scale=1" />
10
- <title>Basic Flexbox Editor example</title>
11
- <style>
12
- .container {
13
- font-size: 12px;
14
- }
15
- </style>
16
- </head>
17
- <body>
18
- <div id="container">
19
- </div>
20
- <script type="module" src="./flex.js"></script>
21
- </body>
@@ -1,52 +0,0 @@
1
- // Copyright 2021 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as Elements from '../../../../panels/elements/components/components.js';
6
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
7
- import * as ComponentHelpers from '../../helpers/helpers.js';
8
-
9
- await ComponentHelpers.ComponentServerSetup.setup();
10
- await FrontendHelpers.initializeGlobalVars();
11
-
12
- const component = new Elements.StylePropertyEditor.FlexboxEditor();
13
-
14
- document.getElementById('container')?.appendChild(component);
15
-
16
- const computedProperties = new Map([
17
- ['flex-direction', 'column'],
18
- ['flex-wrap', 'nowrap'],
19
- ['align-content', 'initial'],
20
- ['justify-content', 'flex-end'],
21
- ['align-items', 'normal'],
22
- ]);
23
-
24
- const originalComputedProperties = new Map(computedProperties);
25
-
26
- const authoredProperties = new Map([
27
- ['flex-direction', 'column'],
28
- ['justify-content', 'flex-end'],
29
- ]);
30
-
31
- component.data = {
32
- computedProperties,
33
- authoredProperties,
34
- };
35
-
36
- component.addEventListener('propertyselected', (event: Elements.StylePropertyEditor.PropertySelectedEvent) => {
37
- authoredProperties.set(event.data.name, event.data.value);
38
- computedProperties.set(event.data.name, event.data.value);
39
- component.data = {
40
- computedProperties,
41
- authoredProperties,
42
- };
43
- });
44
-
45
- component.addEventListener('propertydeselected', (event: Elements.StylePropertyEditor.PropertyDeselectedEvent) => {
46
- authoredProperties.delete(event.data.name);
47
- computedProperties.set(event.data.name, originalComputedProperties.get(event.data.name) as string);
48
- component.data = {
49
- computedProperties,
50
- authoredProperties,
51
- };
52
- });
@@ -1,22 +0,0 @@
1
- <!--
2
- Copyright 2021 The Chromium Authors
3
- Use of this source code is governed by a BSD-style license that can be
4
- found in the LICENSE file.
5
- -->
6
- <!DOCTYPE html>
7
- <head>
8
- <meta charset="UTF-8">
9
- <meta name="viewport" content="width=device-width,initial-scale=1" />
10
- <title>Basic Grid Editor example</title>
11
- <style>
12
- .container {
13
- font-size: 12px;
14
- }
15
- </style>
16
- </head>
17
- <body>
18
- <div id="container">
19
- </div>
20
-
21
- <script type="module" src="./grid.js"></script>
22
- </body>
@@ -1,50 +0,0 @@
1
- // Copyright 2021 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as Elements from '../../../../panels/elements/components/components.js';
6
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
7
- import * as ComponentHelpers from '../../helpers/helpers.js';
8
-
9
- await ComponentHelpers.ComponentServerSetup.setup();
10
- await FrontendHelpers.initializeGlobalVars();
11
-
12
- const component = new Elements.StylePropertyEditor.GridEditor();
13
-
14
- document.getElementById('container')?.appendChild(component);
15
-
16
- const computedProperties = new Map([
17
- ['align-content', 'initial'],
18
- ['justify-content', 'flex-end'],
19
- ['align-items', 'normal'],
20
- ['justify-items', 'normal'],
21
- ]);
22
-
23
- const originalComputedProperties = new Map(computedProperties);
24
-
25
- const authoredProperties = new Map([
26
- ['justify-content', 'flex-end'],
27
- ]);
28
-
29
- component.data = {
30
- computedProperties,
31
- authoredProperties,
32
- };
33
-
34
- component.addEventListener('propertyselected', (event: Elements.StylePropertyEditor.PropertySelectedEvent) => {
35
- authoredProperties.set(event.data.name, event.data.value);
36
- computedProperties.set(event.data.name, event.data.value);
37
- component.data = {
38
- computedProperties,
39
- authoredProperties,
40
- };
41
- });
42
-
43
- component.addEventListener('propertydeselected', (event: Elements.StylePropertyEditor.PropertyDeselectedEvent) => {
44
- authoredProperties.delete(event.data.name);
45
- computedProperties.set(event.data.name, originalComputedProperties.get(event.data.name) as string);
46
- component.data = {
47
- computedProperties,
48
- authoredProperties,
49
- };
50
- });
@@ -1,21 +0,0 @@
1
- <!--
2
- Copyright 2025 The Chromium Authors
3
- Use of this source code is governed by a BSD-style license that can be
4
- found in the LICENSE file.
5
- -->
6
- <!DOCTYPE html>
7
- <head>
8
- <meta charset="UTF-8">
9
- <meta name="viewport" content="width=device-width,initial-scale=1" />
10
- <title>Basic Masonry Editor example</title>
11
- <style>
12
- .container {
13
- font-size: 12px;
14
- }
15
- </style>
16
- </head>
17
- <body>
18
- <div id="container">
19
- </div>
20
- <script type="module" src="./masonry.js"></script>
21
- </body>
@@ -1,50 +0,0 @@
1
- // Copyright 2025 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as Elements from '../../../../panels/elements/components/components.js';
6
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
7
- import * as ComponentHelpers from '../../helpers/helpers.js';
8
-
9
- await ComponentHelpers.ComponentServerSetup.setup();
10
- await FrontendHelpers.initializeGlobalVars();
11
-
12
- const component = new Elements.StylePropertyEditor.MasonryEditor();
13
-
14
- document.getElementById('container')?.appendChild(component);
15
-
16
- const computedProperties = new Map([
17
- ['align-content', 'initial'],
18
- ['justify-content', 'normal'],
19
- ['align-items', 'normal'],
20
- ['justify-items', 'normal'],
21
- ]);
22
-
23
- const originalComputedProperties = new Map(computedProperties);
24
-
25
- const authoredProperties = new Map([
26
- ['justify-content', 'normal'],
27
- ]);
28
-
29
- component.data = {
30
- computedProperties,
31
- authoredProperties,
32
- };
33
-
34
- component.addEventListener('propertyselected', (event: Elements.StylePropertyEditor.PropertySelectedEvent) => {
35
- authoredProperties.set(event.data.name, event.data.value);
36
- computedProperties.set(event.data.name, event.data.value);
37
- component.data = {
38
- computedProperties,
39
- authoredProperties,
40
- };
41
- });
42
-
43
- component.addEventListener('propertydeselected', (event: Elements.StylePropertyEditor.PropertyDeselectedEvent) => {
44
- authoredProperties.delete(event.data.name);
45
- computedProperties.set(event.data.name, originalComputedProperties.get(event.data.name) as string);
46
- component.data = {
47
- computedProperties,
48
- authoredProperties,
49
- };
50
- });
@@ -1,51 +0,0 @@
1
- // Copyright 2024 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as ComponentHelpers from '../../helpers/helpers.js';
6
- import * as Switch from '../../switch/switch.js';
7
-
8
- await ComponentHelpers.ComponentServerSetup.setup();
9
- function switchExample({checked, disabled}: {checked: boolean, disabled: boolean}): HTMLElement {
10
- const example = document.createElement('div');
11
- example.style.marginTop = '20px';
12
- const explanation = document.createElement('div');
13
- const disabledExplanation = document.createElement('div');
14
- const component = new Switch.Switch.Switch();
15
- component.checked = checked;
16
- component.disabled = disabled;
17
- explanation.textContent = `is checked? ${component.checked}`;
18
- disabledExplanation.textContent = `is disabled? ${component.disabled}`;
19
- component.addEventListener(Switch.Switch.SwitchChangeEvent.eventName, ev => {
20
- explanation.textContent = `is checked? ${ev.checked}`;
21
- });
22
- example.appendChild(component);
23
- example.appendChild(explanation);
24
- example.appendChild(disabledExplanation);
25
- return example;
26
- }
27
-
28
- function init(): void {
29
- const container = document.getElementById('container');
30
- if (!container) {
31
- return;
32
- }
33
-
34
- container.style.padding = '42px 42px';
35
- container.style.margin = '42px 42px';
36
- container.style.border = '1px solid rgb(0 0 0 / 20%)';
37
-
38
- // Basic
39
- container.appendChild(switchExample({checked: false, disabled: false}));
40
-
41
- // Already checked
42
- container.appendChild(switchExample({checked: true, disabled: false}));
43
-
44
- // Disabled
45
- container.appendChild(switchExample({checked: false, disabled: true}));
46
-
47
- // Disabled & checked
48
- container.appendChild(switchExample({checked: true, disabled: true}));
49
- }
50
-
51
- init();