chrome-devtools-frontend 1.0.1367881 → 1.0.1380117
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/.vscode/extensions.json +4 -4
- package/config/gni/devtools_grd_files.gni +45 -15
- package/config/gni/devtools_image_files.gni +5 -0
- package/docs/README.md +1 -5
- package/docs/checklist/javascript.md +45 -8
- package/docs/contributing/design.md +1 -1
- package/docs/contributing/settings-experiments-features.md +1 -1
- package/docs/cookbook/README.md +12 -0
- package/docs/cookbook/create_new_issues.md +91 -0
- package/docs/cookbook/dependencies.md +103 -0
- package/docs/cookbook/localization.md +320 -0
- package/docs/cookbook/navbar.md +8 -0
- package/docs/cookbook/release_management.md +60 -0
- package/docs/cookbook/uma_metrics.md +121 -0
- package/docs/dependencies.md +1 -100
- package/docs/l10n.md +1 -295
- package/docs/release_management.md +1 -53
- package/extensions/cxx_debugging/e2e/standalone/MemoryInspector_test.ts +1 -1
- package/extensions/cxx_debugging/e2e/tsconfig.json +1 -0
- package/extensions/cxx_debugging/src/ExtensionOptions.ts +6 -7
- package/extensions/cxx_debugging/tests/CreditsItem_test.ts +4 -4
- package/front_end/.eslintrc.js +0 -1
- package/front_end/Images/src/animation.svg +3 -0
- package/front_end/Images/src/brush-2.svg +3 -0
- package/front_end/Images/src/center-focus-weak.svg +1 -0
- package/front_end/Images/src/history.svg +3 -0
- package/front_end/Images/src/home.svg +1 -0
- package/front_end/core/common/Color.ts +10 -0
- package/front_end/core/common/ResourceType.test.ts +26 -26
- package/front_end/core/common/ResourceType.ts +21 -12
- package/front_end/core/common/Revealer.ts +5 -0
- package/front_end/core/common/SettingRegistration.ts +1 -1
- package/front_end/core/common/Settings.ts +5 -1
- package/front_end/core/host/AidaClient.ts +59 -0
- package/front_end/core/host/InspectorFrontendHost.ts +5 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +8 -1
- package/front_end/core/host/UserMetrics.ts +16 -13
- package/front_end/core/i18n/ByteUtilities.test.ts +34 -0
- package/front_end/core/i18n/ByteUtilities.ts +65 -0
- package/front_end/core/i18n/NumberFormatter.ts +75 -0
- package/front_end/core/i18n/i18n.ts +4 -0
- package/front_end/core/i18n/locales/af.json +598 -109
- package/front_end/core/i18n/locales/am.json +607 -118
- package/front_end/core/i18n/locales/ar.json +888 -399
- package/front_end/core/i18n/locales/as.json +603 -114
- package/front_end/core/i18n/locales/az.json +606 -117
- package/front_end/core/i18n/locales/be.json +599 -110
- package/front_end/core/i18n/locales/bg.json +598 -109
- package/front_end/core/i18n/locales/bn.json +609 -120
- package/front_end/core/i18n/locales/bs.json +607 -118
- package/front_end/core/i18n/locales/ca.json +601 -112
- package/front_end/core/i18n/locales/cs.json +605 -116
- package/front_end/core/i18n/locales/cy.json +603 -114
- package/front_end/core/i18n/locales/da.json +599 -110
- package/front_end/core/i18n/locales/de.json +604 -115
- package/front_end/core/i18n/locales/el.json +596 -107
- package/front_end/core/i18n/locales/en-GB.json +599 -110
- package/front_end/core/i18n/locales/es-419.json +600 -111
- package/front_end/core/i18n/locales/es.json +602 -113
- package/front_end/core/i18n/locales/et.json +601 -112
- package/front_end/core/i18n/locales/eu.json +605 -116
- package/front_end/core/i18n/locales/fa.json +609 -120
- package/front_end/core/i18n/locales/fi.json +598 -109
- package/front_end/core/i18n/locales/fil.json +605 -116
- package/front_end/core/i18n/locales/fr-CA.json +602 -113
- package/front_end/core/i18n/locales/fr.json +600 -111
- package/front_end/core/i18n/locales/gl.json +595 -106
- package/front_end/core/i18n/locales/gu.json +605 -116
- package/front_end/core/i18n/locales/he.json +603 -114
- package/front_end/core/i18n/locales/hi.json +600 -111
- package/front_end/core/i18n/locales/hr.json +600 -111
- package/front_end/core/i18n/locales/hu.json +600 -111
- package/front_end/core/i18n/locales/hy.json +599 -110
- package/front_end/core/i18n/locales/id.json +603 -114
- package/front_end/core/i18n/locales/is.json +598 -109
- package/front_end/core/i18n/locales/it.json +602 -113
- package/front_end/core/i18n/locales/ja.json +596 -107
- package/front_end/core/i18n/locales/ka.json +597 -108
- package/front_end/core/i18n/locales/kk.json +884 -395
- package/front_end/core/i18n/locales/km.json +605 -116
- package/front_end/core/i18n/locales/kn.json +606 -117
- package/front_end/core/i18n/locales/ko.json +591 -102
- package/front_end/core/i18n/locales/ky.json +599 -110
- package/front_end/core/i18n/locales/lo.json +608 -119
- package/front_end/core/i18n/locales/lt.json +597 -108
- package/front_end/core/i18n/locales/lv.json +606 -117
- package/front_end/core/i18n/locales/mk.json +885 -396
- package/front_end/core/i18n/locales/ml.json +601 -112
- package/front_end/core/i18n/locales/mn.json +599 -110
- package/front_end/core/i18n/locales/mr.json +601 -112
- package/front_end/core/i18n/locales/ms.json +602 -113
- package/front_end/core/i18n/locales/my.json +604 -115
- package/front_end/core/i18n/locales/ne.json +609 -120
- package/front_end/core/i18n/locales/nl.json +597 -108
- package/front_end/core/i18n/locales/no.json +601 -112
- package/front_end/core/i18n/locales/or.json +601 -112
- package/front_end/core/i18n/locales/pa.json +600 -111
- package/front_end/core/i18n/locales/pl.json +601 -112
- package/front_end/core/i18n/locales/pt-PT.json +600 -111
- package/front_end/core/i18n/locales/pt.json +596 -107
- package/front_end/core/i18n/locales/ro.json +601 -112
- package/front_end/core/i18n/locales/ru.json +609 -120
- package/front_end/core/i18n/locales/si.json +603 -114
- package/front_end/core/i18n/locales/sk.json +599 -110
- package/front_end/core/i18n/locales/sl.json +601 -112
- package/front_end/core/i18n/locales/sq.json +602 -113
- package/front_end/core/i18n/locales/sr-Latn.json +598 -109
- package/front_end/core/i18n/locales/sr.json +598 -109
- package/front_end/core/i18n/locales/sv.json +600 -111
- package/front_end/core/i18n/locales/sw.json +606 -117
- package/front_end/core/i18n/locales/ta.json +892 -403
- package/front_end/core/i18n/locales/te.json +604 -115
- package/front_end/core/i18n/locales/th.json +597 -108
- package/front_end/core/i18n/locales/tr.json +601 -112
- package/front_end/core/i18n/locales/uk.json +598 -109
- package/front_end/core/i18n/locales/ur.json +604 -115
- package/front_end/core/i18n/locales/uz.json +599 -110
- package/front_end/core/i18n/locales/vi.json +602 -113
- package/front_end/core/i18n/locales/zh-HK.json +599 -110
- package/front_end/core/i18n/locales/zh-TW.json +595 -106
- package/front_end/core/i18n/locales/zh.json +601 -112
- package/front_end/core/i18n/locales/zu.json +607 -118
- package/front_end/core/i18n/time-utilities.test.ts +20 -2
- package/front_end/core/i18n/time-utilities.ts +125 -86
- package/front_end/core/platform/NumberUtilities.test.ts +3 -26
- package/front_end/core/platform/NumberUtilities.ts +0 -20
- package/front_end/core/root/Runtime.ts +18 -7
- package/front_end/{panels/animation → core/sdk}/AnimationModel.test.ts +85 -6
- package/front_end/{panels/animation → core/sdk}/AnimationModel.ts +302 -36
- package/front_end/core/sdk/CPUThrottlingManager.ts +4 -0
- package/front_end/core/sdk/CSSContainerQuery.test.ts +10 -16
- package/front_end/core/sdk/CSSContainerQuery.ts +7 -17
- package/front_end/core/sdk/CSSMatchedStyles.test.ts +8 -0
- package/front_end/core/sdk/CSSMatchedStyles.ts +16 -13
- package/front_end/core/sdk/CSSMetadata.ts +6 -0
- package/front_end/core/sdk/CSSModel.ts +18 -0
- package/front_end/core/sdk/CSSPropertyParser.test.ts +16 -1
- package/front_end/core/sdk/CSSPropertyParser.ts +2 -2
- package/front_end/core/sdk/CSSStyleDeclaration.test.ts +10 -0
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +3 -3
- package/front_end/core/sdk/DebuggerModel.test.ts +2 -0
- package/front_end/core/sdk/EmulationModel.ts +32 -0
- package/front_end/core/sdk/EnhancedTracesParser.test.ts +4 -4
- package/front_end/core/sdk/EnhancedTracesParser.ts +4 -5
- package/front_end/core/sdk/RehydratingConnection.test.ts +190 -0
- package/front_end/core/sdk/RehydratingConnection.ts +310 -0
- package/front_end/core/sdk/RehydratingObject.ts +26 -2
- package/front_end/core/sdk/RuntimeModel.ts +31 -0
- package/front_end/core/sdk/Script.ts +1 -1
- package/front_end/core/sdk/TraceObject.ts +8 -0
- package/front_end/core/sdk/sdk-meta.ts +8 -0
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/devtools_compatibility.js +0 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +96 -75
- package/front_end/entrypoints/main/MainImpl.ts +10 -0
- package/front_end/generated/ARIAProperties.js +4 -0
- package/front_end/generated/InspectorBackendCommands.js +17 -14
- package/front_end/generated/SupportedCSSProperties.js +32 -5
- package/front_end/generated/protocol-mapping.d.ts +19 -4
- package/front_end/generated/protocol-proxy-api.d.ts +18 -4
- package/front_end/generated/protocol.ts +57 -4
- package/front_end/legacy_test_runner/network_test_runner/network_test_runner.js +1 -0
- package/front_end/models/extensions/ExtensionAPI.ts +9 -1
- package/front_end/models/har/HARFormat.ts +1 -0
- package/front_end/models/har/Importer.test.ts +16 -2
- package/front_end/models/har/Importer.ts +2 -2
- package/front_end/models/har/Log.test.ts +23 -0
- package/front_end/models/har/Log.ts +6 -4
- package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +6 -2
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +58 -18
- package/front_end/models/issues_manager/CookieIssue.ts +12 -0
- package/front_end/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
- package/front_end/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +77 -39
- package/front_end/models/live-metrics/LiveMetrics.ts +116 -19
- package/front_end/models/live-metrics/web-vitals-injected/OnEachInteraction.ts +24 -61
- package/front_end/models/live-metrics/web-vitals-injected/{rollup.config.js → rollup.config.mjs} +1 -1
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +49 -21
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +43 -5
- package/front_end/models/persistence/EditFileSystemView.ts +19 -9
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +50 -54
- package/front_end/models/persistence/editFileSystemView.css +35 -15
- package/front_end/models/persistence/workspaceSettingsTab.css +21 -87
- package/front_end/models/timeline_model/timeline_model.ts +0 -6
- package/front_end/models/trace/Processor.test.ts +18 -17
- package/front_end/models/trace/Processor.ts +15 -15
- package/front_end/models/trace/README.md +0 -1
- package/front_end/models/trace/extras/ThirdParties.test.ts +117 -0
- package/front_end/models/trace/{insights/ThirdPartyWeb.ts → extras/ThirdParties.ts} +41 -73
- package/front_end/models/{timeline_model → trace/extras}/TimelineJSProfile.ts +19 -29
- package/front_end/models/{timeline_model/TimelineModelFilter.test.ts → trace/extras/TraceFilter.test.ts} +15 -17
- package/front_end/models/trace/extras/TraceFilter.ts +62 -0
- package/front_end/models/{timeline_model/TimelineProfileTree.test.ts → trace/extras/TraceTree.test.ts} +44 -43
- package/front_end/models/{timeline_model/TimelineProfileTree.ts → trace/extras/TraceTree.ts} +65 -59
- package/front_end/models/trace/extras/extras.ts +4 -0
- package/front_end/models/trace/handlers/AnimationHandler.ts +0 -8
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +1 -11
- package/front_end/models/trace/handlers/FramesHandler.test.ts +1 -6
- package/front_end/models/trace/handlers/FramesHandler.ts +13 -19
- package/front_end/models/trace/handlers/GPUHandler.test.ts +0 -2
- package/front_end/models/trace/handlers/GPUHandler.ts +1 -25
- package/front_end/models/trace/handlers/ImagePaintingHandler.ts +3 -0
- package/front_end/models/trace/handlers/InitiatorsHandler.test.ts +40 -1
- package/front_end/models/trace/handlers/InitiatorsHandler.ts +9 -20
- package/front_end/models/trace/handlers/InvalidationsHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/InvalidationsHandler.ts +0 -18
- package/front_end/models/trace/handlers/LargestImagePaintHandler.test.ts +2 -2
- package/front_end/models/trace/handlers/LargestImagePaintHandler.ts +63 -3
- package/front_end/models/trace/handlers/LargestTextPaintHandler.ts +3 -0
- package/front_end/models/trace/handlers/LayerTreeHandler.test.ts +0 -2
- package/front_end/models/trace/handlers/LayerTreeHandler.ts +1 -18
- package/front_end/models/trace/handlers/LayoutShiftsHandler.test.ts +0 -3
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +18 -20
- package/front_end/models/trace/handlers/MemoryHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/MemoryHandler.ts +3 -0
- package/front_end/models/trace/handlers/MetaHandler.test.ts +1 -32
- package/front_end/models/trace/handlers/MetaHandler.ts +2 -30
- package/front_end/models/trace/handlers/NetworkRequestsHandler.test.ts +0 -26
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +6 -25
- package/front_end/models/trace/handlers/PageFramesHandler.ts +3 -0
- package/front_end/models/trace/handlers/RendererHandler.test.ts +4 -8
- package/front_end/models/trace/handlers/RendererHandler.ts +1 -24
- package/front_end/models/trace/handlers/SamplesHandler.test.ts +0 -5
- package/front_end/models/trace/handlers/SamplesHandler.ts +0 -26
- package/front_end/models/trace/handlers/ScreenshotsHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/SelectorStatsHandler.ts +3 -0
- package/front_end/models/trace/handlers/ServerTimingsHandler.ts +1 -16
- package/front_end/models/trace/handlers/Threads.test.ts +1 -2
- package/front_end/models/trace/handlers/UserInteractionsHandler.test.ts +4 -27
- package/front_end/models/trace/handlers/UserInteractionsHandler.ts +16 -25
- package/front_end/models/trace/handlers/UserTimingsHandler.ts +0 -17
- package/front_end/models/trace/handlers/WorkersHandler.test.ts +0 -1
- package/front_end/models/trace/handlers/WorkersHandler.ts +0 -23
- package/front_end/models/trace/handlers/types.ts +1 -8
- package/front_end/models/trace/helpers/Timing.test.ts +29 -0
- package/front_end/models/trace/helpers/Timing.ts +18 -0
- package/front_end/models/trace/helpers/TreeHelpers.test.ts +52 -34
- package/front_end/models/trace/helpers/TreeHelpers.ts +135 -45
- package/front_end/models/trace/insights/{CumulativeLayoutShift.test.ts → CLSCulprits.test.ts} +42 -20
- package/front_end/models/trace/insights/{CumulativeLayoutShift.ts → CLSCulprits.ts} +86 -25
- package/front_end/models/trace/insights/Common.ts +5 -55
- package/front_end/models/trace/insights/DocumentLatency.test.ts +2 -2
- package/front_end/models/trace/insights/DocumentLatency.ts +26 -6
- package/front_end/models/trace/insights/FontDisplay.ts +24 -5
- package/front_end/models/trace/insights/InteractionToNextPaint.test.ts +1 -1
- package/front_end/models/trace/insights/InteractionToNextPaint.ts +26 -6
- package/front_end/models/trace/insights/LCPDiscovery.test.ts +58 -0
- package/front_end/models/trace/insights/LCPDiscovery.ts +101 -0
- package/front_end/models/trace/insights/{LargestContentfulPaint.test.ts → LCPPhases.test.ts} +6 -28
- package/front_end/models/trace/insights/{LargestContentfulPaint.ts → LCPPhases.ts} +37 -38
- package/front_end/models/trace/insights/{InsightRunners.ts → Models.ts} +4 -3
- package/front_end/models/trace/insights/RenderBlocking.test.ts +1 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +33 -28
- package/front_end/models/trace/insights/SlowCSSSelector.ts +26 -5
- package/front_end/models/trace/insights/{ThirdPartyWeb.test.ts → ThirdParties.test.ts} +3 -3
- package/front_end/models/trace/insights/ThirdParties.ts +88 -0
- package/front_end/models/trace/insights/Viewport.test.ts +1 -1
- package/front_end/models/trace/insights/Viewport.ts +27 -9
- package/front_end/models/trace/insights/insights.ts +1 -1
- package/front_end/models/trace/insights/types.ts +11 -9
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.test.ts +4 -4
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +9 -5
- package/front_end/models/trace/lantern/simulation/Simulator.ts +1 -1
- package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +4 -0
- package/front_end/models/trace/types/TraceEvents.ts +119 -24
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -1
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -3
- package/front_end/panels/animation/AnimationTimeline.test.ts +15 -15
- package/front_end/panels/animation/AnimationTimeline.ts +85 -53
- package/front_end/panels/animation/AnimationUI.ts +5 -6
- package/front_end/panels/animation/animation-meta.ts +15 -0
- package/front_end/panels/animation/animation.ts +0 -4
- package/front_end/panels/application/ApplicationPanelSidebar.test.ts +16 -0
- package/front_end/panels/application/ApplicationPanelSidebar.ts +13 -9
- package/front_end/panels/application/ExtensionStorageItemsView.test.ts +72 -0
- package/front_end/panels/application/ExtensionStorageItemsView.ts +23 -1
- package/front_end/panels/application/ExtensionStorageModel.test.ts +15 -0
- package/front_end/panels/application/ExtensionStorageModel.ts +10 -1
- package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -3
- package/front_end/panels/application/SharedStorageItemsView.test.ts +4 -23
- package/front_end/panels/application/SharedStorageItemsView.ts +5 -3
- package/front_end/panels/application/StorageView.ts +3 -3
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +1 -0
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +3 -7
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -2
- package/front_end/panels/application/components/FrameDetailsView.ts +8 -8
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +4 -8
- package/front_end/panels/application/components/PermissionsPolicySection.ts +3 -4
- package/front_end/panels/application/components/ReportsGrid.ts +2 -4
- package/front_end/panels/application/components/SharedStorageAccessGrid.ts +4 -9
- package/front_end/panels/application/components/StackTrace.ts +6 -9
- package/front_end/panels/application/components/StorageMetadataView.ts +2 -4
- package/front_end/panels/application/components/TrustTokensView.ts +1 -2
- package/front_end/panels/application/preloading/PreloadingView.ts +5 -5
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.test.ts +2 -2
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +3 -9
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -5
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingGrid.test.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +3 -6
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +1 -3
- package/front_end/panels/application/preloading/components/PreloadingString.ts +5 -0
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -3
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -10
- package/front_end/panels/autofill/AutofillView.ts +2 -5
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +34 -31
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/coverage/CoverageView.ts +3 -3
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +3 -5
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +4 -6
- package/front_end/panels/elements/CSSRuleValidator.ts +0 -5
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -2
- package/front_end/panels/elements/ComputedStyleModel.ts +9 -2
- package/front_end/panels/elements/ComputedStyleWidget.test.ts +72 -0
- package/front_end/panels/elements/ComputedStyleWidget.ts +12 -0
- package/front_end/panels/elements/ElementStatePaneWidget.test.ts +84 -30
- package/front_end/panels/elements/ElementStatePaneWidget.ts +47 -24
- package/front_end/panels/elements/ElementsPanel.ts +4 -4
- package/front_end/panels/elements/ElementsTreeElement.ts +25 -12
- package/front_end/panels/elements/MetricsSidebarPane.ts +12 -7
- package/front_end/panels/elements/PropertyMatchers.ts +3 -0
- package/front_end/panels/elements/StylePropertiesSection.ts +15 -6
- package/front_end/panels/elements/StylePropertyTreeElement.test.ts +92 -0
- package/front_end/panels/elements/StylePropertyTreeElement.ts +36 -4
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +3 -5
- package/front_end/panels/elements/components/LayoutPane.ts +2 -3
- package/front_end/panels/elements/components/QueryContainer.ts +3 -5
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +13 -0
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +0 -2
- package/front_end/panels/event_listeners/EventListenersView.ts +2 -2
- package/front_end/panels/event_listeners/eventListenersView.css +4 -3
- package/front_end/panels/explain/components/ConsoleInsight.test.ts +56 -8
- package/front_end/panels/explain/components/ConsoleInsight.ts +61 -54
- package/front_end/panels/explain/explain-meta.ts +1 -12
- package/front_end/panels/freestyler/AiAgent.test.ts +149 -12
- package/front_end/panels/freestyler/AiAgent.ts +394 -54
- package/front_end/panels/freestyler/DrJonesFileAgent.test.ts +160 -57
- package/front_end/panels/freestyler/DrJonesFileAgent.ts +117 -88
- package/front_end/panels/freestyler/DrJonesNetworkAgent.test.ts +143 -72
- package/front_end/panels/freestyler/DrJonesNetworkAgent.ts +242 -119
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.test.ts +104 -58
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.ts +158 -114
- package/front_end/panels/freestyler/FreestylerAgent.test.ts +109 -100
- package/front_end/panels/freestyler/FreestylerAgent.ts +114 -188
- package/front_end/panels/freestyler/FreestylerEvaluateAction.test.ts +40 -36
- package/front_end/panels/freestyler/FreestylerEvaluateAction.ts +15 -14
- package/front_end/panels/freestyler/FreestylerPanel.test.ts +1048 -15
- package/front_end/panels/freestyler/FreestylerPanel.ts +576 -189
- package/front_end/panels/freestyler/components/FreestylerChatUi.test.ts +131 -9
- package/front_end/panels/freestyler/components/FreestylerChatUi.ts +415 -269
- package/front_end/panels/freestyler/components/UserActionRow.test.ts +60 -0
- package/front_end/panels/freestyler/components/UserActionRow.ts +382 -0
- package/front_end/panels/freestyler/components/freestylerChatUi.css +137 -99
- package/front_end/panels/freestyler/components/{provideFeedback.css → userActionRow.css} +62 -0
- package/front_end/panels/freestyler/freestyler-meta.ts +44 -25
- package/front_end/panels/freestyler/freestyler.ts +1 -1
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +14 -0
- package/front_end/panels/issues/IssueAggregator.ts +10 -1
- package/front_end/panels/issues/components/ElementsPanelLink.ts +0 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +2 -3
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -2
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +46 -0
- package/front_end/panels/lighthouse/LighthouseStartView.ts +1 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +7 -12
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +3 -4
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -2
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +26 -17
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +25 -19
- package/front_end/panels/network/BinaryResourceView.ts +9 -9
- package/front_end/panels/network/EventSourceMessagesView.ts +1 -1
- package/front_end/panels/network/NetworkDataGridNode.test.ts +29 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +59 -8
- package/front_end/panels/network/NetworkLogView.test.ts +29 -0
- package/front_end/panels/network/NetworkLogView.ts +9 -10
- package/front_end/panels/network/NetworkPanel.test.ts +3 -22
- package/front_end/panels/network/NetworkPanel.ts +26 -7
- package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -0
- package/front_end/panels/network/RequestResponseView.test.ts +2 -2
- package/front_end/panels/network/RequestResponseView.ts +6 -10
- package/front_end/panels/network/RequestTimingView.test.ts +35 -1
- package/front_end/panels/network/RequestTimingView.ts +96 -0
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +5 -3
- package/front_end/panels/network/components/HeaderSectionRow.ts +11 -12
- package/front_end/panels/network/components/RequestHeaderSection.ts +4 -9
- package/front_end/panels/network/components/RequestHeadersView.css +7 -0
- package/front_end/panels/network/components/RequestTrustTokensView.ts +1 -1
- package/front_end/panels/network/network.ts +0 -2
- package/front_end/panels/network/networkConfigView.css +8 -7
- package/front_end/panels/network/networkLogView.css +32 -2
- package/front_end/panels/network/networkPanel.css +2 -1
- package/front_end/panels/network/networkTimingTable.css +2 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +3 -3
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +11 -10
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +12 -8
- package/front_end/panels/profiler/HeapSnapshotProxy.ts +6 -6
- package/front_end/panels/profiler/HeapSnapshotView.ts +2 -2
- package/front_end/panels/profiler/HeapTimelineOverview.ts +12 -12
- package/front_end/panels/profiler/IsolateSelector.ts +3 -4
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +1 -1
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +7 -6
- package/front_end/panels/profiler/ProfileView.ts +1 -1
- package/front_end/panels/protocol_monitor/components/JSONEditor.ts +5 -5
- package/front_end/panels/recorder/components/RecordingView.ts +2 -2
- package/front_end/panels/recorder/components/StartView.ts +4 -5
- package/front_end/panels/recorder/components/recordingView.css +1 -4
- package/front_end/panels/recorder/components/selectButton.css +6 -50
- package/front_end/panels/recorder/injected/{rollup.config.js → rollup.config.mjs} +1 -1
- package/front_end/panels/recorder/models/RecorderShortcutHelper.ts +1 -1
- package/front_end/panels/recorder/models/RecordingSession.ts +4 -4
- package/front_end/panels/recorder/recorderController.css +38 -22
- package/front_end/panels/screencast/ScreencastApp.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +1 -1
- package/front_end/panels/search/SearchView.ts +0 -2
- package/front_end/panels/search/searchView.css +5 -1
- package/front_end/panels/security/CookieReportTreeElement.ts +18 -0
- package/front_end/panels/security/CookieReportView.ts +120 -0
- package/front_end/panels/security/OriginTreeElement.ts +20 -7
- package/front_end/panels/security/SecurityPanel.ts +71 -16
- package/front_end/panels/security/{SecurityAndPrivacyPanelSidebar.ts → SecurityPanelSidebar.ts} +24 -13
- package/front_end/panels/security/SecurityPanelSidebarTreeElement.ts +1 -12
- package/front_end/panels/security/cookieReportView.css +46 -0
- package/front_end/panels/security/sidebar.css +39 -1
- package/front_end/panels/sensors/LocationsSettingsTab.ts +26 -11
- package/front_end/panels/sensors/SensorsView.ts +27 -0
- package/front_end/panels/sensors/locationsSettingsTab.css +18 -18
- package/front_end/panels/sensors/sensors-meta.ts +59 -0
- package/front_end/panels/settings/AISettingsTab.test.ts +79 -11
- package/front_end/panels/settings/AISettingsTab.ts +107 -29
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +44 -30
- package/front_end/panels/settings/KeybindsSettingsTab.ts +35 -18
- package/front_end/panels/settings/SettingsScreen.ts +62 -57
- package/front_end/panels/settings/aiSettingsTab.css +16 -14
- package/front_end/panels/settings/components/SyncSection.ts +2 -5
- package/front_end/panels/settings/components/syncSection.css +0 -10
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +51 -29
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +24 -12
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +11 -10
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +16 -42
- package/front_end/panels/settings/keybindsSettingsTab.css +50 -91
- package/front_end/panels/settings/settingsScreen.css +39 -113
- package/front_end/panels/sources/AddSourceMapURLDialog.ts +1 -1
- package/front_end/panels/sources/CSSPlugin.ts +0 -2
- package/front_end/panels/sources/DebuggerPlugin.ts +9 -4
- package/front_end/panels/sources/NavigatorView.ts +42 -36
- package/front_end/panels/sources/SourcesPanel.ts +25 -6
- package/front_end/panels/sources/SourcesView.test.ts +1 -0
- package/front_end/panels/sources/SourcesView.ts +2 -2
- package/front_end/panels/sources/components/BreakpointsView.ts +0 -1
- package/front_end/panels/sources/components/HeadersView.ts +0 -1
- package/front_end/panels/sources/navigatorTree.css +11 -0
- package/front_end/panels/timeline/ActiveFilters.ts +3 -4
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -2
- package/front_end/panels/timeline/AnnotationHelpers.ts +3 -3
- package/front_end/panels/timeline/AppenderUtils.ts +1 -3
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +21 -9
- package/front_end/panels/timeline/CountersGraph.ts +2 -4
- package/front_end/panels/timeline/EntriesFilter.test.ts +19 -36
- package/front_end/panels/timeline/EntriesFilter.ts +6 -4
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +16 -17
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +2 -1
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +6 -6
- package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -8
- package/front_end/panels/timeline/README.md +2 -1
- package/front_end/panels/timeline/ThreadAppender.ts +5 -6
- package/front_end/panels/timeline/TimelineController.ts +14 -4
- package/front_end/panels/timeline/TimelineDetailsView.test.ts +85 -42
- package/front_end/panels/timeline/TimelineDetailsView.ts +71 -42
- package/front_end/panels/timeline/TimelineEventOverview.ts +13 -14
- package/front_end/panels/timeline/TimelineFilters.test.ts +4 -4
- package/front_end/panels/timeline/TimelineFilters.ts +3 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.test.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +59 -70
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +16 -16
- package/front_end/panels/timeline/TimelineFlameChartView.test.ts +2 -3
- package/front_end/panels/timeline/TimelineFlameChartView.ts +123 -69
- package/front_end/panels/timeline/TimelineHistoryManager.ts +4 -0
- package/front_end/panels/timeline/TimelineLoader.test.ts +1 -2
- package/front_end/panels/timeline/TimelineLoader.ts +3 -4
- package/front_end/panels/timeline/TimelineMiniMap.ts +10 -8
- package/front_end/panels/timeline/TimelinePanel.ts +109 -52
- package/front_end/panels/timeline/TimelineSelection.test.ts +91 -36
- package/front_end/panels/timeline/TimelineSelection.ts +48 -60
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +3 -8
- package/front_end/panels/timeline/TimelineTreeView.test.ts +12 -13
- package/front_end/panels/timeline/TimelineTreeView.ts +42 -45
- package/front_end/panels/timeline/TimelineUIUtils.test.ts +53 -6
- package/front_end/panels/timeline/TimelineUIUtils.ts +48 -40
- package/front_end/panels/timeline/UIDevtoolsController.ts +5 -5
- package/front_end/panels/timeline/UIDevtoolsUtils.ts +59 -68
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +2 -3
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +31 -15
- package/front_end/panels/timeline/components/LiveMetricsView.test.ts +227 -65
- package/front_end/panels/timeline/components/LiveMetricsView.ts +144 -122
- package/front_end/panels/timeline/components/MetricCard.test.ts +1 -1
- package/front_end/panels/timeline/components/MetricCard.ts +46 -0
- package/front_end/panels/timeline/components/NetworkRequestDetails.test.ts +14 -7
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +50 -121
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +64 -74
- package/front_end/panels/timeline/components/Sidebar.ts +2 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +11 -13
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +51 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +3 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +41 -36
- package/front_end/panels/timeline/components/Utils.ts +28 -29
- package/front_end/panels/timeline/components/components.ts +0 -4
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +29 -36
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +32 -39
- package/front_end/panels/timeline/components/insights/EventRef.ts +0 -1
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +17 -23
- package/front_end/panels/timeline/components/insights/Helpers.ts +16 -20
- package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +17 -31
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +25 -37
- package/front_end/panels/timeline/components/insights/LCPPhases.ts +25 -46
- package/front_end/panels/timeline/components/insights/NodeLink.ts +0 -1
- package/front_end/panels/timeline/components/insights/README.md +2 -2
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +24 -35
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +15 -7
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +125 -60
- package/front_end/panels/timeline/components/insights/Table.ts +6 -6
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +24 -34
- package/front_end/panels/timeline/components/insights/Viewport.ts +17 -30
- package/front_end/panels/timeline/components/layoutShiftDetails.css +7 -1
- package/front_end/panels/timeline/components/liveMetricsView.css +58 -25
- package/front_end/panels/timeline/components/metricCard.css +11 -0
- package/front_end/panels/timeline/components/networkRequestDetails.css +9 -49
- package/front_end/panels/timeline/components/networkRequestTooltip.css +34 -11
- package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +20 -0
- package/front_end/panels/timeline/extensions/ExtensionUI.ts +7 -7
- package/front_end/panels/timeline/fixtures/traces/README.md +4 -0
- package/front_end/panels/timeline/fixtures/traces/scheduler-post-task.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/unsized-images.json.gz +0 -0
- package/front_end/panels/timeline/historyToolbarButton.css +33 -19
- package/front_end/panels/timeline/overlays/OverlaysImpl.test.ts +5 -21
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +61 -34
- package/front_end/panels/timeline/overlays/components/entriesLinkOverlay.css +8 -0
- package/front_end/panels/timeline/overlays/components/entryLabelOverlay.css +16 -0
- package/front_end/panels/timeline/timeline-meta.ts +11 -0
- package/front_end/panels/timeline/timelineFlameChartView.css +17 -1
- package/front_end/panels/timeline/track_appenders/AnimationsTrackAppender.test.ts +2 -3
- package/front_end/panels/timeline/track_appenders/AppenderUtils.test.ts +1 -6
- package/front_end/panels/timeline/track_appenders/CompatibilityTracksAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/ExtensionTrackAppender.test.ts +7 -8
- package/front_end/panels/timeline/track_appenders/GPUTrackAppender.test.ts +2 -2
- package/front_end/panels/timeline/track_appenders/InteractionsTrackAppender.test.ts +3 -3
- package/front_end/panels/timeline/track_appenders/LayoutShiftsTrackAppender.test.ts +3 -4
- package/front_end/panels/timeline/track_appenders/ServerTimingsTrackAppender.test.ts +2 -3
- package/front_end/panels/timeline/track_appenders/ThreadAppender.test.ts +5 -10
- package/front_end/panels/timeline/track_appenders/TimingsTrackAppender.test.ts +5 -5
- package/front_end/panels/timeline/utils/AICallTree.test.ts +185 -0
- package/front_end/panels/timeline/utils/AICallTree.ts +166 -0
- package/front_end/panels/timeline/{components → utils}/EntryName.test.ts +12 -12
- package/front_end/panels/timeline/{components → utils}/EntryName.ts +1 -1
- package/front_end/panels/timeline/{components → utils}/EntryStyles.ts +28 -1
- package/front_end/panels/timeline/utils/Helpers.test.ts +8 -3
- package/front_end/panels/timeline/utils/Helpers.ts +3 -4
- package/front_end/panels/timeline/utils/IgnoreList.test.ts +86 -0
- package/front_end/panels/timeline/utils/IgnoreList.ts +11 -4
- package/front_end/panels/timeline/utils/NetworkRequest.ts +1 -1
- package/front_end/panels/timeline/utils/SourceMapsResolver.test.ts +51 -18
- package/front_end/panels/timeline/utils/SourceMapsResolver.ts +3 -1
- package/front_end/panels/timeline/utils/utils.ts +6 -0
- package/front_end/panels/utils/utils.ts +56 -4
- package/front_end/services/trace_bounds/TraceBounds.ts +7 -1
- package/front_end/testing/ContextMenuHelpers.ts +1 -1
- package/front_end/testing/EnvironmentHelpers.ts +18 -9
- package/front_end/testing/InsightHelpers.ts +4 -4
- package/front_end/testing/NetworkHelpers.ts +38 -0
- package/front_end/testing/StorageItemsViewHelpers.ts +24 -0
- package/front_end/testing/TraceHelpers.ts +11 -1
- package/front_end/third_party/additional_readme_paths.json +1 -0
- package/front_end/third_party/codemirror.next/chunk/angular.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/angular.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/legacy.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/less.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/sass.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/vue.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/vue.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js.map +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +68 -3
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +2 -1
- package/front_end/third_party/intl-messageformat/README.chromium +2 -1
- package/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.js +0 -1
- package/front_end/third_party/json5/LICENSE +23 -0
- package/front_end/third_party/json5/README.chromium +17 -0
- package/front_end/third_party/json5/json5-tsconfig.json +8 -0
- package/front_end/third_party/json5/json5.ts +4 -0
- package/front_end/third_party/json5/lib/index.d.ts +2 -0
- package/front_end/third_party/json5/lib/index.js +1121 -0
- package/front_end/third_party/json5/package/lib/index.d.ts +4 -0
- package/front_end/third_party/json5/package/lib/index.js +9 -0
- package/front_end/third_party/json5/package/lib/parse.d.ts +15 -0
- package/front_end/third_party/json5/package/lib/parse.js +1114 -0
- package/front_end/third_party/json5/package/lib/register.js +13 -0
- package/front_end/third_party/json5/package/lib/require.js +4 -0
- package/front_end/third_party/json5/package/lib/stringify.d.ts +89 -0
- package/front_end/third_party/json5/package/lib/stringify.js +261 -0
- package/front_end/third_party/json5/package/lib/unicode.d.ts +3 -0
- package/front_end/third_party/json5/package/lib/unicode.js +4 -0
- package/front_end/third_party/json5/package/lib/util.d.ts +5 -0
- package/front_end/third_party/json5/package/lib/util.js +35 -0
- package/front_end/third_party/json5/package.json +8 -0
- package/front_end/third_party/json5/rebuild.sh +5 -0
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +4 -5
- 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 +1 -6
- 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 +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +18 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +34 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts +7 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.d.ts +37 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.js +52 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/JSHandle.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +22 -22
- 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 +26 -19
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/WebWorker.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +1 -2
- 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/Browser.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +1 -2
- 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.js +12 -5
- 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/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +22 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ExposedFunction.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.d.ts +14 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.js +57 -23
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +21 -10
- 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/Realm.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Binding.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +0 -1
- 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/BrowserConnector.js +1 -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.js +12 -5
- 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/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +2 -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/DeviceRequestPrompt.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +13 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js +17 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.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/FrameManager.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.d.ts +15 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.js +55 -26
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/IsolatedWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -1
- 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 +16 -7
- 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/PredefinedNetworkConditions.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/PredefinedNetworkConditions.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js +6 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/utils.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CSSQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts +0 -8
- 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 +3 -12
- 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 +3 -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/common/ConsoleMessage.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/GetQueryHandler.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/GetQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HandleIterator.js +13 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HandleIterator.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PSelectorParser.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PSelectorParser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PierceQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js +5 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts +7 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.js +0 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +14 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js +0 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/ARIAQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/CSSSelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js.map +1 -1
- 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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ScreenRecorder.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util/fs.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util/fs.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +6 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +15 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.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/Mutex.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.js +18 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/disposable.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/encoding.js +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/encoding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.d.ts +14 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.js +18 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/incremental-id-generator.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +424 -587
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +527 -243
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +4 -5
- 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 +1 -6
- 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 +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +18 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +32 -11
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +13 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts +7 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts +37 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.js +52 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/JSHandle.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +22 -22
- 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 +24 -17
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/WebWorker.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/api.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/locators/locators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +12 -5
- 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/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +22 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ExposedFunction.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.d.ts +14 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.js +57 -23
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +21 -10
- 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/Realm.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Binding.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +0 -1
- 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/BrowserContext.js +12 -5
- 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/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +13 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js +17 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.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/FrameManager.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.d.ts +15 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.js +55 -26
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/IsolatedWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -1
- 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 +16 -7
- 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/PredefinedNetworkConditions.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/cdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CSSQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +0 -8
- 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 +1 -9
- 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 +3 -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/common/ConsoleMessage.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HandleIterator.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HandleIterator.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PierceQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js +5 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts +7 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.js +0 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +0 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/ARIAQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/CSSSelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -1
- 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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ScreenRecorder.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +6 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Function.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/disposable.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.d.ts +14 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.js +15 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/incremental-id-generator.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +424 -587
- package/front_end/third_party/puppeteer/package/package.json +8 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +10 -11
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/api/CDPSession.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +65 -47
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +33 -33
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +14 -9
- package/front_end/third_party/puppeteer/package/src/api/Input.ts +68 -19
- package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +88 -87
- package/front_end/third_party/puppeteer/package/src/api/Realm.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/api/WebWorker.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/api/api.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +79 -79
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +9 -5
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/bidi/CDPSession.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +12 -10
- package/front_end/third_party/puppeteer/package/src/bidi/ExposedFunction.ts +11 -11
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +46 -41
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +9 -9
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/bidi/Input.ts +80 -39
- package/front_end/third_party/puppeteer/package/src/bidi/JSHandle.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +56 -52
- package/front_end/third_party/puppeteer/package/src/bidi/Realm.ts +15 -15
- package/front_end/third_party/puppeteer/package/src/bidi/Serializer.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/Target.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/bidi/WebWorker.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/bidi/core/Browser.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +17 -17
- package/front_end/third_party/puppeteer/package/src/bidi/core/Connection.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/bidi/core/Realm.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Session.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/UserContext.ts +9 -9
- package/front_end/third_party/puppeteer/package/src/bidi/core/UserPrompt.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/core.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/util.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/AriaQueryHandler.ts +10 -6
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +24 -24
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/CDPSession.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/ChromeTargetManager.ts +19 -17
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/Coverage.ts +11 -11
- package/front_end/third_party/puppeteer/package/src/cdp/DeviceRequestPrompt.ts +17 -17
- package/front_end/third_party/puppeteer/package/src/cdp/Dialog.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +20 -15
- package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +34 -34
- package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +18 -19
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +7 -3
- package/front_end/third_party/puppeteer/package/src/cdp/FirefoxTargetManager.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -16
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +20 -20
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManagerEvents.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Input.ts +87 -40
- package/front_end/third_party/puppeteer/package/src/cdp/IsolatedWorld.ts +14 -13
- package/front_end/third_party/puppeteer/package/src/cdp/JSHandle.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/LifecycleWatcher.ts +11 -11
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +15 -15
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +38 -37
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +71 -70
- package/front_end/third_party/puppeteer/package/src/cdp/PredefinedNetworkConditions.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Tracing.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/WebWorker.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/common/CSSQueryHandler.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +10 -22
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +3 -0
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +9 -2
- package/front_end/third_party/puppeteer/package/src/common/CustomQueryHandler.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/common/Debug.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/common/Errors.ts +7 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +8 -8
- package/front_end/third_party/puppeteer/package/src/common/FileChooser.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/common/HandleIterator.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/common/LazyArg.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/NetworkManagerEvents.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/PQueryHandler.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/common/PSelectorParser.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/PierceQueryHandler.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/common/Puppeteer.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/QueryHandler.ts +12 -12
- package/front_end/third_party/puppeteer/package/src/common/TaskQueue.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/TextQueryHandler.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/WaitTask.ts +16 -16
- package/front_end/third_party/puppeteer/package/src/common/XPathQueryHandler.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/common/common.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/common/util.ts +15 -14
- package/front_end/third_party/puppeteer/package/src/environment.ts +1 -4
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/ARIAQuerySelector.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/injected/CSSSelector.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/injected/PQuerySelector.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/injected/PierceQuerySelector.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/injected/TextContent.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/TextQuerySelector.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/XPathQuerySelector.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/injected/util.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +38 -30
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +11 -12
- package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +8 -8
- package/front_end/third_party/puppeteer/package/src/node/NodeWebSocketTransport.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/PipeTransport.ts +7 -3
- package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/node/node.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/puppeteer-core.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/AsyncIterableUtil.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/Deferred.ts +3 -2
- package/front_end/third_party/puppeteer/package/src/util/ErrorLike.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/Function.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/util/Mutex.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/assert.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +8 -9
- package/front_end/third_party/puppeteer/package/src/util/encoding.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/incremental-id-generator.ts +20 -0
- package/front_end/third_party/puppeteer/package/src/util/util.ts +1 -0
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +1 -0
- package/front_end/third_party/web-vitals/README.chromium +3 -3
- package/front_end/third_party/web-vitals/package/README.md +36 -23
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +2 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +11 -13
- package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +2 -22
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +4 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.iife.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.umd.cjs +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.iife.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.umd.cjs +1 -1
- package/front_end/third_party/web-vitals/package/package.json +1 -1
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +11 -14
- package/front_end/third_party/web-vitals/package/src/lib/interactions.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/onLCP.ts +4 -1
- package/front_end/third_party/web-vitals/rebuild.sh +14 -0
- package/front_end/third_party/web-vitals/web-vitals.ts +2 -0
- package/front_end/ui/components/adorners/Adorner.ts +0 -1
- package/front_end/ui/components/buttons/Button.test.ts +14 -0
- package/front_end/ui/components/buttons/Button.ts +27 -5
- package/front_end/ui/components/buttons/button.css +1 -0
- package/front_end/ui/components/cards/Card.test.ts +31 -5
- package/front_end/ui/components/cards/Card.ts +22 -3
- package/front_end/ui/components/cards/card.css +29 -8
- package/front_end/ui/components/chrome_link/ChromeLink.ts +0 -1
- package/front_end/ui/components/data_grid/DataGrid.ts +0 -1
- package/front_end/ui/components/data_grid/DataGridController.ts +2 -3
- package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +1 -2
- package/front_end/ui/components/dialogs/Dialog.ts +2 -5
- package/front_end/ui/components/dialogs/IconDialog.ts +9 -11
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +18 -17
- package/front_end/ui/components/dialogs/dialog.css +2 -6
- package/front_end/ui/components/dialogs/shortcutDialog.css +33 -41
- package/front_end/ui/components/diff_view/DiffView.ts +0 -1
- package/front_end/ui/components/docs/building-ui-documentation/ComponentPerformance.md +1 -4
- package/front_end/ui/components/docs/building-ui-documentation/CreatingComponents.md +14 -44
- package/front_end/ui/components/docs/freestyler/basic.ts +6 -9
- package/front_end/ui/components/docs/freestyler/empty_state.ts +6 -8
- package/front_end/ui/components/docs/icon_dialog/basic.ts +4 -4
- package/front_end/ui/components/docs/performance_panel/basic.ts +4 -1
- package/front_end/ui/components/docs/performance_panel/track_example.html +1 -1
- package/front_end/ui/components/docs/report/basic.ts +3 -3
- package/front_end/ui/components/expandable_list/ExpandableList.ts +0 -1
- package/front_end/ui/components/floating_button/FloatingButton.ts +0 -1
- package/front_end/ui/components/icon_button/FileSourceIcon.test.ts +32 -0
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +76 -0
- package/front_end/ui/components/icon_button/Icon.ts +0 -3
- package/front_end/ui/components/icon_button/IconButton.ts +0 -1
- package/front_end/ui/components/icon_button/fileSourceIcon.css +43 -0
- package/front_end/ui/components/icon_button/icon_button.ts +2 -0
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -3
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +0 -1
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +4 -2
- package/front_end/ui/components/markdown_view/CodeBlock.ts +0 -1
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +0 -1
- package/front_end/ui/components/markdown_view/MarkdownLink.ts +0 -1
- package/front_end/ui/components/markdown_view/MarkdownView.test.ts +39 -17
- package/front_end/ui/components/markdown_view/MarkdownView.ts +85 -19
- package/front_end/ui/components/markdown_view/markdownView.css +15 -0
- package/front_end/ui/components/menus/Menu.ts +0 -3
- package/front_end/ui/components/menus/SelectMenu.ts +0 -2
- package/front_end/ui/components/menus/selectMenu.css +8 -5
- package/front_end/ui/components/menus/selectMenuButton.css +29 -17
- package/front_end/ui/components/node_text/NodeText.ts +0 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +0 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -3
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -3
- package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +0 -1
- package/front_end/ui/components/report_view/ReportView.ts +1 -7
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +0 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +30 -11
- package/front_end/ui/components/settings/SettingDeprecationWarning.ts +2 -4
- package/front_end/ui/components/settings/settingCheckbox.css +1 -0
- package/front_end/ui/components/spinners/Spinner.ts +0 -1
- package/front_end/ui/components/spinners/spinner.css +1 -0
- package/front_end/ui/components/split_view/SplitView.ts +0 -1
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +0 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -3
- package/front_end/ui/components/switch/SwitchImpl.ts +0 -1
- package/front_end/ui/components/text_editor/TextEditor.ts +0 -2
- package/front_end/ui/components/text_prompt/TextPrompt.ts +0 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +0 -1
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +0 -1
- package/front_end/ui/legacy/ContextMenu.ts +48 -9
- package/front_end/ui/legacy/FilterBar.test.ts +52 -0
- package/front_end/ui/legacy/FilterBar.ts +46 -1
- package/front_end/ui/legacy/InplaceEditor.ts +18 -14
- package/front_end/ui/legacy/KeyboardShortcut.ts +35 -21
- package/front_end/ui/legacy/Panel.ts +2 -2
- package/front_end/ui/legacy/ShortcutRegistry.ts +10 -7
- package/front_end/ui/legacy/SoftContextMenu.ts +3 -0
- package/front_end/ui/legacy/TabbedPane.ts +0 -14
- package/front_end/ui/legacy/ThrottledWidget.ts +2 -2
- package/front_end/ui/legacy/Toolbar.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +7 -4
- package/front_end/ui/legacy/UIUtils.ts +2 -0
- package/front_end/ui/legacy/View.ts +2 -2
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/Widget.ts +4 -4
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +7 -2
- package/front_end/ui/legacy/components/data_grid/DataGrid.test.ts +51 -0
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +100 -10
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +20 -11
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +8 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +4 -7
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngleSwatch.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.test.ts +19 -0
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +1 -4
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +1 -2
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/CanvasHelper.ts +1 -83
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +3 -2
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +166 -78
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +129 -100
- package/front_end/ui/legacy/components/perf_ui/PieChart.ts +0 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +4 -2
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.test.ts +9 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts +6 -6
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +25 -7
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +0 -2
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.test.ts +54 -9
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +31 -105
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.test.ts +18 -0
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +20 -3
- package/front_end/{panels/network/RequestBinaryResponseView.test.ts → ui/legacy/components/source_frame/StreamingContentHexView.test.ts} +12 -12
- package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +122 -0
- package/front_end/ui/legacy/components/source_frame/source_frame.ts +2 -0
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
- package/front_end/ui/legacy/designTokens.css +46 -40
- package/front_end/ui/legacy/filter.css +23 -8
- package/front_end/ui/legacy/inspectorCommon.css +31 -29
- package/front_end/ui/legacy/searchableView.css +4 -3
- package/front_end/ui/legacy/softDropDownButton.css +10 -6
- package/front_end/ui/legacy/tabbedPane.css +1 -1
- package/front_end/ui/legacy/textPrompt.css +1 -1
- package/front_end/ui/legacy/toolbar.css +38 -19
- package/front_end/ui/visual_logging/KnownContextValues.ts +241 -1
- package/front_end/ui/visual_logging/LoggingConfig.ts +6 -2
- package/front_end/ui/visual_logging/LoggingDriver.test.ts +53 -6
- package/front_end/ui/visual_logging/LoggingDriver.ts +8 -5
- package/front_end/ui/visual_logging/LoggingEvents.test.ts +5 -1
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/front_end/ui/visual_logging/LoggingState.ts +1 -1
- package/package.json +10 -10
- package/scripts/build/esbuild.js +3 -1
- package/scripts/build/ninja/bundle.gni +3 -3
- package/scripts/build/{rollup.config.js → rollup.config.mjs} +4 -4
- package/scripts/devtools_paths.js +11 -1
- package/scripts/devtools_paths.py +8 -4
- package/scripts/eslint_rules/lib/check_test_definitions.js +1 -1
- package/scripts/eslint_rules/tests/check_test_definitions_test.js +18 -3
- package/scripts/tools/update_goldens_v2.py +1 -1
- package/tsconfig.json +11 -1
- package/docs/add_uma_metrics.md +0 -41
- package/docs/uma_metrics.md +0 -23
- package/front_end/models/timeline_model/TimelineModelFilter.ts +0 -61
- package/front_end/panels/animation/AnimationDOMNode.ts +0 -268
- package/front_end/panels/freestyler/components/ProvideFeedback.test.ts +0 -29
- package/front_end/panels/freestyler/components/ProvideFeedback.ts +0 -247
- package/front_end/panels/network/RequestBinaryResponseView.ts +0 -67
- package/scripts/eslint_rules/lib/lit_html_data_as_type.js +0 -83
- package/scripts/eslint_rules/tests/lit_html_data_as_type_test.js +0 -81
- /package/front_end/Images/{rollup.config.js → rollup.config.mjs} +0 -0
@@ -6,16 +6,26 @@ import * as Host from '../../core/host/host.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
9
|
-
import * as Trace from '../../models/trace/trace.js';
|
10
9
|
import * as Workspace from '../../models/workspace/workspace.js';
|
10
|
+
import * as ElementsPanel from '../../panels/elements/elements.js';
|
11
11
|
import * as NetworkForward from '../../panels/network/forward/forward.js';
|
12
|
+
import * as NetworkPanel from '../../panels/network/network.js';
|
13
|
+
import * as SourcesPanel from '../../panels/sources/sources.js';
|
14
|
+
import * as TimelinePanel from '../../panels/timeline/timeline.js';
|
15
|
+
import * as TimelineUtils from '../../panels/timeline/utils/utils.js';
|
12
16
|
import * as UI from '../../ui/legacy/legacy.js';
|
13
17
|
import * as LitHtml from '../../ui/lit-html/lit-html.js';
|
14
18
|
|
15
|
-
import {ErrorType, type ResponseData, ResponseType} from './AiAgent.js';
|
16
|
-
import {ChangeManager} from './ChangeManager.js';
|
17
19
|
import {
|
18
20
|
AgentType,
|
21
|
+
type AiAgent,
|
22
|
+
type ConversationContext,
|
23
|
+
ErrorType,
|
24
|
+
type ResponseData,
|
25
|
+
ResponseType,
|
26
|
+
} from './AiAgent.js';
|
27
|
+
import {ChangeManager} from './ChangeManager.js';
|
28
|
+
import {
|
19
29
|
ChatMessageEntity,
|
20
30
|
FreestylerChatUi,
|
21
31
|
type ModelChatMessage,
|
@@ -25,12 +35,14 @@ import {
|
|
25
35
|
} from './components/FreestylerChatUi.js';
|
26
36
|
import {
|
27
37
|
DrJonesFileAgent,
|
38
|
+
FileContext,
|
28
39
|
} from './DrJonesFileAgent.js';
|
29
40
|
import {
|
30
41
|
DrJonesNetworkAgent,
|
42
|
+
RequestContext,
|
31
43
|
} from './DrJonesNetworkAgent.js';
|
32
|
-
import {DrJonesPerformanceAgent} from './DrJonesPerformanceAgent.js';
|
33
|
-
import {FreestylerAgent} from './FreestylerAgent.js';
|
44
|
+
import {CallTreeContext, DrJonesPerformanceAgent} from './DrJonesPerformanceAgent.js';
|
45
|
+
import {FreestylerAgent, NodeContext} from './FreestylerAgent.js';
|
34
46
|
import freestylerPanelStyles from './freestylerPanel.css.js';
|
35
47
|
|
36
48
|
const {html} = LitHtml;
|
@@ -38,14 +50,11 @@ const {html} = LitHtml;
|
|
38
50
|
const AI_ASSISTANCE_SEND_FEEDBACK = 'https://crbug.com/364805393' as Platform.DevToolsPath.UrlString;
|
39
51
|
const AI_ASSISTANCE_HELP = 'https://goo.gle/devtools-ai-assistance' as Platform.DevToolsPath.UrlString;
|
40
52
|
|
41
|
-
|
42
|
-
* Strings that don't need to be translated at this time.
|
43
|
-
*/
|
44
|
-
const UIStringsNotTranslate = {
|
53
|
+
const UIStrings = {
|
45
54
|
/**
|
46
|
-
*@description AI assistance UI text
|
55
|
+
*@description AI assistance UI text creating a new chat.
|
47
56
|
*/
|
48
|
-
|
57
|
+
newChat: 'New chat',
|
49
58
|
/**
|
50
59
|
*@description AI assistance UI tooltip text for the help button.
|
51
60
|
*/
|
@@ -59,9 +68,36 @@ const UIStringsNotTranslate = {
|
|
59
68
|
*/
|
60
69
|
sendFeedback: 'Send feedback',
|
61
70
|
/**
|
62
|
-
*@description Announcement text for screen readers when
|
71
|
+
*@description Announcement text for screen readers when a new chat is created.
|
63
72
|
*/
|
64
|
-
|
73
|
+
newChatCreated: 'New chat created',
|
74
|
+
/**
|
75
|
+
*@description Announcement text for screen readers when the chat is deleted.
|
76
|
+
*/
|
77
|
+
chatDeleted: 'Chat deleted',
|
78
|
+
/**
|
79
|
+
*@description AI assistance UI text creating selecting a history entry.
|
80
|
+
*/
|
81
|
+
history: 'History',
|
82
|
+
/**
|
83
|
+
*@description AI assistance UI text deleting the current chat session.
|
84
|
+
*/
|
85
|
+
deleteChat: 'Delete chat',
|
86
|
+
/**
|
87
|
+
*@description AI assistance UI text that deletes all history entries.
|
88
|
+
*/
|
89
|
+
clearChatHistory: 'Clear chat history',
|
90
|
+
/**
|
91
|
+
*@description AI assistance UI text explains that he user had no pas conversations.
|
92
|
+
*/
|
93
|
+
noPastConversations: 'No past conversations',
|
94
|
+
};
|
95
|
+
|
96
|
+
/*
|
97
|
+
* Strings that don't need to be translated at this time.
|
98
|
+
*/
|
99
|
+
const UIStringsNotTranslate = {
|
100
|
+
|
65
101
|
/**
|
66
102
|
*@description Announcement text for screen readers when the conversation starts.
|
67
103
|
*/
|
@@ -72,6 +108,8 @@ const UIStringsNotTranslate = {
|
|
72
108
|
answerReady: 'Answer ready',
|
73
109
|
};
|
74
110
|
|
111
|
+
const str_ = i18n.i18n.registerUIStrings('panels/freestyler/FreestylerPanel.ts', UIStrings);
|
112
|
+
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
75
113
|
const lockedString = i18n.i18n.lockedString;
|
76
114
|
|
77
115
|
type ViewOutput = {
|
@@ -79,40 +117,12 @@ type ViewOutput = {
|
|
79
117
|
};
|
80
118
|
type View = (input: FreestylerChatUiProps, output: ViewOutput, target: HTMLElement) => void;
|
81
119
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
const clearButton = new UI.Toolbar.ToolbarButton(
|
89
|
-
lockedString(UIStringsNotTranslate.clearChat), 'clear', undefined, 'freestyler.clear');
|
90
|
-
clearButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, onClearClick);
|
91
|
-
leftToolbar.appendToolbarItem(clearButton);
|
92
|
-
|
93
|
-
const link = UI.XLink.XLink.create(
|
94
|
-
AI_ASSISTANCE_SEND_FEEDBACK, lockedString(UIStringsNotTranslate.sendFeedback), undefined, undefined,
|
95
|
-
'freestyler.send-feedback');
|
96
|
-
link.style.setProperty('display', null);
|
97
|
-
link.style.setProperty('text-decoration', 'none');
|
98
|
-
link.style.setProperty('padding', '0 var(--sys-size-3)');
|
99
|
-
const linkItem = new UI.Toolbar.ToolbarItem(link);
|
100
|
-
rightToolbar.appendToolbarItem(linkItem);
|
101
|
-
|
102
|
-
rightToolbar.appendSeparator();
|
103
|
-
const helpButton =
|
104
|
-
new UI.Toolbar.ToolbarButton(lockedString(UIStringsNotTranslate.help), 'help', undefined, 'freestyler.help');
|
105
|
-
helpButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, () => {
|
106
|
-
Host.InspectorFrontendHost.InspectorFrontendHostInstance.openInNewTab(AI_ASSISTANCE_HELP);
|
107
|
-
});
|
108
|
-
rightToolbar.appendToolbarItem(helpButton);
|
109
|
-
|
110
|
-
const settingsButton = new UI.Toolbar.ToolbarButton(
|
111
|
-
lockedString(UIStringsNotTranslate.settings), 'gear', undefined, 'freestyler.settings');
|
112
|
-
settingsButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, () => {
|
113
|
-
void UI.ViewManager.ViewManager.instance().showView('chrome-ai');
|
114
|
-
});
|
115
|
-
rightToolbar.appendToolbarItem(settingsButton);
|
120
|
+
function selectedElementFilter(maybeNode: SDK.DOMModel.DOMNode|null): SDK.DOMModel.DOMNode|null {
|
121
|
+
if (maybeNode) {
|
122
|
+
return maybeNode.nodeType() === Node.ELEMENT_NODE ? maybeNode : null;
|
123
|
+
}
|
124
|
+
|
125
|
+
return null;
|
116
126
|
}
|
117
127
|
|
118
128
|
function defaultView(input: FreestylerChatUiProps, output: ViewOutput, target: HTMLElement): void {
|
@@ -129,27 +139,62 @@ function defaultView(input: FreestylerChatUiProps, output: ViewOutput, target: H
|
|
129
139
|
// clang-format on
|
130
140
|
}
|
131
141
|
|
142
|
+
function createNodeContext(node: SDK.DOMModel.DOMNode|null): NodeContext|null {
|
143
|
+
if (!node) {
|
144
|
+
return null;
|
145
|
+
}
|
146
|
+
return new NodeContext(node);
|
147
|
+
}
|
148
|
+
|
149
|
+
function createFileContext(file: Workspace.UISourceCode.UISourceCode|null): FileContext|null {
|
150
|
+
if (!file) {
|
151
|
+
return null;
|
152
|
+
}
|
153
|
+
return new FileContext(file);
|
154
|
+
}
|
155
|
+
|
156
|
+
function createRequestContext(request: SDK.NetworkRequest.NetworkRequest|null): RequestContext|null {
|
157
|
+
if (!request) {
|
158
|
+
return null;
|
159
|
+
}
|
160
|
+
return new RequestContext(request);
|
161
|
+
}
|
162
|
+
|
163
|
+
function createCallTreeContext(callTree: TimelineUtils.AICallTree.AICallTree|null): CallTreeContext|null {
|
164
|
+
if (!callTree) {
|
165
|
+
return null;
|
166
|
+
}
|
167
|
+
return new CallTreeContext(callTree);
|
168
|
+
}
|
169
|
+
|
132
170
|
let freestylerPanelInstance: FreestylerPanel;
|
133
171
|
export class FreestylerPanel extends UI.Panel.Panel {
|
134
172
|
static panelName = 'freestyler';
|
135
173
|
|
136
174
|
#toggleSearchElementAction: UI.ActionRegistration.Action;
|
137
|
-
#selectedElement: SDK.DOMModel.DOMNode|null;
|
138
|
-
#selectedFile: Workspace.UISourceCode.UISourceCode|null;
|
139
|
-
#selectedNetworkRequest: SDK.NetworkRequest.NetworkRequest|null;
|
140
|
-
#selectedStackTrace: Trace.Helpers.TreeHelpers.TraceEntryNodeForAI|null;
|
141
175
|
#contentContainer: HTMLElement;
|
142
176
|
#aidaClient: Host.AidaClient.AidaClient;
|
143
|
-
#freestylerAgent: FreestylerAgent;
|
144
|
-
#drJonesFileAgent: DrJonesFileAgent;
|
145
|
-
#drJonesNetworkAgent: DrJonesNetworkAgent;
|
146
|
-
#drJonesPerformanceAgent: DrJonesPerformanceAgent;
|
147
177
|
#viewProps: FreestylerChatUiProps;
|
148
178
|
#viewOutput: ViewOutput = {};
|
149
179
|
#serverSideLoggingEnabled = isFreestylerServerSideLoggingEnabled();
|
150
180
|
#freestylerEnabledSetting: Common.Settings.Setting<boolean>|undefined;
|
151
181
|
#changeManager = new ChangeManager();
|
152
182
|
|
183
|
+
#newChatButton =
|
184
|
+
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.newChat), 'plus', undefined, 'freestyler.new-chat');
|
185
|
+
#historyEntriesButton =
|
186
|
+
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.history), 'history', undefined, 'freestyler.history');
|
187
|
+
#deleteHistoryEntryButton =
|
188
|
+
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.deleteChat), 'bin', undefined, 'freestyler.delete');
|
189
|
+
|
190
|
+
#agents = new Set<AiAgent<unknown>>();
|
191
|
+
#currentAgent?: AiAgent<unknown>;
|
192
|
+
|
193
|
+
#selectedFile: FileContext|null = null;
|
194
|
+
#selectedElement: NodeContext|null = null;
|
195
|
+
#selectedCallTree: CallTreeContext|null = null;
|
196
|
+
#selectedRequest: RequestContext|null = null;
|
197
|
+
|
153
198
|
constructor(private view: View = defaultView, {aidaClient, aidaAvailability, syncInfo}: {
|
154
199
|
aidaClient: Host.AidaClient.AidaClient,
|
155
200
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions,
|
@@ -158,91 +203,85 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
158
203
|
super(FreestylerPanel.panelName);
|
159
204
|
this.#freestylerEnabledSetting = this.#getAiAssistanceEnabledSetting();
|
160
205
|
|
161
|
-
|
206
|
+
this.#createToolbar();
|
162
207
|
this.#toggleSearchElementAction =
|
163
208
|
UI.ActionRegistry.ActionRegistry.instance().getAction('elements.toggle-element-search');
|
164
209
|
this.#aidaClient = aidaClient;
|
165
210
|
this.#contentContainer = this.contentElement.createChild('div', 'freestyler-chat-ui-container');
|
166
211
|
|
167
|
-
const selectedElementFilter = (maybeNode: SDK.DOMModel.DOMNode|null): SDK.DOMModel.DOMNode|null => {
|
168
|
-
if (maybeNode) {
|
169
|
-
return maybeNode.nodeType() === Node.ELEMENT_NODE ? maybeNode : null;
|
170
|
-
}
|
171
|
-
|
172
|
-
return null;
|
173
|
-
};
|
174
|
-
|
175
|
-
this.#selectedElement = selectedElementFilter(UI.Context.Context.instance().flavor(SDK.DOMModel.DOMNode));
|
176
|
-
this.#selectedNetworkRequest = UI.Context.Context.instance().flavor(SDK.NetworkRequest.NetworkRequest);
|
177
|
-
this.#selectedStackTrace = UI.Context.Context.instance().flavor(Trace.Helpers.TreeHelpers.TraceEntryNodeForAI);
|
178
|
-
this.#selectedFile = UI.Context.Context.instance().flavor(Workspace.UISourceCode.UISourceCode);
|
179
212
|
this.#viewProps = {
|
180
|
-
state: this.#
|
181
|
-
FreestylerChatUiState.CONSENT_VIEW,
|
213
|
+
state: this.#getChatUiState(),
|
182
214
|
aidaAvailability,
|
183
215
|
messages: [],
|
184
216
|
inspectElementToggled: this.#toggleSearchElementAction.toggled(),
|
185
|
-
selectedElement: this.#selectedElement,
|
186
|
-
selectedNetworkRequest: this.#selectedNetworkRequest,
|
187
|
-
selectedStackTrace: this.#selectedStackTrace,
|
188
|
-
selectedFile: this.#selectedFile,
|
189
217
|
isLoading: false,
|
190
|
-
onTextSubmit:
|
218
|
+
onTextSubmit: (text: string) => {
|
219
|
+
void this.#startConversation(text);
|
220
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.AiAssistanceQuerySubmitted);
|
221
|
+
},
|
191
222
|
onInspectElementClick: this.#handleSelectElementClick.bind(this),
|
192
223
|
onFeedbackSubmit: this.#handleFeedbackSubmit.bind(this),
|
193
224
|
onCancelClick: this.#cancel.bind(this),
|
194
|
-
|
195
|
-
|
225
|
+
onContextClick: this.#handleContextClick.bind(this),
|
226
|
+
onNewConversation: this.#newChat.bind(this),
|
196
227
|
canShowFeedbackForm: this.#serverSideLoggingEnabled,
|
197
228
|
userInfo: {
|
198
229
|
accountImage: syncInfo.accountImage,
|
199
230
|
accountFullName: syncInfo.accountFullName,
|
200
231
|
},
|
201
|
-
|
232
|
+
selectedContext: null,
|
233
|
+
blockedByCrossOrigin: false,
|
234
|
+
stripLinks: false,
|
235
|
+
isReadOnly: false,
|
202
236
|
};
|
203
|
-
|
204
|
-
this.#viewProps.inspectElementToggled = ev.data;
|
205
|
-
this.doUpdate();
|
206
|
-
});
|
237
|
+
}
|
207
238
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
239
|
+
#createToolbar(): void {
|
240
|
+
const toolbarContainer = this.contentElement.createChild('div', 'freestyler-toolbar-container');
|
241
|
+
const leftToolbar = new UI.Toolbar.Toolbar('freestyler-left-toolbar', toolbarContainer);
|
242
|
+
const rightToolbar = new UI.Toolbar.Toolbar('freestyler-right-toolbar', toolbarContainer);
|
212
243
|
|
213
|
-
UI.
|
214
|
-
|
215
|
-
|
216
|
-
}
|
244
|
+
this.#newChatButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, this.#newChat.bind(this));
|
245
|
+
leftToolbar.appendToolbarItem(this.#newChatButton);
|
246
|
+
leftToolbar.appendSeparator();
|
217
247
|
|
218
|
-
|
219
|
-
this.
|
248
|
+
this.#historyEntriesButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, event => {
|
249
|
+
this.#onHistoryClicked(event.data);
|
220
250
|
});
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
251
|
+
leftToolbar.appendToolbarItem(this.#historyEntriesButton);
|
252
|
+
this.#deleteHistoryEntryButton.addEventListener(
|
253
|
+
UI.Toolbar.ToolbarButton.Events.CLICK, this.#onDeleteClicked.bind(this));
|
254
|
+
leftToolbar.appendToolbarItem(this.#deleteHistoryEntryButton);
|
255
|
+
|
256
|
+
const link = UI.XLink.XLink.create(
|
257
|
+
AI_ASSISTANCE_SEND_FEEDBACK, i18nString(UIStrings.sendFeedback), undefined, undefined,
|
258
|
+
'freestyler.send-feedback');
|
259
|
+
link.style.setProperty('display', null);
|
260
|
+
link.style.setProperty('text-decoration', 'none');
|
261
|
+
link.style.setProperty('padding', '0 var(--sys-size-3)');
|
262
|
+
const linkItem = new UI.Toolbar.ToolbarItem(link);
|
263
|
+
rightToolbar.appendToolbarItem(linkItem);
|
264
|
+
|
265
|
+
rightToolbar.appendSeparator();
|
266
|
+
const helpButton = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.help), 'help', undefined, 'freestyler.help');
|
267
|
+
helpButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, () => {
|
268
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.openInNewTab(AI_ASSISTANCE_HELP);
|
228
269
|
});
|
229
|
-
|
230
|
-
if (this.#viewProps.selectedStackTrace === ev.data) {
|
231
|
-
return;
|
232
|
-
}
|
270
|
+
rightToolbar.appendToolbarItem(helpButton);
|
233
271
|
|
234
|
-
|
235
|
-
|
272
|
+
const settingsButton =
|
273
|
+
new UI.Toolbar.ToolbarButton(i18nString(UIStrings.settings), 'gear', undefined, 'freestyler.settings');
|
274
|
+
settingsButton.addEventListener(UI.Toolbar.ToolbarButton.Events.CLICK, () => {
|
275
|
+
void UI.ViewManager.ViewManager.instance().showView('chrome-ai');
|
236
276
|
});
|
237
|
-
|
238
|
-
|
239
|
-
return;
|
240
|
-
}
|
277
|
+
rightToolbar.appendToolbarItem(settingsButton);
|
278
|
+
}
|
241
279
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
this
|
280
|
+
#getChatUiState(): FreestylerChatUiState {
|
281
|
+
const config = Common.Settings.Settings.instance().getHostConfig();
|
282
|
+
const blockedByAge = config.aidaAvailability?.blockedByAge === true;
|
283
|
+
return (this.#freestylerEnabledSetting?.getIfNotDisabled() && !blockedByAge) ? FreestylerChatUiState.CHAT_VIEW :
|
284
|
+
FreestylerChatUiState.CONSENT_VIEW;
|
246
285
|
}
|
247
286
|
|
248
287
|
#getAiAssistanceEnabledSetting(): Common.Settings.Setting<boolean>|undefined {
|
@@ -253,33 +292,58 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
253
292
|
}
|
254
293
|
}
|
255
294
|
|
295
|
+
#createAgent(agentType: AgentType): AiAgent<unknown> {
|
296
|
+
switch (agentType) {
|
297
|
+
case AgentType.FREESTYLER:
|
298
|
+
return this.#createFreestylerAgent();
|
299
|
+
case AgentType.DRJONES_FILE:
|
300
|
+
return this.#createDrJonesFileAgent();
|
301
|
+
case AgentType.DRJONES_NETWORK_REQUEST:
|
302
|
+
return this.#createDrJonesNetworkAgent();
|
303
|
+
case AgentType.DRJONES_PERFORMANCE:
|
304
|
+
return this.#createDrJonesPerformanceAgent();
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
#updateToolbarState(): void {
|
309
|
+
this.#deleteHistoryEntryButton.setVisible(Boolean(this.#currentAgent && !this.#currentAgent.isEmpty));
|
310
|
+
}
|
311
|
+
|
256
312
|
#createFreestylerAgent(): FreestylerAgent {
|
257
|
-
|
313
|
+
const agent = new FreestylerAgent({
|
258
314
|
aidaClient: this.#aidaClient,
|
259
315
|
changeManager: this.#changeManager,
|
260
316
|
serverSideLoggingEnabled: this.#serverSideLoggingEnabled,
|
261
317
|
});
|
318
|
+
this.#agents.add(agent);
|
319
|
+
return agent;
|
262
320
|
}
|
263
321
|
|
264
322
|
#createDrJonesFileAgent(): DrJonesFileAgent {
|
265
|
-
|
323
|
+
const agent = new DrJonesFileAgent({
|
266
324
|
aidaClient: this.#aidaClient,
|
267
325
|
serverSideLoggingEnabled: this.#serverSideLoggingEnabled,
|
268
326
|
});
|
327
|
+
this.#agents.add(agent);
|
328
|
+
return agent;
|
269
329
|
}
|
270
330
|
|
271
331
|
#createDrJonesNetworkAgent(): DrJonesNetworkAgent {
|
272
|
-
|
332
|
+
const agent = new DrJonesNetworkAgent({
|
273
333
|
aidaClient: this.#aidaClient,
|
274
334
|
serverSideLoggingEnabled: this.#serverSideLoggingEnabled,
|
275
335
|
});
|
336
|
+
this.#agents.add(agent);
|
337
|
+
return agent;
|
276
338
|
}
|
277
339
|
|
278
340
|
#createDrJonesPerformanceAgent(): DrJonesPerformanceAgent {
|
279
|
-
|
341
|
+
const agent = new DrJonesPerformanceAgent({
|
280
342
|
aidaClient: this.#aidaClient,
|
281
343
|
serverSideLoggingEnabled: this.#serverSideLoggingEnabled,
|
282
344
|
});
|
345
|
+
this.#agents.add(agent);
|
346
|
+
return agent;
|
283
347
|
}
|
284
348
|
|
285
349
|
static async instance(opts: {
|
@@ -287,35 +351,198 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
287
351
|
}|undefined = {forceNew: null}): Promise<FreestylerPanel> {
|
288
352
|
const {forceNew} = opts;
|
289
353
|
if (!freestylerPanelInstance || forceNew) {
|
290
|
-
const aidaAvailability = await Host.AidaClient.AidaClient.checkAccessPreconditions();
|
291
354
|
const aidaClient = new Host.AidaClient.AidaClient();
|
292
|
-
const
|
293
|
-
resolve => Host.InspectorFrontendHost.InspectorFrontendHostInstance.getSyncInformation(
|
294
|
-
|
355
|
+
const syncInfoPromise = new Promise<Host.InspectorFrontendHostAPI.SyncInformation>(
|
356
|
+
resolve => Host.InspectorFrontendHost.InspectorFrontendHostInstance.getSyncInformation(resolve));
|
357
|
+
const [aidaAvailability, syncInfo] =
|
358
|
+
await Promise.all([Host.AidaClient.AidaClient.checkAccessPreconditions(), syncInfoPromise]);
|
295
359
|
freestylerPanelInstance = new FreestylerPanel(defaultView, {aidaClient, aidaAvailability, syncInfo});
|
296
360
|
}
|
297
361
|
|
298
362
|
return freestylerPanelInstance;
|
299
363
|
}
|
300
364
|
|
365
|
+
// We select the default agent based on the open panels if
|
366
|
+
// there isn't any active conversation.
|
367
|
+
#selectDefaultAgentIfNeeded(): void {
|
368
|
+
// If there already is an agent and not it is not empty,
|
369
|
+
// we don't automatically change the agent.
|
370
|
+
if (this.#currentAgent && !this.#currentAgent.isEmpty) {
|
371
|
+
return;
|
372
|
+
}
|
373
|
+
|
374
|
+
const config = Common.Settings.Settings.instance().getHostConfig();
|
375
|
+
const isElementsPanelVisible =
|
376
|
+
Boolean(UI.Context.Context.instance().flavor(ElementsPanel.ElementsPanel.ElementsPanel));
|
377
|
+
const isNetworkPanelVisible = Boolean(UI.Context.Context.instance().flavor(NetworkPanel.NetworkPanel.NetworkPanel));
|
378
|
+
const isSourcesPanelVisible = Boolean(UI.Context.Context.instance().flavor(SourcesPanel.SourcesPanel.SourcesPanel));
|
379
|
+
const isPerformancePanelVisible =
|
380
|
+
Boolean(UI.Context.Context.instance().flavor(TimelinePanel.TimelinePanel.TimelinePanel));
|
381
|
+
|
382
|
+
let targetAgentType: AgentType|undefined = undefined;
|
383
|
+
if (isElementsPanelVisible && config.devToolsFreestyler?.enabled) {
|
384
|
+
targetAgentType = AgentType.FREESTYLER;
|
385
|
+
} else if (isNetworkPanelVisible && config.devToolsAiAssistanceNetworkAgent?.enabled) {
|
386
|
+
targetAgentType = AgentType.DRJONES_NETWORK_REQUEST;
|
387
|
+
} else if (isSourcesPanelVisible && config.devToolsAiAssistanceFileAgent?.enabled) {
|
388
|
+
targetAgentType = AgentType.DRJONES_FILE;
|
389
|
+
} else if (isPerformancePanelVisible && config.devToolsAiAssistancePerformanceAgent?.enabled) {
|
390
|
+
targetAgentType = AgentType.DRJONES_PERFORMANCE;
|
391
|
+
}
|
392
|
+
|
393
|
+
this.#currentAgent = targetAgentType ? this.#createAgent(targetAgentType) : undefined;
|
394
|
+
this.#viewProps.agentType = targetAgentType;
|
395
|
+
this.#onContextSelectionChanged();
|
396
|
+
this.doUpdate();
|
397
|
+
}
|
398
|
+
|
301
399
|
override wasShown(): void {
|
302
400
|
this.registerCSSFiles([freestylerPanelStyles]);
|
303
401
|
this.#viewOutput.freestylerChatUi?.restoreScrollPosition();
|
304
402
|
this.#viewOutput.freestylerChatUi?.focusTextInput();
|
403
|
+
this.#selectDefaultAgentIfNeeded();
|
404
|
+
void this.#handleAidaAvailabilityChange();
|
405
|
+
void this
|
406
|
+
.#handleFreestylerEnabledSettingChanged(); // If the setting was switched on/off while the FreestylerPanel was not shown.
|
407
|
+
this.#selectedElement =
|
408
|
+
createNodeContext(selectedElementFilter(UI.Context.Context.instance().flavor(SDK.DOMModel.DOMNode))),
|
409
|
+
this.#selectedRequest =
|
410
|
+
createRequestContext(UI.Context.Context.instance().flavor(SDK.NetworkRequest.NetworkRequest)),
|
411
|
+
this.#selectedCallTree =
|
412
|
+
createCallTreeContext(UI.Context.Context.instance().flavor(TimelineUtils.AICallTree.AICallTree)),
|
413
|
+
this.#selectedFile = createFileContext(UI.Context.Context.instance().flavor(Workspace.UISourceCode.UISourceCode)),
|
414
|
+
this.#viewProps = {
|
415
|
+
...this.#viewProps,
|
416
|
+
agentType: this.#currentAgent?.type,
|
417
|
+
inspectElementToggled: this.#toggleSearchElementAction.toggled(),
|
418
|
+
selectedContext: this.#getConversationContext(),
|
419
|
+
};
|
420
|
+
this.doUpdate();
|
421
|
+
|
305
422
|
this.#freestylerEnabledSetting?.addChangeListener(this.#handleFreestylerEnabledSettingChanged, this);
|
423
|
+
Host.AidaClient.HostConfigTracker.instance().addEventListener(
|
424
|
+
Host.AidaClient.Events.AIDA_AVAILABILITY_CHANGED, this.#handleAidaAvailabilityChange);
|
425
|
+
this.#toggleSearchElementAction.addEventListener(
|
426
|
+
UI.ActionRegistration.Events.TOGGLED, this.#handleSearchElementActionToggled);
|
427
|
+
UI.Context.Context.instance().addFlavorChangeListener(SDK.DOMModel.DOMNode, this.#handleDOMNodeFlavorChange);
|
428
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
429
|
+
SDK.NetworkRequest.NetworkRequest, this.#handleNetworkRequestFlavorChange);
|
430
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
431
|
+
TimelineUtils.AICallTree.AICallTree, this.#handleTraceEntryNodeFlavorChange);
|
432
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
433
|
+
Workspace.UISourceCode.UISourceCode, this.#handleUISourceCodeFlavorChange);
|
434
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
435
|
+
ElementsPanel.ElementsPanel.ElementsPanel, this.#selectDefaultAgentIfNeeded, this);
|
436
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
437
|
+
NetworkPanel.NetworkPanel.NetworkPanel, this.#selectDefaultAgentIfNeeded, this);
|
438
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
439
|
+
SourcesPanel.SourcesPanel.SourcesPanel, this.#selectDefaultAgentIfNeeded, this);
|
440
|
+
UI.Context.Context.instance().addFlavorChangeListener(
|
441
|
+
TimelinePanel.TimelinePanel.TimelinePanel, this.#selectDefaultAgentIfNeeded, this);
|
442
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.AiAssistancePanelOpened);
|
306
443
|
}
|
307
444
|
|
308
445
|
override willHide(): void {
|
309
446
|
this.#freestylerEnabledSetting?.removeChangeListener(this.#handleFreestylerEnabledSettingChanged, this);
|
447
|
+
Host.AidaClient.HostConfigTracker.instance().removeEventListener(
|
448
|
+
Host.AidaClient.Events.AIDA_AVAILABILITY_CHANGED, this.#handleAidaAvailabilityChange);
|
449
|
+
this.#toggleSearchElementAction.removeEventListener(
|
450
|
+
UI.ActionRegistration.Events.TOGGLED, this.#handleSearchElementActionToggled);
|
451
|
+
UI.Context.Context.instance().removeFlavorChangeListener(SDK.DOMModel.DOMNode, this.#handleDOMNodeFlavorChange);
|
452
|
+
UI.Context.Context.instance().removeFlavorChangeListener(
|
453
|
+
SDK.NetworkRequest.NetworkRequest, this.#handleNetworkRequestFlavorChange);
|
454
|
+
UI.Context.Context.instance().removeFlavorChangeListener(
|
455
|
+
TimelineUtils.AICallTree.AICallTree, this.#handleTraceEntryNodeFlavorChange);
|
456
|
+
UI.Context.Context.instance().removeFlavorChangeListener(
|
457
|
+
Workspace.UISourceCode.UISourceCode, this.#handleUISourceCodeFlavorChange);
|
458
|
+
UI.Context.Context.instance().removeFlavorChangeListener(
|
459
|
+
ElementsPanel.ElementsPanel.ElementsPanel, this.#selectDefaultAgentIfNeeded, this);
|
460
|
+
UI.Context.Context.instance().removeFlavorChangeListener(
|
461
|
+
NetworkPanel.NetworkPanel.NetworkPanel, this.#selectDefaultAgentIfNeeded, this);
|
462
|
+
UI.Context.Context.instance().removeFlavorChangeListener(
|
463
|
+
SourcesPanel.SourcesPanel.SourcesPanel, this.#selectDefaultAgentIfNeeded, this);
|
464
|
+
UI.Context.Context.instance().removeFlavorChangeListener(
|
465
|
+
TimelinePanel.TimelinePanel.TimelinePanel, this.#selectDefaultAgentIfNeeded, this);
|
310
466
|
}
|
311
467
|
|
312
|
-
#
|
313
|
-
|
314
|
-
|
468
|
+
#handleAidaAvailabilityChange = async(): Promise<void> => {
|
469
|
+
const currentAidaAvailability = await Host.AidaClient.AidaClient.checkAccessPreconditions();
|
470
|
+
if (currentAidaAvailability !== this.#viewProps.aidaAvailability) {
|
471
|
+
this.#viewProps.aidaAvailability = currentAidaAvailability;
|
472
|
+
const syncInfo = await new Promise<Host.InspectorFrontendHostAPI.SyncInformation>(
|
473
|
+
resolve => Host.InspectorFrontendHost.InspectorFrontendHostInstance.getSyncInformation(resolve));
|
474
|
+
this.#viewProps.userInfo = {
|
475
|
+
accountImage: syncInfo.accountImage,
|
476
|
+
accountFullName: syncInfo.accountFullName,
|
477
|
+
};
|
478
|
+
this.#viewProps.state = this.#getChatUiState();
|
479
|
+
this.doUpdate();
|
480
|
+
}
|
481
|
+
};
|
482
|
+
|
483
|
+
#handleSearchElementActionToggled = (ev: Common.EventTarget.EventTargetEvent<boolean>): void => {
|
484
|
+
if (this.#viewProps.inspectElementToggled === ev.data) {
|
485
|
+
return;
|
486
|
+
}
|
487
|
+
|
488
|
+
this.#viewProps.inspectElementToggled = ev.data;
|
315
489
|
this.doUpdate();
|
316
|
-
}
|
490
|
+
};
|
491
|
+
|
492
|
+
#handleDOMNodeFlavorChange = (ev: Common.EventTarget.EventTargetEvent<SDK.DOMModel.DOMNode>): void => {
|
493
|
+
if (this.#selectedElement?.getItem() === ev.data) {
|
494
|
+
return;
|
495
|
+
}
|
496
|
+
|
497
|
+
this.#selectedElement = createNodeContext(selectedElementFilter(ev.data));
|
498
|
+
this.#onContextSelectionChanged();
|
499
|
+
};
|
500
|
+
|
501
|
+
#handleNetworkRequestFlavorChange =
|
502
|
+
(ev: Common.EventTarget.EventTargetEvent<SDK.NetworkRequest.NetworkRequest>): void => {
|
503
|
+
if (this.#selectedRequest?.getItem() === ev.data) {
|
504
|
+
return;
|
505
|
+
}
|
506
|
+
|
507
|
+
this.#selectedRequest = Boolean(ev.data) ? new RequestContext(ev.data) : null;
|
508
|
+
this.#onContextSelectionChanged();
|
509
|
+
};
|
510
|
+
|
511
|
+
#handleTraceEntryNodeFlavorChange =
|
512
|
+
(ev: Common.EventTarget.EventTargetEvent<TimelineUtils.AICallTree.AICallTree>): void => {
|
513
|
+
if (this.#selectedCallTree?.getItem() === ev.data) {
|
514
|
+
return;
|
515
|
+
}
|
516
|
+
|
517
|
+
this.#selectedCallTree = Boolean(ev.data) ? new CallTreeContext(ev.data) : null;
|
518
|
+
this.#onContextSelectionChanged();
|
519
|
+
};
|
520
|
+
|
521
|
+
#handleUISourceCodeFlavorChange =
|
522
|
+
(ev: Common.EventTarget.EventTargetEvent<Workspace.UISourceCode.UISourceCode>): void => {
|
523
|
+
const newFile = ev.data;
|
524
|
+
if (!newFile) {
|
525
|
+
return;
|
526
|
+
}
|
527
|
+
if (this.#selectedFile?.getItem() === newFile) {
|
528
|
+
return;
|
529
|
+
}
|
530
|
+
this.#selectedFile = new FileContext(ev.data);
|
531
|
+
this.#onContextSelectionChanged();
|
532
|
+
};
|
533
|
+
|
534
|
+
#handleFreestylerEnabledSettingChanged = (): void => {
|
535
|
+
const nextChatUiState = this.#getChatUiState();
|
536
|
+
if (this.#viewProps.state === nextChatUiState) {
|
537
|
+
return;
|
538
|
+
}
|
539
|
+
|
540
|
+
this.#viewProps.state = nextChatUiState;
|
541
|
+
this.doUpdate();
|
542
|
+
};
|
317
543
|
|
318
544
|
doUpdate(): void {
|
545
|
+
this.#updateToolbarState();
|
319
546
|
this.view(this.#viewProps, this.#viewOutput, this.#contentContainer);
|
320
547
|
}
|
321
548
|
|
@@ -338,117 +565,270 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
338
565
|
});
|
339
566
|
}
|
340
567
|
|
341
|
-
#
|
342
|
-
|
568
|
+
#handleContextClick(): void|Promise<void> {
|
569
|
+
const context = this.#viewProps.selectedContext;
|
570
|
+
if (context instanceof RequestContext) {
|
343
571
|
const requestLocation = NetworkForward.UIRequestLocation.UIRequestLocation.tab(
|
344
|
-
|
572
|
+
context.getItem(), NetworkForward.UIRequestLocation.UIRequestTabs.HEADERS_COMPONENT);
|
345
573
|
return Common.Revealer.reveal(requestLocation);
|
346
574
|
}
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
if (
|
351
|
-
|
575
|
+
if (context instanceof FileContext) {
|
576
|
+
return Common.Revealer.reveal(context.getItem().uiLocation(0, 0));
|
577
|
+
}
|
578
|
+
if (context instanceof CallTreeContext) {
|
579
|
+
const trace = new SDK.TraceObject.RevealableEvent(context.getItem().selectedNode.event);
|
580
|
+
return Common.Revealer.reveal(trace);
|
352
581
|
}
|
582
|
+
// Node picker is using linkifier.
|
353
583
|
}
|
354
584
|
|
355
585
|
handleAction(actionId: string): void {
|
586
|
+
if (this.#viewProps.isLoading) {
|
587
|
+
// If running some queries already, focus the input with the abort
|
588
|
+
// button and do nothing.
|
589
|
+
this.#viewOutput.freestylerChatUi?.focusTextInput();
|
590
|
+
return;
|
591
|
+
}
|
592
|
+
|
593
|
+
let targetAgentType: AgentType|undefined;
|
356
594
|
switch (actionId) {
|
357
595
|
case 'freestyler.elements-floating-button': {
|
358
|
-
this.#viewOutput.freestylerChatUi?.focusTextInput();
|
359
596
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.FreestylerOpenedFromElementsPanelFloatingButton);
|
360
|
-
|
361
|
-
this.doUpdate();
|
597
|
+
targetAgentType = AgentType.FREESTYLER;
|
362
598
|
break;
|
363
599
|
}
|
364
600
|
case 'freestyler.element-panel-context': {
|
365
|
-
this.#viewOutput.freestylerChatUi?.focusTextInput();
|
366
601
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.FreestylerOpenedFromElementsPanel);
|
367
|
-
|
368
|
-
|
602
|
+
targetAgentType = AgentType.FREESTYLER;
|
603
|
+
break;
|
604
|
+
}
|
605
|
+
case 'drjones.network-floating-button': {
|
606
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DrJonesOpenedFromNetworkPanelFloatingButton);
|
607
|
+
targetAgentType = AgentType.DRJONES_NETWORK_REQUEST;
|
369
608
|
break;
|
370
609
|
}
|
371
610
|
case 'drjones.network-panel-context': {
|
372
|
-
|
373
|
-
|
374
|
-
this.#viewProps.agentType = AgentType.DRJONES_NETWORK_REQUEST;
|
375
|
-
this.doUpdate();
|
611
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DrJonesOpenedFromNetworkPanel);
|
612
|
+
targetAgentType = AgentType.DRJONES_NETWORK_REQUEST;
|
376
613
|
break;
|
377
614
|
}
|
378
615
|
case 'drjones.performance-panel-context': {
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
616
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DrJonesOpenedFromPerformancePanel);
|
617
|
+
targetAgentType = AgentType.DRJONES_PERFORMANCE;
|
618
|
+
break;
|
619
|
+
}
|
620
|
+
case 'drjones.sources-floating-button': {
|
621
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DrJonesOpenedFromSourcesPanelFloatingButton);
|
622
|
+
targetAgentType = AgentType.DRJONES_FILE;
|
383
623
|
break;
|
384
624
|
}
|
385
625
|
case 'drjones.sources-panel-context': {
|
386
|
-
|
387
|
-
|
388
|
-
this.#viewProps.agentType = AgentType.DRJONES_FILE;
|
389
|
-
this.doUpdate();
|
626
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.DrJonesOpenedFromSourcesPanel);
|
627
|
+
targetAgentType = AgentType.DRJONES_FILE;
|
390
628
|
break;
|
391
629
|
}
|
392
630
|
}
|
631
|
+
|
632
|
+
if (!targetAgentType) {
|
633
|
+
return;
|
634
|
+
}
|
635
|
+
|
636
|
+
if (!this.#currentAgent || this.#currentAgent.type !== targetAgentType || this.#currentAgent.isHistoryEntry ||
|
637
|
+
targetAgentType === AgentType.DRJONES_PERFORMANCE) {
|
638
|
+
this.#currentAgent = this.#createAgent(targetAgentType);
|
639
|
+
}
|
640
|
+
this.#viewProps.agentType = this.#currentAgent.type;
|
641
|
+
this.#viewOutput.freestylerChatUi?.focusTextInput();
|
642
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.FreestylerOpenedFromElementsPanelFloatingButton);
|
643
|
+
this.#viewProps.messages = [];
|
644
|
+
this.#onContextSelectionChanged();
|
645
|
+
this.doUpdate();
|
646
|
+
this.#viewProps.isReadOnly = false;
|
647
|
+
void this.#doConversation(this.#currentAgent.runFromHistory());
|
393
648
|
}
|
394
649
|
|
395
|
-
#
|
650
|
+
#onHistoryClicked(event: Event): void {
|
651
|
+
const boundingRect = this.#historyEntriesButton.element.getBoundingClientRect();
|
652
|
+
const contextMenu = new UI.ContextMenu.ContextMenu(event, {
|
653
|
+
x: boundingRect.left,
|
654
|
+
y: boundingRect.bottom,
|
655
|
+
});
|
656
|
+
|
657
|
+
for (const agent of [...this.#agents].reverse()) {
|
658
|
+
if (agent.isEmpty) {
|
659
|
+
continue;
|
660
|
+
}
|
661
|
+
const title = agent.title;
|
662
|
+
if (!title) {
|
663
|
+
continue;
|
664
|
+
}
|
665
|
+
|
666
|
+
contextMenu.defaultSection().appendItem(title, () => {
|
667
|
+
void this.#switchAgent(agent);
|
668
|
+
});
|
669
|
+
}
|
670
|
+
|
671
|
+
const historyEmpty = contextMenu.defaultSection().items.length === 0;
|
672
|
+
if (historyEmpty) {
|
673
|
+
contextMenu.defaultSection().appendItem(i18nString(UIStrings.noPastConversations), () => {}, {
|
674
|
+
disabled: true,
|
675
|
+
});
|
676
|
+
}
|
677
|
+
|
678
|
+
contextMenu.footerSection().appendItem(
|
679
|
+
i18nString(UIStrings.clearChatHistory),
|
680
|
+
() => {
|
681
|
+
this.#clearHistory();
|
682
|
+
},
|
683
|
+
{
|
684
|
+
disabled: historyEmpty,
|
685
|
+
},
|
686
|
+
);
|
687
|
+
|
688
|
+
void contextMenu.show();
|
689
|
+
}
|
690
|
+
|
691
|
+
#clearHistory(): void {
|
692
|
+
this.#agents = new Set();
|
693
|
+
this.#currentAgent = undefined;
|
694
|
+
this.#viewProps.messages = [];
|
695
|
+
this.#viewProps.agentType = undefined;
|
696
|
+
this.doUpdate();
|
697
|
+
}
|
698
|
+
|
699
|
+
#onDeleteClicked(): void {
|
700
|
+
if (this.#currentAgent) {
|
701
|
+
this.#agents.delete(this.#currentAgent);
|
702
|
+
this.#currentAgent = undefined;
|
703
|
+
}
|
704
|
+
|
705
|
+
this.#viewProps.messages = [];
|
706
|
+
|
707
|
+
this.#selectDefaultAgentIfNeeded();
|
708
|
+
this.#onContextSelectionChanged();
|
709
|
+
this.doUpdate();
|
710
|
+
UI.ARIAUtils.alert(i18nString(UIStrings.chatDeleted));
|
711
|
+
}
|
712
|
+
|
713
|
+
async #switchAgent(agent: AiAgent<unknown>): Promise<void> {
|
714
|
+
if (this.#currentAgent === agent) {
|
715
|
+
return;
|
716
|
+
}
|
717
|
+
|
718
|
+
this.#currentAgent = agent;
|
719
|
+
this.#viewProps.messages = [];
|
720
|
+
this.#viewProps.agentType = agent.type;
|
721
|
+
this.#onContextSelectionChanged();
|
722
|
+
this.#viewProps.isReadOnly = true;
|
723
|
+
await this.#doConversation(agent.runFromHistory());
|
724
|
+
}
|
725
|
+
|
726
|
+
#newChat(): void {
|
396
727
|
this.#viewProps.messages = [];
|
397
728
|
this.#viewProps.isLoading = false;
|
398
|
-
this.#
|
399
|
-
this.#drJonesFileAgent = this.#createDrJonesFileAgent();
|
400
|
-
this.#drJonesNetworkAgent = this.#createDrJonesNetworkAgent();
|
729
|
+
this.#currentAgent = undefined;
|
401
730
|
this.#cancel();
|
731
|
+
|
732
|
+
this.#selectDefaultAgentIfNeeded();
|
402
733
|
this.doUpdate();
|
403
|
-
UI.ARIAUtils.alert(
|
734
|
+
UI.ARIAUtils.alert(i18nString(UIStrings.newChatCreated));
|
404
735
|
}
|
405
736
|
|
406
737
|
#runAbortController = new AbortController();
|
407
738
|
#cancel(): void {
|
408
739
|
this.#runAbortController.abort();
|
409
|
-
this.#runAbortController = new AbortController();
|
410
740
|
this.#viewProps.isLoading = false;
|
411
741
|
this.doUpdate();
|
412
742
|
}
|
413
743
|
|
414
|
-
|
415
|
-
this.#
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
const
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
744
|
+
#onContextSelectionChanged(): void {
|
745
|
+
if (!this.#currentAgent) {
|
746
|
+
this.#viewProps.blockedByCrossOrigin = false;
|
747
|
+
this.doUpdate();
|
748
|
+
return;
|
749
|
+
}
|
750
|
+
const currentContext = this.#getConversationContext();
|
751
|
+
this.#viewProps.selectedContext = currentContext;
|
752
|
+
if (!currentContext) {
|
753
|
+
this.#viewProps.blockedByCrossOrigin = false;
|
754
|
+
this.#viewProps.requiresNewConversation = false;
|
755
|
+
this.doUpdate();
|
756
|
+
return;
|
757
|
+
}
|
758
|
+
this.#viewProps.blockedByCrossOrigin = !currentContext.isOriginAllowed(this.#currentAgent.origin);
|
759
|
+
this.#viewProps.isReadOnly = this.#currentAgent.isHistoryEntry;
|
760
|
+
this.#viewProps.requiresNewConversation = this.#currentAgent.type === AgentType.DRJONES_PERFORMANCE &&
|
761
|
+
Boolean(this.#currentAgent.context) && this.#currentAgent.context !== currentContext;
|
762
|
+
this.#viewProps.stripLinks = this.#viewProps.agentType === AgentType.DRJONES_PERFORMANCE;
|
425
763
|
this.doUpdate();
|
764
|
+
}
|
426
765
|
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
766
|
+
#getConversationContext(): ConversationContext<unknown>|null {
|
767
|
+
if (!this.#currentAgent) {
|
768
|
+
return null;
|
769
|
+
}
|
770
|
+
let context: ConversationContext<unknown>|null;
|
771
|
+
switch (this.#currentAgent.type) {
|
772
|
+
case AgentType.FREESTYLER:
|
773
|
+
context = this.#selectedElement;
|
774
|
+
break;
|
775
|
+
case AgentType.DRJONES_FILE:
|
776
|
+
context = this.#selectedFile;
|
777
|
+
break;
|
778
|
+
case AgentType.DRJONES_NETWORK_REQUEST:
|
779
|
+
context = this.#selectedRequest;
|
780
|
+
break;
|
781
|
+
case AgentType.DRJONES_PERFORMANCE:
|
782
|
+
context = this.#selectedCallTree;
|
783
|
+
break;
|
441
784
|
}
|
785
|
+
return context;
|
786
|
+
}
|
442
787
|
|
443
|
-
|
788
|
+
async #startConversation(text: string): Promise<void> {
|
789
|
+
if (!this.#currentAgent) {
|
444
790
|
return;
|
445
791
|
}
|
792
|
+
this.#runAbortController = new AbortController();
|
793
|
+
const signal = this.#runAbortController.signal;
|
794
|
+
const context = this.#getConversationContext();
|
795
|
+
// If a different context is provided, it must be from the same origin.
|
796
|
+
if (context && !context.isOriginAllowed(this.#currentAgent.origin)) {
|
797
|
+
// This error should not be reached. If it happens, some
|
798
|
+
// invariants do not hold anymore.
|
799
|
+
throw new Error('cross-origin context data should not be included');
|
800
|
+
}
|
801
|
+
const runner = this.#currentAgent.run(text, {
|
802
|
+
signal,
|
803
|
+
selected: context,
|
804
|
+
});
|
805
|
+
UI.ARIAUtils.alert(lockedString(UIStringsNotTranslate.answerLoading));
|
806
|
+
await this.#doConversation(runner);
|
807
|
+
UI.ARIAUtils.alert(lockedString(UIStringsNotTranslate.answerReady));
|
808
|
+
}
|
446
809
|
|
810
|
+
async #doConversation(generator: AsyncGenerator<ResponseData, void, void>): Promise<void> {
|
811
|
+
let systemMessage: ModelChatMessage = {
|
812
|
+
entity: ChatMessageEntity.MODEL,
|
813
|
+
steps: [],
|
814
|
+
};
|
447
815
|
let step: Step = {isLoading: true};
|
448
|
-
|
449
|
-
for await (const data of runner) {
|
816
|
+
for await (const data of generator) {
|
450
817
|
step.sideEffect = undefined;
|
451
818
|
switch (data.type) {
|
819
|
+
case ResponseType.USER_QUERY: {
|
820
|
+
this.#viewProps.messages.push({
|
821
|
+
entity: ChatMessageEntity.USER,
|
822
|
+
text: data.query,
|
823
|
+
});
|
824
|
+
this.#viewProps.isLoading = true;
|
825
|
+
systemMessage = {
|
826
|
+
entity: ChatMessageEntity.MODEL,
|
827
|
+
steps: [],
|
828
|
+
};
|
829
|
+
this.#viewProps.messages.push(systemMessage);
|
830
|
+
break;
|
831
|
+
}
|
452
832
|
case ResponseType.QUERYING: {
|
453
833
|
step = {isLoading: true};
|
454
834
|
if (!systemMessage.steps.length) {
|
@@ -457,6 +837,15 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
457
837
|
|
458
838
|
break;
|
459
839
|
}
|
840
|
+
case ResponseType.CONTEXT: {
|
841
|
+
step.title = data.title;
|
842
|
+
step.contextDetails = data.details;
|
843
|
+
step.isLoading = false;
|
844
|
+
if (systemMessage.steps.at(-1) !== step) {
|
845
|
+
systemMessage.steps.push(step);
|
846
|
+
}
|
847
|
+
break;
|
848
|
+
}
|
460
849
|
case ResponseType.TITLE: {
|
461
850
|
step.title = data.title;
|
462
851
|
if (systemMessage.steps.at(-1) !== step) {
|
@@ -467,7 +856,6 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
467
856
|
case ResponseType.THOUGHT: {
|
468
857
|
step.isLoading = false;
|
469
858
|
step.thought = data.thought;
|
470
|
-
step.contextDetails = data.contextDetails;
|
471
859
|
if (systemMessage.steps.at(-1) !== step) {
|
472
860
|
systemMessage.steps.push(step);
|
473
861
|
}
|
@@ -506,10 +894,8 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
506
894
|
this.#viewProps.isLoading = false;
|
507
895
|
break;
|
508
896
|
}
|
509
|
-
|
510
897
|
case ResponseType.ERROR: {
|
511
898
|
systemMessage.error = data.error;
|
512
|
-
systemMessage.suggestions = [];
|
513
899
|
systemMessage.rpcId = undefined;
|
514
900
|
this.#viewProps.isLoading = false;
|
515
901
|
const lastStep = systemMessage.steps.at(-1);
|
@@ -528,7 +914,6 @@ export class FreestylerPanel extends UI.Panel.Panel {
|
|
528
914
|
this.doUpdate();
|
529
915
|
this.#viewOutput.freestylerChatUi?.scrollToLastMessage();
|
530
916
|
}
|
531
|
-
UI.ARIAUtils.alert(lockedString(UIStringsNotTranslate.answerReady));
|
532
917
|
}
|
533
918
|
}
|
534
919
|
|
@@ -540,8 +925,10 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
540
925
|
switch (actionId) {
|
541
926
|
case 'freestyler.elements-floating-button':
|
542
927
|
case 'freestyler.element-panel-context':
|
928
|
+
case 'drjones.network-floating-button':
|
543
929
|
case 'drjones.network-panel-context':
|
544
930
|
case 'drjones.performance-panel-context':
|
931
|
+
case 'drjones.sources-floating-button':
|
545
932
|
case 'drjones.sources-panel-context': {
|
546
933
|
void (async () => {
|
547
934
|
const view = UI.ViewManager.ViewManager.instance().view(
|