@sentry/browser-utils 10.70.0 → 11.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/build/cjs/htmlTreeAsString.js.map +1 -1
  2. package/build/cjs/index.js +30 -28
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/instrumentation/dom.js.map +1 -0
  5. package/build/cjs/instrumentation/history.js.map +1 -0
  6. package/build/cjs/instrumentation/location.js.map +1 -0
  7. package/build/cjs/{metrics/instrument.js → instrumentation/performanceObserver.js} +44 -32
  8. package/build/cjs/instrumentation/performanceObserver.js.map +1 -0
  9. package/build/cjs/instrumentation/xhr.js.map +1 -0
  10. package/build/cjs/{metrics → performance}/elementTiming.js +2 -2
  11. package/build/cjs/performance/elementTiming.js.map +1 -0
  12. package/build/cjs/{metrics/browserMetrics.js → performance/entries.js} +43 -262
  13. package/build/cjs/performance/entries.js.map +1 -0
  14. package/build/cjs/performance/resourceTiming.js.map +1 -0
  15. package/build/cjs/performance/userTiming.js +119 -0
  16. package/build/cjs/performance/userTiming.js.map +1 -0
  17. package/build/cjs/performance/utils.js +68 -0
  18. package/build/cjs/performance/utils.js.map +1 -0
  19. package/build/cjs/{metrics → web-vitals}/inp.js +4 -61
  20. package/build/cjs/web-vitals/inp.js.map +1 -0
  21. package/build/cjs/web-vitals/lcp.js +10 -0
  22. package/build/cjs/web-vitals/lcp.js.map +1 -0
  23. package/build/cjs/web-vitals/reportEvents.js +31 -0
  24. package/build/cjs/web-vitals/reportEvents.js.map +1 -0
  25. package/build/cjs/{metrics/webVitalSpans.js → web-vitals/spans.js} +36 -19
  26. package/build/cjs/web-vitals/spans.js.map +1 -0
  27. package/build/cjs/web-vitals/tracking.js +164 -0
  28. package/build/cjs/web-vitals/tracking.js.map +1 -0
  29. package/build/cjs/web-vitals/utils.js +99 -0
  30. package/build/cjs/web-vitals/utils.js.map +1 -0
  31. package/build/esm/htmlTreeAsString.js.map +1 -1
  32. package/build/esm/index.js +14 -12
  33. package/build/esm/index.js.map +1 -1
  34. package/build/esm/instrumentation/dom.js.map +1 -0
  35. package/build/esm/instrumentation/history.js.map +1 -0
  36. package/build/esm/instrumentation/location.js.map +1 -0
  37. package/build/esm/{metrics/instrument.js → instrumentation/performanceObserver.js} +42 -30
  38. package/build/esm/instrumentation/performanceObserver.js.map +1 -0
  39. package/build/esm/instrumentation/xhr.js.map +1 -0
  40. package/build/esm/package.json +1 -1
  41. package/build/esm/{metrics → performance}/elementTiming.js +1 -1
  42. package/build/esm/performance/elementTiming.js.map +1 -0
  43. package/build/esm/{metrics/browserMetrics.js → performance/entries.js} +36 -252
  44. package/build/esm/performance/entries.js.map +1 -0
  45. package/build/esm/performance/resourceTiming.js.map +1 -0
  46. package/build/esm/performance/userTiming.js +116 -0
  47. package/build/esm/performance/userTiming.js.map +1 -0
  48. package/build/esm/performance/utils.js +61 -0
  49. package/build/esm/performance/utils.js.map +1 -0
  50. package/build/esm/{metrics → web-vitals}/inp.js +3 -57
  51. package/build/esm/web-vitals/inp.js.map +1 -0
  52. package/build/esm/web-vitals/lcp.js +7 -0
  53. package/build/esm/web-vitals/lcp.js.map +1 -0
  54. package/build/esm/web-vitals/reportEvents.js +29 -0
  55. package/build/esm/web-vitals/reportEvents.js.map +1 -0
  56. package/build/esm/{metrics/webVitalSpans.js → web-vitals/spans.js} +32 -15
  57. package/build/esm/web-vitals/spans.js.map +1 -0
  58. package/build/esm/web-vitals/tracking.js +161 -0
  59. package/build/esm/web-vitals/tracking.js.map +1 -0
  60. package/build/esm/web-vitals/utils.js +91 -0
  61. package/build/esm/web-vitals/utils.js.map +1 -0
  62. package/build/types/index.d.ts +13 -11
  63. package/build/types/index.d.ts.map +1 -1
  64. package/build/types/instrumentation/dom.d.ts.map +1 -0
  65. package/build/types/instrumentation/history.d.ts.map +1 -0
  66. package/build/types/instrumentation/location.d.ts.map +1 -0
  67. package/build/types/{metrics/instrument.d.ts → instrumentation/performanceObserver.d.ts} +3 -3
  68. package/build/types/instrumentation/performanceObserver.d.ts.map +1 -0
  69. package/build/types/instrumentation/xhr.d.ts.map +1 -0
  70. package/build/types/performance/elementTiming.d.ts.map +1 -0
  71. package/build/types/performance/entries.d.ts +49 -0
  72. package/build/types/performance/entries.d.ts.map +1 -0
  73. package/build/types/performance/resourceTiming.d.ts.map +1 -0
  74. package/build/types/performance/userTiming.d.ts +37 -0
  75. package/build/types/performance/userTiming.d.ts.map +1 -0
  76. package/build/types/performance/utils.d.ts +33 -0
  77. package/build/types/performance/utils.d.ts.map +1 -0
  78. package/build/types/types.d.ts +1 -1
  79. package/build/types/{metrics → web-vitals}/inp.d.ts +0 -13
  80. package/build/types/web-vitals/inp.d.ts.map +1 -0
  81. package/build/types/web-vitals/lcp.d.ts +6 -0
  82. package/build/types/web-vitals/lcp.d.ts.map +1 -0
  83. package/build/types/web-vitals/reportEvents.d.ts +18 -0
  84. package/build/types/web-vitals/reportEvents.d.ts.map +1 -0
  85. package/build/types/{metrics/webVitalSpans.d.ts → web-vitals/spans.d.ts} +18 -12
  86. package/build/types/web-vitals/spans.d.ts.map +1 -0
  87. package/build/types/web-vitals/tracking.d.ts +46 -0
  88. package/build/types/web-vitals/tracking.d.ts.map +1 -0
  89. package/build/types/{metrics/web-vitals/lib/globalListeners.d.ts → web-vitals/utils.d.ts} +16 -1
  90. package/build/types/web-vitals/utils.d.ts.map +1 -0
  91. package/package.json +8 -16
  92. package/build/cjs/instrument/dom.js.map +0 -1
  93. package/build/cjs/instrument/history.js.map +0 -1
  94. package/build/cjs/instrument/location.js.map +0 -1
  95. package/build/cjs/instrument/xhr.js.map +0 -1
  96. package/build/cjs/metrics/browserMetrics.js.map +0 -1
  97. package/build/cjs/metrics/cls.js +0 -64
  98. package/build/cjs/metrics/cls.js.map +0 -1
  99. package/build/cjs/metrics/elementTiming.js.map +0 -1
  100. package/build/cjs/metrics/inp.js.map +0 -1
  101. package/build/cjs/metrics/instrument.js.map +0 -1
  102. package/build/cjs/metrics/lcp.js +0 -77
  103. package/build/cjs/metrics/lcp.js.map +0 -1
  104. package/build/cjs/metrics/resourceTiming.js.map +0 -1
  105. package/build/cjs/metrics/utils.js +0 -137
  106. package/build/cjs/metrics/utils.js.map +0 -1
  107. package/build/cjs/metrics/web-vitals/getCLS.js +0 -46
  108. package/build/cjs/metrics/web-vitals/getCLS.js.map +0 -1
  109. package/build/cjs/metrics/web-vitals/getINP.js +0 -60
  110. package/build/cjs/metrics/web-vitals/getINP.js.map +0 -1
  111. package/build/cjs/metrics/web-vitals/getLCP.js +0 -62
  112. package/build/cjs/metrics/web-vitals/getLCP.js.map +0 -1
  113. package/build/cjs/metrics/web-vitals/lib/InteractionManager.js +0 -87
  114. package/build/cjs/metrics/web-vitals/lib/InteractionManager.js.map +0 -1
  115. package/build/cjs/metrics/web-vitals/lib/LCPEntryManager.js +0 -11
  116. package/build/cjs/metrics/web-vitals/lib/LCPEntryManager.js.map +0 -1
  117. package/build/cjs/metrics/web-vitals/lib/LayoutShiftManager.js +0 -27
  118. package/build/cjs/metrics/web-vitals/lib/LayoutShiftManager.js.map +0 -1
  119. package/build/cjs/metrics/web-vitals/lib/bindReporter.js +0 -31
  120. package/build/cjs/metrics/web-vitals/lib/bindReporter.js.map +0 -1
  121. package/build/cjs/metrics/web-vitals/lib/generateUniqueID.js +0 -8
  122. package/build/cjs/metrics/web-vitals/lib/generateUniqueID.js.map +0 -1
  123. package/build/cjs/metrics/web-vitals/lib/getActivationStart.js +0 -11
  124. package/build/cjs/metrics/web-vitals/lib/getActivationStart.js.map +0 -1
  125. package/build/cjs/metrics/web-vitals/lib/getNavigationEntry.js +0 -17
  126. package/build/cjs/metrics/web-vitals/lib/getNavigationEntry.js.map +0 -1
  127. package/build/cjs/metrics/web-vitals/lib/getVisibilityWatcher.js +0 -48
  128. package/build/cjs/metrics/web-vitals/lib/getVisibilityWatcher.js.map +0 -1
  129. package/build/cjs/metrics/web-vitals/lib/globalListeners.js +0 -18
  130. package/build/cjs/metrics/web-vitals/lib/globalListeners.js.map +0 -1
  131. package/build/cjs/metrics/web-vitals/lib/initMetric.js +0 -34
  132. package/build/cjs/metrics/web-vitals/lib/initMetric.js.map +0 -1
  133. package/build/cjs/metrics/web-vitals/lib/initUnique.js +0 -16
  134. package/build/cjs/metrics/web-vitals/lib/initUnique.js.map +0 -1
  135. package/build/cjs/metrics/web-vitals/lib/observe.js +0 -20
  136. package/build/cjs/metrics/web-vitals/lib/observe.js.map +0 -1
  137. package/build/cjs/metrics/web-vitals/lib/onHidden.js +0 -17
  138. package/build/cjs/metrics/web-vitals/lib/onHidden.js.map +0 -1
  139. package/build/cjs/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.js +0 -32
  140. package/build/cjs/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.js.map +0 -1
  141. package/build/cjs/metrics/web-vitals/lib/runOnce.js +0 -14
  142. package/build/cjs/metrics/web-vitals/lib/runOnce.js.map +0 -1
  143. package/build/cjs/metrics/web-vitals/lib/whenActivated.js +0 -14
  144. package/build/cjs/metrics/web-vitals/lib/whenActivated.js.map +0 -1
  145. package/build/cjs/metrics/web-vitals/lib/whenIdleOrHidden.js +0 -24
  146. package/build/cjs/metrics/web-vitals/lib/whenIdleOrHidden.js.map +0 -1
  147. package/build/cjs/metrics/web-vitals/onFCP.js +0 -37
  148. package/build/cjs/metrics/web-vitals/onFCP.js.map +0 -1
  149. package/build/cjs/metrics/web-vitals/onTTFB.js +0 -35
  150. package/build/cjs/metrics/web-vitals/onTTFB.js.map +0 -1
  151. package/build/cjs/metrics/webVitalSpans.js.map +0 -1
  152. package/build/esm/instrument/dom.js.map +0 -1
  153. package/build/esm/instrument/history.js.map +0 -1
  154. package/build/esm/instrument/location.js.map +0 -1
  155. package/build/esm/instrument/xhr.js.map +0 -1
  156. package/build/esm/metrics/browserMetrics.js.map +0 -1
  157. package/build/esm/metrics/cls.js +0 -61
  158. package/build/esm/metrics/cls.js.map +0 -1
  159. package/build/esm/metrics/elementTiming.js.map +0 -1
  160. package/build/esm/metrics/inp.js.map +0 -1
  161. package/build/esm/metrics/instrument.js.map +0 -1
  162. package/build/esm/metrics/lcp.js +0 -72
  163. package/build/esm/metrics/lcp.js.map +0 -1
  164. package/build/esm/metrics/resourceTiming.js.map +0 -1
  165. package/build/esm/metrics/utils.js +0 -128
  166. package/build/esm/metrics/utils.js.map +0 -1
  167. package/build/esm/metrics/web-vitals/getCLS.js +0 -43
  168. package/build/esm/metrics/web-vitals/getCLS.js.map +0 -1
  169. package/build/esm/metrics/web-vitals/getINP.js +0 -57
  170. package/build/esm/metrics/web-vitals/getINP.js.map +0 -1
  171. package/build/esm/metrics/web-vitals/getLCP.js +0 -59
  172. package/build/esm/metrics/web-vitals/getLCP.js.map +0 -1
  173. package/build/esm/metrics/web-vitals/lib/InteractionManager.js +0 -85
  174. package/build/esm/metrics/web-vitals/lib/InteractionManager.js.map +0 -1
  175. package/build/esm/metrics/web-vitals/lib/LCPEntryManager.js +0 -9
  176. package/build/esm/metrics/web-vitals/lib/LCPEntryManager.js.map +0 -1
  177. package/build/esm/metrics/web-vitals/lib/LayoutShiftManager.js +0 -25
  178. package/build/esm/metrics/web-vitals/lib/LayoutShiftManager.js.map +0 -1
  179. package/build/esm/metrics/web-vitals/lib/bindReporter.js +0 -29
  180. package/build/esm/metrics/web-vitals/lib/bindReporter.js.map +0 -1
  181. package/build/esm/metrics/web-vitals/lib/generateUniqueID.js +0 -6
  182. package/build/esm/metrics/web-vitals/lib/generateUniqueID.js.map +0 -1
  183. package/build/esm/metrics/web-vitals/lib/getActivationStart.js +0 -9
  184. package/build/esm/metrics/web-vitals/lib/getActivationStart.js.map +0 -1
  185. package/build/esm/metrics/web-vitals/lib/getNavigationEntry.js +0 -15
  186. package/build/esm/metrics/web-vitals/lib/getNavigationEntry.js.map +0 -1
  187. package/build/esm/metrics/web-vitals/lib/getVisibilityWatcher.js +0 -46
  188. package/build/esm/metrics/web-vitals/lib/getVisibilityWatcher.js.map +0 -1
  189. package/build/esm/metrics/web-vitals/lib/globalListeners.js +0 -15
  190. package/build/esm/metrics/web-vitals/lib/globalListeners.js.map +0 -1
  191. package/build/esm/metrics/web-vitals/lib/initMetric.js +0 -32
  192. package/build/esm/metrics/web-vitals/lib/initMetric.js.map +0 -1
  193. package/build/esm/metrics/web-vitals/lib/initUnique.js +0 -14
  194. package/build/esm/metrics/web-vitals/lib/initUnique.js.map +0 -1
  195. package/build/esm/metrics/web-vitals/lib/observe.js +0 -18
  196. package/build/esm/metrics/web-vitals/lib/observe.js.map +0 -1
  197. package/build/esm/metrics/web-vitals/lib/onHidden.js +0 -15
  198. package/build/esm/metrics/web-vitals/lib/onHidden.js.map +0 -1
  199. package/build/esm/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.js +0 -29
  200. package/build/esm/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.js.map +0 -1
  201. package/build/esm/metrics/web-vitals/lib/runOnce.js +0 -12
  202. package/build/esm/metrics/web-vitals/lib/runOnce.js.map +0 -1
  203. package/build/esm/metrics/web-vitals/lib/whenActivated.js +0 -12
  204. package/build/esm/metrics/web-vitals/lib/whenActivated.js.map +0 -1
  205. package/build/esm/metrics/web-vitals/lib/whenIdleOrHidden.js +0 -22
  206. package/build/esm/metrics/web-vitals/lib/whenIdleOrHidden.js.map +0 -1
  207. package/build/esm/metrics/web-vitals/onFCP.js +0 -34
  208. package/build/esm/metrics/web-vitals/onFCP.js.map +0 -1
  209. package/build/esm/metrics/web-vitals/onTTFB.js +0 -32
  210. package/build/esm/metrics/web-vitals/onTTFB.js.map +0 -1
  211. package/build/esm/metrics/webVitalSpans.js.map +0 -1
  212. package/build/types/instrument/dom.d.ts.map +0 -1
  213. package/build/types/instrument/history.d.ts.map +0 -1
  214. package/build/types/instrument/location.d.ts.map +0 -1
  215. package/build/types/instrument/xhr.d.ts.map +0 -1
  216. package/build/types/metrics/browserMetrics.d.ts +0 -116
  217. package/build/types/metrics/browserMetrics.d.ts.map +0 -1
  218. package/build/types/metrics/cls.d.ts +0 -17
  219. package/build/types/metrics/cls.d.ts.map +0 -1
  220. package/build/types/metrics/elementTiming.d.ts.map +0 -1
  221. package/build/types/metrics/inp.d.ts.map +0 -1
  222. package/build/types/metrics/instrument.d.ts.map +0 -1
  223. package/build/types/metrics/lcp.d.ts +0 -22
  224. package/build/types/metrics/lcp.d.ts.map +0 -1
  225. package/build/types/metrics/resourceTiming.d.ts.map +0 -1
  226. package/build/types/metrics/utils.d.ts +0 -73
  227. package/build/types/metrics/utils.d.ts.map +0 -1
  228. package/build/types/metrics/web-vitals/getCLS.d.ts +0 -26
  229. package/build/types/metrics/web-vitals/getCLS.d.ts.map +0 -1
  230. package/build/types/metrics/web-vitals/getINP.d.ts +0 -34
  231. package/build/types/metrics/web-vitals/getINP.d.ts.map +0 -1
  232. package/build/types/metrics/web-vitals/getLCP.d.ts +0 -16
  233. package/build/types/metrics/web-vitals/getLCP.d.ts.map +0 -1
  234. package/build/types/metrics/web-vitals/lib/InteractionManager.d.ts +0 -37
  235. package/build/types/metrics/web-vitals/lib/InteractionManager.d.ts.map +0 -1
  236. package/build/types/metrics/web-vitals/lib/LCPEntryManager.d.ts +0 -5
  237. package/build/types/metrics/web-vitals/lib/LCPEntryManager.d.ts.map +0 -1
  238. package/build/types/metrics/web-vitals/lib/LayoutShiftManager.d.ts +0 -7
  239. package/build/types/metrics/web-vitals/lib/LayoutShiftManager.d.ts.map +0 -1
  240. package/build/types/metrics/web-vitals/lib/bindReporter.d.ts +0 -7
  241. package/build/types/metrics/web-vitals/lib/bindReporter.d.ts.map +0 -1
  242. package/build/types/metrics/web-vitals/lib/generateUniqueID.d.ts +0 -7
  243. package/build/types/metrics/web-vitals/lib/generateUniqueID.d.ts.map +0 -1
  244. package/build/types/metrics/web-vitals/lib/getActivationStart.d.ts +0 -2
  245. package/build/types/metrics/web-vitals/lib/getActivationStart.d.ts.map +0 -1
  246. package/build/types/metrics/web-vitals/lib/getNavigationEntry.d.ts +0 -2
  247. package/build/types/metrics/web-vitals/lib/getNavigationEntry.d.ts.map +0 -1
  248. package/build/types/metrics/web-vitals/lib/getVisibilityWatcher.d.ts +0 -5
  249. package/build/types/metrics/web-vitals/lib/getVisibilityWatcher.d.ts.map +0 -1
  250. package/build/types/metrics/web-vitals/lib/globalListeners.d.ts.map +0 -1
  251. package/build/types/metrics/web-vitals/lib/initMetric.d.ts +0 -21
  252. package/build/types/metrics/web-vitals/lib/initMetric.d.ts.map +0 -1
  253. package/build/types/metrics/web-vitals/lib/initUnique.d.ts +0 -7
  254. package/build/types/metrics/web-vitals/lib/initUnique.d.ts.map +0 -1
  255. package/build/types/metrics/web-vitals/lib/observe.d.ts +0 -23
  256. package/build/types/metrics/web-vitals/lib/observe.d.ts.map +0 -1
  257. package/build/types/metrics/web-vitals/lib/onHidden.d.ts +0 -27
  258. package/build/types/metrics/web-vitals/lib/onHidden.d.ts.map +0 -1
  259. package/build/types/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.d.ts +0 -15
  260. package/build/types/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.d.ts.map +0 -1
  261. package/build/types/metrics/web-vitals/lib/runOnce.d.ts +0 -2
  262. package/build/types/metrics/web-vitals/lib/runOnce.d.ts.map +0 -1
  263. package/build/types/metrics/web-vitals/lib/whenActivated.d.ts +0 -2
  264. package/build/types/metrics/web-vitals/lib/whenActivated.d.ts.map +0 -1
  265. package/build/types/metrics/web-vitals/lib/whenIdleOrHidden.d.ts +0 -6
  266. package/build/types/metrics/web-vitals/lib/whenIdleOrHidden.d.ts.map +0 -1
  267. package/build/types/metrics/web-vitals/onFCP.d.ts +0 -11
  268. package/build/types/metrics/web-vitals/onFCP.d.ts.map +0 -1
  269. package/build/types/metrics/web-vitals/onTTFB.d.ts +0 -20
  270. package/build/types/metrics/web-vitals/onTTFB.d.ts.map +0 -1
  271. package/build/types/metrics/web-vitals/types/base.d.ts +0 -103
  272. package/build/types/metrics/web-vitals/types/base.d.ts.map +0 -1
  273. package/build/types/metrics/web-vitals/types/cls.d.ts +0 -58
  274. package/build/types/metrics/web-vitals/types/cls.d.ts.map +0 -1
  275. package/build/types/metrics/web-vitals/types/fcp.d.ts +0 -47
  276. package/build/types/metrics/web-vitals/types/fcp.d.ts.map +0 -1
  277. package/build/types/metrics/web-vitals/types/inp.d.ts +0 -150
  278. package/build/types/metrics/web-vitals/types/inp.d.ts.map +0 -1
  279. package/build/types/metrics/web-vitals/types/lcp.d.ts +0 -74
  280. package/build/types/metrics/web-vitals/types/lcp.d.ts.map +0 -1
  281. package/build/types/metrics/web-vitals/types/ttfb.d.ts +0 -60
  282. package/build/types/metrics/web-vitals/types/ttfb.d.ts.map +0 -1
  283. package/build/types/metrics/web-vitals/types.d.ts +0 -78
  284. package/build/types/metrics/web-vitals/types.d.ts.map +0 -1
  285. package/build/types/metrics/webVitalSpans.d.ts.map +0 -1
  286. package/build/types-ts3.8/debug-build.d.ts +0 -7
  287. package/build/types-ts3.8/getNativeImplementation.d.ts +0 -69
  288. package/build/types-ts3.8/htmlTreeAsString.d.ts +0 -11
  289. package/build/types-ts3.8/index.d.ts +0 -17
  290. package/build/types-ts3.8/instrument/dom.d.ts +0 -11
  291. package/build/types-ts3.8/instrument/history.d.ts +0 -15
  292. package/build/types-ts3.8/instrument/location.d.ts +0 -13
  293. package/build/types-ts3.8/instrument/xhr.d.ts +0 -14
  294. package/build/types-ts3.8/is.d.ts +0 -7
  295. package/build/types-ts3.8/metrics/browserMetrics.d.ts +0 -119
  296. package/build/types-ts3.8/metrics/cls.d.ts +0 -17
  297. package/build/types-ts3.8/metrics/elementTiming.d.ts +0 -21
  298. package/build/types-ts3.8/metrics/inp.d.ts +0 -35
  299. package/build/types-ts3.8/metrics/instrument.d.ts +0 -121
  300. package/build/types-ts3.8/metrics/lcp.d.ts +0 -22
  301. package/build/types-ts3.8/metrics/resourceTiming.d.ts +0 -13
  302. package/build/types-ts3.8/metrics/utils.d.ts +0 -73
  303. package/build/types-ts3.8/metrics/web-vitals/getCLS.d.ts +0 -26
  304. package/build/types-ts3.8/metrics/web-vitals/getINP.d.ts +0 -34
  305. package/build/types-ts3.8/metrics/web-vitals/getLCP.d.ts +0 -16
  306. package/build/types-ts3.8/metrics/web-vitals/lib/InteractionManager.d.ts +0 -37
  307. package/build/types-ts3.8/metrics/web-vitals/lib/LCPEntryManager.d.ts +0 -5
  308. package/build/types-ts3.8/metrics/web-vitals/lib/LayoutShiftManager.d.ts +0 -7
  309. package/build/types-ts3.8/metrics/web-vitals/lib/bindReporter.d.ts +0 -7
  310. package/build/types-ts3.8/metrics/web-vitals/lib/generateUniqueID.d.ts +0 -7
  311. package/build/types-ts3.8/metrics/web-vitals/lib/getActivationStart.d.ts +0 -2
  312. package/build/types-ts3.8/metrics/web-vitals/lib/getNavigationEntry.d.ts +0 -2
  313. package/build/types-ts3.8/metrics/web-vitals/lib/getVisibilityWatcher.d.ts +0 -5
  314. package/build/types-ts3.8/metrics/web-vitals/lib/globalListeners.d.ts +0 -11
  315. package/build/types-ts3.8/metrics/web-vitals/lib/initMetric.d.ts +0 -21
  316. package/build/types-ts3.8/metrics/web-vitals/lib/initUnique.d.ts +0 -7
  317. package/build/types-ts3.8/metrics/web-vitals/lib/observe.d.ts +0 -23
  318. package/build/types-ts3.8/metrics/web-vitals/lib/onHidden.d.ts +0 -27
  319. package/build/types-ts3.8/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.d.ts +0 -15
  320. package/build/types-ts3.8/metrics/web-vitals/lib/runOnce.d.ts +0 -2
  321. package/build/types-ts3.8/metrics/web-vitals/lib/whenActivated.d.ts +0 -2
  322. package/build/types-ts3.8/metrics/web-vitals/lib/whenIdleOrHidden.d.ts +0 -6
  323. package/build/types-ts3.8/metrics/web-vitals/onFCP.d.ts +0 -11
  324. package/build/types-ts3.8/metrics/web-vitals/onTTFB.d.ts +0 -20
  325. package/build/types-ts3.8/metrics/web-vitals/types/base.d.ts +0 -106
  326. package/build/types-ts3.8/metrics/web-vitals/types/cls.d.ts +0 -58
  327. package/build/types-ts3.8/metrics/web-vitals/types/fcp.d.ts +0 -47
  328. package/build/types-ts3.8/metrics/web-vitals/types/inp.d.ts +0 -150
  329. package/build/types-ts3.8/metrics/web-vitals/types/lcp.d.ts +0 -74
  330. package/build/types-ts3.8/metrics/web-vitals/types/ttfb.d.ts +0 -60
  331. package/build/types-ts3.8/metrics/web-vitals/types.d.ts +0 -78
  332. package/build/types-ts3.8/metrics/webVitalSpans.d.ts +0 -65
  333. package/build/types-ts3.8/networkUtils.d.ts +0 -28
  334. package/build/types-ts3.8/types.d.ts +0 -15
  335. /package/build/cjs/{instrument → instrumentation}/dom.js +0 -0
  336. /package/build/cjs/{instrument → instrumentation}/history.js +0 -0
  337. /package/build/cjs/{instrument → instrumentation}/location.js +0 -0
  338. /package/build/cjs/{instrument → instrumentation}/xhr.js +0 -0
  339. /package/build/cjs/{metrics → performance}/resourceTiming.js +0 -0
  340. /package/build/esm/{instrument → instrumentation}/dom.js +0 -0
  341. /package/build/esm/{instrument → instrumentation}/history.js +0 -0
  342. /package/build/esm/{instrument → instrumentation}/location.js +0 -0
  343. /package/build/esm/{instrument → instrumentation}/xhr.js +0 -0
  344. /package/build/esm/{metrics → performance}/resourceTiming.js +0 -0
  345. /package/build/types/{instrument → instrumentation}/dom.d.ts +0 -0
  346. /package/build/types/{instrument → instrumentation}/history.d.ts +0 -0
  347. /package/build/types/{instrument → instrumentation}/location.d.ts +0 -0
  348. /package/build/types/{instrument → instrumentation}/xhr.d.ts +0 -0
  349. /package/build/types/{metrics → performance}/elementTiming.d.ts +0 -0
  350. /package/build/types/{metrics → performance}/resourceTiming.d.ts +0 -0
@@ -1,150 +0,0 @@
1
- import type { AttributionReportOpts, LoadState, Metric, ReportOpts } from './base';
2
- export interface INPReportOpts extends ReportOpts {
3
- durationThreshold?: number;
4
- }
5
- export interface INPAttributionReportOpts extends AttributionReportOpts {
6
- durationThreshold?: number;
7
- }
8
- /**
9
- * An INP-specific version of the Metric object.
10
- */
11
- export interface INPMetric extends Metric {
12
- name: 'INP';
13
- entries: PerformanceEventTiming[];
14
- }
15
- export interface INPLongestScriptSummary {
16
- /**
17
- * The longest Long Animation Frame script entry that intersects the INP
18
- * interaction.
19
- */
20
- entry: PerformanceScriptTiming;
21
- /**
22
- * The INP subpart where the longest script ran.
23
- */
24
- subpart: 'input-delay' | 'processing-duration' | 'presentation-delay';
25
- /**
26
- * The amount of time the longest script intersected the INP duration.
27
- */
28
- intersectingDuration: number;
29
- }
30
- /**
31
- * An object containing potentially-helpful debugging information that
32
- * can be sent along with the INP value for the current page visit in order
33
- * to help identify issues happening to real-users in the field.
34
- */
35
- export interface INPAttribution {
36
- /**
37
- * By default, a selector identifying the element that the user first
38
- * interacted with as part of the frame where the INP candidate interaction
39
- * occurred. If this value is an empty string, that generally means the
40
- * element was removed from the DOM after the interaction. If the
41
- * `generateTarget` configuration option was passed, then this will instead
42
- * be the return value of that function, falling back to the default if that
43
- * returns null or undefined.
44
- */
45
- interactionTarget: string;
46
- /**
47
- * The time when the user first interacted during the frame where the INP
48
- * candidate interaction occurred (if more than one interaction occurred
49
- * within the frame, only the first time is reported).
50
- */
51
- interactionTime: DOMHighResTimeStamp;
52
- /**
53
- * The type of interaction, based on the event type of the `event` entry
54
- * that corresponds to the interaction (i.e. the first `event` entry
55
- * containing an `interactionId` dispatched in a given animation frame).
56
- * For "pointerdown", "pointerup", or "click" events this will be "pointer",
57
- * and for "keydown" or "keyup" events this will be "keyboard".
58
- */
59
- interactionType: 'pointer' | 'keyboard';
60
- /**
61
- * The best-guess timestamp of the next paint after the interaction.
62
- * In general, this timestamp is the same as the `startTime + duration` of
63
- * the event timing entry. However, since duration values are rounded to the
64
- * nearest 8ms (and can be rounded down), this value is clamped to always be
65
- * reported after the processing times.
66
- */
67
- nextPaintTime: DOMHighResTimeStamp;
68
- /**
69
- * An array of Event Timing entries that were processed within the same
70
- * animation frame as the INP candidate interaction.
71
- */
72
- processedEventEntries: PerformanceEventTiming[];
73
- /**
74
- * The time from when the user interacted with the page until when the
75
- * browser was first able to start processing event listeners for that
76
- * interaction. This time captures the delay before event processing can
77
- * begin due to the main thread being busy with other work.
78
- */
79
- inputDelay: number;
80
- /**
81
- * The time from when the first event listener started running in response to
82
- * the user interaction until when all event listener processing has finished.
83
- */
84
- processingDuration: number;
85
- /**
86
- * The time from when the browser finished processing all event listeners for
87
- * the user interaction until the next frame is presented on the screen and
88
- * visible to the user. This time includes work on the main thread (such as
89
- * `requestAnimationFrame()` callbacks, `ResizeObserver` and
90
- * `IntersectionObserver` callbacks, and style/layout calculation) as well
91
- * as off-main-thread work (such as compositor, GPU, and raster work).
92
- */
93
- presentationDelay: number;
94
- /**
95
- * The loading state of the document at the time when the interaction
96
- * corresponding to INP occurred (see `LoadState` for details). If the
97
- * interaction occurred while the document was loading and executing script
98
- * (e.g. usually in the `dom-interactive` phase) it can result in long delays.
99
- */
100
- loadState: LoadState;
101
- /**
102
- * If the browser supports the Long Animation Frame API, this array will
103
- * include any `long-animation-frame` entries that intersect with the INP
104
- * candidate interaction's `startTime` and the `processingEnd` time of the
105
- * last event processed within that animation frame. If the browser does not
106
- * support the Long Animation Frame API or no `long-animation-frame` entries
107
- * are detected, this array will be empty.
108
- */
109
- longAnimationFrameEntries: PerformanceLongAnimationFrameTiming[];
110
- /**
111
- * Summary information about the longest script entry intersecting the INP
112
- * duration. Note, only script entries above 5 milliseconds are reported by
113
- * the Long Animation Frame API.
114
- */
115
- longestScript?: INPLongestScriptSummary;
116
- /**
117
- * The total duration of Long Animation Frame scripts that intersect the INP
118
- * duration excluding any forced style and layout (that is included in
119
- * totalStyleAndLayout). Note, this is limited to scripts > 5 milliseconds.
120
- */
121
- totalScriptDuration?: number;
122
- /**
123
- * The total style and layout duration from any Long Animation Frames
124
- * intersecting the INP interaction. This includes any end-of-frame style and
125
- * layout duration + any forced style and layout duration.
126
- */
127
- totalStyleAndLayoutDuration?: number;
128
- /**
129
- * The off main-thread presentation delay from the end of the last Long
130
- * Animation Frame (where available) until the INP end point.
131
- */
132
- totalPaintDuration?: number;
133
- /**
134
- * The total unattributed time not included in any of the previous totals.
135
- * This includes scripts < 5 milliseconds and other timings not attributed
136
- * by Long Animation Frame (including when a frame is < 50ms and so has no
137
- * Long Animation Frame).
138
- * When no Long Animation Frames are present this will be undefined, rather
139
- * than everything being unattributed to make it clearer when it's expected
140
- * to be small.
141
- */
142
- totalUnattributedDuration?: number;
143
- }
144
- /**
145
- * An INP-specific version of the Metric object with attribution.
146
- */
147
- export interface INPMetricWithAttribution extends INPMetric {
148
- attribution: INPAttribution;
149
- }
150
- //# sourceMappingURL=inp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inp.d.ts","sourceRoot":"","sources":["../../../../../src/metrics/web-vitals/types/inp.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEnF,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,MAAM;IACvC,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,KAAK,EAAE,uBAAuB,CAAC;IAC/B;;OAEG;IACH,OAAO,EAAE,aAAa,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;IACtE;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;OAQG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,eAAe,EAAE,mBAAmB,CAAC;IACrC;;;;;;OAMG;IACH,eAAe,EAAE,SAAS,GAAG,UAAU,CAAC;IACxC;;;;;;OAMG;IACH,aAAa,EAAE,mBAAmB,CAAC;IACnC;;;OAGG;IACH,qBAAqB,EAAE,sBAAsB,EAAE,CAAC;IAChD;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;;;OAOG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;;;;OAOG;IACH,yBAAyB,EAAE,mCAAmC,EAAE,CAAC;IACjE;;;;OAIG;IACH,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;;OAQG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,SAAS;IACzD,WAAW,EAAE,cAAc,CAAC;CAC7B"}
@@ -1,74 +0,0 @@
1
- import type { Metric } from './base.js';
2
- /**
3
- * An LCP-specific version of the Metric object.
4
- */
5
- export interface LCPMetric extends Metric {
6
- name: 'LCP';
7
- entries: LargestContentfulPaint[];
8
- }
9
- /**
10
- * An object containing potentially-helpful debugging information that
11
- * can be sent along with the LCP value for the current page visit in order
12
- * to help identify issues happening to real-users in the field.
13
- */
14
- export interface LCPAttribution {
15
- /**
16
- * By default, a selector identifying the element corresponding to the
17
- * largest contentful paint for the page. If the `generateTarget`
18
- * configuration option was passed, then this will instead be the return
19
- * value of that function, falling back to the default if that returns null
20
- * or undefined.
21
- */
22
- target?: string;
23
- /**
24
- * The URL (if applicable) of the LCP image resource. If the LCP element
25
- * is a text node, this value will not be set.
26
- */
27
- url?: string;
28
- /**
29
- * The time from when the user initiates loading the page until when the
30
- * browser receives the first byte of the response (a.k.a. TTFB). See
31
- * [Optimize LCP](https://web.dev/articles/optimize-lcp) for details.
32
- */
33
- timeToFirstByte: number;
34
- /**
35
- * The delta between TTFB and when the browser starts loading the LCP
36
- * resource (if there is one, otherwise 0). See [Optimize
37
- * LCP](https://web.dev/articles/optimize-lcp) for details.
38
- */
39
- resourceLoadDelay: number;
40
- /**
41
- * The total time it takes to load the LCP resource itself (if there is one,
42
- * otherwise 0). See [Optimize LCP](https://web.dev/articles/optimize-lcp) for
43
- * details.
44
- */
45
- resourceLoadDuration: number;
46
- /**
47
- * The delta between when the LCP resource finishes loading until the LCP
48
- * element is fully rendered. See [Optimize
49
- * LCP](https://web.dev/articles/optimize-lcp) for details.
50
- */
51
- elementRenderDelay: number;
52
- /**
53
- * The `navigation` entry of the current page, which is useful for diagnosing
54
- * general page load issues. This can be used to access `serverTiming` for example:
55
- * navigationEntry?.serverTiming
56
- */
57
- navigationEntry?: PerformanceNavigationTiming;
58
- /**
59
- * The `resource` entry for the LCP resource (if applicable), which is useful
60
- * for diagnosing resource load issues.
61
- */
62
- lcpResourceEntry?: PerformanceResourceTiming;
63
- /**
64
- * The `LargestContentfulPaint` entry corresponding to LCP.
65
- */
66
- lcpEntry?: LargestContentfulPaint;
67
- }
68
- /**
69
- * An LCP-specific version of the Metric object with attribution.
70
- */
71
- export interface LCPMetricWithAttribution extends LCPMetric {
72
- attribution: LCPAttribution;
73
- }
74
- //# sourceMappingURL=lcp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lcp.d.ts","sourceRoot":"","sources":["../../../../../src/metrics/web-vitals/types/lcp.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,MAAM;IACvC,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,2BAA2B,CAAC;IAC9C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,SAAS;IACzD,WAAW,EAAE,cAAc,CAAC;CAC7B"}
@@ -1,60 +0,0 @@
1
- import type { Metric } from './base';
2
- /**
3
- * A TTFB-specific version of the Metric object.
4
- */
5
- export interface TTFBMetric extends Metric {
6
- name: 'TTFB';
7
- entries: PerformanceNavigationTiming[];
8
- }
9
- /**
10
- * An object containing potentially-helpful debugging information that
11
- * can be sent along with the TTFB value for the current page visit in order
12
- * to help identify issues happening to real-users in the field.
13
- *
14
- * NOTE: these values are primarily useful for page loads not handled via
15
- * service worker, as browsers differ in what they report when service worker
16
- * is involved, see: https://github.com/w3c/navigation-timing/issues/199
17
- */
18
- export interface TTFBAttribution {
19
- /**
20
- * The total time from when the user initiates loading the page to when the
21
- * page starts to handle the request. Large values here are typically due
22
- * to HTTP redirects, though other browser processing contributes to this
23
- * duration as well (so even without redirect it's generally not zero).
24
- */
25
- waitingDuration: number;
26
- /**
27
- * The total time spent checking the HTTP cache for a match. For navigations
28
- * handled via service worker, this duration usually includes service worker
29
- * start-up time as well as time processing `fetch` event listeners, with
30
- * some exceptions, see: https://github.com/w3c/navigation-timing/issues/199
31
- */
32
- cacheDuration: number;
33
- /**
34
- * The total time to resolve the DNS for the requested domain.
35
- */
36
- dnsDuration: number;
37
- /**
38
- * The total time to create the connection to the requested domain.
39
- */
40
- connectionDuration: number;
41
- /**
42
- * The total time from when the request was sent until the first byte of the
43
- * response was received. This includes network time as well as server
44
- * processing time.
45
- */
46
- requestDuration: number;
47
- /**
48
- * The `navigation` entry of the current page, which is useful for diagnosing
49
- * general page load issues. This can be used to access `serverTiming` for
50
- * example: navigationEntry?.serverTiming
51
- */
52
- navigationEntry?: PerformanceNavigationTiming;
53
- }
54
- /**
55
- * A TTFB-specific version of the Metric object with attribution.
56
- */
57
- export interface TTFBMetricWithAttribution extends TTFBMetric {
58
- attribution: TTFBAttribution;
59
- }
60
- //# sourceMappingURL=ttfb.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ttfb.d.ts","sourceRoot":"","sources":["../../../../../src/metrics/web-vitals/types/ttfb.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,2BAA2B,EAAE,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,eAAe,CAAC,EAAE,2BAA2B,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,WAAW,EAAE,eAAe,CAAC;CAC9B"}
@@ -1,78 +0,0 @@
1
- export * from './types/base';
2
- export * from './types/cls';
3
- export * from './types/fcp';
4
- export * from './types/inp';
5
- export * from './types/lcp';
6
- export * from './types/ttfb';
7
- interface PerformanceEntryMap {
8
- navigation: PerformanceNavigationTiming;
9
- resource: PerformanceResourceTiming;
10
- paint: PerformancePaintTiming;
11
- }
12
- declare global {
13
- interface Document {
14
- prerendering?: boolean;
15
- wasDiscarded?: boolean;
16
- }
17
- interface Performance {
18
- getEntriesByType<K extends keyof PerformanceEntryMap>(type: K): PerformanceEntryMap[K][];
19
- }
20
- interface PerformanceObserverInit {
21
- durationThreshold?: number;
22
- }
23
- interface PerformanceNavigationTiming {
24
- activationStart?: number;
25
- }
26
- interface PerformanceEventTiming extends PerformanceEntry {
27
- duration: DOMHighResTimeStamp;
28
- interactionId: number;
29
- }
30
- interface LayoutShiftAttribution {
31
- node: Node | null;
32
- previousRect: DOMRectReadOnly;
33
- currentRect: DOMRectReadOnly;
34
- }
35
- interface LayoutShift extends PerformanceEntry {
36
- value: number;
37
- sources: LayoutShiftAttribution[];
38
- hadRecentInput: boolean;
39
- }
40
- interface LargestContentfulPaint extends PerformanceEntry {
41
- readonly renderTime: DOMHighResTimeStamp;
42
- readonly loadTime: DOMHighResTimeStamp;
43
- readonly size: number;
44
- readonly id: string;
45
- readonly url: string;
46
- readonly element: Element | null;
47
- }
48
- export type ScriptInvokerType = 'classic-script' | 'module-script' | 'event-listener' | 'user-callback' | 'resolve-promise' | 'reject-promise';
49
- export type ScriptWindowAttribution = 'self' | 'descendant' | 'ancestor' | 'same-page' | 'other';
50
- interface PerformanceScriptTiming extends PerformanceEntry {
51
- readonly startTime: DOMHighResTimeStamp;
52
- readonly duration: DOMHighResTimeStamp;
53
- readonly name: string;
54
- readonly entryType: string;
55
- readonly invokerType: ScriptInvokerType;
56
- readonly invoker: string;
57
- readonly executionStart: DOMHighResTimeStamp;
58
- readonly sourceURL: string;
59
- readonly sourceFunctionName: string;
60
- readonly sourceCharPosition: number;
61
- readonly pauseDuration: DOMHighResTimeStamp;
62
- readonly forcedStyleAndLayoutDuration: DOMHighResTimeStamp;
63
- readonly window?: Window;
64
- readonly windowAttribution: ScriptWindowAttribution;
65
- }
66
- interface PerformanceLongAnimationFrameTiming extends PerformanceEntry {
67
- readonly startTime: DOMHighResTimeStamp;
68
- readonly duration: DOMHighResTimeStamp;
69
- readonly name: string;
70
- readonly entryType: string;
71
- readonly renderStart: DOMHighResTimeStamp;
72
- readonly styleAndLayoutStart: DOMHighResTimeStamp;
73
- readonly blockingDuration: DOMHighResTimeStamp;
74
- readonly firstUIEventTimestamp: DOMHighResTimeStamp;
75
- readonly scripts: PerformanceScriptTiming[];
76
- }
77
- }
78
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/metrics/web-vitals/types.ts"],"names":[],"mappings":"AAgBA,cAAc,cAAc,CAAC;AAE7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAM7B,UAAU,mBAAmB;IAC3B,UAAU,EAAE,2BAA2B,CAAC;IACxC,QAAQ,EAAE,yBAAyB,CAAC;IACpC,KAAK,EAAE,sBAAsB,CAAC;CAC/B;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,QAAQ;QAEhB,YAAY,CAAC,EAAE,OAAO,CAAC;QAEvB,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB;IAED,UAAU,WAAW;QACnB,gBAAgB,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAAE,IAAI,EAAE,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;KAC1F;IAGD,UAAU,uBAAuB;QAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAGD,UAAU,2BAA2B;QACnC,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;IAGD,UAAU,sBAAuB,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,EAAE,MAAM,EAChB,KAAK,EAAE,WAAW,GAAG,SAAS,EAC9B,YAAY,CAAC,EAAE,IAAI,EACnB,WAAW,CAAC,EAAE,mBAAmB,GAChC,IAAI,CAyBN;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,IAAI,CA2BrC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,sBAAsB,GAAG,IAAI,CAiClF"}
@@ -1,7 +0,0 @@
1
- /**
2
- * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
3
- *
4
- * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
5
- */
6
- export declare const DEBUG_BUILD: boolean;
7
- //# sourceMappingURL=debug-build.d.ts.map
@@ -1,69 +0,0 @@
1
- import { WINDOW } from './types';
2
- /**
3
- * We generally want to use window.fetch / window.setTimeout.
4
- * However, in some cases this may be wrapped (e.g. by Zone.js for Angular),
5
- * so we try to get an unpatched version of this from a sandboxed iframe.
6
- */
7
- interface CacheableImplementations {
8
- setTimeout: typeof WINDOW.setTimeout;
9
- fetch: typeof WINDOW.fetch;
10
- }
11
- /**
12
- * Get the native implementation of a browser function.
13
- *
14
- * This can be used to ensure we get an unwrapped version of a function, in cases where a wrapped function can lead to problems.
15
- *
16
- * The following methods can be retrieved:
17
- * - `setTimeout`: This can be wrapped by e.g. Angular, causing change detection to be triggered.
18
- * - `fetch`: This can be wrapped by e.g. ad-blockers, causing an infinite loop when a request is blocked.
19
- */
20
- export declare function getNativeImplementation<T extends keyof CacheableImplementations>(name: T): CacheableImplementations[T];
21
- /** Clear a cached implementation. */
22
- export declare function clearCachedImplementation(name: keyof CacheableImplementations): void;
23
- /**
24
- * A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.
25
- * Whenever someone wraps the Fetch API and returns the wrong promise chain,
26
- * this chain becomes orphaned and there is no possible way to capture it's rejections
27
- * other than allowing it bubble up to this very handler. eg.
28
- *
29
- * const f = window.fetch;
30
- * window.fetch = function () {
31
- * const p = f.apply(this, arguments);
32
- *
33
- * p.then(function() {
34
- * console.log('hi.');
35
- * });
36
- *
37
- * return p;
38
- * }
39
- *
40
- * `p.then(function () { ... })` is producing a completely separate promise chain,
41
- * however, what's returned is `p` - the result of original `fetch` call.
42
- *
43
- * This mean, that whenever we use the Fetch API to send our own requests, _and_
44
- * some ad-blocker blocks it, this orphaned chain will _always_ reject,
45
- * effectively causing another event to be captured.
46
- * This makes a whole process become an infinite loop, which we need to somehow
47
- * deal with, and break it in one way or another.
48
- *
49
- * To deal with this issue, we are making sure that we _always_ use the real
50
- * browser Fetch API, instead of relying on what `window.fetch` exposes.
51
- * The only downside to this would be missing our own requests as breadcrumbs,
52
- * but because we are already not doing this, it should be just fine.
53
- *
54
- * Possible failed fetch error messages per-browser:
55
- *
56
- * Chrome: Failed to fetch
57
- * Edge: Failed to Fetch
58
- * Firefox: NetworkError when attempting to fetch resource
59
- * Safari: resource blocked by content blocker
60
- */
61
- export declare function fetch(...rest: Parameters<typeof WINDOW.fetch>): ReturnType<typeof WINDOW.fetch>;
62
- /**
63
- * Get an unwrapped `setTimeout` method.
64
- * This ensures that even if e.g. Angular wraps `setTimeout`, we get the native implementation,
65
- * avoiding triggering change detection.
66
- */
67
- export declare function setTimeout(...rest: Parameters<typeof WINDOW.setTimeout>): ReturnType<typeof WINDOW.setTimeout>;
68
- export {};
69
- //# sourceMappingURL=getNativeImplementation.d.ts.map
@@ -1,11 +0,0 @@
1
- /**
2
- * Given a child DOM element, returns a query-selector statement describing that
3
- * and its ancestors
4
- * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]
5
- * @returns generated DOM path
6
- */
7
- export declare function htmlTreeAsString(elem: unknown, options?: string[] | {
8
- keyAttrs?: string[];
9
- maxStringLength?: number;
10
- }): string;
11
- //# sourceMappingURL=htmlTreeAsString.d.ts.map
@@ -1,17 +0,0 @@
1
- export { addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addTtfbInstrumentationHandler, addLcpInstrumentationHandler, addInpInstrumentationHandler, } from './metrics/instrument';
2
- export { addPerformanceEntries, addWebVitalsToSpan, startTrackingInteractions, startTrackingLongTasks, startTrackingLongAnimationFrames, startTrackingWebVitals, startTrackingINP, registerInpInteractionListener, } from './metrics/browserMetrics';
3
- export { elementTimingIntegration, startTrackingElementTiming } from './metrics/elementTiming';
4
- export { extractNetworkProtocol } from './metrics/utils';
5
- export { trackClsAsSpan, trackInpAsSpan, trackLcpAsSpan } from './metrics/webVitalSpans';
6
- export { whenIdleOrHidden } from './metrics/web-vitals/lib/whenIdleOrHidden';
7
- export { addClickKeypressInstrumentationHandler } from './instrument/dom';
8
- export { addHistoryInstrumentationHandler } from './instrument/history';
9
- export { fetch, setTimeout, clearCachedImplementation, getNativeImplementation } from './getNativeImplementation';
10
- export { addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY } from './instrument/xhr';
11
- export { getBodyString, getFetchRequestArgBody, serializeFormData, parseXhrResponseHeaders } from './networkUtils';
12
- export { resourceTimingToSpanAttributes } from './metrics/resourceTiming';
13
- export { htmlTreeAsString } from './htmlTreeAsString';
14
- export { isElement } from './is';
15
- export { getAbsoluteUrl } from './instrument/location';
16
- export { FetchHint, NetworkMetaWarning, XhrHint } from './types';
17
- //# sourceMappingURL=index.d.ts.map
@@ -1,11 +0,0 @@
1
- import { HandlerDataDom } from '@sentry/core';
2
- /**
3
- * Add an instrumentation handler for when a click or a keypress happens.
4
- *
5
- * Use at your own risk, this might break without changelog notice, only used internally.
6
- * @hidden
7
- */
8
- export declare function addClickKeypressInstrumentationHandler(handler: (data: HandlerDataDom) => void): void;
9
- /** Exported for tests only. */
10
- export declare function instrumentDOM(): void;
11
- //# sourceMappingURL=dom.d.ts.map
@@ -1,15 +0,0 @@
1
- import { HandlerDataHistory } from '@sentry/core';
2
- /**
3
- * Add an instrumentation handler for when a fetch request happens.
4
- * The handler function is called once when the request starts and once when it ends,
5
- * which can be identified by checking if it has an `endTimestamp`.
6
- *
7
- * Use at your own risk, this might break without changelog notice, only used internally.
8
- * @hidden
9
- */
10
- export declare function addHistoryInstrumentationHandler(handler: (data: HandlerDataHistory) => void): void;
11
- /**
12
- * Exported just for testing
13
- */
14
- export declare function instrumentHistory(): void;
15
- //# sourceMappingURL=history.d.ts.map
@@ -1,13 +0,0 @@
1
- /**
2
- *
3
- * @param urlOrPath - The URL or path to convert to an absolute URL.
4
- *
5
- * @return the absolute URL when handed a relative URL path, by
6
- * combining the current `window.location.origin` with param urlOrPath.
7
- *
8
- * If param urlOrPath is already a full or an invalid URL,
9
- * or URL determination fails, the original param urlOrPath is returned unchanged.
10
- *
11
- */
12
- export declare function getAbsoluteUrl(urlOrPath: string): string;
13
- //# sourceMappingURL=location.d.ts.map
@@ -1,14 +0,0 @@
1
- import { HandlerDataXhr } from '@sentry/core';
2
- export declare const SENTRY_XHR_DATA_KEY = "__sentry_xhr_v3__";
3
- /**
4
- * Add an instrumentation handler for when an XHR request happens.
5
- * The handler function is called once when the request starts and once when it ends,
6
- * which can be identified by checking if it has an `endTimestamp`.
7
- *
8
- * Use at your own risk, this might break without changelog notice, only used internally.
9
- * @hidden
10
- */
11
- export declare function addXhrInstrumentationHandler(handler: (data: HandlerDataXhr) => void): void;
12
- /** Exported only for tests. */
13
- export declare function instrumentXHR(): void;
14
- //# sourceMappingURL=xhr.d.ts.map
@@ -1,7 +0,0 @@
1
- /**
2
- * Checks whether given value's type is an Element instance.
3
- *
4
- * Returns false if `Element` is not available in the current runtime.
5
- */
6
- export declare function isElement(wat: unknown): boolean;
7
- //# sourceMappingURL=is.d.ts.map