@openreplay/tracker 15.0.7 → 15.1.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.
- package/dist/cjs/entry.js +9840 -0
- package/dist/cjs/entry.js.map +1 -0
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/observer/observer.d.ts +1 -0
- package/dist/cjs/main/entry.d.ts +5 -0
- package/dist/cjs/main/index.d.ts +3 -3
- package/dist/cjs/main/singleton.d.ts +108 -0
- package/dist/lib/entry.js +9833 -0
- package/dist/lib/entry.js.map +1 -0
- package/dist/lib/index.js +5 -5
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/observer/observer.d.ts +1 -0
- package/dist/lib/main/entry.d.ts +5 -0
- package/dist/lib/main/index.d.ts +3 -3
- package/dist/lib/main/singleton.d.ts +108 -0
- package/package.json +12 -8
- package/dist/types/common/interaction.d.ts +0 -37
- package/dist/types/common/messages.gen.d.ts +0 -567
- package/dist/types/main/app/canvas.d.ts +0 -28
- package/dist/types/main/app/guards.d.ts +0 -23
- package/dist/types/main/app/index.d.ts +0 -322
- package/dist/types/main/app/logger.d.ts +0 -17
- package/dist/types/main/app/messages.gen.d.ts +0 -81
- package/dist/types/main/app/nodes/index.d.ts +0 -31
- package/dist/types/main/app/nodes/maintainer.d.ts +0 -28
- package/dist/types/main/app/observer/iframe_observer.d.ts +0 -6
- package/dist/types/main/app/observer/iframe_offsets.d.ts +0 -8
- package/dist/types/main/app/observer/observer.d.ts +0 -32
- package/dist/types/main/app/observer/shadow_root_observer.d.ts +0 -4
- package/dist/types/main/app/observer/top_observer.d.ts +0 -32
- package/dist/types/main/app/sanitizer.d.ts +0 -48
- package/dist/types/main/app/session.d.ts +0 -57
- package/dist/types/main/app/ticker.d.ts +0 -18
- package/dist/types/main/index.d.ts +0 -111
- package/dist/types/main/modules/attributeSender.d.ts +0 -23
- package/dist/types/main/modules/axiosSpy.d.ts +0 -54
- package/dist/types/main/modules/conditionsManager.d.ts +0 -84
- package/dist/types/main/modules/connection.d.ts +0 -2
- package/dist/types/main/modules/console.d.ts +0 -6
- package/dist/types/main/modules/constructedStyleSheets.d.ts +0 -4
- package/dist/types/main/modules/cssrules.d.ts +0 -2
- package/dist/types/main/modules/exception.d.ts +0 -16
- package/dist/types/main/modules/featureFlags.d.ts +0 -25
- package/dist/types/main/modules/focus.d.ts +0 -2
- package/dist/types/main/modules/fonts.d.ts +0 -2
- package/dist/types/main/modules/img.d.ts +0 -2
- package/dist/types/main/modules/input.d.ts +0 -34
- package/dist/types/main/modules/mouse.d.ts +0 -31
- package/dist/types/main/modules/network.d.ts +0 -32
- package/dist/types/main/modules/performance.d.ts +0 -7
- package/dist/types/main/modules/scroll.d.ts +0 -2
- package/dist/types/main/modules/selection.d.ts +0 -7
- package/dist/types/main/modules/tabs.d.ts +0 -2
- package/dist/types/main/modules/tagWatcher.d.ts +0 -25
- package/dist/types/main/modules/timing.d.ts +0 -8
- package/dist/types/main/modules/userTesting/SignalManager.d.ts +0 -29
- package/dist/types/main/modules/userTesting/dnd.d.ts +0 -1
- package/dist/types/main/modules/userTesting/index.d.ts +0 -45
- package/dist/types/main/modules/userTesting/recorder.d.ts +0 -24
- package/dist/types/main/modules/userTesting/styles.d.ts +0 -277
- package/dist/types/main/modules/userTesting/utils.d.ts +0 -9
- package/dist/types/main/modules/viewport.d.ts +0 -2
- package/dist/types/main/utils.d.ts +0 -30
package/dist/lib/index.js
CHANGED
|
@@ -3726,8 +3726,7 @@ class Nodes {
|
|
|
3726
3726
|
|
|
3727
3727
|
const iconCache = {};
|
|
3728
3728
|
const svgUrlCache = {};
|
|
3729
|
-
|
|
3730
|
-
async function parseUseEl(useElement, mode) {
|
|
3729
|
+
async function parseUseEl(useElement, mode, domParser) {
|
|
3731
3730
|
try {
|
|
3732
3731
|
const href = useElement.getAttribute('xlink:href') || useElement.getAttribute('href');
|
|
3733
3732
|
if (!href) {
|
|
@@ -3842,6 +3841,7 @@ class Observer {
|
|
|
3842
3841
|
this.attributesMap = new Map();
|
|
3843
3842
|
this.textSet = new Set();
|
|
3844
3843
|
this.disableSprites = false;
|
|
3844
|
+
this.domParser = new DOMParser();
|
|
3845
3845
|
this.disableSprites = options.disableSprites;
|
|
3846
3846
|
this.observer = createMutationObserver(this.app.safe((mutations) => {
|
|
3847
3847
|
for (const mutation of mutations) {
|
|
@@ -3938,7 +3938,7 @@ class Observer {
|
|
|
3938
3938
|
this.app.send(RemoveNodeAttribute(id, name));
|
|
3939
3939
|
}
|
|
3940
3940
|
if (isUseElement(node) && name === 'href' && !this.disableSprites) {
|
|
3941
|
-
parseUseEl(node, 'svgtext')
|
|
3941
|
+
parseUseEl(node, 'svgtext', this.domParser)
|
|
3942
3942
|
.then((svgData) => {
|
|
3943
3943
|
if (svgData) {
|
|
3944
3944
|
this.app.send(SetNodeAttribute(id, name, `_$OPENREPLAY_SPRITE$_${svgData}`));
|
|
@@ -4734,7 +4734,7 @@ class App {
|
|
|
4734
4734
|
this.stopCallbacks = [];
|
|
4735
4735
|
this.commitCallbacks = [];
|
|
4736
4736
|
this.activityState = ActivityState.NotActive;
|
|
4737
|
-
this.version = '15.0
|
|
4737
|
+
this.version = '15.1.0'; // TODO: version compatability check inside each plugin.
|
|
4738
4738
|
this.socketMode = false;
|
|
4739
4739
|
this.compressionThreshold = 24 * 1000;
|
|
4740
4740
|
this.bc = null;
|
|
@@ -9197,7 +9197,7 @@ class API {
|
|
|
9197
9197
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9198
9198
|
const doNotTrack = this.checkDoNotTrack();
|
|
9199
9199
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9200
|
-
trackerVersion: '15.0
|
|
9200
|
+
trackerVersion: '15.1.0',
|
|
9201
9201
|
projectKey: this.options.projectKey,
|
|
9202
9202
|
doNotTrack,
|
|
9203
9203
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|