chrome-devtools-frontend 1.0.1544076 → 1.0.1545096

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 (67) hide show
  1. package/config/typescript/tsconfig.eslint.json +1 -0
  2. package/front_end/core/common/ParsedURL.ts +1 -1
  3. package/front_end/core/common/common.ts +0 -2
  4. package/front_end/core/protocol_client/CDPConnection.ts +3 -3
  5. package/front_end/core/protocol_client/DevToolsCDPConnection.ts +2 -1
  6. package/front_end/core/sdk/CSSMetadata.ts +17 -5
  7. package/front_end/core/sdk/NetworkManager.ts +6 -8
  8. package/front_end/core/sdk/NetworkRequest.ts +4 -0
  9. package/front_end/core/sdk/SDKModel.ts +4 -2
  10. package/front_end/core/sdk/TargetManager.ts +14 -15
  11. package/front_end/generated/Deprecation.ts +4 -0
  12. package/front_end/generated/InspectorBackendCommands.ts +2 -5
  13. package/front_end/generated/SupportedCSSProperties.js +0 -23
  14. package/front_end/generated/protocol-mapping.d.ts +0 -15
  15. package/front_end/generated/protocol-proxy-api.d.ts +0 -11
  16. package/front_end/generated/protocol.ts +2 -34
  17. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +2 -1
  18. package/front_end/panels/ai_assistance/components/UserActionRow.ts +2 -1
  19. package/front_end/panels/application/ApplicationPanelSidebar.ts +6 -7
  20. package/front_end/panels/application/{components/FrameDetailsView.ts → FrameDetailsView.ts} +134 -165
  21. package/front_end/panels/application/{components/OriginTrialTreeView.ts → OriginTrialTreeView.ts} +9 -9
  22. package/front_end/panels/application/application.ts +4 -0
  23. package/front_end/panels/application/components/StackTrace.ts +5 -3
  24. package/front_end/panels/application/components/components.ts +2 -4
  25. package/front_end/panels/application/{components/frameDetailsReportView.css → frameDetailsReportView.css} +5 -1
  26. package/front_end/panels/common/BadgeNotification.ts +2 -1
  27. package/front_end/panels/common/DOMLinkifier.ts +7 -2
  28. package/front_end/panels/common/GdpSignUpDialog.ts +2 -1
  29. package/front_end/panels/elements/ElementStatePaneWidget.ts +2 -1
  30. package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
  31. package/front_end/panels/elements/elements-meta.ts +0 -22
  32. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +3 -6
  33. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -1
  34. package/front_end/panels/settings/SettingsScreen.ts +3 -2
  35. package/front_end/panels/timeline/components/LiveMetricsView.ts +14 -5
  36. package/front_end/panels/timeline/components/MetricCard.ts +2 -2
  37. package/front_end/panels/timeline/components/insights/NodeLink.ts +2 -3
  38. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +2 -1
  39. package/front_end/panels/timeline/timeline-meta.ts +0 -10
  40. package/front_end/panels/timeline/timeline.ts +0 -2
  41. package/front_end/panels/whats_new/ReleaseNoteView.ts +2 -1
  42. package/front_end/panels/whats_new/WhatsNewImpl.ts +3 -2
  43. package/front_end/third_party/chromium/README.chromium +1 -1
  44. package/front_end/tsconfig.json +1 -0
  45. package/front_end/ui/components/buttons/Button.docs.ts +6 -5
  46. package/front_end/ui/components/snackbars/Snackbars.docs.ts +1 -1
  47. package/front_end/ui/components/spinners/Spinners.docs.ts +1 -1
  48. package/front_end/ui/components/survey_link/SurveyLink.docs.ts +2 -1
  49. package/front_end/ui/components/switch/Switch.docs.ts +1 -1
  50. package/front_end/ui/components/tooltips/Tooltip.docs.ts +3 -3
  51. package/front_end/ui/helpers/OpenInNewTab.ts +87 -0
  52. package/front_end/ui/helpers/helpers.ts +5 -0
  53. package/front_end/ui/legacy/ContextMenu.docs.ts +12 -11
  54. package/front_end/ui/legacy/RadioButton.docs.ts +1 -1
  55. package/front_end/ui/legacy/SelectMenu.docs.ts +1 -1
  56. package/front_end/ui/legacy/Slider.docs.ts +1 -1
  57. package/front_end/ui/legacy/UIUtils.ts +0 -33
  58. package/front_end/ui/legacy/XLink.ts +4 -4
  59. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +2 -1
  60. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +144 -143
  61. package/front_end/ui/legacy/components/utils/Linkifier.ts +2 -1
  62. package/mcp/tsconfig.json +16 -0
  63. package/package.json +2 -2
  64. package/front_end/core/common/Linkifier.ts +0 -55
  65. package/front_end/panels/timeline/CLSLinkifier.ts +0 -58
  66. /package/front_end/panels/application/{components/originTrialTokenRows.css → originTrialTokenRows.css} +0 -0
  67. /package/front_end/panels/application/{components/originTrialTreeView.css → originTrialTreeView.css} +0 -0
@@ -1,58 +0,0 @@
1
- // Copyright 2018 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
- /* eslint-disable @devtools/no-imperative-dom-api */
5
-
6
- import type * as Common from '../../core/common/common.js';
7
- import * as SDK from '../../core/sdk/sdk.js';
8
-
9
- interface Color {
10
- r: number;
11
- g: number;
12
- b: number;
13
- a: number;
14
- }
15
-
16
- export class CLSRect {
17
- x: number;
18
- y: number;
19
- width: number;
20
- height: number;
21
- color: Color;
22
- outlineColor: Color;
23
- constructor([x, y, width, height]: [number, number, number, number]) {
24
- this.x = x;
25
- this.y = y;
26
- this.width = width;
27
- this.height = height;
28
- this.color = {r: 238, g: 111, b: 99, a: 0.4};
29
- this.outlineColor = {r: 238, g: 111, b: 99, a: 0.7};
30
- }
31
- }
32
-
33
- let linkifierInstance: Linkifier;
34
-
35
- export class Linkifier implements Common.Linkifier.Linkifier {
36
- static instance(opts: {
37
- forceNew: boolean|null,
38
- } = {forceNew: null}): Linkifier {
39
- const {forceNew} = opts;
40
- if (!linkifierInstance || forceNew) {
41
- linkifierInstance = new Linkifier();
42
- }
43
-
44
- return linkifierInstance;
45
- }
46
-
47
- linkify(object: Object, _options?: Common.Linkifier.Options): Node {
48
- const link = document.createElement('span');
49
- const rect = (object as CLSRect);
50
- const {x, y, width, height} = rect;
51
- link.textContent = `Location: [${x},${y}], Size: [${width}x${height}]`;
52
-
53
- link.addEventListener('mouseover', () => SDK.OverlayModel.OverlayModel.highlightRect(rect));
54
- link.addEventListener('mouseleave', () => SDK.OverlayModel.OverlayModel.clearHighlight());
55
-
56
- return link;
57
- }
58
- }