chrome-devtools-frontend 1.0.956812 → 1.0.957983
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.
- package/extension-api/ExtensionAPI.d.ts +7 -0
- package/front_end/Tests.js +14 -0
- package/front_end/core/common/Debouncer.ts +1 -1
- package/front_end/core/common/Settings.ts +33 -0
- package/front_end/core/host/InspectorFrontendHost.ts +7 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
- package/front_end/core/host/UserMetrics.ts +2 -2
- package/front_end/core/i18n/i18nImpl.ts +1 -1
- package/front_end/core/i18n/locales/en-US.json +6 -0
- package/front_end/core/i18n/locales/en-XL.json +6 -0
- package/front_end/core/protocol_client/InspectorBackend.ts +3 -3
- package/front_end/core/sdk/Connections.ts +1 -1
- package/front_end/core/sdk/IsolateManager.ts +1 -1
- package/front_end/core/sdk/PageResourceLoader.ts +4 -2
- package/front_end/devtools_compatibility.js +9 -0
- package/front_end/entrypoints/main/MainImpl.ts +7 -2
- package/front_end/models/extensions/ExtensionAPI.ts +33 -5
- package/front_end/models/extensions/ExtensionServer.ts +28 -0
- package/front_end/models/logs/LogManager.ts +1 -1
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +1 -1
- package/front_end/panels/application/AppManifestView.ts +41 -0
- package/front_end/panels/application/StorageView.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/elements/ComputedStyleModel.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -2
- package/front_end/panels/network/NetworkItemView.ts +1 -1
- package/front_end/panels/network/NetworkLogViewColumns.ts +5 -0
- package/front_end/panels/profiler/HeapTimelineOverview.ts +2 -2
- package/front_end/panels/profiler/LiveHeapProfileView.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +2 -2
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/settings/settingsScreen.css +8 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/SourcesSearchScope.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +2 -2
- package/front_end/panels/timeline/TimelineLoader.ts +3 -3
- package/front_end/panels/timeline/TimelinePanel.ts +1 -1
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +76 -12
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +13 -13
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +2 -2
- package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +1 -1
- package/front_end/ui/components/text_editor/theme.ts +1 -0
- package/front_end/ui/legacy/SearchableView.ts +1 -1
- package/front_end/ui/legacy/SoftDropDown.ts +2 -2
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +1 -1
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +1 -1
- package/package.json +1 -1
- package/front_end/third_party/codemirror/README.md +0 -3
- package/front_end/third_party/codemirror/codemirror.css +0 -283
- package/front_end/third_party/codemirror/codemirror.ts +0 -19
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
/* The rest of this file contains styles related to the mechanics of
|
|
2
|
-
the editor. You probably shouldn't touch them. */
|
|
3
|
-
|
|
4
|
-
.CodeMirror {
|
|
5
|
-
position: relative;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
background: var(--color-background);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.CodeMirror-scroll {
|
|
11
|
-
overflow: scroll !important; /* Things will break if this is overridden */
|
|
12
|
-
/* 50px is the magic margin used to hide the element's real scrollbars */
|
|
13
|
-
/* See overflow: hidden in .CodeMirror */
|
|
14
|
-
margin-bottom: -50px;
|
|
15
|
-
margin-right: -50px;
|
|
16
|
-
padding-bottom: 50px;
|
|
17
|
-
height: 100%;
|
|
18
|
-
outline: none; /* Prevent dragging from highlighting the element */
|
|
19
|
-
position: relative;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.CodeMirror-sizer {
|
|
23
|
-
position: relative;
|
|
24
|
-
border-right: 50px solid transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
|
28
|
-
before actual scrolling happens, thus preventing shaking and
|
|
29
|
-
flickering artifacts. */
|
|
30
|
-
.CodeMirror-vscrollbar,
|
|
31
|
-
.CodeMirror-hscrollbar,
|
|
32
|
-
.CodeMirror-scrollbar-filler,
|
|
33
|
-
.CodeMirror-gutter-filler {
|
|
34
|
-
position: absolute;
|
|
35
|
-
z-index: 6;
|
|
36
|
-
display: none;
|
|
37
|
-
outline: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.CodeMirror-vscrollbar {
|
|
41
|
-
right: 0;
|
|
42
|
-
top: 0;
|
|
43
|
-
overflow-x: hidden;
|
|
44
|
-
overflow-y: scroll;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.CodeMirror-hscrollbar {
|
|
48
|
-
bottom: 0;
|
|
49
|
-
left: 0;
|
|
50
|
-
overflow-y: hidden;
|
|
51
|
-
overflow-x: scroll;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.CodeMirror-scrollbar-filler {
|
|
55
|
-
right: 0;
|
|
56
|
-
bottom: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.CodeMirror-gutter-filler {
|
|
60
|
-
left: 0;
|
|
61
|
-
bottom: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.CodeMirror-gutters {
|
|
65
|
-
position: absolute;
|
|
66
|
-
left: 0;
|
|
67
|
-
top: 0;
|
|
68
|
-
min-height: 100%;
|
|
69
|
-
z-index: 3;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.CodeMirror-gutter {
|
|
73
|
-
white-space: normal;
|
|
74
|
-
height: 100%;
|
|
75
|
-
display: inline-block;
|
|
76
|
-
vertical-align: top;
|
|
77
|
-
margin-bottom: -50px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.CodeMirror-gutter-wrapper {
|
|
81
|
-
position: absolute;
|
|
82
|
-
z-index: 4;
|
|
83
|
-
background: none !important;
|
|
84
|
-
border: none !important;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.CodeMirror-gutter-background {
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 0;
|
|
90
|
-
bottom: 0;
|
|
91
|
-
z-index: 4;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.CodeMirror-gutter-elt {
|
|
95
|
-
position: absolute;
|
|
96
|
-
cursor: default;
|
|
97
|
-
z-index: 4;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.CodeMirror-gutter-wrapper ::selection {
|
|
101
|
-
background-color: transparent;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.CodeMirror-gutter-wrapper ::-moz-selection {
|
|
105
|
-
background-color: transparent;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.CodeMirror-lines {
|
|
109
|
-
cursor: text;
|
|
110
|
-
min-height: 1px; /* prevents collapsing before first draw */
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.CodeMirror pre.CodeMirror-line,
|
|
114
|
-
.CodeMirror pre.CodeMirror-line-like {
|
|
115
|
-
/* Reset some styles that the rest of the page might have set */
|
|
116
|
-
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
117
|
-
-moz-border-radius: 0;
|
|
118
|
-
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
119
|
-
-webkit-border-radius: 0;
|
|
120
|
-
border-radius: 0;
|
|
121
|
-
border-width: 0;
|
|
122
|
-
background: transparent;
|
|
123
|
-
font-family: inherit;
|
|
124
|
-
font-size: inherit;
|
|
125
|
-
margin: 0;
|
|
126
|
-
white-space: pre;
|
|
127
|
-
word-wrap: normal;
|
|
128
|
-
line-height: inherit;
|
|
129
|
-
color: inherit;
|
|
130
|
-
z-index: 2;
|
|
131
|
-
position: relative;
|
|
132
|
-
overflow: visible;
|
|
133
|
-
-webkit-tap-highlight-color: transparent;
|
|
134
|
-
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
135
|
-
-webkit-font-variant-ligatures: contextual;
|
|
136
|
-
font-variant-ligatures: contextual;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.CodeMirror-wrap pre.CodeMirror-line,
|
|
140
|
-
.CodeMirror-wrap pre.CodeMirror-line-like {
|
|
141
|
-
word-wrap: break-word;
|
|
142
|
-
white-space: pre-wrap;
|
|
143
|
-
word-break: normal;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.CodeMirror-linebackground {
|
|
147
|
-
position: absolute;
|
|
148
|
-
left: 0;
|
|
149
|
-
right: 0;
|
|
150
|
-
top: 0;
|
|
151
|
-
bottom: 0;
|
|
152
|
-
z-index: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.CodeMirror-linewidget {
|
|
156
|
-
position: relative;
|
|
157
|
-
z-index: 2;
|
|
158
|
-
padding: 0.1px; /* Force widget margins to stay inside of the container */
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.CodeMirror-rtl pre {
|
|
162
|
-
direction: rtl;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.CodeMirror-code {
|
|
166
|
-
outline: none;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/* Force content-box sizing for the elements where we expect it */
|
|
170
|
-
.CodeMirror-scroll,
|
|
171
|
-
.CodeMirror-sizer,
|
|
172
|
-
.CodeMirror-gutter,
|
|
173
|
-
.CodeMirror-gutters,
|
|
174
|
-
.CodeMirror-linenumber {
|
|
175
|
-
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
176
|
-
-moz-box-sizing: content-box;
|
|
177
|
-
box-sizing: content-box;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.CodeMirror-measure {
|
|
181
|
-
position: absolute;
|
|
182
|
-
width: 100%;
|
|
183
|
-
height: 0;
|
|
184
|
-
overflow: hidden;
|
|
185
|
-
visibility: hidden;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.CodeMirror-cursor {
|
|
189
|
-
position: absolute;
|
|
190
|
-
pointer-events: none;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.CodeMirror-measure pre {
|
|
194
|
-
position: static;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
div.CodeMirror-cursors {
|
|
198
|
-
visibility: hidden;
|
|
199
|
-
position: relative;
|
|
200
|
-
z-index: 3;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
div.CodeMirror-dragcursors {
|
|
204
|
-
visibility: visible;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.CodeMirror-focused div.CodeMirror-cursors {
|
|
208
|
-
visibility: visible;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.CodeMirror-selected {
|
|
212
|
-
--override-cm-selected-background-color: #d9d9d9;
|
|
213
|
-
|
|
214
|
-
background: var(--override-cm-selected-background-color);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.-theme-with-dark-background .CodeMirror-selected,
|
|
218
|
-
:host-context(.-theme-with-dark-background) .CodeMirror-selected {
|
|
219
|
-
--override-cm-selected-background-color: rgb(38 38 38);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.CodeMirror-focused .CodeMirror-selected {
|
|
223
|
-
--override-cm-selected-background-color: #d7d4f0;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.-theme-with-dark-background .CodeMirror-focused .CodeMirror-selected,
|
|
227
|
-
:host-context(.-theme-with-dark-background) .CodeMirror-focused .CodeMirror-selected {
|
|
228
|
-
--override-cm-selected-background-color: rgb(18 15 43);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.CodeMirror-crosshair {
|
|
232
|
-
cursor: crosshair;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.CodeMirror-line {
|
|
236
|
-
--override-line-selection-background-color: #d7d4f0;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.CodeMirror-line::selection,
|
|
240
|
-
.CodeMirror-line > span::selection,
|
|
241
|
-
.CodeMirror-line > span > span::selection {
|
|
242
|
-
background:var(--override-line-selection-background-color);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.CodeMirror-line::-moz-selection,
|
|
246
|
-
.CodeMirror-line > span::-moz-selection,
|
|
247
|
-
.CodeMirror-line > span > span::-moz-selection {
|
|
248
|
-
background: var(--override-line-selection-background-color);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.-theme-with-dark-background .CodeMirror-line,
|
|
252
|
-
:host-context(.-theme-with-dark-background) .CodeMirror-line {
|
|
253
|
-
--override-line-selection-background-color: rgb(18 15 43);
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.cm-searching {
|
|
258
|
-
--override-searching-background-color: rgb(255 255 0 / 40%);
|
|
259
|
-
|
|
260
|
-
background-color: var(--override-searching-background-color);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/* Used to force a border model for a node */
|
|
264
|
-
.cm-force-border {
|
|
265
|
-
padding-right: 0.1px;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
@media print {
|
|
269
|
-
/* Hide the cursor when printing */
|
|
270
|
-
.CodeMirror div.CodeMirror-cursors {
|
|
271
|
-
visibility: hidden;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/* See issue #2901 */
|
|
276
|
-
.cm-tab-wrap-hack::after {
|
|
277
|
-
content: "";
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/* Help users use markselection to safely style text background */
|
|
281
|
-
span.CodeMirror-selectedtext {
|
|
282
|
-
background: none;
|
|
283
|
-
}
|
|
@@ -1,19 +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 type * as CodeMirrorLegacy from './codemirror-legacy';
|
|
6
|
-
export {CodeMirrorLegacy};
|
|
7
|
-
|
|
8
|
-
import './package/lib/codemirror.js';
|
|
9
|
-
import './package/addon/comment/comment.js';
|
|
10
|
-
import './package/addon/edit/closebrackets.js';
|
|
11
|
-
import './package/addon/edit/matchbrackets.js';
|
|
12
|
-
import './package/addon/mode/multiplex.js';
|
|
13
|
-
import './package/addon/mode/overlay.js';
|
|
14
|
-
import './package/addon/mode/simple.js';
|
|
15
|
-
import './package/addon/selection/active-line.js';
|
|
16
|
-
import './package/addon/selection/mark-selection.js';
|
|
17
|
-
import './package/addon/fold/foldcode.js';
|
|
18
|
-
import './package/addon/fold/foldgutter.js';
|
|
19
|
-
import './package/addon/fold/brace-fold.js';
|