chrome-devtools-frontend 1.0.1550444 → 1.0.1553956
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/docs/styleguide/ux/components.md +34 -8
- package/eslint.config.mjs +7 -0
- package/front_end/Images/generate-css-vars.js +8 -4
- package/front_end/core/common/Settings.ts +20 -8
- package/front_end/core/host/UserMetrics.ts +3 -1
- package/front_end/core/i18n/collect-ui-strings.js +19 -10
- package/front_end/core/i18n/generate-locales-js.js +4 -4
- package/front_end/core/protocol_client/CDPConnection.ts +1 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +5 -1
- package/front_end/core/root/Runtime.ts +0 -12
- package/front_end/core/sdk/DOMModel.ts +38 -3
- package/front_end/core/sdk/DebuggerModel.ts +9 -4
- package/front_end/core/sdk/IsolateManager.ts +7 -0
- package/front_end/core/sdk/PageResourceLoader.ts +3 -3
- package/front_end/core/sdk/RehydratingConnection.ts +5 -2
- package/front_end/entrypoints/main/MainImpl.ts +28 -10
- package/front_end/generated/SupportedCSSProperties.js +14 -0
- package/front_end/models/ai_assistance/AiConversation.ts +94 -4
- package/front_end/models/ai_assistance/agents/AiAgent.ts +30 -15
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +179 -41
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +5 -0
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +62 -0
- package/front_end/models/ai_assistance/data_formatters/NetworkRequestFormatter.ts +2 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +1 -7
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +124 -12
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts +125 -30
- package/front_end/models/ai_assistance/performance/AICallTree.ts +42 -0
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +12 -0
- package/front_end/models/issues_manager/Issue.ts +1 -0
- package/front_end/models/issues_manager/IssueAggregator.ts +9 -0
- package/front_end/models/issues_manager/IssuesManager.ts +5 -0
- package/front_end/models/issues_manager/PermissionElementIssue.ts +262 -0
- package/front_end/models/issues_manager/descriptions/permissionElementActivationDisabled.md +7 -0
- package/front_end/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/front_end/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/front_end/models/issues_manager/descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidType.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementLowContrast.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/front_end/models/issues_manager/descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/front_end/models/issues_manager/descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementRegistrationFailed.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementRequestInProgress.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementTypeNotSupported.md +5 -0
- package/front_end/models/issues_manager/descriptions/permissionElementUntrustedEvent.md +7 -0
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
- package/front_end/models/stack_trace/StackTraceModel.ts +37 -18
- package/front_end/models/trace/Processor.ts +14 -15
- package/front_end/models/trace/insights/Common.ts +2 -8
- package/front_end/models/trace/insights/types.ts +12 -2
- package/front_end/models/trace/types/TraceEvents.ts +4 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +28 -6
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +9 -23
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +78 -2
- package/front_end/panels/ai_assistance/components/CollapsibleAssistanceContentWidget.ts +71 -0
- package/front_end/panels/ai_assistance/components/PerformanceAgentFlameChart.ts +126 -0
- package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +131 -2
- package/front_end/panels/ai_assistance/components/chatView.css +28 -0
- package/front_end/panels/ai_assistance/components/collapsibleAssistanceContentWidget.css +33 -0
- package/front_end/panels/application/AppManifestView.ts +1007 -521
- package/front_end/panels/application/ApplicationPanelSidebar.ts +1 -17
- package/front_end/panels/application/ExtensionStorageItemsView.ts +3 -5
- package/front_end/panels/application/KeyValueStorageItemsView.ts +3 -2
- package/front_end/panels/application/components/BackForwardCacheView.ts +2 -2
- package/front_end/panels/application/preloading/PreloadingView.ts +46 -45
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +80 -75
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +169 -133
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +74 -93
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +142 -117
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +51 -11
- package/front_end/panels/application/preloading/components/components.ts +0 -2
- package/front_end/panels/common/Annotation.ts +184 -0
- package/front_end/panels/common/AnnotationManager.ts +148 -11
- package/front_end/panels/common/ExtensionView.ts +47 -0
- package/front_end/panels/common/PersistenceUtils.ts +22 -25
- package/front_end/panels/common/annotation.css +40 -0
- package/front_end/panels/common/common.ts +1 -0
- package/front_end/panels/console/ConsoleInsightTeaser.ts +187 -5
- package/front_end/panels/console/ConsolePinPane.ts +437 -217
- package/front_end/panels/console/ConsolePrompt.ts +32 -223
- package/front_end/panels/console/ConsoleView.ts +67 -66
- package/front_end/panels/console/ConsoleViewMessage.ts +8 -3
- package/front_end/panels/console/consoleInsightTeaser.css +23 -0
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +89 -0
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +2 -2
- package/front_end/panels/elements/ComputedStyleWidget.ts +16 -5
- package/front_end/panels/elements/ElementsPanel.ts +38 -12
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +313 -353
- package/front_end/panels/elements/ElementsTreeOutline.ts +39 -13
- package/front_end/panels/elements/StylePropertyTreeElement.ts +15 -14
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/emulation/MediaQueryInspector.ts +171 -125
- package/front_end/panels/explain/components/ConsoleInsight.ts +175 -150
- package/front_end/panels/explain/components/consoleInsight.css +348 -347
- package/front_end/panels/issues/AffectedPermissionElementsView.ts +46 -0
- package/front_end/panels/issues/IssueView.ts +2 -0
- package/front_end/panels/issues/IssuesPane.ts +6 -0
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +165 -149
- package/front_end/panels/layer_viewer/Layers3DView.ts +131 -78
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +149 -100
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +90 -64
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +25 -34
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +60 -44
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +170 -151
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +50 -51
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +0 -13
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +20 -18
- package/front_end/panels/mobile_throttling/CalibrationController.ts +3 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +14 -6
- package/front_end/panels/network/NetworkItemView.ts +42 -3
- package/front_end/panels/network/NetworkLogView.ts +10 -11
- package/front_end/panels/network/NetworkPanel.ts +63 -1
- package/front_end/panels/network/RequestInitiatorView.ts +146 -113
- package/front_end/panels/network/components/RequestHeaderSection.css +51 -50
- package/front_end/panels/network/components/RequestHeaderSection.ts +81 -71
- package/front_end/panels/network/components/RequestHeadersView.css +1 -1
- package/front_end/panels/network/components/RequestHeadersView.ts +26 -11
- package/front_end/panels/network/components/RequestTrustTokensView.css +24 -14
- package/front_end/panels/network/components/RequestTrustTokensView.ts +144 -140
- package/front_end/panels/profiler/IsolateSelector.ts +2 -1
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +49 -33
- package/front_end/panels/recorder/RecorderController.ts +2 -3
- package/front_end/panels/recorder/components/ControlButton.ts +68 -34
- package/front_end/panels/recorder/components/CreateRecordingView.ts +9 -6
- package/front_end/panels/recorder/components/RecordingView.ts +81 -88
- package/front_end/panels/recorder/components/ReplaySection.ts +226 -145
- package/front_end/panels/recorder/{controllers → components}/SelectorPicker.ts +129 -52
- package/front_end/panels/recorder/components/StepEditor.ts +21 -67
- package/front_end/panels/recorder/components/StepView.ts +222 -180
- package/front_end/panels/recorder/components/TimelineSection.ts +69 -48
- package/front_end/panels/recorder/components/components.ts +2 -2
- package/front_end/panels/recorder/components/selectorPicker.css +14 -0
- package/front_end/panels/recorder/components/stepEditor.css +0 -5
- package/front_end/panels/recorder/components/stepView.css +196 -198
- package/front_end/panels/recorder/extensions/ExtensionManager.ts +4 -48
- package/front_end/panels/recorder/models/ScreenshotUtils.ts +17 -11
- package/front_end/panels/security/CookieControlsView.ts +9 -16
- package/front_end/panels/settings/components/SyncSection.ts +0 -1
- package/front_end/panels/sources/CSSPlugin.ts +3 -3
- package/front_end/panels/sources/CallStackSidebarPane.ts +60 -75
- package/front_end/panels/sources/SourcesPanel.ts +1 -11
- package/front_end/panels/sources/TabbedEditorContainer.ts +11 -8
- package/front_end/panels/sources/ThreadsSidebarPane.ts +96 -101
- package/front_end/panels/sources/threadsSidebarPane.css +6 -5
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +2 -3
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +23 -33
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -3
- package/front_end/panels/timeline/TimelineFlameChartView.ts +12 -0
- package/front_end/panels/timeline/TimelinePanel.ts +3 -5
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +164 -142
- package/front_end/panels/timeline/components/InteractionBreakdown.ts +48 -28
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +18 -23
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +98 -73
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +9 -12
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +262 -291
- package/front_end/panels/timeline/components/Utils.ts +25 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +210 -146
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +8 -20
- package/front_end/panels/timeline/components/insights/Cache.ts +0 -9
- package/front_end/panels/timeline/components/insights/DOMSize.ts +11 -33
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +0 -9
- package/front_end/panels/timeline/components/insights/DuplicatedJavaScript.ts +0 -9
- package/front_end/panels/timeline/components/insights/EventRef.ts +47 -109
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +0 -9
- package/front_end/panels/timeline/components/insights/ForcedReflow.ts +0 -9
- package/front_end/panels/timeline/components/insights/INPBreakdown.ts +0 -9
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +1 -10
- package/front_end/panels/timeline/components/insights/ImageRef.ts +112 -0
- package/front_end/panels/timeline/components/insights/InsightRenderer.ts +91 -0
- package/front_end/panels/timeline/components/insights/LCPBreakdown.ts +0 -9
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +4 -11
- package/front_end/panels/timeline/components/insights/LegacyJavaScript.ts +0 -9
- package/front_end/panels/timeline/components/insights/ModernHTTP.ts +0 -9
- package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +6 -21
- package/front_end/panels/timeline/components/insights/NodeLink.ts +68 -43
- package/front_end/panels/timeline/components/insights/README.md +2 -3
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +0 -9
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +0 -9
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +0 -9
- package/front_end/panels/timeline/components/insights/Viewport.ts +7 -19
- package/front_end/panels/timeline/components/insights/baseInsightComponent.css +5 -0
- package/front_end/panels/timeline/components/insights/insights.ts +2 -0
- package/front_end/panels/timeline/components/interactionBreakdown.css +15 -13
- package/front_end/panels/timeline/enable-easter-egg.js +7 -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/cjs/puppeteer/api/BluetoothEmulation.d.ts +96 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BluetoothEmulation.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +87 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/DeviceRequestPrompt.d.ts +2 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/DeviceRequestPrompt.js +5 -24
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.js +42 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.d.ts +27 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.js +90 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/DeviceRequestPrompt.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +14 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.js +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +5 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +22 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js +4 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +30 -0
- 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/ConnectOptions.d.ts +15 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +2 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +5 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.js +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +221 -4
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +182 -95
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.d.ts +96 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +87 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/DeviceRequestPrompt.d.ts +2 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/DeviceRequestPrompt.js +4 -22
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.js +38 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +10 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.d.ts +27 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.js +85 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/DeviceRequestPrompt.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +14 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.d.ts +18 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.js +26 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BluetoothEmulation.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +5 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +22 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +2 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/WebWorker.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +31 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +15 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +2 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +5 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js +16 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +221 -4
- package/front_end/third_party/puppeteer/package/package.json +4 -4
- package/front_end/third_party/puppeteer/package/src/api/BluetoothEmulation.ts +103 -0
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +96 -1
- package/front_end/third_party/puppeteer/package/src/api/DeviceRequestPrompt.ts +2 -10
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/api/api.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BluetoothEmulation.ts +52 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +15 -0
- package/front_end/third_party/puppeteer/package/src/bidi/DeviceRequestPrompt.ts +138 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +7 -3
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +10 -2
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +30 -2
- package/front_end/third_party/puppeteer/package/src/bidi/util.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/BluetoothEmulation.ts +47 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +33 -3
- package/front_end/third_party/puppeteer/package/src/cdp/CdpSession.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/DeviceRequestPrompt.ts +3 -8
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +9 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +13 -0
- package/front_end/third_party/puppeteer/package/src/cdp/WebWorker.ts +8 -3
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +45 -1
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +20 -0
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +5 -17
- package/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts +23 -7
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +4 -0
- package/front_end/ui/components/annotations/AnnotationRepository.ts +153 -13
- package/front_end/ui/components/snackbars/Snackbars.docs.ts +0 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionTeaserPlaceholder.ts +12 -3
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +182 -0
- package/front_end/ui/components/text_editor/text_editor.ts +1 -0
- package/front_end/ui/helpers/OpenInNewTab.ts +5 -1
- package/front_end/ui/i18n/i18n.ts +9 -9
- package/front_end/ui/kit/icons/Icon.docs.ts +22 -65
- package/front_end/ui/kit/kit.ts +1 -0
- package/front_end/ui/kit/link/Link.docs.ts +15 -0
- package/front_end/ui/kit/link/Link.ts +151 -0
- package/front_end/ui/kit/link/link.css +27 -0
- package/front_end/ui/legacy/EmptyWidget.ts +6 -0
- package/front_end/ui/legacy/Floaty.ts +442 -0
- package/front_end/ui/legacy/InspectorView.ts +12 -0
- package/front_end/ui/legacy/ReportView.ts +1 -1
- package/front_end/ui/legacy/SelectMenu.docs.ts +0 -1
- package/front_end/ui/legacy/TabbedPane.ts +131 -53
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +36 -36
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +22 -37
- package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +31 -1
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +2 -2
- package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -11
- package/front_end/ui/legacy/floaty.css +77 -0
- package/front_end/ui/legacy/legacy.ts +2 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +6 -0
- package/inspector_overlay/loadCSS.rollup.js +5 -4
- package/package.json +2 -2
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +0 -99
- package/front_end/panels/recorder/components/SelectButton.ts +0 -304
- package/front_end/panels/recorder/controllers/controllers.ts +0 -7
- package/front_end/ui/components/chrome_link/ChromeLink.ts +0 -76
- package/front_end/ui/components/chrome_link/chromeLink.css +0 -12
- package/front_end/ui/components/chrome_link/chrome_link.ts +0 -9
- /package/front_end/panels/recorder/components/{selectButton.css → replaySection.css} +0 -0
|
@@ -2,14 +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
|
-
/* Some view input callbacks might be handled outside of Lit and we
|
|
6
|
-
bind all of them upfront. We disable the lit_html_host_this since we
|
|
7
|
-
do not define any host for Lit.render and the rule is not happy
|
|
8
|
-
about it. */
|
|
9
|
-
|
|
10
5
|
import '../../../ui/kit/kit.js';
|
|
11
6
|
import './StepEditor.js';
|
|
12
|
-
import './TimelineSection.js';
|
|
13
7
|
|
|
14
8
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
15
9
|
import * as Platform from '../../../core/platform/platform.js';
|
|
@@ -22,7 +16,7 @@ import * as Models from '../models/models.js';
|
|
|
22
16
|
|
|
23
17
|
import type {StepEditedEvent} from './StepEditor.js';
|
|
24
18
|
import stepViewStyles from './stepView.css.js';
|
|
25
|
-
import
|
|
19
|
+
import {TimelineSection} from './TimelineSection.js';
|
|
26
20
|
|
|
27
21
|
const {html} = Lit;
|
|
28
22
|
|
|
@@ -139,12 +133,6 @@ const str_ = i18n.i18n.registerUIStrings(
|
|
|
139
133
|
);
|
|
140
134
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
141
135
|
|
|
142
|
-
declare global {
|
|
143
|
-
interface HTMLElementTagNameMap {
|
|
144
|
-
'devtools-step-view': StepView;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
136
|
export const enum State {
|
|
149
137
|
DEFAULT = 'default',
|
|
150
138
|
SUCCESS = 'success',
|
|
@@ -154,27 +142,6 @@ export const enum State {
|
|
|
154
142
|
STOPPED = 'stopped',
|
|
155
143
|
}
|
|
156
144
|
|
|
157
|
-
export interface StepViewData {
|
|
158
|
-
state: State;
|
|
159
|
-
step?: Models.Schema.Step;
|
|
160
|
-
section?: Models.Section.Section;
|
|
161
|
-
error?: Error;
|
|
162
|
-
hasBreakpoint: boolean;
|
|
163
|
-
isEndOfGroup: boolean;
|
|
164
|
-
isStartOfGroup: boolean;
|
|
165
|
-
isFirstSection: boolean;
|
|
166
|
-
isLastSection: boolean;
|
|
167
|
-
stepIndex: number;
|
|
168
|
-
sectionIndex: number;
|
|
169
|
-
isRecording: boolean;
|
|
170
|
-
isPlaying: boolean;
|
|
171
|
-
removable: boolean;
|
|
172
|
-
builtInConverters: Converters.Converter.Converter[];
|
|
173
|
-
extensionConverters: Converters.Converter.Converter[];
|
|
174
|
-
isSelected: boolean;
|
|
175
|
-
recorderSettings?: Models.RecorderSettings.RecorderSettings;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
145
|
export class CaptureSelectorsEvent extends Event {
|
|
179
146
|
static readonly eventName = 'captureselectors';
|
|
180
147
|
data: Models.Schema.StepWithSelectors&Partial<Models.Schema.ClickAttributes>;
|
|
@@ -187,16 +154,6 @@ export class CaptureSelectorsEvent extends Event {
|
|
|
187
154
|
}
|
|
188
155
|
}
|
|
189
156
|
|
|
190
|
-
export class StopSelectorsCaptureEvent extends Event {
|
|
191
|
-
static readonly eventName = 'stopselectorscapture';
|
|
192
|
-
constructor() {
|
|
193
|
-
super(StopSelectorsCaptureEvent.eventName, {
|
|
194
|
-
bubbles: true,
|
|
195
|
-
composed: true,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
157
|
export class CopyStepEvent extends Event {
|
|
201
158
|
static readonly eventName = 'copystep';
|
|
202
159
|
step: Models.Schema.Step;
|
|
@@ -278,7 +235,7 @@ interface Action {
|
|
|
278
235
|
jslogContext?: string;
|
|
279
236
|
}
|
|
280
237
|
|
|
281
|
-
export interface ViewInput
|
|
238
|
+
export interface ViewInput {
|
|
282
239
|
step?: Models.Schema.Step;
|
|
283
240
|
section?: Models.Section.Section;
|
|
284
241
|
state: State;
|
|
@@ -307,6 +264,8 @@ export interface ViewInput extends StepViewData {
|
|
|
307
264
|
toggleShowDetails: () => void;
|
|
308
265
|
onToggleShowDetailsKeydown: (event: Event) => void;
|
|
309
266
|
populateStepContextMenu: (contextMenu: UI.ContextMenu.ContextMenu) => void;
|
|
267
|
+
onStepClick: (step: Models.Schema.Step|Models.Section.Section) => void;
|
|
268
|
+
onStepHover: (step: Models.Schema.Step|Models.Section.Section) => void;
|
|
310
269
|
}
|
|
311
270
|
|
|
312
271
|
export type ViewOutput = unknown;
|
|
@@ -409,7 +368,7 @@ function renderStepActions(input: ViewInput): Lit.TemplateResult|null {
|
|
|
409
368
|
// clang-format on
|
|
410
369
|
}
|
|
411
370
|
|
|
412
|
-
|
|
371
|
+
export const DEFAULT_VIEW = (input: ViewInput, _output: ViewOutput, target: HTMLElement|ShadowRoot): void => {
|
|
413
372
|
if (!input.step && !input.section) {
|
|
414
373
|
return;
|
|
415
374
|
}
|
|
@@ -431,105 +390,114 @@ function viewFunction(input: ViewInput, _output: ViewOutput, target: HTMLElement
|
|
|
431
390
|
step: input.step,
|
|
432
391
|
section: input.section,
|
|
433
392
|
});
|
|
434
|
-
const subtitle = input.step ? getSelectorPreview(input.step) : getSectionPreview();
|
|
393
|
+
const subtitle = input.step ? getSelectorPreview(input.step) : getSectionPreview(input.section);
|
|
435
394
|
|
|
436
395
|
// clang-format off
|
|
437
396
|
Lit.render(
|
|
438
397
|
html`
|
|
439
398
|
<style>${stepViewStyles}</style>
|
|
440
|
-
<
|
|
441
|
-
{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
<circle class="circle-icon"/>
|
|
461
|
-
<g class="error-icon">
|
|
462
|
-
<path d="M1.5 1.5L6.5 6.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
463
|
-
<path d="M1.5 6.5L6.5 1.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
464
|
-
</g>
|
|
465
|
-
<path @click=${input.onBreakpointClick} jslog=${VisualLogging.action('breakpoint').track({click: true})} class="breakpoint-icon" d="M2.5 5.5H17.7098L21.4241 12L17.7098 18.5H2.5V5.5Z"/>
|
|
466
|
-
</svg>
|
|
467
|
-
<div class="summary">
|
|
468
|
-
<div class="title-container ${isExpandable ? 'action' : ''}"
|
|
469
|
-
@click=${isExpandable && input.toggleShowDetails}
|
|
470
|
-
@keydown=${
|
|
471
|
-
isExpandable && input.onToggleShowDetailsKeydown
|
|
399
|
+
<div>
|
|
400
|
+
<devtools-widget .widgetConfig=${UI.Widget.widgetConfig(TimelineSection, {
|
|
401
|
+
isFirstSection: input.isFirstSection,
|
|
402
|
+
isLastSection: input.isLastSection,
|
|
403
|
+
isStartOfGroup: input.isStartOfGroup,
|
|
404
|
+
isEndOfGroup: input.isEndOfGroup,
|
|
405
|
+
isSelected: input.isSelected,
|
|
406
|
+
})}
|
|
407
|
+
@contextmenu=${
|
|
408
|
+
(e: Event) => {
|
|
409
|
+
const menu = new UI.ContextMenu.ContextMenu(e as MouseEvent);
|
|
410
|
+
input.populateStepContextMenu(menu);
|
|
411
|
+
void menu.show();}
|
|
412
|
+
}
|
|
413
|
+
data-step-index=${input.stepIndex}
|
|
414
|
+
data-section-index=${input.sectionIndex}
|
|
415
|
+
@click=${() => {
|
|
416
|
+
const stepOrSection = input.step || input.section;
|
|
417
|
+
if (stepOrSection) {
|
|
418
|
+
input.onStepClick(stepOrSection);
|
|
472
419
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
${
|
|
479
|
-
isExpandable
|
|
480
|
-
? html`<devtools-icon
|
|
481
|
-
class="chevron"
|
|
482
|
-
jslog=${VisualLogging.expand().track({click: true})}
|
|
483
|
-
name="triangle-down">
|
|
484
|
-
</devtools-icon>`
|
|
485
|
-
: ''
|
|
420
|
+
}}
|
|
421
|
+
@mouseover=${() => {
|
|
422
|
+
const stepOrSection = input.step || input.section;
|
|
423
|
+
if (stepOrSection) {
|
|
424
|
+
input.onStepHover(stepOrSection);
|
|
486
425
|
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
426
|
+
}}
|
|
427
|
+
class=${Lit.Directives.classMap(stepClasses)}>
|
|
428
|
+
<svg slot="icon" width="24" height="24" class="icon">
|
|
429
|
+
<circle class="circle-icon"/>
|
|
430
|
+
<g class="error-icon">
|
|
431
|
+
<path d="M1.5 1.5L6.5 6.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
432
|
+
<path d="M1.5 6.5L6.5 1.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
433
|
+
</g>
|
|
434
|
+
<path @click=${input.onBreakpointClick} jslog=${VisualLogging.action('breakpoint').track({click: true})} class="breakpoint-icon" d="M2.5 5.5H17.7098L21.4241 12L17.7098 18.5H2.5V5.5Z"/>
|
|
435
|
+
</svg>
|
|
436
|
+
<div class="summary">
|
|
437
|
+
<div class="title-container ${isExpandable ? 'action' : ''}"
|
|
438
|
+
@click=${isExpandable ? input.toggleShowDetails : undefined}
|
|
439
|
+
@keydown=${
|
|
440
|
+
isExpandable ? input.onToggleShowDetailsKeydown : undefined
|
|
441
|
+
}
|
|
442
|
+
tabindex="0"
|
|
443
|
+
jslog=${VisualLogging.sectionHeader().track({click: true})}
|
|
444
|
+
aria-role=${isExpandable ? 'button' : ''}
|
|
445
|
+
aria-label=${isExpandable ? 'Show details for step' : ''}
|
|
446
|
+
>
|
|
447
|
+
${
|
|
448
|
+
isExpandable
|
|
449
|
+
? html`<devtools-icon
|
|
450
|
+
class="chevron"
|
|
451
|
+
jslog=${VisualLogging.expand().track({click: true})}
|
|
452
|
+
name="triangle-down">
|
|
453
|
+
</devtools-icon>`
|
|
454
|
+
: ''
|
|
455
|
+
}
|
|
456
|
+
<div class="title">
|
|
457
|
+
<div class="main-title" title=${mainTitle}>${mainTitle}</div>
|
|
458
|
+
<div class="subtitle" title=${subtitle}>${subtitle}</div>
|
|
459
|
+
</div>
|
|
490
460
|
</div>
|
|
461
|
+
<div class="filler"></div>
|
|
462
|
+
${renderStepActions(input)}
|
|
463
|
+
</div>
|
|
464
|
+
<div class="details">
|
|
465
|
+
${
|
|
466
|
+
input.step &&
|
|
467
|
+
html`<devtools-recorder-step-editor
|
|
468
|
+
class=${input.isSelected ? 'is-selected' : ''}
|
|
469
|
+
.step=${input.step}
|
|
470
|
+
.disabled=${input.isPlaying}
|
|
471
|
+
@stepedited=${input.stepEdited}>
|
|
472
|
+
</devtools-recorder-step-editor>`
|
|
473
|
+
}
|
|
474
|
+
${
|
|
475
|
+
input.section?.causingStep &&
|
|
476
|
+
html`<devtools-recorder-step-editor
|
|
477
|
+
.step=${input.section.causingStep}
|
|
478
|
+
.isTypeEditable=${false}
|
|
479
|
+
.disabled=${input.isPlaying}
|
|
480
|
+
@stepedited=${input.stepEdited}>
|
|
481
|
+
</devtools-recorder-step-editor>`
|
|
482
|
+
}
|
|
491
483
|
</div>
|
|
492
|
-
<div class="filler"></div>
|
|
493
|
-
${renderStepActions(input)}
|
|
494
|
-
</div>
|
|
495
|
-
<div class="details">
|
|
496
|
-
${
|
|
497
|
-
input.step &&
|
|
498
|
-
html`<devtools-recorder-step-editor
|
|
499
|
-
class=${input.isSelected ? 'is-selected' : ''}
|
|
500
|
-
.step=${input.step}
|
|
501
|
-
.disabled=${input.isPlaying}
|
|
502
|
-
@stepedited=${input.stepEdited}>
|
|
503
|
-
</devtools-recorder-step-editor>`
|
|
504
|
-
}
|
|
505
484
|
${
|
|
506
|
-
input.
|
|
507
|
-
html
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
</devtools-recorder-step-editor>`
|
|
485
|
+
input.error &&
|
|
486
|
+
html`
|
|
487
|
+
<div class="error" role="alert">
|
|
488
|
+
${input.error.message}
|
|
489
|
+
</div>
|
|
490
|
+
`
|
|
513
491
|
}
|
|
514
|
-
</
|
|
515
|
-
|
|
516
|
-
input.error &&
|
|
517
|
-
html`
|
|
518
|
-
<div class="error" role="alert">
|
|
519
|
-
${input.error.message}
|
|
520
|
-
</div>
|
|
521
|
-
`
|
|
522
|
-
}
|
|
523
|
-
</devtools-timeline-section>
|
|
492
|
+
</devtools-widget>
|
|
493
|
+
</div>
|
|
524
494
|
`,
|
|
525
495
|
target,
|
|
526
496
|
);
|
|
527
497
|
// clang-format on
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
export class StepView extends HTMLElement {
|
|
531
|
-
readonly #shadow = this.attachShadow({mode: 'open'});
|
|
498
|
+
};
|
|
532
499
|
|
|
500
|
+
export class StepView extends UI.Widget.Widget {
|
|
533
501
|
#observer: IntersectionObserver = new IntersectionObserver(result => {
|
|
534
502
|
this.#viewInput.isVisible = result[0].isIntersecting;
|
|
535
503
|
});
|
|
@@ -559,46 +527,120 @@ export class StepView extends HTMLElement {
|
|
|
559
527
|
toggleShowDetails: this.#toggleShowDetails.bind(this),
|
|
560
528
|
onToggleShowDetailsKeydown: this.#onToggleShowDetailsKeydown.bind(this),
|
|
561
529
|
populateStepContextMenu: this.#populateStepContextMenu.bind(this),
|
|
530
|
+
onStepClick: () => {},
|
|
531
|
+
onStepHover: () => {},
|
|
562
532
|
};
|
|
563
|
-
#view
|
|
533
|
+
#view: typeof DEFAULT_VIEW;
|
|
564
534
|
|
|
565
|
-
constructor(view?: typeof
|
|
566
|
-
super();
|
|
567
|
-
|
|
568
|
-
this.#view = view;
|
|
569
|
-
}
|
|
570
|
-
this.setAttribute('jslog', `${VisualLogging.section('step-view')}`);
|
|
535
|
+
constructor(element?: HTMLElement, view?: typeof DEFAULT_VIEW) {
|
|
536
|
+
super(element, {useShadowDom: true, classes: ['step-view-widget']});
|
|
537
|
+
this.#view = view || DEFAULT_VIEW;
|
|
571
538
|
}
|
|
572
539
|
|
|
573
|
-
set
|
|
574
|
-
|
|
575
|
-
this
|
|
576
|
-
|
|
577
|
-
this.#viewInput.state = data.state;
|
|
578
|
-
this.#viewInput.error = data.error;
|
|
579
|
-
this.#viewInput.isEndOfGroup = data.isEndOfGroup;
|
|
580
|
-
this.#viewInput.isStartOfGroup = data.isStartOfGroup;
|
|
581
|
-
this.#viewInput.stepIndex = data.stepIndex;
|
|
582
|
-
this.#viewInput.sectionIndex = data.sectionIndex;
|
|
583
|
-
this.#viewInput.isFirstSection = data.isFirstSection;
|
|
584
|
-
this.#viewInput.isLastSection = data.isLastSection;
|
|
585
|
-
this.#viewInput.isRecording = data.isRecording;
|
|
586
|
-
this.#viewInput.isPlaying = data.isPlaying;
|
|
587
|
-
this.#viewInput.hasBreakpoint = data.hasBreakpoint;
|
|
588
|
-
this.#viewInput.removable = data.removable;
|
|
589
|
-
this.#viewInput.builtInConverters = data.builtInConverters;
|
|
590
|
-
this.#viewInput.extensionConverters = data.extensionConverters;
|
|
591
|
-
this.#viewInput.isSelected = data.isSelected;
|
|
592
|
-
this.#viewInput.recorderSettings = data.recorderSettings;
|
|
593
|
-
this.#viewInput.actions = this.#getActions();
|
|
540
|
+
set step(step: Models.Schema.Step|undefined) {
|
|
541
|
+
this.#viewInput.step = step;
|
|
542
|
+
this.requestUpdate();
|
|
543
|
+
}
|
|
594
544
|
|
|
595
|
-
|
|
545
|
+
set section(section: Models.Section.Section|undefined) {
|
|
546
|
+
this.#viewInput.section = section;
|
|
547
|
+
this.requestUpdate();
|
|
548
|
+
}
|
|
596
549
|
|
|
550
|
+
set state(state: State) {
|
|
551
|
+
const prevState = this.#viewInput.state;
|
|
552
|
+
this.#viewInput.state = state;
|
|
553
|
+
this.performUpdate();
|
|
597
554
|
if (this.#viewInput.state !== prevState && this.#viewInput.state === 'current' && !this.#viewInput.isVisible) {
|
|
598
|
-
this.scrollIntoView();
|
|
555
|
+
this.contentElement.scrollIntoView();
|
|
599
556
|
}
|
|
600
557
|
}
|
|
601
558
|
|
|
559
|
+
set error(error: Error|undefined) {
|
|
560
|
+
this.#viewInput.error = error;
|
|
561
|
+
this.requestUpdate();
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
set isEndOfGroup(isEndOfGroup: boolean) {
|
|
565
|
+
this.#viewInput.isEndOfGroup = isEndOfGroup;
|
|
566
|
+
this.requestUpdate();
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
set isStartOfGroup(isStartOfGroup: boolean) {
|
|
570
|
+
this.#viewInput.isStartOfGroup = isStartOfGroup;
|
|
571
|
+
this.requestUpdate();
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
set stepIndex(stepIndex: number) {
|
|
575
|
+
this.#viewInput.stepIndex = stepIndex;
|
|
576
|
+
this.requestUpdate();
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
set sectionIndex(sectionIndex: number) {
|
|
580
|
+
this.#viewInput.sectionIndex = sectionIndex;
|
|
581
|
+
this.requestUpdate();
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
set isFirstSection(isFirstSection: boolean) {
|
|
585
|
+
this.#viewInput.isFirstSection = isFirstSection;
|
|
586
|
+
this.requestUpdate();
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
set isLastSection(isLastSection: boolean) {
|
|
590
|
+
this.#viewInput.isLastSection = isLastSection;
|
|
591
|
+
this.requestUpdate();
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
set isRecording(isRecording: boolean) {
|
|
595
|
+
this.#viewInput.isRecording = isRecording;
|
|
596
|
+
this.requestUpdate();
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
set isPlaying(isPlaying: boolean) {
|
|
600
|
+
this.#viewInput.isPlaying = isPlaying;
|
|
601
|
+
this.requestUpdate();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
set hasBreakpoint(hasBreakpoint: boolean) {
|
|
605
|
+
this.#viewInput.hasBreakpoint = hasBreakpoint;
|
|
606
|
+
this.requestUpdate();
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
set removable(removable: boolean) {
|
|
610
|
+
this.#viewInput.removable = removable;
|
|
611
|
+
this.requestUpdate();
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
set builtInConverters(builtInConverters: Converters.Converter.Converter[]) {
|
|
615
|
+
this.#viewInput.builtInConverters = builtInConverters;
|
|
616
|
+
this.requestUpdate();
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
set extensionConverters(extensionConverters: Converters.Converter.Converter[]) {
|
|
620
|
+
this.#viewInput.extensionConverters = extensionConverters;
|
|
621
|
+
this.requestUpdate();
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
set isSelected(isSelected: boolean) {
|
|
625
|
+
this.#viewInput.isSelected = isSelected;
|
|
626
|
+
this.requestUpdate();
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
set recorderSettings(recorderSettings: Models.RecorderSettings.RecorderSettings|undefined) {
|
|
630
|
+
this.#viewInput.recorderSettings = recorderSettings;
|
|
631
|
+
this.requestUpdate();
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
set onStepClick(onStepClick: (step: Models.Schema.Step|Models.Section.Section) => void) {
|
|
635
|
+
this.#viewInput.onStepClick = onStepClick;
|
|
636
|
+
this.requestUpdate();
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
set onStepHover(onStepHover: (step: Models.Schema.Step|Models.Section.Section) => void) {
|
|
640
|
+
this.#viewInput.onStepHover = onStepHover;
|
|
641
|
+
this.requestUpdate();
|
|
642
|
+
}
|
|
643
|
+
|
|
602
644
|
get step(): Models.Schema.Step|undefined {
|
|
603
645
|
return this.#viewInput.step;
|
|
604
646
|
}
|
|
@@ -607,18 +649,20 @@ export class StepView extends HTMLElement {
|
|
|
607
649
|
return this.#viewInput.section;
|
|
608
650
|
}
|
|
609
651
|
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
this.#
|
|
652
|
+
override wasShown(): void {
|
|
653
|
+
super.wasShown();
|
|
654
|
+
this.#observer.observe(this.contentElement);
|
|
655
|
+
this.requestUpdate();
|
|
613
656
|
}
|
|
614
657
|
|
|
615
|
-
|
|
616
|
-
|
|
658
|
+
override willHide(): void {
|
|
659
|
+
super.willHide();
|
|
660
|
+
this.#observer.unobserve(this.contentElement);
|
|
617
661
|
}
|
|
618
662
|
|
|
619
663
|
#toggleShowDetails(): void {
|
|
620
664
|
this.#viewInput.showDetails = !this.#viewInput.showDetails;
|
|
621
|
-
this
|
|
665
|
+
this.requestUpdate();
|
|
622
666
|
}
|
|
623
667
|
|
|
624
668
|
#onToggleShowDetailsKeydown(event: Event): void {
|
|
@@ -635,7 +679,7 @@ export class StepView extends HTMLElement {
|
|
|
635
679
|
if (!step) {
|
|
636
680
|
throw new Error('Expected step.');
|
|
637
681
|
}
|
|
638
|
-
this.dispatchEvent(new StepChanged(step, event.data));
|
|
682
|
+
this.contentElement.dispatchEvent(new StepChanged(step, event.data));
|
|
639
683
|
}
|
|
640
684
|
|
|
641
685
|
#handleStepAction(event: Menus.Menu.MenuItemSelectedEvent): void {
|
|
@@ -645,7 +689,7 @@ export class StepView extends HTMLElement {
|
|
|
645
689
|
if (!stepOrSection) {
|
|
646
690
|
throw new Error('Expected step or section.');
|
|
647
691
|
}
|
|
648
|
-
this.dispatchEvent(new AddStep(stepOrSection, AddStepPosition.BEFORE));
|
|
692
|
+
this.contentElement.dispatchEvent(new AddStep(stepOrSection, AddStepPosition.BEFORE));
|
|
649
693
|
break;
|
|
650
694
|
}
|
|
651
695
|
case 'add-step-after': {
|
|
@@ -653,7 +697,7 @@ export class StepView extends HTMLElement {
|
|
|
653
697
|
if (!stepOrSection) {
|
|
654
698
|
throw new Error('Expected step or section.');
|
|
655
699
|
}
|
|
656
|
-
this.dispatchEvent(new AddStep(stepOrSection, AddStepPosition.AFTER));
|
|
700
|
+
this.contentElement.dispatchEvent(new AddStep(stepOrSection, AddStepPosition.AFTER));
|
|
657
701
|
break;
|
|
658
702
|
}
|
|
659
703
|
case 'remove-step': {
|
|
@@ -661,7 +705,7 @@ export class StepView extends HTMLElement {
|
|
|
661
705
|
if (!this.#viewInput.step && !causingStep) {
|
|
662
706
|
throw new Error('Expected step.');
|
|
663
707
|
}
|
|
664
|
-
this.dispatchEvent(
|
|
708
|
+
this.contentElement.dispatchEvent(
|
|
665
709
|
new RemoveStep(this.#viewInput.step || (causingStep as Models.Schema.Step)),
|
|
666
710
|
);
|
|
667
711
|
break;
|
|
@@ -670,14 +714,14 @@ export class StepView extends HTMLElement {
|
|
|
670
714
|
if (!this.#viewInput.step) {
|
|
671
715
|
throw new Error('Expected step');
|
|
672
716
|
}
|
|
673
|
-
this.dispatchEvent(new AddBreakpointEvent(this.#viewInput.stepIndex));
|
|
717
|
+
this.contentElement.dispatchEvent(new AddBreakpointEvent(this.#viewInput.stepIndex));
|
|
674
718
|
break;
|
|
675
719
|
}
|
|
676
720
|
case 'remove-breakpoint': {
|
|
677
721
|
if (!this.#viewInput.step) {
|
|
678
722
|
throw new Error('Expected step');
|
|
679
723
|
}
|
|
680
|
-
this.dispatchEvent(new RemoveBreakpointEvent(this.#viewInput.stepIndex));
|
|
724
|
+
this.contentElement.dispatchEvent(new RemoveBreakpointEvent(this.#viewInput.stepIndex));
|
|
681
725
|
break;
|
|
682
726
|
}
|
|
683
727
|
default: {
|
|
@@ -696,18 +740,18 @@ export class StepView extends HTMLElement {
|
|
|
696
740
|
this.#viewInput.recorderSettings.preferredCopyFormat = converterId;
|
|
697
741
|
}
|
|
698
742
|
|
|
699
|
-
this.dispatchEvent(new CopyStepEvent(structuredClone(copyStep)));
|
|
743
|
+
this.contentElement.dispatchEvent(new CopyStepEvent(structuredClone(copyStep)));
|
|
700
744
|
}
|
|
701
745
|
}
|
|
702
746
|
}
|
|
703
747
|
|
|
704
748
|
#onBreakpointClick(): void {
|
|
705
749
|
if (this.#viewInput.hasBreakpoint) {
|
|
706
|
-
this.dispatchEvent(new RemoveBreakpointEvent(this.#viewInput.stepIndex));
|
|
750
|
+
this.contentElement.dispatchEvent(new RemoveBreakpointEvent(this.#viewInput.stepIndex));
|
|
707
751
|
} else {
|
|
708
|
-
this.dispatchEvent(new AddBreakpointEvent(this.#viewInput.stepIndex));
|
|
752
|
+
this.contentElement.dispatchEvent(new AddBreakpointEvent(this.#viewInput.stepIndex));
|
|
709
753
|
}
|
|
710
|
-
this
|
|
754
|
+
this.requestUpdate();
|
|
711
755
|
}
|
|
712
756
|
|
|
713
757
|
#getActions = (): Action[] => {
|
|
@@ -825,10 +869,8 @@ export class StepView extends HTMLElement {
|
|
|
825
869
|
}
|
|
826
870
|
}
|
|
827
871
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
this.#view(this.#viewInput,
|
|
872
|
+
override performUpdate(): void {
|
|
873
|
+
this.#viewInput.actions = this.#getActions();
|
|
874
|
+
this.#view(this.#viewInput, undefined, this.contentElement);
|
|
831
875
|
}
|
|
832
876
|
}
|
|
833
|
-
|
|
834
|
-
customElements.define('devtools-step-view', StepView);
|