chrome-devtools-frontend 1.0.1555430 → 1.0.1556696
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/front_end/entrypoints/formatter_worker/FormatterActions.ts +2 -0
- package/front_end/entrypoints/formatter_worker/ScopeParser.ts +75 -7
- package/front_end/entrypoints/formatter_worker/Substitute.ts +1 -1
- package/front_end/generated/InspectorBackendCommands.ts +1 -1
- package/front_end/generated/protocol.ts +0 -1
- package/front_end/models/ai_assistance/AiConversation.ts +71 -10
- package/front_end/models/ai_assistance/ArtifactsManager.ts +67 -0
- package/front_end/models/ai_assistance/ConversationHandler.ts +3 -2
- package/front_end/models/ai_assistance/agents/AiAgent.ts +17 -27
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +151 -3
- package/front_end/models/ai_assistance/agents/StylingAgent.ts +1 -1
- package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.ts +0 -2
- package/front_end/models/annotations/AnnotationRepository.ts +2 -2
- package/front_end/models/greendev/Prototypes.ts +56 -0
- package/front_end/models/greendev/README.md +5 -0
- package/front_end/models/greendev/greendev.ts +5 -0
- package/front_end/models/trace/extras/TraceTree.ts +4 -2
- package/front_end/models/trace/insights/LCPDiscovery.ts +0 -2
- package/front_end/models/trace/types/TraceEvents.ts +0 -1
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +96 -91
- package/front_end/panels/ai_assistance/aiAssistancePanel.css +16 -0
- package/front_end/panels/ai_assistance/components/ArtifactsViewer.ts +109 -7
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -2
- package/front_end/panels/ai_assistance/components/CollapsibleAssistanceContentWidget.ts +7 -8
- package/front_end/panels/ai_assistance/components/PerformanceAgentFlameChart.ts +15 -8
- package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +9 -9
- package/front_end/panels/ai_assistance/components/artifactsViewer.css +6 -1
- package/front_end/panels/ai_assistance/components/collapsibleAssistanceContentWidget.css +5 -6
- package/front_end/panels/application/AppManifestView.ts +263 -205
- package/front_end/panels/application/ApplicationPanelSidebar.ts +24 -57
- package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -0
- package/front_end/panels/application/ServiceWorkersView.ts +2 -0
- package/front_end/panels/application/StorageView.ts +1 -0
- package/front_end/panels/application/appManifestView.css +48 -0
- package/front_end/panels/application/components/ProtocolHandlersView.ts +2 -2
- package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryInspector.ts +4 -8
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +148 -97
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryViewer.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/linearMemoryValueInterpreter.css +37 -35
- package/front_end/panels/settings/SettingsScreen.ts +133 -1
- package/front_end/panels/settings/settings-meta.ts +24 -0
- package/front_end/panels/settings/settingsScreen.css +4 -0
- package/front_end/panels/sources/UISourceCodeFrame.ts +3 -17
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +2 -1
- package/front_end/third_party/acorn/estree-legacy.d.ts +2 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- 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/CDPSession.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +21 -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/EventEmitter.d.ts.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/util/Mutex.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +15 -6
- 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/CDPSession.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +21 -7
- 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/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/package.json +2 -2
- package/front_end/third_party/puppeteer/package/src/api/CDPSession.ts +1 -2
- package/front_end/third_party/puppeteer/package/src/api/ElementHandle.ts +2 -4
- package/front_end/third_party/puppeteer/package/src/api/Frame.ts +2 -4
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +2 -4
- package/front_end/third_party/puppeteer/package/src/bidi/core/Connection.ts +3 -2
- package/front_end/third_party/puppeteer/package/src/common/BrowserConnector.ts +29 -10
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/report_view/ReportView.docs.ts +37 -0
- package/front_end/ui/components/report_view/ReportView.ts +1 -4
- package/front_end/ui/components/settings/SettingCheckbox.ts +1 -1
- package/front_end/ui/legacy/Floaty.ts +5 -9
- package/front_end/ui/legacy/InspectorView.ts +2 -1
- package/front_end/ui/legacy/ReportView.ts +5 -4
- package/front_end/ui/legacy/Widget.ts +7 -0
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +0 -1
- package/front_end/ui/legacy/reportView.css +0 -24
- package/front_end/ui/visual_logging/KnownContextValues.ts +7 -0
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
7
|
-
import * as Root from '../../core/root/root.js';
|
|
8
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
8
|
import type * as Protocol from '../../generated/protocol.js';
|
|
9
|
+
import * as GreenDev from '../../models/greendev/greendev.js';
|
|
10
10
|
import * as Logs from '../../models/logs/logs.js';
|
|
11
11
|
import * as Trace from '../../models/trace/trace.js';
|
|
12
12
|
import * as Buttons from '../components/buttons/buttons.js';
|
|
@@ -89,7 +89,7 @@ export class Floaty {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
#insertIntoDOM(): void {
|
|
92
|
-
if (
|
|
92
|
+
if (GreenDev.Prototypes.instance().isEnabled('inDevToolsFloaty')) {
|
|
93
93
|
this.#floaty.show(this.#container);
|
|
94
94
|
document.body.appendChild(this.#container);
|
|
95
95
|
document.body.addEventListener('keydown', this.#boundKeyDown);
|
|
@@ -169,19 +169,15 @@ type FloatyClickInput = {
|
|
|
169
169
|
},
|
|
170
170
|
};
|
|
171
171
|
|
|
172
|
-
export function enabled(): boolean {
|
|
173
|
-
return Root.Runtime.hostConfig.devToolsGreenDevUi?.enabled === true;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
172
|
export function onFloatyOpen(): void {
|
|
177
|
-
if (!
|
|
173
|
+
if (!GreenDev.Prototypes.instance().isEnabled('inDevToolsFloaty')) {
|
|
178
174
|
return;
|
|
179
175
|
}
|
|
180
176
|
Floaty.instance().open();
|
|
181
177
|
}
|
|
182
178
|
|
|
183
179
|
export function onFloatyContextDelete(context: FloatyContextSelection): void {
|
|
184
|
-
if (!
|
|
180
|
+
if (!GreenDev.Prototypes.instance().isEnabled('inDevToolsFloaty')) {
|
|
185
181
|
return;
|
|
186
182
|
}
|
|
187
183
|
Floaty.instance().deleteContext(context);
|
|
@@ -194,7 +190,7 @@ export function onFloatyContextDelete(context: FloatyContextSelection): void {
|
|
|
194
190
|
* click behaviour.
|
|
195
191
|
*/
|
|
196
192
|
export function onFloatyClick(input: FloatyClickInput): boolean {
|
|
197
|
-
if (!
|
|
193
|
+
if (!GreenDev.Prototypes.instance().isEnabled('inDevToolsFloaty')) {
|
|
198
194
|
return false;
|
|
199
195
|
}
|
|
200
196
|
const floaty = Floaty.instance();
|
|
@@ -8,6 +8,7 @@ import * as Host from '../../core/host/host.js';
|
|
|
8
8
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
9
9
|
import * as Root from '../../core/root/root.js';
|
|
10
10
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
|
+
import * as GreenDev from '../../models/greendev/greendev.js';
|
|
11
12
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
12
13
|
import {createIcon, type Icon} from '../kit/kit.js';
|
|
13
14
|
import * as VisualLogging from '../visual_logging/visual_logging.js';
|
|
@@ -375,7 +376,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
|
|
|
375
376
|
DockControllerEvents.DOCK_SIDE_CHANGED, this.#applyDrawerOrientationForDockSide, this);
|
|
376
377
|
this.#applyDrawerOrientationForDockSide();
|
|
377
378
|
|
|
378
|
-
if (
|
|
379
|
+
if (GreenDev.Prototypes.instance().isEnabled('inDevToolsFloaty')) {
|
|
379
380
|
Floaty.instance({
|
|
380
381
|
forceNew: true,
|
|
381
382
|
document: this.element.ownerDocument,
|
|
@@ -13,6 +13,11 @@ import reportViewStyles from './reportView.css.js';
|
|
|
13
13
|
import type {Toolbar} from './Toolbar.js';
|
|
14
14
|
import {Tooltip} from './Tooltip.js';
|
|
15
15
|
import {VBox} from './Widget.js';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Please consider using the web component version of this widget
|
|
19
|
+
* (`ui/components/report_view/ReportView.ts`) for new code.
|
|
20
|
+
*/
|
|
16
21
|
export class ReportView extends VBox {
|
|
17
22
|
private readonly contentBox: HTMLElement;
|
|
18
23
|
private headerElement: HTMLElement;
|
|
@@ -225,8 +230,4 @@ export class Section extends VBox {
|
|
|
225
230
|
ARIAUtils.markAsGroup(this.fieldList);
|
|
226
231
|
ARIAUtils.setLabel(this.fieldList, this.title());
|
|
227
232
|
}
|
|
228
|
-
|
|
229
|
-
setIconMasked(masked: boolean): void {
|
|
230
|
-
this.element.classList.toggle('show-mask', masked);
|
|
231
|
-
}
|
|
232
233
|
}
|
|
@@ -247,6 +247,13 @@ export class WidgetElement<WidgetT extends Widget> extends HTMLElement {
|
|
|
247
247
|
};
|
|
248
248
|
return clone;
|
|
249
249
|
}
|
|
250
|
+
|
|
251
|
+
override focus(): void {
|
|
252
|
+
const widget = Widget.get(this);
|
|
253
|
+
if (widget) {
|
|
254
|
+
widget.focus();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
250
257
|
}
|
|
251
258
|
|
|
252
259
|
customElements.define('devtools-widget', WidgetElement);
|
|
@@ -1513,7 +1513,6 @@ export class FlameChart extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
1515
|
#handleFlameChartTransformEvent(event: KeyboardEvent): void {
|
|
1516
|
-
// TODO(crbug.com/1469887): Indicate Shortcuts to the user when the designs are complete.
|
|
1517
1516
|
if (this.selectedEntryIndex === -1) {
|
|
1518
1517
|
return;
|
|
1519
1518
|
}
|
|
@@ -123,30 +123,6 @@
|
|
|
123
123
|
user-select: text;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.image-wrapper,
|
|
127
|
-
.image-wrapper img {
|
|
128
|
-
max-width: 200px;
|
|
129
|
-
max-height: 200px;
|
|
130
|
-
display: block;
|
|
131
|
-
object-fit: contain;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.image-wrapper {
|
|
135
|
-
height: fit-content;
|
|
136
|
-
margin-right: 8px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.show-mask img {
|
|
140
|
-
/* The safe zone is a centrally positioned circle, with radius 2/5
|
|
141
|
-
* (40%) of the minimum of the icon's width and height.
|
|
142
|
-
* https://w3c.github.io/manifest/#icon-masks */
|
|
143
|
-
clip-path: circle(40% at 50% 50%);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.show-mask .image-wrapper {
|
|
147
|
-
background: var(--image-file-checker);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
126
|
@media (forced-colors: active) {
|
|
151
127
|
.report-field-value .inline-icon {
|
|
152
128
|
color: ButtonText;
|
|
@@ -1742,6 +1742,11 @@ export const knownContextValues = new Set([
|
|
|
1742
1742
|
'gotpointercapture',
|
|
1743
1743
|
'grace-period-link',
|
|
1744
1744
|
'grace-period-mitigation-disabled',
|
|
1745
|
+
'greendev-ai-annotations-enabled',
|
|
1746
|
+
'greendev-artifact-viewer-enabled',
|
|
1747
|
+
'greendev-in-devtools-floaty-enabled',
|
|
1748
|
+
'greendev-inline-widgets-enabled',
|
|
1749
|
+
'greendev-prototypes',
|
|
1745
1750
|
'grid',
|
|
1746
1751
|
'grid-align',
|
|
1747
1752
|
'grid-area',
|
|
@@ -3234,6 +3239,7 @@ export const knownContextValues = new Set([
|
|
|
3234
3239
|
'screen',
|
|
3235
3240
|
'screen-rotation',
|
|
3236
3241
|
'screencast-enabled',
|
|
3242
|
+
'screenshots',
|
|
3237
3243
|
'script',
|
|
3238
3244
|
'script-blocked-by-csp',
|
|
3239
3245
|
'script-first-statement',
|
|
@@ -4196,6 +4202,7 @@ export const knownContextValues = new Set([
|
|
|
4196
4202
|
'width',
|
|
4197
4203
|
'will-change',
|
|
4198
4204
|
'window',
|
|
4205
|
+
'window-controls',
|
|
4199
4206
|
'window-controls-overlay',
|
|
4200
4207
|
'windows',
|
|
4201
4208
|
'word-break',
|
package/package.json
CHANGED