@amplitude/rrweb-player 2.1.5 → 2.1.6
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/rrweb-player.cjs +20 -2
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +20 -2
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +20 -2
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +46 -46
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +5 -5
package/dist/rrweb-player.js
CHANGED
|
@@ -5558,8 +5558,10 @@ function serializeNodeWithId(n2, options) {
|
|
|
5558
5558
|
onSerialize(n2);
|
|
5559
5559
|
}
|
|
5560
5560
|
let recordChild = !skipChild;
|
|
5561
|
+
let isBlockedElement = false;
|
|
5561
5562
|
if (serializedNode.type === NodeType$3.Element) {
|
|
5562
|
-
|
|
5563
|
+
isBlockedElement = Boolean(serializedNode.needBlock);
|
|
5564
|
+
recordChild = recordChild && !isBlockedElement;
|
|
5563
5565
|
delete serializedNode.needBlock;
|
|
5564
5566
|
const shadowRootEl = index$1.shadowRoot(n2);
|
|
5565
5567
|
if (shadowRootEl && isNativeShadowDom(shadowRootEl)) {
|
|
@@ -5644,7 +5646,7 @@ function serializeNodeWithId(n2, options) {
|
|
|
5644
5646
|
if (parent && isShadowRoot(parent) && isNativeShadowDom(parent)) {
|
|
5645
5647
|
serializedNode.isShadow = true;
|
|
5646
5648
|
}
|
|
5647
|
-
if (serializedNode.type === NodeType$3.Element && serializedNode.tagName === "iframe") {
|
|
5649
|
+
if (serializedNode.type === NodeType$3.Element && serializedNode.tagName === "iframe" && !isBlockedElement) {
|
|
5648
5650
|
onceIframeLoaded(
|
|
5649
5651
|
n2,
|
|
5650
5652
|
() => {
|
|
@@ -18548,6 +18550,22 @@ class Replayer {
|
|
|
18548
18550
|
}
|
|
18549
18551
|
}
|
|
18550
18552
|
if (queue.length === pendingCount) {
|
|
18553
|
+
const queuedIds = new Set(queue.map((m) => m.node.id));
|
|
18554
|
+
let salvaged = 0;
|
|
18555
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
18556
|
+
const m = queue[i2];
|
|
18557
|
+
if (!mirror2.getNode(m.node.id) && mirror2.getNode(m.parentId) && m.nextId !== null && m.nextId !== void 0 && m.nextId !== -1 && !mirror2.getNode(m.nextId) && !queuedIds.has(m.nextId)) {
|
|
18558
|
+
queue[i2] = { ...m, nextId: null };
|
|
18559
|
+
salvaged++;
|
|
18560
|
+
}
|
|
18561
|
+
}
|
|
18562
|
+
if (salvaged) {
|
|
18563
|
+
this.warn(
|
|
18564
|
+
"Inserting nodes without their next sibling since it was never recorded",
|
|
18565
|
+
salvaged
|
|
18566
|
+
);
|
|
18567
|
+
continue;
|
|
18568
|
+
}
|
|
18551
18569
|
this.warn(
|
|
18552
18570
|
"Dropping the resolve queue since none of the remaining nodes can be resolved",
|
|
18553
18571
|
resolveTrees.map((tree) => ({
|