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.
- package/eslint.config.mjs +8 -3
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +8 -0
- package/front_end/core/sdk/NetworkManager.ts +9 -4
- package/front_end/core/sdk/OverlayModel.ts +3 -2
- package/front_end/core/sdk/PreloadingModel.ts +44 -22
- package/front_end/core/sdk/RemoteObject.ts +4 -1
- package/front_end/core/sdk/RuntimeModel.ts +5 -5
- package/front_end/core/sdk/SDKSettings.ts +19 -0
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +3 -1
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -5
- package/front_end/entrypoints/main/MainImpl.ts +9 -10
- package/front_end/entrypoints/main/main-meta.ts +82 -0
- package/front_end/entrypoints/shell/shell.ts +0 -5
- package/front_end/entrypoints/trace_app/trace_app.ts +0 -5
- package/front_end/generated/InspectorBackendCommands.ts +2 -0
- package/front_end/generated/protocol-mapping.d.ts +16 -0
- package/front_end/generated/protocol-proxy-api.d.ts +12 -0
- package/front_end/generated/protocol.ts +12 -0
- package/front_end/models/ai_assistance/ExtensionScope.ts +11 -12
- package/front_end/models/ai_assistance/agents/AiAgent.ts +1 -1
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +2 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +2 -1
- package/front_end/models/ai_assistance/contexts/PerformanceTraceContext.ts +2 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +8 -8
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +8 -8
- package/front_end/models/ai_code_completion/debug.ts +6 -3
- package/front_end/models/ai_code_generation/debug.ts +6 -3
- package/front_end/models/badges/UserBadges.ts +9 -2
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +1 -0
- package/front_end/models/emulation/DeviceModeModel.ts +16 -27
- package/front_end/models/emulation/EmulatedDevices.ts +30 -125
- package/front_end/models/extensions/ExtensionAPI.ts +34 -23
- package/front_end/models/formatter/ScriptFormatter.ts +1 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +5 -1
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +4 -4
- package/front_end/models/logs/NetworkLog.ts +11 -4
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +4 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +7 -1
- package/front_end/models/stack_trace/StackTraceImpl.ts +1 -0
- package/front_end/models/trace/Name.ts +5 -5
- package/front_end/models/trace/Styles.ts +115 -115
- package/front_end/models/trace/extras/TraceTree.ts +2 -1
- package/front_end/models/trace/helpers/Network.ts +4 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +4 -2
- package/front_end/models/trace/insights/CharacterSet.ts +3 -3
- package/front_end/models/trace/insights/DOMSize.ts +1 -1
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +6 -2
- package/front_end/models/trace/insights/FontDisplay.ts +9 -3
- package/front_end/models/trace/insights/ForcedReflow.ts +4 -4
- package/front_end/models/trace/insights/INPBreakdown.ts +3 -4
- package/front_end/models/trace/insights/ImageDelivery.ts +2 -2
- package/front_end/models/trace/insights/LCPBreakdown.ts +1 -1
- package/front_end/models/trace/insights/LCPDiscovery.ts +5 -5
- package/front_end/models/trace/insights/LegacyJavaScript.ts +7 -3
- package/front_end/models/trace/insights/ModernHTTP.ts +3 -3
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +13 -9
- package/front_end/models/trace/insights/RenderBlocking.ts +1 -1
- package/front_end/models/trace/insights/SlowCSSSelector.ts +29 -25
- package/front_end/models/trace/insights/ThirdParties.ts +13 -5
- package/front_end/models/trace/insights/Viewport.ts +4 -2
- package/front_end/models/workspace/IgnoreListManager.ts +53 -17
- package/front_end/panels/accessibility/ARIAAttributesView.ts +11 -2
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +67 -53
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -2
- package/front_end/panels/ai_assistance/components/StylingAgentMarkdownRenderer.ts +2 -2
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +5 -5
- package/front_end/panels/animation/AnimationTimeline.ts +2 -0
- package/front_end/panels/application/ServiceWorkersView.ts +1 -1
- package/front_end/panels/application/StorageView.ts +2 -0
- package/front_end/panels/application/preloading/PreloadingView.ts +9 -3
- package/front_end/panels/application/preloading/components/components.ts +2 -0
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +10 -11
- package/front_end/panels/changes/CombinedDiffView.ts +1 -1
- package/front_end/panels/common/BadgeNotification.ts +1 -1
- package/front_end/panels/common/ExtensionPanel.ts +12 -7
- package/front_end/panels/common/ExtensionServer.ts +85 -26
- package/front_end/panels/common/GdpSignUpDialog.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +2 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +3 -2
- package/front_end/panels/console/console-meta.ts +9 -0
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +9 -4
- package/front_end/panels/elements/CSSRuleValidator.ts +12 -12
- package/front_end/panels/elements/CSSSpecificityBreakdown.ts +1 -1
- package/front_end/panels/elements/ClassesPaneWidget.ts +6 -6
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +1 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +4 -5
- package/front_end/panels/elements/DOMTreeContextMenu.ts +3 -6
- package/front_end/panels/elements/ElementIssueUtils.ts +20 -20
- package/front_end/panels/elements/ElementStatePaneWidget.ts +9 -6
- package/front_end/panels/elements/ElementsPanel.ts +10 -10
- package/front_end/panels/elements/ElementsTreeElement.ts +35 -29
- package/front_end/panels/elements/ElementsTreeOutline.ts +5 -20
- package/front_end/panels/elements/EventListenersWidget.ts +18 -19
- package/front_end/panels/elements/LayersWidget.ts +4 -4
- package/front_end/panels/elements/LayoutPane.ts +11 -11
- package/front_end/panels/elements/MarkerDecorator.ts +3 -3
- package/front_end/panels/elements/PlatformFontsWidget.ts +8 -8
- package/front_end/panels/elements/PropertiesWidget.ts +4 -4
- package/front_end/panels/elements/PropertyRenderer.ts +2 -2
- package/front_end/panels/elements/ShortcutTreeElement.ts +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +14 -14
- package/front_end/panels/elements/StylePropertyTreeElement.ts +21 -21
- package/front_end/panels/elements/StylesSidebarPane.ts +12 -13
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -1
- package/front_end/panels/elements/components/CSSVariableValueView.ts +3 -3
- package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +2 -2
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
- package/front_end/panels/elements/elements-meta.ts +13 -13
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -0
- package/front_end/panels/issues/AffectedElementsView.ts +5 -0
- package/front_end/panels/issues/IssueView.ts +12 -8
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +11 -7
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +2 -0
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
- package/front_end/panels/media/PlayerPropertiesView.ts +309 -416
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/network/NetworkLogView.ts +5 -2
- package/front_end/panels/network/NetworkOverview.ts +11 -5
- package/front_end/panels/network/NetworkPanel.ts +4 -2
- package/front_end/panels/network/NetworkWaterfallColumn.ts +16 -3
- package/front_end/panels/network/RequestHeadersView.ts +4 -4
- package/front_end/panels/network/components/ResponseHeaderSection.ts +7 -4
- package/front_end/panels/network/network-meta.ts +63 -0
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -1
- package/front_end/panels/recorder/RecordingView.ts +89 -73
- package/front_end/panels/recorder/ReplaySection.ts +59 -40
- package/front_end/panels/recorder/injected/injected.ts +4 -0
- package/front_end/panels/security/SecurityPanel.ts +5 -6
- package/front_end/panels/security/SecurityPanelSidebar.ts +244 -204
- package/front_end/panels/security/security.ts +0 -4
- package/front_end/panels/settings/EditFileSystemView.ts +8 -7
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +20 -14
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +0 -3
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +10 -11
- package/front_end/panels/sources/NavigatorView.ts +6 -2
- package/front_end/panels/sources/SourcesNavigator.ts +8 -4
- package/front_end/panels/sources/SourcesPanel.ts +4 -2
- package/front_end/panels/sources/SourcesSearchScope.ts +3 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -3
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +5 -5
- package/front_end/panels/timeline/components/CWVMetrics.ts +1 -2
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +5 -5
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +2 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +2 -2
- package/front_end/panels/timeline/components/Sidebar.ts +3 -3
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +1 -2
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +3 -1
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +1 -2
- package/front_end/panels/timeline/components/insights/Cache.ts +1 -2
- package/front_end/panels/timeline/components/insights/CharacterSet.ts +1 -2
- package/front_end/panels/timeline/components/insights/DOMSize.ts +1 -2
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +2 -2
- package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +2 -2
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +1 -2
- package/front_end/panels/timeline/components/insights/ForcedReflow.ts +1 -2
- package/front_end/panels/timeline/components/insights/INPBreakdown.ts +1 -2
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +1 -2
- package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +13 -13
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +1 -2
- package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +4 -4
- package/front_end/panels/timeline/components/insights/ModernHTTP.ts +1 -2
- package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +10 -8
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +2 -2
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +3 -1
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +2 -2
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +1 -2
- package/front_end/panels/timeline/components/insights/Viewport.ts +1 -2
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +1 -2
- package/front_end/panels/timeline/timeline.ts +0 -2
- package/front_end/panels/web_audio/WebAudioView.ts +14 -6
- package/front_end/panels/webauthn/WebauthnPane.ts +9 -9
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/web-vitals/rebuild.sh +1 -1
- package/front_end/ui/components/diff_view/DiffView.ts +2 -1
- package/front_end/ui/components/report_view/ReportView.docs.ts +2 -2
- package/front_end/ui/components/text_editor/javascript.ts +12 -13
- package/front_end/ui/legacy/GlassPane.ts +38 -14
- package/front_end/ui/legacy/Treeoutline.ts +14 -3
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +11 -11
- package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +19 -20
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +3 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +185 -355
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +3 -8
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +15 -16
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +4 -4
- package/front_end/ui/legacy/components/utils/Linkifier.ts +8 -10
- package/front_end/ui/settings/InspectorMainSettings.ts +12 -0
- package/front_end/ui/settings/settings.ts +2 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +32 -0
- package/mcp/mcp.ts +0 -9
- package/package.json +1 -1
- package/front_end/core/sdk/sdk-meta.ts +0 -40
- package/front_end/models/badges/badges-meta.ts +0 -27
- package/front_end/models/logs/logs-meta.ts +0 -84
- package/front_end/models/persistence/persistence-meta.ts +0 -69
- package/front_end/models/workspace/workspace-meta.ts +0 -40
- package/front_end/panels/security/OriginTreeElement.ts +0 -60
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
61
|
+
* @description Accessible name for the hue slider in the color picker.
|
|
62
62
|
*/
|
|
63
63
|
changeHue: 'Change hue',
|
|
64
64
|
/**
|
|
65
|
-
* @description
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
85
|
+
* @description Header title for the color palettes preview section in the color picker.
|
|
87
86
|
*/
|
|
88
|
-
colorPalettes: 'Color
|
|
87
|
+
colorPalettes: 'Color palettes',
|
|
89
88
|
/**
|
|
90
|
-
* @description Label for
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
125
|
+
* @description Accessible announcement explaining keyboard controls to move the color swatch in the color picker spectrum.
|
|
127
126
|
*/
|
|
128
127
|
pressArrowKeysMessage:
|
|
129
|
-
'
|
|
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
|
|
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.
|
|
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 {
|
|
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
|
|
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(
|
|
71
|
+
render(valueElementForFunctionDescription(result.description), titleElement);
|
|
72
72
|
} else {
|
|
73
73
|
titleElement.classList.add('monospace');
|
|
74
74
|
titleElement.createChild('span').textContent = description;
|