chrome-devtools-frontend 1.0.943182 → 1.0.943709
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/front_end/core/i18n/locales/af.json +455 -44
- package/front_end/core/i18n/locales/am.json +455 -44
- package/front_end/core/i18n/locales/ar.json +455 -44
- package/front_end/core/i18n/locales/as.json +455 -44
- package/front_end/core/i18n/locales/az.json +455 -44
- package/front_end/core/i18n/locales/be.json +456 -45
- package/front_end/core/i18n/locales/bg.json +455 -44
- package/front_end/core/i18n/locales/bn.json +455 -44
- package/front_end/core/i18n/locales/bs.json +455 -44
- package/front_end/core/i18n/locales/ca.json +457 -46
- package/front_end/core/i18n/locales/cs.json +458 -47
- package/front_end/core/i18n/locales/cy.json +455 -44
- package/front_end/core/i18n/locales/da.json +455 -44
- package/front_end/core/i18n/locales/de.json +455 -44
- package/front_end/core/i18n/locales/el.json +455 -44
- package/front_end/core/i18n/locales/en-GB.json +449 -38
- package/front_end/core/i18n/locales/en-US.json +7 -7
- package/front_end/core/i18n/locales/en-XL.json +7 -7
- package/front_end/core/i18n/locales/es-419.json +455 -44
- package/front_end/core/i18n/locales/es.json +455 -44
- package/front_end/core/i18n/locales/et.json +455 -44
- package/front_end/core/i18n/locales/eu.json +462 -51
- package/front_end/core/i18n/locales/fa.json +455 -44
- package/front_end/core/i18n/locales/fi.json +455 -44
- package/front_end/core/i18n/locales/fil.json +454 -43
- package/front_end/core/i18n/locales/fr-CA.json +455 -44
- package/front_end/core/i18n/locales/fr.json +456 -45
- package/front_end/core/i18n/locales/gl.json +455 -44
- package/front_end/core/i18n/locales/gu.json +456 -45
- package/front_end/core/i18n/locales/he.json +455 -44
- package/front_end/core/i18n/locales/hi.json +455 -44
- package/front_end/core/i18n/locales/hr.json +455 -44
- package/front_end/core/i18n/locales/hu.json +455 -44
- package/front_end/core/i18n/locales/hy.json +455 -44
- package/front_end/core/i18n/locales/id.json +455 -44
- package/front_end/core/i18n/locales/is.json +455 -44
- package/front_end/core/i18n/locales/it.json +502 -91
- package/front_end/core/i18n/locales/ja.json +456 -45
- package/front_end/core/i18n/locales/ka.json +455 -44
- package/front_end/core/i18n/locales/kk.json +456 -45
- package/front_end/core/i18n/locales/km.json +455 -44
- package/front_end/core/i18n/locales/kn.json +455 -44
- package/front_end/core/i18n/locales/ko.json +455 -44
- package/front_end/core/i18n/locales/ky.json +456 -45
- package/front_end/core/i18n/locales/lo.json +454 -43
- package/front_end/core/i18n/locales/lt.json +455 -44
- package/front_end/core/i18n/locales/lv.json +458 -47
- package/front_end/core/i18n/locales/mk.json +455 -44
- package/front_end/core/i18n/locales/ml.json +461 -50
- package/front_end/core/i18n/locales/mn.json +455 -44
- package/front_end/core/i18n/locales/mr.json +455 -44
- package/front_end/core/i18n/locales/ms.json +455 -44
- package/front_end/core/i18n/locales/my.json +456 -45
- package/front_end/core/i18n/locales/ne.json +456 -45
- package/front_end/core/i18n/locales/nl.json +532 -121
- package/front_end/core/i18n/locales/no.json +455 -44
- package/front_end/core/i18n/locales/or.json +455 -44
- package/front_end/core/i18n/locales/pa.json +455 -44
- package/front_end/core/i18n/locales/pl.json +455 -44
- package/front_end/core/i18n/locales/pt-PT.json +504 -93
- package/front_end/core/i18n/locales/pt.json +454 -43
- package/front_end/core/i18n/locales/ro.json +455 -44
- package/front_end/core/i18n/locales/ru.json +455 -44
- package/front_end/core/i18n/locales/si.json +455 -44
- package/front_end/core/i18n/locales/sk.json +456 -45
- package/front_end/core/i18n/locales/sl.json +455 -44
- package/front_end/core/i18n/locales/sq.json +455 -44
- package/front_end/core/i18n/locales/sr-Latn.json +455 -44
- package/front_end/core/i18n/locales/sr.json +455 -44
- package/front_end/core/i18n/locales/sv.json +456 -45
- package/front_end/core/i18n/locales/sw.json +455 -44
- package/front_end/core/i18n/locales/ta.json +456 -45
- package/front_end/core/i18n/locales/te.json +454 -43
- package/front_end/core/i18n/locales/th.json +455 -44
- package/front_end/core/i18n/locales/tr.json +455 -44
- package/front_end/core/i18n/locales/uk.json +455 -44
- package/front_end/core/i18n/locales/ur.json +455 -44
- package/front_end/core/i18n/locales/uz.json +455 -44
- package/front_end/core/i18n/locales/vi.json +455 -44
- package/front_end/core/i18n/locales/zh-HK.json +459 -48
- package/front_end/core/i18n/locales/zh-TW.json +457 -46
- package/front_end/core/i18n/locales/zh.json +460 -49
- package/front_end/core/i18n/locales/zu.json +455 -44
- package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
- package/front_end/core/sdk/AccessibilityModel.ts +99 -78
- package/front_end/core/sdk/NetworkManager.ts +3 -0
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
- package/front_end/entrypoints/main/MainImpl.ts +2 -2
- package/front_end/generated/InspectorBackendCommands.js +3 -1
- package/front_end/generated/protocol-mapping.d.ts +1 -0
- package/front_end/generated/protocol-proxy-api.d.ts +2 -0
- package/front_end/generated/protocol.d.ts +40 -0
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
- package/front_end/panels/application/BackForwardCacheView.ts +26 -26
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +4 -3
- package/front_end/panels/sources/Plugin.ts +0 -3
- package/front_end/panels/sources/UISourceCodeFrame.ts +23 -49
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +1 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -0
- package/front_end/ui/legacy/Dialog.ts +8 -3
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -4
- package/inspector_overlay/css_grid_label_helpers.ts +1 -1
- package/inspector_overlay/highlight_common.ts +1 -1
- package/inspector_overlay/tool_highlight.ts +1 -1
- package/package.json +1 -1
- package/scripts/eslint_rules/lib/es_modules_import.js +0 -16
- package/scripts/eslint_rules/tests/es_modules_import_test.js +0 -16
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@codemirror/panel": "0.19.0",
|
|
29
29
|
"@codemirror/rangeset": "0.19.2",
|
|
30
30
|
"@codemirror/search": "0.19.2",
|
|
31
|
-
"@codemirror/state": "0.19.
|
|
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.6",
|
|
@@ -166,6 +166,14 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
166
166
|
await this.render();
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Collapses all nodes in the tree.
|
|
171
|
+
*/
|
|
172
|
+
async collapseAllNodes(): Promise<void> {
|
|
173
|
+
this.nodeExpandedMap.clear();
|
|
174
|
+
await this.render();
|
|
175
|
+
}
|
|
176
|
+
|
|
169
177
|
/**
|
|
170
178
|
* Takes a TreeNode, expands the outline to reveal it, and focuses it.
|
|
171
179
|
*/
|
|
@@ -137,9 +137,14 @@ export class Dialog extends Common.ObjectWrapper.eventMixin<EventTypes, typeof G
|
|
|
137
137
|
if (node instanceof HTMLElement) {
|
|
138
138
|
const element = (node as HTMLElement);
|
|
139
139
|
const tabIndex = element.tabIndex;
|
|
140
|
-
if (
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
if (!exclusionSet?.has(element)) {
|
|
141
|
+
if (tabIndex >= 0) {
|
|
142
|
+
this.tabIndexMap.set(element, tabIndex);
|
|
143
|
+
element.tabIndex = -1;
|
|
144
|
+
} else if (element.hasAttribute('contenteditable')) {
|
|
145
|
+
this.tabIndexMap.set(element, element.hasAttribute('tabindex') ? tabIndex : 0);
|
|
146
|
+
element.tabIndex = -1;
|
|
147
|
+
}
|
|
143
148
|
}
|
|
144
149
|
}
|
|
145
150
|
}
|
|
@@ -159,6 +159,11 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
159
159
|
this.textEditorInternal = new TextEditor.TextEditor.TextEditor(this.placeholderEditorState(''));
|
|
160
160
|
this.textEditorInternal.style.flexGrow = '1';
|
|
161
161
|
this.element.appendChild(this.textEditorInternal);
|
|
162
|
+
this.element.addEventListener('keydown', (event: KeyboardEvent): void => {
|
|
163
|
+
if (event.defaultPrevented) {
|
|
164
|
+
event.stopPropagation();
|
|
165
|
+
}
|
|
166
|
+
});
|
|
162
167
|
|
|
163
168
|
this.baseDoc = this.textEditorInternal.state.doc;
|
|
164
169
|
|
|
@@ -716,7 +721,6 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
716
721
|
if (wasLoaded) {
|
|
717
722
|
textEditor.editor.scrollDOM.scrollTop = scrollTop;
|
|
718
723
|
}
|
|
719
|
-
this.editorInitialized();
|
|
720
724
|
this.wasShownOrLoaded();
|
|
721
725
|
|
|
722
726
|
if (this.delayedFindSearchMatches) {
|
|
@@ -726,9 +730,6 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
726
730
|
this.muteChangeEventsForSetContent = false;
|
|
727
731
|
}
|
|
728
732
|
|
|
729
|
-
protected editorInitialized(): void {
|
|
730
|
-
}
|
|
731
|
-
|
|
732
733
|
setSearchableView(view: UI.SearchableView.SearchableView|null): void {
|
|
733
734
|
this.searchableView = view;
|
|
734
735
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import {luminance} from '../front_end/core/common/ColorUtils.js';
|
|
5
|
+
import {luminance} from '../front_end/core/common/ColorUtils.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
6
6
|
|
|
7
7
|
import type {AreaBounds, Bounds, Position} from './common.js';
|
|
8
8
|
import {createChild} from './common.js';
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
29
29
|
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
30
|
|
|
31
|
-
import {rgbaToHsla} from '../front_end/core/common/ColorUtils.js';
|
|
31
|
+
import {rgbaToHsla} from '../front_end/core/common/ColorUtils.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
32
32
|
|
|
33
33
|
import type {Bounds, PathCommands, Quad} from './common.js';
|
|
34
34
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
29
29
|
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
30
|
|
|
31
|
-
import {contrastRatio, contrastRatioAPCA, getAPCAThreshold, getContrastThreshold} from '../front_end/core/common/ColorUtils.js';
|
|
31
|
+
import {contrastRatio, contrastRatioAPCA, getAPCAThreshold, getContrastThreshold} from '../front_end/core/common/ColorUtils.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
32
32
|
|
|
33
33
|
import type {Bounds, PathCommands, ResetData} from './common.js';
|
|
34
34
|
import {constrainNumber, createChild, createElement, createTextChild, ellipsify, Overlay} from './common.js';
|
package/package.json
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
const path = require('path');
|
|
12
12
|
|
|
13
13
|
const FRONT_END_DIRECTORY = path.join(__dirname, '..', '..', '..', 'front_end');
|
|
14
|
-
const UNITTESTS_DIRECTORY = path.join(__dirname, '..', '..', '..', 'test', 'unittests');
|
|
15
14
|
const INSPECTOR_OVERLAY_DIRECTORY = path.join(__dirname, '..', '..', '..', 'front_end', 'inspector_overlay');
|
|
16
15
|
const COMPONENT_DOCS_DIRECTORY = path.join(FRONT_END_DIRECTORY, 'ui', 'components', 'docs');
|
|
17
16
|
|
|
@@ -164,12 +163,6 @@ module.exports = {
|
|
|
164
163
|
});
|
|
165
164
|
}
|
|
166
165
|
|
|
167
|
-
const importingFileIsUnitTestFile = importingFileName.startsWith(UNITTESTS_DIRECTORY);
|
|
168
|
-
const importingFileIsComponentDocsFile = importingFileName.startsWith(COMPONENT_DOCS_DIRECTORY);
|
|
169
|
-
if (!importingFileName.startsWith(FRONT_END_DIRECTORY) && !importingFileIsUnitTestFile) {
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
166
|
if (importingFileName.startsWith(INSPECTOR_OVERLAY_DIRECTORY)) {
|
|
174
167
|
return;
|
|
175
168
|
}
|
|
@@ -180,15 +173,6 @@ module.exports = {
|
|
|
180
173
|
|
|
181
174
|
const exportingFileName = path.resolve(path.dirname(importingFileName), importPath);
|
|
182
175
|
|
|
183
|
-
if (importPath.replace(/\\/g, '/').includes('/front_end/') && !importingFileIsUnitTestFile &&
|
|
184
|
-
!importingFileIsComponentDocsFile) {
|
|
185
|
-
context.report({
|
|
186
|
-
node,
|
|
187
|
-
message:
|
|
188
|
-
'Invalid relative import: an import should not include the "front_end" directory. If you are in a unit test, you should import from the module entrypoint.',
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
176
|
if (importPathForErrorMessage.endsWith('platform/platform.js') &&
|
|
193
177
|
nodeSpecifiersSpecialImportsOnly(node.specifiers)) {
|
|
194
178
|
/* We allow direct importing of the ls and assertNotNull utility as it's so frequently used. */
|
|
@@ -248,21 +248,5 @@ ruleTester.run('es_modules_import', rule, {
|
|
|
248
248
|
'Incorrect cross-namespace import: "../third_party/marked/package/lib/marked.esm.js". Use "import * as Namespace from \'../namespace/namespace.js\';" instead. If the third_party dependency does not expose a single entrypoint, update es_modules_import.js to make it exempt.'
|
|
249
249
|
}],
|
|
250
250
|
},
|
|
251
|
-
{
|
|
252
|
-
code: 'import * as Marked from \'../../front_end/third_party/marked/package/lib/marked.esm.js\';',
|
|
253
|
-
filename: 'front_end/marked/marked.js',
|
|
254
|
-
errors: [{
|
|
255
|
-
message:
|
|
256
|
-
'Invalid relative import: an import should not include the "front_end" directory. If you are in a unit test, you should import from the module entrypoint.'
|
|
257
|
-
}],
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
code: 'import * as SDK from \'../../front_end/sdk/sdk.js\';',
|
|
261
|
-
filename: 'front_end/marked/marked.js',
|
|
262
|
-
errors: [{
|
|
263
|
-
message:
|
|
264
|
-
'Invalid relative import: an import should not include the "front_end" directory. If you are in a unit test, you should import from the module entrypoint.'
|
|
265
|
-
}],
|
|
266
|
-
}
|
|
267
251
|
]
|
|
268
252
|
});
|