chrome-devtools-frontend 1.0.1380117 → 1.0.1402249
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/.git-blame-ignore-revs +3 -0
- package/.stylelintrc.json +3 -4
- package/AUTHORS +3 -1
- package/config/gni/devtools_grd_files.gni +61 -33
- package/config/gni/devtools_image_files.gni +6 -1
- package/docs/README.md +5 -0
- package/docs/contributing/issues.md +14 -11
- package/docs/get_the_code.md +4 -1
- package/docs/policy/README.md +7 -0
- package/docs/policy/gar-page-zoom-policy.md +43 -0
- package/docs/policy/images/devtools-gar-testing.png +0 -0
- package/docs/policy/images/docked-devtools.webp +0 -0
- package/docs/policy/images/undocked-devtools.png +0 -0
- package/docs/policy/slow-close.md +52 -0
- package/docs/styleguide/ux/README.md +1 -0
- package/docs/styleguide/ux/components.md +98 -22
- package/docs/styleguide/ux/images/radio-buttons-variations.png +0 -0
- package/docs/styleguide/ux/images/sliders-variations.png +0 -0
- package/docs/styleguide/ux/numbers.md +106 -0
- package/docs/styleguide/ux/styles.md +29 -7
- package/eslint.config.mjs +725 -0
- package/extensions/cxx_debugging/src/CreditsItem.ts +1 -1
- package/extensions/cxx_debugging/src/ExtensionOptions.ts +4 -4
- package/extensions/cxx_debugging/src/ModuleConfigurationList.ts +1 -1
- package/extensions/cxx_debugging/src/rollup.config.in.js +1 -3
- package/extensions/cxx_debugging/tests/Formatters_test.ts +2 -1
- package/front_end/Images/rollup.config.mjs +1 -1
- package/front_end/Images/src/compress.svg +8 -0
- package/front_end/Images/src/cookie_off.svg +3 -0
- package/front_end/Images/src/devtools-thumbnail.svg +57 -0
- package/front_end/Images/src/devtools-tips.svg +61 -0
- package/front_end/Images/src/domain.svg +3 -0
- package/front_end/Images/src/whatsnew.svg +61 -0
- package/front_end/Tests.js +27 -33
- package/front_end/core/common/CharacterIdMap.test.ts +1 -1
- package/front_end/core/common/Color.ts +3 -3
- package/front_end/core/common/ColorUtils.test.ts +2 -2
- package/front_end/core/common/Console.test.ts +7 -7
- package/front_end/core/common/Lazy.test.ts +12 -14
- package/front_end/core/common/MapWithDefault.test.ts +61 -0
- package/front_end/core/common/MapWithDefault.ts +24 -0
- package/front_end/core/common/ParsedURL.test.ts +5 -5
- package/front_end/core/common/Progress.test.ts +7 -7
- package/front_end/core/common/ResolverBase.test.ts +2 -2
- package/front_end/core/common/ResourceType.test.ts +3 -3
- package/front_end/core/common/SettingRegistration.test.ts +2 -4
- package/front_end/core/common/SettingRegistration.ts +8 -1
- package/front_end/core/common/Settings.ts +7 -7
- package/front_end/core/common/common.ts +4 -3
- package/front_end/core/dom_extension/DOMExtension.test.ts +4 -2
- package/front_end/core/dom_extension/DOMExtension.ts +5 -4
- package/front_end/core/host/AidaClient.test.ts +92 -38
- package/front_end/core/host/AidaClient.ts +132 -29
- package/front_end/core/host/InspectorFrontendHost.ts +15 -5
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -5
- package/front_end/core/host/UserMetrics.ts +27 -69
- package/front_end/core/i18n/i18n.test.ts +45 -0
- package/front_end/core/i18n/locales/af.json +1031 -887
- package/front_end/core/i18n/locales/am.json +1036 -892
- package/front_end/core/i18n/locales/ar.json +1039 -895
- package/front_end/core/i18n/locales/as.json +1032 -888
- package/front_end/core/i18n/locales/az.json +1034 -890
- package/front_end/core/i18n/locales/be.json +1031 -887
- package/front_end/core/i18n/locales/bg.json +1031 -887
- package/front_end/core/i18n/locales/bn.json +1033 -889
- package/front_end/core/i18n/locales/bs.json +1036 -892
- package/front_end/core/i18n/locales/ca.json +1031 -887
- package/front_end/core/i18n/locales/cs.json +1030 -886
- package/front_end/core/i18n/locales/cy.json +1032 -888
- package/front_end/core/i18n/locales/da.json +1031 -887
- package/front_end/core/i18n/locales/de.json +1033 -889
- package/front_end/core/i18n/locales/el.json +1031 -887
- package/front_end/core/i18n/locales/en-GB.json +1033 -889
- package/front_end/core/i18n/locales/es-419.json +1029 -885
- package/front_end/core/i18n/locales/es.json +1032 -888
- package/front_end/core/i18n/locales/et.json +1033 -889
- package/front_end/core/i18n/locales/eu.json +1031 -887
- package/front_end/core/i18n/locales/fa.json +1035 -891
- package/front_end/core/i18n/locales/fi.json +1035 -891
- package/front_end/core/i18n/locales/fil.json +1034 -890
- package/front_end/core/i18n/locales/fr-CA.json +1031 -887
- package/front_end/core/i18n/locales/fr.json +1049 -905
- package/front_end/core/i18n/locales/gl.json +1032 -888
- package/front_end/core/i18n/locales/gu.json +1035 -891
- package/front_end/core/i18n/locales/he.json +1031 -887
- package/front_end/core/i18n/locales/hi.json +1034 -890
- package/front_end/core/i18n/locales/hr.json +1031 -887
- package/front_end/core/i18n/locales/hu.json +1033 -889
- package/front_end/core/i18n/locales/hy.json +1046 -902
- package/front_end/core/i18n/locales/id.json +1023 -879
- package/front_end/core/i18n/locales/is.json +1032 -888
- package/front_end/core/i18n/locales/it.json +1031 -887
- package/front_end/core/i18n/locales/ja.json +1042 -898
- package/front_end/core/i18n/locales/ka.json +1034 -890
- package/front_end/core/i18n/locales/kk.json +1035 -891
- package/front_end/core/i18n/locales/km.json +1035 -891
- package/front_end/core/i18n/locales/kn.json +1036 -892
- package/front_end/core/i18n/locales/ko.json +1031 -887
- package/front_end/core/i18n/locales/ky.json +1032 -888
- package/front_end/core/i18n/locales/lo.json +1030 -886
- package/front_end/core/i18n/locales/lt.json +1032 -888
- package/front_end/core/i18n/locales/lv.json +1032 -888
- package/front_end/core/i18n/locales/mk.json +1032 -888
- package/front_end/core/i18n/locales/ml.json +1033 -889
- package/front_end/core/i18n/locales/mn.json +1034 -890
- package/front_end/core/i18n/locales/mr.json +1035 -891
- package/front_end/core/i18n/locales/ms.json +1033 -889
- package/front_end/core/i18n/locales/my.json +1033 -889
- package/front_end/core/i18n/locales/ne.json +1036 -892
- package/front_end/core/i18n/locales/nl.json +1033 -889
- package/front_end/core/i18n/locales/no.json +1036 -892
- package/front_end/core/i18n/locales/or.json +1043 -899
- package/front_end/core/i18n/locales/pa.json +1030 -886
- package/front_end/core/i18n/locales/pl.json +1032 -888
- package/front_end/core/i18n/locales/pt-PT.json +1033 -889
- package/front_end/core/i18n/locales/pt.json +1033 -889
- package/front_end/core/i18n/locales/ro.json +1029 -885
- package/front_end/core/i18n/locales/ru.json +1026 -882
- package/front_end/core/i18n/locales/si.json +1031 -887
- package/front_end/core/i18n/locales/sk.json +1033 -889
- package/front_end/core/i18n/locales/sl.json +1031 -887
- package/front_end/core/i18n/locales/sq.json +1061 -917
- package/front_end/core/i18n/locales/sr-Latn.json +1033 -889
- package/front_end/core/i18n/locales/sr.json +1033 -889
- package/front_end/core/i18n/locales/sv.json +1031 -887
- package/front_end/core/i18n/locales/sw.json +1033 -889
- package/front_end/core/i18n/locales/ta.json +1058 -914
- package/front_end/core/i18n/locales/te.json +1037 -893
- package/front_end/core/i18n/locales/th.json +1032 -888
- package/front_end/core/i18n/locales/tr.json +1031 -887
- package/front_end/core/i18n/locales/uk.json +1030 -886
- package/front_end/core/i18n/locales/ur.json +1031 -887
- package/front_end/core/i18n/locales/uz.json +1023 -879
- package/front_end/core/i18n/locales/vi.json +1032 -888
- package/front_end/core/i18n/locales/zh-HK.json +1032 -888
- package/front_end/core/i18n/locales/zh-TW.json +1032 -888
- package/front_end/core/i18n/locales/zh.json +1033 -889
- package/front_end/core/i18n/locales/zu.json +1032 -888
- package/front_end/core/i18n/time-utilities.ts +17 -0
- package/front_end/core/platform/ArrayUtilities.test.ts +7 -8
- package/front_end/core/platform/MapUtilities.ts +1 -1
- package/front_end/core/platform/StringUtilities.test.ts +1 -1
- package/front_end/core/platform/TypedArrayUtilities.test.ts +6 -6
- package/front_end/core/root/Runtime.test.ts +5 -3
- package/front_end/core/root/Runtime.ts +21 -4
- package/front_end/core/sdk/AnimationModel.test.ts +4 -4
- package/front_end/core/sdk/AutofillModel.test.ts +1 -1
- package/front_end/core/sdk/CSSMatchedStyles.test.ts +44 -45
- package/front_end/core/sdk/CSSModel.test.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.test.ts +7 -7
- package/front_end/core/sdk/ChildTargetManager.test.ts +10 -10
- package/front_end/core/sdk/Connections.ts +5 -0
- package/front_end/core/sdk/Cookie.test.ts +37 -37
- package/front_end/core/sdk/CookieModel.test.ts +5 -5
- package/front_end/core/sdk/DOMModel.ts +5 -0
- package/front_end/core/sdk/DebuggerModel.test.ts +2 -2
- package/front_end/core/sdk/EnhancedTracesParser.test.ts +7 -7
- package/front_end/core/sdk/EnhancedTracesParser.ts +3 -1
- package/front_end/core/sdk/FrameManager.test.ts +4 -4
- package/front_end/core/sdk/NetworkManager.test.ts +53 -3
- package/front_end/core/sdk/NetworkManager.ts +7 -5
- package/front_end/core/sdk/NetworkRequest.test.ts +5 -5
- package/front_end/core/sdk/PreloadingModel.test.ts +226 -10
- package/front_end/core/sdk/PreloadingModel.ts +184 -15
- package/front_end/core/sdk/RehydratingConnection.test.ts +3 -3
- package/front_end/core/sdk/RehydratingConnection.ts +49 -7
- package/front_end/core/sdk/RemoteObject.test.ts +60 -60
- package/front_end/core/sdk/ResourceTreeModel.test.ts +5 -5
- package/front_end/core/sdk/ServiceWorkerManager.test.ts +3 -3
- package/front_end/core/sdk/SourceMap.test.ts +35 -35
- package/front_end/core/sdk/SourceMapScopeChainEntry.test.ts +7 -2
- package/front_end/core/sdk/SourceMapScopeChainEntry.ts +2 -2
- package/front_end/core/sdk/SourceMapScopes.test.ts +112 -45
- package/front_end/core/sdk/SourceMapScopes.ts +39 -14
- package/front_end/core/sdk/SourceMapScopesInfo.test.ts +135 -50
- package/front_end/core/sdk/SourceMapScopesInfo.ts +64 -2
- package/front_end/core/sdk/TraceObject.test.ts +1 -1
- package/front_end/devtools_compatibility.js +1 -5
- package/front_end/entrypoints/devtools_app/devtools_app.ts +1 -0
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.test.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshot.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -2
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -2
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +2 -2
- package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -0
- package/front_end/entrypoints/inspector_main/renderingOptions.css +1 -1
- package/front_end/entrypoints/main/ExecutionContextSelector.test.ts +13 -3
- package/front_end/entrypoints/main/ExecutionContextSelector.ts +23 -1
- package/front_end/entrypoints/main/MainImpl.ts +40 -27
- package/front_end/entrypoints/node_app/NodeConnectionsPanel.ts +1 -1
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -0
- package/front_end/entrypoints/node_app/node_app.ts +2 -2
- package/front_end/entrypoints/shell/shell.ts +1 -1
- package/front_end/generated/ARIAProperties.js +1 -1
- package/front_end/generated/Deprecation.ts +8 -31
- package/front_end/generated/InspectorBackendCommands.js +23 -14
- package/front_end/generated/SupportedCSSProperties.js +51 -76
- package/front_end/generated/protocol-mapping.d.ts +25 -0
- package/front_end/generated/protocol-proxy-api.d.ts +19 -0
- package/front_end/generated/protocol.ts +185 -11
- package/front_end/legacy/legacy-defs.d.ts +4 -6
- package/front_end/models/autofill_manager/AutofillManager.test.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.test.ts +3 -3
- package/front_end/models/bindings/DefaultScriptMapping.test.ts +3 -3
- package/front_end/models/bindings/FileUtils.test.ts +2 -2
- package/front_end/models/bindings/IgnoreListManager.ts +28 -5
- package/front_end/models/breakpoints/BreakpointManager.test.ts +24 -23
- package/front_end/models/crux-manager/CrUXManager.test.ts +90 -10
- package/front_end/models/crux-manager/CrUXManager.ts +80 -10
- package/front_end/models/emulation/DeviceModeModel.ts +15 -0
- package/front_end/models/emulation/EmulatedDevices.test.ts +20 -0
- package/front_end/models/emulation/EmulatedDevices.ts +22 -18
- package/front_end/models/extensions/ExtensionAPI.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.test.ts +135 -40
- package/front_end/models/extensions/ExtensionServer.ts +34 -17
- package/front_end/models/extensions/LanguageExtensionEndpoint.test.ts +59 -0
- package/front_end/models/extensions/LanguageExtensionEndpoint.ts +25 -6
- package/front_end/models/extensions/RecorderPluginManager.test.ts +1 -1
- package/front_end/models/extensions/extensions.ts +4 -0
- package/front_end/models/formatter/FormatterWorkerPool.ts +2 -1
- package/front_end/models/har/Importer.test.ts +4 -4
- package/front_end/models/har/Log.test.ts +1 -1
- package/front_end/models/issues_manager/CookieIssue.ts +82 -4
- package/front_end/models/issues_manager/DeprecationIssue.test.ts +3 -3
- package/front_end/models/issues_manager/DeprecationIssue.ts +1 -1
- package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.test.ts +1 -1
- package/front_end/models/issues_manager/GenericIssue.test.ts +2 -2
- package/front_end/models/issues_manager/IssueResolver.test.ts +2 -2
- package/front_end/models/issues_manager/IssuesManager.test.ts +19 -19
- package/front_end/models/issues_manager/IssuesManager.ts +1 -1
- package/front_end/models/issues_manager/LowTextContrastIssue.test.ts +2 -2
- package/front_end/models/issues_manager/PropertyRuleIssue.test.ts +1 -1
- package/front_end/models/issues_manager/RelatedIssue.test.ts +7 -7
- package/front_end/models/issues_manager/SharedDictionaryIssue.test.ts +1 -1
- package/front_end/models/issues_manager/StylesheetLoadingIssue.test.ts +7 -7
- package/front_end/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/front_end/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/front_end/models/javascript_metadata/JavaScriptMetadata.test.ts +6 -6
- package/front_end/models/javascript_metadata/NativeFunctions.js +95 -73
- package/front_end/models/live-metrics/LiveMetrics.ts +92 -44
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +3 -3
- package/front_end/models/logs/NetworkLog.test.ts +3 -3
- package/front_end/models/logs/RequestResolver.test.ts +2 -2
- package/front_end/models/persistence/EditFileSystemView.ts +1 -1
- package/front_end/models/persistence/NetworkPersistenceManager.test.ts +2 -2
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +2 -1
- package/front_end/models/persistence/editFileSystemView.css +15 -7
- package/front_end/models/persistence/workspaceSettingsTab.css +2 -2
- package/front_end/models/text_utils/Text.test.ts +1 -1
- package/front_end/models/text_utils/TextRange.test.ts +2 -4
- package/front_end/models/text_utils/TextUtils.test.ts +29 -30
- package/front_end/models/trace/ModelImpl.test.ts +2 -2
- package/front_end/models/trace/ModelImpl.ts +1 -0
- package/front_end/models/trace/Processor.test.ts +75 -12
- package/front_end/models/trace/Processor.ts +108 -9
- package/front_end/models/trace/extras/Metadata.test.ts +38 -2
- package/front_end/models/trace/extras/Metadata.ts +27 -5
- package/front_end/models/trace/extras/StackTraceForEvent.test.ts +259 -0
- package/front_end/models/trace/extras/StackTraceForEvent.ts +173 -0
- package/front_end/models/trace/extras/ThirdParties.test.ts +0 -27
- package/front_end/models/trace/extras/ThirdParties.ts +3 -76
- package/front_end/models/trace/extras/TraceTree.ts +28 -18
- package/front_end/models/trace/extras/extras.ts +1 -1
- package/front_end/models/trace/handlers/AnimationFramesHandler.test.ts +40 -0
- package/front_end/models/trace/handlers/AnimationFramesHandler.ts +119 -0
- package/front_end/models/trace/handlers/AsyncJSCallsHandler.test.ts +211 -0
- package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +185 -0
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.test.ts +7 -7
- package/front_end/models/trace/handlers/ExtensionTraceDataHandler.ts +2 -2
- package/front_end/models/trace/handlers/FlowsHandler.test.ts +185 -0
- package/front_end/models/trace/handlers/FlowsHandler.ts +176 -0
- package/front_end/models/trace/handlers/ImagePaintingHandler.ts +12 -0
- package/front_end/models/trace/handlers/InitiatorsHandler.test.ts +56 -49
- package/front_end/models/trace/handlers/InitiatorsHandler.ts +37 -25
- package/front_end/models/trace/handlers/LargestImagePaintHandler.test.ts +19 -1
- package/front_end/models/trace/handlers/LargestImagePaintHandler.ts +18 -6
- package/front_end/models/trace/handlers/LayoutShiftsHandler.test.ts +8 -8
- package/front_end/models/trace/handlers/MetaHandler.test.ts +10 -10
- package/front_end/models/trace/handlers/ModelHandlers.ts +3 -0
- package/front_end/models/trace/handlers/NetworkRequestsHandler.test.ts +116 -10
- package/front_end/models/trace/handlers/NetworkRequestsHandler.ts +23 -1
- package/front_end/models/trace/handlers/PageLoadMetricsHandler.test.ts +2 -2
- package/front_end/models/trace/handlers/PageLoadMetricsHandler.ts +2 -0
- package/front_end/models/trace/handlers/RendererHandler.test.ts +25 -6
- package/front_end/models/trace/handlers/RendererHandler.ts +39 -1
- package/front_end/models/trace/handlers/SamplesHandler.test.ts +1 -1
- package/front_end/models/trace/handlers/ScreenshotsHandler.test.ts +3 -3
- package/front_end/models/trace/handlers/Threads.test.ts +1 -1
- package/front_end/models/trace/handlers/UserInteractionsHandler.test.ts +3 -3
- package/front_end/models/trace/handlers/handlers.ts +1 -0
- package/front_end/models/trace/{extras/URLForEntry.test.ts → handlers/helpers.test.ts} +34 -7
- package/front_end/models/trace/handlers/helpers.ts +159 -0
- package/front_end/models/trace/helpers/SamplesIntegrator.test.ts +13 -13
- package/front_end/models/trace/helpers/Timing.ts +8 -0
- package/front_end/models/trace/helpers/Trace.test.ts +2 -2
- package/front_end/models/trace/helpers/Trace.ts +65 -16
- package/front_end/models/trace/helpers/TreeHelpers.test.ts +5 -5
- package/front_end/models/trace/helpers/TreeHelpers.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.test.ts +9 -19
- package/front_end/models/trace/insights/CLSCulprits.ts +18 -3
- package/front_end/models/trace/insights/Common.test.ts +52 -0
- package/front_end/models/trace/insights/Common.ts +118 -1
- package/front_end/models/trace/insights/DOMSize.test.ts +31 -0
- package/front_end/models/trace/insights/DOMSize.ts +121 -0
- package/front_end/models/trace/insights/DocumentLatency.test.ts +6 -10
- package/front_end/models/trace/insights/DocumentLatency.ts +16 -3
- package/front_end/models/trace/insights/FontDisplay.test.ts +3 -13
- package/front_end/models/trace/insights/FontDisplay.ts +10 -3
- package/front_end/models/trace/insights/ImageDelivery.test.ts +103 -0
- package/front_end/models/trace/insights/ImageDelivery.ts +271 -0
- package/front_end/models/trace/insights/InteractionToNextPaint.test.ts +1 -11
- package/front_end/models/trace/insights/InteractionToNextPaint.ts +9 -3
- package/front_end/models/trace/insights/LCPDiscovery.test.ts +4 -14
- package/front_end/models/trace/insights/LCPDiscovery.ts +24 -3
- package/front_end/models/trace/insights/LCPPhases.test.ts +4 -14
- package/front_end/models/trace/insights/LCPPhases.ts +25 -3
- package/front_end/models/trace/insights/Models.ts +2 -0
- package/front_end/models/trace/insights/RenderBlocking.test.ts +14 -25
- package/front_end/models/trace/insights/RenderBlocking.ts +10 -2
- package/front_end/models/trace/insights/SlowCSSSelector.test.ts +5 -15
- package/front_end/models/trace/insights/SlowCSSSelector.ts +10 -3
- package/front_end/models/trace/insights/Statistics.test.ts +145 -0
- package/front_end/models/trace/insights/Statistics.ts +93 -0
- package/front_end/models/trace/insights/ThirdParties.test.ts +1 -11
- package/front_end/models/trace/insights/ThirdParties.ts +13 -5
- package/front_end/models/trace/insights/Viewport.test.ts +8 -13
- package/front_end/models/trace/insights/Viewport.ts +18 -5
- package/front_end/models/trace/insights/insights.ts +1 -0
- package/front_end/models/trace/insights/types.ts +16 -3
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.test.ts +21 -21
- package/front_end/models/trace/lantern/core/NetworkAnalyzer.ts +1 -1
- package/front_end/models/trace/lantern/graph/BaseNode.test.ts +24 -24
- package/front_end/models/trace/lantern/graph/PageDependencyGraph.test.ts +26 -26
- package/front_end/models/trace/lantern/metrics/FirstContentfulPaint.test.ts +3 -3
- package/front_end/models/trace/lantern/metrics/Interactive.test.ts +6 -6
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.test.ts +3 -3
- package/front_end/models/trace/lantern/metrics/SpeedIndex.test.ts +3 -3
- package/front_end/models/trace/lantern/metrics/TBTUtils.test.ts +1 -1
- package/front_end/models/trace/lantern/simulation/ConnectionPool.test.ts +22 -22
- package/front_end/models/trace/lantern/simulation/Simulator.test.ts +1 -1
- package/front_end/models/trace/lantern/simulation/TCPConnection.test.ts +1 -1
- package/front_end/models/trace/root-causes/LayoutShift.test.ts +15 -15
- package/front_end/models/trace/types/Extensions.ts +4 -3
- package/front_end/models/trace/types/File.ts +10 -1
- package/front_end/models/trace/types/TraceEvents.ts +108 -13
- package/front_end/models/workspace/UISourceCode.test.ts +1 -1
- package/front_end/models/workspace/WorkspaceImpl.test.ts +6 -6
- package/front_end/panels/accessibility/AccessibilitySubPane.ts +1 -1
- package/front_end/panels/accessibility/accessibilityNode.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +1 -1
- package/front_end/panels/{freestyler/FreestylerPanel.test.ts → ai_assistance/AiAssistancePanel.test.ts} +218 -113
- package/front_end/panels/{freestyler/FreestylerPanel.ts → ai_assistance/AiAssistancePanel.ts} +277 -200
- package/front_end/panels/ai_assistance/AiHistoryStorage.test.ts +182 -0
- package/front_end/panels/ai_assistance/AiHistoryStorage.ts +71 -0
- package/front_end/panels/{freestyler → ai_assistance}/ChangeManager.test.ts +6 -6
- package/front_end/panels/{freestyler → ai_assistance}/ChangeManager.ts +2 -2
- package/front_end/panels/{freestyler/FreestylerEvaluateAction.test.ts → ai_assistance/EvaluateAction.test.ts} +37 -35
- package/front_end/panels/{freestyler/FreestylerEvaluateAction.ts → ai_assistance/EvaluateAction.ts} +10 -5
- package/front_end/panels/ai_assistance/agents/AiAgent.test.ts +589 -0
- package/front_end/panels/{freestyler → ai_assistance/agents}/AiAgent.ts +273 -184
- package/front_end/panels/{freestyler/DrJonesFileAgent.test.ts → ai_assistance/agents/FileAgent.test.ts} +197 -98
- package/front_end/panels/{freestyler/DrJonesFileAgent.ts → ai_assistance/agents/FileAgent.ts} +32 -37
- package/front_end/panels/{freestyler/DrJonesNetworkAgent.test.ts → ai_assistance/agents/NetworkAgent.test.ts} +50 -50
- package/front_end/panels/{freestyler/DrJonesNetworkAgent.ts → ai_assistance/agents/NetworkAgent.ts} +16 -23
- package/front_end/panels/ai_assistance/agents/PatchAgent.ts +405 -0
- package/front_end/panels/{freestyler/DrJonesPerformanceAgent.test.ts → ai_assistance/agents/PerformanceAgent.test.ts} +65 -64
- package/front_end/panels/{freestyler/DrJonesPerformanceAgent.ts → ai_assistance/agents/PerformanceAgent.ts} +10 -28
- package/front_end/panels/{freestyler/FreestylerAgent.test.ts → ai_assistance/agents/StylingAgent.test.ts} +445 -212
- package/front_end/panels/{freestyler/FreestylerAgent.ts → ai_assistance/agents/StylingAgent.ts} +85 -73
- package/front_end/panels/{freestyler/freestylerPanel.css → ai_assistance/aiAssistancePanel.css} +2 -2
- package/front_end/panels/{freestyler/freestyler-meta.ts → ai_assistance/ai_assistance-meta.ts} +71 -45
- package/front_end/panels/ai_assistance/ai_assistance.ts +16 -0
- package/front_end/panels/{freestyler/components/FreestylerChatUi.test.ts → ai_assistance/components/ChatView.test.ts} +21 -24
- package/front_end/panels/{freestyler/components/FreestylerChatUi.ts → ai_assistance/components/ChatView.ts} +266 -76
- package/front_end/panels/{freestyler → ai_assistance}/components/UserActionRow.test.ts +1 -1
- package/front_end/panels/{freestyler → ai_assistance}/components/UserActionRow.ts +20 -15
- package/front_end/panels/{freestyler/components/freestylerChatUi.css → ai_assistance/components/chatView.css} +79 -4
- package/front_end/panels/{freestyler → ai_assistance}/components/userActionRow.css +2 -1
- package/front_end/panels/animation/AnimationTimeline.ts +5 -7
- package/front_end/panels/animation/AnimationUI.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +7 -10
- package/front_end/panels/application/AppManifestView.test.ts +7 -7
- package/front_end/panels/application/AppManifestView.ts +1 -1
- package/front_end/panels/application/ApplicationPanelSidebar.test.ts +8 -16
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -21
- package/front_end/panels/application/BackgroundServiceView.ts +1 -1
- package/front_end/panels/application/DOMStorageModel.test.ts +1 -1
- package/front_end/panels/application/ExtensionStorageItemsView.test.ts +3 -5
- package/front_end/panels/application/ExtensionStorageModel.test.ts +5 -5
- package/front_end/panels/application/IndexedDBViews.test.ts +6 -8
- package/front_end/panels/application/IndexedDBViews.ts +4 -1
- package/front_end/panels/application/InterestGroupTreeElement.test.ts +1 -1
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +4 -1
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.test.ts +9 -10
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +2 -2
- package/front_end/panels/application/ServiceWorkersView.ts +0 -1
- package/front_end/panels/application/SharedStorageItemsView.test.ts +13 -15
- package/front_end/panels/application/SharedStorageModel.test.ts +1 -1
- package/front_end/panels/application/SharedStorageTreeElement.test.ts +2 -4
- package/front_end/panels/application/StorageView.test.ts +3 -5
- package/front_end/panels/application/StorageView.ts +5 -5
- package/front_end/panels/application/components/BackForwardCacheView.test.ts +10 -12
- package/front_end/panels/application/components/BackForwardCacheView.ts +2 -4
- package/front_end/panels/application/components/BounceTrackingMitigationsView.test.ts +11 -13
- package/front_end/panels/application/components/EndpointsGrid.test.ts +4 -6
- package/front_end/panels/application/components/FrameDetailsView.test.ts +3 -5
- package/front_end/panels/application/components/FrameDetailsView.ts +2 -4
- package/front_end/panels/application/components/InterestGroupAccessGrid.test.ts +2 -4
- package/front_end/panels/application/components/OriginTrialTreeView.test.ts +2 -4
- package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -4
- package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.test.ts +2 -4
- package/front_end/panels/application/components/ServiceWorkerRouterView.test.ts +3 -5
- package/front_end/panels/application/components/SharedStorageAccessGrid.test.ts +2 -4
- package/front_end/panels/application/components/SharedStorageMetadataView.test.ts +5 -7
- package/front_end/panels/application/components/StorageMetadataView.test.ts +3 -5
- package/front_end/panels/application/components/StorageMetadataView.ts +2 -3
- package/front_end/panels/application/components/TrustTokensView.test.ts +2 -4
- package/front_end/panels/application/components/TrustTokensView.ts +1 -3
- package/front_end/panels/application/preloading/PreloadingView.test.ts +42 -27
- package/front_end/panels/application/preloading/PreloadingView.ts +12 -9
- package/front_end/panels/application/preloading/components/MismatchedPreloadingGrid.test.ts +2 -4
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.test.ts +115 -25
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +51 -26
- package/front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts +10 -20
- package/front_end/panels/application/preloading/components/PreloadingGrid.test.ts +169 -17
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +73 -50
- package/front_end/panels/application/preloading/components/PreloadingMismatchedHeadersGrid.test.ts +3 -4
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.test.ts +7 -15
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.ts +4 -5
- package/front_end/panels/application/preloading/components/RuleSetGrid.test.ts +2 -4
- package/front_end/panels/application/preloading/components/UsedPreloadingView.test.ts +57 -37
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +2 -4
- package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +4 -17
- package/front_end/panels/application/resourcesPanel.css +1 -2
- package/front_end/panels/application/resourcesSidebar.css +1 -1
- package/front_end/panels/application/serviceWorkersView.css +0 -5
- package/front_end/panels/autofill/AutofillView.test.ts +12 -14
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +3 -3
- package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +1 -1
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +1 -1
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -2
- package/front_end/panels/console/ConsolePinPane.ts +3 -4
- package/front_end/panels/console/ConsoleSidebar.ts +1 -1
- package/front_end/panels/console/ConsoleView.test.ts +2 -2
- package/front_end/panels/console/ConsoleView.ts +5 -4
- package/front_end/panels/console/ConsoleViewMessage.test.ts +101 -9
- package/front_end/panels/console/ConsoleViewMessage.ts +34 -6
- package/front_end/panels/console/ConsoleViewport.ts +2 -2
- package/front_end/panels/console/ErrorStackParser.test.ts +31 -11
- package/front_end/panels/console/ErrorStackParser.ts +10 -2
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consoleView.css +11 -5
- package/front_end/panels/coverage/CoverageListView.ts +1 -1
- package/front_end/panels/coverage/CoverageView.test.ts +4 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -2
- package/front_end/panels/css_overview/CSSOverviewSidebarPanel.ts +1 -2
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +3 -2
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +5 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +17 -0
- package/front_end/panels/elements/CSSRuleValidator.ts +4 -10
- package/front_end/panels/elements/ClassesPaneWidget.ts +3 -3
- package/front_end/panels/elements/ComputedStyleModel.test.ts +157 -0
- package/front_end/panels/elements/ComputedStyleModel.ts +79 -17
- package/front_end/panels/elements/ComputedStyleWidget.ts +7 -13
- package/front_end/panels/elements/DOMLinkifier.ts +18 -17
- package/front_end/panels/elements/ElementStatePaneWidget.test.ts +4 -3
- package/front_end/panels/elements/ElementStatePaneWidget.ts +9 -3
- package/front_end/panels/elements/ElementsPanel.ts +22 -25
- package/front_end/panels/elements/ElementsSidebarPane.ts +7 -7
- package/front_end/panels/elements/ElementsTreeElement.ts +3 -2
- package/front_end/panels/elements/ElementsTreeOutline.ts +2 -9
- package/front_end/panels/elements/LayersWidget.ts +1 -1
- package/front_end/panels/elements/MetricsSidebarPane.ts +3 -2
- package/front_end/panels/elements/PlatformFontsWidget.ts +1 -0
- package/front_end/panels/elements/PropertyMatchers.test.ts +33 -27
- package/front_end/panels/elements/PropertyMatchers.ts +3 -0
- package/front_end/panels/elements/PropertyRenderer.test.ts +5 -5
- package/front_end/panels/elements/StylePropertiesSection.test.ts +9 -4
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyHighlighter.test.ts +2 -1
- package/front_end/panels/elements/StylePropertyTreeElement.test.ts +23 -21
- package/front_end/panels/elements/StylePropertyTreeElement.ts +3 -2
- package/front_end/panels/elements/StylesSidebarPane.test.ts +8 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +9 -21
- package/front_end/panels/elements/classesPaneWidget.css +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.test.ts +3 -5
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +5 -7
- package/front_end/panels/elements/components/CSSQuery.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.test.ts +13 -15
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +7 -8
- package/front_end/panels/elements/components/ElementsTreeExpandButton.test.ts +3 -5
- package/front_end/panels/elements/components/LayoutPane.test.ts +14 -10
- package/front_end/panels/elements/components/LayoutPane.ts +3 -4
- package/front_end/panels/elements/components/QueryContainer.test.ts +1 -1
- package/front_end/panels/elements/components/QueryContainer.ts +1 -1
- package/front_end/panels/elements/components/components.ts +0 -2
- package/front_end/panels/elements/elementsPanel.css +4 -4
- package/front_end/panels/elements/elementsTreeOutline.css +6 -5
- package/front_end/panels/elements/metricsSidebarPane.css +1 -1
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +4 -0
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -2
- package/front_end/panels/emulation/DeviceModeView.ts +18 -21
- package/front_end/panels/emulation/DeviceModeWrapper.ts +27 -2
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -1
- package/front_end/panels/emulation/MediaQueryInspector.test.ts +2 -2
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +1 -1
- package/front_end/panels/emulation/deviceModeView.css +9 -16
- package/front_end/panels/emulation/mediaQueryInspector.css +3 -6
- package/front_end/panels/event_listeners/EventListenersView.ts +1 -1
- package/front_end/panels/explain/PromptBuilder.test.ts +9 -9
- package/front_end/panels/explain/components/ConsoleInsight.test.ts +37 -1
- package/front_end/panels/explain/components/ConsoleInsight.ts +46 -5
- package/front_end/panels/explain/components/consoleInsight.css +13 -9
- package/front_end/panels/explain/explain-meta.ts +12 -8
- package/front_end/panels/issues/IssueAggregator.test.ts +73 -20
- package/front_end/panels/issues/IssueAggregator.ts +18 -13
- package/front_end/panels/issues/issuesTree.css +3 -4
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +5 -5
- package/front_end/panels/layer_viewer/Layers3DView.ts +5 -4
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +2 -2
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -2
- package/front_end/panels/layers/LayersPanel.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.test.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseStatusView.ts +2 -2
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +2 -2
- package/front_end/panels/lighthouse/lighthousePanel.css +5 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +2 -1
- package/front_end/panels/linear_memory_inspector/LinearMemoryInspectorController.test.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.test.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.test.ts +2 -2
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.test.ts +3 -3
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterSettings.css +1 -2
- package/front_end/panels/media/MainView.test.ts +2 -2
- package/front_end/panels/media/PlayerMessagesView.ts +2 -3
- package/front_end/panels/media/TickingFlameChart.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.test.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +119 -65
- package/front_end/panels/mobile_throttling/ThrottlingPresets.ts +37 -1
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +5 -4
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +13 -8
- package/front_end/panels/network/BlockedURLsPane.ts +2 -2
- package/front_end/panels/network/NetworkConfigView.test.ts +15 -0
- package/front_end/panels/network/NetworkConfigView.ts +11 -11
- package/front_end/panels/network/NetworkDataGridNode.test.ts +2 -2
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
- package/front_end/panels/network/NetworkLogView.test.ts +48 -18
- package/front_end/panels/network/NetworkLogView.ts +11 -13
- package/front_end/panels/network/NetworkLogViewColumns.ts +5 -8
- package/front_end/panels/network/NetworkOverview.test.ts +2 -4
- package/front_end/panels/network/NetworkOverview.ts +2 -4
- package/front_end/panels/network/NetworkPanel.test.ts +5 -7
- package/front_end/panels/network/NetworkPanel.ts +43 -36
- package/front_end/panels/network/NetworkWaterfallColumn.ts +4 -6
- package/front_end/panels/network/RequestPayloadView.ts +2 -2
- package/front_end/panels/network/RequestTimingView.test.ts +1 -1
- package/front_end/panels/network/RequestTimingView.ts +9 -10
- package/front_end/panels/network/blockedURLsPane.css +1 -2
- package/front_end/panels/network/components/HeaderSectionRow.test.ts +25 -27
- package/front_end/panels/network/components/RequestHeaderSection.test.ts +3 -5
- package/front_end/panels/network/components/RequestHeadersView.test.ts +27 -29
- package/front_end/panels/network/components/RequestHeadersView.ts +2 -4
- package/front_end/panels/network/components/RequestTrustTokensView.test.ts +1 -1
- package/front_end/panels/network/components/ResponseHeaderSection.test.ts +32 -34
- package/front_end/panels/network/networkConfigView.css +0 -8
- package/front_end/panels/network/networkLogView.css +2 -5
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/webSocketFrameView.css +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +4 -4
- package/front_end/panels/performance_monitor/performanceMonitor.css +1 -2
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +4 -0
- package/front_end/panels/profiler/HeapProfileView.ts +9 -9
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotView.ts +1 -1
- package/front_end/panels/profiler/HeapTimelineOverview.ts +2 -3
- package/front_end/panels/profiler/IsolateSelector.ts +1 -1
- package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
- package/front_end/panels/profiler/ProfileFlameChartDataProvider.ts +4 -5
- package/front_end/panels/profiler/ProfileLauncherView.ts +7 -10
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +8 -2
- package/front_end/panels/profiler/ProfileView.ts +2 -2
- package/front_end/panels/profiler/ProfilesPanel.ts +4 -1
- package/front_end/panels/profiler/heapProfiler.css +8 -4
- package/front_end/panels/profiler/profileLauncherView.css +26 -31
- package/front_end/panels/profiler/profilesPanel.css +1 -4
- package/front_end/panels/profiler/profilesSidebarTree.css +11 -1
- package/front_end/panels/protocol_monitor/ProtocolMonitor.test.ts +12 -12
- package/front_end/panels/protocol_monitor/components/JSONEditor.test.ts +40 -42
- package/front_end/panels/protocol_monitor/components/JSONEditor.ts +0 -1
- package/front_end/panels/recorder/RecorderController.test.ts +11 -13
- package/front_end/panels/recorder/RecorderController.ts +5 -5
- package/front_end/panels/recorder/components/CreateRecordingView.test.ts +9 -9
- package/front_end/panels/recorder/components/CreateRecordingView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingListView.test.ts +7 -9
- package/front_end/panels/recorder/components/RecordingView.test.ts +7 -9
- package/front_end/panels/recorder/components/RecordingView.ts +0 -2
- package/front_end/panels/recorder/components/ReplaySection.test.ts +3 -5
- package/front_end/panels/recorder/components/SelectButton.test.ts +3 -5
- package/front_end/panels/recorder/components/StepEditor.test.ts +38 -38
- package/front_end/panels/recorder/components/StepView.test.ts +10 -10
- package/front_end/panels/recorder/components/StepView.ts +4 -4
- package/front_end/panels/recorder/components/controlButton.css +3 -4
- package/front_end/panels/recorder/components/stepView.css +4 -4
- package/front_end/panels/recorder/converters/LighthouseConverter.test.ts +1 -1
- package/front_end/panels/recorder/converters/PuppeteerConverter.test.ts +2 -2
- package/front_end/panels/recorder/converters/PuppeteerReplayConverter.test.ts +1 -1
- package/front_end/panels/recorder/injected/selectors/CSSSelector.test.ts +1 -1
- package/front_end/panels/recorder/models/RecordingPlayer.test.ts +7 -7
- package/front_end/panels/recorder/models/SchemaUtils.ts +6 -1
- package/front_end/panels/recorder/models/ScreenshotUtils.test.ts +4 -4
- package/front_end/panels/recorder/models/Section.test.ts +5 -5
- package/front_end/panels/recorder/models/recording-storage.test.ts +1 -1
- package/front_end/panels/recorder/models/screenshot-storage.test.ts +1 -1
- package/front_end/panels/recorder/recorderController.css +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +17 -19
- package/front_end/panels/screencast/screencastView.css +1 -0
- package/front_end/panels/search/SearchView.ts +2 -4
- package/front_end/panels/security/CookieControlsTreeElement.ts +18 -0
- package/front_end/panels/security/CookieControlsView.test.ts +29 -0
- package/front_end/panels/security/CookieControlsView.ts +288 -0
- package/front_end/panels/security/CookieReportView.test.ts +157 -0
- package/front_end/panels/security/CookieReportView.ts +397 -13
- package/front_end/panels/security/SecurityPanel.ts +6 -5
- package/front_end/panels/security/SecurityPanelSidebar.ts +6 -1
- package/front_end/panels/security/cookieControlsView.css +101 -0
- package/front_end/panels/security/cookieReportView.css +26 -3
- package/front_end/panels/security/mainView.css +1 -2
- package/front_end/panels/security/originView.css +1 -2
- package/front_end/panels/security/security.ts +4 -0
- package/front_end/panels/security/sidebar.css +1 -1
- package/front_end/panels/sensors/SensorsView.ts +10 -10
- package/front_end/panels/sensors/locationsSettingsTab.css +1 -1
- package/front_end/panels/sensors/sensors.css +1 -4
- package/front_end/panels/settings/AISettingsTab.test.ts +53 -7
- package/front_end/panels/settings/AISettingsTab.ts +77 -39
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +3 -3
- package/front_end/panels/settings/KeybindsSettingsTab.ts +10 -10
- package/front_end/panels/settings/SettingsScreen.ts +9 -5
- package/front_end/panels/settings/aiSettingsTab.css +14 -4
- package/front_end/panels/settings/components/SyncSection.test.ts +2 -2
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/settings/emulation/DevicesSettingsTab.ts +2 -2
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +3 -1
- package/front_end/panels/settings/emulation/utils/StructuredHeaders.test.ts +2 -2
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +1 -1
- package/front_end/panels/settings/keybindsSettingsTab.css +7 -6
- package/front_end/panels/settings/settings-meta.ts +3 -1
- package/front_end/panels/settings/settingsScreen.css +41 -13
- package/front_end/panels/sources/CSSPlugin.test.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +3 -3
- package/front_end/panels/sources/DebuggerPausedMessage.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.test.ts +5 -5
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.test.ts +3 -3
- package/front_end/panels/sources/NavigatorView.ts +8 -0
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/SourcesNavigator.test.ts +1 -1
- package/front_end/panels/sources/SourcesView.test.ts +5 -5
- package/front_end/panels/sources/TabbedEditorContainer.test.ts +5 -5
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -5
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +2 -2
- package/front_end/panels/sources/components/BreakpointsView.test.ts +28 -30
- package/front_end/panels/sources/components/BreakpointsView.ts +7 -9
- package/front_end/panels/sources/components/HeadersView.test.ts +21 -23
- package/front_end/panels/sources/navigatorTree.css +5 -5
- package/front_end/panels/sources/sources-meta.ts +17 -1
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/timeline/AnimationsTrackAppender.ts +1 -7
- package/front_end/panels/timeline/AppenderUtils.ts +3 -1
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +43 -43
- package/front_end/panels/timeline/CountersGraph.ts +5 -4
- package/front_end/panels/timeline/EntriesFilter.test.ts +10 -10
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -6
- package/front_end/panels/timeline/ExtensionTrackAppender.ts +4 -8
- package/front_end/panels/timeline/Initiators.test.ts +149 -168
- package/front_end/panels/timeline/InteractionsTrackAppender.ts +3 -4
- package/front_end/panels/timeline/LayoutShiftsTrackAppender.ts +9 -38
- package/front_end/panels/timeline/ModificationsManager.test.ts +5 -5
- package/front_end/panels/timeline/ServerTimingsTrackAppender.ts +1 -10
- package/front_end/panels/timeline/ThreadAppender.ts +9 -12
- package/front_end/panels/timeline/TimelineController.ts +51 -5
- package/front_end/panels/timeline/TimelineDetailsView.test.ts +4 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +21 -23
- package/front_end/panels/timeline/TimelineEventOverview.ts +1 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.test.ts +4 -8
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +120 -111
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.test.ts +3 -3
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +33 -29
- package/front_end/panels/timeline/TimelineFlameChartView.test.ts +180 -201
- package/front_end/panels/timeline/TimelineFlameChartView.ts +199 -64
- package/front_end/panels/timeline/TimelineHistoryManager.test.ts +21 -52
- package/front_end/panels/timeline/TimelineHistoryManager.ts +67 -112
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.test.ts +11 -11
- package/front_end/panels/timeline/TimelineLoader.ts +28 -15
- package/front_end/panels/timeline/TimelineMiniMap.test.ts +1 -2
- package/front_end/panels/timeline/TimelineMiniMap.ts +5 -11
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +2 -2
- package/front_end/panels/timeline/TimelinePanel.ts +351 -99
- package/front_end/panels/timeline/TimelineTreeView.ts +71 -27
- package/front_end/panels/timeline/TimelineUIUtils.test.ts +131 -33
- package/front_end/panels/timeline/TimelineUIUtils.ts +108 -66
- package/front_end/panels/timeline/TimingsTrackAppender.ts +25 -90
- package/front_end/panels/timeline/components/BreadcrumbsUI.test.ts +8 -10
- package/front_end/panels/timeline/components/CPUThrottlingSelector.test.ts +7 -9
- package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +33 -3
- package/front_end/panels/timeline/components/FieldSettingsDialog.test.ts +55 -311
- package/front_end/panels/timeline/components/FieldSettingsDialog.ts +19 -256
- package/front_end/panels/timeline/components/IgnoreListSetting.test.ts +425 -0
- package/front_end/panels/timeline/components/IgnoreListSetting.ts +362 -0
- package/front_end/panels/timeline/components/InteractionBreakdown.test.ts +2 -3
- package/front_end/panels/timeline/components/LiveMetricsView.test.ts +94 -115
- package/front_end/panels/timeline/components/LiveMetricsView.ts +115 -153
- package/front_end/panels/timeline/components/MetricCard.test.ts +58 -37
- package/front_end/panels/timeline/components/MetricCard.ts +5 -1
- package/front_end/panels/timeline/components/MetricCompareStrings.ts +9 -9
- package/front_end/panels/timeline/components/NetworkRequestDetails.ts +5 -8
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.test.ts +14 -15
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +35 -5
- package/front_end/panels/timeline/components/OriginMap.test.ts +359 -0
- package/front_end/panels/timeline/components/OriginMap.ts +278 -0
- package/front_end/panels/timeline/components/RelatedInsightChips.test.ts +37 -6
- package/front_end/panels/timeline/components/RelatedInsightChips.ts +34 -10
- package/front_end/panels/timeline/components/Sidebar.test.ts +1 -7
- package/front_end/panels/timeline/components/Sidebar.ts +7 -15
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.test.ts +18 -21
- package/front_end/panels/timeline/components/SidebarInsightsTab.test.ts +2 -4
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +1 -2
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts +86 -48
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +71 -79
- package/front_end/panels/timeline/components/TimelineSummary.test.ts +75 -0
- package/front_end/panels/timeline/components/TimelineSummary.ts +101 -0
- package/front_end/panels/timeline/components/Utils.test.ts +65 -18
- package/front_end/panels/timeline/components/Utils.ts +2 -2
- package/front_end/panels/timeline/components/breadcrumbsUI.css +1 -2
- package/front_end/panels/timeline/components/components.ts +6 -0
- package/front_end/panels/timeline/components/cpuThrottlingSelector.css +5 -2
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +7 -10
- package/front_end/panels/timeline/components/ignoreListSetting.css +68 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.test.ts +82 -0
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +304 -0
- package/front_end/panels/timeline/components/insights/CLSCulprits.test.ts +44 -0
- package/front_end/panels/timeline/components/insights/CLSCulprits.ts +36 -53
- package/front_end/panels/timeline/components/insights/DOMSize.ts +62 -0
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +28 -54
- package/front_end/panels/timeline/components/insights/EventRef.ts +59 -2
- package/front_end/panels/timeline/components/insights/FontDisplay.ts +24 -50
- package/front_end/panels/timeline/components/insights/Helpers.ts +5 -208
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +117 -0
- package/front_end/panels/timeline/components/insights/InteractionToNextPaint.ts +33 -55
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +48 -81
- package/front_end/panels/timeline/components/insights/LCPPhases.ts +21 -55
- package/front_end/panels/timeline/components/insights/README.md +10 -24
- package/front_end/panels/timeline/components/insights/RenderBlocking.ts +33 -49
- package/front_end/panels/timeline/components/insights/SidebarInsight.ts +3 -197
- package/front_end/panels/timeline/components/insights/SlowCSSSelector.ts +70 -77
- package/front_end/panels/timeline/components/insights/Table.ts +15 -5
- package/front_end/panels/timeline/components/insights/ThirdParties.ts +56 -71
- package/front_end/panels/timeline/components/insights/Viewport.ts +17 -36
- package/front_end/panels/timeline/components/insights/{sidebarInsight.css → baseInsightComponent.css} +20 -13
- package/front_end/panels/timeline/components/insights/insights.ts +6 -0
- package/front_end/panels/timeline/components/insights/table.css +1 -1
- package/front_end/panels/timeline/components/insights/types.ts +0 -7
- package/front_end/panels/timeline/components/liveMetricsView.css +44 -5
- package/front_end/panels/timeline/components/metricCard.css +39 -4
- package/front_end/panels/timeline/components/networkThrottlingSelector.css +5 -2
- package/front_end/panels/timeline/components/originMap.css +71 -0
- package/front_end/panels/timeline/components/relatedInsightChips.css +29 -0
- package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +8 -0
- package/front_end/panels/timeline/components/timelineSummary.css +64 -0
- package/front_end/panels/timeline/docs/flame_chart_migration.md +1 -1
- package/front_end/panels/timeline/fixtures/traces/README.md +33 -4
- package/front_end/panels/timeline/fixtures/traces/async-js-calls.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/dom-size-long.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/dom-size.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/extension-tracks-and-marks.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/image-delivery.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/lcp-multiple-frames.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/web-dev-animation-frames.json.gz +0 -0
- package/front_end/panels/timeline/overlays/OverlaysImpl.test.ts +45 -18
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +220 -64
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +16 -8
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -1
- package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +2 -1
- package/front_end/panels/timeline/overlays/components/TimespanBreakdownOverlay.test.ts +1 -2
- package/front_end/panels/timeline/timeline-meta.ts +1 -1
- package/front_end/panels/timeline/timeline.ts +0 -2
- package/front_end/panels/timeline/timelineFlameChartView.css +44 -5
- package/front_end/panels/timeline/timelineFlamechartPopover.css +16 -6
- package/front_end/panels/timeline/timelineHistoryManager.css +7 -3
- package/front_end/panels/timeline/timelinePanel.css +4 -4
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -0
- package/front_end/panels/timeline/track_appenders/AnimationsTrackAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/CompatibilityTracksAppender.test.ts +11 -25
- package/front_end/panels/timeline/track_appenders/ExtensionTrackAppender.test.ts +25 -12
- package/front_end/panels/timeline/track_appenders/GPUTrackAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/InteractionsTrackAppender.test.ts +3 -3
- package/front_end/panels/timeline/track_appenders/LayoutShiftsTrackAppender.test.ts +13 -4
- package/front_end/panels/timeline/track_appenders/NetworkTrackAppender.test.ts +1 -1
- package/front_end/panels/timeline/track_appenders/ServerTimingsTrackAppender.test.ts +2 -11
- package/front_end/panels/timeline/track_appenders/ThreadAppender.test.ts +50 -56
- package/front_end/panels/timeline/track_appenders/TimingsTrackAppender.test.ts +48 -94
- package/front_end/panels/timeline/utils/AICallTree.test.ts +11 -11
- package/front_end/panels/timeline/utils/AICallTree.ts +1 -1
- package/front_end/panels/timeline/utils/EntityMapper.test.ts +124 -0
- package/front_end/panels/timeline/utils/EntityMapper.ts +164 -0
- package/front_end/panels/timeline/utils/EntryName.ts +1 -2
- package/front_end/panels/timeline/utils/EntryStyles.ts +40 -2
- package/front_end/panels/timeline/utils/Helpers.ts +39 -0
- package/front_end/panels/timeline/utils/IgnoreList.test.ts +53 -1
- package/front_end/panels/timeline/utils/IgnoreList.ts +68 -7
- package/front_end/panels/timeline/utils/ImageCache.test.ts +2 -2
- package/front_end/panels/timeline/utils/SourceMapsResolver.test.ts +83 -2
- package/front_end/panels/timeline/utils/SourceMapsResolver.ts +25 -21
- package/front_end/panels/timeline/utils/utils.ts +2 -0
- package/front_end/panels/utils/utils.test.ts +2 -2
- package/front_end/panels/web_audio/AudioContextSelector.ts +1 -2
- package/front_end/panels/webauthn/WebauthnPane.test.ts +55 -11
- package/front_end/panels/webauthn/WebauthnPane.ts +47 -27
- package/front_end/panels/webauthn/webauthnPane.css +3 -10
- package/front_end/panels/whats_new/ReleaseNote.test.ts +91 -0
- package/front_end/panels/whats_new/ReleaseNoteText.ts +67 -0
- package/front_end/panels/whats_new/ReleaseNoteView.test.ts +159 -0
- package/front_end/panels/whats_new/ReleaseNoteView.ts +160 -0
- package/front_end/panels/whats_new/WhatsNewImpl.ts +102 -0
- package/front_end/panels/whats_new/releaseNoteView.css +111 -0
- package/front_end/panels/whats_new/resources/WNDT.md +6 -0
- package/front_end/panels/whats_new/whats_new-meta.ts +142 -0
- package/front_end/panels/whats_new/whats_new.ts +13 -0
- package/front_end/services/puppeteer/PuppeteerConnection.ts +4 -3
- package/front_end/testing/DOMHelpers.ts +15 -1
- package/front_end/testing/DataGridHelpers.ts +2 -3
- package/front_end/testing/EnvironmentHelpers.ts +18 -7
- package/front_end/testing/InsightHelpers.ts +11 -0
- package/front_end/testing/NetworkHelpers.ts +2 -4
- package/front_end/testing/SourceMapEncoder.ts +27 -11
- package/front_end/testing/StubIssue.ts +1 -1
- package/front_end/testing/TraceHelpers.ts +106 -12
- package/front_end/testing/TraceLoader.ts +20 -2
- package/front_end/third_party/axe-core/README.chromium +2 -2
- package/front_end/third_party/i18n/localized-string-set.ts +13 -3
- package/front_end/third_party/lighthouse/README.chromium +2 -2
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1726 -1431
- package/front_end/third_party/lighthouse/locales/ar-XB.json +148 -85
- package/front_end/third_party/lighthouse/locales/ar.json +158 -95
- package/front_end/third_party/lighthouse/locales/bg.json +148 -85
- package/front_end/third_party/lighthouse/locales/ca.json +151 -88
- package/front_end/third_party/lighthouse/locales/cs.json +151 -88
- package/front_end/third_party/lighthouse/locales/da.json +154 -91
- package/front_end/third_party/lighthouse/locales/de.json +152 -89
- package/front_end/third_party/lighthouse/locales/el.json +152 -89
- package/front_end/third_party/lighthouse/locales/en-GB.json +149 -86
- package/front_end/third_party/lighthouse/locales/en-US.json +177 -60
- package/front_end/third_party/lighthouse/locales/en-XA.json +88 -85
- package/front_end/third_party/lighthouse/locales/en-XL.json +177 -60
- package/front_end/third_party/lighthouse/locales/es-419.json +152 -89
- package/front_end/third_party/lighthouse/locales/es.json +151 -88
- package/front_end/third_party/lighthouse/locales/fi.json +152 -89
- package/front_end/third_party/lighthouse/locales/fil.json +153 -90
- package/front_end/third_party/lighthouse/locales/fr.json +154 -91
- package/front_end/third_party/lighthouse/locales/he.json +157 -94
- package/front_end/third_party/lighthouse/locales/hi.json +152 -89
- package/front_end/third_party/lighthouse/locales/hr.json +150 -87
- package/front_end/third_party/lighthouse/locales/hu.json +150 -87
- package/front_end/third_party/lighthouse/locales/id.json +151 -88
- package/front_end/third_party/lighthouse/locales/it.json +150 -87
- package/front_end/third_party/lighthouse/locales/ja.json +150 -87
- package/front_end/third_party/lighthouse/locales/ko.json +150 -87
- package/front_end/third_party/lighthouse/locales/lt.json +150 -87
- package/front_end/third_party/lighthouse/locales/lv.json +151 -88
- package/front_end/third_party/lighthouse/locales/nl.json +150 -87
- package/front_end/third_party/lighthouse/locales/no.json +152 -89
- package/front_end/third_party/lighthouse/locales/pl.json +150 -87
- package/front_end/third_party/lighthouse/locales/pt-PT.json +171 -108
- package/front_end/third_party/lighthouse/locales/pt.json +157 -94
- package/front_end/third_party/lighthouse/locales/ro.json +154 -91
- package/front_end/third_party/lighthouse/locales/ru.json +153 -90
- package/front_end/third_party/lighthouse/locales/sk.json +153 -90
- package/front_end/third_party/lighthouse/locales/sl.json +151 -88
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +151 -88
- package/front_end/third_party/lighthouse/locales/sr.json +151 -88
- package/front_end/third_party/lighthouse/locales/sv.json +152 -89
- package/front_end/third_party/lighthouse/locales/ta.json +161 -98
- package/front_end/third_party/lighthouse/locales/te.json +152 -89
- package/front_end/third_party/lighthouse/locales/th.json +155 -92
- package/front_end/third_party/lighthouse/locales/tr.json +151 -88
- package/front_end/third_party/lighthouse/locales/uk.json +153 -90
- package/front_end/third_party/lighthouse/locales/vi.json +155 -92
- package/front_end/third_party/lighthouse/locales/zh-HK.json +152 -89
- package/front_end/third_party/lighthouse/locales/zh-TW.json +158 -95
- package/front_end/third_party/lighthouse/locales/zh.json +156 -93
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/third_party/lit/lib/decorators.d.ts +5 -2
- package/front_end/third_party/lit/lib/decorators.js +5 -5
- package/front_end/third_party/lit/lib/decorators.js.map +1 -1
- package/front_end/third_party/lit/lib/directive.d.ts +15 -7
- package/front_end/third_party/lit/lib/directive.js.map +1 -1
- package/front_end/third_party/lit/lib/directives.d.ts +147 -7
- package/front_end/third_party/lit/lib/directives.js +9 -9
- package/front_end/third_party/lit/lib/directives.js.map +1 -1
- package/front_end/third_party/lit/lib/lit.d.ts +126 -13
- package/front_end/third_party/lit/lib/lit.js +5 -5
- package/front_end/third_party/lit/lib/lit.js.map +1 -1
- package/front_end/third_party/lit/lib/static-html.d.ts +202 -0
- package/front_end/third_party/lit/lib/static-html.js +13 -0
- package/front_end/third_party/lit/lib/static-html.js.map +1 -0
- package/front_end/third_party/lit/lit.ts +2 -1
- package/front_end/third_party/lit/package.json +2 -2
- package/front_end/third_party/lit/{rollup.config.js → rollup.config.mjs} +2 -2
- package/front_end/third_party/lit/src/static-html.ts +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 +36 -0
- 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 +33 -0
- 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 +14 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +12 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Frame.js +3 -1
- 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 +1 -0
- 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 +1 -0
- 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/Page.d.ts +26 -6
- 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 +0 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js +19 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js +35 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/ElementHandle.js +15 -1
- 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 +17 -7
- 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 +13 -2
- 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/HTTPRequest.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +12 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +33 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +100 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +35 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/CDPSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Connection.js +12 -4
- 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/ElementHandle.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js +11 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/EmulationManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/HTTPResponse.js +4 -4
- 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/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +24 -12
- 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 +3 -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 +21 -13
- 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/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +17 -7
- 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/CallbackRegistry.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/CallbackRegistry.js +7 -0
- 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 +11 -6
- 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/Cookie.d.ts +85 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Cookie.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +17 -7
- 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/DownloadBehavior.d.ts +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.js +8 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DownloadBehavior.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/common.d.ts +1 -0
- 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/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts.map +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/generated/version.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +17 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.d.ts +6 -6
- 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 +22 -12
- 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 +5 -5
- 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 +7 -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/FirefoxLauncher.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +50 -48
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts +14 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +34 -24
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +7 -3
- 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 +17 -7
- 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/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/third_party/parsel-js/parsel-js.js +11 -21
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +328 -116
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +809 -562
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +36 -0
- 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 +33 -0
- 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 +14 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +12 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Frame.js +3 -1
- 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 +1 -0
- 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 +1 -0
- 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/Page.d.ts +26 -6
- 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 +0 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js +36 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/ElementHandle.js +15 -1
- 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/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Frame.js +14 -3
- 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/HTTPRequest.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +12 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +30 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Request.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/UserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +8 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +100 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +10 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +35 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.js +9 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/CDPSession.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js +12 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js +11 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/ElementHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.js +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/EmulationManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.d.ts +1 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/HTTPResponse.js +4 -4
- 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/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +24 -12
- 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 +3 -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 +20 -13
- 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/common/BrowserConnector.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/CallbackRegistry.js +7 -0
- 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 +11 -6
- 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/Cookie.d.ts +85 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Cookie.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.d.ts +30 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DownloadBehavior.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/common.d.ts +1 -0
- 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/generated/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts.map +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/generated/version.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.d.ts +6 -6
- 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 +5 -5
- 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 +5 -5
- 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 +7 -4
- 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/FirefoxLauncher.d.ts +4 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +4 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +50 -48
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts +14 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +34 -24
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +7 -3
- 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/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/third_party/parsel-js/parsel-js.js +11 -21
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +328 -116
- package/front_end/third_party/puppeteer/package/package.json +8 -8
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +45 -0
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +26 -0
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +3 -1
- package/front_end/third_party/puppeteer/package/src/api/HTTPRequest.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +27 -8
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserConnector.ts +4 -6
- package/front_end/third_party/puppeteer/package/src/bidi/BrowserContext.ts +57 -10
- package/front_end/third_party/puppeteer/package/src/bidi/ElementHandle.ts +17 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Frame.ts +20 -3
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPRequest.ts +6 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +47 -5
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +10 -0
- package/front_end/third_party/puppeteer/package/src/bidi/core/Request.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +55 -3
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +11 -3
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserConnector.ts +4 -5
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +44 -0
- package/front_end/third_party/puppeteer/package/src/cdp/CDPSession.ts +12 -5
- package/front_end/third_party/puppeteer/package/src/cdp/Connection.ts +15 -6
- package/front_end/third_party/puppeteer/package/src/cdp/ElementHandle.ts +13 -1
- package/front_end/third_party/puppeteer/package/src/cdp/EmulationManager.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPRequest.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/HTTPResponse.ts +3 -5
- package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +34 -17
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +29 -13
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +1 -2
- package/front_end/third_party/puppeteer/package/src/common/CallbackRegistry.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/common/ConnectOptions.ts +12 -6
- package/front_end/third_party/puppeteer/package/src/common/Cookie.ts +87 -4
- package/front_end/third_party/puppeteer/package/src/common/DownloadBehavior.ts +31 -0
- package/front_end/third_party/puppeteer/package/src/common/common.ts +1 -0
- package/front_end/third_party/puppeteer/package/src/generated/version.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts +16 -12
- package/front_end/third_party/puppeteer/package/src/node/ChromeLauncher.ts +11 -12
- package/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts +9 -9
- package/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts +52 -50
- package/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts +55 -45
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/puppeteer-tsconfig.json +1 -0
- package/front_end/ui/components/adorners/Adorner.test.ts +2 -2
- package/front_end/ui/components/buttons/button.css +5 -5
- package/front_end/ui/components/cards/Card.test.ts +1 -1
- package/front_end/ui/components/cards/card.css +2 -2
- package/front_end/ui/components/chrome_link/ChromeLink.test.ts +2 -4
- package/front_end/ui/components/chrome_link/ChromeLink.ts +1 -1
- package/front_end/ui/components/data_grid/DataGrid.test.ts +65 -67
- package/front_end/ui/components/data_grid/DataGrid.ts +11 -16
- package/front_end/ui/components/data_grid/DataGridController.test.ts +34 -36
- package/front_end/ui/components/data_grid/DataGridControllerIntegrator.ts +4 -1
- package/front_end/ui/components/data_grid/dataGrid.css +1 -1
- package/front_end/ui/components/dialogs/ButtonDialog.test.ts +76 -0
- package/front_end/ui/components/dialogs/ButtonDialog.ts +133 -0
- package/front_end/ui/components/dialogs/Dialog.test.ts +86 -46
- package/front_end/ui/components/dialogs/Dialog.ts +73 -99
- package/front_end/ui/components/dialogs/ShortcutDialog.test.ts +16 -18
- package/front_end/ui/components/dialogs/ShortcutDialog.ts +26 -97
- package/front_end/ui/components/dialogs/buttonDialog.css +9 -0
- package/front_end/ui/components/dialogs/dialog.css +21 -4
- package/front_end/ui/components/dialogs/dialogs.ts +2 -2
- package/front_end/ui/components/dialogs/shortcutDialog.css +40 -10
- package/front_end/ui/components/diff_view/DiffView.test.ts +1 -1
- package/front_end/ui/components/diff_view/diffView.css +2 -2
- package/front_end/ui/components/docs/{freestyler → ai_assistance}/basic.ts +8 -8
- package/front_end/ui/components/docs/{freestyler → ai_assistance}/empty_state.ts +5 -5
- package/front_end/ui/components/docs/building-ui-documentation/TestingComponents.md +6 -7
- package/front_end/ui/components/docs/button/basic.html +18 -34
- package/front_end/ui/components/docs/button/basic.ts +135 -371
- package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
- package/front_end/ui/components/docs/dialog/basic.ts +71 -7
- package/front_end/ui/components/docs/{icon_dialog/basic.html → dialog/button_dialog.html} +4 -4
- package/front_end/ui/components/docs/dialog/button_dialog.ts +30 -0
- package/front_end/ui/components/docs/{shortcut_dialog/basic.html → dialog/shortcut_dialog.html} +1 -1
- package/front_end/ui/components/docs/{shortcut_dialog/basic.ts → dialog/shortcut_dialog.ts} +5 -5
- package/front_end/ui/components/docs/menu/basic.ts +0 -1
- package/front_end/ui/components/docs/performance_panel/basic.ts +1 -6
- package/front_end/ui/components/docs/performance_panel/timeline_history_manager.ts +6 -7
- package/front_end/ui/components/docs/{two_states_counter → radio_button}/basic.html +7 -11
- package/front_end/ui/components/docs/radio_button/basic.ts +50 -0
- package/front_end/ui/components/docs/recorder_control_button/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_create_recording_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_recording_list_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_recording_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_select_button/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_split_view/basic.ts +1 -1
- package/front_end/ui/components/docs/recorder_start_view/basic.ts +1 -1
- package/front_end/ui/components/docs/select_menu/basic.ts +3 -4
- package/front_end/ui/components/docs/slider/basic.html +20 -0
- package/front_end/ui/components/docs/slider/basic.ts +62 -0
- package/front_end/ui/components/expandable_list/ExpandableList.test.ts +4 -4
- package/front_end/ui/components/floating_button/FloatingButton.ts +3 -2
- package/front_end/ui/components/helpers/helpers.test.ts +4 -6
- package/front_end/ui/components/helpers/scheduled-render.ts +4 -3
- package/front_end/ui/components/highlighting/HighlightManager.test.ts +7 -7
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +0 -1
- package/front_end/ui/components/icon_button/IconButton.test.ts +8 -8
- package/front_end/ui/components/icon_button/fileSourceIcon.css +7 -3
- package/front_end/ui/components/icon_button/icon.css +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.test.ts +10 -10
- package/front_end/ui/components/issue_counter/IssueCounter.ts +15 -2
- package/front_end/ui/components/issue_counter/IssueLinkIcon.test.ts +4 -6
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -4
- package/front_end/ui/components/legacy_wrapper/LegacyWrapper.ts +1 -1
- package/front_end/ui/components/linkifier/LinkifierImpl.test.ts +8 -10
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +3 -5
- package/front_end/ui/components/markdown_view/MarkdownImage.test.ts +2 -4
- package/front_end/ui/components/markdown_view/MarkdownView.test.ts +9 -9
- package/front_end/ui/components/markdown_view/MarkdownView.ts +15 -0
- package/front_end/ui/components/markdown_view/markdownLink.css +0 -4
- package/front_end/ui/components/markdown_view/markdownView.css +2 -6
- package/front_end/ui/components/menus/Menu.ts +3 -22
- package/front_end/ui/components/menus/SelectMenu.test.ts +5 -7
- package/front_end/ui/components/menus/SelectMenu.ts +6 -39
- package/front_end/ui/components/menus/selectMenuButton.css +1 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.test.ts +2 -4
- package/front_end/ui/components/panel_feedback/PanelFeedback.test.ts +2 -4
- package/front_end/ui/components/panel_feedback/PreviewToggle.test.ts +5 -7
- package/front_end/ui/components/render_coordinator/render_coordinator.test.ts +53 -52
- package/front_end/ui/components/render_coordinator/render_coordinator.ts +301 -2
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.test.ts +5 -7
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +30 -27
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +3 -0
- package/front_end/ui/components/settings/SettingCheckbox.test.ts +3 -3
- package/front_end/ui/components/settings/SettingCheckbox.ts +4 -3
- package/front_end/ui/components/spinners/spinner.css +4 -4
- package/front_end/ui/components/split_view/SplitView.test.ts +6 -8
- package/front_end/ui/components/srgb_overlay/SrgbOverlay.ts +2 -4
- package/front_end/ui/components/srgb_overlay/srgbOverlay.css +2 -2
- package/front_end/ui/components/suggestion_input/SuggestionInput.ts +1 -1
- package/front_end/ui/components/suggestion_input/suggestionInput.css +1 -2
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/switch/SwitchImpl.test.ts +1 -1
- package/front_end/ui/components/switch/SwitchImpl.ts +4 -4
- package/front_end/ui/components/text_editor/TextEditor.test.ts +6 -6
- package/front_end/ui/components/text_editor/config.ts +22 -4
- package/front_end/ui/components/text_prompt/TextPrompt.test.ts +3 -3
- package/front_end/ui/components/tree_outline/TreeOutline.test.ts +46 -48
- package/front_end/ui/components/tree_outline/TreeOutline.ts +3 -5
- package/front_end/ui/legacy/ARIAUtils.ts +1 -5
- package/front_end/ui/legacy/Dialog.ts +2 -4
- package/front_end/ui/legacy/DockController.test.ts +2 -2
- package/front_end/ui/legacy/DropTarget.ts +1 -2
- package/front_end/ui/legacy/EmptyWidget.ts +1 -1
- package/front_end/ui/legacy/FilterBar.ts +3 -5
- package/front_end/ui/legacy/Infobar.ts +11 -7
- package/front_end/ui/legacy/InspectorView.ts +40 -0
- package/front_end/ui/legacy/ListWidget.ts +5 -3
- package/front_end/ui/legacy/ProgressIndicator.ts +2 -3
- package/front_end/ui/legacy/ReportView.ts +2 -2
- package/front_end/ui/legacy/SearchableView.ts +4 -7
- package/front_end/ui/legacy/SettingsUI.ts +2 -2
- package/front_end/ui/legacy/ShortcutRegistry.test.ts +3 -3
- package/front_end/ui/legacy/SoftDropDown.ts +0 -1
- package/front_end/ui/legacy/SplitWidget.ts +2 -2
- package/front_end/ui/legacy/SuggestBox.test.ts +5 -5
- package/front_end/ui/legacy/SuggestBox.ts +1 -2
- package/front_end/ui/legacy/TabbedPane.ts +42 -2
- package/front_end/ui/legacy/TextPrompt.ts +1 -1
- package/front_end/ui/legacy/ThrottledWidget.ts +2 -2
- package/front_end/ui/legacy/Toolbar.test.ts +2 -5
- package/front_end/ui/legacy/Toolbar.ts +14 -11
- package/front_end/ui/legacy/Treeoutline.ts +1 -2
- package/front_end/ui/legacy/UIUtils.ts +169 -134
- package/front_end/ui/legacy/ViewRegistration.test.ts +1 -1
- package/front_end/ui/legacy/Widget.test.ts +111 -4
- package/front_end/ui/legacy/Widget.ts +96 -17
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +4 -4
- package/front_end/ui/legacy/components/color_picker/Spectrum.test.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -2
- package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.test.ts +7 -10
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +43 -42
- package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +3 -5
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +10 -17
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.test.ts +3 -3
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/ColorMixSwatch.test.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.test.ts +5 -5
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +22 -23
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +26 -26
- package/front_end/ui/legacy/components/inline_editor/bezierSwatch.css +4 -4
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +1 -4
- package/front_end/ui/legacy/components/inline_editor/cssAngleSwatch.css +1 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +2 -4
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -5
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +4 -4
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +73 -72
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.test.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +203 -132
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/PieChart.test.ts +6 -6
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewCalculator.ts +18 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +109 -50
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -2
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +1 -12
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +1 -4
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +17 -15
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +1 -4
- package/front_end/ui/legacy/components/quick_open/CommandMenu.test.ts +3 -3
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +2 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +3 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -2
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +2 -4
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +22 -19
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +3 -4
- package/front_end/ui/legacy/components/utils/Linkifier.test.ts +4 -0
- package/front_end/ui/legacy/components/utils/jsUtils.css +8 -0
- package/front_end/ui/legacy/dropTarget.css +1 -4
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/glassPane.css +2 -4
- package/front_end/ui/legacy/inspectorCommon.css +87 -21
- package/front_end/ui/legacy/inspectorViewTabbedPane.css +0 -19
- package/front_end/ui/legacy/legacy.ts +0 -2
- package/front_end/ui/legacy/listWidget.css +4 -1
- package/front_end/ui/legacy/reportView.css +8 -2
- package/front_end/ui/legacy/rootView.css +1 -4
- package/front_end/ui/legacy/softDropDown.css +1 -2
- package/front_end/ui/legacy/tabbedPane.css +10 -18
- package/front_end/ui/legacy/textButton.css +6 -6
- package/front_end/ui/legacy/themeColors.css +50 -28
- package/front_end/ui/legacy/toolbar.css +7 -34
- package/front_end/ui/legacy/treeoutline.css +4 -2
- package/front_end/ui/lit-html/i18n-template.test.ts +53 -0
- package/front_end/ui/lit-html/i18n-template.ts +32 -0
- package/front_end/ui/lit-html/lit-html.ts +13 -14
- package/front_end/ui/visual_logging/Debugging.test.ts +0 -9
- package/front_end/ui/visual_logging/Debugging.ts +45 -12
- package/front_end/ui/visual_logging/DomState.test.ts +6 -6
- package/front_end/ui/visual_logging/KnownContextValues.ts +211 -4
- package/front_end/ui/visual_logging/LoggingDriver.test.ts +33 -8
- package/front_end/ui/visual_logging/LoggingDriver.ts +10 -8
- package/front_end/ui/visual_logging/LoggingEvents.test.ts +16 -16
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/front_end/ui/visual_logging/visual_logging.ts +12 -1
- package/inspector_overlay/common.css +1 -4
- package/inspector_overlay/css_grid_label_helpers.test.ts +14 -15
- package/inspector_overlay/css_grid_label_helpers.ts +2 -2
- package/inspector_overlay/highlight_common.test.ts +6 -6
- package/inspector_overlay/highlight_common.ts +1 -1
- package/inspector_overlay/highlight_flex_common.test.ts +45 -45
- package/inspector_overlay/main.ts +7 -7
- package/inspector_overlay/tool_highlight.css +1 -1
- package/inspector_overlay/tool_highlight.test.ts +3 -3
- package/inspector_overlay/tool_highlight.ts +1 -1
- package/inspector_overlay/tool_window_controls.test.ts +2 -2
- package/package.json +16 -16
- package/scripts/{freestyler → ai_assistance}/README.md +11 -10
- package/scripts/{freestyler/auto_freestyler.js → ai_assistance/auto-run.js} +43 -6
- package/scripts/{freestyler → ai_assistance}/eval/index.js +1 -1
- package/scripts/ai_assistance/to_tsv.mjs +40 -0
- package/scripts/ai_assistance/types.d.ts +54 -0
- package/scripts/build/typescript/ts_library.py +3 -0
- package/scripts/build/typescript/typescript.gni +4 -1
- package/scripts/build/wasm-as.py +1 -1
- package/scripts/check_experiments.js +82 -23
- package/scripts/component_server/server.js +142 -48
- package/scripts/devtools_paths.js +25 -9
- package/scripts/eslint_rules/README.md +5 -1
- package/scripts/eslint_rules/lib/{l10n_no_locked_or_placeholder_only_phrase.js → l10n-no-locked-or-placeholder-only-phrase.js} +1 -1
- package/scripts/eslint_rules/lib/{l10n_no_uistrings_export.js → l10n-no-uistrings-export.js} +1 -1
- package/scripts/eslint_rules/lib/{l10n_no_unused_message.js → l10n-no-unused-message.js} +1 -1
- package/scripts/eslint_rules/lib/{ban_a_tags_in_lit_html.js → no-a-tags-in-lit-html.js} +0 -1
- package/scripts/eslint_rules/lib/no-assert-deep-strict-equal.js +61 -0
- package/scripts/eslint_rules/lib/no-assert-equal-boolean-null-undefined.js +125 -0
- package/scripts/eslint_rules/lib/no-assert-strict-equal-for-arrays-and-objects.js +75 -0
- package/scripts/eslint_rules/lib/no-customized-builtin-elements.js +120 -0
- package/scripts/eslint_rules/lib/{ban_imports_in_directory.js → no-imports-in-directory.js} +0 -1
- package/scripts/eslint_rules/lib/{ban_new_lit_element_components.js → no-new-lit-element-components.js} +0 -1
- package/scripts/eslint_rules/lib/{ban_style_tags_in_lit_html.js → no-style-tags-in-lit-html.js} +14 -3
- package/scripts/eslint_rules/lib/prefer-assert-instance-of.js +89 -0
- package/scripts/eslint_rules/lib/prefer-assert-is-ok.js +71 -0
- package/scripts/eslint_rules/lib/prefer-assert-length-of.js +79 -0
- package/scripts/eslint_rules/lib/{use_private_class_members.js → prefer-private-class-members.js} +4 -6
- package/scripts/eslint_rules/lib/prefer-readonly-keyword.js +57 -0
- package/scripts/eslint_rules/tests/{canvas_context_tracking_test.js → canvas-context-tracking.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_css_import_test.js → check-css-import.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_enumerated_histograms_test.js → check-enumerated-histograms.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_license_header_test.js → check-license-header.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_test_definitions_test.js → check-test-definitions.test.js} +2 -2
- package/scripts/eslint_rules/tests/{check_was_shown_methods_test.js → check-was-shown-methods.test.js} +2 -2
- package/scripts/eslint_rules/tests/{enforce_bound_render_for_schedule_render_test.js → enforce-bound-render-for-schedule-render.test.js} +2 -2
- package/scripts/eslint_rules/tests/{enforce_custom_event_names_test.js → enforce-custom-event-names.test.js} +2 -2
- package/scripts/eslint_rules/tests/{enforce_default_import_name_test.js → enforce-default-import-name.test.js} +2 -2
- package/scripts/eslint_rules/tests/{es_modules_import_test.js → es-modules-import.test.js} +2 -2
- package/scripts/eslint_rules/tests/{html_tagged_template_test.js → html-tagged-template.test.js} +2 -2
- package/scripts/eslint_rules/tests/{inject_checkbox_styles_test.js → inject-checkbox-styles.test.js} +2 -2
- package/scripts/eslint_rules/tests/{inline_type_imports_test.js → inline-type-imports.test.js} +2 -2
- package/scripts/eslint_rules/tests/{jslog_context_list_test.js → jslog-context-list.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_filename_matches_test.js → l10n-filename-matches.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_i18nString_call_only_with_uistrings_test.js → l10n-i18nString-call-only-with-uistrings.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_i18nString_calls_module_instantiation_test.js → l10n-no-i18nString-calls-module-instantiation.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_locked_or_placeholder_only_phrase_test.js → l10n-no-locked-or-placeholder-only-phrase.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_uistrings_export_test.js → l10n-no-uistrings-export.test.js} +2 -2
- package/scripts/eslint_rules/tests/{l10n_no_unused_message_test.js → l10n-no-unused-message.test.js} +2 -2
- package/scripts/eslint_rules/tests/{lit_html_host_this_test.js → lit-html-host-this.test.js} +2 -2
- package/scripts/eslint_rules/tests/{lit_html_no_attribute_quotes_test.js → lit-html-no-attribute-quotes.test.js} +2 -2
- package/scripts/eslint_rules/tests/{lit_template_result_or_nothing_test.js → lit-template-result-or-nothing.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_a_tags_in_lit_html_test.js → no-a-tags-in-lit-html.test.js} +2 -2
- package/scripts/eslint_rules/tests/no-assert-deep-strict-equal.test.js +53 -0
- package/scripts/eslint_rules/tests/no-assert-equal-boolean-null-undefined.test.js +209 -0
- package/scripts/eslint_rules/tests/{avoid_assert_equal_test.js → no-assert-equal.test.js} +2 -2
- package/scripts/eslint_rules/tests/no-assert-strict-equal-for-arrays-and-objects.test.js +89 -0
- package/scripts/eslint_rules/tests/{no_bound_component_methods_test.js → no-bound-component-methods.test.js} +2 -2
- package/scripts/eslint_rules/tests/{commented_out_console_test.js → no-commented-out-console.test.js} +2 -2
- package/scripts/eslint_rules/tests/{commented_out_import_test.js → no-commented-out-import.test.js} +2 -2
- package/scripts/eslint_rules/tests/no-customized-builtin-elements.test.js +152 -0
- package/scripts/eslint_rules/tests/{no_importing_images_from_src_test.js → no-importing-images-from-src.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_imports_in_directory_test.js → no-imports-in-directory.test.js} +2 -2
- package/scripts/eslint_rules/tests/{no_it_screenshot_only_or_repeat_test.js → no-it-screenshot-only-or-repeat.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_new_lit_element_components_test.js → no-new-lit-element-components.test.js} +2 -2
- package/scripts/eslint_rules/tests/{no_only_eslint_tests_test.js → no-only-eslint-tests.test.js} +9 -9
- package/scripts/eslint_rules/tests/{ban_screenshot_test_outside_perf_panel_test.js → no-screenshot-test-outside-perf-panel.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_self_closing_custom_element_tagnames_test.js → no-self-closing-custom-element-tagnames.test.js} +2 -2
- package/scripts/eslint_rules/tests/{ban_style_tags_in_lit_html_test.js → no-style-tags-in-lit-html.test.js} +2 -2
- package/scripts/eslint_rules/tests/{no_underscored_properties_test.js → no-underscored-properties.test.js} +2 -2
- package/scripts/eslint_rules/tests/prefer-assert-instance-of.test.js +197 -0
- package/scripts/eslint_rules/tests/prefer-assert-is-ok.test.js +81 -0
- package/scripts/eslint_rules/tests/prefer-assert-length-of.test.js +145 -0
- package/scripts/eslint_rules/tests/{use_private_class_members_test.js → prefer-private-class-members.test.js} +2 -2
- package/scripts/eslint_rules/tests/{prefer_readonly_keyword_test.js → prefer-readonly-keyword.test.js} +31 -15
- package/scripts/eslint_rules/tests/{screenshot_assertion_in_it_screenshot_test.js → screenshot-assertion-in-it-screenshot.test.js} +2 -2
- package/scripts/eslint_rules/tests/{set_data_type_reference_test.js → set-data-type-reference.test.js} +2 -2
- package/scripts/eslint_rules/tests/{single_screenshot_assertion_per_test_test.js → single-screenshot-assertion-per-test.test.js} +2 -2
- package/scripts/eslint_rules/tests/{static_custom_event_names_test.js → static-custom-event-names.test.js} +2 -2
- package/scripts/eslint_rules/tests/{trace_engine_test_timeouts_test.js → trace-engine-test-timeouts.test.js} +2 -2
- package/scripts/generate_metric_compare_strings.js +1 -1
- package/scripts/stylelint_rules/lib/{use_theme_colors.js → use_theme_colors.mjs} +150 -52
- package/scripts/stylelint_rules/tests/use_theme_colors_test.js +102 -42
- package/scripts/tools/update_goldens.py +11 -13
- package/.eslintignore +0 -41
- package/.eslintrc.js +0 -315
- package/front_end/.eslintrc.js +0 -96
- package/front_end/Images/whatsnew.avif +0 -0
- package/front_end/legacy_test_runner/.eslintrc.js +0 -13
- package/front_end/models/trace/extras/URLForEntry.ts +0 -55
- package/front_end/models/trace/handlers/.eslintrc.js +0 -18
- package/front_end/models/trace/lantern/.eslintrc.js +0 -16
- package/front_end/panels/elements/ComputedStyleWidget.test.ts +0 -72
- package/front_end/panels/elements/components/AdornerSettingsPane.ts +0 -132
- package/front_end/panels/elements/components/adornerSettingsPane.css +0 -40
- package/front_end/panels/freestyler/AiAgent.test.ts +0 -285
- package/front_end/panels/freestyler/freestyler.ts +0 -15
- package/front_end/panels/recorder/injected/.eslintrc.js +0 -14
- package/front_end/panels/timeline/ExtensionDataGatherer.ts +0 -65
- package/front_end/panels/timeline/TimelineLandingPage.ts +0 -108
- package/front_end/panels/timeline/components/insights/SidebarInsight.test.ts +0 -72
- package/front_end/panels/timeline/fixtures/traces/nested-initiators.json.gz +0 -0
- package/front_end/panels/timeline/fixtures/traces/set-timeout-long-task.json.gz +0 -0
- package/front_end/ui/components/dialogs/IconDialog.ts +0 -160
- package/front_end/ui/components/dialogs/iconDialog.css +0 -24
- package/front_end/ui/components/docs/.eslintrc.js +0 -19
- package/front_end/ui/components/docs/icon_dialog/basic.ts +0 -46
- package/front_end/ui/components/docs/two_states_counter/basic.ts +0 -45
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +0 -325
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.test.ts +0 -73
- package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +0 -104
- package/front_end/ui/components/two_states_counter/twoStatesCounter.css +0 -37
- package/front_end/ui/components/two_states_counter/two_states_counter.ts +0 -9
- package/front_end/ui/legacy/HistoryInput.ts +0 -61
- package/front_end/ui/legacy/components/perf_ui/.eslintrc.js +0 -18
- package/front_end/ui/legacy/radioButton.css +0 -32
- package/front_end/ui/legacy/slider.css +0 -51
- package/front_end/ui/lit-html/static.test.ts +0 -153
- package/front_end/ui/lit-html/static.ts +0 -127
- package/scripts/.eslintrc.js +0 -9
- package/scripts/eslint_rules/lib/compare_arrays_with_assert_deepequal.js +0 -60
- package/scripts/eslint_rules/lib/lit_no_style_interpolation.js +0 -80
- package/scripts/eslint_rules/lib/migrate_create_shadow_root_with_styles.js +0 -110
- package/scripts/eslint_rules/lib/migrate_register_required_css.js +0 -240
- package/scripts/eslint_rules/lib/no_repeated_tests.js +0 -30
- package/scripts/eslint_rules/lib/prefer_readonly_keyword.js +0 -27
- package/scripts/eslint_rules/lib/static_tag_must_be_static_property.js +0 -71
- package/scripts/eslint_rules/tests/.eslintrc.js +0 -18
- package/scripts/eslint_rules/tests/compare_arrays_with_assert_deepequal_test.js +0 -110
- package/scripts/eslint_rules/tests/lit_no_style_interpolation_test.js +0 -60
- package/scripts/eslint_rules/tests/migrate_create_shadow_root_with_styles_test.js +0 -265
- package/scripts/eslint_rules/tests/migrate_register_required_css_test.js +0 -473
- package/scripts/eslint_rules/tests/no_repeated_tests_test.js +0 -49
- package/scripts/eslint_rules/tests/static_tag_must_be_static_property_test.js +0 -93
- /package/front_end/panels/{freestyler → ai_assistance}/ExtensionScope.ts +0 -0
- /package/front_end/ui/components/docs/{freestyler → ai_assistance}/basic.html +0 -0
- /package/front_end/ui/components/docs/{freestyler → ai_assistance}/empty_state.html +0 -0
- /package/scripts/{freestyler → ai_assistance}/eval/index.html +0 -0
- /package/scripts/eslint_rules/lib/{canvas_context_tracking.js → canvas-context-tracking.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_css_import.js → check-css-import.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_enumerated_histograms.js → check-enumerated-histograms.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_license_header.js → check-license-header.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_test_definitions.js → check-test-definitions.js} +0 -0
- /package/scripts/eslint_rules/lib/{check_was_shown_methods.js → check-was-shown-methods.js} +0 -0
- /package/scripts/eslint_rules/lib/{enforce_bound_render_for_schedule_render.js → enforce-bound-render-for-schedule-render.js} +0 -0
- /package/scripts/eslint_rules/lib/{enforce_custom_event_names.js → enforce-custom-event-names.js} +0 -0
- /package/scripts/eslint_rules/lib/{enforce_default_import_name.js → enforce-default-import-name.js} +0 -0
- /package/scripts/eslint_rules/lib/{es_modules_import.js → es-modules-import.js} +0 -0
- /package/scripts/eslint_rules/lib/{html_tagged_template.js → html-tagged-template.js} +0 -0
- /package/scripts/eslint_rules/lib/{inject_checkbox_styles.js → inject-checkbox-styles.js} +0 -0
- /package/scripts/eslint_rules/lib/{inline_type_imports.js → inline-type-imports.js} +0 -0
- /package/scripts/eslint_rules/lib/{jslog_context_list.js → jslog-context-list.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_filename_matches.js → l10n-filename-matches.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_helper.js → l10n-helper.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_i18nString_call_only_with_uistrings.js → l10n-i18nString-call-only-with-uistrings.js} +0 -0
- /package/scripts/eslint_rules/lib/{l10n_no_i18nString_calls_module_instantiation.js → l10n-no-i18nString-calls-module-instantiation.js} +0 -0
- /package/scripts/eslint_rules/lib/{lit_html_host_this.js → lit-html-host-this.js} +0 -0
- /package/scripts/eslint_rules/lib/{lit_html_no_attribute_quotes.js → lit-html-no-attribute-quotes.js} +0 -0
- /package/scripts/eslint_rules/lib/{lit_template_result_or_nothing.js → lit-template-result-or-nothing.js} +0 -0
- /package/scripts/eslint_rules/lib/{avoid_assert_equal.js → no-assert-equal.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_bound_component_methods.js → no-bound-component-methods.js} +0 -0
- /package/scripts/eslint_rules/lib/{commented_out_console.js → no-commented-out-console.js} +0 -0
- /package/scripts/eslint_rules/lib/{commented_out_import.js → no-commented-out-import.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_importing_images_from_src.js → no-importing-images-from-src.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_it_screenshot_only_or_repeat.js → no-it-screenshot-only-or-repeat.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_only_eslint_tests.js → no-only-eslint-tests.js} +0 -0
- /package/scripts/eslint_rules/lib/{ban_screenshot_test_outside_perf_panel.js → no-screenshot-test-outside-perf-panel.js} +0 -0
- /package/scripts/eslint_rules/lib/{ban_self_closing_custom_element_tagnames.js → no-self-closing-custom-element-tagnames.js} +0 -0
- /package/scripts/eslint_rules/lib/{no_underscored_properties.js → no-underscored-properties.js} +0 -0
- /package/scripts/eslint_rules/lib/{screenshot_assertion_in_it_screenshot.js → screenshot-assertion-in-it-screenshot.js} +0 -0
- /package/scripts/eslint_rules/lib/{set_data_type_reference.js → set-data-type-reference.js} +0 -0
- /package/scripts/eslint_rules/lib/{single_screenshot_assertion_per_test.js → single-screenshot-assertion-per-test.js} +0 -0
- /package/scripts/eslint_rules/lib/{static_custom_event_names.js → static-custom-event-names.js} +0 -0
- /package/scripts/eslint_rules/lib/{trace_engine_test_timeouts.js → trace-engine-test-timeouts.js} +0 -0
- /package/scripts/eslint_rules/tests/{enforce-optional-properties-last_test.js → enforce-optional-properties-last.test.js} +0 -0
- /package/scripts/eslint_rules/tests/{utils_test.js → utils.test.js} +0 -0
@@ -17,8 +17,7 @@ import * as SourcesPanel from '../sources/sources.js';
|
|
17
17
|
import * as TimelinePanel from '../timeline/timeline.js';
|
18
18
|
import * as TimelineUtils from '../timeline/utils/utils.js';
|
19
19
|
|
20
|
-
import * as
|
21
|
-
import * as Freestyler from './freestyler.js';
|
20
|
+
import * as AiAssistance from './ai_assistance.js';
|
22
21
|
|
23
22
|
function getTestAidaClient() {
|
24
23
|
return {
|
@@ -39,8 +38,8 @@ async function drainMicroTasks() {
|
|
39
38
|
}
|
40
39
|
|
41
40
|
describeWithEnvironment('FreestylerPanel', () => {
|
42
|
-
let mockView: sinon.SinonStub<[
|
43
|
-
let panel:
|
41
|
+
let mockView: sinon.SinonStub<[AiAssistance.Props, unknown, HTMLElement]>;
|
42
|
+
let panel: AiAssistance.AiAssistancePanel;
|
44
43
|
|
45
44
|
beforeEach(() => {
|
46
45
|
mockView = sinon.stub();
|
@@ -57,7 +56,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
57
56
|
|
58
57
|
describe('consent view', () => {
|
59
58
|
it('should render consent view when the consent is not given before', async () => {
|
60
|
-
panel = new
|
59
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
61
60
|
aidaClient: getTestAidaClient(),
|
62
61
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
63
62
|
syncInfo: getTestSyncInfo(),
|
@@ -65,28 +64,28 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
65
64
|
panel.markAsRoot();
|
66
65
|
panel.show(document.body);
|
67
66
|
|
68
|
-
sinon.assert.calledWith(mockView, sinon.match({state:
|
67
|
+
sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
|
69
68
|
});
|
70
69
|
|
71
70
|
it('should switch from consent view to chat view when enabling setting', async () => {
|
72
|
-
panel = new
|
71
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
73
72
|
aidaClient: getTestAidaClient(),
|
74
73
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
75
74
|
syncInfo: getTestSyncInfo(),
|
76
75
|
});
|
77
76
|
panel.markAsRoot();
|
78
77
|
panel.show(document.body);
|
79
|
-
sinon.assert.calledWith(mockView, sinon.match({state:
|
78
|
+
sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
|
80
79
|
|
81
80
|
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
82
|
-
sinon.assert.calledWith(mockView, sinon.match({state:
|
81
|
+
sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CHAT_VIEW}));
|
83
82
|
await drainMicroTasks();
|
84
83
|
});
|
85
84
|
|
86
85
|
it('should render chat view when the consent is given before', async () => {
|
87
86
|
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
88
87
|
|
89
|
-
panel = new
|
88
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
90
89
|
aidaClient: getTestAidaClient(),
|
91
90
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
92
91
|
syncInfo: getTestSyncInfo(),
|
@@ -94,18 +93,18 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
94
93
|
panel.markAsRoot();
|
95
94
|
panel.show(document.body);
|
96
95
|
|
97
|
-
sinon.assert.calledWith(mockView, sinon.match({state:
|
96
|
+
sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CHAT_VIEW}));
|
98
97
|
});
|
99
98
|
|
100
99
|
it('should render the consent view when the setting is disabled', async () => {
|
101
100
|
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
102
101
|
Common.Settings.moduleSetting('ai-assistance-enabled').setDisabled(true);
|
103
|
-
const chatUiStates:
|
102
|
+
const chatUiStates: AiAssistance.State[] = [];
|
104
103
|
const viewStub = sinon.stub().callsFake(props => {
|
105
104
|
chatUiStates.push(props.state);
|
106
105
|
});
|
107
106
|
|
108
|
-
panel = new
|
107
|
+
panel = new AiAssistance.AiAssistancePanel(viewStub, {
|
109
108
|
aidaClient: getTestAidaClient(),
|
110
109
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
111
110
|
syncInfo: getTestSyncInfo(),
|
@@ -114,8 +113,8 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
114
113
|
panel.show(document.body);
|
115
114
|
await drainMicroTasks();
|
116
115
|
|
117
|
-
sinon.assert.calledWith(viewStub, sinon.match({state:
|
118
|
-
assert.isFalse(chatUiStates.includes(
|
116
|
+
sinon.assert.calledWith(viewStub, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
|
117
|
+
assert.isFalse(chatUiStates.includes(AiAssistance.State.CHAT_VIEW));
|
119
118
|
Common.Settings.moduleSetting('ai-assistance-enabled').setDisabled(false);
|
120
119
|
});
|
121
120
|
|
@@ -130,7 +129,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
130
129
|
},
|
131
130
|
});
|
132
131
|
|
133
|
-
panel = new
|
132
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
134
133
|
aidaClient: getTestAidaClient(),
|
135
134
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
136
135
|
syncInfo: getTestSyncInfo(),
|
@@ -138,14 +137,14 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
138
137
|
panel.markAsRoot();
|
139
138
|
panel.show(document.body);
|
140
139
|
|
141
|
-
sinon.assert.calledWith(mockView, sinon.match({state:
|
140
|
+
sinon.assert.calledWith(mockView, sinon.match({state: AiAssistance.State.CONSENT_VIEW}));
|
142
141
|
stub.restore();
|
143
142
|
});
|
144
143
|
|
145
144
|
it('updates when the user logs in', async () => {
|
146
145
|
Common.Settings.moduleSetting('ai-assistance-enabled').set(true);
|
147
146
|
|
148
|
-
panel = new
|
147
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
149
148
|
aidaClient: getTestAidaClient(),
|
150
149
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL,
|
151
150
|
syncInfo: getTestSyncInfo(),
|
@@ -154,7 +153,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
154
153
|
panel.show(document.body);
|
155
154
|
await drainMicroTasks();
|
156
155
|
sinon.assert.calledWith(mockView, sinon.match({
|
157
|
-
state:
|
156
|
+
state: AiAssistance.State.CHAT_VIEW,
|
158
157
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.NO_ACCOUNT_EMAIL,
|
159
158
|
}));
|
160
159
|
mockView.reset();
|
@@ -165,7 +164,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
165
164
|
Host.AidaClient.Events.AIDA_AVAILABILITY_CHANGED);
|
166
165
|
await drainMicroTasks();
|
167
166
|
sinon.assert.calledWith(mockView, sinon.match({
|
168
|
-
state:
|
167
|
+
state: AiAssistance.State.CHAT_VIEW,
|
169
168
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
170
169
|
}));
|
171
170
|
|
@@ -176,13 +175,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
176
175
|
describe('on rate click', () => {
|
177
176
|
afterEach(() => {
|
178
177
|
// @ts-expect-error global test variable
|
179
|
-
|
178
|
+
setAiAssistanceServerSideLoggingEnabled(false);
|
180
179
|
});
|
181
180
|
|
182
181
|
it('renders a button linking to settings', () => {
|
183
182
|
const stub = sinon.stub(UI.ViewManager.ViewManager.instance(), 'showView');
|
184
183
|
|
185
|
-
panel = new
|
184
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
186
185
|
aidaClient: getTestAidaClient(),
|
187
186
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
188
187
|
syncInfo: getTestSyncInfo(),
|
@@ -197,7 +196,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
197
196
|
|
198
197
|
it('should allow logging if configured', () => {
|
199
198
|
// @ts-expect-error global test variable
|
200
|
-
|
199
|
+
setAiAssistanceServerSideLoggingEnabled(true);
|
201
200
|
const stub = getGetHostConfigStub({
|
202
201
|
aidaAvailability: {
|
203
202
|
disallowLogging: false,
|
@@ -205,7 +204,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
205
204
|
});
|
206
205
|
|
207
206
|
const aidaClient = getTestAidaClient();
|
208
|
-
panel = new
|
207
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
209
208
|
aidaClient,
|
210
209
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
211
210
|
syncInfo: getTestSyncInfo(),
|
@@ -226,7 +225,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
226
225
|
const RPC_ID = 0;
|
227
226
|
|
228
227
|
const aidaClient = getTestAidaClient();
|
229
|
-
panel = new
|
228
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
230
229
|
aidaClient,
|
231
230
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
232
231
|
syncInfo: getTestSyncInfo(),
|
@@ -251,7 +250,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
251
250
|
it('should send NEGATIVE rating to aida client when the user clicks on positive rating', () => {
|
252
251
|
const RPC_ID = 0;
|
253
252
|
const aidaClient = getTestAidaClient();
|
254
|
-
panel = new
|
253
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
255
254
|
aidaClient,
|
256
255
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
257
256
|
syncInfo: getTestSyncInfo(),
|
@@ -277,7 +276,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
277
276
|
const RPC_ID = 0;
|
278
277
|
const feedback = 'This helped me a ton.';
|
279
278
|
const aidaClient = getTestAidaClient();
|
280
|
-
panel = new
|
279
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
281
280
|
aidaClient,
|
282
281
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
283
282
|
syncInfo: getTestSyncInfo(),
|
@@ -307,7 +306,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
307
306
|
describe('SDK.DOMModel.DOMNode flavor changes for selected element', () => {
|
308
307
|
it('should set the selected element when the widget is shown', () => {
|
309
308
|
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
310
|
-
panel = new
|
309
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
311
310
|
aidaClient: getTestAidaClient(),
|
312
311
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
313
312
|
syncInfo: getTestSyncInfo(),
|
@@ -322,13 +321,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
322
321
|
panel.handleAction('freestyler.elements-floating-button');
|
323
322
|
|
324
323
|
sinon.assert.calledWith(mockView, sinon.match({
|
325
|
-
selectedContext: new
|
324
|
+
selectedContext: new AiAssistance.NodeContext(node),
|
326
325
|
}));
|
327
326
|
});
|
328
327
|
|
329
328
|
it('should update the selected element when the changed DOMNode flavor is an ELEMENT_NODE', () => {
|
330
329
|
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
331
|
-
panel = new
|
330
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
332
331
|
aidaClient: getTestAidaClient(),
|
333
332
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
334
333
|
syncInfo: getTestSyncInfo(),
|
@@ -346,13 +345,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
346
345
|
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, node);
|
347
346
|
|
348
347
|
sinon.assert.calledWith(mockView, sinon.match({
|
349
|
-
selectedContext: new
|
348
|
+
selectedContext: new AiAssistance.NodeContext(node),
|
350
349
|
}));
|
351
350
|
});
|
352
351
|
|
353
352
|
it('should set selected element to null when the change DOMNode flavor is not an ELEMENT_NODE', () => {
|
354
353
|
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
355
|
-
panel = new
|
354
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
356
355
|
aidaClient: getTestAidaClient(),
|
357
356
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
358
357
|
syncInfo: getTestSyncInfo(),
|
@@ -376,7 +375,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
376
375
|
|
377
376
|
it('should not handle DOMNode flavor changes if the widget is not shown', () => {
|
378
377
|
UI.Context.Context.instance().setFlavor(SDK.DOMModel.DOMNode, null);
|
379
|
-
panel = new
|
378
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
380
379
|
aidaClient: getTestAidaClient(),
|
381
380
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
382
381
|
syncInfo: getTestSyncInfo(),
|
@@ -394,7 +393,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
394
393
|
describe('SDK.NetworkRequest.NetworkRequest flavor changes for selected network request', () => {
|
395
394
|
it('should set the selected network request when the widget is shown', () => {
|
396
395
|
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
|
397
|
-
panel = new
|
396
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
398
397
|
aidaClient: getTestAidaClient(),
|
399
398
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
400
399
|
syncInfo: getTestSyncInfo(),
|
@@ -407,13 +406,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
407
406
|
panel.handleAction('drjones.network-floating-button');
|
408
407
|
|
409
408
|
sinon.assert.calledWith(mockView, sinon.match({
|
410
|
-
selectedContext: new
|
409
|
+
selectedContext: new AiAssistance.RequestContext(networkRequest),
|
411
410
|
}));
|
412
411
|
});
|
413
412
|
|
414
413
|
it('should set selected network request when the NetworkRequest flavor changes', () => {
|
415
414
|
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
|
416
|
-
panel = new
|
415
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
417
416
|
aidaClient: getTestAidaClient(),
|
418
417
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
419
418
|
syncInfo: getTestSyncInfo(),
|
@@ -429,13 +428,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
429
428
|
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest);
|
430
429
|
|
431
430
|
sinon.assert.calledWith(mockView, sinon.match({
|
432
|
-
selectedContext: new
|
431
|
+
selectedContext: new AiAssistance.RequestContext(networkRequest),
|
433
432
|
}));
|
434
433
|
});
|
435
434
|
|
436
435
|
it('should not handle NetworkRequest flavor changes if the widget is not shown', () => {
|
437
436
|
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, null);
|
438
|
-
panel = new
|
437
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
439
438
|
aidaClient: getTestAidaClient(),
|
440
439
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
441
440
|
syncInfo: getTestSyncInfo(),
|
@@ -451,7 +450,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
451
450
|
describe('TimelineUtils.AICallTree.AICallTree flavor changes for selected call tree', () => {
|
452
451
|
it('should set the selected call tree when the widget is shown', () => {
|
453
452
|
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
|
454
|
-
panel = new
|
453
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
455
454
|
aidaClient: getTestAidaClient(),
|
456
455
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
457
456
|
syncInfo: getTestSyncInfo(),
|
@@ -464,13 +463,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
464
463
|
panel.handleAction('drjones.performance-panel-context');
|
465
464
|
|
466
465
|
sinon.assert.calledWith(mockView, sinon.match({
|
467
|
-
selectedContext: new
|
466
|
+
selectedContext: new AiAssistance.CallTreeContext(selectedAiCallTree as TimelineUtils.AICallTree.AICallTree),
|
468
467
|
}));
|
469
468
|
});
|
470
469
|
|
471
470
|
it('should set selected call tree when the AICallTree flavor changes', () => {
|
472
471
|
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
|
473
|
-
panel = new
|
472
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
474
473
|
aidaClient: getTestAidaClient(),
|
475
474
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
476
475
|
syncInfo: getTestSyncInfo(),
|
@@ -486,13 +485,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
486
485
|
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, selectedAiCallTree);
|
487
486
|
|
488
487
|
sinon.assert.calledWith(mockView, sinon.match({
|
489
|
-
selectedContext: new
|
488
|
+
selectedContext: new AiAssistance.CallTreeContext(selectedAiCallTree as TimelineUtils.AICallTree.AICallTree),
|
490
489
|
}));
|
491
490
|
});
|
492
491
|
|
493
492
|
it('should not handle AICallTree flavor changes if the widget is not shown', () => {
|
494
493
|
UI.Context.Context.instance().setFlavor(TimelineUtils.AICallTree.AICallTree, null);
|
495
|
-
panel = new
|
494
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
496
495
|
aidaClient: getTestAidaClient(),
|
497
496
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
498
497
|
syncInfo: getTestSyncInfo(),
|
@@ -508,7 +507,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
508
507
|
describe('Workspace.UISourceCode.UISourceCode flavor changes for selected network request', () => {
|
509
508
|
it('should set selected file when the widget is shown', () => {
|
510
509
|
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
|
511
|
-
panel = new
|
510
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
512
511
|
aidaClient: getTestAidaClient(),
|
513
512
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
514
513
|
syncInfo: getTestSyncInfo(),
|
@@ -521,13 +520,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
521
520
|
panel.handleAction('drjones.sources-panel-context');
|
522
521
|
|
523
522
|
sinon.assert.calledWith(mockView, sinon.match({
|
524
|
-
selectedContext: new
|
523
|
+
selectedContext: new AiAssistance.FileContext(uiSourceCode),
|
525
524
|
}));
|
526
525
|
});
|
527
526
|
|
528
527
|
it('should set selected file when the UISourceCode flavor changes', () => {
|
529
528
|
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
|
530
|
-
panel = new
|
529
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
531
530
|
aidaClient: getTestAidaClient(),
|
532
531
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
533
532
|
syncInfo: getTestSyncInfo(),
|
@@ -543,13 +542,13 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
543
542
|
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, uiSourceCode);
|
544
543
|
|
545
544
|
sinon.assert.calledWith(mockView, sinon.match({
|
546
|
-
selectedContext: new
|
545
|
+
selectedContext: new AiAssistance.FileContext(uiSourceCode),
|
547
546
|
}));
|
548
547
|
});
|
549
548
|
|
550
549
|
it('should not handle NetworkRequest flavor changes if the widget is not shown', () => {
|
551
550
|
UI.Context.Context.instance().setFlavor(Workspace.UISourceCode.UISourceCode, null);
|
552
|
-
panel = new
|
551
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
553
552
|
aidaClient: getTestAidaClient(),
|
554
553
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
555
554
|
syncInfo: getTestSyncInfo(),
|
@@ -572,7 +571,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
572
571
|
});
|
573
572
|
|
574
573
|
it('should set inspectElementToggled when the widget is shown', () => {
|
575
|
-
panel = new
|
574
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
576
575
|
aidaClient: getTestAidaClient(),
|
577
576
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
578
577
|
syncInfo: getTestSyncInfo(),
|
@@ -589,7 +588,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
589
588
|
|
590
589
|
it('should update inspectElementToggled when the action is toggled', () => {
|
591
590
|
toggleSearchElementAction.setToggled(false);
|
592
|
-
panel = new
|
591
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
593
592
|
aidaClient: getTestAidaClient(),
|
594
593
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
595
594
|
syncInfo: getTestSyncInfo(),
|
@@ -610,7 +609,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
610
609
|
it('should not update toggleSearchElementAction even after the action is toggled when the widget is not shown',
|
611
610
|
() => {
|
612
611
|
toggleSearchElementAction.setToggled(false);
|
613
|
-
panel = new
|
612
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
614
613
|
aidaClient: getTestAidaClient(),
|
615
614
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
616
615
|
syncInfo: getTestSyncInfo(),
|
@@ -624,7 +623,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
624
623
|
|
625
624
|
describe('history interactions', () => {
|
626
625
|
it('should have empty messages after new chat', async () => {
|
627
|
-
panel = new
|
626
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
628
627
|
aidaClient: getTestAidaClient(),
|
629
628
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
630
629
|
syncInfo: getTestSyncInfo(),
|
@@ -635,12 +634,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
635
634
|
|
636
635
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
637
636
|
{
|
638
|
-
entity:
|
637
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
639
638
|
text: 'test',
|
640
639
|
},
|
641
640
|
{
|
642
641
|
answer: 'test',
|
643
|
-
entity:
|
642
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
644
643
|
rpcId: undefined,
|
645
644
|
suggestions: undefined,
|
646
645
|
steps: [],
|
@@ -659,7 +658,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
659
658
|
enabled: true,
|
660
659
|
},
|
661
660
|
});
|
662
|
-
panel = new
|
661
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
663
662
|
aidaClient: getTestAidaClient(),
|
664
663
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
665
664
|
syncInfo: getTestSyncInfo(),
|
@@ -673,12 +672,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
673
672
|
|
674
673
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
675
674
|
{
|
676
|
-
entity:
|
675
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
677
676
|
text: 'test',
|
678
677
|
},
|
679
678
|
{
|
680
679
|
answer: 'test',
|
681
|
-
entity:
|
680
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
682
681
|
rpcId: undefined,
|
683
682
|
suggestions: undefined,
|
684
683
|
steps: [],
|
@@ -689,12 +688,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
689
688
|
assert.instanceOf(button, HTMLElement);
|
690
689
|
dispatchClickEvent(button);
|
691
690
|
assert.deepEqual(mockView.lastCall.args[0].messages, []);
|
692
|
-
assert.deepEqual(mockView.lastCall.args[0].agentType,
|
691
|
+
assert.deepEqual(mockView.lastCall.args[0].agentType, AiAssistance.AgentType.STYLING);
|
693
692
|
stub.restore();
|
694
693
|
});
|
695
694
|
|
696
695
|
it('should switch agents and restore history', async () => {
|
697
|
-
panel = new
|
696
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
698
697
|
aidaClient: getTestAidaClient(),
|
699
698
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
700
699
|
syncInfo: getTestSyncInfo(),
|
@@ -704,12 +703,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
704
703
|
await drainMicroTasks();
|
705
704
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
706
705
|
{
|
707
|
-
entity:
|
706
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
708
707
|
text: 'User question to Freestyler?',
|
709
708
|
},
|
710
709
|
{
|
711
710
|
answer: 'test',
|
712
|
-
entity:
|
711
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
713
712
|
rpcId: undefined,
|
714
713
|
suggestions: undefined,
|
715
714
|
steps: [],
|
@@ -721,12 +720,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
721
720
|
await drainMicroTasks();
|
722
721
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
723
722
|
{
|
724
|
-
entity:
|
723
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
725
724
|
text: 'User question to DrJones?',
|
726
725
|
},
|
727
726
|
{
|
728
727
|
answer: 'test',
|
729
|
-
entity:
|
728
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
730
729
|
rpcId: undefined,
|
731
730
|
suggestions: undefined,
|
732
731
|
steps: [],
|
@@ -746,12 +745,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
746
745
|
await drainMicroTasks();
|
747
746
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
748
747
|
{
|
749
|
-
entity:
|
748
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
750
749
|
text: 'User question to Freestyler?',
|
751
750
|
},
|
752
751
|
{
|
753
752
|
answer: 'test',
|
754
|
-
entity:
|
753
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
755
754
|
rpcId: undefined,
|
756
755
|
suggestions: undefined,
|
757
756
|
steps: [],
|
@@ -761,7 +760,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
761
760
|
});
|
762
761
|
|
763
762
|
it('should have empty state after clear chat', async () => {
|
764
|
-
panel = new
|
763
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
765
764
|
aidaClient: getTestAidaClient(),
|
766
765
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
767
766
|
syncInfo: getTestSyncInfo(),
|
@@ -772,23 +771,23 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
772
771
|
|
773
772
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
774
773
|
{
|
775
|
-
entity:
|
774
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
776
775
|
text: 'test',
|
777
776
|
},
|
778
777
|
{
|
779
778
|
answer: 'test',
|
780
|
-
entity:
|
779
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
781
780
|
rpcId: undefined,
|
782
781
|
suggestions: undefined,
|
783
782
|
steps: [],
|
784
783
|
},
|
785
784
|
]);
|
786
785
|
const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
|
787
|
-
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete chat\']');
|
786
|
+
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete local chat\']');
|
788
787
|
assert.instanceOf(button, HTMLElement);
|
789
788
|
dispatchClickEvent(button);
|
790
789
|
assert.deepEqual(mockView.lastCall.args[0].messages, []);
|
791
|
-
assert.
|
790
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
792
791
|
});
|
793
792
|
|
794
793
|
it('should select default agent based on open panel after clearing the chat', async () => {
|
@@ -797,7 +796,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
797
796
|
enabled: true,
|
798
797
|
},
|
799
798
|
});
|
800
|
-
panel = new
|
799
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
801
800
|
aidaClient: getTestAidaClient(),
|
802
801
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
803
802
|
syncInfo: getTestSyncInfo(),
|
@@ -810,28 +809,28 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
810
809
|
ElementsPanel.ElementsPanel.ElementsPanel, sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
|
811
810
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
812
811
|
{
|
813
|
-
entity:
|
812
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
814
813
|
text: 'test',
|
815
814
|
},
|
816
815
|
{
|
817
816
|
answer: 'test',
|
818
|
-
entity:
|
817
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
819
818
|
rpcId: undefined,
|
820
819
|
suggestions: undefined,
|
821
820
|
steps: [],
|
822
821
|
},
|
823
822
|
]);
|
824
823
|
const toolbar = panel.contentElement.querySelector('.freestyler-left-toolbar');
|
825
|
-
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete chat\']');
|
824
|
+
const button = toolbar!.shadowRoot!.querySelector('devtools-button[aria-label=\'Delete local chat\']');
|
826
825
|
assert.instanceOf(button, HTMLElement);
|
827
826
|
dispatchClickEvent(button);
|
828
827
|
assert.deepEqual(mockView.lastCall.args[0].messages, []);
|
829
|
-
assert.deepEqual(mockView.lastCall.args[0].agentType,
|
828
|
+
assert.deepEqual(mockView.lastCall.args[0].agentType, AiAssistance.AgentType.STYLING);
|
830
829
|
stub.restore();
|
831
830
|
});
|
832
831
|
|
833
832
|
it('should have empty state after clear chat history', async () => {
|
834
|
-
panel = new
|
833
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
835
834
|
aidaClient: getTestAidaClient(),
|
836
835
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
837
836
|
syncInfo: getTestSyncInfo(),
|
@@ -841,12 +840,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
841
840
|
await drainMicroTasks();
|
842
841
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
843
842
|
{
|
844
|
-
entity:
|
843
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
845
844
|
text: 'User question to Freestyler?',
|
846
845
|
},
|
847
846
|
{
|
848
847
|
answer: 'test',
|
849
|
-
entity:
|
848
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
850
849
|
rpcId: undefined,
|
851
850
|
suggestions: undefined,
|
852
851
|
steps: [],
|
@@ -858,12 +857,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
858
857
|
await drainMicroTasks();
|
859
858
|
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
860
859
|
{
|
861
|
-
entity:
|
860
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
862
861
|
text: 'User question to DrJones?',
|
863
862
|
},
|
864
863
|
{
|
865
864
|
answer: 'test',
|
866
|
-
entity:
|
865
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
867
866
|
rpcId: undefined,
|
868
867
|
suggestions: undefined,
|
869
868
|
steps: [],
|
@@ -876,12 +875,12 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
876
875
|
let contextMenu = getMenu(() => {
|
877
876
|
dispatchClickEvent(button!);
|
878
877
|
});
|
879
|
-
const clearAll = findMenuItemWithLabel(contextMenu.footerSection(), 'Clear
|
878
|
+
const clearAll = findMenuItemWithLabel(contextMenu.footerSection(), 'Clear local chats')!;
|
880
879
|
assert.isDefined(clearAll);
|
881
880
|
contextMenu.invokeHandler(clearAll.id());
|
882
881
|
await drainMicroTasks();
|
883
882
|
assert.deepEqual(mockView.lastCall.args[0].messages, []);
|
884
|
-
assert.
|
883
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
885
884
|
|
886
885
|
await drainMicroTasks();
|
887
886
|
contextMenu.discard();
|
@@ -896,13 +895,14 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
896
895
|
const menuItem = findMenuItemWithLabel(contextMenu.defaultSection(), 'No past conversations');
|
897
896
|
assert(menuItem);
|
898
897
|
});
|
898
|
+
|
899
899
|
describe('cross-origin', () => {
|
900
900
|
it('blocks input on cross origin requests', async () => {
|
901
901
|
const networkRequest = sinon.createStubInstance(SDK.NetworkRequest.NetworkRequest, {
|
902
902
|
url: 'https://a.test' as Platform.DevToolsPath.UrlString,
|
903
903
|
});
|
904
904
|
UI.Context.Context.instance().setFlavor(SDK.NetworkRequest.NetworkRequest, networkRequest);
|
905
|
-
panel = new
|
905
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
906
906
|
aidaClient: getTestAidaClient(),
|
907
907
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
908
908
|
syncInfo: getTestSyncInfo(),
|
@@ -912,7 +912,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
912
912
|
panel.handleAction('drjones.network-floating-button');
|
913
913
|
|
914
914
|
sinon.assert.calledWith(mockView, sinon.match({
|
915
|
-
selectedContext: new
|
915
|
+
selectedContext: new AiAssistance.RequestContext(networkRequest),
|
916
916
|
blockedByCrossOrigin: false,
|
917
917
|
}));
|
918
918
|
|
@@ -930,10 +930,80 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
930
930
|
await drainMicroTasks();
|
931
931
|
|
932
932
|
sinon.assert.calledWith(mockView, sinon.match({
|
933
|
-
selectedContext: new
|
933
|
+
selectedContext: new AiAssistance.RequestContext(networkRequest2),
|
934
934
|
blockedByCrossOrigin: true,
|
935
935
|
}));
|
936
936
|
});
|
937
|
+
|
938
|
+
it('should be able to continue same-origin requests', async () => {
|
939
|
+
const stub = getGetHostConfigStub({
|
940
|
+
devToolsFreestyler: {
|
941
|
+
enabled: true,
|
942
|
+
},
|
943
|
+
});
|
944
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
945
|
+
aidaClient: getTestAidaClient(),
|
946
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
947
|
+
syncInfo: getTestSyncInfo(),
|
948
|
+
});
|
949
|
+
UI.Context.Context.instance().setFlavor(
|
950
|
+
ElementsPanel.ElementsPanel.ElementsPanel,
|
951
|
+
sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
|
952
|
+
|
953
|
+
panel.handleAction('freestyler.elements-floating-button');
|
954
|
+
mockView.lastCall.args[0].onTextSubmit('test');
|
955
|
+
await drainMicroTasks();
|
956
|
+
|
957
|
+
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
958
|
+
{
|
959
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
960
|
+
text: 'test',
|
961
|
+
},
|
962
|
+
{
|
963
|
+
answer: 'test',
|
964
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
965
|
+
rpcId: undefined,
|
966
|
+
suggestions: undefined,
|
967
|
+
steps: [],
|
968
|
+
},
|
969
|
+
]);
|
970
|
+
|
971
|
+
UI.Context.Context.instance().setFlavor(
|
972
|
+
ElementsPanel.ElementsPanel.ElementsPanel,
|
973
|
+
sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
|
974
|
+
|
975
|
+
panel.handleAction('freestyler.elements-floating-button');
|
976
|
+
mockView.lastCall.args[0].onTextSubmit('test2');
|
977
|
+
await drainMicroTasks();
|
978
|
+
|
979
|
+
assert.isFalse(mockView.lastCall.args[0].isReadOnly);
|
980
|
+
assert.deepEqual(mockView.lastCall.args[0].messages, [
|
981
|
+
{
|
982
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
983
|
+
text: 'test',
|
984
|
+
},
|
985
|
+
{
|
986
|
+
answer: 'test',
|
987
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
988
|
+
rpcId: undefined,
|
989
|
+
suggestions: undefined,
|
990
|
+
steps: [],
|
991
|
+
},
|
992
|
+
{
|
993
|
+
entity: AiAssistance.ChatMessageEntity.USER,
|
994
|
+
text: 'test2',
|
995
|
+
},
|
996
|
+
{
|
997
|
+
answer: 'test',
|
998
|
+
entity: AiAssistance.ChatMessageEntity.MODEL,
|
999
|
+
rpcId: undefined,
|
1000
|
+
suggestions: undefined,
|
1001
|
+
steps: [],
|
1002
|
+
},
|
1003
|
+
]);
|
1004
|
+
|
1005
|
+
stub.restore();
|
1006
|
+
});
|
937
1007
|
});
|
938
1008
|
|
939
1009
|
describe('auto agent selection for panels', () => {
|
@@ -947,7 +1017,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
947
1017
|
UI.Context.Context.instance().setFlavor(
|
948
1018
|
ElementsPanel.ElementsPanel.ElementsPanel,
|
949
1019
|
sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
|
950
|
-
panel = new
|
1020
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
951
1021
|
aidaClient: getTestAidaClient(),
|
952
1022
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
953
1023
|
syncInfo: getTestSyncInfo(),
|
@@ -957,7 +1027,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
957
1027
|
panel.show(document.body);
|
958
1028
|
|
959
1029
|
sinon.assert.calledWith(mockView, sinon.match({
|
960
|
-
agentType:
|
1030
|
+
agentType: AiAssistance.AgentType.STYLING,
|
961
1031
|
}));
|
962
1032
|
stub.restore();
|
963
1033
|
});
|
@@ -971,7 +1041,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
971
1041
|
UI.Context.Context.instance().setFlavor(
|
972
1042
|
ElementsPanel.ElementsPanel.ElementsPanel,
|
973
1043
|
sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
|
974
|
-
panel = new
|
1044
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
975
1045
|
aidaClient: getTestAidaClient(),
|
976
1046
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
977
1047
|
syncInfo: getTestSyncInfo(),
|
@@ -980,11 +1050,11 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
980
1050
|
panel.markAsRoot();
|
981
1051
|
panel.show(document.body);
|
982
1052
|
sinon.assert.calledWith(mockView, sinon.match({
|
983
|
-
agentType:
|
1053
|
+
agentType: AiAssistance.AgentType.STYLING,
|
984
1054
|
}));
|
985
1055
|
|
986
1056
|
UI.Context.Context.instance().setFlavor(ElementsPanel.ElementsPanel.ElementsPanel, null);
|
987
|
-
assert.
|
1057
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
988
1058
|
stub.restore();
|
989
1059
|
});
|
990
1060
|
|
@@ -997,7 +1067,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
997
1067
|
UI.Context.Context.instance().setFlavor(
|
998
1068
|
ElementsPanel.ElementsPanel.ElementsPanel,
|
999
1069
|
sinon.createStubInstance(ElementsPanel.ElementsPanel.ElementsPanel));
|
1000
|
-
panel = new
|
1070
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1001
1071
|
aidaClient: getTestAidaClient(),
|
1002
1072
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1003
1073
|
syncInfo: getTestSyncInfo(),
|
@@ -1006,7 +1076,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1006
1076
|
panel.markAsRoot();
|
1007
1077
|
panel.show(document.body);
|
1008
1078
|
|
1009
|
-
assert.
|
1079
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
1010
1080
|
stub.restore();
|
1011
1081
|
});
|
1012
1082
|
});
|
@@ -1020,7 +1090,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1020
1090
|
});
|
1021
1091
|
UI.Context.Context.instance().setFlavor(
|
1022
1092
|
NetworkPanel.NetworkPanel.NetworkPanel, sinon.createStubInstance(NetworkPanel.NetworkPanel.NetworkPanel));
|
1023
|
-
panel = new
|
1093
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1024
1094
|
aidaClient: getTestAidaClient(),
|
1025
1095
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1026
1096
|
syncInfo: getTestSyncInfo(),
|
@@ -1030,7 +1100,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1030
1100
|
panel.show(document.body);
|
1031
1101
|
|
1032
1102
|
sinon.assert.calledWith(mockView, sinon.match({
|
1033
|
-
agentType:
|
1103
|
+
agentType: AiAssistance.AgentType.NETWORK,
|
1034
1104
|
}));
|
1035
1105
|
stub.restore();
|
1036
1106
|
});
|
@@ -1043,7 +1113,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1043
1113
|
});
|
1044
1114
|
UI.Context.Context.instance().setFlavor(
|
1045
1115
|
NetworkPanel.NetworkPanel.NetworkPanel, sinon.createStubInstance(NetworkPanel.NetworkPanel.NetworkPanel));
|
1046
|
-
panel = new
|
1116
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1047
1117
|
aidaClient: getTestAidaClient(),
|
1048
1118
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1049
1119
|
syncInfo: getTestSyncInfo(),
|
@@ -1052,11 +1122,11 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1052
1122
|
panel.markAsRoot();
|
1053
1123
|
panel.show(document.body);
|
1054
1124
|
sinon.assert.calledWith(mockView, sinon.match({
|
1055
|
-
agentType:
|
1125
|
+
agentType: AiAssistance.AgentType.NETWORK,
|
1056
1126
|
}));
|
1057
1127
|
|
1058
1128
|
UI.Context.Context.instance().setFlavor(NetworkPanel.NetworkPanel.NetworkPanel, null);
|
1059
|
-
assert.
|
1129
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
1060
1130
|
stub.restore();
|
1061
1131
|
});
|
1062
1132
|
|
@@ -1070,7 +1140,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1070
1140
|
UI.Context.Context.instance().setFlavor(
|
1071
1141
|
NetworkPanel.NetworkPanel.NetworkPanel,
|
1072
1142
|
sinon.createStubInstance(NetworkPanel.NetworkPanel.NetworkPanel));
|
1073
|
-
panel = new
|
1143
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1074
1144
|
aidaClient: getTestAidaClient(),
|
1075
1145
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1076
1146
|
syncInfo: getTestSyncInfo(),
|
@@ -1079,7 +1149,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1079
1149
|
panel.markAsRoot();
|
1080
1150
|
panel.show(document.body);
|
1081
1151
|
|
1082
|
-
assert.
|
1152
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
1083
1153
|
stub.restore();
|
1084
1154
|
});
|
1085
1155
|
});
|
@@ -1093,7 +1163,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1093
1163
|
});
|
1094
1164
|
UI.Context.Context.instance().setFlavor(
|
1095
1165
|
SourcesPanel.SourcesPanel.SourcesPanel, sinon.createStubInstance(SourcesPanel.SourcesPanel.SourcesPanel));
|
1096
|
-
panel = new
|
1166
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1097
1167
|
aidaClient: getTestAidaClient(),
|
1098
1168
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1099
1169
|
syncInfo: getTestSyncInfo(),
|
@@ -1103,7 +1173,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1103
1173
|
panel.show(document.body);
|
1104
1174
|
|
1105
1175
|
sinon.assert.calledWith(mockView, sinon.match({
|
1106
|
-
agentType:
|
1176
|
+
agentType: AiAssistance.AgentType.FILE,
|
1107
1177
|
}));
|
1108
1178
|
stub.restore();
|
1109
1179
|
});
|
@@ -1116,7 +1186,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1116
1186
|
});
|
1117
1187
|
UI.Context.Context.instance().setFlavor(
|
1118
1188
|
SourcesPanel.SourcesPanel.SourcesPanel, sinon.createStubInstance(SourcesPanel.SourcesPanel.SourcesPanel));
|
1119
|
-
panel = new
|
1189
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1120
1190
|
aidaClient: getTestAidaClient(),
|
1121
1191
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1122
1192
|
syncInfo: getTestSyncInfo(),
|
@@ -1125,11 +1195,11 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1125
1195
|
panel.markAsRoot();
|
1126
1196
|
panel.show(document.body);
|
1127
1197
|
sinon.assert.calledWith(mockView, sinon.match({
|
1128
|
-
agentType:
|
1198
|
+
agentType: AiAssistance.AgentType.FILE,
|
1129
1199
|
}));
|
1130
1200
|
|
1131
1201
|
UI.Context.Context.instance().setFlavor(SourcesPanel.SourcesPanel.SourcesPanel, null);
|
1132
|
-
assert.
|
1202
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
1133
1203
|
stub.restore();
|
1134
1204
|
});
|
1135
1205
|
|
@@ -1143,7 +1213,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1143
1213
|
UI.Context.Context.instance().setFlavor(
|
1144
1214
|
SourcesPanel.SourcesPanel.SourcesPanel,
|
1145
1215
|
sinon.createStubInstance(SourcesPanel.SourcesPanel.SourcesPanel));
|
1146
|
-
panel = new
|
1216
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1147
1217
|
aidaClient: getTestAidaClient(),
|
1148
1218
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1149
1219
|
syncInfo: getTestSyncInfo(),
|
@@ -1152,7 +1222,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1152
1222
|
panel.markAsRoot();
|
1153
1223
|
panel.show(document.body);
|
1154
1224
|
|
1155
|
-
assert.
|
1225
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
1156
1226
|
stub.restore();
|
1157
1227
|
});
|
1158
1228
|
});
|
@@ -1167,7 +1237,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1167
1237
|
UI.Context.Context.instance().setFlavor(
|
1168
1238
|
TimelinePanel.TimelinePanel.TimelinePanel,
|
1169
1239
|
sinon.createStubInstance(TimelinePanel.TimelinePanel.TimelinePanel));
|
1170
|
-
panel = new
|
1240
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1171
1241
|
aidaClient: getTestAidaClient(),
|
1172
1242
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1173
1243
|
syncInfo: getTestSyncInfo(),
|
@@ -1177,7 +1247,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1177
1247
|
panel.show(document.body);
|
1178
1248
|
|
1179
1249
|
sinon.assert.calledWith(mockView, sinon.match({
|
1180
|
-
agentType:
|
1250
|
+
agentType: AiAssistance.AgentType.PERFORMANCE,
|
1181
1251
|
}));
|
1182
1252
|
stub.restore();
|
1183
1253
|
});
|
@@ -1191,7 +1261,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1191
1261
|
UI.Context.Context.instance().setFlavor(
|
1192
1262
|
TimelinePanel.TimelinePanel.TimelinePanel,
|
1193
1263
|
sinon.createStubInstance(TimelinePanel.TimelinePanel.TimelinePanel));
|
1194
|
-
panel = new
|
1264
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1195
1265
|
aidaClient: getTestAidaClient(),
|
1196
1266
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1197
1267
|
syncInfo: getTestSyncInfo(),
|
@@ -1200,11 +1270,11 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1200
1270
|
panel.markAsRoot();
|
1201
1271
|
panel.show(document.body);
|
1202
1272
|
sinon.assert.calledWith(mockView, sinon.match({
|
1203
|
-
agentType:
|
1273
|
+
agentType: AiAssistance.AgentType.PERFORMANCE,
|
1204
1274
|
}));
|
1205
1275
|
|
1206
1276
|
UI.Context.Context.instance().setFlavor(TimelinePanel.TimelinePanel.TimelinePanel, null);
|
1207
|
-
assert.
|
1277
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
1208
1278
|
stub.restore();
|
1209
1279
|
});
|
1210
1280
|
|
@@ -1218,7 +1288,7 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1218
1288
|
UI.Context.Context.instance().setFlavor(
|
1219
1289
|
TimelinePanel.TimelinePanel.TimelinePanel,
|
1220
1290
|
sinon.createStubInstance(TimelinePanel.TimelinePanel.TimelinePanel));
|
1221
|
-
panel = new
|
1291
|
+
panel = new AiAssistance.AiAssistancePanel(mockView, {
|
1222
1292
|
aidaClient: getTestAidaClient(),
|
1223
1293
|
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1224
1294
|
syncInfo: getTestSyncInfo(),
|
@@ -1227,9 +1297,44 @@ describeWithEnvironment('FreestylerPanel', () => {
|
|
1227
1297
|
panel.markAsRoot();
|
1228
1298
|
panel.show(document.body);
|
1229
1299
|
|
1230
|
-
assert.
|
1300
|
+
assert.isUndefined(mockView.lastCall.args[0].agentType);
|
1231
1301
|
stub.restore();
|
1232
1302
|
});
|
1233
1303
|
});
|
1234
1304
|
});
|
1305
|
+
|
1306
|
+
it('erases previous partial response on blocked error', async () => {
|
1307
|
+
async function* generateAnswerAndError() {
|
1308
|
+
yield {
|
1309
|
+
explanation: 'ANSWER: This is the first part of the answer.',
|
1310
|
+
metadata: {},
|
1311
|
+
completed: false,
|
1312
|
+
};
|
1313
|
+
throw new Host.AidaClient.AidaBlockError();
|
1314
|
+
}
|
1315
|
+
|
1316
|
+
const mockAidaClient = {
|
1317
|
+
fetch: generateAnswerAndError,
|
1318
|
+
registerClientEvent: sinon.spy(),
|
1319
|
+
};
|
1320
|
+
|
1321
|
+
const messages: AiAssistance.ModelChatMessage[] = [];
|
1322
|
+
const viewMock = sinon.stub().callsFake((props: AiAssistance.Props) => {
|
1323
|
+
messages.push(JSON.parse(JSON.stringify(props.messages[1])));
|
1324
|
+
});
|
1325
|
+
|
1326
|
+
panel = new AiAssistance.AiAssistancePanel(viewMock, {
|
1327
|
+
aidaClient: mockAidaClient,
|
1328
|
+
aidaAvailability: Host.AidaClient.AidaAccessPreconditions.AVAILABLE,
|
1329
|
+
syncInfo: getTestSyncInfo(),
|
1330
|
+
});
|
1331
|
+
panel.handleAction('freestyler.elements-floating-button');
|
1332
|
+
viewMock.lastCall.args[0].onTextSubmit('test');
|
1333
|
+
await drainMicroTasks();
|
1334
|
+
|
1335
|
+
assert.strictEqual(messages[2].answer, 'This is the first part of the answer.');
|
1336
|
+
assert.isUndefined(messages[2].error);
|
1337
|
+
assert.isUndefined(messages[3].answer);
|
1338
|
+
assert.strictEqual(messages[3].error, 'block');
|
1339
|
+
});
|
1235
1340
|
});
|