chrome-devtools-frontend 1.0.1538310 → 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,90 +0,0 @@
1
- // Copyright 2020 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
- import {makeCrumb} from './helpers.js';
10
-
11
- await ComponentHelpers.ComponentServerSetup.setup();
12
- await FrontendHelpers.initializeGlobalVars();
13
-
14
- const component = new Elements.ElementsBreadcrumbs.ElementsBreadcrumbs();
15
- const bodyCrumb = makeCrumb({
16
- nodeType: Node.ELEMENT_NODE,
17
- id: 1,
18
- nodeName: 'body',
19
- nodeNameNicelyCased: 'body',
20
- attributes: {class: 'body-class1 body-class2'},
21
- });
22
-
23
- const divCrumb = makeCrumb({
24
- nodeType: Node.ELEMENT_NODE,
25
- id: 2,
26
- nodeName: 'div',
27
- nodeNameNicelyCased: 'div',
28
- attributes: {
29
- id: 'test-id',
30
- class: 'wrapper-div',
31
- },
32
- });
33
-
34
- const spanCrumb = makeCrumb({
35
- nodeType: Node.ELEMENT_NODE,
36
- id: 3,
37
- nodeName: 'span',
38
- nodeNameNicelyCased: 'span',
39
- attributes: {
40
- id: 'my-span-has-a-long-id',
41
- },
42
- });
43
-
44
- const strongCrumb = makeCrumb({
45
- nodeType: Node.ELEMENT_NODE,
46
- id: 4,
47
- nodeName: 'strong',
48
- nodeNameNicelyCased: 'strong',
49
- attributes: {
50
- id: 'gotta-be-bold',
51
- },
52
- });
53
-
54
- const emCrumb = makeCrumb({
55
- nodeType: Node.ELEMENT_NODE,
56
- id: 5,
57
- nodeName: 'em',
58
- nodeNameNicelyCased: 'em',
59
- attributes: {id: 'my-em-has-a-long-id', class: 'and-a-very-long-class'},
60
- });
61
-
62
- const crumbs = [emCrumb, strongCrumb, spanCrumb, divCrumb, bodyCrumb];
63
- const crumbsReversed = [...crumbs].reverse();
64
-
65
- const selectedNodeParam = new URLSearchParams(location.search)?.get('selectedCrumbIndex');
66
- const selectedNode = selectedNodeParam ? crumbsReversed[Number(selectedNodeParam)] : bodyCrumb;
67
-
68
- component.data = {
69
- crumbs,
70
- selectedNode,
71
- };
72
- document.getElementById('container')?.appendChild(component);
73
-
74
- const button = component.shadowRoot?.querySelector?.('button.overflow.right');
75
- button?.dispatchEvent(new MouseEvent('click'));
76
- // Each subsequent click is timed out to allow the smooth scroll to finish.
77
- window.setTimeout(() => {
78
- button?.dispatchEvent(new MouseEvent('click'));
79
- window.setTimeout(() => {
80
- button?.dispatchEvent(new MouseEvent('click'));
81
- }, 200);
82
- }, 200);
83
-
84
- const btn = document.querySelector('button');
85
- btn?.addEventListener('click', () => {
86
- component.data = {
87
- crumbs: [emCrumb, strongCrumb, spanCrumb, divCrumb, bodyCrumb],
88
- selectedNode: divCrumb,
89
- };
90
- });
@@ -1,29 +0,0 @@
1
- <!--
2
- Copyright 2020 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>Scrolling breadcrumbs example</title>
12
- <style>
13
- #container {
14
- width: 400px;
15
- border: 1px solid black;
16
- margin: 20px;
17
- }
18
- </style>
19
- </head>
20
- <body>
21
-
22
- <div id="container">
23
-
24
- </div>
25
- <button id="focus-body">Emulate click on body element</button>
26
-
27
- <script type="module" src="./scroll.js"></script>
28
- </body>
29
- </html>
@@ -1,62 +0,0 @@
1
- // Copyright 2020 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 ComponentHelpers from '../../helpers/helpers.js';
7
-
8
- import {makeCrumb} from './helpers.js';
9
-
10
- await ComponentHelpers.ComponentServerSetup.setup();
11
-
12
- const component = new Elements.ElementsBreadcrumbs.ElementsBreadcrumbs();
13
- const bodyCrumb = makeCrumb({
14
- nodeType: Node.ELEMENT_NODE,
15
- nodeName: 'body',
16
- nodeNameNicelyCased: 'body',
17
- attributes: {
18
- class: 'body-class1 body-class2',
19
- },
20
- });
21
-
22
- const divCrumb = makeCrumb({
23
- nodeType: Node.ELEMENT_NODE,
24
- nodeName: 'div',
25
- nodeNameNicelyCased: 'div',
26
- attributes: {
27
- id: 'test-id',
28
- class: 'wrapper-div',
29
- },
30
- });
31
-
32
- const spanCrumb = makeCrumb({
33
- nodeType: Node.ELEMENT_NODE,
34
- nodeName: 'span',
35
- nodeNameNicelyCased: 'span',
36
- attributes: {
37
- id: 'my-span-has-a-long-id',
38
- },
39
- });
40
-
41
- const emCrumb = makeCrumb({
42
- nodeType: Node.ELEMENT_NODE,
43
- nodeName: 'em',
44
- nodeNameNicelyCased: 'em',
45
- attributes: {
46
- id: 'my-em-has-a-long-id',
47
- },
48
- });
49
-
50
- document.getElementById('container')?.appendChild(component);
51
-
52
- component.data = {
53
- crumbs: [emCrumb, spanCrumb, divCrumb, bodyCrumb],
54
- selectedNode: bodyCrumb,
55
- };
56
-
57
- document.getElementById('focus-body')?.addEventListener('click', () => {
58
- component.data = {
59
- crumbs: [bodyCrumb],
60
- selectedNode: bodyCrumb,
61
- };
62
- });
@@ -1,34 +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 Icon Button example</title>
13
- <style>
14
- #container {
15
- width: 80%;
16
- border: 1px solid black;
17
- padding: 20px;
18
- height: 300px;
19
- }
20
- #container > icon-button {
21
- vertical-align: middle;
22
- }
23
- </style>
24
- </head>
25
-
26
- <body>
27
- <div id="container">
28
- </div>
29
-
30
- <ul id="events"></ul>
31
- <script type="module" src="./basic.js"></script>
32
- </body>
33
-
34
- </html>
@@ -1,67 +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 IconButton from '../../icon_button/icon_button.js';
6
-
7
- function appendComponent(data: IconButton.IconButton.IconButtonData) {
8
- const component = new IconButton.IconButton.IconButton();
9
- component.data = data;
10
- document.getElementById('container')?.appendChild(component);
11
- }
12
-
13
- appendComponent({
14
- clickHandler: () => {},
15
- groups: [{iconName: 'review', iconColor: 'var(--icon-default)', text: '1 item'}],
16
- });
17
-
18
- appendComponent({
19
- clickHandler: () => {},
20
- groups: [
21
- {iconName: 'review', iconColor: 'var(--icon-primary)', text: 'Test'},
22
- {iconName: 'warning-filled', iconColor: '', text: '1'},
23
- ],
24
- });
25
-
26
- appendComponent({
27
- clickHandler: () => {},
28
- groups: [
29
- {iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23', iconHeight: '2ex', iconWidth: '2ex'},
30
- {iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
31
- ],
32
- });
33
-
34
- appendComponent({
35
- groups: [
36
- {iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
37
- {iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
38
- ],
39
- });
40
-
41
- appendComponent({
42
- clickHandler: () => {},
43
- groups: [
44
- {iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
45
- {iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
46
- ],
47
- trailingText: 'Issues',
48
- });
49
-
50
- appendComponent({
51
- clickHandler: () => {},
52
- groups: [
53
- {iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
54
- {iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
55
- ],
56
- leadingText: 'Issues:',
57
- });
58
-
59
- appendComponent({
60
- clickHandler: () => {},
61
- groups: [
62
- {iconName: 'issue-exclamation-filled', iconColor: 'yellow', text: '23'},
63
- {iconName: 'issue-text-filled', iconColor: 'blue', text: '1'},
64
- ],
65
- leadingText: 'Issues:',
66
- compact: true,
67
- });
@@ -1,35 +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 Issue Counter example</title>
13
- <style>
14
- #container {
15
- width: 80%;
16
- border: 1px solid black;
17
- padding: 20px;
18
- height: 300px;
19
- }
20
-
21
- #container > devtools-issue-counter {
22
- vertical-align: middle;
23
- }
24
- </style>
25
- </head>
26
-
27
- <body>
28
- <div id="container">
29
- </div>
30
-
31
- <ul id="events"></ul>
32
- <script type="module" src="./basic.js"></script>
33
- </body>
34
-
35
- </html>
@@ -1,34 +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 type * as IssuesManager from '../../../../models/issues_manager/issues_manager.js';
6
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
7
- import type * as IssueCounterModule from '../../../../ui/components/issue_counter/issue_counter.js';
8
- import * as ComponentHelpers from '../../helpers/helpers.js';
9
-
10
- await ComponentHelpers.ComponentServerSetup.setup();
11
- await FrontendHelpers.initializeGlobalVars();
12
-
13
- const IssueCounter: typeof IssueCounterModule =
14
- await import('../../../../ui/components/issue_counter/issue_counter.js');
15
-
16
- function appendComponent(data: IssueCounterModule.IssueCounter.IssueCounterData) {
17
- const component = new IssueCounter.IssueCounter.IssueCounter();
18
- component.data = data;
19
- document.getElementById('container')?.appendChild(component);
20
- }
21
-
22
- const mockIssueManager = {
23
- addEventListener(): void{},
24
- removeEventListener(): void{},
25
- numberOfIssues(): number {
26
- return 1;
27
- },
28
- } as unknown as IssuesManager.IssuesManager.IssuesManager;
29
-
30
- appendComponent({issuesManager: mockIssueManager});
31
-
32
- appendComponent({issuesManager: mockIssueManager, clickHandler: () => {}});
33
-
34
- appendComponent({issuesManager: mockIssueManager, clickHandler: () => {}, compact: true});
@@ -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,26 +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 type * as Protocol from '../../../../generated/protocol.js';
6
- import type * as IssuesManager from '../../../../models/issues_manager/issues_manager.js';
7
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
8
- import type * as IssueCounterModule from '../../../../ui/components/issue_counter/issue_counter.js';
9
- import * as ComponentHelpers from '../../helpers/helpers.js';
10
-
11
- await ComponentHelpers.ComponentServerSetup.setup();
12
- await FrontendHelpers.initializeGlobalVars();
13
-
14
- const IssueLinkIcon: typeof IssueCounterModule =
15
- await import('../../../../ui/components/issue_counter/issue_counter.js');
16
-
17
- function appendComponent(data: IssueCounterModule.IssueLinkIcon.IssueLinkIconData) {
18
- const component = new IssueLinkIcon.IssueLinkIcon.IssueLinkIcon();
19
- component.data = data;
20
- document.getElementById('container')?.appendChild(component);
21
- }
22
-
23
- appendComponent({
24
- issueId: 'fakeid' as Protocol.Audits.IssueId,
25
- issueResolver: {waitFor: () => new Promise(() => {})} as unknown as IssuesManager.IssueResolver.IssueResolver,
26
- });
@@ -1,26 +0,0 @@
1
- <!--
2
- Copyright 2020 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>Linear memory inspector example</title>
12
- <style>
13
- #container {
14
- width: 850px;
15
- height: 400px;
16
- border: 1px solid black;
17
- display: flex;
18
- }
19
- </style>
20
- </head>
21
- <body>
22
- <div id="container">
23
- </div>
24
- <script type="module" src="./basic.js"></script>
25
- </body>
26
- </html>
@@ -1,44 +0,0 @@
1
- // Copyright 2020 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 LinearMemoryInspectorComponents from '../../../../panels/linear_memory_inspector/components/components.js';
6
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
7
- import * as UI from '../../../legacy/legacy.js';
8
- import * as Lit from '../../../lit/lit.js';
9
- import * as ComponentHelpers from '../../helpers/helpers.js';
10
-
11
- await ComponentHelpers.ComponentServerSetup.setup();
12
- await FrontendHelpers.initializeGlobalVars();
13
-
14
- const {render, html} = Lit;
15
- const {widgetConfig} = UI.Widget;
16
-
17
- const array = [];
18
- const string = 'Hello this is a string from the memory buffer!';
19
-
20
- for (let i = 0; i < string.length; ++i) {
21
- array.push(string.charCodeAt(i));
22
- }
23
-
24
- for (let i = -1000; i < 1000; ++i) {
25
- array.push(i);
26
- }
27
-
28
- const memory = new Uint8Array(array);
29
-
30
- const container = document.getElementById('container');
31
- if (container) {
32
- render(
33
- html`
34
- <devtools-widget .widgetConfig=${
35
- widgetConfig(LinearMemoryInspectorComponents.LinearMemoryInspector.LinearMemoryInspector, {
36
- memory,
37
- address: 0,
38
- memoryOffset: 0,
39
- outerMemoryLength: memory.length,
40
- })}>
41
- </devtools-widget>
42
- `,
43
- container);
44
- }
@@ -1,28 +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>Menu example</title>
13
- <style>
14
- #root {
15
- display: flex;
16
- align-items: center;
17
- justify-content: center;
18
- height: 50%;
19
- }
20
- </style>
21
- </head>
22
-
23
- <body>
24
- <div id="root"></div>
25
- <script src="./basic.js" type="module"></script>
26
- </body>
27
-
28
- </html>
@@ -1,66 +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 Menus from '../../../../ui/components/menus/menus.js';
6
-
7
- const menuItems = [
8
- {
9
- name: 'Opt 1',
10
- value: '1',
11
- selected: true,
12
- group: '',
13
- },
14
- {
15
- name: 'Opt 2',
16
- value: '2',
17
- group: '',
18
- },
19
- {
20
- name: 'Opt 3',
21
- value: '3',
22
- group: '',
23
- },
24
- {
25
- name: 'Opt 4',
26
- value: '4',
27
- group: '',
28
- },
29
- ];
30
- const root = document.getElementById('root');
31
- const button = document.createElement('button');
32
- button.innerText = 'Toggle menu';
33
-
34
- const menu = new Menus.Menu.Menu();
35
- menu.origin = button;
36
- menu.open = false;
37
- menu.showDivider = true;
38
-
39
- menuItems.forEach(item => {
40
- const menuItem = new Menus.Menu.MenuItem();
41
- menuItem.value = item.value;
42
- menuItem.selected = Boolean(item.selected);
43
- const itemContent = document.createElement('div');
44
- itemContent.textContent = item.name;
45
- menuItem.appendChild(itemContent);
46
- menu.appendChild(menuItem);
47
- });
48
-
49
- menu.addEventListener('menuitemselected', evt => {
50
- menu.querySelectorAll('devtools-menu-item').forEach(item => {
51
- item.selected = item.value === evt.itemValue;
52
- });
53
- });
54
-
55
- menu.addEventListener('menucloserequest', _evt => {
56
- menu.open = false;
57
- });
58
-
59
- button.addEventListener('click', _menuEvent => {
60
- menu.open = !menu.open;
61
- });
62
-
63
- if (root) {
64
- root.appendChild(menu);
65
- root.appendChild(button);
66
- }
@@ -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: ControlButton</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,15 +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 RecorderComponents from '../../../../panels/recorder/components/components.js';
7
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
8
-
9
- await ComponentHelpers.ComponentServerSetup.setup();
10
- await FrontendHelpers.initializeGlobalVars();
11
-
12
- const component = new RecorderComponents.ControlButton.ControlButton();
13
- component.shape = 'circle';
14
- component.label = 'ControlButton';
15
- document.getElementById('container')?.appendChild(component);
@@ -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: RecordingListView</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,26 +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 RecorderComponents from '../../../../panels/recorder/components/components.js';
7
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
8
-
9
- await ComponentHelpers.ComponentServerSetup.setup();
10
- await FrontendHelpers.initializeGlobalVars();
11
-
12
- const component = new RecorderComponents.RecordingListView.RecordingListView();
13
- component.recordings = [
14
- {
15
- storageName: '1',
16
- name: 'Title 1',
17
- },
18
- {
19
- storageName: '2',
20
- name: 'Title 2',
21
- },
22
- ];
23
- const container = document.getElementById('container');
24
- if (container) {
25
- component.show(container);
26
- }