chrome-devtools-frontend 1.0.944903 → 1.0.945884

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 (86) hide show
  1. package/config/gni/devtools_grd_files.gni +1 -0
  2. package/config/gni/devtools_image_files.gni +1 -0
  3. package/front_end/Images/src/circled_exclamation_icon.svg +3 -0
  4. package/front_end/core/host/InspectorFrontendHostAPI.ts +5 -5
  5. package/front_end/core/host/UserMetrics.ts +3 -1
  6. package/front_end/core/i18n/i18nImpl.ts +7 -4
  7. package/front_end/core/i18n/locales/en-US.json +9 -45
  8. package/front_end/core/i18n/locales/en-XL.json +9 -45
  9. package/front_end/core/sdk/CSSMetadata.ts +0 -1
  10. package/front_end/core/sdk/sdk-meta.ts +20 -8
  11. package/front_end/entrypoints/main/MainImpl.ts +6 -0
  12. package/front_end/generated/protocol.d.ts +0 -4
  13. package/front_end/models/emulation/EmulatedDevices.ts +2 -4
  14. package/front_end/models/persistence/IsolatedFileSystemManager.ts +6 -10
  15. package/front_end/models/timeline_model/TimelineJSProfile.ts +16 -3
  16. package/front_end/models/timeline_model/TimelineModel.ts +1 -0
  17. package/front_end/models/workspace_diff/WorkspaceDiff.ts +20 -6
  18. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  19. package/front_end/panels/application/BackForwardCacheStrings.ts +15 -75
  20. package/front_end/panels/application/BackForwardCacheView.ts +8 -1
  21. package/front_end/panels/changes/ChangesView.ts +8 -7
  22. package/front_end/panels/elements/StyleEditorWidget.ts +7 -7
  23. package/front_end/panels/elements/StylePropertyTreeElement.ts +8 -15
  24. package/front_end/panels/elements/StylesSidebarPane.ts +35 -9
  25. package/front_end/panels/emulation/DeviceModeView.ts +3 -0
  26. package/front_end/panels/help/ReleaseNoteText.ts +3 -1
  27. package/front_end/panels/network/NetworkItemView.ts +7 -1
  28. package/front_end/panels/profiler/heapProfiler.css +2 -5
  29. package/front_end/panels/timeline/TimelineController.ts +3 -0
  30. package/front_end/panels/webauthn/WebauthnPane.ts +31 -32
  31. package/front_end/third_party/acorn/README.chromium +2 -2
  32. package/front_end/third_party/acorn/acorn.ts +1 -1
  33. package/front_end/third_party/acorn/package/CHANGELOG.md +31 -1
  34. package/front_end/third_party/acorn/package/README.md +1 -1
  35. package/front_end/third_party/acorn/package/dist/acorn.d.ts +3 -0
  36. package/front_end/third_party/acorn/package/dist/acorn.js +772 -708
  37. package/front_end/third_party/acorn/package/dist/acorn.mjs +767 -703
  38. package/front_end/third_party/acorn/package/dist/bin.js +47 -21
  39. package/front_end/third_party/acorn/package/package.json +1 -1
  40. package/front_end/third_party/acorn-loose/README.chromium +2 -2
  41. package/front_end/third_party/acorn-loose/package/CHANGELOG.md +12 -0
  42. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js +27 -7
  43. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs +28 -8
  44. package/front_end/third_party/acorn-loose/package/package.json +2 -2
  45. package/front_end/third_party/i18n/i18n-impl.ts +1 -1
  46. package/front_end/ui/components/adorners/Adorner.ts +14 -14
  47. package/front_end/ui/components/buttons/Button.ts +133 -42
  48. package/front_end/ui/components/buttons/button.css +31 -0
  49. package/front_end/ui/components/data_grid/DataGrid.ts +131 -122
  50. package/front_end/ui/components/data_grid/DataGridController.ts +42 -42
  51. package/front_end/ui/components/diff_view/DiffView.ts +4 -4
  52. package/front_end/ui/components/docs/button/basic.html +3 -0
  53. package/front_end/ui/components/docs/button/basic.ts +58 -0
  54. package/front_end/ui/components/expandable_list/ExpandableList.ts +11 -11
  55. package/front_end/ui/components/icon_button/Icon.ts +24 -21
  56. package/front_end/ui/components/icon_button/IconButton.ts +31 -31
  57. package/front_end/ui/components/issue_counter/IssueCounter.ts +52 -52
  58. package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +42 -42
  59. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +67 -67
  60. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +22 -22
  61. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +36 -36
  62. package/front_end/ui/components/linear_memory_inspector/LinearMemoryNavigator.ts +19 -19
  63. package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +24 -32
  64. package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +52 -52
  65. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +21 -21
  66. package/front_end/ui/components/linear_memory_inspector/ValueInterpreterSettings.ts +6 -6
  67. package/front_end/ui/components/markdown_view/MarkdownImage.ts +14 -14
  68. package/front_end/ui/components/markdown_view/MarkdownLink.ts +8 -8
  69. package/front_end/ui/components/markdown_view/MarkdownView.ts +6 -6
  70. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +33 -33
  71. package/front_end/ui/components/report_view/ReportView.ts +18 -18
  72. package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +53 -53
  73. package/front_end/ui/components/settings/SettingCheckbox.ts +15 -15
  74. package/front_end/ui/components/survey_link/SurveyLink.ts +28 -28
  75. package/front_end/ui/components/text_editor/TextEditor.ts +55 -52
  76. package/front_end/ui/components/text_editor/javascript.ts +6 -6
  77. package/front_end/ui/components/text_prompt/TextPrompt.ts +19 -19
  78. package/front_end/ui/components/tree_outline/TreeOutline.ts +56 -56
  79. package/front_end/ui/legacy/Infobar.ts +9 -0
  80. package/front_end/ui/legacy/InspectorView.ts +1 -1
  81. package/front_end/ui/legacy/ListWidget.ts +2 -2
  82. package/front_end/ui/legacy/tabbedPane.css +1 -1
  83. package/inspector_overlay/main.ts +3 -0
  84. package/package.json +1 -1
  85. package/scripts/eslint_rules/lib/l10n_filename_matches.js +17 -4
  86. package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +21 -0
@@ -4,21 +4,44 @@ var path = require('path');
4
4
  var fs = require('fs');
5
5
  var acorn = require('./acorn.js');
6
6
 
7
- var infile, forceFile, silent = false, compact = false, tokenize = false;
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var acorn__namespace = /*#__PURE__*/_interopNamespace(acorn);
26
+
27
+ var inputFilePaths = [], forceFileName = false, fileMode = false, silent = false, compact = false, tokenize = false;
8
28
  var options = {};
9
29
 
10
30
  function help(status) {
11
31
  var print = (status === 0) ? console.log : console.error;
12
32
  print("usage: " + path.basename(process.argv[1]) + " [--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|...|--ecma2015|--ecma2016|--ecma2017|--ecma2018|...]");
13
- print(" [--tokenize] [--locations] [---allow-hash-bang] [--allow-await-outside-function] [--compact] [--silent] [--module] [--help] [--] [infile]");
33
+ print(" [--tokenize] [--locations] [---allow-hash-bang] [--allow-await-outside-function] [--compact] [--silent] [--module] [--help] [--] [<infile>...]");
14
34
  process.exit(status);
15
35
  }
16
36
 
17
37
  for (var i = 2; i < process.argv.length; ++i) {
18
38
  var arg = process.argv[i];
19
- if ((arg === "-" || arg[0] !== "-") && !infile) { infile = arg; }
20
- else if (arg === "--" && !infile && i + 2 === process.argv.length) { forceFile = infile = process.argv[++i]; }
21
- else if (arg === "--locations") { options.locations = true; }
39
+ if (arg[0] !== "-" || arg === "-") { inputFilePaths.push(arg); }
40
+ else if (arg === "--") {
41
+ inputFilePaths.push.apply(inputFilePaths, process.argv.slice(i + 1));
42
+ forceFileName = true;
43
+ break
44
+ } else if (arg === "--locations") { options.locations = true; }
22
45
  else if (arg === "--allow-hash-bang") { options.allowHashBang = true; }
23
46
  else if (arg === "--allow-await-outside-function") { options.allowAwaitOutsideFunction = true; }
24
47
  else if (arg === "--silent") { silent = true; }
@@ -35,31 +58,34 @@ for (var i = 2; i < process.argv.length; ++i) {
35
58
  }
36
59
  }
37
60
 
38
- function run(code) {
39
- var result;
61
+ function run(codeList) {
62
+ var result = [], fileIdx = 0;
40
63
  try {
41
- if (!tokenize) {
42
- result = acorn.parse(code, options);
43
- } else {
44
- result = [];
45
- var tokenizer = acorn.tokenizer(code, options), token;
46
- do {
47
- token = tokenizer.getToken();
48
- result.push(token);
49
- } while (token.type !== acorn.tokTypes.eof)
50
- }
64
+ codeList.forEach(function (code, idx) {
65
+ fileIdx = idx;
66
+ if (!tokenize) {
67
+ result = acorn__namespace.parse(code, options);
68
+ options.program = result;
69
+ } else {
70
+ var tokenizer = acorn__namespace.tokenizer(code, options), token;
71
+ do {
72
+ token = tokenizer.getToken();
73
+ result.push(token);
74
+ } while (token.type !== acorn__namespace.tokTypes.eof)
75
+ }
76
+ });
51
77
  } catch (e) {
52
- console.error(infile && infile !== "-" ? e.message.replace(/\(\d+:\d+\)$/, function (m) { return m.slice(0, 1) + infile + " " + m.slice(1); }) : e.message);
78
+ console.error(fileMode ? e.message.replace(/\(\d+:\d+\)$/, function (m) { return m.slice(0, 1) + inputFilePaths[fileIdx] + " " + m.slice(1); }) : e.message);
53
79
  process.exit(1);
54
80
  }
55
81
  if (!silent) { console.log(JSON.stringify(result, null, compact ? null : 2)); }
56
82
  }
57
83
 
58
- if (forceFile || infile && infile !== "-") {
59
- run(fs.readFileSync(infile, "utf8"));
84
+ if (fileMode = inputFilePaths.length && (forceFileName || !inputFilePaths.includes("-") || inputFilePaths.length !== 1)) {
85
+ run(inputFilePaths.map(function (path) { return fs.readFileSync(path, "utf8"); }));
60
86
  } else {
61
87
  var code = "";
62
88
  process.stdin.resume();
63
89
  process.stdin.on("data", function (chunk) { return code += chunk; });
64
- process.stdin.on("end", function () { return run(code); });
90
+ process.stdin.on("end", function () { return run([code]); });
65
91
  }
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "./package.json": "./package.json"
18
18
  },
19
- "version": "8.4.1",
19
+ "version": "8.6.0",
20
20
  "engines": {"node": ">=0.4.0"},
21
21
  "maintainers": [
22
22
  {
@@ -1,7 +1,7 @@
1
1
  Name: An error-tolerant JavaScript parser written in JavaScript.
2
2
  Short Name: acorn-loose
3
3
  URL: https://github.com/acornjs/acorn
4
- Version: 8.1.0
4
+ Version: 8.2.1
5
5
  License: MIT
6
6
  License File: LICENSE
7
7
  Security Critical: no
@@ -14,7 +14,7 @@ This parser will parse any text into an ESTree syntax tree that is a reasonable
14
14
  It will, to recover from missing brackets, treat whitespace as significant, which has the downside that it might mis-parse a valid but weirdly indented file. It is recommended to always try a parse with the regular acorn parser first, and only fall back to this parser when that one finds syntax errors.
15
15
 
16
16
  ```bash
17
- wget -qO- https://registry.npmjs.org/acorn-loose/-/acorn-loose-8.1.0.tgz | tar xzf -
17
+ wget -qO- https://registry.npmjs.org/acorn-loose/-/acorn-loose-8.2.1.tgz | tar xzf -
18
18
  ```
19
19
 
20
20
  Local Modifications:
@@ -1,3 +1,15 @@
1
+ ## 8.2.1 (2021-09-06)
2
+
3
+ ### Bug fixes
4
+
5
+ Depend on the proper version of acorn.
6
+
7
+ ## 8.2.0 (2021-09-06)
8
+
9
+ ### New features
10
+
11
+ Add support for ES2022 class static blocks.
12
+
1
13
  ## 8.1.0 (2021-04-24)
2
14
 
3
15
  ### New features
@@ -597,16 +597,21 @@
597
597
  var isGenerator = false;
598
598
  var isAsync = false;
599
599
  var kind = "method";
600
+ var isStatic = false;
600
601
 
601
- // Parse modifiers
602
- node.static = false;
603
602
  if (this.eatContextual("static")) {
603
+ // Parse static init block
604
+ if (ecmaVersion >= 13 && this.eat(acorn.tokTypes.braceL)) {
605
+ this.parseClassStaticBlock(node);
606
+ return node
607
+ }
604
608
  if (this.isClassElementNameStart() || this.toks.type === acorn.tokTypes.star) {
605
- node.static = true;
609
+ isStatic = true;
606
610
  } else {
607
611
  keyName = "static";
608
612
  }
609
613
  }
614
+ node.static = isStatic;
610
615
  if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {
611
616
  if ((this.isClassElementNameStart() || this.toks.type === acorn.tokTypes.star) && !this.canInsertSemicolon()) {
612
617
  isAsync = true;
@@ -686,6 +691,18 @@
686
691
  return node
687
692
  };
688
693
 
694
+ lp$1.parseClassStaticBlock = function(node) {
695
+ var blockIndent = this.curIndent, line = this.curLineStart;
696
+ node.body = [];
697
+ this.pushCx();
698
+ while (!this.closes(acorn.tokTypes.braceR, blockIndent, line, true))
699
+ { node.body.push(this.parseStatement()); }
700
+ this.popCx();
701
+ this.eat(acorn.tokTypes.braceR);
702
+
703
+ return this.finishNode(node, "StaticBlock")
704
+ };
705
+
689
706
  lp$1.isClassElementNameStart = function() {
690
707
  return this.toks.isClassElementNameStart()
691
708
  };
@@ -952,8 +969,8 @@
952
969
  lp$2.parseMaybeUnary = function(sawUnary) {
953
970
  var start = this.storeCurrentPos(), expr;
954
971
  if (this.options.ecmaVersion >= 8 && this.toks.isContextual("await") &&
955
- (this.inAsync || (!this.inFunction && this.options.allowAwaitOutsideFunction))
956
- ) {
972
+ (this.inAsync || (this.toks.inModule && this.options.ecmaVersion >= 13) ||
973
+ (!this.inFunction && this.options.allowAwaitOutsideFunction))) {
957
974
  expr = this.parseAwait();
958
975
  sawUnary = true;
959
976
  } else if (this.tok.type.prefix) {
@@ -1084,8 +1101,10 @@
1084
1101
  var id = this.parseIdent();
1085
1102
  var isAsync = false;
1086
1103
  if (id.name === "async" && !this.canInsertSemicolon()) {
1087
- if (this.eat(acorn.tokTypes._function))
1088
- { return this.parseFunction(this.startNodeAt(start), false, true) }
1104
+ if (this.eat(acorn.tokTypes._function)) {
1105
+ this.toks.overrideContext(acorn.tokContexts.f_expr);
1106
+ return this.parseFunction(this.startNodeAt(start), false, true)
1107
+ }
1089
1108
  if (this.tok.type === acorn.tokTypes.name) {
1090
1109
  id = this.parseIdent();
1091
1110
  isAsync = true;
@@ -1142,6 +1161,7 @@
1142
1161
  return this.finishNode(node, "ArrayExpression")
1143
1162
 
1144
1163
  case acorn.tokTypes.braceL:
1164
+ this.toks.overrideContext(acorn.tokContexts.b_expr);
1145
1165
  return this.parseObj()
1146
1166
 
1147
1167
  case acorn.tokTypes._class:
@@ -1,4 +1,4 @@
1
- import { tokTypes, SourceLocation, Node, lineBreak, isNewLine, Parser, Token, getLineInfo, lineBreakG, defaultOptions } from '../../../acorn/acorn.js';
1
+ import { tokTypes, SourceLocation, Node, lineBreak, isNewLine, Parser, Token, getLineInfo, lineBreakG, tokContexts, defaultOptions } from '../../../acorn/acorn.js';
2
2
 
3
3
  var dummyValue = "✖";
4
4
 
@@ -593,16 +593,21 @@ lp$1.parseClassElement = function() {
593
593
  var isGenerator = false;
594
594
  var isAsync = false;
595
595
  var kind = "method";
596
+ var isStatic = false;
596
597
 
597
- // Parse modifiers
598
- node.static = false;
599
598
  if (this.eatContextual("static")) {
599
+ // Parse static init block
600
+ if (ecmaVersion >= 13 && this.eat(tokTypes.braceL)) {
601
+ this.parseClassStaticBlock(node);
602
+ return node
603
+ }
600
604
  if (this.isClassElementNameStart() || this.toks.type === tokTypes.star) {
601
- node.static = true;
605
+ isStatic = true;
602
606
  } else {
603
607
  keyName = "static";
604
608
  }
605
609
  }
610
+ node.static = isStatic;
606
611
  if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {
607
612
  if ((this.isClassElementNameStart() || this.toks.type === tokTypes.star) && !this.canInsertSemicolon()) {
608
613
  isAsync = true;
@@ -682,6 +687,18 @@ lp$1.parseClassElement = function() {
682
687
  return node
683
688
  };
684
689
 
690
+ lp$1.parseClassStaticBlock = function(node) {
691
+ var blockIndent = this.curIndent, line = this.curLineStart;
692
+ node.body = [];
693
+ this.pushCx();
694
+ while (!this.closes(tokTypes.braceR, blockIndent, line, true))
695
+ { node.body.push(this.parseStatement()); }
696
+ this.popCx();
697
+ this.eat(tokTypes.braceR);
698
+
699
+ return this.finishNode(node, "StaticBlock")
700
+ };
701
+
685
702
  lp$1.isClassElementNameStart = function() {
686
703
  return this.toks.isClassElementNameStart()
687
704
  };
@@ -948,8 +965,8 @@ lp$2.parseExprOp = function(left, start, minPrec, noIn, indent, line) {
948
965
  lp$2.parseMaybeUnary = function(sawUnary) {
949
966
  var start = this.storeCurrentPos(), expr;
950
967
  if (this.options.ecmaVersion >= 8 && this.toks.isContextual("await") &&
951
- (this.inAsync || (!this.inFunction && this.options.allowAwaitOutsideFunction))
952
- ) {
968
+ (this.inAsync || (this.toks.inModule && this.options.ecmaVersion >= 13) ||
969
+ (!this.inFunction && this.options.allowAwaitOutsideFunction))) {
953
970
  expr = this.parseAwait();
954
971
  sawUnary = true;
955
972
  } else if (this.tok.type.prefix) {
@@ -1080,8 +1097,10 @@ lp$2.parseExprAtom = function() {
1080
1097
  var id = this.parseIdent();
1081
1098
  var isAsync = false;
1082
1099
  if (id.name === "async" && !this.canInsertSemicolon()) {
1083
- if (this.eat(tokTypes._function))
1084
- { return this.parseFunction(this.startNodeAt(start), false, true) }
1100
+ if (this.eat(tokTypes._function)) {
1101
+ this.toks.overrideContext(tokContexts.f_expr);
1102
+ return this.parseFunction(this.startNodeAt(start), false, true)
1103
+ }
1085
1104
  if (this.tok.type === tokTypes.name) {
1086
1105
  id = this.parseIdent();
1087
1106
  isAsync = true;
@@ -1138,6 +1157,7 @@ lp$2.parseExprAtom = function() {
1138
1157
  return this.finishNode(node, "ArrayExpression")
1139
1158
 
1140
1159
  case tokTypes.braceL:
1160
+ this.toks.overrideContext(tokContexts.b_expr);
1141
1161
  return this.parseObj()
1142
1162
 
1143
1163
  case tokTypes._class:
@@ -15,10 +15,10 @@
15
15
  ],
16
16
  "./package.json": "./package.json"
17
17
  },
18
- "version": "8.1.0",
18
+ "version": "8.2.1",
19
19
  "engines": {"node": ">=0.4.0"},
20
20
  "dependencies": {
21
- "acorn": "^8.2.0"
21
+ "acorn": "^8.5.0"
22
22
  },
23
23
  "maintainers": [
24
24
  {
@@ -35,7 +35,7 @@ export class I18n {
35
35
  * - the default locale if no match is found
36
36
  */
37
37
  lookupClosestSupportedLocale(locale: Intl.UnicodeBCP47LocaleIdentifier): Intl.UnicodeBCP47LocaleIdentifier {
38
- // @ts-ignore TODO(crbug.com/1163928) Wait for Intl support.
38
+ // @ts-expect-error https://github.com/microsoft/TypeScript/issues/29129
39
39
  const canonicalLocale: string = Intl.getCanonicalLocales(locale)[0];
40
40
 
41
41
  const localeParts = canonicalLocale.split('-');
@@ -19,18 +19,18 @@ export class Adorner extends HTMLElement {
19
19
  static readonly litTagName = LitHtml.literal`devtools-adorner`;
20
20
  name = '';
21
21
 
22
- private readonly shadow = this.attachShadow({mode: 'open'});
23
- private isToggle = false;
24
- private ariaLabelDefault?: string;
25
- private ariaLabelActive?: string;
26
- private content?: HTMLElement;
22
+ readonly #shadow = this.attachShadow({mode: 'open'});
23
+ #isToggle = false;
24
+ #ariaLabelDefault?: string;
25
+ #ariaLabelActive?: string;
26
+ #content?: HTMLElement;
27
27
 
28
28
  set data(data: AdornerData) {
29
29
  this.name = data.name;
30
30
  data.content.slot = 'content';
31
- this.content?.remove();
31
+ this.#content?.remove();
32
32
  this.append(data.content);
33
- this.content = data.content;
33
+ this.#content = data.content;
34
34
  this.render();
35
35
  }
36
36
 
@@ -38,7 +38,7 @@ export class Adorner extends HTMLElement {
38
38
  if (!this.getAttribute('aria-label')) {
39
39
  this.setAttribute('aria-label', this.name);
40
40
  }
41
- this.shadow.adoptedStyleSheets = [adornerStyles];
41
+ this.#shadow.adoptedStyleSheets = [adornerStyles];
42
42
  }
43
43
 
44
44
  isActive(): boolean {
@@ -50,12 +50,12 @@ export class Adorner extends HTMLElement {
50
50
  * an active state; pass `false` to force-set an inactive state.
51
51
  */
52
52
  toggle(forceActiveState?: boolean): void {
53
- if (!this.isToggle) {
53
+ if (!this.#isToggle) {
54
54
  return;
55
55
  }
56
56
  const shouldBecomeActive = forceActiveState === undefined ? !this.isActive() : forceActiveState;
57
57
  this.setAttribute('aria-pressed', Boolean(shouldBecomeActive).toString());
58
- this.setAttribute('aria-label', (shouldBecomeActive ? this.ariaLabelActive : this.ariaLabelDefault) || this.name);
58
+ this.setAttribute('aria-label', (shouldBecomeActive ? this.#ariaLabelActive : this.#ariaLabelDefault) || this.name);
59
59
  }
60
60
 
61
61
  show(): void {
@@ -78,9 +78,9 @@ export class Adorner extends HTMLElement {
78
78
  }): void {
79
79
  const {isToggle = false, shouldPropagateOnKeydown = false, ariaLabelDefault, ariaLabelActive} = options;
80
80
 
81
- this.isToggle = isToggle;
82
- this.ariaLabelDefault = ariaLabelDefault;
83
- this.ariaLabelActive = ariaLabelActive;
81
+ this.#isToggle = isToggle;
82
+ this.#ariaLabelDefault = ariaLabelDefault;
83
+ this.#ariaLabelActive = ariaLabelActive;
84
84
  this.setAttribute('aria-label', ariaLabelDefault);
85
85
 
86
86
  if (isToggle) {
@@ -111,7 +111,7 @@ export class Adorner extends HTMLElement {
111
111
  // clang-format off
112
112
  render(html`
113
113
  <slot name="content"></slot>
114
- `, this.shadow, {
114
+ `, this.#shadow, {
115
115
  host: this,
116
116
  });
117
117
  }