-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsession-replay.ts
More file actions
76 lines (66 loc) · 2.23 KB
/
Copy pathsession-replay.ts
File metadata and controls
76 lines (66 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import type {
IncrementalSource as BrowserIncrementalSource,
RecordType as BrowserRecordType,
} from './session-replay-browser'
import type {
IncrementalSource as MobileIncrementalSource,
RecordType as MobileRecordType,
} from './session-replay-mobile'
export * from '../generated/sessionReplay'
export {
BrowserSource,
ChangeType as BrowserChangeType,
NodeType,
IncrementalSource as BrowserIncrementalSource,
MouseInteractionType,
MediaInteractionType,
PlaybackState,
SnapshotFormat,
} from './session-replay-browser'
export {
CompositeOperation,
IncrementalSource as MobileIncrementalSource,
MobileSource,
WireframeType,
} from './session-replay-mobile'
export const RecordType: {
BrowserFullSnapshot: typeof BrowserRecordType.FullSnapshot
BrowserIncrementalSnapshot: typeof BrowserRecordType.IncrementalSnapshot
Meta: typeof BrowserRecordType.Meta
Focus: typeof BrowserRecordType.Focus
ViewEnd: typeof BrowserRecordType.ViewEnd
VisualViewport: typeof BrowserRecordType.VisualViewport
FrustrationRecord: typeof BrowserRecordType.FrustrationRecord
MobileFullSnapshot: typeof MobileRecordType.FullSnapshot
MobileIncrementalSnapshot: typeof MobileRecordType.IncrementalSnapshot
BrowserChange: typeof BrowserRecordType.Change
} = {
BrowserFullSnapshot: 2,
BrowserIncrementalSnapshot: 3,
Meta: 4,
Focus: 6,
ViewEnd: 7,
VisualViewport: 8,
FrustrationRecord: 9,
MobileFullSnapshot: 10,
MobileIncrementalSnapshot: 11,
BrowserChange: 12,
} as const
export type RecordType = (typeof RecordType)[keyof typeof RecordType]
export type IncrementalSource = BrowserIncrementalSource | MobileIncrementalSource
export const PointerEventType = {
PointerDown: 'down',
PointerUp: 'up',
PointerMove: 'move',
} as const
export type PointerEventType = (typeof PointerEventType)[keyof typeof PointerEventType]
export const PointerType = {
Mouse: 'mouse',
Touch: 'touch',
Pen: 'pen',
} as const
export type PointerType = (typeof PointerType)[keyof typeof PointerType]
export type NodeId = number & { __brand: 'NodeId' }
export type StringId = number & { __brand: 'StringId' }
export type StringNamespaceId = number & { __brand: 'StringNamespaceId' }
export type StyleSheetId = number & { __brand: 'StyleSheetId' }