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
|
@@ -8,71 +8,71 @@ import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
|
8
8
|
|
|
9
9
|
const UIStrings = {
|
|
10
10
|
/**
|
|
11
|
-
* @description Tooltip text shown in the Elements panel when
|
|
11
|
+
* @description Tooltip text shown in the Elements panel when a label element has an incorrect for attribute.
|
|
12
12
|
*/
|
|
13
13
|
formLabelForNameError: 'Incorrect use of <label for=FORM_ELEMENT>',
|
|
14
14
|
/**
|
|
15
|
-
* @description Tooltip text shown in the Elements panel when
|
|
15
|
+
* @description Tooltip text shown in the Elements panel when a form field has a duplicate ID.
|
|
16
16
|
*/
|
|
17
|
-
formDuplicateIdForInputError: 'Duplicate form field
|
|
17
|
+
formDuplicateIdForInputError: 'Duplicate form field ID in the same form',
|
|
18
18
|
/**
|
|
19
|
-
* @description Tooltip text shown in the Elements panel when
|
|
19
|
+
* @description Tooltip text shown in the Elements panel when a form field has no label or aria-labelledby attribute.
|
|
20
20
|
*/
|
|
21
21
|
formInputWithNoLabelError: 'Form field without valid aria-labelledby attribute or associated label',
|
|
22
22
|
/**
|
|
23
|
-
* @description Tooltip text shown in the Elements panel when an
|
|
23
|
+
* @description Tooltip text shown in the Elements panel when an autocomplete attribute is empty or incorrect.
|
|
24
24
|
*/
|
|
25
25
|
formAutocompleteAttributeEmptyError: 'Incorrect use of autocomplete attribute',
|
|
26
26
|
/**
|
|
27
|
-
* @description Tooltip text shown in the Elements panel when
|
|
27
|
+
* @description Tooltip text shown in the Elements panel when a form field lacks both ID and name attributes.
|
|
28
28
|
*/
|
|
29
|
-
formEmptyIdAndNameAttributesForInputError: 'A form field element should have an
|
|
29
|
+
formEmptyIdAndNameAttributesForInputError: 'A form field element should have an ID or name attribute',
|
|
30
30
|
/**
|
|
31
|
-
* @description Tooltip text shown in the Elements panel when an
|
|
31
|
+
* @description Tooltip text shown in the Elements panel when an aria-labelledby attribute references a non-existent element ID.
|
|
32
32
|
*/
|
|
33
|
-
formAriaLabelledByToNonExistingId: 'An aria-labelledby attribute doesn’t match any element
|
|
33
|
+
formAriaLabelledByToNonExistingId: 'An aria-labelledby attribute doesn’t match any element ID',
|
|
34
34
|
/**
|
|
35
|
-
* @description Tooltip text shown in the Elements panel when an element
|
|
35
|
+
* @description Tooltip text shown in the Elements panel when an element lacks an autocomplete attribute.
|
|
36
36
|
*/
|
|
37
37
|
formInputAssignedAutocompleteValueToIdOrNameAttributeError: 'An element doesn’t have an autocomplete attribute',
|
|
38
38
|
/**
|
|
39
|
-
* @description Tooltip text shown in the Elements panel when
|
|
39
|
+
* @description Tooltip text shown in the Elements panel when a label is not associated with any form field.
|
|
40
40
|
*/
|
|
41
41
|
formLabelHasNeitherForNorNestedInput: 'No label associated with a form field',
|
|
42
42
|
/**
|
|
43
|
-
* @description Tooltip text shown in the Elements panel when
|
|
43
|
+
* @description Tooltip text shown in the Elements panel when a label's for attribute references a non-existent element ID.
|
|
44
44
|
*/
|
|
45
45
|
formLabelForMatchesNonExistingIdError: 'Incorrect use of <label for=FORM_ELEMENT>',
|
|
46
46
|
/**
|
|
47
|
-
* @description Tooltip text shown in the Elements panel when
|
|
47
|
+
* @description Tooltip text shown in the Elements panel when a form field uses a non-standard autocomplete value.
|
|
48
48
|
*/
|
|
49
49
|
formInputHasWrongButWellIntendedAutocompleteValueError: 'Non-standard autocomplete attribute value',
|
|
50
50
|
/**
|
|
51
|
-
* @description Tooltip text shown in the Elements panel when an element
|
|
51
|
+
* @description Tooltip text shown in the Elements panel when an invalid element or text node is inside a select element.
|
|
52
52
|
*/
|
|
53
53
|
disallowedSelectChild: 'Invalid element or text node within <select>',
|
|
54
54
|
/**
|
|
55
|
-
* @description Tooltip text shown in the Elements panel when an element
|
|
55
|
+
* @description Tooltip text shown in the Elements panel when an invalid element or text node is inside an optgroup element.
|
|
56
56
|
*/
|
|
57
57
|
disallowedOptGroupChild: 'Invalid element or text node within <optgroup>',
|
|
58
58
|
/**
|
|
59
|
-
* @description Tooltip text shown in the Elements panel when
|
|
59
|
+
* @description Tooltip text shown in the Elements panel when non-phrasing content is used inside an option element.
|
|
60
60
|
*/
|
|
61
61
|
nonPhrasingContentOptionChild: 'Non-phrasing content used within an <option> element',
|
|
62
62
|
/**
|
|
63
|
-
* @description Tooltip text shown in the Elements panel when an element
|
|
63
|
+
* @description Tooltip text shown in the Elements panel when an interactive element is inside an option element.
|
|
64
64
|
*/
|
|
65
65
|
interactiveContentOptionChild: 'Interactive element inside of an <option> element',
|
|
66
66
|
/**
|
|
67
|
-
* @description Tooltip text shown in the Elements panel when an element
|
|
67
|
+
* @description Tooltip text shown in the Elements panel when an interactive element is inside a legend element.
|
|
68
68
|
*/
|
|
69
69
|
interactiveContentLegendChild: 'Interactive element inside of a <legend> element',
|
|
70
70
|
/**
|
|
71
|
-
* @description Tooltip text shown in the Elements panel when an element
|
|
71
|
+
* @description Tooltip text shown in the Elements panel when an element with invalid attributes is inside a select element.
|
|
72
72
|
*/
|
|
73
73
|
interactiveContentAttributesSelectDescendant: 'Element with invalid attributes within a <select> element',
|
|
74
74
|
/**
|
|
75
|
-
* @description Tooltip text shown in the Elements panel when an element
|
|
75
|
+
* @description Tooltip text shown in the Elements panel when an interactive element is inside a summary element.
|
|
76
76
|
*/
|
|
77
77
|
interactiveContentSummaryDescendant: 'Interactive element inside of a <summary> element',
|
|
78
78
|
} as const;
|
|
@@ -18,18 +18,18 @@ const {bindToSetting} = UI.UIUtils;
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Title of a section in the
|
|
21
|
+
* @description Title of a section in the force element state section of the Styles tab in the Elements panel. The
|
|
22
22
|
* controls in this section allow users to force a particular state on the selected element, e.g. a
|
|
23
23
|
* focused state via :focus or a hover state via :hover.
|
|
24
24
|
*/
|
|
25
25
|
forceElementState: 'Force element state',
|
|
26
26
|
/**
|
|
27
|
-
* @description Tooltip text in
|
|
27
|
+
* @description Tooltip text in the force element state section of the Styles tab in the Elements panel. For a button that
|
|
28
28
|
* opens a tool that toggles the various states of the selected element on/off.
|
|
29
29
|
*/
|
|
30
|
-
toggleElementState: 'Toggle
|
|
30
|
+
toggleElementState: 'Toggle element state',
|
|
31
31
|
/**
|
|
32
|
-
* @description The name of a checkbox setting in the
|
|
32
|
+
* @description The name of a checkbox setting in the force element state section of the Styles tab in the Elements panel. This setting
|
|
33
33
|
* emulates/pretends that the webpage is focused.
|
|
34
34
|
*/
|
|
35
35
|
emulateFocusedPage: 'Emulate a focused page',
|
|
@@ -38,11 +38,11 @@ const UIStrings = {
|
|
|
38
38
|
*/
|
|
39
39
|
emulatesAFocusedPage: 'Keep page focused. Commonly used for debugging disappearing elements.',
|
|
40
40
|
/**
|
|
41
|
-
* @description
|
|
41
|
+
* @description Title of a section in the Styles tab of the Elements panel. Allows users to force specific states of the selected element.
|
|
42
42
|
*/
|
|
43
43
|
forceElementSpecificStates: 'Force specific element state',
|
|
44
44
|
/**
|
|
45
|
-
* @description Text that is usually a hyperlink to more documentation
|
|
45
|
+
* @description Text that is usually a hyperlink to more documentation.
|
|
46
46
|
*/
|
|
47
47
|
learnMore: 'Learn more',
|
|
48
48
|
} as const;
|
|
@@ -427,6 +427,9 @@ export class ButtonProvider implements UI.Toolbar.Provider {
|
|
|
427
427
|
private clicked(): void {
|
|
428
428
|
ElementsPanel.instance().showToolbarPane(!this.view.isShowing() ? this.view : null, this.button);
|
|
429
429
|
}
|
|
430
|
+
showPane(): void {
|
|
431
|
+
ElementsPanel.instance().showToolbarPane(this.view, this.button);
|
|
432
|
+
}
|
|
430
433
|
item(): UI.Toolbar.ToolbarToggle {
|
|
431
434
|
return this.button;
|
|
432
435
|
}
|
|
@@ -64,41 +64,41 @@ import {
|
|
|
64
64
|
|
|
65
65
|
const UIStrings = {
|
|
66
66
|
/**
|
|
67
|
-
* @description Placeholder text for the search box the Elements
|
|
67
|
+
* @description Placeholder text for the search box in the Elements panel. Selector refers to CSS
|
|
68
68
|
* selectors.
|
|
69
69
|
*/
|
|
70
70
|
findByStringSelectorOrXpath: 'Find by string, selector, or `XPath`',
|
|
71
71
|
/**
|
|
72
|
-
* @description Tooltip for the
|
|
72
|
+
* @description Tooltip for the computed styles sidebar toggle in the Styles tab of the Elements panel. Command to
|
|
73
73
|
* open/show the sidebar.
|
|
74
74
|
*/
|
|
75
|
-
showComputedStylesSidebar: 'Show Computed
|
|
75
|
+
showComputedStylesSidebar: 'Show Computed styles sidebar',
|
|
76
76
|
/**
|
|
77
|
-
* @description Tooltip for the
|
|
77
|
+
* @description Tooltip for the computed styles sidebar toggle in the Styles tab of the Elements panel. Command to
|
|
78
78
|
* close/hide the sidebar.
|
|
79
79
|
*/
|
|
80
|
-
hideComputedStylesSidebar: 'Hide Computed
|
|
80
|
+
hideComputedStylesSidebar: 'Hide Computed styles sidebar',
|
|
81
81
|
/**
|
|
82
82
|
* @description Screen reader announcement when the computed styles sidebar is shown in the Elements panel.
|
|
83
83
|
*/
|
|
84
|
-
computedStylesShown: 'Computed
|
|
84
|
+
computedStylesShown: 'Computed styles sidebar shown',
|
|
85
85
|
/**
|
|
86
86
|
* @description Screen reader announcement when the computed styles sidebar is hidden in the Elements panel.
|
|
87
87
|
*/
|
|
88
|
-
computedStylesHidden: 'Computed
|
|
88
|
+
computedStylesHidden: 'Computed styles sidebar hidden',
|
|
89
89
|
/**
|
|
90
|
-
* @description Title of a
|
|
90
|
+
* @description Title of a tab in the Elements panel sidebar that shows computed styles for the selected
|
|
91
91
|
* HTML element. Computed styles are the final, actual styles of the element, including all
|
|
92
92
|
* implicit and specified styles.
|
|
93
93
|
*/
|
|
94
94
|
computed: 'Computed',
|
|
95
95
|
/**
|
|
96
|
-
* @description Title of a
|
|
96
|
+
* @description Title of a tab in the Elements panel sidebar that shows the CSS styles for the selected
|
|
97
97
|
* HTML element.
|
|
98
98
|
*/
|
|
99
99
|
styles: 'Styles',
|
|
100
100
|
/**
|
|
101
|
-
* @description A context menu item to reveal a node in the DOM tree of the Elements
|
|
101
|
+
* @description A context menu item to reveal a node in the DOM tree of the Elements panel.
|
|
102
102
|
*/
|
|
103
103
|
openInElementsPanel: 'Open in Elements panel',
|
|
104
104
|
/**
|
|
@@ -68,6 +68,7 @@ import * as ElementsComponents from './components/components.js';
|
|
|
68
68
|
import {cssPath, jsPath, xPath} from './DOMPath.js';
|
|
69
69
|
import {getElementIssueDetails} from './ElementIssueUtils.js';
|
|
70
70
|
import {ElementsPanel} from './ElementsPanel.js';
|
|
71
|
+
import * as ElementStatePaneWidget from './ElementStatePaneWidget.js';
|
|
71
72
|
import {type ElementsTreeOutline, MappedCharToEntity} from './ElementsTreeOutline.js';
|
|
72
73
|
import {ImagePreviewPopover} from './ImagePreviewPopover.js';
|
|
73
74
|
import {getRegisteredDecorators, type MarkerDecorator, type MarkerDecoratorRegistration} from './MarkerDecorator.js';
|
|
@@ -101,73 +102,73 @@ const UIStrings = {
|
|
|
101
102
|
*/
|
|
102
103
|
forceState: 'Force state',
|
|
103
104
|
/**
|
|
104
|
-
* @description Hint element title in
|
|
105
|
+
* @description Hint element title in the DOM tree of the Elements panel.
|
|
105
106
|
* @example {0} PH1
|
|
106
107
|
*/
|
|
107
108
|
useSInTheConsoleToReferToThis: 'Use {PH1} in the console to refer to this element.',
|
|
108
109
|
/**
|
|
109
|
-
* @description
|
|
110
|
-
* contents. "Select all" should be used as a verb.
|
|
111
|
-
*/
|
|
112
|
-
selectAll: 'Select all',
|
|
113
|
-
/**
|
|
114
|
-
* @description Text to cut an element, cut should be used as a verb
|
|
110
|
+
* @description Text to cut an element, cut should be used as a verb.
|
|
115
111
|
*/
|
|
116
112
|
cut: 'Cut',
|
|
117
113
|
/**
|
|
118
|
-
* @description Text for copying, copy should be used as a verb
|
|
114
|
+
* @description Text for copying, copy should be used as a verb.
|
|
119
115
|
*/
|
|
120
116
|
copy: 'Copy',
|
|
121
117
|
/**
|
|
122
|
-
* @description Text to paste an element, paste should be used as a verb
|
|
118
|
+
* @description Text to paste an element, paste should be used as a verb.
|
|
123
119
|
*/
|
|
124
120
|
paste: 'Paste',
|
|
125
121
|
/**
|
|
126
|
-
* @description
|
|
122
|
+
* @description Context menu item in the Edit as HTML editor that selects the editor's entire
|
|
123
|
+
* contents. "Select all" should be used as a verb.
|
|
124
|
+
*/
|
|
125
|
+
selectAll: 'Select all',
|
|
126
|
+
/**
|
|
127
|
+
* @description Text in the DOM tree of the Elements panel.
|
|
127
128
|
*/
|
|
128
129
|
valueIsTooLargeToEdit: '<value is too large to edit>',
|
|
129
130
|
/**
|
|
130
|
-
* @description Element text content in
|
|
131
|
+
* @description Element text content in the DOM tree of the Elements panel.
|
|
131
132
|
*/
|
|
132
133
|
children: 'Children:',
|
|
133
134
|
/**
|
|
134
|
-
* @description ARIA label for Elements Tree adorners
|
|
135
|
+
* @description ARIA label for Elements Tree adorners.
|
|
135
136
|
*/
|
|
136
137
|
enableGridMode: 'Enable grid mode',
|
|
137
138
|
/**
|
|
138
|
-
* @description ARIA label for Elements Tree adorners
|
|
139
|
+
* @description ARIA label for Elements Tree adorners.
|
|
139
140
|
*/
|
|
140
141
|
disableGridMode: 'Disable grid mode',
|
|
141
142
|
/**
|
|
142
|
-
* @description ARIA label for Elements Tree adorners
|
|
143
|
+
* @description ARIA label for Elements Tree adorners.
|
|
143
144
|
*/
|
|
144
145
|
enableGridLanesMode: 'Enable grid-lanes mode',
|
|
145
146
|
/**
|
|
146
|
-
* @description ARIA label for Elements Tree adorners
|
|
147
|
+
* @description ARIA label for Elements Tree adorners.
|
|
147
148
|
*/
|
|
148
149
|
disableGridLanesMode: 'Disable grid-lanes mode',
|
|
149
150
|
/**
|
|
150
|
-
* @description ARIA label for an elements tree adorner
|
|
151
|
+
* @description ARIA label for an elements tree adorner.
|
|
151
152
|
*/
|
|
152
153
|
forceOpenPopover: 'Keep this popover open',
|
|
153
154
|
/**
|
|
154
|
-
* @description ARIA label for an elements tree adorner
|
|
155
|
+
* @description ARIA label for an elements tree adorner.
|
|
155
156
|
*/
|
|
156
157
|
stopForceOpenPopover: 'Stop keeping this popover open',
|
|
157
158
|
/**
|
|
158
|
-
* @description ARIA label for an elements tree adorner
|
|
159
|
+
* @description ARIA label for an elements tree adorner.
|
|
159
160
|
*/
|
|
160
161
|
forceShowInterest: 'Trigger interest on this element',
|
|
161
162
|
/**
|
|
162
|
-
* @description ARIA label for an elements tree adorner
|
|
163
|
+
* @description ARIA label for an elements tree adorner.
|
|
163
164
|
*/
|
|
164
165
|
stopForceShowInterest: 'Cancel interest on this element',
|
|
165
166
|
/**
|
|
166
|
-
* @description Label of the adorner for flex elements in the Elements panel
|
|
167
|
+
* @description Label of the adorner for flex elements in the Elements panel.
|
|
167
168
|
*/
|
|
168
169
|
enableFlexMode: 'Enable flex mode',
|
|
169
170
|
/**
|
|
170
|
-
* @description Label of the adorner for flex elements in the Elements panel
|
|
171
|
+
* @description Label of the adorner for flex elements in the Elements panel.
|
|
171
172
|
*/
|
|
172
173
|
disableFlexMode: 'Disable flex mode',
|
|
173
174
|
/**
|
|
@@ -202,23 +203,23 @@ const UIStrings = {
|
|
|
202
203
|
disableStartingStyle: 'Disable @starting-style mode',
|
|
203
204
|
/**
|
|
204
205
|
* @description Label of an adorner in the Elements panel. When clicked, it redirects
|
|
205
|
-
* to the Media
|
|
206
|
+
* to the Media panel.
|
|
206
207
|
*/
|
|
207
208
|
openMediaPanel: 'Jump to Media panel',
|
|
208
209
|
/**
|
|
209
|
-
* @description Text of a tooltip to redirect to another element in the Elements panel
|
|
210
|
+
* @description Text of a tooltip to redirect to another element in the Elements panel.
|
|
210
211
|
*/
|
|
211
212
|
showPopoverTarget: 'Show element associated with the `popovertarget` attribute',
|
|
212
213
|
/**
|
|
213
|
-
* @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `interesttarget` attribute
|
|
214
|
+
* @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `interesttarget` attribute.
|
|
214
215
|
*/
|
|
215
216
|
showInterestTarget: 'Show element associated with the `interesttarget` attribute',
|
|
216
217
|
/**
|
|
217
|
-
* @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `commandfor` attribute
|
|
218
|
+
* @description Text of a tooltip to redirect to another element in the Elements panel, associated with the `commandfor` attribute.
|
|
218
219
|
*/
|
|
219
220
|
showCommandForTarget: 'Show element associated with the `commandfor` attribute',
|
|
220
221
|
/**
|
|
221
|
-
* @description Text of the tooltip for scroll adorner.
|
|
222
|
+
* @description Text of the tooltip for the scroll adorner.
|
|
222
223
|
*/
|
|
223
224
|
elementHasScrollableOverflow: 'This element has a scrollable overflow',
|
|
224
225
|
/**
|
|
@@ -231,9 +232,9 @@ const UIStrings = {
|
|
|
231
232
|
*/
|
|
232
233
|
showCustomElementDefinition: 'Show custom element definition',
|
|
233
234
|
/**
|
|
234
|
-
* @description
|
|
235
|
+
* @description ARIA label for the top-layer adorner in the DOM tree of the Elements panel. When clicked, it reveals the true location of an element.
|
|
235
236
|
*/
|
|
236
|
-
reveal: '
|
|
237
|
+
reveal: 'Reveal',
|
|
237
238
|
} as const;
|
|
238
239
|
const str_ = i18n.i18n.registerUIStrings('panels/elements/ElementsTreeElement.ts', UIStrings);
|
|
239
240
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -334,7 +335,7 @@ export interface ViewOutput {
|
|
|
334
335
|
editorRef?: TextEditor.TextEditor.TextEditor;
|
|
335
336
|
}
|
|
336
337
|
|
|
337
|
-
export function adornerRef(): DirectiveResult
|
|
338
|
+
export function adornerRef(): DirectiveResult {
|
|
338
339
|
let adorner: Adorners.Adorner.Adorner|undefined;
|
|
339
340
|
return ref(el => {
|
|
340
341
|
if (adorner) {
|
|
@@ -1264,6 +1265,11 @@ export class ElementsTreeWidget extends UI.Widget.Widget {
|
|
|
1264
1265
|
|
|
1265
1266
|
function setPseudoStateCallback(pseudoState: string, enabled: boolean): void {
|
|
1266
1267
|
node.domModel().cssModel().forcePseudoState(node, pseudoState, enabled);
|
|
1268
|
+
// Show the element state pane after the user sets an element state from
|
|
1269
|
+
// the context menu. We assume it should help the users to discover the
|
|
1270
|
+
// element state pane and prevent overhead of using the context menu
|
|
1271
|
+
// (http://crbug.com/519254907).
|
|
1272
|
+
ElementStatePaneWidget.ButtonProvider.instance().showPane();
|
|
1267
1273
|
}
|
|
1268
1274
|
}
|
|
1269
1275
|
|
|
@@ -60,11 +60,11 @@ import {TopLayerContainer} from './TopLayerContainer.js';
|
|
|
60
60
|
|
|
61
61
|
const UIStrings = {
|
|
62
62
|
/**
|
|
63
|
-
* @description ARIA accessible name in
|
|
63
|
+
* @description ARIA accessible name in the DOM tree outline of the Elements panel.
|
|
64
64
|
*/
|
|
65
65
|
pageDom: 'Page DOM',
|
|
66
66
|
/**
|
|
67
|
-
* @description
|
|
67
|
+
* @description Text for the button to expand all tree nodes in the DOM tree outline of the Elements panel.
|
|
68
68
|
* @example {3} PH1
|
|
69
69
|
*/
|
|
70
70
|
showAllNodesDMore: 'Show all nodes ({PH1} more)',
|
|
@@ -74,9 +74,9 @@ const UIStrings = {
|
|
|
74
74
|
*/
|
|
75
75
|
showAllLines: 'Show all ({PH1} lines)',
|
|
76
76
|
/**
|
|
77
|
-
* @description Text for popover that directs to Issues panel
|
|
77
|
+
* @description Text for popover that directs to the Issues panel.
|
|
78
78
|
*/
|
|
79
|
-
viewIssue: 'View
|
|
79
|
+
viewIssue: 'View issue:',
|
|
80
80
|
} as const;
|
|
81
81
|
const str_ = i18n.i18n.registerUIStrings('panels/elements/ElementsTreeOutline.ts', UIStrings);
|
|
82
82
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -113,7 +113,6 @@ interface ViewInput {
|
|
|
113
113
|
onElementsTreeUpdated: (event: Common.EventTarget.EventTargetEvent<SDK.DOMModel.DOMNode[]>) => void;
|
|
114
114
|
onElementCollapsed: () => void;
|
|
115
115
|
onElementExpanded: () => void;
|
|
116
|
-
onSaveNodeToTempVariable?: (node: SDK.DOMModel.DOMNode) => void;
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
interface ViewOutput {
|
|
@@ -217,7 +216,7 @@ export const DEFAULT_VIEW = (input: ViewInput, output: ViewOutput, target: HTMLE
|
|
|
217
216
|
output.elementsTreeOutline.maxTreeDepth = input.maxTreeDepth;
|
|
218
217
|
output.elementsTreeOutline.enableContextMenu = input.enableContextMenu ?? true;
|
|
219
218
|
output.elementsTreeOutline.showContextMenu = (treeElement, event) => {
|
|
220
|
-
void showContextMenu(treeElement, event
|
|
219
|
+
void showContextMenu(treeElement, event);
|
|
221
220
|
};
|
|
222
221
|
let needsUpdate = false;
|
|
223
222
|
const showComments = input.showComments ?? true;
|
|
@@ -546,9 +545,6 @@ export class DOMTreeWidget extends UI.Widget.Widget {
|
|
|
546
545
|
onElementExpanded: () => {
|
|
547
546
|
this.#clearHighlightedNode();
|
|
548
547
|
},
|
|
549
|
-
onSaveNodeToTempVariable: node => {
|
|
550
|
-
void this.saveNodeToTempVariable(node);
|
|
551
|
-
},
|
|
552
548
|
},
|
|
553
549
|
this.#viewOutput, this.contentElement);
|
|
554
550
|
if (firstRender && this.#viewOutput.elementsTreeOutline) {
|
|
@@ -640,10 +636,6 @@ export class DOMTreeWidget extends UI.Widget.Widget {
|
|
|
640
636
|
void this.#viewOutput.elementsTreeOutline?.findTreeElement(node)?.copyStyles();
|
|
641
637
|
}
|
|
642
638
|
|
|
643
|
-
async saveNodeToTempVariable(node: SDK.DOMModel.DOMNode): Promise<void> {
|
|
644
|
-
await this.#viewOutput.elementsTreeOutline?.saveNodeToTempVariable(node);
|
|
645
|
-
}
|
|
646
|
-
|
|
647
639
|
/**
|
|
648
640
|
* FIXME: used to determine focus state, probably we can have a better
|
|
649
641
|
* way to do it.
|
|
@@ -1550,13 +1542,6 @@ export class ElementsTreeOutline extends
|
|
|
1550
1542
|
|
|
1551
1543
|
showContextMenu: (treeElement: ElementsTreeElement, event: Event) => void = () => {};
|
|
1552
1544
|
|
|
1553
|
-
async saveNodeToTempVariable(node: SDK.DOMModel.DOMNode): Promise<void> {
|
|
1554
|
-
const remoteObjectForConsole = await node.resolveToObject();
|
|
1555
|
-
const consoleModel = remoteObjectForConsole?.runtimeModel().target()?.model(SDK.ConsoleModel.ConsoleModel);
|
|
1556
|
-
await consoleModel?.saveToTempVariable(
|
|
1557
|
-
UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext), remoteObjectForConsole);
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
1545
|
runPendingUpdates(): void {
|
|
1561
1546
|
this.updateModifiedNodes();
|
|
1562
1547
|
}
|
|
@@ -43,35 +43,35 @@ const {bindToAction, bindToSetting} = UI.UIUtils;
|
|
|
43
43
|
|
|
44
44
|
const UIStrings = {
|
|
45
45
|
/**
|
|
46
|
-
* @description Title of show framework listeners setting in
|
|
46
|
+
* @description Title of show framework listeners setting in the Event listeners tab of the Elements panel.
|
|
47
47
|
*/
|
|
48
48
|
frameworkListeners: 'Resolve `Framework` listeners',
|
|
49
49
|
/**
|
|
50
|
-
* @description Tooltip text that appears on the setting when hovering over it in Event
|
|
50
|
+
* @description Tooltip text that appears on the setting when hovering over it in the Event listeners tab of the Elements panel.
|
|
51
51
|
*/
|
|
52
52
|
showListenersOnTheAncestors: 'Show listeners on the ancestors',
|
|
53
53
|
/**
|
|
54
|
-
* @description Alternative title text of a setting in Event
|
|
54
|
+
* @description Alternative title text of a setting in the Event listeners tab of the Elements panel.
|
|
55
55
|
*/
|
|
56
56
|
ancestors: 'Ancestors',
|
|
57
57
|
/**
|
|
58
|
-
* @description Title of dispatch filter in
|
|
58
|
+
* @description Title of dispatch filter in the Event listeners tab of the Elements panel.
|
|
59
59
|
*/
|
|
60
60
|
eventListenersCategory: 'Event listeners category',
|
|
61
61
|
/**
|
|
62
|
-
* @description Text for everything
|
|
62
|
+
* @description Text for everything.
|
|
63
63
|
*/
|
|
64
64
|
all: 'All',
|
|
65
65
|
/**
|
|
66
|
-
* @description Text in Event
|
|
66
|
+
* @description Text in the Event listeners tab of the Elements panel.
|
|
67
67
|
*/
|
|
68
68
|
passive: 'Passive',
|
|
69
69
|
/**
|
|
70
|
-
* @description Text in Event
|
|
70
|
+
* @description Text in the Event listeners tab of the Elements panel.
|
|
71
71
|
*/
|
|
72
72
|
blocking: 'Blocking',
|
|
73
73
|
/**
|
|
74
|
-
* @description Tooltip text that appears on the setting when hovering over it in Event
|
|
74
|
+
* @description Tooltip text that appears on the setting when hovering over it in the Event listeners tab of the Elements panel.
|
|
75
75
|
*/
|
|
76
76
|
resolveEventListenersBoundWith: 'Resolve event listeners bound with framework',
|
|
77
77
|
} as const;
|
|
@@ -240,17 +240,16 @@ export class EventListenersWidget extends UI.Widget.VBox {
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
return context
|
|
243
|
-
.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
/* awaitPromise */ false)
|
|
243
|
+
.evaluateWithSelectedFrameFallback({
|
|
244
|
+
expression: 'self',
|
|
245
|
+
objectGroup: objectGroupName,
|
|
246
|
+
includeCommandLineAPI: false,
|
|
247
|
+
silent: true,
|
|
248
|
+
returnByValue: false,
|
|
249
|
+
generatePreview: false,
|
|
250
|
+
},
|
|
251
|
+
/* userGesture */ false,
|
|
252
|
+
/* awaitPromise */ false)
|
|
254
253
|
.then(result => {
|
|
255
254
|
if ('object' in result) {
|
|
256
255
|
return result.object;
|
|
@@ -18,15 +18,15 @@ const {render, html, Directives: {ref}} = Lit;
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Title of a section in the
|
|
21
|
+
* @description Title of a section in the Layers tab of the Elements panel.
|
|
22
22
|
* The widget shows the layers present in the context of the currently selected node.
|
|
23
|
-
|
|
23
|
+
*/
|
|
24
24
|
cssLayersTitle: 'CSS layers',
|
|
25
25
|
/**
|
|
26
|
-
* @description Tooltip text in
|
|
26
|
+
* @description Tooltip text in the Layers tab of the Elements panel.
|
|
27
27
|
* For a button that opens a tool that shows the layers present in the current document.
|
|
28
28
|
*/
|
|
29
|
-
toggleCSSLayers: 'Toggle CSS
|
|
29
|
+
toggleCSSLayers: 'Toggle CSS layers view',
|
|
30
30
|
} as const;
|
|
31
31
|
const str_ = i18n.i18n.registerUIStrings('panels/elements/LayersWidget.ts', UIStrings);
|
|
32
32
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -18,39 +18,39 @@ import layoutPaneStyles from './layoutPane.css.js';
|
|
|
18
18
|
|
|
19
19
|
const UIStrings = {
|
|
20
20
|
/**
|
|
21
|
-
* @description Title of the input to select the overlay color for an element using the color picker
|
|
21
|
+
* @description Title of the input to select the overlay color for an element using the color picker.
|
|
22
22
|
*/
|
|
23
23
|
chooseElementOverlayColor: 'Choose the overlay color for this element',
|
|
24
24
|
/**
|
|
25
|
-
* @description Title of the show element button in the Layout
|
|
25
|
+
* @description Title of the show element button in the Layout tab of the Elements panel.
|
|
26
26
|
*/
|
|
27
27
|
showElementInTheElementsPanel: 'Show element in the Elements panel',
|
|
28
28
|
/**
|
|
29
|
-
* @description Title of a section on CSS Grid/Grid Lanes tooling
|
|
29
|
+
* @description Title of a section on CSS Grid/Grid Lanes tooling.
|
|
30
30
|
*/
|
|
31
|
-
gridOrGridLanes: 'Grid /
|
|
31
|
+
gridOrGridLanes: 'Grid / grid lanes',
|
|
32
32
|
/**
|
|
33
|
-
* @description Title of a section in the Layout
|
|
33
|
+
* @description Title of a section in the Layout tab of the Elements panel.
|
|
34
34
|
*/
|
|
35
35
|
overlayDisplaySettings: 'Overlay display settings',
|
|
36
36
|
/**
|
|
37
|
-
* @description Title of a section in Layout
|
|
37
|
+
* @description Title of a section in the Layout tab of the Elements panel.
|
|
38
38
|
*/
|
|
39
|
-
gridOrGridLanesOverlays: 'Grid /
|
|
39
|
+
gridOrGridLanesOverlays: 'Grid / grid lanes overlays',
|
|
40
40
|
/**
|
|
41
|
-
* @description Message in the Layout
|
|
41
|
+
* @description Message in the Layout tab informing users that no CSS Grid/Grid Lanes layouts were found on the page.
|
|
42
42
|
*/
|
|
43
43
|
noGridOrGridLanesLayoutsFoundOnThisPage: 'No grid or grid lanes layouts found on this page',
|
|
44
44
|
/**
|
|
45
|
-
* @description Title of the Flexbox section in the Layout panel
|
|
45
|
+
* @description Title of the Flexbox section in the Layout tab of the Elements panel.
|
|
46
46
|
*/
|
|
47
47
|
flexbox: 'Flexbox',
|
|
48
48
|
/**
|
|
49
|
-
* @description Title of a section in the Layout panel
|
|
49
|
+
* @description Title of a section in the Layout tab of the Elements panel.
|
|
50
50
|
*/
|
|
51
51
|
flexboxOverlays: 'Flexbox overlays',
|
|
52
52
|
/**
|
|
53
|
-
* @description Text in the Layout
|
|
53
|
+
* @description Text in the Layout tab, when no flexbox elements are found.
|
|
54
54
|
*/
|
|
55
55
|
noFlexboxLayoutsFoundOnThisPage: 'No flexbox layouts found on this page',
|
|
56
56
|
/**
|
|
@@ -10,11 +10,11 @@ import {PseudoStateMarkerDecorator} from './ElementsPanel.js';
|
|
|
10
10
|
|
|
11
11
|
const UIStrings = {
|
|
12
12
|
/**
|
|
13
|
-
* @description Title of
|
|
13
|
+
* @description Title of a marker decorator in the Elements panel.
|
|
14
14
|
*/
|
|
15
|
-
domBreakpoint: 'DOM
|
|
15
|
+
domBreakpoint: 'DOM breakpoint',
|
|
16
16
|
/**
|
|
17
|
-
* @description Title of
|
|
17
|
+
* @description Title of a marker decorator in the Elements panel.
|
|
18
18
|
*/
|
|
19
19
|
elementIsHidden: 'Element is hidden',
|
|
20
20
|
} as const;
|
|
@@ -12,31 +12,31 @@ import platformFontsWidgetStyles from './platformFontsWidget.css.js';
|
|
|
12
12
|
|
|
13
13
|
const UIStrings = {
|
|
14
14
|
/**
|
|
15
|
-
* @description Section title text content in
|
|
15
|
+
* @description Section title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
16
16
|
*/
|
|
17
|
-
renderedFonts: 'Rendered
|
|
17
|
+
renderedFonts: 'Rendered fonts',
|
|
18
18
|
/**
|
|
19
|
-
* @description Font property title text content in
|
|
19
|
+
* @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel. Refers to the CSS `font-family` property (https://developer.mozilla.org/en-US/docs/Web/CSS/font-family).
|
|
20
20
|
*/
|
|
21
21
|
familyName: 'Family name',
|
|
22
22
|
/**
|
|
23
|
-
* @description Font property title text content in
|
|
23
|
+
* @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
24
24
|
*/
|
|
25
25
|
postScriptName: 'PostScript name',
|
|
26
26
|
/**
|
|
27
|
-
* @description Font property title text content in
|
|
27
|
+
* @description Font property title text content in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
28
28
|
*/
|
|
29
29
|
fontOrigin: 'Font origin',
|
|
30
30
|
/**
|
|
31
|
-
* @description Text in
|
|
31
|
+
* @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
32
32
|
*/
|
|
33
33
|
networkResource: 'Network resource',
|
|
34
34
|
/**
|
|
35
|
-
* @description Text in
|
|
35
|
+
* @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel.
|
|
36
36
|
*/
|
|
37
37
|
localFile: 'Local file',
|
|
38
38
|
/**
|
|
39
|
-
* @description Text in
|
|
39
|
+
* @description Text in the Rendered Fonts section of the Computed styles tab in the Elements panel. Indicates a number of glyphs (characters).
|
|
40
40
|
*/
|
|
41
41
|
dGlyphs: '{n, plural, =1 {(# glyph)} other {(# glyphs)}}',
|
|
42
42
|
} as const;
|