chrome-devtools-frontend 1.0.1538523 → 1.0.1539728
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/protocol_client/CDPConnection.ts +12 -10
- package/front_end/core/protocol_client/InspectorBackend.ts +74 -101
- package/front_end/core/protocol_client/NodeURL.ts +1 -3
- 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/RehydratingConnection.ts +1 -1
- package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +15 -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} +11 -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/{InspectorBackendCommands.js → InspectorBackendCommands.ts} +16 -34
- 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/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/ai_assistance.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatView.ts +1 -134
- 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/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/explain/components/ConsoleInsight.ts +0 -1
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +57 -33
- 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/components/EditableSpan.ts +1 -1
- package/front_end/panels/recorder/components/StepView.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.ts +8 -7
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +4 -4
- 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/SidebarSingleInsightSet.ts +3 -2
- package/front_end/panels/utils/utils.ts +4 -2
- package/front_end/services/puppeteer/PuppeteerConnection.ts +56 -53
- 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/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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +26 -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/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/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 +9 -3
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +37 -18
- 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/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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +26 -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/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/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 +9 -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/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 +34 -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/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/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/panel_feedback/PreviewToggle.ts +1 -1
- 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/legacy/Slider.docs.ts +49 -0
- 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/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/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/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/switch/basic.ts +0 -51
- /package/front_end/entrypoints/node_app/{nodeConnectionsPanel.css → app/nodeConnectionsPanel.css} +0 -0
|
@@ -1,38 +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 Common from '../../../../core/common/common.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import * as InlineEditor from '../../../legacy/components/inline_editor/inline_editor.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
11
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
12
|
-
|
|
13
|
-
function appendExample(swatch: InlineEditor.ColorSwatch.ColorSwatch): void {
|
|
14
|
-
const li = document.createElement('li');
|
|
15
|
-
li.appendChild(swatch);
|
|
16
|
-
document.querySelector('#container')?.appendChild(li);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Simple
|
|
20
|
-
let component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
21
|
-
component.renderColor(Common.Color.parse('#f06') as Common.Color.Color);
|
|
22
|
-
appendExample(component);
|
|
23
|
-
|
|
24
|
-
// No text next to the swatch
|
|
25
|
-
component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
26
|
-
component.renderColor(Common.Color.parse('gold') as Common.Color.Color);
|
|
27
|
-
let content = document.createElement('span');
|
|
28
|
-
content.textContent = '';
|
|
29
|
-
component.appendChild(content);
|
|
30
|
-
appendExample(component);
|
|
31
|
-
|
|
32
|
-
// Custom content
|
|
33
|
-
component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
34
|
-
component.renderColor(Common.Color.parse('rebeccapurple') as Common.Color.Color);
|
|
35
|
-
content = document.createElement('span');
|
|
36
|
-
content.textContent = 'custom content';
|
|
37
|
-
component.appendChild(content);
|
|
38
|
-
appendExample(component);
|
|
@@ -1,24 +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>Color Swatch picker example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#picker {
|
|
14
|
-
visibility: hidden;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
<div id="container">
|
|
20
|
-
<input type="color" id="picker">
|
|
21
|
-
</div>
|
|
22
|
-
<script type="module" src="./change-color.js"></script>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
@@ -1,28 +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 Common from '../../../../core/common/common.js';
|
|
6
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
7
|
-
import * as InlineEditor from '../../../legacy/components/inline_editor/inline_editor.js';
|
|
8
|
-
import * as ComponentHelpers from '../../helpers/helpers.js';
|
|
9
|
-
|
|
10
|
-
const container = document.querySelector('#container');
|
|
11
|
-
const picker = document.querySelector<HTMLInputElement>('#picker');
|
|
12
|
-
|
|
13
|
-
await ComponentHelpers.ComponentServerSetup.setup();
|
|
14
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
15
|
-
|
|
16
|
-
const component = new InlineEditor.ColorSwatch.ColorSwatch();
|
|
17
|
-
document.getElementById('container')?.appendChild(component);
|
|
18
|
-
component.renderColor(Common.Color.parse('#f06') as Common.Color.Color);
|
|
19
|
-
container?.insertBefore(component, picker);
|
|
20
|
-
|
|
21
|
-
picker?.addEventListener('input', e => {
|
|
22
|
-
const color = Common.Color.parse((e.target as HTMLInputElement).value);
|
|
23
|
-
if (color) {
|
|
24
|
-
component.renderColor(color);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
component.addEventListener(InlineEditor.ColorSwatch.ClickEvent.eventName, () => picker?.click());
|
|
@@ -1,25 +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>inherited Computed Style Property example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 80%;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="container">
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./basic.js"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,19 +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
|
-
import * as Elements from '../../../../panels/elements/components/components.js';
|
|
7
|
-
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
|
|
8
|
-
|
|
9
|
-
await FrontendHelpers.initializeGlobalVars();
|
|
10
|
-
|
|
11
|
-
const component = new Elements.ComputedStyleProperty.ComputedStyleProperty();
|
|
12
|
-
|
|
13
|
-
document.getElementById('container')?.appendChild(component);
|
|
14
|
-
component.innerHTML = `
|
|
15
|
-
<span slot="name">display</span>
|
|
16
|
-
<span slot="value">block</span>
|
|
17
|
-
`;
|
|
18
|
-
component.traceable = false;
|
|
19
|
-
component.inherited = true;
|
|
@@ -1,25 +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>traceable Computed Style Property example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 80%;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="container">
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./traceable.js"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,16 +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
|
-
import * as Elements from '../../../../panels/elements/components/components.js';
|
|
7
|
-
|
|
8
|
-
const component = new Elements.ComputedStyleProperty.ComputedStyleProperty();
|
|
9
|
-
|
|
10
|
-
document.getElementById('container')?.appendChild(component);
|
|
11
|
-
component.innerHTML = `
|
|
12
|
-
<span slot="name">display</span>
|
|
13
|
-
<span slot="value">grid</span>
|
|
14
|
-
`;
|
|
15
|
-
component.traceable = true;
|
|
16
|
-
component.inherited = false;
|
|
@@ -1,25 +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 Computed Style Trace example</title>
|
|
12
|
-
<style>
|
|
13
|
-
#container {
|
|
14
|
-
width: 80%;
|
|
15
|
-
border: 1px solid black;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="container">
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<script type="module" src="./basic.js"></script>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,24 +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
|
-
|
|
7
|
-
const component = new Elements.ComputedStyleTrace.ComputedStyleTrace();
|
|
8
|
-
|
|
9
|
-
const traceValue = document.createElement('span');
|
|
10
|
-
traceValue.textContent = 'block';
|
|
11
|
-
traceValue.slot = 'trace-value';
|
|
12
|
-
component.appendChild(traceValue);
|
|
13
|
-
|
|
14
|
-
const traceLink = document.createElement('span');
|
|
15
|
-
traceLink.textContent = 'user agent stylesheet';
|
|
16
|
-
traceLink.slot = 'trace-link';
|
|
17
|
-
component.appendChild(traceLink);
|
|
18
|
-
|
|
19
|
-
document.getElementById('container')?.appendChild(component);
|
|
20
|
-
component.data = {
|
|
21
|
-
selector: 'body',
|
|
22
|
-
active: true,
|
|
23
|
-
onNavigateToSource: () => {},
|
|
24
|
-
};
|
|
@@ -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="./basic.js"></script>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|
|
@@ -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>
|