chrome-devtools-frontend 1.0.1541169 → 1.0.1542501

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 (69) hide show
  1. package/docs/get_the_code.md +9 -0
  2. package/front_end/Tests.js +6 -1
  3. package/front_end/core/common/Settings.ts +140 -106
  4. package/front_end/core/host/UserMetrics.ts +5 -0
  5. package/front_end/core/sdk/IOModel.ts +1 -4
  6. package/front_end/core/sdk/ServerSentEventsProtocol.ts +4 -0
  7. package/front_end/entrypoints/main/MainImpl.ts +18 -7
  8. package/front_end/foundation/README.md +10 -0
  9. package/front_end/foundation/Universe.ts +21 -0
  10. package/front_end/foundation/foundation.ts +7 -0
  11. package/front_end/generated/SupportedCSSProperties.js +42 -42
  12. package/front_end/models/ai_assistance/BuiltInAi.ts +2 -1
  13. package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +44 -34
  14. package/front_end/models/ai_code_completion/AiCodeCompletion.ts +72 -31
  15. package/front_end/models/har/Importer.ts +14 -0
  16. package/front_end/models/issues_manager/IssuesManager.ts +0 -5
  17. package/front_end/models/javascript_metadata/NativeFunctions.js +0 -4
  18. package/front_end/models/trace/handlers/ScriptsHandler.ts +26 -0
  19. package/front_end/models/trace/types/TraceEvents.ts +1 -1
  20. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +117 -103
  21. package/front_end/panels/ai_assistance/components/ChatView.ts +7 -31
  22. package/front_end/panels/ai_assistance/components/MarkdownRendererWithCodeBlock.ts +1 -1
  23. package/front_end/panels/ai_assistance/components/PerformanceAgentMarkdownRenderer.ts +1 -1
  24. package/front_end/panels/ai_assistance/components/chatView.css +1 -1
  25. package/front_end/panels/console/ConsoleInsightTeaser.ts +5 -0
  26. package/front_end/panels/console/ConsolePrompt.ts +8 -1
  27. package/front_end/panels/sources/AiCodeCompletionPlugin.ts +17 -1
  28. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +4 -1
  29. package/front_end/third_party/chromium/README.chromium +1 -1
  30. package/front_end/third_party/puppeteer/README.chromium +2 -2
  31. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  32. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js +3 -1
  33. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/cdp/NetworkManager.js.map +1 -1
  34. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +2 -2
  35. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +2 -2
  36. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.d.ts +1 -1
  37. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/version.js +1 -1
  38. package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +4 -4
  39. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.d.ts.map +1 -1
  40. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js +3 -1
  41. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/cdp/NetworkManager.js.map +1 -1
  42. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +2 -2
  43. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +2 -2
  44. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.d.ts +1 -1
  45. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/version.js +1 -1
  46. package/front_end/third_party/puppeteer/package/package.json +1 -1
  47. package/front_end/third_party/puppeteer/package/src/cdp/NetworkManager.ts +3 -1
  48. package/front_end/third_party/puppeteer/package/src/revisions.ts +2 -2
  49. package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
  50. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +0 -4
  51. package/front_end/ui/components/markdown_view/MarkdownView.docs.ts +95 -0
  52. package/front_end/ui/components/markdown_view/MarkdownView.ts +6 -7
  53. package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +246 -13
  54. package/front_end/ui/components/text_editor/config.ts +1 -1
  55. package/front_end/ui/legacy/Widget.ts +13 -4
  56. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +43 -33
  57. package/front_end/ui/visual_logging/KnownContextValues.ts +12 -0
  58. package/mcp/mcp.ts +2 -0
  59. package/package.json +1 -1
  60. package/front_end/models/issues_manager/UserReidentificationIssue.ts +0 -72
  61. package/front_end/models/issues_manager/descriptions/userReidentificationBlocked.md +0 -5
  62. package/front_end/ui/components/docs/markdown_image/basic.html +0 -19
  63. package/front_end/ui/components/docs/markdown_image/basic.ts +0 -38
  64. package/front_end/ui/components/docs/markdown_link/basic.html +0 -17
  65. package/front_end/ui/components/docs/markdown_link/basic.ts +0 -19
  66. package/front_end/ui/components/docs/markdown_view/basic.html +0 -25
  67. package/front_end/ui/components/docs/markdown_view/basic.ts +0 -67
  68. package/front_end/ui/components/docs/markdown_view/code-block.html +0 -30
  69. package/front_end/ui/components/docs/markdown_view/code-block.ts +0 -71
@@ -368,6 +368,15 @@ out/Default/chrome --custom-devtools-frontend=file://$(realpath out/Default/gen/
368
368
  afterwards, which can be quite a bit faster than building and linking the full
369
369
  Chromium binary.
370
370
 
371
+ Alternatively you can use `npm start` from the DevTools sub folder (`third_party/devtools-frontend/src/`) with the browser set to `chromium`.
372
+ This will tell the command that you are in a Chromium checkout and try to find the correct browser executable path to resolve.
373
+ Or alternately you can use a `.env` file, see [set up here](#using-a-env-file-for-default-script-options).
374
+
375
+ ```bash
376
+ cd third_party/devtools-frontend/src/
377
+ npm start -- --browser=chromium
378
+ ```
379
+
371
380
  ### Testing
372
381
 
373
382
  To run the test suite, use `npm test` from within the DevTools front-end folder:
@@ -952,7 +952,12 @@
952
952
  }
953
953
 
954
954
  function gotPreferences(prefs) {
955
- Main.Main.instanceForTest.createSettings(prefs);
955
+ Common.Settings.Settings.instance({
956
+ forceNew: true,
957
+ ...Main.Main.instanceForTest.createSettingsStorage(prefs),
958
+ settingRegistrations: Common.SettingRegistration.getRegisteredSettings(),
959
+ runSettingsMigration: false,
960
+ });
956
961
 
957
962
  const localSetting = Common.Settings.Settings.instance().createLocalSetting('local', undefined);
958
963
  test.assertEquals('object', typeof localSetting.get());