@openreplay/tracker 15.0.0 → 15.0.2
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/dist/cjs/index.js +9058 -68
- package/dist/cjs/index.js.map +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/types/common/interaction.d.ts +37 -0
- package/dist/types/common/messages.gen.d.ts +567 -0
- package/dist/types/main/app/canvas.d.ts +28 -0
- package/dist/types/main/app/guards.d.ts +22 -0
- package/dist/types/main/app/index.d.ts +322 -0
- package/dist/types/main/app/logger.d.ts +17 -0
- package/dist/types/main/app/messages.gen.d.ts +81 -0
- package/dist/types/main/app/nodes/index.d.ts +31 -0
- package/dist/types/main/app/nodes/maintainer.d.ts +28 -0
- package/dist/types/main/app/observer/iframe_observer.d.ts +6 -0
- package/dist/types/main/app/observer/iframe_offsets.d.ts +8 -0
- package/dist/types/main/app/observer/observer.d.ts +29 -0
- package/dist/types/main/app/observer/shadow_root_observer.d.ts +4 -0
- package/dist/types/main/app/observer/top_observer.d.ts +31 -0
- package/dist/types/main/app/sanitizer.d.ts +48 -0
- package/dist/types/main/app/session.d.ts +57 -0
- package/dist/types/main/app/ticker.d.ts +18 -0
- package/dist/types/main/index.d.ts +111 -0
- package/dist/types/main/modules/attributeSender.d.ts +23 -0
- package/dist/types/main/modules/axiosSpy.d.ts +54 -0
- package/dist/types/main/modules/conditionsManager.d.ts +84 -0
- package/dist/types/main/modules/connection.d.ts +2 -0
- package/dist/types/main/modules/console.d.ts +6 -0
- package/dist/types/main/modules/constructedStyleSheets.d.ts +4 -0
- package/dist/types/main/modules/cssrules.d.ts +2 -0
- package/dist/types/main/modules/exception.d.ts +16 -0
- package/dist/types/main/modules/featureFlags.d.ts +25 -0
- package/dist/types/main/modules/focus.d.ts +2 -0
- package/dist/types/main/modules/fonts.d.ts +2 -0
- package/dist/types/main/modules/img.d.ts +2 -0
- package/dist/types/main/modules/input.d.ts +34 -0
- package/dist/types/main/modules/mouse.d.ts +31 -0
- package/dist/types/main/modules/network.d.ts +31 -0
- package/dist/types/main/modules/performance.d.ts +7 -0
- package/dist/types/main/modules/scroll.d.ts +2 -0
- package/dist/types/main/modules/selection.d.ts +7 -0
- package/dist/types/main/modules/tabs.d.ts +2 -0
- package/dist/types/main/modules/tagWatcher.d.ts +25 -0
- package/dist/types/main/modules/timing.d.ts +8 -0
- package/dist/types/main/modules/userTesting/SignalManager.d.ts +29 -0
- package/dist/types/main/modules/userTesting/dnd.d.ts +1 -0
- package/dist/types/main/modules/userTesting/index.d.ts +45 -0
- package/dist/types/main/modules/userTesting/recorder.d.ts +24 -0
- package/dist/types/main/modules/userTesting/styles.d.ts +277 -0
- package/dist/types/main/modules/userTesting/utils.d.ts +9 -0
- package/dist/types/main/modules/viewport.d.ts +2 -0
- package/dist/types/main/utils.d.ts +30 -0
- package/package.json +9 -5
package/dist/lib/index.js
CHANGED
|
@@ -4644,7 +4644,7 @@ class App {
|
|
|
4644
4644
|
this.stopCallbacks = [];
|
|
4645
4645
|
this.commitCallbacks = [];
|
|
4646
4646
|
this.activityState = ActivityState.NotActive;
|
|
4647
|
-
this.version = '15.0.
|
|
4647
|
+
this.version = '15.0.2'; // TODO: version compatability check inside each plugin.
|
|
4648
4648
|
this.socketMode = false;
|
|
4649
4649
|
this.compressionThreshold = 24 * 1000;
|
|
4650
4650
|
this.bc = null;
|
|
@@ -9042,7 +9042,7 @@ function processOptions(obj) {
|
|
|
9042
9042
|
}
|
|
9043
9043
|
const canAccessTop = () => {
|
|
9044
9044
|
try {
|
|
9045
|
-
return Boolean(window.top);
|
|
9045
|
+
return Boolean(window.top?.document);
|
|
9046
9046
|
}
|
|
9047
9047
|
catch {
|
|
9048
9048
|
return false;
|
|
@@ -9065,7 +9065,7 @@ class API {
|
|
|
9065
9065
|
const orig = this.options.ingestPoint || DEFAULT_INGEST_POINT;
|
|
9066
9066
|
req.open('POST', orig + '/v1/web/not-started');
|
|
9067
9067
|
req.send(JSON.stringify({
|
|
9068
|
-
trackerVersion: '15.0.
|
|
9068
|
+
trackerVersion: '15.0.2',
|
|
9069
9069
|
projectKey: this.options.projectKey,
|
|
9070
9070
|
doNotTrack,
|
|
9071
9071
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|
|
@@ -9098,7 +9098,7 @@ class API {
|
|
|
9098
9098
|
return;
|
|
9099
9099
|
}
|
|
9100
9100
|
if (window.__OPENREPLAY__ ||
|
|
9101
|
-
(!this.crossdomainMode && inIframe() && canAccessTop() && window.top
|
|
9101
|
+
(!this.crossdomainMode && inIframe() && canAccessTop() && window.top.__OPENREPLAY__)) {
|
|
9102
9102
|
console.error('OpenReplay: one tracker instance has been initialised already');
|
|
9103
9103
|
return;
|
|
9104
9104
|
}
|