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
|
@@ -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 (
|
|
141
|
-
|
|
142
|
-
|
|
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
|
}
|
|
@@ -828,6 +828,12 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
828
828
|
this.tabOrderSetting.set(tabOrders);
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
+
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
832
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
833
|
+
getCloseableTabSetting(): Common.Settings.Setting<any> {
|
|
834
|
+
return this.closeableTabSetting.get();
|
|
835
|
+
}
|
|
836
|
+
|
|
831
837
|
static orderStep = 10; // Keep in sync with descriptors.
|
|
832
838
|
}
|
|
833
839
|
|
|
@@ -103,6 +103,10 @@ const UIStrings = {
|
|
|
103
103
|
* @example {9001628746521180} seconds
|
|
104
104
|
*/
|
|
105
105
|
timeAfterTooltip: 'The expiration timestamp is {seconds}, which corresponds to a date after {date}',
|
|
106
|
+
/**
|
|
107
|
+
* @description Text to be show in the Partition Key column in case it is an opaque origin.
|
|
108
|
+
*/
|
|
109
|
+
opaquePartitionKey: '(opaque)',
|
|
106
110
|
};
|
|
107
111
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/cookie_table/CookiesTable.ts', UIStrings);
|
|
108
112
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -215,6 +219,13 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
215
219
|
dataType: DataGrid.DataGrid.DataType.Boolean,
|
|
216
220
|
editable: editable,
|
|
217
221
|
},
|
|
222
|
+
{
|
|
223
|
+
id: SDK.Cookie.Attributes.PartitionKey,
|
|
224
|
+
title: 'Partition Key',
|
|
225
|
+
sortable: true,
|
|
226
|
+
weight: 7,
|
|
227
|
+
editable: editable,
|
|
228
|
+
},
|
|
218
229
|
{
|
|
219
230
|
id: SDK.Cookie.Attributes.Priority,
|
|
220
231
|
title: 'Priority',
|
|
@@ -462,6 +473,8 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
462
473
|
return String(cookie.sameSite());
|
|
463
474
|
case SDK.Cookie.Attributes.SameParty:
|
|
464
475
|
return String(cookie.sameParty());
|
|
476
|
+
case SDK.Cookie.Attributes.PartitionKey:
|
|
477
|
+
return cookie.partitionKeyOpaque() ? i18nString(UIStrings.opaquePartitionKey) : String(cookie.partitionKey());
|
|
465
478
|
case SDK.Cookie.Attributes.SourceScheme:
|
|
466
479
|
return String(cookie.sourceScheme());
|
|
467
480
|
default:
|
|
@@ -570,6 +583,7 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
570
583
|
data[SDK.Cookie.Attributes.SourcePort] = cookie.sourcePort();
|
|
571
584
|
data[SDK.Cookie.Attributes.SourceScheme] = cookie.sourceScheme();
|
|
572
585
|
data[SDK.Cookie.Attributes.Priority] = cookie.priority() || '';
|
|
586
|
+
data[SDK.Cookie.Attributes.PartitionKey] = cookie.partitionKey() || '';
|
|
573
587
|
|
|
574
588
|
const blockedReasons = this.cookieToBlockedReasons?.get(cookie);
|
|
575
589
|
const node = new DataGridNode(data, cookie, blockedReasons || null);
|
|
@@ -613,6 +627,9 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
613
627
|
if (node.data[SDK.Cookie.Attributes.Expires] === null) {
|
|
614
628
|
node.data[SDK.Cookie.Attributes.Expires] = expiresSessionValue();
|
|
615
629
|
}
|
|
630
|
+
if (node.data[SDK.Cookie.Attributes.PartitionKey] === null) {
|
|
631
|
+
node.data[SDK.Cookie.Attributes.PartitionKey] = '';
|
|
632
|
+
}
|
|
616
633
|
}
|
|
617
634
|
|
|
618
635
|
private saveNode(node: DataGridNode): void {
|
|
@@ -660,6 +677,9 @@ export class CookiesTable extends UI.Widget.VBox {
|
|
|
660
677
|
cookie.addAttribute(
|
|
661
678
|
SDK.Cookie.Attributes.SourcePort, Number.parseInt(data[SDK.Cookie.Attributes.SourcePort], 10) || undefined);
|
|
662
679
|
}
|
|
680
|
+
if (SDK.Cookie.Attributes.PartitionKey in data) {
|
|
681
|
+
cookie.addAttribute(SDK.Cookie.Attributes.PartitionKey, data[SDK.Cookie.Attributes.PartitionKey]);
|
|
682
|
+
}
|
|
663
683
|
cookie.setSize(data[SDK.Cookie.Attributes.Name].length + data[SDK.Cookie.Attributes.Value].length);
|
|
664
684
|
return cookie;
|
|
665
685
|
}
|
|
@@ -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
|
|
|
@@ -201,6 +206,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
201
206
|
return [
|
|
202
207
|
CodeMirror.EditorView.updateListener.of(update => this.dispatchEventToListeners(Events.EditorUpdate, update)),
|
|
203
208
|
TextEditor.Config.baseConfiguration(doc),
|
|
209
|
+
TextEditor.Config.closeBrackets,
|
|
204
210
|
TextEditor.Config.sourcesAutocompletion.instance(),
|
|
205
211
|
TextEditor.Config.showWhitespace.instance(),
|
|
206
212
|
TextEditor.Config.allowScrollPastEof.instance(),
|
|
@@ -716,7 +722,6 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
716
722
|
if (wasLoaded) {
|
|
717
723
|
textEditor.editor.scrollDOM.scrollTop = scrollTop;
|
|
718
724
|
}
|
|
719
|
-
this.editorInitialized();
|
|
720
725
|
this.wasShownOrLoaded();
|
|
721
726
|
|
|
722
727
|
if (this.delayedFindSearchMatches) {
|
|
@@ -726,9 +731,6 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
726
731
|
this.muteChangeEventsForSetContent = false;
|
|
727
732
|
}
|
|
728
733
|
|
|
729
|
-
protected editorInitialized(): void {
|
|
730
|
-
}
|
|
731
|
-
|
|
732
734
|
setSearchableView(view: UI.SearchableView.SearchableView|null): void {
|
|
733
735
|
this.searchableView = view;
|
|
734
736
|
}
|
|
@@ -184,17 +184,9 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
184
184
|
}
|
|
185
185
|
info.liveLocation = null;
|
|
186
186
|
Linkifier.unbindUILocation(anchor);
|
|
187
|
-
const fallback =
|
|
187
|
+
const fallback = info.fallback;
|
|
188
188
|
if (fallback) {
|
|
189
|
-
|
|
190
|
-
anchor.href = fallback.href;
|
|
191
|
-
UI.Tooltip.Tooltip.install(anchor, fallback.title);
|
|
192
|
-
anchor.className = fallback.className;
|
|
193
|
-
anchor.textContent = fallback.textContent;
|
|
194
|
-
const fallbackInfo = infoByAnchor.get(fallback);
|
|
195
|
-
if (fallbackInfo) {
|
|
196
|
-
infoByAnchor.set(anchor, fallbackInfo);
|
|
197
|
-
}
|
|
189
|
+
anchor.replaceWith(fallback);
|
|
198
190
|
}
|
|
199
191
|
}
|
|
200
192
|
}
|
|
@@ -249,15 +241,11 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
249
241
|
// Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
|
|
250
242
|
// in the layout engine.
|
|
251
243
|
// TODO(szuend): Remove comment and workaround once the crash is fixed.
|
|
252
|
-
const
|
|
244
|
+
const {link, linkInfo} = Linkifier.createLink(
|
|
253
245
|
fallbackAnchor && fallbackAnchor.textContent ? fallbackAnchor.textContent : '\u200b', className,
|
|
254
246
|
createLinkOptions);
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return fallbackAnchor;
|
|
258
|
-
}
|
|
259
|
-
info.enableDecorator = this.useLinkDecorator;
|
|
260
|
-
info.fallback = fallbackAnchor;
|
|
247
|
+
linkInfo.enableDecorator = this.useLinkDecorator;
|
|
248
|
+
linkInfo.fallback = fallbackAnchor;
|
|
261
249
|
|
|
262
250
|
const pool = this.locationPoolByTarget.get(rawLocation.debuggerModel.target());
|
|
263
251
|
if (!pool) {
|
|
@@ -268,10 +256,10 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
268
256
|
|
|
269
257
|
const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
|
|
270
258
|
Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
|
|
271
|
-
.createLiveLocation(rawLocation, this.updateAnchor.bind(this,
|
|
259
|
+
.createLiveLocation(rawLocation, this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
|
|
272
260
|
.then(liveLocation => {
|
|
273
261
|
if (liveLocation) {
|
|
274
|
-
|
|
262
|
+
linkInfo.liveLocation = liveLocation;
|
|
275
263
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
276
264
|
// @ts-expect-error
|
|
277
265
|
currentOnLiveLocationUpdate();
|
|
@@ -279,8 +267,8 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
279
267
|
});
|
|
280
268
|
|
|
281
269
|
const anchors = (this.anchorsByTarget.get(rawLocation.debuggerModel.target()) as Element[]);
|
|
282
|
-
anchors.push(
|
|
283
|
-
return
|
|
270
|
+
anchors.push(link);
|
|
271
|
+
return link;
|
|
284
272
|
}
|
|
285
273
|
|
|
286
274
|
linkifyScriptLocation(
|
|
@@ -327,68 +315,61 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
327
315
|
target, callFrame.scriptId, callFrame.url, callFrame.lineNumber, linkifyOptions);
|
|
328
316
|
}
|
|
329
317
|
|
|
330
|
-
linkifyStackTraceTopFrame(target: SDK.Target.Target, stackTrace: Protocol.Runtime.StackTrace,
|
|
318
|
+
linkifyStackTraceTopFrame(target: SDK.Target.Target, stackTrace: Protocol.Runtime.StackTrace, className?: string):
|
|
331
319
|
HTMLElement {
|
|
332
|
-
console.assert(
|
|
320
|
+
console.assert(stackTrace.callFrames.length > 0);
|
|
333
321
|
|
|
334
|
-
const
|
|
335
|
-
const fallbackAnchor = Linkifier.linkifyURL(
|
|
336
|
-
className
|
|
337
|
-
lineNumber
|
|
338
|
-
columnNumber
|
|
322
|
+
const {url, lineNumber, columnNumber} = stackTrace.callFrames[0];
|
|
323
|
+
const fallbackAnchor = Linkifier.linkifyURL(url, {
|
|
324
|
+
className,
|
|
325
|
+
lineNumber,
|
|
326
|
+
columnNumber,
|
|
339
327
|
showColumnNumber: false,
|
|
340
328
|
inlineFrameIndex: 0,
|
|
341
329
|
maxLength: this.maxLength,
|
|
342
330
|
text: undefined,
|
|
343
|
-
preventClick:
|
|
331
|
+
preventClick: true,
|
|
344
332
|
tabStop: undefined,
|
|
345
333
|
bypassURLTrimming: undefined,
|
|
346
334
|
});
|
|
347
|
-
if (target.isDisposed()) {
|
|
348
|
-
return fallbackAnchor;
|
|
349
|
-
}
|
|
350
335
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
336
|
+
// The contract is that disposed targets don't have a LiveLocationPool
|
|
337
|
+
// associated, whereas all active targets have one such pool. This ensures
|
|
338
|
+
// that the fallbackAnchor is only ever used when the target was disposed.
|
|
339
|
+
const pool = this.locationPoolByTarget.get(target);
|
|
340
|
+
if (!pool) {
|
|
341
|
+
console.assert(target.isDisposed());
|
|
357
342
|
return fallbackAnchor;
|
|
358
343
|
}
|
|
344
|
+
console.assert(!target.isDisposed());
|
|
345
|
+
|
|
346
|
+
// All targets that can report stack traces also have a debugger model.
|
|
347
|
+
const debuggerModel = target.model(SDK.DebuggerModel.DebuggerModel) as SDK.DebuggerModel.DebuggerModel;
|
|
359
348
|
|
|
360
349
|
// Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
|
|
361
350
|
// in the layout engine.
|
|
362
351
|
// TODO(szuend): Remove comment and workaround once the crash is fixed.
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
return fallbackAnchor;
|
|
367
|
-
}
|
|
368
|
-
info.enableDecorator = this.useLinkDecorator;
|
|
369
|
-
info.fallback = fallbackAnchor;
|
|
370
|
-
|
|
371
|
-
const pool = this.locationPoolByTarget.get(target);
|
|
372
|
-
if (!pool) {
|
|
373
|
-
return fallbackAnchor;
|
|
374
|
-
}
|
|
352
|
+
const {link, linkInfo} = Linkifier.createLink('\u200b', className ?? '');
|
|
353
|
+
linkInfo.enableDecorator = this.useLinkDecorator;
|
|
354
|
+
linkInfo.fallback = fallbackAnchor;
|
|
375
355
|
|
|
376
356
|
const linkDisplayOptions = {showColumnNumber: false};
|
|
377
357
|
|
|
378
358
|
const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
|
|
379
359
|
Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()
|
|
380
360
|
.createStackTraceTopFrameLiveLocation(
|
|
381
|
-
|
|
361
|
+
debuggerModel.createRawLocationsByStackTrace(stackTrace),
|
|
362
|
+
this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
|
|
382
363
|
.then(liveLocation => {
|
|
383
|
-
|
|
364
|
+
linkInfo.liveLocation = liveLocation;
|
|
384
365
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
385
366
|
// @ts-expect-error
|
|
386
367
|
currentOnLiveLocationUpdate();
|
|
387
368
|
});
|
|
388
369
|
|
|
389
370
|
const anchors = (this.anchorsByTarget.get(target) as Element[]);
|
|
390
|
-
anchors.push(
|
|
391
|
-
return
|
|
371
|
+
anchors.push(link);
|
|
372
|
+
return link;
|
|
392
373
|
}
|
|
393
374
|
|
|
394
375
|
linkifyCSSLocation(rawLocation: SDK.CSSModel.CSSLocation, classes?: string): Element {
|
|
@@ -403,33 +384,29 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
403
384
|
// Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
|
|
404
385
|
// in the layout engine.
|
|
405
386
|
// TODO(szuend): Remove comment and workaround once the crash is fixed.
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
if (!info) {
|
|
409
|
-
return anchor;
|
|
410
|
-
}
|
|
411
|
-
info.enableDecorator = this.useLinkDecorator;
|
|
387
|
+
const {link, linkInfo} = Linkifier.createLink('\u200b', classes || '', createLinkOptions);
|
|
388
|
+
linkInfo.enableDecorator = this.useLinkDecorator;
|
|
412
389
|
|
|
413
390
|
const pool = this.locationPoolByTarget.get(rawLocation.cssModel().target());
|
|
414
391
|
if (!pool) {
|
|
415
|
-
return
|
|
392
|
+
return link;
|
|
416
393
|
}
|
|
417
394
|
|
|
418
395
|
const linkDisplayOptions = {showColumnNumber: false};
|
|
419
396
|
|
|
420
397
|
const currentOnLiveLocationUpdate = this.onLiveLocationUpdate;
|
|
421
398
|
Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance()
|
|
422
|
-
.createLiveLocation(rawLocation, this.updateAnchor.bind(this,
|
|
399
|
+
.createLiveLocation(rawLocation, this.updateAnchor.bind(this, link, linkDisplayOptions), pool)
|
|
423
400
|
.then(liveLocation => {
|
|
424
|
-
|
|
401
|
+
linkInfo.liveLocation = liveLocation;
|
|
425
402
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
426
403
|
// @ts-expect-error
|
|
427
404
|
currentOnLiveLocationUpdate();
|
|
428
405
|
});
|
|
429
406
|
|
|
430
407
|
const anchors = (this.anchorsByTarget.get(rawLocation.cssModel().target()) as Element[]);
|
|
431
|
-
anchors.push(
|
|
432
|
-
return
|
|
408
|
+
anchors.push(link);
|
|
409
|
+
return link;
|
|
433
410
|
}
|
|
434
411
|
|
|
435
412
|
reset(): void {
|
|
@@ -557,16 +534,12 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
557
534
|
}
|
|
558
535
|
const title = linkText !== url ? url : '';
|
|
559
536
|
const linkOptions = {maxLength, title, href: url, preventClick, tabStop: options.tabStop, bypassURLTrimming};
|
|
560
|
-
const link = Linkifier.createLink(linkText, className, linkOptions);
|
|
561
|
-
const info = Linkifier.linkInfo(link);
|
|
562
|
-
if (!info) {
|
|
563
|
-
return link;
|
|
564
|
-
}
|
|
537
|
+
const {link, linkInfo} = Linkifier.createLink(linkText, className, linkOptions);
|
|
565
538
|
if (lineNumber) {
|
|
566
|
-
|
|
539
|
+
linkInfo.lineNumber = lineNumber;
|
|
567
540
|
}
|
|
568
541
|
if (columnNumber) {
|
|
569
|
-
|
|
542
|
+
linkInfo.columnNumber = columnNumber;
|
|
570
543
|
}
|
|
571
544
|
return link;
|
|
572
545
|
}
|
|
@@ -582,16 +555,13 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
582
555
|
tabStop: undefined,
|
|
583
556
|
bypassURLTrimming: undefined,
|
|
584
557
|
};
|
|
585
|
-
const link = Linkifier.createLink(text, className || '', createLinkOptions);
|
|
586
|
-
const linkInfo = Linkifier.linkInfo(link);
|
|
587
|
-
if (!linkInfo) {
|
|
588
|
-
return link;
|
|
589
|
-
}
|
|
558
|
+
const {link, linkInfo} = Linkifier.createLink(text, className || '', createLinkOptions);
|
|
590
559
|
linkInfo.revealable = revealable;
|
|
591
560
|
return link;
|
|
592
561
|
}
|
|
593
562
|
|
|
594
|
-
private static createLink(text: string|HTMLElement, className: string, options?: _CreateLinkOptions):
|
|
563
|
+
private static createLink(text: string|HTMLElement, className: string, options?: _CreateLinkOptions):
|
|
564
|
+
{link: HTMLElement, linkInfo: _LinkInfo} {
|
|
595
565
|
options = options || {
|
|
596
566
|
maxLength: undefined,
|
|
597
567
|
title: undefined,
|
|
@@ -654,7 +624,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
|
654
624
|
}
|
|
655
625
|
UI.ARIAUtils.markAsLink(link);
|
|
656
626
|
link.tabIndex = tabStop ? 0 : -1;
|
|
657
|
-
return link;
|
|
627
|
+
return {link, linkInfo};
|
|
658
628
|
}
|
|
659
629
|
|
|
660
630
|
private static setTrimmedText(link: Element, text: string, maxLength?: number): void {
|
|
@@ -167,6 +167,7 @@
|
|
|
167
167
|
--color-selected-option: #fff;
|
|
168
168
|
--color-selected-option-background: #1a73e8;
|
|
169
169
|
--color-highlighted-line: rgb(255 255 0 / 50%);
|
|
170
|
+
--color-completion-hover: rgb(56 121 217 / 10%);
|
|
170
171
|
--color-search-match-border: rgb(128 128 128);
|
|
171
172
|
--color-selected-search-match: var(--color-text-primary);
|
|
172
173
|
--color-selected-search-match-background: rgb(241 234 0);
|
|
@@ -307,6 +308,7 @@
|
|
|
307
308
|
--color-selected-option: #fff;
|
|
308
309
|
--color-selected-option-background: #0e639c;
|
|
309
310
|
--color-highlighted-line: hsl(133deg 100% 30% / 50%);
|
|
311
|
+
--color-completion-hover: rgb(56 121 217 / 10%);
|
|
310
312
|
--color-search-match-border: rgb(128 128 128);
|
|
311
313
|
--color-selected-search-match: #eee;
|
|
312
314
|
--color-selected-search-match-background: hsl(133deg 100% 30%);
|
|
@@ -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
|
@@ -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
|
});
|