chrome-devtools-frontend 1.0.1611099 → 1.0.1611390

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.
@@ -360,7 +360,7 @@ function gcaCandidateToAidaGenerationSample(candidate: GCA.Candidate): AIDA.Gene
360
360
 
361
361
  function convertAidaFactsToGcaContent(facts: AIDA.RequestFact[]): GCA.Content {
362
362
  return {
363
- role: 'model',
363
+ role: 'user',
364
364
  parts: facts.map(fact => {
365
365
  return {text: `[source: ${fact.metadata.source}] ${fact.text}`};
366
366
  }),
@@ -204,6 +204,10 @@ const UIStringsNotTranslate = {
204
204
  * @description Title for the bottom up thread activity widget.
205
205
  */
206
206
  bottomUpTree: 'Bottom-up thread activity',
207
+ /**
208
+ * @description Accessilility label for the button that shows the walkthrough when there are no widgets in the walkthrough.
209
+ */
210
+ showThinking: 'Show thinking',
207
211
  } as const;
208
212
 
209
213
  export interface Step {
@@ -571,6 +575,14 @@ function renderWalkthroughSidebarButton(
571
575
  // We only apply the widget styling when loading is complete
572
576
  'has-widgets': hasOneStepWithWidget && !input.isLoading,
573
577
  });
578
+
579
+ let accessibleLabel = title;
580
+ if (!isExpanded) {
581
+ if (input.isLoading || lastStep.requestApproval) {
582
+ accessibleLabel = `${titleForStep(lastStep)} ${i18n.i18n.lockedString(UIStringsNotTranslate.showThinking)}`;
583
+ }
584
+ }
585
+
574
586
  // clang-format off
575
587
  return html`
576
588
  <div class=${toggleContainerClasses}>
@@ -581,6 +593,7 @@ function renderWalkthroughSidebarButton(
581
593
  .variant=${variant}
582
594
  .size=${Buttons.Button.Size.SMALL}
583
595
  .title=${lastStep.isLoading ? titleForStep(lastStep) : title}
596
+ .accessibleLabel=${accessibleLabel}
584
597
  .jslogContext=${walkthrough.isExpanded ? 'ai-hide-walkthrough-sidebar' : 'ai-show-walkthrough-sidebar'}
585
598
  data-show-walkthrough
586
599
  @click=${() => {
@@ -19,7 +19,7 @@ import * as VisualLogging from '../../ui/visual_logging/visual_logging.js';
19
19
 
20
20
  import consolePinPaneStyles from './consolePinPane.css.js';
21
21
 
22
- const {createRef, ref} = Directives;
22
+ const {createRef, ref, repeat} = Directives;
23
23
  const {widget} = UI.Widget;
24
24
 
25
25
  const UIStrings = {
@@ -72,7 +72,7 @@ export const DEFAULT_PANE_VIEW = (input: PaneViewInput, _output: object, target:
72
72
  render(html`
73
73
  <style>${consolePinPaneStyles}</style>
74
74
  <div class='console-pins monospace' jslog=${VisualLogging.pane('console-pins')} @contextmenu=${input.onContextMenu}>
75
- ${input.pins.map(pin => widget(ConsolePinPresenter, {
75
+ ${repeat(input.pins, pin => pin, pin => widget(ConsolePinPresenter, {
76
76
  pin,
77
77
  focusOut: input.focusOut,
78
78
  onRemove: () => input.onRemove(pin),
@@ -298,6 +298,10 @@ export class ConsolePinPresenter extends UI.Widget.Widget {
298
298
  set pin(pin: ConsolePin) {
299
299
  this.#pin?.removeEventListener(ConsolePinEvent.EVALUATE_RESULT_READY, this.requestUpdate, this);
300
300
  this.#pin = pin;
301
+ // Clear the existing editor reference so `performUpdate()` creates
302
+ // a new EditorState with the new pin's text, rather than reusing
303
+ // the stale one from the previous pin.
304
+ this.#editor = undefined;
301
305
  this.#pin.setEditor(this.#pinEditor);
302
306
  this.#pin.addEventListener(ConsolePinEvent.EVALUATE_RESULT_READY, this.requestUpdate, this);
303
307
  this.requestUpdate();
@@ -1,7 +1,7 @@
1
1
  Name: Lighthouse
2
2
  Short Name: lighthouse
3
- Version: 13.0.2
4
- Revision: 440f8bf87117ef61dc970c3ce4cebf91d46eb181
3
+ Version: 13.1.0
4
+ Revision: 0248afea9c9443c9fddd73e705256e38e8c6e042
5
5
  Update Mechanism: Manual
6
6
  URL: https://github.com/GoogleChrome/lighthouse
7
7
  License: Apache-2.0