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 } from '@sentry/types' ;
4+ import type { ReplayRecordingMode } 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 ,
@@ -777,7 +778,7 @@ export class ReplayContainer implements ReplayContainerInterface {
777778 /**
778779 * Tasks to run when we consider a page to be hidden (via blurring and/or visibility)
779780 */
780- private _doChangeToBackgroundTasks ( breadcrumb ?: Breadcrumb ) : void {
781+ private _doChangeToBackgroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
781782 if ( ! this . session ) {
782783 return ;
783784 }
@@ -797,7 +798,7 @@ export class ReplayContainer implements ReplayContainerInterface {
797798 /**
798799 * Tasks to run when we consider a page to be visible (via focus and/or visibility)
799800 */
800- private _doChangeToForegroundTasks ( breadcrumb ?: Breadcrumb ) : void {
801+ private _doChangeToForegroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
801802 if ( ! this . session ) {
802803 return ;
803804 }
@@ -850,7 +851,7 @@ export class ReplayContainer implements ReplayContainerInterface {
850851 /**
851852 * Helper to create (and buffer) a replay breadcrumb from a core SDK breadcrumb
852853 */
853- private _createCustomBreadcrumb ( breadcrumb : Breadcrumb ) : void {
854+ private _createCustomBreadcrumb ( breadcrumb : BreadcrumbFrame ) : void {
854855 this . addUpdate ( ( ) => {
855856 void this . throttledAddEvent ( {
856857 type : EventType . Custom ,
0 commit comments