clarity-js 0.7.49 → 0.7.51
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/build/clarity.extended.js +1 -1
- package/build/clarity.insight.js +1 -1
- package/build/clarity.js +75 -54
- package/build/clarity.min.js +1 -1
- package/build/clarity.module.js +75 -54
- package/build/clarity.performance.js +1 -1
- package/package.json +1 -1
- package/src/core/version.ts +1 -1
- package/src/data/consent.ts +21 -0
- package/src/data/metadata.ts +11 -1
- package/src/data/upgrade.ts +1 -0
- package/src/data/upload.ts +4 -1
- package/types/data.d.ts +13 -2
package/src/data/upload.ts
CHANGED
|
@@ -241,7 +241,10 @@ function check(xhr: XMLHttpRequest, sequence: number): void {
|
|
|
241
241
|
|
|
242
242
|
function done(sequence: number): void {
|
|
243
243
|
// If we everything went successfully, and it is the first sequence, save this session for future reference
|
|
244
|
-
if (sequence === 1) {
|
|
244
|
+
if (sequence === 1) {
|
|
245
|
+
metadata.save();
|
|
246
|
+
metadata.callback();
|
|
247
|
+
}
|
|
245
248
|
}
|
|
246
249
|
|
|
247
250
|
function delay(): number {
|
package/types/data.d.ts
CHANGED
|
@@ -70,7 +70,17 @@ export const enum Event {
|
|
|
70
70
|
Snapshot = 43,
|
|
71
71
|
Animation = 44,
|
|
72
72
|
StyleSheetAdoption = 45,
|
|
73
|
-
StyleSheetUpdate = 46
|
|
73
|
+
StyleSheetUpdate = 46,
|
|
74
|
+
|
|
75
|
+
// Apps specific events
|
|
76
|
+
WebViewDiscover = 100,
|
|
77
|
+
WebViewMutation = 101,
|
|
78
|
+
MutationError = 102,
|
|
79
|
+
FragmentVisibility = 103,
|
|
80
|
+
Keystrokes = 104,
|
|
81
|
+
BackGesture = 105,
|
|
82
|
+
WebViewStatus = 106,
|
|
83
|
+
AppInstallReferrer = 107
|
|
74
84
|
}
|
|
75
85
|
|
|
76
86
|
export const enum Metric {
|
|
@@ -153,7 +163,8 @@ export const enum Dimension {
|
|
|
153
163
|
InitialScrollBottom = 32,
|
|
154
164
|
AncestorOrigins = 33,
|
|
155
165
|
Timezone = 34,
|
|
156
|
-
TimezoneOffset = 35
|
|
166
|
+
TimezoneOffset = 35,
|
|
167
|
+
Consent = 36
|
|
157
168
|
}
|
|
158
169
|
|
|
159
170
|
export const enum Check {
|