chrome-devtools-frontend 1.0.1553956 → 1.0.1555174

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.
@@ -4,68 +4,70 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
 
7
- :host {
8
- display: flex;
9
- flex-flow: column nowrap;
10
- flex-grow: 1;
11
- }
12
-
13
- .insight-sets-wrapper {
14
- display: flex;
15
- flex-flow: column nowrap;
16
- flex-grow: 1; /* so it fills the available vertical height in the sidebar */
17
-
18
- details {
19
- flex-grow: 0;
20
- }
21
-
22
- details[open] {
7
+ @scope to (devtools-widget > *) {
8
+ :host {
9
+ display: flex;
10
+ flex-flow: column nowrap;
23
11
  flex-grow: 1;
24
- border-bottom: 1px solid var(--sys-color-divider);
25
12
  }
26
13
 
27
- summary {
28
- background-color: var(--sys-color-surface2);
29
- border-bottom: 1px solid var(--sys-color-divider);
30
- overflow: hidden;
31
- padding: 2px 5px;
32
- text-overflow: ellipsis;
33
- white-space: nowrap;
34
- font: var(--sys-typescale-body4-medium);
14
+ .insight-sets-wrapper {
35
15
  display: flex;
36
- align-items: center;
16
+ flex-flow: column nowrap;
17
+ flex-grow: 1; /* so it fills the available vertical height in the sidebar */
37
18
 
38
- &:focus {
39
- background-color: var(--sys-color-tonal-container);
19
+ details {
20
+ flex-grow: 0;
40
21
  }
41
22
 
42
- &::marker {
43
- color: var(--sys-color-on-surface-subtle);
44
- font-size: 11px;
45
- line-height: 1;
23
+ details[open] {
24
+ flex-grow: 1;
25
+ border-bottom: 1px solid var(--sys-color-divider);
46
26
  }
47
27
 
48
- /* make sure the first summary has a top border */
49
- details:first-child & {
50
- border-top: 1px solid var(--sys-color-divider);
28
+ summary {
29
+ background-color: var(--sys-color-surface2);
30
+ border-bottom: 1px solid var(--sys-color-divider);
31
+ overflow: hidden;
32
+ padding: 2px 5px;
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ font: var(--sys-typescale-body4-medium);
36
+ display: flex;
37
+ align-items: center;
38
+
39
+ &:focus {
40
+ background-color: var(--sys-color-tonal-container);
41
+ }
42
+
43
+ &::marker {
44
+ color: var(--sys-color-on-surface-subtle);
45
+ font-size: 11px;
46
+ line-height: 1;
47
+ }
48
+
49
+ /* make sure the first summary has a top border */
50
+ details:first-child & {
51
+ border-top: 1px solid var(--sys-color-divider);
52
+ }
51
53
  }
52
54
  }
53
- }
54
-
55
- .zoom-button {
56
- margin-left: auto;
57
- }
58
55
 
59
- .zoom-icon {
60
- visibility: hidden;
56
+ .zoom-button {
57
+ margin-left: auto;
58
+ }
61
59
 
62
- &.active devtools-button {
63
- visibility: visible;
60
+ .zoom-icon {
61
+ visibility: hidden;
62
+
63
+ &.active devtools-button {
64
+ visibility: visible;
65
+ }
64
66
  }
65
- }
66
67
 
67
- .dropdown-icon {
68
- &.active devtools-button {
69
- transform: rotate(90deg);
68
+ .dropdown-icon {
69
+ &.active devtools-button {
70
+ transform: rotate(90deg);
71
+ }
70
72
  }
71
73
  }
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: https://chromium.googlesource.com/chromium/src
3
3
  Version: N/A
4
- Revision: 0f255732c24a64c7d64af50a8f1624c4c15d7d86
4
+ Revision: b5f7f1049c1c66374a70dc4e9110c063c9c66aea
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -5,7 +5,7 @@
5
5
 
6
6
  import '../tooltips/tooltips.js';
7
7
  import './SettingDeprecationWarning.js';
8
- import '../../legacy/legacy.js';
8
+ import '../../kit/kit.js';
9
9
 
10
10
  import type * as Common from '../../../core/common/common.js';
11
11
  import * as Host from '../../../core/host/host.js';
@@ -90,13 +90,11 @@ export class SettingCheckbox extends HTMLElement {
90
90
  <devtools-tooltip id=${id} variant="rich">
91
91
  <span>${learnMore.tooltip()}</span><br />
92
92
  ${url
93
- ? html`<x-link
93
+ ? html`<devtools-link
94
94
  href=${url}
95
95
  class="link"
96
- jslog=${VisualLogging.link(jsLogContext).track({
97
- click: true,
98
- })}
99
- >${i18nString(UIStrings.learnMore)}</x-link
96
+ .jslogContext=${jsLogContext}
97
+ >${i18nString(UIStrings.learnMore)}</devtools-link
100
98
  >`
101
99
  : Lit.nothing}
102
100
  </devtools-tooltip>
@@ -1203,11 +1203,21 @@ export class TabbedPaneTab {
1203
1203
  if (!this.#tabElement) {
1204
1204
  return;
1205
1205
  }
1206
- const iconElement = this.#tabElement.querySelector('.ai-icon');
1206
+ const iconElement = this.#tabElement.querySelector('.spark');
1207
1207
  if (iconVisible) {
1208
1208
  if (!iconElement) {
1209
- const closeButton = this.#tabElement.querySelector('.close-button');
1210
- this.#tabElement.insertBefore(this.createTabAnnotationIcon(), closeButton);
1209
+ const spark = this.createTabAnnotationIcon();
1210
+ this.#tabElement.appendChild(spark);
1211
+
1212
+ const parentRect = this.#tabElement.parentElement?.getBoundingClientRect();
1213
+ if (!parentRect) {
1214
+ return;
1215
+ }
1216
+ const containerRect = this.tabElement.getBoundingClientRect();
1217
+ const iconWidth = spark.getBoundingClientRect().width;
1218
+ // Position the icon so that its right edge is at the container's right edge.
1219
+ const x = containerRect.x - parentRect.x + containerRect.width - iconWidth;
1220
+ (spark as HTMLElement).style.left = `${x}px`;
1211
1221
  }
1212
1222
  } else {
1213
1223
  iconElement?.remove();
@@ -1393,17 +1403,14 @@ export class TabbedPaneTab {
1393
1403
  return tabElement as HTMLElement;
1394
1404
  }
1395
1405
 
1396
- private createTabAnnotationIcon(): HTMLDivElement {
1397
- // TODO(finnur): Replace the ai-icon with the squiggly svg once it becomes available.
1398
- const iconContainer = document.createElement('div');
1399
- iconContainer.classList.add('ai-icon');
1406
+ private createTabAnnotationIcon(): Icon {
1400
1407
  const tabAnnotationIcon = new Icon();
1401
- tabAnnotationIcon.name = 'smart-assistant';
1408
+ tabAnnotationIcon.name = 'spark';
1402
1409
  tabAnnotationIcon.classList.add('small');
1403
- iconContainer.appendChild(tabAnnotationIcon);
1404
- iconContainer.setAttribute('title', i18nString(UIStrings.panelContainsAnnotation));
1405
- iconContainer.setAttribute('aria-label', i18nString(UIStrings.panelContainsAnnotation));
1406
- return iconContainer;
1410
+ tabAnnotationIcon.classList.add('spark');
1411
+ tabAnnotationIcon.setAttribute('title', i18nString(UIStrings.panelContainsAnnotation));
1412
+ tabAnnotationIcon.setAttribute('aria-label', i18nString(UIStrings.panelContainsAnnotation));
1413
+ return tabAnnotationIcon;
1407
1414
  }
1408
1415
 
1409
1416
  private createCloseIconButton(): Buttons.Button.Button {
@@ -998,9 +998,7 @@ export class Widget {
998
998
  * assert.isTrue(widget.someDataLoaded);
999
999
  * ```
1000
1000
  *
1001
- * @returns a promise that resolves to a `boolean` when the widget has finished
1002
- * updating, the value is `true` if there are no more pending updates,
1003
- * and `false` if the update cycle triggered another update.
1001
+ * @returns a promise that resolves when the widget has finished updating.
1004
1002
  */
1005
1003
  get updateComplete(): Promise<void> {
1006
1004
  return this.#updateComplete;
@@ -521,12 +521,9 @@
521
521
  }
522
522
  }
523
523
 
524
- .tabbed-pane-header-tab.ai .ai-icon {
525
- background-color: var(--sys-color-primary);
526
- border-radius: 50%;
527
- margin-left: 4px;
528
- }
524
+ .spark {
525
+ position: absolute;
526
+ top: 2px;
529
527
 
530
- .tabbed-pane-header-tab.ai .ai-icon devtools-icon {
531
- color: var(--sys-color-on-primary);
528
+ --icon-default: var(--sys-color-primary);
532
529
  }
@@ -4055,6 +4055,7 @@ export const knownContextValues = new Set([
4055
4055
  'translate',
4056
4056
  'transport',
4057
4057
  'tree',
4058
+ 'trigger-scope',
4058
4059
  'tritanopia',
4059
4060
  'trust-tokens',
4060
4061
  'trusted-type-violation',
package/package.json CHANGED
@@ -104,5 +104,5 @@
104
104
  "flat-cache": "6.1.12"
105
105
  }
106
106
  },
107
- "version": "1.0.1553956"
107
+ "version": "1.0.1555174"
108
108
  }