@openreplay/tracker 4.1.9-beta.1 → 4.1.9-beta.3

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +22 -18
  3. package/cjs/app/guards.d.ts +11 -12
  4. package/cjs/app/guards.js +2 -1
  5. package/cjs/app/index.d.ts +11 -8
  6. package/cjs/app/index.js +22 -6
  7. package/cjs/app/logger.d.ts +3 -3
  8. package/cjs/app/messages.gen.d.ts +4 -3
  9. package/cjs/app/messages.gen.js +92 -78
  10. package/cjs/app/nodes.d.ts +1 -1
  11. package/cjs/app/observer/iframe_offsets.d.ts +1 -1
  12. package/cjs/app/observer/observer.js +4 -4
  13. package/cjs/app/observer/top_observer.d.ts +2 -2
  14. package/cjs/app/observer/top_observer.js +1 -1
  15. package/cjs/app/session.d.ts +2 -2
  16. package/cjs/app/ticker.d.ts +1 -1
  17. package/cjs/common/interaction.d.ts +5 -5
  18. package/cjs/common/messages.gen.d.ts +86 -74
  19. package/cjs/index.d.ts +6 -2
  20. package/cjs/index.js +5 -3
  21. package/cjs/modules/cssrules.js +1 -1
  22. package/cjs/modules/focus.js +2 -2
  23. package/cjs/modules/img.js +1 -1
  24. package/cjs/modules/input.d.ts +1 -1
  25. package/cjs/modules/input.js +15 -23
  26. package/cjs/modules/mouse.js +1 -1
  27. package/cjs/modules/network.d.ts +28 -0
  28. package/cjs/modules/network.js +203 -0
  29. package/cjs/modules/timing.js +7 -3
  30. package/cjs/vendors/finder/finder.d.ts +1 -1
  31. package/jest.config.js +11 -0
  32. package/lib/app/guards.d.ts +11 -12
  33. package/lib/app/guards.js +2 -1
  34. package/lib/app/index.d.ts +11 -8
  35. package/lib/app/index.js +23 -7
  36. package/lib/app/logger.d.ts +3 -3
  37. package/lib/app/messages.gen.d.ts +4 -3
  38. package/lib/app/messages.gen.js +87 -74
  39. package/lib/app/nodes.d.ts +1 -1
  40. package/lib/app/observer/iframe_offsets.d.ts +1 -1
  41. package/lib/app/observer/observer.js +4 -4
  42. package/lib/app/observer/top_observer.d.ts +2 -2
  43. package/lib/app/observer/top_observer.js +1 -1
  44. package/lib/app/session.d.ts +2 -2
  45. package/lib/app/ticker.d.ts +1 -1
  46. package/lib/common/interaction.d.ts +5 -5
  47. package/lib/common/messages.gen.d.ts +86 -74
  48. package/lib/common/tsconfig.tsbuildinfo +1 -1
  49. package/lib/index.d.ts +6 -2
  50. package/lib/index.js +5 -3
  51. package/lib/modules/cssrules.js +1 -1
  52. package/lib/modules/focus.js +2 -2
  53. package/lib/modules/img.js +1 -1
  54. package/lib/modules/input.d.ts +1 -1
  55. package/lib/modules/input.js +15 -23
  56. package/lib/modules/mouse.js +1 -1
  57. package/lib/modules/network.d.ts +28 -0
  58. package/lib/modules/network.js +200 -0
  59. package/lib/modules/timing.js +8 -4
  60. package/lib/vendors/finder/finder.d.ts +1 -1
  61. package/package.json +8 -3
  62. package/cjs/app/messages.d.ts +0 -52
  63. package/cjs/app/messages.js +0 -234
  64. package/lib/app/messages.d.ts +0 -52
  65. package/lib/app/messages.js +0 -181
@@ -2,37 +2,18 @@
2
2
  // Auto-generated, do not edit
3
3
  /* eslint-disable */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.CSSInsertRuleURLBased = exports.CustomIssue = exports.TechnicalInfo = exports.SetCSSDataURLBased = exports.SetNodeAttributeURLBased = exports.LongTask = exports.SetNodeFocus = exports.LoadFontFace = 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.CustomEvent = exports.JSExceptionDeprecated = 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;
6
- exports.JSException = exports.Zustand = exports.AdoptedSSRemoveOwner = exports.AdoptedSSAddOwner = exports.AdoptedSSDeleteRule = exports.AdoptedSSInsertRuleURLBased = exports.AdoptedSSReplaceURLBased = exports.CreateIFrameDocument = exports.MouseClick = void 0;
7
- function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
8
- return [
9
- 81 /* BatchMetadata */,
10
- version,
11
- pageNo,
12
- firstIndex,
13
- timestamp,
14
- location,
15
- ];
16
- }
17
- exports.BatchMetadata = BatchMetadata;
18
- function PartitionedMessage(partNo, partTotal) {
19
- return [
20
- 82 /* PartitionedMessage */,
21
- partNo,
22
- partTotal,
23
- ];
24
- }
25
- exports.PartitionedMessage = PartitionedMessage;
5
+ exports.MouseClick = exports.CSSInsertRuleURLBased = exports.CustomIssue = exports.TechnicalInfo = exports.SetCSSDataURLBased = exports.SetNodeAttributeURLBased = exports.LongTask = exports.SetNodeFocus = exports.LoadFontFace = 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.CustomEvent = exports.JSExceptionDeprecated = exports.PageRenderTiming = exports.PageLoadTiming = exports.ConsoleLog = exports.NetworkRequest = 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 = void 0;
6
+ exports.PartitionedMessage = exports.BatchMetadata = exports.JSException = exports.Zustand = exports.AdoptedSSRemoveOwner = exports.AdoptedSSAddOwner = exports.AdoptedSSDeleteRule = exports.AdoptedSSInsertRuleURLBased = exports.AdoptedSSReplaceURLBased = exports.CreateIFrameDocument = void 0;
26
7
  function Timestamp(timestamp) {
27
8
  return [
28
- 0 /* Timestamp */,
9
+ 0 /* Messages.Type.Timestamp */,
29
10
  timestamp,
30
11
  ];
31
12
  }
32
13
  exports.Timestamp = Timestamp;
33
14
  function SetPageLocation(url, referrer, navigationStart) {
34
15
  return [
35
- 4 /* SetPageLocation */,
16
+ 4 /* Messages.Type.SetPageLocation */,
36
17
  url,
37
18
  referrer,
38
19
  navigationStart,
@@ -41,7 +22,7 @@ function SetPageLocation(url, referrer, navigationStart) {
41
22
  exports.SetPageLocation = SetPageLocation;
42
23
  function SetViewportSize(width, height) {
43
24
  return [
44
- 5 /* SetViewportSize */,
25
+ 5 /* Messages.Type.SetViewportSize */,
45
26
  width,
46
27
  height,
47
28
  ];
@@ -49,7 +30,7 @@ function SetViewportSize(width, height) {
49
30
  exports.SetViewportSize = SetViewportSize;
50
31
  function SetViewportScroll(x, y) {
51
32
  return [
52
- 6 /* SetViewportScroll */,
33
+ 6 /* Messages.Type.SetViewportScroll */,
53
34
  x,
54
35
  y,
55
36
  ];
@@ -57,13 +38,13 @@ function SetViewportScroll(x, y) {
57
38
  exports.SetViewportScroll = SetViewportScroll;
58
39
  function CreateDocument() {
59
40
  return [
60
- 7 /* CreateDocument */,
41
+ 7 /* Messages.Type.CreateDocument */,
61
42
  ];
62
43
  }
63
44
  exports.CreateDocument = CreateDocument;
64
45
  function CreateElementNode(id, parentID, index, tag, svg) {
65
46
  return [
66
- 8 /* CreateElementNode */,
47
+ 8 /* Messages.Type.CreateElementNode */,
67
48
  id,
68
49
  parentID,
69
50
  index,
@@ -74,7 +55,7 @@ function CreateElementNode(id, parentID, index, tag, svg) {
74
55
  exports.CreateElementNode = CreateElementNode;
75
56
  function CreateTextNode(id, parentID, index) {
76
57
  return [
77
- 9 /* CreateTextNode */,
58
+ 9 /* Messages.Type.CreateTextNode */,
78
59
  id,
79
60
  parentID,
80
61
  index,
@@ -83,7 +64,7 @@ function CreateTextNode(id, parentID, index) {
83
64
  exports.CreateTextNode = CreateTextNode;
84
65
  function MoveNode(id, parentID, index) {
85
66
  return [
86
- 10 /* MoveNode */,
67
+ 10 /* Messages.Type.MoveNode */,
87
68
  id,
88
69
  parentID,
89
70
  index,
@@ -92,14 +73,14 @@ function MoveNode(id, parentID, index) {
92
73
  exports.MoveNode = MoveNode;
93
74
  function RemoveNode(id) {
94
75
  return [
95
- 11 /* RemoveNode */,
76
+ 11 /* Messages.Type.RemoveNode */,
96
77
  id,
97
78
  ];
98
79
  }
99
80
  exports.RemoveNode = RemoveNode;
100
81
  function SetNodeAttribute(id, name, value) {
101
82
  return [
102
- 12 /* SetNodeAttribute */,
83
+ 12 /* Messages.Type.SetNodeAttribute */,
103
84
  id,
104
85
  name,
105
86
  value,
@@ -108,7 +89,7 @@ function SetNodeAttribute(id, name, value) {
108
89
  exports.SetNodeAttribute = SetNodeAttribute;
109
90
  function RemoveNodeAttribute(id, name) {
110
91
  return [
111
- 13 /* RemoveNodeAttribute */,
92
+ 13 /* Messages.Type.RemoveNodeAttribute */,
112
93
  id,
113
94
  name,
114
95
  ];
@@ -116,7 +97,7 @@ function RemoveNodeAttribute(id, name) {
116
97
  exports.RemoveNodeAttribute = RemoveNodeAttribute;
117
98
  function SetNodeData(id, data) {
118
99
  return [
119
- 14 /* SetNodeData */,
100
+ 14 /* Messages.Type.SetNodeData */,
120
101
  id,
121
102
  data,
122
103
  ];
@@ -124,7 +105,7 @@ function SetNodeData(id, data) {
124
105
  exports.SetNodeData = SetNodeData;
125
106
  function SetNodeScroll(id, x, y) {
126
107
  return [
127
- 16 /* SetNodeScroll */,
108
+ 16 /* Messages.Type.SetNodeScroll */,
128
109
  id,
129
110
  x,
130
111
  y,
@@ -133,7 +114,7 @@ function SetNodeScroll(id, x, y) {
133
114
  exports.SetNodeScroll = SetNodeScroll;
134
115
  function SetInputTarget(id, label) {
135
116
  return [
136
- 17 /* SetInputTarget */,
117
+ 17 /* Messages.Type.SetInputTarget */,
137
118
  id,
138
119
  label,
139
120
  ];
@@ -141,7 +122,7 @@ function SetInputTarget(id, label) {
141
122
  exports.SetInputTarget = SetInputTarget;
142
123
  function SetInputValue(id, value, mask) {
143
124
  return [
144
- 18 /* SetInputValue */,
125
+ 18 /* Messages.Type.SetInputValue */,
145
126
  id,
146
127
  value,
147
128
  mask,
@@ -150,7 +131,7 @@ function SetInputValue(id, value, mask) {
150
131
  exports.SetInputValue = SetInputValue;
151
132
  function SetInputChecked(id, checked) {
152
133
  return [
153
- 19 /* SetInputChecked */,
134
+ 19 /* Messages.Type.SetInputChecked */,
154
135
  id,
155
136
  checked,
156
137
  ];
@@ -158,15 +139,29 @@ function SetInputChecked(id, checked) {
158
139
  exports.SetInputChecked = SetInputChecked;
159
140
  function MouseMove(x, y) {
160
141
  return [
161
- 20 /* MouseMove */,
142
+ 20 /* Messages.Type.MouseMove */,
162
143
  x,
163
144
  y,
164
145
  ];
165
146
  }
166
147
  exports.MouseMove = MouseMove;
148
+ function NetworkRequest(type, method, url, request, response, status, timestamp, duration) {
149
+ return [
150
+ 21 /* Messages.Type.NetworkRequest */,
151
+ type,
152
+ method,
153
+ url,
154
+ request,
155
+ response,
156
+ status,
157
+ timestamp,
158
+ duration,
159
+ ];
160
+ }
161
+ exports.NetworkRequest = NetworkRequest;
167
162
  function ConsoleLog(level, value) {
168
163
  return [
169
- 22 /* ConsoleLog */,
164
+ 22 /* Messages.Type.ConsoleLog */,
170
165
  level,
171
166
  value,
172
167
  ];
@@ -174,7 +169,7 @@ function ConsoleLog(level, value) {
174
169
  exports.ConsoleLog = ConsoleLog;
175
170
  function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoadedEventStart, domContentLoadedEventEnd, loadEventStart, loadEventEnd, firstPaint, firstContentfulPaint) {
176
171
  return [
177
- 23 /* PageLoadTiming */,
172
+ 23 /* Messages.Type.PageLoadTiming */,
178
173
  requestStart,
179
174
  responseStart,
180
175
  responseEnd,
@@ -189,7 +184,7 @@ function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoad
189
184
  exports.PageLoadTiming = PageLoadTiming;
190
185
  function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
191
186
  return [
192
- 24 /* PageRenderTiming */,
187
+ 24 /* Messages.Type.PageRenderTiming */,
193
188
  speedIndex,
194
189
  visuallyComplete,
195
190
  timeToInteractive,
@@ -198,7 +193,7 @@ function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
198
193
  exports.PageRenderTiming = PageRenderTiming;
199
194
  function JSExceptionDeprecated(name, message, payload) {
200
195
  return [
201
- 25 /* JSExceptionDeprecated */,
196
+ 25 /* Messages.Type.JSExceptionDeprecated */,
202
197
  name,
203
198
  message,
204
199
  payload,
@@ -207,7 +202,7 @@ function JSExceptionDeprecated(name, message, payload) {
207
202
  exports.JSExceptionDeprecated = JSExceptionDeprecated;
208
203
  function CustomEvent(name, payload) {
209
204
  return [
210
- 27 /* CustomEvent */,
205
+ 27 /* Messages.Type.CustomEvent */,
211
206
  name,
212
207
  payload,
213
208
  ];
@@ -215,21 +210,21 @@ function CustomEvent(name, payload) {
215
210
  exports.CustomEvent = CustomEvent;
216
211
  function UserID(id) {
217
212
  return [
218
- 28 /* UserID */,
213
+ 28 /* Messages.Type.UserID */,
219
214
  id,
220
215
  ];
221
216
  }
222
217
  exports.UserID = UserID;
223
218
  function UserAnonymousID(id) {
224
219
  return [
225
- 29 /* UserAnonymousID */,
220
+ 29 /* Messages.Type.UserAnonymousID */,
226
221
  id,
227
222
  ];
228
223
  }
229
224
  exports.UserAnonymousID = UserAnonymousID;
230
225
  function Metadata(key, value) {
231
226
  return [
232
- 30 /* Metadata */,
227
+ 30 /* Messages.Type.Metadata */,
233
228
  key,
234
229
  value,
235
230
  ];
@@ -237,7 +232,7 @@ function Metadata(key, value) {
237
232
  exports.Metadata = Metadata;
238
233
  function CSSInsertRule(id, rule, index) {
239
234
  return [
240
- 37 /* CSSInsertRule */,
235
+ 37 /* Messages.Type.CSSInsertRule */,
241
236
  id,
242
237
  rule,
243
238
  index,
@@ -246,7 +241,7 @@ function CSSInsertRule(id, rule, index) {
246
241
  exports.CSSInsertRule = CSSInsertRule;
247
242
  function CSSDeleteRule(id, index) {
248
243
  return [
249
- 38 /* CSSDeleteRule */,
244
+ 38 /* Messages.Type.CSSDeleteRule */,
250
245
  id,
251
246
  index,
252
247
  ];
@@ -254,7 +249,7 @@ function CSSDeleteRule(id, index) {
254
249
  exports.CSSDeleteRule = CSSDeleteRule;
255
250
  function Fetch(method, url, request, response, status, timestamp, duration) {
256
251
  return [
257
- 39 /* Fetch */,
252
+ 39 /* Messages.Type.Fetch */,
258
253
  method,
259
254
  url,
260
255
  request,
@@ -267,7 +262,7 @@ function Fetch(method, url, request, response, status, timestamp, duration) {
267
262
  exports.Fetch = Fetch;
268
263
  function Profiler(name, duration, args, result) {
269
264
  return [
270
- 40 /* Profiler */,
265
+ 40 /* Messages.Type.Profiler */,
271
266
  name,
272
267
  duration,
273
268
  args,
@@ -277,7 +272,7 @@ function Profiler(name, duration, args, result) {
277
272
  exports.Profiler = Profiler;
278
273
  function OTable(key, value) {
279
274
  return [
280
- 41 /* OTable */,
275
+ 41 /* Messages.Type.OTable */,
281
276
  key,
282
277
  value,
283
278
  ];
@@ -285,14 +280,14 @@ function OTable(key, value) {
285
280
  exports.OTable = OTable;
286
281
  function StateAction(type) {
287
282
  return [
288
- 42 /* StateAction */,
283
+ 42 /* Messages.Type.StateAction */,
289
284
  type,
290
285
  ];
291
286
  }
292
287
  exports.StateAction = StateAction;
293
288
  function Redux(action, state, duration) {
294
289
  return [
295
- 44 /* Redux */,
290
+ 44 /* Messages.Type.Redux */,
296
291
  action,
297
292
  state,
298
293
  duration,
@@ -301,7 +296,7 @@ function Redux(action, state, duration) {
301
296
  exports.Redux = Redux;
302
297
  function Vuex(mutation, state) {
303
298
  return [
304
- 45 /* Vuex */,
299
+ 45 /* Messages.Type.Vuex */,
305
300
  mutation,
306
301
  state,
307
302
  ];
@@ -309,7 +304,7 @@ function Vuex(mutation, state) {
309
304
  exports.Vuex = Vuex;
310
305
  function MobX(type, payload) {
311
306
  return [
312
- 46 /* MobX */,
307
+ 46 /* Messages.Type.MobX */,
313
308
  type,
314
309
  payload,
315
310
  ];
@@ -317,7 +312,7 @@ function MobX(type, payload) {
317
312
  exports.MobX = MobX;
318
313
  function NgRx(action, state, duration) {
319
314
  return [
320
- 47 /* NgRx */,
315
+ 47 /* Messages.Type.NgRx */,
321
316
  action,
322
317
  state,
323
318
  duration,
@@ -326,7 +321,7 @@ function NgRx(action, state, duration) {
326
321
  exports.NgRx = NgRx;
327
322
  function GraphQL(operationKind, operationName, variables, response) {
328
323
  return [
329
- 48 /* GraphQL */,
324
+ 48 /* Messages.Type.GraphQL */,
330
325
  operationKind,
331
326
  operationName,
332
327
  variables,
@@ -336,7 +331,7 @@ function GraphQL(operationKind, operationName, variables, response) {
336
331
  exports.GraphQL = GraphQL;
337
332
  function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
338
333
  return [
339
- 49 /* PerformanceTrack */,
334
+ 49 /* Messages.Type.PerformanceTrack */,
340
335
  frames,
341
336
  ticks,
342
337
  totalJSHeapSize,
@@ -346,7 +341,7 @@ function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
346
341
  exports.PerformanceTrack = PerformanceTrack;
347
342
  function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize, decodedBodySize, url, initiator) {
348
343
  return [
349
- 53 /* ResourceTiming */,
344
+ 53 /* Messages.Type.ResourceTiming */,
350
345
  timestamp,
351
346
  duration,
352
347
  ttfb,
@@ -360,7 +355,7 @@ function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize,
360
355
  exports.ResourceTiming = ResourceTiming;
361
356
  function ConnectionInformation(downlink, type) {
362
357
  return [
363
- 54 /* ConnectionInformation */,
358
+ 54 /* Messages.Type.ConnectionInformation */,
364
359
  downlink,
365
360
  type,
366
361
  ];
@@ -368,14 +363,14 @@ function ConnectionInformation(downlink, type) {
368
363
  exports.ConnectionInformation = ConnectionInformation;
369
364
  function SetPageVisibility(hidden) {
370
365
  return [
371
- 55 /* SetPageVisibility */,
366
+ 55 /* Messages.Type.SetPageVisibility */,
372
367
  hidden,
373
368
  ];
374
369
  }
375
370
  exports.SetPageVisibility = SetPageVisibility;
376
371
  function LoadFontFace(parentID, family, source, descriptors) {
377
372
  return [
378
- 57 /* LoadFontFace */,
373
+ 57 /* Messages.Type.LoadFontFace */,
379
374
  parentID,
380
375
  family,
381
376
  source,
@@ -385,14 +380,14 @@ function LoadFontFace(parentID, family, source, descriptors) {
385
380
  exports.LoadFontFace = LoadFontFace;
386
381
  function SetNodeFocus(id) {
387
382
  return [
388
- 58 /* SetNodeFocus */,
383
+ 58 /* Messages.Type.SetNodeFocus */,
389
384
  id,
390
385
  ];
391
386
  }
392
387
  exports.SetNodeFocus = SetNodeFocus;
393
388
  function LongTask(timestamp, duration, context, containerType, containerSrc, containerId, containerName) {
394
389
  return [
395
- 59 /* LongTask */,
390
+ 59 /* Messages.Type.LongTask */,
396
391
  timestamp,
397
392
  duration,
398
393
  context,
@@ -405,7 +400,7 @@ function LongTask(timestamp, duration, context, containerType, containerSrc, con
405
400
  exports.LongTask = LongTask;
406
401
  function SetNodeAttributeURLBased(id, name, value, baseURL) {
407
402
  return [
408
- 60 /* SetNodeAttributeURLBased */,
403
+ 60 /* Messages.Type.SetNodeAttributeURLBased */,
409
404
  id,
410
405
  name,
411
406
  value,
@@ -415,7 +410,7 @@ function SetNodeAttributeURLBased(id, name, value, baseURL) {
415
410
  exports.SetNodeAttributeURLBased = SetNodeAttributeURLBased;
416
411
  function SetCSSDataURLBased(id, data, baseURL) {
417
412
  return [
418
- 61 /* SetCSSDataURLBased */,
413
+ 61 /* Messages.Type.SetCSSDataURLBased */,
419
414
  id,
420
415
  data,
421
416
  baseURL,
@@ -424,7 +419,7 @@ function SetCSSDataURLBased(id, data, baseURL) {
424
419
  exports.SetCSSDataURLBased = SetCSSDataURLBased;
425
420
  function TechnicalInfo(type, value) {
426
421
  return [
427
- 63 /* TechnicalInfo */,
422
+ 63 /* Messages.Type.TechnicalInfo */,
428
423
  type,
429
424
  value,
430
425
  ];
@@ -432,7 +427,7 @@ function TechnicalInfo(type, value) {
432
427
  exports.TechnicalInfo = TechnicalInfo;
433
428
  function CustomIssue(name, payload) {
434
429
  return [
435
- 64 /* CustomIssue */,
430
+ 64 /* Messages.Type.CustomIssue */,
436
431
  name,
437
432
  payload,
438
433
  ];
@@ -440,7 +435,7 @@ function CustomIssue(name, payload) {
440
435
  exports.CustomIssue = CustomIssue;
441
436
  function CSSInsertRuleURLBased(id, rule, index, baseURL) {
442
437
  return [
443
- 67 /* CSSInsertRuleURLBased */,
438
+ 67 /* Messages.Type.CSSInsertRuleURLBased */,
444
439
  id,
445
440
  rule,
446
441
  index,
@@ -450,7 +445,7 @@ function CSSInsertRuleURLBased(id, rule, index, baseURL) {
450
445
  exports.CSSInsertRuleURLBased = CSSInsertRuleURLBased;
451
446
  function MouseClick(id, hesitationTime, label, selector) {
452
447
  return [
453
- 69 /* MouseClick */,
448
+ 69 /* Messages.Type.MouseClick */,
454
449
  id,
455
450
  hesitationTime,
456
451
  label,
@@ -460,7 +455,7 @@ function MouseClick(id, hesitationTime, label, selector) {
460
455
  exports.MouseClick = MouseClick;
461
456
  function CreateIFrameDocument(frameID, id) {
462
457
  return [
463
- 70 /* CreateIFrameDocument */,
458
+ 70 /* Messages.Type.CreateIFrameDocument */,
464
459
  frameID,
465
460
  id,
466
461
  ];
@@ -468,7 +463,7 @@ function CreateIFrameDocument(frameID, id) {
468
463
  exports.CreateIFrameDocument = CreateIFrameDocument;
469
464
  function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
470
465
  return [
471
- 71 /* AdoptedSSReplaceURLBased */,
466
+ 71 /* Messages.Type.AdoptedSSReplaceURLBased */,
472
467
  sheetID,
473
468
  text,
474
469
  baseURL,
@@ -477,7 +472,7 @@ function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
477
472
  exports.AdoptedSSReplaceURLBased = AdoptedSSReplaceURLBased;
478
473
  function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
479
474
  return [
480
- 73 /* AdoptedSSInsertRuleURLBased */,
475
+ 73 /* Messages.Type.AdoptedSSInsertRuleURLBased */,
481
476
  sheetID,
482
477
  rule,
483
478
  index,
@@ -487,7 +482,7 @@ function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
487
482
  exports.AdoptedSSInsertRuleURLBased = AdoptedSSInsertRuleURLBased;
488
483
  function AdoptedSSDeleteRule(sheetID, index) {
489
484
  return [
490
- 75 /* AdoptedSSDeleteRule */,
485
+ 75 /* Messages.Type.AdoptedSSDeleteRule */,
491
486
  sheetID,
492
487
  index,
493
488
  ];
@@ -495,7 +490,7 @@ function AdoptedSSDeleteRule(sheetID, index) {
495
490
  exports.AdoptedSSDeleteRule = AdoptedSSDeleteRule;
496
491
  function AdoptedSSAddOwner(sheetID, id) {
497
492
  return [
498
- 76 /* AdoptedSSAddOwner */,
493
+ 76 /* Messages.Type.AdoptedSSAddOwner */,
499
494
  sheetID,
500
495
  id,
501
496
  ];
@@ -503,7 +498,7 @@ function AdoptedSSAddOwner(sheetID, id) {
503
498
  exports.AdoptedSSAddOwner = AdoptedSSAddOwner;
504
499
  function AdoptedSSRemoveOwner(sheetID, id) {
505
500
  return [
506
- 77 /* AdoptedSSRemoveOwner */,
501
+ 77 /* Messages.Type.AdoptedSSRemoveOwner */,
507
502
  sheetID,
508
503
  id,
509
504
  ];
@@ -511,7 +506,7 @@ function AdoptedSSRemoveOwner(sheetID, id) {
511
506
  exports.AdoptedSSRemoveOwner = AdoptedSSRemoveOwner;
512
507
  function Zustand(mutation, state) {
513
508
  return [
514
- 79 /* Zustand */,
509
+ 79 /* Messages.Type.Zustand */,
515
510
  mutation,
516
511
  state,
517
512
  ];
@@ -519,7 +514,7 @@ function Zustand(mutation, state) {
519
514
  exports.Zustand = Zustand;
520
515
  function JSException(name, message, payload, metadata) {
521
516
  return [
522
- 78 /* JSException */,
517
+ 78 /* Messages.Type.JSException */,
523
518
  name,
524
519
  message,
525
520
  payload,
@@ -527,3 +522,22 @@ function JSException(name, message, payload, metadata) {
527
522
  ];
528
523
  }
529
524
  exports.JSException = JSException;
525
+ function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
526
+ return [
527
+ 81 /* Messages.Type.BatchMetadata */,
528
+ version,
529
+ pageNo,
530
+ firstIndex,
531
+ timestamp,
532
+ location,
533
+ ];
534
+ }
535
+ exports.BatchMetadata = BatchMetadata;
536
+ function PartitionedMessage(partNo, partTotal) {
537
+ return [
538
+ 82 /* Messages.Type.PartitionedMessage */,
539
+ partNo,
540
+ partTotal,
541
+ ];
542
+ }
543
+ exports.PartitionedMessage = PartitionedMessage;
@@ -1,4 +1,4 @@
1
- declare type NodeCallback = (node: Node, isStart: boolean) => void;
1
+ type NodeCallback = (node: Node, isStart: boolean) => void;
2
2
  export default class Nodes {
3
3
  private readonly node_id;
4
4
  private nodes;
@@ -1,4 +1,4 @@
1
- export declare type Offset = [/*left:*/ number, /*top: */ number];
1
+ export type Offset = [/*left:*/ number, /*top: */ number];
2
2
  export default class IFrameOffsets {
3
3
  private readonly states;
4
4
  private calcOffset;
@@ -125,7 +125,7 @@ class Observer {
125
125
  return;
126
126
  }
127
127
  if (name === 'value' &&
128
- (0, guards_js_1.hasTag)(node, 'INPUT') &&
128
+ (0, guards_js_1.hasTag)(node, 'input') &&
129
129
  node.type !== 'button' &&
130
130
  node.type !== 'reset' &&
131
131
  node.type !== 'submit') {
@@ -135,7 +135,7 @@ class Observer {
135
135
  this.app.send((0, messages_gen_js_1.RemoveNodeAttribute)(id, name));
136
136
  return;
137
137
  }
138
- if (name === 'style' || (name === 'href' && (0, guards_js_1.hasTag)(node, 'LINK'))) {
138
+ if (name === 'style' || (name === 'href' && (0, guards_js_1.hasTag)(node, 'link'))) {
139
139
  this.app.send((0, messages_gen_js_1.SetNodeAttributeURLBased)(id, name, value, this.app.getBaseHref()));
140
140
  return;
141
141
  }
@@ -145,7 +145,7 @@ class Observer {
145
145
  this.app.send((0, messages_gen_js_1.SetNodeAttribute)(id, name, value));
146
146
  }
147
147
  sendNodeData(id, parentElement, data) {
148
- if ((0, guards_js_1.hasTag)(parentElement, 'STYLE') || (0, guards_js_1.hasTag)(parentElement, 'style')) {
148
+ if ((0, guards_js_1.hasTag)(parentElement, 'style')) {
149
149
  this.app.send((0, messages_gen_js_1.SetCSSDataURLBased)(id, data, this.app.getBaseHref()));
150
150
  return;
151
151
  }
@@ -206,7 +206,7 @@ class Observer {
206
206
  // Disable parent check for the upper context HTMLHtmlElement, because it is root there... (before)
207
207
  // TODO: get rid of "special" cases (there is an issue with CreateDocument altered behaviour though)
208
208
  // TODO: Clean the logic (though now it workd fine)
209
- if (!(0, guards_js_1.hasTag)(node, 'HTML') || !this.isTopContext) {
209
+ if (!(0, guards_js_1.hasTag)(node, 'html') || !this.isTopContext) {
210
210
  if (parent === null) {
211
211
  // Sometimes one observation contains attribute mutations for the removimg node, which gets ignored here.
212
212
  // That shouldn't affect the visual rendering ( should it? maybe when transition applied? )
@@ -4,8 +4,8 @@ import App from '../index.js';
4
4
  export interface Options {
5
5
  captureIFrames: boolean;
6
6
  }
7
- declare type Context = Window & typeof globalThis;
8
- declare type ContextCallback = (context: Context) => void;
7
+ type Context = Window & typeof globalThis;
8
+ type ContextCallback = (context: Context) => void;
9
9
  export default class TopObserver extends Observer {
10
10
  private readonly options;
11
11
  private readonly iframeOffsets;
@@ -22,7 +22,7 @@ class TopObserver extends observer_js_1.default {
22
22
  }, options);
23
23
  // IFrames
24
24
  this.app.nodes.attachNodeCallback((node) => {
25
- if ((0, guards_js_1.hasTag)(node, 'IFRAME') &&
25
+ if ((0, guards_js_1.hasTag)(node, 'iframe') &&
26
26
  ((this.options.captureIFrames && !(0, utils_js_1.hasOpenreplayAttribute)(node, 'obscured')) ||
27
27
  (0, utils_js_1.hasOpenreplayAttribute)(node, 'capture'))) {
28
28
  this.handleIframe(node);
@@ -6,8 +6,8 @@ interface SessionInfo {
6
6
  timestamp: number;
7
7
  projectID?: string;
8
8
  }
9
- declare type OnUpdateCallback = (i: Partial<SessionInfo>) => void;
10
- export declare type Options = {
9
+ type OnUpdateCallback = (i: Partial<SessionInfo>) => void;
10
+ export type Options = {
11
11
  session_token_key: string;
12
12
  session_pageno_key: string;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import App from './index.js';
2
- declare type Callback = () => void;
2
+ type Callback = () => void;
3
3
  export default class Ticker {
4
4
  private readonly app;
5
5
  private timer;
@@ -3,22 +3,22 @@ export interface Options {
3
3
  connAttemptCount?: number;
4
4
  connAttemptGap?: number;
5
5
  }
6
- declare type Start = {
6
+ type Start = {
7
7
  type: 'start';
8
8
  ingestPoint: string;
9
9
  pageNo: number;
10
10
  timestamp: number;
11
11
  url: string;
12
12
  } & Options;
13
- declare type Auth = {
13
+ type Auth = {
14
14
  type: 'auth';
15
15
  token: string;
16
16
  beaconSizeLimit?: number;
17
17
  };
18
- export declare type ToWorkerData = null | 'stop' | Start | Auth | Array<Message>;
19
- declare type Failure = {
18
+ export type ToWorkerData = null | 'stop' | Start | Auth | Array<Message>;
19
+ type Failure = {
20
20
  type: 'failure';
21
21
  reason: string;
22
22
  };
23
- export declare type FromWorkerData = 'restart' | Failure;
23
+ export type FromWorkerData = 'restart' | Failure;
24
24
  export {};