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.
Files changed (94) hide show
  1. package/front_end/core/common/Console.ts +6 -6
  2. package/front_end/core/common/Settings.ts +12 -8
  3. package/front_end/core/root/DevToolsContext.ts +13 -7
  4. package/front_end/core/sdk/CPUThrottlingManager.ts +12 -9
  5. package/front_end/core/sdk/FrameManager.ts +7 -8
  6. package/front_end/entrypoints/greendev_floaty/FloatyEntrypoint.ts +1 -1
  7. package/front_end/entrypoints/main/MainImpl.ts +1 -2
  8. package/front_end/foundation/Universe.ts +22 -11
  9. package/front_end/generated/InspectorBackendCommands.ts +7 -0
  10. package/front_end/generated/protocol-mapping.d.ts +16 -0
  11. package/front_end/generated/protocol-proxy-api.d.ts +25 -0
  12. package/front_end/generated/protocol.ts +71 -0
  13. package/front_end/models/ai_assistance/AiConversation.ts +6 -95
  14. package/front_end/models/ai_assistance/agents/AiAgent.ts +11 -1
  15. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +14 -0
  16. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -0
  17. package/front_end/panels/ai_assistance/components/ChatMessage.ts +25 -4
  18. package/front_end/panels/ai_assistance/components/WalkthroughView.ts +2 -2
  19. package/front_end/panels/elements/StandaloneStylesContainer.ts +48 -12
  20. package/front_end/panels/elements/StylePropertiesSection.ts +97 -1
  21. package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -0
  22. package/front_end/panels/elements/StylesContainer.ts +1 -0
  23. package/front_end/panels/elements/StylesSidebarPane.ts +48 -32
  24. package/front_end/panels/elements/stylePropertiesTreeOutline.css +1 -1
  25. package/front_end/panels/lighthouse/LighthouseController.ts +13 -5
  26. package/front_end/panels/lighthouse/LighthousePanel.ts +22 -5
  27. package/front_end/panels/recorder/components/StepView.ts +0 -2
  28. package/front_end/panels/recorder/components/stepView.css +13 -13
  29. package/front_end/panels/recorder/components/timelineSection.css +6 -7
  30. package/front_end/panels/timeline/TimelinePanel.ts +18 -0
  31. package/front_end/panels/timeline/components/CWVMetrics.ts +339 -0
  32. package/front_end/panels/timeline/components/Sidebar.ts +17 -0
  33. package/front_end/panels/timeline/components/SidebarInsightsTab.ts +10 -0
  34. package/front_end/panels/timeline/components/SidebarSingleInsightSet.ts +25 -267
  35. package/front_end/panels/timeline/components/components.ts +2 -0
  36. package/front_end/panels/timeline/components/cwvMetrics.css +107 -0
  37. package/front_end/panels/timeline/components/sidebarSingleInsightSet.css +0 -102
  38. package/front_end/panels/timeline/timeline-meta.ts +11 -0
  39. package/front_end/panels/timeline/utils/Helpers.ts +5 -1
  40. package/front_end/third_party/chromium/README.chromium +1 -1
  41. package/front_end/third_party/puppeteer/README.chromium +2 -2
  42. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +7 -0
  43. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -1
  44. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -1
  45. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +1 -0
  46. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts.map +1 -1
  47. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js +3 -0
  48. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
  49. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts +1 -0
  50. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.d.ts.map +1 -1
  51. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js +6 -0
  52. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Browser.js.map +1 -1
  53. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts +1 -0
  54. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
  55. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +5 -0
  56. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js.map +1 -1
  57. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +1 -1
  58. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +2 -2
  59. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +2 -2
  60. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/Mutex.d.ts +2 -2
  61. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  62. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  63. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +7 -0
  64. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +14 -3
  65. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +7 -0
  66. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -1
  67. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -1
  68. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +1 -0
  69. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts.map +1 -1
  70. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js +3 -0
  71. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
  72. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts +1 -0
  73. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.d.ts.map +1 -1
  74. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js +6 -0
  75. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Browser.js.map +1 -1
  76. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts +1 -0
  77. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
  78. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +5 -0
  79. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js.map +1 -1
  80. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +2 -2
  81. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +2 -2
  82. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  83. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  84. package/front_end/third_party/puppeteer/package/lib/types.d.ts +7 -0
  85. package/front_end/third_party/puppeteer/package/package.json +1 -1
  86. package/front_end/third_party/puppeteer/package/src/api/Page.ts +8 -0
  87. package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +4 -0
  88. package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +7 -0
  89. package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +6 -0
  90. package/front_end/third_party/puppeteer/package/src/revisions.ts +2 -2
  91. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  92. package/front_end/ui/components/text_editor/AutocompleteHistory.ts +89 -5
  93. package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
  94. 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: string): string|undefined {
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
- ++this.#historyOffset;
87
- return this.#currentHistoryItem();
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: string): string|undefined {
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
- --this.#historyOffset;
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
 
@@ -2453,6 +2453,7 @@ export const knownContextValues = new Set([
2453
2453
  'lighthouse.enable-sampling',
2454
2454
  'lighthouse.end-time-span',
2455
2455
  'lighthouse.mode',
2456
+ 'lighthouse.record',
2456
2457
  'lighthouse.start',
2457
2458
  'lighthouse.throttling',
2458
2459
  'lighting-color',
package/package.json CHANGED
@@ -105,5 +105,5 @@
105
105
  "flat-cache": "6.1.12"
106
106
  }
107
107
  },
108
- "version": "1.0.1596260"
108
+ "version": "1.0.1596535"
109
109
  }