@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
|
@@ -5554,8 +5554,10 @@ function serializeNodeWithId(n2, options) {
|
|
|
5554
5554
|
onSerialize(n2);
|
|
5555
5555
|
}
|
|
5556
5556
|
let recordChild = !skipChild;
|
|
5557
|
+
let isBlockedElement = false;
|
|
5557
5558
|
if (serializedNode.type === NodeType$3.Element) {
|
|
5558
|
-
|
|
5559
|
+
isBlockedElement = Boolean(serializedNode.needBlock);
|
|
5560
|
+
recordChild = recordChild && !isBlockedElement;
|
|
5559
5561
|
delete serializedNode.needBlock;
|
|
5560
5562
|
const shadowRootEl = index$1.shadowRoot(n2);
|
|
5561
5563
|
if (shadowRootEl && isNativeShadowDom(shadowRootEl)) {
|
|
@@ -5640,7 +5642,7 @@ function serializeNodeWithId(n2, options) {
|
|
|
5640
5642
|
if (parent && isShadowRoot(parent) && isNativeShadowDom(parent)) {
|
|
5641
5643
|
serializedNode.isShadow = true;
|
|
5642
5644
|
}
|
|
5643
|
-
if (serializedNode.type === NodeType$3.Element && serializedNode.tagName === "iframe") {
|
|
5645
|
+
if (serializedNode.type === NodeType$3.Element && serializedNode.tagName === "iframe" && !isBlockedElement) {
|
|
5644
5646
|
onceIframeLoaded(
|
|
5645
5647
|
n2,
|
|
5646
5648
|
() => {
|
|
@@ -18544,6 +18546,22 @@ class Replayer {
|
|
|
18544
18546
|
}
|
|
18545
18547
|
}
|
|
18546
18548
|
if (queue.length === pendingCount) {
|
|
18549
|
+
const queuedIds = new Set(queue.map((m) => m.node.id));
|
|
18550
|
+
let salvaged = 0;
|
|
18551
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
18552
|
+
const m = queue[i2];
|
|
18553
|
+
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)) {
|
|
18554
|
+
queue[i2] = __spreadProps(__spreadValues({}, m), { nextId: null });
|
|
18555
|
+
salvaged++;
|
|
18556
|
+
}
|
|
18557
|
+
}
|
|
18558
|
+
if (salvaged) {
|
|
18559
|
+
this.warn(
|
|
18560
|
+
"Inserting nodes without their next sibling since it was never recorded",
|
|
18561
|
+
salvaged
|
|
18562
|
+
);
|
|
18563
|
+
continue;
|
|
18564
|
+
}
|
|
18547
18565
|
this.warn(
|
|
18548
18566
|
"Dropping the resolve queue since none of the remaining nodes can be resolved",
|
|
18549
18567
|
resolveTrees.map((tree) => ({
|