chrome-devtools-frontend 1.0.941208 → 1.0.942095

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 (99) hide show
  1. package/config/gni/all_devtools_files.gni +0 -6
  2. package/config/gni/devtools_grd_files.gni +6 -12
  3. package/config/gni/devtools_image_files.gni +0 -2
  4. package/front_end/Tests.js +1 -0
  5. package/front_end/core/common/Color.ts +5 -0
  6. package/front_end/core/i18n/locales/en-US.json +16 -28
  7. package/front_end/core/i18n/locales/en-XL.json +16 -28
  8. package/front_end/core/sdk/sdk-meta.ts +17 -3
  9. package/front_end/entrypoints/devtools_app/devtools_app.json +1 -7
  10. package/front_end/entrypoints/main/MainImpl.ts +26 -0
  11. package/front_end/entrypoints/shell/shell.js +0 -11
  12. package/front_end/entrypoints/worker_app/worker_app.json +0 -4
  13. package/front_end/generated/InspectorBackendCommands.js +1 -0
  14. package/front_end/generated/protocol.d.ts +2 -0
  15. package/front_end/legacy_test_runner/legacy_test_runner.ts +10 -1
  16. package/front_end/models/formatter/SourceFormatter.ts +0 -10
  17. package/front_end/models/workspace/UISourceCode.ts +9 -42
  18. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  19. package/front_end/panels/application/ApplicationPanelSidebar.ts +3 -3
  20. package/front_end/panels/application/application-meta.ts +0 -3
  21. package/front_end/panels/console/ConsolePinPane.ts +21 -26
  22. package/front_end/panels/coverage/CoverageDecorationManager.ts +4 -5
  23. package/front_end/panels/coverage/CoverageView.ts +2 -105
  24. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +11 -56
  25. package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -8
  26. package/front_end/panels/elements/ElementsTreeElement.ts +4 -9
  27. package/front_end/panels/elements/components/adornerSettingsPane.css +0 -4
  28. package/front_end/panels/emulation/emulation-meta.ts +2 -2
  29. package/front_end/panels/issues/issues-meta.ts +0 -2
  30. package/front_end/panels/layers/module.json +0 -1
  31. package/front_end/panels/lighthouse/lighthouseStartView.css +4 -0
  32. package/front_end/panels/media/media-meta.ts +0 -3
  33. package/front_end/panels/network/ResourceWebSocketFrameView.ts +2 -1
  34. package/front_end/panels/network/network-meta.ts +0 -3
  35. package/front_end/panels/security/security-meta.ts +0 -3
  36. package/front_end/panels/sources/BreakpointEditDialog.ts +16 -30
  37. package/front_end/panels/sources/CSSPlugin.ts +310 -331
  38. package/front_end/panels/sources/CallStackSidebarPane.ts +28 -34
  39. package/front_end/panels/sources/CoveragePlugin.ts +121 -6
  40. package/front_end/panels/sources/DebuggerPlugin.ts +1166 -1243
  41. package/front_end/panels/sources/EditingLocationHistoryManager.ts +71 -101
  42. package/front_end/panels/sources/GoToLineQuickOpen.ts +4 -3
  43. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  44. package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +26 -23
  45. package/front_end/panels/sources/Plugin.ts +20 -4
  46. package/front_end/panels/sources/ProfilePlugin.ts +185 -0
  47. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  48. package/front_end/panels/sources/ScriptOriginPlugin.ts +0 -10
  49. package/front_end/panels/sources/SnippetsPlugin.ts +1 -10
  50. package/front_end/panels/sources/SourcesPanel.ts +6 -5
  51. package/front_end/panels/sources/SourcesView.ts +10 -8
  52. package/front_end/panels/sources/TabbedEditorContainer.ts +31 -27
  53. package/front_end/panels/sources/UISourceCodeFrame.ts +335 -470
  54. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
  55. package/front_end/panels/sources/sources-legacy.ts +0 -6
  56. package/front_end/panels/sources/sources.ts +0 -2
  57. package/front_end/panels/timeline/module.json +0 -1
  58. package/front_end/third_party/codemirror.next/bundle.ts +9 -13
  59. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  60. package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -2
  61. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -6
  62. package/front_end/third_party/codemirror.next/chunk/php.js +2 -6
  63. package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
  64. package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
  65. package/front_end/third_party/codemirror.next/chunk/xml.js +2 -2
  66. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +279 -198
  67. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  68. package/front_end/third_party/codemirror.next/package.json +13 -11
  69. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +60 -68
  70. package/front_end/ui/components/data_grid/dataGrid.css +12 -10
  71. package/front_end/ui/components/docs/css_overview/start_view.html +25 -0
  72. package/front_end/ui/components/docs/css_overview/start_view.ts +14 -0
  73. package/front_end/ui/components/text_editor/TextEditor.ts +79 -36
  74. package/front_end/ui/components/text_editor/config.ts +42 -26
  75. package/front_end/ui/components/text_editor/javascript.ts +2 -3
  76. package/front_end/ui/components/text_editor/position.ts +17 -0
  77. package/front_end/ui/components/text_editor/text_editor.ts +1 -0
  78. package/front_end/ui/components/text_editor/theme.ts +5 -1
  79. package/front_end/ui/legacy/Infobar.ts +2 -6
  80. package/front_end/ui/legacy/ShortcutRegistry.ts +11 -7
  81. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +35 -131
  82. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +3 -6
  83. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +18 -14
  84. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +502 -252
  85. package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -11
  86. package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
  87. package/front_end/ui/legacy/components/text_editor/cmdevtools.css +3 -1
  88. package/front_end/ui/legacy/radioButton.css +1 -13
  89. package/front_end/ui/legacy/themeColors.css +36 -0
  90. package/package.json +1 -1
  91. package/front_end/Images/radioDot-dark-theme.png +0 -0
  92. package/front_end/Images/radioDot.png +0 -0
  93. package/front_end/panels/application/module.json +0 -6
  94. package/front_end/panels/issues/module.json +0 -6
  95. package/front_end/panels/layer_viewer/module.json +0 -5
  96. package/front_end/panels/media/module.json +0 -5
  97. package/front_end/panels/network/module.json +0 -5
  98. package/front_end/panels/security/module.json +0 -5
  99. package/front_end/ui/legacy/components/source_frame/SourcesTextEditor.ts +0 -1030
@@ -266,7 +266,8 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
266
266
  if (!frame) {
267
267
  return false;
268
268
  }
269
- const text = frame.textEditor.text(frame.textEditor.selection());
269
+ const {state} = frame.textEditor;
270
+ const text = state.sliceDoc(state.selection.main.from, state.selection.main.to);
270
271
  this.focusAndAddExpressionToWatch(text);
271
272
  return true;
272
273
  }
@@ -278,7 +279,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
278
279
  }
279
280
 
280
281
  const frame = UI.Context.Context.instance().flavor(UISourceCodeFrame);
281
- if (!frame || frame.textEditor.selection().isEmpty()) {
282
+ if (!frame || frame.textEditor.state.selection.main.empty) {
282
283
  return;
283
284
  }
284
285
 
@@ -19,12 +19,6 @@ Sources.BreakpointEditDialog.LogpointPrefix = SourcesModule.BreakpointEditDialog
19
19
  Sources.BreakpointEditDialog._LogpointSuffix = SourcesModule.BreakpointEditDialog.LogpointSuffix;
20
20
  Sources.BreakpointEditDialog.BreakpointType = SourcesModule.BreakpointEditDialog.BreakpointType;
21
21
 
22
- /** @constructor */
23
- Sources.CSSPlugin = SourcesModule.CSSPlugin.CSSPlugin;
24
-
25
- Sources.CSSPlugin.maxSwatchProcessingLength = SourcesModule.CSSPlugin.maxSwatchProcessingLength;
26
- Sources.CSSPlugin.SwatchBookmark = SourcesModule.CSSPlugin.SwatchBookmark;
27
-
28
22
  /** @constructor */
29
23
  Sources.CallStackSidebarPane = SourcesModule.CallStackSidebarPane.CallStackSidebarPane;
30
24
 
@@ -6,7 +6,6 @@ import * as AddSourceMapURLDialog from './AddSourceMapURLDialog.js';
6
6
  import * as BreakpointEditDialog from './BreakpointEditDialog.js';
7
7
  import * as CallStackSidebarPane from './CallStackSidebarPane.js';
8
8
  import * as CoveragePlugin from './CoveragePlugin.js';
9
- import * as CSSPlugin from './CSSPlugin.js';
10
9
  import * as DebuggerPausedMessage from './DebuggerPausedMessage.js';
11
10
  import * as DebuggerPlugin from './DebuggerPlugin.js';
12
11
  import * as EditingLocationHistoryManager from './EditingLocationHistoryManager.js';
@@ -40,7 +39,6 @@ export {
40
39
  BreakpointEditDialog,
41
40
  CallStackSidebarPane,
42
41
  CoveragePlugin,
43
- CSSPlugin,
44
42
  DebuggerPausedMessage,
45
43
  DebuggerPlugin,
46
44
  EditingLocationHistoryManager,
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "dependencies": [
3
3
  "ui/legacy",
4
- "panels/layer_viewer",
5
4
  "panels/profiler"
6
5
  ]
7
6
  }
@@ -13,16 +13,21 @@ export {
13
13
  export {closeBrackets, closeBracketsKeymap} from '@codemirror/closebrackets';
14
14
  export {
15
15
  cursorMatchingBracket, cursorSubwordBackward, cursorSubwordForward,
16
- indentLess, indentMore, selectMatchingBracket, selectSubwordBackward, selectSubwordForward,
16
+ indentLess, indentMore, insertNewlineAndIndent, selectMatchingBracket,
17
+ selectSubwordBackward, selectSubwordForward,
17
18
  standardKeymap
18
19
  } from '@codemirror/commands';
19
20
  export {toggleComment} from '@codemirror/comment';
20
21
  export {codeFolding, foldGutter, foldKeymap} from '@codemirror/fold';
21
- export { gutter, GutterMarker, gutters,lineNumbers} from '@codemirror/gutter';
22
+ export {gutter, GutterMarker, gutters, lineNumberMarkers,lineNumbers} from '@codemirror/gutter';
22
23
  export {HighlightStyle, highlightTree, Tag, tags, TagStyle} from '@codemirror/highlight';
23
24
  export {history, historyKeymap, redo, redoSelection, undo, undoSelection} from '@codemirror/history';
24
- export { indentOnInput, indentUnit,Language, LanguageSupport, syntaxTree} from '@codemirror/language';
25
+ export * as css from '@codemirror/lang-css';
26
+ export * as html from '@codemirror/lang-html';
27
+ export * as javascript from '@codemirror/lang-javascript';
28
+ export {ensureSyntaxTree, indentOnInput, indentUnit,Language, LanguageSupport, syntaxTree} from '@codemirror/language';
25
29
  export {bracketMatching} from '@codemirror/matchbrackets';
30
+ export {Panel, showPanel} from '@codemirror/panel';
26
31
  export {Range, RangeSet, RangeSetBuilder} from '@codemirror/rangeset';
27
32
  export {selectNextOccurrence} from '@codemirror/search';
28
33
  export {
@@ -33,7 +38,7 @@ export {
33
38
  } from '@codemirror/state';
34
39
  export {StreamLanguage, StreamParser, StringStream} from '@codemirror/stream-parser';
35
40
  export {Line, Text, TextIterator} from '@codemirror/text';
36
- export {hoverTooltip, showTooltip, Tooltip, tooltips, TooltipView} from '@codemirror/tooltip';
41
+ export {showTooltip, Tooltip, tooltips, TooltipView} from '@codemirror/tooltip';
37
42
  export {
38
43
  Command, Decoration, DecorationSet, drawSelection, EditorView,
39
44
  highlightSpecialChars, KeyBinding, keymap, MatchDecorator, placeholder,
@@ -54,18 +59,9 @@ export async function coffeescript() {
54
59
  export function cpp() {
55
60
  return import('@codemirror/lang-cpp');
56
61
  }
57
- export function css() {
58
- return import('@codemirror/lang-css');
59
- }
60
- export function html() {
61
- return import('@codemirror/lang-html');
62
- }
63
62
  export function java() {
64
63
  return import('@codemirror/lang-java');
65
64
  }
66
- export function javascript() {
67
- return import('@codemirror/lang-javascript');
68
- }
69
65
  export function json() {
70
66
  return import('@codemirror/lang-json');
71
67
  }