chrome-devtools-frontend 1.0.1684555 → 1.0.1689415
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/.agents/skills/gerrit-cli/SKILL.md +29 -8
- package/.agents/skills/gerrit-cli/references/commands.md +51 -18
- package/.agents/skills/gerrit-cli/references/workflows.md +6 -6
- package/.agents/skills/gerrit-cli/scripts/import_upstream.py +43 -70
- package/config/typescript/tsconfig.base.json +1 -0
- package/config/typescript/tsconfig.eslint.json +9 -0
- package/docs/contributing/issues.md +1 -1
- package/docs/styleguide/ux/writing.md +2 -2
- package/eslint.config.mjs +18 -10
- package/front_end/core/common/Base64.ts +1 -1
- package/front_end/core/common/Color.ts +28 -6
- package/front_end/core/common/ColorConverter.ts +12 -0
- package/front_end/core/common/Console.ts +2 -1
- package/front_end/core/common/Object.ts +2 -2
- package/front_end/core/common/ResourceType.ts +12 -13
- package/front_end/core/common/Revealer.ts +1 -1
- package/front_end/core/common/Settings.ts +2 -2
- package/front_end/core/common/TextDictionary.ts +2 -2
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -2
- package/front_end/core/host/UserMetrics.ts +51 -37
- package/front_end/core/host/host.ts +1 -1
- package/front_end/core/i18n/i18nImpl.ts +1 -1
- package/front_end/core/platform/HostRuntime.ts +3 -3
- package/front_end/core/platform/KeyboardUtilities.ts +1 -1
- package/front_end/core/protocol_client/InspectorBackend.ts +7 -6
- package/front_end/core/root/Runtime.ts +4 -2
- package/front_end/core/sdk/AnimationModel.ts +1 -1
- package/front_end/core/sdk/CPUThrottlingManager.ts +198 -0
- package/front_end/core/sdk/CSSMetadata.ts +11 -6
- package/front_end/core/sdk/CSSPropertyParser.ts +5 -3
- package/front_end/core/sdk/CSSPropertyParserMatchers.ts +90 -59
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +3 -3
- package/front_end/core/sdk/DebuggerModel.ts +1 -1
- package/front_end/core/sdk/EmulationModel.ts +5 -0
- package/front_end/core/sdk/LayerTreeBase.ts +1 -1
- package/front_end/core/sdk/NetworkManager.ts +1 -1
- package/front_end/core/sdk/README.md +40 -0
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +1 -1
- package/front_end/core/sdk/ResourceTreeModel.ts +2 -2
- package/front_end/core/sdk/SDKModel.ts +1 -1
- package/front_end/core/sdk/SDKSettings.ts +6 -0
- package/front_end/core/sdk/Script.ts +2 -1
- package/front_end/core/sdk/SecurityOrigin.ts +48 -0
- package/front_end/core/sdk/ServiceWorkerManager.ts +75 -17
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/core/text_utils/ContentData.ts +1 -1
- package/front_end/entrypoints/formatter_worker/FormattedContentBuilder.ts +3 -1
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -1
- package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
- package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -1
- package/front_end/entrypoints/inspector_main/OutermostTargetSelector.ts +1 -1
- package/front_end/entrypoints/inspector_main/nodeIcon.css +1 -1
- package/front_end/entrypoints/inspector_main/outermostTargetSelector.css +3 -3
- package/front_end/entrypoints/inspector_main/renderingOptions.css +3 -3
- package/front_end/entrypoints/js_app/js_app.ts +25 -9
- package/front_end/entrypoints/node_app/app/nodeConnectionsPanel.css +5 -5
- package/front_end/entrypoints/node_app/node_app.ts +1 -1
- package/front_end/generated/ARIAProperties.ts +39 -1
- package/front_end/generated/InspectorBackendCommands.ts +2 -1
- package/front_end/generated/SupportedCSSProperties.ts +60 -119
- package/front_end/generated/protocol-mapping.d.ts +9 -0
- package/front_end/generated/protocol-proxy-api.d.ts +7 -0
- package/front_end/generated/protocol.ts +12 -2
- package/front_end/models/ai_assistance/AiAgent2.ts +13 -7
- package/front_end/models/ai_assistance/AiConversation.ts +8 -17
- package/front_end/models/ai_assistance/AiHistoryStorage.ts +2 -2
- package/front_end/models/ai_assistance/AiUtils.ts +16 -0
- package/front_end/models/ai_assistance/EvaluateAction.ts +1 -1
- package/front_end/models/ai_assistance/README.md +1 -1
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +2 -3
- package/front_end/models/ai_assistance/agents/AiAgent.ts +29 -6
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +4 -3
- package/front_end/models/ai_assistance/agents/FileAgent.ts +2 -2
- package/front_end/models/ai_assistance/agents/NetworkAgent.ts +2 -2
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -1
- package/front_end/models/ai_assistance/agents/StorageAgent.ts +7 -5
- package/front_end/models/ai_assistance/agents/StylingAgent.snapshot.txt +2 -2
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +9 -7
- package/front_end/models/ai_assistance/ai_assistance.ts +8 -0
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +16 -1
- package/front_end/models/ai_assistance/contexts/FileContext.ts +6 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +150 -325
- package/front_end/models/ai_assistance/injected.ts +5 -3
- package/front_end/models/ai_assistance/performance/AIContext.ts +1 -1
- package/front_end/models/ai_assistance/skills/README.md +1 -1
- package/front_end/models/ai_assistance/skills/accessibility.md +19 -10
- package/front_end/models/ai_assistance/skills/network.md +13 -7
- package/front_end/models/ai_assistance/skills/performance.md +22 -16
- package/front_end/models/ai_assistance/skills/sources.md +13 -7
- package/front_end/models/ai_assistance/skills/storage.md +19 -18
- package/front_end/models/ai_assistance/skills/styling.md +30 -37
- package/front_end/models/ai_assistance/tools/CookieUtils.ts +120 -0
- package/front_end/models/ai_assistance/tools/DOMStorageUtils.ts +53 -4
- package/front_end/models/ai_assistance/tools/ExecuteJavaScript.ts +8 -32
- package/front_end/models/ai_assistance/tools/GetCookieValues.ts +146 -0
- package/front_end/models/ai_assistance/tools/GetDetailedCallTree.ts +11 -9
- package/front_end/models/ai_assistance/tools/GetElementAccessibilityDetails.ts +17 -5
- package/front_end/models/ai_assistance/tools/GetFunctionCode.ts +12 -11
- package/front_end/models/ai_assistance/tools/GetInsightDetails.ts +11 -11
- package/front_end/models/ai_assistance/tools/GetLighthouseAudits.ts +3 -2
- package/front_end/models/ai_assistance/tools/GetNetworkRequestDetails.ts +3 -3
- package/front_end/models/ai_assistance/tools/GetResourceContent.ts +12 -12
- package/front_end/models/ai_assistance/tools/GetSourceContent.ts +3 -2
- package/front_end/models/ai_assistance/tools/GetStorageBreakdown.ts +132 -0
- package/front_end/models/ai_assistance/tools/GetStorageValues.ts +17 -4
- package/front_end/models/ai_assistance/tools/GetStyles.ts +3 -3
- package/front_end/models/ai_assistance/tools/GetTraceEventByKey.ts +9 -8
- package/front_end/models/ai_assistance/tools/GetTraceMainThreadSummary.ts +13 -14
- package/front_end/models/ai_assistance/tools/GetTraceNetworkSummary.ts +12 -10
- package/front_end/models/ai_assistance/tools/ListCookies.ts +93 -0
- package/front_end/models/ai_assistance/tools/ListNetworkRequests.ts +15 -6
- package/front_end/models/ai_assistance/tools/ListPageOrigins.ts +3 -3
- package/front_end/models/ai_assistance/tools/ListSources.ts +5 -3
- package/front_end/models/ai_assistance/tools/ListStorageKeys.ts +16 -4
- package/front_end/models/ai_assistance/tools/RecordPerformanceTrace.ts +3 -2
- package/front_end/models/ai_assistance/tools/ResolveDevtoolsNodePath.ts +4 -3
- package/front_end/models/ai_assistance/tools/RunLighthouse.ts +9 -9
- package/front_end/models/ai_assistance/tools/SelectTraceEventByKey.ts +9 -8
- package/front_end/models/ai_assistance/tools/Tool.ts +21 -11
- package/front_end/models/ai_assistance/tools/ToolRegistry.ts +41 -8
- package/front_end/models/badges/AiExplorerBadge.ts +3 -3
- package/front_end/models/badges/CodeWhispererBadge.ts +2 -2
- package/front_end/models/badges/DOMDetectiveBadge.ts +3 -3
- package/front_end/models/badges/SpeedsterBadge.ts +3 -3
- package/front_end/models/badges/StarterBadge.ts +4 -4
- package/front_end/models/bindings/CompilerScriptMapping.ts +11 -2
- package/front_end/models/bindings/ContentProviderBasedProject.ts +3 -2
- package/front_end/models/breakpoints/BreakpointManager.ts +1 -1
- package/front_end/models/emulation/EmulatedDevices.ts +2 -2
- package/front_end/models/formatter/FormatterWorkerPool.ts +2 -2
- package/front_end/models/formatter/ScriptFormatter.ts +1 -2
- package/front_end/models/geometry/GeometryImpl.ts +2 -2
- package/front_end/models/heap_snapshot/HeapSnapshotModel.ts +1 -1
- package/front_end/models/heap_snapshot/HeapSnapshotProxy.ts +3 -2
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -5
- package/front_end/models/issues_manager/GenericIssue.ts +18 -18
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +1 -1
- package/front_end/models/javascript_metadata/{NativeFunctions.js → NativeFunctions.ts} +25 -9
- package/front_end/models/live-metrics/LiveMetrics.ts +9 -3
- package/front_end/models/live-metrics/web-vitals-injected/spec/spec.ts +58 -6
- package/front_end/models/live-metrics/web-vitals-injected/web-vitals-injected.ts +2 -62
- package/front_end/models/network_time_calculator/RequestTimeRanges.ts +2 -2
- package/front_end/models/persistence/AutomaticFileSystemWorkspaceBinding.ts +5 -0
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/NetworkPersistenceManager.ts +35 -6
- package/front_end/models/stack_trace/StackTraceImpl.ts +2 -2
- package/front_end/models/trace/LanternComputationData.ts +2 -3
- package/front_end/models/trace/extras/StackTraceForEvent.ts +3 -2
- package/front_end/models/trace/extras/ThirdParties.ts +9 -9
- package/front_end/models/trace/handlers/AsyncJSCallsHandler.ts +7 -4
- package/front_end/models/trace/handlers/FramesHandler.ts +3 -3
- package/front_end/models/trace/handlers/LayoutShiftsHandler.ts +2 -2
- package/front_end/models/trace/handlers/SamplesHandler.ts +4 -2
- package/front_end/models/trace/handlers/UserInteractionsHandler.ts +1 -1
- package/front_end/models/trace/handlers/WarningsHandler.ts +2 -2
- package/front_end/models/trace/helpers/Network.ts +3 -3
- package/front_end/models/trace/helpers/Trace.ts +1 -1
- package/front_end/models/trace/insights/CLSCulprits.ts +2 -1
- package/front_end/models/trace/insights/Cache.ts +3 -1
- package/front_end/models/trace/insights/CharacterSet.ts +3 -1
- package/front_end/models/trace/insights/DOMSize.ts +3 -1
- package/front_end/models/trace/insights/DocumentLatency.ts +3 -1
- package/front_end/models/trace/insights/DuplicatedJavaScript.ts +3 -1
- package/front_end/models/trace/insights/FontDisplay.ts +2 -1
- package/front_end/models/trace/insights/ForcedReflow.ts +2 -1
- package/front_end/models/trace/insights/INPBreakdown.ts +3 -1
- package/front_end/models/trace/insights/ImageDelivery.ts +3 -1
- package/front_end/models/trace/insights/LCPBreakdown.ts +3 -1
- package/front_end/models/trace/insights/LCPDiscovery.ts +3 -1
- package/front_end/models/trace/insights/LegacyJavaScript.ts +3 -1
- package/front_end/models/trace/insights/ModernHTTP.ts +2 -1
- package/front_end/models/trace/insights/NetworkDependencyTree.ts +2 -1
- package/front_end/models/trace/insights/RenderBlocking.ts +5 -4
- package/front_end/models/trace/insights/SlowCSSSelector.ts +3 -1
- package/front_end/models/trace/insights/ThirdParties.ts +5 -3
- package/front_end/models/trace/insights/Viewport.ts +2 -1
- package/front_end/models/trace/lantern/simulation/Constants.ts +34 -2
- package/front_end/models/trace/lantern/simulation/DNSCache.ts +1 -1
- package/front_end/models/trace/types/TraceEvents.ts +8 -3
- package/front_end/models/trace_source_maps_resolver/SourceMapsResolver.ts +2 -1
- package/front_end/models/workspace/WorkspaceImpl.ts +18 -2
- package/front_end/panels/accessibility/AccessibilityAnnouncementRecordingView.ts +686 -2
- package/front_end/panels/accessibility/accessibilityNode.css +4 -4
- package/front_end/panels/accessibility/accessibilityProperties.css +1 -1
- package/front_end/panels/accessibility/accessibilitySidebarView.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +13 -13
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +14 -14
- package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +1 -1
- package/front_end/panels/ai_assistance/components/ChatInput.ts +3 -2
- package/front_end/panels/ai_assistance/components/ChatView.ts +1 -1
- package/front_end/panels/ai_assistance/components/DisabledWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +1 -1
- package/front_end/panels/ai_assistance/components/chatInput.css +12 -12
- package/front_end/panels/ai_assistance/components/chatMessage.css +16 -16
- package/front_end/panels/ai_assistance/components/chatView.css +2 -2
- package/front_end/panels/ai_assistance/components/exploreWidget.css +1 -1
- package/front_end/panels/ai_assistance/components/exportForAgentsDialog.css +4 -0
- package/front_end/panels/ai_assistance/components/walkthroughView.css +6 -6
- package/front_end/panels/animation/animationTimeline.css +62 -62
- package/front_end/panels/application/ApplicationPanelSidebar.ts +6 -1
- package/front_end/panels/application/BackgroundServiceView.ts +290 -252
- package/front_end/panels/application/WebMCPView.ts +15 -7
- package/front_end/panels/application/appManifestView.css +5 -5
- package/front_end/panels/application/backgroundServiceView.css +18 -2
- package/front_end/panels/application/components/AdsView.ts +100 -4
- package/front_end/panels/application/components/adsView.css +8 -5
- package/front_end/panels/application/components/backForwardCacheView.css +5 -5
- package/front_end/panels/application/components/bounceTrackingMitigationsView.css +1 -1
- package/front_end/panels/application/components/endpointsGrid.css +1 -1
- package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
- package/front_end/panels/application/components/protocolHandlersView.css +6 -6
- package/front_end/panels/application/components/reportsGrid.css +1 -1
- package/front_end/panels/application/components/serviceWorkerRouterView.css +4 -4
- package/front_end/panels/application/components/trustTokensView.css +7 -7
- package/front_end/panels/application/cookieItemsView.css +3 -3
- package/front_end/panels/application/deviceBoundSessionsView.css +3 -3
- package/front_end/panels/application/frameDetailsReportView.css +11 -11
- package/front_end/panels/application/indexedDBViews.css +7 -7
- package/front_end/panels/application/originTrialTokenRows.css +2 -2
- package/front_end/panels/application/originTrialTreeView.css +3 -3
- package/front_end/panels/application/preloading/components/RuleSetDetailsView.css +2 -2
- package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +1 -1
- package/front_end/panels/application/preloading/components/preloadingDisabledInfobar.css +2 -2
- package/front_end/panels/application/preloading/components/preloadingGrid.css +2 -2
- package/front_end/panels/application/preloading/components/usedPreloadingView.css +7 -7
- package/front_end/panels/application/preloading/preloadingView.css +1 -1
- package/front_end/panels/application/preloading/preloadingViewDropDown.css +3 -3
- package/front_end/panels/application/serviceWorkerCacheViews.css +5 -5
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +12 -12
- package/front_end/panels/application/serviceWorkersView.css +15 -16
- package/front_end/panels/application/storageView.css +5 -5
- package/front_end/panels/application/webMCPView.css +9 -9
- package/front_end/panels/autofill/autofillView.css +4 -4
- package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +4 -4
- package/front_end/panels/browser_debugger/domBreakpointsSidebarPane.css +5 -3
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +4 -4
- package/front_end/panels/changes/changesSidebar.css +1 -1
- package/front_end/panels/changes/changesView.css +1 -1
- package/front_end/panels/changes/combinedDiffView.css +1 -1
- package/front_end/panels/common/CPUThrottlingOption.ts +5 -10
- package/front_end/panels/common/badgeNotification.css +2 -2
- package/front_end/panels/common/domLinkifier.css +1 -1
- package/front_end/panels/common/gdpSignUpDialog.css +3 -3
- package/front_end/panels/common/geminiRebrandPromoDialog.css +1 -1
- package/front_end/panels/console/ConsolePrompt.ts +6 -3
- package/front_end/panels/console/ConsoleView.ts +6 -3
- package/front_end/panels/console/ConsoleViewMessage.ts +3 -1
- package/front_end/panels/console/console-meta.ts +5 -24
- package/front_end/panels/console/consoleContextSelector.css +2 -2
- package/front_end/panels/console/consolePinPane.css +9 -9
- package/front_end/panels/console/consolePrompt.css +5 -5
- package/front_end/panels/console/consoleView.css +39 -39
- package/front_end/panels/coverage/coverageListView.css +2 -2
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +34 -34
- package/front_end/panels/css_overview/cssOverviewProcessingView.css +5 -5
- package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +1 -1
- package/front_end/panels/css_overview/cssOverviewStartView.css +17 -17
- package/front_end/panels/elements/AdoptedStyleSheetTreeElement.ts +209 -62
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +4 -4
- package/front_end/panels/elements/DOMTreeContextMenu.ts +59 -54
- package/front_end/panels/elements/ElementsPanel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +130 -94
- package/front_end/panels/elements/ElementsTreeOutline.ts +1751 -363
- package/front_end/panels/elements/ShortcutTreeElement.ts +6 -3
- package/front_end/panels/elements/StylePropertiesSection.ts +65 -8
- package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +143 -8
- package/front_end/panels/elements/classesPaneWidget.css +6 -6
- package/front_end/panels/elements/components/stylePropertyEditor.css +7 -7
- package/front_end/panels/elements/computedStyleWidget.css +1 -1
- package/front_end/panels/elements/elementStatePaneWidget.css +8 -8
- package/front_end/panels/elements/elements-meta.ts +14 -0
- package/front_end/panels/elements/elementsPanel.css +4 -4
- package/front_end/panels/elements/elementsTreeOutline.css +222 -38
- package/front_end/panels/elements/layersWidget.css +4 -4
- package/front_end/panels/elements/layoutPane.css +18 -18
- package/front_end/panels/elements/metricsSidebarPane.css +11 -11
- package/front_end/panels/elements/platformFontsWidget.css +5 -5
- package/front_end/panels/elements/propertiesWidget.css +2 -2
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +20 -20
- package/front_end/panels/elements/stylesSidebarPane.css +37 -20
- package/front_end/panels/emulation/deviceModeView.css +49 -49
- package/front_end/panels/emulation/mediaQueryInspector.css +18 -18
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +29 -29
- package/front_end/panels/issues/components/elementsPanelLink.css +2 -2
- package/front_end/panels/issues/components/hideIssuesMenu.css +1 -1
- package/front_end/panels/issues/issuesPane.css +2 -2
- package/front_end/panels/issues/issuesTree.css +50 -50
- package/front_end/panels/layer_viewer/Layers3DView.ts +9 -10
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/layer_viewer/layerTreeOutline.css +2 -2
- package/front_end/panels/layer_viewer/layers3DView.css +1 -1
- package/front_end/panels/layer_viewer/paintProfiler.css +1 -1
- package/front_end/panels/lighthouse/LighthouseReportSelector.ts +2 -2
- package/front_end/panels/media/playerListView.css +9 -9
- package/front_end/panels/media/playerMessagesView.css +8 -8
- package/front_end/panels/media/playerPropertiesView.css +6 -6
- package/front_end/panels/mobile_throttling/NetworkPanelIndicator.ts +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +9 -9
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -0
- package/front_end/panels/network/NetworkPanel.ts +9 -4
- package/front_end/panels/network/RequestConditionsDrawer.ts +12 -12
- package/front_end/panels/network/RequestPayloadView.ts +78 -26
- package/front_end/panels/network/binaryResourceView.css +1 -1
- package/front_end/panels/network/components/EditableSpan.css +3 -3
- package/front_end/panels/network/components/HeaderSectionRow.css +14 -14
- package/front_end/panels/network/components/RequestHeaderSection.css +7 -7
- package/front_end/panels/network/components/RequestHeadersView.css +18 -18
- package/front_end/panels/network/components/RequestTrustTokensView.css +1 -1
- package/front_end/panels/network/network-meta.ts +9 -9
- package/front_end/panels/network/networkConfigView.css +11 -11
- package/front_end/panels/network/networkLogView.css +35 -35
- package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
- package/front_end/panels/network/networkPanel.css +7 -7
- package/front_end/panels/network/networkTimingTable.css +13 -13
- package/front_end/panels/network/requestConditionsDrawer.css +4 -4
- package/front_end/panels/network/requestCookiesView.css +5 -5
- package/front_end/panels/network/requestDeviceBoundSessionsView.css +1 -1
- package/front_end/panels/network/requestHTMLView.css +1 -1
- package/front_end/panels/network/requestHeadersTree.css +19 -19
- package/front_end/panels/network/requestInitiatorView.css +1 -1
- package/front_end/panels/network/requestInitiatorViewTree.css +3 -3
- package/front_end/panels/network/requestPayloadTree.css +5 -5
- package/front_end/panels/network/requestPayloadView.css +1 -1
- package/front_end/panels/network/resourceChunkView.css +3 -3
- package/front_end/panels/network/signedExchangeInfoTree.css +6 -6
- package/front_end/panels/profiler/heapProfiler.css +15 -15
- package/front_end/panels/profiler/profileLauncherView.css +10 -10
- package/front_end/panels/recorder/RecordingView.ts +1 -1
- package/front_end/panels/recorder/StepEditor.ts +86 -7
- package/front_end/panels/recorder/TimelineSection.ts +2 -1
- package/front_end/panels/recorder/createRecordingView.css +17 -17
- package/front_end/panels/recorder/extensionView.css +5 -5
- package/front_end/panels/recorder/injected/RecordingClient.ts +1 -1
- package/front_end/panels/recorder/models/SchemaUtils.ts +2 -2
- package/front_end/panels/recorder/models/ScreenshotStorage.ts +1 -1
- package/front_end/panels/recorder/recorderPanel.css +7 -7
- package/front_end/panels/recorder/recordingListView.css +12 -12
- package/front_end/panels/recorder/recordingView.css +47 -47
- package/front_end/panels/recorder/stepEditor.css +2 -2
- package/front_end/panels/recorder/stepView.css +20 -20
- package/front_end/panels/recorder/timelineSection.css +9 -9
- package/front_end/panels/screencast/screencastView.css +12 -12
- package/front_end/panels/search/searchResultsPane.css +10 -10
- package/front_end/panels/search/searchView.css +9 -9
- package/front_end/panels/security/SecurityPanel.ts +84 -54
- package/front_end/panels/security/mainView.css +26 -26
- package/front_end/panels/security/originView.css +15 -15
- package/front_end/panels/sensors/locationsSettingsTab.css +6 -6
- package/front_end/panels/sensors/sensors.css +28 -28
- package/front_end/panels/settings/components/syncSection.css +5 -5
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +13 -13
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +16 -16
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +2 -2
- package/front_end/panels/settings/keybindsSettingsTab.css +2 -2
- package/front_end/panels/settings/settingsScreen.css +5 -5
- package/front_end/panels/sources/UISourceCodeFrame.ts +1 -1
- package/front_end/panels/sources/breakpointEditDialog.css +9 -9
- package/front_end/panels/sources/breakpointsView.css +25 -25
- package/front_end/panels/sources/callStackSidebarPane.css +10 -10
- package/front_end/panels/sources/components/HeadersView.css +6 -6
- package/front_end/panels/sources/debuggerPausedMessage.css +4 -4
- package/front_end/panels/sources/dialog.css +2 -2
- package/front_end/panels/sources/navigatorTree.css +2 -2
- package/front_end/panels/sources/navigatorView.css +2 -2
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/sources/sourcesNavigator.css +1 -1
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/sources/sourcesView.css +1 -1
- package/front_end/panels/sources/threadsSidebarPane.css +5 -5
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +8 -8
- package/front_end/panels/timeline/TimelineDetailsView.ts +9 -21
- package/front_end/panels/timeline/TimelineFlameChartView.ts +3 -5
- package/front_end/panels/timeline/TimelineMiniMap.ts +3 -3
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/breadcrumbsUI.css +3 -3
- package/front_end/panels/timeline/components/exportTraceOptions.css +1 -1
- package/front_end/panels/timeline/components/fieldSettingsDialog.css +13 -13
- package/front_end/panels/timeline/components/ignoreListSetting.css +3 -3
- package/front_end/panels/timeline/components/liveMetricsView.css +39 -39
- package/front_end/panels/timeline/components/metricCard.css +20 -20
- package/front_end/panels/timeline/components/networkRequestDetails.css +9 -9
- package/front_end/panels/timeline/components/networkRequestTooltip.css +14 -14
- package/front_end/panels/timeline/components/networkTrackWidget.css +2 -2
- package/front_end/panels/timeline/components/originMap.css +4 -4
- package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
- package/front_end/panels/timeline/components/sidebarAnnotationsTab.css +4 -4
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +5 -5
- package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +1 -1
- package/front_end/panels/timeline/components/timelineSummary.css +4 -4
- package/front_end/panels/timeline/overlays/OverlaysImpl.ts +4 -4
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +6 -6
- package/front_end/panels/timeline/overlays/components/TimeRangeOverlay.ts +1 -1
- package/front_end/panels/timeline/thirdPartyTreeView.css +5 -5
- package/front_end/panels/timeline/timeline-meta.ts +0 -6
- package/front_end/panels/timeline/timelineDetailsView.css +11 -11
- package/front_end/panels/timeline/timelinePanel.css +20 -20
- package/front_end/panels/timeline/timelineTreeView.css +8 -8
- package/front_end/panels/webauthn/webauthnPane.css +6 -6
- package/front_end/panels/whats_new/ReleaseNoteText.ts +2 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/i18n/i18n-impl.ts +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +15 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +42 -8
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js +15 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Frame.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts +14 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js +23 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/WebMCP.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js +77 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/Poller.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +15 -1
- package/front_end/third_party/puppeteer/package/package.json +2 -2
- package/front_end/third_party/puppeteer/package/src/cdp/Frame.ts +16 -2
- package/front_end/third_party/puppeteer/package/src/cdp/WebMCP.ts +36 -1
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/Poller.ts +86 -6
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/third_party/web-vitals/README.chromium +2 -2
- package/front_end/third_party/web-vitals/package/README.md +22 -7
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onINP.js +6 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.d.ts +2 -2
- package/front_end/third_party/web-vitals/package/dist/modules/attribution/onLCP.js +30 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.d.ts +14 -0
- package/front_end/third_party/web-vitals/package/dist/modules/lib/InteractionManager.js +19 -13
- package/front_end/third_party/web-vitals/package/dist/modules/lib/bindReporter.d.ts +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/doubleRAF.js +1 -1
- package/front_end/third_party/web-vitals/package/dist/modules/lib/initMetric.d.ts +3 -3
- package/front_end/third_party/web-vitals/package/dist/modules/lib/softNavs.js +3 -1
- package/front_end/third_party/web-vitals/package/dist/modules/types/lcp.d.ts +15 -1
- package/front_end/third_party/web-vitals/package/package.json +1 -2
- package/front_end/third_party/web-vitals/package/src/attribution/onINP.ts +9 -2
- package/front_end/third_party/web-vitals/package/src/attribution/onLCP.ts +36 -5
- package/front_end/third_party/web-vitals/package/src/lib/InteractionManager.ts +21 -15
- package/front_end/third_party/web-vitals/package/src/lib/doubleRAF.ts +1 -1
- package/front_end/third_party/web-vitals/package/src/lib/softNavs.ts +4 -1
- package/front_end/third_party/web-vitals/package/src/types/lcp.ts +16 -1
- package/front_end/third_party/web-vitals/rebuild.sh +3 -3
- package/front_end/ui/comments/CommentAnchorResolver.ts +15 -4
- package/front_end/ui/comments/commentsOverlay.css +6 -5
- package/front_end/ui/components/adorners/Adorner.ts +1 -1
- package/front_end/ui/components/adorners/adorner.css +6 -6
- package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
- package/front_end/ui/components/buttons/button.css +9 -9
- package/front_end/ui/components/buttons/floatingButton.css +2 -2
- package/front_end/ui/components/buttons/textButton.css +12 -12
- package/front_end/ui/components/dialogs/Dialog.ts +1 -1
- package/front_end/ui/components/dialogs/dialog.css +1 -1
- package/front_end/ui/components/diff_view/diffView.css +3 -3
- package/front_end/ui/components/expandable_list/expandableList.css +9 -9
- package/front_end/ui/components/highlighting/HighlightElement.ts +1 -1
- package/front_end/ui/components/highlighting/HighlightManager.ts +4 -0
- package/front_end/ui/components/icon_button/iconButton.css +2 -2
- package/front_end/ui/components/input/checkbox.css +8 -8
- package/front_end/ui/components/input/textInput.css +3 -3
- package/front_end/ui/components/issue_counter/issueLinkIcon.css +2 -2
- package/front_end/ui/components/linkifier/linkifierImpl.css +1 -1
- package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -1
- package/front_end/ui/components/markdown_view/codeBlock.css +2 -2
- package/front_end/ui/components/markdown_view/markdownView.css +7 -7
- package/front_end/ui/components/menus/menuGroup.css +2 -2
- package/front_end/ui/components/menus/menuItem.css +2 -2
- package/front_end/ui/components/menus/selectMenu.css +2 -2
- package/front_end/ui/components/menus/selectMenuButton.css +4 -4
- package/front_end/ui/components/panel_feedback/panelFeedback.css +15 -15
- package/front_end/ui/components/panel_feedback/previewToggle.css +2 -2
- package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +7 -7
- package/front_end/ui/components/report_view/report.css +3 -3
- package/front_end/ui/components/report_view/reportSectionDivider.css +1 -1
- package/front_end/ui/components/report_view/reportValue.css +1 -1
- package/front_end/ui/components/request_link_icon/requestLinkIcon.css +2 -2
- package/front_end/ui/components/settings/settingCheckbox.css +6 -6
- package/front_end/ui/components/text_editor/TextEditor.ts +3 -1
- package/front_end/ui/components/text_editor/config.ts +16 -4
- package/front_end/ui/kit/icons/icon.css +4 -4
- package/front_end/ui/kit/link/link.css +1 -1
- package/front_end/ui/legacy/ActionRegistration.ts +23 -23
- package/front_end/ui/legacy/Dialog.ts +1 -1
- package/front_end/ui/legacy/DockController.ts +3 -3
- package/front_end/ui/legacy/EmptyWidget.ts +13 -34
- package/front_end/ui/legacy/FilterBar.ts +4 -4
- package/front_end/ui/legacy/Infobar.ts +2 -2
- package/front_end/ui/legacy/InspectorDrawerView.ts +6 -6
- package/front_end/ui/legacy/InspectorView.ts +19 -26
- package/front_end/ui/legacy/ListWidget.ts +7 -7
- package/front_end/ui/legacy/PlusButton.ts +1 -3
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +6 -6
- package/front_end/ui/legacy/SearchableView.ts +16 -16
- package/front_end/ui/legacy/SoftContextMenu.ts +8 -8
- package/front_end/ui/legacy/SoftDropDown.ts +1 -1
- package/front_end/ui/legacy/SuggestBox.ts +2 -2
- package/front_end/ui/legacy/TabbedPane.ts +10 -10
- package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -2
- package/front_end/ui/legacy/Toolbar.ts +5 -5
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/UIUtils.ts +80 -20
- package/front_end/ui/legacy/ViewManager.ts +1 -1
- package/front_end/ui/legacy/ViewRegistration.ts +7 -7
- package/front_end/ui/legacy/Widget.ts +5 -5
- package/front_end/ui/legacy/checkboxTextLabel.css +3 -3
- package/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts +16 -0
- package/front_end/ui/legacy/components/color_picker/FormatPickerContextMenu.ts +1 -0
- package/front_end/ui/legacy/components/color_picker/spectrum.css +90 -90
- package/front_end/ui/legacy/components/cookie_table/cookiesTable.css +1 -1
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +26 -28
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -7
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +13 -13
- package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +7 -7
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +5 -5
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +18 -18
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +104 -86
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +8 -6
- package/front_end/ui/legacy/components/object_ui/objectPopover.css +4 -4
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/ChartViewport.ts +28 -11
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +0 -4
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +4 -4
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +7 -7
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +11 -11
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +6 -6
- package/front_end/ui/legacy/components/perf_ui/timelineGrid.css +5 -5
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +3 -3
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/jsonView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/resourceSourceFrame.css +1 -1
- package/front_end/ui/legacy/components/source_frame/xmlTree.css +3 -3
- package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
- package/front_end/ui/legacy/components/utils/jsUtils.css +10 -10
- package/front_end/ui/legacy/dropTarget.css +2 -2
- package/front_end/ui/legacy/emptyWidget.css +6 -0
- package/front_end/ui/legacy/filter.css +19 -19
- package/front_end/ui/legacy/infobar.css +2 -2
- package/front_end/ui/legacy/inspectorCommon.css +67 -67
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +1 -1
- package/front_end/ui/legacy/listWidget.css +5 -5
- package/front_end/ui/legacy/progressIndicator.css +4 -4
- package/front_end/ui/legacy/reportView.css +7 -7
- package/front_end/ui/legacy/searchableView.css +5 -5
- package/front_end/ui/legacy/smallBubble.css +3 -3
- package/front_end/ui/legacy/softContextMenu.css +4 -4
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/splitWidget.css +9 -31
- package/front_end/ui/legacy/suggestBox.css +4 -4
- package/front_end/ui/legacy/tabbedPane.css +17 -17
- package/front_end/ui/legacy/textPrompt.css +2 -2
- package/front_end/ui/legacy/toolbar.css +4 -4
- package/front_end/ui/legacy/treeoutline.css +14 -14
- package/front_end/ui/legacy/viewContainers.css +6 -6
- package/front_end/ui/settings/ConsoleSettings.ts +34 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
- package/inspector_overlay/common.ts +12 -12
- package/inspector_overlay/css_grid_label_helpers.ts +16 -17
- package/inspector_overlay/drag_resize_handler.ts +2 -2
- package/inspector_overlay/highlight_common.ts +11 -13
- package/inspector_overlay/highlight_container_query.ts +2 -2
- package/inspector_overlay/highlight_flex_common.ts +6 -7
- package/inspector_overlay/highlight_grid_common.ts +3 -3
- package/inspector_overlay/highlight_isolated_element.ts +12 -3
- package/inspector_overlay/highlight_scroll_snap.ts +2 -2
- package/inspector_overlay/loadCSS.rollup.js +0 -1
- package/inspector_overlay/testing/InspectorOverlayHelpers.ts +13 -13
- package/inspector_overlay/tool_green_dev_anchors.ts +3 -3
- package/inspector_overlay/tool_highlight.ts +9 -9
- package/inspector_overlay/tool_paused.ts +4 -4
- package/inspector_overlay/tool_persistent.ts +11 -11
- package/inspector_overlay/tool_screenshot.ts +7 -7
- package/inspector_overlay/tool_source_order.ts +4 -4
- package/inspector_overlay/tool_viewport_size.ts +3 -3
- package/inspector_overlay/tool_window_controls.ts +4 -4
- package/mcp/mcp.ts +1 -0
- package/package.json +2 -2
- package/front_end/generated/protocol-tsconfig.json +0 -10
- package/front_end/panels/js_timeline/DIR_METADATA +0 -3
- package/front_end/panels/js_timeline/js_timeline-meta.ts +0 -193
- package/front_end/panels/js_timeline/js_timeline.ts +0 -1
- /package/front_end/entrypoints/{formatter_worker/FormatterActions.ts → formatter_actions/formatter_actions.ts} +0 -0
|
@@ -127,8 +127,8 @@ export function getFormat(formatText: string): Format|null {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// Returns the `ColorSpace` equivalent from the color space text
|
|
130
|
-
type ColorSpace = Format.SRGB|Format.SRGB_LINEAR|Format.DISPLAY_P3|Format.
|
|
131
|
-
Format.REC_2020|Format.XYZ|Format.XYZ_D50|Format.XYZ_D65;
|
|
130
|
+
type ColorSpace = Format.SRGB|Format.SRGB_LINEAR|Format.DISPLAY_P3|Format.DISPLAY_P3_LINEAR|Format.A98_RGB|
|
|
131
|
+
Format.PROPHOTO_RGB|Format.REC_2020|Format.XYZ|Format.XYZ_D50|Format.XYZ_D65;
|
|
132
132
|
function getColorSpace(colorSpaceText: string): ColorSpace|null {
|
|
133
133
|
switch (colorSpaceText) {
|
|
134
134
|
case Format.SRGB:
|
|
@@ -137,6 +137,8 @@ function getColorSpace(colorSpaceText: string): ColorSpace|null {
|
|
|
137
137
|
return Format.SRGB_LINEAR;
|
|
138
138
|
case Format.DISPLAY_P3:
|
|
139
139
|
return Format.DISPLAY_P3;
|
|
140
|
+
case Format.DISPLAY_P3_LINEAR:
|
|
141
|
+
return Format.DISPLAY_P3_LINEAR;
|
|
140
142
|
case Format.A98_RGB:
|
|
141
143
|
return Format.A98_RGB;
|
|
142
144
|
case Format.PROPHOTO_RGB:
|
|
@@ -651,6 +653,7 @@ interface ColorConversions<T = void> {
|
|
|
651
653
|
[Format.SRGB](self: T): ColorFunction;
|
|
652
654
|
[Format.SRGB_LINEAR](self: T): ColorFunction;
|
|
653
655
|
[Format.DISPLAY_P3](self: T): ColorFunction;
|
|
656
|
+
[Format.DISPLAY_P3_LINEAR](self: T): ColorFunction;
|
|
654
657
|
[Format.A98_RGB](self: T): ColorFunction;
|
|
655
658
|
[Format.PROPHOTO_RGB](self: T): ColorFunction;
|
|
656
659
|
[Format.REC_2020](self: T): ColorFunction;
|
|
@@ -727,6 +730,7 @@ export const enum Format {
|
|
|
727
730
|
SRGB = 'srgb',
|
|
728
731
|
SRGB_LINEAR = 'srgb-linear',
|
|
729
732
|
DISPLAY_P3 = 'display-p3',
|
|
733
|
+
DISPLAY_P3_LINEAR = 'display-p3-linear',
|
|
730
734
|
A98_RGB = 'a98-rgb',
|
|
731
735
|
PROPHOTO_RGB = 'prophoto-rgb',
|
|
732
736
|
REC_2020 = 'rec2020',
|
|
@@ -766,6 +770,8 @@ export class Lab implements Color {
|
|
|
766
770
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
767
771
|
[Format.DISPLAY_P3]: (self: Lab) =>
|
|
768
772
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
773
|
+
[Format.DISPLAY_P3_LINEAR]: (self: Lab) => new ColorFunction(
|
|
774
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
769
775
|
[Format.A98_RGB]: (self: Lab) =>
|
|
770
776
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
771
777
|
[Format.PROPHOTO_RGB]: (self: Lab) =>
|
|
@@ -905,6 +911,8 @@ export class LCH implements Color {
|
|
|
905
911
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
906
912
|
[Format.DISPLAY_P3]: (self: LCH) =>
|
|
907
913
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
914
|
+
[Format.DISPLAY_P3_LINEAR]: (self: LCH) => new ColorFunction(
|
|
915
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
908
916
|
[Format.A98_RGB]: (self: LCH) =>
|
|
909
917
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
910
918
|
[Format.PROPHOTO_RGB]: (self: LCH) =>
|
|
@@ -1047,6 +1055,8 @@ export class Oklab implements Color {
|
|
|
1047
1055
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1048
1056
|
[Format.DISPLAY_P3]: (self: Oklab) =>
|
|
1049
1057
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1058
|
+
[Format.DISPLAY_P3_LINEAR]: (self: Oklab) => new ColorFunction(
|
|
1059
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1050
1060
|
[Format.A98_RGB]: (self: Oklab) =>
|
|
1051
1061
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1052
1062
|
[Format.PROPHOTO_RGB]: (self: Oklab) =>
|
|
@@ -1186,6 +1196,8 @@ export class Oklch implements Color {
|
|
|
1186
1196
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1187
1197
|
[Format.DISPLAY_P3]: (self: Oklch) =>
|
|
1188
1198
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1199
|
+
[Format.DISPLAY_P3_LINEAR]: (self: Oklch) => new ColorFunction(
|
|
1200
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1189
1201
|
[Format.A98_RGB]: (self: Oklch) =>
|
|
1190
1202
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1191
1203
|
[Format.PROPHOTO_RGB]: (self: Oklch) =>
|
|
@@ -1329,6 +1341,8 @@ export class ColorFunction implements Color {
|
|
|
1329
1341
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1330
1342
|
[Format.DISPLAY_P3]: (self: ColorFunction) =>
|
|
1331
1343
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1344
|
+
[Format.DISPLAY_P3_LINEAR]: (self: ColorFunction) => new ColorFunction(
|
|
1345
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1332
1346
|
[Format.A98_RGB]: (self: ColorFunction) =>
|
|
1333
1347
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1334
1348
|
[Format.PROPHOTO_RGB]: (self: ColorFunction) =>
|
|
@@ -1352,6 +1366,8 @@ export class ColorFunction implements Color {
|
|
|
1352
1366
|
return ColorConverter.srgbLinearToXyzd50(p0, p1, p2);
|
|
1353
1367
|
case Format.DISPLAY_P3:
|
|
1354
1368
|
return ColorConverter.displayP3ToXyzd50(p0, p1, p2);
|
|
1369
|
+
case Format.DISPLAY_P3_LINEAR:
|
|
1370
|
+
return ColorConverter.displayP3LinearToXyzd50(p0, p1, p2);
|
|
1355
1371
|
case Format.A98_RGB:
|
|
1356
1372
|
return ColorConverter.adobeRGBToXyzd50(p0, p1, p2);
|
|
1357
1373
|
case Format.PROPHOTO_RGB:
|
|
@@ -1560,6 +1576,8 @@ export class HSL implements Color {
|
|
|
1560
1576
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1561
1577
|
[Format.DISPLAY_P3]: (self: HSL) =>
|
|
1562
1578
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1579
|
+
[Format.DISPLAY_P3_LINEAR]: (self: HSL) => new ColorFunction(
|
|
1580
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1563
1581
|
[Format.A98_RGB]: (self: HSL) =>
|
|
1564
1582
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1565
1583
|
[Format.PROPHOTO_RGB]: (self: HSL) =>
|
|
@@ -1714,6 +1732,8 @@ export class HWB implements Color {
|
|
|
1714
1732
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1715
1733
|
[Format.DISPLAY_P3]: (self: HWB) =>
|
|
1716
1734
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
1735
|
+
[Format.DISPLAY_P3_LINEAR]: (self: HWB) => new ColorFunction(
|
|
1736
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1717
1737
|
[Format.A98_RGB]: (self: HWB) =>
|
|
1718
1738
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1719
1739
|
[Format.PROPHOTO_RGB]: (self: HWB) =>
|
|
@@ -1983,6 +2003,8 @@ export class Legacy implements Color {
|
|
|
1983
2003
|
new ColorFunction(Format.SRGB_LINEAR, ...ColorConverter.xyzd50TosRGBLinear(...self.#toXyzd50()), self.alpha),
|
|
1984
2004
|
[Format.DISPLAY_P3]: (self: Legacy) =>
|
|
1985
2005
|
new ColorFunction(Format.DISPLAY_P3, ...ColorConverter.xyzd50ToDisplayP3(...self.#toXyzd50()), self.alpha),
|
|
2006
|
+
[Format.DISPLAY_P3_LINEAR]: (self: Legacy) => new ColorFunction(
|
|
2007
|
+
Format.DISPLAY_P3_LINEAR, ...ColorConverter.xyzd50ToDisplayP3Linear(...self.#toXyzd50()), self.alpha),
|
|
1986
2008
|
[Format.A98_RGB]: (self: Legacy) =>
|
|
1987
2009
|
new ColorFunction(Format.A98_RGB, ...ColorConverter.xyzd50ToAdobeRGB(...self.#toXyzd50()), self.alpha),
|
|
1988
2010
|
[Format.PROPHOTO_RGB]: (self: Legacy) =>
|
|
@@ -2403,7 +2425,7 @@ console.assert(
|
|
|
2403
2425
|
COLOR_TO_RGBA_ENTRIES.every(([nickname]) => nickname.toLowerCase() === nickname),
|
|
2404
2426
|
'All color nicknames must be lowercase.');
|
|
2405
2427
|
|
|
2406
|
-
export const Nicknames = new Map(COLOR_TO_RGBA_ENTRIES);
|
|
2428
|
+
export const Nicknames: Map<string, number[]> = new Map(COLOR_TO_RGBA_ENTRIES);
|
|
2407
2429
|
|
|
2408
2430
|
const RGBAToNickname = new Map(
|
|
2409
2431
|
// Default opacity to 1 if the color only specified 3 channels
|
|
@@ -2414,7 +2436,7 @@ const RGBAToNickname = new Map(
|
|
|
2414
2436
|
|
|
2415
2437
|
const LAYOUT_LINES_HIGHLIGHT_COLOR = [127, 32, 210];
|
|
2416
2438
|
|
|
2417
|
-
export const PageHighlight = {
|
|
2439
|
+
export const PageHighlight: Record<string, Legacy> = {
|
|
2418
2440
|
Content: Legacy.fromRGBA([111, 168, 220, .66]),
|
|
2419
2441
|
ContentLight: Legacy.fromRGBA([111, 168, 220, .5]),
|
|
2420
2442
|
ContentOutline: Legacy.fromRGBA([9, 83, 148]),
|
|
@@ -2435,12 +2457,12 @@ export const PageHighlight = {
|
|
|
2435
2457
|
GridAreaBorder: Legacy.fromRGBA([26, 115, 232, 1]),
|
|
2436
2458
|
};
|
|
2437
2459
|
|
|
2438
|
-
export const SourceOrderHighlight = {
|
|
2460
|
+
export const SourceOrderHighlight: Record<string, Legacy> = {
|
|
2439
2461
|
ParentOutline: Legacy.fromRGBA([224, 90, 183, 1]),
|
|
2440
2462
|
ChildOutline: Legacy.fromRGBA([0, 120, 212, 1]),
|
|
2441
2463
|
};
|
|
2442
2464
|
|
|
2443
|
-
export const IsolationModeHighlight = {
|
|
2465
|
+
export const IsolationModeHighlight: Record<string, Legacy> = {
|
|
2444
2466
|
Resizer: Legacy.fromRGBA([222, 225, 230, 1]), // --color-background-elevation-2
|
|
2445
2467
|
ResizerHandle: Legacy.fromRGBA([166, 166, 166, 1]),
|
|
2446
2468
|
Mask: Legacy.fromRGBA([248, 249, 249, 1]),
|
|
@@ -308,6 +308,18 @@ export class ColorConverter {
|
|
|
308
308
|
NAMED_TRANSFER_FN.sRGB_INVERSE, rgbOutput.values[0], rgbOutput.values[1], rgbOutput.values[2]);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
static displayP3LinearToXyzd50(r: number, g: number, b: number): [number, number, number] {
|
|
312
|
+
const rgbInput = new Vector3([r, g, b]);
|
|
313
|
+
const xyzOutput = NAMED_GAMUTS.displayP3.multiply(rgbInput);
|
|
314
|
+
return xyzOutput.values;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
static xyzd50ToDisplayP3Linear(x: number, y: number, z: number): [number, number, number] {
|
|
318
|
+
const xyzInput = new Vector3([x, y, z]);
|
|
319
|
+
const rgbResult = NAMED_GAMUTS.displayP3_INVERSE.multiply(xyzInput);
|
|
320
|
+
return rgbResult.values;
|
|
321
|
+
}
|
|
322
|
+
|
|
311
323
|
static proPhotoToXyzd50(r: number, g: number, b: number): [number, number, number] {
|
|
312
324
|
const [mappedR, mappedG, mappedB] = applyTransferFns(NAMED_TRANSFER_FN.proPhotoRGB, r, g, b);
|
|
313
325
|
const rgbInput = new Vector3([mappedR, mappedG, mappedB]);
|
|
@@ -30,7 +30,8 @@ export class Console extends ObjectWrapper<EventTypes> {
|
|
|
30
30
|
* @param show whether to show the Console panel (if it's not already shown).
|
|
31
31
|
* @param source the message source.
|
|
32
32
|
*/
|
|
33
|
-
addMessage(text: string, level = MessageLevel.INFO, show = false,
|
|
33
|
+
addMessage(text: string, level: MessageLevel = MessageLevel.INFO, show = false,
|
|
34
|
+
source?: FrontendMessageSource): void {
|
|
34
35
|
const message = new Message(text, level, Date.now(), show, source);
|
|
35
36
|
this.#messages.push(message);
|
|
36
37
|
this.dispatchEventToListeners(Events.MESSAGE_ADDED, message);
|
|
@@ -119,8 +119,8 @@ export type EventMixinBase = {
|
|
|
119
119
|
dispatchDOMEvent ? (event: Event) : void,
|
|
120
120
|
}&object;
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
export function eventMixin<Events, Base extends Platform.Constructor.Constructor<EventMixinBase>>(base: Base):
|
|
123
|
+
Platform.Constructor.Constructor<EventTarget<Events>>&Base {
|
|
124
124
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
125
125
|
console.assert(base as any !== HTMLElement);
|
|
126
126
|
return class EventHandling extends base implements EventTarget<Events> {
|
|
@@ -368,9 +368,9 @@ export class ResourceCategory {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
export const resourceCategories = {
|
|
372
|
-
XHR: new ResourceCategory(
|
|
373
|
-
|
|
371
|
+
export const resourceCategories: Record<string, ResourceCategory> = {
|
|
372
|
+
XHR: new ResourceCategory('Fetch and XHR', i18nLazyString(UIStrings.fetchAndXHR),
|
|
373
|
+
i18n.i18n.lockedLazyString('Fetch/XHR')),
|
|
374
374
|
Document: new ResourceCategory(UIStrings.document, i18nLazyString(UIStrings.document), i18nLazyString(UIStrings.doc)),
|
|
375
375
|
Stylesheet: new ResourceCategory(UIStrings.css, i18nLazyString(UIStrings.css), i18nLazyString(UIStrings.css)),
|
|
376
376
|
Script:
|
|
@@ -380,11 +380,10 @@ export const resourceCategories = {
|
|
|
380
380
|
Media: new ResourceCategory(UIStrings.media, i18nLazyString(UIStrings.media), i18nLazyString(UIStrings.media)),
|
|
381
381
|
Manifest:
|
|
382
382
|
new ResourceCategory(UIStrings.manifest, i18nLazyString(UIStrings.manifest), i18nLazyString(UIStrings.manifest)),
|
|
383
|
-
Socket: new ResourceCategory(
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
UIStrings.webassembly, i18nLazyString(UIStrings.webassembly), i18nLazyString(UIStrings.wasm)),
|
|
383
|
+
Socket: new ResourceCategory('Socket', i18n.i18n.lockedLazyString('WebSocket | WebTransport | DirectSocket'),
|
|
384
|
+
i18nLazyString(UIStrings.socketShort)),
|
|
385
|
+
Wasm: new ResourceCategory(UIStrings.webassembly, i18nLazyString(UIStrings.webassembly),
|
|
386
|
+
i18nLazyString(UIStrings.wasm)),
|
|
388
387
|
Other: new ResourceCategory(UIStrings.other, i18nLazyString(UIStrings.other), i18nLazyString(UIStrings.other)),
|
|
389
388
|
};
|
|
390
389
|
|
|
@@ -394,7 +393,7 @@ export const resourceCategories = {
|
|
|
394
393
|
* (for example Wasm that is based on Fetch), additional types are added here.
|
|
395
394
|
* For these types, make sure to update `fromMimeTypeOverride` to implement the custom logic.
|
|
396
395
|
*/
|
|
397
|
-
export const resourceTypes = {
|
|
396
|
+
export const resourceTypes: Record<string, ResourceType> = {
|
|
398
397
|
Document: new ResourceType('document', i18nLazyString(UIStrings.document), resourceCategories.Document, true),
|
|
399
398
|
Stylesheet: new ResourceType('stylesheet', i18nLazyString(UIStrings.stylesheet), resourceCategories.Stylesheet, true),
|
|
400
399
|
Image: new ResourceType('image', i18nLazyString(UIStrings.image), resourceCategories.Image, false),
|
|
@@ -416,8 +415,8 @@ export const resourceTypes = {
|
|
|
416
415
|
SignedExchange:
|
|
417
416
|
new ResourceType('signed-exchange', i18nLazyString(UIStrings.signedexchange), resourceCategories.Other, false),
|
|
418
417
|
Ping: new ResourceType('ping', i18nLazyString(UIStrings.ping), resourceCategories.Other, false),
|
|
419
|
-
CSPViolationReport: new ResourceType(
|
|
420
|
-
|
|
418
|
+
CSPViolationReport: new ResourceType('csp-violation-report', i18nLazyString(UIStrings.cspviolationreport),
|
|
419
|
+
resourceCategories.Other, false),
|
|
421
420
|
Other: new ResourceType('other', i18nLazyString(UIStrings.other), resourceCategories.Other, false),
|
|
422
421
|
Preflight: new ResourceType('preflight', i18nLazyString(UIStrings.preflight), resourceCategories.Other, true),
|
|
423
422
|
SourceMapScript: new ResourceType('sm-script', i18nLazyString(UIStrings.script), resourceCategories.Script, true),
|
|
@@ -432,7 +431,7 @@ const mimeTypeByName = new Map([
|
|
|
432
431
|
]);
|
|
433
432
|
|
|
434
433
|
// clang-format off
|
|
435
|
-
export const resourceTypeByExtension = new Map([
|
|
434
|
+
export const resourceTypeByExtension: Map<string, ResourceType> = new Map([
|
|
436
435
|
['js', resourceTypes.Script],
|
|
437
436
|
['mjs', resourceTypes.Script],
|
|
438
437
|
|
|
@@ -467,7 +466,7 @@ export const resourceTypeByExtension = new Map([
|
|
|
467
466
|
]);
|
|
468
467
|
// clang-format on
|
|
469
468
|
|
|
470
|
-
export const mimeTypeByExtension = new Map([
|
|
469
|
+
export const mimeTypeByExtension: Map<string, string> = new Map([
|
|
471
470
|
// Web extensions
|
|
472
471
|
['js', 'text/javascript'],
|
|
473
472
|
['mjs', 'text/javascript'],
|
|
@@ -178,7 +178,7 @@ export interface RevealerRegistration<T> {
|
|
|
178
178
|
destination?: RevealerDestination;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
export const RevealerDestination = {
|
|
181
|
+
export const RevealerDestination: Record<string, RevealerDestination> = {
|
|
182
182
|
DEVELOPER_RESOURCES_PANEL: i18nLazyString(UIStrings.developerResourcesPanel),
|
|
183
183
|
ELEMENTS_PANEL: i18nLazyString(UIStrings.elementsPanel),
|
|
184
184
|
STYLES_SIDEBAR: i18nLazyString(UIStrings.stylesSidebar),
|
|
@@ -110,10 +110,10 @@ export class Settings {
|
|
|
110
110
|
|
|
111
111
|
readonly #settingRegistrations: SettingRegistration[];
|
|
112
112
|
readonly #sessionStorage = new SettingsStorage({});
|
|
113
|
-
settingNameSet = new Set<string>();
|
|
113
|
+
settingNameSet: Set<string> = new Set<string>();
|
|
114
114
|
#eventSupport = new ObjectWrapper<GenericEvents>();
|
|
115
115
|
#registry = new Map<string, Setting<unknown>>();
|
|
116
|
-
readonly moduleSettings = new Map<string, Setting<unknown>>();
|
|
116
|
+
readonly moduleSettings: Map<string, Setting<unknown>> = new Map<string, Setting<unknown>>();
|
|
117
117
|
#logSettingAccess?: (name: string, value: number|string|boolean) => Promise<void>;
|
|
118
118
|
readonly #console: Console;
|
|
119
119
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import {Trie} from './Trie.js';
|
|
6
6
|
|
|
7
7
|
export class TextDictionary {
|
|
8
|
-
readonly words = new Map<string, number>();
|
|
9
|
-
readonly index = Trie.newStringTrie();
|
|
8
|
+
readonly words: Map<string, number> = new Map<string, number>();
|
|
9
|
+
readonly index: Trie<string> = Trie.newStringTrie();
|
|
10
10
|
|
|
11
11
|
addWord(word: string): void {
|
|
12
12
|
let count = this.words.get(word) || 0;
|
|
@@ -49,7 +49,7 @@ export class Throttler {
|
|
|
49
49
|
this.#process = null;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
async schedule(process: () => (void|Promise<unknown>), scheduling = Scheduling.DEFAULT): Promise<void> {
|
|
52
|
+
async schedule(process: () => (void|Promise<unknown>), scheduling: Scheduling = Scheduling.DEFAULT): Promise<void> {
|
|
53
53
|
// Deliberately skip previous #process.
|
|
54
54
|
this.#process = process;
|
|
55
55
|
|
|
@@ -42,7 +42,7 @@ export enum Events {
|
|
|
42
42
|
/* eslint-enable @typescript-eslint/naming-convention */
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export const EventDescriptors = [
|
|
45
|
+
export const EventDescriptors: ReadonlyArray<readonly[Events, readonly string[], boolean?]> = [
|
|
46
46
|
[Events.AppendedToURL, ['url']],
|
|
47
47
|
[Events.CanceledSaveURL, ['url']],
|
|
48
48
|
[Events.ColorThemeChanged, []],
|
|
@@ -60,7 +60,7 @@ export const EventDescriptors = [
|
|
|
60
60
|
[Events.FileSystemRemoved, ['fileSystemPath']],
|
|
61
61
|
[Events.FileSystemAdded, ['errorMessage', 'fileSystem']],
|
|
62
62
|
[Events.FileSystemFilesChangedAddedRemoved, ['changed', 'added', 'removed']],
|
|
63
|
-
[Events.IndexingTotalWorkCalculated,
|
|
63
|
+
[Events.IndexingTotalWorkCalculated, ['requestId', 'fileSystemPath', 'totalWork']],
|
|
64
64
|
[Events.IndexingWorked, ['requestId', 'fileSystemPath', 'worked']],
|
|
65
65
|
[Events.IndexingDone, ['requestId', 'fileSystemPath']],
|
|
66
66
|
[Events.KeyEventUnhandled, ['event']],
|
|
@@ -340,121 +340,135 @@ function createDynamicEnumProxy<T extends object>(enumName: string, fallbackEnum
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
export type Action = Enums.Action;
|
|
343
|
-
export const Action = createDynamicEnumProxy<typeof Enums.Action>('Action', Enums.Action);
|
|
343
|
+
export const Action: typeof Enums.Action = createDynamicEnumProxy<typeof Enums.Action>('Action', Enums.Action);
|
|
344
344
|
|
|
345
345
|
export type PanelCodes = Enums.PanelCodes;
|
|
346
|
-
export const PanelCodes
|
|
346
|
+
export const PanelCodes: typeof Enums.PanelCodes =
|
|
347
|
+
createDynamicEnumProxy<typeof Enums.PanelCodes>('PanelCodes', Enums.PanelCodes);
|
|
347
348
|
|
|
348
349
|
export type MediaTypes = Enums.MediaTypes;
|
|
349
|
-
export const MediaTypes
|
|
350
|
+
export const MediaTypes: typeof Enums.MediaTypes =
|
|
351
|
+
createDynamicEnumProxy<typeof Enums.MediaTypes>('MediaTypes', Enums.MediaTypes);
|
|
350
352
|
|
|
351
353
|
export type KeybindSetSettings = Enums.KeybindSetSettings;
|
|
352
|
-
export const KeybindSetSettings =
|
|
354
|
+
export const KeybindSetSettings: typeof Enums.KeybindSetSettings =
|
|
353
355
|
createDynamicEnumProxy<typeof Enums.KeybindSetSettings>('KeybindSetSettings', Enums.KeybindSetSettings);
|
|
354
356
|
|
|
355
357
|
export type KeyboardShortcutAction = Enums.KeyboardShortcutAction;
|
|
356
|
-
export const KeyboardShortcutAction =
|
|
358
|
+
export const KeyboardShortcutAction: typeof Enums.KeyboardShortcutAction =
|
|
357
359
|
createDynamicEnumProxy<typeof Enums.KeyboardShortcutAction>('KeyboardShortcutAction', Enums.KeyboardShortcutAction);
|
|
358
360
|
|
|
359
361
|
export type IssueOpener = Enums.IssueOpener;
|
|
360
|
-
export const IssueOpener
|
|
362
|
+
export const IssueOpener: typeof Enums.IssueOpener =
|
|
363
|
+
createDynamicEnumProxy<typeof Enums.IssueOpener>('IssueOpener', Enums.IssueOpener);
|
|
361
364
|
|
|
362
365
|
export type DevtoolsExperiments = Enums.DevtoolsExperiments;
|
|
363
|
-
export const DevtoolsExperiments =
|
|
366
|
+
export const DevtoolsExperiments: typeof Enums.DevtoolsExperiments =
|
|
364
367
|
createDynamicEnumProxy<typeof Enums.DevtoolsExperiments>('DevtoolsExperiments', Enums.DevtoolsExperiments);
|
|
365
368
|
|
|
366
369
|
export type IssueExpanded = Enums.IssueExpanded;
|
|
367
|
-
export const IssueExpanded
|
|
370
|
+
export const IssueExpanded: typeof Enums.IssueExpanded =
|
|
371
|
+
createDynamicEnumProxy<typeof Enums.IssueExpanded>('IssueExpanded', Enums.IssueExpanded);
|
|
368
372
|
|
|
369
373
|
export type IssueResourceOpened = Enums.IssueResourceOpened;
|
|
370
|
-
export const IssueResourceOpened =
|
|
374
|
+
export const IssueResourceOpened: typeof Enums.IssueResourceOpened =
|
|
371
375
|
createDynamicEnumProxy<typeof Enums.IssueResourceOpened>('IssueResourceOpened', Enums.IssueResourceOpened);
|
|
372
376
|
|
|
373
377
|
export type IssueCreated = Enums.IssueCreated;
|
|
374
|
-
export const IssueCreated
|
|
378
|
+
export const IssueCreated: typeof Enums.IssueCreated =
|
|
379
|
+
createDynamicEnumProxy<typeof Enums.IssueCreated>('IssueCreated', Enums.IssueCreated);
|
|
375
380
|
|
|
376
381
|
export type DeveloperResourceLoaded = Enums.DeveloperResourceLoaded;
|
|
377
|
-
export const DeveloperResourceLoaded
|
|
378
|
-
'DeveloperResourceLoaded',
|
|
382
|
+
export const DeveloperResourceLoaded: typeof Enums.DeveloperResourceLoaded =
|
|
383
|
+
createDynamicEnumProxy<typeof Enums.DeveloperResourceLoaded>('DeveloperResourceLoaded',
|
|
384
|
+
Enums.DeveloperResourceLoaded);
|
|
379
385
|
|
|
380
386
|
export type DeveloperResourceScheme = Enums.DeveloperResourceScheme;
|
|
381
|
-
export const DeveloperResourceScheme
|
|
382
|
-
'DeveloperResourceScheme',
|
|
387
|
+
export const DeveloperResourceScheme: typeof Enums.DeveloperResourceScheme =
|
|
388
|
+
createDynamicEnumProxy<typeof Enums.DeveloperResourceScheme>('DeveloperResourceScheme',
|
|
389
|
+
Enums.DeveloperResourceScheme);
|
|
383
390
|
|
|
384
391
|
export type Language = Enums.Language;
|
|
385
|
-
export const Language
|
|
392
|
+
export const Language: typeof Enums.Language =
|
|
393
|
+
createDynamicEnumProxy<typeof Enums.Language>('Language', Enums.Language);
|
|
386
394
|
|
|
387
395
|
export type SyncSetting = Enums.SyncSetting;
|
|
388
|
-
export const SyncSetting
|
|
396
|
+
export const SyncSetting: typeof Enums.SyncSetting =
|
|
397
|
+
createDynamicEnumProxy<typeof Enums.SyncSetting>('SyncSetting', Enums.SyncSetting);
|
|
389
398
|
|
|
390
399
|
export type RecordingToggled = Enums.RecordingToggled;
|
|
391
|
-
export const RecordingToggled =
|
|
400
|
+
export const RecordingToggled: typeof Enums.RecordingToggled =
|
|
392
401
|
createDynamicEnumProxy<typeof Enums.RecordingToggled>('RecordingToggled', Enums.RecordingToggled);
|
|
393
402
|
|
|
394
403
|
export type RecordingAssertion = Enums.RecordingAssertion;
|
|
395
|
-
export const RecordingAssertion =
|
|
404
|
+
export const RecordingAssertion: typeof Enums.RecordingAssertion =
|
|
396
405
|
createDynamicEnumProxy<typeof Enums.RecordingAssertion>('RecordingAssertion', Enums.RecordingAssertion);
|
|
397
406
|
|
|
398
407
|
export type RecordingReplayFinished = Enums.RecordingReplayFinished;
|
|
399
|
-
export const RecordingReplayFinished
|
|
400
|
-
'RecordingReplayFinished',
|
|
408
|
+
export const RecordingReplayFinished: typeof Enums.RecordingReplayFinished =
|
|
409
|
+
createDynamicEnumProxy<typeof Enums.RecordingReplayFinished>('RecordingReplayFinished',
|
|
410
|
+
Enums.RecordingReplayFinished);
|
|
401
411
|
|
|
402
412
|
export type RecordingReplaySpeed = Enums.RecordingReplaySpeed;
|
|
403
|
-
export const RecordingReplaySpeed =
|
|
413
|
+
export const RecordingReplaySpeed: typeof Enums.RecordingReplaySpeed =
|
|
404
414
|
createDynamicEnumProxy<typeof Enums.RecordingReplaySpeed>('RecordingReplaySpeed', Enums.RecordingReplaySpeed);
|
|
405
415
|
|
|
406
416
|
export type RecordingReplayStarted = Enums.RecordingReplayStarted;
|
|
407
|
-
export const RecordingReplayStarted =
|
|
417
|
+
export const RecordingReplayStarted: typeof Enums.RecordingReplayStarted =
|
|
408
418
|
createDynamicEnumProxy<typeof Enums.RecordingReplayStarted>('RecordingReplayStarted', Enums.RecordingReplayStarted);
|
|
409
419
|
|
|
410
420
|
export type RecordingEdited = Enums.RecordingEdited;
|
|
411
|
-
export const RecordingEdited =
|
|
421
|
+
export const RecordingEdited: typeof Enums.RecordingEdited =
|
|
412
422
|
createDynamicEnumProxy<typeof Enums.RecordingEdited>('RecordingEdited', Enums.RecordingEdited);
|
|
413
423
|
|
|
414
424
|
export type RecordingExported = Enums.RecordingExported;
|
|
415
|
-
export const RecordingExported =
|
|
425
|
+
export const RecordingExported: typeof Enums.RecordingExported =
|
|
416
426
|
createDynamicEnumProxy<typeof Enums.RecordingExported>('RecordingExported', Enums.RecordingExported);
|
|
417
427
|
|
|
418
428
|
export type RecordingCodeToggled = Enums.RecordingCodeToggled;
|
|
419
|
-
export const RecordingCodeToggled =
|
|
429
|
+
export const RecordingCodeToggled: typeof Enums.RecordingCodeToggled =
|
|
420
430
|
createDynamicEnumProxy<typeof Enums.RecordingCodeToggled>('RecordingCodeToggled', Enums.RecordingCodeToggled);
|
|
421
431
|
|
|
422
432
|
export type RecordingCopiedToClipboard = Enums.RecordingCopiedToClipboard;
|
|
423
|
-
export const RecordingCopiedToClipboard
|
|
424
|
-
'RecordingCopiedToClipboard',
|
|
433
|
+
export const RecordingCopiedToClipboard: typeof Enums.RecordingCopiedToClipboard =
|
|
434
|
+
createDynamicEnumProxy<typeof Enums.RecordingCopiedToClipboard>('RecordingCopiedToClipboard',
|
|
435
|
+
Enums.RecordingCopiedToClipboard);
|
|
425
436
|
|
|
426
437
|
export type ManifestSectionCodes = Enums.ManifestSectionCodes;
|
|
427
|
-
export const ManifestSectionCodes =
|
|
438
|
+
export const ManifestSectionCodes: typeof Enums.ManifestSectionCodes =
|
|
428
439
|
createDynamicEnumProxy<typeof Enums.ManifestSectionCodes>('ManifestSectionCodes', Enums.ManifestSectionCodes);
|
|
429
440
|
|
|
430
441
|
export type LighthouseModeRun = Enums.LighthouseModeRun;
|
|
431
|
-
export const LighthouseModeRun =
|
|
442
|
+
export const LighthouseModeRun: typeof Enums.LighthouseModeRun =
|
|
432
443
|
createDynamicEnumProxy<typeof Enums.LighthouseModeRun>('LighthouseModeRun', Enums.LighthouseModeRun);
|
|
433
444
|
|
|
434
445
|
export type LighthouseCategoryUsed = Enums.LighthouseCategoryUsed;
|
|
435
|
-
export const LighthouseCategoryUsed =
|
|
446
|
+
export const LighthouseCategoryUsed: typeof Enums.LighthouseCategoryUsed =
|
|
436
447
|
createDynamicEnumProxy<typeof Enums.LighthouseCategoryUsed>('LighthouseCategoryUsed', Enums.LighthouseCategoryUsed);
|
|
437
448
|
|
|
438
449
|
export type SwatchType = Enums.SwatchType;
|
|
439
|
-
export const SwatchType
|
|
450
|
+
export const SwatchType: typeof Enums.SwatchType =
|
|
451
|
+
createDynamicEnumProxy<typeof Enums.SwatchType>('SwatchType', Enums.SwatchType);
|
|
440
452
|
|
|
441
453
|
export type BadgeType = Enums.BadgeType;
|
|
442
|
-
export const BadgeType
|
|
454
|
+
export const BadgeType: typeof Enums.BadgeType =
|
|
455
|
+
createDynamicEnumProxy<typeof Enums.BadgeType>('BadgeType', Enums.BadgeType);
|
|
443
456
|
|
|
444
457
|
export type AnimationsPlaybackRate = Enums.AnimationsPlaybackRate;
|
|
445
|
-
export const AnimationsPlaybackRate =
|
|
458
|
+
export const AnimationsPlaybackRate: typeof Enums.AnimationsPlaybackRate =
|
|
446
459
|
createDynamicEnumProxy<typeof Enums.AnimationsPlaybackRate>('AnimationsPlaybackRate', Enums.AnimationsPlaybackRate);
|
|
447
460
|
|
|
448
461
|
export type TimelineNavigationSetting = Enums.TimelineNavigationSetting;
|
|
449
|
-
export const TimelineNavigationSetting
|
|
450
|
-
'TimelineNavigationSetting',
|
|
462
|
+
export const TimelineNavigationSetting: typeof Enums.TimelineNavigationSetting =
|
|
463
|
+
createDynamicEnumProxy<typeof Enums.TimelineNavigationSetting>('TimelineNavigationSetting',
|
|
464
|
+
Enums.TimelineNavigationSetting);
|
|
451
465
|
|
|
452
466
|
export type BuiltInAiAvailability = Enums.BuiltInAiAvailability;
|
|
453
|
-
export const BuiltInAiAvailability =
|
|
467
|
+
export const BuiltInAiAvailability: typeof Enums.BuiltInAiAvailability =
|
|
454
468
|
createDynamicEnumProxy<typeof Enums.BuiltInAiAvailability>('BuiltInAiAvailability', Enums.BuiltInAiAvailability);
|
|
455
469
|
|
|
456
470
|
export type ResendRequestType = Enums.ResendRequestType;
|
|
457
|
-
export const ResendRequestType =
|
|
471
|
+
export const ResendRequestType: typeof Enums.ResendRequestType =
|
|
458
472
|
createDynamicEnumProxy<typeof Enums.ResendRequestType>('ResendRequestType', Enums.ResendRequestType);
|
|
459
473
|
|
|
460
474
|
const resendRequestTypeMap = new Map<Common.ResourceType.ResourceType, keyof typeof Enums.ResendRequestType>([
|
|
@@ -67,7 +67,7 @@ export async function fetchAndRegisterLocaleData(
|
|
|
67
67
|
locale: Intl.UnicodeBCP47LocaleIdentifier,
|
|
68
68
|
// Type issue with universal types.
|
|
69
69
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
70
|
-
location = (globalThis as any).location?.toString() ?? ''): Promise<void> {
|
|
70
|
+
location: string = (globalThis as any).location?.toString() ?? ''): Promise<void> {
|
|
71
71
|
const localeDataTextPromise =
|
|
72
72
|
fetch(getLocaleFetchUrl(locale, location)).then(result => result.json()) as Promise<I18n.I18n.LocalizedMessages>;
|
|
73
73
|
const timeoutPromise = new Promise<never>(
|
|
@@ -6,14 +6,14 @@ import type * as Api from './api/api.js';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
8
8
|
// @ts-ignore 'process' is not available when type-checking against browser types.
|
|
9
|
-
export const IS_NODE = typeof (process as unknown) !== 'undefined' && process.versions?.node !== null;
|
|
9
|
+
export const IS_NODE: boolean = typeof (process as unknown) !== 'undefined' && process.versions?.node !== null;
|
|
10
10
|
|
|
11
|
-
export const IS_BROWSER =
|
|
11
|
+
export const IS_BROWSER: boolean =
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13
13
|
// @ts-ignore 'window' is not available when type-checking against node.js types.
|
|
14
14
|
typeof window !== 'undefined' || (typeof self !== 'undefined' && typeof self.postMessage === 'function');
|
|
15
15
|
|
|
16
|
-
export const HOST_RUNTIME = await (async(): Promise<Api.HostRuntime.HostRuntime> => {
|
|
16
|
+
export const HOST_RUNTIME: Api.HostRuntime.HostRuntime = await (async(): Promise<Api.HostRuntime.HostRuntime> => {
|
|
17
17
|
// Check IS_BROWSER first: in some embedder environments, both IS_NODE
|
|
18
18
|
// and IS_BROWSER can be true because `process` is available in renderer
|
|
19
19
|
// contexts. The browser runtime is always correct when browser APIs
|
|
@@ -18,7 +18,7 @@ export const ENTER_KEY = 'Enter';
|
|
|
18
18
|
export const ESCAPE_KEY = 'Escape';
|
|
19
19
|
export const TAB_KEY = 'Tab';
|
|
20
20
|
|
|
21
|
-
export const ARROW_KEYS = new Set<ArrowKey>([
|
|
21
|
+
export const ARROW_KEYS: Set<ArrowKey> = new Set<ArrowKey>([
|
|
22
22
|
ArrowKey.UP,
|
|
23
23
|
ArrowKey.DOWN,
|
|
24
24
|
ArrowKey.LEFT,
|
|
@@ -65,10 +65,11 @@ type ReadonlyEventParameterNames = ReadonlyMap<QualifiedName, string[]>;
|
|
|
65
65
|
type CommandParameter = InspectorBackendCommands.CommandParameter;
|
|
66
66
|
|
|
67
67
|
export class InspectorBackend implements InspectorBackendCommands.InspectorBackendAPI {
|
|
68
|
-
readonly agentPrototypes = new Map<ProtocolDomainName, AgentPrototype>();
|
|
69
|
-
#eventParameterNamesForDomain
|
|
70
|
-
|
|
71
|
-
readonly
|
|
68
|
+
readonly agentPrototypes: Map<ProtocolDomainName, AgentPrototype> = new Map<ProtocolDomainName, AgentPrototype>();
|
|
69
|
+
#eventParameterNamesForDomain: Map<ProtocolDomainName, EventParameterNames> =
|
|
70
|
+
new Map<ProtocolDomainName, EventParameterNames>();
|
|
71
|
+
readonly typeMap: Map<QualifiedName, CommandParameter[]> = new Map<QualifiedName, CommandParameter[]>();
|
|
72
|
+
readonly enumMap: Map<QualifiedName, Record<string, string>> = new Map<QualifiedName, Record<string, string>>();
|
|
72
73
|
|
|
73
74
|
constructor() {
|
|
74
75
|
// Create the global here because registering commands will involve putting
|
|
@@ -673,7 +674,7 @@ const IGNORED_ERRORS = new Set<CDPErrorStatus>([
|
|
|
673
674
|
* The reasons this is done is so that on the prototypes we can install the implementations
|
|
674
675
|
* of the invoke_enable, etc. methods that the front-end uses.
|
|
675
676
|
*/
|
|
676
|
-
class AgentPrototype {
|
|
677
|
+
export class AgentPrototype {
|
|
677
678
|
description = '';
|
|
678
679
|
metadata: Record<string, {parameters: CommandParameter[], description: string, replyArgs: string[]}>;
|
|
679
680
|
readonly domain: string;
|
|
@@ -773,4 +774,4 @@ class DispatcherManager<Domain extends ProtocolDomainName> {
|
|
|
773
774
|
}
|
|
774
775
|
}
|
|
775
776
|
|
|
776
|
-
export const inspectorBackend = new InspectorBackend();
|
|
777
|
+
export const inspectorBackend: InspectorBackend = new InspectorBackend();
|
|
@@ -323,7 +323,7 @@ export class Experiment {
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
/** This must be constructed after the query parameters have been parsed. **/
|
|
326
|
-
export const experiments = new ExperimentsSupport();
|
|
326
|
+
export const experiments: ExperimentsSupport = new ExperimentsSupport();
|
|
327
327
|
|
|
328
328
|
export enum GenAiEnterprisePolicyValue {
|
|
329
329
|
ALLOW = 0,
|
|
@@ -632,6 +632,8 @@ export const hostConfig: Platform.TypeScriptUtilities.RecursiveReadonly<HostConf
|
|
|
632
632
|
*/
|
|
633
633
|
export type Condition = (config?: HostConfig) => boolean;
|
|
634
634
|
|
|
635
|
-
export const conditions
|
|
635
|
+
export const conditions: {
|
|
636
|
+
canDock: Condition,
|
|
637
|
+
} = {
|
|
636
638
|
canDock: () => Boolean(Runtime.queryParam('can_dock')),
|
|
637
639
|
};
|
|
@@ -287,7 +287,7 @@ export class AnimationModel extends SDKModel<EventTypes> {
|
|
|
287
287
|
readonly runtimeModel: RuntimeModel;
|
|
288
288
|
readonly agent: ProtocolProxyApi.AnimationApi;
|
|
289
289
|
#animationsById = new Map<string, AnimationImpl>();
|
|
290
|
-
readonly animationGroups = new Map<string, AnimationGroup>();
|
|
290
|
+
readonly animationGroups: Map<string, AnimationGroup> = new Map<string, AnimationGroup>();
|
|
291
291
|
#pendingAnimations = new Set<string>();
|
|
292
292
|
playbackRate = 1;
|
|
293
293
|
#flushPendingAnimations: () => void;
|