chrome-devtools-frontend 1.0.1736236 → 1.0.1739869
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/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
- package/.agents/skills/version-control/SKILL.md +63 -11
- package/.stylelintrc.json +3 -1
- package/docs/devtools-protocol.md +3 -1
- package/eslint.config.mjs +127 -6
- package/front_end/application_tokens.css +0 -30
- package/front_end/core/host/AidaClient.ts +14 -36
- package/front_end/core/host/AidaGcaTranslation.ts +8 -5
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/core/sdk/SourceMap.ts +30 -3
- package/front_end/core/sdk/SourceMapRangeMappings.ts +57 -0
- package/front_end/design_system_tokens.css +1 -0
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +5 -9
- package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
- package/front_end/entrypoints/main/MainImpl.ts +0 -4
- package/front_end/generated/SupportedCSSProperties.ts +24 -23
- package/front_end/models/ai-utils/AiUtils.ts +1 -5
- package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
- package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
- package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
- package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
- package/front_end/models/trace/EventsSerializer.ts +0 -8
- package/front_end/models/trace/extras/TraceFilter.ts +16 -8
- package/front_end/models/trace/extras/TraceTree.ts +104 -67
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +0 -5
- package/front_end/models/trace/handlers/RendererHandler.ts +7 -6
- package/front_end/models/trace/handlers/SamplesHandler.ts +1 -1
- package/front_end/models/trace/helpers/Extensions.ts +1 -3
- package/front_end/models/trace/helpers/SamplesIntegrator.ts +155 -87
- package/front_end/models/trace/helpers/Trace.ts +15 -12
- package/front_end/models/trace/helpers/TreeHelpers.ts +38 -10
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -3
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +19 -4
- package/front_end/models/workspace/UISourceCode.ts +30 -8
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
- package/front_end/panels/ai_assistance/components/chatView.css +0 -212
- package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -3
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +66 -3
- package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
- package/front_end/panels/application/ResourcesPanel.ts +1 -0
- package/front_end/panels/application/backgroundServiceView.css +2 -2
- package/front_end/panels/application/components/backForwardCacheView.css +1 -1
- package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
- package/front_end/panels/application/frameDetailsReportView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +3 -3
- package/front_end/panels/application/privateVerificationTokensView.css +6 -0
- package/front_end/panels/application/resourcesPanel.css +0 -48
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
- package/front_end/panels/application/serviceWorkersView.css +2 -2
- package/front_end/panels/comments/CommentsPane.ts +1 -1
- package/front_end/panels/comments/commentsPane.css +1 -1
- package/front_end/panels/common/common.ts +0 -1
- package/front_end/panels/console/ConsoleView.ts +11 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consoleView.css +6 -5
- package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
- package/front_end/panels/elements/StylePropertiesSection.ts +4 -9
- package/front_end/panels/elements/StylePropertyTreeElement.ts +52 -34
- package/front_end/panels/elements/classesPaneWidget.css +3 -7
- package/front_end/panels/elements/components/CSSQuery.ts +6 -5
- package/front_end/panels/elements/layoutPane.css +0 -1
- package/front_end/panels/elements/metricsSidebarPane.css +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +0 -6
- package/front_end/panels/elements/stylesSidebarPane.css +0 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
- package/front_end/panels/emulation/deviceModeView.css +0 -1
- package/front_end/panels/explain/components/consoleInsight.css +1 -6
- package/front_end/panels/issues/AffectedBlockedByResponseView.ts +88 -46
- package/front_end/panels/issues/AffectedHeavyAdView.ts +72 -43
- package/front_end/panels/issues/AffectedResourcesView.ts +81 -13
- package/front_end/panels/issues/GenericIssueDetailsView.ts +112 -32
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/issues/issuesTree.css +9 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
- package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
- package/front_end/panels/layer_viewer/layerDetailsView.css +2 -2
- package/front_end/panels/layer_viewer/layers3DView.css +0 -4
- package/front_end/panels/lighthouse/lighthousePanel.css +0 -9
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +2 -2
- package/front_end/panels/media/playerListView.css +0 -18
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +2 -2
- package/front_end/panels/network/NetworkLogView.ts +9 -2
- package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
- package/front_end/panels/network/RequestPreviewView.ts +182 -63
- package/front_end/panels/network/RequestTimingView.ts +16 -2
- package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
- package/front_end/panels/network/networkConfigView.css +3 -3
- package/front_end/panels/network/networkLogView.css +4 -16
- package/front_end/panels/network/networkPanel.css +0 -7
- package/front_end/panels/network/networkTimingTable.css +12 -27
- package/front_end/panels/network/signedExchangeInfoView.css +12 -8
- package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
- package/front_end/panels/profiler/IsolateSelector.ts +31 -10
- package/front_end/panels/profiler/profilesPanel.css +0 -19
- package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
- package/front_end/panels/recorder/ControlButton.ts +1 -1
- package/front_end/panels/recorder/RecordingView.ts +22 -1
- package/front_end/panels/recorder/StepView.ts +26 -1
- package/front_end/panels/recorder/TimelineSection.ts +22 -6
- package/front_end/panels/recorder/controlButton.css +2 -9
- package/front_end/panels/recorder/recorderPanel.css +0 -1
- package/front_end/panels/recorder/recordingView.css +32 -32
- package/front_end/panels/recorder/replaySection.css +2 -0
- package/front_end/panels/recorder/stepView.css +18 -14
- package/front_end/panels/recorder/timelineSection.css +60 -84
- package/front_end/panels/screencast/screencastView.css +2 -2
- package/front_end/panels/search/searchView.css +1 -1
- package/front_end/panels/security/SecurityPanel.ts +474 -418
- package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
- package/front_end/panels/security/lockIcon.css +52 -50
- package/front_end/panels/security/mainView.css +149 -145
- package/front_end/panels/security/originView.css +117 -115
- package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
- package/front_end/panels/sensors/SensorsView.ts +6 -21
- package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
- package/front_end/panels/settings/AISettingsTab.ts +1 -2
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
- package/front_end/panels/sources/NavigatorView.ts +105 -31
- package/front_end/panels/sources/breakpointsView.css +5 -3
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/sources/sourcesView.css +2 -1
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +18 -5
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
- package/front_end/panels/timeline/TimelineController.ts +30 -26
- package/front_end/panels/timeline/TimelineDetailsView.ts +10 -9
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +4 -16
- package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
- package/front_end/panels/timeline/TimelineMiniMap.ts +132 -54
- package/front_end/panels/timeline/TimelinePanel.ts +4 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +25 -9
- package/front_end/panels/timeline/components/DetailsView.ts +7 -14
- package/front_end/panels/timeline/components/NetworkTrackWidget.ts +5 -1
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
- package/front_end/panels/timeline/components/interactionBreakdown.css +1 -0
- package/front_end/panels/timeline/components/networkRequestDetails.css +2 -1
- package/front_end/panels/timeline/components/networkTrackWidget.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +1 -0
- package/front_end/panels/timeline/docs/profile_calls.md +7 -9
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
- package/front_end/panels/timeline/timelineDetailsView.css +2 -2
- package/front_end/panels/web_audio/webAudio.css +1 -2
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +1 -1
- package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
- package/front_end/panels/whats_new/resources/WNDT.md +6 -6
- package/front_end/third_party/axe-core/README.chromium +2 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +907 -588
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +119 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +120 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts +16 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts +26 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +23 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +21 -14
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts +5 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +158 -67
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js +28 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js +19 -11
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +17 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js +62 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts +29 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js +60 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/NetworkEvents.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts +9 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js +24 -9
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js +16 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts +6 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js +37 -20
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js +10 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js +18 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js +24 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js +6 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js +30 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js +12 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js +40 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js +37 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkEventManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js +74 -16
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js +34 -23
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts +10 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js +94 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/ResponseBodyStream.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js +29 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js +6 -5
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js +34 -15
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js +11 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js +10 -7
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -11
- package/front_end/third_party/puppeteer/package/package.json +10 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +118 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +119 -0
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +25 -2
- package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +28 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +65 -38
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +27 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +43 -7
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +38 -8
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +27 -12
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +19 -6
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +72 -5
- package/front_end/third_party/puppeteer/package/src/bidi/NetworkEvents.ts +82 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +37 -13
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +26 -14
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +43 -22
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +21 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +27 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -4
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +31 -6
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +18 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +48 -0
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +58 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +94 -14
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +50 -28
- package/front_end/third_party/puppeteer/package/src/cdp/ResponseBodyStream.ts +106 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +38 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +6 -5
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +5 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +17 -8
- package/front_end/third_party/puppeteer/package/src/common/util.ts +32 -15
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +21 -13
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +2 -0
- package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
- package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
- package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
- package/front_end/ui/components/buttons/button.css +2 -2
- package/front_end/ui/components/buttons/floatingButton.css +0 -44
- package/front_end/ui/components/diff_view/diffView.css +0 -2
- package/front_end/ui/components/icon_button/iconButton.css +1 -1
- package/front_end/ui/components/markdown_view/markdownView.css +1 -1
- package/front_end/ui/components/tooltips/Tooltip.ts +29 -0
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +7 -5
- package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
- package/front_end/ui/legacy/InspectorView.ts +5 -1
- package/front_end/ui/legacy/PopoverHelper.ts +1 -0
- package/front_end/ui/legacy/RootView.ts +9 -3
- package/front_end/ui/legacy/SplitWidget.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +9 -0
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +34 -20
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +43 -14
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
- package/front_end/ui/legacy/components/source_frame/imageView.css +2 -2
- package/front_end/ui/legacy/filter.css +7 -3
- package/front_end/ui/legacy/infobar.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +3 -55
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
- package/front_end/ui/legacy/listWidget.css +3 -8
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +2 -9
- package/front_end/ui/legacy/treeoutline.css +3 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +134 -0
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/inspector_overlay/tool_highlight.css +0 -7
- package/inspector_overlay/tool_highlight.ts +0 -1
- package/package.json +1 -1
- package/front_end/Images/geminiInDevTools.png +0 -0
- package/front_end/Images/geminiInDevTools_2x.png +0 -0
- package/front_end/generated/InspectorBackendCommands.ts +0 -1690
- package/front_end/generated/protocol-mapping.d.ts +0 -5986
- package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
- package/front_end/generated/protocol.ts +0 -23364
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
- package/front_end/panels/common/geminiRebrandPromoDialog.css +0 -47
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
@scope to (devtools-widget > *) {
|
|
8
|
+
:scope,
|
|
9
|
+
.signed-exchange-info-view {
|
|
10
|
+
user-select: text;
|
|
11
|
+
overflow: auto;
|
|
12
|
+
}
|
|
11
13
|
|
|
12
|
-
.signed-exchange-info-tree {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
.signed-exchange-info-tree {
|
|
15
|
+
display: block;
|
|
16
|
+
flex-grow: 1;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.perfmon-indicator {
|
|
65
|
-
padding:
|
|
65
|
+
padding: var(--sys-size-2) var(--sys-size-5);
|
|
66
66
|
margin: calc(-1 * var(--sys-size-1)) 0;
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-shrink: 0;
|
|
69
|
-
width:
|
|
69
|
+
width: var(--sys-size-26);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.perfmon-indicator-value {
|
|
@@ -6,10 +6,10 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
|
-
import {Directives, html, render} from '../../ui/lit/lit.js';
|
|
9
|
+
import {Directives, html, nothing, render} from '../../ui/lit/lit.js';
|
|
10
10
|
import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
|
|
11
11
|
|
|
12
|
-
const {classMap, ifDefined, repeat} = Directives;
|
|
12
|
+
const {classMap, ifDefined, ref, repeat} = Directives;
|
|
13
13
|
|
|
14
14
|
const UIStrings = {
|
|
15
15
|
/**
|
|
@@ -69,6 +69,7 @@ export interface TrendInfo {
|
|
|
69
69
|
|
|
70
70
|
export interface IsolateItemInfo {
|
|
71
71
|
id: string;
|
|
72
|
+
optionId: string;
|
|
72
73
|
heapText: string;
|
|
73
74
|
trend: TrendInfo;
|
|
74
75
|
titles: string[];
|
|
@@ -80,12 +81,17 @@ export interface ViewInput {
|
|
|
80
81
|
trendIntervalMinutes: number;
|
|
81
82
|
totalText: string;
|
|
82
83
|
trend: TrendInfo;
|
|
83
|
-
onSelect: (index: number) => void;
|
|
84
|
+
onSelect: (index: number, scrollIntoView?: boolean) => void;
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
export
|
|
87
|
+
export interface ViewOutput {
|
|
88
|
+
scrollSelectedIntoView?: () => void;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
|
|
87
92
|
|
|
88
|
-
export const DEFAULT_VIEW: View = (input,
|
|
93
|
+
export const DEFAULT_VIEW: View = (input, output, target) => {
|
|
94
|
+
output.scrollSelectedIntoView = undefined;
|
|
89
95
|
const onKeyDown = (event: KeyboardEvent): void => {
|
|
90
96
|
if (!input.items.length) {
|
|
91
97
|
return;
|
|
@@ -112,7 +118,7 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
112
118
|
}
|
|
113
119
|
event.consume(true);
|
|
114
120
|
if (nextIndex !== -1 && nextIndex !== selectedIndex) {
|
|
115
|
-
input.onSelect(nextIndex);
|
|
121
|
+
input.onSelect(nextIndex, true);
|
|
116
122
|
}
|
|
117
123
|
};
|
|
118
124
|
|
|
@@ -122,12 +128,14 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
122
128
|
<div class="javascript-vm-instances-list"
|
|
123
129
|
role="listbox"
|
|
124
130
|
aria-label=${i18nString(UIStrings.javascriptVmInstances)}
|
|
131
|
+
aria-activedescendant=${ifDefined(input.items[input.selectedIndex]?.optionId)}
|
|
125
132
|
tabindex=${input.items.length ? 0 : -1}
|
|
126
133
|
@keydown=${onKeyDown}>
|
|
127
134
|
${repeat(input.items, item => item.id, (item, index) => {
|
|
128
135
|
const isSelected = index === input.selectedIndex;
|
|
129
136
|
return html`
|
|
130
|
-
<div
|
|
137
|
+
<div id=${item.optionId}
|
|
138
|
+
class=${classMap({
|
|
131
139
|
'profile-memory-usage-item': true,
|
|
132
140
|
hbox: true,
|
|
133
141
|
selected: isSelected,
|
|
@@ -141,7 +149,12 @@ export const DEFAULT_VIEW: View = (input, _output, target) => {
|
|
|
141
149
|
resize: true,
|
|
142
150
|
keydown: 'ArrowUp|ArrowDown|PageUp|PageDown|Home|End',
|
|
143
151
|
})}
|
|
144
|
-
@click=${() => input.onSelect(index)}
|
|
152
|
+
@click=${() => input.onSelect(index)}
|
|
153
|
+
${isSelected ? ref(el => {
|
|
154
|
+
if (el instanceof HTMLElement) {
|
|
155
|
+
output.scrollSelectedIntoView = () => el.scrollIntoViewIfNeeded(false);
|
|
156
|
+
}
|
|
157
|
+
}) : nothing}>
|
|
145
158
|
<div class="profile-memory-usage-item-size"
|
|
146
159
|
title=${i18nString(UIStrings.heapSizeInUseByLiveJsObjects)}>
|
|
147
160
|
${item.heapText}
|
|
@@ -227,9 +240,11 @@ function getIsolateTitles(isolate: SDK.IsolateManager.Isolate): string[] {
|
|
|
227
240
|
|
|
228
241
|
export class IsolateSelector extends UI.Widget.VBox implements SDK.IsolateManager.Observer {
|
|
229
242
|
readonly #view: View;
|
|
243
|
+
readonly #viewOutput: ViewOutput = {};
|
|
230
244
|
readonly #isolates: SDK.IsolateManager.Isolate[] = [];
|
|
231
245
|
readonly #itemStates = new Map<SDK.IsolateManager.Isolate, IsolateItemInfo>();
|
|
232
246
|
#selectedIsolate: SDK.IsolateManager.Isolate|null = null;
|
|
247
|
+
#pendingScrollToSelected = false;
|
|
233
248
|
#totalText = '';
|
|
234
249
|
#totalTrend: TrendInfo = {text: '', increasing: false};
|
|
235
250
|
|
|
@@ -252,14 +267,19 @@ export class IsolateSelector extends UI.Widget.VBox implements SDK.IsolateManage
|
|
|
252
267
|
trendIntervalMinutes,
|
|
253
268
|
totalText: this.#totalText,
|
|
254
269
|
trend: this.#totalTrend,
|
|
255
|
-
onSelect: index => {
|
|
270
|
+
onSelect: (index, scrollIntoView = false) => {
|
|
256
271
|
const isolate = this.#isolates[index];
|
|
257
272
|
if (isolate) {
|
|
273
|
+
this.#pendingScrollToSelected = scrollIntoView;
|
|
258
274
|
this.#selectIsolate(isolate);
|
|
259
275
|
}
|
|
260
276
|
},
|
|
261
277
|
},
|
|
262
|
-
|
|
278
|
+
this.#viewOutput, this.contentElement);
|
|
279
|
+
if (this.#pendingScrollToSelected) {
|
|
280
|
+
this.#pendingScrollToSelected = false;
|
|
281
|
+
this.#viewOutput.scrollSelectedIntoView?.();
|
|
282
|
+
}
|
|
263
283
|
}
|
|
264
284
|
|
|
265
285
|
override wasShown(): void {
|
|
@@ -289,6 +309,7 @@ export class IsolateSelector extends UI.Widget.VBox implements SDK.IsolateManage
|
|
|
289
309
|
isolateAdded(isolate: SDK.IsolateManager.Isolate): void {
|
|
290
310
|
const item: IsolateItemInfo = {
|
|
291
311
|
id: isolate.id(),
|
|
312
|
+
optionId: UI.ARIAUtils.nextId('isolate-option-'),
|
|
292
313
|
heapText: '',
|
|
293
314
|
trend: {text: '', increasing: false},
|
|
294
315
|
titles: getIsolateTitles(isolate),
|
|
@@ -124,25 +124,6 @@
|
|
|
124
124
|
flex: 0 0 var(--sys-size-19) !important; /* stylelint-disable-line declaration-no-important */
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.profile-text-view {
|
|
128
|
-
padding: 10px;
|
|
129
|
-
overflow: auto;
|
|
130
|
-
margin: 0;
|
|
131
|
-
user-select: text;
|
|
132
|
-
cursor: text;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.empty-landing-page {
|
|
136
|
-
position: absolute;
|
|
137
|
-
background-color: var(--sys-color-cdt-base-container);
|
|
138
|
-
justify-content: center;
|
|
139
|
-
align-items: center;
|
|
140
|
-
overflow: auto;
|
|
141
|
-
font-size: var(--sys-typescale-body1-size);
|
|
142
|
-
color: var(--sys-color-token-subtle);
|
|
143
|
-
padding: 50px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
127
|
@media (forced-colors: active) {
|
|
147
128
|
.profile-view .data-grid tr:hover td:not(.bottom-filler-td) {
|
|
148
129
|
background: Highlight;
|
|
@@ -36,7 +36,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: unknown, target: HTMLEle
|
|
|
36
36
|
<div class="icon ${shape}"></div>
|
|
37
37
|
<div class="label">${label}</div>
|
|
38
38
|
</button>
|
|
39
|
-
`, target, {container: {
|
|
39
|
+
`, target, {container: {classes: ['flex-none']}});
|
|
40
40
|
// clang-format on
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -524,6 +524,25 @@ function renderReplayOrAbortButton(input: ViewInput): Lit.LitTemplate {
|
|
|
524
524
|
|
|
525
525
|
function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
526
526
|
const codeToggleTitle = input.showCodeView ? i18nString(UIStrings.hideCode) : i18nString(UIStrings.showCode);
|
|
527
|
+
/**
|
|
528
|
+
* Returns the state of the step or section that is rendered right before the
|
|
529
|
+
* given section (`stepIndex` is -1) or the given step of the section.
|
|
530
|
+
*/
|
|
531
|
+
const getPreviousState = (sectionIndex: number, stepIndex: number): State|undefined => {
|
|
532
|
+
const section = input.sections[sectionIndex];
|
|
533
|
+
if (stepIndex > 0) {
|
|
534
|
+
return input.getStepState(section.steps[stepIndex - 1]);
|
|
535
|
+
}
|
|
536
|
+
if (stepIndex === 0) {
|
|
537
|
+
return input.getSectionState(section);
|
|
538
|
+
}
|
|
539
|
+
const previousSection = input.sections[sectionIndex - 1];
|
|
540
|
+
if (!previousSection) {
|
|
541
|
+
return undefined;
|
|
542
|
+
}
|
|
543
|
+
const lastStep = previousSection.steps.at(-1);
|
|
544
|
+
return lastStep ? input.getStepState(lastStep) : input.getSectionState(previousSection);
|
|
545
|
+
};
|
|
527
546
|
// clang-format off
|
|
528
547
|
return html`
|
|
529
548
|
<div class="sections">
|
|
@@ -564,6 +583,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
|
564
583
|
isLastSection:
|
|
565
584
|
i === input.sections.length - 1 &&
|
|
566
585
|
section.steps.length === 0,
|
|
586
|
+
isAfterError: getPreviousState(i, -1) === State.ERROR,
|
|
567
587
|
isSelected:
|
|
568
588
|
input.selectedStep === (section.causingStep || null),
|
|
569
589
|
sectionIndex: i,
|
|
@@ -585,7 +605,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
|
585
605
|
onAttributeRequested: input.onAttributeRequested,
|
|
586
606
|
onCopyStep: input.onCopyStep,
|
|
587
607
|
})}
|
|
588
|
-
${section.steps.map(step => {
|
|
608
|
+
${section.steps.map((step, j) => {
|
|
589
609
|
const stepIndex = input.recording.steps.indexOf(step);
|
|
590
610
|
return html`
|
|
591
611
|
<devtools-widget
|
|
@@ -596,6 +616,7 @@ function renderSections(input: ViewInput): Lit.LitTemplate {
|
|
|
596
616
|
isFirstSection: false,
|
|
597
617
|
isLastSection:
|
|
598
618
|
i === input.sections.length - 1 && input.recording.steps[input.recording.steps.length - 1] === step,
|
|
619
|
+
isAfterError: getPreviousState(i, j) === State.ERROR,
|
|
599
620
|
isStartOfGroup: false,
|
|
600
621
|
isEndOfGroup: section.steps[section.steps.length - 1] === step,
|
|
601
622
|
stepIndex,
|
|
@@ -176,6 +176,11 @@ export interface ViewInput {
|
|
|
176
176
|
sectionIndex: number;
|
|
177
177
|
isFirstSection: boolean;
|
|
178
178
|
isLastSection: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Whether the step or section rendered right before this one is in the
|
|
181
|
+
* error state.
|
|
182
|
+
*/
|
|
183
|
+
isAfterError: boolean;
|
|
179
184
|
isRecording: boolean;
|
|
180
185
|
isPlaying: boolean;
|
|
181
186
|
isVisible: boolean;
|
|
@@ -342,6 +347,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
342
347
|
isStartOfGroup: input.isStartOfGroup,
|
|
343
348
|
isEndOfGroup: input.isEndOfGroup,
|
|
344
349
|
isSelected: input.isSelected,
|
|
350
|
+
isAfterError: input.isAfterError,
|
|
345
351
|
})}
|
|
346
352
|
@contextmenu=${
|
|
347
353
|
(e: Event) => {
|
|
@@ -434,7 +440,6 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
434
440
|
onAttributeRequested: input.onAttributeRequested,
|
|
435
441
|
})}></devtools-widget>`
|
|
436
442
|
}
|
|
437
|
-
}
|
|
438
443
|
</div>
|
|
439
444
|
${
|
|
440
445
|
input.error &&
|
|
@@ -472,6 +477,7 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
|
|
|
472
477
|
sectionIndex: 0,
|
|
473
478
|
isFirstSection: false,
|
|
474
479
|
isLastSection: false,
|
|
480
|
+
isAfterError: false,
|
|
475
481
|
isRecording: false,
|
|
476
482
|
isPlaying: false,
|
|
477
483
|
isVisible: false,
|
|
@@ -523,6 +529,14 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
|
|
|
523
529
|
this.requestUpdate();
|
|
524
530
|
}
|
|
525
531
|
|
|
532
|
+
set showDetails(showDetails: boolean) {
|
|
533
|
+
if (this.#viewInput.showDetails === showDetails) {
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
this.#viewInput.showDetails = showDetails;
|
|
537
|
+
this.requestUpdate();
|
|
538
|
+
}
|
|
539
|
+
|
|
526
540
|
set isEndOfGroup(isEndOfGroup: boolean) {
|
|
527
541
|
this.#viewInput.isEndOfGroup = isEndOfGroup;
|
|
528
542
|
this.requestUpdate();
|
|
@@ -549,10 +563,21 @@ export class StepView extends UI.Widget.Widget<ShadowRoot> {
|
|
|
549
563
|
}
|
|
550
564
|
|
|
551
565
|
set isLastSection(isLastSection: boolean) {
|
|
566
|
+
if (this.#viewInput.isLastSection === isLastSection) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
552
569
|
this.#viewInput.isLastSection = isLastSection;
|
|
553
570
|
this.requestUpdate();
|
|
554
571
|
}
|
|
555
572
|
|
|
573
|
+
set isAfterError(isAfterError: boolean) {
|
|
574
|
+
if (this.#viewInput.isAfterError === isAfterError) {
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
this.#viewInput.isAfterError = isAfterError;
|
|
578
|
+
this.requestUpdate();
|
|
579
|
+
}
|
|
580
|
+
|
|
556
581
|
set isRecording(isRecording: boolean) {
|
|
557
582
|
this.#viewInput.isRecording = isRecording;
|
|
558
583
|
this.requestUpdate();
|
|
@@ -15,6 +15,11 @@ export interface TimelineSectionData {
|
|
|
15
15
|
isStartOfGroup: boolean;
|
|
16
16
|
isEndOfGroup: boolean;
|
|
17
17
|
isSelected: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the section right before this one is in the error state. The part
|
|
20
|
+
* of the timeline that connects the two sections is then drawn as an error.
|
|
21
|
+
*/
|
|
22
|
+
isAfterError: boolean;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export type ViewInput = TimelineSectionData;
|
|
@@ -28,6 +33,7 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
28
33
|
'is-first-section': input.isFirstSection,
|
|
29
34
|
'is-last-section': input.isLastSection,
|
|
30
35
|
'is-selected': input.isSelected,
|
|
36
|
+
'is-after-error': input.isAfterError,
|
|
31
37
|
};
|
|
32
38
|
|
|
33
39
|
// clang-format off
|
|
@@ -35,12 +41,12 @@ export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTML
|
|
|
35
41
|
html`
|
|
36
42
|
<style>${timelineSectionStyles}</style>
|
|
37
43
|
<div class=${Lit.Directives.classMap(classes)}>
|
|
38
|
-
<div class="
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
</
|
|
43
|
-
<slot></slot>
|
|
44
|
+
<div class="timeline">
|
|
45
|
+
<div class="line line-before"></div>
|
|
46
|
+
<div class="line line-after"></div>
|
|
47
|
+
<div class="icon"><slot name="icon"></slot></div>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="content"><slot></slot></div>
|
|
44
50
|
</div>
|
|
45
51
|
`,
|
|
46
52
|
target,
|
|
@@ -54,6 +60,7 @@ export class TimelineSection extends UI.Widget.Widget {
|
|
|
54
60
|
#isFirstSection = false;
|
|
55
61
|
#isLastSection = false;
|
|
56
62
|
#isSelected = false;
|
|
63
|
+
#isAfterError = false;
|
|
57
64
|
#view: typeof DEFAULT_VIEW;
|
|
58
65
|
|
|
59
66
|
constructor(element?: HTMLElement,
|
|
@@ -87,6 +94,14 @@ export class TimelineSection extends UI.Widget.Widget {
|
|
|
87
94
|
this.requestUpdate();
|
|
88
95
|
}
|
|
89
96
|
|
|
97
|
+
set isAfterError(value: boolean) {
|
|
98
|
+
if (this.#isAfterError === value) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
this.#isAfterError = value;
|
|
102
|
+
this.requestUpdate();
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
override performUpdate(): void {
|
|
91
106
|
this.#view(
|
|
92
107
|
{
|
|
@@ -95,6 +110,7 @@ export class TimelineSection extends UI.Widget.Widget {
|
|
|
95
110
|
isFirstSection: this.#isFirstSection,
|
|
96
111
|
isLastSection: this.#isLastSection,
|
|
97
112
|
isSelected: this.#isSelected,
|
|
113
|
+
isAfterError: this.#isAfterError,
|
|
98
114
|
},
|
|
99
115
|
undefined,
|
|
100
116
|
this.contentElement,
|
|
@@ -31,16 +31,14 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.icon {
|
|
34
|
-
display:
|
|
34
|
+
display: grid;
|
|
35
|
+
place-items: center;
|
|
35
36
|
width: var(--sys-size-14);
|
|
36
37
|
height: var(--sys-size-14);
|
|
37
38
|
border-radius: var(--sys-shape-corner-full);
|
|
38
39
|
background: var(--sys-color-error-bright);
|
|
39
40
|
margin-bottom: var(--sys-size-5);
|
|
40
|
-
position: relative;
|
|
41
41
|
transition: background 200ms;
|
|
42
|
-
place-content: center center;
|
|
43
|
-
align-items: center;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
.icon::before {
|
|
@@ -48,14 +46,9 @@
|
|
|
48
46
|
|
|
49
47
|
box-sizing: border-box;
|
|
50
48
|
content: "";
|
|
51
|
-
display: block;
|
|
52
49
|
width: var(--sys-size-7);
|
|
53
50
|
height: var(--sys-size-7);
|
|
54
51
|
border: var(--sys-size-1) solid var(--override-white);
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: 50%;
|
|
57
|
-
left: 50%;
|
|
58
|
-
transform: translate(-50%, -50%);
|
|
59
52
|
background-color: var(--override-white);
|
|
60
53
|
}
|
|
61
54
|
|
|
@@ -28,40 +28,48 @@
|
|
|
28
28
|
.sections {
|
|
29
29
|
min-height: 0;
|
|
30
30
|
background-color: var(--sys-color-cdt-base-container);
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
/* Keeps the stacking of the screenshots local to the sections. */
|
|
32
|
+
isolation: isolate;
|
|
33
33
|
container: sections / inline-size;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.section {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
/*
|
|
38
|
+
* The steps span the full width of the section so that their highlight
|
|
39
|
+
* covers the whole row. Their content is inset to leave room for the
|
|
40
|
+
* screenshot, which is placed on top of the steps.
|
|
41
|
+
*/
|
|
42
|
+
--timeline-section-inset-inline-start: calc(var(--sys-size-8) + var(--sys-size-19) + var(--sys-size-5));
|
|
43
|
+
--timeline-section-inset-inline-end: var(--sys-size-8);
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
right: 0;
|
|
49
|
-
bottom: 0;
|
|
50
|
-
z-index: -1;
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-areas: 'section';
|
|
47
|
+
grid-template-columns: minmax(0, 1fr);
|
|
48
|
+
/* Divider between the sections. */
|
|
49
|
+
box-shadow: inset 0 calc(-1 * var(--sys-size-1)) var(--sys-color-divider);
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
.section:last-child
|
|
54
|
-
|
|
52
|
+
.section:last-child {
|
|
53
|
+
box-shadow: none;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
.screenshot-wrapper {
|
|
58
|
-
|
|
57
|
+
grid-area: section;
|
|
58
|
+
align-self: start;
|
|
59
|
+
width: var(--sys-size-19);
|
|
60
|
+
margin-inline-start: var(--sys-size-8);
|
|
59
61
|
padding-top: var(--sys-size-13);
|
|
60
|
-
/*
|
|
61
|
-
z-index:
|
|
62
|
+
/* Draw the screenshot on top of the step highlights. */
|
|
63
|
+
z-index: 1;
|
|
64
|
+
/* Only the screenshot itself should cover the steps below it. */
|
|
65
|
+
pointer-events: none;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
@container sections (max-width: 400px) {
|
|
69
|
+
.section {
|
|
70
|
+
--timeline-section-inset-inline-start: var(--sys-size-8);
|
|
71
|
+
}
|
|
72
|
+
|
|
65
73
|
.screenshot-wrapper {
|
|
66
74
|
display: none;
|
|
67
75
|
}
|
|
@@ -75,24 +83,18 @@
|
|
|
75
83
|
height: auto;
|
|
76
84
|
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
77
85
|
border-radius: 1px;
|
|
86
|
+
pointer-events: auto;
|
|
78
87
|
}
|
|
79
88
|
|
|
80
89
|
.content {
|
|
81
|
-
|
|
90
|
+
grid-area: section;
|
|
91
|
+
align-self: start;
|
|
82
92
|
min-width: 0;
|
|
83
93
|
}
|
|
84
94
|
|
|
85
|
-
.steps {
|
|
86
|
-
flex: 1;
|
|
87
|
-
position: relative;
|
|
88
|
-
align-self: flex-start;
|
|
89
|
-
overflow: visible;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
95
|
.step {
|
|
93
|
-
position: relative;
|
|
94
|
-
padding-left: var(--sys-size-14);
|
|
95
96
|
margin: var(--sys-size-8) 0;
|
|
97
|
+
margin-inline-start: calc(var(--timeline-section-inset-inline-start) + var(--sys-size-14));
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.step .action {
|
|
@@ -273,14 +275,12 @@
|
|
|
273
275
|
border-top: var(--sys-size-1) solid var(--sys-color-divider);
|
|
274
276
|
padding: var(--sys-size-6);
|
|
275
277
|
background: var(--sys-color-cdt-base-container);
|
|
276
|
-
z-index: 1;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
280
|
.controls {
|
|
280
281
|
align-items: center;
|
|
281
282
|
display: flex;
|
|
282
283
|
justify-content: center;
|
|
283
|
-
position: relative;
|
|
284
284
|
width: 100%;
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
font-size: inherit;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
:host {
|
|
14
|
+
/* Space reserved in front of the title for the expand/collapse chevron. */
|
|
15
|
+
--chevron-column-width: calc(var(--sys-size-7) + var(--sys-size-2));
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
.title-container {
|
|
14
19
|
/* Vertically center items with min-width: 0; */
|
|
15
20
|
min-width: 0;
|
|
@@ -20,6 +25,12 @@
|
|
|
20
25
|
outline-offset: var(--sys-size-2);
|
|
21
26
|
flex-grow: 1;
|
|
22
27
|
align-items: center;
|
|
28
|
+
/* Keeps the title aligned with the title of expandable steps. */
|
|
29
|
+
padding-inline-start: var(--chevron-column-width);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.title-container.action {
|
|
33
|
+
padding-inline-start: 0;
|
|
23
34
|
}
|
|
24
35
|
|
|
25
36
|
.title-container:focus-visible {
|
|
@@ -76,11 +87,11 @@
|
|
|
76
87
|
}
|
|
77
88
|
|
|
78
89
|
.error {
|
|
79
|
-
margin: var(--sys-size-8)
|
|
90
|
+
margin-block-start: var(--sys-size-8);
|
|
91
|
+
margin-inline-start: var(--chevron-column-width);
|
|
80
92
|
padding: var(--sys-size-5);
|
|
81
93
|
background: var(--sys-color-error-container);
|
|
82
94
|
color: var(--sys-color-error);
|
|
83
|
-
position: relative;
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
@keyframes rotate {
|
|
@@ -136,12 +147,13 @@
|
|
|
136
147
|
}
|
|
137
148
|
|
|
138
149
|
.chevron {
|
|
150
|
+
flex-shrink: 0;
|
|
151
|
+
/* Aligns the chevron with the first line of the title. */
|
|
152
|
+
align-self: flex-start;
|
|
153
|
+
margin-block-start: var(--sys-size-4);
|
|
139
154
|
width: var(--sys-size-7);
|
|
140
155
|
height: var(--sys-size-7);
|
|
141
156
|
transition: 200ms;
|
|
142
|
-
position: absolute;
|
|
143
|
-
top: var(--sys-size-7);
|
|
144
|
-
left: var(--sys-size-11);
|
|
145
157
|
transform: rotate(-90deg);
|
|
146
158
|
color: var(--sys-color-on-surface);
|
|
147
159
|
}
|
|
@@ -153,17 +165,13 @@
|
|
|
153
165
|
.details {
|
|
154
166
|
display: none;
|
|
155
167
|
margin-top: var(--sys-size-5);
|
|
156
|
-
|
|
168
|
+
margin-inline-start: var(--chevron-column-width);
|
|
157
169
|
}
|
|
158
170
|
|
|
159
171
|
.expanded .details {
|
|
160
172
|
display: block;
|
|
161
173
|
}
|
|
162
174
|
|
|
163
|
-
.step-details {
|
|
164
|
-
overflow: auto;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
175
|
.summary {
|
|
168
176
|
display: flex;
|
|
169
177
|
flex-flow: row nowrap;
|
|
@@ -190,10 +198,6 @@
|
|
|
190
198
|
border-radius: 0;
|
|
191
199
|
flex-shrink: 0;
|
|
192
200
|
height: var(--sys-size-11);
|
|
193
|
-
|
|
194
|
-
--override-select-menu-show-button-border-radius: 0;
|
|
195
|
-
--override-select-menu-show-button-outline: none;
|
|
196
|
-
--override-select-menu-show-button-padding: 0;
|
|
197
201
|
}
|
|
198
202
|
|
|
199
203
|
.step.has-breakpoint .circle-icon {
|