chrome-devtools-frontend 1.0.982087 → 1.0.995629
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/AUTHORS +2 -0
- package/config/gni/devtools_grd_files.gni +8 -7
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/.eslintrc.js +10 -0
- package/front_end/Images/src/ic_rendering.svg +3 -0
- package/front_end/core/common/ParsedURL.ts +39 -28
- package/front_end/core/common/ResourceType.ts +1 -1
- package/front_end/core/common/SettingRegistration.ts +1 -0
- package/front_end/core/host/InspectorFrontendHost.ts +4 -4
- package/front_end/core/host/InspectorFrontendHostAPI.ts +7 -6
- package/front_end/core/host/Platform.ts +11 -2
- package/front_end/core/host/UserMetrics.ts +27 -2
- package/front_end/core/i18n/DevToolsLocale.ts +4 -0
- package/front_end/core/i18n/locales/af.json +76 -16
- package/front_end/core/i18n/locales/am.json +76 -16
- package/front_end/core/i18n/locales/ar.json +77 -17
- package/front_end/core/i18n/locales/as.json +76 -16
- package/front_end/core/i18n/locales/az.json +76 -16
- package/front_end/core/i18n/locales/be.json +75 -15
- package/front_end/core/i18n/locales/bg.json +76 -16
- package/front_end/core/i18n/locales/bn.json +76 -16
- package/front_end/core/i18n/locales/bs.json +88 -28
- package/front_end/core/i18n/locales/ca.json +76 -16
- package/front_end/core/i18n/locales/cs.json +76 -16
- package/front_end/core/i18n/locales/cy.json +76 -16
- package/front_end/core/i18n/locales/da.json +77 -17
- package/front_end/core/i18n/locales/de.json +178 -118
- package/front_end/core/i18n/locales/el.json +76 -16
- package/front_end/core/i18n/locales/en-GB.json +76 -16
- package/front_end/core/i18n/locales/en-US.json +193 -52
- package/front_end/core/i18n/locales/en-XL.json +193 -52
- package/front_end/core/i18n/locales/es-419.json +76 -16
- package/front_end/core/i18n/locales/es.json +76 -16
- package/front_end/core/i18n/locales/et.json +76 -16
- package/front_end/core/i18n/locales/eu.json +76 -16
- package/front_end/core/i18n/locales/fa.json +83 -23
- package/front_end/core/i18n/locales/fi.json +76 -16
- package/front_end/core/i18n/locales/fil.json +76 -16
- package/front_end/core/i18n/locales/fr-CA.json +76 -16
- package/front_end/core/i18n/locales/fr.json +76 -16
- package/front_end/core/i18n/locales/gl.json +76 -16
- package/front_end/core/i18n/locales/gu.json +76 -16
- package/front_end/core/i18n/locales/he.json +76 -16
- package/front_end/core/i18n/locales/hi.json +76 -16
- package/front_end/core/i18n/locales/hr.json +76 -16
- package/front_end/core/i18n/locales/hu.json +76 -16
- package/front_end/core/i18n/locales/hy.json +76 -16
- package/front_end/core/i18n/locales/id.json +79 -19
- package/front_end/core/i18n/locales/is.json +75 -15
- package/front_end/core/i18n/locales/it.json +124 -64
- package/front_end/core/i18n/locales/ja.json +76 -16
- package/front_end/core/i18n/locales/ka.json +76 -16
- package/front_end/core/i18n/locales/kk.json +76 -16
- package/front_end/core/i18n/locales/km.json +76 -16
- package/front_end/core/i18n/locales/kn.json +76 -16
- package/front_end/core/i18n/locales/ko.json +76 -16
- package/front_end/core/i18n/locales/ky.json +76 -16
- package/front_end/core/i18n/locales/lo.json +76 -16
- package/front_end/core/i18n/locales/lt.json +76 -16
- package/front_end/core/i18n/locales/lv.json +76 -16
- package/front_end/core/i18n/locales/mk.json +76 -16
- package/front_end/core/i18n/locales/ml.json +76 -16
- package/front_end/core/i18n/locales/mn.json +76 -16
- package/front_end/core/i18n/locales/mr.json +76 -16
- package/front_end/core/i18n/locales/ms.json +76 -16
- package/front_end/core/i18n/locales/my.json +78 -18
- package/front_end/core/i18n/locales/ne.json +76 -16
- package/front_end/core/i18n/locales/nl.json +77 -17
- package/front_end/core/i18n/locales/no.json +76 -16
- package/front_end/core/i18n/locales/or.json +76 -16
- package/front_end/core/i18n/locales/pa.json +76 -16
- package/front_end/core/i18n/locales/pl.json +78 -18
- package/front_end/core/i18n/locales/pt-PT.json +123 -63
- package/front_end/core/i18n/locales/pt.json +78 -18
- package/front_end/core/i18n/locales/ro.json +76 -16
- package/front_end/core/i18n/locales/ru.json +77 -17
- package/front_end/core/i18n/locales/si.json +76 -16
- package/front_end/core/i18n/locales/sk.json +76 -16
- package/front_end/core/i18n/locales/sl.json +76 -16
- package/front_end/core/i18n/locales/sq.json +76 -16
- package/front_end/core/i18n/locales/sr-Latn.json +76 -16
- package/front_end/core/i18n/locales/sr.json +76 -16
- package/front_end/core/i18n/locales/sv.json +76 -16
- package/front_end/core/i18n/locales/sw.json +76 -16
- package/front_end/core/i18n/locales/ta.json +77 -17
- package/front_end/core/i18n/locales/te.json +76 -16
- package/front_end/core/i18n/locales/th.json +76 -16
- package/front_end/core/i18n/locales/tr.json +76 -16
- package/front_end/core/i18n/locales/uk.json +76 -16
- package/front_end/core/i18n/locales/ur.json +76 -16
- package/front_end/core/i18n/locales/uz.json +77 -17
- package/front_end/core/i18n/locales/vi.json +76 -16
- package/front_end/core/i18n/locales/zh-HK.json +76 -16
- package/front_end/core/i18n/locales/zh-TW.json +76 -16
- package/front_end/core/i18n/locales/zh.json +76 -16
- package/front_end/core/i18n/locales/zu.json +76 -16
- package/front_end/core/platform/dom-utilities.ts +16 -0
- package/front_end/core/platform/platform.ts +2 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +2 -1
- package/front_end/core/protocol_client/NodeURL.ts +1 -1
- package/front_end/core/root/Runtime.ts +6 -0
- package/front_end/core/sdk/AccessibilityModel.ts +7 -6
- package/front_end/core/sdk/CSSMatchedStyles.ts +71 -17
- package/front_end/core/sdk/CSSMetadata.ts +15 -0
- package/front_end/core/sdk/CSSModel.ts +9 -7
- package/front_end/core/sdk/CSSProperty.ts +97 -11
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +9 -5
- package/front_end/core/sdk/CSSSupports.ts +4 -1
- package/front_end/core/sdk/ChildTargetManager.ts +3 -1
- package/front_end/core/sdk/Connections.ts +3 -2
- package/front_end/core/sdk/ConsoleModel.ts +6 -5
- package/front_end/core/sdk/Cookie.ts +4 -2
- package/front_end/core/sdk/DOMDebuggerModel.ts +10 -6
- package/front_end/core/sdk/DOMModel.ts +2 -2
- package/front_end/core/sdk/DebuggerModel.ts +27 -5
- package/front_end/core/sdk/HeapProfilerModel.ts +2 -1
- package/front_end/core/sdk/NetworkManager.ts +13 -12
- package/front_end/core/sdk/NetworkRequest.ts +1 -1
- package/front_end/core/sdk/PageLoad.ts +3 -1
- package/front_end/core/sdk/PageResourceLoader.ts +9 -7
- package/front_end/core/sdk/ProfileTreeModel.ts +3 -2
- package/front_end/core/sdk/RemoteObject.ts +18 -6
- package/front_end/core/sdk/ResourceTreeModel.ts +17 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -0
- package/front_end/core/sdk/Script.ts +4 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +2 -1
- package/front_end/core/sdk/SourceMap.ts +10 -6
- package/front_end/core/sdk/SourceMapManager.ts +47 -5
- package/front_end/core/sdk/TracingModel.ts +0 -9
- package/front_end/devtools_compatibility.js +1 -0
- package/front_end/entrypoints/formatter_worker/CSSRuleParser.ts +1 -1
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +10 -3
- package/front_end/entrypoints/main/MainImpl.ts +22 -2
- package/front_end/generated/InspectorBackendCommands.js +79 -14
- package/front_end/generated/SupportedCSSProperties.js +21 -8
- package/front_end/generated/protocol-mapping.d.ts +4 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +158 -28
- package/front_end/legacy/legacy-defs.d.ts +0 -4
- package/front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js +1 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +1 -0
- package/front_end/models/bindings/BreakpointManager.ts +68 -11
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +9 -2
- package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
- package/front_end/models/bindings/ContentProviderBasedProject.ts +12 -9
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +10 -8
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -1
- package/front_end/models/bindings/DefaultScriptMapping.ts +8 -2
- package/front_end/models/bindings/IgnoreListManager.ts +5 -5
- package/front_end/models/bindings/ResourceUtils.ts +5 -4
- package/front_end/models/emulation/EmulatedDevices.ts +17 -0
- package/front_end/models/extensions/ExtensionAPI.ts +5 -2
- package/front_end/models/extensions/ExtensionPanel.ts +2 -1
- package/front_end/models/extensions/ExtensionServer.ts +13 -8
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +0 -63
- package/front_end/models/issues_manager/CookieIssue.ts +7 -0
- package/front_end/models/issues_manager/DeprecationIssue.ts +326 -8
- package/front_end/models/issues_manager/IssuesManager.ts +4 -0
- package/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/front_end/models/issues_manager/descriptions/deprecation.md +1 -1
- package/front_end/models/logs/LogManager.ts +2 -1
- package/front_end/models/logs/NetworkLog.ts +14 -12
- package/front_end/models/persistence/Automapping.ts +17 -16
- package/front_end/models/persistence/EditFileSystemView.ts +5 -4
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +24 -24
- package/front_end/models/persistence/IsolatedFileSystem.ts +2 -2
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +7 -6
- package/front_end/models/persistence/NetworkPersistenceManager.ts +92 -54
- package/front_end/models/persistence/PersistenceImpl.ts +7 -7
- package/front_end/models/persistence/PlatformFileSystem.ts +7 -8
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +3 -2
- package/front_end/models/text_utils/CodeMirrorUtils.ts +53 -0
- package/front_end/models/text_utils/text_utils.ts +2 -0
- package/front_end/models/timeline_model/TimelineModel.ts +31 -30
- package/front_end/models/timeline_model/TimelineProfileTree.ts +3 -2
- package/front_end/models/workspace/UISourceCode.ts +16 -14
- package/front_end/models/workspace/WorkspaceImpl.ts +40 -16
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +2 -1
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +5 -4
- package/front_end/panels/application/ApplicationPanelSidebar.ts +34 -30
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +5 -4
- package/front_end/panels/application/DatabaseQueryView.ts +2 -1
- package/front_end/panels/application/InterestGroupTreeElement.ts +3 -2
- package/front_end/panels/application/ReportingApiTreeElement.ts +3 -2
- package/front_end/panels/application/ResourcesPanel.ts +4 -3
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +6 -1
- package/front_end/panels/application/TrustTokensTreeElement.ts +3 -2
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +10 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +163 -13
- package/front_end/panels/application/components/backForwardCacheView.css +15 -4
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +19 -19
- package/front_end/panels/changes/ChangesView.ts +38 -0
- package/front_end/panels/console/ConsolePinPane.ts +7 -0
- package/front_end/panels/console/ConsolePrompt.ts +11 -1
- package/front_end/panels/console/ConsoleSidebar.ts +2 -1
- package/front_end/panels/console/ConsoleView.ts +57 -31
- package/front_end/panels/console/ConsoleViewMessage.ts +12 -9
- package/front_end/panels/console/ConsoleViewport.ts +2 -1
- package/front_end/panels/console/ErrorStackParser.ts +8 -4
- package/front_end/panels/console/consoleView.css +0 -1
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageModel.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -1
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +7 -6
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +0 -48
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +5 -0
- package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +2 -0
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +2 -1
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -1
- package/front_end/panels/elements/ElementStatePaneWidget.ts +4 -6
- package/front_end/panels/elements/ElementsPanel.ts +16 -5
- package/front_end/panels/elements/ImagePreviewPopover.ts +6 -4
- package/front_end/panels/elements/PropertiesWidget.ts +4 -24
- package/front_end/panels/elements/StyleEditorWidget.ts +2 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +1614 -0
- package/front_end/panels/elements/StylePropertyHighlighter.ts +2 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +20 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +97 -1675
- package/front_end/panels/elements/elements-legacy.ts +3 -3
- package/front_end/panels/elements/elements.ts +3 -0
- package/front_end/panels/elements/stylesSidebarPane.css +3 -1
- package/front_end/panels/input/InputTimeline.ts +1 -1
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +0 -50
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +14 -2
- package/front_end/panels/issues/IssueAggregator.ts +8 -0
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/lighthouse/LighthouseController.ts +5 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +3 -1
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +3 -3
- package/front_end/panels/network/BlockedURLsPane.ts +3 -2
- package/front_end/panels/network/NetworkConfigView.ts +6 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +4 -0
- package/front_end/panels/network/NetworkLogView.ts +1 -1
- package/front_end/panels/network/RequestHTMLView.ts +1 -0
- package/front_end/panels/network/RequestHeadersView.ts +71 -10
- package/front_end/panels/network/networkLogView.css +9 -17
- package/front_end/panels/network/requestHeadersTree.css +16 -0
- package/front_end/panels/profiler/HeapSnapshotView.ts +2 -0
- package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -1
- package/front_end/panels/profiler/heapProfiler.css +15 -3
- package/front_end/panels/screencast/ScreencastView.ts +1 -1
- package/front_end/panels/search/SearchConfig.ts +2 -1
- package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +4 -4
- package/front_end/panels/sources/BreakpointEditDialog.ts +0 -1
- package/front_end/panels/sources/CSSPlugin.ts +6 -6
- package/front_end/panels/sources/CoveragePlugin.ts +2 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
- package/front_end/panels/sources/EditingLocationHistoryManager.ts +4 -1
- package/front_end/panels/sources/NavigatorView.ts +28 -20
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +4 -2
- package/front_end/panels/sources/SourcesPanel.ts +4 -4
- package/front_end/panels/sources/SourcesSearchScope.ts +12 -8
- package/front_end/panels/sources/SourcesView.ts +3 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/components/HeadersView.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +9 -9
- package/front_end/panels/timeline/TimelinePanel.ts +1 -1
- package/front_end/panels/timeline/timelinePanel.css +1 -2
- package/front_end/panels/utils/utils.ts +97 -0
- package/front_end/third_party/codemirror.next/bundle.ts +27 -25
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/java.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/json.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/php.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/python.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/wast.js +2 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1884 -2281
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +21 -32
- package/front_end/third_party/lit-html/README.chromium +3 -3
- package/front_end/third_party/lit-html/package/README.md +1 -1
- package/front_end/third_party/lit-html/package/async-directive.d.ts +1 -1
- package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/choose.d.ts +32 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.js +41 -0
- package/front_end/third_party/lit-html/package/development/directives/choose.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/join.d.ts +21 -0
- package/front_end/third_party/lit-html/package/development/directives/join.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/join.js +19 -0
- package/front_end/third_party/lit-html/package/development/directives/join.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts +23 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.js +39 -0
- package/front_end/third_party/lit-html/package/development/directives/keyed.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/map.d.ts +23 -0
- package/front_end/third_party/lit-html/package/development/directives/map.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/map.js +30 -0
- package/front_end/third_party/lit-html/package/development/directives/map.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/range.d.ts +24 -0
- package/front_end/third_party/lit-html/package/development/directives/range.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/range.js +13 -0
- package/front_end/third_party/lit-html/package/development/directives/range.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -1
- package/front_end/third_party/lit-html/package/development/directives/when.d.ts +26 -0
- package/front_end/third_party/lit-html/package/development/directives/when.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/when.js +9 -0
- package/front_end/third_party/lit-html/package/development/directives/when.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts +182 -1
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.js +187 -4
- package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.js +7 -0
- package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/choose.d.ts +32 -0
- package/front_end/third_party/lit-html/package/directives/choose.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/choose.js +7 -0
- package/front_end/third_party/lit-html/package/directives/choose.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/class-map.js +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.js +1 -1
- package/front_end/third_party/lit-html/package/directives/join.d.ts +21 -0
- package/front_end/third_party/lit-html/package/directives/join.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/join.js +7 -0
- package/front_end/third_party/lit-html/package/directives/join.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/keyed.d.ts +23 -0
- package/front_end/third_party/lit-html/package/directives/keyed.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/keyed.js +7 -0
- package/front_end/third_party/lit-html/package/directives/keyed.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/map.d.ts +23 -0
- package/front_end/third_party/lit-html/package/directives/map.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/map.js +7 -0
- package/front_end/third_party/lit-html/package/directives/map.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/range.d.ts +24 -0
- package/front_end/third_party/lit-html/package/directives/range.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/range.js +7 -0
- package/front_end/third_party/lit-html/package/directives/range.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/ref.js +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.js +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.js +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.js +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js +1 -1
- package/front_end/third_party/lit-html/package/directives/until.js +1 -1
- package/front_end/third_party/lit-html/package/directives/when.d.ts +26 -0
- package/front_end/third_party/lit-html/package/directives/when.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/when.js +7 -0
- package/front_end/third_party/lit-html/package/directives/when.js.map +1 -0
- package/front_end/third_party/lit-html/package/lit-html.d.ts +182 -1
- package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/package.json +25 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.js +1 -1
- package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/static.js +1 -1
- package/front_end/third_party/lit-html/package/static.js.map +1 -1
- package/front_end/third_party/puppeteer/README.chromium +1 -1
- package/front_end/third_party/puppeteer/package/README.md +12 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +12 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +7 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +8 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +2 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +10 -6
- package/front_end/third_party/puppeteer/package/package.json +17 -17
- package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +1 -1
- package/front_end/ui/components/data_grid/DataGrid.ts +8 -9
- package/front_end/ui/components/data_grid/DataGridController.ts +3 -1
- package/front_end/ui/components/docs/panel_introduction_steps/basic.html +25 -0
- package/front_end/ui/components/docs/panel_introduction_steps/basic.ts +25 -0
- package/front_end/ui/components/input/input.ts +2 -2
- package/front_end/ui/components/linkifier/LinkifierUtils.ts +3 -1
- package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +44 -0
- package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +56 -0
- package/front_end/ui/components/panel_introduction_steps/panel_introduction_steps.ts +5 -0
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +3 -4
- package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
- package/front_end/ui/components/text_editor/config.ts +1 -35
- package/front_end/ui/components/text_editor/javascript.ts +8 -8
- package/front_end/ui/components/tree_outline/TreeOutline.ts +10 -9
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
- package/front_end/ui/legacy/ARIAUtils.ts +4 -2
- package/front_end/ui/legacy/ContextMenu.ts +14 -0
- package/front_end/ui/legacy/DockController.ts +2 -1
- package/front_end/ui/legacy/SettingsUI.ts +3 -3
- package/front_end/ui/legacy/SoftContextMenu.ts +43 -14
- package/front_end/ui/legacy/Toolbar.ts +16 -0
- package/front_end/ui/legacy/Treeoutline.ts +17 -7
- package/front_end/ui/legacy/UIUtils.ts +2 -2
- package/front_end/ui/legacy/View.ts +14 -8
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/ViewRegistration.ts +6 -0
- package/front_end/ui/legacy/Widget.ts +2 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +43 -11
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +98 -48
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +4 -3
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +24 -28
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +5 -11
- package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +8 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -7
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +11 -10
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -1
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +12 -7
- package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -5
- package/front_end/ui/legacy/reportView.css +1 -0
- package/front_end/ui/legacy/splitWidget.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +1 -0
- package/front_end/ui/legacy/themeColors.css +1 -1
- package/front_end/ui/legacy/toolbar.css +17 -1
- package/front_end/ui/legacy/utils/focus-changed.ts +3 -1
- package/inspector_overlay/.eslintrc.js +9 -0
- package/package.json +17 -17
- package/scripts/eslint_rules/lib/check_component_naming.js +4 -0
- package/scripts/eslint_rules/lib/es_modules_import.js +6 -0
- package/scripts/eslint_rules/lib/inject_checkbox_styles.js +121 -0
- package/scripts/eslint_rules/tests/es_modules_import_test.js +12 -0
- package/scripts/eslint_rules/tests/inject_checkbox_styles_test.js +127 -0
- package/front_end/models/issues_manager/descriptions/arAttributionEventSourceTriggerDataTooLarge.md +0 -4
- package/front_end/models/issues_manager/descriptions/arAttributionTriggerDataTooLarge.md +0 -4
- package/front_end/models/issues_manager/descriptions/arInvalidAttributionData.md +0 -8
- package/front_end/models/issues_manager/descriptions/arInvalidEventSourceTriggerData.md +0 -9
- package/front_end/models/issues_manager/descriptions/arInvalidTriggerDedupKey.md +0 -5
- package/front_end/models/issues_manager/descriptions/arInvalidTriggerPriority.md +0 -5
- package/front_end/models/issues_manager/descriptions/arMissingAttributionData.md +0 -7
@@ -2308,7 +2308,7 @@ export declare class Frame {
|
|
2308
2308
|
*
|
2309
2309
|
* @param selector - the selector to query for
|
2310
2310
|
* @param pageFunction - the function to be evaluated in the frame's context
|
2311
|
-
* @param args - additional arguments to pass to `
|
2311
|
+
* @param args - additional arguments to pass to `pageFunction`
|
2312
2312
|
*/
|
2313
2313
|
$eval<ReturnType>(selector: string, pageFunction: (element: Element, ...args: unknown[]) => ReturnType | Promise<ReturnType>, ...args: SerializableOrJSHandle[]): Promise<WrapElementHandle<ReturnType>>;
|
2314
2314
|
/**
|
@@ -2328,7 +2328,7 @@ export declare class Frame {
|
|
2328
2328
|
*
|
2329
2329
|
* @param selector - the selector to query for
|
2330
2330
|
* @param pageFunction - the function to be evaluated in the frame's context
|
2331
|
-
* @param args - additional arguments to pass to `
|
2331
|
+
* @param args - additional arguments to pass to `pageFunction`
|
2332
2332
|
*/
|
2333
2333
|
$$eval<ReturnType>(selector: string, pageFunction: (elements: Element[], ...args: unknown[]) => ReturnType | Promise<ReturnType>, ...args: SerializableOrJSHandle[]): Promise<WrapElementHandle<ReturnType>>;
|
2334
2334
|
/**
|
@@ -2956,7 +2956,7 @@ export declare class HTTPRequest {
|
|
2956
2956
|
/**
|
2957
2957
|
* Adds an async request handler to the processing queue.
|
2958
2958
|
* Deferred handlers are not guaranteed to execute in any particular order,
|
2959
|
-
* but they are
|
2959
|
+
* but they are guaranteed to resolve before the request interception
|
2960
2960
|
* is finalized.
|
2961
2961
|
*/
|
2962
2962
|
enqueueInterceptAction(pendingHandler: () => void | PromiseLike<unknown>): void;
|
@@ -3046,7 +3046,7 @@ export declare class HTTPRequest {
|
|
3046
3046
|
*
|
3047
3047
|
* @returns `null` unless the request failed. If the request fails this can
|
3048
3048
|
* return an object with `errorText` containing a human-readable error
|
3049
|
-
* message, e.g. `net::ERR_FAILED`. It is not
|
3049
|
+
* message, e.g. `net::ERR_FAILED`. It is not guaranteed that there will be
|
3050
3050
|
* failure text if the request fails.
|
3051
3051
|
*/
|
3052
3052
|
failure(): {
|
@@ -3785,6 +3785,8 @@ export declare class HTTPResponse {
|
|
3785
3785
|
dispose(): void;
|
3786
3786
|
}
|
3787
3787
|
|
3788
|
+
declare type LowerCasePaperFormat = 'letter' | 'legal' | 'tabloid' | 'ledger' | 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6';
|
3789
|
+
|
3788
3790
|
/**
|
3789
3791
|
* @public
|
3790
3792
|
*/
|
@@ -4029,6 +4031,7 @@ export declare class HTTPResponse {
|
|
4029
4031
|
forgetRequest(networkRequestId: NetworkRequestId): void;
|
4030
4032
|
getQueuedEventGroup(networkRequestId: NetworkRequestId): QueuedEventGroup | undefined;
|
4031
4033
|
queueEventGroup(networkRequestId: NetworkRequestId, event: QueuedEventGroup): void;
|
4034
|
+
forgetQueuedEventGroup(networkRequestId: NetworkRequestId): void;
|
4032
4035
|
}
|
4033
4036
|
|
4034
4037
|
/**
|
@@ -4073,6 +4076,7 @@ export declare class HTTPResponse {
|
|
4073
4076
|
*
|
4074
4077
|
*/
|
4075
4078
|
_onRequestPaused(event: Protocol.Fetch.RequestPausedEvent): void;
|
4079
|
+
_patchRequestEventHeaders(requestWillBeSentEvent: Protocol.Network.RequestWillBeSentEvent, requestPausedEvent: Protocol.Fetch.RequestPausedEvent): void;
|
4076
4080
|
_onRequest(event: Protocol.Network.RequestWillBeSentEvent, fetchRequestId?: FetchRequestId): void;
|
4077
4081
|
_onRequestServedFromCache(event: Protocol.Network.RequestServedFromCacheEvent): void;
|
4078
4082
|
_handleRequestRedirect(request: HTTPRequest, responsePayload: Protocol.Network.Response, extraInfo: Protocol.Network.ResponseReceivedExtraInfoEvent): void;
|
@@ -6047,7 +6051,7 @@ export declare class HTTPResponse {
|
|
6047
6051
|
*
|
6048
6052
|
* @public
|
6049
6053
|
*/
|
6050
|
-
export declare type PaperFormat =
|
6054
|
+
export declare type PaperFormat = Uppercase<LowerCasePaperFormat> | Capitalize<LowerCasePaperFormat> | LowerCasePaperFormat;
|
6051
6055
|
|
6052
6056
|
/**
|
6053
6057
|
* @internal
|
@@ -6060,7 +6064,7 @@ export declare class HTTPResponse {
|
|
6060
6064
|
/**
|
6061
6065
|
* @internal
|
6062
6066
|
*/
|
6063
|
-
export declare const paperFormats: Record<
|
6067
|
+
export declare const paperFormats: Record<LowerCasePaperFormat, PaperFormatDimensions>;
|
6064
6068
|
|
6065
6069
|
/**
|
6066
6070
|
* Copyright 2020 Google Inc. All rights reserved.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "puppeteer",
|
3
|
-
"version": "13.
|
3
|
+
"version": "13.6.0",
|
4
4
|
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
5
5
|
"keywords": [
|
6
6
|
"puppeteer",
|
@@ -66,8 +66,8 @@
|
|
66
66
|
"license": "Apache-2.0",
|
67
67
|
"dependencies": {
|
68
68
|
"cross-fetch": "3.1.5",
|
69
|
-
"debug": "4.3.
|
70
|
-
"devtools-protocol": "0.0.
|
69
|
+
"debug": "4.3.4",
|
70
|
+
"devtools-protocol": "0.0.981744",
|
71
71
|
"extract-zip": "2.0.1",
|
72
72
|
"https-proxy-agent": "5.0.0",
|
73
73
|
"pkg-dir": "4.2.0",
|
@@ -79,47 +79,47 @@
|
|
79
79
|
"ws": "8.5.0"
|
80
80
|
},
|
81
81
|
"devDependencies": {
|
82
|
-
"@commitlint/cli": "16.2.
|
82
|
+
"@commitlint/cli": "16.2.3",
|
83
83
|
"@commitlint/config-conventional": "16.2.1",
|
84
|
-
"@microsoft/api-documenter": "7.
|
85
|
-
"@microsoft/api-extractor": "7.
|
84
|
+
"@microsoft/api-documenter": "7.17.2",
|
85
|
+
"@microsoft/api-extractor": "7.20.1",
|
86
86
|
"@types/debug": "4.1.7",
|
87
87
|
"@types/mime": "2.0.3",
|
88
88
|
"@types/mocha": "9.1.0",
|
89
|
-
"@types/node": "17.0.
|
89
|
+
"@types/node": "17.0.23",
|
90
90
|
"@types/progress": "2.0.5",
|
91
91
|
"@types/proxy-from-env": "1.0.1",
|
92
92
|
"@types/rimraf": "3.0.2",
|
93
93
|
"@types/sinon": "10.0.11",
|
94
94
|
"@types/tar-fs": "2.0.1",
|
95
|
-
"@types/ws": "8.5.
|
96
|
-
"@typescript-eslint/eslint-plugin": "5.
|
97
|
-
"@typescript-eslint/parser": "5.
|
95
|
+
"@types/ws": "8.5.3",
|
96
|
+
"@typescript-eslint/eslint-plugin": "5.18.0",
|
97
|
+
"@typescript-eslint/parser": "5.18.0",
|
98
98
|
"@web/test-runner": "0.13.27",
|
99
99
|
"commonmark": "0.30.0",
|
100
100
|
"cross-env": "7.0.3",
|
101
|
-
"eslint": "8.
|
101
|
+
"eslint": "8.13.0",
|
102
102
|
"eslint-config-prettier": "8.5.0",
|
103
|
-
"eslint-plugin-import": "2.
|
103
|
+
"eslint-plugin-import": "2.26.0",
|
104
104
|
"eslint-plugin-mocha": "10.0.3",
|
105
105
|
"eslint-plugin-prettier": "4.0.0",
|
106
|
-
"eslint-plugin-unicorn": "
|
106
|
+
"eslint-plugin-unicorn": "42.0.0",
|
107
107
|
"esprima": "4.0.1",
|
108
108
|
"expect": "25.2.7",
|
109
109
|
"husky": "7.0.4",
|
110
110
|
"jpeg-js": "0.4.3",
|
111
111
|
"mime": "3.0.0",
|
112
|
-
"minimist": "1.2.
|
113
|
-
"mocha": "9.2.
|
112
|
+
"minimist": "1.2.6",
|
113
|
+
"mocha": "9.2.2",
|
114
114
|
"ncp": "2.0.0",
|
115
115
|
"pixelmatch": "5.2.1",
|
116
116
|
"pngjs": "6.0.0",
|
117
|
-
"prettier": "2.
|
117
|
+
"prettier": "2.6.2",
|
118
118
|
"sinon": "13.0.1",
|
119
119
|
"source-map-support": "0.5.21",
|
120
120
|
"standard-version": "9.3.2",
|
121
121
|
"text-diff": "1.0.1",
|
122
122
|
"ts-node": "10.7.0",
|
123
|
-
"typescript": "4.
|
123
|
+
"typescript": "4.6.3"
|
124
124
|
}
|
125
125
|
}
|
@@ -136,7 +136,7 @@ export class CodeHighlighter {
|
|
136
136
|
pos = to;
|
137
137
|
}
|
138
138
|
};
|
139
|
-
CodeMirror.highlightTree(this.tree, highlightStyle
|
139
|
+
CodeMirror.highlightTree(this.tree, highlightStyle, (from, to, style) => {
|
140
140
|
flush(from, '');
|
141
141
|
flush(to, style);
|
142
142
|
}, from, to);
|
@@ -88,11 +88,9 @@ export class DataGrid extends HTMLElement {
|
|
88
88
|
void this.#alignScrollHandlers();
|
89
89
|
});
|
90
90
|
|
91
|
-
//
|
91
|
+
// Thie have to be bound as they are put onto the global document, not onto
|
92
92
|
// this element, so LitHtml does not bind them for us.
|
93
|
-
#boundOnResizePointerUp = this.#onResizePointerUp.bind(this);
|
94
93
|
#boundOnResizePointerMove = this.#onResizePointerMove.bind(this);
|
95
|
-
#boundOnResizePointerDown = this.#onResizePointerDown.bind(this);
|
96
94
|
|
97
95
|
/**
|
98
96
|
* Following guidance from
|
@@ -327,14 +325,15 @@ export class DataGrid extends HTMLElement {
|
|
327
325
|
const emptyCellClasses = LitHtml.Directives.classMap({
|
328
326
|
firstVisibleColumn: colIndex === 0,
|
329
327
|
});
|
330
|
-
return LitHtml.html`<td
|
328
|
+
return LitHtml.html`<td aria-hidden="true" class=${emptyCellClasses} data-filler-row-column-index=${
|
329
|
+
colIndex}></td>`;
|
331
330
|
});
|
332
331
|
const emptyRowClasses = LitHtml.Directives.classMap({
|
333
332
|
'filler-row': true,
|
334
333
|
'padding-row': true,
|
335
334
|
'empty-table': numberOfVisibleRows === 0,
|
336
335
|
});
|
337
|
-
return LitHtml.html`<tr
|
336
|
+
return LitHtml.html`<tr aria-hidden="true" class=${emptyRowClasses}>${emptyCells}</tr>`;
|
338
337
|
}
|
339
338
|
|
340
339
|
#cleanUpAfterResizeColumnComplete(): void {
|
@@ -487,8 +486,8 @@ export class DataGrid extends HTMLElement {
|
|
487
486
|
}
|
488
487
|
|
489
488
|
return LitHtml.html`<span class="cell-resize-handle"
|
490
|
-
@pointerdown=${this.#
|
491
|
-
@pointerup=${this.#
|
489
|
+
@pointerdown=${this.#onResizePointerDown}
|
490
|
+
@pointerup=${this.#onResizePointerUp}
|
492
491
|
data-column-index=${columnIndex}
|
493
492
|
></span>`;
|
494
493
|
}
|
@@ -757,7 +756,7 @@ export class DataGrid extends HTMLElement {
|
|
757
756
|
<tbody>
|
758
757
|
<tr class="filler-row-top padding-row" style=${LitHtml.Directives.styleMap({
|
759
758
|
height: `${topVisibleRow * ROW_HEIGHT_PIXELS}px`,
|
760
|
-
})}></tr>
|
759
|
+
})} aria-hidden="true"></tr>
|
761
760
|
${LitHtml.Directives.repeat(renderableRows, row => this.#rowIndexMap.get(row), (row): LitHtml.TemplateResult => {
|
762
761
|
const rowIndex = this.#rowIndexMap.get(row);
|
763
762
|
if (rowIndex === undefined) {
|
@@ -809,7 +808,7 @@ export class DataGrid extends HTMLElement {
|
|
809
808
|
${this.#renderEmptyFillerRow(renderableRows.length)}
|
810
809
|
<tr class="filler-row-bottom padding-row" style=${LitHtml.Directives.styleMap({
|
811
810
|
height: `${Math.max(0, nonHiddenRows.length - bottomVisibleRow) * ROW_HEIGHT_PIXELS}px`,
|
812
|
-
})}></tr>
|
811
|
+
})} aria-hidden="true"></tr>
|
813
812
|
</tbody>
|
814
813
|
</table>
|
815
814
|
</div>
|
@@ -153,7 +153,9 @@ export class DataGridController extends HTMLElement {
|
|
153
153
|
|
154
154
|
#onColumnHeaderClick(event: ColumnHeaderClickEvent): void {
|
155
155
|
const {column} = event.data;
|
156
|
-
|
156
|
+
if (column.sortable) {
|
157
|
+
this.#applySortOnColumn(column);
|
158
|
+
}
|
157
159
|
}
|
158
160
|
|
159
161
|
#applySortOnColumn(column: Column): void {
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright 2022 The Chromium Authors. All rights reserved.
|
3
|
+
Use of this source code is governed by a BSD-style license that can be
|
4
|
+
found in the LICENSE file.
|
5
|
+
-->
|
6
|
+
<!DOCTYPE html>
|
7
|
+
<html>
|
8
|
+
<head>
|
9
|
+
<meta charset="UTF-8" />
|
10
|
+
<meta name="viewport" content="width=device-width" />
|
11
|
+
<title>Panel Introduction Steps</title>
|
12
|
+
<style>
|
13
|
+
#container {
|
14
|
+
width: 80%;
|
15
|
+
border: 1px solid black;
|
16
|
+
padding: 10px;
|
17
|
+
}
|
18
|
+
</style>
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<div id="container">
|
22
|
+
</div>
|
23
|
+
<script type="module" src="./basic.js"></script>
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Copyright 2022 The Chromium Authors. All rights reserved.
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
3
|
+
// found in the LICENSE file.
|
4
|
+
|
5
|
+
import * as FrontendHelpers from '../../../../../test/unittests/front_end/helpers/EnvironmentHelpers.js';
|
6
|
+
import * as PanelIntroductionSteps from '../../../components/panel_introduction_steps/panel_introduction_steps.js';
|
7
|
+
import * as LitHtml from '../../../lit-html/lit-html.js';
|
8
|
+
import * as ComponentHelpers from '../../helpers/helpers.js';
|
9
|
+
|
10
|
+
await ComponentHelpers.ComponentServerSetup.setup();
|
11
|
+
await FrontendHelpers.initializeGlobalVars();
|
12
|
+
|
13
|
+
const container = document.getElementById('container');
|
14
|
+
if (container) {
|
15
|
+
LitHtml.render(
|
16
|
+
LitHtml.html`
|
17
|
+
<${PanelIntroductionSteps.PanelIntroductionSteps.PanelIntroductionSteps.litTagName}>
|
18
|
+
<span slot="title">Get actionable insights on your website's performance</span>
|
19
|
+
<span slot="step-1">Record or import a trace into the Performance Insights panel</span>
|
20
|
+
<span slot="step-2">Get an overview of your page’s runtime performance</span>
|
21
|
+
<span slot="step-3">Identify improvements to your performance via a list of actionable insights</span>
|
22
|
+
</${PanelIntroductionSteps.PanelIntroductionSteps.PanelIntroductionSteps.litTagName}>
|
23
|
+
`,
|
24
|
+
container, {host: this});
|
25
|
+
}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
-
import checkboxStyles from './checkbox.css.js';
|
6
|
-
import textInputStyles from './textInput.css.js';
|
5
|
+
import checkboxStyles from './checkbox.css.js';
|
6
|
+
import textInputStyles from './textInput.css.js';
|
7
7
|
|
8
8
|
export {
|
9
9
|
checkboxStyles,
|
@@ -3,10 +3,12 @@
|
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
5
|
import * as Bindings from '../../../models/bindings/bindings.js';
|
6
|
+
import type * as Platform from '../../../core/platform/platform.js';
|
6
7
|
|
7
8
|
export function linkText(url: string, lineNumber?: number): string {
|
8
9
|
if (url) {
|
9
|
-
|
10
|
+
// TODO(crbug.com/1253323): Cast to UrlString will be removed when migration to branded types is complete.
|
11
|
+
const displayName = Bindings.ResourceUtils.displayNameForURL(url as Platform.DevToolsPath.UrlString);
|
10
12
|
let text = `${displayName}`;
|
11
13
|
if (typeof lineNumber !== 'undefined') {
|
12
14
|
text += `:${lineNumber + 1}`;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// Copyright 2022 The Chromium Authors. All rights reserved.
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
3
|
+
// found in the LICENSE file.
|
4
|
+
|
5
|
+
import * as ComponentHelpers from '../../components/helpers/helpers.js';
|
6
|
+
import * as LitHtml from '../../lit-html/lit-html.js';
|
7
|
+
import panelIntroductionStepsStyles from './panelIntroductionSteps.css.js';
|
8
|
+
|
9
|
+
export class PanelIntroductionSteps extends HTMLElement {
|
10
|
+
static readonly litTagName = LitHtml.literal`devtools-panel-introduction-steps`;
|
11
|
+
readonly #shadow = this.attachShadow({mode: 'open'});
|
12
|
+
readonly #boundRender = this.#render.bind(this);
|
13
|
+
|
14
|
+
connectedCallback(): void {
|
15
|
+
this.#shadow.adoptedStyleSheets = [panelIntroductionStepsStyles];
|
16
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
17
|
+
}
|
18
|
+
|
19
|
+
#render(): void {
|
20
|
+
if (!ComponentHelpers.ScheduledRender.isScheduledRender(this)) {
|
21
|
+
throw new Error('FeedbackButton render was not scheduled');
|
22
|
+
}
|
23
|
+
|
24
|
+
// clang-format off
|
25
|
+
LitHtml.render(LitHtml.html`
|
26
|
+
<h1><slot name="title">slot: title</slot></h1>
|
27
|
+
|
28
|
+
<ol class="intro-steps">
|
29
|
+
<li><slot name="step-1">slot: step-1</slot></li>
|
30
|
+
<li><slot name="step-2">slot: step-2</slot></li>
|
31
|
+
<li><slot name="step-3">slot: step-3</slot></li>
|
32
|
+
</ol>
|
33
|
+
`, this.#shadow, {host: this});
|
34
|
+
// clang-format on
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
ComponentHelpers.CustomElements.defineComponent('devtools-panel-introduction-steps', PanelIntroductionSteps);
|
39
|
+
|
40
|
+
declare global {
|
41
|
+
interface HTMLElementTagNameMap {
|
42
|
+
'devtools-panel-introduction-steps': PanelIntroductionSteps;
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2022 The Chromium Authors. All rights reserved.
|
3
|
+
* Use of this source code is governed by a BSD-style license that can be
|
4
|
+
* found in the LICENSE file.
|
5
|
+
*/
|
6
|
+
|
7
|
+
:host {
|
8
|
+
display: block;
|
9
|
+
}
|
10
|
+
|
11
|
+
h1 {
|
12
|
+
font-weight: normal;
|
13
|
+
font-size: 18px;
|
14
|
+
line-height: 28px;
|
15
|
+
padding: 0;
|
16
|
+
margin-top: 0;
|
17
|
+
color: var(--color-text-primary);
|
18
|
+
}
|
19
|
+
|
20
|
+
.intro-steps {
|
21
|
+
counter-reset: custom-counter;
|
22
|
+
list-style: none;
|
23
|
+
margin: 16px 0 30px 30px;
|
24
|
+
padding: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
.intro-steps li {
|
28
|
+
color: var(--color-text-primary);
|
29
|
+
counter-increment: custom-counter;
|
30
|
+
font-size: 13px;
|
31
|
+
letter-spacing: 0.03em;
|
32
|
+
line-height: 1.54;
|
33
|
+
margin-bottom: 9px;
|
34
|
+
position: relative;
|
35
|
+
}
|
36
|
+
|
37
|
+
.intro-steps li::before {
|
38
|
+
--override-color-counter-background: rgba(26 115 232 / 25%);
|
39
|
+
|
40
|
+
box-sizing: border-box;
|
41
|
+
background: var(--override-color-counter-background);
|
42
|
+
border-radius: 50%;
|
43
|
+
color: var(--color-primary);
|
44
|
+
content: counter(custom-counter);
|
45
|
+
font-size: 12px;
|
46
|
+
height: 18px;
|
47
|
+
left: -30px;
|
48
|
+
line-height: 20px;
|
49
|
+
position: absolute;
|
50
|
+
text-align: center;
|
51
|
+
top: 0;
|
52
|
+
width: 18px;
|
53
|
+
display: flex;
|
54
|
+
align-items: center;
|
55
|
+
justify-content: center;
|
56
|
+
}
|
@@ -202,15 +202,15 @@ export class RenderCoordinator extends EventTarget {
|
|
202
202
|
}
|
203
203
|
|
204
204
|
async #handleWork(handler: CoordinatorCallback): Promise<void> {
|
205
|
-
const data = await handler.call(undefined);
|
206
205
|
const resolver = this.#resolvers.get(handler);
|
206
|
+
this.#resolvers.delete(handler);
|
207
|
+
this.#rejectors.delete(handler);
|
208
|
+
const data = await handler.call(undefined);
|
207
209
|
if (!resolver) {
|
208
210
|
throw new Error('Unable to locate resolver');
|
209
211
|
}
|
210
212
|
|
211
213
|
resolver.call(undefined, data);
|
212
|
-
this.#resolvers.delete(handler);
|
213
|
-
this.#rejectors.delete(handler);
|
214
214
|
}
|
215
215
|
|
216
216
|
#scheduleWork(): void {
|
@@ -298,7 +298,6 @@ export class RenderCoordinator extends EventTarget {
|
|
298
298
|
for (const handler of handlers) {
|
299
299
|
const rejector = this.#rejectors.get(handler);
|
300
300
|
if (!rejector) {
|
301
|
-
console.warn('Unable to locate rejector');
|
302
301
|
continue;
|
303
302
|
}
|
304
303
|
|
@@ -177,7 +177,7 @@ export class TextEditor extends HTMLElement {
|
|
177
177
|
const editorRect = view.scrollDOM.getBoundingClientRect();
|
178
178
|
const targetPos = view.coordsAtPos(selection.main.head);
|
179
179
|
if (!targetPos || targetPos.top < editorRect.top || targetPos.bottom > editorRect.bottom) {
|
180
|
-
effects.push(CodeMirror.EditorView.
|
180
|
+
effects.push(CodeMirror.EditorView.scrollIntoView(selection.main, {y: 'center'}));
|
181
181
|
}
|
182
182
|
|
183
183
|
view.dispatch({
|
@@ -245,7 +245,7 @@ export function baseConfiguration(text: string): CM.Extension {
|
|
245
245
|
CM.drawSelection(),
|
246
246
|
CM.EditorState.allowMultipleSelections.of(true),
|
247
247
|
CM.indentOnInput(),
|
248
|
-
CodeHighlighter.CodeHighlighter.highlightStyle,
|
248
|
+
CM.syntaxHighlighting(CodeHighlighter.CodeHighlighter.highlightStyle),
|
249
249
|
baseKeymap,
|
250
250
|
CM.EditorView.clickAddsSelectionRange.of(mouseEvent => mouseEvent.altKey || mouseEvent.ctrlKey),
|
251
251
|
tabMovesFocus.instance(),
|
@@ -255,7 +255,6 @@ export function baseConfiguration(text: string): CM.Extension {
|
|
255
255
|
detectLineSeparator(text),
|
256
256
|
autocompletion,
|
257
257
|
CM.tooltips({
|
258
|
-
parent: getTooltipHost() as unknown as HTMLElement,
|
259
258
|
tooltipSpace: getTooltipSpace,
|
260
259
|
}),
|
261
260
|
];
|
@@ -266,39 +265,6 @@ export const closeBrackets: CM.Extension = [
|
|
266
265
|
CM.keymap.of(CM.closeBracketsKeymap),
|
267
266
|
];
|
268
267
|
|
269
|
-
// Root editor tooltips at the top of the document, creating a special
|
270
|
-
// element with the editor styles mounted in it for them. This is
|
271
|
-
// annoying, but necessary because a scrollable parent node clips them
|
272
|
-
// otherwise, `position: fixed` doesn't work due to `contain` styles,
|
273
|
-
// and appending them directly to `document.body` doesn't work because
|
274
|
-
// the necessary style sheets aren't available there.
|
275
|
-
let tooltipHost: ShadowRoot|null = null;
|
276
|
-
|
277
|
-
function getTooltipHost(): ShadowRoot {
|
278
|
-
if (!tooltipHost) {
|
279
|
-
const styleModules = CM.EditorState
|
280
|
-
.create({
|
281
|
-
extensions: [
|
282
|
-
editorTheme,
|
283
|
-
themeIsDark() ? dummyDarkTheme : [],
|
284
|
-
CodeHighlighter.CodeHighlighter.highlightStyle,
|
285
|
-
CM.showTooltip.of({
|
286
|
-
pos: 0,
|
287
|
-
create() {
|
288
|
-
return {dom: document.createElement('div')};
|
289
|
-
},
|
290
|
-
}),
|
291
|
-
],
|
292
|
-
})
|
293
|
-
.facet(CM.EditorView.styleModule);
|
294
|
-
const host = document.body.appendChild(document.createElement('div'));
|
295
|
-
host.className = 'editor-tooltip-host';
|
296
|
-
tooltipHost = host.attachShadow({mode: 'open'});
|
297
|
-
CM.StyleModule.mount(tooltipHost, styleModules);
|
298
|
-
}
|
299
|
-
return tooltipHost;
|
300
|
-
}
|
301
|
-
|
302
268
|
class CompletionHint extends CM.WidgetType {
|
303
269
|
constructor(readonly text: string) {
|
304
270
|
super();
|
@@ -151,16 +151,16 @@ export function getQueryType(tree: CodeMirror.Tree, pos: number, doc: CodeMirror
|
|
151
151
|
}
|
152
152
|
if (node.name === '(') {
|
153
153
|
// map.get(<auto-complete>
|
154
|
-
if (parent
|
154
|
+
if (parent?.name === 'ArgList' && parent?.parent?.name === 'CallExpression') {
|
155
155
|
// map.get
|
156
|
-
const callReceiver = parent
|
157
|
-
if (callReceiver
|
156
|
+
const callReceiver = parent?.parent?.firstChild;
|
157
|
+
if (callReceiver?.name === 'MemberExpression') {
|
158
158
|
// get
|
159
|
-
const propertyExpression = callReceiver
|
160
|
-
if (doc.sliceString(propertyExpression.from, propertyExpression.to) === 'get') {
|
159
|
+
const propertyExpression = callReceiver?.lastChild;
|
160
|
+
if (propertyExpression && doc.sliceString(propertyExpression.from, propertyExpression.to) === 'get') {
|
161
161
|
// map
|
162
|
-
const potentiallyMapObject = callReceiver
|
163
|
-
return {type: QueryType.PotentiallyRetrievingFromMap, relatedNode: potentiallyMapObject};
|
162
|
+
const potentiallyMapObject = callReceiver?.firstChild;
|
163
|
+
return {type: QueryType.PotentiallyRetrievingFromMap, relatedNode: potentiallyMapObject || undefined};
|
164
164
|
}
|
165
165
|
}
|
166
166
|
}
|
@@ -212,7 +212,7 @@ export async function javascriptCompletionSource(cx: CodeMirror.CompletionContex
|
|
212
212
|
return {
|
213
213
|
from: query.from ?? cx.pos,
|
214
214
|
options: result.completions,
|
215
|
-
|
215
|
+
validFor: !quote ? SPAN_IDENT : quote === '\'' ? SPAN_SINGLE_QUOTE : SPAN_DOUBLE_QUOTE,
|
216
216
|
};
|
217
217
|
}
|
218
218
|
|
@@ -150,6 +150,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
150
150
|
this.#defaultRenderer = data.defaultRenderer;
|
151
151
|
this.#treeData = data.tree;
|
152
152
|
this.#nodeFilter = data.filter;
|
153
|
+
|
153
154
|
if (!this.#hasRenderedAtLeastOnce) {
|
154
155
|
this.#selectedTreeNode = this.#treeData[0];
|
155
156
|
}
|
@@ -510,15 +511,15 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
510
511
|
// clang-format off
|
511
512
|
LitHtml.render(LitHtml.html`
|
512
513
|
<div class="wrapping-container">
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
514
|
+
<ul role="tree" @keydown=${this.#onTreeKeyDown}>
|
515
|
+
${this.#treeData.map((topLevelNode, index) => {
|
516
|
+
return this.#renderNode(topLevelNode, {
|
517
|
+
depth: 0,
|
518
|
+
setSize: this.#treeData.length,
|
519
|
+
positionInSet: index,
|
520
|
+
});
|
521
|
+
})}
|
522
|
+
</ul>
|
522
523
|
</div>
|
523
524
|
`, this.#shadow, {
|
524
525
|
host: this,
|
@@ -89,7 +89,7 @@ li.is-top-level:last-child {
|
|
89
89
|
outline: 0;
|
90
90
|
}
|
91
91
|
|
92
|
-
[role="treeitem"].selected > .arrow-and-key-wrapper {
|
92
|
+
ul[role="tree"]:focus-within [role="treeitem"].selected > .arrow-and-key-wrapper {
|
93
93
|
/* stylelint-disable-next-line color-named */
|
94
94
|
background-color: var(--legacy-item-selection-bg-color);
|
95
95
|
}
|
@@ -95,6 +95,10 @@ export function markAsMenuItem(element: Element): void {
|
|
95
95
|
element.setAttribute('role', 'menuitem');
|
96
96
|
}
|
97
97
|
|
98
|
+
export function markAsMenuItemCheckBox(element: Element): void {
|
99
|
+
element.setAttribute('role', 'menuitemcheckbox');
|
100
|
+
}
|
101
|
+
|
98
102
|
export function markAsMenuItemSubMenu(element: Element): void {
|
99
103
|
markAsMenuItem(element);
|
100
104
|
element.setAttribute('aria-haspopup', 'true');
|
@@ -437,8 +441,6 @@ export function setActiveDescendant(element: Element, activedescendant: Element|
|
|
437
441
|
|
438
442
|
if (activedescendant.isConnected && element.isConnected) {
|
439
443
|
console.assert(element.hasSameShadowRoot(activedescendant), 'elements are not in the same shadow dom');
|
440
|
-
} else {
|
441
|
-
console.warn('One or more elements in an active-descendant relationship are not yet attached to the DOM tree.');
|
442
444
|
}
|
443
445
|
|
444
446
|
ensureId(activedescendant);
|