chrome-devtools-frontend 1.0.1681091 → 1.0.1682249

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 (208) hide show
  1. package/eslint.config.mjs +8 -3
  2. package/front_end/core/sdk/ConsoleModel.ts +1 -1
  3. package/front_end/core/sdk/DOMModel.ts +8 -0
  4. package/front_end/core/sdk/NetworkManager.ts +9 -4
  5. package/front_end/core/sdk/OverlayModel.ts +3 -2
  6. package/front_end/core/sdk/PreloadingModel.ts +44 -22
  7. package/front_end/core/sdk/RemoteObject.ts +4 -1
  8. package/front_end/core/sdk/RuntimeModel.ts +5 -5
  9. package/front_end/core/sdk/SDKSettings.ts +19 -0
  10. package/front_end/core/sdk/sdk.ts +2 -0
  11. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
  12. package/front_end/entrypoints/inspector_main/InspectorMain.ts +3 -1
  13. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -5
  14. package/front_end/entrypoints/main/MainImpl.ts +9 -10
  15. package/front_end/entrypoints/main/main-meta.ts +82 -0
  16. package/front_end/entrypoints/shell/shell.ts +0 -5
  17. package/front_end/entrypoints/trace_app/trace_app.ts +0 -5
  18. package/front_end/generated/InspectorBackendCommands.ts +2 -0
  19. package/front_end/generated/protocol-mapping.d.ts +16 -0
  20. package/front_end/generated/protocol-proxy-api.d.ts +12 -0
  21. package/front_end/generated/protocol.ts +12 -0
  22. package/front_end/models/ai_assistance/ExtensionScope.ts +11 -12
  23. package/front_end/models/ai_assistance/agents/AiAgent.ts +1 -1
  24. package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +2 -1
  25. package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +1 -1
  26. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +2 -1
  27. package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +2 -1
  28. package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +8 -8
  29. package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +8 -8
  30. package/front_end/models/ai_code_completion/debug.ts +6 -3
  31. package/front_end/models/ai_code_generation/debug.ts +6 -3
  32. package/front_end/models/badges/UserBadges.ts +9 -2
  33. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -0
  34. package/front_end/models/emulation/DeviceModeModel.ts +16 -27
  35. package/front_end/models/emulation/EmulatedDevices.ts +30 -125
  36. package/front_end/models/extensions/ExtensionAPI.ts +34 -23
  37. package/front_end/models/formatter/ScriptFormatter.ts +1 -0
  38. package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
  39. package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +4 -4
  40. package/front_end/models/logs/NetworkLog.ts +11 -4
  41. package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +4 -2
  42. package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -1
  43. package/front_end/models/stack_trace/StackTraceImpl.ts +1 -0
  44. package/front_end/models/trace/Name.ts +5 -5
  45. package/front_end/models/trace/Styles.ts +115 -115
  46. package/front_end/models/trace/extras/TraceTree.ts +2 -1
  47. package/front_end/models/trace/helpers/Network.ts +4 -1
  48. package/front_end/models/trace/insights/CLSCulprits.ts +4 -2
  49. package/front_end/models/trace/insights/CharacterSet.ts +3 -3
  50. package/front_end/models/trace/insights/DOMSize.ts +1 -1
  51. package/front_end/models/trace/insights/DuplicatedJavaScript.ts +6 -2
  52. package/front_end/models/trace/insights/FontDisplay.ts +9 -3
  53. package/front_end/models/trace/insights/ForcedReflow.ts +4 -4
  54. package/front_end/models/trace/insights/INPBreakdown.ts +3 -4
  55. package/front_end/models/trace/insights/ImageDelivery.ts +2 -2
  56. package/front_end/models/trace/insights/LCPBreakdown.ts +1 -1
  57. package/front_end/models/trace/insights/LCPDiscovery.ts +5 -5
  58. package/front_end/models/trace/insights/LegacyJavaScript.ts +7 -3
  59. package/front_end/models/trace/insights/ModernHTTP.ts +3 -3
  60. package/front_end/models/trace/insights/NetworkDependencyTree.ts +13 -9
  61. package/front_end/models/trace/insights/RenderBlocking.ts +1 -1
  62. package/front_end/models/trace/insights/SlowCSSSelector.ts +29 -25
  63. package/front_end/models/trace/insights/ThirdParties.ts +13 -5
  64. package/front_end/models/trace/insights/Viewport.ts +4 -2
  65. package/front_end/models/workspace/IgnoreListManager.ts +53 -17
  66. package/front_end/panels/accessibility/ARIAAttributesView.ts +11 -2
  67. package/front_end/panels/ai_assistance/components/ChatMessage.ts +67 -53
  68. package/front_end/panels/ai_assistance/components/ChatView.ts +2 -2
  69. package/front_end/panels/ai_assistance/components/StylingAgentMarkdownRenderer.ts +2 -2
  70. package/front_end/panels/ai_assistance/components/WalkthroughView.ts +5 -5
  71. package/front_end/panels/animation/AnimationTimeline.ts +2 -0
  72. package/front_end/panels/application/ServiceWorkersView.ts +1 -1
  73. package/front_end/panels/application/StorageView.ts +2 -0
  74. package/front_end/panels/application/preloading/PreloadingView.ts +9 -3
  75. package/front_end/panels/application/preloading/components/components.ts +2 -0
  76. package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +10 -11
  77. package/front_end/panels/changes/CombinedDiffView.ts +1 -1
  78. package/front_end/panels/common/BadgeNotification.ts +1 -1
  79. package/front_end/panels/common/ExtensionPanel.ts +12 -7
  80. package/front_end/panels/common/ExtensionServer.ts +85 -26
  81. package/front_end/panels/common/GdpSignUpDialog.ts +1 -1
  82. package/front_end/panels/console/ConsoleView.ts +2 -1
  83. package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
  84. package/front_end/panels/console/console-meta.ts +9 -0
  85. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -4
  86. package/front_end/panels/elements/CSSRuleValidator.ts +12 -12
  87. package/front_end/panels/elements/CSSSpecificityBreakdown.ts +1 -1
  88. package/front_end/panels/elements/ClassesPaneWidget.ts +6 -6
  89. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
  90. package/front_end/panels/elements/ComputedStyleWidget.ts +4 -5
  91. package/front_end/panels/elements/DOMTreeContextMenu.ts +3 -6
  92. package/front_end/panels/elements/ElementIssueUtils.ts +20 -20
  93. package/front_end/panels/elements/ElementStatePaneWidget.ts +9 -6
  94. package/front_end/panels/elements/ElementsPanel.ts +10 -10
  95. package/front_end/panels/elements/ElementsTreeElement.ts +35 -29
  96. package/front_end/panels/elements/ElementsTreeOutline.ts +5 -20
  97. package/front_end/panels/elements/EventListenersWidget.ts +18 -19
  98. package/front_end/panels/elements/LayersWidget.ts +4 -4
  99. package/front_end/panels/elements/LayoutPane.ts +11 -11
  100. package/front_end/panels/elements/MarkerDecorator.ts +3 -3
  101. package/front_end/panels/elements/PlatformFontsWidget.ts +8 -8
  102. package/front_end/panels/elements/PropertiesWidget.ts +4 -4
  103. package/front_end/panels/elements/PropertyRenderer.ts +2 -2
  104. package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
  105. package/front_end/panels/elements/StylePropertiesSection.ts +14 -14
  106. package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -21
  107. package/front_end/panels/elements/StylesSidebarPane.ts +12 -13
  108. package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
  109. package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -1
  110. package/front_end/panels/elements/components/CSSVariableValueView.ts +3 -3
  111. package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +2 -2
  112. package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
  113. package/front_end/panels/elements/elements-meta.ts +13 -13
  114. package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
  115. package/front_end/panels/issues/AffectedElementsView.ts +5 -0
  116. package/front_end/panels/issues/IssueView.ts +12 -8
  117. package/front_end/panels/layer_viewer/LayerDetailsView.ts +11 -7
  118. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +2 -0
  119. package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
  120. package/front_end/panels/media/PlayerPropertiesView.ts +309 -416
  121. package/front_end/panels/media/playerPropertiesView.css +1 -1
  122. package/front_end/panels/network/NetworkLogView.ts +5 -2
  123. package/front_end/panels/network/NetworkOverview.ts +11 -5
  124. package/front_end/panels/network/NetworkPanel.ts +4 -2
  125. package/front_end/panels/network/NetworkWaterfallColumn.ts +16 -3
  126. package/front_end/panels/network/RequestHeadersView.ts +4 -4
  127. package/front_end/panels/network/components/ResponseHeaderSection.ts +7 -4
  128. package/front_end/panels/network/network-meta.ts +63 -0
  129. package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -1
  130. package/front_end/panels/recorder/RecordingView.ts +89 -73
  131. package/front_end/panels/recorder/ReplaySection.ts +59 -40
  132. package/front_end/panels/recorder/injected/injected.ts +4 -0
  133. package/front_end/panels/security/SecurityPanel.ts +5 -6
  134. package/front_end/panels/security/SecurityPanelSidebar.ts +244 -204
  135. package/front_end/panels/security/security.ts +0 -4
  136. package/front_end/panels/settings/EditFileSystemView.ts +8 -7
  137. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +20 -14
  138. package/front_end/panels/settings/components/SyncSection.ts +1 -1
  139. package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +0 -3
  140. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +10 -11
  141. package/front_end/panels/sources/NavigatorView.ts +6 -2
  142. package/front_end/panels/sources/SourcesNavigator.ts +8 -4
  143. package/front_end/panels/sources/SourcesPanel.ts +4 -2
  144. package/front_end/panels/sources/SourcesSearchScope.ts +3 -1
  145. package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
  146. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -3
  147. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +5 -5
  148. package/front_end/panels/timeline/components/CWVMetrics.ts +1 -2
  149. package/front_end/panels/timeline/components/IgnoreListSetting.ts +5 -5
  150. package/front_end/panels/timeline/components/LayoutShiftDetails.ts +2 -3
  151. package/front_end/panels/timeline/components/LiveMetricsView.ts +2 -2
  152. package/front_end/panels/timeline/components/Sidebar.ts +3 -3
  153. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -2
  154. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +3 -1
  155. package/front_end/panels/timeline/components/insights/CLSCulprits.ts +1 -2
  156. package/front_end/panels/timeline/components/insights/Cache.ts +1 -2
  157. package/front_end/panels/timeline/components/insights/CharacterSet.ts +1 -2
  158. package/front_end/panels/timeline/components/insights/DOMSize.ts +1 -2
  159. package/front_end/panels/timeline/components/insights/DocumentLatency.ts +2 -2
  160. package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +2 -2
  161. package/front_end/panels/timeline/components/insights/FontDisplay.ts +1 -2
  162. package/front_end/panels/timeline/components/insights/ForcedReflow.ts +1 -2
  163. package/front_end/panels/timeline/components/insights/INPBreakdown.ts +1 -2
  164. package/front_end/panels/timeline/components/insights/ImageDelivery.ts +1 -2
  165. package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +13 -13
  166. package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +1 -2
  167. package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +4 -4
  168. package/front_end/panels/timeline/components/insights/ModernHTTP.ts +1 -2
  169. package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +10 -8
  170. package/front_end/panels/timeline/components/insights/RenderBlocking.ts +2 -2
  171. package/front_end/panels/timeline/components/insights/SidebarInsight.ts +3 -1
  172. package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +2 -2
  173. package/front_end/panels/timeline/components/insights/ThirdParties.ts +1 -2
  174. package/front_end/panels/timeline/components/insights/Viewport.ts +1 -2
  175. package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -2
  176. package/front_end/panels/timeline/timeline.ts +0 -2
  177. package/front_end/panels/web_audio/WebAudioView.ts +14 -6
  178. package/front_end/panels/webauthn/WebauthnPane.ts +9 -9
  179. package/front_end/third_party/chromium/README.chromium +1 -1
  180. package/front_end/third_party/web-vitals/rebuild.sh +1 -1
  181. package/front_end/ui/components/diff_view/DiffView.ts +2 -1
  182. package/front_end/ui/components/report_view/ReportView.docs.ts +2 -2
  183. package/front_end/ui/components/text_editor/javascript.ts +12 -13
  184. package/front_end/ui/legacy/GlassPane.ts +38 -14
  185. package/front_end/ui/legacy/Treeoutline.ts +14 -3
  186. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -11
  187. package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -1
  188. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +19 -20
  189. package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +1 -1
  190. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +1 -1
  191. package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +3 -3
  192. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +185 -355
  193. package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +3 -8
  194. package/front_end/ui/legacy/components/utils/ImagePreview.ts +15 -16
  195. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +4 -4
  196. package/front_end/ui/legacy/components/utils/Linkifier.ts +8 -10
  197. package/front_end/ui/settings/InspectorMainSettings.ts +12 -0
  198. package/front_end/ui/settings/settings.ts +2 -0
  199. package/front_end/ui/visual_logging/KnownContextValues.ts +32 -0
  200. package/mcp/mcp.ts +0 -9
  201. package/package.json +1 -1
  202. package/front_end/core/sdk/sdk-meta.ts +0 -40
  203. package/front_end/models/badges/badges-meta.ts +0 -27
  204. package/front_end/models/logs/logs-meta.ts +0 -84
  205. package/front_end/models/persistence/persistence-meta.ts +0 -69
  206. package/front_end/models/workspace/workspace-meta.ts +0 -40
  207. package/front_end/panels/security/OriginTreeElement.ts +0 -60
  208. package/front_end/panels/security/SecurityPanelSidebarTreeElement.ts +0 -30
@@ -18,49 +18,49 @@ import {type ContrastInfo, Events as ContrastInfoEvents} from './ContrastInfo.js
18
18
 
19
19
  const UIStrings = {
20
20
  /**
21
- * @description Label for when no contrast information is available in the color picker
21
+ * @description Text displayed when no contrast information is available in the color picker.
22
22
  */
23
23
  noContrastInformationAvailable: 'No contrast information available',
24
24
  /**
25
- * @description Text of a DOM element in Contrast Details of the Color Picker
25
+ * @description Label for the contrast ratio section in the contrast details of the color picker.
26
26
  */
27
27
  contrastRatio: 'Contrast ratio',
28
28
  /**
29
- * @description Text to show more content
29
+ * @description Tooltip and title for the expand button in the contrast details of the color picker to show more details.
30
30
  */
31
31
  showMore: 'Show more',
32
32
  /**
33
- * @description Choose bg color text content in Contrast Details of the Color Picker
33
+ * @description Prompt message in the contrast details of the color picker asking the user to pick a background color.
34
34
  */
35
35
  pickBackgroundColor: 'Pick background color',
36
36
  /**
37
- * @description Tooltip text that appears when hovering over largeicon eyedropper button in Contrast Details of the Color Picker
37
+ * @description Tooltip and title for the eyedropper button in the contrast details of the color picker to pick a background color.
38
38
  */
39
39
  toggleBackgroundColorPicker: 'Toggle background color picker',
40
40
  /**
41
- * @description Text of a button in Contrast Details of the Color Picker
41
+ * @description Tooltip and accessible name for the button in the contrast details of the color picker to apply a suggested color to fix low contrast.
42
42
  * @example {rgba(0 0 0 / 100%) } PH1
43
43
  */
44
44
  useSuggestedColorStoFixLow: 'Use suggested color {PH1}to fix low contrast',
45
45
  /**
46
- * @description Label for the APCA contrast in Color Picker
46
+ * @description Label for the APCA contrast ratio in the contrast details of the color picker.
47
47
  */
48
48
  apca: 'APCA',
49
49
  /**
50
- * @description Label aa text content in Contrast Details of the Color Picker
50
+ * @description Label for the WCAG AA contrast threshold in the contrast details of the color picker.
51
51
  */
52
52
  aa: 'AA',
53
53
  /**
54
- * @description Text that starts with a colon and includes a placeholder
54
+ * @description Label prefixing a contrast threshold value with a colon in the contrast details of the color picker.
55
55
  * @example {3.0} PH1
56
56
  */
57
57
  placeholderWithColon: ': {PH1}',
58
58
  /**
59
- * @description Label aaa text content in Contrast Details of the Color Picker
59
+ * @description Label for the WCAG AAA contrast threshold in the contrast details of the color picker.
60
60
  */
61
61
  aaa: 'AAA',
62
62
  /**
63
- * @description Text to show less content
63
+ * @description Tooltip and title for the expand button in the contrast details of the color picker to show fewer details.
64
64
  */
65
65
  showLess: 'Show less',
66
66
  } as const;
@@ -8,7 +8,7 @@ import * as UI from '../../legacy.js';
8
8
 
9
9
  const UIStrings = {
10
10
  /**
11
- * @description Menu warning that some color will be clipped after conversion to match the target gamut
11
+ * @description Warning item in the color format picker context menu indicating that converting to a narrower gamut will cause color shifts.
12
12
  */
13
13
  colorShiftWarning: '⚠️ Conversion to a narrow gamut will cause color shifts',
14
14
  } as const;
@@ -53,80 +53,79 @@ import spectrumStyles from './spectrum.css.js';
53
53
 
54
54
  const UIStrings = {
55
55
  /**
56
- * @description Tooltip text that appears when hovering over largeicon eyedropper button in Spectrum of the Color Picker
56
+ * @description Tooltip and title for the eyedropper button in the color picker.
57
57
  * @example {c} PH1
58
58
  */
59
59
  toggleColorPicker: 'Eye dropper [{PH1}]',
60
60
  /**
61
- * @description Aria label for hue slider in Color Picker
61
+ * @description Accessible name for the hue slider in the color picker.
62
62
  */
63
63
  changeHue: 'Change hue',
64
64
  /**
65
- * @description Aria label for alpha slider in Color Picker. Alpha refers to the alpha channel of a
66
- * color, and this tool allows the user to change the alpha value.
65
+ * @description Accessible name for the alpha slider in the color picker.
67
66
  */
68
67
  changeAlpha: 'Change alpha',
69
68
  /**
70
- * @description Aria label for HEX color format input
69
+ * @description Accessible name for the HEX color format input field in the color picker.
71
70
  */
72
71
  hex: 'HEX',
73
72
  /**
74
- * @description Aria label for color format switcher button in Color Picker
73
+ * @description Accessible name and tooltip for the color format switcher button in the color picker.
75
74
  */
76
75
  changeColorFormat: 'Change color format',
77
76
  /**
78
- * @description Screen reader reads this text when palette switcher button receives focus
77
+ * @description Accessible name and tooltip for the palette switcher button in the color picker.
79
78
  */
80
79
  previewPalettes: 'Preview palettes',
81
80
  /**
82
- * @description Tooltip text that appears when hovering over the largeicon add button in the Spectrum of the Color Picker
81
+ * @description Tooltip and title for the button to add the current color to a custom palette in the color picker.
83
82
  */
84
83
  addToPalette: 'Add to palette',
85
84
  /**
86
- * @description Title text content in Spectrum of the Color Picker
85
+ * @description Header title for the color palettes preview section in the color picker.
87
86
  */
88
- colorPalettes: 'Color Palettes',
87
+ colorPalettes: 'Color palettes',
89
88
  /**
90
- * @description Label for close button in Color Picker
89
+ * @description Label for the button to return to the main color picker view from the palette preview in the color picker.
91
90
  */
92
91
  returnToColorPicker: 'Return to color picker',
93
92
  /**
94
- * @description Aria label which declares hex value of a swatch in the Color Picker
93
+ * @description Accessible name for a color swatch in the color picker palette.
95
94
  * @example {#969696} PH1
96
95
  */
97
96
  colorS: 'Color {PH1}',
98
97
  /**
99
- * @description Color element title in Spectrum of the Color Picker
98
+ * @description Tooltip for a material palette color swatch explaining how to view alternate color shades in the color picker.
100
99
  * @example {#9c1724} PH1
101
100
  */
102
101
  longclickOrLongpressSpaceToShow: 'Long-click or long-press space to show alternate shades of {PH1}',
103
102
  /**
104
- * @description A context menu item in the Color Picker to organize the user-defined color palette (removes the user-defined color to which this action is performed)"
103
+ * @description Context menu item in the custom color palette to delete the selected color in the color picker.
105
104
  */
106
105
  removeColor: 'Remove color',
107
106
  /**
108
- * @description A context menu item in the Color Picker to organize the user-defined color palette (removes all user-defined colors to the right of the color to which this action is performed)"
107
+ * @description Context menu item in the custom color palette to delete all colors positioned to the right of the selected color in the color picker.
109
108
  */
110
109
  removeAllToTheRight: 'Remove all to the right',
111
110
  /**
112
- * @description A context menu item in the Color Picker to organize the user-defined color palette (removes all user-defined colors)"
111
+ * @description Context menu item in the custom color palette to delete all colors from the palette in the color picker.
113
112
  */
114
113
  clearPalette: 'Clear palette',
115
114
  /**
116
- * @description Aria label for RGBA and HSLA color format inputs in Color Picker
115
+ * @description Accessible name for an individual channel input field within a color format in the color picker.
117
116
  * @example {R} PH1
118
117
  * @example {RGBA} PH2
119
118
  */
120
119
  sInS: '{PH1} in {PH2}',
121
120
  /**
122
- * @description Swatch copy icon title in Spectrum of the Color Picker
121
+ * @description Tooltip and title for the copy icon on the color swatch in the color picker.
123
122
  */
124
123
  copyColorToClipboard: 'Copy color to clipboard',
125
124
  /**
126
- * @description Aria text for the swatch position. Swatch is the color picker spectrum tool.
125
+ * @description Accessible announcement explaining keyboard controls to move the color swatch in the color picker spectrum.
127
126
  */
128
127
  pressArrowKeysMessage:
129
- 'Press arrow keys with or without modifiers to move swatch position. Arrow key with Shift key moves position largely, with Ctrl key it is less and with Alt key it is even less',
128
+ 'Use arrow keys to move the swatch position. Use Shift to move further, Ctrl to move less, and Alt to move even less.',
130
129
  } as const;
131
130
  const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/color_picker/Spectrum.ts', UIStrings);
132
131
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -23,7 +23,7 @@ import {
23
23
 
24
24
  const UIStrings = {
25
25
  /**
26
- * @description A context menu item in the Custom Preview Component
26
+ * @description Context menu item to show a custom formatted object as a standard JavaScript object.
27
27
  */
28
28
  showAsJavascriptObject: 'Show as JavaScript object',
29
29
  } as const;
@@ -78,7 +78,7 @@ export class JavaScriptREPL {
78
78
  replMode,
79
79
  silent,
80
80
  };
81
- return await executionContext.evaluate(options, false /* userGesture */, awaitPromise);
81
+ return await executionContext.evaluateWithSelectedFrameFallback(options, false /* userGesture */, awaitPromise);
82
82
  }
83
83
 
84
84
  static async evaluateAndBuildPreview(
@@ -15,12 +15,12 @@ import * as Components from '../utils/utils.js';
15
15
 
16
16
  import {CustomPreviewComponent} from './CustomPreviewComponent.js';
17
17
  import objectPopoverStyles from './objectPopover.css.js';
18
- import {ObjectPropertiesSection, ObjectPropertiesSectionWidget} from './ObjectPropertiesSection.js';
18
+ import {ObjectPropertiesSectionWidget, valueElementForFunctionDescription} from './ObjectPropertiesSection.js';
19
19
  import objectValueStyles from './objectValue.css.js';
20
20
 
21
21
  const UIStrings = {
22
22
  /**
23
- * @description Text that is usually a hyperlink to more documentation
23
+ * @description Link text for opening documentation in an object popover.
24
24
  */
25
25
  learnMore: 'Learn more',
26
26
  } as const;
@@ -68,7 +68,7 @@ export class ObjectPopoverHelper {
68
68
  if (result.type === 'function') {
69
69
  titleElement.classList.add('source-code');
70
70
  // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
71
- render(ObjectPropertiesSection.valueElementForFunctionDescription(result.description), titleElement);
71
+ render(valueElementForFunctionDescription(result.description), titleElement);
72
72
  } else {
73
73
  titleElement.classList.add('monospace');
74
74
  titleElement.createChild('span').textContent = description;