File tree 4 files changed +14
-4
lines changed
4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
export { Replay } from './integration' ;
2
2
export type {
3
+ EventType ,
3
4
eventWithTime ,
4
5
BreadcrumbFrame ,
5
6
BreadcrumbFrameEvent ,
Original file line number Diff line number Diff line change 1
- import type { EventType } from '@sentry-internal/rrweb' ;
2
1
import type { Breadcrumb } from '@sentry/types' ;
3
2
4
3
import type {
@@ -10,6 +9,7 @@ import type {
10
9
PaintData ,
11
10
ResourceData ,
12
11
} from './performance' ;
12
+ import type { EventType } from './rrweb' ;
13
13
14
14
interface BaseBreadcrumbFrame {
15
15
timestamp : number ;
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/naming-convention */
2
2
3
- import type { EventType } from '@sentry-internal/rrweb' ;
4
-
5
3
type blockClass = string | RegExp ;
6
4
type maskTextClass = string | RegExp ;
7
5
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
+
8
17
/**
9
18
* This is a partial copy of rrweb's eventWithTime type which only contains the properties
10
19
* we specifcally need in the SDK.
Original file line number Diff line number Diff line change 1
- import type { EventType } from '@sentry-internal/rrweb' ;
2
1
import * as SentryCore from '@sentry/core' ;
3
2
import type { Transport } from '@sentry/types' ;
4
3
import * as SentryUtils from '@sentry/utils' ;
5
4
6
5
import type { Replay } from '../../src' ;
7
6
import type { ReplayContainer } from '../../src/replay' ;
8
7
import { clearSession } from '../../src/session/clearSession' ;
8
+ import type { EventType } from '../../src/types' ;
9
9
import * as SendReplayRequest from '../../src/util/sendReplayRequest' ;
10
10
import { BASE_TIMESTAMP , mockRrweb , mockSdk } from '../index' ;
11
11
import { useFakeTimers } from '../utils/use-fake-timers' ;
You can’t perform that action at this time.
0 commit comments