chrome-devtools-frontend 1.0.956975 → 1.0.959105
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/.eslintignore +0 -1
- package/AUTHORS +1 -0
- package/extension-api/ExtensionAPI.d.ts +7 -0
- package/front_end/Images/generate-css-vars.js +12 -13
- 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/af.json +399 -354
- package/front_end/core/i18n/locales/am.json +399 -354
- package/front_end/core/i18n/locales/ar.json +399 -354
- package/front_end/core/i18n/locales/as.json +399 -354
- package/front_end/core/i18n/locales/az.json +399 -354
- package/front_end/core/i18n/locales/be.json +399 -354
- package/front_end/core/i18n/locales/bg.json +399 -354
- package/front_end/core/i18n/locales/bn.json +399 -354
- package/front_end/core/i18n/locales/bs.json +400 -355
- package/front_end/core/i18n/locales/ca.json +399 -354
- package/front_end/core/i18n/locales/cs.json +399 -354
- package/front_end/core/i18n/locales/cy.json +399 -354
- package/front_end/core/i18n/locales/da.json +399 -354
- package/front_end/core/i18n/locales/de.json +399 -354
- package/front_end/core/i18n/locales/el.json +399 -354
- package/front_end/core/i18n/locales/en-GB.json +420 -375
- package/front_end/core/i18n/locales/es-419.json +399 -354
- package/front_end/core/i18n/locales/es.json +399 -354
- package/front_end/core/i18n/locales/et.json +399 -354
- package/front_end/core/i18n/locales/eu.json +403 -358
- package/front_end/core/i18n/locales/fa.json +399 -354
- package/front_end/core/i18n/locales/fi.json +399 -354
- package/front_end/core/i18n/locales/fil.json +399 -354
- package/front_end/core/i18n/locales/fr-CA.json +399 -354
- package/front_end/core/i18n/locales/fr.json +399 -354
- package/front_end/core/i18n/locales/gl.json +399 -354
- package/front_end/core/i18n/locales/gu.json +399 -354
- package/front_end/core/i18n/locales/he.json +399 -354
- package/front_end/core/i18n/locales/hi.json +399 -354
- package/front_end/core/i18n/locales/hr.json +399 -354
- package/front_end/core/i18n/locales/hu.json +399 -354
- package/front_end/core/i18n/locales/hy.json +399 -354
- package/front_end/core/i18n/locales/id.json +399 -354
- package/front_end/core/i18n/locales/is.json +399 -354
- package/front_end/core/i18n/locales/it.json +399 -354
- package/front_end/core/i18n/locales/ja.json +399 -354
- package/front_end/core/i18n/locales/ka.json +399 -354
- package/front_end/core/i18n/locales/kk.json +400 -355
- package/front_end/core/i18n/locales/km.json +399 -354
- package/front_end/core/i18n/locales/kn.json +399 -354
- package/front_end/core/i18n/locales/ko.json +399 -354
- package/front_end/core/i18n/locales/ky.json +399 -354
- package/front_end/core/i18n/locales/lo.json +399 -354
- package/front_end/core/i18n/locales/lt.json +399 -354
- package/front_end/core/i18n/locales/lv.json +399 -354
- package/front_end/core/i18n/locales/mk.json +399 -354
- package/front_end/core/i18n/locales/ml.json +399 -354
- package/front_end/core/i18n/locales/mn.json +399 -354
- package/front_end/core/i18n/locales/mr.json +399 -354
- package/front_end/core/i18n/locales/ms.json +399 -354
- package/front_end/core/i18n/locales/my.json +399 -354
- package/front_end/core/i18n/locales/ne.json +399 -354
- package/front_end/core/i18n/locales/nl.json +399 -354
- package/front_end/core/i18n/locales/no.json +399 -354
- package/front_end/core/i18n/locales/or.json +399 -354
- package/front_end/core/i18n/locales/pa.json +410 -365
- package/front_end/core/i18n/locales/pl.json +399 -354
- package/front_end/core/i18n/locales/pt-PT.json +399 -354
- package/front_end/core/i18n/locales/pt.json +399 -354
- package/front_end/core/i18n/locales/ro.json +399 -354
- package/front_end/core/i18n/locales/ru.json +399 -354
- package/front_end/core/i18n/locales/si.json +399 -354
- package/front_end/core/i18n/locales/sk.json +399 -354
- package/front_end/core/i18n/locales/sl.json +399 -354
- package/front_end/core/i18n/locales/sq.json +399 -354
- package/front_end/core/i18n/locales/sr-Latn.json +399 -354
- package/front_end/core/i18n/locales/sr.json +399 -354
- package/front_end/core/i18n/locales/sv.json +399 -354
- package/front_end/core/i18n/locales/sw.json +399 -354
- package/front_end/core/i18n/locales/ta.json +405 -360
- package/front_end/core/i18n/locales/te.json +399 -354
- package/front_end/core/i18n/locales/th.json +399 -354
- package/front_end/core/i18n/locales/tr.json +399 -354
- package/front_end/core/i18n/locales/uk.json +399 -354
- package/front_end/core/i18n/locales/ur.json +399 -354
- package/front_end/core/i18n/locales/uz.json +399 -354
- package/front_end/core/i18n/locales/vi.json +399 -354
- package/front_end/core/i18n/locales/zh-HK.json +399 -354
- package/front_end/core/i18n/locales/zh-TW.json +399 -354
- package/front_end/core/i18n/locales/zh.json +399 -354
- package/front_end/core/i18n/locales/zu.json +399 -354
- package/front_end/core/platform/generate-dcheck.js +2 -2
- 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/entrypoints/main/main-meta.ts +24 -24
- package/front_end/generated/SupportedCSSProperties.js +2 -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/Automapping.ts +32 -4
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/persistence/PersistenceImpl.ts +33 -13
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +0 -1
- package/front_end/models/persistence/workspaceSettingsTab.css +3 -7
- package/front_end/models/workspace/UISourceCode.ts +1 -1
- package/front_end/panels/application/StorageView.ts +1 -1
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +2 -2
- package/front_end/panels/elements/ComputedStyleModel.ts +1 -1
- package/front_end/panels/elements/ElementsPanel.ts +34 -29
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -2
- package/front_end/panels/elements/elementsPanel.css +10 -4
- 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 +11 -5
- 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/sources/sources-meta.ts +14 -11
- 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/buttons/Button.ts +5 -1
- package/front_end/ui/components/buttons/button.css +10 -1
- 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/filter.css +1 -0
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +1 -1
- package/front_end/ui/legacy/toolbar.css +2 -0
- package/package.json +1 -1
- package/scripts/build/generate_css_js_files.js +8 -6
- package/scripts/build/generate_html_entrypoint.js +2 -1
- package/scripts/build/ninja/copy-file.js +2 -1
- package/scripts/build/ninja/copy-files.js +2 -1
- package/scripts/build/ninja/generate-declaration.js +2 -1
- package/scripts/build/ninja/node.gni +4 -1
- package/scripts/build/ninja/write-if-changed.js +27 -0
- 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
|
@@ -354,6 +354,7 @@ select.toolbar-item:focus-visible > * {
|
|
|
354
354
|
overflow: hidden;
|
|
355
355
|
white-space: nowrap;
|
|
356
356
|
cursor: auto;
|
|
357
|
+
color: var(--color-text-primary);
|
|
357
358
|
}
|
|
358
359
|
/* Separator */
|
|
359
360
|
|
|
@@ -394,6 +395,7 @@ input[is="history-input"] {
|
|
|
394
395
|
border: 1px solid transparent;
|
|
395
396
|
line-height: 16px;
|
|
396
397
|
padding: 1px;
|
|
398
|
+
color: var(--color-text-primary);
|
|
397
399
|
}
|
|
398
400
|
|
|
399
401
|
input[is="history-input"]:hover {
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const CleanCSS = require('clean-css');
|
|
7
|
+
const {writeIfChanged} = require('./ninja/write-if-changed.js');
|
|
7
8
|
const [, , buildTimestamp, isDebugString, legacyString, targetName, srcDir, targetGenDir, files] = process.argv;
|
|
8
9
|
|
|
9
10
|
const filenames = files.split(',');
|
|
@@ -34,21 +35,22 @@ export default styles;`;
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
const generatedFileName = `${fileName}${isLegacy ? '.legacy' : ''}.js`;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
`// Copyright ${new Date(Number(buildTimestamp) * 1000).getFullYear()} The Chromium Authors. All rights reserved.
|
|
38
|
+
const generatedFileLocation = path.join(targetGenDir, generatedFileName);
|
|
39
|
+
const newContents = `// Copyright ${
|
|
40
|
+
new Date(Number(buildTimestamp) * 1000).getUTCFullYear()} The Chromium Authors. All rights reserved.
|
|
41
41
|
// Use of this source code is governed by a BSD-style license that can be
|
|
42
42
|
// found in the LICENSE file.
|
|
43
43
|
// IMPORTANT: this file is auto generated. Please do not edit this file.
|
|
44
44
|
/* istanbul ignore file */
|
|
45
45
|
${exportStatement}
|
|
46
|
-
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
writeIfChanged(generatedFileLocation, newContents);
|
|
47
49
|
|
|
48
50
|
configFiles.push(`\"${generatedFileName}\"`);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
writeIfChanged(path.join(targetGenDir, `${targetName}-tsconfig.json`), `{
|
|
52
54
|
"compilerOptions": {
|
|
53
55
|
"composite": true,
|
|
54
56
|
"outDir": "."
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
const path = require('path');
|
|
7
7
|
const {argv} = require('yargs');
|
|
8
|
+
const {writeIfChanged} = require('./ninja/write-if-changed.js');
|
|
8
9
|
|
|
9
10
|
const {template} = argv;
|
|
10
11
|
|
|
@@ -32,5 +33,5 @@ const templateContent = fs.readFileSync(template, 'utf-8');
|
|
|
32
33
|
|
|
33
34
|
for (const entrypoint of entrypoints) {
|
|
34
35
|
const rewrittenTemplateContent = templateContent.replace(new RegExp('%ENTRYPOINT_NAME%', 'g'), entrypoint);
|
|
35
|
-
|
|
36
|
+
writeIfChanged(path.join(outDirectory, `${entrypoint}.html`), rewrittenTemplateContent);
|
|
36
37
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
|
+
const {writeIfChanged} = require('./write-if-changed.js');
|
|
6
7
|
const [, , src, dest] = process.argv;
|
|
7
8
|
|
|
8
9
|
const srcPath = path.join(process.cwd(), src);
|
|
@@ -23,7 +24,7 @@ if (fileExists(destPath)) {
|
|
|
23
24
|
// Force a write to the target filesystem, since by default the ninja
|
|
24
25
|
// toolchain will create a hardlink, which in turn reflects changes in
|
|
25
26
|
// gen and resources/inspector back to //front_end.
|
|
26
|
-
|
|
27
|
+
writeIfChanged(destPath, srcContents);
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Case sensitive implementation of a file look up.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
|
+
const {writeIfChanged} = require('./write-if-changed.js');
|
|
6
7
|
const [, , src, dest, files] = process.argv;
|
|
7
8
|
|
|
8
9
|
for (const file of files.split(',')) {
|
|
@@ -24,7 +25,7 @@ for (const file of files.split(',')) {
|
|
|
24
25
|
// Force a write to the target filesystem, since by default the ninja
|
|
25
26
|
// toolchain will create a hardlink, which in turn reflects changes in
|
|
26
27
|
// gen and resources/inspector back to //front_end.
|
|
27
|
-
|
|
28
|
+
writeIfChanged(destPath, srcContents);
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
/**
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
|
+
const {writeIfChanged} = require('./write-if-changed.js');
|
|
6
7
|
|
|
7
8
|
const [, , outputDirectory, entrypointName] = process.argv;
|
|
8
9
|
|
|
@@ -13,4 +14,4 @@ const outputLocation = path.join(outputDirectory, `${rawFileName}.d.ts`);
|
|
|
13
14
|
// We can't use copy here, as that would maintain the original file timestamps.
|
|
14
15
|
// This can throw off Ninja, which verifies that timestamps of generated files
|
|
15
16
|
// are the same as the timestamp it ran the action on.
|
|
16
|
-
|
|
17
|
+
writeIfChanged(outputLocation, fs.readFileSync(inputLocation));
|
|
@@ -20,7 +20,10 @@ template("node_action") {
|
|
|
20
20
|
|
|
21
21
|
_full_script_location = devtools_location_prepend + invoker.script
|
|
22
22
|
|
|
23
|
-
inputs += [
|
|
23
|
+
inputs += [
|
|
24
|
+
_full_script_location,
|
|
25
|
+
devtools_location_prepend + "scripts/build/ninja/write-if-changed.js",
|
|
26
|
+
]
|
|
24
27
|
|
|
25
28
|
args = [ rebase_path(_full_script_location, root_build_dir) ] + invoker.args
|
|
26
29
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright 2022 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
|
+
const fs = require('fs');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Only write content to a file if the content is different that what it previously contained.
|
|
9
|
+
* The reason for only writing when necessary is that GN uses file timestamps to determine freshness.
|
|
10
|
+
* Therefore, if the file contents hasn't changed, but the timestamp has, GN thinks the file is new.
|
|
11
|
+
*
|
|
12
|
+
* Instead, we can only write when the content is changed, meaning we don't touch a file when it is
|
|
13
|
+
* unchanged. This would preserve the original file timestamps and hence GN can correctly conclude
|
|
14
|
+
* the file output hasn't changed.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} generatedFileLocation Location to write to
|
|
17
|
+
* @param {string} newContents The contents to write (or noop if unchanged with previous content)
|
|
18
|
+
*/
|
|
19
|
+
module.exports.writeIfChanged = (generatedFileLocation, newContents) => {
|
|
20
|
+
if (fs.existsSync(generatedFileLocation)) {
|
|
21
|
+
if (fs.readFileSync(generatedFileLocation, {encoding: 'utf8', flag: 'r'}) === newContents) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
fs.writeFileSync(generatedFileLocation, newContents, {encoding: 'utf-8'});
|
|
27
|
+
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
Treat `codemirror.css` like a rolled-in upstream dependency. Instead of changing it directly, consider changing `front_end/text_editor/cmdevtools.css` instead.
|
|
2
|
-
|
|
3
|
-
[Issue #1076825](https://bugs.chromium.org/p/chromium/issues/detail?id=1076825) tracks the effort to use the upstream file more directly.
|
|
@@ -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';
|