chrome-devtools-frontend 1.0.1362775 → 1.0.1376716
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/.eslintrc.js +1 -0
- package/.stylelintrc.json +2 -1
- package/.vscode/extensions.json +4 -4
- package/config/gni/devtools_grd_files.gni +43 -9
- package/config/gni/devtools_image_files.gni +5 -1
- package/docs/README.md +1 -5
- package/docs/checklist/javascript.md +45 -8
- package/docs/contributing/design.md +1 -1
- package/docs/contributing/issues.md +15 -0
- 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 -8
- package/extensions/cxx_debugging/tests/CreditsItem_test.ts +4 -4
- package/extensions/cxx_debugging/third_party/llvm/README.chromium +1 -1
- package/front_end/.eslintrc.js +0 -6
- package/front_end/Images/src/button-magic.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/Images/src/performance-panel-delete-annotation.svg +32 -0
- package/front_end/Images/src/performance-panel-diagram.svg +19 -14
- package/front_end/Images/src/performance-panel-entry-label.svg +9 -16
- package/front_end/Images/src/performance-panel-time-range.svg +2 -8
- package/front_end/core/common/AppProvider.ts +1 -1
- package/front_end/core/common/Color.ts +10 -0
- package/front_end/core/common/Object.ts +2 -7
- 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 +6 -2
- package/front_end/core/host/AidaClient.ts +65 -1
- package/front_end/core/host/InspectorFrontendHost.ts +2 -2
- package/front_end/core/host/InspectorFrontendHostAPI.ts +8 -1
- package/front_end/core/host/ResourceLoader.ts +1 -1
- package/front_end/core/host/UserMetrics.ts +28 -13
- 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.ts +7 -1
- package/front_end/core/platform/ArrayUtilities.ts +1 -0
- package/front_end/core/platform/DevToolsPath.ts +1 -1
- package/front_end/core/platform/Timing.ts +1 -1
- package/front_end/core/platform/UIString.ts +1 -1
- package/front_end/core/platform/UserVisibleError.ts +1 -1
- package/front_end/core/root/Runtime.ts +26 -9
- package/front_end/core/sdk/AccessibilityModel.ts +3 -4
- package/front_end/{panels/animation → core/sdk}/AnimationModel.test.ts +85 -6
- package/front_end/{panels/animation → core/sdk}/AnimationModel.ts +303 -37
- package/front_end/core/sdk/CPUProfilerModel.ts +3 -4
- package/front_end/core/sdk/CSSContainerQuery.ts +7 -5
- package/front_end/core/sdk/CSSLayer.ts +2 -2
- package/front_end/core/sdk/CSSMatchedStyles.test.ts +5 -0
- package/front_end/core/sdk/CSSMatchedStyles.ts +23 -12
- package/front_end/core/sdk/CSSMedia.ts +2 -2
- package/front_end/core/sdk/CSSMetadata.ts +27 -0
- package/front_end/core/sdk/CSSModel.ts +1 -0
- package/front_end/core/sdk/CSSProperty.ts +2 -2
- package/front_end/core/sdk/CSSQuery.ts +2 -2
- package/front_end/core/sdk/CSSRule.ts +2 -2
- package/front_end/core/sdk/CSSScope.ts +2 -2
- package/front_end/core/sdk/CSSStyleDeclaration.test.ts +10 -0
- package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -4
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +4 -4
- package/front_end/core/sdk/CSSSupports.ts +2 -2
- package/front_end/core/sdk/CookieModel.ts +1 -1
- package/front_end/core/sdk/DOMDebuggerModel.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/DebuggerModel.ts +9 -3
- package/front_end/core/sdk/EmulationModel.ts +32 -0
- package/front_end/core/sdk/EnhancedTracesParser.test.ts +5 -9
- package/front_end/core/sdk/EnhancedTracesParser.ts +5 -10
- package/front_end/core/sdk/EventBreakpointsModel.ts +1 -2
- package/front_end/core/sdk/FrameAssociated.ts +1 -1
- package/front_end/core/sdk/FrameManager.ts +9 -7
- package/front_end/core/sdk/HeapProfilerModel.ts +3 -4
- package/front_end/core/sdk/IsolateManager.ts +2 -3
- package/front_end/core/sdk/LayerTreeBase.ts +2 -2
- package/front_end/core/sdk/NetworkManager.ts +1 -1
- package/front_end/core/sdk/OverlayModel.ts +2 -2
- package/front_end/core/sdk/OverlayPersistentHighlighter.ts +1 -1
- package/front_end/core/sdk/PageLoad.ts +1 -1
- package/front_end/core/sdk/PageResourceLoader.ts +1 -1
- 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/RemoteObject.ts +3 -3
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +1 -1
- package/front_end/core/sdk/RuntimeModel.ts +31 -0
- package/front_end/core/sdk/SDKModel.ts +1 -1
- package/front_end/core/sdk/Script.ts +6 -6
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +5 -7
- package/front_end/core/sdk/SourceMap.ts +1 -1
- package/front_end/core/sdk/SourceMapManager.ts +1 -1
- package/front_end/core/sdk/SourceMapScopeChainEntry.ts +2 -2
- package/front_end/core/sdk/SourceMapScopesInfo.ts +2 -2
- package/front_end/core/sdk/Target.ts +3 -2
- package/front_end/core/sdk/TargetManager.ts +4 -1
- package/front_end/core/sdk/TraceObject.ts +8 -0
- package/front_end/core/sdk/WebAuthnModel.ts +20 -0
- package/front_end/core/sdk/sdk-meta.ts +7 -0
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/devtools_compatibility.js +3 -4
- package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +1 -1
- package/front_end/entrypoints/formatter_worker/HTMLFormatter.ts +1 -1
- package/front_end/entrypoints/formatter_worker/IdentityFormatter.ts +1 -1
- package/front_end/entrypoints/formatter_worker/JSONFormatter.ts +1 -1
- package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/AllocationProfile.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +107 -86
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +21 -1
- package/front_end/generated/InspectorBackendCommands.js +15 -12
- package/front_end/generated/SupportedCSSProperties.js +35 -15
- package/front_end/generated/protocol-mapping.d.ts +14 -3
- package/front_end/generated/protocol-proxy-api.d.ts +16 -3
- package/front_end/generated/protocol.ts +63 -3
- package/front_end/legacy_test_runner/network_test_runner/network_test_runner.js +1 -0
- package/front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js +4 -2
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +2 -2
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -2
- package/front_end/models/bindings/DebuggerLanguagePlugins.test.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
- package/front_end/models/bindings/IgnoreListManager.test.ts +49 -12
- package/front_end/models/bindings/IgnoreListManager.ts +79 -5
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/StylesSourceMapping.ts +11 -6
- package/front_end/models/breakpoints/BreakpointManager.test.ts +1 -1
- package/front_end/models/extensions/ExtensionPanel.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.test.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.ts +1 -1
- package/front_end/models/extensions/ExtensionView.ts +1 -1
- package/front_end/models/extensions/LanguageExtensionEndpoint.ts +1 -1
- package/front_end/models/extensions/RecorderPluginManager.ts +1 -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 +3 -3
- 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 +4 -2
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +59 -19
- package/front_end/models/issues_manager/BounceTrackingIssue.ts +1 -2
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +1 -1
- package/front_end/models/issues_manager/CookieIssue.ts +12 -0
- package/front_end/models/issues_manager/CorsIssue.ts +1 -1
- package/front_end/models/issues_manager/HeavyAdIssue.ts +1 -1
- package/front_end/models/issues_manager/Issue.ts +1 -1
- package/front_end/models/issues_manager/IssueResolver.ts +2 -2
- package/front_end/models/issues_manager/IssuesManager.ts +1 -1
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +1 -1
- package/front_end/models/issues_manager/MixedContentIssue.ts +1 -1
- package/front_end/models/issues_manager/PropertyRuleIssue.ts +1 -1
- package/front_end/models/issues_manager/QuirksModeIssue.ts +1 -1
- package/front_end/models/issues_manager/RelatedIssue.ts +1 -1
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +3 -3
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +1 -1
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
- 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 +132 -73
- package/front_end/models/live-metrics/LiveMetrics.ts +152 -48
- package/front_end/models/live-metrics/web-vitals-injected/OnEachInteraction.ts +24 -61
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +50 -22
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +43 -5
- package/front_end/models/persistence/EditFileSystemView.ts +1 -1
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +2 -3
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -3
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +2 -2
- package/front_end/models/text_utils/ContentProvider.ts +3 -3
- package/front_end/models/text_utils/StaticContentProvider.ts +1 -5
- package/front_end/models/text_utils/TextUtils.ts +1 -1
- package/front_end/models/text_utils/WasmDisassembly.ts +1 -1
- package/front_end/models/timeline_model/TimelineModelFilter.ts +2 -2
- package/front_end/models/timeline_model/TimelineProfileTree.test.ts +21 -21
- package/front_end/models/timeline_model/TimelineProfileTree.ts +1 -1
- package/front_end/models/trace/ModelImpl.test.ts +1 -1
- package/front_end/models/trace/ModelImpl.ts +10 -27
- package/front_end/models/trace/Processor.test.ts +16 -15
- package/front_end/models/trace/Processor.ts +38 -10
- package/front_end/models/trace/extras/FilmStrip.ts +2 -2
- package/front_end/models/trace/extras/ThirdParties.test.ts +117 -0
- package/front_end/models/trace/extras/ThirdParties.ts +207 -0
- package/front_end/models/trace/extras/extras.ts +1 -0
- package/front_end/models/trace/handlers/FramesHandler.ts +12 -5
- package/front_end/models/trace/handlers/InitiatorsHandler.test.ts +40 -0
- package/front_end/models/trace/handlers/InitiatorsHandler.ts +9 -0
- package/front_end/models/trace/handlers/LayoutShiftsHandler.test.ts +2 -2
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +27 -1
- package/front_end/models/trace/handlers/MetaHandler.ts +4 -0
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +2 -2
- package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +1 -1
- package/front_end/models/trace/handlers/RendererHandler.test.ts +5 -5
- package/front_end/models/trace/handlers/SamplesHandler.test.ts +2 -2
- package/front_end/models/trace/handlers/ScreenshotsHandler.test.ts +5 -4
- package/front_end/models/trace/handlers/ScreenshotsHandler.ts +7 -5
- package/front_end/models/trace/handlers/Threads.ts +2 -2
- package/front_end/models/trace/handlers/WarningsHandler.ts +1 -1
- package/front_end/models/trace/helpers/Network.ts +20 -2
- package/front_end/models/trace/helpers/SyntheticEvents.test.ts +1 -1
- 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/Trace.test.ts +34 -3
- package/front_end/models/trace/helpers/Trace.ts +12 -0
- package/front_end/models/trace/helpers/TreeHelpers.test.ts +70 -0
- package/front_end/models/trace/helpers/TreeHelpers.ts +170 -1
- package/front_end/models/trace/insights/Common.ts +1 -1
- package/front_end/models/trace/insights/CumulativeLayoutShift.test.ts +46 -2
- package/front_end/models/trace/insights/CumulativeLayoutShift.ts +164 -47
- package/front_end/models/trace/insights/DocumentLatency.test.ts +22 -11
- package/front_end/models/trace/insights/DocumentLatency.ts +9 -6
- package/front_end/models/trace/insights/FontDisplay.ts +5 -1
- package/front_end/models/trace/insights/InteractionToNextPaint.ts +4 -3
- package/front_end/models/trace/insights/LargestContentfulPaint.test.ts +9 -1
- package/front_end/models/trace/insights/LargestContentfulPaint.ts +26 -6
- package/front_end/models/trace/insights/RenderBlocking.test.ts +10 -16
- package/front_end/models/trace/insights/RenderBlocking.ts +6 -4
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -1
- package/front_end/models/trace/insights/ThirdPartyWeb.ts +21 -178
- package/front_end/models/trace/insights/Viewport.ts +1 -0
- package/front_end/models/trace/insights/types.ts +14 -11
- 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/graph/BaseNode.ts +2 -2
- package/front_end/models/trace/lantern/graph/PageDependencyGraph.ts +4 -3
- package/front_end/models/trace/lantern/simulation/Simulator.ts +1 -1
- package/front_end/models/trace/lantern/simulation/TCPConnection.ts +1 -1
- package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +5 -1
- package/front_end/models/trace/root-causes/LayoutShift.ts +3 -20
- package/front_end/models/trace/types/Extensions.ts +3 -7
- package/front_end/models/trace/types/File.ts +2 -8
- package/front_end/models/trace/types/TraceEvents.ts +78 -6
- package/front_end/models/workspace/UISourceCode.test.ts +3 -3
- package/front_end/models/workspace/WorkspaceImpl.ts +1 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +1 -1
- 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 +106 -0
- package/front_end/panels/application/ApplicationPanelSidebar.ts +127 -20
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +1 -1
- package/front_end/panels/application/BackForwardCacheTreeElement.ts +1 -1
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +1 -1
- package/front_end/panels/application/DOMStorageItemsView.ts +4 -2
- package/front_end/panels/application/ExtensionStorageItemsView.test.ts +161 -0
- package/front_end/panels/application/ExtensionStorageItemsView.ts +241 -0
- package/front_end/panels/application/ExtensionStorageModel.test.ts +27 -0
- package/front_end/panels/application/ExtensionStorageModel.ts +66 -14
- package/front_end/panels/application/IndexedDBViews.ts +14 -19
- package/front_end/panels/application/InterestGroupTreeElement.ts +1 -1
- package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -3
- package/front_end/panels/application/PreloadingTreeElement.ts +1 -1
- package/front_end/panels/application/ReportingApiTreeElement.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +18 -1
- package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +1 -1
- package/front_end/panels/application/SharedStorageItemsView.test.ts +1 -20
- package/front_end/panels/application/SharedStorageListTreeElement.ts +1 -1
- package/front_end/panels/application/SharedStorageTreeElement.ts +2 -2
- package/front_end/panels/application/StorageBucketsTreeElement.ts +1 -1
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/application.ts +2 -0
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +1 -0
- package/front_end/panels/application/components/BackForwardCacheView.ts +76 -72
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +32 -33
- package/front_end/panels/application/components/EndpointsGrid.ts +5 -5
- package/front_end/panels/application/components/FrameDetailsView.ts +118 -135
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +11 -15
- package/front_end/panels/application/components/OriginTrialTreeView.ts +36 -34
- package/front_end/panels/application/components/PermissionsPolicySection.ts +32 -35
- package/front_end/panels/application/components/ProtocolHandlersView.ts +15 -14
- package/front_end/panels/application/components/ReportsGrid.ts +10 -10
- package/front_end/panels/application/components/ServiceWorkerRouterView.ts +0 -1
- package/front_end/panels/application/components/SharedStorageAccessGrid.ts +11 -16
- package/front_end/panels/application/components/SharedStorageMetadataView.ts +16 -14
- package/front_end/panels/application/components/StackTrace.ts +20 -22
- package/front_end/panels/application/components/StorageMetadataView.ts +18 -18
- package/front_end/panels/application/components/TrustTokensView.ts +16 -16
- package/front_end/panels/application/preloading/PreloadingView.ts +18 -15
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.test.ts +2 -2
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +8 -13
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +41 -47
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +15 -13
- package/front_end/panels/application/preloading/components/PreloadingGrid.test.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +11 -12
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +4 -5
- package/front_end/panels/application/preloading/components/PreloadingString.ts +7 -0
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +11 -10
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +24 -23
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +50 -57
- package/front_end/panels/application/resourcesSidebar.css +0 -3
- package/front_end/panels/autofill/AutofillView.ts +19 -17
- package/front_end/panels/console/ConsoleFilter.ts +1 -1
- package/front_end/panels/console/ConsoleSidebar.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +2 -2
- package/front_end/panels/console/consoleView.css +4 -3
- package/front_end/panels/coverage/CoverageDecorationManager.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
- package/front_end/panels/css_overview/CSSOverviewController.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -3
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +5 -7
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +13 -13
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +9 -6
- package/front_end/panels/elements/CSSRuleValidator.ts +0 -5
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +3 -5
- package/front_end/panels/elements/ComputedStyleWidget.ts +6 -4
- package/front_end/panels/elements/ElementStatePaneWidget.ts +5 -0
- package/front_end/panels/elements/ElementsPanel.ts +11 -10
- package/front_end/panels/elements/ElementsTreeElement.ts +36 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
- package/front_end/panels/elements/PropertyMatchers.test.ts +57 -0
- package/front_end/panels/elements/PropertyMatchers.ts +78 -1
- package/front_end/panels/elements/StyleEditorWidget.ts +2 -2
- package/front_end/panels/elements/StylePropertiesSection.test.ts +1 -0
- package/front_end/panels/elements/StylePropertyHighlighter.test.ts +1 -0
- package/front_end/panels/elements/StylePropertyHighlighter.ts +2 -2
- package/front_end/panels/elements/StylePropertyTreeElement.test.ts +126 -3
- package/front_end/panels/elements/StylePropertyTreeElement.ts +101 -28
- package/front_end/panels/elements/StylesSidebarPane.test.ts +2 -0
- package/front_end/panels/elements/TopLayerContainer.ts +1 -2
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +8 -7
- package/front_end/panels/elements/components/AdornerSettingsPane.ts +3 -4
- package/front_end/panels/elements/components/AnchorFunctionLinkSwatch.ts +8 -7
- package/front_end/panels/elements/components/CSSHintDetailsView.ts +3 -2
- package/front_end/panels/elements/components/CSSPropertyDocsView.ts +3 -2
- package/front_end/panels/elements/components/CSSQuery.ts +0 -1
- package/front_end/panels/elements/components/CSSVariableValueView.ts +1 -3
- package/front_end/panels/elements/components/ComputedStyleProperty.ts +0 -1
- package/front_end/panels/elements/components/ComputedStyleTrace.ts +0 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +15 -13
- package/front_end/panels/elements/components/ElementsBreadcrumbsUtils.ts +1 -1
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +6 -4
- package/front_end/panels/elements/components/LayoutPane.ts +8 -8
- package/front_end/panels/elements/components/QueryContainer.test.ts +2 -3
- package/front_end/panels/elements/components/QueryContainer.ts +9 -10
- package/front_end/panels/elements/components/StylePropertyEditor.ts +4 -4
- package/front_end/panels/elements/components/computedStyleProperty.css +2 -1
- package/front_end/panels/elements/components/cssPropertyDocsView.css +3 -2
- package/front_end/panels/elements/elementsTreeOutline.css +17 -0
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +13 -0
- package/front_end/panels/elements/stylesSidebarPane.css +2 -2
- package/front_end/panels/emulation/DeviceModeWrapper.ts +1 -1
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +3 -3
- 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 +99 -81
- package/front_end/panels/explain/components/consoleInsight.css +0 -9
- package/front_end/panels/explain/explain-meta.ts +1 -12
- package/front_end/panels/freestyler/AiAgent.test.ts +92 -12
- package/front_end/panels/freestyler/AiAgent.ts +345 -54
- package/front_end/panels/freestyler/DrJonesFileAgent.test.ts +228 -0
- package/front_end/panels/freestyler/DrJonesFileAgent.ts +192 -0
- package/front_end/panels/freestyler/DrJonesNetworkAgent.test.ts +136 -73
- package/front_end/panels/freestyler/DrJonesNetworkAgent.ts +251 -146
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.test.ts +241 -0
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.ts +197 -0
- package/front_end/panels/freestyler/FreestylerAgent.test.ts +258 -85
- package/front_end/panels/freestyler/FreestylerAgent.ts +124 -167
- package/front_end/panels/freestyler/FreestylerEvaluateAction.test.ts +61 -37
- package/front_end/panels/freestyler/FreestylerEvaluateAction.ts +18 -14
- package/front_end/panels/freestyler/FreestylerPanel.test.ts +562 -15
- package/front_end/panels/freestyler/FreestylerPanel.ts +469 -105
- package/front_end/panels/freestyler/components/FreestylerChatUi.test.ts +53 -4
- package/front_end/panels/freestyler/components/FreestylerChatUi.ts +434 -191
- package/front_end/panels/freestyler/components/UserActionRow.test.ts +60 -0
- package/front_end/panels/freestyler/components/{ProvideFeedback.ts → UserActionRow.ts} +58 -29
- package/front_end/panels/freestyler/components/freestylerChatUi.css +148 -93
- package/front_end/panels/freestyler/components/userActionRow.css +149 -0
- package/front_end/panels/freestyler/freestyler-meta.ts +108 -26
- package/front_end/panels/freestyler/freestyler.ts +3 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +19 -4
- package/front_end/panels/issues/CorsIssueDetailsView.ts +6 -6
- package/front_end/panels/issues/GenericIssueDetailsView.ts +3 -3
- package/front_end/panels/issues/IssueAggregator.ts +10 -1
- package/front_end/panels/issues/IssueView.ts +2 -2
- package/front_end/panels/issues/components/ElementsPanelLink.ts +3 -2
- package/front_end/panels/issues/components/HideIssuesMenu.ts +17 -8
- package/front_end/panels/lighthouse/LighthouseController.ts +2 -2
- package/front_end/panels/lighthouse/LighthousePanel.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +2 -6
- package/front_end/panels/lighthouse/LighthouseStartView.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +1 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts +8 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +6 -7
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.test.ts +11 -0
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +26 -36
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +5 -5
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +12 -16
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -3
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +5 -5
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterSettings.ts +0 -1
- package/front_end/panels/media/EventDisplayTable.ts +1 -1
- package/front_end/panels/media/EventTimelineView.ts +1 -1
- package/front_end/panels/media/PlayerDetailView.ts +3 -3
- package/front_end/panels/media/PlayerListView.ts +2 -2
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +23 -29
- package/front_end/panels/network/BinaryResourceView.ts +3 -2
- package/front_end/panels/network/NetworkConfigView.ts +1 -2
- package/front_end/panels/network/NetworkDataGridNode.test.ts +29 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +60 -158
- package/front_end/panels/network/NetworkFrameGrouper.ts +1 -1
- package/front_end/panels/network/NetworkItemView.ts +1 -1
- package/front_end/panels/network/NetworkLogView.test.ts +29 -0
- package/front_end/panels/network/NetworkLogView.ts +3 -3
- package/front_end/panels/network/NetworkLogViewColumns.ts +4 -6
- 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 +7 -8
- package/front_end/panels/network/RequestResponseView.test.ts +28 -1
- package/front_end/panels/network/RequestResponseView.ts +17 -14
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -1
- package/front_end/panels/network/components/EditableSpan.ts +0 -1
- package/front_end/panels/network/components/HeaderSectionRow.test.ts +1 -1
- package/front_end/panels/network/components/HeaderSectionRow.ts +31 -31
- package/front_end/panels/network/components/RequestHeaderSection.ts +10 -15
- package/front_end/panels/network/components/RequestHeadersView.css +7 -0
- package/front_end/panels/network/components/RequestHeadersView.ts +25 -26
- package/front_end/panels/network/components/RequestTrustTokensView.ts +33 -36
- package/front_end/panels/network/components/ResponseHeaderSection.ts +8 -10
- package/front_end/panels/network/components/WebBundleInfoView.ts +13 -11
- package/front_end/panels/network/networkConfigView.css +13 -5
- package/front_end/panels/network/networkLogView.css +35 -16
- package/front_end/panels/network/networkPanel.css +2 -1
- package/front_end/panels/network/requestHTMLView.css +1 -0
- package/front_end/panels/profiler/BottomUpProfileDataGrid.ts +3 -3
- package/front_end/panels/profiler/HeapProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +14 -13
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +15 -11
- package/front_end/panels/profiler/HeapSnapshotProxy.ts +7 -7
- package/front_end/panels/profiler/ProfileLauncherView.ts +3 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +4 -2
- package/front_end/panels/protocol_monitor/components/JSONEditor.ts +25 -18
- package/front_end/panels/protocol_monitor/components/Toolbar.ts +4 -4
- package/front_end/panels/recorder/RecorderController.ts +39 -43
- package/front_end/panels/recorder/components/ControlButton.ts +1 -1
- package/front_end/panels/recorder/components/CreateRecordingView.ts +15 -15
- package/front_end/panels/recorder/components/ExtensionView.ts +9 -8
- package/front_end/panels/recorder/components/RecordingListView.ts +15 -13
- package/front_end/panels/recorder/components/RecordingView.ts +92 -84
- package/front_end/panels/recorder/components/ReplaySection.ts +6 -6
- package/front_end/panels/recorder/components/SelectButton.ts +21 -20
- package/front_end/panels/recorder/components/StartView.ts +15 -20
- package/front_end/panels/recorder/components/StepEditor.ts +3 -3
- package/front_end/panels/recorder/components/StepView.ts +20 -20
- package/front_end/panels/recorder/components/TimelineSection.ts +3 -2
- 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/converters/ExtensionConverter.ts +2 -2
- package/front_end/panels/recorder/converters/JSONConverter.ts +1 -1
- package/front_end/panels/recorder/converters/LighthouseConverter.ts +1 -1
- package/front_end/panels/recorder/converters/PuppeteerConverter.ts +1 -1
- package/front_end/panels/recorder/converters/PuppeteerReplayConverter.ts +1 -1
- package/front_end/panels/recorder/injected/RecordingClient.ts +7 -10
- package/front_end/panels/recorder/injected/SelectorComputer.ts +5 -5
- package/front_end/panels/recorder/injected/SelectorPicker.ts +2 -2
- package/front_end/panels/recorder/injected/Step.ts +1 -1
- package/front_end/panels/recorder/injected/injected.ts +1 -1
- package/front_end/panels/recorder/injected/selectors/ARIASelector.ts +1 -1
- package/front_end/panels/recorder/injected/selectors/PierceSelector.ts +6 -7
- package/front_end/panels/recorder/injected/selectors/TextSelector.ts +3 -5
- package/front_end/panels/recorder/injected/util.ts +1 -1
- package/front_end/panels/recorder/models/RecorderShortcutHelper.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.ts +1 -1
- package/front_end/panels/recorder/models/RecordingSession.ts +4 -4
- package/front_end/panels/recorder/models/RecordingSettings.ts +1 -4
- package/front_end/panels/recorder/models/RecordingStorage.ts +1 -1
- package/front_end/panels/recorder/models/SDKUtils.ts +3 -2
- package/front_end/panels/recorder/models/ScreenshotUtils.ts +1 -1
- package/front_end/panels/recorder/models/Section.ts +2 -2
- package/front_end/panels/recorder/recorderController.css +38 -18
- package/front_end/panels/screencast/ScreencastApp.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +1 -1
- package/front_end/panels/search/SearchResultsPane.ts +1 -2
- package/front_end/panels/search/SearchView.ts +1 -3
- package/front_end/panels/search/searchView.css +5 -1
- package/front_end/panels/security/CookieReportTreeElement.ts +26 -0
- package/front_end/panels/security/OriginTreeElement.ts +20 -7
- package/front_end/panels/security/SecurityPanel.ts +64 -15
- package/front_end/panels/security/{SecurityAndPrivacyPanelSidebar.ts → SecurityPanelSidebar.ts} +25 -14
- package/front_end/panels/security/SecurityPanelSidebarTreeElement.ts +1 -12
- package/front_end/panels/security/sidebar.css +40 -1
- package/front_end/panels/sensors/SensorsView.ts +43 -0
- package/front_end/panels/sensors/sensors-meta.ts +59 -0
- package/front_end/panels/sensors/sensors.css +16 -0
- package/front_end/panels/settings/AISettingsTab.test.ts +113 -15
- package/front_end/panels/settings/AISettingsTab.ts +194 -62
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +53 -30
- package/front_end/panels/settings/KeybindsSettingsTab.ts +34 -17
- package/front_end/panels/settings/SettingsScreen.ts +2 -2
- package/front_end/panels/settings/aiSettingsTab.css +13 -0
- package/front_end/panels/settings/components/SyncSection.ts +18 -15
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +51 -29
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +56 -41
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +11 -10
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +14 -42
- package/front_end/panels/settings/keybindsSettingsTab.css +51 -89
- package/front_end/panels/settings/settings-meta.ts +2 -2
- package/front_end/panels/settings/settingsScreen.css +30 -6
- 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 +1 -1
- package/front_end/panels/sources/EditingLocationHistoryManager.ts +2 -2
- package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +31 -23
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/SourcesNavigator.test.ts +1 -0
- package/front_end/panels/sources/SourcesPanel.ts +26 -0
- package/front_end/panels/sources/SourcesView.test.ts +1 -0
- package/front_end/panels/sources/SourcesView.ts +2 -2
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
- package/front_end/panels/sources/components/BreakpointsView.ts +25 -27
- package/front_end/panels/sources/components/HeadersView.ts +17 -16
- package/front_end/panels/sources/navigatorTree.css +11 -0
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +18 -3
- package/front_end/panels/timeline/AnnotationHelpers.ts +4 -4
- package/front_end/panels/timeline/AppenderUtils.ts +2 -4
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +48 -19
- package/front_end/panels/timeline/CountersGraph.ts +1 -1
- package/front_end/panels/timeline/EntriesFilter.test.ts +51 -0
- package/front_end/panels/timeline/EntriesFilter.ts +15 -0
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +10 -10
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +12 -1
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +141 -7
- package/front_end/panels/timeline/ModificationsManager.test.ts +160 -0
- package/front_end/panels/timeline/ModificationsManager.ts +31 -0
- package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -8
- package/front_end/panels/timeline/ThreadAppender.ts +5 -6
- package/front_end/panels/timeline/TimelineDetailsView.test.ts +89 -44
- package/front_end/panels/timeline/TimelineDetailsView.ts +96 -45
- package/front_end/panels/timeline/TimelineEventOverview.ts +11 -10
- package/front_end/panels/timeline/TimelineFilters.test.ts +4 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.test.ts +53 -0
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +89 -63
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.test.ts +57 -0
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +34 -15
- package/front_end/panels/timeline/TimelineFlameChartView.test.ts +2 -3
- package/front_end/panels/timeline/TimelineFlameChartView.ts +192 -86
- package/front_end/panels/timeline/TimelineHistoryManager.ts +7 -1
- package/front_end/panels/timeline/TimelineLoader.ts +1 -1
- package/front_end/panels/timeline/TimelineMiniMap.ts +0 -8
- package/front_end/panels/timeline/TimelinePanel.ts +136 -79
- 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 +15 -16
- package/front_end/panels/timeline/TimelineTreeView.test.ts +9 -9
- package/front_end/panels/timeline/TimelineTreeView.ts +7 -5
- package/front_end/panels/timeline/TimelineUIUtils.test.ts +51 -4
- package/front_end/panels/timeline/TimelineUIUtils.ts +153 -68
- package/front_end/panels/timeline/TimingsTrackAppender.ts +1 -1
- 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 +3 -5
- package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +8 -7
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +28 -27
- package/front_end/panels/timeline/components/InteractionBreakdown.ts +3 -2
- package/front_end/panels/timeline/components/LayoutShiftDetails.test.ts +13 -11
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +238 -91
- package/front_end/panels/timeline/components/LiveMetricsView.test.ts +415 -128
- package/front_end/panels/timeline/components/LiveMetricsView.ts +448 -228
- package/front_end/panels/timeline/components/MetricCard.test.ts +8 -8
- package/front_end/panels/timeline/components/MetricCard.ts +6 -4
- package/front_end/panels/timeline/components/MetricCompareStrings.ts +1 -1
- package/front_end/panels/timeline/components/NetworkRequestDetails.test.ts +14 -7
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +57 -124
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +70 -78
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.test.ts +35 -2
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +30 -13
- package/front_end/panels/timeline/components/RelatedInsightChips.test.ts +74 -0
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +92 -0
- package/front_end/panels/timeline/components/Sidebar.test.ts +74 -0
- package/front_end/panels/timeline/components/Sidebar.ts +34 -14
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.test.ts +66 -0
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +117 -50
- package/front_end/panels/timeline/components/SidebarInsightsTab.test.ts +11 -1
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +119 -37
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +58 -1
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +90 -34
- package/front_end/panels/timeline/components/Utils.test.ts +65 -0
- package/front_end/panels/timeline/components/Utils.ts +145 -29
- package/front_end/panels/timeline/components/components.ts +2 -4
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +76 -55
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +105 -17
- package/front_end/panels/timeline/components/insights/EventRef.ts +91 -0
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +24 -13
- package/front_end/panels/timeline/components/insights/Helpers.ts +49 -44
- package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +21 -21
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +94 -49
- package/front_end/panels/timeline/components/insights/LCPPhases.ts +35 -10
- package/front_end/panels/timeline/components/insights/NodeLink.ts +3 -2
- package/front_end/panels/timeline/components/insights/README.md +2 -2
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +35 -29
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +103 -17
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +125 -60
- package/front_end/panels/timeline/components/insights/Table.ts +13 -12
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +24 -19
- package/front_end/panels/timeline/components/insights/Viewport.ts +23 -22
- package/front_end/panels/timeline/components/insights/insights.ts +2 -0
- package/front_end/panels/timeline/components/insights/sidebarInsight.css +54 -9
- package/front_end/panels/timeline/components/insights/table.css +9 -1
- package/front_end/panels/timeline/components/layoutShiftDetails.css +28 -20
- package/front_end/panels/timeline/components/liveMetricsView.css +102 -31
- package/front_end/panels/timeline/components/networkRequestDetails.css +11 -50
- package/front_end/panels/timeline/components/networkRequestTooltip.css +34 -11
- package/front_end/panels/timeline/components/relatedInsightChips.css +45 -0
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +44 -6
- package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +18 -4
- package/front_end/panels/timeline/extensions/ExtensionUI.ts +11 -8
- package/front_end/panels/timeline/fixtures/traces/README.md +4 -0
- package/front_end/panels/timeline/fixtures/traces/basic.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/many-redirects.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/missing-url.json.gz +0 -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 +40 -67
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +135 -61
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +13 -11
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +24 -32
- package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +23 -24
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.test.ts +42 -0
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.ts +25 -19
- package/front_end/panels/timeline/overlays/components/entriesLinkOverlay.css +8 -0
- package/front_end/panels/timeline/overlays/components/entryLabelOverlay.css +14 -12
- package/front_end/panels/timeline/overlays/components/timeRangeOverlay.css +16 -13
- package/front_end/panels/timeline/overlays/components/timespanBreakdownOverlay.css +59 -20
- package/front_end/panels/timeline/timeline-meta.ts +11 -0
- package/front_end/panels/timeline/timelineFlameChartView.css +19 -2
- package/front_end/panels/timeline/timelineFlamechartPopover.css +19 -0
- package/front_end/panels/timeline/timelineHistoryManager.css +4 -0
- package/front_end/panels/timeline/timelinePanel.css +2 -10
- 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 +10 -11
- 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 +6 -6
- package/front_end/panels/timeline/utils/AICallTree.test.ts +80 -0
- package/front_end/panels/timeline/utils/AICallTree.ts +165 -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 +43 -0
- package/front_end/panels/timeline/utils/Helpers.ts +93 -0
- 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/ImageCache.test.ts +106 -0
- package/front_end/panels/timeline/utils/ImageCache.ts +55 -0
- package/front_end/panels/timeline/utils/NetworkRequest.ts +1 -1
- package/front_end/panels/timeline/utils/SourceMapsResolver.test.ts +64 -19
- package/front_end/panels/timeline/utils/SourceMapsResolver.ts +14 -3
- package/front_end/panels/timeline/utils/utils.ts +10 -0
- package/front_end/panels/utils/utils.ts +57 -5
- package/front_end/panels/web_audio/graph_visualizer/EdgeView.ts +1 -1
- package/front_end/panels/web_audio/graph_visualizer/GraphView.ts +3 -9
- package/front_end/panels/webauthn/WebauthnPane.test.ts +75 -4
- package/front_end/panels/webauthn/WebauthnPane.ts +24 -3
- package/front_end/services/trace_bounds/TraceBounds.ts +7 -1
- package/front_end/testing/ContextMenuHelpers.ts +1 -1
- package/front_end/testing/EnvironmentHelpers.ts +42 -5
- package/front_end/testing/ExtensionHelpers.ts +1 -1
- package/front_end/testing/LanguagePluginHelpers.ts +1 -1
- package/front_end/testing/MockConnection.ts +1 -1
- package/front_end/testing/MockIssuesManager.ts +1 -1
- package/front_end/testing/MockScopeChain.ts +1 -1
- package/front_end/testing/MutationHelpers.test.ts +6 -8
- package/front_end/testing/NetworkHelpers.ts +38 -0
- package/front_end/testing/StorageItemsViewHelpers.ts +24 -0
- package/front_end/testing/TraceHelpers.ts +13 -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/java.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/java.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 +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 +79 -6
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +7 -6
- package/front_end/third_party/i18n/localized-string-set.ts +1 -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 +2 -2
- 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.d.ts.map +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/BrowserContext.js.map +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 +13 -13
- 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 +99 -92
- 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 +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Input.js +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 +13 -7
- 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 +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.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.d.ts.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/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Session.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Session.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserPrompt.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/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +7 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +2 -3
- 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/Frame.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.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.map +1 -1
- 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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +2 -2
- 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/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/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.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +13 -7
- 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/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 +15 -13
- 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 +0 -2
- 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/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +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/injected.js.map +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/PQuerySelector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PQuerySelector.js.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/ScreenRecorder.js.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/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 +374 -577
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +427 -244
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +2 -2
- 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.d.ts.map +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/BrowserContext.js.map +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 +13 -13
- 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 +98 -92
- 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 +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Input.js +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 +14 -8
- 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 +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.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.d.ts.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/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Navigation.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Navigation.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Session.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Session.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserPrompt.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserPrompt.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/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +7 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +3 -4
- 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/Frame.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.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.map +1 -1
- 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.map +1 -1
- 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/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/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.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +13 -7
- 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/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 +4 -2
- 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 +0 -2
- 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/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +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/injected.js.map +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/PQuerySelector.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PQuerySelector.js.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/ScreenRecorder.js.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/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 +374 -577
- package/front_end/third_party/puppeteer/package/package.json +6 -6
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +9 -9
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +6 -6
- 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 +130 -130
- 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 +11 -11
- package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +89 -88
- 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 +9 -5
- package/front_end/third_party/puppeteer/package/src/bidi/ExposedFunction.ts +11 -11
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +45 -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 +10 -10
- 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 +5 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +18 -18
- 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 +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/Realm.ts +8 -8
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/bidi/core/Session.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/UserContext.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/bidi/core/UserPrompt.ts +5 -5
- 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 +16 -12
- 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 +13 -9
- package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +34 -34
- package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +19 -20
- 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 +38 -17
- 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 +16 -14
- package/front_end/third_party/puppeteer/package/src/cdp/IsolatedWorld.ts +15 -14
- 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 +9 -7
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +3 -0
- package/front_end/third_party/puppeteer/package/src/common/ConsoleMessage.ts +1 -1
- 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/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 +13 -15
- 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 +8 -8
- 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 +17 -15
- 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 +8 -8
- 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 +11 -11
- 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/util.ts +1 -0
- package/front_end/third_party/puppeteer/puppeteer.ts +1 -1
- 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.ts +18 -18
- package/front_end/ui/components/buttons/button.css +1 -4
- package/front_end/ui/components/cards/Card.test.ts +92 -0
- package/front_end/ui/components/cards/Card.ts +76 -0
- package/front_end/ui/components/cards/card.css +50 -0
- package/front_end/ui/components/cards/cards.ts +9 -0
- package/front_end/ui/components/chrome_link/ChromeLink.test.ts +5 -3
- package/front_end/ui/components/chrome_link/ChromeLink.ts +3 -2
- package/front_end/ui/components/data_grid/DataGrid.test.ts +3 -1
- package/front_end/ui/components/data_grid/DataGrid.ts +25 -24
- package/front_end/ui/components/data_grid/DataGridContextMenuUtils.ts +2 -2
- package/front_end/ui/components/data_grid/DataGridController.ts +10 -7
- package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +1 -2
- package/front_end/ui/components/data_grid/DataGridEvents.ts +1 -1
- package/front_end/ui/components/data_grid/DataGridRenderers.ts +7 -4
- package/front_end/ui/components/dialogs/Dialog.ts +4 -3
- package/front_end/ui/components/dialogs/IconDialog.ts +18 -18
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +13 -12
- package/front_end/ui/components/diff_view/DiffView.ts +9 -9
- 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/create_breadcrumbs.ts +3 -1
- package/front_end/ui/components/docs/expandable_list/basic.ts +4 -2
- package/front_end/ui/components/docs/floating_button/basic.html +26 -0
- package/front_end/ui/components/docs/floating_button/basic.ts +20 -0
- package/front_end/ui/components/docs/freestyler/basic.ts +5 -1
- package/front_end/ui/components/docs/freestyler/empty_state.ts +5 -0
- package/front_end/ui/components/docs/icon_dialog/basic.ts +9 -7
- package/front_end/ui/components/docs/panel_introduction_steps/basic.ts +7 -4
- package/front_end/ui/components/docs/performance_panel/basic.ts +4 -1
- package/front_end/ui/components/docs/performance_panel/flamechart.html +4 -0
- package/front_end/ui/components/docs/performance_panel/flamechart.ts +45 -0
- package/front_end/ui/components/docs/recorder_select_button/basic.ts +21 -18
- package/front_end/ui/components/docs/report/basic.ts +21 -25
- package/front_end/ui/components/docs/theme_colors/basic.ts +4 -2
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +4 -2
- package/front_end/ui/components/expandable_list/ExpandableList.test.ts +5 -3
- package/front_end/ui/components/expandable_list/ExpandableList.ts +6 -5
- package/front_end/ui/components/floating_button/FloatingButton.ts +50 -0
- package/front_end/ui/components/floating_button/floatingButton.css +63 -0
- package/front_end/ui/components/floating_button/floating_button.ts +7 -0
- package/front_end/ui/components/helpers/helpers.test.ts +18 -14
- 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 +2 -5
- package/front_end/ui/components/icon_button/IconButton.ts +15 -11
- 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 +6 -4
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +7 -5
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -2
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +6 -2
- package/front_end/ui/components/markdown_view/CodeBlock.test.ts +7 -7
- package/front_end/ui/components/markdown_view/CodeBlock.ts +33 -42
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +12 -10
- package/front_end/ui/components/markdown_view/MarkdownLink.ts +3 -2
- package/front_end/ui/components/markdown_view/MarkdownView.test.ts +51 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +43 -23
- package/front_end/ui/components/markdown_view/codeBlock.css +6 -28
- package/front_end/ui/components/markdown_view/markdownLink.css +1 -1
- package/front_end/ui/components/markdown_view/markdownView.css +4 -0
- package/front_end/ui/components/menus/Menu.ts +7 -8
- package/front_end/ui/components/menus/SelectMenu.test.ts +3 -1
- package/front_end/ui/components/menus/SelectMenu.ts +17 -17
- 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 +5 -4
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +7 -5
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +6 -6
- package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +3 -2
- package/front_end/ui/components/report_view/ReportView.test.ts +5 -3
- package/front_end/ui/components/report_view/ReportView.ts +10 -14
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +8 -6
- package/front_end/ui/components/settings/SettingCheckbox.ts +38 -18
- package/front_end/ui/components/settings/SettingDeprecationWarning.ts +6 -5
- package/front_end/ui/components/settings/settingCheckbox.css +1 -0
- package/front_end/ui/components/spinners/Spinner.ts +3 -2
- package/front_end/ui/components/spinners/spinner.css +1 -0
- package/front_end/ui/components/split_view/SplitView.ts +3 -2
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +3 -2
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +3 -2
- package/front_end/ui/components/survey_link/SurveyLink.ts +6 -4
- package/front_end/ui/components/switch/SwitchImpl.ts +3 -2
- package/front_end/ui/components/text_editor/TextEditor.ts +0 -2
- package/front_end/ui/components/text_editor/TextEditorHistory.ts +2 -2
- package/front_end/ui/components/text_prompt/TextPrompt.ts +3 -2
- package/front_end/ui/components/tree_outline/TreeOutline.test.ts +8 -6
- package/front_end/ui/components/tree_outline/TreeOutline.ts +9 -9
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +5 -4
- package/front_end/ui/legacy/Context.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +46 -7
- package/front_end/ui/legacy/Dialog.ts +2 -2
- package/front_end/ui/legacy/DockController.ts +2 -2
- package/front_end/ui/legacy/FilterBar.test.ts +52 -0
- package/front_end/ui/legacy/FilterBar.ts +47 -2
- package/front_end/ui/legacy/FilterSuggestionBuilder.ts +1 -1
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/Infobar.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +5 -5
- package/front_end/ui/legacy/KeyboardShortcut.ts +35 -21
- package/front_end/ui/legacy/Panel.ts +3 -3
- package/front_end/ui/legacy/ShortcutRegistry.ts +11 -8
- package/front_end/ui/legacy/SoftContextMenu.ts +3 -0
- package/front_end/ui/legacy/SplitWidget.test.ts +33 -1
- package/front_end/ui/legacy/SplitWidget.ts +62 -7
- package/front_end/ui/legacy/TabbedPane.ts +24 -0
- package/front_end/ui/legacy/ThrottledWidget.ts +2 -2
- package/front_end/ui/legacy/Toolbar.test.ts +39 -0
- package/front_end/ui/legacy/Toolbar.ts +17 -17
- package/front_end/ui/legacy/Treeoutline.ts +7 -4
- package/front_end/ui/legacy/UIUtils.ts +10 -1
- package/front_end/ui/legacy/View.ts +4 -4
- package/front_end/ui/legacy/ViewManager.ts +5 -3
- package/front_end/ui/legacy/ViewRegistration.ts +2 -2
- package/front_end/ui/legacy/Widget.ts +64 -16
- package/front_end/ui/legacy/XElement.ts +0 -1
- package/front_end/ui/legacy/XLink.test.ts +3 -1
- package/front_end/ui/legacy/XLink.ts +6 -4
- package/front_end/ui/legacy/checkboxTextLabel.css +4 -0
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.test.ts +51 -0
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +92 -6
- package/front_end/ui/legacy/components/data_grid/DataGridWithPreview.ts +21 -10
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +8 -1
- package/front_end/ui/legacy/components/inline_editor/AnimationTimingUI.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +11 -11
- 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 +3 -2
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +3 -2
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +9 -12
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +6 -6
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +2 -2
- 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/FilmStripView.test.ts +9 -9
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +209 -68
- package/front_end/ui/legacy/components/perf_ui/PieChart.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.test.ts +5 -9
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +9 -60
- 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/ui/legacy/components/source_frame/StreamingContentHexView.test.ts +69 -0
- 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/designTokens.css +46 -40
- package/front_end/ui/legacy/filter.css +23 -8
- package/front_end/ui/legacy/inspectorCommon.css +31 -30
- 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/themeColors.css +10 -0
- package/front_end/ui/legacy/toolbar.css +42 -18
- package/front_end/ui/legacy/treeoutline.css +0 -3
- package/front_end/ui/lit-html/static.test.ts +8 -8
- package/front_end/ui/visual_logging/Debugging.ts +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +99 -4
- package/front_end/ui/visual_logging/LoggingDriver.test.ts +53 -6
- package/front_end/ui/visual_logging/LoggingDriver.ts +9 -6
- package/front_end/ui/visual_logging/LoggingEvents.test.ts +5 -1
- package/front_end/ui/visual_logging/LoggingEvents.ts +29 -29
- package/front_end/ui/visual_logging/LoggingState.ts +2 -2
- package/front_end/ui/visual_logging/NonDomState.ts +2 -2
- package/front_end/ui/visual_logging/visual_logging.ts +3 -1
- package/inspector_overlay/css_grid_label_helpers.test.ts +103 -0
- package/inspector_overlay/css_grid_label_helpers.ts +63 -12
- package/inspector_overlay/highlight_common.ts +2 -2
- package/inspector_overlay/highlight_container_query.ts +1 -2
- package/inspector_overlay/highlight_flex_common.test.ts +1 -1
- package/inspector_overlay/highlight_flex_common.ts +2 -3
- package/inspector_overlay/highlight_grid_common.ts +10 -4
- package/inspector_overlay/highlight_isolated_element.ts +1 -1
- package/inspector_overlay/highlight_scroll_snap.ts +1 -2
- package/inspector_overlay/testing/InspectorOverlayHelpers.ts +1 -1
- package/inspector_overlay/tool_highlight.ts +4 -8
- package/package.json +8 -8
- package/scripts/build/esbuild.js +3 -1
- package/scripts/devtools_paths.js +19 -2
- package/scripts/eslint_rules/lib/avoid_assert_equal.js +34 -7
- package/scripts/eslint_rules/lib/check_test_definitions.js +1 -1
- package/scripts/eslint_rules/lib/html_tagged_template.js +55 -0
- package/scripts/eslint_rules/lib/inline_type_imports.js +22 -23
- package/scripts/eslint_rules/tests/avoid_assert_equal_test.js +61 -2
- package/scripts/eslint_rules/tests/check_test_definitions_test.js +10 -0
- package/scripts/eslint_rules/tests/html_tagged_template_test.js +96 -0
- package/scripts/eslint_rules/tests/inline_type_imports_test.js +5 -25
- package/scripts/freestyler/eval/index.js +83 -47
- package/scripts/protocol_typescript/protocol_dts_generator.ts +1 -1
- package/scripts/stylelint_rules/lib/use_theme_colors.js +2 -1
- package/scripts/stylelint_rules/tests/use_theme_colors_test.js +16 -0
- package/tsconfig.json +11 -1
- package/docs/add_uma_metrics.md +0 -41
- package/docs/uma_metrics.md +0 -23
- package/front_end/Images/src/spark.svg +0 -3
- 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.css +0 -60
- package/front_end/panels/timeline/components/insights/lcpDiscovery.css +0 -13
- package/scripts/eslint_rules/lib/ban_literal_devtools_component_tag_names.js +0 -40
- package/scripts/eslint_rules/lib/check_component_naming.js +0 -214
- package/scripts/eslint_rules/lib/lit_html_data_as_type.js +0 -83
- package/scripts/eslint_rules/tests/ban_literal_devtools_component_tag_names_test.js +0 -38
- package/scripts/eslint_rules/tests/check_component_naming_test.js +0 -246
- package/scripts/eslint_rules/tests/lit_html_data_as_type_test.js +0 -81
@@ -2,24 +2,30 @@
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
|
+
import '../../../ui/components/spinners/spinners.js';
|
6
|
+
import './UserActionRow.js';
|
7
|
+
|
5
8
|
import * as Common from '../../../core/common/common.js';
|
6
9
|
import * as Host from '../../../core/host/host.js';
|
7
10
|
import * as i18n from '../../../core/i18n/i18n.js';
|
8
11
|
import type * as Platform from '../../../core/platform/platform.js';
|
9
|
-
import
|
12
|
+
import * as SDK from '../../../core/sdk/sdk.js';
|
13
|
+
import type * as Workspace from '../../../models/workspace/workspace.js';
|
14
|
+
import * as TimelineUtils from '../../../panels/timeline/utils/utils.js';
|
10
15
|
import * as Marked from '../../../third_party/marked/marked.js';
|
11
16
|
import * as Buttons from '../../../ui/components/buttons/buttons.js';
|
12
|
-
import * as IconButton from '../../../ui/components/icon_button/icon_button.js';
|
17
|
+
import type * as IconButton from '../../../ui/components/icon_button/icon_button.js';
|
13
18
|
import * as MarkdownView from '../../../ui/components/markdown_view/markdown_view.js';
|
14
|
-
import * as Spinners from '../../../ui/components/spinners/spinners.js';
|
15
19
|
import * as UI from '../../../ui/legacy/legacy.js';
|
16
20
|
import * as LitHtml from '../../../ui/lit-html/lit-html.js';
|
17
21
|
import * as VisualLogging from '../../../ui/visual_logging/visual_logging.js';
|
18
22
|
import {PanelUtils} from '../../utils/utils.js';
|
19
|
-
import {type ContextDetail, ErrorType} from '../AiAgent.js';
|
23
|
+
import {AgentType, type ContextDetail, ErrorType} from '../AiAgent.js';
|
20
24
|
|
21
25
|
import freestylerChatUiStyles from './freestylerChatUi.css.js';
|
22
|
-
import
|
26
|
+
import type {UserActionRowProps} from './UserActionRow.js';
|
27
|
+
|
28
|
+
const {html, Directives: {ifDefined}} = LitHtml;
|
23
29
|
|
24
30
|
const UIStrings = {
|
25
31
|
/**
|
@@ -52,6 +58,21 @@ const UIStrings = {
|
|
52
58
|
*@example {AI assistance in Settings} PH1
|
53
59
|
*/
|
54
60
|
turnOnForStylesAndRequests: 'Turn on {PH1} to get help with styles and network requests',
|
61
|
+
/**
|
62
|
+
*@description Text for asking the user to turn the AI assistance feature in settings first before they are able to use it.
|
63
|
+
*@example {AI assistance in Settings} PH1
|
64
|
+
*/
|
65
|
+
turnOnForStylesRequestsAndFiles: 'Turn on {PH1} to get help with styles, network requests, and files',
|
66
|
+
/**
|
67
|
+
*@description Text for asking the user to turn the AI assistance feature in settings first before they are able to use it.
|
68
|
+
*@example {AI assistance in Settings} PH1
|
69
|
+
*/
|
70
|
+
turnOnForStylesRequestsPerformanceAndFiles:
|
71
|
+
'Turn on {PH1} to get help with styles, network requests, performance, and files',
|
72
|
+
/**
|
73
|
+
*@description The footer disclaimer that links to more information about the AI feature.
|
74
|
+
*/
|
75
|
+
learnAbout: 'Learn about AI in DevTools',
|
55
76
|
};
|
56
77
|
|
57
78
|
/*
|
@@ -68,6 +89,16 @@ const UIStringsNotTranslate = {
|
|
68
89
|
*/
|
69
90
|
inputDisclaimerForDrJonesNetworkAgent:
|
70
91
|
'Chat messages and the selected network request are sent to Google and may be seen by human reviewers to improve this feature. This is an experimental AI feature and won’t always get it right.',
|
92
|
+
/**
|
93
|
+
*@description Disclaimer text right after the chat input.
|
94
|
+
*/
|
95
|
+
inputDisclaimerForDrJonesFileAgent:
|
96
|
+
'Chat messages and the selected file are sent to Google and may be seen by human reviewers to improve this feature. This is an experimental AI feature and won\'t always get it right.',
|
97
|
+
/**
|
98
|
+
*@description Disclaimer text right after the chat input.
|
99
|
+
*/
|
100
|
+
inputDisclaimerForDrJonesPerformanceAgent:
|
101
|
+
'Chat messages and the selected call tree are sent to Google and may be seen by human reviewers to improve this feature. This is an experimental AI feature and won\'t always get it right.',
|
71
102
|
/**
|
72
103
|
*@description Placeholder text for the chat UI input.
|
73
104
|
*/
|
@@ -76,6 +107,14 @@ const UIStringsNotTranslate = {
|
|
76
107
|
*@description Placeholder text for the chat UI input.
|
77
108
|
*/
|
78
109
|
inputPlaceholderForDrJonesNetworkAgent: 'Ask a question about the selected network request',
|
110
|
+
/**
|
111
|
+
*@description Placeholder text for the chat UI input.
|
112
|
+
*/
|
113
|
+
inputPlaceholderForDrJonesFileAgent: 'Ask a question about the selected file',
|
114
|
+
/**
|
115
|
+
*@description Placeholder text for the chat UI input.
|
116
|
+
*/
|
117
|
+
inputPlaceholderForDrJonesPerformanceAgent: 'Ask a question about the selected item and its call tree',
|
79
118
|
/**
|
80
119
|
*@description Title for the send icon button.
|
81
120
|
*/
|
@@ -121,14 +160,6 @@ const UIStringsNotTranslate = {
|
|
121
160
|
* @description Button text that cancels code execution that may affect the page.
|
122
161
|
*/
|
123
162
|
negativeSideEffectConfirmation: 'Cancel',
|
124
|
-
/**
|
125
|
-
*@description Link text for redirecting to feedback form
|
126
|
-
*/
|
127
|
-
feedbackLink: 'Send feedback',
|
128
|
-
/**
|
129
|
-
*@description Button text for "Fix this issue" button
|
130
|
-
*/
|
131
|
-
fixThisIssue: 'Fix this issue',
|
132
163
|
/**
|
133
164
|
*@description The generic name of the AI agent (do not translate)
|
134
165
|
*/
|
@@ -158,42 +189,76 @@ const UIStringsNotTranslate = {
|
|
158
189
|
*/
|
159
190
|
dataReturned: 'Data returned',
|
160
191
|
/**
|
161
|
-
*@description
|
192
|
+
*@description Aria label for the check mark icon to be read by screen reader
|
162
193
|
*/
|
163
|
-
|
194
|
+
completed: 'Completed',
|
164
195
|
/**
|
165
|
-
|
196
|
+
*@description Aria label for the loading icon to be read by screen reader
|
166
197
|
*/
|
167
|
-
|
198
|
+
inProgress: 'In progress',
|
168
199
|
/**
|
169
|
-
|
200
|
+
*@description Aria label for the cancel icon to be read by screen reader
|
170
201
|
*/
|
171
|
-
|
202
|
+
canceled: 'Canceled',
|
203
|
+
/*
|
204
|
+
* @description Header text for instructions on how to use the AI assistance feature.
|
205
|
+
*/
|
206
|
+
getStarted: 'Hi! Here’s how to get started:',
|
207
|
+
/**
|
208
|
+
* @description AI assistance for CSS.
|
209
|
+
*/
|
210
|
+
cssHelp: 'CSS help:',
|
211
|
+
/**
|
212
|
+
* @description Explanation on how to use AI assistance for DOM elements.
|
213
|
+
*/
|
214
|
+
cssHelpExplainer:
|
215
|
+
'Navigate to the Elements panel, right-click a DOM element, and select "Ask AI assistant". I’ll be happy to explain its styles or behavior.',
|
216
|
+
/**
|
217
|
+
* @description AI assistance for files.
|
218
|
+
*/
|
219
|
+
fileHelp: 'File insights:',
|
220
|
+
/**
|
221
|
+
* @description Explanation on how to use AI assistance for files in the Sources panel.
|
222
|
+
*/
|
223
|
+
fileHelpExplainer:
|
224
|
+
'Open the Sources panel, right-click a file, and select "Ask AI". I can provide insights into its purpose or origin.',
|
225
|
+
/**
|
226
|
+
* @description AI assistance for network requests.
|
227
|
+
*/
|
228
|
+
networkHelp: 'Network request insights:',
|
229
|
+
/**
|
230
|
+
* @description Explanation on how to use AI assistance for network requests.
|
231
|
+
*/
|
232
|
+
networkHelpExplainer:
|
233
|
+
'In the Network panel, right-click any request and select "Ask AI assistant". I’ll help break down what’s happening with each request.',
|
234
|
+
/**
|
235
|
+
* @description AI assistance for performance traces.
|
236
|
+
*/
|
237
|
+
performanceHelp: 'Performance analysis:',
|
238
|
+
/**
|
239
|
+
* @description Explanation on how to use AI assistance for performance traces.
|
240
|
+
*/
|
241
|
+
performanceHelpExplainer:
|
242
|
+
'In the Performance panel, run a trace. Then, right-click any function in the timeline and select "Ask AI". I’ll help you analyze its performance impact and suggest improvements.',
|
172
243
|
};
|
173
244
|
|
174
245
|
const str_ = i18n.i18n.registerUIStrings('panels/freestyler/components/FreestylerChatUi.ts', UIStrings);
|
175
246
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
176
247
|
const lockedString = i18n.i18n.lockedString;
|
177
248
|
|
178
|
-
function getInputPlaceholderString(
|
179
|
-
|
180
|
-
state: State): Platform.UIString.LocalizedString {
|
181
|
-
if (state === State.CONSENT_VIEW) {
|
249
|
+
function getInputPlaceholderString(state: State, agentType?: AgentType): Platform.UIString.LocalizedString {
|
250
|
+
if (state === State.CONSENT_VIEW || !agentType) {
|
182
251
|
return i18nString(UIStrings.followTheSteps);
|
183
252
|
}
|
184
|
-
switch (
|
185
|
-
case
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
case Host.AidaClient.AidaAccessPreconditions.SYNC_IS_PAUSED:
|
194
|
-
return i18nString(UIStrings.notLoggedIn);
|
195
|
-
case Host.AidaClient.AidaAccessPreconditions.NO_INTERNET:
|
196
|
-
return i18nString(UIStrings.offline);
|
253
|
+
switch (agentType) {
|
254
|
+
case AgentType.FREESTYLER:
|
255
|
+
return lockedString(UIStringsNotTranslate.inputPlaceholderForFreestylerAgent);
|
256
|
+
case AgentType.DRJONES_FILE:
|
257
|
+
return lockedString(UIStringsNotTranslate.inputPlaceholderForDrJonesFileAgent);
|
258
|
+
case AgentType.DRJONES_NETWORK_REQUEST:
|
259
|
+
return lockedString(UIStringsNotTranslate.inputPlaceholderForDrJonesNetworkAgent);
|
260
|
+
case AgentType.DRJONES_PERFORMANCE:
|
261
|
+
return lockedString(UIStringsNotTranslate.inputPlaceholderForDrJonesPerformanceAgent);
|
197
262
|
}
|
198
263
|
}
|
199
264
|
|
@@ -205,7 +270,7 @@ export interface Step {
|
|
205
270
|
output?: string;
|
206
271
|
canceled?: boolean;
|
207
272
|
sideEffect?: ConfirmSideEffectDialog;
|
208
|
-
contextDetails?: ContextDetail[];
|
273
|
+
contextDetails?: [ContextDetail, ...ContextDetail[]];
|
209
274
|
}
|
210
275
|
|
211
276
|
interface ConfirmSideEffectDialog {
|
@@ -224,7 +289,7 @@ export interface UserChatMessage {
|
|
224
289
|
export interface ModelChatMessage {
|
225
290
|
entity: ChatMessageEntity.MODEL;
|
226
291
|
steps: Step[];
|
227
|
-
suggestions?: string[];
|
292
|
+
suggestions?: [string, ...string[]];
|
228
293
|
answer?: string;
|
229
294
|
error?: ErrorType;
|
230
295
|
rpcId?: number;
|
@@ -237,27 +302,25 @@ export const enum State {
|
|
237
302
|
CHAT_VIEW = 'chat-view',
|
238
303
|
}
|
239
304
|
|
240
|
-
export const enum AgentType {
|
241
|
-
FREESTYLER = 'freestyler',
|
242
|
-
DRJONES_NETWORK_REQUEST = 'drjones-network-request',
|
243
|
-
}
|
244
|
-
|
245
305
|
export interface Props {
|
246
306
|
onTextSubmit: (text: string) => void;
|
247
307
|
onInspectElementClick: () => void;
|
248
308
|
onFeedbackSubmit: (rpcId: number, rate: Host.AidaClient.Rating, feedback?: string) => void;
|
249
309
|
onCancelClick: () => void;
|
250
310
|
onSelectedNetworkRequestClick: () => void | Promise<void>;
|
311
|
+
onSelectedFileRequestClick: () => void | Promise<void>;
|
251
312
|
inspectElementToggled: boolean;
|
252
313
|
state: State;
|
253
314
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions;
|
254
315
|
messages: ChatMessage[];
|
255
316
|
selectedElement: SDK.DOMModel.DOMNode|null;
|
317
|
+
selectedFile: Workspace.UISourceCode.UISourceCode|null;
|
256
318
|
selectedNetworkRequest: SDK.NetworkRequest.NetworkRequest|null;
|
319
|
+
selectedAiCallTree: TimelineUtils.AICallTree.AICallTree|null;
|
257
320
|
isLoading: boolean;
|
258
321
|
canShowFeedbackForm: boolean;
|
259
322
|
userInfo: Pick<Host.InspectorFrontendHostAPI.SyncInformation, 'accountImage'|'accountFullName'>;
|
260
|
-
agentType
|
323
|
+
agentType?: AgentType;
|
261
324
|
}
|
262
325
|
|
263
326
|
// The model returns multiline code blocks in an erroneous way with the language being in new line.
|
@@ -271,7 +334,7 @@ export interface Props {
|
|
271
334
|
// }
|
272
335
|
// ```
|
273
336
|
class MarkdownRendererWithCodeBlock extends MarkdownView.MarkdownView.MarkdownInsightRenderer {
|
274
|
-
override templateForToken(token: Marked.Marked.
|
337
|
+
override templateForToken(token: Marked.Marked.MarkedToken): LitHtml.TemplateResult|null {
|
275
338
|
if (token.type === 'code') {
|
276
339
|
const lines = (token.text as string).split('\n');
|
277
340
|
if (lines[0]?.trim() === 'css') {
|
@@ -285,7 +348,6 @@ class MarkdownRendererWithCodeBlock extends MarkdownView.MarkdownView.MarkdownIn
|
|
285
348
|
}
|
286
349
|
|
287
350
|
export class FreestylerChatUi extends HTMLElement {
|
288
|
-
static readonly litTagName = LitHtml.literal`devtools-freestyler-chat-ui`;
|
289
351
|
readonly #shadow = this.attachShadow({mode: 'open'});
|
290
352
|
readonly #markdownRenderer = new MarkdownRendererWithCodeBlock();
|
291
353
|
#scrollTop?: number;
|
@@ -320,7 +382,7 @@ export class FreestylerChatUi extends HTMLElement {
|
|
320
382
|
return;
|
321
383
|
}
|
322
384
|
|
323
|
-
const scrollContainer = this.#shadow.querySelector('.
|
385
|
+
const scrollContainer = this.#shadow.querySelector('.chat-ui main') as HTMLElement;
|
324
386
|
if (!scrollContainer) {
|
325
387
|
return;
|
326
388
|
}
|
@@ -353,11 +415,16 @@ export class FreestylerChatUi extends HTMLElement {
|
|
353
415
|
return Boolean(step.sideEffect);
|
354
416
|
});
|
355
417
|
});
|
418
|
+
|
356
419
|
const isInputDisabledCheckForFreestylerAgent = !Boolean(this.#props.selectedElement) || showsSideEffects;
|
357
420
|
const isInputDisabledCheckForDrJonesNetworkAgent = !Boolean(this.#props.selectedNetworkRequest);
|
421
|
+
const isInputDisabledCheckForDrJonesFileAgent =
|
422
|
+
!Boolean(this.#props.selectedFile) || !this.#props.selectedFile?.contentType().isTextType();
|
423
|
+
|
358
424
|
return (this.#props.agentType === AgentType.FREESTYLER && isInputDisabledCheckForFreestylerAgent) ||
|
359
425
|
(this.#props.agentType === AgentType.DRJONES_NETWORK_REQUEST && isInputDisabledCheckForDrJonesNetworkAgent) ||
|
360
|
-
|
426
|
+
(this.#props.agentType === AgentType.DRJONES_FILE && isInputDisabledCheckForDrJonesFileAgent) ||
|
427
|
+
!isAidaAvailable || isConsentView || !this.#props.agentType;
|
361
428
|
};
|
362
429
|
|
363
430
|
#handleScroll = (ev: Event): void => {
|
@@ -407,18 +474,25 @@ export class FreestylerChatUi extends HTMLElement {
|
|
407
474
|
#handleSuggestionClick = (suggestion: string): void => {
|
408
475
|
this.#setInputText(suggestion);
|
409
476
|
this.focusTextInput();
|
477
|
+
Host.userMetrics.actionTaken(Host.UserMetrics.Action.AiAssistanceDynamicSuggestionClicked);
|
410
478
|
};
|
411
479
|
|
412
|
-
#
|
480
|
+
#renderUserActionRow(rpcId?: number, suggestions?: [string, ...string[]]): LitHtml.TemplateResult {
|
413
481
|
// clang-format off
|
414
|
-
return
|
482
|
+
return html`<devtools-user-action-row
|
415
483
|
.props=${{
|
484
|
+
showRateButtons: rpcId !== undefined,
|
416
485
|
onFeedbackSubmit: (rating, feedback) => {
|
486
|
+
if (!rpcId) {
|
487
|
+
return;
|
488
|
+
}
|
417
489
|
this.#props.onFeedbackSubmit(rpcId, rating, feedback);
|
418
490
|
},
|
491
|
+
suggestions,
|
492
|
+
handleSuggestionClick: this.#handleSuggestionClick,
|
419
493
|
canShowFeedbackForm: this.#props.canShowFeedbackForm,
|
420
|
-
} as
|
421
|
-
|
494
|
+
} as UserActionRowProps}
|
495
|
+
></devtools-user-action-row>`;
|
422
496
|
// clang-format on
|
423
497
|
}
|
424
498
|
|
@@ -437,75 +511,88 @@ export class FreestylerChatUi extends HTMLElement {
|
|
437
511
|
// The tokens were not parsed correctly or
|
438
512
|
// one of the tokens are not supported, so we
|
439
513
|
// continue to render this as text.
|
440
|
-
return
|
514
|
+
return html`${text}`;
|
441
515
|
}
|
442
516
|
|
443
517
|
// clang-format off
|
444
|
-
return
|
518
|
+
return html`<devtools-markdown-view
|
445
519
|
.data=${{tokens, renderer: this.#markdownRenderer} as MarkdownView.MarkdownView.MarkdownViewData}>
|
446
|
-
|
520
|
+
</devtools-markdown-view>`;
|
447
521
|
// clang-format on
|
448
522
|
}
|
449
523
|
|
450
524
|
#renderTitle(step: Step): LitHtml.LitTemplate {
|
451
|
-
const paused = step.sideEffect ?
|
452
|
-
|
453
|
-
LitHtml.nothing;
|
525
|
+
const paused = step.sideEffect ? html`<span class="paused">${lockedString(UIStringsNotTranslate.paused)}: </span>` :
|
526
|
+
LitHtml.nothing;
|
454
527
|
const actionTitle = step.title ?? `${lockedString(UIStringsNotTranslate.investigating)}…`;
|
455
528
|
|
456
|
-
return
|
529
|
+
return html`<span class="title">${paused}${actionTitle}</span>`;
|
457
530
|
}
|
458
531
|
|
459
|
-
#
|
460
|
-
|
461
|
-
|
462
|
-
|
532
|
+
#renderStepCode(step: Step): LitHtml.LitTemplate {
|
533
|
+
if (!step.code && !step.output) {
|
534
|
+
return LitHtml.nothing;
|
535
|
+
}
|
536
|
+
|
463
537
|
// If there is no "output" yet, it means we didn't execute the code yet (e.g. maybe it is still waiting for confirmation from the user)
|
464
538
|
// thus we show "Code to execute" text rather than "Code executed" text on the heading of the code block.
|
465
539
|
const codeHeadingText = (step.output && !step.canceled) ? lockedString(UIStringsNotTranslate.codeExecuted) :
|
466
540
|
lockedString(UIStringsNotTranslate.codeToExecute);
|
541
|
+
|
467
542
|
// If there is output, we don't show notice on this code block and instead show
|
468
543
|
// it in the data returned code block.
|
469
544
|
// clang-format off
|
470
|
-
const code = step.code ?
|
471
|
-
|
545
|
+
const code = step.code ? html`<div class="action-result">
|
546
|
+
<devtools-code-block
|
472
547
|
.code=${step.code.trim()}
|
473
548
|
.codeLang=${'js'}
|
474
549
|
.displayNotice=${!Boolean(step.output)}
|
475
550
|
.header=${codeHeadingText}
|
476
551
|
.showCopyButton=${true}
|
477
|
-
|
478
|
-
</div>` :
|
479
|
-
|
480
|
-
|
552
|
+
></devtools-code-block>
|
553
|
+
</div>` :
|
554
|
+
LitHtml.nothing;
|
555
|
+
const output = step.output ? html`<div class="js-code-output">
|
556
|
+
<devtools-code-block
|
481
557
|
.code=${step.output}
|
482
558
|
.codeLang=${'js'}
|
483
559
|
.displayNotice=${true}
|
484
560
|
.header=${lockedString(UIStringsNotTranslate.dataReturned)}
|
485
561
|
.showCopyButton=${false}
|
486
|
-
|
487
|
-
</div>` :
|
488
|
-
|
489
|
-
|
562
|
+
></devtools-code-block>
|
563
|
+
</div>` :
|
564
|
+
LitHtml.nothing;
|
565
|
+
|
566
|
+
return html`<div class="step-code">${code}${output}</div>`;
|
567
|
+
// clang-format on
|
568
|
+
}
|
569
|
+
|
570
|
+
#renderStepDetails(step: Step, options: {isLast: boolean}): LitHtml.LitTemplate {
|
571
|
+
const sideEffects =
|
572
|
+
options.isLast && step.sideEffect ? this.#renderSideEffectConfirmationUi(step) : LitHtml.nothing;
|
573
|
+
const thought = step.thought ? html`<p>${this.#renderTextAsMarkdown(step.thought)}</p>` : LitHtml.nothing;
|
574
|
+
|
575
|
+
// clang-format off
|
576
|
+
const contextDetails = step.contextDetails ?
|
577
|
+
html`${LitHtml.Directives.repeat(
|
490
578
|
step.contextDetails,
|
491
579
|
contextDetail => {
|
492
|
-
return
|
493
|
-
|
580
|
+
return html`<div class="context-details">
|
581
|
+
<devtools-code-block
|
494
582
|
.code=${contextDetail.text}
|
495
|
-
.codeLang=${'
|
583
|
+
.codeLang=${contextDetail.codeLang || ''}
|
496
584
|
.displayNotice=${false}
|
497
585
|
.header=${contextDetail.title}
|
498
586
|
.showCopyButton=${true}
|
499
|
-
|
587
|
+
></devtools-code-block>
|
500
588
|
</div>`;
|
501
589
|
},
|
502
590
|
)}` : LitHtml.nothing;
|
503
591
|
|
504
|
-
return
|
592
|
+
return html`<div class="step-details">
|
505
593
|
${thought}
|
506
|
-
${
|
594
|
+
${this.#renderStepCode(step)}
|
507
595
|
${sideEffects}
|
508
|
-
${output}
|
509
596
|
${contextDetails}
|
510
597
|
</div>`;
|
511
598
|
// clang-format on
|
@@ -513,31 +600,38 @@ export class FreestylerChatUi extends HTMLElement {
|
|
513
600
|
|
514
601
|
#renderStepBadge(step: Step, options: {isLast: boolean}): LitHtml.LitTemplate {
|
515
602
|
if (this.#props.isLoading && options.isLast && !step.sideEffect) {
|
516
|
-
return
|
603
|
+
return html`<devtools-spinner></devtools-spinner>`;
|
517
604
|
}
|
518
605
|
|
519
606
|
let iconName: string = 'checkmark';
|
607
|
+
let ariaLabel: string|undefined = lockedString(UIStringsNotTranslate.completed);
|
608
|
+
let role: 'button'|undefined = 'button';
|
520
609
|
if (options.isLast && step.sideEffect) {
|
610
|
+
role = undefined;
|
611
|
+
ariaLabel = undefined;
|
521
612
|
iconName = 'pause-circle';
|
522
613
|
} else if (step.canceled) {
|
614
|
+
ariaLabel = lockedString(UIStringsNotTranslate.canceled);
|
523
615
|
iconName = 'cross';
|
524
616
|
}
|
525
617
|
|
526
|
-
return
|
618
|
+
return html`<devtools-icon
|
527
619
|
class="indicator"
|
620
|
+
role=${ifDefined(role)}
|
621
|
+
aria-label=${ifDefined(ariaLabel)}
|
528
622
|
.name=${iconName}
|
529
|
-
|
623
|
+
></devtools-icon>`;
|
530
624
|
}
|
531
625
|
|
532
626
|
#renderStep(step: Step, options: {isLast: boolean}): LitHtml.LitTemplate {
|
533
627
|
const stepClasses = LitHtml.Directives.classMap({
|
534
628
|
step: true,
|
535
|
-
empty: !step.thought && !step.code,
|
629
|
+
empty: !step.thought && !step.code && !step.contextDetails,
|
536
630
|
paused: Boolean(step.sideEffect),
|
537
631
|
canceled: Boolean(step.canceled),
|
538
632
|
});
|
539
633
|
// clang-format off
|
540
|
-
return
|
634
|
+
return html`
|
541
635
|
<details class=${stepClasses}
|
542
636
|
jslog=${VisualLogging.section('step')}
|
543
637
|
.open=${Boolean(step.sideEffect)}>
|
@@ -545,10 +639,10 @@ export class FreestylerChatUi extends HTMLElement {
|
|
545
639
|
<div class="summary">
|
546
640
|
${this.#renderStepBadge(step, options)}
|
547
641
|
${this.#renderTitle(step)}
|
548
|
-
|
642
|
+
<devtools-icon
|
549
643
|
class="arrow"
|
550
644
|
.name=${'chevron-down'}
|
551
|
-
|
645
|
+
></devtools-icon>
|
552
646
|
</div>
|
553
647
|
</summary>
|
554
648
|
${this.#renderStepDetails(step, {
|
@@ -562,16 +656,21 @@ export class FreestylerChatUi extends HTMLElement {
|
|
562
656
|
if (!step.sideEffect) {
|
563
657
|
return LitHtml.nothing;
|
564
658
|
}
|
565
|
-
|
659
|
+
|
660
|
+
const sideEffectAction = (answer: boolean): void => {
|
661
|
+
step.sideEffect?.onAnswer(answer);
|
662
|
+
step.sideEffect = undefined;
|
663
|
+
this.#render();
|
664
|
+
};
|
566
665
|
|
567
666
|
// clang-format off
|
568
|
-
return
|
667
|
+
return html`<div
|
569
668
|
class="side-effect-confirmation"
|
570
669
|
jslog=${VisualLogging.section('side-effect-confirmation')}
|
571
670
|
>
|
572
671
|
<p>${lockedString(UIStringsNotTranslate.sideEffectConfirmationDescription)}</p>
|
573
672
|
<div class="side-effect-buttons-container">
|
574
|
-
|
673
|
+
<devtools-button
|
575
674
|
.data=${
|
576
675
|
{
|
577
676
|
variant: Buttons.Button.Variant.OUTLINED,
|
@@ -581,8 +680,8 @@ export class FreestylerChatUi extends HTMLElement {
|
|
581
680
|
@click=${() => sideEffectAction(false)}
|
582
681
|
>${lockedString(
|
583
682
|
UIStringsNotTranslate.negativeSideEffectConfirmation,
|
584
|
-
)}
|
585
|
-
|
683
|
+
)}</devtools-button>
|
684
|
+
<devtools-button
|
586
685
|
.data=${
|
587
686
|
{
|
588
687
|
variant: Buttons.Button.Variant.PRIMARY,
|
@@ -593,7 +692,7 @@ export class FreestylerChatUi extends HTMLElement {
|
|
593
692
|
@click=${() => sideEffectAction(true)}
|
594
693
|
>${
|
595
694
|
lockedString(UIStringsNotTranslate.positiveSideEffectConfirmation)
|
596
|
-
}
|
695
|
+
}</devtools-button>
|
597
696
|
</div>
|
598
697
|
</div>`;
|
599
698
|
// clang-format on
|
@@ -610,11 +709,11 @@ export class FreestylerChatUi extends HTMLElement {
|
|
610
709
|
errorMessage = UIStringsNotTranslate.maxStepsError;
|
611
710
|
break;
|
612
711
|
case ErrorType.ABORT:
|
613
|
-
return
|
712
|
+
return html`<p class="aborted" jslog=${VisualLogging.section('aborted')}>${
|
614
713
|
lockedString(UIStringsNotTranslate.stoppedResponse)}</p>`;
|
615
714
|
}
|
616
715
|
|
617
|
-
return
|
716
|
+
return html`<p class="error" jslog=${VisualLogging.section('error')}>${lockedString(errorMessage)}</p>`;
|
618
717
|
}
|
619
718
|
|
620
719
|
return LitHtml.nothing;
|
@@ -624,12 +723,12 @@ export class FreestylerChatUi extends HTMLElement {
|
|
624
723
|
if (message.entity === ChatMessageEntity.USER) {
|
625
724
|
const name = this.#props.userInfo.accountFullName || lockedString(UIStringsNotTranslate.you);
|
626
725
|
const image = this.#props.userInfo.accountImage ?
|
627
|
-
|
628
|
-
|
726
|
+
html`<img src="data:image/png;base64, ${this.#props.userInfo.accountImage}" alt="Account avatar" />` :
|
727
|
+
html`<devtools-icon
|
629
728
|
.name=${'profile'}
|
630
|
-
|
729
|
+
></devtools-icon>`;
|
631
730
|
// clang-format off
|
632
|
-
return
|
731
|
+
return html`<section
|
633
732
|
class="chat-message query"
|
634
733
|
jslog=${VisualLogging.section('question')}
|
635
734
|
>
|
@@ -644,15 +743,14 @@ export class FreestylerChatUi extends HTMLElement {
|
|
644
743
|
// clang-format on
|
645
744
|
}
|
646
745
|
|
647
|
-
const shouldShowSuggestions =
|
648
|
-
(isLast && !this.#props.isLoading && message.suggestions && message.suggestions?.length > 0);
|
746
|
+
const shouldShowSuggestions = (isLast && !this.#props.isLoading && message.suggestions);
|
649
747
|
// clang-format off
|
650
|
-
return
|
748
|
+
return html`
|
651
749
|
<section class="chat-message answer" jslog=${VisualLogging.section('answer')}>
|
652
750
|
<div class="message-info">
|
653
|
-
|
751
|
+
<devtools-icon
|
654
752
|
name="smart-assistant"
|
655
|
-
|
753
|
+
></devtools-icon>
|
656
754
|
<div class="message-name">
|
657
755
|
<h2>${lockedString(UIStringsNotTranslate.ai)}</h2>
|
658
756
|
</div>
|
@@ -668,41 +766,55 @@ export class FreestylerChatUi extends HTMLElement {
|
|
668
766
|
)}
|
669
767
|
${
|
670
768
|
message.answer
|
671
|
-
?
|
769
|
+
? html`<p>${this.#renderTextAsMarkdown(message.answer)}</p>`
|
672
770
|
: LitHtml.nothing
|
673
771
|
}
|
674
772
|
${this.#renderError(message)}
|
675
773
|
<div class="actions">
|
676
|
-
${
|
677
|
-
message.rpcId !== undefined
|
678
|
-
? this.#renderRateButtons(message.rpcId)
|
679
|
-
: LitHtml.nothing
|
680
|
-
}
|
681
|
-
${shouldShowSuggestions ?
|
682
|
-
LitHtml.html`<div class="suggestions">
|
683
|
-
${message.suggestions?.map(suggestion => LitHtml.html`<${Buttons.Button.Button.litTagName}
|
684
|
-
.data=${{
|
685
|
-
variant: Buttons.Button.Variant.OUTLINED,
|
686
|
-
jslogContext: 'fix-this-issue',
|
687
|
-
} as Buttons.Button.ButtonData}
|
688
|
-
@click=${() => this.#handleSuggestionClick(suggestion)}
|
689
|
-
>${suggestion}</${Buttons.Button.Button.litTagName}>`)}
|
690
|
-
</div>` : LitHtml.nothing}
|
774
|
+
${this.#renderUserActionRow(message.rpcId, shouldShowSuggestions ? message.suggestions : undefined)}
|
691
775
|
</div>
|
692
776
|
</section>
|
693
777
|
`;
|
694
778
|
// clang-format on
|
695
779
|
};
|
696
780
|
|
697
|
-
#renderSelection(): LitHtml.
|
781
|
+
#renderSelection(): LitHtml.LitTemplate {
|
782
|
+
if (!this.#props.agentType) {
|
783
|
+
return LitHtml.nothing;
|
784
|
+
}
|
698
785
|
switch (this.#props.agentType) {
|
699
786
|
case AgentType.FREESTYLER:
|
700
787
|
return this.#renderSelectAnElement();
|
788
|
+
case AgentType.DRJONES_FILE:
|
789
|
+
return this.#renderSelectedFileName();
|
701
790
|
case AgentType.DRJONES_NETWORK_REQUEST:
|
702
791
|
return this.#renderSelectedNetworkRequest();
|
792
|
+
case AgentType.DRJONES_PERFORMANCE:
|
793
|
+
return this.#renderSelectedTask();
|
703
794
|
}
|
704
795
|
}
|
705
796
|
|
797
|
+
#renderSelectedFileName(): LitHtml.TemplateResult {
|
798
|
+
const resourceClass = LitHtml.Directives.classMap({
|
799
|
+
'not-selected': !this.#props.selectedFile,
|
800
|
+
'resource-link': true,
|
801
|
+
});
|
802
|
+
|
803
|
+
if (!this.#props.selectedFile) {
|
804
|
+
return html`${LitHtml.nothing}`;
|
805
|
+
}
|
806
|
+
|
807
|
+
const icon = PanelUtils.getIconForSourceFile(this.#props.selectedFile);
|
808
|
+
|
809
|
+
// clang-format off
|
810
|
+
return html`<div class="select-element">
|
811
|
+
<div role=button class=${resourceClass}
|
812
|
+
@click=${this.#props.onSelectedFileRequestClick}>
|
813
|
+
${icon}${this.#props.selectedFile?.displayName()}
|
814
|
+
</div></div>`;
|
815
|
+
// clang-format on
|
816
|
+
}
|
817
|
+
|
706
818
|
#renderSelectedNetworkRequest = (): LitHtml.TemplateResult => {
|
707
819
|
const resourceClass = LitHtml.Directives.classMap({
|
708
820
|
'not-selected': !this.#props.selectedNetworkRequest,
|
@@ -710,13 +822,13 @@ export class FreestylerChatUi extends HTMLElement {
|
|
710
822
|
});
|
711
823
|
|
712
824
|
if (!this.#props.selectedNetworkRequest) {
|
713
|
-
return
|
825
|
+
return html`${LitHtml.nothing}`;
|
714
826
|
}
|
715
827
|
|
716
828
|
const icon = PanelUtils.getIconForNetworkRequest(this.#props.selectedNetworkRequest);
|
717
829
|
// clang-format off
|
718
|
-
return
|
719
|
-
<div class=${resourceClass}
|
830
|
+
return html`<div class="select-element">
|
831
|
+
<div role=button class=${resourceClass}
|
720
832
|
@click=${this.#props.onSelectedNetworkRequestClick}>
|
721
833
|
${icon}${this.#props.selectedNetworkRequest?.name()}
|
722
834
|
</div></div>`;
|
@@ -730,9 +842,9 @@ export class FreestylerChatUi extends HTMLElement {
|
|
730
842
|
});
|
731
843
|
|
732
844
|
// clang-format off
|
733
|
-
return
|
845
|
+
return html`
|
734
846
|
<div class="select-element">
|
735
|
-
|
847
|
+
<devtools-button
|
736
848
|
.data=${{
|
737
849
|
variant: Buttons.Button.Variant.ICON_TOGGLE,
|
738
850
|
size: Buttons.Button.Size.REGULAR,
|
@@ -744,13 +856,13 @@ export class FreestylerChatUi extends HTMLElement {
|
|
744
856
|
jslogContext: 'select-element',
|
745
857
|
} as Buttons.Button.ButtonData}
|
746
858
|
@click=${this.#props.onInspectElementClick}
|
747
|
-
|
859
|
+
></devtools-button>
|
748
860
|
<div class=${resourceClass}>${
|
749
861
|
this.#props.selectedElement
|
750
862
|
? LitHtml.Directives.until(
|
751
863
|
Common.Linkifier.Linkifier.linkify(this.#props.selectedElement),
|
752
864
|
)
|
753
|
-
:
|
865
|
+
: html`<span>${
|
754
866
|
lockedString(UIStringsNotTranslate.noElementSelected)
|
755
867
|
}</span>`
|
756
868
|
}</div>
|
@@ -758,38 +870,73 @@ export class FreestylerChatUi extends HTMLElement {
|
|
758
870
|
// clang-format on
|
759
871
|
};
|
760
872
|
|
873
|
+
#renderSelectedTask = (): LitHtml.TemplateResult => {
|
874
|
+
const resourceClass = LitHtml.Directives.classMap({
|
875
|
+
'not-selected': !this.#props.selectedAiCallTree,
|
876
|
+
'resource-task': true,
|
877
|
+
});
|
878
|
+
|
879
|
+
if (!this.#props.selectedAiCallTree) {
|
880
|
+
return html`${LitHtml.nothing}`;
|
881
|
+
}
|
882
|
+
|
883
|
+
const {event} = this.#props.selectedAiCallTree.selectedNode;
|
884
|
+
if (!event) {
|
885
|
+
return html`${LitHtml.nothing}`;
|
886
|
+
}
|
887
|
+
|
888
|
+
const displayName = TimelineUtils.EntryName.nameForEntry(event);
|
889
|
+
const handleClick = (): void => {
|
890
|
+
const trace = new SDK.TraceObject.RevealableEvent(event);
|
891
|
+
void Common.Revealer.reveal(trace);
|
892
|
+
};
|
893
|
+
|
894
|
+
const iconData = {
|
895
|
+
iconName: 'performance',
|
896
|
+
color: 'var(--sys-color-on-surface-subtle)',
|
897
|
+
};
|
898
|
+
const icon = PanelUtils.createIconElement(iconData, 'Performance');
|
899
|
+
icon.classList.add('icon');
|
900
|
+
|
901
|
+
// clang-format off
|
902
|
+
return html`<div class="select-element">
|
903
|
+
<div role=button class=${resourceClass} @click=${handleClick}>
|
904
|
+
${icon}${displayName}
|
905
|
+
</div>
|
906
|
+
</div>`;
|
907
|
+
// clang-format on
|
908
|
+
};
|
909
|
+
|
761
910
|
#renderMessages = (): LitHtml.TemplateResult => {
|
762
911
|
// clang-format off
|
763
|
-
return
|
764
|
-
<
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
</div>
|
772
|
-
</main>
|
912
|
+
return html`
|
913
|
+
<div class="messages-container">
|
914
|
+
${this.#props.messages.map((message, _, array) =>
|
915
|
+
this.#renderChatMessage(message, {
|
916
|
+
isLast: array.at(-1) === message,
|
917
|
+
}),
|
918
|
+
)}
|
919
|
+
</div>
|
773
920
|
`;
|
774
921
|
// clang-format on
|
775
922
|
};
|
776
923
|
|
777
924
|
#renderEmptyState = (): LitHtml.TemplateResult => {
|
778
|
-
const suggestions = this.#
|
925
|
+
const suggestions = this.#getEmptyStateSuggestions();
|
779
926
|
|
780
927
|
// clang-format off
|
781
|
-
return
|
928
|
+
return html`<div class="empty-state-container">
|
782
929
|
<div class="header">
|
783
930
|
<div class="icon">
|
784
|
-
|
931
|
+
<devtools-icon
|
785
932
|
name="smart-assistant"
|
786
|
-
|
933
|
+
></devtools-icon>
|
787
934
|
</div>
|
788
|
-
<
|
935
|
+
<h1>${lockedString(UIStringsNotTranslate.emptyStateText)}</h1>
|
789
936
|
</div>
|
790
937
|
<div class="suggestions">
|
791
938
|
${suggestions.map(suggestion => {
|
792
|
-
return
|
939
|
+
return html`<devtools-button
|
793
940
|
class="suggestion"
|
794
941
|
@click=${() => this.#handleSuggestionClick(suggestion)}
|
795
942
|
.data=${
|
@@ -801,40 +948,57 @@ export class FreestylerChatUi extends HTMLElement {
|
|
801
948
|
disabled: this.#isTextInputDisabled(),
|
802
949
|
} as Buttons.Button.ButtonData
|
803
950
|
}
|
804
|
-
>${suggestion}
|
951
|
+
>${suggestion}</devtools-button>`;
|
805
952
|
})}
|
806
953
|
</div>
|
807
954
|
</div>`;
|
808
955
|
// clang-format on
|
809
956
|
};
|
810
957
|
|
811
|
-
#
|
958
|
+
#getEmptyStateSuggestions = (): string[] => {
|
959
|
+
if (!this.#props.agentType) {
|
960
|
+
return [];
|
961
|
+
}
|
812
962
|
switch (this.#props.agentType) {
|
813
963
|
case AgentType.FREESTYLER:
|
814
964
|
return [
|
965
|
+
'What can you help me with?',
|
815
966
|
'Why isn’t this element visible?',
|
816
|
-
'Why does this element overlap another?',
|
817
967
|
'How do I center this element?',
|
818
968
|
];
|
969
|
+
case AgentType.DRJONES_FILE:
|
970
|
+
return [
|
971
|
+
'What does this script do?',
|
972
|
+
'Is the script optimized for performance?',
|
973
|
+
'Does the script handle user input safely?',
|
974
|
+
];
|
819
975
|
case AgentType.DRJONES_NETWORK_REQUEST:
|
820
976
|
return [
|
821
|
-
'Why is this network request taking
|
977
|
+
'Why is this network request taking so long?',
|
978
|
+
'Are there any security headers present?',
|
979
|
+
'Why is the request failing?',
|
980
|
+
];
|
981
|
+
case AgentType.DRJONES_PERFORMANCE:
|
982
|
+
return [
|
983
|
+
'Identify performance issues in this call tree',
|
984
|
+
'Where is most of the time being spent in this call tree?',
|
985
|
+
'How can I reduce the time of this call tree?',
|
822
986
|
];
|
823
987
|
}
|
824
988
|
};
|
825
989
|
|
826
990
|
#renderChatInput = (): LitHtml.TemplateResult => {
|
827
991
|
// clang-format off
|
828
|
-
return
|
992
|
+
return html`
|
829
993
|
<div class="chat-input-container">
|
830
994
|
<textarea class="chat-input"
|
831
995
|
.disabled=${this.#isTextInputDisabled()}
|
832
996
|
wrap="hard"
|
833
997
|
@keydown=${this.#handleTextAreaKeyDown}
|
834
|
-
placeholder=${getInputPlaceholderString(this.#props.
|
998
|
+
placeholder=${getInputPlaceholderString(this.#props.state, this.#props.agentType)}
|
835
999
|
jslog=${VisualLogging.textField('query').track({ keydown: 'Enter' })}></textarea>
|
836
1000
|
${this.#props.isLoading
|
837
|
-
?
|
1001
|
+
? html`<devtools-button
|
838
1002
|
class="chat-input-button"
|
839
1003
|
aria-label=${lockedString(UIStringsNotTranslate.cancelButtonTitle)}
|
840
1004
|
@click=${this.#handleCancel}
|
@@ -848,8 +1012,8 @@ export class FreestylerChatUi extends HTMLElement {
|
|
848
1012
|
jslogContext: 'stop',
|
849
1013
|
} as Buttons.Button.ButtonData
|
850
1014
|
}
|
851
|
-
|
852
|
-
:
|
1015
|
+
></devtools-button>`
|
1016
|
+
: html`<devtools-button
|
853
1017
|
class="chat-input-button"
|
854
1018
|
aria-label=${lockedString(UIStringsNotTranslate.sendButtonTitle)}
|
855
1019
|
.data=${
|
@@ -863,24 +1027,28 @@ export class FreestylerChatUi extends HTMLElement {
|
|
863
1027
|
jslogContext: 'send',
|
864
1028
|
} as Buttons.Button.ButtonData
|
865
1029
|
}
|
866
|
-
|
1030
|
+
></devtools-button>`}
|
867
1031
|
</div>`;
|
868
1032
|
// clang-format on
|
869
1033
|
};
|
870
1034
|
|
871
1035
|
#getDisclaimerText = (): Platform.UIString.LocalizedString => {
|
872
|
-
if (this.#props.state === State.CONSENT_VIEW) {
|
1036
|
+
if (this.#props.state === State.CONSENT_VIEW || !this.#props.agentType) {
|
873
1037
|
return i18nString(UIStrings.inputDisclaimerForEmptyState);
|
874
1038
|
}
|
875
1039
|
switch (this.#props.agentType) {
|
876
1040
|
case AgentType.FREESTYLER:
|
877
1041
|
return lockedString(UIStringsNotTranslate.inputDisclaimerForFreestylerAgent);
|
1042
|
+
case AgentType.DRJONES_FILE:
|
1043
|
+
return lockedString(UIStringsNotTranslate.inputDisclaimerForDrJonesFileAgent);
|
878
1044
|
case AgentType.DRJONES_NETWORK_REQUEST:
|
879
1045
|
return lockedString(UIStringsNotTranslate.inputDisclaimerForDrJonesNetworkAgent);
|
1046
|
+
case AgentType.DRJONES_PERFORMANCE:
|
1047
|
+
return lockedString(UIStringsNotTranslate.inputDisclaimerForDrJonesPerformanceAgent);
|
880
1048
|
}
|
881
1049
|
};
|
882
1050
|
|
883
|
-
#
|
1051
|
+
#getConsentViewContents(): LitHtml.TemplateResult {
|
884
1052
|
const settingsLink = document.createElement('button');
|
885
1053
|
settingsLink.textContent = i18nString(UIStrings.settingsLink);
|
886
1054
|
settingsLink.classList.add('link');
|
@@ -889,24 +1057,54 @@ export class FreestylerChatUi extends HTMLElement {
|
|
889
1057
|
void UI.ViewManager.ViewManager.instance().showView('chrome-ai');
|
890
1058
|
});
|
891
1059
|
settingsLink.setAttribute('jslog', `${VisualLogging.action('open-ai-settings').track({click: true})}`);
|
1060
|
+
return html`${i18n.i18n.getFormatLocalizedString(str_, this.#getStringForConsentView(), {PH1: settingsLink})}`;
|
1061
|
+
}
|
1062
|
+
|
1063
|
+
#getStringForConsentView(): string {
|
892
1064
|
const config = Common.Settings.Settings.instance().getHostConfig();
|
1065
|
+
if (config.devToolsAiAssistancePerformanceAgent?.enabled ||
|
1066
|
+
config.devToolsAiAssistancePerformanceAgentDogfood?.enabled) {
|
1067
|
+
return UIStrings.turnOnForStylesRequestsPerformanceAndFiles;
|
1068
|
+
}
|
1069
|
+
if (config.devToolsAiAssistanceFileAgent?.enabled || config.devToolsAiAssistanceFileAgentDogfood?.enabled) {
|
1070
|
+
return UIStrings.turnOnForStylesRequestsAndFiles;
|
1071
|
+
}
|
1072
|
+
if (config.devToolsAiAssistanceNetworkAgent?.enabled || config.devToolsExplainThisResourceDogfood?.enabled) {
|
1073
|
+
return UIStrings.turnOnForStylesAndRequests;
|
1074
|
+
}
|
1075
|
+
return UIStrings.turnOnForStyles;
|
1076
|
+
}
|
893
1077
|
|
1078
|
+
#getUnavailableAidaAvailabilityContents(
|
1079
|
+
aidaAvailability:
|
1080
|
+
Exclude<Host.AidaClient.AidaAccessPreconditions, Host.AidaClient.AidaAccessPreconditions.AVAILABLE>):
|
1081
|
+
LitHtml.TemplateResult {
|
1082
|
+
switch (aidaAvailability) {
|
1083
|
+
case Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL:
|
1084
|
+
case Host.AidaClient.AidaAccessPreconditions.SYNC_IS_PAUSED: {
|
1085
|
+
return html`${i18nString(UIStrings.notLoggedIn)}`;
|
1086
|
+
}
|
1087
|
+
case Host.AidaClient.AidaAccessPreconditions.NO_INTERNET: {
|
1088
|
+
return html`${i18nString(UIStrings.offline)}`;
|
1089
|
+
}
|
1090
|
+
}
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
#renderDisabledState(contents: LitHtml.TemplateResult): LitHtml.TemplateResult {
|
894
1094
|
// clang-format off
|
895
|
-
return
|
1095
|
+
return html`
|
896
1096
|
<div class="empty-state-container">
|
897
|
-
<div class="
|
898
|
-
<div class="
|
899
|
-
|
1097
|
+
<div class="disabled-view">
|
1098
|
+
<div class="disabled-view-icon-container">
|
1099
|
+
<devtools-icon .data=${{
|
900
1100
|
iconName: 'smart-assistant',
|
901
1101
|
width: 'var(--sys-size-8)',
|
902
1102
|
height: 'var(--sys-size-8)',
|
903
1103
|
} as IconButton.Icon.IconData}>
|
1104
|
+
</devtools-icon>
|
904
1105
|
</div>
|
905
1106
|
<div>
|
906
|
-
${
|
907
|
-
i18n.i18n.getFormatLocalizedString(str_, UIStrings.turnOnForStylesAndRequests, {PH1: settingsLink}) :
|
908
|
-
i18n.i18n.getFormatLocalizedString(str_, UIStrings.turnOnForStyles, {PH1: settingsLink})
|
909
|
-
}
|
1107
|
+
${contents}
|
910
1108
|
</div>
|
911
1109
|
</div>
|
912
1110
|
</div>
|
@@ -914,43 +1112,88 @@ export class FreestylerChatUi extends HTMLElement {
|
|
914
1112
|
// clang-format on
|
915
1113
|
}
|
916
1114
|
|
1115
|
+
#renderNoAgentState(): LitHtml.TemplateResult {
|
1116
|
+
const config = Common.Settings.Settings.instance().getHostConfig();
|
1117
|
+
|
1118
|
+
// clang-format off
|
1119
|
+
return html`
|
1120
|
+
<div class="messages-container">
|
1121
|
+
<section class="no-agent-message" jslog=${VisualLogging.section('no-agent-entrypoint')}>
|
1122
|
+
<div class="header">
|
1123
|
+
<devtools-icon name="smart-assistant"></devtools-icon>
|
1124
|
+
<h2>${lockedString(UIStringsNotTranslate.ai)}</h2>
|
1125
|
+
</div>
|
1126
|
+
<div class="instructions">
|
1127
|
+
<p>${lockedString(UIStringsNotTranslate.getStarted)}</p>
|
1128
|
+
${config.devToolsFreestyler?.enabled ? html`
|
1129
|
+
<p><strong>${lockedString(UIStringsNotTranslate.cssHelp)}</strong> ${lockedString(UIStringsNotTranslate.cssHelpExplainer)}</p>
|
1130
|
+
` : LitHtml.nothing}
|
1131
|
+
${(config.devToolsAiAssistanceFileAgent?.enabled || config.devToolsAiAssistanceFileAgentDogfood?.enabled) ? html`
|
1132
|
+
<p><strong>${lockedString(UIStringsNotTranslate.fileHelp)}</strong> ${lockedString(UIStringsNotTranslate.fileHelpExplainer)}</p>
|
1133
|
+
` : LitHtml.nothing}
|
1134
|
+
${(config.devToolsAiAssistanceNetworkAgent?.enabled || config.devToolsExplainThisResourceDogfood?.enabled) ? html`
|
1135
|
+
<p><strong>${lockedString(UIStringsNotTranslate.networkHelp)}</strong> ${lockedString(UIStringsNotTranslate.networkHelpExplainer)}</p>
|
1136
|
+
` : LitHtml.nothing}
|
1137
|
+
${(config.devToolsAiAssistancePerformanceAgent?.enabled || config.devToolsAiAssistancePerformanceAgentDogfood?.enabled) ? html`
|
1138
|
+
<p><strong>${lockedString(UIStringsNotTranslate.performanceHelp)}</strong> ${lockedString(UIStringsNotTranslate.performanceHelpExplainer)}</p>
|
1139
|
+
` : LitHtml.nothing}
|
1140
|
+
</div>
|
1141
|
+
</section>
|
1142
|
+
</div>
|
1143
|
+
`;
|
1144
|
+
// clang-format on
|
1145
|
+
}
|
1146
|
+
|
1147
|
+
#renderMainContents(): LitHtml.TemplateResult {
|
1148
|
+
if (this.#props.state === State.CONSENT_VIEW) {
|
1149
|
+
return this.#renderDisabledState(this.#getConsentViewContents());
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
if (this.#props.aidaAvailability !== Host.AidaClient.AidaAccessPreconditions.AVAILABLE) {
|
1153
|
+
return this.#renderDisabledState(this.#getUnavailableAidaAvailabilityContents(this.#props.aidaAvailability));
|
1154
|
+
}
|
1155
|
+
|
1156
|
+
if (!this.#props.agentType) {
|
1157
|
+
return this.#renderNoAgentState();
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
if (this.#props.messages.length > 0) {
|
1161
|
+
return this.#renderMessages();
|
1162
|
+
}
|
1163
|
+
|
1164
|
+
return this.#renderEmptyState();
|
1165
|
+
}
|
1166
|
+
|
917
1167
|
#render(): void {
|
918
1168
|
// clang-format off
|
919
|
-
LitHtml.render(
|
1169
|
+
LitHtml.render(html`
|
920
1170
|
<div class="chat-ui">
|
921
|
-
|
922
|
-
this.#
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
${this.#props.state !== State.CONSENT_VIEW ? LitHtml.html`
|
930
|
-
<div class="input-header">
|
931
|
-
<div class="header-link-container">
|
932
|
-
${this.#renderSelection()}
|
1171
|
+
<main @scroll=${this.#handleScroll}>
|
1172
|
+
${this.#renderMainContents()}
|
1173
|
+
<form class="input-form" @submit=${this.#handleSubmit}>
|
1174
|
+
${this.#props.state !== State.CONSENT_VIEW ? html`
|
1175
|
+
<div class="input-header">
|
1176
|
+
<div class="header-link-container">
|
1177
|
+
${this.#renderSelection()}
|
1178
|
+
</div>
|
933
1179
|
</div>
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
</
|
1180
|
+
` : LitHtml.nothing}
|
1181
|
+
${this.#renderChatInput()}
|
1182
|
+
</form>
|
1183
|
+
</main>
|
938
1184
|
<footer class="disclaimer">
|
939
|
-
<p class="disclaimer-text"
|
940
|
-
this.#getDisclaimerText()
|
941
|
-
|
942
|
-
href="#"
|
1185
|
+
<p class="disclaimer-text">
|
1186
|
+
${this.#getDisclaimerText()}
|
1187
|
+
<button
|
943
1188
|
class="link"
|
1189
|
+
role="link"
|
944
1190
|
jslog=${VisualLogging.link('open-ai-settings').track({
|
945
1191
|
click: true,
|
946
1192
|
})}
|
947
|
-
@click=${(
|
948
|
-
|
949
|
-
void UI.ViewManager.ViewManager.instance().showView(
|
950
|
-
'chrome-ai',
|
951
|
-
);
|
1193
|
+
@click=${() => {
|
1194
|
+
void UI.ViewManager.ViewManager.instance().showView('chrome-ai');
|
952
1195
|
}}
|
953
|
-
>${
|
1196
|
+
>${i18nString(UIStrings.learnAbout)}</button>
|
954
1197
|
</p>
|
955
1198
|
</footer>
|
956
1199
|
</div>
|