chrome-devtools-frontend 1.0.1367881 → 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/.vscode/extensions.json +4 -4
- package/config/gni/devtools_grd_files.gni +30 -8
- package/config/gni/devtools_image_files.gni +3 -0
- package/docs/README.md +1 -5
- package/docs/checklist/javascript.md +45 -8
- package/docs/contributing/design.md +1 -1
- package/docs/contributing/settings-experiments-features.md +1 -1
- package/docs/cookbook/README.md +12 -0
- package/docs/cookbook/create_new_issues.md +91 -0
- package/docs/cookbook/dependencies.md +103 -0
- package/docs/cookbook/localization.md +320 -0
- package/docs/cookbook/navbar.md +8 -0
- package/docs/cookbook/release_management.md +60 -0
- package/docs/cookbook/uma_metrics.md +121 -0
- package/docs/dependencies.md +1 -100
- package/docs/l10n.md +1 -295
- package/docs/release_management.md +1 -53
- package/extensions/cxx_debugging/e2e/standalone/MemoryInspector_test.ts +1 -1
- package/extensions/cxx_debugging/e2e/tsconfig.json +1 -0
- package/extensions/cxx_debugging/src/ExtensionOptions.ts +6 -7
- package/extensions/cxx_debugging/tests/CreditsItem_test.ts +4 -4
- package/front_end/.eslintrc.js +0 -1
- package/front_end/Images/src/center-focus-weak.svg +1 -0
- package/front_end/Images/src/history.svg +3 -0
- package/front_end/Images/src/home.svg +1 -0
- package/front_end/core/common/Color.ts +10 -0
- package/front_end/core/common/ResourceType.test.ts +26 -26
- package/front_end/core/common/ResourceType.ts +21 -12
- package/front_end/core/common/Revealer.ts +5 -0
- package/front_end/core/common/Settings.ts +5 -1
- package/front_end/core/host/AidaClient.ts +58 -0
- package/front_end/core/host/InspectorFrontendHost.ts +1 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +8 -1
- package/front_end/core/host/UserMetrics.ts +16 -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/root/Runtime.ts +15 -7
- package/front_end/{panels/animation → core/sdk}/AnimationModel.test.ts +85 -6
- package/front_end/{panels/animation → core/sdk}/AnimationModel.ts +302 -36
- package/front_end/core/sdk/CSSContainerQuery.ts +4 -2
- package/front_end/core/sdk/CSSMatchedStyles.test.ts +4 -0
- package/front_end/core/sdk/CSSMatchedStyles.ts +13 -10
- package/front_end/core/sdk/CSSMetadata.ts +6 -0
- package/front_end/core/sdk/CSSStyleDeclaration.test.ts +10 -0
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +3 -3
- package/front_end/core/sdk/DebuggerModel.test.ts +2 -0
- package/front_end/core/sdk/EmulationModel.ts +32 -0
- package/front_end/core/sdk/EnhancedTracesParser.test.ts +4 -4
- package/front_end/core/sdk/EnhancedTracesParser.ts +4 -5
- package/front_end/core/sdk/RehydratingConnection.test.ts +190 -0
- package/front_end/core/sdk/RehydratingConnection.ts +310 -0
- package/front_end/core/sdk/RehydratingObject.ts +26 -2
- package/front_end/core/sdk/RuntimeModel.ts +31 -0
- package/front_end/core/sdk/Script.ts +1 -1
- package/front_end/core/sdk/TraceObject.ts +8 -0
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/devtools_compatibility.js +0 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +95 -74
- package/front_end/entrypoints/main/MainImpl.ts +10 -0
- package/front_end/generated/InspectorBackendCommands.js +10 -9
- package/front_end/generated/SupportedCSSProperties.js +15 -1
- package/front_end/generated/protocol-mapping.d.ts +4 -3
- package/front_end/generated/protocol-proxy-api.d.ts +4 -3
- package/front_end/generated/protocol.ts +31 -2
- package/front_end/legacy_test_runner/network_test_runner/network_test_runner.js +1 -0
- package/front_end/models/har/HARFormat.ts +1 -0
- package/front_end/models/har/Importer.test.ts +16 -2
- package/front_end/models/har/Importer.ts +2 -2
- package/front_end/models/har/Log.test.ts +23 -0
- package/front_end/models/har/Log.ts +6 -4
- package/front_end/models/heap_snapshot_model/HeapSnapshotModel.ts +4 -2
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +58 -18
- package/front_end/models/issues_manager/CookieIssue.ts +12 -0
- package/front_end/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
- package/front_end/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
- package/front_end/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +69 -18
- package/front_end/models/live-metrics/LiveMetrics.ts +116 -19
- package/front_end/models/live-metrics/web-vitals-injected/OnEachInteraction.ts +24 -61
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +49 -21
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +43 -5
- package/front_end/models/timeline_model/TimelineModelFilter.ts +2 -2
- package/front_end/models/trace/Processor.ts +5 -1
- 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.ts +17 -0
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +2 -2
- package/front_end/models/trace/handlers/RendererHandler.test.ts +4 -4
- package/front_end/models/trace/helpers/Timing.test.ts +29 -0
- package/front_end/models/trace/helpers/Timing.ts +18 -0
- package/front_end/models/trace/helpers/TreeHelpers.test.ts +52 -34
- package/front_end/models/trace/helpers/TreeHelpers.ts +135 -45
- package/front_end/models/trace/insights/CumulativeLayoutShift.test.ts +22 -0
- package/front_end/models/trace/insights/CumulativeLayoutShift.ts +62 -20
- package/front_end/models/trace/insights/ThirdPartyWeb.ts +13 -183
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.test.ts +4 -4
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +9 -5
- package/front_end/models/trace/lantern/simulation/Simulator.ts +1 -1
- package/front_end/models/trace/lantern/testing/MetricTestUtils.ts +4 -0
- package/front_end/models/trace/types/TraceEvents.ts +68 -2
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -1
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +3 -3
- package/front_end/panels/animation/AnimationTimeline.test.ts +15 -15
- package/front_end/panels/animation/AnimationTimeline.ts +85 -53
- package/front_end/panels/animation/AnimationUI.ts +5 -6
- package/front_end/panels/animation/animation-meta.ts +15 -0
- package/front_end/panels/animation/animation.ts +0 -4
- package/front_end/panels/application/ApplicationPanelSidebar.test.ts +16 -0
- package/front_end/panels/application/ApplicationPanelSidebar.ts +13 -9
- package/front_end/panels/application/ExtensionStorageItemsView.test.ts +72 -0
- package/front_end/panels/application/ExtensionStorageItemsView.ts +23 -1
- package/front_end/panels/application/ExtensionStorageModel.test.ts +15 -0
- package/front_end/panels/application/ExtensionStorageModel.ts +10 -1
- package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -3
- package/front_end/panels/application/SharedStorageItemsView.test.ts +1 -20
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +1 -0
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +3 -7
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -2
- package/front_end/panels/application/components/FrameDetailsView.ts +8 -8
- package/front_end/panels/application/components/InterestGroupAccessGrid.ts +4 -8
- package/front_end/panels/application/components/PermissionsPolicySection.ts +3 -4
- package/front_end/panels/application/components/ReportsGrid.ts +2 -4
- package/front_end/panels/application/components/SharedStorageAccessGrid.ts +4 -9
- package/front_end/panels/application/components/StackTrace.ts +6 -9
- package/front_end/panels/application/components/StorageMetadataView.ts +1 -2
- package/front_end/panels/application/components/TrustTokensView.ts +1 -2
- package/front_end/panels/application/preloading/PreloadingView.ts +5 -5
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.test.ts +2 -2
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.ts +3 -9
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +2 -5
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +2 -2
- package/front_end/panels/application/preloading/components/PreloadingGrid.test.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +3 -6
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.ts +1 -3
- package/front_end/panels/application/preloading/components/PreloadingString.ts +5 -0
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +2 -3
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +7 -10
- package/front_end/panels/autofill/AutofillView.ts +2 -5
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +3 -5
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +4 -6
- package/front_end/panels/elements/CSSRuleValidator.ts +0 -5
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -2
- package/front_end/panels/elements/ElementStatePaneWidget.ts +5 -0
- package/front_end/panels/elements/ElementsPanel.ts +4 -4
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.test.ts +90 -0
- package/front_end/panels/elements/StylePropertyTreeElement.ts +29 -2
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +3 -5
- package/front_end/panels/elements/components/LayoutPane.ts +2 -3
- package/front_end/panels/elements/components/QueryContainer.ts +3 -5
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +13 -0
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +0 -2
- package/front_end/panels/event_listeners/EventListenersView.ts +2 -2
- package/front_end/panels/event_listeners/eventListenersView.css +4 -3
- package/front_end/panels/explain/components/ConsoleInsight.test.ts +56 -8
- package/front_end/panels/explain/components/ConsoleInsight.ts +53 -36
- 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 +341 -56
- package/front_end/panels/freestyler/DrJonesFileAgent.test.ts +70 -43
- package/front_end/panels/freestyler/DrJonesFileAgent.ts +75 -79
- package/front_end/panels/freestyler/DrJonesNetworkAgent.test.ts +135 -72
- package/front_end/panels/freestyler/DrJonesNetworkAgent.ts +219 -117
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.test.ts +102 -56
- package/front_end/panels/freestyler/DrJonesPerformanceAgent.ts +118 -114
- package/front_end/panels/freestyler/FreestylerAgent.test.ts +108 -100
- package/front_end/panels/freestyler/FreestylerAgent.ts +65 -183
- package/front_end/panels/freestyler/FreestylerEvaluateAction.test.ts +40 -36
- package/front_end/panels/freestyler/FreestylerEvaluateAction.ts +15 -14
- package/front_end/panels/freestyler/FreestylerPanel.test.ts +548 -15
- package/front_end/panels/freestyler/FreestylerPanel.ts +385 -132
- package/front_end/panels/freestyler/components/FreestylerChatUi.test.ts +34 -4
- package/front_end/panels/freestyler/components/FreestylerChatUi.ts +186 -92
- package/front_end/panels/freestyler/components/UserActionRow.test.ts +60 -0
- package/front_end/panels/freestyler/components/{ProvideFeedback.ts → UserActionRow.ts} +42 -16
- package/front_end/panels/freestyler/components/freestylerChatUi.css +100 -97
- package/front_end/panels/freestyler/components/userActionRow.css +149 -0
- package/front_end/panels/freestyler/freestyler-meta.ts +50 -23
- package/front_end/panels/freestyler/freestyler.ts +1 -1
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +14 -0
- package/front_end/panels/issues/IssueAggregator.ts +10 -1
- package/front_end/panels/issues/components/ElementsPanelLink.ts +0 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +12 -4
- package/front_end/panels/lighthouse/LighthouseStartView.ts +1 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +7 -12
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +3 -4
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -2
- package/front_end/panels/network/BinaryResourceView.ts +3 -2
- package/front_end/panels/network/NetworkDataGridNode.test.ts +29 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +56 -5
- package/front_end/panels/network/NetworkLogView.test.ts +29 -0
- package/front_end/panels/network/NetworkLogView.ts +2 -2
- package/front_end/panels/network/NetworkPanel.test.ts +3 -22
- package/front_end/panels/network/NetworkPanel.ts +26 -7
- package/front_end/panels/network/NetworkWaterfallColumn.ts +2 -0
- package/front_end/panels/network/RequestResponseView.test.ts +2 -2
- package/front_end/panels/network/RequestResponseView.ts +6 -10
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -1
- package/front_end/panels/network/components/HeaderSectionRow.ts +11 -12
- package/front_end/panels/network/components/RequestHeaderSection.ts +4 -9
- package/front_end/panels/network/components/RequestHeadersView.css +7 -0
- package/front_end/panels/network/components/RequestTrustTokensView.ts +1 -1
- package/front_end/panels/network/network.ts +0 -2
- package/front_end/panels/network/networkConfigView.css +8 -7
- package/front_end/panels/network/networkLogView.css +32 -2
- package/front_end/panels/network/networkPanel.css +2 -1
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +11 -10
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +12 -8
- package/front_end/panels/profiler/HeapSnapshotProxy.ts +6 -6
- package/front_end/panels/protocol_monitor/components/JSONEditor.ts +5 -5
- package/front_end/panels/recorder/components/StartView.ts +4 -5
- package/front_end/panels/recorder/components/recordingView.css +1 -4
- package/front_end/panels/recorder/components/selectButton.css +6 -50
- package/front_end/panels/recorder/models/RecorderShortcutHelper.ts +1 -1
- package/front_end/panels/recorder/models/RecordingSession.ts +4 -4
- 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/SearchView.ts +0 -2
- 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} +24 -13
- 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 +27 -0
- package/front_end/panels/sensors/sensors-meta.ts +59 -0
- package/front_end/panels/settings/AISettingsTab.test.ts +79 -11
- package/front_end/panels/settings/AISettingsTab.ts +109 -22
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +44 -30
- package/front_end/panels/settings/KeybindsSettingsTab.ts +34 -17
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/settings/aiSettingsTab.css +13 -0
- package/front_end/panels/settings/components/SyncSection.ts +1 -3
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +51 -29
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +24 -12
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +11 -10
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +14 -42
- package/front_end/panels/settings/keybindsSettingsTab.css +51 -89
- 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/NavigatorView.ts +31 -23
- package/front_end/panels/sources/SourcesPanel.ts +25 -6
- package/front_end/panels/sources/SourcesView.test.ts +1 -0
- package/front_end/panels/sources/SourcesView.ts +2 -2
- package/front_end/panels/sources/components/BreakpointsView.ts +0 -1
- package/front_end/panels/sources/components/HeadersView.ts +0 -1
- package/front_end/panels/sources/navigatorTree.css +11 -0
- package/front_end/panels/timeline/AnnotationHelpers.ts +3 -3
- package/front_end/panels/timeline/AppenderUtils.ts +1 -3
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +21 -9
- package/front_end/panels/timeline/EntriesFilter.test.ts +19 -36
- package/front_end/panels/timeline/EntriesFilter.ts +6 -4
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +9 -9
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +2 -1
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +6 -6
- package/front_end/panels/timeline/NetworkTrackAppender.ts +1 -8
- package/front_end/panels/timeline/ThreadAppender.ts +5 -6
- package/front_end/panels/timeline/TimelineDetailsView.test.ts +85 -42
- package/front_end/panels/timeline/TimelineDetailsView.ts +71 -42
- package/front_end/panels/timeline/TimelineEventOverview.ts +10 -10
- package/front_end/panels/timeline/TimelineFilters.test.ts +4 -4
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +58 -62
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +16 -15
- package/front_end/panels/timeline/TimelineFlameChartView.test.ts +2 -3
- package/front_end/panels/timeline/TimelineFlameChartView.ts +102 -57
- package/front_end/panels/timeline/TimelineHistoryManager.ts +4 -0
- package/front_end/panels/timeline/TimelineMiniMap.ts +0 -8
- package/front_end/panels/timeline/TimelinePanel.ts +89 -44
- package/front_end/panels/timeline/TimelineSelection.test.ts +91 -36
- package/front_end/panels/timeline/TimelineSelection.ts +48 -60
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +3 -8
- package/front_end/panels/timeline/TimelineTreeView.ts +7 -5
- package/front_end/panels/timeline/TimelineUIUtils.test.ts +51 -4
- package/front_end/panels/timeline/TimelineUIUtils.ts +37 -27
- package/front_end/panels/timeline/UIDevtoolsController.ts +5 -5
- package/front_end/panels/timeline/UIDevtoolsUtils.ts +59 -68
- package/front_end/panels/timeline/components/BreadcrumbsUI.ts +2 -3
- package/front_end/panels/timeline/components/LayoutShiftDetails.ts +25 -8
- package/front_end/panels/timeline/components/LiveMetricsView.test.ts +230 -68
- package/front_end/panels/timeline/components/LiveMetricsView.ts +146 -112
- package/front_end/panels/timeline/components/NetworkRequestDetails.test.ts +14 -7
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +47 -117
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +64 -74
- package/front_end/panels/timeline/components/Sidebar.ts +2 -1
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +11 -13
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +51 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +1 -2
- package/front_end/panels/timeline/components/Utils.ts +28 -29
- package/front_end/panels/timeline/components/components.ts +0 -4
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +10 -3
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +8 -4
- package/front_end/panels/timeline/components/insights/EventRef.ts +0 -1
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +1 -1
- package/front_end/panels/timeline/components/insights/Helpers.ts +4 -4
- package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +3 -5
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +1 -1
- package/front_end/panels/timeline/components/insights/LCPPhases.ts +7 -1
- package/front_end/panels/timeline/components/insights/NodeLink.ts +0 -1
- package/front_end/panels/timeline/components/insights/README.md +2 -2
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +5 -7
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +14 -5
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +112 -34
- package/front_end/panels/timeline/components/insights/Table.ts +1 -3
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +6 -9
- package/front_end/panels/timeline/components/insights/Viewport.ts +3 -5
- package/front_end/panels/timeline/components/layoutShiftDetails.css +7 -1
- package/front_end/panels/timeline/components/liveMetricsView.css +59 -18
- package/front_end/panels/timeline/components/networkRequestDetails.css +9 -49
- package/front_end/panels/timeline/components/networkRequestTooltip.css +34 -11
- package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +20 -0
- package/front_end/panels/timeline/extensions/ExtensionUI.ts +7 -7
- package/front_end/panels/timeline/fixtures/traces/README.md +4 -0
- package/front_end/panels/timeline/fixtures/traces/scheduler-post-task.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/unsized-images.json.gz +0 -0
- package/front_end/panels/timeline/historyToolbarButton.css +33 -19
- package/front_end/panels/timeline/overlays/OverlaysImpl.test.ts +0 -16
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +48 -22
- package/front_end/panels/timeline/overlays/components/entriesLinkOverlay.css +8 -0
- package/front_end/panels/timeline/overlays/components/entryLabelOverlay.css +16 -0
- package/front_end/panels/timeline/timeline-meta.ts +11 -0
- package/front_end/panels/timeline/timelineFlameChartView.css +16 -0
- package/front_end/panels/timeline/track_appenders/AnimationsTrackAppender.test.ts +2 -3
- package/front_end/panels/timeline/track_appenders/AppenderUtils.test.ts +1 -6
- package/front_end/panels/timeline/track_appenders/CompatibilityTracksAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/ExtensionTrackAppender.test.ts +7 -8
- package/front_end/panels/timeline/track_appenders/GPUTrackAppender.test.ts +2 -2
- package/front_end/panels/timeline/track_appenders/InteractionsTrackAppender.test.ts +3 -3
- package/front_end/panels/timeline/track_appenders/LayoutShiftsTrackAppender.test.ts +3 -4
- package/front_end/panels/timeline/track_appenders/ServerTimingsTrackAppender.test.ts +2 -3
- package/front_end/panels/timeline/track_appenders/ThreadAppender.test.ts +5 -10
- package/front_end/panels/timeline/track_appenders/TimingsTrackAppender.test.ts +5 -5
- package/front_end/panels/timeline/utils/AICallTree.test.ts +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 +8 -3
- package/front_end/panels/timeline/utils/Helpers.ts +3 -4
- package/front_end/panels/timeline/utils/IgnoreList.test.ts +86 -0
- package/front_end/panels/timeline/utils/IgnoreList.ts +11 -4
- package/front_end/panels/timeline/utils/NetworkRequest.ts +1 -1
- package/front_end/panels/timeline/utils/SourceMapsResolver.test.ts +51 -18
- package/front_end/panels/timeline/utils/SourceMapsResolver.ts +3 -1
- package/front_end/panels/timeline/utils/utils.ts +6 -0
- package/front_end/panels/utils/utils.ts +56 -4
- package/front_end/services/trace_bounds/TraceBounds.ts +7 -1
- package/front_end/testing/ContextMenuHelpers.ts +1 -1
- package/front_end/testing/EnvironmentHelpers.ts +25 -3
- package/front_end/testing/NetworkHelpers.ts +38 -0
- package/front_end/testing/StorageItemsViewHelpers.ts +24 -0
- package/front_end/testing/TraceHelpers.ts +10 -0
- package/front_end/third_party/additional_readme_paths.json +1 -0
- package/front_end/third_party/codemirror.next/chunk/angular.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/angular.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/legacy.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/less.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/php.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/python.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/sass.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/svelte.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/vue.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/vue.js.map +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js.map +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +68 -3
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +2 -1
- package/front_end/third_party/intl-messageformat/README.chromium +2 -1
- package/front_end/third_party/intl-messageformat/package/intl-messageformat.esm.js +0 -1
- package/front_end/third_party/json5/LICENSE +23 -0
- package/front_end/third_party/json5/README.chromium +17 -0
- package/front_end/third_party/json5/json5-tsconfig.json +8 -0
- package/front_end/third_party/json5/json5.ts +4 -0
- package/front_end/third_party/json5/lib/index.d.ts +2 -0
- package/front_end/third_party/json5/lib/index.js +1121 -0
- package/front_end/third_party/json5/package/lib/index.d.ts +4 -0
- package/front_end/third_party/json5/package/lib/index.js +9 -0
- package/front_end/third_party/json5/package/lib/parse.d.ts +15 -0
- package/front_end/third_party/json5/package/lib/parse.js +1114 -0
- package/front_end/third_party/json5/package/lib/register.js +13 -0
- package/front_end/third_party/json5/package/lib/require.js +4 -0
- package/front_end/third_party/json5/package/lib/stringify.d.ts +89 -0
- package/front_end/third_party/json5/package/lib/stringify.js +261 -0
- package/front_end/third_party/json5/package/lib/unicode.d.ts +3 -0
- package/front_end/third_party/json5/package/lib/unicode.js +4 -0
- package/front_end/third_party/json5/package/lib/util.d.ts +5 -0
- package/front_end/third_party/json5/package/lib/util.js +35 -0
- package/front_end/third_party/json5/package.json +8 -0
- package/front_end/third_party/json5/rebuild.sh +5 -0
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +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.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js +18 -11
- 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.js +12 -5
- 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.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Binding.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/DeviceRequestPrompt.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js +17 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Input.d.ts.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.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts +7 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.js +0 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +14 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +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/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/ARIAQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/CSSSelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ScreenRecorder.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util/fs.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util/fs.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +6 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +15 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Deferred.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/ErrorLike.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Function.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.js +18 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/disposable.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/encoding.js +4 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/encoding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/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 -578
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +316 -150
- 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.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js +16 -9
- 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.js +12 -5
- 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.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Binding.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Binding.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ChromeTargetManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js +17 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ExtensionTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Input.d.ts.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.js +12 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts +7 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.js +0 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +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/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/ARIAQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/CSSSelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ScreenRecorder.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core-browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +6 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Deferred.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/ErrorLike.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Function.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/Mutex.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.js +12 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/decorators.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/disposable.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/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 -578
- package/front_end/third_party/puppeteer/package/package.json +6 -6
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +8 -8
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/api/CDPSession.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +44 -44
- 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 +88 -87
- package/front_end/third_party/puppeteer/package/src/api/Realm.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/api/WebWorker.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/api/api.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/api/locators/locators.ts +79 -79
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +9 -5
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/bidi/CDPSession.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/Connection.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +3 -3
- 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 +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +17 -17
- package/front_end/third_party/puppeteer/package/src/bidi/core/Connection.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/core/Navigation.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/bidi/core/Realm.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/Session.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/UserContext.ts +9 -9
- package/front_end/third_party/puppeteer/package/src/bidi/core/UserPrompt.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/core.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/bidi/util.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/AriaQueryHandler.ts +10 -6
- package/front_end/third_party/puppeteer/package/src/cdp/Binding.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +24 -24
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/CDPSession.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/ChromeTargetManager.ts +19 -17
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/Coverage.ts +11 -11
- package/front_end/third_party/puppeteer/package/src/cdp/DeviceRequestPrompt.ts +17 -17
- package/front_end/third_party/puppeteer/package/src/cdp/Dialog.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +6 -6
- package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +34 -34
- package/front_end/third_party/puppeteer/package/src/cdp/ExecutionContext.ts +18 -19
- package/front_end/third_party/puppeteer/package/src/cdp/ExtensionTransport.ts +7 -3
- package/front_end/third_party/puppeteer/package/src/cdp/FirefoxTargetManager.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -16
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManager.ts +20 -20
- package/front_end/third_party/puppeteer/package/src/cdp/FrameManagerEvents.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Input.ts +16 -14
- package/front_end/third_party/puppeteer/package/src/cdp/IsolatedWorld.ts +14 -13
- package/front_end/third_party/puppeteer/package/src/cdp/JSHandle.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/LifecycleWatcher.ts +11 -11
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkEventManager.ts +15 -15
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +38 -37
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +71 -70
- package/front_end/third_party/puppeteer/package/src/cdp/PredefinedNetworkConditions.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Target.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/cdp/TargetManager.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Tracing.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/WebWorker.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/cdp/cdp.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/cdp/utils.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +5 -5
- package/front_end/third_party/puppeteer/package/src/common/CSSQueryHandler.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +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 +12 -12
- package/front_end/third_party/puppeteer/package/src/common/TaskQueue.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/TextQueryHandler.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/common/WaitTask.ts +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 +15 -14
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/ARIAQuerySelector.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/injected/CSSSelector.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/injected/PQuerySelector.ts +7 -7
- package/front_end/third_party/puppeteer/package/src/injected/PierceQuerySelector.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/injected/TextContent.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/TextQuerySelector.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/XPathQuerySelector.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/injected/util.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +38 -30
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +11 -12
- package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +8 -8
- package/front_end/third_party/puppeteer/package/src/node/NodeWebSocketTransport.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/PipeTransport.ts +7 -3
- package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +10 -10
- package/front_end/third_party/puppeteer/package/src/node/node.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/puppeteer-core.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/AsyncIterableUtil.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/Deferred.ts +3 -2
- package/front_end/third_party/puppeteer/package/src/util/ErrorLike.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/Function.ts +4 -4
- package/front_end/third_party/puppeteer/package/src/util/Mutex.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/assert.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/decorators.ts +8 -9
- package/front_end/third_party/puppeteer/package/src/util/encoding.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/util/util.ts +1 -0
- package/front_end/third_party/web-vitals/README.chromium +3 -3
- package/front_end/third_party/web-vitals/package/README.md +36 -23
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.d.ts +2 -1
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +11 -13
- package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +2 -22
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -2
- package/front_end/third_party/web-vitals/package/dist/modules/lib/interactions.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/onLCP.js +4 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.iife.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.attribution.umd.cjs +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.iife.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/web-vitals.umd.cjs +1 -1
- package/front_end/third_party/web-vitals/package/package.json +1 -1
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +11 -14
- package/front_end/third_party/web-vitals/package/src/lib/interactions.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/onLCP.ts +4 -1
- package/front_end/third_party/web-vitals/rebuild.sh +14 -0
- package/front_end/third_party/web-vitals/web-vitals.ts +2 -0
- package/front_end/ui/components/adorners/Adorner.ts +0 -1
- package/front_end/ui/components/buttons/Button.ts +0 -1
- package/front_end/ui/components/buttons/button.css +1 -0
- package/front_end/ui/components/cards/Card.test.ts +31 -5
- package/front_end/ui/components/cards/Card.ts +22 -3
- package/front_end/ui/components/cards/card.css +25 -7
- package/front_end/ui/components/chrome_link/ChromeLink.ts +0 -1
- package/front_end/ui/components/data_grid/DataGrid.ts +0 -1
- package/front_end/ui/components/data_grid/DataGridController.ts +2 -3
- package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +1 -2
- package/front_end/ui/components/dialogs/Dialog.ts +0 -1
- package/front_end/ui/components/dialogs/IconDialog.ts +9 -11
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +3 -4
- package/front_end/ui/components/diff_view/DiffView.ts +0 -1
- package/front_end/ui/components/docs/building-ui-documentation/ComponentPerformance.md +1 -4
- package/front_end/ui/components/docs/building-ui-documentation/CreatingComponents.md +14 -44
- package/front_end/ui/components/docs/freestyler/basic.ts +2 -3
- package/front_end/ui/components/docs/freestyler/empty_state.ts +2 -2
- package/front_end/ui/components/docs/icon_dialog/basic.ts +4 -4
- package/front_end/ui/components/docs/performance_panel/basic.ts +4 -1
- package/front_end/ui/components/docs/report/basic.ts +3 -3
- package/front_end/ui/components/expandable_list/ExpandableList.ts +0 -1
- package/front_end/ui/components/floating_button/FloatingButton.ts +0 -1
- package/front_end/ui/components/icon_button/FileSourceIcon.test.ts +32 -0
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +76 -0
- package/front_end/ui/components/icon_button/Icon.ts +0 -3
- package/front_end/ui/components/icon_button/IconButton.ts +0 -1
- package/front_end/ui/components/icon_button/fileSourceIcon.css +43 -0
- package/front_end/ui/components/icon_button/icon_button.ts +2 -0
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -3
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +0 -1
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +4 -2
- package/front_end/ui/components/markdown_view/CodeBlock.ts +0 -1
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +0 -1
- package/front_end/ui/components/markdown_view/MarkdownLink.ts +0 -1
- package/front_end/ui/components/markdown_view/MarkdownView.ts +10 -7
- package/front_end/ui/components/menus/Menu.ts +0 -3
- package/front_end/ui/components/menus/SelectMenu.ts +0 -2
- package/front_end/ui/components/menus/selectMenu.css +8 -5
- package/front_end/ui/components/menus/selectMenuButton.css +29 -17
- package/front_end/ui/components/node_text/NodeText.ts +0 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +0 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -3
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +1 -3
- package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +0 -1
- package/front_end/ui/components/report_view/ReportView.ts +1 -7
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +0 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +28 -10
- package/front_end/ui/components/settings/SettingDeprecationWarning.ts +2 -4
- package/front_end/ui/components/settings/settingCheckbox.css +1 -0
- package/front_end/ui/components/spinners/Spinner.ts +0 -1
- package/front_end/ui/components/spinners/spinner.css +1 -0
- package/front_end/ui/components/split_view/SplitView.ts +0 -1
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +0 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -3
- package/front_end/ui/components/switch/SwitchImpl.ts +0 -1
- package/front_end/ui/components/text_editor/TextEditor.ts +0 -2
- package/front_end/ui/components/text_prompt/TextPrompt.ts +0 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +0 -1
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +0 -1
- package/front_end/ui/legacy/ContextMenu.ts +46 -7
- package/front_end/ui/legacy/FilterBar.test.ts +52 -0
- package/front_end/ui/legacy/FilterBar.ts +46 -1
- package/front_end/ui/legacy/KeyboardShortcut.ts +35 -21
- package/front_end/ui/legacy/Panel.ts +2 -2
- package/front_end/ui/legacy/ShortcutRegistry.ts +10 -7
- package/front_end/ui/legacy/SoftContextMenu.ts +3 -0
- package/front_end/ui/legacy/ThrottledWidget.ts +2 -2
- package/front_end/ui/legacy/Toolbar.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +7 -4
- package/front_end/ui/legacy/UIUtils.ts +9 -0
- package/front_end/ui/legacy/View.ts +2 -2
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/Widget.ts +4 -4
- package/front_end/ui/legacy/components/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/dataGrid.css +8 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +4 -7
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngleSwatch.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +0 -1
- package/front_end/ui/legacy/components/inline_editor/LinkSwatch.ts +0 -3
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +1 -2
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.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/FlameChart.ts +162 -57
- package/front_end/ui/legacy/components/perf_ui/PieChart.ts +0 -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/{panels/network/RequestBinaryResponseView.test.ts → ui/legacy/components/source_frame/StreamingContentHexView.test.ts} +12 -12
- package/front_end/ui/legacy/components/source_frame/StreamingContentHexView.ts +122 -0
- package/front_end/ui/legacy/components/source_frame/source_frame.ts +2 -0
- package/front_end/ui/legacy/designTokens.css +46 -40
- package/front_end/ui/legacy/filter.css +23 -8
- package/front_end/ui/legacy/inspectorCommon.css +31 -29
- package/front_end/ui/legacy/searchableView.css +4 -3
- package/front_end/ui/legacy/softDropDownButton.css +10 -6
- package/front_end/ui/legacy/tabbedPane.css +1 -1
- package/front_end/ui/legacy/toolbar.css +38 -18
- package/front_end/ui/visual_logging/KnownContextValues.ts +67 -1
- package/front_end/ui/visual_logging/LoggingDriver.test.ts +53 -6
- package/front_end/ui/visual_logging/LoggingDriver.ts +8 -5
- package/front_end/ui/visual_logging/LoggingEvents.test.ts +5 -1
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/front_end/ui/visual_logging/LoggingState.ts +1 -1
- package/package.json +5 -6
- package/scripts/build/esbuild.js +3 -1
- package/scripts/devtools_paths.js +11 -1
- package/scripts/eslint_rules/lib/check_test_definitions.js +1 -1
- package/scripts/eslint_rules/tests/check_test_definitions_test.js +10 -0
- package/tsconfig.json +11 -1
- package/docs/add_uma_metrics.md +0 -41
- package/docs/uma_metrics.md +0 -23
- 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/network/RequestBinaryResponseView.ts +0 -67
- package/scripts/eslint_rules/lib/lit_html_data_as_type.js +0 -83
- package/scripts/eslint_rules/tests/lit_html_data_as_type_test.js +0 -81
@@ -4,8 +4,13 @@
|
|
4
4
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
6
6
|
import * as Host from '../../core/host/host.js';
|
7
|
-
import
|
7
|
+
import * as SDK from '../../core/sdk/sdk.js';
|
8
|
+
import * as Workspace from '../../models/workspace/workspace.js';
|
9
|
+
import {findMenuItemWithLabel, getMenu} from '../../testing/ContextMenuHelpers.js';
|
10
|
+
import {dispatchClickEvent} from '../../testing/DOMHelpers.js';
|
11
|
+
import {describeWithEnvironment, getGetHostConfigStub, registerNoopActions} from '../../testing/EnvironmentHelpers.js';
|
8
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
13
|
+
import * as TimelineUtils from '../timeline/utils/utils.js';
|
9
14
|
|
10
15
|
import * as Freestyler from './freestyler.js';
|
11
16
|
|
@@ -23,27 +28,38 @@ function getTestSyncInfo(): Host.InspectorFrontendHostAPI.SyncInformation {
|
|
23
28
|
return {isSyncActive: true};
|
24
29
|
}
|
25
30
|
|
31
|
+
async function drainMicroTasks() {
|
32
|
+
await new Promise(resolve => setTimeout(resolve, 0));
|
33
|
+
}
|
34
|
+
|
26
35
|
describeWithEnvironment('FreestylerPanel', () => {
|
27
|
-
|
36
|
+
let mockView: sinon.SinonStub;
|
37
|
+
let panel: Freestyler.FreestylerPanel;
|
28
38
|
|
29
39
|
beforeEach(() => {
|
40
|
+
mockView = sinon.stub();
|
30
41
|
registerNoopActions(['elements.toggle-element-search']);
|
31
|
-
|
42
|
+
});
|
43
|
+
|
44
|
+
afterEach(() => {
|
45
|
+
panel.detach();
|
32
46
|
});
|
33
47
|
|
34
48
|
describe('consent view', () => {
|
35
49
|
it('should render consent view when the consent is not given before', async () => {
|
36
|
-
new Freestyler.FreestylerPanel(mockView, {
|
50
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
37
51
|
aidaClient: getTestAidaClient(),
|
38
52
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
39
53
|
syncInfo: getTestSyncInfo(),
|
40
54
|
});
|
55
|
+
panel.markAsRoot();
|
56
|
+
panel.show(document.body);
|
41
57
|
|
42
58
|
sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CONSENT_VIEW}));
|
43
59
|
});
|
44
60
|
|
45
61
|
it('should switch from consent view to chat view when enabling setting', async () => {
|
46
|
-
|
62
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
47
63
|
aidaClient: getTestAidaClient(),
|
48
64
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
49
65
|
syncInfo: getTestSyncInfo(),
|
@@ -54,17 +70,19 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
54
70
|
|
55
71
|
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
56
72
|
sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CHAT_VIEW}));
|
57
|
-
|
73
|
+
await drainMicroTasks();
|
58
74
|
});
|
59
75
|
|
60
76
|
it('should render chat view when the consent is given before', async () => {
|
61
77
|
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
62
78
|
|
63
|
-
new Freestyler.FreestylerPanel(mockView, {
|
79
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
64
80
|
aidaClient: getTestAidaClient(),
|
65
81
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
66
82
|
syncInfo: getTestSyncInfo(),
|
67
83
|
});
|
84
|
+
panel.markAsRoot();
|
85
|
+
panel.show(document.body);
|
68
86
|
|
69
87
|
sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CHAT_VIEW}));
|
70
88
|
});
|
@@ -72,16 +90,77 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
72
90
|
it('should render the consent view when the setting is disabled', async () => {
|
73
91
|
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
74
92
|
Common.Settings.moduleSetting('ai-assistance-enabled').setDisabled(true);
|
93
|
+
const chatUiStates: Freestyler.State[] = [];
|
94
|
+
const viewStub = sinon.stub().callsFake(props => {
|
95
|
+
chatUiStates.push(props.state);
|
96
|
+
});
|
75
97
|
|
76
|
-
new Freestyler.FreestylerPanel(
|
98
|
+
panel = new Freestyler.FreestylerPanel(viewStub, {
|
77
99
|
aidaClient: getTestAidaClient(),
|
78
100
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
79
101
|
syncInfo: getTestSyncInfo(),
|
80
102
|
});
|
103
|
+
panel.markAsRoot();
|
104
|
+
panel.show(document.body);
|
105
|
+
await drainMicroTasks();
|
81
106
|
|
82
|
-
sinon.assert.calledWith(
|
107
|
+
sinon.assert.calledWith(viewStub, sinon.match({state: Freestyler.State.CONSENT_VIEW}));
|
108
|
+
assert.isFalse(chatUiStates.includes(Freestyler.State.CHAT_VIEW));
|
83
109
|
Common.Settings.moduleSetting('ai-assistance-enabled').setDisabled(false);
|
84
110
|
});
|
111
|
+
|
112
|
+
it('should render the consent view when blocked by age', async () => {
|
113
|
+
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
114
|
+
const stub = getGetHostConfigStub({
|
115
|
+
aidaAvailability: {
|
116
|
+
blockedByAge: true,
|
117
|
+
},
|
118
|
+
devToolsFreestyler: {
|
119
|
+
enabled: true,
|
120
|
+
},
|
121
|
+
});
|
122
|
+
|
123
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
124
|
+
aidaClient: getTestAidaClient(),
|
125
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
126
|
+
syncInfo: getTestSyncInfo(),
|
127
|
+
});
|
128
|
+
panel.markAsRoot();
|
129
|
+
panel.show(document.body);
|
130
|
+
|
131
|
+
sinon.assert.calledWith(mockView, sinon.match({state: Freestyler.State.CONSENT_VIEW}));
|
132
|
+
stub.restore();
|
133
|
+
});
|
134
|
+
|
135
|
+
it('updates when the user logs in', async () => {
|
136
|
+
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
137
|
+
|
138
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
139
|
+
aidaClient: getTestAidaClient(),
|
140
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL,
|
141
|
+
syncInfo: getTestSyncInfo(),
|
142
|
+
});
|
143
|
+
panel.markAsRoot();
|
144
|
+
panel.show(document.body);
|
145
|
+
await drainMicroTasks();
|
146
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
147
|
+
state: Freestyler.State.CHAT_VIEW,
|
148
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL,
|
149
|
+
}));
|
150
|
+
mockView.reset();
|
151
|
+
|
152
|
+
const stub = sinon.stub(Host.AidaClient.AidaClient, 'checkAccessPreconditions')
|
153
|
+
.returns(Promise.resolve(Host.AidaClient.AidaAccessPreconditions.AVAILABLE));
|
154
|
+
Host.AidaClient.HostConfigTracker.instance().dispatchEventToListeners(
|
155
|
+
Host.AidaClient.Events.AIDA_AVAILABILITY_CHANGED);
|
156
|
+
await drainMicroTasks();
|
157
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
158
|
+
state: Freestyler.State.CHAT_VIEW,
|
159
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
160
|
+
}));
|
161
|
+
|
162
|
+
stub.restore();
|
163
|
+
});
|
85
164
|
});
|
86
165
|
|
87
166
|
describe('on rate click', () => {
|
@@ -93,7 +172,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
93
172
|
it('renders a button linking to settings', () => {
|
94
173
|
const stub = sinon.stub(UI.ViewManager.ViewManager.instance(), 'showView');
|
95
174
|
|
96
|
-
|
175
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
97
176
|
aidaClient: getTestAidaClient(),
|
98
177
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
99
178
|
syncInfo: getTestSyncInfo(),
|
@@ -109,31 +188,41 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
109
188
|
it('should allow logging if configured', () => {
|
110
189
|
// @ts-expect-error global test variable
|
111
190
|
setFreestylerServerSideLoggingEnabled(true);
|
191
|
+
const stub = getGetHostConfigStub({
|
192
|
+
aidaAvailability: {
|
193
|
+
disallowLogging: false,
|
194
|
+
},
|
195
|
+
});
|
112
196
|
|
113
197
|
const aidaClient = getTestAidaClient();
|
114
|
-
new Freestyler.FreestylerPanel(mockView, {
|
198
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
115
199
|
aidaClient,
|
116
200
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
117
201
|
syncInfo: getTestSyncInfo(),
|
118
202
|
});
|
119
|
-
|
203
|
+
panel.markAsRoot();
|
204
|
+
panel.show(document.body);
|
205
|
+
const callArgs = mockView.getCall(0)?.args[0];
|
120
206
|
mockView.reset();
|
121
207
|
callArgs.onFeedbackSubmit(0, Host.AidaClient.Rating.POSITIVE);
|
122
208
|
|
123
209
|
sinon.assert.match(aidaClient.registerClientEvent.firstCall.firstArg, sinon.match({
|
124
210
|
disable_user_content_logging: false,
|
125
211
|
}));
|
212
|
+
stub.restore();
|
126
213
|
});
|
127
214
|
|
128
215
|
it('should send POSITIVE rating to aida client when the user clicks on positive rating', () => {
|
129
216
|
const RPC_ID = 0;
|
130
217
|
|
131
218
|
const aidaClient = getTestAidaClient();
|
132
|
-
new Freestyler.FreestylerPanel(mockView, {
|
219
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
133
220
|
aidaClient,
|
134
221
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
135
222
|
syncInfo: getTestSyncInfo(),
|
136
223
|
});
|
224
|
+
panel.markAsRoot();
|
225
|
+
panel.show(document.body);
|
137
226
|
const callArgs = mockView.getCall(0).args[0];
|
138
227
|
mockView.reset();
|
139
228
|
callArgs.onFeedbackSubmit(RPC_ID, Host.AidaClient.Rating.POSITIVE);
|
@@ -152,11 +241,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
152
241
|
it('should send NEGATIVE rating to aida client when the user clicks on positive rating', () => {
|
153
242
|
const RPC_ID = 0;
|
154
243
|
const aidaClient = getTestAidaClient();
|
155
|
-
new Freestyler.FreestylerPanel(mockView, {
|
244
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
156
245
|
aidaClient,
|
157
246
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
158
247
|
syncInfo: getTestSyncInfo(),
|
159
248
|
});
|
249
|
+
panel.markAsRoot();
|
250
|
+
panel.show(document.body);
|
160
251
|
const callArgs = mockView.getCall(0).args[0];
|
161
252
|
mockView.reset();
|
162
253
|
callArgs.onFeedbackSubmit(RPC_ID, Host.AidaClient.Rating.NEGATIVE);
|
@@ -176,11 +267,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
176
267
|
const RPC_ID = 0;
|
177
268
|
const feedback = 'This helped me a ton.';
|
178
269
|
const aidaClient = getTestAidaClient();
|
179
|
-
new Freestyler.FreestylerPanel(mockView, {
|
270
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
180
271
|
aidaClient,
|
181
272
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
182
273
|
syncInfo: getTestSyncInfo(),
|
183
274
|
});
|
275
|
+
panel.markAsRoot();
|
276
|
+
panel.show(document.body);
|
184
277
|
const callArgs = mockView.getCall(0).args[0];
|
185
278
|
mockView.reset();
|
186
279
|
callArgs.onFeedbackSubmit(RPC_ID, Host.AidaClient.Rating.POSITIVE, feedback);
|
@@ -199,4 +292,444 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
199
292
|
}));
|
200
293
|
});
|
201
294
|
});
|
295
|
+
|
296
|
+
describe('flavor change listeners', () => {
|
297
|
+
describe('SDK.DOMModel.DOMNode flavor changes for selected element', () => {
|
298
|
+
it('should set the selected element when the widget is shown', () => {
|
299
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
300
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
301
|
+
aidaClient: getTestAidaClient(),
|
302
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
303
|
+
syncInfo: getTestSyncInfo(),
|
304
|
+
});
|
305
|
+
|
306
|
+
const node = sinon.createStubInstance(SDK.DOMModel.DOMNode, {
|
307
|
+
nodeType: Node.ELEMENT_NODE,
|
308
|
+
});
|
309
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, node);
|
310
|
+
panel.markAsRoot();
|
311
|
+
panel.show(document.body);
|
312
|
+
|
313
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
314
|
+
selectedElement: node,
|
315
|
+
}));
|
316
|
+
});
|
317
|
+
|
318
|
+
it('should update the selected element when the changed DOMNode flavor is an ELEMENT_NODE', () => {
|
319
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
320
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
321
|
+
aidaClient: getTestAidaClient(),
|
322
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
323
|
+
syncInfo: getTestSyncInfo(),
|
324
|
+
});
|
325
|
+
panel.markAsRoot();
|
326
|
+
panel.show(document.body);
|
327
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
328
|
+
selectedElement: null,
|
329
|
+
}));
|
330
|
+
|
331
|
+
const node = sinon.createStubInstance(SDK.DOMModel.DOMNode, {
|
332
|
+
nodeType: Node.ELEMENT_NODE,
|
333
|
+
});
|
334
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, node);
|
335
|
+
|
336
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
337
|
+
selectedElement: node,
|
338
|
+
}));
|
339
|
+
});
|
340
|
+
|
341
|
+
it('should set selected element to null when the change DOMNode flavor is not an ELEMENT_NODE', () => {
|
342
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
343
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
344
|
+
aidaClient: getTestAidaClient(),
|
345
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
346
|
+
syncInfo: getTestSyncInfo(),
|
347
|
+
});
|
348
|
+
panel.markAsRoot();
|
349
|
+
panel.show(document.body);
|
350
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
351
|
+
selectedElement: null,
|
352
|
+
}));
|
353
|
+
|
354
|
+
const node = sinon.createStubInstance(SDK.DOMModel.DOMNode, {
|
355
|
+
nodeType: Node.COMMENT_NODE,
|
356
|
+
});
|
357
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, node);
|
358
|
+
|
359
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
360
|
+
selectedElement: null,
|
361
|
+
}));
|
362
|
+
});
|
363
|
+
|
364
|
+
it('should not handle DOMNode flavor changes if the widget is not shown', () => {
|
365
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
366
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
367
|
+
aidaClient: getTestAidaClient(),
|
368
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
369
|
+
syncInfo: getTestSyncInfo(),
|
370
|
+
});
|
371
|
+
|
372
|
+
const node = sinon.createStubInstance(SDK.DOMModel.DOMNode, {
|
373
|
+
nodeType: Node.ELEMENT_NODE,
|
374
|
+
});
|
375
|
+
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, node);
|
376
|
+
|
377
|
+
sinon.assert.notCalled(mockView);
|
378
|
+
});
|
379
|
+
});
|
380
|
+
|
381
|
+
describe('SDK.NetworkRequest.NetworkRequest flavor changes for selected network request', () => {
|
382
|
+
it('should set the selected network request when the widget is shown', () => {
|
383
|
+
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
|
384
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
385
|
+
aidaClient: getTestAidaClient(),
|
386
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
387
|
+
syncInfo: getTestSyncInfo(),
|
388
|
+
});
|
389
|
+
|
390
|
+
const networkRequest = sinon.createStubInstance(SDK.NetworkRequest.NetworkRequest);
|
391
|
+
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest);
|
392
|
+
panel.markAsRoot();
|
393
|
+
panel.show(document.body);
|
394
|
+
|
395
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
396
|
+
selectedNetworkRequest: networkRequest,
|
397
|
+
}));
|
398
|
+
});
|
399
|
+
|
400
|
+
it('should set selected network request when the NetworkRequest flavor changes', () => {
|
401
|
+
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
|
402
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
403
|
+
aidaClient: getTestAidaClient(),
|
404
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
405
|
+
syncInfo: getTestSyncInfo(),
|
406
|
+
});
|
407
|
+
panel.markAsRoot();
|
408
|
+
panel.show(document.body);
|
409
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
410
|
+
selectedNetworkRequest: null,
|
411
|
+
}));
|
412
|
+
|
413
|
+
const networkRequest = sinon.createStubInstance(SDK.NetworkRequest.NetworkRequest);
|
414
|
+
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest);
|
415
|
+
|
416
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
417
|
+
selectedNetworkRequest: networkRequest,
|
418
|
+
}));
|
419
|
+
});
|
420
|
+
|
421
|
+
it('should not handle NetworkRequest flavor changes if the widget is not shown', () => {
|
422
|
+
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
|
423
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
424
|
+
aidaClient: getTestAidaClient(),
|
425
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
426
|
+
syncInfo: getTestSyncInfo(),
|
427
|
+
});
|
428
|
+
|
429
|
+
const networkRequest = sinon.createStubInstance(SDK.NetworkRequest.NetworkRequest);
|
430
|
+
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest);
|
431
|
+
|
432
|
+
sinon.assert.notCalled(mockView);
|
433
|
+
});
|
434
|
+
});
|
435
|
+
|
436
|
+
describe('TimelineUtils.AICallTree.AICallTree flavor changes for selected call tree', () => {
|
437
|
+
it('should set the selected call tree when the widget is shown', () => {
|
438
|
+
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
|
439
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
440
|
+
aidaClient: getTestAidaClient(),
|
441
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
442
|
+
syncInfo: getTestSyncInfo(),
|
443
|
+
});
|
444
|
+
|
445
|
+
const selectedAiCallTree = {};
|
446
|
+
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, selectedAiCallTree);
|
447
|
+
panel.markAsRoot();
|
448
|
+
panel.show(document.body);
|
449
|
+
|
450
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
451
|
+
selectedAiCallTree,
|
452
|
+
}));
|
453
|
+
});
|
454
|
+
|
455
|
+
it('should set selected call tree when the AICallTree flavor changes', () => {
|
456
|
+
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
|
457
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
458
|
+
aidaClient: getTestAidaClient(),
|
459
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
460
|
+
syncInfo: getTestSyncInfo(),
|
461
|
+
});
|
462
|
+
panel.markAsRoot();
|
463
|
+
panel.show(document.body);
|
464
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
465
|
+
selectedAiCallTree: null,
|
466
|
+
}));
|
467
|
+
|
468
|
+
const selectedAiCallTree = {};
|
469
|
+
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, selectedAiCallTree);
|
470
|
+
|
471
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
472
|
+
selectedAiCallTree,
|
473
|
+
}));
|
474
|
+
});
|
475
|
+
|
476
|
+
it('should not handle AICallTree flavor changes if the widget is not shown', () => {
|
477
|
+
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
|
478
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
479
|
+
aidaClient: getTestAidaClient(),
|
480
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
481
|
+
syncInfo: getTestSyncInfo(),
|
482
|
+
});
|
483
|
+
|
484
|
+
const selectedAiCallTree = {};
|
485
|
+
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, selectedAiCallTree);
|
486
|
+
|
487
|
+
sinon.assert.notCalled(mockView);
|
488
|
+
});
|
489
|
+
});
|
490
|
+
|
491
|
+
describe('Workspace.UISourceCode.UISourceCode flavor changes for selected network request', () => {
|
492
|
+
it('should set selected file when the widget is shown', () => {
|
493
|
+
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
|
494
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
495
|
+
aidaClient: getTestAidaClient(),
|
496
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
497
|
+
syncInfo: getTestSyncInfo(),
|
498
|
+
});
|
499
|
+
|
500
|
+
const uiSourceCode = sinon.createStubInstance(Workspace.UISourceCode.UISourceCode);
|
501
|
+
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, uiSourceCode);
|
502
|
+
panel.markAsRoot();
|
503
|
+
panel.show(document.body);
|
504
|
+
|
505
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
506
|
+
selectedFile: uiSourceCode,
|
507
|
+
}));
|
508
|
+
});
|
509
|
+
|
510
|
+
it('should set selected file when the UISourceCode flavor changes', () => {
|
511
|
+
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
|
512
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
513
|
+
aidaClient: getTestAidaClient(),
|
514
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
515
|
+
syncInfo: getTestSyncInfo(),
|
516
|
+
});
|
517
|
+
panel.markAsRoot();
|
518
|
+
panel.show(document.body);
|
519
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
520
|
+
selectedFile: null,
|
521
|
+
}));
|
522
|
+
|
523
|
+
const uiSourceCode = sinon.createStubInstance(Workspace.UISourceCode.UISourceCode);
|
524
|
+
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, uiSourceCode);
|
525
|
+
|
526
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
527
|
+
selectedFile: uiSourceCode,
|
528
|
+
}));
|
529
|
+
});
|
530
|
+
|
531
|
+
it('should not handle NetworkRequest flavor changes if the widget is not shown', () => {
|
532
|
+
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
|
533
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
534
|
+
aidaClient: getTestAidaClient(),
|
535
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
536
|
+
syncInfo: getTestSyncInfo(),
|
537
|
+
});
|
538
|
+
|
539
|
+
const uiSourceCode = sinon.createStubInstance(Workspace.UISourceCode.UISourceCode);
|
540
|
+
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, uiSourceCode);
|
541
|
+
|
542
|
+
sinon.assert.notCalled(mockView);
|
543
|
+
});
|
544
|
+
});
|
545
|
+
});
|
546
|
+
|
547
|
+
describe('toggle search element action', () => {
|
548
|
+
let toggleSearchElementAction: UI.ActionRegistration.Action;
|
549
|
+
beforeEach(() => {
|
550
|
+
toggleSearchElementAction =
|
551
|
+
UI.ActionRegistry.ActionRegistry.instance().getAction('elements.toggle-element-search');
|
552
|
+
toggleSearchElementAction.setToggled(false);
|
553
|
+
});
|
554
|
+
|
555
|
+
it('should set inspectElementToggled when the widget is shown', () => {
|
556
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
557
|
+
aidaClient: getTestAidaClient(),
|
558
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
559
|
+
syncInfo: getTestSyncInfo(),
|
560
|
+
});
|
561
|
+
|
562
|
+
toggleSearchElementAction.setToggled(true);
|
563
|
+
panel.markAsRoot();
|
564
|
+
panel.show(document.body);
|
565
|
+
|
566
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
567
|
+
inspectElementToggled: true,
|
568
|
+
}));
|
569
|
+
});
|
570
|
+
|
571
|
+
it('should update inspectElementToggled when the action is toggled', () => {
|
572
|
+
toggleSearchElementAction.setToggled(false);
|
573
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
574
|
+
aidaClient: getTestAidaClient(),
|
575
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
576
|
+
syncInfo: getTestSyncInfo(),
|
577
|
+
});
|
578
|
+
panel.markAsRoot();
|
579
|
+
panel.show(document.body);
|
580
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
581
|
+
inspectElementToggled: false,
|
582
|
+
}));
|
583
|
+
|
584
|
+
toggleSearchElementAction.setToggled(true);
|
585
|
+
|
586
|
+
sinon.assert.calledWith(mockView, sinon.match({
|
587
|
+
inspectElementToggled: true,
|
588
|
+
}));
|
589
|
+
});
|
590
|
+
|
591
|
+
it('should not update toggleSearchElementAction even after the action is toggled when the widget is not shown',
|
592
|
+
() => {
|
593
|
+
toggleSearchElementAction.setToggled(false);
|
594
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
595
|
+
aidaClient: getTestAidaClient(),
|
596
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
597
|
+
syncInfo: getTestSyncInfo(),
|
598
|
+
});
|
599
|
+
|
600
|
+
toggleSearchElementAction.setToggled(true);
|
601
|
+
|
602
|
+
sinon.assert.notCalled(mockView);
|
603
|
+
});
|
604
|
+
});
|
605
|
+
|
606
|
+
describe('history interactions', () => {
|
607
|
+
it('should have empty messages after new chat', async () => {
|
608
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
609
|
+
aidaClient: getTestAidaClient(),
|
610
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
611
|
+
syncInfo: getTestSyncInfo(),
|
612
|
+
});
|
613
|
+
panel.handleAction('freestyler.elements-floating-button');
|
614
|
+
(mockView.lastCall.args.at(0) as Freestyler.Props).onTextSubmit('test');
|
615
|
+
await drainMicroTasks();
|
616
|
+
|
617
|
+
assert.deepEqual(mockView.lastCall.args.at(0).messages, [
|
618
|
+
{
|
619
|
+
entity: 'user',
|
620
|
+
text: 'test',
|
621
|
+
},
|
622
|
+
{
|
623
|
+
answer: 'test',
|
624
|
+
entity: 'model',
|
625
|
+
rpcId: undefined,
|
626
|
+
suggestions: undefined,
|
627
|
+
steps: [],
|
628
|
+
},
|
629
|
+
]);
|
630
|
+
const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
|
631
|
+
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'New chat\']');
|
632
|
+
assert.instanceOf(button, HTMLElement);
|
633
|
+
dispatchClickEvent(button);
|
634
|
+
assert.deepEqual(mockView.lastCall.args.at(0).messages, []);
|
635
|
+
});
|
636
|
+
|
637
|
+
it('should switch agents and restore history', async () => {
|
638
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
639
|
+
aidaClient: getTestAidaClient(),
|
640
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
641
|
+
syncInfo: getTestSyncInfo(),
|
642
|
+
});
|
643
|
+
panel.handleAction('freestyler.elements-floating-button');
|
644
|
+
(mockView.lastCall.args.at(0) as Freestyler.Props).onTextSubmit('User question to Freestyler?');
|
645
|
+
await drainMicroTasks();
|
646
|
+
|
647
|
+
assert.deepEqual(mockView.lastCall.args.at(0).messages, [
|
648
|
+
{
|
649
|
+
entity: 'user',
|
650
|
+
text: 'User question to Freestyler?',
|
651
|
+
},
|
652
|
+
{
|
653
|
+
answer: 'test',
|
654
|
+
entity: 'model',
|
655
|
+
rpcId: undefined,
|
656
|
+
suggestions: undefined,
|
657
|
+
steps: [],
|
658
|
+
},
|
659
|
+
]);
|
660
|
+
|
661
|
+
panel.handleAction('drjones.network-floating-button');
|
662
|
+
(mockView.lastCall.args.at(0) as Freestyler.Props).onTextSubmit('User question to DrJones?');
|
663
|
+
await drainMicroTasks();
|
664
|
+
assert.deepEqual(mockView.lastCall.args.at(0).messages, [
|
665
|
+
{
|
666
|
+
entity: 'user',
|
667
|
+
text: 'User question to DrJones?',
|
668
|
+
},
|
669
|
+
{
|
670
|
+
answer: 'test',
|
671
|
+
entity: 'model',
|
672
|
+
rpcId: undefined,
|
673
|
+
suggestions: undefined,
|
674
|
+
steps: [],
|
675
|
+
},
|
676
|
+
]);
|
677
|
+
|
678
|
+
const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
|
679
|
+
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'History\']');
|
680
|
+
assert.instanceOf(button, HTMLElement);
|
681
|
+
const contextMenu = getMenu(() => {
|
682
|
+
dispatchClickEvent(button);
|
683
|
+
});
|
684
|
+
const freestylerEntry = findMenuItemWithLabel(contextMenu.defaultSection(), 'User question to Freestyler?')!;
|
685
|
+
assert.isDefined(freestylerEntry);
|
686
|
+
contextMenu.invokeHandler(freestylerEntry.id());
|
687
|
+
|
688
|
+
await drainMicroTasks();
|
689
|
+
assert.deepEqual(mockView.lastCall.args.at(0).messages, [
|
690
|
+
{
|
691
|
+
entity: 'user',
|
692
|
+
text: 'User question to Freestyler?',
|
693
|
+
},
|
694
|
+
{
|
695
|
+
answer: 'test',
|
696
|
+
entity: 'model',
|
697
|
+
rpcId: undefined,
|
698
|
+
suggestions: undefined,
|
699
|
+
steps: [],
|
700
|
+
},
|
701
|
+
]);
|
702
|
+
});
|
703
|
+
});
|
704
|
+
|
705
|
+
it('should have empty state after clear chat', async () => {
|
706
|
+
panel = new Freestyler.FreestylerPanel(mockView, {
|
707
|
+
aidaClient: getTestAidaClient(),
|
708
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
709
|
+
syncInfo: getTestSyncInfo(),
|
710
|
+
});
|
711
|
+
panel.handleAction('freestyler.elements-floating-button');
|
712
|
+
(mockView.lastCall.args.at(0) as Freestyler.Props).onTextSubmit('test');
|
713
|
+
await drainMicroTasks();
|
714
|
+
|
715
|
+
assert.deepEqual(mockView.lastCall.args.at(0).messages, [
|
716
|
+
{
|
717
|
+
entity: 'user',
|
718
|
+
text: 'test',
|
719
|
+
},
|
720
|
+
{
|
721
|
+
answer: 'test',
|
722
|
+
entity: 'model',
|
723
|
+
rpcId: undefined,
|
724
|
+
suggestions: undefined,
|
725
|
+
steps: [],
|
726
|
+
},
|
727
|
+
]);
|
728
|
+
const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
|
729
|
+
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Clear chat\']');
|
730
|
+
assert.instanceOf(button, HTMLElement);
|
731
|
+
dispatchClickEvent(button);
|
732
|
+
assert.deepEqual(mockView.lastCall.args.at(0).messages, []);
|
733
|
+
assert.deepEqual(mockView.lastCall.args.at(0).agentType, undefined);
|
734
|
+
});
|
202
735
|
});
|