11/* eslint-disable max-lines */ // TODO: We might want to split this file up
22import { EventType , record } from '@sentry-internal/rrweb' ;
33import { captureException , getCurrentHub } from '@sentry/core' ;
4- import type { Breadcrumb , ReplayRecordingMode , Transaction } from '@sentry/types' ;
4+ import type { ReplayRecordingMode , Transaction } from '@sentry/types' ;
55import { logger } from '@sentry/utils' ;
66
77import {
@@ -21,6 +21,7 @@ import type {
2121 AddEventResult ,
2222 AddUpdateCallback ,
2323 AllPerformanceEntry ,
24+ BreadcrumbFrame ,
2425 EventBuffer ,
2526 InternalEventContext ,
2627 PopEventContext ,
@@ -808,7 +809,7 @@ export class ReplayContainer implements ReplayContainerInterface {
808809 /**
809810 * Tasks to run when we consider a page to be hidden (via blurring and/or visibility)
810811 */
811- private _doChangeToBackgroundTasks ( breadcrumb ?: Breadcrumb ) : void {
812+ private _doChangeToBackgroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
812813 if ( ! this . session ) {
813814 return ;
814815 }
@@ -828,7 +829,7 @@ export class ReplayContainer implements ReplayContainerInterface {
828829 /**
829830 * Tasks to run when we consider a page to be visible (via focus and/or visibility)
830831 */
831- private _doChangeToForegroundTasks ( breadcrumb ?: Breadcrumb ) : void {
832+ private _doChangeToForegroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
832833 if ( ! this . session ) {
833834 return ;
834835 }
@@ -881,7 +882,7 @@ export class ReplayContainer implements ReplayContainerInterface {
881882 /**
882883 * Helper to create (and buffer) a replay breadcrumb from a core SDK breadcrumb
883884 */
884- private _createCustomBreadcrumb ( breadcrumb : Breadcrumb ) : void {
885+ private _createCustomBreadcrumb ( breadcrumb : BreadcrumbFrame ) : void {
885886 this . addUpdate ( ( ) => {
886887 void this . throttledAddEvent ( {
887888 type : EventType . Custom ,
0 commit comments