chrome-devtools-frontend 1.0.1674545 → 1.0.1676824

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 (258) hide show
  1. package/.agents/skills/devtools-ux-writing-refactor/SKILL.md +26 -9
  2. package/WATCHLISTS +0 -4
  3. package/front_end/core/common/ParsedURL.ts +5 -1
  4. package/front_end/core/common/SettingRegistration.ts +29 -8
  5. package/front_end/core/common/Settings.ts +0 -77
  6. package/front_end/core/root/Runtime.ts +4 -5
  7. package/front_end/core/sdk/CSSMetadata.ts +5 -9
  8. package/front_end/core/sdk/CSSPropertyParserMatchers.ts +8 -28
  9. package/front_end/core/sdk/DebuggerModel.ts +50 -30
  10. package/front_end/core/sdk/ResourceTreeModel.ts +20 -1
  11. package/front_end/core/sdk/Script.ts +9 -53
  12. package/front_end/core/sdk/TargetManager.ts +18 -0
  13. package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +213 -23
  14. package/front_end/entrypoints/main/MainImpl.ts +32 -0
  15. package/front_end/foundation/Universe.ts +44 -29
  16. package/front_end/generated/InspectorBackendCommands.ts +3 -1
  17. package/front_end/generated/SupportedCSSProperties.ts +21 -4
  18. package/front_end/generated/protocol-mapping.d.ts +14 -0
  19. package/front_end/generated/protocol-proxy-api.d.ts +10 -0
  20. package/front_end/generated/protocol.ts +35 -0
  21. package/front_end/models/ai_assistance/AiAgent2.ts +11 -0
  22. package/front_end/models/ai_assistance/AiConversation.ts +22 -5
  23. package/front_end/models/ai_assistance/README.md +52 -26
  24. package/front_end/models/ai_assistance/agents/AiAgent.ts +54 -8
  25. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +1 -1
  26. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +15 -192
  27. package/front_end/models/ai_assistance/agents/StorageAgent.ts +8 -87
  28. package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -1
  29. package/front_end/models/ai_assistance/ai_assistance.ts +16 -0
  30. package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +124 -0
  31. package/front_end/models/ai_assistance/contexts/StorageContext.ts +111 -0
  32. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +69 -1
  33. package/front_end/models/ai_assistance/skills/README.md +63 -1
  34. package/front_end/models/ai_assistance/skills/Skill.ts +1 -1
  35. package/front_end/models/ai_assistance/skills/SkillRegistry.ts +4 -0
  36. package/front_end/models/ai_assistance/skills/performance.md +8 -0
  37. package/front_end/models/ai_assistance/skills/sources.md +16 -0
  38. package/front_end/models/ai_assistance/skills/storage.md +31 -0
  39. package/front_end/models/ai_assistance/tools/GetSourceContent.ts +101 -0
  40. package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +83 -0
  41. package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +106 -0
  42. package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +104 -0
  43. package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +81 -0
  44. package/front_end/models/ai_assistance/tools/ListSources.ts +116 -0
  45. package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +90 -0
  46. package/front_end/models/ai_assistance/tools/Tool.ts +22 -1
  47. package/front_end/models/ai_assistance/tools/ToolRegistry.ts +14 -0
  48. package/front_end/models/bindings/CSSWorkspaceBinding.ts +4 -0
  49. package/front_end/models/bindings/CompilerScriptMapping.ts +4 -0
  50. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -0
  51. package/front_end/models/bindings/ResourceScriptMapping.ts +3 -201
  52. package/front_end/models/bindings/SASSSourceMapping.ts +6 -0
  53. package/front_end/models/breakpoints/BreakpointManager.ts +2 -49
  54. package/front_end/models/emulation/DeviceModeModel.ts +60 -71
  55. package/front_end/models/emulation/EmulatedDevices.ts +18 -66
  56. package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +27 -0
  57. package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +10 -2
  58. package/front_end/models/issues_manager/descriptions/connectionAllowlistEmbeddingRequirementNotSatisfied.md +26 -0
  59. package/front_end/models/issues_manager/descriptions/connectionAllowlistIFrameAttributeLoosensEmbeddingRequirement.md +19 -0
  60. package/front_end/models/issues_manager/descriptions/connectionAllowlistInvalidAllowConnectionAllowlistFrom.md +21 -0
  61. package/front_end/models/javascript_metadata/NativeFunctions.js +1 -1
  62. package/front_end/models/persistence/AutomaticFileSystemManager.ts +2 -2
  63. package/front_end/models/persistence/IsolatedFileSystem.ts +7 -8
  64. package/front_end/models/persistence/IsolatedFileSystemManager.ts +22 -31
  65. package/front_end/models/persistence/PlatformFileSystem.ts +1 -1
  66. package/front_end/models/persistence/persistence-meta.ts +9 -9
  67. package/front_end/models/trace/types/TraceEvents.ts +36 -0
  68. package/front_end/models/workspace/FileManager.ts +13 -6
  69. package/front_end/panels/accessibility/ARIAAttributesView.ts +3 -3
  70. package/front_end/panels/accessibility/AccessibilityNodeView.ts +36 -36
  71. package/front_end/panels/accessibility/AccessibilityStrings.ts +168 -168
  72. package/front_end/panels/accessibility/SourceOrderView.ts +7 -7
  73. package/front_end/panels/accessibility/accessibility-meta.ts +2 -2
  74. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +5 -5
  75. package/front_end/panels/ai_assistance/components/AIv2MarkdownRenderer.ts +2 -3
  76. package/front_end/panels/ai_assistance/components/ChatInput.ts +2 -2
  77. package/front_end/panels/ai_assistance/components/ChatMessage.ts +27 -2
  78. package/front_end/panels/application/IndexedDBViews.ts +65 -63
  79. package/front_end/panels/application/WebMCPView.ts +29 -12
  80. package/front_end/panels/application/components/AdsView.ts +24 -1
  81. package/front_end/panels/application/components/adsView.css +27 -21
  82. package/front_end/panels/autofill/AutofillView.ts +12 -12
  83. package/front_end/panels/autofill/autofill-meta.ts +2 -2
  84. package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +5 -5
  85. package/front_end/panels/common/BadgeNotification.ts +8 -8
  86. package/front_end/panels/common/ExtensionServer.ts +21 -1
  87. package/front_end/panels/common/GdpSignUpDialog.ts +16 -16
  88. package/front_end/panels/common/GeminiRebrandPromoDialog.ts +5 -6
  89. package/front_end/panels/common/PersistenceUtils.ts +2 -2
  90. package/front_end/panels/common/common.ts +0 -97
  91. package/front_end/panels/console/ConsoleInsightTeaser.ts +2 -2
  92. package/front_end/panels/console/ConsolePinPane.ts +2 -2
  93. package/front_end/panels/console/ConsoleView.ts +20 -19
  94. package/front_end/panels/elements/ElementsTreeElement.ts +550 -327
  95. package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
  96. package/front_end/panels/elements/LayoutPane.ts +2 -8
  97. package/front_end/panels/event_listeners/EventListenersView.ts +8 -4
  98. package/front_end/panels/issues/AffectedTrackingSitesView.ts +25 -14
  99. package/front_end/panels/js_timeline/js_timeline-meta.ts +8 -8
  100. package/front_end/panels/layer_viewer/LayerDetailsView.ts +30 -30
  101. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +6 -6
  102. package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
  103. package/front_end/panels/layer_viewer/Layers3DView.ts +11 -11
  104. package/front_end/panels/layer_viewer/PaintProfilerView.ts +8 -8
  105. package/front_end/panels/layer_viewer/TransformController.ts +3 -3
  106. package/front_end/panels/layer_viewer/layer_viewer-meta.ts +11 -11
  107. package/front_end/panels/media/PlayerMessagesView.ts +149 -68
  108. package/front_end/panels/mobile_throttling/ThrottlingManager.ts +1 -58
  109. package/front_end/panels/mobile_throttling/mobile_throttling.ts +0 -10
  110. package/front_end/panels/network/NetworkPanel.ts +1 -1
  111. package/front_end/panels/network/RequestPayloadView.ts +1 -0
  112. package/front_end/panels/profiler/HeapSnapshotView.ts +0 -2
  113. package/front_end/panels/profiler/heapProfiler.css +0 -9
  114. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +7 -0
  115. package/front_end/panels/recorder/RecorderPanel.ts +2 -3
  116. package/front_end/panels/screencast/ScreencastView.ts +148 -138
  117. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +1 -2
  118. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +2 -2
  119. package/front_end/panels/sources/DebuggerPlugin.ts +9 -58
  120. package/front_end/panels/sources/ScopeChainSidebarPane.ts +1 -1
  121. package/front_end/panels/sources/UISourceCodeFrame.ts +3 -8
  122. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -2
  123. package/front_end/panels/timeline/TimelineController.ts +36 -64
  124. package/front_end/panels/timeline/TimelinePanel.ts +11 -8
  125. package/front_end/panels/timeline/TimelineUIUtils.ts +5 -2
  126. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -2
  127. package/front_end/panels/timeline/timelinePanel.css +0 -10
  128. package/front_end/panels/utils/utils.ts +7 -7
  129. package/front_end/services/tracing/PerformanceTracing.ts +5 -17
  130. package/front_end/third_party/chromium/README.chromium +1 -1
  131. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  132. package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
  133. package/front_end/third_party/codemirror.next/package.json +2 -2
  134. package/front_end/third_party/codemirror.next/rebuild.sh +4 -1
  135. package/front_end/ui/comments/CommentAnchorResolver.ts +558 -0
  136. package/front_end/ui/comments/CommentManager.ts +640 -0
  137. package/front_end/ui/comments/CommentsOverlayWidget.ts +121 -0
  138. package/front_end/ui/comments/comments.ts +13 -0
  139. package/front_end/ui/comments/commentsOverlay.css +49 -0
  140. package/front_end/{panels/common → ui/components/dialogs}/FreDialog.ts +6 -6
  141. package/front_end/ui/components/dialogs/TypeToAllowDialog.ts +96 -0
  142. package/front_end/ui/components/dialogs/dialogs.ts +4 -0
  143. package/front_end/ui/components/settings/SettingCheckbox.ts +3 -3
  144. package/front_end/{panels/common → ui/components/text_editor}/AiCodeCompletionDisclaimer.ts +13 -13
  145. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +7 -6
  146. package/front_end/{panels/common → ui/components/text_editor}/AiCodeCompletionTeaser.ts +43 -46
  147. package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +22 -26
  148. package/front_end/{panels/common → ui/components/text_editor}/AiCodeGenerationTeaser.ts +10 -10
  149. package/front_end/{panels/common → ui/components/text_editor}/AiCodeGenerationUpgradeDialog.ts +5 -5
  150. package/front_end/ui/components/text_editor/text_editor.ts +4 -0
  151. package/front_end/ui/legacy/Toolbar.ts +1 -1
  152. package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +40 -0
  153. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +11 -3
  154. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +270 -162
  155. package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +5 -0
  156. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +11 -16
  157. package/front_end/ui/legacy/components/settings_ui/SettingsUI.ts +5 -12
  158. package/front_end/ui/legacy/components/source_frame/JSONView.ts +8 -1
  159. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +2 -2
  160. package/front_end/ui/legacy/components/utils/Linkifier.ts +1 -0
  161. package/front_end/ui/settings/SettingUIRegistration.ts +59 -6
  162. package/front_end/ui/visual_logging/Debugging.ts +1 -5
  163. package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
  164. package/front_end/ui/visual_logging/LoggingConfig.ts +21 -0
  165. package/front_end/ui/visual_logging/visual_logging.ts +9 -0
  166. package/mcp/mcp.ts +6 -1
  167. package/package.json +1 -1
  168. package/front_end/Images/toolbarResizerVertical.png +0 -0
  169. package/front_end/emulated_devices/MotoG4-landscape.svg +0 -155
  170. package/front_end/emulated_devices/MotoG4-portrait.svg +0 -155
  171. package/front_end/emulated_devices/Nexus5X-landscape.svg +0 -19
  172. package/front_end/emulated_devices/Nexus5X-portrait.svg +0 -19
  173. package/front_end/emulated_devices/Nexus6P-landscape.svg +0 -50
  174. package/front_end/emulated_devices/Nexus6P-portrait.svg +0 -54
  175. package/front_end/emulated_devices/google-nest-hub-horizontal.png +0 -0
  176. package/front_end/emulated_devices/google-nest-hub-max-horizontal.png +0 -0
  177. package/front_end/emulated_devices/google-nexus-5-horizontal-default-1x.png +0 -0
  178. package/front_end/emulated_devices/google-nexus-5-horizontal-default-2x.png +0 -0
  179. package/front_end/emulated_devices/google-nexus-5-horizontal-keyboard-1x.png +0 -0
  180. package/front_end/emulated_devices/google-nexus-5-horizontal-keyboard-2x.png +0 -0
  181. package/front_end/emulated_devices/google-nexus-5-horizontal-navigation-1x.png +0 -0
  182. package/front_end/emulated_devices/google-nexus-5-horizontal-navigation-2x.png +0 -0
  183. package/front_end/emulated_devices/google-nexus-5-vertical-default-1x.png +0 -0
  184. package/front_end/emulated_devices/google-nexus-5-vertical-default-2x.png +0 -0
  185. package/front_end/emulated_devices/google-nexus-5-vertical-keyboard-1x.png +0 -0
  186. package/front_end/emulated_devices/google-nexus-5-vertical-keyboard-2x.png +0 -0
  187. package/front_end/emulated_devices/google-nexus-5-vertical-navigation-1x.png +0 -0
  188. package/front_end/emulated_devices/google-nexus-5-vertical-navigation-2x.png +0 -0
  189. package/front_end/emulated_devices/google-nexus-5x-horizontal-default-1x.png +0 -0
  190. package/front_end/emulated_devices/google-nexus-5x-horizontal-default-2x.png +0 -0
  191. package/front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-1x.png +0 -0
  192. package/front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-2x.png +0 -0
  193. package/front_end/emulated_devices/google-nexus-5x-horizontal-navigation-1x.png +0 -0
  194. package/front_end/emulated_devices/google-nexus-5x-horizontal-navigation-2x.png +0 -0
  195. package/front_end/emulated_devices/google-nexus-5x-vertical-default-1x.png +0 -0
  196. package/front_end/emulated_devices/google-nexus-5x-vertical-default-2x.png +0 -0
  197. package/front_end/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png +0 -0
  198. package/front_end/emulated_devices/google-nexus-5x-vertical-keyboard-2x.png +0 -0
  199. package/front_end/emulated_devices/google-nexus-5x-vertical-navigation-1x.png +0 -0
  200. package/front_end/emulated_devices/google-nexus-5x-vertical-navigation-2x.png +0 -0
  201. package/front_end/emulated_devices/iPad-landscape.svg +0 -73
  202. package/front_end/emulated_devices/iPad-portrait.svg +0 -76
  203. package/front_end/emulated_devices/iPhone5-landscape.svg +0 -99
  204. package/front_end/emulated_devices/iPhone5-portrait.svg +0 -83
  205. package/front_end/emulated_devices/iPhone6-landscape.svg +0 -111
  206. package/front_end/emulated_devices/iPhone6-portrait.svg +0 -116
  207. package/front_end/emulated_devices/iPhone6Plus-landscape.svg +0 -118
  208. package/front_end/emulated_devices/iPhone6Plus-portrait.svg +0 -116
  209. package/front_end/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
  210. package/front_end/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
  211. package/front_end/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
  212. package/front_end/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
  213. package/front_end/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
  214. package/front_end/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
  215. package/front_end/emulated_devices/optimized/README.md +0 -9
  216. package/front_end/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
  217. package/front_end/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
  218. package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
  219. package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
  220. package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
  221. package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
  222. package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
  223. package/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
  224. package/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
  225. package/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
  226. package/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
  227. package/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
  228. package/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
  229. package/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
  230. package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
  231. package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
  232. package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
  233. package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
  234. package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
  235. package/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
  236. package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
  237. package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
  238. package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
  239. package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
  240. package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
  241. package/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
  242. package/front_end/emulated_devices/optimized/iPad-landscape.avif +0 -0
  243. package/front_end/emulated_devices/optimized/iPad-portrait.avif +0 -0
  244. package/front_end/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
  245. package/front_end/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
  246. package/front_end/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
  247. package/front_end/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
  248. package/front_end/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
  249. package/front_end/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
  250. package/front_end/emulated_devices/optimized/optimized_images.gni +0 -53
  251. package/front_end/models/ai_assistance/agents/README.md +0 -136
  252. package/front_end/panels/mobile_throttling/MobileThrottlingSelector.ts +0 -92
  253. /package/front_end/{panels/common → ui/components/dialogs}/freDialog.css +0 -0
  254. /package/front_end/{panels/common/common.css → ui/components/dialogs/typeToAllowDialog.css} +0 -0
  255. /package/front_end/{panels/common → ui/components/text_editor}/aiCodeCompletionDisclaimer.css +0 -0
  256. /package/front_end/{panels/common → ui/components/text_editor}/aiCodeCompletionTeaser.css +0 -0
  257. /package/front_end/{panels/common → ui/components/text_editor}/aiCodeGenerationTeaser.css +0 -0
  258. /package/front_end/{panels/common → ui/components/text_editor}/aiCodeGenerationUpgradeDialog.css +0 -0
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  :host {
8
- padding: 12px;
8
+ padding: var(--sys-size-6);
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  overflow: auto;
@@ -19,17 +19,17 @@
19
19
 
20
20
  .metrics-container {
21
21
  flex: 0 0 auto;
22
- margin: 0 0 24px;
22
+ margin: 0;
23
23
  border: 1px solid var(--sys-color-divider);
24
24
  display: grid;
25
25
  grid-template-columns: repeat(2, 1fr);
26
- gap: 1px;
26
+ gap: var(--sys-size-1);
27
27
  background-color: var(--sys-color-divider);
28
28
  }
29
29
 
30
30
  .metric-box {
31
31
  background-color: var(--sys-color-surface);
32
- padding: 12px;
32
+ padding: var(--sys-size-6);
33
33
  display: flex;
34
34
  flex-direction: column;
35
35
  align-items: center;
@@ -37,24 +37,24 @@
37
37
  }
38
38
 
39
39
  .metric-title {
40
- font-size: 12px;
40
+ font-size: var(--sys-typescale-body4-size);
41
41
  color: var(--sys-color-on-surface-subtle);
42
- margin: 0 0 4px;
42
+ margin: 0 0 var(--sys-size-3);
43
43
  }
44
44
 
45
45
  .metric-value {
46
- font-size: 18px;
46
+ font-size: var(--sys-typescale-headline3-size);
47
47
  font-weight: bold;
48
48
  color: var(--sys-color-on-surface);
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  align-items: center;
52
52
  margin: 0;
53
- gap: 2px;
53
+ gap: var(--sys-size-2);
54
54
  }
55
55
 
56
56
  .metric-average {
57
- font-size: 12px;
57
+ font-size: var(--sys-typescale-body4-size);
58
58
  font-weight: normal;
59
59
  color: var(--sys-color-on-surface-subtle);
60
60
  }
@@ -65,7 +65,7 @@
65
65
  color: var(--sys-color-on-surface);
66
66
  flex: 0 0 auto;
67
67
  font-weight: bold;
68
- margin-bottom: 8px;
68
+ margin-bottom: var(--sys-size-5);
69
69
  }
70
70
 
71
71
  .ad-frames-data-grid {
@@ -75,22 +75,18 @@
75
75
  .ad-frames-container {
76
76
  border: 1px solid var(--sys-color-divider);
77
77
  display: flex;
78
- flex: auto;
78
+ flex: 1; /* Takes up remaining space */
79
79
  flex-direction: column;
80
- margin-bottom: 24px;
81
- height: 300px;
82
- min-height: 150px;
80
+ margin-bottom: 0;
81
+ min-height: var(--sys-size-22); /* 144px */
83
82
  position: relative;
84
- resize: vertical;
85
83
  overflow: hidden;
86
84
  }
87
85
 
88
- devtools-checkbox.setting-container {
89
- /*
90
- * Apply negative margins here to offset the default devtools-checkbox style
91
- * to align this component with the rest of the Ads panel layout.
92
- */
93
- margin: 0 0 -6px -6px;
86
+ .divider {
87
+ border: none;
88
+ border-top: 1px solid var(--sys-color-divider);
89
+ margin: var(--sys-size-8) 0 var(--sys-size-6);
94
90
  }
95
91
 
96
92
  .setting-text-container {
@@ -103,3 +99,13 @@ devtools-checkbox.setting-container {
103
99
  white-space: break-spaces;
104
100
  margin-top: 0;
105
101
  }
102
+
103
+ .footer-text {
104
+ margin-bottom: var(--sys-size-6);
105
+ }
106
+
107
+ .inline-icon {
108
+ width: var(--sys-size-8);
109
+ height: var(--sys-size-8);
110
+ vertical-align: text-bottom;
111
+ }
@@ -29,30 +29,30 @@ const UIStrings = {
29
29
  */
30
30
  noAutofill: 'No autofill detected',
31
31
  /**
32
- * @description Explanation for how to populate the autofill panel with data. Shown when there is
32
+ * @description Explanation for how to populate the Autofill panel with data. Shown when there is
33
33
  * no data available.
34
34
  */
35
- toStartDebugging: 'To start debugging autofill, use Chrome’s autofill menu to fill an address form.',
35
+ toStartDebugging: 'To start debugging autofill, use Chrome’s autofill menu to fill an address form',
36
36
  /**
37
- * @description Column header for column containing form field values
37
+ * @description Column header for column containing form field values.
38
38
  */
39
39
  value: 'Value',
40
40
  /**
41
- * @description Column header for column containing the predicted autofill categories
41
+ * @description Column header for column containing the predicted autofill categories.
42
42
  */
43
43
  predictedAutofillValue: 'Predicted autofill value',
44
44
  /**
45
- * @description Column header for column containing the name/label/id of form fields
45
+ * @description Column header for column containing the name/label/id of form fields.
46
46
  */
47
47
  formField: 'Form field',
48
48
  /**
49
49
  * @description Tooltip for an adorner for form fields which have an autocomplete attribute
50
- * (http://go/mdn/HTML/Attributes/autocomplete)
50
+ * (http://go/mdn/HTML/Attributes/autocomplete).
51
51
  */
52
52
  autocompleteAttribute: 'Autocomplete attribute',
53
53
  /**
54
54
  * @description Abbreviation of 'attribute'. Text content of an adorner for form fields which
55
- * have an autocomplete attribute (http://go/mdn/HTML/Attributes/autocomplete)
55
+ * have an autocomplete attribute (http://go/mdn/HTML/Attributes/autocomplete).
56
56
  */
57
57
  attr: 'attr',
58
58
  /**
@@ -80,21 +80,21 @@ const UIStrings = {
80
80
  * @description Tooltip text for a checkbox label in the Autofill panel. If checked, this panel
81
81
  * will open automatically whenever a form is being autofilled.
82
82
  */
83
- autoShowTooltip: 'Open the autofill panel automatically when an autofill activity is detected.',
83
+ autoShowTooltip: 'Open the Autofill panel automatically when an autofill activity is detected',
84
84
  /**
85
- * @description Aria text for the section of the autofill view containing a preview of the autofilled address.
85
+ * @description Aria text for the section of the Autofill view containing a preview of the autofilled address.
86
86
  */
87
87
  addressPreview: 'Address preview',
88
88
  /**
89
- * @description Aria text for the section of the autofill view containing the info about the autofilled form fields.
89
+ * @description Aria text for the section of the Autofill view containing the info about the autofilled form fields.
90
90
  */
91
91
  formInspector: 'Form inspector',
92
92
  /**
93
- * @description Link text for a hyperlink to more documentation
93
+ * @description Link text for a hyperlink to more documentation.
94
94
  */
95
95
  learnMore: 'Learn more',
96
96
  /**
97
- * @description Link text for a hyperlink to webpage for leaving user feedback
97
+ * @description Link text for a hyperlink to webpage for leaving user feedback.
98
98
  */
99
99
  sendFeedback: 'Send feedback',
100
100
  } as const;
@@ -9,11 +9,11 @@ import type * as Autofill from './autofill.js';
9
9
 
10
10
  const UIStrings = {
11
11
  /**
12
- * @description Label for the autofill pane
12
+ * @description Label for the Autofill panel.
13
13
  */
14
14
  autofill: 'Autofill',
15
15
  /**
16
- * @description Command for showing the 'Autofill' pane
16
+ * @description Command for showing the Autofill panel.
17
17
  */
18
18
  showAutofill: 'Show Autofill',
19
19
  } as const;
@@ -9,10 +9,10 @@ import '../../ui/kit/kit.js';
9
9
  import type * as Common from '../../core/common/common.js';
10
10
  import * as Host from '../../core/host/host.js';
11
11
  import * as i18n from '../../core/i18n/i18n.js';
12
+ import * as TextEditor from '../../ui/components/text_editor/text_editor.js';
12
13
  import * as UI from '../../ui/legacy/legacy.js';
13
14
  import {Directives, html, nothing, render} from '../../ui/lit/lit.js';
14
15
 
15
- import {AiCodeCompletionDisclaimer, type DisclaimerTextVariant} from './AiCodeCompletionDisclaimer.js';
16
16
  import styles from './aiCodeCompletionSummaryToolbar.css.js';
17
17
 
18
18
  const UIStringsNotTranslate = {
@@ -34,7 +34,7 @@ export interface AiCodeCompletionSummaryToolbarProps {
34
34
  disclaimerTooltipId?: string;
35
35
  spinnerTooltipId?: string;
36
36
  hasTopBorder?: boolean;
37
- disclaimerTextVariant?: DisclaimerTextVariant;
37
+ disclaimerTextVariant?: TextEditor.AiCodeCompletionDisclaimer.DisclaimerTextVariant;
38
38
  }
39
39
 
40
40
  export interface ViewInput {
@@ -45,7 +45,7 @@ export interface ViewInput {
45
45
  loading: boolean;
46
46
  hasTopBorder: boolean;
47
47
  aidaAvailability?: Host.AidaClient.AidaAccessPreconditions;
48
- disclaimerTextVariant?: DisclaimerTextVariant;
48
+ disclaimerTextVariant?: TextEditor.AiCodeCompletionDisclaimer.DisclaimerTextVariant;
49
49
  }
50
50
 
51
51
  export type View = (input: ViewInput, output: undefined, target: HTMLElement) => void;
@@ -65,7 +65,7 @@ export const DEFAULT_SUMMARY_TOOLBAR_VIEW: View = (input, _output, target) => {
65
65
  // clang-format off
66
66
  const disclaimer = input.disclaimerTooltipId && input.spinnerTooltipId ?
67
67
  html`<devtools-widget
68
- ${widget(AiCodeCompletionDisclaimer, {
68
+ ${widget(TextEditor.AiCodeCompletionDisclaimer.AiCodeCompletionDisclaimer, {
69
69
  disclaimerTooltipId: input.disclaimerTooltipId,
70
70
  spinnerTooltipId: input.spinnerTooltipId,
71
71
  loading: input.loading,
@@ -113,7 +113,7 @@ export class AiCodeCompletionSummaryToolbar extends UI.Widget.Widget {
113
113
  #citations = new Set<string>();
114
114
  #loading = false;
115
115
  #hasTopBorder = false;
116
- #disclaimerTextVariant?: DisclaimerTextVariant;
116
+ #disclaimerTextVariant?: TextEditor.AiCodeCompletionDisclaimer.DisclaimerTextVariant;
117
117
 
118
118
  #aidaAvailability?: Host.AidaClient.AidaAccessPreconditions;
119
119
  #boundOnAidaAvailabilityChange:
@@ -23,30 +23,30 @@ const {html, render} = Lit;
23
23
 
24
24
  const UIStrings = {
25
25
  /**
26
- * @description Title for close button
26
+ * @description Title for close button.
27
27
  */
28
28
  close: 'Close',
29
29
  /**
30
- * @description Activity based badge award notification text
30
+ * @description Activity-based badge award notification text.
31
31
  * @example {Badge Title} PH1
32
32
  */
33
33
  activityBasedBadgeAwardMessage: 'You earned the {PH1} badge! It’s been added to your Developer Profile.',
34
34
  /**
35
- * @description Action title for navigating to the badge settings in Google Developer Profile section
35
+ * @description Action title for navigating to the badge settings in Google Developer Profile section.
36
36
  */
37
37
  manageSettings: 'Manage settings',
38
38
  /**
39
- * @description Action title for opening the Google Developer Program profile page of the user in a new tab
39
+ * @description Action title for opening the user\'s Google Developer Profile page in a new tab.
40
40
  */
41
41
  viewProfile: 'View profile',
42
42
  /**
43
- * @description Starter badge award notification text when the user has a Google Developer Program profile but did not enable receiving badges in DevTools yet
43
+ * @description Starter badge award notification text when the user has a Google Developer Profile but has not enabled receiving badges in DevTools yet.
44
44
  * @example {Badge Title} PH1
45
45
  * @example {Google Developer Program link} PH2
46
46
  */
47
47
  starterBadgeAwardMessageSettingDisabled: 'You earned the {PH1} badge for the {PH2}! Turn on badges to claim it.',
48
48
  /**
49
- * @description Starter badge award notification text when the user does not have a Google Developer Program profile.
49
+ * @description Starter badge award notification text when the user does not have a Google Developer Profile.
50
50
  * @example {Badge Title} PH1
51
51
  * @example {Google Developer Program link} PH2
52
52
  */
@@ -57,11 +57,11 @@ const UIStrings = {
57
57
  */
58
58
  noThanks: 'No thanks',
59
59
  /**
60
- * @description Action title for enabling the "Receive badges" setting
60
+ * @description Action title for enabling the "Receive badges" setting.
61
61
  */
62
62
  receiveBadges: 'Turn on badges',
63
63
  /**
64
- * @description Action title for creating a Google Developer Program profle
64
+ * @description Action title for creating a Google Developer Program profile.
65
65
  */
66
66
  createProfile: 'Create profile',
67
67
  } as const;
@@ -444,8 +444,12 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
444
444
  return this.status.E_BADARG(
445
445
  'command', `expected ${Extensions.ExtensionAPI.PrivateAPI.Commands.RegisterRecorderExtensionPlugin}`);
446
446
  }
447
- const {pluginName, mediaType, port, capabilities} = message;
448
447
  const extensionOrigin = this.getExtensionOrigin(_shared_port);
448
+ const extension = this.registeredExtensions.get(extensionOrigin);
449
+ if (!extension || extension.hostsPolicy.runtimeBlockedHosts.length > 0) {
450
+ return this.status.E_FAILED('Permission denied');
451
+ }
452
+ const {pluginName, mediaType, port, capabilities} = message;
449
453
  const recorderPluginManager = Extensions.RecorderPluginManager.RecorderPluginManager.instance();
450
454
  recorderPluginManager.addPlugin(new Extensions.RecorderExtensionEndpoint.RecorderExtensionEndpoint(
451
455
  pluginName, port, capabilities, extensionOrigin, recorderPluginManager, mediaType));
@@ -537,6 +541,10 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
537
541
  }
538
542
 
539
543
  const extensionOrigin = this.getExtensionOrigin(port);
544
+ const extension = this.registeredExtensions.get(extensionOrigin);
545
+ if (!extension || extension.hostsPolicy.runtimeBlockedHosts.length > 0) {
546
+ return this.status.E_FAILED('Permission denied');
547
+ }
540
548
  const pagePath = ExtensionServer.expandResourcePath(extensionOrigin, message.pagePath);
541
549
  if (pagePath === undefined) {
542
550
  return this.status.E_BADARG('pagePath', 'Resources paths cannot point to non-extension resources');
@@ -955,6 +963,18 @@ export class ExtensionServer extends Common.ObjectWrapper.ObjectWrapper<EventTyp
955
963
  */
956
964
  private extensionAllowedOnContentProvider(
957
965
  contentProvider: TextUtils.ContentProvider.ContentProvider, port: MessagePort): boolean {
966
+ if (contentProvider instanceof Workspace.UISourceCode.UISourceCode) {
967
+ const debuggerSourceMapURLs =
968
+ Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().sourceMapURLsForUISourceCode(
969
+ contentProvider);
970
+ const cssSourceMapURLs =
971
+ Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance().sourceMapURLsForUISourceCode(contentProvider);
972
+ const sourceMapURLs = [...debuggerSourceMapURLs, ...cssSourceMapURLs];
973
+ if (sourceMapURLs.some(url => !this.extensionAllowedOnURL(url, port))) {
974
+ return false;
975
+ }
976
+ }
977
+
958
978
  // 1. Exception for Scripts with sourceURL
959
979
  if (contentProvider instanceof Workspace.UISourceCode.UISourceCode &&
960
980
  contentProvider.contentType() === Common.ResourceType.resourceTypes.Script) {
@@ -22,45 +22,45 @@ import styles from './gdpSignUpDialog.css.js';
22
22
 
23
23
  const UIStrings = {
24
24
  /**
25
- * @description Aria label for the Google Developer Program sign up dialog
25
+ * @description ARIA label for the Google Developer Program sign up dialog.
26
26
  */
27
27
  gdpDialogAriaLabel: 'Google Developer Program sign up dialog',
28
28
  /**
29
- *
30
- * @description Button text for canceling GDP sign up.
29
+ * @description Button text for canceling Google Developer Program sign up.
31
30
  */
32
31
  cancel: 'Cancel',
33
32
  /**
34
- * @description Button text for confirming GDP sign up.
33
+ * @description Button text for confirming Google Developer Program sign up.
35
34
  */
36
35
  signUp: 'Sign up',
37
36
  /**
38
- * @description Title for the first section of the GDP sign up dialog.
37
+ * @description Title for the first section of the Google Developer Program sign up dialog.
39
38
  */
40
39
  designedForSuccess: 'Designed for your success',
41
40
  /**
42
- * @description Body for the first section of the GDP sign up dialog.
41
+ * @description Body for the first section of the Google Developer Program sign up dialog.
43
42
  */
44
- designedForSuccessBody: 'Grow your skills, build with AI, and earn badges you can showcase in your developer profile',
43
+ designedForSuccessBody:
44
+ 'Grow your skills, build with AI, and earn badges you can showcase in your developer profile.',
45
45
  /**
46
- * @description Title for the second section of the GDP sign up dialog.
46
+ * @description Title for the second section of the Google Developer Program sign up dialog.
47
47
  */
48
48
  keepUpdated: 'Keep me updated',
49
49
  /**
50
- * @description Body for the second section of the GDP sign up dialog.
50
+ * @description Body for the second section of the Google Developer Program sign up dialog.
51
51
  */
52
- keepUpdatedBody: 'The latest DevTools features, event invites, and tailored insights land directly in your inbox',
52
+ keepUpdatedBody: 'The latest DevTools features, event invites, and tailored insights land directly in your inbox.',
53
53
  /**
54
- * @description Title for the third section of the GDP sign up dialog.
54
+ * @description Title for the third section of the Google Developer Program sign up dialog.
55
55
  */
56
56
  tailorProfile: 'Tailor your profile',
57
57
  /**
58
- * @description Body for the third section of the GDP sign up dialog.
58
+ * @description Body for the third section of the Google Developer Program sign up dialog.
59
59
  */
60
60
  tailorProfileBody:
61
- 'The name on your Google Account and your interests will be used in your Google Developer Profile. Your name may appear where you contribute and can be changed at any time.',
61
+ 'The name on your Google account and your interests will be used in your Google Developer Profile. Your name may appear where you contribute and can be changed at any time.',
62
62
  /**
63
- * @description Body for the third section of the GDP sign up dialog.
63
+ * @description Disclaimer text for tailoring profile in the Google Developer Program sign up dialog.
64
64
  * @example {Content Policy} PH1
65
65
  * @example {Terms of Service} PH2
66
66
  * @example {Privacy Policy} PH3
@@ -88,9 +88,9 @@ const UIStrings = {
88
88
  */
89
89
  privacyPolicy: 'Privacy Policy',
90
90
  /**
91
- * @description Error message shown in a snackbar when GDP sign up fails.
91
+ * @description Error message shown in a snackbar when Google Developer Profile creation fails.
92
92
  */
93
- signUpFailed: 'Your Google Developer Program profile couldn’t be created. Please try again later.',
93
+ signUpFailed: 'Your Google Developer Profile couldn’t be created. Please try again later.',
94
94
  } as const;
95
95
 
96
96
  const str_ = i18n.i18n.registerUIStrings('panels/common/GdpSignUpDialog.ts', UIStrings);
@@ -24,11 +24,10 @@ import styles from './geminiRebrandPromoDialog.css.js';
24
24
 
25
25
  const UIStrings = {
26
26
  /**
27
- * @description Aria label for the dialog
27
+ * @description ARIA label for the dialog.
28
28
  */
29
29
  dialogAriaLabel: 'Gemini 3 Flash in DevTools',
30
30
  /**
31
- *
32
31
  * @description Button text for dismissing the dialog.
33
32
  */
34
33
  dismiss: 'Dismiss',
@@ -37,19 +36,19 @@ const UIStrings = {
37
36
  */
38
37
  getStarted: 'Get started',
39
38
  /**
40
- * @description Detail message shown in the dialog.
39
+ * @description Feature item describing Gemini as an AI companion for web development.
41
40
  */
42
41
  detailAiCompanion: 'Meet your AI-powered companion for web dev',
43
42
  /**
44
- * @description Detail message shown in the dialog.
43
+ * @description Feature item describing instant answers for console errors.
45
44
  */
46
45
  detailConsoleErrors: 'Get instant, accurate answers for console errors',
47
46
  /**
48
- * @description Detail message shown in the dialog.
47
+ * @description Feature item describing CSS and JS snippet generation.
49
48
  */
50
49
  detailGenerateCode: 'Generate CSS and JS snippets on the fly',
51
50
  /**
52
- * @description Detail message shown in the dialog.
51
+ * @description Feature item describing automatic issue detection in performance traces.
53
52
  */
54
53
  detailPerformance: 'Automatically find issues in performance traces',
55
54
  } as const;
@@ -14,12 +14,12 @@ import {html, type LitTemplate} from '../../ui/lit/lit.js';
14
14
 
15
15
  const UIStrings = {
16
16
  /**
17
- * @description Text in Persistence Utils of the Workspace settings in Settings
17
+ * @description Tooltip text indicating that a file is linked to a source map.
18
18
  * @example {example.url} PH1
19
19
  */
20
20
  linkedToSourceMapS: 'Linked to source map: {PH1}',
21
21
  /**
22
- * @description Text to show something is linked to another
22
+ * @description Tooltip text indicating that a file is linked to another file.
23
23
  * @example {example.url} PH1
24
24
  */
25
25
  linkedToS: 'Linked to {PH1}',
@@ -2,105 +2,8 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- /* eslint-disable @devtools/no-imperative-dom-api */
6
-
7
- import * as Host from '../../core/host/host.js';
8
- import * as i18n from '../../core/i18n/i18n.js';
9
- import type * as Platform from '../../core/platform/platform.js';
10
- import * as Geometry from '../../models/geometry/geometry.js';
11
- import * as Buttons from '../../ui/components/buttons/buttons.js';
12
- import * as UI from '../../ui/legacy/legacy.js';
13
-
14
- import commonStyles from './common.css.js';
15
-
16
- const UIStrings = {
17
- /**
18
- * @description Text for the cancel button in the dialog.
19
- */
20
- cancel: 'Cancel',
21
- /**
22
- * @description Text for the allow button in the "type to allow" dialog.
23
- */
24
- allow: 'Allow',
25
- } as const;
26
-
27
- const str_ = i18n.i18n.registerUIStrings('panels/common/common.ts', UIStrings);
28
- const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
29
-
30
- export class TypeToAllowDialog {
31
- static async show(options: {
32
- jslogContext: {
33
- dialog: string,
34
- input: string,
35
- },
36
- header: Platform.UIString.LocalizedString,
37
- message: Platform.UIString.LocalizedString,
38
- typePhrase: Platform.UIString.LocalizedString,
39
- inputPlaceholder: Platform.UIString.LocalizedString,
40
- }): Promise<boolean> {
41
- const dialog = new UI.Dialog.Dialog(options.jslogContext.dialog);
42
- dialog.setMaxContentSize(new Geometry.Size(504, 340));
43
- dialog.setSizeBehavior(UI.GlassPane.SizeBehavior.SET_EXACT_WIDTH_MAX_HEIGHT);
44
- dialog.setDimmed(true);
45
- const shadowRoot = UI.UIUtils.createShadowRootWithCoreStyles(dialog.contentElement, {cssFile: commonStyles});
46
- const content = shadowRoot.createChild('div', 'type-to-allow-dialog');
47
-
48
- const result = await new Promise<boolean>(resolve => {
49
- const header = content.createChild('div', 'header');
50
- header.createChild('div', 'title').textContent = options.header;
51
-
52
- const closeButton = header.createChild('dt-close-button', 'dialog-close-button');
53
- closeButton.setTabbable(true);
54
- self.onInvokeElement(closeButton, event => {
55
- dialog.hide();
56
- event.consume(true);
57
- resolve(false);
58
- });
59
- closeButton.setSize(Buttons.Button.Size.SMALL);
60
-
61
- content.createChild('div', 'message').textContent = options.message;
62
-
63
- const input = UI.UIUtils.createInput('text-input', 'text', options.jslogContext.input);
64
- input.placeholder = options.inputPlaceholder;
65
- content.appendChild(input);
66
-
67
- const buttonsBar = content.createChild('div', 'button');
68
- const cancelButton =
69
- UI.UIUtils.createTextButton(i18nString(UIStrings.cancel), () => resolve(false), {jslogContext: 'cancel'});
70
-
71
- const allowButton = UI.UIUtils.createTextButton(i18nString(UIStrings.allow), () => {
72
- resolve(input.value === options.typePhrase || input.value === `'${options.typePhrase}'`);
73
- }, {jslogContext: 'confirm', variant: Buttons.Button.Variant.PRIMARY});
74
- allowButton.disabled = true;
75
-
76
- buttonsBar.appendChild(allowButton);
77
- buttonsBar.appendChild(cancelButton);
78
-
79
- input.addEventListener('input', () => {
80
- allowButton.disabled = !Boolean(input.value);
81
- }, false);
82
- input.addEventListener('paste', e => e.preventDefault());
83
- input.addEventListener('drop', e => e.preventDefault());
84
-
85
- dialog.setOutsideClickCallback(event => {
86
- event.consume();
87
- resolve(false);
88
- });
89
- dialog.show();
90
- Host.userMetrics.actionTaken(Host.UserMetrics.Action.SelfXssWarningDialogShown);
91
- });
92
- dialog.hide();
93
- return result;
94
- }
95
- }
96
-
97
- export {AiCodeCompletionTeaser} from './AiCodeCompletionTeaser.js';
98
- export * as AiCodeGenerationTeaser from './AiCodeGenerationTeaser.js';
99
- export {AiCodeGenerationUpgradeDialog} from './AiCodeGenerationUpgradeDialog.js';
100
- export {FreDialog} from './FreDialog.js';
101
5
  export {GdpSignUpDialog} from './GdpSignUpDialog.js';
102
6
  export {GeminiRebrandPromoDialog} from './GeminiRebrandPromoDialog.js';
103
- export {AiCodeCompletionDisclaimer, type DisclaimerTextVariant} from './AiCodeCompletionDisclaimer.js';
104
7
  export * as AiCodeCompletionSummaryToolbar from './AiCodeCompletionSummaryToolbar.js';
105
8
  export * from './BadgeNotification.js';
106
9
  export * as CPUThrottlingOption from './CPUThrottlingOption.js';
@@ -12,11 +12,11 @@ import * as Root from '../../core/root/root.js';
12
12
  import * as Protocol from '../../generated/protocol.js';
13
13
  import * as AiAssistanceModel from '../../models/ai_assistance/ai_assistance.js';
14
14
  import * as Buttons from '../../ui/components/buttons/buttons.js';
15
+ import * as Dialogs from '../../ui/components/dialogs/dialogs.js';
15
16
  import type * as Tooltips from '../../ui/components/tooltips/tooltips.js';
16
17
  import * as UI from '../../ui/legacy/legacy.js';
17
18
  import * as Lit from '../../ui/lit/lit.js';
18
19
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
19
- import * as PanelCommon from '../common/common.js';
20
20
 
21
21
  import consoleInsightTeaserStyles from './consoleInsightTeaser.css.js';
22
22
  import {ConsoleViewMessage} from './ConsoleViewMessage.js';
@@ -500,7 +500,7 @@ export class ConsoleInsightTeaser extends UI.Widget.Widget {
500
500
  const noLogging = Root.Runtime.hostConfig.aidaAvailability?.enterprisePolicyValue ===
501
501
  Root.Runtime.GenAiEnterprisePolicyValue.ALLOW_WITHOUT_LOGGING;
502
502
  const iconName = AiAssistanceModel.AiUtils.getIconName();
503
- const result = await PanelCommon.FreDialog.show({
503
+ const result = await Dialogs.FreDialog.FreDialog.show({
504
504
  header: {iconName, text: lockedString(UIStringsNotTranslate.freDisclaimerHeader)},
505
505
  reminderItems: [
506
506
  {
@@ -10,6 +10,7 @@ import * as Root from '../../core/root/root.js';
10
10
  import * as SDK from '../../core/sdk/sdk.js';
11
11
  import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
12
12
  import * as Buttons from '../../ui/components/buttons/buttons.js';
13
+ import * as Dialogs from '../../ui/components/dialogs/dialogs.js';
13
14
  import * as TextEditor from '../../ui/components/text_editor/text_editor.js';
14
15
  import * as ObjectUI from '../../ui/legacy/components/object_ui/object_ui.js';
15
16
  // eslint-disable-next-line @devtools/es-modules-import
@@ -17,7 +18,6 @@ import objectValueStyles from '../../ui/legacy/components/object_ui/objectValue.
17
18
  import * as UI from '../../ui/legacy/legacy.js';
18
19
  import {Directives, html, type LitTemplate, nothing, render} from '../../ui/lit/lit.js';
19
20
  import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
20
- import * as PanelCommon from '../common/common.js';
21
21
 
22
22
  import consolePinPaneStyles from './consolePinPane.css.js';
23
23
 
@@ -437,7 +437,7 @@ export class ConsolePinPresenter extends UI.Widget.Widget {
437
437
  }
438
438
 
439
439
  async #showSelfXssWarning(): Promise<void> {
440
- const allowPasting = await PanelCommon.TypeToAllowDialog.show({
440
+ const allowPasting = await Dialogs.TypeToAllowDialog.TypeToAllowDialog.show({
441
441
  jslogContext: {
442
442
  dialog: 'self-xss-warning',
443
443
  input: 'allow-pasting',