@safaricom-mxl/web-sdk 0.0.16 → 0.0.17

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 (819) hide show
  1. package/DATA_EXPORT.md +2 -3
  2. package/REACT.md +5 -7
  3. package/README.md +94 -57
  4. package/UPGRADING.md +29 -19
  5. package/dist/api-logs/api/LogAPI/LogAPI.cjs +3 -3
  6. package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
  7. package/dist/api-logs/api/LogAPI/LogAPI.js +3 -3
  8. package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
  9. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.cjs.map +1 -1
  10. package/dist/api-logs/manager/NoOpLogManager/NoOpLogManager.js.map +1 -1
  11. package/dist/api-logs/manager/types.d.cts +4 -4
  12. package/dist/api-logs/manager/types.d.cts.map +1 -1
  13. package/dist/api-logs/manager/types.d.ts +4 -4
  14. package/dist/api-logs/manager/types.d.ts.map +1 -1
  15. package/dist/api-page/api/PageAPI/PageAPI.cjs +3 -3
  16. package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
  17. package/dist/api-page/api/PageAPI/PageAPI.js +3 -3
  18. package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
  19. package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs +9 -9
  20. package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
  21. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts +5 -7
  22. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.cts.map +1 -1
  23. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts +5 -7
  24. package/dist/api-sessions/api/SessionAPI/SessionAPI.d.ts.map +1 -1
  25. package/dist/api-sessions/api/SessionAPI/SessionAPI.js +9 -9
  26. package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
  27. package/dist/api-sessions/index.cjs +4 -4
  28. package/dist/api-sessions/index.d.cts +4 -4
  29. package/dist/api-sessions/index.d.ts +4 -4
  30. package/dist/api-sessions/index.js +3 -3
  31. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs +47 -0
  32. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.cjs.map +1 -0
  33. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts +30 -0
  34. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.cts.map +1 -0
  35. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts +30 -0
  36. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.d.ts.map +1 -0
  37. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js +46 -0
  38. package/dist/api-sessions/manager/NoOpUserSessionManager/NoOpUserSessionManager.js.map +1 -0
  39. package/dist/api-sessions/manager/NoOpUserSessionManager/index.cjs +3 -0
  40. package/dist/api-sessions/manager/NoOpUserSessionManager/index.d.cts +2 -0
  41. package/dist/api-sessions/manager/NoOpUserSessionManager/index.d.ts +2 -0
  42. package/dist/api-sessions/manager/NoOpUserSessionManager/index.js +2 -0
  43. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs +81 -0
  44. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs.map +1 -0
  45. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts +35 -0
  46. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts.map +1 -0
  47. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts +35 -0
  48. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts.map +1 -0
  49. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js +81 -0
  50. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js.map +1 -0
  51. package/dist/api-sessions/manager/ProxyUserSessionManager/index.cjs +3 -0
  52. package/dist/api-sessions/manager/ProxyUserSessionManager/index.d.cts +2 -0
  53. package/dist/api-sessions/manager/ProxyUserSessionManager/index.d.ts +2 -0
  54. package/dist/api-sessions/manager/ProxyUserSessionManager/index.js +2 -0
  55. package/dist/api-sessions/manager/index.cjs +4 -4
  56. package/dist/api-sessions/manager/index.d.cts +4 -4
  57. package/dist/api-sessions/manager/index.d.ts +4 -4
  58. package/dist/api-sessions/manager/index.js +3 -3
  59. package/dist/api-sessions/manager/types.d.cts +14 -24
  60. package/dist/api-sessions/manager/types.d.cts.map +1 -1
  61. package/dist/api-sessions/manager/types.d.ts +14 -24
  62. package/dist/api-sessions/manager/types.d.ts.map +1 -1
  63. package/dist/api-traces/api/TraceAPI/TraceAPI.cjs +3 -3
  64. package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
  65. package/dist/api-traces/api/TraceAPI/TraceAPI.js +3 -3
  66. package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
  67. package/dist/api-traces/api/TraceAPI/types.d.cts +2 -2
  68. package/dist/api-traces/api/TraceAPI/types.d.cts.map +1 -1
  69. package/dist/api-traces/api/TraceAPI/types.d.ts +2 -2
  70. package/dist/api-traces/api/TraceAPI/types.d.ts.map +1 -1
  71. package/dist/api-users/api/UserAPI/UserAPI.cjs +3 -3
  72. package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
  73. package/dist/api-users/api/UserAPI/UserAPI.js +3 -3
  74. package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
  75. package/dist/common/types.d.cts +2 -0
  76. package/dist/common/types.d.cts.map +1 -1
  77. package/dist/common/types.d.ts +2 -0
  78. package/dist/common/types.d.ts.map +1 -1
  79. package/dist/constants/attributes.cjs +28 -0
  80. package/dist/constants/attributes.cjs.map +1 -1
  81. package/dist/constants/attributes.d.cts +17 -2
  82. package/dist/constants/attributes.d.cts.map +1 -1
  83. package/dist/constants/attributes.d.ts +17 -2
  84. package/dist/constants/attributes.d.ts.map +1 -1
  85. package/dist/constants/attributes.js +16 -1
  86. package/dist/constants/attributes.js.map +1 -1
  87. package/dist/constants/index.cjs +13 -0
  88. package/dist/constants/index.d.cts +2 -2
  89. package/dist/constants/index.d.ts +2 -2
  90. package/dist/constants/index.js +2 -2
  91. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +1 -2
  92. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
  93. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts +1 -2
  94. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts.map +1 -1
  95. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +1 -2
  96. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts.map +1 -1
  97. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +1 -2
  98. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
  99. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
  100. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
  101. package/dist/exporters/constants.cjs +1 -1
  102. package/dist/exporters/constants.cjs.map +1 -1
  103. package/dist/exporters/constants.d.cts +1 -1
  104. package/dist/exporters/constants.d.ts +1 -1
  105. package/dist/exporters/constants.js +1 -1
  106. package/dist/exporters/constants.js.map +1 -1
  107. package/dist/exporters/otlpBrowserFetchExportDelegate.cjs.map +1 -1
  108. package/dist/exporters/otlpBrowserFetchExportDelegate.js.map +1 -1
  109. package/dist/index.cjs +2 -0
  110. package/dist/index.d.cts +2 -1
  111. package/dist/index.d.ts +2 -1
  112. package/dist/index.js +2 -1
  113. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs +2 -2
  114. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.cjs.map +1 -1
  115. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.d.cts.map +1 -1
  116. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.d.ts.map +1 -1
  117. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js +2 -2
  118. package/dist/instrumentations/InstrumentationAbstract/InstrumentationAbstract.js.map +1 -1
  119. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs +6 -7
  120. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
  121. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts +4 -5
  122. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.cts.map +1 -1
  123. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts +4 -5
  124. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.d.ts.map +1 -1
  125. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js +6 -7
  126. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
  127. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs +8 -8
  128. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.cjs.map +1 -1
  129. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.cts.map +1 -1
  130. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.d.ts.map +1 -1
  131. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js +8 -8
  132. package/dist/instrumentations/clicks/ClicksInstrumentation/ClicksInstrumentation.js.map +1 -1
  133. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs +10 -10
  134. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.cjs.map +1 -1
  135. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js +10 -10
  136. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/DocumentLoadInstrumentation.js.map +1 -1
  137. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs +2 -2
  138. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.cjs.map +1 -1
  139. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js +2 -2
  140. package/dist/instrumentations/document-load/DocumentLoadInstrumentation/utils.js.map +1 -1
  141. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs +5 -5
  142. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -1
  143. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js +5 -5
  144. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -1
  145. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs +4 -4
  146. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.cjs.map +1 -1
  147. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js +4 -4
  148. package/dist/instrumentations/empty-root/EmptyRootInstrumentation/EmptyRootInstrumentation.js.map +1 -1
  149. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs +7 -7
  150. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.cjs.map +1 -1
  151. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js +7 -7
  152. package/dist/instrumentations/exceptions/GlobalExceptionInstrumentation/GlobalExceptionInstrumentation.js.map +1 -1
  153. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs +2 -2
  154. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
  155. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.cts +4 -4
  156. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.cts.map +1 -1
  157. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.ts +4 -4
  158. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.d.ts.map +1 -1
  159. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js +2 -2
  160. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
  161. package/dist/instrumentations/index.cjs +2 -4
  162. package/dist/instrumentations/index.d.cts +4 -6
  163. package/dist/instrumentations/index.d.ts +4 -6
  164. package/dist/instrumentations/index.js +2 -3
  165. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs +23 -23
  166. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -1
  167. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts +2 -3
  168. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -1
  169. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts +2 -3
  170. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -1
  171. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js +23 -23
  172. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -1
  173. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs +5 -5
  174. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
  175. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.cts.map +1 -1
  176. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
  177. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js +5 -5
  178. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
  179. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs.map +1 -1
  180. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js.map +1 -1
  181. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs +1 -1
  182. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.cjs.map +1 -1
  183. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js +1 -1
  184. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.js.map +1 -1
  185. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.cts +10 -10
  186. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.cts.map +1 -1
  187. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts +10 -10
  188. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts.map +1 -1
  189. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.cts +2 -2
  190. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.cts.map +1 -1
  191. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts +2 -2
  192. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts.map +1 -1
  193. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs.map +1 -1
  194. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js.map +1 -1
  195. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs +257 -0
  196. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs.map +1 -0
  197. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts +56 -0
  198. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts.map +1 -0
  199. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts +56 -0
  200. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts.map +1 -0
  201. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js +252 -0
  202. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js.map +1 -0
  203. package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs +15 -0
  204. package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs.map +1 -0
  205. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts +9 -0
  206. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts.map +1 -0
  207. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts +9 -0
  208. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts.map +1 -0
  209. package/dist/instrumentations/replay/ReplayInstrumentation/constants.js +10 -0
  210. package/dist/instrumentations/replay/ReplayInstrumentation/constants.js.map +1 -0
  211. package/dist/instrumentations/replay/ReplayInstrumentation/index.cjs +3 -0
  212. package/dist/instrumentations/replay/ReplayInstrumentation/index.d.cts +3 -0
  213. package/dist/instrumentations/replay/ReplayInstrumentation/index.d.ts +3 -0
  214. package/dist/instrumentations/replay/ReplayInstrumentation/index.js +2 -0
  215. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts +17 -0
  216. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts.map +1 -0
  217. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts +17 -0
  218. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts.map +1 -0
  219. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs +18 -0
  220. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs.map +1 -0
  221. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.cts +8 -0
  222. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.cts.map +1 -0
  223. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.ts +8 -0
  224. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.d.ts.map +1 -0
  225. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js +17 -0
  226. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js.map +1 -0
  227. package/dist/instrumentations/replay/index.cjs +8 -0
  228. package/dist/instrumentations/replay/index.d.cts +4 -0
  229. package/dist/instrumentations/replay/index.d.ts +4 -0
  230. package/dist/instrumentations/replay/index.js +3 -0
  231. package/dist/instrumentations/replay/utils/index.cjs +5 -0
  232. package/dist/instrumentations/replay/utils/index.d.cts +2 -0
  233. package/dist/instrumentations/replay/utils/index.d.ts +2 -0
  234. package/dist/instrumentations/replay/utils/index.js +2 -0
  235. package/dist/instrumentations/replay/utils/session-recording-utils.cjs +79 -0
  236. package/dist/instrumentations/replay/utils/session-recording-utils.cjs.map +1 -0
  237. package/dist/instrumentations/replay/utils/session-recording-utils.d.cts +32 -0
  238. package/dist/instrumentations/replay/utils/session-recording-utils.d.cts.map +1 -0
  239. package/dist/instrumentations/replay/utils/session-recording-utils.d.ts +32 -0
  240. package/dist/instrumentations/replay/utils/session-recording-utils.d.ts.map +1 -0
  241. package/dist/instrumentations/replay/utils/session-recording-utils.js +73 -0
  242. package/dist/instrumentations/replay/utils/session-recording-utils.js.map +1 -0
  243. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs +6 -6
  244. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.cjs.map +1 -1
  245. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js +6 -6
  246. package/dist/instrumentations/server-timing/ServerTimingInstrumentation/ServerTimingInstrumentation.js.map +1 -1
  247. package/dist/instrumentations/session/index.cjs +0 -6
  248. package/dist/instrumentations/session/index.d.cts +2 -7
  249. package/dist/instrumentations/session/index.d.ts +2 -7
  250. package/dist/instrumentations/session/index.js +1 -4
  251. package/dist/instrumentations/session/types.d.cts +5 -5
  252. package/dist/instrumentations/session/types.d.cts.map +1 -1
  253. package/dist/instrumentations/session/types.d.ts +5 -5
  254. package/dist/instrumentations/session/types.d.ts.map +1 -1
  255. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs +10 -10
  256. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -1
  257. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js +10 -10
  258. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -1
  259. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs +15 -15
  260. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
  261. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js +15 -15
  262. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
  263. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts +1 -3
  264. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.cts.map +1 -1
  265. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts +1 -3
  266. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/types.d.ts.map +1 -1
  267. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs +0 -1
  268. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.cjs.map +1 -1
  269. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.cts.map +1 -1
  270. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.d.ts.map +1 -1
  271. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js +0 -1
  272. package/dist/managers/MXLConfigManager/MXLDynamicConfigManager.js.map +1 -1
  273. package/dist/managers/MXLConfigManager/constants.cjs +2 -2
  274. package/dist/managers/MXLConfigManager/constants.cjs.map +1 -1
  275. package/dist/managers/MXLConfigManager/constants.js +2 -2
  276. package/dist/managers/MXLConfigManager/constants.js.map +1 -1
  277. package/dist/managers/MXLConfigManager/types.d.cts +8 -7
  278. package/dist/managers/MXLConfigManager/types.d.cts.map +1 -1
  279. package/dist/managers/MXLConfigManager/types.d.ts +8 -7
  280. package/dist/managers/MXLConfigManager/types.d.ts.map +1 -1
  281. package/dist/managers/MXLLimitManager/MXLLimitManager.cjs +20 -20
  282. package/dist/managers/MXLLimitManager/MXLLimitManager.cjs.map +1 -1
  283. package/dist/managers/MXLLimitManager/MXLLimitManager.js +20 -20
  284. package/dist/managers/MXLLimitManager/MXLLimitManager.js.map +1 -1
  285. package/dist/managers/MXLLimitManager/constants.cjs +20 -20
  286. package/dist/managers/MXLLimitManager/constants.cjs.map +1 -1
  287. package/dist/managers/MXLLimitManager/constants.js +20 -20
  288. package/dist/managers/MXLLimitManager/constants.js.map +1 -1
  289. package/dist/managers/MXLLimitManager/types.d.cts +8 -8
  290. package/dist/managers/MXLLimitManager/types.d.cts.map +1 -1
  291. package/dist/managers/MXLLimitManager/types.d.ts +8 -8
  292. package/dist/managers/MXLLimitManager/types.d.ts.map +1 -1
  293. package/dist/managers/MXLLogManager/MXLLogManager.cjs +19 -19
  294. package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
  295. package/dist/managers/MXLLogManager/MXLLogManager.d.cts +2 -2
  296. package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
  297. package/dist/managers/MXLLogManager/MXLLogManager.d.ts +2 -2
  298. package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
  299. package/dist/managers/MXLLogManager/MXLLogManager.js +19 -19
  300. package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
  301. package/dist/managers/MXLLogManager/types.d.cts +2 -2
  302. package/dist/managers/MXLLogManager/types.d.ts +2 -2
  303. package/dist/managers/MXLPageManager/MXLPageManager.cjs +1 -3
  304. package/dist/managers/MXLPageManager/MXLPageManager.cjs.map +1 -1
  305. package/dist/managers/MXLPageManager/MXLPageManager.d.cts.map +1 -1
  306. package/dist/managers/MXLPageManager/MXLPageManager.d.ts.map +1 -1
  307. package/dist/managers/MXLPageManager/MXLPageManager.js +1 -3
  308. package/dist/managers/MXLPageManager/MXLPageManager.js.map +1 -1
  309. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs +0 -4
  310. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
  311. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.cts +0 -1
  312. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.cts.map +1 -1
  313. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.ts +0 -1
  314. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.d.ts.map +1 -1
  315. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js +0 -4
  316. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
  317. package/dist/managers/MXLSDKFeaturesManager/types.d.cts +0 -1
  318. package/dist/managers/MXLSDKFeaturesManager/types.d.cts.map +1 -1
  319. package/dist/managers/MXLSDKFeaturesManager/types.d.ts +0 -1
  320. package/dist/managers/MXLSDKFeaturesManager/types.d.ts.map +1 -1
  321. package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
  322. package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
  323. package/dist/managers/MXLUserManager/MXLUserManager.cjs +14 -14
  324. package/dist/managers/MXLUserManager/MXLUserManager.cjs.map +1 -1
  325. package/dist/managers/MXLUserManager/MXLUserManager.js +14 -14
  326. package/dist/managers/MXLUserManager/MXLUserManager.js.map +1 -1
  327. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs +574 -0
  328. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs.map +1 -0
  329. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts +142 -0
  330. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts.map +1 -0
  331. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts +142 -0
  332. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts.map +1 -0
  333. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js +572 -0
  334. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js.map +1 -0
  335. package/dist/managers/MXLUserSessionManager/constants.cjs +55 -0
  336. package/dist/managers/MXLUserSessionManager/constants.cjs.map +1 -0
  337. package/dist/managers/MXLUserSessionManager/constants.d.cts +31 -0
  338. package/dist/managers/MXLUserSessionManager/constants.d.cts.map +1 -0
  339. package/dist/managers/MXLUserSessionManager/constants.d.ts +31 -0
  340. package/dist/managers/MXLUserSessionManager/constants.d.ts.map +1 -0
  341. package/dist/managers/MXLUserSessionManager/constants.js +37 -0
  342. package/dist/managers/MXLUserSessionManager/constants.js.map +1 -0
  343. package/dist/managers/MXLUserSessionManager/index.cjs +6 -0
  344. package/dist/managers/MXLUserSessionManager/index.d.cts +4 -0
  345. package/dist/managers/MXLUserSessionManager/index.d.ts +4 -0
  346. package/dist/managers/MXLUserSessionManager/index.js +3 -0
  347. package/dist/managers/MXLUserSessionManager/types.d.cts +84 -0
  348. package/dist/managers/MXLUserSessionManager/types.d.cts.map +1 -0
  349. package/dist/managers/MXLUserSessionManager/types.d.ts +84 -0
  350. package/dist/managers/MXLUserSessionManager/types.d.ts.map +1 -0
  351. package/dist/managers/MXLUserSessionManager/utils/activity.cjs +25 -0
  352. package/dist/managers/MXLUserSessionManager/utils/activity.cjs.map +1 -0
  353. package/dist/managers/MXLUserSessionManager/utils/activity.d.cts +40 -0
  354. package/dist/managers/MXLUserSessionManager/utils/activity.d.cts.map +1 -0
  355. package/dist/managers/MXLUserSessionManager/utils/activity.d.ts +40 -0
  356. package/dist/managers/MXLUserSessionManager/utils/activity.d.ts.map +1 -0
  357. package/dist/managers/MXLUserSessionManager/utils/activity.js +22 -0
  358. package/dist/managers/MXLUserSessionManager/utils/activity.js.map +1 -0
  359. package/dist/managers/MXLUserSessionManager/utils/index.cjs +11 -0
  360. package/dist/managers/MXLUserSessionManager/utils/index.d.cts +3 -0
  361. package/dist/managers/MXLUserSessionManager/utils/index.d.ts +3 -0
  362. package/dist/managers/MXLUserSessionManager/utils/index.js +3 -0
  363. package/dist/managers/MXLUserSessionManager/utils/state.cjs +78 -0
  364. package/dist/managers/MXLUserSessionManager/utils/state.cjs.map +1 -0
  365. package/dist/managers/MXLUserSessionManager/utils/state.d.cts +39 -0
  366. package/dist/managers/MXLUserSessionManager/utils/state.d.cts.map +1 -0
  367. package/dist/managers/MXLUserSessionManager/utils/state.d.ts +39 -0
  368. package/dist/managers/MXLUserSessionManager/utils/state.d.ts.map +1 -0
  369. package/dist/managers/MXLUserSessionManager/utils/state.js +73 -0
  370. package/dist/managers/MXLUserSessionManager/utils/state.js.map +1 -0
  371. package/dist/managers/MXLUserSessionManager/utils/tabTracking.cjs +132 -0
  372. package/dist/managers/MXLUserSessionManager/utils/tabTracking.cjs.map +1 -0
  373. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.cts +33 -0
  374. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.cts.map +1 -0
  375. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.ts +33 -0
  376. package/dist/managers/MXLUserSessionManager/utils/tabTracking.d.ts.map +1 -0
  377. package/dist/managers/MXLUserSessionManager/utils/tabTracking.js +127 -0
  378. package/dist/managers/MXLUserSessionManager/utils/tabTracking.js.map +1 -0
  379. package/dist/managers/index.cjs +5 -2
  380. package/dist/managers/index.d.cts +4 -3
  381. package/dist/managers/index.d.ts +4 -3
  382. package/dist/managers/index.js +3 -2
  383. package/dist/mxl-web-sdk.js +1 -23
  384. package/dist/mxl-web-sdk.js.map +1 -1
  385. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.cjs.map +1 -1
  386. package/dist/processors/BrowserLogRecordProcessor/BrowserLogRecordProcessor.js.map +1 -1
  387. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.cjs.map +1 -1
  388. package/dist/processors/BrowserSpanProcessor/BrowserSpanProcessor.js.map +1 -1
  389. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.cjs.map +1 -1
  390. package/dist/processors/LogRecordScrubProcessor/LogRecordScrubProcessor.js.map +1 -1
  391. package/dist/processors/LogRecordScrubProcessor/types.d.cts +2 -2
  392. package/dist/processors/LogRecordScrubProcessor/types.d.cts.map +1 -1
  393. package/dist/processors/LogRecordScrubProcessor/types.d.ts +2 -2
  394. package/dist/processors/LogRecordScrubProcessor/types.d.ts.map +1 -1
  395. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.cjs.map +1 -1
  396. package/dist/processors/MXLLogRecordProcessor/MXLLogRecordProcessor.js.map +1 -1
  397. package/dist/processors/MXLLogRecordProcessor/types.d.cts +2 -2
  398. package/dist/processors/MXLLogRecordProcessor/types.d.cts.map +1 -1
  399. package/dist/processors/MXLLogRecordProcessor/types.d.ts +2 -2
  400. package/dist/processors/MXLLogRecordProcessor/types.d.ts.map +1 -1
  401. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
  402. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
  403. package/dist/processors/MXLNetworkSpanProcessor/types.cjs.map +1 -1
  404. package/dist/processors/MXLNetworkSpanProcessor/types.js.map +1 -1
  405. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs +74 -0
  406. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.cjs.map +1 -0
  407. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts +28 -0
  408. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.cts.map +1 -0
  409. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts +28 -0
  410. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.d.ts.map +1 -0
  411. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js +72 -0
  412. package/dist/processors/MXLSessionPartBatchedSpanProcessor/MXLSessionPartBatchedSpanProcessor.js.map +1 -0
  413. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.cjs +3 -0
  414. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.d.cts +3 -0
  415. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.d.ts +3 -0
  416. package/dist/processors/MXLSessionPartBatchedSpanProcessor/index.js +2 -0
  417. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.cts +15 -0
  418. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.cts.map +1 -0
  419. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.ts +15 -0
  420. package/dist/processors/MXLSessionPartBatchedSpanProcessor/types.d.ts.map +1 -0
  421. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
  422. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
  423. package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
  424. package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
  425. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.cjs.map +1 -1
  426. package/dist/processors/SpanScrubProcessor/SpanScrubProcessor.js.map +1 -1
  427. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.cjs.map +1 -1
  428. package/dist/processors/UserLogRecordProcessor/UserLogRecordProcessor.js.map +1 -1
  429. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs +34 -0
  430. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs.map +1 -0
  431. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts +16 -0
  432. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts.map +1 -0
  433. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts +16 -0
  434. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts.map +1 -0
  435. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js +32 -0
  436. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js.map +1 -0
  437. package/dist/processors/UserSessionLogRecordProcessor/index.cjs +3 -0
  438. package/dist/processors/UserSessionLogRecordProcessor/index.d.cts +3 -0
  439. package/dist/processors/UserSessionLogRecordProcessor/index.d.ts +3 -0
  440. package/dist/processors/UserSessionLogRecordProcessor/index.js +2 -0
  441. package/dist/processors/UserSessionLogRecordProcessor/types.d.cts +8 -0
  442. package/dist/processors/UserSessionLogRecordProcessor/types.d.cts.map +1 -0
  443. package/dist/processors/UserSessionLogRecordProcessor/types.d.ts +8 -0
  444. package/dist/processors/UserSessionLogRecordProcessor/types.d.ts.map +1 -0
  445. package/dist/processors/UserSpanProcessor/UserSpanProcessor.cjs.map +1 -1
  446. package/dist/processors/UserSpanProcessor/UserSpanProcessor.js.map +1 -1
  447. package/dist/processors/index.cjs +4 -4
  448. package/dist/processors/index.d.cts +3 -3
  449. package/dist/processors/index.d.ts +3 -3
  450. package/dist/processors/index.js +3 -3
  451. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.cjs.map +1 -1
  452. package/dist/propagators/MXLW3CTraceContextPropagator/MXLW3CTraceContextPropagator.js.map +1 -1
  453. package/dist/resources/appInstanceId.cjs +4 -4
  454. package/dist/resources/appInstanceId.cjs.map +1 -1
  455. package/dist/resources/appInstanceId.js +4 -4
  456. package/dist/resources/appInstanceId.js.map +1 -1
  457. package/dist/resources/constants/index.cjs +1 -1
  458. package/dist/resources/constants/index.cjs.map +1 -1
  459. package/dist/resources/constants/index.d.cts +1 -1
  460. package/dist/resources/constants/index.d.ts +1 -1
  461. package/dist/resources/constants/index.js +1 -1
  462. package/dist/resources/constants/index.js.map +1 -1
  463. package/dist/resources/webSdkResource.cjs +15 -19
  464. package/dist/resources/webSdkResource.cjs.map +1 -1
  465. package/dist/resources/webSdkResource.d.cts.map +1 -1
  466. package/dist/resources/webSdkResource.d.ts.map +1 -1
  467. package/dist/resources/webSdkResource.js +15 -19
  468. package/dist/resources/webSdkResource.js.map +1 -1
  469. package/dist/sdk/defaultAttributeScrubbers.cjs +8 -8
  470. package/dist/sdk/defaultAttributeScrubbers.cjs.map +1 -1
  471. package/dist/sdk/defaultAttributeScrubbers.js +8 -8
  472. package/dist/sdk/defaultAttributeScrubbers.js.map +1 -1
  473. package/dist/sdk/index.d.cts +3 -2
  474. package/dist/sdk/index.d.ts +3 -2
  475. package/dist/sdk/initSDK.cjs +137 -98
  476. package/dist/sdk/initSDK.cjs.map +1 -1
  477. package/dist/sdk/initSDK.d.cts +4 -2
  478. package/dist/sdk/initSDK.d.cts.map +1 -1
  479. package/dist/sdk/initSDK.d.ts +4 -2
  480. package/dist/sdk/initSDK.d.ts.map +1 -1
  481. package/dist/sdk/initSDK.js +137 -98
  482. package/dist/sdk/initSDK.js.map +1 -1
  483. package/dist/sdk/registry.cjs +1 -3
  484. package/dist/sdk/registry.cjs.map +1 -1
  485. package/dist/sdk/registry.d.cts.map +1 -1
  486. package/dist/sdk/registry.d.ts.map +1 -1
  487. package/dist/sdk/registry.js +1 -3
  488. package/dist/sdk/registry.js.map +1 -1
  489. package/dist/sdk/setupDefaultInstrumentations.cjs +9 -5
  490. package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
  491. package/dist/sdk/setupDefaultInstrumentations.d.cts +5 -2
  492. package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
  493. package/dist/sdk/setupDefaultInstrumentations.d.ts +5 -2
  494. package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
  495. package/dist/sdk/setupDefaultInstrumentations.js +9 -5
  496. package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
  497. package/dist/sdk/types.d.cts +68 -56
  498. package/dist/sdk/types.d.cts.map +1 -1
  499. package/dist/sdk/types.d.ts +69 -57
  500. package/dist/sdk/types.d.ts.map +1 -1
  501. package/dist/sdk/utils.cjs +1 -1
  502. package/dist/sdk/utils.cjs.map +1 -1
  503. package/dist/sdk/utils.d.cts.map +1 -1
  504. package/dist/sdk/utils.d.ts.map +1 -1
  505. package/dist/sdk/utils.js +1 -1
  506. package/dist/sdk/utils.js.map +1 -1
  507. package/dist/transport/FetchTransport/FetchTransport.cjs +13 -13
  508. package/dist/transport/FetchTransport/FetchTransport.cjs.map +1 -1
  509. package/dist/transport/FetchTransport/FetchTransport.js +13 -13
  510. package/dist/transport/FetchTransport/FetchTransport.js.map +1 -1
  511. package/dist/transport/RetryingTransport/RetryingTransport.cjs +1 -1
  512. package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
  513. package/dist/transport/RetryingTransport/RetryingTransport.js +1 -1
  514. package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
  515. package/dist/utils/NamespacedStorage/NamespacedStorage.cjs +69 -24
  516. package/dist/utils/NamespacedStorage/NamespacedStorage.cjs.map +1 -1
  517. package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts +27 -13
  518. package/dist/utils/NamespacedStorage/NamespacedStorage.d.cts.map +1 -1
  519. package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts +27 -13
  520. package/dist/utils/NamespacedStorage/NamespacedStorage.d.ts.map +1 -1
  521. package/dist/utils/NamespacedStorage/NamespacedStorage.js +68 -24
  522. package/dist/utils/NamespacedStorage/NamespacedStorage.js.map +1 -1
  523. package/dist/utils/PerformanceManager/OTelPerformanceManager.cjs.map +1 -1
  524. package/dist/utils/PerformanceManager/OTelPerformanceManager.js.map +1 -1
  525. package/dist/utils/clampNumber.cjs +23 -0
  526. package/dist/utils/clampNumber.cjs.map +1 -0
  527. package/dist/utils/clampNumber.d.cts +24 -0
  528. package/dist/utils/clampNumber.d.cts.map +1 -0
  529. package/dist/utils/clampNumber.d.ts +24 -0
  530. package/dist/utils/clampNumber.d.ts.map +1 -0
  531. package/dist/utils/clampNumber.js +22 -0
  532. package/dist/utils/clampNumber.js.map +1 -0
  533. package/dist/utils/createSafeProxy/createSafeProxy.cjs +2 -2
  534. package/dist/utils/createSafeProxy/createSafeProxy.cjs.map +1 -1
  535. package/dist/utils/createSafeProxy/createSafeProxy.d.cts.map +1 -1
  536. package/dist/utils/createSafeProxy/createSafeProxy.d.ts.map +1 -1
  537. package/dist/utils/createSafeProxy/createSafeProxy.js +2 -2
  538. package/dist/utils/createSafeProxy/createSafeProxy.js.map +1 -1
  539. package/dist/utils/generateWebVitalID.cjs +1 -3
  540. package/dist/utils/generateWebVitalID.cjs.map +1 -1
  541. package/dist/utils/generateWebVitalID.js +1 -3
  542. package/dist/utils/generateWebVitalID.js.map +1 -1
  543. package/dist/utils/getIncrementedCount.cjs +2 -2
  544. package/dist/utils/getIncrementedCount.cjs.map +1 -1
  545. package/dist/utils/getIncrementedCount.js +2 -2
  546. package/dist/utils/getIncrementedCount.js.map +1 -1
  547. package/dist/utils/globalConfig.cjs.map +1 -1
  548. package/dist/utils/globalConfig.d.cts +2 -2
  549. package/dist/utils/globalConfig.d.cts.map +1 -1
  550. package/dist/utils/globalConfig.d.ts +2 -2
  551. package/dist/utils/globalConfig.d.ts.map +1 -1
  552. package/dist/utils/globalConfig.js.map +1 -1
  553. package/dist/utils/index.cjs +2 -2
  554. package/dist/utils/index.d.cts +3 -3
  555. package/dist/utils/index.d.ts +3 -3
  556. package/dist/utils/index.js +2 -2
  557. package/dist/utils/isDeviceIdEnabled.cjs.map +1 -1
  558. package/dist/utils/isDeviceIdEnabled.js.map +1 -1
  559. package/dist/utils/performanceObserver/performanceObserver.cjs +3 -3
  560. package/dist/utils/performanceObserver/performanceObserver.cjs.map +1 -1
  561. package/dist/utils/performanceObserver/performanceObserver.js +3 -3
  562. package/dist/utils/performanceObserver/performanceObserver.js.map +1 -1
  563. package/dist/utils/throttle.cjs +13 -9
  564. package/dist/utils/throttle.cjs.map +1 -1
  565. package/dist/utils/throttle.d.cts +6 -3
  566. package/dist/utils/throttle.d.cts.map +1 -1
  567. package/dist/utils/throttle.d.ts +6 -3
  568. package/dist/utils/throttle.d.ts.map +1 -1
  569. package/dist/utils/throttle.js +13 -9
  570. package/dist/utils/throttle.js.map +1 -1
  571. package/package.json +56 -56
  572. package/dist/api-sessions/api/SessionAPI/types.d.cts +0 -8
  573. package/dist/api-sessions/api/SessionAPI/types.d.cts.map +0 -1
  574. package/dist/api-sessions/api/SessionAPI/types.d.ts +0 -8
  575. package/dist/api-sessions/api/SessionAPI/types.d.ts.map +0 -1
  576. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs +0 -31
  577. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.cjs.map +0 -1
  578. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.cts +0 -24
  579. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.cts.map +0 -1
  580. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts +0 -24
  581. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.d.ts.map +0 -1
  582. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js +0 -30
  583. package/dist/api-sessions/manager/NoOpSpanSessionManager/NoOpSpanSessionManager.js.map +0 -1
  584. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.cjs +0 -3
  585. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.d.cts +0 -2
  586. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.d.ts +0 -2
  587. package/dist/api-sessions/manager/NoOpSpanSessionManager/index.js +0 -2
  588. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs +0 -55
  589. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.cjs.map +0 -1
  590. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.cts +0 -27
  591. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.cts.map +0 -1
  592. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts +0 -27
  593. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.d.ts.map +0 -1
  594. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js +0 -55
  595. package/dist/api-sessions/manager/ProxySpanSessionManager/ProxySpanSessionManager.js.map +0 -1
  596. package/dist/api-sessions/manager/ProxySpanSessionManager/index.cjs +0 -3
  597. package/dist/api-sessions/manager/ProxySpanSessionManager/index.d.cts +0 -2
  598. package/dist/api-sessions/manager/ProxySpanSessionManager/index.d.ts +0 -2
  599. package/dist/api-sessions/manager/ProxySpanSessionManager/index.js +0 -2
  600. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs +0 -27
  601. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.cjs.map +0 -1
  602. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.cts +0 -15
  603. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.cts.map +0 -1
  604. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.ts +0 -15
  605. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.d.ts.map +0 -1
  606. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js +0 -25
  607. package/dist/instrumentations/fetch/MXLFetchInstrumentation/MXLFetchInstrumentation.js.map +0 -1
  608. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.cjs +0 -3
  609. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.d.cts +0 -2
  610. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.d.ts +0 -2
  611. package/dist/instrumentations/fetch/MXLFetchInstrumentation/index.js +0 -2
  612. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.cts +0 -9
  613. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.cts.map +0 -1
  614. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.ts +0 -9
  615. package/dist/instrumentations/fetch/MXLFetchInstrumentation/types.d.ts.map +0 -1
  616. package/dist/instrumentations/fetch/index.cjs +0 -3
  617. package/dist/instrumentations/fetch/index.d.cts +0 -3
  618. package/dist/instrumentations/fetch/index.d.ts +0 -3
  619. package/dist/instrumentations/fetch/index.js +0 -2
  620. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs +0 -60
  621. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.cjs.map +0 -1
  622. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts +0 -24
  623. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.cts.map +0 -1
  624. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts +0 -24
  625. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.d.ts.map +0 -1
  626. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js +0 -59
  627. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/SpanSessionBrowserActivityInstrumentation.js.map +0 -1
  628. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs +0 -19
  629. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.cjs.map +0 -1
  630. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.cts +0 -10
  631. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.cts.map +0 -1
  632. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.ts +0 -10
  633. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.d.ts.map +0 -1
  634. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js +0 -16
  635. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/constants.js.map +0 -1
  636. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.cjs +0 -3
  637. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.d.cts +0 -3
  638. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.d.ts +0 -3
  639. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/index.js +0 -2
  640. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts +0 -6
  641. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.cts.map +0 -1
  642. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts +0 -6
  643. package/dist/instrumentations/session/SpanSessionBrowserActivityInstrumentation/types.d.ts.map +0 -1
  644. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs +0 -24
  645. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.cjs.map +0 -1
  646. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.cts +0 -14
  647. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.cts.map +0 -1
  648. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts +0 -14
  649. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.d.ts.map +0 -1
  650. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js +0 -23
  651. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/SpanSessionOnLoadInstrumentation.js.map +0 -1
  652. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.cjs +0 -3
  653. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.d.cts +0 -3
  654. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.d.ts +0 -3
  655. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/index.js +0 -2
  656. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts +0 -6
  657. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.cts.map +0 -1
  658. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts +0 -6
  659. package/dist/instrumentations/session/SpanSessionOnLoadInstrumentation/types.d.ts.map +0 -1
  660. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs +0 -55
  661. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.cjs.map +0 -1
  662. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts +0 -22
  663. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.cts.map +0 -1
  664. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts +0 -22
  665. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.d.ts.map +0 -1
  666. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js +0 -54
  667. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/SpanSessionTimeoutInstrumentation.js.map +0 -1
  668. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs +0 -7
  669. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.cjs.map +0 -1
  670. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.cts +0 -5
  671. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.cts.map +0 -1
  672. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.ts +0 -5
  673. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.d.ts.map +0 -1
  674. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js +0 -6
  675. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/constants.js.map +0 -1
  676. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.cjs +0 -3
  677. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.d.cts +0 -3
  678. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.d.ts +0 -3
  679. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/index.js +0 -2
  680. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.cjs +0 -0
  681. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts +0 -6
  682. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.cts.map +0 -1
  683. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts +0 -6
  684. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.d.ts.map +0 -1
  685. package/dist/instrumentations/session/SpanSessionTimeoutInstrumentation/types.js +0 -0
  686. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs +0 -38
  687. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.cjs.map +0 -1
  688. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts +0 -17
  689. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.cts.map +0 -1
  690. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts +0 -17
  691. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.d.ts.map +0 -1
  692. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js +0 -37
  693. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/SpanSessionVisibilityInstrumentation.js.map +0 -1
  694. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.cjs +0 -3
  695. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.d.cts +0 -3
  696. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.d.ts +0 -3
  697. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/index.js +0 -2
  698. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.cjs +0 -0
  699. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts +0 -10
  700. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.cts.map +0 -1
  701. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts +0 -10
  702. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.d.ts.map +0 -1
  703. package/dist/instrumentations/session/SpanSessionVisibilityInstrumentation/types.js +0 -0
  704. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs +0 -27
  705. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.cjs.map +0 -1
  706. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.cts +0 -15
  707. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.cts.map +0 -1
  708. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.ts +0 -15
  709. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.d.ts.map +0 -1
  710. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js +0 -25
  711. package/dist/instrumentations/xhr/MXLXHRInstrumentation/MXLXHRInstrumentation.js.map +0 -1
  712. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.cjs +0 -3
  713. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.d.cts +0 -2
  714. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.d.ts +0 -2
  715. package/dist/instrumentations/xhr/MXLXHRInstrumentation/index.js +0 -2
  716. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.cjs +0 -0
  717. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.cts +0 -9
  718. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.cts.map +0 -1
  719. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.ts +0 -9
  720. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.d.ts.map +0 -1
  721. package/dist/instrumentations/xhr/MXLXHRInstrumentation/types.js +0 -0
  722. package/dist/instrumentations/xhr/index.cjs +0 -3
  723. package/dist/instrumentations/xhr/index.d.cts +0 -3
  724. package/dist/instrumentations/xhr/index.d.ts +0 -3
  725. package/dist/instrumentations/xhr/index.js +0 -2
  726. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs +0 -350
  727. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.cjs.map +0 -1
  728. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts +0 -72
  729. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.cts.map +0 -1
  730. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts +0 -72
  731. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.d.ts.map +0 -1
  732. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js +0 -348
  733. package/dist/managers/MXLSpanSessionManager/MXLSpanSessionManager.js.map +0 -1
  734. package/dist/managers/MXLSpanSessionManager/constants.cjs +0 -11
  735. package/dist/managers/MXLSpanSessionManager/constants.cjs.map +0 -1
  736. package/dist/managers/MXLSpanSessionManager/constants.d.cts +0 -7
  737. package/dist/managers/MXLSpanSessionManager/constants.d.cts.map +0 -1
  738. package/dist/managers/MXLSpanSessionManager/constants.d.ts +0 -7
  739. package/dist/managers/MXLSpanSessionManager/constants.d.ts.map +0 -1
  740. package/dist/managers/MXLSpanSessionManager/constants.js +0 -8
  741. package/dist/managers/MXLSpanSessionManager/constants.js.map +0 -1
  742. package/dist/managers/MXLSpanSessionManager/index.cjs +0 -3
  743. package/dist/managers/MXLSpanSessionManager/index.d.cts +0 -3
  744. package/dist/managers/MXLSpanSessionManager/index.d.ts +0 -3
  745. package/dist/managers/MXLSpanSessionManager/index.js +0 -2
  746. package/dist/managers/MXLSpanSessionManager/types.cjs +0 -0
  747. package/dist/managers/MXLSpanSessionManager/types.d.cts +0 -41
  748. package/dist/managers/MXLSpanSessionManager/types.d.cts.map +0 -1
  749. package/dist/managers/MXLSpanSessionManager/types.d.ts +0 -41
  750. package/dist/managers/MXLSpanSessionManager/types.d.ts.map +0 -1
  751. package/dist/managers/MXLSpanSessionManager/types.js +0 -0
  752. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs +0 -28
  753. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.cjs.map +0 -1
  754. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.cts +0 -16
  755. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.cts.map +0 -1
  756. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.ts +0 -16
  757. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.d.ts.map +0 -1
  758. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js +0 -26
  759. package/dist/processors/IdentifiableSessionLogRecordProcessor/IdentifiableSessionLogRecordProcessor.js.map +0 -1
  760. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.cjs +0 -3
  761. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.d.cts +0 -2
  762. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.d.ts +0 -2
  763. package/dist/processors/IdentifiableSessionLogRecordProcessor/index.js +0 -2
  764. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.cjs +0 -0
  765. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.cts +0 -9
  766. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.cts.map +0 -1
  767. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts +0 -9
  768. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.d.ts.map +0 -1
  769. package/dist/processors/IdentifiableSessionLogRecordProcessor/types.js +0 -0
  770. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs +0 -95
  771. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.cjs.map +0 -1
  772. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.cts +0 -34
  773. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.cts.map +0 -1
  774. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.ts +0 -34
  775. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.d.ts.map +0 -1
  776. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js +0 -93
  777. package/dist/processors/MXLSessionBatchedSpanProcessor/MXLSessionBatchedSpanProcessor.js.map +0 -1
  778. package/dist/processors/MXLSessionBatchedSpanProcessor/index.cjs +0 -3
  779. package/dist/processors/MXLSessionBatchedSpanProcessor/index.d.cts +0 -2
  780. package/dist/processors/MXLSessionBatchedSpanProcessor/index.d.ts +0 -2
  781. package/dist/processors/MXLSessionBatchedSpanProcessor/index.js +0 -2
  782. package/dist/processors/MXLSessionBatchedSpanProcessor/types.cjs +0 -0
  783. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.cts +0 -19
  784. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.cts.map +0 -1
  785. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts +0 -19
  786. package/dist/processors/MXLSessionBatchedSpanProcessor/types.d.ts.map +0 -1
  787. package/dist/processors/MXLSessionBatchedSpanProcessor/types.js +0 -0
  788. package/dist/sdk/setupSessionRecorder.cjs +0 -87
  789. package/dist/sdk/setupSessionRecorder.cjs.map +0 -1
  790. package/dist/sdk/setupSessionRecorder.d.cts +0 -30
  791. package/dist/sdk/setupSessionRecorder.d.cts.map +0 -1
  792. package/dist/sdk/setupSessionRecorder.d.ts +0 -30
  793. package/dist/sdk/setupSessionRecorder.d.ts.map +0 -1
  794. package/dist/sdk/setupSessionRecorder.js +0 -83
  795. package/dist/sdk/setupSessionRecorder.js.map +0 -1
  796. package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs +0 -116
  797. package/dist/utils/MXLSpanStorage/MXLSpanStorage.cjs.map +0 -1
  798. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.cts +0 -42
  799. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.cts.map +0 -1
  800. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts +0 -42
  801. package/dist/utils/MXLSpanStorage/MXLSpanStorage.d.ts.map +0 -1
  802. package/dist/utils/MXLSpanStorage/MXLSpanStorage.js +0 -114
  803. package/dist/utils/MXLSpanStorage/MXLSpanStorage.js.map +0 -1
  804. package/dist/utils/MXLSpanStorage/index.cjs +0 -3
  805. package/dist/utils/MXLSpanStorage/index.d.cts +0 -2
  806. package/dist/utils/MXLSpanStorage/index.d.ts +0 -2
  807. package/dist/utils/MXLSpanStorage/index.js +0 -2
  808. package/dist/utils/MXLSpanStorage/types.cjs +0 -0
  809. package/dist/utils/MXLSpanStorage/types.d.cts +0 -2
  810. package/dist/utils/MXLSpanStorage/types.d.ts +0 -2
  811. package/dist/utils/MXLSpanStorage/types.js +0 -0
  812. /package/dist/{api-sessions/api/SessionAPI → instrumentations/replay/ReplayInstrumentation}/types.cjs +0 -0
  813. /package/dist/{api-sessions/api/SessionAPI → instrumentations/replay/ReplayInstrumentation}/types.js +0 -0
  814. /package/dist/{instrumentations/fetch/MXLFetchInstrumentation → managers/MXLUserSessionManager}/types.cjs +0 -0
  815. /package/dist/{instrumentations/fetch/MXLFetchInstrumentation → managers/MXLUserSessionManager}/types.js +0 -0
  816. /package/dist/{instrumentations/session/SpanSessionBrowserActivityInstrumentation → processors/MXLSessionPartBatchedSpanProcessor}/types.cjs +0 -0
  817. /package/dist/{instrumentations/session/SpanSessionBrowserActivityInstrumentation → processors/MXLSessionPartBatchedSpanProcessor}/types.js +0 -0
  818. /package/dist/{instrumentations/session/SpanSessionOnLoadInstrumentation → processors/UserSessionLogRecordProcessor}/types.cjs +0 -0
  819. /package/dist/{instrumentations/session/SpanSessionOnLoadInstrumentation → processors/UserSessionLogRecordProcessor}/types.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"withMXLRoutingLegacy.cjs","names":["getNavigationInstrumentation","React"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport * as React from 'react';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport { getNavigationInstrumentation } from '../..';\nimport type { RouteComponentProps, SwitchedRouteComponentProps } from './types';\n\nexport const withMXLRoutingLegacy = <P extends RouteComponentProps>(\n WrappedComponent: React.ComponentType<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.DeclarativeLegacy,\n );\n\n const RouteWithMXLRoutingLegacy: React.FC<P> = (props: P) => {\n // Make sure this is Route component\n if (props.path) {\n // Routes get injected with computedMatch when they are children of a <Switch> but the types do not reflect that\n // Manually setting the type here.\n const routeProps = props as SwitchedRouteComponentProps;\n\n // Depends on this internal behaviour\n // https://github.com/remix-run/react-router/blob/v5.3.4/packages/react-router/modules/Switch.js#L40\n // It shouldn't change as this version is legacy, and it's not being actively worked on\n if (routeProps.computedMatch) {\n navigationInstrumentation.setCurrentRoute({\n path: routeProps.computedMatch.path,\n url: routeProps.computedMatch.url,\n });\n }\n }\n\n return React.createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RouteWithMXLRoutingLegacy.displayName = `withMXLRoutingLegacy(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RouteWithMXLRoutingLegacy, WrappedComponent);\n\n return RouteWithMXLRoutingLegacy;\n};\n"],"mappings":";;;;;;;;;AAMA,MAAa,wBACX,qBACG;CACH,MAAM,4BAA4BA,uEAAAA,8BAA8B;AAChE,2BAA0B,uBAAA,kCAEzB;CAED,MAAM,6BAA0C,UAAa;AAE3D,MAAI,MAAM,MAAM;GAGd,MAAM,aAAa;AAKnB,OAAI,WAAW,cACb,2BAA0B,gBAAgB;IACxC,MAAM,WAAW,cAAc;IAC/B,KAAK,WAAW,cAAc;IAC/B,CAAC;;AAIN,SAAOC,MAAM,cAAiB,kBAAkB,MAAM;;AAIxD,2BAA0B,cAAc,wBAAwB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AACrI,EAAA,GAAA,wBAAA,SAAqB,2BAA2B,iBAAiB;AAEjE,QAAO"}
1
+ {"version":3,"file":"withMXLRoutingLegacy.cjs","names":["getNavigationInstrumentation","React"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport * as React from 'react';\nimport { getNavigationInstrumentation } from '../..';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport type { RouteComponentProps, SwitchedRouteComponentProps } from './types';\n\nexport const withMXLRoutingLegacy = <P extends RouteComponentProps>(\n WrappedComponent: React.ComponentType<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.DeclarativeLegacy,\n );\n\n const RouteWithMXLRoutingLegacy: React.FC<P> = (props: P) => {\n // Make sure this is Route component\n if (props.path) {\n // Routes get injected with computedMatch when they are children of a <Switch> but the types do not reflect that\n // Manually setting the type here.\n const routeProps = props as SwitchedRouteComponentProps;\n\n // Depends on this internal behaviour\n // https://github.com/remix-run/react-router/blob/v5.3.4/packages/react-router/modules/Switch.js#L40\n // It shouldn't change as this version is legacy, and it's not being actively worked on\n if (routeProps.computedMatch) {\n navigationInstrumentation.setCurrentRoute({\n path: routeProps.computedMatch.path,\n url: routeProps.computedMatch.url,\n });\n }\n }\n\n return React.createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RouteWithMXLRoutingLegacy.displayName = `withMXLRoutingLegacy(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RouteWithMXLRoutingLegacy, WrappedComponent);\n\n return RouteWithMXLRoutingLegacy;\n};\n"],"mappings":";;;;;;;;;AAMA,MAAa,wBACX,qBACG;CACH,MAAM,4BAA4BA,uEAAAA,8BAA8B;AAChE,2BAA0B,uBAAA,kCAEzB;CAED,MAAM,6BAA0C,UAAa;AAE3D,MAAI,MAAM,MAAM;GAGd,MAAM,aAAa;AAKnB,OAAI,WAAW,cACb,2BAA0B,gBAAgB;IACxC,MAAM,WAAW,cAAc;IAC/B,KAAK,WAAW,cAAc;IAC/B,CAAC;;AAIN,SAAOC,MAAM,cAAiB,kBAAkB,MAAM;;AAIxD,2BAA0B,cAAc,wBAAwB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AACrI,EAAA,GAAA,wBAAA,SAAqB,2BAA2B,iBAAiB;AAEjE,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"withMXLRoutingLegacy.js","names":["React"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport * as React from 'react';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport { getNavigationInstrumentation } from '../..';\nimport type { RouteComponentProps, SwitchedRouteComponentProps } from './types';\n\nexport const withMXLRoutingLegacy = <P extends RouteComponentProps>(\n WrappedComponent: React.ComponentType<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.DeclarativeLegacy,\n );\n\n const RouteWithMXLRoutingLegacy: React.FC<P> = (props: P) => {\n // Make sure this is Route component\n if (props.path) {\n // Routes get injected with computedMatch when they are children of a <Switch> but the types do not reflect that\n // Manually setting the type here.\n const routeProps = props as SwitchedRouteComponentProps;\n\n // Depends on this internal behaviour\n // https://github.com/remix-run/react-router/blob/v5.3.4/packages/react-router/modules/Switch.js#L40\n // It shouldn't change as this version is legacy, and it's not being actively worked on\n if (routeProps.computedMatch) {\n navigationInstrumentation.setCurrentRoute({\n path: routeProps.computedMatch.path,\n url: routeProps.computedMatch.url,\n });\n }\n }\n\n return React.createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RouteWithMXLRoutingLegacy.displayName = `withMXLRoutingLegacy(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RouteWithMXLRoutingLegacy, WrappedComponent);\n\n return RouteWithMXLRoutingLegacy;\n};\n"],"mappings":";;;;;AAMA,MAAa,wBACX,qBACG;CACH,MAAM,4BAA4B,8BAA8B;AAChE,2BAA0B,uBAAA,kCAEzB;CAED,MAAM,6BAA0C,UAAa;AAE3D,MAAI,MAAM,MAAM;GAGd,MAAM,aAAa;AAKnB,OAAI,WAAW,cACb,2BAA0B,gBAAgB;IACxC,MAAM,WAAW,cAAc;IAC/B,KAAK,WAAW,cAAc;IAC/B,CAAC;;AAIN,SAAOA,QAAM,cAAiB,kBAAkB,MAAM;;AAIxD,2BAA0B,cAAc,wBAAwB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AACrI,sBAAqB,2BAA2B,iBAAiB;AAEjE,QAAO"}
1
+ {"version":3,"file":"withMXLRoutingLegacy.js","names":["React"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport * as React from 'react';\nimport { getNavigationInstrumentation } from '../..';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport type { RouteComponentProps, SwitchedRouteComponentProps } from './types';\n\nexport const withMXLRoutingLegacy = <P extends RouteComponentProps>(\n WrappedComponent: React.ComponentType<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.DeclarativeLegacy,\n );\n\n const RouteWithMXLRoutingLegacy: React.FC<P> = (props: P) => {\n // Make sure this is Route component\n if (props.path) {\n // Routes get injected with computedMatch when they are children of a <Switch> but the types do not reflect that\n // Manually setting the type here.\n const routeProps = props as SwitchedRouteComponentProps;\n\n // Depends on this internal behaviour\n // https://github.com/remix-run/react-router/blob/v5.3.4/packages/react-router/modules/Switch.js#L40\n // It shouldn't change as this version is legacy, and it's not being actively worked on\n if (routeProps.computedMatch) {\n navigationInstrumentation.setCurrentRoute({\n path: routeProps.computedMatch.path,\n url: routeProps.computedMatch.url,\n });\n }\n }\n\n return React.createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RouteWithMXLRoutingLegacy.displayName = `withMXLRoutingLegacy(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RouteWithMXLRoutingLegacy, WrappedComponent);\n\n return RouteWithMXLRoutingLegacy;\n};\n"],"mappings":";;;;;AAMA,MAAa,wBACX,qBACG;CACH,MAAM,4BAA4B,8BAA8B;AAChE,2BAA0B,uBAAA,kCAEzB;CAED,MAAM,6BAA0C,UAAa;AAE3D,MAAI,MAAM,MAAM;GAGd,MAAM,aAAa;AAKnB,OAAI,WAAW,cACb,2BAA0B,gBAAgB;IACxC,MAAM,WAAW,cAAc;IAC/B,KAAK,WAAW,cAAc;IAC/B,CAAC;;AAIN,SAAOA,QAAM,cAAiB,kBAAkB,MAAM;;AAIxD,2BAA0B,cAAc,wBAAwB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AACrI,sBAAqB,2BAA2B,iBAAiB;AAEjE,QAAO"}
@@ -3,7 +3,7 @@ require("../../../../../constants/attributes.cjs");
3
3
  const require_instrumentations_navigation_NavigationInstrumentation_instance = require("../../instance.cjs");
4
4
  //#region src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.ts
5
5
  /**
6
- * getRouteFromMatches goes through all the matches routes to build the full path
6
+ * GetRouteFromMatches goes through all the matches routes to build the full path
7
7
  * nested routes contain only the partial match, so we need to go through all of them
8
8
  * in order to build the full path.
9
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"listenToRouterChanges.cjs","names":["getNavigationInstrumentation"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.ts"],"sourcesContent":["import type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport { getNavigationInstrumentation } from '../..';\nimport type { ListenToRouterChangesArgs, Match } from './types';\n\n/**\n * getRouteFromMatches goes through all the matches routes to build the full path\n * nested routes contain only the partial match, so we need to go through all of them\n * in order to build the full path.\n *\n * Filtering by currentPathname ensures that we only consider routes that are relevant to the current URL.\n */\nconst getRouteFromMatches = (\n matches: Match[],\n currentPathname: string,\n): Route | null => {\n const currentMatchIndex = matches.findIndex(\n (match) => match.pathname === currentPathname,\n );\n\n if (currentMatchIndex === -1 || !matches[currentMatchIndex].route.path) {\n return null;\n }\n\n // Build full absolute path by reducing all matches up to the current one.\n // Absolute child paths reset the accumulation; relative paths are appended.\n return matches\n .slice(0, currentMatchIndex + 1)\n .reduce<Route | null>((acc, match) => {\n const routePath = match.route.path;\n\n if (!routePath) {\n return acc;\n }\n\n // If the route path starts with '/', it's an absolute path and should reset the accumulated path.\n // Otherwise, it's a relative path and should be appended to the accumulated path.\n const path = routePath.startsWith('/')\n ? routePath\n : `${acc?.path ?? ''}/${routePath}`;\n\n return { path, url: matches[currentMatchIndex].pathname };\n }, null);\n};\n\nexport const listenToRouterChanges = ({\n router,\n routesMatcher,\n config: { pathnameDocument = window.location } = {},\n}: ListenToRouterChangesArgs) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Data,\n );\n\n const initialMatches = routesMatcher(router.routes, {\n pathname: pathnameDocument.pathname,\n });\n\n const initialRoute = initialMatches\n ? getRouteFromMatches(initialMatches, pathnameDocument.pathname)\n : null;\n\n if (initialRoute) {\n navigationInstrumentation.setCurrentRoute(initialRoute);\n }\n\n return router.subscribe((state) => {\n // State has a list of already matched routes\n // https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/router/router.ts#L954\n const currentRoute = getRouteFromMatches(\n state.matches,\n state.location.pathname,\n );\n\n if (currentRoute) {\n navigationInstrumentation.setCurrentRoute(currentRoute);\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAYA,MAAM,uBACJ,SACA,oBACiB;CACjB,MAAM,oBAAoB,QAAQ,WAC/B,UAAU,MAAM,aAAa,gBAC/B;AAED,KAAI,sBAAsB,MAAM,CAAC,QAAQ,mBAAmB,MAAM,KAChE,QAAO;AAKT,QAAO,QACJ,MAAM,GAAG,oBAAoB,EAAE,CAC/B,QAAsB,KAAK,UAAU;EACpC,MAAM,YAAY,MAAM,MAAM;AAE9B,MAAI,CAAC,UACH,QAAO;AAST,SAAO;GAAE,MAJI,UAAU,WAAW,IAAI,GAClC,YACA,GAAG,KAAK,QAAQ,GAAG,GAAG;GAEX,KAAK,QAAQ,mBAAmB;GAAU;IACxD,KAAK;;AAGZ,MAAa,yBAAyB,EACpC,QACA,eACA,QAAQ,EAAE,mBAAmB,OAAO,aAAa,EAAE,OACpB;CAC/B,MAAM,4BAA4BA,uEAAAA,8BAA8B;AAChE,2BAA0B,uBAAA,oBAEzB;CAED,MAAM,iBAAiB,cAAc,OAAO,QAAQ,EAClD,UAAU,iBAAiB,UAC5B,CAAC;CAEF,MAAM,eAAe,iBACjB,oBAAoB,gBAAgB,iBAAiB,SAAS,GAC9D;AAEJ,KAAI,aACF,2BAA0B,gBAAgB,aAAa;AAGzD,QAAO,OAAO,WAAW,UAAU;EAGjC,MAAM,eAAe,oBACnB,MAAM,SACN,MAAM,SAAS,SAChB;AAED,MAAI,aACF,2BAA0B,gBAAgB,aAAa;GAEzD"}
1
+ {"version":3,"file":"listenToRouterChanges.cjs","names":["getNavigationInstrumentation"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.ts"],"sourcesContent":["import { getNavigationInstrumentation } from '../..';\nimport type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport type { ListenToRouterChangesArgs, Match } from './types';\n\n/**\n * GetRouteFromMatches goes through all the matches routes to build the full path\n * nested routes contain only the partial match, so we need to go through all of them\n * in order to build the full path.\n *\n * Filtering by currentPathname ensures that we only consider routes that are relevant to the current URL.\n */\nconst getRouteFromMatches = (\n matches: Match[],\n currentPathname: string,\n): Route | null => {\n const currentMatchIndex = matches.findIndex(\n (match) => match.pathname === currentPathname,\n );\n\n if (currentMatchIndex === -1 || !matches[currentMatchIndex].route.path) {\n return null;\n }\n\n // Build full absolute path by reducing all matches up to the current one.\n // Absolute child paths reset the accumulation; relative paths are appended.\n return matches\n .slice(0, currentMatchIndex + 1)\n .reduce<Route | null>((acc, match) => {\n const routePath = match.route.path;\n\n if (!routePath) {\n return acc;\n }\n\n // If the route path starts with '/', it's an absolute path and should reset the accumulated path.\n // Otherwise, it's a relative path and should be appended to the accumulated path.\n const path = routePath.startsWith('/')\n ? routePath\n : `${acc?.path ?? ''}/${routePath}`;\n\n return { path, url: matches[currentMatchIndex].pathname };\n }, null);\n};\n\nexport const listenToRouterChanges = ({\n router,\n routesMatcher,\n config: { pathnameDocument = window.location } = {},\n}: ListenToRouterChangesArgs) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Data,\n );\n\n const initialMatches = routesMatcher(router.routes, {\n pathname: pathnameDocument.pathname,\n });\n\n const initialRoute = initialMatches\n ? getRouteFromMatches(initialMatches, pathnameDocument.pathname)\n : null;\n\n if (initialRoute) {\n navigationInstrumentation.setCurrentRoute(initialRoute);\n }\n\n return router.subscribe((state) => {\n // State has a list of already matched routes\n // https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/router/router.ts#L954\n const currentRoute = getRouteFromMatches(\n state.matches,\n state.location.pathname,\n );\n\n if (currentRoute) {\n navigationInstrumentation.setCurrentRoute(currentRoute);\n }\n });\n};\n"],"mappings":";;;;;;;;;;;AAYA,MAAM,uBACJ,SACA,oBACiB;CACjB,MAAM,oBAAoB,QAAQ,WAC/B,UAAU,MAAM,aAAa,gBAC/B;AAED,KAAI,sBAAsB,MAAM,CAAC,QAAQ,mBAAmB,MAAM,KAChE,QAAO;AAKT,QAAO,QACJ,MAAM,GAAG,oBAAoB,EAAE,CAC/B,QAAsB,KAAK,UAAU;EACpC,MAAM,YAAY,MAAM,MAAM;AAE9B,MAAI,CAAC,UACH,QAAO;AAST,SAAO;GAAE,MAJI,UAAU,WAAW,IAAI,GAClC,YACA,GAAG,KAAK,QAAQ,GAAG,GAAG;GAEX,KAAK,QAAQ,mBAAmB;GAAU;IACxD,KAAK;;AAGZ,MAAa,yBAAyB,EACpC,QACA,eACA,QAAQ,EAAE,mBAAmB,OAAO,aAAa,EAAE,OACpB;CAC/B,MAAM,4BAA4BA,uEAAAA,8BAA8B;AAChE,2BAA0B,uBAAA,oBAEzB;CAED,MAAM,iBAAiB,cAAc,OAAO,QAAQ,EAClD,UAAU,iBAAiB,UAC5B,CAAC;CAEF,MAAM,eAAe,iBACjB,oBAAoB,gBAAgB,iBAAiB,SAAS,GAC9D;AAEJ,KAAI,aACF,2BAA0B,gBAAgB,aAAa;AAGzD,QAAO,OAAO,WAAW,UAAU;EAGjC,MAAM,eAAe,oBACnB,MAAM,SACN,MAAM,SAAS,SAChB;AAED,MAAI,aACF,2BAA0B,gBAAgB,aAAa;GAEzD"}
@@ -2,7 +2,7 @@ import "../../../../../constants/attributes.js";
2
2
  import { getNavigationInstrumentation } from "../../instance.js";
3
3
  //#region src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.ts
4
4
  /**
5
- * getRouteFromMatches goes through all the matches routes to build the full path
5
+ * GetRouteFromMatches goes through all the matches routes to build the full path
6
6
  * nested routes contain only the partial match, so we need to go through all of them
7
7
  * in order to build the full path.
8
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"listenToRouterChanges.js","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.ts"],"sourcesContent":["import type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport { getNavigationInstrumentation } from '../..';\nimport type { ListenToRouterChangesArgs, Match } from './types';\n\n/**\n * getRouteFromMatches goes through all the matches routes to build the full path\n * nested routes contain only the partial match, so we need to go through all of them\n * in order to build the full path.\n *\n * Filtering by currentPathname ensures that we only consider routes that are relevant to the current URL.\n */\nconst getRouteFromMatches = (\n matches: Match[],\n currentPathname: string,\n): Route | null => {\n const currentMatchIndex = matches.findIndex(\n (match) => match.pathname === currentPathname,\n );\n\n if (currentMatchIndex === -1 || !matches[currentMatchIndex].route.path) {\n return null;\n }\n\n // Build full absolute path by reducing all matches up to the current one.\n // Absolute child paths reset the accumulation; relative paths are appended.\n return matches\n .slice(0, currentMatchIndex + 1)\n .reduce<Route | null>((acc, match) => {\n const routePath = match.route.path;\n\n if (!routePath) {\n return acc;\n }\n\n // If the route path starts with '/', it's an absolute path and should reset the accumulated path.\n // Otherwise, it's a relative path and should be appended to the accumulated path.\n const path = routePath.startsWith('/')\n ? routePath\n : `${acc?.path ?? ''}/${routePath}`;\n\n return { path, url: matches[currentMatchIndex].pathname };\n }, null);\n};\n\nexport const listenToRouterChanges = ({\n router,\n routesMatcher,\n config: { pathnameDocument = window.location } = {},\n}: ListenToRouterChangesArgs) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Data,\n );\n\n const initialMatches = routesMatcher(router.routes, {\n pathname: pathnameDocument.pathname,\n });\n\n const initialRoute = initialMatches\n ? getRouteFromMatches(initialMatches, pathnameDocument.pathname)\n : null;\n\n if (initialRoute) {\n navigationInstrumentation.setCurrentRoute(initialRoute);\n }\n\n return router.subscribe((state) => {\n // State has a list of already matched routes\n // https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/router/router.ts#L954\n const currentRoute = getRouteFromMatches(\n state.matches,\n state.location.pathname,\n );\n\n if (currentRoute) {\n navigationInstrumentation.setCurrentRoute(currentRoute);\n }\n });\n};\n"],"mappings":";;;;;;;;;;AAYA,MAAM,uBACJ,SACA,oBACiB;CACjB,MAAM,oBAAoB,QAAQ,WAC/B,UAAU,MAAM,aAAa,gBAC/B;AAED,KAAI,sBAAsB,MAAM,CAAC,QAAQ,mBAAmB,MAAM,KAChE,QAAO;AAKT,QAAO,QACJ,MAAM,GAAG,oBAAoB,EAAE,CAC/B,QAAsB,KAAK,UAAU;EACpC,MAAM,YAAY,MAAM,MAAM;AAE9B,MAAI,CAAC,UACH,QAAO;AAST,SAAO;GAAE,MAJI,UAAU,WAAW,IAAI,GAClC,YACA,GAAG,KAAK,QAAQ,GAAG,GAAG;GAEX,KAAK,QAAQ,mBAAmB;GAAU;IACxD,KAAK;;AAGZ,MAAa,yBAAyB,EACpC,QACA,eACA,QAAQ,EAAE,mBAAmB,OAAO,aAAa,EAAE,OACpB;CAC/B,MAAM,4BAA4B,8BAA8B;AAChE,2BAA0B,uBAAA,oBAEzB;CAED,MAAM,iBAAiB,cAAc,OAAO,QAAQ,EAClD,UAAU,iBAAiB,UAC5B,CAAC;CAEF,MAAM,eAAe,iBACjB,oBAAoB,gBAAgB,iBAAiB,SAAS,GAC9D;AAEJ,KAAI,aACF,2BAA0B,gBAAgB,aAAa;AAGzD,QAAO,OAAO,WAAW,UAAU;EAGjC,MAAM,eAAe,oBACnB,MAAM,SACN,MAAM,SAAS,SAChB;AAED,MAAI,aACF,2BAA0B,gBAAgB,aAAa;GAEzD"}
1
+ {"version":3,"file":"listenToRouterChanges.js","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/listenToRouterChanges.ts"],"sourcesContent":["import { getNavigationInstrumentation } from '../..';\nimport type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport type { ListenToRouterChangesArgs, Match } from './types';\n\n/**\n * GetRouteFromMatches goes through all the matches routes to build the full path\n * nested routes contain only the partial match, so we need to go through all of them\n * in order to build the full path.\n *\n * Filtering by currentPathname ensures that we only consider routes that are relevant to the current URL.\n */\nconst getRouteFromMatches = (\n matches: Match[],\n currentPathname: string,\n): Route | null => {\n const currentMatchIndex = matches.findIndex(\n (match) => match.pathname === currentPathname,\n );\n\n if (currentMatchIndex === -1 || !matches[currentMatchIndex].route.path) {\n return null;\n }\n\n // Build full absolute path by reducing all matches up to the current one.\n // Absolute child paths reset the accumulation; relative paths are appended.\n return matches\n .slice(0, currentMatchIndex + 1)\n .reduce<Route | null>((acc, match) => {\n const routePath = match.route.path;\n\n if (!routePath) {\n return acc;\n }\n\n // If the route path starts with '/', it's an absolute path and should reset the accumulated path.\n // Otherwise, it's a relative path and should be appended to the accumulated path.\n const path = routePath.startsWith('/')\n ? routePath\n : `${acc?.path ?? ''}/${routePath}`;\n\n return { path, url: matches[currentMatchIndex].pathname };\n }, null);\n};\n\nexport const listenToRouterChanges = ({\n router,\n routesMatcher,\n config: { pathnameDocument = window.location } = {},\n}: ListenToRouterChangesArgs) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Data,\n );\n\n const initialMatches = routesMatcher(router.routes, {\n pathname: pathnameDocument.pathname,\n });\n\n const initialRoute = initialMatches\n ? getRouteFromMatches(initialMatches, pathnameDocument.pathname)\n : null;\n\n if (initialRoute) {\n navigationInstrumentation.setCurrentRoute(initialRoute);\n }\n\n return router.subscribe((state) => {\n // State has a list of already matched routes\n // https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/router/router.ts#L954\n const currentRoute = getRouteFromMatches(\n state.matches,\n state.location.pathname,\n );\n\n if (currentRoute) {\n navigationInstrumentation.setCurrentRoute(currentRoute);\n }\n });\n};\n"],"mappings":";;;;;;;;;;AAYA,MAAM,uBACJ,SACA,oBACiB;CACjB,MAAM,oBAAoB,QAAQ,WAC/B,UAAU,MAAM,aAAa,gBAC/B;AAED,KAAI,sBAAsB,MAAM,CAAC,QAAQ,mBAAmB,MAAM,KAChE,QAAO;AAKT,QAAO,QACJ,MAAM,GAAG,oBAAoB,EAAE,CAC/B,QAAsB,KAAK,UAAU;EACpC,MAAM,YAAY,MAAM,MAAM;AAE9B,MAAI,CAAC,UACH,QAAO;AAST,SAAO;GAAE,MAJI,UAAU,WAAW,IAAI,GAClC,YACA,GAAG,KAAK,QAAQ,GAAG,GAAG;GAEX,KAAK,QAAQ,mBAAmB;GAAU;IACxD,KAAK;;AAGZ,MAAa,yBAAyB,EACpC,QACA,eACA,QAAQ,EAAE,mBAAmB,OAAO,aAAa,EAAE,OACpB;CAC/B,MAAM,4BAA4B,8BAA8B;AAChE,2BAA0B,uBAAA,oBAEzB;CAED,MAAM,iBAAiB,cAAc,OAAO,QAAQ,EAClD,UAAU,iBAAiB,UAC5B,CAAC;CAEF,MAAM,eAAe,iBACjB,oBAAoB,gBAAgB,iBAAiB,SAAS,GAC9D;AAEJ,KAAI,aACF,2BAA0B,gBAAgB,aAAa;AAGzD,QAAO,OAAO,WAAW,UAAU;EAGjC,MAAM,eAAe,oBACnB,MAAM,SACN,MAAM,SAAS,SAChB;AAED,MAAI,aACF,2BAA0B,gBAAgB,aAAa;GAEzD"}
@@ -1,32 +1,32 @@
1
1
  import { PathnameDocument } from "../../../../../common/types.cjs";
2
2
 
3
3
  //#region src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts
4
- type Route = {
4
+ interface Route {
5
5
  path?: string;
6
- };
7
- type Match = {
6
+ }
7
+ interface Match {
8
8
  pathname: string;
9
9
  route: Route;
10
- };
11
- type Location = {
10
+ }
11
+ interface Location {
12
12
  pathname: string;
13
- };
14
- type RouterState = {
13
+ }
14
+ interface RouterState {
15
15
  location: Location;
16
16
  matches: Match[];
17
- };
17
+ }
18
18
  type MatchRoutesFunction = (routes: Route[], location: Location) => Match[] | null;
19
19
  interface Router {
20
20
  routes: Route[];
21
21
  subscribe: (listener: (state: RouterState) => void) => () => void;
22
22
  }
23
- type ListenToRouterChangesArgs = {
23
+ interface ListenToRouterChangesArgs {
24
24
  router: Router;
25
25
  routesMatcher: MatchRoutesFunction;
26
26
  config?: {
27
27
  pathnameDocument?: PathnameDocument;
28
28
  };
29
- };
29
+ }
30
30
  //#endregion
31
31
  export { ListenToRouterChangesArgs, Match, MatchRoutesFunction, Router, RouterState };
32
32
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.ts"],"mappings":";;;KAEK,KAAA;EACH,IAAA;AAAA;AAAA,KAGU,KAAA;EACV,QAAA;EACA,KAAA,EAAO,KAAA;AAAA;AAAA,KAGJ,QAAA;EACH,QAAA;AAAA;AAAA,KAGU,WAAA;EACV,QAAA,EAAU,QAAA;EACV,OAAA,EAAS,KAAA;AAAA;AAAA,KAGC,mBAAA,IACV,MAAA,EAAQ,KAAA,IACR,QAAA,EAAU,QAAA,KACP,KAAA;AAAA,UAEY,MAAA;EACf,MAAA,EAAQ,KAAA;EACR,SAAA,GAAY,QAAA,GAAW,KAAA,EAAO,WAAA;AAAA;AAAA,KAGpB,yBAAA;EACV,MAAA,EAAQ,MAAA;EACR,aAAA,EAAe,mBAAA;EACf,MAAA;IACE,gBAAA,GAAmB,gBAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"types.d.cts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.ts"],"mappings":";;;UAEU,KAAA;EACR,IAAA;AAAA;AAAA,UAGe,KAAA;EACf,QAAA;EACA,KAAA,EAAO,KAAA;AAAA;AAAA,UAGC,QAAA;EACR,QAAA;AAAA;AAAA,UAGe,WAAA;EACf,QAAA,EAAU,QAAA;EACV,OAAA,EAAS,KAAA;AAAA;AAAA,KAGC,mBAAA,IACV,MAAA,EAAQ,KAAA,IACR,QAAA,EAAU,QAAA,KACP,KAAA;AAAA,UAEY,MAAA;EACf,MAAA,EAAQ,KAAA;EACR,SAAA,GAAY,QAAA,GAAW,KAAA,EAAO,WAAA;AAAA;AAAA,UAGf,yBAAA;EACf,MAAA,EAAQ,MAAA;EACR,aAAA,EAAe,mBAAA;EACf,MAAA;IACE,gBAAA,GAAmB,gBAAA;EAAA;AAAA"}
@@ -1,32 +1,32 @@
1
1
  import { PathnameDocument } from "../../../../../common/types.js";
2
2
 
3
3
  //#region src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.d.ts
4
- type Route = {
4
+ interface Route {
5
5
  path?: string;
6
- };
7
- type Match = {
6
+ }
7
+ interface Match {
8
8
  pathname: string;
9
9
  route: Route;
10
- };
11
- type Location = {
10
+ }
11
+ interface Location {
12
12
  pathname: string;
13
- };
14
- type RouterState = {
13
+ }
14
+ interface RouterState {
15
15
  location: Location;
16
16
  matches: Match[];
17
- };
17
+ }
18
18
  type MatchRoutesFunction = (routes: Route[], location: Location) => Match[] | null;
19
19
  interface Router {
20
20
  routes: Route[];
21
21
  subscribe: (listener: (state: RouterState) => void) => () => void;
22
22
  }
23
- type ListenToRouterChangesArgs = {
23
+ interface ListenToRouterChangesArgs {
24
24
  router: Router;
25
25
  routesMatcher: MatchRoutesFunction;
26
26
  config?: {
27
27
  pathnameDocument?: PathnameDocument;
28
28
  };
29
- };
29
+ }
30
30
  //#endregion
31
31
  export { ListenToRouterChangesArgs, Match, MatchRoutesFunction, Router, RouterState };
32
32
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.ts"],"mappings":";;;KAEK,KAAA;EACH,IAAA;AAAA;AAAA,KAGU,KAAA;EACV,QAAA;EACA,KAAA,EAAO,KAAA;AAAA;AAAA,KAGJ,QAAA;EACH,QAAA;AAAA;AAAA,KAGU,WAAA;EACV,QAAA,EAAU,QAAA;EACV,OAAA,EAAS,KAAA;AAAA;AAAA,KAGC,mBAAA,IACV,MAAA,EAAQ,KAAA,IACR,QAAA,EAAU,QAAA,KACP,KAAA;AAAA,UAEY,MAAA;EACf,MAAA,EAAQ,KAAA;EACR,SAAA,GAAY,QAAA,GAAW,KAAA,EAAO,WAAA;AAAA;AAAA,KAGpB,yBAAA;EACV,MAAA,EAAQ,MAAA;EACR,aAAA,EAAe,mBAAA;EACf,MAAA;IACE,gBAAA,GAAmB,gBAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Data/types.ts"],"mappings":";;;UAEU,KAAA;EACR,IAAA;AAAA;AAAA,UAGe,KAAA;EACf,QAAA;EACA,KAAA,EAAO,KAAA;AAAA;AAAA,UAGC,QAAA;EACR,QAAA;AAAA;AAAA,UAGe,WAAA;EACf,QAAA,EAAU,QAAA;EACV,OAAA,EAAS,KAAA;AAAA;AAAA,KAGC,mBAAA,IACV,MAAA,EAAQ,KAAA,IACR,QAAA,EAAU,QAAA,KACP,KAAA;AAAA,UAEY,MAAA;EACf,MAAA,EAAQ,KAAA;EACR,SAAA,GAAY,QAAA,GAAW,KAAA,EAAO,WAAA;AAAA;AAAA,UAGf,yBAAA;EACf,MAAA,EAAQ,MAAA;EACR,aAAA,EAAe,mBAAA;EACf,MAAA;IACE,gBAAA,GAAmB,gBAAA;EAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  //#region src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts
2
- type RoutesFunctionalComponentReturn = {
2
+ interface RoutesFunctionalComponentReturn {
3
3
  props: {
4
4
  match?: {
5
5
  pathname: string;
@@ -12,7 +12,7 @@ type RoutesFunctionalComponentReturn = {
12
12
  outlet: RoutesFunctionalComponentReturn | null;
13
13
  };
14
14
  };
15
- };
15
+ }
16
16
  //#endregion
17
17
  export { RoutesFunctionalComponentReturn };
18
18
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.ts"],"mappings":";KAEY,+BAAA;EACV,KAAA;IACE,KAAA;MACE,QAAA;MACA,YAAA;MACA,KAAA;QACE,IAAA;MAAA;IAAA;IAGJ,YAAA;MAEE,MAAA,EAAQ,+BAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"types.d.cts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.ts"],"mappings":";UAEiB,+BAAA;EACf,KAAA;IACE,KAAA;MACE,QAAA;MACA,YAAA;MACA,KAAA;QACE,IAAA;MAAA;IAAA;IAGJ,YAAA;MAEE,MAAA,EAAQ,+BAAA;IAAA;EAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  //#region src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.d.ts
2
- type RoutesFunctionalComponentReturn = {
2
+ interface RoutesFunctionalComponentReturn {
3
3
  props: {
4
4
  match?: {
5
5
  pathname: string;
@@ -12,7 +12,7 @@ type RoutesFunctionalComponentReturn = {
12
12
  outlet: RoutesFunctionalComponentReturn | null;
13
13
  };
14
14
  };
15
- };
15
+ }
16
16
  //#endregion
17
17
  export { RoutesFunctionalComponentReturn };
18
18
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.ts"],"mappings":";KAEY,+BAAA;EACV,KAAA;IACE,KAAA;MACE,QAAA;MACA,YAAA;MACA,KAAA;QACE,IAAA;MAAA;IAAA;IAGJ,YAAA;MAEE,MAAA,EAAQ,+BAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/types.ts"],"mappings":";UAEiB,+BAAA;EACf,KAAA;IACE,KAAA;MACE,QAAA;MACA,YAAA;MACA,KAAA;QACE,IAAA;MAAA;IAAA;IAGJ,YAAA;MAEE,MAAA,EAAQ,+BAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"withMXLRouting.cjs","names":["getNavigationInstrumentation"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport type React from 'react';\nimport { createElement } from 'react';\nimport type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport { getNavigationInstrumentation } from '../..';\nimport type { RoutesFunctionalComponentReturn } from './types';\n\n// Routes can be nested, we need to traverse the routeContext to find the last route\nconst getLastRoute = (\n matchedComponent: RoutesFunctionalComponentReturn,\n lastRoute: Route | null,\n): Route | null => {\n if (!matchedComponent.props.match?.route) {\n return null;\n }\n\n const childPath = matchedComponent.props.match.route.path;\n const path =\n lastRoute && !childPath.startsWith('/')\n ? `${lastRoute.path}/${childPath}`\n : childPath;\n\n if (matchedComponent.props.routeContext?.outlet) {\n return getLastRoute(matchedComponent.props.routeContext.outlet, {\n path,\n url: matchedComponent.props.match.pathname,\n });\n }\n\n return {\n path,\n url: matchedComponent.props.match.pathname,\n };\n};\n\nexport const withMXLRouting = <P extends object>(\n WrappedComponent: React.FunctionComponent<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Declarative,\n );\n\n const RoutesWithMXLRouting: React.FC<P> = (props: P) => {\n /**\n * React-router v6+ implementation is very different from v5\n * It doesn't have a <Switch> component that injects props into <Route>\n * Instead, it has <Routes> which internally calculates the matched route\n * and returns it as a children, <Route> cannot be wrapped since it requires all children to be a <Route> component\n * here we rely on that matching to get the current route.\n * It's not ideal to rely on internal implementation details, but it's the easier way of getting the current route\n * without having to manually match it or using hooks on each children component\n *\n * See: https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/hooks.tsx#L553\n */\n const matchedComponent = WrappedComponent(\n props,\n ) as unknown as RoutesFunctionalComponentReturn;\n\n if (matchedComponent.props.match?.route) {\n const lastRoute = getLastRoute(matchedComponent, null);\n if (lastRoute) {\n navigationInstrumentation.setCurrentRoute(lastRoute);\n }\n }\n\n return createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RoutesWithMXLRouting.displayName = `withMXLRouting(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RoutesWithMXLRouting, WrappedComponent);\n\n return RoutesWithMXLRouting;\n};\n"],"mappings":";;;;;;;;AASA,MAAM,gBACJ,kBACA,cACiB;AACjB,KAAI,CAAC,iBAAiB,MAAM,OAAO,MACjC,QAAO;CAGT,MAAM,YAAY,iBAAiB,MAAM,MAAM,MAAM;CACrD,MAAM,OACJ,aAAa,CAAC,UAAU,WAAW,IAAI,GACnC,GAAG,UAAU,KAAK,GAAG,cACrB;AAEN,KAAI,iBAAiB,MAAM,cAAc,OACvC,QAAO,aAAa,iBAAiB,MAAM,aAAa,QAAQ;EAC9D;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC,CAAC;AAGJ,QAAO;EACL;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC;;AAGH,MAAa,kBACX,qBACG;CACH,MAAM,4BAA4BA,uEAAAA,8BAA8B;AAChE,2BAA0B,uBAAA,2BAEzB;CAED,MAAM,wBAAqC,UAAa;;;;;;;;;;;;EAYtD,MAAM,mBAAmB,iBACvB,MACD;AAED,MAAI,iBAAiB,MAAM,OAAO,OAAO;GACvC,MAAM,YAAY,aAAa,kBAAkB,KAAK;AACtD,OAAI,UACF,2BAA0B,gBAAgB,UAAU;;AAIxD,UAAA,GAAA,MAAA,eAAwB,kBAAkB,MAAM;;AAIlD,sBAAqB,cAAc,kBAAkB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AAC1H,EAAA,GAAA,wBAAA,SAAqB,sBAAsB,iBAAiB;AAE5D,QAAO"}
1
+ {"version":3,"file":"withMXLRouting.cjs","names":["getNavigationInstrumentation"],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport type React from 'react';\nimport { createElement } from 'react';\nimport { getNavigationInstrumentation } from '../..';\nimport type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport type { RoutesFunctionalComponentReturn } from './types';\n\n// Routes can be nested, we need to traverse the routeContext to find the last route\nconst getLastRoute = (\n matchedComponent: RoutesFunctionalComponentReturn,\n lastRoute: Route | null,\n): Route | null => {\n if (!matchedComponent.props.match?.route) {\n return null;\n }\n\n const childPath = matchedComponent.props.match.route.path;\n const path =\n lastRoute && !childPath.startsWith('/')\n ? `${lastRoute.path}/${childPath}`\n : childPath;\n\n if (matchedComponent.props.routeContext?.outlet) {\n return getLastRoute(matchedComponent.props.routeContext.outlet, {\n path,\n url: matchedComponent.props.match.pathname,\n });\n }\n\n return {\n path,\n url: matchedComponent.props.match.pathname,\n };\n};\n\nexport const withMXLRouting = <P extends object>(\n WrappedComponent: React.FunctionComponent<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Declarative,\n );\n\n const RoutesWithMXLRouting: React.FC<P> = (props: P) => {\n /**\n * React-router v6+ implementation is very different from v5\n * It doesn't have a <Switch> component that injects props into <Route>\n * Instead, it has <Routes> which internally calculates the matched route\n * and returns it as a children, <Route> cannot be wrapped since it requires all children to be a <Route> component\n * here we rely on that matching to get the current route.\n * It's not ideal to rely on internal implementation details, but it's the easier way of getting the current route\n * without having to manually match it or using hooks on each children component\n *\n * See: https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/hooks.tsx#L553\n */\n const matchedComponent = WrappedComponent(\n props,\n ) as unknown as RoutesFunctionalComponentReturn;\n\n if (matchedComponent.props.match?.route) {\n const lastRoute = getLastRoute(matchedComponent, null);\n if (lastRoute) {\n navigationInstrumentation.setCurrentRoute(lastRoute);\n }\n }\n\n return createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RoutesWithMXLRouting.displayName = `withMXLRouting(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RoutesWithMXLRouting, WrappedComponent);\n\n return RoutesWithMXLRouting;\n};\n"],"mappings":";;;;;;;;AASA,MAAM,gBACJ,kBACA,cACiB;AACjB,KAAI,CAAC,iBAAiB,MAAM,OAAO,MACjC,QAAO;CAGT,MAAM,YAAY,iBAAiB,MAAM,MAAM,MAAM;CACrD,MAAM,OACJ,aAAa,CAAC,UAAU,WAAW,IAAI,GACnC,GAAG,UAAU,KAAK,GAAG,cACrB;AAEN,KAAI,iBAAiB,MAAM,cAAc,OACvC,QAAO,aAAa,iBAAiB,MAAM,aAAa,QAAQ;EAC9D;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC,CAAC;AAGJ,QAAO;EACL;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC;;AAGH,MAAa,kBACX,qBACG;CACH,MAAM,4BAA4BA,uEAAAA,8BAA8B;AAChE,2BAA0B,uBAAA,2BAEzB;CAED,MAAM,wBAAqC,UAAa;;;;;;;;;;;;EAYtD,MAAM,mBAAmB,iBACvB,MACD;AAED,MAAI,iBAAiB,MAAM,OAAO,OAAO;GACvC,MAAM,YAAY,aAAa,kBAAkB,KAAK;AACtD,OAAI,UACF,2BAA0B,gBAAgB,UAAU;;AAIxD,UAAA,GAAA,MAAA,eAAwB,kBAAkB,MAAM;;AAIlD,sBAAqB,cAAc,kBAAkB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AAC1H,EAAA,GAAA,wBAAA,SAAqB,sBAAsB,iBAAiB;AAE5D,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"withMXLRouting.js","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport type React from 'react';\nimport { createElement } from 'react';\nimport type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport { getNavigationInstrumentation } from '../..';\nimport type { RoutesFunctionalComponentReturn } from './types';\n\n// Routes can be nested, we need to traverse the routeContext to find the last route\nconst getLastRoute = (\n matchedComponent: RoutesFunctionalComponentReturn,\n lastRoute: Route | null,\n): Route | null => {\n if (!matchedComponent.props.match?.route) {\n return null;\n }\n\n const childPath = matchedComponent.props.match.route.path;\n const path =\n lastRoute && !childPath.startsWith('/')\n ? `${lastRoute.path}/${childPath}`\n : childPath;\n\n if (matchedComponent.props.routeContext?.outlet) {\n return getLastRoute(matchedComponent.props.routeContext.outlet, {\n path,\n url: matchedComponent.props.match.pathname,\n });\n }\n\n return {\n path,\n url: matchedComponent.props.match.pathname,\n };\n};\n\nexport const withMXLRouting = <P extends object>(\n WrappedComponent: React.FunctionComponent<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Declarative,\n );\n\n const RoutesWithMXLRouting: React.FC<P> = (props: P) => {\n /**\n * React-router v6+ implementation is very different from v5\n * It doesn't have a <Switch> component that injects props into <Route>\n * Instead, it has <Routes> which internally calculates the matched route\n * and returns it as a children, <Route> cannot be wrapped since it requires all children to be a <Route> component\n * here we rely on that matching to get the current route.\n * It's not ideal to rely on internal implementation details, but it's the easier way of getting the current route\n * without having to manually match it or using hooks on each children component\n *\n * See: https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/hooks.tsx#L553\n */\n const matchedComponent = WrappedComponent(\n props,\n ) as unknown as RoutesFunctionalComponentReturn;\n\n if (matchedComponent.props.match?.route) {\n const lastRoute = getLastRoute(matchedComponent, null);\n if (lastRoute) {\n navigationInstrumentation.setCurrentRoute(lastRoute);\n }\n }\n\n return createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RoutesWithMXLRouting.displayName = `withMXLRouting(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RoutesWithMXLRouting, WrappedComponent);\n\n return RoutesWithMXLRouting;\n};\n"],"mappings":";;;;;AASA,MAAM,gBACJ,kBACA,cACiB;AACjB,KAAI,CAAC,iBAAiB,MAAM,OAAO,MACjC,QAAO;CAGT,MAAM,YAAY,iBAAiB,MAAM,MAAM,MAAM;CACrD,MAAM,OACJ,aAAa,CAAC,UAAU,WAAW,IAAI,GACnC,GAAG,UAAU,KAAK,GAAG,cACrB;AAEN,KAAI,iBAAiB,MAAM,cAAc,OACvC,QAAO,aAAa,iBAAiB,MAAM,aAAa,QAAQ;EAC9D;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC,CAAC;AAGJ,QAAO;EACL;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC;;AAGH,MAAa,kBACX,qBACG;CACH,MAAM,4BAA4B,8BAA8B;AAChE,2BAA0B,uBAAA,2BAEzB;CAED,MAAM,wBAAqC,UAAa;;;;;;;;;;;;EAYtD,MAAM,mBAAmB,iBACvB,MACD;AAED,MAAI,iBAAiB,MAAM,OAAO,OAAO;GACvC,MAAM,YAAY,aAAa,kBAAkB,KAAK;AACtD,OAAI,UACF,2BAA0B,gBAAgB,UAAU;;AAIxD,SAAO,cAAiB,kBAAkB,MAAM;;AAIlD,sBAAqB,cAAc,kBAAkB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AAC1H,sBAAqB,sBAAsB,iBAAiB;AAE5D,QAAO"}
1
+ {"version":3,"file":"withMXLRouting.js","names":[],"sources":["../../../../../../src/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.ts"],"sourcesContent":["import hoistNonReactStatics from 'hoist-non-react-statics';\nimport type React from 'react';\nimport { createElement } from 'react';\nimport { getNavigationInstrumentation } from '../..';\nimport type { Route } from '../../../../../api-page';\nimport { MXL_NAVIGATION_INSTRUMENTATIONS } from '../../../../../constants';\nimport type { RoutesFunctionalComponentReturn } from './types';\n\n// Routes can be nested, we need to traverse the routeContext to find the last route\nconst getLastRoute = (\n matchedComponent: RoutesFunctionalComponentReturn,\n lastRoute: Route | null,\n): Route | null => {\n if (!matchedComponent.props.match?.route) {\n return null;\n }\n\n const childPath = matchedComponent.props.match.route.path;\n const path =\n lastRoute && !childPath.startsWith('/')\n ? `${lastRoute.path}/${childPath}`\n : childPath;\n\n if (matchedComponent.props.routeContext?.outlet) {\n return getLastRoute(matchedComponent.props.routeContext.outlet, {\n path,\n url: matchedComponent.props.match.pathname,\n });\n }\n\n return {\n path,\n url: matchedComponent.props.match.pathname,\n };\n};\n\nexport const withMXLRouting = <P extends object>(\n WrappedComponent: React.FunctionComponent<P>,\n) => {\n const navigationInstrumentation = getNavigationInstrumentation();\n navigationInstrumentation.setInstrumentationType(\n MXL_NAVIGATION_INSTRUMENTATIONS.Declarative,\n );\n\n const RoutesWithMXLRouting: React.FC<P> = (props: P) => {\n /**\n * React-router v6+ implementation is very different from v5\n * It doesn't have a <Switch> component that injects props into <Route>\n * Instead, it has <Routes> which internally calculates the matched route\n * and returns it as a children, <Route> cannot be wrapped since it requires all children to be a <Route> component\n * here we rely on that matching to get the current route.\n * It's not ideal to rely on internal implementation details, but it's the easier way of getting the current route\n * without having to manually match it or using hooks on each children component\n *\n * See: https://github.com/remix-run/react-router/blob/main/packages/react-router/lib/hooks.tsx#L553\n */\n const matchedComponent = WrappedComponent(\n props,\n ) as unknown as RoutesFunctionalComponentReturn;\n\n if (matchedComponent.props.match?.route) {\n const lastRoute = getLastRoute(matchedComponent, null);\n if (lastRoute) {\n navigationInstrumentation.setCurrentRoute(lastRoute);\n }\n }\n\n return createElement<P>(WrappedComponent, props);\n };\n\n // Keep wrapped component metadata\n RoutesWithMXLRouting.displayName = `withMXLRouting(${WrappedComponent.displayName || WrappedComponent.name || 'Component'})`;\n hoistNonReactStatics(RoutesWithMXLRouting, WrappedComponent);\n\n return RoutesWithMXLRouting;\n};\n"],"mappings":";;;;;AASA,MAAM,gBACJ,kBACA,cACiB;AACjB,KAAI,CAAC,iBAAiB,MAAM,OAAO,MACjC,QAAO;CAGT,MAAM,YAAY,iBAAiB,MAAM,MAAM,MAAM;CACrD,MAAM,OACJ,aAAa,CAAC,UAAU,WAAW,IAAI,GACnC,GAAG,UAAU,KAAK,GAAG,cACrB;AAEN,KAAI,iBAAiB,MAAM,cAAc,OACvC,QAAO,aAAa,iBAAiB,MAAM,aAAa,QAAQ;EAC9D;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC,CAAC;AAGJ,QAAO;EACL;EACA,KAAK,iBAAiB,MAAM,MAAM;EACnC;;AAGH,MAAa,kBACX,qBACG;CACH,MAAM,4BAA4B,8BAA8B;AAChE,2BAA0B,uBAAA,2BAEzB;CAED,MAAM,wBAAqC,UAAa;;;;;;;;;;;;EAYtD,MAAM,mBAAmB,iBACvB,MACD;AAED,MAAI,iBAAiB,MAAM,OAAO,OAAO;GACvC,MAAM,YAAY,aAAa,kBAAkB,KAAK;AACtD,OAAI,UACF,2BAA0B,gBAAgB,UAAU;;AAIxD,SAAO,cAAiB,kBAAkB,MAAM;;AAIlD,sBAAqB,cAAc,kBAAkB,iBAAiB,eAAe,iBAAiB,QAAQ,YAAY;AAC1H,sBAAqB,sBAAsB,iBAAiB;AAE5D,QAAO"}
@@ -0,0 +1,257 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("../../../_virtual/_rolldown/runtime.cjs");
3
+ const require_constants_attributes = require("../../../constants/attributes.cjs");
4
+ const require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase = require("../../MXLInstrumentationBase/MXLInstrumentationBase.cjs");
5
+ const require_instrumentations_replay_utils_session_recording_utils = require("../utils/session-recording-utils.cjs");
6
+ const require_instrumentations_replay_ReplayInstrumentation_constants = require("./constants.cjs");
7
+ let _opentelemetry_api_logs = require("@opentelemetry/api-logs");
8
+ //#region src/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.ts
9
+ let rrwebModulePromise;
10
+ let rrwebModuleLoaderOverride;
11
+ function loadRrwebModule() {
12
+ if (rrwebModuleLoaderOverride) return rrwebModuleLoaderOverride();
13
+ rrwebModulePromise ??= import(
14
+ /* @vite-ignore */
15
+ "rrweb"
16
+ );
17
+ return rrwebModulePromise;
18
+ }
19
+ function resetRrwebModuleCacheForTests() {
20
+ rrwebModulePromise = void 0;
21
+ rrwebModuleLoaderOverride = void 0;
22
+ }
23
+ function setRrwebModuleLoaderForTests(loader) {
24
+ rrwebModuleLoaderOverride = loader;
25
+ rrwebModulePromise = void 0;
26
+ }
27
+ var ReplayInstrumentation = class extends require_instrumentations_MXLInstrumentationBase_MXLInstrumentationBase.MXLInstrumentationBase {
28
+ _flushIntervalMs;
29
+ _maxBufferSize;
30
+ _recordUserSessions;
31
+ _rrwebUserOptions;
32
+ _debug;
33
+ _eventBuffer = [];
34
+ _flushIntervalId;
35
+ _removeSessionEndListener;
36
+ _removeSessionStartedListener;
37
+ _stopRecording;
38
+ _rrwebModule;
39
+ _mutationRateLimiter;
40
+ _lastKnownSession = "";
41
+ _sessionStartTime = 0;
42
+ _paused = false;
43
+ _enableRequested = false;
44
+ _startInProgress = false;
45
+ _queuedFullSnapshotTimeout;
46
+ _destroyed = false;
47
+ constructor({ diag, perf, flushIntervalMs = require_instrumentations_replay_ReplayInstrumentation_constants.DEFAULT_FLUSH_INTERVAL_MS, maxBufferSize = 50, recordUserSessions = true, rrwebOptions } = {}) {
48
+ super({
49
+ config: {},
50
+ diag,
51
+ instrumentationName: "ReplayInstrumentation",
52
+ instrumentationVersion: "1.0.0",
53
+ perf
54
+ });
55
+ this._flushIntervalMs = flushIntervalMs;
56
+ this._maxBufferSize = maxBufferSize;
57
+ this._recordUserSessions = recordUserSessions;
58
+ this._debug = rrwebOptions?.debug ?? false;
59
+ this._rrwebUserOptions = rrwebOptions;
60
+ if (!this._config.enabled) this._diag.debug("disabled, not starting");
61
+ }
62
+ setUserSessionManager(userSessionManager) {
63
+ super.setUserSessionManager(userSessionManager);
64
+ this._registerSessionEndListener();
65
+ }
66
+ isRecording() {
67
+ return Boolean(this._stopRecording) && !this._paused;
68
+ }
69
+ enable(options) {
70
+ if (!this._recordUserSessions && !options?.force) {
71
+ this._diag.debug("recordUserSessions disabled, waiting for manual enable");
72
+ return;
73
+ }
74
+ this._enableRequested = true;
75
+ this._paused = false;
76
+ this._tryStartRecording();
77
+ }
78
+ pause() {
79
+ if (!this._stopRecording) return;
80
+ this._enableRequested = false;
81
+ this._paused = true;
82
+ clearTimeout(this._flushIntervalId);
83
+ this._flushIntervalId = void 0;
84
+ }
85
+ resume() {
86
+ if (!this._stopRecording) {
87
+ this.enable();
88
+ return;
89
+ }
90
+ const wasPaused = this._paused;
91
+ this._enableRequested = true;
92
+ this._paused = false;
93
+ if (wasPaused) {
94
+ this._scheduleFlush();
95
+ this._rrwebModule?.record.takeFullSnapshot();
96
+ }
97
+ }
98
+ _scheduleFlush() {
99
+ if (this._destroyed || this._flushIntervalId || this._paused || !this._stopRecording) return;
100
+ this._flushIntervalId = setTimeout(() => {
101
+ this._flushIntervalId = void 0;
102
+ if (this._destroyed || this._paused || !this._stopRecording) return;
103
+ this._flush();
104
+ this._scheduleFlush();
105
+ }, this._flushIntervalMs);
106
+ }
107
+ disable() {
108
+ this._destroyed = true;
109
+ this._enableRequested = false;
110
+ this._paused = false;
111
+ clearTimeout(this._flushIntervalId);
112
+ this._flushIntervalId = void 0;
113
+ this._removeSessionEndListener?.();
114
+ this._removeSessionEndListener = void 0;
115
+ this._removeSessionStartedListener?.();
116
+ this._removeSessionStartedListener = void 0;
117
+ clearTimeout(this._queuedFullSnapshotTimeout);
118
+ this._queuedFullSnapshotTimeout = void 0;
119
+ if (this._stopRecording) {
120
+ this._diag.debug("stopping recording");
121
+ this._stopRecording();
122
+ this._stopRecording = void 0;
123
+ this._flush();
124
+ }
125
+ this._mutationRateLimiter?.destroy();
126
+ this._mutationRateLimiter = void 0;
127
+ }
128
+ _registerSessionEndListener() {
129
+ if (!this._stopRecording) return;
130
+ this._removeSessionEndListener?.();
131
+ this._removeSessionEndListener = this.userSessionManager.addSessionPartEndedListener(() => {
132
+ try {
133
+ this._flush();
134
+ } catch (error) {
135
+ this._diag.error("error flushing on session end", error);
136
+ }
137
+ });
138
+ }
139
+ async _tryStartRecording() {
140
+ if (!this._enableRequested || this._stopRecording || this._startInProgress) return;
141
+ if (typeof window === "undefined") {
142
+ this._diag.warn("session replay cannot run in non-browser environments");
143
+ return;
144
+ }
145
+ if (this.userSessionManager.getUserSessionId() === null) {
146
+ if (!this._removeSessionStartedListener) this._removeSessionStartedListener = this.userSessionManager.addSessionPartStartedListener(() => {
147
+ this._removeSessionStartedListener?.();
148
+ this._removeSessionStartedListener = void 0;
149
+ this._tryStartRecording();
150
+ });
151
+ return;
152
+ }
153
+ this._startInProgress = true;
154
+ try {
155
+ this._rrwebModule = await loadRrwebModule();
156
+ if (!this._enableRequested || this._stopRecording) return;
157
+ this._lastKnownSession = this.userSessionManager.getUserSessionId() ?? "";
158
+ this._sessionStartTime = Date.now();
159
+ const { record } = this._rrwebModule;
160
+ const { debug: _debug, ...rrwebOptions } = this._rrwebUserOptions ?? {};
161
+ this._mutationRateLimiter = this._mutationRateLimiter ?? new require_instrumentations_replay_utils_session_recording_utils.MutationRateLimiter(record, { onBlockedNode: (id, node) => {
162
+ const message = `MXL Session Replay: Rate limiting recording mutations on node ${id}. This can be due to excessive animations.`;
163
+ if (this._debug) console.warn(message, node);
164
+ clearTimeout(this._queuedFullSnapshotTimeout);
165
+ this._queuedFullSnapshotTimeout = setTimeout(() => {
166
+ record.takeFullSnapshot();
167
+ }, 1e3);
168
+ } });
169
+ const stopFn = record({
170
+ maskAllInputs: true,
171
+ maskTextSelector: "*",
172
+ ...rrwebOptions,
173
+ emit: this._onEvent
174
+ });
175
+ if (!stopFn) {
176
+ this._diag.warn("record() returned undefined, did not start");
177
+ return;
178
+ }
179
+ this._stopRecording = stopFn;
180
+ this._scheduleFlush();
181
+ this._registerSessionEndListener();
182
+ this._diag.debug("recording started");
183
+ } catch (error) {
184
+ this._diag.error("failed to start recording", error);
185
+ } finally {
186
+ this._startInProgress = false;
187
+ }
188
+ }
189
+ _onEvent = (srcEvent) => {
190
+ if (this._paused) return;
191
+ const currentSession = this.userSessionManager.getUserSessionId() ?? "";
192
+ if (currentSession !== this._lastKnownSession) {
193
+ if (typeof document !== "undefined" && document.hidden) return;
194
+ this._lastKnownSession = currentSession;
195
+ this._sessionStartTime = Date.now();
196
+ this._rrwebModule?.record.takeFullSnapshot();
197
+ }
198
+ if (srcEvent.timestamp > this._sessionStartTime + 1446e4) return;
199
+ const event = this._mutationRateLimiter ? this._mutationRateLimiter.throttleMutations(srcEvent) : srcEvent;
200
+ if (!event) return;
201
+ this._diag.debug("event received", event.type);
202
+ this._eventBuffer.push(event);
203
+ if (this._eventBuffer.length >= this._maxBufferSize) this._flush();
204
+ };
205
+ _flush() {
206
+ if (this._eventBuffer.length === 0 || this._paused) return;
207
+ this._diag.debug("flushing", this._eventBuffer.length, "events");
208
+ const events = this._eventBuffer;
209
+ this._eventBuffer = [];
210
+ try {
211
+ this._emitEventBatches(events);
212
+ } catch (error) {
213
+ this._diag.error("failed to save events", error);
214
+ }
215
+ }
216
+ _emitEventBatches(events) {
217
+ let batchStart = 0;
218
+ while (batchStart < events.length) {
219
+ let batchEnd = events.length;
220
+ while (batchEnd > batchStart) {
221
+ const slice = events.slice(batchStart, batchEnd);
222
+ const json = require_instrumentations_replay_utils_session_recording_utils.ensureStringifiedMaxMessageSize(JSON.stringify(slice));
223
+ if (json.length <= 5e6) {
224
+ this._emitBatch(slice, json);
225
+ batchStart = batchEnd;
226
+ break;
227
+ }
228
+ batchEnd--;
229
+ }
230
+ if (batchEnd === batchStart) {
231
+ const slice = events.slice(batchStart, batchStart + 1);
232
+ const json = require_instrumentations_replay_utils_session_recording_utils.ensureStringifiedMaxMessageSize(JSON.stringify(slice));
233
+ this._emitBatch(slice, json);
234
+ batchStart++;
235
+ }
236
+ }
237
+ }
238
+ _emitBatch(events, json) {
239
+ if (this._debug) console.log("replay batch", events.length, json.length);
240
+ this.logger.emit({
241
+ attributes: {
242
+ [require_constants_attributes.KEY_MXL_TYPE]: "ux.replay",
243
+ [require_instrumentations_replay_ReplayInstrumentation_constants.KEY_REPLAY_EVENTS]: json,
244
+ [require_instrumentations_replay_ReplayInstrumentation_constants.KEY_REPLAY_COUNT]: events.length
245
+ },
246
+ eventName: "replay",
247
+ severityNumber: _opentelemetry_api_logs.SeverityNumber.INFO
248
+ });
249
+ }
250
+ };
251
+ //#endregion
252
+ exports.ReplayInstrumentation = ReplayInstrumentation;
253
+ exports.loadRrwebModule = loadRrwebModule;
254
+ exports.resetRrwebModuleCacheForTests = resetRrwebModuleCacheForTests;
255
+ exports.setRrwebModuleLoaderForTests = setRrwebModuleLoaderForTests;
256
+
257
+ //# sourceMappingURL=ReplayInstrumentation.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReplayInstrumentation.cjs","names":["MXLInstrumentationBase","DEFAULT_FLUSH_INTERVAL_MS","MutationRateLimiter","ensureStringifiedMaxMessageSize","KEY_MXL_TYPE","KEY_REPLAY_EVENTS","KEY_REPLAY_COUNT","SeverityNumber"],"sources":["../../../../src/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.ts"],"sourcesContent":["import { SeverityNumber } from '@opentelemetry/api-logs';\nimport type { eventWithTime } from 'rrweb';\nimport { KEY_MXL_TYPE, MXL_TYPES } from '../../../constants';\nimport { MXLInstrumentationBase } from '../../MXLInstrumentationBase';\nimport {\n MAX_MESSAGE_SIZE,\n MutationRateLimiter,\n ensureStringifiedMaxMessageSize,\n} from '../utils';\nimport {\n DEFAULT_FLUSH_INTERVAL_MS,\n DEFAULT_MAX_BUFFER_SIZE,\n KEY_REPLAY_COUNT,\n KEY_REPLAY_EVENTS,\n MAX_RECORDING_LENGTH_MS,\n} from './constants';\nimport type { ReplayInstrumentationArgs } from './types';\n\ntype RrwebModule = typeof import('rrweb');\n\nlet rrwebModulePromise: Promise<RrwebModule> | undefined;\nlet rrwebModuleLoaderOverride: (() => Promise<RrwebModule>) | undefined;\n\nexport function loadRrwebModule(): Promise<RrwebModule> {\n if (rrwebModuleLoaderOverride) {\n return rrwebModuleLoaderOverride();\n }\n\n rrwebModulePromise ??= import(/* @vite-ignore */ 'rrweb');\n return rrwebModulePromise;\n}\n\nexport function resetRrwebModuleCacheForTests(): void {\n rrwebModulePromise = undefined;\n rrwebModuleLoaderOverride = undefined;\n}\n\nexport function setRrwebModuleLoaderForTests(\n loader: (() => Promise<RrwebModule>) | undefined,\n): void {\n rrwebModuleLoaderOverride = loader;\n rrwebModulePromise = undefined;\n}\n\nexport class ReplayInstrumentation extends MXLInstrumentationBase {\n private readonly _flushIntervalMs: number;\n private readonly _maxBufferSize: number;\n private readonly _recordUserSessions: boolean;\n private readonly _rrwebUserOptions: ReplayInstrumentationArgs['rrwebOptions'];\n private readonly _debug: boolean;\n\n private _eventBuffer: eventWithTime[] = [];\n private _flushIntervalId?: ReturnType<typeof setTimeout>;\n private _removeSessionEndListener?: () => void;\n private _removeSessionStartedListener?: () => void;\n private _stopRecording?: () => void;\n private _rrwebModule?: RrwebModule;\n private _mutationRateLimiter?: MutationRateLimiter;\n private _lastKnownSession = '';\n private _sessionStartTime = 0;\n private _paused = false;\n private _enableRequested = false;\n private _startInProgress = false;\n private _queuedFullSnapshotTimeout?: ReturnType<typeof setTimeout>;\n private _destroyed = false;\n\n public constructor({\n diag,\n perf,\n flushIntervalMs = DEFAULT_FLUSH_INTERVAL_MS,\n maxBufferSize = DEFAULT_MAX_BUFFER_SIZE,\n recordUserSessions = true,\n rrwebOptions,\n }: ReplayInstrumentationArgs = {}) {\n super({\n config: {},\n diag,\n instrumentationName: 'ReplayInstrumentation',\n instrumentationVersion: '1.0.0',\n perf,\n });\n\n this._flushIntervalMs = flushIntervalMs;\n this._maxBufferSize = maxBufferSize;\n this._recordUserSessions = recordUserSessions;\n this._debug = rrwebOptions?.debug ?? false;\n this._rrwebUserOptions = rrwebOptions;\n\n if (!this._config.enabled) {\n this._diag.debug('disabled, not starting');\n }\n }\n\n public override setUserSessionManager(\n userSessionManager: Parameters<\n MXLInstrumentationBase['setUserSessionManager']\n >[0],\n ): void {\n super.setUserSessionManager(userSessionManager);\n this._registerSessionEndListener();\n }\n\n public isRecording(): boolean {\n return Boolean(this._stopRecording) && !this._paused;\n }\n\n public enable(options?: { force?: boolean }): void {\n if (!this._recordUserSessions && !options?.force) {\n this._diag.debug(\n 'recordUserSessions disabled, waiting for manual enable',\n );\n return;\n }\n\n this._enableRequested = true;\n this._paused = false;\n void this._tryStartRecording();\n }\n\n public pause(): void {\n if (!this._stopRecording) {\n return;\n }\n\n this._enableRequested = false;\n this._paused = true;\n clearTimeout(this._flushIntervalId);\n this._flushIntervalId = undefined;\n }\n\n public resume(): void {\n if (!this._stopRecording) {\n this.enable();\n return;\n }\n\n const wasPaused = this._paused;\n this._enableRequested = true;\n this._paused = false;\n\n if (wasPaused) {\n this._scheduleFlush();\n this._rrwebModule?.record.takeFullSnapshot();\n }\n }\n\n private _scheduleFlush(): void {\n if (\n this._destroyed ||\n this._flushIntervalId ||\n this._paused ||\n !this._stopRecording\n ) {\n return;\n }\n\n this._flushIntervalId = setTimeout(() => {\n this._flushIntervalId = undefined;\n if (this._destroyed || this._paused || !this._stopRecording) {\n return;\n }\n this._flush();\n this._scheduleFlush();\n }, this._flushIntervalMs);\n }\n\n public disable(): void {\n this._destroyed = true;\n this._enableRequested = false;\n this._paused = false;\n\n clearTimeout(this._flushIntervalId);\n this._flushIntervalId = undefined;\n this._removeSessionEndListener?.();\n this._removeSessionEndListener = undefined;\n this._removeSessionStartedListener?.();\n this._removeSessionStartedListener = undefined;\n clearTimeout(this._queuedFullSnapshotTimeout);\n this._queuedFullSnapshotTimeout = undefined;\n\n if (this._stopRecording) {\n this._diag.debug('stopping recording');\n this._stopRecording();\n this._stopRecording = undefined;\n this._flush();\n }\n\n this._mutationRateLimiter?.destroy();\n this._mutationRateLimiter = undefined;\n }\n\n private _registerSessionEndListener(): void {\n if (!this._stopRecording) {\n return;\n }\n\n this._removeSessionEndListener?.();\n this._removeSessionEndListener =\n this.userSessionManager.addSessionPartEndedListener(() => {\n try {\n this._flush();\n } catch (error) {\n this._diag.error('error flushing on session end', error);\n }\n });\n }\n\n private async _tryStartRecording(): Promise<void> {\n if (\n !this._enableRequested ||\n this._stopRecording ||\n this._startInProgress\n ) {\n return;\n }\n\n if (typeof window === 'undefined') {\n this._diag.warn('session replay cannot run in non-browser environments');\n return;\n }\n\n if (this.userSessionManager.getUserSessionId() === null) {\n if (!this._removeSessionStartedListener) {\n this._removeSessionStartedListener =\n this.userSessionManager.addSessionPartStartedListener(() => {\n this._removeSessionStartedListener?.();\n this._removeSessionStartedListener = undefined;\n void this._tryStartRecording();\n });\n }\n return;\n }\n\n this._startInProgress = true;\n\n try {\n this._rrwebModule = await loadRrwebModule();\n if (!this._enableRequested || this._stopRecording) {\n return;\n }\n\n this._lastKnownSession = this.userSessionManager.getUserSessionId() ?? '';\n this._sessionStartTime = Date.now();\n\n const { record } = this._rrwebModule;\n const { debug: _debug, ...rrwebOptions } = this._rrwebUserOptions ?? {};\n\n this._mutationRateLimiter =\n this._mutationRateLimiter ??\n new MutationRateLimiter(record, {\n onBlockedNode: (id, node) => {\n const message = `MXL Session Replay: Rate limiting recording mutations on node ${id}. This can be due to excessive animations.`;\n if (this._debug) {\n // oxlint-disable-next-line no-console -- debug-only replay diagnostics\n console.warn(message, node);\n }\n\n clearTimeout(this._queuedFullSnapshotTimeout);\n this._queuedFullSnapshotTimeout = setTimeout(() => {\n record.takeFullSnapshot();\n }, 1000);\n },\n });\n\n const stopFn = record({\n maskAllInputs: true,\n maskTextSelector: '*',\n ...rrwebOptions,\n emit: this._onEvent,\n });\n\n if (!stopFn) {\n this._diag.warn('record() returned undefined, did not start');\n return;\n }\n\n this._stopRecording = stopFn;\n this._scheduleFlush();\n this._registerSessionEndListener();\n this._diag.debug('recording started');\n } catch (error) {\n this._diag.error('failed to start recording', error);\n } finally {\n this._startInProgress = false;\n }\n }\n\n private readonly _onEvent = (srcEvent: eventWithTime) => {\n if (this._paused) {\n return;\n }\n\n const currentSession = this.userSessionManager.getUserSessionId() ?? '';\n if (currentSession !== this._lastKnownSession) {\n if (typeof document !== 'undefined' && document.hidden) {\n return;\n }\n this._lastKnownSession = currentSession;\n this._sessionStartTime = Date.now();\n this._rrwebModule?.record.takeFullSnapshot();\n }\n\n if (srcEvent.timestamp > this._sessionStartTime + MAX_RECORDING_LENGTH_MS) {\n return;\n }\n\n const event = this._mutationRateLimiter\n ? this._mutationRateLimiter.throttleMutations(srcEvent)\n : srcEvent;\n\n if (!event) {\n return;\n }\n\n this._diag.debug('event received', event.type);\n this._eventBuffer.push(event);\n if (this._eventBuffer.length >= this._maxBufferSize) {\n this._flush();\n }\n };\n\n private _flush(): void {\n if (this._eventBuffer.length === 0 || this._paused) {\n return;\n }\n\n this._diag.debug('flushing', this._eventBuffer.length, 'events');\n const events = this._eventBuffer;\n this._eventBuffer = [];\n\n try {\n this._emitEventBatches(events);\n } catch (error) {\n this._diag.error('failed to save events', error);\n }\n }\n\n private _emitEventBatches(events: eventWithTime[]): void {\n let batchStart = 0;\n\n while (batchStart < events.length) {\n let batchEnd = events.length;\n\n while (batchEnd > batchStart) {\n const slice = events.slice(batchStart, batchEnd);\n const json = ensureStringifiedMaxMessageSize(JSON.stringify(slice));\n\n if (json.length <= MAX_MESSAGE_SIZE) {\n this._emitBatch(slice, json);\n batchStart = batchEnd;\n break;\n }\n\n batchEnd--;\n }\n\n if (batchEnd === batchStart) {\n const slice = events.slice(batchStart, batchStart + 1);\n const json = ensureStringifiedMaxMessageSize(JSON.stringify(slice));\n this._emitBatch(slice, json);\n batchStart++;\n }\n }\n }\n\n private _emitBatch(events: eventWithTime[], json: string): void {\n if (this._debug) {\n // oxlint-disable-next-line no-console -- debug-only replay diagnostics\n console.log('replay batch', events.length, json.length);\n }\n\n this.logger.emit({\n attributes: {\n [KEY_MXL_TYPE]: MXL_TYPES.Replay,\n [KEY_REPLAY_EVENTS]: json,\n [KEY_REPLAY_COUNT]: events.length,\n },\n eventName: 'replay',\n severityNumber: SeverityNumber.INFO,\n });\n }\n}\n"],"mappings":";;;;;;;;AAoBA,IAAI;AACJ,IAAI;AAEJ,SAAgB,kBAAwC;AACtD,KAAI,0BACF,QAAO,2BAA2B;AAGpC,wBAAuB;;EAA0B;;AACjD,QAAO;;AAGT,SAAgB,gCAAsC;AACpD,sBAAqB,KAAA;AACrB,6BAA4B,KAAA;;AAG9B,SAAgB,6BACd,QACM;AACN,6BAA4B;AAC5B,sBAAqB,KAAA;;AAGvB,IAAa,wBAAb,cAA2CA,uEAAAA,uBAAuB;CAChE;CACA;CACA;CACA;CACA;CAEA,eAAwC,EAAE;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA,oBAA4B;CAC5B,oBAA4B;CAC5B,UAAkB;CAClB,mBAA2B;CAC3B,mBAA2B;CAC3B;CACA,aAAqB;CAErB,YAAmB,EACjB,MACA,MACA,kBAAkBC,gEAAAA,2BAClB,gBAAA,IACA,qBAAqB,MACrB,iBAC6B,EAAE,EAAE;AACjC,QAAM;GACJ,QAAQ,EAAE;GACV;GACA,qBAAqB;GACrB,wBAAwB;GACxB;GACD,CAAC;AAEF,OAAK,mBAAmB;AACxB,OAAK,iBAAiB;AACtB,OAAK,sBAAsB;AAC3B,OAAK,SAAS,cAAc,SAAS;AACrC,OAAK,oBAAoB;AAEzB,MAAI,CAAC,KAAK,QAAQ,QAChB,MAAK,MAAM,MAAM,yBAAyB;;CAI9C,sBACE,oBAGM;AACN,QAAM,sBAAsB,mBAAmB;AAC/C,OAAK,6BAA6B;;CAGpC,cAA8B;AAC5B,SAAO,QAAQ,KAAK,eAAe,IAAI,CAAC,KAAK;;CAG/C,OAAc,SAAqC;AACjD,MAAI,CAAC,KAAK,uBAAuB,CAAC,SAAS,OAAO;AAChD,QAAK,MAAM,MACT,yDACD;AACD;;AAGF,OAAK,mBAAmB;AACxB,OAAK,UAAU;AACV,OAAK,oBAAoB;;CAGhC,QAAqB;AACnB,MAAI,CAAC,KAAK,eACR;AAGF,OAAK,mBAAmB;AACxB,OAAK,UAAU;AACf,eAAa,KAAK,iBAAiB;AACnC,OAAK,mBAAmB,KAAA;;CAG1B,SAAsB;AACpB,MAAI,CAAC,KAAK,gBAAgB;AACxB,QAAK,QAAQ;AACb;;EAGF,MAAM,YAAY,KAAK;AACvB,OAAK,mBAAmB;AACxB,OAAK,UAAU;AAEf,MAAI,WAAW;AACb,QAAK,gBAAgB;AACrB,QAAK,cAAc,OAAO,kBAAkB;;;CAIhD,iBAA+B;AAC7B,MACE,KAAK,cACL,KAAK,oBACL,KAAK,WACL,CAAC,KAAK,eAEN;AAGF,OAAK,mBAAmB,iBAAiB;AACvC,QAAK,mBAAmB,KAAA;AACxB,OAAI,KAAK,cAAc,KAAK,WAAW,CAAC,KAAK,eAC3C;AAEF,QAAK,QAAQ;AACb,QAAK,gBAAgB;KACpB,KAAK,iBAAiB;;CAG3B,UAAuB;AACrB,OAAK,aAAa;AAClB,OAAK,mBAAmB;AACxB,OAAK,UAAU;AAEf,eAAa,KAAK,iBAAiB;AACnC,OAAK,mBAAmB,KAAA;AACxB,OAAK,6BAA6B;AAClC,OAAK,4BAA4B,KAAA;AACjC,OAAK,iCAAiC;AACtC,OAAK,gCAAgC,KAAA;AACrC,eAAa,KAAK,2BAA2B;AAC7C,OAAK,6BAA6B,KAAA;AAElC,MAAI,KAAK,gBAAgB;AACvB,QAAK,MAAM,MAAM,qBAAqB;AACtC,QAAK,gBAAgB;AACrB,QAAK,iBAAiB,KAAA;AACtB,QAAK,QAAQ;;AAGf,OAAK,sBAAsB,SAAS;AACpC,OAAK,uBAAuB,KAAA;;CAG9B,8BAA4C;AAC1C,MAAI,CAAC,KAAK,eACR;AAGF,OAAK,6BAA6B;AAClC,OAAK,4BACH,KAAK,mBAAmB,kCAAkC;AACxD,OAAI;AACF,SAAK,QAAQ;YACN,OAAO;AACd,SAAK,MAAM,MAAM,iCAAiC,MAAM;;IAE1D;;CAGN,MAAc,qBAAoC;AAChD,MACE,CAAC,KAAK,oBACN,KAAK,kBACL,KAAK,iBAEL;AAGF,MAAI,OAAO,WAAW,aAAa;AACjC,QAAK,MAAM,KAAK,wDAAwD;AACxE;;AAGF,MAAI,KAAK,mBAAmB,kBAAkB,KAAK,MAAM;AACvD,OAAI,CAAC,KAAK,8BACR,MAAK,gCACH,KAAK,mBAAmB,oCAAoC;AAC1D,SAAK,iCAAiC;AACtC,SAAK,gCAAgC,KAAA;AAChC,SAAK,oBAAoB;KAC9B;AAEN;;AAGF,OAAK,mBAAmB;AAExB,MAAI;AACF,QAAK,eAAe,MAAM,iBAAiB;AAC3C,OAAI,CAAC,KAAK,oBAAoB,KAAK,eACjC;AAGF,QAAK,oBAAoB,KAAK,mBAAmB,kBAAkB,IAAI;AACvE,QAAK,oBAAoB,KAAK,KAAK;GAEnC,MAAM,EAAE,WAAW,KAAK;GACxB,MAAM,EAAE,OAAO,QAAQ,GAAG,iBAAiB,KAAK,qBAAqB,EAAE;AAEvE,QAAK,uBACH,KAAK,wBACL,IAAIC,8DAAAA,oBAAoB,QAAQ,EAC9B,gBAAgB,IAAI,SAAS;IAC3B,MAAM,UAAU,iEAAiE,GAAG;AACpF,QAAI,KAAK,OAEP,SAAQ,KAAK,SAAS,KAAK;AAG7B,iBAAa,KAAK,2BAA2B;AAC7C,SAAK,6BAA6B,iBAAiB;AACjD,YAAO,kBAAkB;OACxB,IAAK;MAEX,CAAC;GAEJ,MAAM,SAAS,OAAO;IACpB,eAAe;IACf,kBAAkB;IAClB,GAAG;IACH,MAAM,KAAK;IACZ,CAAC;AAEF,OAAI,CAAC,QAAQ;AACX,SAAK,MAAM,KAAK,6CAA6C;AAC7D;;AAGF,QAAK,iBAAiB;AACtB,QAAK,gBAAgB;AACrB,QAAK,6BAA6B;AAClC,QAAK,MAAM,MAAM,oBAAoB;WAC9B,OAAO;AACd,QAAK,MAAM,MAAM,6BAA6B,MAAM;YAC5C;AACR,QAAK,mBAAmB;;;CAI5B,YAA6B,aAA4B;AACvD,MAAI,KAAK,QACP;EAGF,MAAM,iBAAiB,KAAK,mBAAmB,kBAAkB,IAAI;AACrE,MAAI,mBAAmB,KAAK,mBAAmB;AAC7C,OAAI,OAAO,aAAa,eAAe,SAAS,OAC9C;AAEF,QAAK,oBAAoB;AACzB,QAAK,oBAAoB,KAAK,KAAK;AACnC,QAAK,cAAc,OAAO,kBAAkB;;AAG9C,MAAI,SAAS,YAAY,KAAK,oBAAA,OAC5B;EAGF,MAAM,QAAQ,KAAK,uBACf,KAAK,qBAAqB,kBAAkB,SAAS,GACrD;AAEJ,MAAI,CAAC,MACH;AAGF,OAAK,MAAM,MAAM,kBAAkB,MAAM,KAAK;AAC9C,OAAK,aAAa,KAAK,MAAM;AAC7B,MAAI,KAAK,aAAa,UAAU,KAAK,eACnC,MAAK,QAAQ;;CAIjB,SAAuB;AACrB,MAAI,KAAK,aAAa,WAAW,KAAK,KAAK,QACzC;AAGF,OAAK,MAAM,MAAM,YAAY,KAAK,aAAa,QAAQ,SAAS;EAChE,MAAM,SAAS,KAAK;AACpB,OAAK,eAAe,EAAE;AAEtB,MAAI;AACF,QAAK,kBAAkB,OAAO;WACvB,OAAO;AACd,QAAK,MAAM,MAAM,yBAAyB,MAAM;;;CAIpD,kBAA0B,QAA+B;EACvD,IAAI,aAAa;AAEjB,SAAO,aAAa,OAAO,QAAQ;GACjC,IAAI,WAAW,OAAO;AAEtB,UAAO,WAAW,YAAY;IAC5B,MAAM,QAAQ,OAAO,MAAM,YAAY,SAAS;IAChD,MAAM,OAAOC,8DAAAA,gCAAgC,KAAK,UAAU,MAAM,CAAC;AAEnE,QAAI,KAAK,UAAA,KAA4B;AACnC,UAAK,WAAW,OAAO,KAAK;AAC5B,kBAAa;AACb;;AAGF;;AAGF,OAAI,aAAa,YAAY;IAC3B,MAAM,QAAQ,OAAO,MAAM,YAAY,aAAa,EAAE;IACtD,MAAM,OAAOA,8DAAAA,gCAAgC,KAAK,UAAU,MAAM,CAAC;AACnE,SAAK,WAAW,OAAO,KAAK;AAC5B;;;;CAKN,WAAmB,QAAyB,MAAoB;AAC9D,MAAI,KAAK,OAEP,SAAQ,IAAI,gBAAgB,OAAO,QAAQ,KAAK,OAAO;AAGzD,OAAK,OAAO,KAAK;GACf,YAAY;KACTC,6BAAAA,eAAAA;KACAC,gEAAAA,oBAAoB;KACpBC,gEAAAA,mBAAmB,OAAO;IAC5B;GACD,WAAW;GACX,gBAAgBC,wBAAAA,eAAe;GAChC,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { MXLInstrumentationBase } from "../../MXLInstrumentationBase/MXLInstrumentationBase.cjs";
2
+ import { ReplayInstrumentationArgs } from "./types.cjs";
3
+ import * as _$rrweb from "rrweb";
4
+
5
+ //#region src/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts
6
+ type RrwebModule = typeof _$rrweb;
7
+ declare function loadRrwebModule(): Promise<RrwebModule>;
8
+ declare function resetRrwebModuleCacheForTests(): void;
9
+ declare function setRrwebModuleLoaderForTests(loader: (() => Promise<RrwebModule>) | undefined): void;
10
+ declare class ReplayInstrumentation extends MXLInstrumentationBase {
11
+ private readonly _flushIntervalMs;
12
+ private readonly _maxBufferSize;
13
+ private readonly _recordUserSessions;
14
+ private readonly _rrwebUserOptions;
15
+ private readonly _debug;
16
+ private _eventBuffer;
17
+ private _flushIntervalId?;
18
+ private _removeSessionEndListener?;
19
+ private _removeSessionStartedListener?;
20
+ private _stopRecording?;
21
+ private _rrwebModule?;
22
+ private _mutationRateLimiter?;
23
+ private _lastKnownSession;
24
+ private _sessionStartTime;
25
+ private _paused;
26
+ private _enableRequested;
27
+ private _startInProgress;
28
+ private _queuedFullSnapshotTimeout?;
29
+ private _destroyed;
30
+ constructor({
31
+ diag,
32
+ perf,
33
+ flushIntervalMs,
34
+ maxBufferSize,
35
+ recordUserSessions,
36
+ rrwebOptions
37
+ }?: ReplayInstrumentationArgs);
38
+ setUserSessionManager(userSessionManager: Parameters<MXLInstrumentationBase['setUserSessionManager']>[0]): void;
39
+ isRecording(): boolean;
40
+ enable(options?: {
41
+ force?: boolean;
42
+ }): void;
43
+ pause(): void;
44
+ resume(): void;
45
+ private _scheduleFlush;
46
+ disable(): void;
47
+ private _registerSessionEndListener;
48
+ private _tryStartRecording;
49
+ private readonly _onEvent;
50
+ private _flush;
51
+ private _emitEventBatches;
52
+ private _emitBatch;
53
+ }
54
+ //#endregion
55
+ export { ReplayInstrumentation, loadRrwebModule, resetRrwebModuleCacheForTests, setRrwebModuleLoaderForTests };
56
+ //# sourceMappingURL=ReplayInstrumentation.d.cts.map