@openreplay/tracker 4.1.9-beta.2 → 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.
- package/cjs/app/guards.d.ts +1 -1
- package/cjs/app/index.d.ts +7 -7
- package/cjs/app/index.js +3 -3
- package/cjs/app/logger.d.ts +3 -3
- package/cjs/app/messages.gen.d.ts +2 -2
- package/cjs/app/messages.gen.js +79 -79
- package/cjs/app/nodes.d.ts +1 -1
- package/cjs/app/observer/iframe_offsets.d.ts +1 -1
- package/cjs/app/observer/top_observer.d.ts +2 -2
- package/cjs/app/session.d.ts +2 -2
- package/cjs/app/ticker.d.ts +1 -1
- package/cjs/common/interaction.d.ts +5 -5
- package/cjs/common/messages.gen.d.ts +75 -75
- package/cjs/index.d.ts +1 -1
- package/cjs/modules/cssrules.js +1 -1
- package/cjs/modules/input.d.ts +1 -1
- package/cjs/modules/input.js +6 -6
- package/cjs/modules/network.d.ts +3 -3
- package/cjs/vendors/finder/finder.d.ts +1 -1
- package/lib/app/guards.d.ts +1 -1
- package/lib/app/index.d.ts +7 -7
- package/lib/app/index.js +3 -3
- package/lib/app/logger.d.ts +3 -3
- package/lib/app/messages.gen.d.ts +2 -2
- package/lib/app/messages.gen.js +75 -75
- package/lib/app/nodes.d.ts +1 -1
- package/lib/app/observer/iframe_offsets.d.ts +1 -1
- package/lib/app/observer/top_observer.d.ts +2 -2
- package/lib/app/session.d.ts +2 -2
- package/lib/app/ticker.d.ts +1 -1
- package/lib/common/interaction.d.ts +5 -5
- package/lib/common/messages.gen.d.ts +75 -75
- package/lib/common/tsconfig.tsbuildinfo +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/modules/cssrules.js +1 -1
- package/lib/modules/input.d.ts +1 -1
- package/lib/modules/input.js +6 -6
- package/lib/modules/network.d.ts +3 -3
- package/lib/vendors/finder/finder.d.ts +1 -1
- package/package.json +1 -1
package/lib/app/messages.gen.js
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
1
|
// Auto-generated, do not edit
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
|
|
4
|
-
return [
|
|
5
|
-
81 /* BatchMetadata */,
|
|
6
|
-
version,
|
|
7
|
-
pageNo,
|
|
8
|
-
firstIndex,
|
|
9
|
-
timestamp,
|
|
10
|
-
location,
|
|
11
|
-
];
|
|
12
|
-
}
|
|
13
|
-
export function PartitionedMessage(partNo, partTotal) {
|
|
14
|
-
return [
|
|
15
|
-
82 /* PartitionedMessage */,
|
|
16
|
-
partNo,
|
|
17
|
-
partTotal,
|
|
18
|
-
];
|
|
19
|
-
}
|
|
20
3
|
export function Timestamp(timestamp) {
|
|
21
4
|
return [
|
|
22
|
-
0 /* Timestamp */,
|
|
5
|
+
0 /* Messages.Type.Timestamp */,
|
|
23
6
|
timestamp,
|
|
24
7
|
];
|
|
25
8
|
}
|
|
26
9
|
export function SetPageLocation(url, referrer, navigationStart) {
|
|
27
10
|
return [
|
|
28
|
-
4 /* SetPageLocation */,
|
|
11
|
+
4 /* Messages.Type.SetPageLocation */,
|
|
29
12
|
url,
|
|
30
13
|
referrer,
|
|
31
14
|
navigationStart,
|
|
@@ -33,26 +16,26 @@ export function SetPageLocation(url, referrer, navigationStart) {
|
|
|
33
16
|
}
|
|
34
17
|
export function SetViewportSize(width, height) {
|
|
35
18
|
return [
|
|
36
|
-
5 /* SetViewportSize */,
|
|
19
|
+
5 /* Messages.Type.SetViewportSize */,
|
|
37
20
|
width,
|
|
38
21
|
height,
|
|
39
22
|
];
|
|
40
23
|
}
|
|
41
24
|
export function SetViewportScroll(x, y) {
|
|
42
25
|
return [
|
|
43
|
-
6 /* SetViewportScroll */,
|
|
26
|
+
6 /* Messages.Type.SetViewportScroll */,
|
|
44
27
|
x,
|
|
45
28
|
y,
|
|
46
29
|
];
|
|
47
30
|
}
|
|
48
31
|
export function CreateDocument() {
|
|
49
32
|
return [
|
|
50
|
-
7 /* CreateDocument */,
|
|
33
|
+
7 /* Messages.Type.CreateDocument */,
|
|
51
34
|
];
|
|
52
35
|
}
|
|
53
36
|
export function CreateElementNode(id, parentID, index, tag, svg) {
|
|
54
37
|
return [
|
|
55
|
-
8 /* CreateElementNode */,
|
|
38
|
+
8 /* Messages.Type.CreateElementNode */,
|
|
56
39
|
id,
|
|
57
40
|
parentID,
|
|
58
41
|
index,
|
|
@@ -62,7 +45,7 @@ export function CreateElementNode(id, parentID, index, tag, svg) {
|
|
|
62
45
|
}
|
|
63
46
|
export function CreateTextNode(id, parentID, index) {
|
|
64
47
|
return [
|
|
65
|
-
9 /* CreateTextNode */,
|
|
48
|
+
9 /* Messages.Type.CreateTextNode */,
|
|
66
49
|
id,
|
|
67
50
|
parentID,
|
|
68
51
|
index,
|
|
@@ -70,7 +53,7 @@ export function CreateTextNode(id, parentID, index) {
|
|
|
70
53
|
}
|
|
71
54
|
export function MoveNode(id, parentID, index) {
|
|
72
55
|
return [
|
|
73
|
-
10 /* MoveNode */,
|
|
56
|
+
10 /* Messages.Type.MoveNode */,
|
|
74
57
|
id,
|
|
75
58
|
parentID,
|
|
76
59
|
index,
|
|
@@ -78,13 +61,13 @@ export function MoveNode(id, parentID, index) {
|
|
|
78
61
|
}
|
|
79
62
|
export function RemoveNode(id) {
|
|
80
63
|
return [
|
|
81
|
-
11 /* RemoveNode */,
|
|
64
|
+
11 /* Messages.Type.RemoveNode */,
|
|
82
65
|
id,
|
|
83
66
|
];
|
|
84
67
|
}
|
|
85
68
|
export function SetNodeAttribute(id, name, value) {
|
|
86
69
|
return [
|
|
87
|
-
12 /* SetNodeAttribute */,
|
|
70
|
+
12 /* Messages.Type.SetNodeAttribute */,
|
|
88
71
|
id,
|
|
89
72
|
name,
|
|
90
73
|
value,
|
|
@@ -92,21 +75,21 @@ export function SetNodeAttribute(id, name, value) {
|
|
|
92
75
|
}
|
|
93
76
|
export function RemoveNodeAttribute(id, name) {
|
|
94
77
|
return [
|
|
95
|
-
13 /* RemoveNodeAttribute */,
|
|
78
|
+
13 /* Messages.Type.RemoveNodeAttribute */,
|
|
96
79
|
id,
|
|
97
80
|
name,
|
|
98
81
|
];
|
|
99
82
|
}
|
|
100
83
|
export function SetNodeData(id, data) {
|
|
101
84
|
return [
|
|
102
|
-
14 /* SetNodeData */,
|
|
85
|
+
14 /* Messages.Type.SetNodeData */,
|
|
103
86
|
id,
|
|
104
87
|
data,
|
|
105
88
|
];
|
|
106
89
|
}
|
|
107
90
|
export function SetNodeScroll(id, x, y) {
|
|
108
91
|
return [
|
|
109
|
-
16 /* SetNodeScroll */,
|
|
92
|
+
16 /* Messages.Type.SetNodeScroll */,
|
|
110
93
|
id,
|
|
111
94
|
x,
|
|
112
95
|
y,
|
|
@@ -114,14 +97,14 @@ export function SetNodeScroll(id, x, y) {
|
|
|
114
97
|
}
|
|
115
98
|
export function SetInputTarget(id, label) {
|
|
116
99
|
return [
|
|
117
|
-
17 /* SetInputTarget */,
|
|
100
|
+
17 /* Messages.Type.SetInputTarget */,
|
|
118
101
|
id,
|
|
119
102
|
label,
|
|
120
103
|
];
|
|
121
104
|
}
|
|
122
105
|
export function SetInputValue(id, value, mask) {
|
|
123
106
|
return [
|
|
124
|
-
18 /* SetInputValue */,
|
|
107
|
+
18 /* Messages.Type.SetInputValue */,
|
|
125
108
|
id,
|
|
126
109
|
value,
|
|
127
110
|
mask,
|
|
@@ -129,21 +112,21 @@ export function SetInputValue(id, value, mask) {
|
|
|
129
112
|
}
|
|
130
113
|
export function SetInputChecked(id, checked) {
|
|
131
114
|
return [
|
|
132
|
-
19 /* SetInputChecked */,
|
|
115
|
+
19 /* Messages.Type.SetInputChecked */,
|
|
133
116
|
id,
|
|
134
117
|
checked,
|
|
135
118
|
];
|
|
136
119
|
}
|
|
137
120
|
export function MouseMove(x, y) {
|
|
138
121
|
return [
|
|
139
|
-
20 /* MouseMove */,
|
|
122
|
+
20 /* Messages.Type.MouseMove */,
|
|
140
123
|
x,
|
|
141
124
|
y,
|
|
142
125
|
];
|
|
143
126
|
}
|
|
144
127
|
export function NetworkRequest(type, method, url, request, response, status, timestamp, duration) {
|
|
145
128
|
return [
|
|
146
|
-
21 /* NetworkRequest */,
|
|
129
|
+
21 /* Messages.Type.NetworkRequest */,
|
|
147
130
|
type,
|
|
148
131
|
method,
|
|
149
132
|
url,
|
|
@@ -156,14 +139,14 @@ export function NetworkRequest(type, method, url, request, response, status, tim
|
|
|
156
139
|
}
|
|
157
140
|
export function ConsoleLog(level, value) {
|
|
158
141
|
return [
|
|
159
|
-
22 /* ConsoleLog */,
|
|
142
|
+
22 /* Messages.Type.ConsoleLog */,
|
|
160
143
|
level,
|
|
161
144
|
value,
|
|
162
145
|
];
|
|
163
146
|
}
|
|
164
147
|
export function PageLoadTiming(requestStart, responseStart, responseEnd, domContentLoadedEventStart, domContentLoadedEventEnd, loadEventStart, loadEventEnd, firstPaint, firstContentfulPaint) {
|
|
165
148
|
return [
|
|
166
|
-
23 /* PageLoadTiming */,
|
|
149
|
+
23 /* Messages.Type.PageLoadTiming */,
|
|
167
150
|
requestStart,
|
|
168
151
|
responseStart,
|
|
169
152
|
responseEnd,
|
|
@@ -177,7 +160,7 @@ export function PageLoadTiming(requestStart, responseStart, responseEnd, domCont
|
|
|
177
160
|
}
|
|
178
161
|
export function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive) {
|
|
179
162
|
return [
|
|
180
|
-
24 /* PageRenderTiming */,
|
|
163
|
+
24 /* Messages.Type.PageRenderTiming */,
|
|
181
164
|
speedIndex,
|
|
182
165
|
visuallyComplete,
|
|
183
166
|
timeToInteractive,
|
|
@@ -185,7 +168,7 @@ export function PageRenderTiming(speedIndex, visuallyComplete, timeToInteractive
|
|
|
185
168
|
}
|
|
186
169
|
export function JSExceptionDeprecated(name, message, payload) {
|
|
187
170
|
return [
|
|
188
|
-
25 /* JSExceptionDeprecated */,
|
|
171
|
+
25 /* Messages.Type.JSExceptionDeprecated */,
|
|
189
172
|
name,
|
|
190
173
|
message,
|
|
191
174
|
payload,
|
|
@@ -193,33 +176,33 @@ export function JSExceptionDeprecated(name, message, payload) {
|
|
|
193
176
|
}
|
|
194
177
|
export function CustomEvent(name, payload) {
|
|
195
178
|
return [
|
|
196
|
-
27 /* CustomEvent */,
|
|
179
|
+
27 /* Messages.Type.CustomEvent */,
|
|
197
180
|
name,
|
|
198
181
|
payload,
|
|
199
182
|
];
|
|
200
183
|
}
|
|
201
184
|
export function UserID(id) {
|
|
202
185
|
return [
|
|
203
|
-
28 /* UserID */,
|
|
186
|
+
28 /* Messages.Type.UserID */,
|
|
204
187
|
id,
|
|
205
188
|
];
|
|
206
189
|
}
|
|
207
190
|
export function UserAnonymousID(id) {
|
|
208
191
|
return [
|
|
209
|
-
29 /* UserAnonymousID */,
|
|
192
|
+
29 /* Messages.Type.UserAnonymousID */,
|
|
210
193
|
id,
|
|
211
194
|
];
|
|
212
195
|
}
|
|
213
196
|
export function Metadata(key, value) {
|
|
214
197
|
return [
|
|
215
|
-
30 /* Metadata */,
|
|
198
|
+
30 /* Messages.Type.Metadata */,
|
|
216
199
|
key,
|
|
217
200
|
value,
|
|
218
201
|
];
|
|
219
202
|
}
|
|
220
203
|
export function CSSInsertRule(id, rule, index) {
|
|
221
204
|
return [
|
|
222
|
-
37 /* CSSInsertRule */,
|
|
205
|
+
37 /* Messages.Type.CSSInsertRule */,
|
|
223
206
|
id,
|
|
224
207
|
rule,
|
|
225
208
|
index,
|
|
@@ -227,14 +210,14 @@ export function CSSInsertRule(id, rule, index) {
|
|
|
227
210
|
}
|
|
228
211
|
export function CSSDeleteRule(id, index) {
|
|
229
212
|
return [
|
|
230
|
-
38 /* CSSDeleteRule */,
|
|
213
|
+
38 /* Messages.Type.CSSDeleteRule */,
|
|
231
214
|
id,
|
|
232
215
|
index,
|
|
233
216
|
];
|
|
234
217
|
}
|
|
235
218
|
export function Fetch(method, url, request, response, status, timestamp, duration) {
|
|
236
219
|
return [
|
|
237
|
-
39 /* Fetch */,
|
|
220
|
+
39 /* Messages.Type.Fetch */,
|
|
238
221
|
method,
|
|
239
222
|
url,
|
|
240
223
|
request,
|
|
@@ -246,7 +229,7 @@ export function Fetch(method, url, request, response, status, timestamp, duratio
|
|
|
246
229
|
}
|
|
247
230
|
export function Profiler(name, duration, args, result) {
|
|
248
231
|
return [
|
|
249
|
-
40 /* Profiler */,
|
|
232
|
+
40 /* Messages.Type.Profiler */,
|
|
250
233
|
name,
|
|
251
234
|
duration,
|
|
252
235
|
args,
|
|
@@ -255,20 +238,20 @@ export function Profiler(name, duration, args, result) {
|
|
|
255
238
|
}
|
|
256
239
|
export function OTable(key, value) {
|
|
257
240
|
return [
|
|
258
|
-
41 /* OTable */,
|
|
241
|
+
41 /* Messages.Type.OTable */,
|
|
259
242
|
key,
|
|
260
243
|
value,
|
|
261
244
|
];
|
|
262
245
|
}
|
|
263
246
|
export function StateAction(type) {
|
|
264
247
|
return [
|
|
265
|
-
42 /* StateAction */,
|
|
248
|
+
42 /* Messages.Type.StateAction */,
|
|
266
249
|
type,
|
|
267
250
|
];
|
|
268
251
|
}
|
|
269
252
|
export function Redux(action, state, duration) {
|
|
270
253
|
return [
|
|
271
|
-
44 /* Redux */,
|
|
254
|
+
44 /* Messages.Type.Redux */,
|
|
272
255
|
action,
|
|
273
256
|
state,
|
|
274
257
|
duration,
|
|
@@ -276,21 +259,21 @@ export function Redux(action, state, duration) {
|
|
|
276
259
|
}
|
|
277
260
|
export function Vuex(mutation, state) {
|
|
278
261
|
return [
|
|
279
|
-
45 /* Vuex */,
|
|
262
|
+
45 /* Messages.Type.Vuex */,
|
|
280
263
|
mutation,
|
|
281
264
|
state,
|
|
282
265
|
];
|
|
283
266
|
}
|
|
284
267
|
export function MobX(type, payload) {
|
|
285
268
|
return [
|
|
286
|
-
46 /* MobX */,
|
|
269
|
+
46 /* Messages.Type.MobX */,
|
|
287
270
|
type,
|
|
288
271
|
payload,
|
|
289
272
|
];
|
|
290
273
|
}
|
|
291
274
|
export function NgRx(action, state, duration) {
|
|
292
275
|
return [
|
|
293
|
-
47 /* NgRx */,
|
|
276
|
+
47 /* Messages.Type.NgRx */,
|
|
294
277
|
action,
|
|
295
278
|
state,
|
|
296
279
|
duration,
|
|
@@ -298,7 +281,7 @@ export function NgRx(action, state, duration) {
|
|
|
298
281
|
}
|
|
299
282
|
export function GraphQL(operationKind, operationName, variables, response) {
|
|
300
283
|
return [
|
|
301
|
-
48 /* GraphQL */,
|
|
284
|
+
48 /* Messages.Type.GraphQL */,
|
|
302
285
|
operationKind,
|
|
303
286
|
operationName,
|
|
304
287
|
variables,
|
|
@@ -307,7 +290,7 @@ export function GraphQL(operationKind, operationName, variables, response) {
|
|
|
307
290
|
}
|
|
308
291
|
export function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize) {
|
|
309
292
|
return [
|
|
310
|
-
49 /* PerformanceTrack */,
|
|
293
|
+
49 /* Messages.Type.PerformanceTrack */,
|
|
311
294
|
frames,
|
|
312
295
|
ticks,
|
|
313
296
|
totalJSHeapSize,
|
|
@@ -316,7 +299,7 @@ export function PerformanceTrack(frames, ticks, totalJSHeapSize, usedJSHeapSize)
|
|
|
316
299
|
}
|
|
317
300
|
export function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBodySize, decodedBodySize, url, initiator) {
|
|
318
301
|
return [
|
|
319
|
-
53 /* ResourceTiming */,
|
|
302
|
+
53 /* Messages.Type.ResourceTiming */,
|
|
320
303
|
timestamp,
|
|
321
304
|
duration,
|
|
322
305
|
ttfb,
|
|
@@ -329,20 +312,20 @@ export function ResourceTiming(timestamp, duration, ttfb, headerSize, encodedBod
|
|
|
329
312
|
}
|
|
330
313
|
export function ConnectionInformation(downlink, type) {
|
|
331
314
|
return [
|
|
332
|
-
54 /* ConnectionInformation */,
|
|
315
|
+
54 /* Messages.Type.ConnectionInformation */,
|
|
333
316
|
downlink,
|
|
334
317
|
type,
|
|
335
318
|
];
|
|
336
319
|
}
|
|
337
320
|
export function SetPageVisibility(hidden) {
|
|
338
321
|
return [
|
|
339
|
-
55 /* SetPageVisibility */,
|
|
322
|
+
55 /* Messages.Type.SetPageVisibility */,
|
|
340
323
|
hidden,
|
|
341
324
|
];
|
|
342
325
|
}
|
|
343
326
|
export function LoadFontFace(parentID, family, source, descriptors) {
|
|
344
327
|
return [
|
|
345
|
-
57 /* LoadFontFace */,
|
|
328
|
+
57 /* Messages.Type.LoadFontFace */,
|
|
346
329
|
parentID,
|
|
347
330
|
family,
|
|
348
331
|
source,
|
|
@@ -351,13 +334,13 @@ export function LoadFontFace(parentID, family, source, descriptors) {
|
|
|
351
334
|
}
|
|
352
335
|
export function SetNodeFocus(id) {
|
|
353
336
|
return [
|
|
354
|
-
58 /* SetNodeFocus */,
|
|
337
|
+
58 /* Messages.Type.SetNodeFocus */,
|
|
355
338
|
id,
|
|
356
339
|
];
|
|
357
340
|
}
|
|
358
341
|
export function LongTask(timestamp, duration, context, containerType, containerSrc, containerId, containerName) {
|
|
359
342
|
return [
|
|
360
|
-
59 /* LongTask */,
|
|
343
|
+
59 /* Messages.Type.LongTask */,
|
|
361
344
|
timestamp,
|
|
362
345
|
duration,
|
|
363
346
|
context,
|
|
@@ -369,7 +352,7 @@ export function LongTask(timestamp, duration, context, containerType, containerS
|
|
|
369
352
|
}
|
|
370
353
|
export function SetNodeAttributeURLBased(id, name, value, baseURL) {
|
|
371
354
|
return [
|
|
372
|
-
60 /* SetNodeAttributeURLBased */,
|
|
355
|
+
60 /* Messages.Type.SetNodeAttributeURLBased */,
|
|
373
356
|
id,
|
|
374
357
|
name,
|
|
375
358
|
value,
|
|
@@ -378,7 +361,7 @@ export function SetNodeAttributeURLBased(id, name, value, baseURL) {
|
|
|
378
361
|
}
|
|
379
362
|
export function SetCSSDataURLBased(id, data, baseURL) {
|
|
380
363
|
return [
|
|
381
|
-
61 /* SetCSSDataURLBased */,
|
|
364
|
+
61 /* Messages.Type.SetCSSDataURLBased */,
|
|
382
365
|
id,
|
|
383
366
|
data,
|
|
384
367
|
baseURL,
|
|
@@ -386,21 +369,21 @@ export function SetCSSDataURLBased(id, data, baseURL) {
|
|
|
386
369
|
}
|
|
387
370
|
export function TechnicalInfo(type, value) {
|
|
388
371
|
return [
|
|
389
|
-
63 /* TechnicalInfo */,
|
|
372
|
+
63 /* Messages.Type.TechnicalInfo */,
|
|
390
373
|
type,
|
|
391
374
|
value,
|
|
392
375
|
];
|
|
393
376
|
}
|
|
394
377
|
export function CustomIssue(name, payload) {
|
|
395
378
|
return [
|
|
396
|
-
64 /* CustomIssue */,
|
|
379
|
+
64 /* Messages.Type.CustomIssue */,
|
|
397
380
|
name,
|
|
398
381
|
payload,
|
|
399
382
|
];
|
|
400
383
|
}
|
|
401
384
|
export function CSSInsertRuleURLBased(id, rule, index, baseURL) {
|
|
402
385
|
return [
|
|
403
|
-
67 /* CSSInsertRuleURLBased */,
|
|
386
|
+
67 /* Messages.Type.CSSInsertRuleURLBased */,
|
|
404
387
|
id,
|
|
405
388
|
rule,
|
|
406
389
|
index,
|
|
@@ -409,7 +392,7 @@ export function CSSInsertRuleURLBased(id, rule, index, baseURL) {
|
|
|
409
392
|
}
|
|
410
393
|
export function MouseClick(id, hesitationTime, label, selector) {
|
|
411
394
|
return [
|
|
412
|
-
69 /* MouseClick */,
|
|
395
|
+
69 /* Messages.Type.MouseClick */,
|
|
413
396
|
id,
|
|
414
397
|
hesitationTime,
|
|
415
398
|
label,
|
|
@@ -418,14 +401,14 @@ export function MouseClick(id, hesitationTime, label, selector) {
|
|
|
418
401
|
}
|
|
419
402
|
export function CreateIFrameDocument(frameID, id) {
|
|
420
403
|
return [
|
|
421
|
-
70 /* CreateIFrameDocument */,
|
|
404
|
+
70 /* Messages.Type.CreateIFrameDocument */,
|
|
422
405
|
frameID,
|
|
423
406
|
id,
|
|
424
407
|
];
|
|
425
408
|
}
|
|
426
409
|
export function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
|
|
427
410
|
return [
|
|
428
|
-
71 /* AdoptedSSReplaceURLBased */,
|
|
411
|
+
71 /* Messages.Type.AdoptedSSReplaceURLBased */,
|
|
429
412
|
sheetID,
|
|
430
413
|
text,
|
|
431
414
|
baseURL,
|
|
@@ -433,7 +416,7 @@ export function AdoptedSSReplaceURLBased(sheetID, text, baseURL) {
|
|
|
433
416
|
}
|
|
434
417
|
export function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
|
|
435
418
|
return [
|
|
436
|
-
73 /* AdoptedSSInsertRuleURLBased */,
|
|
419
|
+
73 /* Messages.Type.AdoptedSSInsertRuleURLBased */,
|
|
437
420
|
sheetID,
|
|
438
421
|
rule,
|
|
439
422
|
index,
|
|
@@ -442,38 +425,55 @@ export function AdoptedSSInsertRuleURLBased(sheetID, rule, index, baseURL) {
|
|
|
442
425
|
}
|
|
443
426
|
export function AdoptedSSDeleteRule(sheetID, index) {
|
|
444
427
|
return [
|
|
445
|
-
75 /* AdoptedSSDeleteRule */,
|
|
428
|
+
75 /* Messages.Type.AdoptedSSDeleteRule */,
|
|
446
429
|
sheetID,
|
|
447
430
|
index,
|
|
448
431
|
];
|
|
449
432
|
}
|
|
450
433
|
export function AdoptedSSAddOwner(sheetID, id) {
|
|
451
434
|
return [
|
|
452
|
-
76 /* AdoptedSSAddOwner */,
|
|
435
|
+
76 /* Messages.Type.AdoptedSSAddOwner */,
|
|
453
436
|
sheetID,
|
|
454
437
|
id,
|
|
455
438
|
];
|
|
456
439
|
}
|
|
457
440
|
export function AdoptedSSRemoveOwner(sheetID, id) {
|
|
458
441
|
return [
|
|
459
|
-
77 /* AdoptedSSRemoveOwner */,
|
|
442
|
+
77 /* Messages.Type.AdoptedSSRemoveOwner */,
|
|
460
443
|
sheetID,
|
|
461
444
|
id,
|
|
462
445
|
];
|
|
463
446
|
}
|
|
464
447
|
export function Zustand(mutation, state) {
|
|
465
448
|
return [
|
|
466
|
-
79 /* Zustand */,
|
|
449
|
+
79 /* Messages.Type.Zustand */,
|
|
467
450
|
mutation,
|
|
468
451
|
state,
|
|
469
452
|
];
|
|
470
453
|
}
|
|
471
454
|
export function JSException(name, message, payload, metadata) {
|
|
472
455
|
return [
|
|
473
|
-
78 /* JSException */,
|
|
456
|
+
78 /* Messages.Type.JSException */,
|
|
474
457
|
name,
|
|
475
458
|
message,
|
|
476
459
|
payload,
|
|
477
460
|
metadata,
|
|
478
461
|
];
|
|
479
462
|
}
|
|
463
|
+
export function BatchMetadata(version, pageNo, firstIndex, timestamp, location) {
|
|
464
|
+
return [
|
|
465
|
+
81 /* Messages.Type.BatchMetadata */,
|
|
466
|
+
version,
|
|
467
|
+
pageNo,
|
|
468
|
+
firstIndex,
|
|
469
|
+
timestamp,
|
|
470
|
+
location,
|
|
471
|
+
];
|
|
472
|
+
}
|
|
473
|
+
export function PartitionedMessage(partNo, partTotal) {
|
|
474
|
+
return [
|
|
475
|
+
82 /* Messages.Type.PartitionedMessage */,
|
|
476
|
+
partNo,
|
|
477
|
+
partTotal,
|
|
478
|
+
];
|
|
479
|
+
}
|
package/lib/app/nodes.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import App from '../index.js';
|
|
|
4
4
|
export interface Options {
|
|
5
5
|
captureIFrames: boolean;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
package/lib/app/session.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ interface SessionInfo {
|
|
|
6
6
|
timestamp: number;
|
|
7
7
|
projectID?: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
export
|
|
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
|
};
|
package/lib/app/ticker.d.ts
CHANGED
|
@@ -3,22 +3,22 @@ export interface Options {
|
|
|
3
3
|
connAttemptCount?: number;
|
|
4
4
|
connAttemptGap?: number;
|
|
5
5
|
}
|
|
6
|
-
|
|
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
|
-
|
|
13
|
+
type Auth = {
|
|
14
14
|
type: 'auth';
|
|
15
15
|
token: string;
|
|
16
16
|
beaconSizeLimit?: number;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
|
|
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
|
|
23
|
+
export type FromWorkerData = 'restart' | Failure;
|
|
24
24
|
export {};
|