@@ -25,19 +25,20 @@ import type {
2525 AddEventResult ,
2626 AddUpdateCallback ,
2727 AllPerformanceEntry ,
28- BreadcrumbFrame ,
2928 EventBuffer ,
3029 InternalEventContext ,
3130 PopEventContext ,
3231 RecordingEvent ,
3332 RecordingOptions ,
33+ ReplayBreadcrumbFrame ,
3434 ReplayContainer as ReplayContainerInterface ,
3535 ReplayPluginOptions ,
3636 SendBufferedReplayOptions ,
3737 Session ,
3838 SlowClickConfig ,
3939 Timeouts ,
4040} from './types' ;
41+ import { ReplayEventTypeCustom } from './types' ;
4142import { addEvent } from './util/addEvent' ;
4243import { addGlobalListeners } from './util/addGlobalListeners' ;
4344import { addMemoryEntry } from './util/addMemoryEntry' ;
@@ -688,7 +689,7 @@ export class ReplayContainer implements ReplayContainerInterface {
688689
689690 this . addUpdate ( ( ) => {
690691 void addEvent ( this , {
691- type : EventType . Custom ,
692+ type : ReplayEventTypeCustom ,
692693 timestamp : breadcrumb . timestamp || 0 ,
693694 data : {
694695 tag : 'breadcrumb' ,
@@ -919,7 +920,7 @@ export class ReplayContainer implements ReplayContainerInterface {
919920 /**
920921 * Tasks to run when we consider a page to be hidden (via blurring and/or visibility)
921922 */
922- private _doChangeToBackgroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
923+ private _doChangeToBackgroundTasks ( breadcrumb ?: ReplayBreadcrumbFrame ) : void {
923924 if ( ! this . session ) {
924925 return ;
925926 }
@@ -939,7 +940,7 @@ export class ReplayContainer implements ReplayContainerInterface {
939940 /**
940941 * Tasks to run when we consider a page to be visible (via focus and/or visibility)
941942 */
942- private _doChangeToForegroundTasks ( breadcrumb ?: BreadcrumbFrame ) : void {
943+ private _doChangeToForegroundTasks ( breadcrumb ?: ReplayBreadcrumbFrame ) : void {
943944 if ( ! this . session ) {
944945 return ;
945946 }
@@ -992,7 +993,7 @@ export class ReplayContainer implements ReplayContainerInterface {
992993 /**
993994 * Helper to create (and buffer) a replay breadcrumb from a core SDK breadcrumb
994995 */
995- private _createCustomBreadcrumb ( breadcrumb : BreadcrumbFrame ) : void {
996+ private _createCustomBreadcrumb ( breadcrumb : ReplayBreadcrumbFrame ) : void {
996997 this . addUpdate ( ( ) => {
997998 void this . throttledAddEvent ( {
998999 type : EventType . Custom ,
0 commit comments