chrome-devtools-frontend 1.0.925655 → 1.0.927419

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 (128) hide show
  1. package/.stylelintignore +1 -0
  2. package/AUTHORS +1 -0
  3. package/config/gni/devtools_grd_files.gni +10 -3
  4. package/front_end/core/common/Color.ts +6 -0
  5. package/front_end/core/common/SettingRegistration.ts +8 -0
  6. package/front_end/core/host/InspectorFrontendHost.ts +3 -0
  7. package/front_end/core/host/InspectorFrontendHostAPI.ts +3 -0
  8. package/front_end/core/host/UserMetrics.ts +7 -3
  9. package/front_end/core/i18n/locales/en-US.json +71 -14
  10. package/front_end/core/i18n/locales/en-XL.json +71 -14
  11. package/front_end/core/platform/keyboard-utilities.ts +1 -0
  12. package/front_end/core/root/Runtime.ts +1 -0
  13. package/front_end/core/sdk/ConsoleModel.ts +3 -0
  14. package/front_end/core/sdk/DebuggerModel.ts +2 -0
  15. package/front_end/core/sdk/NetworkManager.ts +12 -2
  16. package/front_end/core/sdk/NetworkRequest.ts +20 -5
  17. package/front_end/core/sdk/OverlayModel.ts +21 -0
  18. package/front_end/core/sdk/OverlayPersistentHighlighter.ts +55 -3
  19. package/front_end/devtools_compatibility.js +11 -1
  20. package/front_end/entrypoints/main/MainImpl.ts +4 -2
  21. package/front_end/entrypoints/main/main-meta.ts +16 -0
  22. package/front_end/generated/InspectorBackendCommands.js +8 -7
  23. package/front_end/generated/SupportedCSSProperties.js +7 -1
  24. package/front_end/generated/protocol-mapping.d.ts +5 -24
  25. package/front_end/generated/protocol-proxy-api.d.ts +6 -29
  26. package/front_end/generated/protocol.d.ts +51 -46
  27. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +0 -6
  28. package/front_end/models/issues_manager/CorsIssue.ts +4 -0
  29. package/front_end/models/logs/LogManager.ts +1 -0
  30. package/front_end/models/persistence/WorkspaceSettingsTab.ts +6 -4
  31. package/front_end/models/persistence/workspaceSettingsTab.css +18 -18
  32. package/front_end/models/timeline_model/TimelineFrameModel.ts +107 -28
  33. package/front_end/panels/application/ReportingApiReportsView.ts +89 -0
  34. package/front_end/panels/application/ReportingApiTreeElement.ts +3 -3
  35. package/front_end/panels/application/ReportingApiView.ts +27 -0
  36. package/front_end/panels/application/application.ts +2 -0
  37. package/front_end/panels/application/components/EndpointsGrid.ts +55 -0
  38. package/front_end/panels/application/components/ReportsGrid.ts +144 -0
  39. package/front_end/panels/application/components/components.ts +4 -2
  40. package/front_end/panels/application/components/reportingApiGrid.css +35 -0
  41. package/front_end/panels/application/reportingApiReportsView.css +13 -0
  42. package/front_end/panels/console/ConsoleView.ts +17 -0
  43. package/front_end/panels/console/console-meta.ts +26 -0
  44. package/front_end/panels/elements/ElementsTreeElement.ts +19 -0
  45. package/front_end/panels/elements/PropertiesWidget.ts +1 -2
  46. package/front_end/panels/elements/StylePropertyTreeElement.ts +28 -0
  47. package/front_end/panels/elements/StylePropertyUtils.ts +13 -0
  48. package/front_end/panels/elements/components/nodeText.css +4 -4
  49. package/front_end/panels/elements/elements.ts +2 -0
  50. package/front_end/panels/elements/layoutPane.css +1 -1
  51. package/front_end/panels/issues/CorsIssueDetailsView.ts +4 -2
  52. package/front_end/panels/network/RequestCookiesView.ts +13 -4
  53. package/front_end/panels/screencast/screencastView.css +2 -6
  54. package/front_end/panels/search/SearchResultsPane.ts +1 -1
  55. package/front_end/panels/settings/SettingsScreen.ts +3 -0
  56. package/front_end/panels/snippets/SnippetsQuickOpen.ts +8 -3
  57. package/front_end/panels/sources/CallStackSidebarPane.ts +1 -10
  58. package/front_end/panels/sources/GoToLineQuickOpen.ts +50 -10
  59. package/front_end/panels/sources/UISourceCodeFrame.ts +0 -13
  60. package/front_end/panels/sources/sources-legacy.ts +0 -11
  61. package/front_end/panels/sources/sources-meta.ts +22 -20
  62. package/front_end/panels/sources/sources.ts +0 -2
  63. package/front_end/third_party/codemirror.next/LICENSE +21 -0
  64. package/front_end/third_party/codemirror.next/README.chromium +18 -0
  65. package/front_end/third_party/codemirror.next/bundle-tsconfig.json +21 -0
  66. package/front_end/third_party/codemirror.next/bundle.ts +87 -0
  67. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -0
  68. package/front_end/third_party/codemirror.next/chunk/cpp.js +2 -0
  69. package/front_end/third_party/codemirror.next/chunk/css.js +2 -0
  70. package/front_end/third_party/codemirror.next/chunk/html.js +4 -0
  71. package/front_end/third_party/codemirror.next/chunk/java.js +2 -0
  72. package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -0
  73. package/front_end/third_party/codemirror.next/chunk/json.js +2 -0
  74. package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -0
  75. package/front_end/third_party/codemirror.next/chunk/markdown.js +6 -0
  76. package/front_end/third_party/codemirror.next/chunk/php.js +6 -0
  77. package/front_end/third_party/codemirror.next/chunk/python.js +2 -0
  78. package/front_end/third_party/codemirror.next/chunk/wast.js +2 -0
  79. package/front_end/third_party/codemirror.next/chunk/xml.js +2 -0
  80. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +5467 -0
  81. package/front_end/third_party/codemirror.next/codemirror.next.js +2 -0
  82. package/front_end/third_party/codemirror.next/package.json +39 -0
  83. package/front_end/third_party/codemirror.next/rebuild.sh +6 -0
  84. package/front_end/third_party/codemirror.next/rollup.config.js +45 -0
  85. package/front_end/ui/components/buttons/Button.ts +33 -5
  86. package/front_end/ui/components/buttons/button.css +32 -2
  87. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +137 -0
  88. package/front_end/ui/components/code_highlighter/codeHighlighter.css +51 -0
  89. package/front_end/ui/components/code_highlighter/code_highlighter.ts +11 -0
  90. package/front_end/ui/components/docs/button/basic.html +1 -0
  91. package/front_end/ui/components/docs/button/basic.ts +47 -4
  92. package/front_end/ui/components/docs/text_editor/basic.html +28 -0
  93. package/front_end/ui/components/docs/text_editor/basic.ts +14 -0
  94. package/front_end/ui/components/docs/text_prompt/basic.html +35 -0
  95. package/front_end/ui/components/docs/text_prompt/basic.ts +19 -0
  96. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +17 -0
  97. package/front_end/ui/components/text_editor/TextEditor.ts +161 -0
  98. package/front_end/ui/components/text_editor/config.ts +264 -0
  99. package/front_end/ui/components/text_editor/text_editor.ts +6 -0
  100. package/front_end/ui/components/text_editor/theme.ts +113 -0
  101. package/front_end/ui/components/text_prompt/TextPrompt.ts +144 -0
  102. package/front_end/ui/components/text_prompt/textPrompt.css +33 -0
  103. package/front_end/ui/components/text_prompt/text_prompt.ts +9 -0
  104. package/front_end/ui/legacy/UIUtils.ts +9 -1
  105. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +8 -3
  106. package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +39 -39
  107. package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +10 -4
  108. package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +31 -14
  109. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +7 -8
  110. package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -6
  111. package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
  112. package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +11 -9
  113. package/front_end/ui/legacy/filter.css +1 -0
  114. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +3 -8
  115. package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +11 -16
  116. package/front_end/ui/legacy/themeColors.css +60 -0
  117. package/inspector_overlay/debug/tool_persistent_isolated_element.html +75 -0
  118. package/inspector_overlay/drag_resize_handler.ts +142 -0
  119. package/inspector_overlay/highlight_isolated_element.ts +62 -0
  120. package/inspector_overlay/main.ts +4 -1
  121. package/inspector_overlay/tool_highlight.ts +6 -0
  122. package/inspector_overlay/tool_paused.ts +2 -0
  123. package/inspector_overlay/tool_persistent.ts +110 -0
  124. package/inspector_overlay/tool_screenshot.ts +8 -1
  125. package/package.json +1 -1
  126. package/front_end/panels/application/components/ReportingApiView.ts +0 -24
  127. package/front_end/panels/sources/GutterDiffPlugin.ts +0 -282
  128. package/front_end/ui/legacy/components/source_frame/SourceCodeDiff.ts +0 -140
@@ -0,0 +1,18 @@
1
+ Name: CodeMirror.next
2
+ Short Name: CodeMirror.next
3
+ URL: https://github.com/codemirror/CodeMirror.next/
4
+ Version: 0.19.0
5
+ License: MIT
6
+ License File: LICENSE
7
+ Security Critical: no
8
+
9
+ Description:
10
+ CodeMirror is a code editor for the browser.
11
+
12
+ To update this package, adjust the version ranges in package.json if necessary, and run the following command:
13
+
14
+ ```bash
15
+ ./rebuild.sh
16
+ ```
17
+
18
+ It will use npm to locally install the necessary packages and their dependencies, and bundle them into a single file (codemirror.js and codemirror.d.ts) with rollup.
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true
4
+ },
5
+ "files": [
6
+ "codemirror.next.js",
7
+ "chunk/codemirror.js",
8
+ "chunk/cpp.js",
9
+ "chunk/css.js",
10
+ "chunk/html.js",
11
+ "chunk/java.js",
12
+ "chunk/javascript.js",
13
+ "chunk/json.js",
14
+ "chunk/legacy.js",
15
+ "chunk/markdown.js",
16
+ "chunk/php.js",
17
+ "chunk/python.js",
18
+ "chunk/wast.js",
19
+ "chunk/xml.js",
20
+ ]
21
+ }
@@ -0,0 +1,87 @@
1
+ // Base script used with Rollup to bundle the necessary CodeMirror
2
+ // components.
3
+ //
4
+ // Note that this file is also used as a TypeScript source to bundle
5
+ // the .d.ts files.
6
+
7
+ import {StreamLanguage} from '@codemirror/stream-parser';
8
+
9
+ export {
10
+ acceptCompletion, autocompletion, completeAnyWord, Completion, CompletionContext,
11
+ CompletionResult, CompletionSource, currentCompletions, ifNotIn
12
+ } from '@codemirror/autocomplete';
13
+ export {closeBrackets, closeBracketsKeymap} from '@codemirror/closebrackets';
14
+ export {
15
+ cursorMatchingBracket, cursorSubwordBackward, cursorSubwordForward,
16
+ indentLess, indentMore, selectMatchingBracket, selectSubwordBackward, selectSubwordForward,
17
+ standardKeymap
18
+ } from '@codemirror/commands';
19
+ export {toggleComment} from '@codemirror/comment';
20
+ export {codeFolding, foldGutter, foldKeymap} from '@codemirror/fold';
21
+ export { gutter, GutterMarker, gutters,lineNumbers} from '@codemirror/gutter';
22
+ export {HighlightStyle, highlightTree, Tag, tags, TagStyle} from '@codemirror/highlight';
23
+ export {history, historyKeymap, redo, redoSelection, undo, undoSelection} from '@codemirror/history';
24
+ export { indentOnInput, indentUnit,Language, LanguageSupport, syntaxTree} from '@codemirror/language';
25
+ export {bracketMatching} from '@codemirror/matchbrackets';
26
+ export {Range, RangeSet, RangeSetBuilder} from '@codemirror/rangeset';
27
+ export {selectNextOccurrence} from '@codemirror/search';
28
+ export {
29
+ Annotation, AnnotationType, Compartment, EditorSelection,
30
+ EditorState, EditorStateConfig, Extension, Facet, Prec, SelectionRange,
31
+ StateEffect, StateEffectType, StateField, Transaction, TransactionSpec
32
+ } from '@codemirror/state';
33
+ export {StreamLanguage, StreamParser, StringStream} from '@codemirror/stream-parser';
34
+ export {Line, Text, TextIterator} from '@codemirror/text';
35
+ export {showTooltip, Tooltip, tooltips, TooltipView} from '@codemirror/tooltip';
36
+ export {
37
+ Command, Decoration, DecorationSet, drawSelection, EditorView,
38
+ highlightSpecialChars, KeyBinding, keymap, MatchDecorator, placeholder,
39
+ scrollPastEnd, ViewPlugin, ViewUpdate, WidgetType,
40
+ } from '@codemirror/view';
41
+ export {
42
+ NodeProp, NodeSet, NodeType, Parser, SyntaxNode, Tree, TreeCursor
43
+ } from '@lezer/common';
44
+ export {LRParser} from '@lezer/lr';
45
+
46
+ export async function clojure() {
47
+ return StreamLanguage.define((await import('@codemirror/legacy-modes/mode/clojure')).clojure);
48
+ }
49
+ export async function coffeescript() {
50
+ return StreamLanguage.define((await import('@codemirror/legacy-modes/mode/coffeescript')).coffeeScript);
51
+ }
52
+ export function cpp() {
53
+ return import('@codemirror/lang-cpp');
54
+ }
55
+ export function css() {
56
+ return import('@codemirror/lang-css');
57
+ }
58
+ export function html() {
59
+ return import('@codemirror/lang-html');
60
+ }
61
+ export function java() {
62
+ return import('@codemirror/lang-java');
63
+ }
64
+ export function javascript() {
65
+ return import('@codemirror/lang-javascript');
66
+ }
67
+ export function json() {
68
+ return import('@codemirror/lang-json');
69
+ }
70
+ export function markdown() {
71
+ return import('@codemirror/lang-markdown');
72
+ }
73
+ export function php() {
74
+ return import('@codemirror/lang-php');
75
+ }
76
+ export function python() {
77
+ return import('@codemirror/lang-python');
78
+ }
79
+ export async function shell() {
80
+ return StreamLanguage.define((await import('@codemirror/legacy-modes/mode/shell')).shell);
81
+ }
82
+ export function wast() {
83
+ return import('@codemirror/lang-wast');
84
+ }
85
+ export function xml() {
86
+ return import('@codemirror/lang-xml');
87
+ }