chrome-devtools-frontend 1.0.1573331 → 1.0.1574367
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/Images/src/account-tree.svg +10 -1
- package/front_end/Images/src/arrow-right-circle.svg +2 -7
- package/front_end/Images/src/center-focus-weak.svg +3 -1
- package/front_end/Images/src/dog-paw.svg +10 -3
- package/front_end/Images/src/group.svg +3 -1
- package/front_end/Images/src/home.svg +3 -1
- package/front_end/Images/src/spark-info.svg +3 -3
- package/front_end/Images/src/spark.svg +2 -9
- package/front_end/core/sdk/AnimationModel.ts +0 -6
- package/front_end/devtools_compatibility.js +16 -1
- package/front_end/entrypoints/main/GlobalAiButton.ts +18 -3
- package/front_end/generated/InspectorBackendCommands.ts +6 -4
- package/front_end/generated/SupportedCSSProperties.js +17 -4
- package/front_end/generated/protocol-mapping.d.ts +2 -0
- package/front_end/generated/protocol-proxy-api.d.ts +2 -0
- package/front_end/generated/protocol.ts +37 -7
- package/front_end/models/ai_assistance/AiUtils.ts +8 -0
- package/front_end/models/issues_manager/CorsIssue.ts +4 -44
- package/front_end/models/logs/NetworkLog.ts +0 -9
- package/front_end/panels/ai_assistance/PatchWidget.ts +2 -1
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +34 -13
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +3 -1
- package/front_end/panels/ai_assistance/components/ChatView.ts +20 -3
- package/front_end/panels/ai_assistance/components/chatView.css +20 -0
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +3 -1
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +1 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +2 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +3 -1
- package/front_end/panels/issues/CorsIssueDetailsView.ts +0 -46
- package/front_end/panels/network/NetworkDataGridNode.ts +3 -1
- package/front_end/panels/profiler/HeapDetachedElementsView.ts +0 -5
- package/front_end/panels/profiler/HeapProfileView.ts +0 -6
- package/front_end/panels/profiler/HeapSnapshotView.ts +0 -14
- package/front_end/panels/settings/AISettingsTab.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +3 -1
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +2 -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/README.md +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.d.ts +3 -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 +53 -55
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js +25 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts +7 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/Page.js +2 -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 +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +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.d.ts +7 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +21 -8
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.d.ts +6 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.js +5 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.d.ts +3 -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 +54 -56
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js +25 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/bidi/core/BrowsingContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts +7 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Accessibility.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/Page.js +2 -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 +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.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/lib/types.d.ts +7 -1
- package/front_end/third_party/puppeteer/package/package.json +5 -5
- package/front_end/third_party/puppeteer/package/src/api/HTTPResponse.ts +7 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Page.ts +62 -71
- package/front_end/third_party/puppeteer/package/src/bidi/core/BrowsingContext.ts +29 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Accessibility.ts +12 -1
- package/front_end/third_party/puppeteer/package/src/cdp/BrowserContext.ts +2 -0
- package/front_end/third_party/puppeteer/package/src/cdp/Page.ts +2 -0
- 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/ui/components/buttons/Button.ts +26 -14
- package/front_end/ui/components/buttons/FloatingButton.ts +7 -3
- package/front_end/ui/components/buttons/floatingButton.css +44 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/package.json +3 -2
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
10
|
export const PUPPETEER_REVISIONS = Object.freeze({
|
|
11
|
-
chrome: '
|
|
12
|
-
'chrome-headless-shell': '
|
|
13
|
-
firefox: '
|
|
11
|
+
chrome: '144.0.7559.96',
|
|
12
|
+
'chrome-headless-shell': '144.0.7559.96',
|
|
13
|
+
firefox: 'stable_147.0.1',
|
|
14
14
|
});
|
|
@@ -56,17 +56,12 @@ interface ButtonState {
|
|
|
56
56
|
spinner?: boolean;
|
|
57
57
|
type: ButtonType;
|
|
58
58
|
value?: string;
|
|
59
|
-
title?: string;
|
|
60
59
|
iconName?: string;
|
|
61
60
|
toggledIconName?: string;
|
|
62
61
|
toggleType?: ToggleType;
|
|
63
62
|
jslogContext?: string;
|
|
64
63
|
longClickable?: boolean;
|
|
65
64
|
inverseColorTheme?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Sets aria-label on the internal <button> element.
|
|
68
|
-
*/
|
|
69
|
-
accessibleLabel?: string;
|
|
70
65
|
}
|
|
71
66
|
|
|
72
67
|
interface CommonButtonData {
|
|
@@ -151,9 +146,6 @@ export class Button extends HTMLElement {
|
|
|
151
146
|
if ('size' in data && data.size) {
|
|
152
147
|
this.#props.size = data.size;
|
|
153
148
|
}
|
|
154
|
-
if (data.accessibleLabel) {
|
|
155
|
-
this.#props.accessibleLabel = data.accessibleLabel;
|
|
156
|
-
}
|
|
157
149
|
|
|
158
150
|
this.#props.active = Boolean(data.active);
|
|
159
151
|
this.#props.spinner = Boolean('spinner' in data ? data.spinner : false);
|
|
@@ -166,7 +158,14 @@ export class Button extends HTMLElement {
|
|
|
166
158
|
this.#props.toggleType = data.toggleType;
|
|
167
159
|
this.#props.checked = data.checked;
|
|
168
160
|
this.#props.disabled = Boolean(data.disabled);
|
|
169
|
-
|
|
161
|
+
if (data.title) {
|
|
162
|
+
this.title = data.title;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (data.accessibleLabel) {
|
|
166
|
+
this.accessibleLabel = data.accessibleLabel;
|
|
167
|
+
}
|
|
168
|
+
|
|
170
169
|
this.#props.jslogContext = data.jslogContext;
|
|
171
170
|
this.#props.longClickable = data.longClickable;
|
|
172
171
|
this.#props.inverseColorTheme = data.inverseColorTheme;
|
|
@@ -198,11 +197,20 @@ export class Button extends HTMLElement {
|
|
|
198
197
|
this.#render();
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
set accessibleLabel(label: string) {
|
|
202
|
-
|
|
200
|
+
set accessibleLabel(label: string|undefined) {
|
|
201
|
+
if (label) {
|
|
202
|
+
this.setAttribute('accessibleLabel', label);
|
|
203
|
+
} else {
|
|
204
|
+
this.removeAttribute('accessibleLabel');
|
|
205
|
+
}
|
|
206
|
+
|
|
203
207
|
this.#render();
|
|
204
208
|
}
|
|
205
209
|
|
|
210
|
+
get accessibleLabel(): string|undefined {
|
|
211
|
+
return this.getAttribute('accessibleLabel') || undefined;
|
|
212
|
+
}
|
|
213
|
+
|
|
206
214
|
set reducedFocusRing(reducedFocusRing: boolean) {
|
|
207
215
|
this.#props.reducedFocusRing = reducedFocusRing;
|
|
208
216
|
this.#render();
|
|
@@ -213,8 +221,12 @@ export class Button extends HTMLElement {
|
|
|
213
221
|
this.#render();
|
|
214
222
|
}
|
|
215
223
|
|
|
224
|
+
override get title(): string {
|
|
225
|
+
return super.title;
|
|
226
|
+
}
|
|
227
|
+
|
|
216
228
|
override set title(title: string) {
|
|
217
|
-
|
|
229
|
+
super.title = title;
|
|
218
230
|
this.#render();
|
|
219
231
|
}
|
|
220
232
|
|
|
@@ -369,11 +381,11 @@ export class Button extends HTMLElement {
|
|
|
369
381
|
Lit.render(
|
|
370
382
|
html`
|
|
371
383
|
<style>${buttonStyles}</style>
|
|
372
|
-
<button title=${ifDefined(this
|
|
384
|
+
<button title=${ifDefined(this.title || undefined)}
|
|
373
385
|
?disabled=${this.#props.disabled}
|
|
374
386
|
class=${classMap(classes)}
|
|
375
387
|
aria-pressed=${ifDefined(this.#props.toggled)}
|
|
376
|
-
aria-label=${ifDefined(this
|
|
388
|
+
aria-label=${ifDefined(this.accessibleLabel || this.title || undefined)}
|
|
377
389
|
jslog=${ifDefined(jslog)}>
|
|
378
390
|
${hasIcon ? html`
|
|
379
391
|
<devtools-icon name=${ifDefined(this.#props.toggled ? this.#props.toggledIconName : this.#props.iconName)}>
|
|
@@ -9,7 +9,7 @@ import * as Lit from '../../lit/lit.js';
|
|
|
9
9
|
|
|
10
10
|
import floatingButtonStyles from './floatingButton.css.js';
|
|
11
11
|
|
|
12
|
-
const {html} = Lit;
|
|
12
|
+
const {html, Directives: {classMap}} = Lit;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* A simple floating button component, primarily used to display the 'Ask AI!'
|
|
@@ -19,7 +19,7 @@ const {html} = Lit;
|
|
|
19
19
|
*
|
|
20
20
|
* ```js
|
|
21
21
|
* // Instantiate programmatically via the `create()` helper:
|
|
22
|
-
* const button = Buttons.FloatingButton.create(
|
|
22
|
+
* const button = Buttons.FloatingButton.create(AiAssistance.AiUtils.getIconName(), 'Ask AI!');
|
|
23
23
|
*
|
|
24
24
|
* // Use within a template:
|
|
25
25
|
* html`
|
|
@@ -96,10 +96,14 @@ export class FloatingButton extends HTMLElement {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
#render(): void {
|
|
99
|
+
const classes = classMap({
|
|
100
|
+
gemini: this.iconName === 'spark',
|
|
101
|
+
});
|
|
102
|
+
|
|
99
103
|
// clang-format off
|
|
100
104
|
Lit.render(html`
|
|
101
105
|
<style>${floatingButtonStyles}</style>
|
|
102
|
-
<button><devtools-icon .name=${this.iconName}></devtools-icon></button>`,
|
|
106
|
+
<button class=${classes}><devtools-icon .name=${this.iconName}></devtools-icon></button>`,
|
|
103
107
|
this.#shadow, {host: this});
|
|
104
108
|
// clang-format on
|
|
105
109
|
}
|
|
@@ -72,3 +72,47 @@ button {
|
|
|
72
72
|
color: var(--sys-color-state-disabled);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
|
|
76
|
+
.gemini {
|
|
77
|
+
display: flex;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
align-items: center;
|
|
80
|
+
width: var(--sys-size-9);
|
|
81
|
+
height: var(--sys-size-9);
|
|
82
|
+
border-radius: var(--sys-shape-corner-full);
|
|
83
|
+
background-image: var(--app-gradient-google-ai);
|
|
84
|
+
font: var(--sys-typescale-body4-medium);
|
|
85
|
+
color: var(--ref-palette-neutral100);
|
|
86
|
+
transition: width 1s, padding 1s;
|
|
87
|
+
margin-left: auto;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
position: relative;
|
|
90
|
+
border: 0;
|
|
91
|
+
|
|
92
|
+
&:focus-visible {
|
|
93
|
+
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:hover::after,
|
|
97
|
+
&:active::after {
|
|
98
|
+
content: "";
|
|
99
|
+
height: 100%;
|
|
100
|
+
width: 100%;
|
|
101
|
+
border-radius: inherit;
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 0;
|
|
104
|
+
left: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:hover::after {
|
|
108
|
+
background-color: var(--sys-color-state-hover-on-prominent);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:active::after {
|
|
112
|
+
background-color: var(--sys-color-state-ripple-primary);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
devtools-icon {
|
|
116
|
+
color: var(--ref-palette-neutral100) !important; /* stylelint-disable-line declaration-no-important */
|
|
117
|
+
}
|
|
118
|
+
}
|
package/package.json
CHANGED
|
@@ -93,7 +93,8 @@
|
|
|
93
93
|
"typescript-eslint": "8.47.0",
|
|
94
94
|
"uuid": "13.0.0",
|
|
95
95
|
"webidl2": "24.5.0",
|
|
96
|
-
"yargs": "17.7.2"
|
|
96
|
+
"yargs": "17.7.2",
|
|
97
|
+
"js-rouge": "3.2.0"
|
|
97
98
|
},
|
|
98
99
|
"overrides": {
|
|
99
100
|
"@typescript-eslint/types": "8.47.0",
|
|
@@ -104,5 +105,5 @@
|
|
|
104
105
|
"flat-cache": "6.1.12"
|
|
105
106
|
}
|
|
106
107
|
},
|
|
107
|
-
"version": "1.0.
|
|
108
|
+
"version": "1.0.1574367"
|
|
108
109
|
}
|