@paulirish/trace_engine 0.0.67-beta.2 → 0.0.67
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/.tmp/tsbuildinfo/analyze-inspector-issues.d.mts +13 -0
- package/.tmp/tsbuildinfo/analyze-inspector-issues.d.mts.map +1 -0
- package/.tmp/tsbuildinfo/analyze-trace.d.mts +17 -0
- package/.tmp/tsbuildinfo/analyze-trace.d.mts.map +1 -0
- package/.tmp/tsbuildinfo/test/test-trace-engine.d.mts +2 -0
- package/.tmp/tsbuildinfo/test/test-trace-engine.d.mts.map +1 -0
- package/.tmp/tsbuildinfo/third_party/third-party-web/third-party-web.d.ts +3 -0
- package/.tmp/tsbuildinfo/third_party/third-party-web/third-party-web.d.ts.map +1 -0
- package/.tmp/tsbuildinfo/tsconfig.tsbuildinfo +1 -0
- package/README.md +22 -62
- package/analyze-inspector-issues.mjs +60 -0
- package/analyze-trace.mjs +144 -6
- package/core/common/ParsedURL.js +512 -0
- package/core/common/ParsedURL.js.map +1 -0
- package/core/common/common.d.ts +8 -33
- package/core/common/common.js +2 -0
- package/core/host/host.d.ts +1 -13
- package/core/host/host.js +1 -0
- package/core/i18n/i18n.d.ts +20 -8
- package/core/i18n/i18n.js +15 -0
- package/core/platform/ArrayUtilities.js +224 -0
- package/core/platform/ArrayUtilities.js.map +1 -0
- package/core/platform/Brand.js +5 -0
- package/core/platform/Brand.js.map +1 -0
- package/core/platform/Constructor.js +5 -0
- package/core/platform/Constructor.js.map +1 -0
- package/core/platform/DateUtilities.js +14 -0
- package/core/platform/DateUtilities.js.map +1 -0
- package/core/platform/DevToolsPath.js +28 -0
- package/core/platform/DevToolsPath.js.map +1 -0
- package/core/platform/HostRuntime.js +8 -0
- package/core/platform/HostRuntime.js.map +1 -0
- package/core/platform/KeyboardUtilities.js +34 -0
- package/core/platform/KeyboardUtilities.js.map +1 -0
- package/core/platform/MapUtilities.js +80 -0
- package/core/platform/MapUtilities.js.map +1 -0
- package/core/platform/MimeType.js +157 -0
- package/core/platform/MimeType.js.map +1 -0
- package/core/platform/NumberUtilities.js +73 -0
- package/core/platform/NumberUtilities.js.map +1 -0
- package/core/platform/Size.js +36 -0
- package/core/platform/Size.js.map +1 -0
- package/core/platform/StringUtilities.js +731 -0
- package/core/platform/StringUtilities.js.map +1 -0
- package/core/platform/Timing.js +10 -0
- package/core/platform/Timing.js.map +1 -0
- package/core/platform/TypedArrayUtilities.js +158 -0
- package/core/platform/TypedArrayUtilities.js.map +1 -0
- package/core/platform/TypescriptUtilities.js +17 -0
- package/core/platform/TypescriptUtilities.js.map +1 -0
- package/core/platform/UIString.d.ts +5 -2
- package/core/platform/UIString.js +5 -0
- package/core/platform/UIString.js.map +1 -0
- package/core/platform/UserVisibleError.d.ts +1 -12
- package/core/platform/UserVisibleError.js +23 -0
- package/core/platform/UserVisibleError.js.map +1 -0
- package/core/platform/api/HostRuntime.d.ts +1 -0
- package/core/platform/api/HostRuntime.js +5 -0
- package/core/platform/api/HostRuntime.js.map +1 -0
- package/core/platform/api/api-tsconfig.json +58 -0
- package/core/platform/api/api-tsconfig.ref.json +26 -0
- package/core/platform/api/api.js +6 -0
- package/core/platform/api/api.js.map +1 -0
- package/core/platform/bundle-tsconfig.json +59 -0
- package/core/platform/bundle-tsconfig.ref.json +27 -0
- package/core/platform/foundation_unittests-tsconfig.json +73 -0
- package/core/platform/foundation_unittests-tsconfig.ref.json +40 -0
- package/core/platform/foundation_unittests_node_typecheck-tsconfig.json +69 -0
- package/core/platform/platform-tsconfig.json +81 -0
- package/core/platform/platform-tsconfig.ref.json +49 -0
- package/core/platform/platform.js +28 -0
- package/core/platform/platform.js.map +1 -0
- package/core/platform/platform_node_typecheck-tsconfig.json +78 -0
- package/core/platform/platform_node_typecheck.stamp +0 -0
- package/core/root/root.d.ts +1 -4
- package/core/root/root.js +1 -0
- package/core/sdk/sdk.d.ts +27 -97
- package/core/sdk/sdk.js +1 -0
- package/generated/protocol.js +3304 -0
- package/locales/af.json +86 -92
- package/locales/am.json +350 -356
- package/locales/ar.json +351 -357
- package/locales/as.json +349 -355
- package/locales/az.json +340 -346
- package/locales/be.json +350 -356
- package/locales/bg.json +350 -356
- package/locales/bn.json +350 -356
- package/locales/bs.json +243 -249
- package/locales/ca.json +279 -285
- package/locales/cs.json +335 -341
- package/locales/cy.json +114 -120
- package/locales/da.json +199 -205
- package/locales/de.json +219 -225
- package/locales/el.json +335 -341
- package/locales/en-GB.json +8 -14
- package/locales/en-US.json +249 -252
- package/locales/en-XL.json +1055 -0
- package/locales/es-419.json +275 -281
- package/locales/es.json +276 -282
- package/locales/et.json +231 -237
- package/locales/eu.json +119 -125
- package/locales/fa.json +350 -356
- package/locales/fi.json +280 -286
- package/locales/fil.json +1 -7
- package/locales/fr-CA.json +307 -313
- package/locales/fr.json +304 -310
- package/locales/gl.json +259 -265
- package/locales/gu.json +351 -357
- package/locales/he.json +351 -357
- package/locales/hi.json +335 -341
- package/locales/hr.json +234 -240
- package/locales/hu.json +341 -347
- package/locales/hy.json +350 -356
- package/locales/id.json +2 -8
- package/locales/is.json +302 -308
- package/locales/it.json +136 -142
- package/locales/ja.json +350 -356
- package/locales/ka.json +351 -357
- package/locales/kk.json +351 -357
- package/locales/km.json +350 -356
- package/locales/kn.json +351 -357
- package/locales/ko.json +350 -356
- package/locales/ky.json +349 -355
- package/locales/lo.json +351 -357
- package/locales/lt.json +319 -325
- package/locales/lv.json +316 -322
- package/locales/mk.json +351 -357
- package/locales/ml.json +350 -356
- package/locales/mn.json +350 -356
- package/locales/mr.json +350 -356
- package/locales/ms.json +2 -8
- package/locales/my.json +349 -355
- package/locales/ne.json +335 -341
- package/locales/nl.json +61 -67
- package/locales/no.json +169 -175
- package/locales/or.json +350 -356
- package/locales/pa.json +350 -356
- package/locales/pl.json +306 -312
- package/locales/pt-PT.json +271 -277
- package/locales/pt.json +265 -271
- package/locales/ro.json +305 -311
- package/locales/ru.json +350 -356
- package/locales/si.json +351 -357
- package/locales/sk.json +332 -338
- package/locales/sl.json +214 -220
- package/locales/sq.json +315 -321
- package/locales/sr-Latn.json +252 -258
- package/locales/sr.json +351 -357
- package/locales/sv.json +275 -281
- package/locales/sw.json +2 -8
- package/locales/ta.json +351 -357
- package/locales/te.json +349 -355
- package/locales/th.json +351 -357
- package/locales/tr.json +325 -331
- package/locales/uk.json +350 -356
- package/locales/ur.json +351 -357
- package/locales/uz.json +159 -165
- package/locales/vi.json +351 -357
- package/locales/zh-HK.json +351 -357
- package/locales/zh-TW.json +350 -356
- package/locales/zh.json +350 -356
- package/locales/zu.json +2 -8
- package/models/cpu_profile/CPUProfileDataModel.js +517 -0
- package/models/cpu_profile/CPUProfileDataModel.js.map +1 -0
- package/models/cpu_profile/ProfileTreeModel.js +90 -0
- package/models/cpu_profile/ProfileTreeModel.js.map +1 -0
- package/models/cpu_profile/bundle-tsconfig.json +59 -0
- package/models/cpu_profile/bundle-tsconfig.ref.json +27 -0
- package/models/cpu_profile/cpu_profile-tsconfig.json +63 -0
- package/models/cpu_profile/cpu_profile-tsconfig.ref.json +31 -0
- package/models/cpu_profile/cpu_profile.js +7 -0
- package/models/cpu_profile/cpu_profile.js.map +1 -0
- package/models/cpu_profile/cpu_profile_node_typecheck-tsconfig.json +60 -0
- package/models/cpu_profile/cpu_profile_node_typecheck.stamp +0 -0
- package/models/cpu_profile/foundation_unittests-tsconfig.json +63 -0
- package/models/cpu_profile/foundation_unittests-tsconfig.ref.json +30 -0
- package/models/cpu_profile/foundation_unittests_node_typecheck-tsconfig.json +59 -0
- package/models/crux-manager/crux-manager.d.ts +3 -1
- package/models/crux-manager/crux-manager.js +1 -0
- package/models/trace/EntityMapper.js +133 -0
- package/models/trace/EntityMapper.js.map +1 -0
- package/models/trace/EventsSerializer.d.ts +1 -0
- package/models/trace/EventsSerializer.js +118 -0
- package/models/trace/EventsSerializer.js.map +1 -0
- package/models/trace/LanternComputationData.js +368 -0
- package/models/trace/LanternComputationData.js.map +1 -0
- package/models/trace/ModelImpl.js +181 -0
- package/models/trace/ModelImpl.js.map +1 -0
- package/models/trace/Name.js +115 -0
- package/models/trace/Name.js.map +1 -0
- package/models/trace/Processor.js +616 -0
- package/models/trace/Processor.js.map +1 -0
- package/models/trace/Styles.d.ts +2 -2
- package/models/trace/Styles.js +836 -0
- package/models/trace/Styles.js.map +1 -0
- package/models/trace/bundle-tsconfig.json +77 -0
- package/models/trace/bundle-tsconfig.ref.json +45 -0
- package/models/trace/extras/FilmStrip.js +45 -0
- package/models/trace/extras/FilmStrip.js.map +1 -0
- package/models/trace/extras/Initiators.js +47 -0
- package/models/trace/extras/Initiators.js.map +1 -0
- package/models/trace/extras/MainThreadActivity.js +77 -0
- package/models/trace/extras/MainThreadActivity.js.map +1 -0
- package/models/trace/extras/ScriptDuplication.js +163 -0
- package/models/trace/extras/ScriptDuplication.js.map +1 -0
- package/models/trace/extras/StackTraceForEvent.js +192 -0
- package/models/trace/extras/StackTraceForEvent.js.map +1 -0
- package/models/trace/extras/ThirdParties.js +119 -0
- package/models/trace/extras/ThirdParties.js.map +1 -0
- package/models/trace/extras/TraceFilter.js +51 -0
- package/models/trace/extras/TraceFilter.js.map +1 -0
- package/models/trace/extras/TraceTree.js +652 -0
- package/models/trace/extras/TraceTree.js.map +1 -0
- package/models/trace/extras/bundle-tsconfig.json +59 -0
- package/models/trace/extras/bundle-tsconfig.ref.json +27 -0
- package/models/trace/extras/extras-tsconfig.json +81 -0
- package/models/trace/extras/extras-tsconfig.ref.json +49 -0
- package/models/trace/extras/extras.js +12 -0
- package/models/trace/extras/extras.js.map +1 -0
- package/models/trace/extras/extras_node_typecheck-tsconfig.json +78 -0
- package/models/trace/extras/extras_node_typecheck.stamp +0 -0
- package/models/trace/extras/foundation_unittests-tsconfig.json +91 -0
- package/models/trace/extras/foundation_unittests-tsconfig.ref.json +58 -0
- package/models/trace/extras/foundation_unittests_node_typecheck-tsconfig.json +87 -0
- package/models/trace/foundation_unittests-tsconfig.json +70 -0
- package/models/trace/foundation_unittests-tsconfig.ref.json +37 -0
- package/models/trace/foundation_unittests_node_typecheck-tsconfig.json +66 -0
- package/models/trace/handlers/AnimationFramesHandler.js +110 -0
- package/models/trace/handlers/AnimationFramesHandler.js.map +1 -0
- package/models/trace/handlers/AnimationHandler.js +27 -0
- package/models/trace/handlers/AnimationHandler.js.map +1 -0
- package/models/trace/handlers/AsyncJSCallsHandler.js +188 -0
- package/models/trace/handlers/AsyncJSCallsHandler.js.map +1 -0
- package/models/trace/handlers/DOMStatsHandler.js +22 -0
- package/models/trace/handlers/DOMStatsHandler.js.map +1 -0
- package/models/trace/handlers/ExtensionTraceDataHandler.js +264 -0
- package/models/trace/handlers/ExtensionTraceDataHandler.js.map +1 -0
- package/models/trace/handlers/FlowsHandler.js +149 -0
- package/models/trace/handlers/FlowsHandler.js.map +1 -0
- package/models/trace/handlers/FramesHandler.js +491 -0
- package/models/trace/handlers/FramesHandler.js.map +1 -0
- package/models/trace/handlers/GPUHandler.js +36 -0
- package/models/trace/handlers/GPUHandler.js.map +1 -0
- package/models/trace/handlers/ImagePaintingHandler.js +148 -0
- package/models/trace/handlers/ImagePaintingHandler.js.map +1 -0
- package/models/trace/handlers/InitiatorsHandler.js +181 -0
- package/models/trace/handlers/InitiatorsHandler.js.map +1 -0
- package/models/trace/handlers/InvalidationsHandler.js +125 -0
- package/models/trace/handlers/InvalidationsHandler.js.map +1 -0
- package/models/trace/handlers/LargestImagePaintHandler.js +86 -0
- package/models/trace/handlers/LargestImagePaintHandler.js.map +1 -0
- package/models/trace/handlers/LargestTextPaintHandler.js +28 -0
- package/models/trace/handlers/LargestTextPaintHandler.js.map +1 -0
- package/models/trace/handlers/LayerTreeHandler.js +104 -0
- package/models/trace/handlers/LayerTreeHandler.js.map +1 -0
- package/models/trace/handlers/LayoutShiftsHandler.js +453 -0
- package/models/trace/handlers/LayoutShiftsHandler.js.map +1 -0
- package/models/trace/handlers/MemoryHandler.js +22 -0
- package/models/trace/handlers/MemoryHandler.js.map +1 -0
- package/models/trace/handlers/MetaHandler.js +442 -0
- package/models/trace/handlers/MetaHandler.js.map +1 -0
- package/models/trace/handlers/ModelHandlers.js +33 -0
- package/models/trace/handlers/ModelHandlers.js.map +1 -0
- package/models/trace/handlers/NetworkRequestsHandler.js +578 -0
- package/models/trace/handlers/NetworkRequestsHandler.js.map +1 -0
- package/models/trace/handlers/PageFramesHandler.js +43 -0
- package/models/trace/handlers/PageFramesHandler.js.map +1 -0
- package/models/trace/handlers/PageLoadMetricsHandler.js +463 -0
- package/models/trace/handlers/PageLoadMetricsHandler.js.map +1 -0
- package/models/trace/handlers/RendererHandler.js +346 -0
- package/models/trace/handlers/RendererHandler.js.map +1 -0
- package/models/trace/handlers/SamplesHandler.js +261 -0
- package/models/trace/handlers/SamplesHandler.js.map +1 -0
- package/models/trace/handlers/ScreenshotsHandler.js +56 -0
- package/models/trace/handlers/ScreenshotsHandler.js.map +1 -0
- package/models/trace/handlers/ScriptsHandler.js +277 -0
- package/models/trace/handlers/ScriptsHandler.js.map +1 -0
- package/models/trace/handlers/SelectorStatsHandler.js +72 -0
- package/models/trace/handlers/SelectorStatsHandler.js.map +1 -0
- package/models/trace/handlers/Threads.js +108 -0
- package/models/trace/handlers/Threads.js.map +1 -0
- package/models/trace/handlers/UserInteractionsHandler.js +319 -0
- package/models/trace/handlers/UserInteractionsHandler.js.map +1 -0
- package/models/trace/handlers/UserTimingsHandler.js +194 -0
- package/models/trace/handlers/UserTimingsHandler.js.map +1 -0
- package/models/trace/handlers/WarningsHandler.js +135 -0
- package/models/trace/handlers/WarningsHandler.js.map +1 -0
- package/models/trace/handlers/WorkersHandler.js +34 -0
- package/models/trace/handlers/WorkersHandler.js.map +1 -0
- package/models/trace/handlers/bundle-tsconfig.json +59 -0
- package/models/trace/handlers/bundle-tsconfig.ref.json +27 -0
- package/models/trace/handlers/foundation_unittests-tsconfig.json +102 -0
- package/models/trace/handlers/foundation_unittests-tsconfig.ref.json +69 -0
- package/models/trace/handlers/foundation_unittests_node_typecheck-tsconfig.json +98 -0
- package/models/trace/handlers/handlers-tsconfig.json +112 -0
- package/models/trace/handlers/handlers-tsconfig.ref.json +80 -0
- package/models/trace/handlers/handlers.js +8 -0
- package/models/trace/handlers/handlers.js.map +1 -0
- package/models/trace/handlers/handlers_node_typecheck-tsconfig.json +109 -0
- package/models/trace/handlers/handlers_node_typecheck.stamp +0 -0
- package/models/trace/handlers/helpers.js +167 -0
- package/models/trace/handlers/helpers.js.map +1 -0
- package/models/trace/handlers/types.js +2 -0
- package/models/trace/handlers/types.js.map +1 -0
- package/models/trace/helpers/Extensions.js +42 -0
- package/models/trace/helpers/Extensions.js.map +1 -0
- package/models/trace/helpers/Network.js +103 -0
- package/models/trace/helpers/Network.js.map +1 -0
- package/models/trace/helpers/SamplesIntegrator.js +527 -0
- package/models/trace/helpers/SamplesIntegrator.js.map +1 -0
- package/models/trace/helpers/SyntheticEvents.js +96 -0
- package/models/trace/helpers/SyntheticEvents.js.map +1 -0
- package/models/trace/helpers/Timing.js +200 -0
- package/models/trace/helpers/Timing.js.map +1 -0
- package/models/trace/helpers/Trace.js +844 -0
- package/models/trace/helpers/Trace.js.map +1 -0
- package/models/trace/helpers/TreeHelpers.js +255 -0
- package/models/trace/helpers/TreeHelpers.js.map +1 -0
- package/models/trace/helpers/bundle-tsconfig.json +59 -0
- package/models/trace/helpers/bundle-tsconfig.ref.json +27 -0
- package/models/trace/helpers/foundation_unittests-tsconfig.json +73 -0
- package/models/trace/helpers/foundation_unittests-tsconfig.ref.json +40 -0
- package/models/trace/helpers/foundation_unittests_node_typecheck-tsconfig.json +69 -0
- package/models/trace/helpers/helpers-tsconfig.json +77 -0
- package/models/trace/helpers/helpers-tsconfig.ref.json +45 -0
- package/models/trace/helpers/helpers.js +11 -0
- package/models/trace/helpers/helpers.js.map +1 -0
- package/models/trace/helpers/helpers_node_typecheck-tsconfig.json +74 -0
- package/models/trace/helpers/helpers_node_typecheck.stamp +0 -0
- package/models/trace/insights/CLSCulprits.d.ts +14 -14
- package/models/trace/insights/CLSCulprits.js +519 -0
- package/models/trace/insights/CLSCulprits.js.map +1 -0
- package/models/trace/insights/Cache.d.ts +6 -6
- package/models/trace/insights/Cache.js +210 -0
- package/models/trace/insights/Cache.js.map +1 -0
- package/models/trace/insights/CharacterSet.d.ts +8 -8
- package/models/trace/insights/CharacterSet.js +132 -0
- package/models/trace/insights/CharacterSet.js.map +1 -0
- package/models/trace/insights/Common.js +367 -0
- package/models/trace/insights/Common.js.map +1 -0
- package/models/trace/insights/DOMSize.d.ts +13 -13
- package/models/trace/insights/DOMSize.js +182 -0
- package/models/trace/insights/DOMSize.js.map +1 -0
- package/models/trace/insights/DocumentLatency.d.ts +11 -11
- package/models/trace/insights/DocumentLatency.js +259 -0
- package/models/trace/insights/DocumentLatency.js.map +1 -0
- package/models/trace/insights/DuplicatedJavaScript.d.ts +5 -5
- package/models/trace/insights/DuplicatedJavaScript.js +110 -0
- package/models/trace/insights/DuplicatedJavaScript.js.map +1 -0
- package/models/trace/insights/FontDisplay.d.ts +5 -5
- package/models/trace/insights/FontDisplay.js +93 -0
- package/models/trace/insights/FontDisplay.js.map +1 -0
- package/models/trace/insights/ForcedReflow.d.ts +7 -7
- package/models/trace/insights/ForcedReflow.js +162 -0
- package/models/trace/insights/ForcedReflow.js.map +1 -0
- package/models/trace/insights/INPBreakdown.d.ts +8 -8
- package/models/trace/insights/INPBreakdown.js +130 -0
- package/models/trace/insights/INPBreakdown.js.map +1 -0
- package/models/trace/insights/ImageDelivery.d.ts +12 -12
- package/models/trace/insights/ImageDelivery.js +264 -0
- package/models/trace/insights/ImageDelivery.js.map +1 -0
- package/models/trace/insights/LCPBreakdown.d.ts +11 -11
- package/models/trace/insights/LCPBreakdown.js +200 -0
- package/models/trace/insights/LCPBreakdown.js.map +1 -0
- package/models/trace/insights/LCPDiscovery.d.ts +10 -10
- package/models/trace/insights/LCPDiscovery.js +190 -0
- package/models/trace/insights/LCPDiscovery.js.map +1 -0
- package/models/trace/insights/LegacyJavaScript.d.ts +5 -5
- package/models/trace/insights/LegacyJavaScript.js +99 -0
- package/models/trace/insights/LegacyJavaScript.js.map +1 -0
- package/models/trace/insights/Models.js +23 -0
- package/models/trace/insights/Models.js.map +1 -0
- package/models/trace/insights/ModernHTTP.d.ts +5 -5
- package/models/trace/insights/ModernHTTP.js +205 -0
- package/models/trace/insights/ModernHTTP.js.map +1 -0
- package/models/trace/insights/NetworkDependencyTree.d.ts +19 -19
- package/models/trace/insights/NetworkDependencyTree.js +551 -0
- package/models/trace/insights/NetworkDependencyTree.js.map +1 -0
- package/models/trace/insights/RenderBlocking.d.ts +5 -5
- package/models/trace/insights/RenderBlocking.js +211 -0
- package/models/trace/insights/RenderBlocking.js.map +1 -0
- package/models/trace/insights/SlowCSSSelector.d.ts +10 -10
- package/models/trace/insights/SlowCSSSelector.js +140 -0
- package/models/trace/insights/SlowCSSSelector.js.map +1 -0
- package/models/trace/insights/Statistics.js +93 -0
- package/models/trace/insights/Statistics.js.map +1 -0
- package/models/trace/insights/ThirdParties.d.ts +6 -6
- package/models/trace/insights/ThirdParties.js +110 -0
- package/models/trace/insights/ThirdParties.js.map +1 -0
- package/models/trace/insights/Viewport.d.ts +3 -3
- package/models/trace/insights/Viewport.js +105 -0
- package/models/trace/insights/Viewport.js.map +1 -0
- package/models/trace/insights/bundle-tsconfig.json +59 -0
- package/models/trace/insights/bundle-tsconfig.ref.json +27 -0
- package/models/trace/insights/foundation_unittests-tsconfig.json +98 -0
- package/models/trace/insights/foundation_unittests-tsconfig.ref.json +65 -0
- package/models/trace/insights/foundation_unittests_node_typecheck-tsconfig.json +94 -0
- package/models/trace/insights/insights-tsconfig.json +114 -0
- package/models/trace/insights/insights-tsconfig.ref.json +82 -0
- package/models/trace/insights/insights.js +10 -0
- package/models/trace/insights/insights.js.map +1 -0
- package/models/trace/insights/insights_node_typecheck-tsconfig.json +111 -0
- package/models/trace/insights/insights_node_typecheck.stamp +0 -0
- package/models/trace/insights/types.d.ts +3 -3
- package/models/trace/insights/types.js +41 -0
- package/models/trace/insights/types.js.map +1 -0
- package/models/trace/lantern/bundle-tsconfig.json +71 -0
- package/models/trace/lantern/bundle-tsconfig.ref.json +39 -0
- package/models/trace/lantern/core/LanternError.js +7 -0
- package/models/trace/lantern/core/LanternError.js.map +1 -0
- package/models/trace/lantern/core/NetworkAnalyzer.js +496 -0
- package/models/trace/lantern/core/NetworkAnalyzer.js.map +1 -0
- package/models/trace/lantern/core/bundle-tsconfig.json +59 -0
- package/models/trace/lantern/core/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/core/core-tsconfig.json +60 -0
- package/models/trace/lantern/core/core-tsconfig.ref.json +28 -0
- package/models/trace/lantern/core/core.js +6 -0
- package/models/trace/lantern/core/core.js.map +1 -0
- package/models/trace/lantern/core/core_node_typecheck-tsconfig.json +57 -0
- package/models/trace/lantern/core/core_node_typecheck.stamp +0 -0
- package/models/trace/lantern/core/foundation_unittests-tsconfig.json +69 -0
- package/models/trace/lantern/core/foundation_unittests-tsconfig.ref.json +36 -0
- package/models/trace/lantern/core/foundation_unittests_node_typecheck-tsconfig.json +65 -0
- package/models/trace/lantern/graph/BaseNode.d.ts +2 -2
- package/models/trace/lantern/graph/BaseNode.js +277 -0
- package/models/trace/lantern/graph/BaseNode.js.map +1 -0
- package/models/trace/lantern/graph/CPUNode.js +80 -0
- package/models/trace/lantern/graph/CPUNode.js.map +1 -0
- package/models/trace/lantern/graph/NetworkNode.js +95 -0
- package/models/trace/lantern/graph/NetworkNode.js.map +1 -0
- package/models/trace/lantern/graph/PageDependencyGraph.js +574 -0
- package/models/trace/lantern/graph/PageDependencyGraph.js.map +1 -0
- package/models/trace/lantern/graph/bundle-tsconfig.json +59 -0
- package/models/trace/lantern/graph/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/graph/foundation_unittests-tsconfig.json +61 -0
- package/models/trace/lantern/graph/foundation_unittests-tsconfig.ref.json +28 -0
- package/models/trace/lantern/graph/foundation_unittests_node_typecheck-tsconfig.json +57 -0
- package/models/trace/lantern/graph/graph-tsconfig.json +65 -0
- package/models/trace/lantern/graph/graph-tsconfig.ref.json +33 -0
- package/models/trace/lantern/graph/graph.js +8 -0
- package/models/trace/lantern/graph/graph.js.map +1 -0
- package/models/trace/lantern/graph/graph_node_typecheck-tsconfig.json +62 -0
- package/models/trace/lantern/graph/graph_node_typecheck.stamp +0 -0
- package/models/trace/lantern/lantern.js +10 -0
- package/models/trace/lantern/lantern.js.map +1 -0
- package/models/trace/lantern/metrics/FirstContentfulPaint.js +137 -0
- package/models/trace/lantern/metrics/FirstContentfulPaint.js.map +1 -0
- package/models/trace/lantern/metrics/Interactive.js +68 -0
- package/models/trace/lantern/metrics/Interactive.js.map +1 -0
- package/models/trace/lantern/metrics/LargestContentfulPaint.js +75 -0
- package/models/trace/lantern/metrics/LargestContentfulPaint.js.map +1 -0
- package/models/trace/lantern/metrics/MaxPotentialFID.js +49 -0
- package/models/trace/lantern/metrics/MaxPotentialFID.js.map +1 -0
- package/models/trace/lantern/metrics/Metric.js +69 -0
- package/models/trace/lantern/metrics/Metric.js.map +1 -0
- package/models/trace/lantern/metrics/SpeedIndex.js +102 -0
- package/models/trace/lantern/metrics/SpeedIndex.js.map +1 -0
- package/models/trace/lantern/metrics/TBTUtils.js +65 -0
- package/models/trace/lantern/metrics/TBTUtils.js.map +1 -0
- package/models/trace/lantern/metrics/TotalBlockingTime.js +79 -0
- package/models/trace/lantern/metrics/TotalBlockingTime.js.map +1 -0
- package/models/trace/lantern/metrics/bundle-tsconfig.json +59 -0
- package/models/trace/lantern/metrics/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/metrics/foundation_unittests-tsconfig.json +76 -0
- package/models/trace/lantern/metrics/foundation_unittests-tsconfig.ref.json +43 -0
- package/models/trace/lantern/metrics/foundation_unittests_node_typecheck-tsconfig.json +72 -0
- package/models/trace/lantern/metrics/metrics-tsconfig.json +75 -0
- package/models/trace/lantern/metrics/metrics-tsconfig.ref.json +43 -0
- package/models/trace/lantern/metrics/metrics.js +12 -0
- package/models/trace/lantern/metrics/metrics.js.map +1 -0
- package/models/trace/lantern/metrics/metrics_node_typecheck-tsconfig.json +72 -0
- package/models/trace/lantern/metrics/metrics_node_typecheck.stamp +0 -0
- package/models/trace/lantern/simulation/ConnectionPool.js +116 -0
- package/models/trace/lantern/simulation/ConnectionPool.js.map +1 -0
- package/models/trace/lantern/simulation/Constants.js +45 -0
- package/models/trace/lantern/simulation/Constants.js.map +1 -0
- package/models/trace/lantern/simulation/DNSCache.js +48 -0
- package/models/trace/lantern/simulation/DNSCache.js.map +1 -0
- package/models/trace/lantern/simulation/SimulationTimingMap.js +135 -0
- package/models/trace/lantern/simulation/SimulationTimingMap.js.map +1 -0
- package/models/trace/lantern/simulation/Simulator.js +457 -0
- package/models/trace/lantern/simulation/Simulator.js.map +1 -0
- package/models/trace/lantern/simulation/TCPConnection.js +155 -0
- package/models/trace/lantern/simulation/TCPConnection.js.map +1 -0
- package/models/trace/lantern/simulation/bundle-tsconfig.json +59 -0
- package/models/trace/lantern/simulation/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/simulation/foundation_unittests-tsconfig.json +75 -0
- package/models/trace/lantern/simulation/foundation_unittests-tsconfig.ref.json +42 -0
- package/models/trace/lantern/simulation/foundation_unittests_node_typecheck-tsconfig.json +71 -0
- package/models/trace/lantern/simulation/simulation-tsconfig.json +70 -0
- package/models/trace/lantern/simulation/simulation-tsconfig.ref.json +38 -0
- package/models/trace/lantern/simulation/simulation.js +10 -0
- package/models/trace/lantern/simulation/simulation.js.map +1 -0
- package/models/trace/lantern/simulation/simulation_node_typecheck-tsconfig.json +67 -0
- package/models/trace/lantern/simulation/simulation_node_typecheck.stamp +0 -0
- package/models/trace/lantern/testing/bundle-tsconfig.json +60 -0
- package/models/trace/lantern/testing/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/testing/testing-tsconfig.json +63 -0
- package/models/trace/lantern/testing/testing-tsconfig.ref.json +30 -0
- package/models/trace/lantern/types/Lantern.d.ts +19 -19
- package/models/trace/lantern/types/Lantern.js +25 -0
- package/models/trace/lantern/types/Lantern.js.map +1 -0
- package/models/trace/lantern/types/bundle-tsconfig.json +59 -0
- package/models/trace/lantern/types/bundle-tsconfig.ref.json +27 -0
- package/models/trace/lantern/types/types-tsconfig.json +59 -0
- package/models/trace/lantern/types/types-tsconfig.ref.json +27 -0
- package/models/trace/lantern/types/types.js +5 -0
- package/models/trace/lantern/types/types.js.map +1 -0
- package/models/trace/lantern/types/types_node_typecheck-tsconfig.json +56 -0
- package/models/trace/lantern/types/types_node_typecheck.stamp +0 -0
- package/models/trace/trace-tsconfig.json +89 -0
- package/models/trace/trace-tsconfig.ref.json +57 -0
- package/models/trace/trace.js +16 -544
- package/models/trace/trace.js.map +1 -0
- package/models/trace/trace_node_typecheck-tsconfig.json +86 -0
- package/models/trace/trace_node_typecheck.stamp +0 -0
- package/models/trace/types/Configuration.d.ts +2 -2
- package/models/trace/types/Configuration.js +19 -0
- package/models/trace/types/Configuration.js.map +1 -0
- package/models/trace/types/Extensions.d.ts +1 -1
- package/models/trace/types/Extensions.js +38 -0
- package/models/trace/types/Extensions.js.map +1 -0
- package/models/trace/types/File.d.ts +9 -3
- package/models/trace/types/File.js +92 -0
- package/models/trace/types/File.js.map +1 -0
- package/models/trace/types/Overlays.js +5 -0
- package/models/trace/types/Overlays.js.map +1 -0
- package/models/trace/types/Timing.js +16 -0
- package/models/trace/types/Timing.js.map +1 -0
- package/models/trace/types/TraceEvents.d.ts +21 -16
- package/models/trace/types/TraceEvents.js +983 -0
- package/models/trace/types/TraceEvents.js.map +1 -0
- package/models/trace/types/bundle-tsconfig.json +59 -0
- package/models/trace/types/bundle-tsconfig.ref.json +27 -0
- package/models/trace/types/foundation_unittests-tsconfig.json +67 -0
- package/models/trace/types/foundation_unittests-tsconfig.ref.json +34 -0
- package/models/trace/types/foundation_unittests_node_typecheck-tsconfig.json +63 -0
- package/models/trace/types/types-tsconfig.json +76 -0
- package/models/trace/types/types-tsconfig.ref.json +44 -0
- package/models/trace/types/types.js +10 -0
- package/models/trace/types/types.js.map +1 -0
- package/models/trace/types/types_node_typecheck-tsconfig.json +73 -0
- package/models/trace/types/types_node_typecheck.stamp +0 -0
- package/package.json +8 -40
- package/test/invalid-animation-events.json.gz +0 -0
- package/test/test-trace-engine.mjs +191 -0
- package/third_party/legacy-javascript/bundle-tsconfig.json +59 -0
- package/third_party/legacy-javascript/bundle-tsconfig.ref.json +27 -0
- package/third_party/legacy-javascript/legacy-javascript-tsconfig.ref.json +15 -0
- package/third_party/legacy-javascript/legacy-javascript.js +3 -0
- package/third_party/legacy-javascript/legacy-javascript.js.map +1 -0
- package/third_party/legacy-javascript/lib/legacy-javascript.js +1119 -0
- package/third_party/marked/marked.d.ts +1 -2
- package/third_party/marked/marked.js +1 -0
- package/third_party/third-party-web/third-party-web.d.ts +1 -2
- package/third_party/third-party-web/third-party-web.js +1 -0
- package/tsconfig.json +29 -0
- package/core/common/Base64.d.ts +0 -12
- package/core/common/CharacterIdMap.d.ts +0 -5
- package/core/common/Color.d.ts +0 -357
- package/core/common/ColorConverter.d.ts +0 -26
- package/core/common/ColorUtils.d.ts +0 -45
- package/core/common/Console.d.ts +0 -54
- package/core/common/Debouncer.d.ts +0 -8
- package/core/common/EventTarget.d.ts +0 -22
- package/core/common/Gzip.d.ts +0 -23
- package/core/common/JavaScriptMetaData.d.ts +0 -20
- package/core/common/Lazy.d.ts +0 -4
- package/core/common/MapWithDefault.d.ts +0 -9
- package/core/common/Mutex.d.ts +0 -13
- package/core/common/Object.d.ts +0 -20
- package/core/common/Progress.d.ts +0 -47
- package/core/common/ResolverBase.d.ts +0 -29
- package/core/common/ResourceType.d.ts +0 -52
- package/core/common/ReturnToPanel.d.ts +0 -10
- package/core/common/Revealer.d.ts +0 -66
- package/core/common/Runnable.d.ts +0 -14
- package/core/common/SegmentedRange.d.ts +0 -14
- package/core/common/SettingRegistration.d.ts +0 -136
- package/core/common/Settings.d.ts +0 -228
- package/core/common/SimpleHistoryManager.d.ts +0 -20
- package/core/common/Srcset.d.ts +0 -16
- package/core/common/StringOutputStream.d.ts +0 -10
- package/core/common/TextDictionary.d.ts +0 -11
- package/core/common/Throttler.d.ts +0 -12
- package/core/common/Trie.d.ts +0 -24
- package/core/common/VersionController.d.ts +0 -85
- package/core/host/AidaClient.d.ts +0 -73
- package/core/host/AidaClientTypes.d.ts +0 -355
- package/core/host/AidaGcaTranslation.d.ts +0 -10
- package/core/host/DispatchHttpRequestClient.d.ts +0 -14
- package/core/host/GcaClient.d.ts +0 -14
- package/core/host/GcaTypes.d.ts +0 -411
- package/core/host/GdpClient.d.ts +0 -84
- package/core/host/InspectorFrontendHost.d.ts +0 -29
- package/core/host/InspectorFrontendHostAPI.d.ts +0 -425
- package/core/host/InspectorFrontendHostStub.d.ts +0 -151
- package/core/host/Platform.d.ts +0 -16
- package/core/host/ResourceLoader.d.ts +0 -15
- package/core/host/UserMetrics.d.ts +0 -116
- package/core/host/UserMetricsEnums.d.ts +0 -888
- package/core/i18n/ByteUtilities.d.ts +0 -11
- package/core/i18n/DevToolsLocale.d.ts +0 -41
- package/core/i18n/NumberFormatter.d.ts +0 -11
- package/core/i18n/i18nImpl.d.ts +0 -64
- package/core/i18n/i18nTypes.d.ts +0 -5
- package/core/i18n/locales.d.ts +0 -15
- package/core/i18n/time-utilities.d.ts +0 -16
- package/core/platform/browser/HostRuntime.d.ts +0 -2
- package/core/platform/browser/browser.d.ts +0 -2
- package/core/platform/node/HostRuntime.d.ts +0 -2
- package/core/platform/node/node.d.ts +0 -2
- package/core/protocol_client/CDPConnection.d.ts +0 -77
- package/core/protocol_client/ConnectionTransport.d.ts +0 -9
- package/core/protocol_client/DevToolsCDPConnection.d.ts +0 -16
- package/core/protocol_client/InspectorBackend.d.ts +0 -223
- package/core/protocol_client/protocol_client.d.ts +0 -5
- package/core/root/DevToolsContext.d.ts +0 -34
- package/core/root/ExperimentNames.d.ts +0 -9
- package/core/root/Runtime.d.ts +0 -353
- package/core/sdk/AccessibilityModel.d.ts +0 -76
- package/core/sdk/AnimationModel.d.ts +0 -161
- package/core/sdk/AutofillModel.d.ts +0 -23
- package/core/sdk/CPUProfilerModel.d.ts +0 -46
- package/core/sdk/CPUThrottlingManager.d.ts +0 -47
- package/core/sdk/CSSContainerQuery.d.ts +0 -42
- package/core/sdk/CSSFontFace.d.ts +0 -10
- package/core/sdk/CSSLayer.d.ts +0 -9
- package/core/sdk/CSSLocation.d.ts +0 -14
- package/core/sdk/CSSMatchedStyles.d.ts +0 -138
- package/core/sdk/CSSMedia.d.ts +0 -36
- package/core/sdk/CSSMetadata.d.ts +0 -87
- package/core/sdk/CSSModel.d.ts +0 -185
- package/core/sdk/CSSNavigation.d.ts +0 -10
- package/core/sdk/CSSProperty.d.ts +0 -53
- package/core/sdk/CSSPropertyParser.d.ts +0 -126
- package/core/sdk/CSSPropertyParserMatchers.d.ts +0 -442
- package/core/sdk/CSSQuery.d.ts +0 -22
- package/core/sdk/CSSRule.d.ts +0 -132
- package/core/sdk/CSSScope.d.ts +0 -9
- package/core/sdk/CSSStartingStyle.d.ts +0 -9
- package/core/sdk/CSSStyleDeclaration.d.ts +0 -38
- package/core/sdk/CSSStyleSheetHeader.d.ts +0 -53
- package/core/sdk/CSSSupports.d.ts +0 -10
- package/core/sdk/CategorizedBreakpoint.d.ts +0 -42
- package/core/sdk/ChildTargetManager.d.ts +0 -40
- package/core/sdk/CompilerSourceMappingContentProvider.d.ts +0 -12
- package/core/sdk/Connections.d.ts +0 -36
- package/core/sdk/ConsoleModel.d.ts +0 -127
- package/core/sdk/ConsoleModelTypes.d.ts +0 -6
- package/core/sdk/Cookie.d.ts +0 -68
- package/core/sdk/CookieModel.d.ts +0 -31
- package/core/sdk/CookieParser.d.ts +0 -14
- package/core/sdk/CrashReportContextModel.d.ts +0 -8
- package/core/sdk/DOMDebuggerModel.d.ts +0 -127
- package/core/sdk/DOMModel.d.ts +0 -440
- package/core/sdk/DOMStorageModel.d.ts +0 -79
- package/core/sdk/DebuggerModel.d.ts +0 -305
- package/core/sdk/EmulationModel.d.ts +0 -95
- package/core/sdk/EnhancedTracesParser.d.ts +0 -105
- package/core/sdk/EventBreakpointsModel.d.ts +0 -66
- package/core/sdk/FrameAssociated.d.ts +0 -6
- package/core/sdk/FrameManager.d.ts +0 -68
- package/core/sdk/HeapProfilerModel.d.ts +0 -75
- package/core/sdk/HttpReasonPhraseStrings.d.ts +0 -5
- package/core/sdk/IOModel.d.ts +0 -10
- package/core/sdk/IsolateManager.d.ts +0 -53
- package/core/sdk/IssuesModel.d.ts +0 -28
- package/core/sdk/LayerTreeBase.d.ts +0 -70
- package/core/sdk/LogModel.d.ts +0 -20
- package/core/sdk/NetworkManager.d.ts +0 -418
- package/core/sdk/NetworkRequest.d.ts +0 -497
- package/core/sdk/NetworkRequestAccess.d.ts +0 -91
- package/core/sdk/OverlayColorGenerator.d.ts +0 -14
- package/core/sdk/OverlayModel.d.ts +0 -186
- package/core/sdk/OverlayPersistentHighlighter.d.ts +0 -116
- package/core/sdk/PageFunctions.d.ts +0 -22
- package/core/sdk/PageLoad.d.ts +0 -14
- package/core/sdk/PageResourceLoader.d.ts +0 -111
- package/core/sdk/PaintProfiler.d.ts +0 -43
- package/core/sdk/PerformanceMetricsModel.d.ts +0 -12
- package/core/sdk/PreloadingModel.d.ts +0 -146
- package/core/sdk/RehydratingConnection.d.ts +0 -73
- package/core/sdk/RehydratingObject.d.ts +0 -59
- package/core/sdk/RemoteObject.d.ts +0 -210
- package/core/sdk/Resource.d.ts +0 -36
- package/core/sdk/ResourceTreeModel.d.ts +0 -280
- package/core/sdk/RuntimeModel.d.ts +0 -164
- package/core/sdk/SDKModel.d.ts +0 -30
- package/core/sdk/SDKSettings.d.ts +0 -54
- package/core/sdk/ScopeTreeCache.d.ts +0 -21
- package/core/sdk/ScreenCaptureModel.d.ts +0 -69
- package/core/sdk/Script.d.ts +0 -134
- package/core/sdk/SecurityOrigin.d.ts +0 -108
- package/core/sdk/SecurityOriginManager.d.ts +0 -23
- package/core/sdk/ServerSentEvents.d.ts +0 -18
- package/core/sdk/ServerSentEventsProtocol.d.ts +0 -18
- package/core/sdk/ServerTiming.d.ts +0 -24
- package/core/sdk/ServiceWorkerCacheModel.d.ts +0 -71
- package/core/sdk/ServiceWorkerManager.d.ts +0 -125
- package/core/sdk/SourceMap.d.ts +0 -211
- package/core/sdk/SourceMapCache.d.ts +0 -12
- package/core/sdk/SourceMapFunctionRanges.d.ts +0 -23
- package/core/sdk/SourceMapManager.d.ts +0 -46
- package/core/sdk/SourceMapRangeMappings.d.ts +0 -15
- package/core/sdk/SourceMapScopeChainEntry.d.ts +0 -23
- package/core/sdk/SourceMapScopesInfo.d.ts +0 -184
- package/core/sdk/StorageBucketsModel.d.ts +0 -48
- package/core/sdk/StorageKeyManager.d.ts +0 -38
- package/core/sdk/Target.d.ts +0 -79
- package/core/sdk/TargetManager.d.ts +0 -92
- package/core/sdk/TraceObject.d.ts +0 -43
- package/core/sdk/WebAuthnModel.d.ts +0 -29
- package/core/text_utils/CodeMirrorUtils.d.ts +0 -3
- package/core/text_utils/ContentData.d.ts +0 -94
- package/core/text_utils/ContentProvider.d.ts +0 -42
- package/core/text_utils/Markdown.d.ts +0 -13
- package/core/text_utils/StaticContentProvider.d.ts +0 -13
- package/core/text_utils/StreamingContentData.d.ts +0 -49
- package/core/text_utils/Text.d.ts +0 -19
- package/core/text_utils/TextCursor.d.ts +0 -9
- package/core/text_utils/TextRange.d.ts +0 -81
- package/core/text_utils/TextUtils.d.ts +0 -97
- package/core/text_utils/WasmDisassembly.d.ts +0 -29
- package/core/text_utils/text_utils.d.ts +0 -12
- package/entrypoints/formatter_actions/formatter_actions.d.ts +0 -65
- package/generated/InspectorBackendCommands.d.ts +0 -14
- package/generated/SupportedCSSProperties.d.ts +0 -18
- package/generated/protocol-mapping.d.ts +0 -5985
- package/generated/protocol-proxy-api.d.ts +0 -5447
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/models/crux-manager/CrUXManager.d.ts +0 -107
- package/models/emulation/DeviceModeModel.d.ts +0 -157
- package/models/emulation/EmulatedDevices.d.ts +0 -148
- package/models/emulation/emulation.d.ts +0 -3
- package/models/formatter/FormatterWorkerPool.d.ts +0 -58
- package/models/formatter/ScriptFormatter.d.ts +0 -11
- package/models/formatter/formatter.d.ts +0 -3
- package/third_party/codemirror.next/codemirror.next.d.ts +0 -9196
- package/third_party/i18n/i18n-impl.d.ts +0 -25
- package/third_party/i18n/i18n.d.ts +0 -3
- package/third_party/i18n/localized-string-set.d.ts +0 -49
- package/third_party/intl-messageformat/intl-messageformat.d.ts +0 -1
- package/third_party/marked/package/lib/marked.esm.d.ts +0 -760
- package/third_party/source-map-scopes-codec/package/src/builder/builder.d.ts +0 -70
- package/third_party/source-map-scopes-codec/package/src/builder/safe_builder.d.ts +0 -40
- package/third_party/source-map-scopes-codec/package/src/codec.d.ts +0 -49
- package/third_party/source-map-scopes-codec/package/src/decode/decode.d.ts +0 -33
- package/third_party/source-map-scopes-codec/package/src/encode/encode.d.ts +0 -8
- package/third_party/source-map-scopes-codec/package/src/encode/encoder.d.ts +0 -9
- package/third_party/source-map-scopes-codec/package/src/mod.d.ts +0 -5
- package/third_party/source-map-scopes-codec/package/src/scopes.d.ts +0 -169
- package/third_party/source-map-scopes-codec/package/src/util.d.ts +0 -5
- package/third_party/source-map-scopes-codec/package/src/vlq.d.ts +0 -14
- package/third_party/source-map-scopes-codec/source-map-scopes-codec.d.ts +0 -1
- package/third_party/third-party-web/lib/nostats-subset.d.ts +0 -2
- package/third_party/third-party-web/package/lib/index.d.ts +0 -34
- package/third_party/third-party-web/package/lib/subsets/nostats.d.ts +0 -1
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as Common from '../../core/common/common.js';
|
|
2
|
-
import * as Protocol from '../../generated/protocol.js';
|
|
3
|
-
import { EmulationModel } from './EmulationModel.js';
|
|
4
|
-
import { type SDKModelObserver, TargetManager } from './TargetManager.js';
|
|
5
|
-
export declare enum CalibrationError {
|
|
6
|
-
DEVICE_TOO_WEAK = "DEVICE_TOO_WEAK"
|
|
7
|
-
}
|
|
8
|
-
export interface CalibratedCPUThrottling {
|
|
9
|
-
low?: number | CalibrationError;
|
|
10
|
-
mid?: number | CalibrationError;
|
|
11
|
-
actualScore?: number;
|
|
12
|
-
}
|
|
13
|
-
export import CPUPerformanceTier = Protocol.Emulation.SetCPUPerformanceOverrideRequestPerformanceTier;
|
|
14
|
-
export declare function numberToTier(value: number): CPUPerformanceTier;
|
|
15
|
-
export declare function tierToNumber(tier: CPUPerformanceTier): number;
|
|
16
|
-
export declare class CPUThrottlingManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes> implements SDKModelObserver<EmulationModel> {
|
|
17
|
-
#private;
|
|
18
|
-
constructor(settings: Common.Settings.Settings, targetManager: TargetManager);
|
|
19
|
-
initialize(): void;
|
|
20
|
-
static instance(opts?: {
|
|
21
|
-
forceNew?: boolean | null;
|
|
22
|
-
settings?: Common.Settings.Settings;
|
|
23
|
-
targetManager?: TargetManager;
|
|
24
|
-
}): CPUThrottlingManager;
|
|
25
|
-
static removeInstance(): void;
|
|
26
|
-
cpuThrottlingRate(): number;
|
|
27
|
-
calculatedCPUPerformanceTier(): CPUPerformanceTier | undefined;
|
|
28
|
-
effectiveCPUPerformanceTier(): CPUPerformanceTier | undefined;
|
|
29
|
-
setCPUThrottlingRate(rate: number): void;
|
|
30
|
-
setHardwareConcurrency(concurrency: number): void;
|
|
31
|
-
setCPUPerformanceTier(tier?: CPUPerformanceTier): void;
|
|
32
|
-
hasPrimaryPageTargetSet(): boolean;
|
|
33
|
-
getHardwareConcurrency(): Promise<number>;
|
|
34
|
-
updateHostDefaultCPUPerformanceTier(): Promise<void>;
|
|
35
|
-
modelAdded(emulationModel: EmulationModel): void;
|
|
36
|
-
modelRemoved(_emulationModel: EmulationModel): void;
|
|
37
|
-
}
|
|
38
|
-
export declare const enum Events {
|
|
39
|
-
RATE_CHANGED = "RateChanged",
|
|
40
|
-
HARDWARE_CONCURRENCY_CHANGED = "HardwareConcurrencyChanged",
|
|
41
|
-
CPU_PERFORMANCE_TIER_CHANGED = "CpuPerformanceTierChanged"
|
|
42
|
-
}
|
|
43
|
-
export interface EventTypes {
|
|
44
|
-
[Events.RATE_CHANGED]: number;
|
|
45
|
-
[Events.HARDWARE_CONCURRENCY_CHANGED]: number;
|
|
46
|
-
[Events.CPU_PERFORMANCE_TIER_CHANGED]: CPUPerformanceTier | undefined;
|
|
47
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import type { CSSModel } from './CSSModel.js';
|
|
3
|
-
import { CSSQuery } from './CSSQuery.js';
|
|
4
|
-
import type { DOMNode } from './DOMModel.js';
|
|
5
|
-
export declare class CSSContainerQuery extends CSSQuery {
|
|
6
|
-
name?: string;
|
|
7
|
-
physicalAxes?: Protocol.DOM.PhysicalAxes;
|
|
8
|
-
logicalAxes?: Protocol.DOM.LogicalAxes;
|
|
9
|
-
queriesScrollState?: boolean;
|
|
10
|
-
queriesAnchored?: boolean;
|
|
11
|
-
textIsConditionText?: boolean;
|
|
12
|
-
static parseContainerQueriesPayload(cssModel: CSSModel, payload: Protocol.CSS.CSSContainerQuery[]): CSSContainerQuery[];
|
|
13
|
-
constructor(cssModel: CSSModel, payload: Protocol.CSS.CSSContainerQuery);
|
|
14
|
-
reinitialize(payload: Protocol.CSS.CSSContainerQuery): void;
|
|
15
|
-
active(): boolean;
|
|
16
|
-
getContainerForNode(nodeId: Protocol.DOM.NodeId): Promise<CSSContainerQueryContainer | undefined>;
|
|
17
|
-
}
|
|
18
|
-
export declare class CSSContainerQueryContainer {
|
|
19
|
-
readonly containerNode: DOMNode;
|
|
20
|
-
constructor(containerNode: DOMNode);
|
|
21
|
-
getContainerSizeDetails(): Promise<ContainerQueriedSizeDetails | undefined>;
|
|
22
|
-
}
|
|
23
|
-
export declare const getQueryAxisFromContainerType: (propertyValue: string) => QueryAxis;
|
|
24
|
-
export declare const getPhysicalAxisFromQueryAxis: (queryAxis: QueryAxis, writingMode: string) => PhysicalAxis;
|
|
25
|
-
export interface ContainerQueriedSizeDetails {
|
|
26
|
-
queryAxis: QueryAxis;
|
|
27
|
-
physicalAxis: PhysicalAxis;
|
|
28
|
-
width?: string;
|
|
29
|
-
height?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare const enum QueryAxis {
|
|
32
|
-
NONE = "",
|
|
33
|
-
INLINE = "inline-size",
|
|
34
|
-
BLOCK = "block-size",
|
|
35
|
-
BOTH = "size"
|
|
36
|
-
}
|
|
37
|
-
export declare const enum PhysicalAxis {
|
|
38
|
-
NONE = "",
|
|
39
|
-
HORIZONTAL = "Horizontal",
|
|
40
|
-
VERTICAL = "Vertical",
|
|
41
|
-
BOTH = "Both"
|
|
42
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import type * as Platform from '../platform/platform.js';
|
|
3
|
-
export declare class CSSFontFace {
|
|
4
|
-
#private;
|
|
5
|
-
constructor(payload: Protocol.CSS.FontFace);
|
|
6
|
-
getFontFamily(): string;
|
|
7
|
-
getSrc(): Platform.DevToolsPath.UrlString;
|
|
8
|
-
getFontDisplay(): string;
|
|
9
|
-
getVariationAxisByTag(tag: string): Protocol.CSS.FontVariationAxis | undefined;
|
|
10
|
-
}
|
package/core/sdk/CSSLayer.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import type { CSSModel } from './CSSModel.js';
|
|
3
|
-
import { CSSQuery } from './CSSQuery.js';
|
|
4
|
-
export declare class CSSLayer extends CSSQuery {
|
|
5
|
-
static parseLayerPayload(cssModel: CSSModel, payload: Protocol.CSS.CSSLayer[]): CSSLayer[];
|
|
6
|
-
constructor(cssModel: CSSModel, payload: Protocol.CSS.CSSLayer);
|
|
7
|
-
reinitialize(payload: Protocol.CSS.CSSLayer): void;
|
|
8
|
-
active(): boolean;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import type * as Platform from '../platform/platform.js';
|
|
3
|
-
import type { CSSModel } from './CSSModel.js';
|
|
4
|
-
import type { CSSStyleSheetHeader } from './CSSStyleSheetHeader.js';
|
|
5
|
-
export declare class CSSLocation {
|
|
6
|
-
#private;
|
|
7
|
-
styleSheetId: Protocol.DOM.StyleSheetId;
|
|
8
|
-
url: Platform.DevToolsPath.UrlString;
|
|
9
|
-
lineNumber: number;
|
|
10
|
-
columnNumber: number;
|
|
11
|
-
constructor(header: CSSStyleSheetHeader, lineNumber: number, columnNumber?: number);
|
|
12
|
-
cssModel(): CSSModel;
|
|
13
|
-
header(): CSSStyleSheetHeader | null;
|
|
14
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import { CSSWideKeyword } from './CSSMetadata.js';
|
|
3
|
-
import type { CSSModel } from './CSSModel.js';
|
|
4
|
-
import { CSSProperty } from './CSSProperty.js';
|
|
5
|
-
import * as PropertyParser from './CSSPropertyParser.js';
|
|
6
|
-
import type { Match, Matcher } from './CSSPropertyParser.js';
|
|
7
|
-
import { CSSAtRule, CSSFunctionRule, CSSKeyframesRule, CSSPositionTryRule, CSSPropertyRule, CSSStyleRule } from './CSSRule.js';
|
|
8
|
-
import { CSSStyleDeclaration } from './CSSStyleDeclaration.js';
|
|
9
|
-
import { type DOMNode } from './DOMModel.js';
|
|
10
|
-
/**
|
|
11
|
-
* Distance from node to parent that is the tree scope. Returns -1 if tree scope is not found.
|
|
12
|
-
*
|
|
13
|
-
* @param node The child node to start from.
|
|
14
|
-
* @param treeScope The tree scope node ID.
|
|
15
|
-
* @returns The distance to the tree scope node, or -1 if not found.
|
|
16
|
-
*/
|
|
17
|
-
export declare function distanceToTreeScope(node: DOMNode, treeScope: Protocol.DOM.BackendNodeId): number;
|
|
18
|
-
export interface CSSMatchedStylesPayload {
|
|
19
|
-
cssModel: CSSModel;
|
|
20
|
-
node: DOMNode;
|
|
21
|
-
activePositionFallbackIndex: number;
|
|
22
|
-
inlinePayload: Protocol.CSS.CSSStyle | null;
|
|
23
|
-
attributesPayload: Protocol.CSS.CSSStyle | null;
|
|
24
|
-
matchedPayload: Protocol.CSS.RuleMatch[];
|
|
25
|
-
pseudoPayload: Protocol.CSS.PseudoElementMatches[];
|
|
26
|
-
inheritedPayload: Protocol.CSS.InheritedStyleEntry[];
|
|
27
|
-
inheritedPseudoPayload: Protocol.CSS.InheritedPseudoElementMatches[];
|
|
28
|
-
animationsPayload: Protocol.CSS.CSSKeyframesRule[];
|
|
29
|
-
parentLayoutNodeId: Protocol.DOM.NodeId | undefined;
|
|
30
|
-
positionTryRules: Protocol.CSS.CSSPositionTryRule[];
|
|
31
|
-
propertyRules: Protocol.CSS.CSSPropertyRule[];
|
|
32
|
-
cssPropertyRegistrations: Protocol.CSS.CSSPropertyRegistration[];
|
|
33
|
-
atRules: Protocol.CSS.CSSAtRule[];
|
|
34
|
-
animationStylesPayload: Protocol.CSS.CSSAnimationStyle[];
|
|
35
|
-
transitionsStylePayload: Protocol.CSS.CSSStyle | null;
|
|
36
|
-
inheritedAnimatedPayload: Protocol.CSS.InheritedAnimatedStyleEntry[];
|
|
37
|
-
functionRules: Protocol.CSS.CSSFunctionRule[];
|
|
38
|
-
}
|
|
39
|
-
export interface CSSType {
|
|
40
|
-
type: string;
|
|
41
|
-
isCSSTokens: boolean;
|
|
42
|
-
}
|
|
43
|
-
export declare class CSSRegisteredProperty {
|
|
44
|
-
#private;
|
|
45
|
-
constructor(cssModel: CSSModel, registration: CSSPropertyRule | Protocol.CSS.CSSPropertyRegistration);
|
|
46
|
-
propertyName(): string;
|
|
47
|
-
initialValue(): string | null;
|
|
48
|
-
inherits(): boolean;
|
|
49
|
-
syntax(): string;
|
|
50
|
-
parseValue(matchedStyles: CSSMatchedStyles, computedStyles: Map<string, string> | null): PropertyParser.BottomUpTreeMatching | null;
|
|
51
|
-
style(): CSSStyleDeclaration;
|
|
52
|
-
}
|
|
53
|
-
export declare class CSSMatchedStyles {
|
|
54
|
-
#private;
|
|
55
|
-
static create(payload: CSSMatchedStylesPayload): Promise<CSSMatchedStyles>;
|
|
56
|
-
private constructor();
|
|
57
|
-
private init;
|
|
58
|
-
private buildMainCascade;
|
|
59
|
-
/**
|
|
60
|
-
* Pseudo rule matches received via the inspector protocol are grouped by pseudo type.
|
|
61
|
-
* For custom highlight pseudos, we need to instead group the rule matches by highlight
|
|
62
|
-
* name in order to produce separate cascades for each highlight name. This is necessary
|
|
63
|
-
* so that styles of ::highlight(foo) are not shown as overriding styles of ::highlight(bar).
|
|
64
|
-
*
|
|
65
|
-
* This helper function takes a list of rule matches and generates separate NodeCascades
|
|
66
|
-
* for each custom highlight name that was matched.
|
|
67
|
-
*/
|
|
68
|
-
private buildSplitCustomHighlightCascades;
|
|
69
|
-
private buildPseudoCascades;
|
|
70
|
-
private addMatchingSelectors;
|
|
71
|
-
node(): DOMNode;
|
|
72
|
-
cssModel(): CSSModel;
|
|
73
|
-
hasMatchingSelectors(rule: CSSStyleRule): boolean;
|
|
74
|
-
getParentLayoutNodeId(): Protocol.DOM.NodeId | undefined;
|
|
75
|
-
getMatchingSelectors(rule: CSSStyleRule): number[];
|
|
76
|
-
recomputeMatchingSelectors(rule: CSSStyleRule): Promise<void>;
|
|
77
|
-
addNewRule(rule: CSSStyleRule, node: DOMNode): Promise<void>;
|
|
78
|
-
private setSelectorMatches;
|
|
79
|
-
nodeStyles(): CSSStyleDeclaration[];
|
|
80
|
-
inheritedStyles(): CSSStyleDeclaration[];
|
|
81
|
-
animationStyles(): CSSStyleDeclaration[];
|
|
82
|
-
transitionsStyle(): CSSStyleDeclaration | null;
|
|
83
|
-
registeredProperties(): CSSRegisteredProperty[];
|
|
84
|
-
getRegisteredProperty(name: string): CSSRegisteredProperty | undefined;
|
|
85
|
-
getRegisteredFunction(name: string, sourceProperty: CSSProperty): {
|
|
86
|
-
treeScopeDistance: number;
|
|
87
|
-
registeredFunction?: string;
|
|
88
|
-
};
|
|
89
|
-
functionRules(): CSSFunctionRule[];
|
|
90
|
-
atRules(): CSSAtRule[];
|
|
91
|
-
keyframes(): CSSKeyframesRule[];
|
|
92
|
-
positionTryRules(): CSSPositionTryRule[];
|
|
93
|
-
activePositionFallbackIndex(): number;
|
|
94
|
-
pseudoStyles(pseudoType: Protocol.DOM.PseudoType): CSSStyleDeclaration[];
|
|
95
|
-
pseudoTypes(): Set<Protocol.DOM.PseudoType>;
|
|
96
|
-
customHighlightPseudoStyles(highlightName: string): CSSStyleDeclaration[];
|
|
97
|
-
customHighlightPseudoNames(): Set<string>;
|
|
98
|
-
/**
|
|
99
|
-
* Looks for a rule with the same selector chain as a specific parent rule of the current one.
|
|
100
|
-
* This finds a rule with the same guaranteed specificity, not necessarily THE parent rule,
|
|
101
|
-
* as the same selector string can be used on multiple rules in the same scope, in the same
|
|
102
|
-
* or different stylesheet.
|
|
103
|
-
*
|
|
104
|
-
* @param rule The (nested) rule whose parent rule selector should be matched
|
|
105
|
-
* @param nestingIndex Nesting depth of the parent selector to be matched, with 0 meaning direct parent, 1 grandparent rule and so on
|
|
106
|
-
* @returns A rule with the same selector chain and specificity as selected parent rule, if found. `null` otherwise
|
|
107
|
-
*/
|
|
108
|
-
findParentRule(rule: CSSStyleRule, nestingIndex: number): CSSStyleRule | null;
|
|
109
|
-
nodeForStyle(style: CSSStyleDeclaration): DOMNode | null;
|
|
110
|
-
availableCSSVariables(style: CSSStyleDeclaration): string[];
|
|
111
|
-
computeCSSVariable(style: CSSStyleDeclaration, variableName: string, containerNode?: DOMNode): CSSVariableValue | null;
|
|
112
|
-
computeAttribute(style: CSSStyleDeclaration, attributeName: string, type: CSSType): string | null;
|
|
113
|
-
originatingNodeForStyle(style: CSSStyleDeclaration): DOMNode | null;
|
|
114
|
-
rawAttributeValueFromStyle(style: CSSStyleDeclaration, attributeName: string): string | null;
|
|
115
|
-
resolveProperty(name: string, ownerStyle: CSSStyleDeclaration): CSSProperty | null;
|
|
116
|
-
resolveGlobalKeyword(property: CSSProperty, keyword: CSSWideKeyword): CSSValueSource | null;
|
|
117
|
-
isInherited(style: CSSStyleDeclaration): boolean;
|
|
118
|
-
propertyState(property: CSSProperty): PropertyState | null;
|
|
119
|
-
isPropertyOverriddenByAnimation(property: CSSProperty): boolean;
|
|
120
|
-
resetActiveProperties(): void;
|
|
121
|
-
propertyMatchers(style: CSSStyleDeclaration, computedStyles: Map<string, string> | null): Array<Matcher<Match>>;
|
|
122
|
-
environmentVariable(name: string): string | undefined;
|
|
123
|
-
}
|
|
124
|
-
export declare class CSSValueSource {
|
|
125
|
-
readonly declaration: CSSProperty | CSSRegisteredProperty;
|
|
126
|
-
constructor(declaration: CSSProperty | CSSRegisteredProperty);
|
|
127
|
-
get value(): string | null;
|
|
128
|
-
get style(): CSSStyleDeclaration;
|
|
129
|
-
get name(): string;
|
|
130
|
-
}
|
|
131
|
-
export interface CSSVariableValue {
|
|
132
|
-
value: string;
|
|
133
|
-
declaration: CSSValueSource;
|
|
134
|
-
}
|
|
135
|
-
export declare const enum PropertyState {
|
|
136
|
-
ACTIVE = "Active",
|
|
137
|
-
OVERLOADED = "Overloaded"
|
|
138
|
-
}
|
package/core/sdk/CSSMedia.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import * as TextUtils from '../text_utils/text_utils.js';
|
|
3
|
-
import type { CSSModel } from './CSSModel.js';
|
|
4
|
-
import { CSSQuery } from './CSSQuery.js';
|
|
5
|
-
export declare class CSSMediaQuery {
|
|
6
|
-
#private;
|
|
7
|
-
constructor(payload: Protocol.CSS.MediaQuery);
|
|
8
|
-
static parsePayload(payload: Protocol.CSS.MediaQuery): CSSMediaQuery;
|
|
9
|
-
active(): boolean;
|
|
10
|
-
expressions(): CSSMediaQueryExpression[] | null;
|
|
11
|
-
}
|
|
12
|
-
export declare class CSSMediaQueryExpression {
|
|
13
|
-
#private;
|
|
14
|
-
constructor(payload: Protocol.CSS.MediaQueryExpression);
|
|
15
|
-
static parsePayload(payload: Protocol.CSS.MediaQueryExpression): CSSMediaQueryExpression;
|
|
16
|
-
value(): number;
|
|
17
|
-
unit(): string;
|
|
18
|
-
feature(): string;
|
|
19
|
-
valueRange(): TextUtils.TextRange.TextRange | null;
|
|
20
|
-
computedLength(): number | null;
|
|
21
|
-
}
|
|
22
|
-
export declare class CSSMedia extends CSSQuery {
|
|
23
|
-
source?: Protocol.CSS.CSSMediaSource;
|
|
24
|
-
sourceURL?: string;
|
|
25
|
-
mediaList?: CSSMediaQuery[] | null;
|
|
26
|
-
static parseMediaArrayPayload(cssModel: CSSModel, payload: Protocol.CSS.CSSMedia[]): CSSMedia[];
|
|
27
|
-
constructor(cssModel: CSSModel, payload: Protocol.CSS.CSSMedia);
|
|
28
|
-
reinitialize(payload: Protocol.CSS.CSSMedia): void;
|
|
29
|
-
active(): boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare const Source: {
|
|
32
|
-
LINKED_SHEET: string;
|
|
33
|
-
INLINE_SHEET: string;
|
|
34
|
-
MEDIA_RULE: string;
|
|
35
|
-
IMPORT_RULE: string;
|
|
36
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
export declare class CSSMetadata {
|
|
3
|
-
#private;
|
|
4
|
-
constructor(properties: CSSPropertyDefinition[], aliasesFor: Map<string, string>);
|
|
5
|
-
static isCSSWideKeyword(a: string): a is CSSWideKeyword;
|
|
6
|
-
static isPositionTryOrderKeyword(a: string): a is PositionTryOrderKeyword;
|
|
7
|
-
private static sortPrefixesAndCSSWideKeywordsToEnd;
|
|
8
|
-
allProperties(): string[];
|
|
9
|
-
aliasesFor(): Map<string, string>;
|
|
10
|
-
nameValuePresets(includeSVG?: boolean): string[];
|
|
11
|
-
isSVGProperty(name: string): boolean;
|
|
12
|
-
getLonghands(shorthand: string): string[] | null;
|
|
13
|
-
getShorthands(longhand: string): string[] | null;
|
|
14
|
-
isColorAwareProperty(propertyName: string): boolean;
|
|
15
|
-
isFontFamilyProperty(propertyName: string): boolean;
|
|
16
|
-
isAngleAwareProperty(propertyName: string): boolean;
|
|
17
|
-
isGridAreaDefiningProperty(propertyName: string): boolean;
|
|
18
|
-
isGridColumnNameAwareProperty(propertyName: string): boolean;
|
|
19
|
-
isGridRowNameAwareProperty(propertyName: string): boolean;
|
|
20
|
-
isGridAreaNameAwareProperty(propertyName: string): boolean;
|
|
21
|
-
isGridNameAwareProperty(propertyName: string): boolean;
|
|
22
|
-
isLengthProperty(propertyName: string): boolean;
|
|
23
|
-
isBezierAwareProperty(propertyName: string): boolean;
|
|
24
|
-
isCustomProperty(propertyName: string): boolean;
|
|
25
|
-
isShadowProperty(propertyName: string): boolean;
|
|
26
|
-
isStringProperty(propertyName: string): boolean;
|
|
27
|
-
canonicalPropertyName(name: string): string;
|
|
28
|
-
isCSSPropertyName(propertyName: string): boolean;
|
|
29
|
-
isPropertyInherited(propertyName: string): boolean;
|
|
30
|
-
private specificPropertyValues;
|
|
31
|
-
getPropertyValues(propertyName: string): string[];
|
|
32
|
-
propertyUsageWeight(property: string): number;
|
|
33
|
-
getValuePreset(key: string, value: string): {
|
|
34
|
-
text: string;
|
|
35
|
-
startColumn: number;
|
|
36
|
-
endColumn: number;
|
|
37
|
-
} | null;
|
|
38
|
-
isHighlightPseudoType(pseudoType: Protocol.DOM.PseudoType): boolean;
|
|
39
|
-
}
|
|
40
|
-
export declare const CubicBezierKeywordValues: Map<string, string>;
|
|
41
|
-
/** CSS-wide keywords. **/
|
|
42
|
-
export declare const enum CSSWideKeyword {
|
|
43
|
-
INHERIT = "inherit",
|
|
44
|
-
INITIAL = "initial",
|
|
45
|
-
REVERT = "revert",
|
|
46
|
-
REVERT_LAYER = "revert-layer",
|
|
47
|
-
REVERT_RULE = "revert-rule",
|
|
48
|
-
UNSET = "unset"
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Spec: https://drafts.csswg.org/css-cascade/#defaulting-keywords
|
|
52
|
-
* https://drafts.csswg.org/css-cascade-5/#revert-layer
|
|
53
|
-
* https://drafts.csswg.org/css-cascade-6/#revert-rule
|
|
54
|
-
**/
|
|
55
|
-
export declare const CSSWideKeywords: CSSWideKeyword[];
|
|
56
|
-
/** https://www.w3.org/TR/css-anchor-position-1/#typedef-try-size **/
|
|
57
|
-
export declare const enum PositionTryOrderKeyword {
|
|
58
|
-
NORMAL = "normal",
|
|
59
|
-
MOST_HEIGHT = "most-height",
|
|
60
|
-
MOST_WIDTH = "most-width",
|
|
61
|
-
MOST_BLOCK_SIZE = "most-block-size",
|
|
62
|
-
MOST_INLINE_SIZE = "most-inline-size"
|
|
63
|
-
}
|
|
64
|
-
export declare const PositionTryOrderKeywords: PositionTryOrderKeyword[];
|
|
65
|
-
export declare const VariableNameRegex: RegExp;
|
|
66
|
-
export declare const VariableRegex: RegExp;
|
|
67
|
-
export declare const CustomVariableRegex: RegExp;
|
|
68
|
-
export declare const URLRegex: RegExp;
|
|
69
|
-
/**
|
|
70
|
-
* Matches an instance of a grid area 'row' definition.
|
|
71
|
-
* 'grid-template-areas', e.g.
|
|
72
|
-
* "a a ."
|
|
73
|
-
*
|
|
74
|
-
* 'grid', 'grid-template', e.g.
|
|
75
|
-
* [track-#name] "a a ." minmax(50px, auto) [track-#name]
|
|
76
|
-
*/
|
|
77
|
-
export declare const GridAreaRowRegex: RegExp;
|
|
78
|
-
export declare function cssMetadata(): CSSMetadata;
|
|
79
|
-
export interface CSSPropertyDefinition {
|
|
80
|
-
name: string;
|
|
81
|
-
longhands: string[] | null;
|
|
82
|
-
inherited: boolean | null;
|
|
83
|
-
svg: boolean | null;
|
|
84
|
-
is_descriptor?: boolean;
|
|
85
|
-
is_property?: boolean;
|
|
86
|
-
runtime_flag_status?: string;
|
|
87
|
-
}
|
package/core/sdk/CSSModel.d.ts
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
2
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
3
|
-
import * as Common from '../common/common.js';
|
|
4
|
-
import * as Platform from '../platform/platform.js';
|
|
5
|
-
import * as TextUtils from '../text_utils/text_utils.js';
|
|
6
|
-
import { CSSFontFace } from './CSSFontFace.js';
|
|
7
|
-
import { CSSLocation } from './CSSLocation.js';
|
|
8
|
-
import { CSSMatchedStyles } from './CSSMatchedStyles.js';
|
|
9
|
-
import { CSSMedia } from './CSSMedia.js';
|
|
10
|
-
import { CSSStyleRule } from './CSSRule.js';
|
|
11
|
-
import { CSSStyleDeclaration } from './CSSStyleDeclaration.js';
|
|
12
|
-
import { CSSStyleSheetHeader } from './CSSStyleSheetHeader.js';
|
|
13
|
-
import { DOMModel, type DOMNode } from './DOMModel.js';
|
|
14
|
-
import { SDKModel } from './SDKModel.js';
|
|
15
|
-
import { SourceMapManager } from './SourceMapManager.js';
|
|
16
|
-
import { type Target } from './Target.js';
|
|
17
|
-
export declare const enum ColorScheme {
|
|
18
|
-
LIGHT = "light",
|
|
19
|
-
DARK = "dark"
|
|
20
|
-
}
|
|
21
|
-
export interface LayoutProperties {
|
|
22
|
-
isFlex: boolean;
|
|
23
|
-
isGrid: boolean;
|
|
24
|
-
isSubgrid: boolean;
|
|
25
|
-
isGridLanes: boolean;
|
|
26
|
-
isContents?: boolean;
|
|
27
|
-
containerType?: string;
|
|
28
|
-
hasScroll: boolean;
|
|
29
|
-
isAnchorPositioned?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare class CSSModel extends SDKModel<EventTypes> {
|
|
32
|
-
#private;
|
|
33
|
-
readonly agent: ProtocolProxyApi.CSSApi;
|
|
34
|
-
constructor(target: Target);
|
|
35
|
-
colorScheme(): Promise<ColorScheme | undefined>;
|
|
36
|
-
resolveValues(propertyName: string | undefined, nodeId: Protocol.DOM.NodeId, ...values: string[]): Promise<string[] | null>;
|
|
37
|
-
headersForSourceURL(sourceURL: Platform.DevToolsPath.UrlString): CSSStyleSheetHeader[];
|
|
38
|
-
createRawLocationsByURL(sourceURL: Platform.DevToolsPath.UrlString, lineNumber: number, columnNumber?: number | undefined): CSSLocation[];
|
|
39
|
-
sourceMapManager(): SourceMapManager<CSSStyleSheetHeader>;
|
|
40
|
-
static readableLayerName(text: string): string;
|
|
41
|
-
static trimSourceURL(text: string): string;
|
|
42
|
-
domModel(): DOMModel;
|
|
43
|
-
trackComputedStyleUpdatesForNode(nodeId: Protocol.DOM.NodeId | undefined): Promise<void>;
|
|
44
|
-
setStyleText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, text: string, majorChange: boolean): Promise<boolean>;
|
|
45
|
-
setSelectorText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, text: string): Promise<boolean>;
|
|
46
|
-
setPropertyRulePropertyName(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, text: string): Promise<boolean>;
|
|
47
|
-
setKeyframeKey(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, text: string): Promise<boolean>;
|
|
48
|
-
startCoverage(): Promise<Protocol.ProtocolResponseWithError>;
|
|
49
|
-
takeCoverageDelta(): Promise<{
|
|
50
|
-
timestamp: number;
|
|
51
|
-
coverage: Protocol.CSS.RuleUsage[];
|
|
52
|
-
}>;
|
|
53
|
-
setLocalFontsEnabled(enabled: boolean): Promise<Protocol.ProtocolResponseWithError>;
|
|
54
|
-
stopCoverage(): Promise<void>;
|
|
55
|
-
getMediaQueries(): Promise<CSSMedia[]>;
|
|
56
|
-
getRootLayer(nodeId: Protocol.DOM.NodeId): Promise<Protocol.CSS.CSSLayerData>;
|
|
57
|
-
isEnabled(): boolean;
|
|
58
|
-
private enable;
|
|
59
|
-
getAnimatedStylesForNode(nodeId: Protocol.DOM.NodeId): Promise<Protocol.CSS.GetAnimatedStylesForNodeResponse | null>;
|
|
60
|
-
getMatchedStyles(nodeId: Protocol.DOM.NodeId): Promise<CSSMatchedStyles | null>;
|
|
61
|
-
getClassNames(styleSheetId: Protocol.DOM.StyleSheetId): Promise<string[]>;
|
|
62
|
-
getComputedStyle(nodeId: Protocol.DOM.NodeId): Promise<Map<string, string> | null>;
|
|
63
|
-
getComputedStyleExtraFields(nodeId: Protocol.DOM.NodeId): Promise<Protocol.CSS.ComputedStyleExtraFields>;
|
|
64
|
-
getLayoutPropertiesFromComputedStyle(nodeId: Protocol.DOM.NodeId): Promise<LayoutProperties | null>;
|
|
65
|
-
getEnvironmentVariables(): Promise<Record<string, string>>;
|
|
66
|
-
getBackgroundColors(nodeId: Protocol.DOM.NodeId): Promise<ContrastInfo | null>;
|
|
67
|
-
getPlatformFonts(nodeId: Protocol.DOM.NodeId): Promise<Protocol.CSS.PlatformFontUsage[] | null>;
|
|
68
|
-
allStyleSheets(): CSSStyleSheetHeader[];
|
|
69
|
-
getInlineStyles(nodeId: Protocol.DOM.NodeId): Promise<InlineStyleResult | null>;
|
|
70
|
-
forceStartingStyle(node: DOMNode, forced: boolean): boolean;
|
|
71
|
-
forcePositionTryOption(node: DOMNode, index?: number): boolean;
|
|
72
|
-
forcedPositionTryOption(node: DOMNode): number | undefined;
|
|
73
|
-
forcePseudoState(node: DOMNode, pseudoClass: string, enable: boolean): boolean;
|
|
74
|
-
pseudoState(node: DOMNode): string[] | null;
|
|
75
|
-
setMediaText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, newMediaText: string): Promise<boolean>;
|
|
76
|
-
setContainerQueryText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, newContainerQueryText: string): Promise<boolean>;
|
|
77
|
-
setContainerQueryConditionText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, newContainerQueryConditionText: string): Promise<boolean>;
|
|
78
|
-
setSupportsText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, newSupportsText: string): Promise<boolean>;
|
|
79
|
-
setNavigationText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, newNavigationText: string): Promise<boolean>;
|
|
80
|
-
setScopeText(styleSheetId: Protocol.DOM.StyleSheetId, range: TextUtils.TextRange.TextRange, newScopeText: string): Promise<boolean>;
|
|
81
|
-
addRule(styleSheetId: Protocol.DOM.StyleSheetId, ruleText: string, ruleLocation: TextUtils.TextRange.TextRange): Promise<CSSStyleRule | null>;
|
|
82
|
-
requestViaInspectorStylesheet(maybeFrameId?: Protocol.Page.FrameId | null): Promise<CSSStyleSheetHeader | null>;
|
|
83
|
-
createInspectorStylesheet(frameId: Protocol.Page.FrameId, force?: boolean): Promise<CSSStyleSheetHeader | null>;
|
|
84
|
-
mediaQueryResultChanged(): void;
|
|
85
|
-
fontsUpdated(fontFace?: Protocol.CSS.FontFace | null): void;
|
|
86
|
-
fontFaces(): CSSFontFace[];
|
|
87
|
-
fontFaceForSource(src: string): CSSFontFace | undefined;
|
|
88
|
-
styleSheetHeaderForId(id: Protocol.DOM.StyleSheetId): CSSStyleSheetHeader | null;
|
|
89
|
-
styleSheetHeaders(): CSSStyleSheetHeader[];
|
|
90
|
-
fireStyleSheetChanged(styleSheetId: Protocol.DOM.StyleSheetId, edit?: Edit): void;
|
|
91
|
-
private ensureOriginalStyleSheetText;
|
|
92
|
-
private originalContentRequestedForTest;
|
|
93
|
-
originalStyleSheetText(header: CSSStyleSheetHeader): Promise<string | null>;
|
|
94
|
-
getAllStyleSheetHeaders(): Iterable<CSSStyleSheetHeader>;
|
|
95
|
-
computedStyleUpdated(nodeId: Protocol.DOM.NodeId): void;
|
|
96
|
-
styleSheetAdded(header: Protocol.CSS.CSSStyleSheetHeader): void;
|
|
97
|
-
styleSheetRemoved(id: Protocol.DOM.StyleSheetId): void;
|
|
98
|
-
getStyleSheetIdsForURL(url: Platform.DevToolsPath.UrlString): Protocol.DOM.StyleSheetId[];
|
|
99
|
-
setStyleSheetText(styleSheetId: Protocol.DOM.StyleSheetId, newText: string, majorChange: boolean): Promise<string | null>;
|
|
100
|
-
getStyleSheetText(styleSheetId: Protocol.DOM.StyleSheetId): Promise<string | null>;
|
|
101
|
-
private onPrimaryPageChanged;
|
|
102
|
-
private resetStyleSheets;
|
|
103
|
-
private resetFontFaces;
|
|
104
|
-
suspendModel(): Promise<void>;
|
|
105
|
-
resumeModel(): Promise<void>;
|
|
106
|
-
setEffectivePropertyValueForNode(nodeId: Protocol.DOM.NodeId, propertyName: string, value: string): void;
|
|
107
|
-
cachedMatchedCascadeForNode(node: DOMNode): Promise<CSSMatchedStyles | null>;
|
|
108
|
-
discardCachedMatchedCascade(): void;
|
|
109
|
-
createCSSPropertyTracker(propertiesToTrack: Protocol.CSS.CSSComputedStyleProperty[]): CSSPropertyTracker;
|
|
110
|
-
enableCSSPropertyTracker(cssPropertyTracker: CSSPropertyTracker): void;
|
|
111
|
-
disableCSSPropertyTracker(): void;
|
|
112
|
-
private pollComputedStyleUpdates;
|
|
113
|
-
dispose(): void;
|
|
114
|
-
getAgent(): ProtocolProxyApi.CSSApi;
|
|
115
|
-
}
|
|
116
|
-
export declare enum Events {
|
|
117
|
-
FontsUpdated = "FontsUpdated",
|
|
118
|
-
MediaQueryResultChanged = "MediaQueryResultChanged",
|
|
119
|
-
ModelWasEnabled = "ModelWasEnabled",
|
|
120
|
-
ModelDisposed = "ModelDisposed",
|
|
121
|
-
PositionTryOptionForced = "PositionTryOptionForced",
|
|
122
|
-
PseudoStateForced = "PseudoStateForced",
|
|
123
|
-
StartingStylesStateForced = "StartingStylesStateForced",
|
|
124
|
-
StyleSheetAdded = "StyleSheetAdded",
|
|
125
|
-
StyleSheetChanged = "StyleSheetChanged",
|
|
126
|
-
StyleSheetRemoved = "StyleSheetRemoved",
|
|
127
|
-
ComputedStyleUpdated = "ComputedStyleUpdated"
|
|
128
|
-
}
|
|
129
|
-
export interface StyleSheetChangedEvent {
|
|
130
|
-
styleSheetId: Protocol.DOM.StyleSheetId;
|
|
131
|
-
edit?: Edit;
|
|
132
|
-
}
|
|
133
|
-
export interface PseudoStateForcedEvent {
|
|
134
|
-
node: DOMNode;
|
|
135
|
-
pseudoClass: string;
|
|
136
|
-
enable: boolean;
|
|
137
|
-
}
|
|
138
|
-
export interface ComputedStyleUpdatedEvent {
|
|
139
|
-
nodeId: Protocol.DOM.NodeId;
|
|
140
|
-
}
|
|
141
|
-
export interface EventTypes {
|
|
142
|
-
[Events.FontsUpdated]: void;
|
|
143
|
-
[Events.MediaQueryResultChanged]: void;
|
|
144
|
-
[Events.ModelWasEnabled]: void;
|
|
145
|
-
[Events.ModelDisposed]: CSSModel;
|
|
146
|
-
[Events.PositionTryOptionForced]: DOMNode;
|
|
147
|
-
[Events.PseudoStateForced]: PseudoStateForcedEvent;
|
|
148
|
-
[Events.StartingStylesStateForced]: DOMNode;
|
|
149
|
-
[Events.StyleSheetAdded]: CSSStyleSheetHeader;
|
|
150
|
-
[Events.StyleSheetChanged]: StyleSheetChangedEvent;
|
|
151
|
-
[Events.StyleSheetRemoved]: CSSStyleSheetHeader;
|
|
152
|
-
[Events.ComputedStyleUpdated]: ComputedStyleUpdatedEvent;
|
|
153
|
-
}
|
|
154
|
-
export declare class Edit {
|
|
155
|
-
styleSheetId: string;
|
|
156
|
-
oldRange: TextUtils.TextRange.TextRange;
|
|
157
|
-
newRange: TextUtils.TextRange.TextRange;
|
|
158
|
-
newText: string;
|
|
159
|
-
payload: Object | null;
|
|
160
|
-
constructor(styleSheetId: string, oldRange: TextUtils.TextRange.TextRange, newText: string, payload: Object | null);
|
|
161
|
-
}
|
|
162
|
-
export { CSSLocation };
|
|
163
|
-
export declare class InlineStyleResult {
|
|
164
|
-
inlineStyle: CSSStyleDeclaration | null;
|
|
165
|
-
attributesStyle: CSSStyleDeclaration | null;
|
|
166
|
-
constructor(inlineStyle: CSSStyleDeclaration | null, attributesStyle: CSSStyleDeclaration | null);
|
|
167
|
-
}
|
|
168
|
-
export declare class CSSPropertyTracker extends Common.ObjectWrapper.ObjectWrapper<CSSPropertyTrackerEventTypes> {
|
|
169
|
-
#private;
|
|
170
|
-
constructor(cssModel: CSSModel, propertiesToTrack: Protocol.CSS.CSSComputedStyleProperty[]);
|
|
171
|
-
start(): void;
|
|
172
|
-
stop(): void;
|
|
173
|
-
getTrackedProperties(): Protocol.CSS.CSSComputedStyleProperty[];
|
|
174
|
-
}
|
|
175
|
-
export declare const enum CSSPropertyTrackerEvents {
|
|
176
|
-
TRACKED_CSS_PROPERTIES_UPDATED = "TrackedCSSPropertiesUpdated"
|
|
177
|
-
}
|
|
178
|
-
export interface CSSPropertyTrackerEventTypes {
|
|
179
|
-
[CSSPropertyTrackerEvents.TRACKED_CSS_PROPERTIES_UPDATED]: Array<DOMNode | null>;
|
|
180
|
-
}
|
|
181
|
-
export interface ContrastInfo {
|
|
182
|
-
backgroundColors: string[] | null;
|
|
183
|
-
computedFontSize: string;
|
|
184
|
-
computedFontWeight: string;
|
|
185
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import type { CSSModel } from './CSSModel.js';
|
|
3
|
-
import { CSSQuery } from './CSSQuery.js';
|
|
4
|
-
export declare class CSSNavigation extends CSSQuery {
|
|
5
|
-
#private;
|
|
6
|
-
static parseNavigationPayload(cssModel: CSSModel, payload: Protocol.CSS.CSSNavigation[]): CSSNavigation[];
|
|
7
|
-
constructor(cssModel: CSSModel, payload: Protocol.CSS.CSSNavigation);
|
|
8
|
-
reinitialize(payload: Protocol.CSS.CSSNavigation): void;
|
|
9
|
-
active(): boolean;
|
|
10
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type * as Protocol from '../../generated/protocol.js';
|
|
2
|
-
import * as Common from '../common/common.js';
|
|
3
|
-
import * as TextUtils from '../text_utils/text_utils.js';
|
|
4
|
-
import type { CSSMatchedStyles } from './CSSMatchedStyles.js';
|
|
5
|
-
import type { Edit } from './CSSModel.js';
|
|
6
|
-
import { type BottomUpTreeMatching } from './CSSPropertyParser.js';
|
|
7
|
-
import type { CSSStyleDeclaration } from './CSSStyleDeclaration.js';
|
|
8
|
-
export declare const enum Events {
|
|
9
|
-
LOCAL_VALUE_UPDATED = "localValueUpdated"
|
|
10
|
-
}
|
|
11
|
-
export interface EventTypes {
|
|
12
|
-
[Events.LOCAL_VALUE_UPDATED]: void;
|
|
13
|
-
}
|
|
14
|
-
export declare class CSSProperty extends Common.ObjectWrapper.ObjectWrapper<EventTypes> {
|
|
15
|
-
#private;
|
|
16
|
-
ownerStyle: CSSStyleDeclaration;
|
|
17
|
-
index: number;
|
|
18
|
-
name: string;
|
|
19
|
-
value: string;
|
|
20
|
-
important: boolean;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
parsedOk: boolean;
|
|
23
|
-
implicit: boolean;
|
|
24
|
-
text: string | null | undefined;
|
|
25
|
-
range: TextUtils.TextRange.TextRange | null;
|
|
26
|
-
constructor(ownerStyle: CSSStyleDeclaration, index: number, name: string, value: string, important: boolean, disabled: boolean, parsedOk: boolean, implicit: boolean, text?: string | null, range?: Protocol.CSS.SourceRange, longhandProperties?: Protocol.CSS.CSSProperty[]);
|
|
27
|
-
static parsePayload(ownerStyle: CSSStyleDeclaration, index: number, payload: Protocol.CSS.CSSProperty): CSSProperty;
|
|
28
|
-
parseExpression(expression: string, matchedStyles: CSSMatchedStyles, computedStyles: Map<string, string> | null): BottomUpTreeMatching | null;
|
|
29
|
-
parseValue(matchedStyles: CSSMatchedStyles, computedStyles: Map<string, string> | null): BottomUpTreeMatching | null;
|
|
30
|
-
private ensureRanges;
|
|
31
|
-
nameRange(): TextUtils.TextRange.TextRange | null;
|
|
32
|
-
valueRange(): TextUtils.TextRange.TextRange | null;
|
|
33
|
-
rebase(edit: Edit): void;
|
|
34
|
-
setActive(active: boolean): void;
|
|
35
|
-
get propertyText(): string | null;
|
|
36
|
-
activeInStyle(): boolean;
|
|
37
|
-
setText(propertyText: string, majorChange: boolean, overwrite?: boolean): Promise<boolean>;
|
|
38
|
-
static formatStyle(styleText: string, indentation: string, endIndentation: string): Promise<string>;
|
|
39
|
-
private detectIndentation;
|
|
40
|
-
setValue(newValue: string, majorChange: boolean, overwrite: boolean, userCallback?: ((arg0: boolean) => void)): void;
|
|
41
|
-
setLocalValue(value: string): void;
|
|
42
|
-
setDisabled(disabled: boolean): Promise<boolean>;
|
|
43
|
-
/**
|
|
44
|
-
* This stores the warning string when a CSS Property is improperly parsed.
|
|
45
|
-
*/
|
|
46
|
-
setDisplayedStringForInvalidProperty(invalidString: Common.UIString.LocalizedString): void;
|
|
47
|
-
/**
|
|
48
|
-
* Retrieve the warning string for a screen reader to announce when editing the property.
|
|
49
|
-
*/
|
|
50
|
-
getInvalidStringForInvalidProperty(): Common.UIString.LocalizedString | undefined;
|
|
51
|
-
getLonghandProperties(): CSSProperty[];
|
|
52
|
-
ignoreErrors(): boolean;
|
|
53
|
-
}
|