@openreplay/tracker 3.6.0-beta.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/cjs/app/index.d.ts +6 -3
- package/cjs/app/index.js +34 -14
- package/cjs/app/messages.gen.js +55 -56
- package/cjs/app/messages.js +50 -51
- package/cjs/app/nodes.d.ts +1 -1
- package/cjs/app/observer/top_observer.d.ts +3 -1
- package/cjs/app/observer/top_observer.js +8 -2
- package/cjs/app/session.d.ts +4 -2
- package/cjs/app/session.js +13 -3
- package/cjs/common/messages.gen.d.ts +214 -214
- package/cjs/common/messages.gen.js +0 -59
- package/cjs/index.d.ts +3 -2
- package/cjs/index.js +11 -5
- package/cjs/modules/adoptedStyleSheets.js +1 -1
- package/cjs/modules/exception.js +10 -10
- package/lib/app/index.d.ts +6 -3
- package/lib/app/index.js +34 -14
- package/lib/app/messages.gen.js +55 -56
- package/lib/app/messages.js +50 -51
- package/lib/app/nodes.d.ts +1 -1
- package/lib/app/observer/top_observer.d.ts +3 -1
- package/lib/app/observer/top_observer.js +8 -2
- package/lib/app/session.d.ts +4 -2
- package/lib/app/session.js +13 -3
- package/lib/common/messages.gen.d.ts +214 -214
- package/lib/common/messages.gen.js +1 -58
- package/lib/common/tsconfig.tsbuildinfo +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +11 -5
- package/lib/modules/adoptedStyleSheets.js +1 -1
- package/lib/modules/exception.js +10 -10
- package/package.json +1 -1
package/lib/app/messages.gen.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// Auto-generated, do not edit
|
|
2
|
-
import * as Messages from '../common/messages.gen.js';
|
|
3
2
|
export function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
|
|
4
3
|
return [
|
|
5
|
-
|
|
4
|
+
81 /* BatchMetadata */,
|
|
6
5
|
version,
|
|
7
6
|
pageNo,
|
|
8
7
|
firstIndex,
|
|
@@ -12,20 +11,20 @@ export function BatchMetadata(version, pageNo, firstIndex, timestamp, location)
|
|
|
12
11
|
}
|
|
13
12
|
export function PartitionedMessage(partNo, partTotal) {
|
|
14
13
|
return [
|
|
15
|
-
|
|
14
|
+
82 /* PartitionedMessage */,
|
|
16
15
|
partNo,
|
|
17
16
|
partTotal,
|
|
18
17
|
];
|
|
19
18
|
}
|
|
20
19
|
export function Timestamp(timestamp) {
|
|
21
20
|
return [
|
|
22
|
-
|
|
21
|
+
0 /* Timestamp */,
|
|
23
22
|
timestamp,
|
|
24
23
|
];
|
|
25
24
|
}
|
|
26
25
|
export function SetPageLocation(url, referrer, navigationStart) {
|
|
27
26
|
return [
|
|
28
|
-
|
|
27
|
+
4 /* SetPageLocation */,
|
|
29
28
|
url,
|
|
30
29
|
referrer,
|
|
31
30
|
navigationStart,
|
|
@@ -33,26 +32,26 @@ export function SetPageLocation(url, referrer, navigationStart) {
|
|
|
33
32
|
}
|
|
34
33
|
export function SetViewportSize(width, height) {
|
|
35
34
|
return [
|
|
36
|
-
|
|
35
|
+
5 /* SetViewportSize */,
|
|
37
36
|
width,
|
|
38
37
|
height,
|
|
39
38
|
];
|
|
40
39
|
}
|
|
41
40
|
export function SetViewportScroll(x, y) {
|
|
42
41
|
return [
|
|
43
|
-
|
|
42
|
+
6 /* SetViewportScroll */,
|
|
44
43
|
x,
|
|
45
44
|
y,
|
|
46
45
|
];
|
|
47
46
|
}
|
|
48
47
|
export function CreateDocument() {
|
|
49
48
|
return [
|
|
50
|
-
|
|
49
|
+
7 /* CreateDocument */,
|
|
51
50
|
];
|
|
52
51
|
}
|
|
53
52
|
export function CreateElementNode(id, parentID, index, tag, svg) {
|
|
54
53
|
return [
|
|
55
|
-
|
|
54
|
+
8 /* CreateElementNode */,
|
|
56
55
|
id,
|
|
57
56
|
parentID,
|
|
58
57
|
index,
|
|
@@ -62,7 +61,7 @@ export function CreateElementNode(id, parentID, index, tag, svg) {
|
|
|
62
61
|
}
|
|
63
62
|
export function CreateTextNode(id, parentID, index) {
|
|
64
63
|
return [
|
|
65
|
-
|
|
64
|
+
9 /* CreateTextNode */,
|
|
66
65
|
id,
|
|
67
66
|
parentID,
|
|
68
67
|
index,
|
|
@@ -70,7 +69,7 @@ export function CreateTextNode(id, parentID, index) {
|
|
|
70
69
|
}
|
|
71
70
|
export function MoveNode(id, parentID, index) {
|
|
72
71
|
return [
|
|
73
|
-
|
|
72
|
+
10 /* MoveNode */,
|
|
74
73
|
id,
|
|
75
74
|
parentID,
|
|
76
75
|
index,
|
|
@@ -78,13 +77,13 @@ export function MoveNode(id, parentID, index) {
|
|
|
78
77
|
}
|
|
79
78
|
export function RemoveNode(id) {
|
|
80
79
|
return [
|
|
81
|
-
|
|
80
|
+
11 /* RemoveNode */,
|
|
82
81
|
id,
|
|
83
82
|
];
|
|
84
83
|
}
|
|
85
84
|
export function SetNodeAttribute(id, name, value) {
|
|
86
85
|
return [
|
|
87
|
-
|
|
86
|
+
12 /* SetNodeAttribute */,
|
|
88
87
|
id,
|
|
89
88
|
name,
|
|
90
89
|
value,
|
|
@@ -92,21 +91,21 @@ export function SetNodeAttribute(id, name, value) {
|
|
|
92
91
|
}
|
|
93
92
|
export function RemoveNodeAttribute(id, name) {
|
|
94
93
|
return [
|
|
95
|
-
|
|
94
|
+
13 /* RemoveNodeAttribute */,
|
|
96
95
|
id,
|
|
97
96
|
name,
|
|
98
97
|
];
|
|
99
98
|
}
|
|
100
99
|
export function SetNodeData(id, data) {
|
|
101
100
|
return [
|
|
102
|
-
|
|
101
|
+
14 /* SetNodeData */,
|
|
103
102
|
id,
|
|
104
103
|
data,
|
|
105
104
|
];
|
|
106
105
|
}
|
|
107
106
|
export function SetNodeScroll(id, x, y) {
|
|
108
107
|
return [
|
|
109
|
-
|
|
108
|
+
16 /* SetNodeScroll */,
|
|
110
109
|
id,
|
|
111
110
|
x,
|
|
112
111
|
y,
|
|
@@ -114,14 +113,14 @@ export function SetNodeScroll(id, x, y) {
|
|
|
114
113
|
}
|
|
115
114
|
export function SetInputTarget(id, label) {
|
|
116
115
|
return [
|
|
117
|
-
|
|
116
|
+
17 /* SetInputTarget */,
|
|
118
117
|
id,
|
|
119
118
|
label,
|
|
120
119
|
];
|
|
121
120
|
}
|
|
122
121
|
export function SetInputValue(id, value, mask) {
|
|
123
122
|
return [
|
|
124
|
-
|
|
123
|
+
18 /* SetInputValue */,
|
|
125
124
|
id,
|
|
126
125
|
value,
|
|
127
126
|
mask,
|
|
@@ -129,28 +128,28 @@ export function SetInputValue(id, value, mask) {
|
|
|
129
128
|
}
|
|
130
129
|
export function SetInputChecked(id, checked) {
|
|
131
130
|
return [
|
|
132
|
-
|
|
131
|
+
19 /* SetInputChecked */,
|
|
133
132
|
id,
|
|
134
133
|
checked,
|
|
135
134
|
];
|
|
136
135
|
}
|
|
137
136
|
export function MouseMove(x, y) {
|
|
138
137
|
return [
|
|
139
|
-
|
|
138
|
+
20 /* MouseMove */,
|
|
140
139
|
x,
|
|
141
140
|
y,
|
|
142
141
|
];
|
|
143
142
|
}
|
|
144
143
|
export function ConsoleLog(level, value) {
|
|
145
144
|
return [
|
|
146
|
-
|
|
145
|
+
22 /* ConsoleLog */,
|
|
147
146
|
level,
|
|
148
147
|
value,
|
|
149
148
|
];
|
|
150
149
|
}
|
|
151
150
|
export function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoadedEventStart, domContentLoadedEventEnd, loadEventStart, loadEventEnd, firstPaint, firstContentfulPaint) {
|
|
152
151
|
return [
|
|
153
|
-
|
|
152
|
+
23 /* PageLoadTiming */,
|
|
154
153
|
requestStart,
|
|
155
154
|
responseStart,
|
|
156
155
|
responseEnd,
|
|
@@ -164,7 +163,7 @@ export function PageLoadTiming(requestStart, responseStart, responseEnd, domCont
|
|
|
164
163
|
}
|
|
165
164
|
export function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
|
|
166
165
|
return [
|
|
167
|
-
|
|
166
|
+
24 /* PageRenderTiming */,
|
|
168
167
|
speedIndex,
|
|
169
168
|
visuallyComplete,
|
|
170
169
|
timeToInteractive,
|
|
@@ -172,7 +171,7 @@ export function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive
|
|
|
172
171
|
}
|
|
173
172
|
export function JSException(name, message, payload) {
|
|
174
173
|
return [
|
|
175
|
-
|
|
174
|
+
25 /* JSException */,
|
|
176
175
|
name,
|
|
177
176
|
message,
|
|
178
177
|
payload,
|
|
@@ -180,33 +179,33 @@ export function JSException(name, message, payload) {
|
|
|
180
179
|
}
|
|
181
180
|
export function RawCustomEvent(name, payload) {
|
|
182
181
|
return [
|
|
183
|
-
|
|
182
|
+
27 /* RawCustomEvent */,
|
|
184
183
|
name,
|
|
185
184
|
payload,
|
|
186
185
|
];
|
|
187
186
|
}
|
|
188
187
|
export function UserID(id) {
|
|
189
188
|
return [
|
|
190
|
-
|
|
189
|
+
28 /* UserID */,
|
|
191
190
|
id,
|
|
192
191
|
];
|
|
193
192
|
}
|
|
194
193
|
export function UserAnonymousID(id) {
|
|
195
194
|
return [
|
|
196
|
-
|
|
195
|
+
29 /* UserAnonymousID */,
|
|
197
196
|
id,
|
|
198
197
|
];
|
|
199
198
|
}
|
|
200
199
|
export function Metadata(key, value) {
|
|
201
200
|
return [
|
|
202
|
-
|
|
201
|
+
30 /* Metadata */,
|
|
203
202
|
key,
|
|
204
203
|
value,
|
|
205
204
|
];
|
|
206
205
|
}
|
|
207
206
|
export function CSSInsertRule(id, rule, index) {
|
|
208
207
|
return [
|
|
209
|
-
|
|
208
|
+
37 /* CSSInsertRule */,
|
|
210
209
|
id,
|
|
211
210
|
rule,
|
|
212
211
|
index,
|
|
@@ -214,14 +213,14 @@ export function CSSInsertRule(id, rule, index) {
|
|
|
214
213
|
}
|
|
215
214
|
export function CSSDeleteRule(id, index) {
|
|
216
215
|
return [
|
|
217
|
-
|
|
216
|
+
38 /* CSSDeleteRule */,
|
|
218
217
|
id,
|
|
219
218
|
index,
|
|
220
219
|
];
|
|
221
220
|
}
|
|
222
221
|
export function Fetch(method, url, request, response, status, timestamp, duration) {
|
|
223
222
|
return [
|
|
224
|
-
|
|
223
|
+
39 /* Fetch */,
|
|
225
224
|
method,
|
|
226
225
|
url,
|
|
227
226
|
request,
|
|
@@ -233,7 +232,7 @@ export function Fetch(method, url, request, response, status, timestamp, duratio
|
|
|
233
232
|
}
|
|
234
233
|
export function Profiler(name, duration, args, result) {
|
|
235
234
|
return [
|
|
236
|
-
|
|
235
|
+
40 /* Profiler */,
|
|
237
236
|
name,
|
|
238
237
|
duration,
|
|
239
238
|
args,
|
|
@@ -242,20 +241,20 @@ export function Profiler(name, duration, args, result) {
|
|
|
242
241
|
}
|
|
243
242
|
export function OTable(key, value) {
|
|
244
243
|
return [
|
|
245
|
-
|
|
244
|
+
41 /* OTable */,
|
|
246
245
|
key,
|
|
247
246
|
value,
|
|
248
247
|
];
|
|
249
248
|
}
|
|
250
249
|
export function StateAction(type) {
|
|
251
250
|
return [
|
|
252
|
-
|
|
251
|
+
42 /* StateAction */,
|
|
253
252
|
type,
|
|
254
253
|
];
|
|
255
254
|
}
|
|
256
255
|
export function Redux(action, state, duration) {
|
|
257
256
|
return [
|
|
258
|
-
|
|
257
|
+
44 /* Redux */,
|
|
259
258
|
action,
|
|
260
259
|
state,
|
|
261
260
|
duration,
|
|
@@ -263,21 +262,21 @@ export function Redux(action, state, duration) {
|
|
|
263
262
|
}
|
|
264
263
|
export function Vuex(mutation, state) {
|
|
265
264
|
return [
|
|
266
|
-
|
|
265
|
+
45 /* Vuex */,
|
|
267
266
|
mutation,
|
|
268
267
|
state,
|
|
269
268
|
];
|
|
270
269
|
}
|
|
271
270
|
export function MobX(type, payload) {
|
|
272
271
|
return [
|
|
273
|
-
|
|
272
|
+
46 /* MobX */,
|
|
274
273
|
type,
|
|
275
274
|
payload,
|
|
276
275
|
];
|
|
277
276
|
}
|
|
278
277
|
export function NgRx(action, state, duration) {
|
|
279
278
|
return [
|
|
280
|
-
|
|
279
|
+
47 /* NgRx */,
|
|
281
280
|
action,
|
|
282
281
|
state,
|
|
283
282
|
duration,
|
|
@@ -285,7 +284,7 @@ export function NgRx(action, state, duration) {
|
|
|
285
284
|
}
|
|
286
285
|
export function GraphQL(operationKind, operationName, variables, response) {
|
|
287
286
|
return [
|
|
288
|
-
|
|
287
|
+
48 /* GraphQL */,
|
|
289
288
|
operationKind,
|
|
290
289
|
operationName,
|
|
291
290
|
variables,
|
|
@@ -294,7 +293,7 @@ export function GraphQL(operationKind, operationName, variables, response) {
|
|
|
294
293
|
}
|
|
295
294
|
export function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
|
|
296
295
|
return [
|
|
297
|
-
|
|
296
|
+
49 /* PerformanceTrack */,
|
|
298
297
|
frames,
|
|
299
298
|
ticks,
|
|
300
299
|
totalJSHeapSize,
|
|
@@ -303,7 +302,7 @@ export function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize)
|
|
|
303
302
|
}
|
|
304
303
|
export function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize, decodedBodySize, url, initiator) {
|
|
305
304
|
return [
|
|
306
|
-
|
|
305
|
+
53 /* ResourceTiming */,
|
|
307
306
|
timestamp,
|
|
308
307
|
duration,
|
|
309
308
|
ttfb,
|
|
@@ -316,20 +315,20 @@ export function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBod
|
|
|
316
315
|
}
|
|
317
316
|
export function ConnectionInformation(downlink, type) {
|
|
318
317
|
return [
|
|
319
|
-
|
|
318
|
+
54 /* ConnectionInformation */,
|
|
320
319
|
downlink,
|
|
321
320
|
type,
|
|
322
321
|
];
|
|
323
322
|
}
|
|
324
323
|
export function SetPageVisibility(hidden) {
|
|
325
324
|
return [
|
|
326
|
-
|
|
325
|
+
55 /* SetPageVisibility */,
|
|
327
326
|
hidden,
|
|
328
327
|
];
|
|
329
328
|
}
|
|
330
329
|
export function LongTask(timestamp, duration, context, containerType, containerSrc, containerId, containerName) {
|
|
331
330
|
return [
|
|
332
|
-
|
|
331
|
+
59 /* LongTask */,
|
|
333
332
|
timestamp,
|
|
334
333
|
duration,
|
|
335
334
|
context,
|
|
@@ -341,7 +340,7 @@ export function LongTask(timestamp, duration, context, containerType, containerS
|
|
|
341
340
|
}
|
|
342
341
|
export function SetNodeAttributeURLBased(id, name, value, baseURL) {
|
|
343
342
|
return [
|
|
344
|
-
|
|
343
|
+
60 /* SetNodeAttributeURLBased */,
|
|
345
344
|
id,
|
|
346
345
|
name,
|
|
347
346
|
value,
|
|
@@ -350,7 +349,7 @@ export function SetNodeAttributeURLBased(id, name, value, baseURL) {
|
|
|
350
349
|
}
|
|
351
350
|
export function SetCSSDataURLBased(id, data, baseURL) {
|
|
352
351
|
return [
|
|
353
|
-
|
|
352
|
+
61 /* SetCSSDataURLBased */,
|
|
354
353
|
id,
|
|
355
354
|
data,
|
|
356
355
|
baseURL,
|
|
@@ -358,21 +357,21 @@ export function SetCSSDataURLBased(id, data, baseURL) {
|
|
|
358
357
|
}
|
|
359
358
|
export function TechnicalInfo(type, value) {
|
|
360
359
|
return [
|
|
361
|
-
|
|
360
|
+
63 /* TechnicalInfo */,
|
|
362
361
|
type,
|
|
363
362
|
value,
|
|
364
363
|
];
|
|
365
364
|
}
|
|
366
365
|
export function CustomIssue(name, payload) {
|
|
367
366
|
return [
|
|
368
|
-
|
|
367
|
+
64 /* CustomIssue */,
|
|
369
368
|
name,
|
|
370
369
|
payload,
|
|
371
370
|
];
|
|
372
371
|
}
|
|
373
372
|
export function CSSInsertRuleURLBased(id, rule, index, baseURL) {
|
|
374
373
|
return [
|
|
375
|
-
|
|
374
|
+
67 /* CSSInsertRuleURLBased */,
|
|
376
375
|
id,
|
|
377
376
|
rule,
|
|
378
377
|
index,
|
|
@@ -381,7 +380,7 @@ export function CSSInsertRuleURLBased(id, rule, index, baseURL) {
|
|
|
381
380
|
}
|
|
382
381
|
export function MouseClick(id, hesitationTime, label, selector) {
|
|
383
382
|
return [
|
|
384
|
-
|
|
383
|
+
69 /* MouseClick */,
|
|
385
384
|
id,
|
|
386
385
|
hesitationTime,
|
|
387
386
|
label,
|
|
@@ -390,14 +389,14 @@ export function MouseClick(id, hesitationTime, label, selector) {
|
|
|
390
389
|
}
|
|
391
390
|
export function CreateIFrameDocument(frameID, id) {
|
|
392
391
|
return [
|
|
393
|
-
|
|
392
|
+
70 /* CreateIFrameDocument */,
|
|
394
393
|
frameID,
|
|
395
394
|
id,
|
|
396
395
|
];
|
|
397
396
|
}
|
|
398
397
|
export function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
|
|
399
398
|
return [
|
|
400
|
-
|
|
399
|
+
71 /* AdoptedSSReplaceURLBased */,
|
|
401
400
|
sheetID,
|
|
402
401
|
text,
|
|
403
402
|
baseURL,
|
|
@@ -405,7 +404,7 @@ export function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
|
|
|
405
404
|
}
|
|
406
405
|
export function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
|
|
407
406
|
return [
|
|
408
|
-
|
|
407
|
+
73 /* AdoptedSSInsertRuleURLBased */,
|
|
409
408
|
sheetID,
|
|
410
409
|
rule,
|
|
411
410
|
index,
|
|
@@ -414,21 +413,21 @@ export function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
|
|
|
414
413
|
}
|
|
415
414
|
export function AdoptedSSDeleteRule(sheetID, index) {
|
|
416
415
|
return [
|
|
417
|
-
|
|
416
|
+
75 /* AdoptedSSDeleteRule */,
|
|
418
417
|
sheetID,
|
|
419
418
|
index,
|
|
420
419
|
];
|
|
421
420
|
}
|
|
422
421
|
export function AdoptedSSAddOwner(sheetID, id) {
|
|
423
422
|
return [
|
|
424
|
-
|
|
423
|
+
76 /* AdoptedSSAddOwner */,
|
|
425
424
|
sheetID,
|
|
426
425
|
id,
|
|
427
426
|
];
|
|
428
427
|
}
|
|
429
428
|
export function AdoptedSSRemoveOwner(sheetID, id) {
|
|
430
429
|
return [
|
|
431
|
-
|
|
430
|
+
77 /* AdoptedSSRemoveOwner */,
|
|
432
431
|
sheetID,
|
|
433
432
|
id,
|
|
434
433
|
];
|
package/lib/app/messages.js
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
1
|
// Auto-generated, do not edit
|
|
2
|
-
import * as Messages from '../common/messages.gen.js';
|
|
3
2
|
export function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
|
|
4
|
-
return [
|
|
3
|
+
return [81 /* BatchMetadata */, version, pageNo, firstIndex, timestamp, location];
|
|
5
4
|
}
|
|
6
5
|
export function PartitionedMessage(partNo, partTotal) {
|
|
7
|
-
return [
|
|
6
|
+
return [82 /* PartitionedMessage */, partNo, partTotal];
|
|
8
7
|
}
|
|
9
8
|
export function Timestamp(timestamp) {
|
|
10
|
-
return [
|
|
9
|
+
return [0 /* Timestamp */, timestamp];
|
|
11
10
|
}
|
|
12
11
|
export function SetPageLocation(url, referrer, navigationStart) {
|
|
13
|
-
return [
|
|
12
|
+
return [4 /* SetPageLocation */, url, referrer, navigationStart];
|
|
14
13
|
}
|
|
15
14
|
export function SetViewportSize(width, height) {
|
|
16
|
-
return [
|
|
15
|
+
return [5 /* SetViewportSize */, width, height];
|
|
17
16
|
}
|
|
18
17
|
export function SetViewportScroll(x, y) {
|
|
19
|
-
return [
|
|
18
|
+
return [6 /* SetViewportScroll */, x, y];
|
|
20
19
|
}
|
|
21
20
|
export function CreateDocument() {
|
|
22
|
-
return [
|
|
21
|
+
return [7 /* CreateDocument */];
|
|
23
22
|
}
|
|
24
23
|
export function CreateElementNode(id, parentID, index, tag, svg) {
|
|
25
|
-
return [
|
|
24
|
+
return [8 /* CreateElementNode */, id, parentID, index, tag, svg];
|
|
26
25
|
}
|
|
27
26
|
export function CreateTextNode(id, parentID, index) {
|
|
28
|
-
return [
|
|
27
|
+
return [9 /* CreateTextNode */, id, parentID, index];
|
|
29
28
|
}
|
|
30
29
|
export function MoveNode(id, parentID, index) {
|
|
31
|
-
return [
|
|
30
|
+
return [10 /* MoveNode */, id, parentID, index];
|
|
32
31
|
}
|
|
33
32
|
export function RemoveNode(id) {
|
|
34
|
-
return [
|
|
33
|
+
return [11 /* RemoveNode */, id];
|
|
35
34
|
}
|
|
36
35
|
export function SetNodeAttribute(id, name, value) {
|
|
37
|
-
return [
|
|
36
|
+
return [12 /* SetNodeAttribute */, id, name, value];
|
|
38
37
|
}
|
|
39
38
|
export function RemoveNodeAttribute(id, name) {
|
|
40
|
-
return [
|
|
39
|
+
return [13 /* RemoveNodeAttribute */, id, name];
|
|
41
40
|
}
|
|
42
41
|
export function SetNodeData(id, data) {
|
|
43
|
-
return [
|
|
42
|
+
return [14 /* SetNodeData */, id, data];
|
|
44
43
|
}
|
|
45
44
|
export function SetNodeScroll(id, x, y) {
|
|
46
|
-
return [
|
|
45
|
+
return [16 /* SetNodeScroll */, id, x, y];
|
|
47
46
|
}
|
|
48
47
|
export function SetInputTarget(id, label) {
|
|
49
|
-
return [
|
|
48
|
+
return [17 /* SetInputTarget */, id, label];
|
|
50
49
|
}
|
|
51
50
|
export function SetInputValue(id, value, mask) {
|
|
52
|
-
return [
|
|
51
|
+
return [18 /* SetInputValue */, id, value, mask];
|
|
53
52
|
}
|
|
54
53
|
export function SetInputChecked(id, checked) {
|
|
55
|
-
return [
|
|
54
|
+
return [19 /* SetInputChecked */, id, checked];
|
|
56
55
|
}
|
|
57
56
|
export function MouseMove(x, y) {
|
|
58
|
-
return [
|
|
57
|
+
return [20 /* MouseMove */, x, y];
|
|
59
58
|
}
|
|
60
59
|
export function ConsoleLog(level, value) {
|
|
61
|
-
return [
|
|
60
|
+
return [22 /* ConsoleLog */, level, value];
|
|
62
61
|
}
|
|
63
62
|
export function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoadedEventStart, domContentLoadedEventEnd, loadEventStart, loadEventEnd, firstPaint, firstContentfulPaint) {
|
|
64
63
|
return [
|
|
65
|
-
|
|
64
|
+
23 /* PageLoadTiming */,
|
|
66
65
|
requestStart,
|
|
67
66
|
responseStart,
|
|
68
67
|
responseEnd,
|
|
@@ -75,62 +74,62 @@ export function PageLoadTiming(requestStart, responseStart, responseEnd, domCont
|
|
|
75
74
|
];
|
|
76
75
|
}
|
|
77
76
|
export function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
|
|
78
|
-
return [
|
|
77
|
+
return [24 /* PageRenderTiming */, speedIndex, visuallyComplete, timeToInteractive];
|
|
79
78
|
}
|
|
80
79
|
export function JSException(name, message, payload) {
|
|
81
|
-
return [
|
|
80
|
+
return [25 /* JSException */, name, message, payload];
|
|
82
81
|
}
|
|
83
82
|
export function RawCustomEvent(name, payload) {
|
|
84
|
-
return [
|
|
83
|
+
return [27 /* RawCustomEvent */, name, payload];
|
|
85
84
|
}
|
|
86
85
|
export function UserID(id) {
|
|
87
|
-
return [
|
|
86
|
+
return [28 /* UserID */, id];
|
|
88
87
|
}
|
|
89
88
|
export function UserAnonymousID(id) {
|
|
90
|
-
return [
|
|
89
|
+
return [29 /* UserAnonymousID */, id];
|
|
91
90
|
}
|
|
92
91
|
export function Metadata(key, value) {
|
|
93
|
-
return [
|
|
92
|
+
return [30 /* Metadata */, key, value];
|
|
94
93
|
}
|
|
95
94
|
export function CSSInsertRule(id, rule, index) {
|
|
96
|
-
return [
|
|
95
|
+
return [37 /* CSSInsertRule */, id, rule, index];
|
|
97
96
|
}
|
|
98
97
|
export function CSSDeleteRule(id, index) {
|
|
99
|
-
return [
|
|
98
|
+
return [38 /* CSSDeleteRule */, id, index];
|
|
100
99
|
}
|
|
101
100
|
export function Fetch(method, url, request, response, status, timestamp, duration) {
|
|
102
|
-
return [
|
|
101
|
+
return [39 /* Fetch */, method, url, request, response, status, timestamp, duration];
|
|
103
102
|
}
|
|
104
103
|
export function Profiler(name, duration, args, result) {
|
|
105
|
-
return [
|
|
104
|
+
return [40 /* Profiler */, name, duration, args, result];
|
|
106
105
|
}
|
|
107
106
|
export function OTable(key, value) {
|
|
108
|
-
return [
|
|
107
|
+
return [41 /* OTable */, key, value];
|
|
109
108
|
}
|
|
110
109
|
export function StateAction(type) {
|
|
111
|
-
return [
|
|
110
|
+
return [42 /* StateAction */, type];
|
|
112
111
|
}
|
|
113
112
|
export function Redux(action, state, duration) {
|
|
114
|
-
return [
|
|
113
|
+
return [44 /* Redux */, action, state, duration];
|
|
115
114
|
}
|
|
116
115
|
export function Vuex(mutation, state) {
|
|
117
|
-
return [
|
|
116
|
+
return [45 /* Vuex */, mutation, state];
|
|
118
117
|
}
|
|
119
118
|
export function MobX(type, payload) {
|
|
120
|
-
return [
|
|
119
|
+
return [46 /* MobX */, type, payload];
|
|
121
120
|
}
|
|
122
121
|
export function NgRx(action, state, duration) {
|
|
123
|
-
return [
|
|
122
|
+
return [47 /* NgRx */, action, state, duration];
|
|
124
123
|
}
|
|
125
124
|
export function GraphQL(operationKind, operationName, variables, response) {
|
|
126
|
-
return [
|
|
125
|
+
return [48 /* GraphQL */, operationKind, operationName, variables, response];
|
|
127
126
|
}
|
|
128
127
|
export function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
|
|
129
|
-
return [
|
|
128
|
+
return [49 /* PerformanceTrack */, frames, ticks, totalJSHeapSize, usedJSHeapSize];
|
|
130
129
|
}
|
|
131
130
|
export function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize, decodedBodySize, url, initiator) {
|
|
132
131
|
return [
|
|
133
|
-
|
|
132
|
+
53 /* ResourceTiming */,
|
|
134
133
|
timestamp,
|
|
135
134
|
duration,
|
|
136
135
|
ttfb,
|
|
@@ -142,14 +141,14 @@ export function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBod
|
|
|
142
141
|
];
|
|
143
142
|
}
|
|
144
143
|
export function ConnectionInformation(downlink, type) {
|
|
145
|
-
return [
|
|
144
|
+
return [54 /* ConnectionInformation */, downlink, type];
|
|
146
145
|
}
|
|
147
146
|
export function SetPageVisibility(hidden) {
|
|
148
|
-
return [
|
|
147
|
+
return [55 /* SetPageVisibility */, hidden];
|
|
149
148
|
}
|
|
150
149
|
export function LongTask(timestamp, duration, context, containerType, containerSrc, containerId, containerName) {
|
|
151
150
|
return [
|
|
152
|
-
|
|
151
|
+
59 /* LongTask */,
|
|
153
152
|
timestamp,
|
|
154
153
|
duration,
|
|
155
154
|
context,
|
|
@@ -160,23 +159,23 @@ export function LongTask(timestamp, duration, context, containerType, containerS
|
|
|
160
159
|
];
|
|
161
160
|
}
|
|
162
161
|
export function SetNodeAttributeURLBased(id, name, value, baseURL) {
|
|
163
|
-
return [
|
|
162
|
+
return [60 /* SetNodeAttributeURLBased */, id, name, value, baseURL];
|
|
164
163
|
}
|
|
165
164
|
export function SetCSSDataURLBased(id, data, baseURL) {
|
|
166
|
-
return [
|
|
165
|
+
return [61 /* SetCSSDataURLBased */, id, data, baseURL];
|
|
167
166
|
}
|
|
168
167
|
export function TechnicalInfo(type, value) {
|
|
169
|
-
return [
|
|
168
|
+
return [63 /* TechnicalInfo */, type, value];
|
|
170
169
|
}
|
|
171
170
|
export function CustomIssue(name, payload) {
|
|
172
|
-
return [
|
|
171
|
+
return [64 /* CustomIssue */, name, payload];
|
|
173
172
|
}
|
|
174
173
|
export function CSSInsertRuleURLBased(id, rule, index, baseURL) {
|
|
175
|
-
return [
|
|
174
|
+
return [67 /* CSSInsertRuleURLBased */, id, rule, index, baseURL];
|
|
176
175
|
}
|
|
177
176
|
export function MouseClick(id, hesitationTime, label, selector) {
|
|
178
|
-
return [
|
|
177
|
+
return [69 /* MouseClick */, id, hesitationTime, label, selector];
|
|
179
178
|
}
|
|
180
179
|
export function CreateIFrameDocument(frameID, id) {
|
|
181
|
-
return [
|
|
180
|
+
return [70 /* CreateIFrameDocument */, frameID, id];
|
|
182
181
|
}
|
package/lib/app/nodes.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export default class Nodes {
|
|
|
7
7
|
constructor(node_id: string);
|
|
8
8
|
attachNodeCallback(nodeCallback: NodeCallback): void;
|
|
9
9
|
attachElementListener(type: string, node: Element, elementListener: EventListener): void;
|
|
10
|
-
registerNode(node: Node): [id
|
|
10
|
+
registerNode(node: Node): [/*id:*/ number, /*isNew:*/ boolean];
|
|
11
11
|
unregisterNode(node: Node): number | undefined;
|
|
12
12
|
cleanTree(): void;
|
|
13
13
|
callNodeCallbacks(node: Node, isStart: boolean): void;
|