-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsession-replay-browser.js
More file actions
93 lines (93 loc) · 2.42 KB
/
Copy pathsession-replay-browser.js
File metadata and controls
93 lines (93 loc) · 2.42 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SnapshotFormat = exports.PlaybackState = exports.ChangeType = exports.MediaInteractionType = exports.MouseInteractionType = exports.IncrementalSource = exports.NodeType = exports.RecordType = exports.BrowserSource = void 0;
__exportStar(require("../generated/browserSessionReplay"), exports);
/**
* For backward compatibility reasons, `undefined` should be accepted as a possible value for Browser segments, too.
**/
exports.BrowserSource = {
Browser: 'browser',
};
exports.RecordType = {
FullSnapshot: 2,
IncrementalSnapshot: 3,
Meta: 4,
Focus: 6,
ViewEnd: 7,
VisualViewport: 8,
FrustrationRecord: 9,
Change: 12,
};
exports.NodeType = {
Document: 0,
DocumentType: 1,
Element: 2,
Text: 3,
CDATA: 4,
DocumentFragment: 11,
};
exports.IncrementalSource = {
Mutation: 0,
MouseMove: 1,
MouseInteraction: 2,
Scroll: 3,
ViewportResize: 4,
Input: 5,
TouchMove: 6,
MediaInteraction: 7,
StyleSheetRule: 8,
PointerInteraction: 9,
// Font : 10,
};
exports.MouseInteractionType = {
MouseUp: 0,
MouseDown: 1,
Click: 2,
ContextMenu: 3,
DblClick: 4,
Focus: 5,
Blur: 6,
TouchStart: 7,
TouchEnd: 9,
};
exports.MediaInteractionType = {
Play: 0,
Pause: 1,
};
exports.ChangeType = {
AddString: 0,
AddNode: 1,
RemoveNode: 2,
Attribute: 3,
Text: 4,
Size: 5,
ScrollPosition: 6,
AddStyleSheet: 7,
AttachedStyleSheets: 8,
MediaPlaybackState: 9,
VisualViewport: 10,
AddStringNamespace: 11,
AddNamespacedString: 12,
};
exports.PlaybackState = {
Playing: 0,
Paused: 1,
};
exports.SnapshotFormat = {
V1: 0,
Change: 1,
};