1
1
/* eslint-disable max-lines */ // TODO: We might want to split this file up
2
2
import { EventType , record } from '@sentry-internal/rrweb' ;
3
3
import { captureException , getCurrentHub } from '@sentry/core' ;
4
- import type { Breadcrumb , ReplayRecordingMode } from '@sentry/types' ;
4
+ import type { ReplayRecordingMode } from '@sentry/types' ;
5
5
import { logger } from '@sentry/utils' ;
6
6
7
7
import {
@@ -21,6 +21,7 @@ import type {
21
21
AddEventResult ,
22
22
AddUpdateCallback ,
23
23
AllPerformanceEntry ,
24
+ BreadcrumbFrame ,
24
25
EventBuffer ,
25
26
InternalEventContext ,
26
27
PopEventContext ,
@@ -777,7 +778,7 @@ export class ReplayContainer implements ReplayContainerInterface {
777
778
/**
778
779
* Tasks to run when we consider a page to be hidden (via blurring and/or visibility)
779
780
*/
780
- private _doChangeToBackgroundTasks ( breadcrumb ?: Breadcrumb ) : void {
781
+ private _doChangeToBackgroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
781
782
if ( ! this . session ) {
782
783
return ;
783
784
}
@@ -797,7 +798,7 @@ export class ReplayContainer implements ReplayContainerInterface {
797
798
/**
798
799
* Tasks to run when we consider a page to be visible (via focus and/or visibility)
799
800
*/
800
- private _doChangeToForegroundTasks ( breadcrumb ?: Breadcrumb ) : void {
801
+ private _doChangeToForegroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
801
802
if ( ! this . session ) {
802
803
return ;
803
804
}
@@ -850,7 +851,7 @@ export class ReplayContainer implements ReplayContainerInterface {
850
851
/**
851
852
* Helper to create (and buffer) a replay breadcrumb from a core SDK breadcrumb
852
853
*/
853
- private _createCustomBreadcrumb ( breadcrumb : Breadcrumb ) : void {
854
+ private _createCustomBreadcrumb ( breadcrumb : BreadcrumbFrame ) : void {
854
855
this . addUpdate ( ( ) => {
855
856
void this . throttledAddEvent ( {
856
857
type : EventType . Custom ,
0 commit comments