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.
Files changed (109) hide show
  1. package/front_end/core/i18n/locales/af.json +455 -44
  2. package/front_end/core/i18n/locales/am.json +455 -44
  3. package/front_end/core/i18n/locales/ar.json +455 -44
  4. package/front_end/core/i18n/locales/as.json +455 -44
  5. package/front_end/core/i18n/locales/az.json +455 -44
  6. package/front_end/core/i18n/locales/be.json +456 -45
  7. package/front_end/core/i18n/locales/bg.json +455 -44
  8. package/front_end/core/i18n/locales/bn.json +455 -44
  9. package/front_end/core/i18n/locales/bs.json +455 -44
  10. package/front_end/core/i18n/locales/ca.json +457 -46
  11. package/front_end/core/i18n/locales/cs.json +458 -47
  12. package/front_end/core/i18n/locales/cy.json +455 -44
  13. package/front_end/core/i18n/locales/da.json +455 -44
  14. package/front_end/core/i18n/locales/de.json +455 -44
  15. package/front_end/core/i18n/locales/el.json +455 -44
  16. package/front_end/core/i18n/locales/en-GB.json +449 -38
  17. package/front_end/core/i18n/locales/en-US.json +7 -7
  18. package/front_end/core/i18n/locales/en-XL.json +7 -7
  19. package/front_end/core/i18n/locales/es-419.json +455 -44
  20. package/front_end/core/i18n/locales/es.json +455 -44
  21. package/front_end/core/i18n/locales/et.json +455 -44
  22. package/front_end/core/i18n/locales/eu.json +462 -51
  23. package/front_end/core/i18n/locales/fa.json +455 -44
  24. package/front_end/core/i18n/locales/fi.json +455 -44
  25. package/front_end/core/i18n/locales/fil.json +454 -43
  26. package/front_end/core/i18n/locales/fr-CA.json +455 -44
  27. package/front_end/core/i18n/locales/fr.json +456 -45
  28. package/front_end/core/i18n/locales/gl.json +455 -44
  29. package/front_end/core/i18n/locales/gu.json +456 -45
  30. package/front_end/core/i18n/locales/he.json +455 -44
  31. package/front_end/core/i18n/locales/hi.json +455 -44
  32. package/front_end/core/i18n/locales/hr.json +455 -44
  33. package/front_end/core/i18n/locales/hu.json +455 -44
  34. package/front_end/core/i18n/locales/hy.json +455 -44
  35. package/front_end/core/i18n/locales/id.json +455 -44
  36. package/front_end/core/i18n/locales/is.json +455 -44
  37. package/front_end/core/i18n/locales/it.json +502 -91
  38. package/front_end/core/i18n/locales/ja.json +456 -45
  39. package/front_end/core/i18n/locales/ka.json +455 -44
  40. package/front_end/core/i18n/locales/kk.json +456 -45
  41. package/front_end/core/i18n/locales/km.json +455 -44
  42. package/front_end/core/i18n/locales/kn.json +455 -44
  43. package/front_end/core/i18n/locales/ko.json +455 -44
  44. package/front_end/core/i18n/locales/ky.json +456 -45
  45. package/front_end/core/i18n/locales/lo.json +454 -43
  46. package/front_end/core/i18n/locales/lt.json +455 -44
  47. package/front_end/core/i18n/locales/lv.json +458 -47
  48. package/front_end/core/i18n/locales/mk.json +455 -44
  49. package/front_end/core/i18n/locales/ml.json +461 -50
  50. package/front_end/core/i18n/locales/mn.json +455 -44
  51. package/front_end/core/i18n/locales/mr.json +455 -44
  52. package/front_end/core/i18n/locales/ms.json +455 -44
  53. package/front_end/core/i18n/locales/my.json +456 -45
  54. package/front_end/core/i18n/locales/ne.json +456 -45
  55. package/front_end/core/i18n/locales/nl.json +532 -121
  56. package/front_end/core/i18n/locales/no.json +455 -44
  57. package/front_end/core/i18n/locales/or.json +455 -44
  58. package/front_end/core/i18n/locales/pa.json +455 -44
  59. package/front_end/core/i18n/locales/pl.json +455 -44
  60. package/front_end/core/i18n/locales/pt-PT.json +504 -93
  61. package/front_end/core/i18n/locales/pt.json +454 -43
  62. package/front_end/core/i18n/locales/ro.json +455 -44
  63. package/front_end/core/i18n/locales/ru.json +455 -44
  64. package/front_end/core/i18n/locales/si.json +455 -44
  65. package/front_end/core/i18n/locales/sk.json +456 -45
  66. package/front_end/core/i18n/locales/sl.json +455 -44
  67. package/front_end/core/i18n/locales/sq.json +455 -44
  68. package/front_end/core/i18n/locales/sr-Latn.json +455 -44
  69. package/front_end/core/i18n/locales/sr.json +455 -44
  70. package/front_end/core/i18n/locales/sv.json +456 -45
  71. package/front_end/core/i18n/locales/sw.json +455 -44
  72. package/front_end/core/i18n/locales/ta.json +456 -45
  73. package/front_end/core/i18n/locales/te.json +454 -43
  74. package/front_end/core/i18n/locales/th.json +455 -44
  75. package/front_end/core/i18n/locales/tr.json +455 -44
  76. package/front_end/core/i18n/locales/uk.json +455 -44
  77. package/front_end/core/i18n/locales/ur.json +455 -44
  78. package/front_end/core/i18n/locales/uz.json +455 -44
  79. package/front_end/core/i18n/locales/vi.json +455 -44
  80. package/front_end/core/i18n/locales/zh-HK.json +459 -48
  81. package/front_end/core/i18n/locales/zh-TW.json +457 -46
  82. package/front_end/core/i18n/locales/zh.json +460 -49
  83. package/front_end/core/i18n/locales/zu.json +455 -44
  84. package/front_end/core/protocol_client/InspectorBackend.ts +4 -0
  85. package/front_end/core/sdk/AccessibilityModel.ts +99 -78
  86. package/front_end/core/sdk/NetworkManager.ts +3 -0
  87. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
  88. package/front_end/entrypoints/main/MainImpl.ts +2 -2
  89. package/front_end/generated/InspectorBackendCommands.js +3 -1
  90. package/front_end/generated/protocol-mapping.d.ts +1 -0
  91. package/front_end/generated/protocol-proxy-api.d.ts +2 -0
  92. package/front_end/generated/protocol.d.ts +40 -0
  93. package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
  94. package/front_end/panels/application/BackForwardCacheView.ts +26 -26
  95. package/front_end/panels/elements/AccessibilityTreeUtils.ts +1 -1
  96. package/front_end/panels/elements/AccessibilityTreeView.ts +4 -3
  97. package/front_end/panels/sources/Plugin.ts +0 -3
  98. package/front_end/panels/sources/UISourceCodeFrame.ts +23 -49
  99. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  100. package/front_end/third_party/codemirror.next/package.json +1 -1
  101. package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -0
  102. package/front_end/ui/legacy/Dialog.ts +8 -3
  103. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -4
  104. package/inspector_overlay/css_grid_label_helpers.ts +1 -1
  105. package/inspector_overlay/highlight_common.ts +1 -1
  106. package/inspector_overlay/tool_highlight.ts +1 -1
  107. package/package.json +1 -1
  108. package/scripts/eslint_rules/lib/es_modules_import.js +0 -16
  109. 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.5",
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 (tabIndex >= 0 && (!exclusionSet || !exclusionSet.has(element))) {
141
- this.tabIndexMap.set(element, tabIndex);
142
- element.tabIndex = -1;
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
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.943182"
58
+ "version": "1.0.943709"
59
59
  }
@@ -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
  });