chrome-devtools-frontend 1.0.946351 → 1.0.946920

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 (30) hide show
  1. package/config/gni/all_devtools_files.gni +0 -2
  2. package/config/gni/devtools_grd_files.gni +3 -6
  3. package/front_end/core/host/InspectorFrontendHostAPI.ts +0 -1
  4. package/front_end/core/host/UserMetrics.ts +0 -21
  5. package/front_end/core/i18n/locales/en-US.json +21 -15
  6. package/front_end/core/i18n/locales/en-XL.json +21 -15
  7. package/front_end/devtools_compatibility.js +1 -1
  8. package/front_end/entrypoints/{node_main → node_app}/NodeConnectionsPanel.ts +1 -1
  9. package/front_end/entrypoints/{node_main → node_app}/NodeMain.ts +2 -4
  10. package/front_end/entrypoints/{node_main → node_app}/nodeConnectionsPanel.css +0 -0
  11. package/front_end/entrypoints/node_app/node_app.ts +81 -0
  12. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -11
  13. package/front_end/panels/elements/StylesSidebarPane.ts +0 -1
  14. package/front_end/panels/emulation/DeviceModeToolbar.ts +0 -16
  15. package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
  16. package/front_end/panels/timeline/TimelineTreeView.ts +1 -0
  17. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  18. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1486 -1423
  19. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  20. package/front_end/third_party/codemirror.next/package.json +9 -9
  21. package/front_end/ui/components/text_editor/javascript.ts +7 -7
  22. package/front_end/ui/legacy/InspectorView.ts +10 -0
  23. package/inspector_overlay/main.ts +2 -12
  24. package/package.json +1 -1
  25. package/scripts/check_gn.js +1 -1
  26. package/front_end/entrypoints/node_app/node_app-meta.ts +0 -43
  27. package/front_end/entrypoints/node_app/node_app.js +0 -16
  28. package/front_end/entrypoints/node_app/node_app.json +0 -3
  29. package/front_end/entrypoints/node_main/node_main-meta.ts +0 -48
  30. package/front_end/entrypoints/node_main/node_main.ts +0 -11
@@ -1,2 +1,2 @@
1
- export{$ as cursorSubwordForward,_ as cursorSubwordBackward,A as java,a$ as ViewPlugin,a0 as indentLess,a1 as indentMore,a2 as insertNewlineAndIndent,a3 as selectMatchingBracket,a4 as selectSubwordBackward,a5 as selectSubwordForward,a6 as standardKeymap,a7 as toggleComment,a8 as codeFolding,a9 as foldGutter,a_ as scrollPastEnd,aa as foldKeymap,aA as selectNextOccurrence,aB as Annotation,ab as gutter,aC as AnnotationType,ac as GutterMarker,aD as ChangeDesc,ad as gutters,aE as ChangeSet,ae as lineNumberMarkers,aF as Compartment,af as lineNumbers,aG as EditorState,ag as HighlightStyle,aH as Facet,ah as highlightTree,aI as SelectionRange,ai as Tag,aJ as StateEffect,aj as history,aK as StateEffectType,ak as historyKeymap,aL as StateField,al as redo,aM as Transaction,am as redoSelection,aN as StreamLanguage,an as undo,aO as StringStream,ao as undoSelection,aP as Line,ap as css,aQ as Text,aq as html,ar as javascript,aR as showTooltip,as as ensureSyntaxTree,aS as tooltips,at as indentOnInput,aT as repositionTooltips,aU as Decoration,au as indentUnit,av as bracketMatching,aV as drawSelection,aW as EditorView,aw as showPanel,ax as Range,aX as highlightSpecialChars,aY as MatchDecorator,ay as RangeSet,az as RangeSetBuilder,aZ as placeholder,B as json,b0 as ViewUpdate,b1 as WidgetType,b2 as TreeCursor,b3 as StyleModule,D as markdown,e as LanguageSupport,F as php,g as NodeType,G as python,h as NodeSet,H as shell,I as wast,j as Language,J as xml,K as acceptCompletion,k as syntaxTree,L as LRParser,m as EditorSelection,M as autocompletion,N as NodeProp,n as Prec,O as closeCompletion,o as keymap,P as Parser,Q as completeAnyWord,R as CompletionContext,S as currentCompletions,T as Tree,t as tags,U as ifNotIn,V as selectedCompletion,W as startCompletion,x as clojure,X as closeBrackets,Y as closeBracketsKeymap,y as coffeescript,z as cpp,Z as cursorMatchingBracket}from"./chunk/codemirror.js";
1
+ export{$ as cursorSubwordForward,_ as cursorSubwordBackward,A as java,a$ as ViewPlugin,a0 as indentLess,a1 as indentMore,a2 as insertNewlineAndIndent,a3 as selectMatchingBracket,a4 as selectSubwordBackward,a5 as selectSubwordForward,a6 as standardKeymap,a7 as toggleComment,a8 as codeFolding,a9 as foldGutter,a_ as scrollPastEnd,aa as foldKeymap,aA as selectNextOccurrence,aB as Annotation,ab as gutter,aC as AnnotationType,ac as GutterMarker,aD as ChangeDesc,ad as gutters,aE as ChangeSet,ae as lineNumberMarkers,aF as Compartment,af as lineNumbers,aG as EditorState,ag as HighlightStyle,aH as Facet,ah as highlightTree,aI as SelectionRange,ai as Tag,aJ as StateEffect,aj as history,aK as StateEffectType,ak as historyKeymap,aL as StateField,al as redo,aM as Transaction,am as redoSelection,aN as StreamLanguage,an as undo,aO as StringStream,ao as undoSelection,aP as Line,ap as css,aQ as Text,aq as html,ar as javascript,aR as repositionTooltips,as as ensureSyntaxTree,aS as showTooltip,at as indentOnInput,aT as tooltips,aU as Decoration,au as indentUnit,av as bracketMatching,aV as drawSelection,aW as EditorView,aw as showPanel,ax as Range,aX as highlightSpecialChars,aY as MatchDecorator,ay as RangeSet,az as RangeSetBuilder,aZ as placeholder,B as json,b0 as ViewUpdate,b1 as WidgetType,b2 as TreeCursor,b3 as StyleModule,D as markdown,e as LanguageSupport,F as php,g as NodeType,G as python,h as NodeSet,H as shell,I as wast,j as Language,J as xml,K as acceptCompletion,k as syntaxTree,L as LRParser,m as EditorSelection,M as autocompletion,N as NodeProp,n as Prec,O as closeCompletion,o as keymap,P as Parser,Q as completeAnyWord,R as CompletionContext,S as currentCompletions,T as Tree,t as tags,U as ifNotIn,V as selectedCompletion,W as startCompletion,x as clojure,X as closeBrackets,Y as closeBracketsKeymap,y as coffeescript,z as cpp,Z as cursorMatchingBracket}from"./chunk/codemirror.js";
2
2
 
@@ -3,17 +3,17 @@
3
3
  "version": "0.0.1",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@codemirror/autocomplete": "0.19.8",
6
+ "@codemirror/autocomplete": "0.19.9",
7
7
  "@codemirror/closebrackets": "0.19.0",
8
8
  "@codemirror/commands": "0.19.5",
9
9
  "@codemirror/comment": "0.19.0",
10
- "@codemirror/fold": "0.19.1",
11
- "@codemirror/gutter": "0.19.3",
10
+ "@codemirror/fold": "0.19.2",
11
+ "@codemirror/gutter": "0.19.7",
12
12
  "@codemirror/highlight": "0.19.6",
13
13
  "@codemirror/history": "0.19.0",
14
14
  "@codemirror/lang-cpp": "0.19.1",
15
15
  "@codemirror/lang-css": "0.19.3",
16
- "@codemirror/lang-html": "0.19.3",
16
+ "@codemirror/lang-html": "0.19.4",
17
17
  "@codemirror/lang-java": "0.19.1",
18
18
  "@codemirror/lang-javascript": "0.19.3",
19
19
  "@codemirror/lang-json": "0.19.1",
@@ -22,18 +22,18 @@
22
22
  "@codemirror/lang-python": "0.19.2",
23
23
  "@codemirror/lang-wast": "0.19.0",
24
24
  "@codemirror/lang-xml": "0.19.2",
25
- "@codemirror/language": "0.19.3",
25
+ "@codemirror/language": "0.19.6",
26
26
  "@codemirror/legacy-modes": "0.19.0",
27
27
  "@codemirror/matchbrackets": "0.19.3",
28
28
  "@codemirror/panel": "0.19.0",
29
29
  "@codemirror/rangeset": "0.19.2",
30
- "@codemirror/search": "0.19.2",
31
- "@codemirror/state": "0.19.5",
30
+ "@codemirror/search": "0.19.3",
31
+ "@codemirror/state": "0.19.6",
32
32
  "@codemirror/stream-parser": "0.19.2",
33
33
  "@codemirror/text": "0.19.5",
34
34
  "@codemirror/tooltip": "0.19.10",
35
- "@codemirror/view": "0.19.20",
36
- "@lezer/common": "0.15.8",
35
+ "@codemirror/view": "0.19.23",
36
+ "@lezer/common": "0.15.10",
37
37
  "@rollup/plugin-node-resolve": "^13.0.4",
38
38
  "rollup-plugin-dts": "^4.0.0",
39
39
  "rollup-plugin-terser": "^7.0.2",
@@ -52,10 +52,10 @@ class CompletionSet {
52
52
  }
53
53
 
54
54
  const javascriptKeywords = [
55
- 'async', 'await', 'break', 'case', 'catch', 'class', 'const', 'continue', 'debugger', 'default',
56
- 'delete', 'do', 'else', 'export', 'extends', 'finally', 'for', 'function', 'if', 'import',
57
- 'in', 'instanceof', 'let', 'new', 'of', 'return', 'static', 'super', 'switch', 'this',
58
- 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with', 'yield',
55
+ 'async', 'await', 'break', 'case', 'catch', 'class', 'const', 'continue', 'debugger', 'default', 'delete',
56
+ 'do', 'else', 'export', 'extends', 'false', 'finally', 'for', 'function', 'if', 'import', 'in',
57
+ 'instanceof', 'let', 'new', 'null', 'of', 'return', 'static', 'super', 'switch', 'this', 'throw',
58
+ 'true', 'try', 'typeof', 'var', 'void', 'while', 'with', 'yield',
59
59
  ];
60
60
  const consoleBuiltinFunctions = [
61
61
  'clear',
@@ -323,8 +323,8 @@ async function completePropertiesInner(
323
323
  object = await evaluateExpression(context, toPrototype + '.prototype', 'completion');
324
324
  }
325
325
 
326
- const functionType = expression === 'window' ? 'function' : 'method';
327
- const otherType = expression === 'window' ? 'variable' : 'property';
326
+ const functionType = expression === 'globalThis' ? 'function' : 'method';
327
+ const otherType = expression === 'globalThis' ? 'variable' : 'property';
328
328
  if (object && (object.type === 'object' || object.type === 'function')) {
329
329
  const properties = await object.getAllProperties(false, false);
330
330
  const isFunction = object.type === 'function';
@@ -383,7 +383,7 @@ async function completeExpressionGlobal(): Promise<CompletionSet> {
383
383
  }
384
384
  const result = baseCompletions.copy();
385
385
 
386
- const fetchNames = completePropertiesInner('window', context).then(fromWindow => {
386
+ const fetchNames = completePropertiesInner('globalThis', context).then(fromWindow => {
387
387
  return context.globalLexicalScopeNames().then(globals => {
388
388
  for (const option of fromWindow.completions) {
389
389
  result.add(option);
@@ -107,6 +107,14 @@ const UIStrings = {
107
107
  *@description The aria label for the drawer.
108
108
  */
109
109
  drawer: 'Tool drawer',
110
+ /**
111
+ *@description The aria label for the drawer shown.
112
+ */
113
+ drawerShown: 'Drawer shown',
114
+ /**
115
+ *@description The aria label for the drawer hidden.
116
+ */
117
+ drawerHidden: 'Drawer hidden',
110
118
  };
111
119
  const str_ = i18n.i18n.registerUIStrings('ui/legacy/InspectorView.ts', UIStrings);
112
120
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -312,6 +320,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
312
320
  this.focusRestorer = null;
313
321
  }
314
322
  this.emitDrawerChangeEvent(true);
323
+ ARIAUtils.alert(i18nString(UIStrings.drawerShown));
315
324
  }
316
325
 
317
326
  drawerVisible(): boolean {
@@ -328,6 +337,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
328
337
  this.drawerSplitWidget.hideSidebar(true);
329
338
 
330
339
  this.emitDrawerChangeEvent(false);
340
+ ARIAUtils.alert(i18nString(UIStrings.drawerHidden));
331
341
  }
332
342
 
333
343
  setDrawerMinimized(minimized: boolean): void {
@@ -80,9 +80,6 @@ type MessageLookup = {
80
80
  drawingFinished: '',
81
81
  };
82
82
 
83
- let queue: unknown[][] = [];
84
- let prevQueue: string = '';
85
-
86
83
  const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLookup[K]]) => {
87
84
  const functionName = message[0];
88
85
  if (functionName === 'setOverlay') {
@@ -100,16 +97,9 @@ const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLooku
100
97
  } else if (functionName === 'setPlatform') {
101
98
  platformName = message[1];
102
99
  } else if (functionName === 'drawingFinished') {
103
- const currentQueue = JSON.stringify(queue);
104
- if (currentQueue !== prevQueue) {
105
- for (const message of queue) {
106
- currentOverlay.dispatch(message);
107
- }
108
- }
109
- prevQueue = currentQueue;
110
- queue = [];
100
+ // TODO The logic needs to be added here once the backend starts sending this event.
111
101
  } else {
112
- queue.push(message);
102
+ currentOverlay.dispatch(message);
113
103
  }
114
104
  };
115
105
 
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.946351"
58
+ "version": "1.0.946920"
59
59
  }
@@ -9,7 +9,7 @@ const path = require('path');
9
9
  const FRONTEND_PATH = path.resolve(__dirname, '..', 'front_end');
10
10
 
11
11
  const manifestModules = [];
12
- for (const config of ['inspector', 'devtools_app', 'js_app', 'node_app', 'worker_app']) {
12
+ for (const config of ['inspector', 'devtools_app', 'js_app', 'worker_app']) {
13
13
  manifestModules.push(...require(path.resolve(FRONTEND_PATH, 'entrypoints', config, `${config}.json`)).modules);
14
14
  }
15
15
 
@@ -1,43 +0,0 @@
1
- // Copyright 2020 The Chromium Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as i18n from '../../core/i18n/i18n.js';
6
- import * as UI from '../../ui/legacy/legacy.js';
7
- import type * as Sources from '../../panels/sources/sources.js';
8
-
9
- const UIStrings = {
10
- /**
11
- *@description Title of the 'Node' tool in the Network Navigator View, which is part of the Sources tool
12
- */
13
- node: 'Node',
14
- /**
15
- *@description Command for showing the 'Node' tool in the Network Navigator View, which is part of the Sources tool
16
- */
17
- showNode: 'Node',
18
- };
19
-
20
- const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/node_app-meta.ts', UIStrings);
21
- const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
22
-
23
- let loadedSourcesModule: (typeof Sources|undefined);
24
-
25
- async function loadHelpModule(): Promise<typeof Sources> {
26
- if (!loadedSourcesModule) {
27
- loadedSourcesModule = await import('../../panels/sources/sources.js');
28
- }
29
- return loadedSourcesModule;
30
- }
31
-
32
- UI.ViewManager.registerViewExtension({
33
- location: UI.ViewManager.ViewLocationValues.NAVIGATOR_VIEW,
34
- id: 'navigator-network',
35
- title: i18nLazyString(UIStrings.node),
36
- commandPrompt: i18nLazyString(UIStrings.showNode),
37
- order: 2,
38
- persistence: UI.ViewManager.ViewPersistence.PERMANENT,
39
- async loadView() {
40
- const Sources = await loadHelpModule();
41
- return Sources.SourcesNavigator.NetworkNavigatorView.instance();
42
- },
43
- });
@@ -1,16 +0,0 @@
1
- // Copyright 2018 The Chromium Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
- import '../shell/shell.js';
5
- import '../../panels/js_profiler/js_profiler-meta.js';
6
- import '../node_main/node_main-meta.js';
7
- import './node_app-meta.js';
8
-
9
- import * as Main from '../main/main.js';
10
- import * as Startup from '../startup/startup.js';
11
-
12
- // Side-effect start the `node_main` module, which implements runnables in
13
- // the NodeMain class
14
- await import('../node_main/node_main.js');
15
- new Main.MainImpl.MainImpl();
16
- Startup.RuntimeInstantiator.startApplication('node_app');
@@ -1,3 +0,0 @@
1
- {
2
- "modules" : [ ]
3
- }
@@ -1,48 +0,0 @@
1
- // Copyright 2020 The Chromium Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as i18n from '../../core/i18n/i18n.js';
6
- import * as UI from '../../ui/legacy/legacy.js';
7
-
8
- import type * as NodeMain from './node_main.js';
9
-
10
- const UIStrings = {
11
- /**
12
- *@description Text that refers to the network connection
13
- */
14
- connection: 'Connection',
15
- /**
16
- *@description A tag of Node.js Connection Panel that can be searched in the command menu
17
- */
18
- node: 'node',
19
- /**
20
- *@description Command for showing the Connection tool
21
- */
22
- showConnection: 'Show Connection',
23
- };
24
-
25
- const str_ = i18n.i18n.registerUIStrings('entrypoints/node_main/node_main-meta.ts', UIStrings);
26
- const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
27
-
28
- let loadedNodeMainModule: (typeof NodeMain|undefined);
29
-
30
- async function loadNodeMainModule(): Promise<typeof NodeMain> {
31
- if (!loadedNodeMainModule) {
32
- loadedNodeMainModule = await import('./node_main.js');
33
- }
34
- return loadedNodeMainModule;
35
- }
36
-
37
- UI.ViewManager.registerViewExtension({
38
- location: UI.ViewManager.ViewLocationValues.PANEL,
39
- id: 'node-connection',
40
- title: i18nLazyString(UIStrings.connection),
41
- commandPrompt: i18nLazyString(UIStrings.showConnection),
42
- order: 0,
43
- async loadView() {
44
- const NodeMain = await loadNodeMainModule();
45
- return NodeMain.NodeConnectionsPanel.NodeConnectionsPanel.instance();
46
- },
47
- tags: [i18nLazyString(UIStrings.node)],
48
- });
@@ -1,11 +0,0 @@
1
- // Copyright 2019 The Chromium Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- import * as NodeConnectionsPanel from './NodeConnectionsPanel.js';
6
- import * as NodeMain from './NodeMain.js';
7
-
8
- export {
9
- NodeConnectionsPanel,
10
- NodeMain,
11
- };