File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 11export { Replay } from './integration' ;
22export type {
3+ EventType ,
34 eventWithTime ,
45 BreadcrumbFrame ,
56 BreadcrumbFrameEvent ,
Original file line number Diff line number Diff line change 1- import type { EventType } from '@sentry-internal/rrweb' ;
21import type { Breadcrumb } from '@sentry/types' ;
32
43import type {
@@ -10,6 +9,7 @@ import type {
109 PaintData ,
1110 ResourceData ,
1211} from './performance' ;
12+ import type { EventType } from './rrweb' ;
1313
1414interface BaseBreadcrumbFrame {
1515 timestamp : number ;
Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/naming-convention */
22
3- import type { EventType } from '@sentry-internal/rrweb' ;
4-
53type blockClass = string | RegExp ;
64type maskTextClass = string | RegExp ;
75
6+ /** Duplicate this from @sentry-internal/rrweb so we can export this as well. */
7+ export enum EventType {
8+ DomContentLoaded = 0 ,
9+ Load = 1 ,
10+ FullSnapshot = 2 ,
11+ IncrementalSnapshot = 3 ,
12+ Meta = 4 ,
13+ Custom = 5 ,
14+ Plugin = 6 ,
15+ }
16+
817/**
918 * This is a partial copy of rrweb's eventWithTime type which only contains the properties
1019 * we specifcally need in the SDK.
Original file line number Diff line number Diff line change 1- import type { EventType } from '@sentry-internal/rrweb' ;
21import * as SentryCore from '@sentry/core' ;
32import type { Transport } from '@sentry/types' ;
43import * as SentryUtils from '@sentry/utils' ;
54
65import type { Replay } from '../../src' ;
76import type { ReplayContainer } from '../../src/replay' ;
87import { clearSession } from '../../src/session/clearSession' ;
8+ import type { EventType } from '../../src/types' ;
99import * as SendReplayRequest from '../../src/util/sendReplayRequest' ;
1010import { BASE_TIMESTAMP , mockRrweb , mockSdk } from '../index' ;
1111import { useFakeTimers } from '../utils/use-fake-timers' ;
You can’t perform that action at this time.
0 commit comments