chrome-devtools-frontend 1.0.1596260 → 1.0.1596535
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/core/common/Console.ts +6 -6
- package/front_end/core/common/Settings.ts +12 -8
- package/front_end/core/root/DevToolsContext.ts +13 -7
- package/front_end/core/sdk/CPUThrottlingManager.ts +12 -9
- package/front_end/core/sdk/FrameManager.ts +7 -8
- package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +1 -2
- package/front_end/foundation/Universe.ts +22 -11
- package/front_end/generated/InspectorBackendCommands.ts +7 -0
- package/front_end/generated/protocol-mapping.d.ts +16 -0
- package/front_end/generated/protocol-proxy-api.d.ts +25 -0
- package/front_end/generated/protocol.ts +71 -0
- package/front_end/models/ai_assistance/AiConversation.ts +6 -95
- package/front_end/models/ai_assistance/agents/AiAgent.ts +11 -1
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +14 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -0
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +25 -4
- package/front_end/panels/ai_assistance/components/WalkthroughView.ts +2 -2
- package/front_end/panels/elements/StandaloneStylesContainer.ts +48 -12
- package/front_end/panels/elements/StylePropertiesSection.ts +97 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -0
- package/front_end/panels/elements/StylesContainer.ts +1 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +48 -32
- package/front_end/panels/elements/stylePropertiesTreeOutline.css +1 -1
- package/front_end/panels/lighthouse/LighthouseController.ts +13 -5
- package/front_end/panels/lighthouse/LighthousePanel.ts +22 -5
- package/front_end/panels/recorder/components/StepView.ts +0 -2
- package/front_end/panels/recorder/components/stepView.css +13 -13
- package/front_end/panels/recorder/components/timelineSection.css +6 -7
- package/front_end/panels/timeline/TimelinePanel.ts +18 -0
- package/front_end/panels/timeline/components/CWVMetrics.ts +339 -0
- package/front_end/panels/timeline/components/Sidebar.ts +17 -0
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +10 -0
- package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +25 -267
- package/front_end/panels/timeline/components/components.ts +2 -0
- package/front_end/panels/timeline/components/cwvMetrics.css +107 -0
- package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +0 -102
- package/front_end/panels/timeline/timeline-meta.ts +11 -0
- package/front_end/panels/timeline/utils/Helpers.ts +5 -1
- 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/Page.d.ts +7 -0
- 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/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +2 -2
- 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.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +14 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +7 -0
- 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/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +6 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +2 -2
- 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/lib/types.d.ts +7 -0
- package/front_end/third_party/puppeteer/package/package.json +1 -1
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +8 -0
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +4 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +7 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +6 -0
- package/front_end/third_party/puppeteer/package/src/revisions.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/text_editor/AutocompleteHistory.ts +89 -5
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/package.json +1 -1
|
@@ -26,6 +26,18 @@ export class AutocompleteHistory {
|
|
|
26
26
|
*/
|
|
27
27
|
#editedEntries = new Map<number, string>();
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* The prefix used for filtering history during navigation (zsh-style).
|
|
31
|
+
* Set on first navigation when user has typed something.
|
|
32
|
+
*/
|
|
33
|
+
#searchPrefix = '';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Stack of history indices visited during filtered navigation.
|
|
37
|
+
* Used to navigate forward through the same filtered entries.
|
|
38
|
+
*/
|
|
39
|
+
#filteredIndices: number[] = [];
|
|
40
|
+
|
|
29
41
|
/**
|
|
30
42
|
* Creates a new settings-backed history. The class assumes it has sole
|
|
31
43
|
* ownership of the setting.
|
|
@@ -40,6 +52,8 @@ export class AutocompleteHistory {
|
|
|
40
52
|
this.#setting.set([]);
|
|
41
53
|
this.#historyOffset = 1;
|
|
42
54
|
this.#editedEntries.clear();
|
|
55
|
+
this.#searchPrefix = '';
|
|
56
|
+
this.#filteredIndices = [];
|
|
43
57
|
}
|
|
44
58
|
|
|
45
59
|
length(): number {
|
|
@@ -57,6 +71,8 @@ export class AutocompleteHistory {
|
|
|
57
71
|
|
|
58
72
|
this.#historyOffset = 1;
|
|
59
73
|
this.#editedEntries.clear();
|
|
74
|
+
this.#searchPrefix = '';
|
|
75
|
+
this.#filteredIndices = [];
|
|
60
76
|
if (text !== this.#currentHistoryItem()) {
|
|
61
77
|
this.#data.push(text);
|
|
62
78
|
}
|
|
@@ -74,17 +90,64 @@ export class AutocompleteHistory {
|
|
|
74
90
|
this.#data.push(currentText);
|
|
75
91
|
}
|
|
76
92
|
|
|
77
|
-
previous(currentText
|
|
93
|
+
previous(currentText?: string): string|undefined {
|
|
78
94
|
if (this.#historyOffset > this.#data.length) {
|
|
79
95
|
return undefined;
|
|
80
96
|
}
|
|
97
|
+
currentText = currentText ?? '';
|
|
81
98
|
if (this.#historyOffset === 1) {
|
|
82
99
|
this.#pushCurrentText(currentText);
|
|
100
|
+
|
|
101
|
+
this.#filteredIndices = [];
|
|
102
|
+
this.#searchPrefix = currentText;
|
|
83
103
|
} else {
|
|
104
|
+
// Save edits made to history entries at non-uncommitted positions.
|
|
105
|
+
// #saveCurrentEdit() compares against #currentHistoryItem() and no-ops for
|
|
106
|
+
// pure navigation.
|
|
84
107
|
this.#saveCurrentEdit(currentText);
|
|
85
108
|
}
|
|
86
|
-
|
|
87
|
-
|
|
109
|
+
|
|
110
|
+
// If no prefix filter, use simple sequential navigation
|
|
111
|
+
if (this.#searchPrefix.length === 0) {
|
|
112
|
+
++this.#historyOffset;
|
|
113
|
+
return this.#currentHistoryItem();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Find the next matching entry for prefix-filtered navigation
|
|
117
|
+
const result = this.#findNextMatch();
|
|
118
|
+
|
|
119
|
+
if (!result) {
|
|
120
|
+
// On initial navigation with a non-empty prefix and no matches, fall back to
|
|
121
|
+
// unfiltered history navigation.
|
|
122
|
+
if (this.#historyOffset === 1) {
|
|
123
|
+
this.#searchPrefix = '';
|
|
124
|
+
++this.#historyOffset;
|
|
125
|
+
return this.#currentHistoryItem();
|
|
126
|
+
}
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
this.#filteredIndices.push(result.index);
|
|
131
|
+
this.#historyOffset = this.#data.length - result.index;
|
|
132
|
+
return result.value;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Finds the next history entry that matches the search prefix.
|
|
137
|
+
* Returns undefined if no more matches are found.
|
|
138
|
+
*/
|
|
139
|
+
#findNextMatch(): {index: number, value: string}|undefined {
|
|
140
|
+
// Start searching from the current position
|
|
141
|
+
const startIndex = this.#data.length - this.#historyOffset - 1;
|
|
142
|
+
|
|
143
|
+
for (let i = startIndex; i >= 0; --i) {
|
|
144
|
+
const storedValue = this.#data[i];
|
|
145
|
+
if (storedValue.startsWith(this.#searchPrefix)) {
|
|
146
|
+
const value = this.#editedEntries.get(i) ?? storedValue;
|
|
147
|
+
return {index: i, value};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return undefined;
|
|
88
151
|
}
|
|
89
152
|
|
|
90
153
|
/**
|
|
@@ -107,12 +170,33 @@ export class AutocompleteHistory {
|
|
|
107
170
|
}
|
|
108
171
|
}
|
|
109
172
|
|
|
110
|
-
next(currentText
|
|
173
|
+
next(currentText?: string): string|undefined {
|
|
111
174
|
if (this.#historyOffset === 1) {
|
|
112
175
|
return undefined;
|
|
113
176
|
}
|
|
177
|
+
|
|
178
|
+
currentText = currentText ?? this.#currentHistoryItem() ?? '';
|
|
179
|
+
|
|
114
180
|
this.#saveCurrentEdit(currentText);
|
|
115
|
-
|
|
181
|
+
|
|
182
|
+
// If no prefix filter was used, use simple sequential navigation
|
|
183
|
+
if (this.#searchPrefix.length === 0) {
|
|
184
|
+
--this.#historyOffset;
|
|
185
|
+
return this.#currentHistoryItem();
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Pop the current position from the filtered indices stack
|
|
189
|
+
this.#filteredIndices.pop();
|
|
190
|
+
|
|
191
|
+
if (this.#filteredIndices.length === 0) {
|
|
192
|
+
// No more filtered entries - return to the uncommitted text
|
|
193
|
+
this.#historyOffset = 1;
|
|
194
|
+
return this.#currentHistoryItem();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Move to the previous filtered position
|
|
198
|
+
const prevIndex = this.#filteredIndices[this.#filteredIndices.length - 1];
|
|
199
|
+
this.#historyOffset = this.#data.length - prevIndex;
|
|
116
200
|
return this.#currentHistoryItem();
|
|
117
201
|
}
|
|
118
202
|
|
package/package.json
CHANGED