chrome-devtools-frontend 1.0.1538523 → 1.0.1539972
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.mjs +1 -1
- package/front_end/core/common/Debouncer.ts +2 -2
- package/front_end/core/common/Gzip.ts +1 -1
- package/front_end/core/common/Throttler.ts +3 -3
- package/front_end/core/host/GdpClient.ts +4 -0
- package/front_end/core/protocol_client/CDPConnection.ts +12 -10
- package/front_end/core/protocol_client/DevToolsCDPConnection.ts +181 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +55 -249
- package/front_end/core/protocol_client/protocol_client.ts +2 -2
- package/front_end/core/sdk/ChildTargetManager.ts +5 -41
- package/front_end/core/sdk/Connections.ts +9 -58
- package/front_end/core/sdk/DOMModel.ts +1 -0
- package/front_end/core/sdk/DebuggerModel.ts +3 -16
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +4 -0
- package/front_end/core/sdk/Target.ts +3 -6
- package/front_end/core/sdk/TargetManager.ts +1 -2
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +13 -26
- package/front_end/entrypoints/node_app/{NodeConnectionsPanel.ts → app/NodeConnectionsPanel.ts} +8 -8
- package/front_end/entrypoints/node_app/{NodeMain.ts → app/NodeMain.ts} +12 -11
- package/front_end/entrypoints/node_app/app/app.ts +6 -0
- package/front_end/entrypoints/node_app/node_app.ts +4 -2
- package/front_end/generated/Deprecation.ts +8 -0
- package/front_end/generated/{InspectorBackendCommands.js → InspectorBackendCommands.ts} +18 -36
- package/front_end/generated/SupportedCSSProperties.js +50 -9
- package/front_end/generated/protocol.ts +2 -2
- package/front_end/models/ai_assistance/EvaluateAction.ts +88 -5
- package/front_end/models/ai_assistance/injected.ts +15 -2
- package/front_end/models/live-metrics/web-vitals-injected/README.md +1 -1
- package/front_end/models/trace/Styles.ts +1 -1
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +18 -3
- package/front_end/models/trace/types/TraceEvents.ts +19 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +49 -26
- package/front_end/panels/ai_assistance/PatchWidget.ts +22 -12
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -135
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +170 -0
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +4 -4
- package/front_end/panels/ai_assistance/components/chatView.css +0 -31
- package/front_end/panels/ai_assistance/components/disabledWidget.css +45 -0
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +1 -1
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +4 -4
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +2 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +123 -95
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -2
- package/front_end/panels/elements/NodeStackTraceWidget.ts +8 -2
- package/front_end/panels/elements/PropertiesWidget.ts +3 -2
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -5
- package/front_end/panels/explain/components/ConsoleInsight.ts +2 -3
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +57 -33
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +12 -5
- package/front_end/panels/network/RequestInitiatorView.ts +1 -1
- package/front_end/panels/network/RequestPayloadView.ts +2 -1
- package/front_end/panels/network/RequestTimingView.ts +4 -2
- package/front_end/panels/network/components/EditableSpan.ts +1 -1
- package/front_end/panels/network/components/RequestHeadersView.ts +24 -17
- package/front_end/panels/protocol_monitor/JSONEditor.ts +2 -2
- package/front_end/panels/recorder/RecorderController.ts +6 -7
- package/front_end/panels/recorder/components/StepView.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.ts +7 -6
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +4 -4
- package/front_end/panels/sources/BreakpointsView.ts +3 -3
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
- package/front_end/panels/timeline/TimelineFlameChartView.ts +10 -10
- package/front_end/panels/timeline/TimelinePanel.ts +3 -3
- package/front_end/panels/timeline/TimelineUIUtils.ts +21 -24
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +9 -5
- package/front_end/panels/timeline/components/LiveMetricsView.ts +20 -9
- package/front_end/panels/timeline/components/MetricCard.ts +4 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +3 -2
- package/front_end/panels/utils/utils.ts +4 -2
- package/front_end/services/puppeteer/PuppeteerConnection.ts +57 -53
- 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/Browser.d.ts +3 -1
- 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 +4 -2
- 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/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.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/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
- 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 +29 -9
- 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 +1 -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 +11 -0
- 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/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +9 -2
- 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/Browser.d.ts +1 -0
- 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 +21 -0
- 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/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +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/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -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 +6 -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/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js +29 -27
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConnectOptions.d.ts +7 -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/BrowserLauncher.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.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 +14 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +97 -43
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +3 -1
- 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 +4 -2
- 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/BrowserContext.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.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/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
- 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 +29 -9
- 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 +1 -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 +11 -0
- 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/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +9 -2
- 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/Browser.d.ts +1 -0
- 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 +21 -0
- 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/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +4 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +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/CdpSession.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CdpSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +11 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -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 +6 -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/TargetManager.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js +30 -28
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/TargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectOptions.d.ts +7 -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/BrowserLauncher.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.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 +14 -3
- package/front_end/third_party/puppeteer/package/package.json +3 -3
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +3 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +8 -1
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +4 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +38 -10
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +13 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +8 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +32 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/CdpSession.ts +2 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +5 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +36 -43
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +7 -5
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +22 -1
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/dialogs/ButtonDialog.ts +15 -5
- package/front_end/ui/components/expandable_list/ExpandableList.ts +1 -1
- package/front_end/ui/components/helpers/helpers.ts +0 -2
- package/front_end/ui/components/menus/Menu.ts +5 -3
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.docs.ts +22 -0
- package/front_end/ui/components/switch/Switch.docs.ts +38 -0
- package/front_end/ui/components/tooltips/Tooltip.ts +69 -45
- package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -2
- package/front_end/ui/legacy/SelectMenu.docs.ts +14 -0
- package/front_end/ui/legacy/Slider.docs.ts +49 -0
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +453 -347
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +77 -5
- package/front_end/ui/legacy/components/utils/Linkifier.ts +62 -3
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/package.json +1 -1
- package/front_end/core/protocol_client/NodeURL.ts +0 -42
- package/front_end/third_party/puppeteer/package/src/templates/version.ts.tmpl +0 -4
- package/front_end/ui/components/docs/color_swatch/basic.html +0 -32
- package/front_end/ui/components/docs/color_swatch/basic.ts +0 -38
- package/front_end/ui/components/docs/color_swatch/change-color.html +0 -24
- package/front_end/ui/components/docs/color_swatch/change-color.ts +0 -28
- package/front_end/ui/components/docs/combo_box/basic.html +0 -20
- package/front_end/ui/components/docs/combo_box/basic.ts +0 -49
- package/front_end/ui/components/docs/computed_style_property/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/basic.ts +0 -19
- package/front_end/ui/components/docs/computed_style_property/traceable.html +0 -25
- package/front_end/ui/components/docs/computed_style_property/traceable.ts +0 -16
- package/front_end/ui/components/docs/computed_style_trace/basic.html +0 -25
- package/front_end/ui/components/docs/computed_style_trace/basic.ts +0 -24
- package/front_end/ui/components/docs/console_insight/basic.html +0 -28
- package/front_end/ui/components/docs/console_insight/basic.ts +0 -103
- package/front_end/ui/components/docs/console_insight/error.html +0 -28
- package/front_end/ui/components/docs/console_insight/error.ts +0 -33
- package/front_end/ui/components/docs/console_insight/loading.html +0 -28
- package/front_end/ui/components/docs/console_insight/loading.ts +0 -47
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.html +0 -43
- package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +0 -54
- package/front_end/ui/components/docs/elements_breadcrumbs/helpers.ts +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.html +0 -38
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +0 -90
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.html +0 -29
- package/front_end/ui/components/docs/elements_breadcrumbs/scroll.ts +0 -62
- package/front_end/ui/components/docs/icon_button/basic.html +0 -34
- package/front_end/ui/components/docs/icon_button/basic.ts +0 -67
- package/front_end/ui/components/docs/issue_counter/basic.html +0 -35
- package/front_end/ui/components/docs/issue_counter/basic.ts +0 -34
- package/front_end/ui/components/docs/issue_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/issue_link_icon/basic.ts +0 -26
- package/front_end/ui/components/docs/legacy_color_invert/basic.html +0 -77
- package/front_end/ui/components/docs/legacy_color_invert/basic.ts +0 -98
- package/front_end/ui/components/docs/linear_memory_inspector/basic.html +0 -26
- package/front_end/ui/components/docs/linear_memory_inspector/basic.ts +0 -44
- package/front_end/ui/components/docs/menu/basic.html +0 -28
- package/front_end/ui/components/docs/menu/basic.ts +0 -66
- package/front_end/ui/components/docs/recorder_control_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_control_button/basic.ts +0 -15
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +0 -26
- package/front_end/ui/components/docs/recorder_select_button/basic.html +0 -20
- package/front_end/ui/components/docs/recorder_select_button/basic.ts +0 -81
- package/front_end/ui/components/docs/recorder_split_view/basic.html +0 -17
- package/front_end/ui/components/docs/recorder_split_view/basic.ts +0 -22
- package/front_end/ui/components/docs/request_link_icon/basic.html +0 -31
- package/front_end/ui/components/docs/request_link_icon/basic.ts +0 -21
- package/front_end/ui/components/docs/slider/basic.ts +0 -62
- package/front_end/ui/components/docs/style_property_editor/flex.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/flex.ts +0 -52
- package/front_end/ui/components/docs/style_property_editor/grid.html +0 -22
- package/front_end/ui/components/docs/style_property_editor/grid.ts +0 -50
- package/front_end/ui/components/docs/style_property_editor/masonry.html +0 -21
- package/front_end/ui/components/docs/style_property_editor/masonry.ts +0 -50
- package/front_end/ui/components/docs/survey_link/basic.html +0 -20
- package/front_end/ui/components/docs/survey_link/basic.ts +0 -28
- package/front_end/ui/components/docs/switch/basic.ts +0 -51
- package/front_end/ui/components/docs/tree_outline/basic.html +0 -33
- package/front_end/ui/components/docs/tree_outline/basic.ts +0 -38
- package/front_end/ui/components/docs/tree_outline/custom-renderers.html +0 -32
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +0 -61
- package/front_end/ui/components/docs/tree_outline/lazy-children.html +0 -32
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +0 -91
- package/front_end/ui/components/docs/tree_outline/sample-data.ts +0 -67
- package/front_end/ui/components/helpers/directives.ts +0 -38
- /package/front_end/entrypoints/node_app/{nodeConnectionsPanel.css → app/nodeConnectionsPanel.css} +0 -0
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Host from '../../../../core/host/host.js';
|
|
6
|
-
import * as Console from '../../../../panels/console/console.js';
|
|
7
|
-
import * as Explain from '../../../../panels/explain/explain.js';
|
|
8
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
9
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
10
|
-
|
|
11
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
12
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
13
|
-
|
|
14
|
-
const ConsoleInsight = Explain.ConsoleInsight;
|
|
15
|
-
|
|
16
|
-
const component = new ConsoleInsight(
|
|
17
|
-
{
|
|
18
|
-
getSearchQuery() {
|
|
19
|
-
return '';
|
|
20
|
-
},
|
|
21
|
-
async buildPrompt() {
|
|
22
|
-
return {
|
|
23
|
-
prompt: '',
|
|
24
|
-
isPageReloadRecommended: false,
|
|
25
|
-
sources: [
|
|
26
|
-
{
|
|
27
|
-
type: Console.PromptBuilder.SourceType.MESSAGE,
|
|
28
|
-
value: 'Something went wrong\n\nSomething went wrong',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
type: Console.PromptBuilder.SourceType.NETWORK_REQUEST,
|
|
32
|
-
value: `Request: https://example.com/data.html
|
|
33
|
-
|
|
34
|
-
Request headers:
|
|
35
|
-
:authority: example.com
|
|
36
|
-
:method: GET
|
|
37
|
-
:path: https://example.com/data.json
|
|
38
|
-
:scheme: https
|
|
39
|
-
accept: */*
|
|
40
|
-
accept-encoding: gzip, deflate, br
|
|
41
|
-
accept-language: en-DE,en;q=0.9,de-DE;q=0.8,de;q=0.7,en-US;q=0.6
|
|
42
|
-
referer: https://example.com/demo.html
|
|
43
|
-
sec-ch-ua: "Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"
|
|
44
|
-
sec-ch-ua-arch: "arm"
|
|
45
|
-
sec-ch-ua-bitness: "64"
|
|
46
|
-
sec-ch-ua-full-version: "121.0.6116.0"
|
|
47
|
-
sec-ch-ua-full-version-list: "Not A(Brand";v="99.0.0.0", "Google Chrome";v="121.0.6116.0", "Chromium";v="121.0.6116.0"
|
|
48
|
-
sec-ch-ua-mobile: ?0
|
|
49
|
-
sec-ch-ua-model: ""
|
|
50
|
-
sec-ch-ua-platform: "macOS"
|
|
51
|
-
sec-ch-ua-platform-version: "14.1.0"
|
|
52
|
-
sec-ch-ua-wow64: ?0
|
|
53
|
-
sec-fetch-dest: empty
|
|
54
|
-
sec-fetch-mode: cors
|
|
55
|
-
sec-fetch-site: same-origin
|
|
56
|
-
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
|
|
57
|
-
|
|
58
|
-
Response headers:
|
|
59
|
-
accept-ch: Sec-CH-UA, Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version, Sec-CH-UA-WoW64
|
|
60
|
-
content-length: 1646
|
|
61
|
-
content-type: text/html; charset=UTF-8
|
|
62
|
-
cross-origin-opener-policy-report-only: same-origin; report-to="gfe-static-content-corp"
|
|
63
|
-
date: Fri, 10 Nov 2023 13:46:47 GMT
|
|
64
|
-
permissions-policy: ch-ua=*, ch-ua-arch=*, ch-ua-bitness=*, ch-ua-full-version=*, ch-ua-full-version-list=*, ch-ua-mobile=*, ch-ua-model=*, ch-ua-platform=*, ch-ua-platform-version=*, ch-ua-wow64=*
|
|
65
|
-
server: sffe
|
|
66
|
-
strict-transport-security: max-age=31536000; includeSubdomains
|
|
67
|
-
vary: Origin
|
|
68
|
-
|
|
69
|
-
Response status: 404`,
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
async *
|
|
77
|
-
doConversation() {
|
|
78
|
-
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
79
|
-
yield {
|
|
80
|
-
explanation: `Some text with \`code\`. Some code:
|
|
81
|
-
\`\`\`ts
|
|
82
|
-
console.log('test');
|
|
83
|
-
document.querySelector('test').style = 'black';
|
|
84
|
-
\`\`\`
|
|
85
|
-
Some text with \`code\`. Some code:
|
|
86
|
-
\`\`\`ts
|
|
87
|
-
console.log('test');
|
|
88
|
-
document.querySelector('test').style = 'black';
|
|
89
|
-
\`\`\`
|
|
90
|
-
Some text with \`code\`. Some code:
|
|
91
|
-
\`\`\`ts
|
|
92
|
-
console.log('test');
|
|
93
|
-
document.querySelector('test').style = 'black';
|
|
94
|
-
\`\`\`
|
|
95
|
-
`,
|
|
96
|
-
metadata: {},
|
|
97
|
-
completed: true,
|
|
98
|
-
};
|
|
99
|
-
},
|
|
100
|
-
registerClientEvent: () => Promise.resolve({}),
|
|
101
|
-
},
|
|
102
|
-
Host.AidaClient.AidaAccessPreconditions.AVAILABLE);
|
|
103
|
-
document.getElementById('container')?.appendChild(component);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2023 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Basic Console Insight example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
border: 1px solid;
|
|
16
|
-
width: 600px;
|
|
17
|
-
margin: 1em;
|
|
18
|
-
padding: 1em;
|
|
19
|
-
background-color: aqua;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
22
|
-
</head>
|
|
23
|
-
<body>
|
|
24
|
-
<div id="container"></div>
|
|
25
|
-
|
|
26
|
-
<script type="module" src="./error.js"></script>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Host from '../../../../core/host/host.js';
|
|
6
|
-
import * as Explain from '../../../../panels/explain/explain.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
11
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
12
|
-
|
|
13
|
-
const ConsoleInsight = Explain.ConsoleInsight;
|
|
14
|
-
|
|
15
|
-
const component = new ConsoleInsight(
|
|
16
|
-
{
|
|
17
|
-
getSearchQuery() {
|
|
18
|
-
return '';
|
|
19
|
-
},
|
|
20
|
-
async buildPrompt() {
|
|
21
|
-
return {prompt: '', sources: [], isPageReloadRecommended: false};
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
async *
|
|
26
|
-
// eslint-disable-next-line require-yield
|
|
27
|
-
doConversation() {
|
|
28
|
-
throw new Error('Could not connect to the server');
|
|
29
|
-
},
|
|
30
|
-
registerClientEvent: () => Promise.resolve({}),
|
|
31
|
-
},
|
|
32
|
-
Host.AidaClient.AidaAccessPreconditions.AVAILABLE);
|
|
33
|
-
document.getElementById('container')?.appendChild(component);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2023 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Basic Console Insight example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
border: 1px solid;
|
|
16
|
-
width: 600px;
|
|
17
|
-
margin: 1em;
|
|
18
|
-
padding: 1em;
|
|
19
|
-
background-color: aqua;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
22
|
-
</head>
|
|
23
|
-
<body>
|
|
24
|
-
<div id="container"></div>
|
|
25
|
-
|
|
26
|
-
<script type="module" src="./loading.js"></script>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Host from '../../../../core/host/host.js';
|
|
6
|
-
import * as Explain from '../../../../panels/explain/explain.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
11
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
12
|
-
|
|
13
|
-
const ConsoleInsight = Explain.ConsoleInsight;
|
|
14
|
-
|
|
15
|
-
const component = new ConsoleInsight(
|
|
16
|
-
{
|
|
17
|
-
getSearchQuery() {
|
|
18
|
-
return '';
|
|
19
|
-
},
|
|
20
|
-
async buildPrompt() {
|
|
21
|
-
return {prompt: '', sources: [], isPageReloadRecommended: false};
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
async *
|
|
26
|
-
doConversation() {
|
|
27
|
-
await new Promise(_resolve => {});
|
|
28
|
-
yield {
|
|
29
|
-
explanation: `## Result
|
|
30
|
-
|
|
31
|
-
Some text with \`code\`. Some code:
|
|
32
|
-
\`\`\`ts
|
|
33
|
-
console.log('test');
|
|
34
|
-
document.querySelector('test').style = 'black';
|
|
35
|
-
\`\`\`
|
|
36
|
-
|
|
37
|
-
Links: [https://example.com](https://example.com)
|
|
38
|
-
Images: 
|
|
39
|
-
`,
|
|
40
|
-
metadata: {},
|
|
41
|
-
completed: true,
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
registerClientEvent: () => Promise.resolve({}),
|
|
45
|
-
},
|
|
46
|
-
Host.AidaClient.AidaAccessPreconditions.AVAILABLE);
|
|
47
|
-
document.getElementById('container')?.appendChild(component);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Basic Breadcrumbs example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 80%;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.fake-crumb-element {
|
|
19
|
-
width: 300px;
|
|
20
|
-
height: 40px;
|
|
21
|
-
background: red;
|
|
22
|
-
margin-bottom: 10px;
|
|
23
|
-
padding: 2px;
|
|
24
|
-
color: white;
|
|
25
|
-
font-size: 20px;
|
|
26
|
-
text-align: center;
|
|
27
|
-
}
|
|
28
|
-
.fake-crumb-element.highlight {
|
|
29
|
-
background: blue;
|
|
30
|
-
}
|
|
31
|
-
</style>
|
|
32
|
-
</head>
|
|
33
|
-
<body>
|
|
34
|
-
|
|
35
|
-
<div class="fake-crumb-element" data-fake-crumb-1>body</div>
|
|
36
|
-
<div class="fake-crumb-element" data-fake-crumb-2>div#test-id</div>
|
|
37
|
-
|
|
38
|
-
<div id="container">
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<script type="module" src="./basic.js"></script>
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Elements from '../../../../panels/elements/components/components.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
8
|
-
|
|
9
|
-
import {makeCrumb} from './helpers.js';
|
|
10
|
-
|
|
11
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
12
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
13
|
-
|
|
14
|
-
const component = new Elements.ElementsBreadcrumbs.ElementsBreadcrumbs();
|
|
15
|
-
const bodyCrumb = makeCrumb({
|
|
16
|
-
nodeType: Node.ELEMENT_NODE,
|
|
17
|
-
id: 2,
|
|
18
|
-
nodeName: 'body',
|
|
19
|
-
nodeNameNicelyCased: 'body',
|
|
20
|
-
highlightNode: () => {
|
|
21
|
-
document.querySelector('[data-fake-crumb-1]')?.classList.add('highlight');
|
|
22
|
-
},
|
|
23
|
-
clearHighlight: () => {
|
|
24
|
-
document.querySelector('[data-fake-crumb-1]')?.classList.remove('highlight');
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const divCrumb = makeCrumb({
|
|
29
|
-
nodeType: Node.ELEMENT_NODE,
|
|
30
|
-
id: 3,
|
|
31
|
-
nodeName: 'div',
|
|
32
|
-
nodeNameNicelyCased: 'div',
|
|
33
|
-
attributes: {
|
|
34
|
-
id: 'test-id',
|
|
35
|
-
},
|
|
36
|
-
highlightNode: () => {
|
|
37
|
-
document.querySelector('[data-fake-crumb-2]')?.classList.add('highlight');
|
|
38
|
-
},
|
|
39
|
-
clearHighlight: () => {
|
|
40
|
-
document.querySelector('[data-fake-crumb-2]')?.classList.remove('highlight');
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
document.getElementById('container')?.appendChild(component);
|
|
45
|
-
|
|
46
|
-
component.data = {
|
|
47
|
-
crumbs: [divCrumb, bodyCrumb],
|
|
48
|
-
selectedNode: bodyCrumb,
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
component.addEventListener('breadcrumbsnodeselected', ({legacyDomNode}) => {
|
|
52
|
-
// eslint-disable-next-line no-console
|
|
53
|
-
console.log('node selected', legacyDomNode);
|
|
54
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
import type * as SDK from '../../../../core/sdk/sdk.js';
|
|
5
|
-
import type * as Elements from '../../../../panels/elements/components/components.js';
|
|
6
|
-
|
|
7
|
-
interface CrumbOverrides extends Partial<Elements.Helper.DOMNode> {
|
|
8
|
-
attributes?: Record<string, string|undefined>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
let id = 0;
|
|
12
|
-
export const makeCrumb = (overrides: CrumbOverrides = {}) => {
|
|
13
|
-
const attributes = overrides.attributes || {};
|
|
14
|
-
const newCrumb: Elements.Helper.DOMNode = {
|
|
15
|
-
nodeType: Node.ELEMENT_NODE,
|
|
16
|
-
id: id++,
|
|
17
|
-
pseudoType: '',
|
|
18
|
-
parentNode: null,
|
|
19
|
-
shadowRootType: '',
|
|
20
|
-
nodeName: 'body',
|
|
21
|
-
nodeNameNicelyCased: 'body',
|
|
22
|
-
legacyDomNode: {} as unknown as SDK.DOMModel.DOMNode,
|
|
23
|
-
highlightNode: () => {},
|
|
24
|
-
clearHighlight: () => {},
|
|
25
|
-
getAttribute: (x: string) => attributes[x] || '',
|
|
26
|
-
...overrides,
|
|
27
|
-
};
|
|
28
|
-
return newCrumb;
|
|
29
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Scrolling breadcrumbs example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 500px;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
button {
|
|
19
|
-
margin-top: 20px;
|
|
20
|
-
width: 400px;
|
|
21
|
-
font-size: 18px;
|
|
22
|
-
padding: 10px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:root {
|
|
26
|
-
--tab-selected-bg-color: lightblue;
|
|
27
|
-
}
|
|
28
|
-
</style>
|
|
29
|
-
</head>
|
|
30
|
-
<body>
|
|
31
|
-
|
|
32
|
-
<div id="container">
|
|
33
|
-
</div>
|
|
34
|
-
<button>Click me to make the <code>div</code> crumb the selected node (as if the user had clicked it in the elements pane)</button>
|
|
35
|
-
|
|
36
|
-
<script type="module" src="./scroll-to-active-element.js"></script>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Elements from '../../../../panels/elements/components/components.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
8
|
-
|
|
9
|
-
import {makeCrumb} from './helpers.js';
|
|
10
|
-
|
|
11
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
12
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
13
|
-
|
|
14
|
-
const component = new Elements.ElementsBreadcrumbs.ElementsBreadcrumbs();
|
|
15
|
-
const bodyCrumb = makeCrumb({
|
|
16
|
-
nodeType: Node.ELEMENT_NODE,
|
|
17
|
-
id: 1,
|
|
18
|
-
nodeName: 'body',
|
|
19
|
-
nodeNameNicelyCased: 'body',
|
|
20
|
-
attributes: {class: 'body-class1 body-class2'},
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const divCrumb = makeCrumb({
|
|
24
|
-
nodeType: Node.ELEMENT_NODE,
|
|
25
|
-
id: 2,
|
|
26
|
-
nodeName: 'div',
|
|
27
|
-
nodeNameNicelyCased: 'div',
|
|
28
|
-
attributes: {
|
|
29
|
-
id: 'test-id',
|
|
30
|
-
class: 'wrapper-div',
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
const spanCrumb = makeCrumb({
|
|
35
|
-
nodeType: Node.ELEMENT_NODE,
|
|
36
|
-
id: 3,
|
|
37
|
-
nodeName: 'span',
|
|
38
|
-
nodeNameNicelyCased: 'span',
|
|
39
|
-
attributes: {
|
|
40
|
-
id: 'my-span-has-a-long-id',
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
const strongCrumb = makeCrumb({
|
|
45
|
-
nodeType: Node.ELEMENT_NODE,
|
|
46
|
-
id: 4,
|
|
47
|
-
nodeName: 'strong',
|
|
48
|
-
nodeNameNicelyCased: 'strong',
|
|
49
|
-
attributes: {
|
|
50
|
-
id: 'gotta-be-bold',
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const emCrumb = makeCrumb({
|
|
55
|
-
nodeType: Node.ELEMENT_NODE,
|
|
56
|
-
id: 5,
|
|
57
|
-
nodeName: 'em',
|
|
58
|
-
nodeNameNicelyCased: 'em',
|
|
59
|
-
attributes: {id: 'my-em-has-a-long-id', class: 'and-a-very-long-class'},
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
const crumbs = [emCrumb, strongCrumb, spanCrumb, divCrumb, bodyCrumb];
|
|
63
|
-
const crumbsReversed = [...crumbs].reverse();
|
|
64
|
-
|
|
65
|
-
const selectedNodeParam = new URLSearchParams(location.search)?.get('selectedCrumbIndex');
|
|
66
|
-
const selectedNode = selectedNodeParam ? crumbsReversed[Number(selectedNodeParam)] : bodyCrumb;
|
|
67
|
-
|
|
68
|
-
component.data = {
|
|
69
|
-
crumbs,
|
|
70
|
-
selectedNode,
|
|
71
|
-
};
|
|
72
|
-
document.getElementById('container')?.appendChild(component);
|
|
73
|
-
|
|
74
|
-
const button = component.shadowRoot?.querySelector?.('button.overflow.right');
|
|
75
|
-
button?.dispatchEvent(new MouseEvent('click'));
|
|
76
|
-
// Each subsequent click is timed out to allow the smooth scroll to finish.
|
|
77
|
-
window.setTimeout(() => {
|
|
78
|
-
button?.dispatchEvent(new MouseEvent('click'));
|
|
79
|
-
window.setTimeout(() => {
|
|
80
|
-
button?.dispatchEvent(new MouseEvent('click'));
|
|
81
|
-
}, 200);
|
|
82
|
-
}, 200);
|
|
83
|
-
|
|
84
|
-
const btn = document.querySelector('button');
|
|
85
|
-
btn?.addEventListener('click', () => {
|
|
86
|
-
component.data = {
|
|
87
|
-
crumbs: [emCrumb, strongCrumb, spanCrumb, divCrumb, bodyCrumb],
|
|
88
|
-
selectedNode: divCrumb,
|
|
89
|
-
};
|
|
90
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2020 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
<head>
|
|
9
|
-
<meta charset="UTF-8" />
|
|
10
|
-
<meta name="viewport" content="width=device-width" />
|
|
11
|
-
<title>Scrolling breadcrumbs example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 400px;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
margin: 20px;
|
|
17
|
-
}
|
|
18
|
-
</style>
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
|
|
22
|
-
<div id="container">
|
|
23
|
-
|
|
24
|
-
</div>
|
|
25
|
-
<button id="focus-body">Emulate click on body element</button>
|
|
26
|
-
|
|
27
|
-
<script type="module" src="./scroll.js"></script>
|
|
28
|
-
</body>
|
|
29
|
-
</html>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Elements from '../../../../panels/elements/components/components.js';
|
|
6
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
7
|
-
|
|
8
|
-
import {makeCrumb} from './helpers.js';
|
|
9
|
-
|
|
10
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
11
|
-
|
|
12
|
-
const component = new Elements.ElementsBreadcrumbs.ElementsBreadcrumbs();
|
|
13
|
-
const bodyCrumb = makeCrumb({
|
|
14
|
-
nodeType: Node.ELEMENT_NODE,
|
|
15
|
-
nodeName: 'body',
|
|
16
|
-
nodeNameNicelyCased: 'body',
|
|
17
|
-
attributes: {
|
|
18
|
-
class: 'body-class1 body-class2',
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const divCrumb = makeCrumb({
|
|
23
|
-
nodeType: Node.ELEMENT_NODE,
|
|
24
|
-
nodeName: 'div',
|
|
25
|
-
nodeNameNicelyCased: 'div',
|
|
26
|
-
attributes: {
|
|
27
|
-
id: 'test-id',
|
|
28
|
-
class: 'wrapper-div',
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const spanCrumb = makeCrumb({
|
|
33
|
-
nodeType: Node.ELEMENT_NODE,
|
|
34
|
-
nodeName: 'span',
|
|
35
|
-
nodeNameNicelyCased: 'span',
|
|
36
|
-
attributes: {
|
|
37
|
-
id: 'my-span-has-a-long-id',
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const emCrumb = makeCrumb({
|
|
42
|
-
nodeType: Node.ELEMENT_NODE,
|
|
43
|
-
nodeName: 'em',
|
|
44
|
-
nodeNameNicelyCased: 'em',
|
|
45
|
-
attributes: {
|
|
46
|
-
id: 'my-em-has-a-long-id',
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
document.getElementById('container')?.appendChild(component);
|
|
51
|
-
|
|
52
|
-
component.data = {
|
|
53
|
-
crumbs: [emCrumb, spanCrumb, divCrumb, bodyCrumb],
|
|
54
|
-
selectedNode: bodyCrumb,
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
document.getElementById('focus-body')?.addEventListener('click', () => {
|
|
58
|
-
component.data = {
|
|
59
|
-
crumbs: [bodyCrumb],
|
|
60
|
-
selectedNode: bodyCrumb,
|
|
61
|
-
};
|
|
62
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2021 The Chromium Authors
|
|
3
|
-
Use of this source code is governed by a BSD-style license that can be
|
|
4
|
-
found in the LICENSE file.
|
|
5
|
-
-->
|
|
6
|
-
<!DOCTYPE html>
|
|
7
|
-
<html>
|
|
8
|
-
|
|
9
|
-
<head>
|
|
10
|
-
<meta charset="UTF-8" />
|
|
11
|
-
<meta name="viewport" content="width=device-width" />
|
|
12
|
-
<title>Basic Icon Button example</title>
|
|
13
|
-
<style>
|
|
14
|
-
#container {
|
|
15
|
-
width: 80%;
|
|
16
|
-
border: 1px solid black;
|
|
17
|
-
padding: 20px;
|
|
18
|
-
height: 300px;
|
|
19
|
-
}
|
|
20
|
-
#container > icon-button {
|
|
21
|
-
vertical-align: middle;
|
|
22
|
-
}
|
|
23
|
-
</style>
|
|
24
|
-
</head>
|
|
25
|
-
|
|
26
|
-
<body>
|
|
27
|
-
<div id="container">
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<ul id="events"></ul>
|
|
31
|
-
<script type="module" src="./basic.js"></script>
|
|
32
|
-
</body>
|
|
33
|
-
|
|
34
|
-
</html>
|