@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.
@@ -3,10 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CreateIFrameDocument = exports.MouseClick = exports.CSSInsertRuleURLBased = exports.CustomIssue = exports.TechnicalInfo = exports.SetCSSDataURLBased = exports.SetNodeAttributeURLBased = exports.LongTask = exports.SetPageVisibility = exports.ConnectionInformation = exports.ResourceTiming = exports.PerformanceTrack = exports.GraphQL = exports.NgRx = exports.MobX = exports.Vuex = exports.Redux = exports.StateAction = exports.OTable = exports.Profiler = exports.Fetch = exports.CSSDeleteRule = exports.CSSInsertRule = exports.Metadata = exports.UserAnonymousID = exports.UserID = exports.RawCustomEvent = exports.JSException = exports.PageRenderTiming = exports.PageLoadTiming = exports.ConsoleLog = exports.MouseMove = exports.SetInputChecked = exports.SetInputValue = exports.SetInputTarget = exports.SetNodeScroll = exports.SetNodeData = exports.RemoveNodeAttribute = exports.SetNodeAttribute = exports.RemoveNode = exports.MoveNode = exports.CreateTextNode = exports.CreateElementNode = exports.CreateDocument = exports.SetViewportScroll = exports.SetViewportSize = exports.SetPageLocation = exports.Timestamp = exports.PartitionedMessage = exports.BatchMetadata = void 0;
5
5
  exports.AdoptedSSRemoveOwner = exports.AdoptedSSAddOwner = exports.AdoptedSSDeleteRule = exports.AdoptedSSInsertRuleURLBased = exports.AdoptedSSReplaceURLBased = void 0;
6
- const Messages = require("../common/messages.gen.js");
7
6
  function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
8
7
  return [
9
- Messages.Type.BatchMetadata,
8
+ 81 /* BatchMetadata */,
10
9
  version,
11
10
  pageNo,
12
11
  firstIndex,
@@ -17,7 +16,7 @@ function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
17
16
  exports.BatchMetadata = BatchMetadata;
18
17
  function PartitionedMessage(partNo, partTotal) {
19
18
  return [
20
- Messages.Type.PartitionedMessage,
19
+ 82 /* PartitionedMessage */,
21
20
  partNo,
22
21
  partTotal,
23
22
  ];
@@ -25,14 +24,14 @@ function PartitionedMessage(partNo, partTotal) {
25
24
  exports.PartitionedMessage = PartitionedMessage;
26
25
  function Timestamp(timestamp) {
27
26
  return [
28
- Messages.Type.Timestamp,
27
+ 0 /* Timestamp */,
29
28
  timestamp,
30
29
  ];
31
30
  }
32
31
  exports.Timestamp = Timestamp;
33
32
  function SetPageLocation(url, referrer, navigationStart) {
34
33
  return [
35
- Messages.Type.SetPageLocation,
34
+ 4 /* SetPageLocation */,
36
35
  url,
37
36
  referrer,
38
37
  navigationStart,
@@ -41,7 +40,7 @@ function SetPageLocation(url, referrer, navigationStart) {
41
40
  exports.SetPageLocation = SetPageLocation;
42
41
  function SetViewportSize(width, height) {
43
42
  return [
44
- Messages.Type.SetViewportSize,
43
+ 5 /* SetViewportSize */,
45
44
  width,
46
45
  height,
47
46
  ];
@@ -49,7 +48,7 @@ function SetViewportSize(width, height) {
49
48
  exports.SetViewportSize = SetViewportSize;
50
49
  function SetViewportScroll(x, y) {
51
50
  return [
52
- Messages.Type.SetViewportScroll,
51
+ 6 /* SetViewportScroll */,
53
52
  x,
54
53
  y,
55
54
  ];
@@ -57,13 +56,13 @@ function SetViewportScroll(x, y) {
57
56
  exports.SetViewportScroll = SetViewportScroll;
58
57
  function CreateDocument() {
59
58
  return [
60
- Messages.Type.CreateDocument,
59
+ 7 /* CreateDocument */,
61
60
  ];
62
61
  }
63
62
  exports.CreateDocument = CreateDocument;
64
63
  function CreateElementNode(id, parentID, index, tag, svg) {
65
64
  return [
66
- Messages.Type.CreateElementNode,
65
+ 8 /* CreateElementNode */,
67
66
  id,
68
67
  parentID,
69
68
  index,
@@ -74,7 +73,7 @@ function CreateElementNode(id, parentID, index, tag, svg) {
74
73
  exports.CreateElementNode = CreateElementNode;
75
74
  function CreateTextNode(id, parentID, index) {
76
75
  return [
77
- Messages.Type.CreateTextNode,
76
+ 9 /* CreateTextNode */,
78
77
  id,
79
78
  parentID,
80
79
  index,
@@ -83,7 +82,7 @@ function CreateTextNode(id, parentID, index) {
83
82
  exports.CreateTextNode = CreateTextNode;
84
83
  function MoveNode(id, parentID, index) {
85
84
  return [
86
- Messages.Type.MoveNode,
85
+ 10 /* MoveNode */,
87
86
  id,
88
87
  parentID,
89
88
  index,
@@ -92,14 +91,14 @@ function MoveNode(id, parentID, index) {
92
91
  exports.MoveNode = MoveNode;
93
92
  function RemoveNode(id) {
94
93
  return [
95
- Messages.Type.RemoveNode,
94
+ 11 /* RemoveNode */,
96
95
  id,
97
96
  ];
98
97
  }
99
98
  exports.RemoveNode = RemoveNode;
100
99
  function SetNodeAttribute(id, name, value) {
101
100
  return [
102
- Messages.Type.SetNodeAttribute,
101
+ 12 /* SetNodeAttribute */,
103
102
  id,
104
103
  name,
105
104
  value,
@@ -108,7 +107,7 @@ function SetNodeAttribute(id, name, value) {
108
107
  exports.SetNodeAttribute = SetNodeAttribute;
109
108
  function RemoveNodeAttribute(id, name) {
110
109
  return [
111
- Messages.Type.RemoveNodeAttribute,
110
+ 13 /* RemoveNodeAttribute */,
112
111
  id,
113
112
  name,
114
113
  ];
@@ -116,7 +115,7 @@ function RemoveNodeAttribute(id, name) {
116
115
  exports.RemoveNodeAttribute = RemoveNodeAttribute;
117
116
  function SetNodeData(id, data) {
118
117
  return [
119
- Messages.Type.SetNodeData,
118
+ 14 /* SetNodeData */,
120
119
  id,
121
120
  data,
122
121
  ];
@@ -124,7 +123,7 @@ function SetNodeData(id, data) {
124
123
  exports.SetNodeData = SetNodeData;
125
124
  function SetNodeScroll(id, x, y) {
126
125
  return [
127
- Messages.Type.SetNodeScroll,
126
+ 16 /* SetNodeScroll */,
128
127
  id,
129
128
  x,
130
129
  y,
@@ -133,7 +132,7 @@ function SetNodeScroll(id, x, y) {
133
132
  exports.SetNodeScroll = SetNodeScroll;
134
133
  function SetInputTarget(id, label) {
135
134
  return [
136
- Messages.Type.SetInputTarget,
135
+ 17 /* SetInputTarget */,
137
136
  id,
138
137
  label,
139
138
  ];
@@ -141,7 +140,7 @@ function SetInputTarget(id, label) {
141
140
  exports.SetInputTarget = SetInputTarget;
142
141
  function SetInputValue(id, value, mask) {
143
142
  return [
144
- Messages.Type.SetInputValue,
143
+ 18 /* SetInputValue */,
145
144
  id,
146
145
  value,
147
146
  mask,
@@ -150,7 +149,7 @@ function SetInputValue(id, value, mask) {
150
149
  exports.SetInputValue = SetInputValue;
151
150
  function SetInputChecked(id, checked) {
152
151
  return [
153
- Messages.Type.SetInputChecked,
152
+ 19 /* SetInputChecked */,
154
153
  id,
155
154
  checked,
156
155
  ];
@@ -158,7 +157,7 @@ function SetInputChecked(id, checked) {
158
157
  exports.SetInputChecked = SetInputChecked;
159
158
  function MouseMove(x, y) {
160
159
  return [
161
- Messages.Type.MouseMove,
160
+ 20 /* MouseMove */,
162
161
  x,
163
162
  y,
164
163
  ];
@@ -166,7 +165,7 @@ function MouseMove(x, y) {
166
165
  exports.MouseMove = MouseMove;
167
166
  function ConsoleLog(level, value) {
168
167
  return [
169
- Messages.Type.ConsoleLog,
168
+ 22 /* ConsoleLog */,
170
169
  level,
171
170
  value,
172
171
  ];
@@ -174,7 +173,7 @@ function ConsoleLog(level, value) {
174
173
  exports.ConsoleLog = ConsoleLog;
175
174
  function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoadedEventStart, domContentLoadedEventEnd, loadEventStart, loadEventEnd, firstPaint, firstContentfulPaint) {
176
175
  return [
177
- Messages.Type.PageLoadTiming,
176
+ 23 /* PageLoadTiming */,
178
177
  requestStart,
179
178
  responseStart,
180
179
  responseEnd,
@@ -189,7 +188,7 @@ function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoad
189
188
  exports.PageLoadTiming = PageLoadTiming;
190
189
  function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
191
190
  return [
192
- Messages.Type.PageRenderTiming,
191
+ 24 /* PageRenderTiming */,
193
192
  speedIndex,
194
193
  visuallyComplete,
195
194
  timeToInteractive,
@@ -198,7 +197,7 @@ function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
198
197
  exports.PageRenderTiming = PageRenderTiming;
199
198
  function JSException(name, message, payload) {
200
199
  return [
201
- Messages.Type.JSException,
200
+ 25 /* JSException */,
202
201
  name,
203
202
  message,
204
203
  payload,
@@ -207,7 +206,7 @@ function JSException(name, message, payload) {
207
206
  exports.JSException = JSException;
208
207
  function RawCustomEvent(name, payload) {
209
208
  return [
210
- Messages.Type.RawCustomEvent,
209
+ 27 /* RawCustomEvent */,
211
210
  name,
212
211
  payload,
213
212
  ];
@@ -215,21 +214,21 @@ function RawCustomEvent(name, payload) {
215
214
  exports.RawCustomEvent = RawCustomEvent;
216
215
  function UserID(id) {
217
216
  return [
218
- Messages.Type.UserID,
217
+ 28 /* UserID */,
219
218
  id,
220
219
  ];
221
220
  }
222
221
  exports.UserID = UserID;
223
222
  function UserAnonymousID(id) {
224
223
  return [
225
- Messages.Type.UserAnonymousID,
224
+ 29 /* UserAnonymousID */,
226
225
  id,
227
226
  ];
228
227
  }
229
228
  exports.UserAnonymousID = UserAnonymousID;
230
229
  function Metadata(key, value) {
231
230
  return [
232
- Messages.Type.Metadata,
231
+ 30 /* Metadata */,
233
232
  key,
234
233
  value,
235
234
  ];
@@ -237,7 +236,7 @@ function Metadata(key, value) {
237
236
  exports.Metadata = Metadata;
238
237
  function CSSInsertRule(id, rule, index) {
239
238
  return [
240
- Messages.Type.CSSInsertRule,
239
+ 37 /* CSSInsertRule */,
241
240
  id,
242
241
  rule,
243
242
  index,
@@ -246,7 +245,7 @@ function CSSInsertRule(id, rule, index) {
246
245
  exports.CSSInsertRule = CSSInsertRule;
247
246
  function CSSDeleteRule(id, index) {
248
247
  return [
249
- Messages.Type.CSSDeleteRule,
248
+ 38 /* CSSDeleteRule */,
250
249
  id,
251
250
  index,
252
251
  ];
@@ -254,7 +253,7 @@ function CSSDeleteRule(id, index) {
254
253
  exports.CSSDeleteRule = CSSDeleteRule;
255
254
  function Fetch(method, url, request, response, status, timestamp, duration) {
256
255
  return [
257
- Messages.Type.Fetch,
256
+ 39 /* Fetch */,
258
257
  method,
259
258
  url,
260
259
  request,
@@ -267,7 +266,7 @@ function Fetch(method, url, request, response, status, timestamp, duration) {
267
266
  exports.Fetch = Fetch;
268
267
  function Profiler(name, duration, args, result) {
269
268
  return [
270
- Messages.Type.Profiler,
269
+ 40 /* Profiler */,
271
270
  name,
272
271
  duration,
273
272
  args,
@@ -277,7 +276,7 @@ function Profiler(name, duration, args, result) {
277
276
  exports.Profiler = Profiler;
278
277
  function OTable(key, value) {
279
278
  return [
280
- Messages.Type.OTable,
279
+ 41 /* OTable */,
281
280
  key,
282
281
  value,
283
282
  ];
@@ -285,14 +284,14 @@ function OTable(key, value) {
285
284
  exports.OTable = OTable;
286
285
  function StateAction(type) {
287
286
  return [
288
- Messages.Type.StateAction,
287
+ 42 /* StateAction */,
289
288
  type,
290
289
  ];
291
290
  }
292
291
  exports.StateAction = StateAction;
293
292
  function Redux(action, state, duration) {
294
293
  return [
295
- Messages.Type.Redux,
294
+ 44 /* Redux */,
296
295
  action,
297
296
  state,
298
297
  duration,
@@ -301,7 +300,7 @@ function Redux(action, state, duration) {
301
300
  exports.Redux = Redux;
302
301
  function Vuex(mutation, state) {
303
302
  return [
304
- Messages.Type.Vuex,
303
+ 45 /* Vuex */,
305
304
  mutation,
306
305
  state,
307
306
  ];
@@ -309,7 +308,7 @@ function Vuex(mutation, state) {
309
308
  exports.Vuex = Vuex;
310
309
  function MobX(type, payload) {
311
310
  return [
312
- Messages.Type.MobX,
311
+ 46 /* MobX */,
313
312
  type,
314
313
  payload,
315
314
  ];
@@ -317,7 +316,7 @@ function MobX(type, payload) {
317
316
  exports.MobX = MobX;
318
317
  function NgRx(action, state, duration) {
319
318
  return [
320
- Messages.Type.NgRx,
319
+ 47 /* NgRx */,
321
320
  action,
322
321
  state,
323
322
  duration,
@@ -326,7 +325,7 @@ function NgRx(action, state, duration) {
326
325
  exports.NgRx = NgRx;
327
326
  function GraphQL(operationKind, operationName, variables, response) {
328
327
  return [
329
- Messages.Type.GraphQL,
328
+ 48 /* GraphQL */,
330
329
  operationKind,
331
330
  operationName,
332
331
  variables,
@@ -336,7 +335,7 @@ function GraphQL(operationKind, operationName, variables, response) {
336
335
  exports.GraphQL = GraphQL;
337
336
  function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
338
337
  return [
339
- Messages.Type.PerformanceTrack,
338
+ 49 /* PerformanceTrack */,
340
339
  frames,
341
340
  ticks,
342
341
  totalJSHeapSize,
@@ -346,7 +345,7 @@ function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
346
345
  exports.PerformanceTrack = PerformanceTrack;
347
346
  function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize, decodedBodySize, url, initiator) {
348
347
  return [
349
- Messages.Type.ResourceTiming,
348
+ 53 /* ResourceTiming */,
350
349
  timestamp,
351
350
  duration,
352
351
  ttfb,
@@ -360,7 +359,7 @@ function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize,
360
359
  exports.ResourceTiming = ResourceTiming;
361
360
  function ConnectionInformation(downlink, type) {
362
361
  return [
363
- Messages.Type.ConnectionInformation,
362
+ 54 /* ConnectionInformation */,
364
363
  downlink,
365
364
  type,
366
365
  ];
@@ -368,14 +367,14 @@ function ConnectionInformation(downlink, type) {
368
367
  exports.ConnectionInformation = ConnectionInformation;
369
368
  function SetPageVisibility(hidden) {
370
369
  return [
371
- Messages.Type.SetPageVisibility,
370
+ 55 /* SetPageVisibility */,
372
371
  hidden,
373
372
  ];
374
373
  }
375
374
  exports.SetPageVisibility = SetPageVisibility;
376
375
  function LongTask(timestamp, duration, context, containerType, containerSrc, containerId, containerName) {
377
376
  return [
378
- Messages.Type.LongTask,
377
+ 59 /* LongTask */,
379
378
  timestamp,
380
379
  duration,
381
380
  context,
@@ -388,7 +387,7 @@ function LongTask(timestamp, duration, context, containerType, containerSrc, con
388
387
  exports.LongTask = LongTask;
389
388
  function SetNodeAttributeURLBased(id, name, value, baseURL) {
390
389
  return [
391
- Messages.Type.SetNodeAttributeURLBased,
390
+ 60 /* SetNodeAttributeURLBased */,
392
391
  id,
393
392
  name,
394
393
  value,
@@ -398,7 +397,7 @@ function SetNodeAttributeURLBased(id, name, value, baseURL) {
398
397
  exports.SetNodeAttributeURLBased = SetNodeAttributeURLBased;
399
398
  function SetCSSDataURLBased(id, data, baseURL) {
400
399
  return [
401
- Messages.Type.SetCSSDataURLBased,
400
+ 61 /* SetCSSDataURLBased */,
402
401
  id,
403
402
  data,
404
403
  baseURL,
@@ -407,7 +406,7 @@ function SetCSSDataURLBased(id, data, baseURL) {
407
406
  exports.SetCSSDataURLBased = SetCSSDataURLBased;
408
407
  function TechnicalInfo(type, value) {
409
408
  return [
410
- Messages.Type.TechnicalInfo,
409
+ 63 /* TechnicalInfo */,
411
410
  type,
412
411
  value,
413
412
  ];
@@ -415,7 +414,7 @@ function TechnicalInfo(type, value) {
415
414
  exports.TechnicalInfo = TechnicalInfo;
416
415
  function CustomIssue(name, payload) {
417
416
  return [
418
- Messages.Type.CustomIssue,
417
+ 64 /* CustomIssue */,
419
418
  name,
420
419
  payload,
421
420
  ];
@@ -423,7 +422,7 @@ function CustomIssue(name, payload) {
423
422
  exports.CustomIssue = CustomIssue;
424
423
  function CSSInsertRuleURLBased(id, rule, index, baseURL) {
425
424
  return [
426
- Messages.Type.CSSInsertRuleURLBased,
425
+ 67 /* CSSInsertRuleURLBased */,
427
426
  id,
428
427
  rule,
429
428
  index,
@@ -433,7 +432,7 @@ function CSSInsertRuleURLBased(id, rule, index, baseURL) {
433
432
  exports.CSSInsertRuleURLBased = CSSInsertRuleURLBased;
434
433
  function MouseClick(id, hesitationTime, label, selector) {
435
434
  return [
436
- Messages.Type.MouseClick,
435
+ 69 /* MouseClick */,
437
436
  id,
438
437
  hesitationTime,
439
438
  label,
@@ -443,7 +442,7 @@ function MouseClick(id, hesitationTime, label, selector) {
443
442
  exports.MouseClick = MouseClick;
444
443
  function CreateIFrameDocument(frameID, id) {
445
444
  return [
446
- Messages.Type.CreateIFrameDocument,
445
+ 70 /* CreateIFrameDocument */,
447
446
  frameID,
448
447
  id,
449
448
  ];
@@ -451,7 +450,7 @@ function CreateIFrameDocument(frameID, id) {
451
450
  exports.CreateIFrameDocument = CreateIFrameDocument;
452
451
  function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
453
452
  return [
454
- Messages.Type.AdoptedSSReplaceURLBased,
453
+ 71 /* AdoptedSSReplaceURLBased */,
455
454
  sheetID,
456
455
  text,
457
456
  baseURL,
@@ -460,7 +459,7 @@ function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
460
459
  exports.AdoptedSSReplaceURLBased = AdoptedSSReplaceURLBased;
461
460
  function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
462
461
  return [
463
- Messages.Type.AdoptedSSInsertRuleURLBased,
462
+ 73 /* AdoptedSSInsertRuleURLBased */,
464
463
  sheetID,
465
464
  rule,
466
465
  index,
@@ -470,7 +469,7 @@ function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
470
469
  exports.AdoptedSSInsertRuleURLBased = AdoptedSSInsertRuleURLBased;
471
470
  function AdoptedSSDeleteRule(sheetID, index) {
472
471
  return [
473
- Messages.Type.AdoptedSSDeleteRule,
472
+ 75 /* AdoptedSSDeleteRule */,
474
473
  sheetID,
475
474
  index,
476
475
  ];
@@ -478,7 +477,7 @@ function AdoptedSSDeleteRule(sheetID, index) {
478
477
  exports.AdoptedSSDeleteRule = AdoptedSSDeleteRule;
479
478
  function AdoptedSSAddOwner(sheetID, id) {
480
479
  return [
481
- Messages.Type.AdoptedSSAddOwner,
480
+ 76 /* AdoptedSSAddOwner */,
482
481
  sheetID,
483
482
  id,
484
483
  ];
@@ -486,7 +485,7 @@ function AdoptedSSAddOwner(sheetID, id) {
486
485
  exports.AdoptedSSAddOwner = AdoptedSSAddOwner;
487
486
  function AdoptedSSRemoveOwner(sheetID, id) {
488
487
  return [
489
- Messages.Type.AdoptedSSRemoveOwner,
488
+ 77 /* AdoptedSSRemoveOwner */,
490
489
  sheetID,
491
490
  id,
492
491
  ];