chrome-devtools-frontend 1.0.943182 → 1.0.944903
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/config/gni/devtools_grd_files.gni +3 -0
- package/front_end/core/common/ParsedURL.ts +1 -1
- package/front_end/core/host/InspectorFrontendHostAPI.ts +5 -5
- package/front_end/core/host/UserMetrics.ts +0 -1
- 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 +10 -34
- package/front_end/core/i18n/locales/en-XL.json +22 -46
- 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/protocol_client/NodeURL.ts +1 -0
- package/front_end/core/sdk/AccessibilityModel.ts +99 -78
- package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -0
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -3
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -3
- package/front_end/core/sdk/Cookie.ts +17 -0
- package/front_end/core/sdk/CookieModel.ts +1 -0
- package/front_end/core/sdk/DebuggerModel.ts +5 -4
- package/front_end/core/sdk/NetworkManager.ts +6 -0
- package/front_end/core/sdk/NetworkRequest.ts +2 -2
- package/front_end/core/sdk/OverlayModel.ts +0 -9
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/Script.ts +2 -7
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +13 -12
- package/front_end/core/sdk/sdk-meta.ts +0 -26
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +0 -13
- package/front_end/entrypoints/main/MainImpl.ts +2 -4
- 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/models/bindings/BreakpointManager.ts +3 -4
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -9
- package/front_end/models/bindings/ResourceMapping.ts +1 -2
- package/front_end/models/bindings/ResourceScriptMapping.ts +3 -11
- package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
- package/front_end/models/formatter/SourceFormatter.ts +0 -15
- package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +10 -6
- package/front_end/models/persistence/PersistenceActions.ts +4 -1
- package/front_end/models/persistence/PlatformFileSystem.ts +3 -4
- package/front_end/models/text_utils/ContentProvider.ts +1 -2
- package/front_end/models/text_utils/StaticContentProvider.ts +2 -3
- package/front_end/models/timeline_model/TimelineJSProfile.ts +3 -16
- package/front_end/models/timeline_model/TimelineModel.ts +0 -1
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/panels/animation/animationTimeline.css +2 -0
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +1 -1
- package/front_end/panels/application/BackForwardCacheView.ts +26 -26
- package/front_end/panels/application/ReportingApiView.ts +15 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +63 -4
- package/front_end/panels/application/components/FrameDetailsView.ts +21 -34
- package/front_end/panels/console/ConsolePinPane.ts +1 -0
- package/front_end/panels/console/ConsolePrompt.ts +121 -171
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +2 -2
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +98 -67
- package/front_end/panels/elements/AccessibilityTreeView.ts +76 -125
- package/front_end/panels/elements/ElementsPanel.ts +6 -7
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
- package/front_end/panels/elements/StyleEditorWidget.ts +13 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +29 -19
- package/front_end/panels/elements/StylePropertyTreeElement.ts +7 -4
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +27 -3
- package/front_end/panels/network/NetworkDataGridNode.ts +5 -1
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/Plugin.ts +0 -3
- package/front_end/panels/sources/UISourceCodeFrame.ts +23 -50
- package/front_end/panels/timeline/TimelineController.ts +0 -3
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
- package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
- package/front_end/services/window_bounds/WindowBoundsService.ts +27 -0
- package/front_end/services/window_bounds/window_bounds.ts +9 -0
- package/front_end/third_party/codemirror.next/bundle.ts +4 -3
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +39 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +3 -3
- package/front_end/third_party/lit-html/README.chromium +2 -2
- package/front_end/third_party/lit-html/package/CHANGELOG.md +216 -28
- package/front_end/third_party/lit-html/package/LICENSE +9 -9
- package/front_end/third_party/lit-html/package/README.md +12 -162
- package/front_end/third_party/lit-html/package/async-directive.d.ts +23 -54
- package/front_end/third_party/lit-html/package/async-directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/async-directive.js +2 -7
- package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts +23 -54
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.js +44 -194
- package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts +6 -5
- package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive-helpers.js +25 -9
- package/front_end/third_party/lit-html/package/development/directive-helpers.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive.d.ts +3 -16
- package/front_end/third_party/lit-html/package/development/directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive.js +6 -1
- package/front_end/third_party/lit-html/package/development/directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts +7 -14
- package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-append.js +17 -58
- package/front_end/third_party/lit-html/package/development/directives/async-append.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts +9 -14
- package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-replace.js +57 -37
- package/front_end/third_party/lit-html/package/development/directives/async-replace.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/cache.d.ts +2 -3
- package/front_end/third_party/lit-html/package/development/directives/cache.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/cache.js +4 -6
- package/front_end/third_party/lit-html/package/development/directives/cache.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts +2 -2
- package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/class-map.js +17 -7
- package/front_end/third_party/lit-html/package/development/directives/class-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/guard.d.ts +3 -2
- package/front_end/third_party/lit-html/package/development/directives/guard.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/guard.js +3 -2
- package/front_end/third_party/lit-html/package/development/directives/guard.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/live.d.ts +4 -3
- package/front_end/third_party/lit-html/package/development/directives/live.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/live.js +5 -7
- package/front_end/third_party/lit-html/package/development/directives/live.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts +58 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js +85 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/ref.d.ts +14 -11
- package/front_end/third_party/lit-html/package/development/directives/ref.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/ref.js +13 -11
- package/front_end/third_party/lit-html/package/development/directives/ref.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts +8 -4
- package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/repeat.js +23 -9
- package/front_end/third_party/lit-html/package/development/directives/repeat.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts +1 -2
- package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/style-map.js +1 -2
- package/front_end/third_party/lit-html/package/development/directives/style-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -2
- package/front_end/third_party/lit-html/package/development/directives/template-content.js +1 -2
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts +6 -4
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js +7 -5
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts +4 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js +3 -0
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/until.d.ts +12 -8
- package/front_end/third_party/lit-html/package/development/directives/until.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/until.js +63 -23
- package/front_end/third_party/lit-html/package/development/directives/until.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.js +9 -8
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts +81 -136
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.js +249 -76
- package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts +1 -41
- package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/polyfill-support.js +40 -21
- package/front_end/third_party/lit-html/package/development/polyfill-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts +12 -10
- package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/private-ssr-support.js +11 -3
- package/front_end/third_party/lit-html/package/development/private-ssr-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.js +6 -5
- package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
- package/front_end/third_party/lit-html/package/directive-helpers.d.ts +6 -5
- package/front_end/third_party/lit-html/package/directive-helpers.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directive-helpers.js +2 -2
- package/front_end/third_party/lit-html/package/directive-helpers.js.map +1 -1
- package/front_end/third_party/lit-html/package/directive.d.ts +3 -16
- package/front_end/third_party/lit-html/package/directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directive.js +1 -1
- package/front_end/third_party/lit-html/package/directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-append.d.ts +7 -14
- package/front_end/third_party/lit-html/package/directives/async-append.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-append.js +2 -6
- package/front_end/third_party/lit-html/package/directives/async-append.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-replace.d.ts +9 -14
- package/front_end/third_party/lit-html/package/directives/async-replace.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-replace.js +2 -5
- package/front_end/third_party/lit-html/package/directives/async-replace.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/cache.d.ts +2 -3
- package/front_end/third_party/lit-html/package/directives/cache.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/cache.js +2 -5
- package/front_end/third_party/lit-html/package/directives/cache.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/class-map.d.ts +2 -2
- package/front_end/third_party/lit-html/package/directives/class-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/class-map.js +2 -4
- package/front_end/third_party/lit-html/package/directives/class-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.d.ts +3 -2
- package/front_end/third_party/lit-html/package/directives/guard.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.js +2 -4
- package/front_end/third_party/lit-html/package/directives/guard.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/live.d.ts +4 -3
- package/front_end/third_party/lit-html/package/directives/live.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/live.js +1 -4
- package/front_end/third_party/lit-html/package/directives/live.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts +58 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.js +7 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/ref.d.ts +14 -11
- package/front_end/third_party/lit-html/package/directives/ref.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/ref.js +2 -5
- package/front_end/third_party/lit-html/package/directives/ref.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.d.ts +8 -4
- package/front_end/third_party/lit-html/package/directives/repeat.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.js +2 -5
- package/front_end/third_party/lit-html/package/directives/repeat.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.d.ts +1 -2
- package/front_end/third_party/lit-html/package/directives/style-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.js +2 -4
- package/front_end/third_party/lit-html/package/directives/style-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -2
- package/front_end/third_party/lit-html/package/directives/template-content.js +2 -4
- package/front_end/third_party/lit-html/package/directives/template-content.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts +6 -4
- package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js +2 -4
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts +4 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/until.d.ts +12 -8
- package/front_end/third_party/lit-html/package/directives/until.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/until.js +2 -6
- package/front_end/third_party/lit-html/package/directives/until.js.map +1 -1
- package/front_end/third_party/lit-html/package/experimental-hydrate.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/experimental-hydrate.js +2 -5
- package/front_end/third_party/lit-html/package/experimental-hydrate.js.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.d.ts +81 -136
- package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/package.json +75 -24
- package/front_end/third_party/lit-html/package/polyfill-support.d.ts +1 -41
- package/front_end/third_party/lit-html/package/polyfill-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/polyfill-support.js +1 -1
- package/front_end/third_party/lit-html/package/polyfill-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.d.ts +12 -10
- package/front_end/third_party/lit-html/package/private-ssr-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.js +2 -2
- package/front_end/third_party/lit-html/package/private-ssr-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/static.js +1 -1
- package/front_end/third_party/lit-html/package/static.js.map +1 -1
- package/front_end/third_party/marked/README.chromium +2 -2
- package/front_end/third_party/marked/marked.ts +2 -2
- package/front_end/third_party/marked/package/README.md +7 -1
- package/front_end/third_party/marked/package/bin/marked.js +214 -0
- package/front_end/third_party/marked/package/lib/marked.cjs +2907 -0
- package/front_end/third_party/marked/package/lib/marked.esm.d.ts +1 -3
- package/front_end/third_party/marked/package/lib/marked.esm.js +627 -586
- package/front_end/third_party/marked/package/lib/marked.umd.js +2913 -0
- package/front_end/third_party/marked/package/man/marked.1 +5 -24
- package/front_end/third_party/marked/package/man/marked.1.txt +21 -31
- package/front_end/third_party/marked/package/marked.min.js +1 -1
- package/front_end/third_party/marked/package/package.json +41 -32
- package/front_end/third_party/marked/package/src/Lexer.js +109 -108
- package/front_end/third_party/marked/package/src/Parser.js +38 -15
- package/front_end/third_party/marked/package/src/Renderer.js +5 -5
- package/front_end/third_party/marked/package/src/Slugger.js +2 -2
- package/front_end/third_party/marked/package/src/TextRenderer.js +2 -2
- package/front_end/third_party/marked/package/src/Tokenizer.js +215 -190
- package/front_end/third_party/marked/package/src/defaults.js +6 -9
- package/front_end/third_party/marked/package/src/helpers.js +16 -27
- package/front_end/third_party/marked/package/src/marked.js +146 -63
- package/front_end/third_party/marked/package/src/rules.js +20 -45
- package/front_end/third_party/wasmparser/README.chromium +2 -2
- package/front_end/third_party/wasmparser/package/.github/workflows/main.yml +47 -0
- package/front_end/third_party/wasmparser/package/CHANGELOG.md +12 -0
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +53 -53
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +53 -53
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/package.json +1 -1
- package/front_end/third_party/wasmparser/package/src/WasmParser.ts +53 -53
- package/front_end/ui/components/text_editor/TextEditor.ts +29 -0
- package/front_end/ui/components/text_editor/config.ts +36 -14
- package/front_end/ui/components/text_editor/javascript.ts +14 -9
- package/front_end/ui/components/text_editor/theme.ts +29 -4
- 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/ViewManager.ts +6 -0
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +20 -0
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +6 -4
- package/front_end/ui/legacy/components/utils/Linkifier.ts +49 -79
- package/front_end/ui/legacy/themeColors.css +2 -0
- 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
|
@@ -70,13 +70,11 @@ export class UISourceCodeFrame extends
|
|
|
70
70
|
SourceFrame.SourceFrame.SourceFrameImpl) {
|
|
71
71
|
private uiSourceCodeInternal: Workspace.UISourceCode.UISourceCode;
|
|
72
72
|
private muteSourceCodeEvents: boolean;
|
|
73
|
-
private isSettingContent: boolean;
|
|
74
73
|
private persistenceBinding: Persistence.Persistence.PersistenceBinding|null;
|
|
75
74
|
private uiSourceCodeEventListeners: Common.EventTarget.EventDescriptor[];
|
|
76
75
|
private messageAndDecorationListeners: Common.EventTarget.EventDescriptor[];
|
|
77
76
|
private readonly boundOnBindingChanged: () => void;
|
|
78
77
|
private plugins: Plugin[] = [];
|
|
79
|
-
private pluginsLoaded = false;
|
|
80
78
|
private readonly errorPopoverHelper: UI.PopoverHelper.PopoverHelper;
|
|
81
79
|
|
|
82
80
|
constructor(uiSourceCode: Workspace.UISourceCode.UISourceCode) {
|
|
@@ -84,7 +82,6 @@ export class UISourceCodeFrame extends
|
|
|
84
82
|
this.uiSourceCodeInternal = uiSourceCode;
|
|
85
83
|
|
|
86
84
|
this.muteSourceCodeEvents = false;
|
|
87
|
-
this.isSettingContent = false;
|
|
88
85
|
|
|
89
86
|
this.persistenceBinding = Persistence.Persistence.PersistenceImpl.instance().binding(uiSourceCode);
|
|
90
87
|
|
|
@@ -162,27 +159,24 @@ export class UISourceCodeFrame extends
|
|
|
162
159
|
}
|
|
163
160
|
|
|
164
161
|
setUISourceCode(uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
|
|
165
|
-
|
|
166
|
-
this.uiSourceCodeInternal
|
|
167
|
-
|
|
162
|
+
const loaded = uiSourceCode.contentLoaded() ? Promise.resolve() : uiSourceCode.requestContent();
|
|
163
|
+
const startUISourceCode = this.uiSourceCodeInternal;
|
|
164
|
+
loaded.then(() => {
|
|
165
|
+
if (this.uiSourceCodeInternal !== startUISourceCode) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
this.unloadUISourceCode();
|
|
169
|
+
this.uiSourceCodeInternal = uiSourceCode;
|
|
168
170
|
if (uiSourceCode.workingCopy() !== this.textEditor.state.doc.toString()) {
|
|
169
|
-
this.
|
|
171
|
+
this.setContent(uiSourceCode.workingCopy());
|
|
172
|
+
} else {
|
|
173
|
+
this.reloadPlugins();
|
|
170
174
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
if (this.uiSourceCodeInternal !== uiSourceCode) {
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
if (uiSourceCode.workingCopy() !== this.textEditor.state.doc.toString()) {
|
|
177
|
-
this.innerSetContent(uiSourceCode.workingCopy());
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
this.initializeUISourceCode();
|
|
175
|
+
this.initializeUISourceCode();
|
|
176
|
+
}, console.error);
|
|
182
177
|
}
|
|
183
178
|
|
|
184
179
|
private unloadUISourceCode(): void {
|
|
185
|
-
this.disposePlugins();
|
|
186
180
|
Common.EventTarget.removeEventListeners(this.messageAndDecorationListeners);
|
|
187
181
|
Common.EventTarget.removeEventListeners(this.uiSourceCodeEventListeners);
|
|
188
182
|
this.uiSourceCodeInternal.removeWorkingCopyGetter();
|
|
@@ -212,9 +206,6 @@ export class UISourceCodeFrame extends
|
|
|
212
206
|
wasShown(): void {
|
|
213
207
|
super.wasShown();
|
|
214
208
|
this.setEditable(this.canEditSourceInternal());
|
|
215
|
-
for (const plugin of this.plugins) {
|
|
216
|
-
plugin.wasShown();
|
|
217
|
-
}
|
|
218
209
|
}
|
|
219
210
|
|
|
220
211
|
willHide(): void {
|
|
@@ -277,16 +268,12 @@ export class UISourceCodeFrame extends
|
|
|
277
268
|
|
|
278
269
|
async setContent(content: string): Promise<void> {
|
|
279
270
|
this.disposePlugins();
|
|
280
|
-
this.
|
|
271
|
+
this.loadPlugins();
|
|
281
272
|
await super.setContent(content);
|
|
282
|
-
Common.EventTarget.fireEvent('source-file-loaded', this.uiSourceCodeInternal.displayName(true));
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
protected editorInitialized(): void {
|
|
286
|
-
super.editorInitialized();
|
|
287
273
|
for (const plugin of this.plugins) {
|
|
288
274
|
plugin.editorInitialized(this.textEditor);
|
|
289
275
|
}
|
|
276
|
+
Common.EventTarget.fireEvent('source-file-loaded', this.uiSourceCodeInternal.displayName(true));
|
|
290
277
|
}
|
|
291
278
|
|
|
292
279
|
private allMessages(): Set<Workspace.UISourceCode.Message> {
|
|
@@ -302,9 +289,6 @@ export class UISourceCodeFrame extends
|
|
|
302
289
|
const wasPretty = this.pretty;
|
|
303
290
|
super.onTextChanged();
|
|
304
291
|
this.errorPopoverHelper.hidePopover();
|
|
305
|
-
if (this.isSettingContent) {
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
292
|
SourcesPanel.instance().updateLastModificationTime();
|
|
309
293
|
this.muteSourceCodeEvents = true;
|
|
310
294
|
if (this.isClean()) {
|
|
@@ -323,12 +307,12 @@ export class UISourceCodeFrame extends
|
|
|
323
307
|
if (this.muteSourceCodeEvents) {
|
|
324
308
|
return;
|
|
325
309
|
}
|
|
326
|
-
this.
|
|
310
|
+
this.maybeSetContent(this.uiSourceCodeInternal.workingCopy());
|
|
327
311
|
}
|
|
328
312
|
|
|
329
313
|
private onWorkingCopyCommitted(): void {
|
|
330
314
|
if (!this.muteSourceCodeEvents) {
|
|
331
|
-
this.
|
|
315
|
+
this.maybeSetContent(this.uiSourceCode().workingCopy());
|
|
332
316
|
}
|
|
333
317
|
this.contentCommitted();
|
|
334
318
|
this.updateStyle();
|
|
@@ -336,7 +320,7 @@ export class UISourceCodeFrame extends
|
|
|
336
320
|
|
|
337
321
|
private reloadPlugins(): void {
|
|
338
322
|
this.disposePlugins();
|
|
339
|
-
this.
|
|
323
|
+
this.loadPlugins();
|
|
340
324
|
const editor = this.textEditor;
|
|
341
325
|
editor.dispatch({effects: pluginCompartment.reconfigure(this.plugins.map(plugin => plugin.editorExtension()))});
|
|
342
326
|
for (const plugin of this.plugins) {
|
|
@@ -348,12 +332,7 @@ export class UISourceCodeFrame extends
|
|
|
348
332
|
this.updateLanguageMode('').then(() => this.reloadPlugins(), console.error);
|
|
349
333
|
}
|
|
350
334
|
|
|
351
|
-
private
|
|
352
|
-
if (this.pluginsLoaded) {
|
|
353
|
-
return;
|
|
354
|
-
}
|
|
355
|
-
this.pluginsLoaded = true;
|
|
356
|
-
|
|
335
|
+
private loadPlugins(): void {
|
|
357
336
|
const binding = Persistence.Persistence.PersistenceImpl.instance().binding(this.uiSourceCodeInternal);
|
|
358
337
|
const pluginUISourceCode = binding ? binding.network : this.uiSourceCodeInternal;
|
|
359
338
|
|
|
@@ -364,9 +343,6 @@ export class UISourceCodeFrame extends
|
|
|
364
343
|
}
|
|
365
344
|
|
|
366
345
|
this.dispatchEventToListeners(Events.ToolbarItemsChanged);
|
|
367
|
-
for (const plugin of this.plugins) {
|
|
368
|
-
plugin.wasShown();
|
|
369
|
-
}
|
|
370
346
|
}
|
|
371
347
|
|
|
372
348
|
private disposePlugins(): void {
|
|
@@ -374,7 +350,6 @@ export class UISourceCodeFrame extends
|
|
|
374
350
|
plugin.dispose();
|
|
375
351
|
}
|
|
376
352
|
this.plugins = [];
|
|
377
|
-
this.pluginsLoaded = false;
|
|
378
353
|
}
|
|
379
354
|
|
|
380
355
|
private onBindingChanged(): void {
|
|
@@ -385,19 +360,17 @@ export class UISourceCodeFrame extends
|
|
|
385
360
|
this.unloadUISourceCode();
|
|
386
361
|
this.persistenceBinding = binding;
|
|
387
362
|
this.initializeUISourceCode();
|
|
363
|
+
this.reloadPlugins();
|
|
388
364
|
}
|
|
389
365
|
|
|
390
366
|
private updateStyle(): void {
|
|
391
367
|
this.setEditable(this.canEditSourceInternal());
|
|
392
368
|
}
|
|
393
369
|
|
|
394
|
-
private
|
|
395
|
-
this.
|
|
396
|
-
const oldContent = this.textEditor.state.doc.toString();
|
|
397
|
-
if (oldContent !== content) {
|
|
370
|
+
private maybeSetContent(content: string): void {
|
|
371
|
+
if (this.textEditor.state.doc.toString() !== content) {
|
|
398
372
|
this.setContent(content);
|
|
399
373
|
}
|
|
400
|
-
this.isSettingContent = false;
|
|
401
374
|
}
|
|
402
375
|
|
|
403
376
|
protected populateTextAreaContextMenu(
|
|
@@ -407,7 +380,6 @@ export class UISourceCodeFrame extends
|
|
|
407
380
|
const location = this.editorLocationToUILocation(lineNumber, columnNumber);
|
|
408
381
|
contextMenu.appendApplicableItems(
|
|
409
382
|
new Workspace.UISourceCode.UILocation(this.uiSourceCodeInternal, location.lineNumber, location.columnNumber));
|
|
410
|
-
contextMenu.appendApplicableItems(this);
|
|
411
383
|
for (const plugin of this.plugins) {
|
|
412
384
|
plugin.populateTextAreaContextMenu(contextMenu, lineNumber, columnNumber);
|
|
413
385
|
}
|
|
@@ -422,6 +394,7 @@ export class UISourceCodeFrame extends
|
|
|
422
394
|
|
|
423
395
|
dispose(): void {
|
|
424
396
|
this.errorPopoverHelper.dispose();
|
|
397
|
+
this.disposePlugins();
|
|
425
398
|
this.unloadUISourceCode();
|
|
426
399
|
this.textEditor.editor.destroy();
|
|
427
400
|
this.detach();
|
|
@@ -93,9 +93,6 @@ export class TimelineController implements SDK.TargetManager.SDKModelObserver<SD
|
|
|
93
93
|
];
|
|
94
94
|
categoriesArray.push(TimelineModel.TimelineModel.TimelineModelImpl.Category.LatencyInfo);
|
|
95
95
|
|
|
96
|
-
if (Root.Runtime.experiments.isEnabled('timelineV8RuntimeCallStats') && options.enableJSSampling) {
|
|
97
|
-
categoriesArray.push(disabledByDefault('v8.runtime_stats_sampling'));
|
|
98
|
-
}
|
|
99
96
|
if (!Root.Runtime.Runtime.queryParam('timelineTracingJSProfileDisabled') && options.enableJSSampling) {
|
|
100
97
|
categoriesArray.push(disabledByDefault('v8.cpu_profiler'));
|
|
101
98
|
}
|
|
@@ -46,7 +46,7 @@ import type {PerformanceModel} from './PerformanceModel.js';
|
|
|
46
46
|
import {FlameChartStyle, Selection, TimelineFlameChartMarker} from './TimelineFlameChartView.js';
|
|
47
47
|
import {TimelineSelection} from './TimelinePanel.js';
|
|
48
48
|
import type {TimelineCategory} from './TimelineUIUtils.js';
|
|
49
|
-
import {TimelineUIUtils} from './TimelineUIUtils.js';
|
|
49
|
+
import {TimelineUIUtils, assignLayoutShiftsToClusters} from './TimelineUIUtils.js';
|
|
50
50
|
|
|
51
51
|
const UIStrings = {
|
|
52
52
|
/**
|
|
@@ -768,7 +768,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
768
768
|
|
|
769
769
|
const metricEvents: SDK.TracingModel.Event[] = [];
|
|
770
770
|
const lcpEvents = [];
|
|
771
|
-
const layoutShifts = [];
|
|
771
|
+
const layoutShifts: SDK.TracingModel.Event[] = [];
|
|
772
772
|
const timelineModel = this.performanceModel.timelineModel();
|
|
773
773
|
for (const track of this.model.tracks()) {
|
|
774
774
|
for (const event of track.events) {
|
|
@@ -807,38 +807,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
|
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
if (layoutShifts.length) {
|
|
810
|
-
|
|
811
|
-
const limitTimeInMs = 5000;
|
|
812
|
-
let firstTimestamp = Number.NEGATIVE_INFINITY;
|
|
813
|
-
let previousTimestamp = Number.NEGATIVE_INFINITY;
|
|
814
|
-
let maxScore = 0;
|
|
815
|
-
let currentClusterId = 1;
|
|
816
|
-
let currentClusterScore = 0;
|
|
817
|
-
let currentCluster = new Set<SDK.TracingModel.Event>();
|
|
818
|
-
|
|
819
|
-
for (const e of layoutShifts) {
|
|
820
|
-
if (e.args['data']['had_recent_input'] || e.args['data']['weighted_score_delta'] === undefined) {
|
|
821
|
-
continue;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
if (e.startTime - firstTimestamp > limitTimeInMs || e.startTime - previousTimestamp > gapTimeInMs) {
|
|
825
|
-
firstTimestamp = e.startTime;
|
|
826
|
-
|
|
827
|
-
for (const layoutShift of currentCluster) {
|
|
828
|
-
layoutShift.args['data']['_current_cluster_score'] = currentClusterScore;
|
|
829
|
-
layoutShift.args['data']['_current_cluster_id'] = currentClusterId;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
currentClusterId += 1;
|
|
833
|
-
currentClusterScore = 0;
|
|
834
|
-
currentCluster = new Set();
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
previousTimestamp = e.startTime;
|
|
838
|
-
currentClusterScore += e.args['data']['weighted_score_delta'];
|
|
839
|
-
currentCluster.add(e);
|
|
840
|
-
maxScore = Math.max(maxScore, currentClusterScore);
|
|
841
|
-
}
|
|
810
|
+
assignLayoutShiftsToClusters(layoutShifts);
|
|
842
811
|
}
|
|
843
812
|
|
|
844
813
|
metricEvents.sort(SDK.TracingModel.Event.compareStartTime);
|
|
@@ -2421,9 +2421,13 @@ export class TimelineUIUtils {
|
|
|
2421
2421
|
contentHelper.appendTextRow(i18nString(UIStrings.score), eventData['score'].toPrecision(4));
|
|
2422
2422
|
contentHelper.appendTextRow(
|
|
2423
2423
|
i18nString(UIStrings.cumulativeScore), eventData['cumulative_score'].toPrecision(4));
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2424
|
+
if ('_current_cluster_id' in eventData) {
|
|
2425
|
+
contentHelper.appendTextRow(i18nString(UIStrings.currentClusterId), eventData['_current_cluster_id']);
|
|
2426
|
+
}
|
|
2427
|
+
if ('_current_cluster_score' in eventData) {
|
|
2428
|
+
contentHelper.appendTextRow(
|
|
2429
|
+
i18nString(UIStrings.currentClusterScore), eventData['_current_cluster_score'].toPrecision(4));
|
|
2430
|
+
}
|
|
2427
2431
|
contentHelper.appendTextRow(
|
|
2428
2432
|
i18nString(UIStrings.hadRecentInput),
|
|
2429
2433
|
eventData['had_recent_input'] ? i18nString(UIStrings.yes) : i18nString(UIStrings.no));
|
|
@@ -3783,3 +3787,47 @@ export interface TimelineMarkerStyle {
|
|
|
3783
3787
|
tall: boolean;
|
|
3784
3788
|
lowPriority: boolean;
|
|
3785
3789
|
}
|
|
3790
|
+
|
|
3791
|
+
export function assignLayoutShiftsToClusters(layoutShifts: readonly SDK.TracingModel.Event[]): void {
|
|
3792
|
+
const gapTimeInMs = 1000;
|
|
3793
|
+
const limitTimeInMs = 5000;
|
|
3794
|
+
let firstTimestamp = Number.NEGATIVE_INFINITY;
|
|
3795
|
+
let previousTimestamp = Number.NEGATIVE_INFINITY;
|
|
3796
|
+
let currentClusterId = 0;
|
|
3797
|
+
let currentClusterScore = 0;
|
|
3798
|
+
let currentCluster = new Set<SDK.TracingModel.Event>();
|
|
3799
|
+
|
|
3800
|
+
for (const event of layoutShifts) {
|
|
3801
|
+
if (event.args['data']['had_recent_input'] || event.args['data']['weighted_score_delta'] === undefined) {
|
|
3802
|
+
continue;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
if (event.startTime - firstTimestamp > limitTimeInMs || event.startTime - previousTimestamp > gapTimeInMs) {
|
|
3806
|
+
// This means the event does not fit into the current session/cluster, so we need to start a new cluster.
|
|
3807
|
+
firstTimestamp = event.startTime;
|
|
3808
|
+
|
|
3809
|
+
// Update all the layout shifts we found in this cluster to associate them with the cluster.
|
|
3810
|
+
for (const layoutShift of currentCluster) {
|
|
3811
|
+
layoutShift.args['data']['_current_cluster_score'] = currentClusterScore;
|
|
3812
|
+
layoutShift.args['data']['_current_cluster_id'] = currentClusterId;
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
// Increment the cluster ID and reset the data.
|
|
3816
|
+
currentClusterId += 1;
|
|
3817
|
+
currentClusterScore = 0;
|
|
3818
|
+
currentCluster = new Set();
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
// Store the timestamp of the previous layout shift.
|
|
3822
|
+
previousTimestamp = event.startTime;
|
|
3823
|
+
// Update the score of the current cluster and store this event in that cluster
|
|
3824
|
+
currentClusterScore += event.args['data']['weighted_score_delta'];
|
|
3825
|
+
currentCluster.add(event);
|
|
3826
|
+
}
|
|
3827
|
+
|
|
3828
|
+
// The last cluster we find may not get closed out - so if not, update all the shifts that we associate with it.
|
|
3829
|
+
for (const layoutShift of currentCluster) {
|
|
3830
|
+
layoutShift.args['data']['_current_cluster_score'] = currentClusterScore;
|
|
3831
|
+
layoutShift.args['data']['_current_cluster_id'] = currentClusterId;
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright 2021 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import * as Legacy from '../../ui/legacy/legacy.js';
|
|
6
|
+
|
|
7
|
+
export interface WindowBoundsService {
|
|
8
|
+
getDevToolsBoundingElement(): HTMLElement;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
let windowBoundsServiceImplInstance: WindowBoundsServiceImpl;
|
|
12
|
+
export class WindowBoundsServiceImpl implements WindowBoundsService {
|
|
13
|
+
static instance(opts: {
|
|
14
|
+
forceNew: boolean|null,
|
|
15
|
+
} = {forceNew: null}): WindowBoundsServiceImpl {
|
|
16
|
+
const {forceNew} = opts;
|
|
17
|
+
if (!windowBoundsServiceImplInstance || forceNew) {
|
|
18
|
+
windowBoundsServiceImplInstance = new WindowBoundsServiceImpl();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return windowBoundsServiceImplInstance;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
getDevToolsBoundingElement(): HTMLElement {
|
|
25
|
+
return Legacy.InspectorView.InspectorView.maybeGetInspectorViewInstance()?.element || document.body;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2021 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import * as WindowBoundsService from './WindowBoundsService.js';
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
WindowBoundsService,
|
|
9
|
+
};
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
import {StreamLanguage} from '@codemirror/stream-parser';
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
|
-
acceptCompletion, autocompletion,
|
|
11
|
-
CompletionResult, CompletionSource, currentCompletions,
|
|
10
|
+
acceptCompletion, autocompletion, closeCompletion, completeAnyWord,
|
|
11
|
+
Completion, CompletionContext, CompletionResult, CompletionSource, currentCompletions,
|
|
12
|
+
ifNotIn, selectedCompletion, startCompletion,
|
|
12
13
|
} from '@codemirror/autocomplete';
|
|
13
14
|
export {closeBrackets, closeBracketsKeymap} from '@codemirror/closebrackets';
|
|
14
15
|
export {
|
|
@@ -38,7 +39,7 @@ export {
|
|
|
38
39
|
} from '@codemirror/state';
|
|
39
40
|
export {StreamLanguage, StreamParser, StringStream} from '@codemirror/stream-parser';
|
|
40
41
|
export {Line, Text, TextIterator} from '@codemirror/text';
|
|
41
|
-
export {showTooltip, Tooltip, tooltips, TooltipView} from '@codemirror/tooltip';
|
|
42
|
+
export { repositionTooltips,showTooltip, Tooltip, tooltips, TooltipView} from '@codemirror/tooltip';
|
|
42
43
|
export {
|
|
43
44
|
Command, Decoration, DecorationSet, drawSelection, EditorView,
|
|
44
45
|
highlightSpecialChars, KeyBinding, keymap, MatchDecorator, placeholder,
|