@posthog/rrweb-player 0.0.23 → 0.0.25
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 +9 -2
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +9 -2
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +9 -2
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +7 -7
- package/dist/rrweb-player.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/rrweb-player.cjs
CHANGED
|
@@ -4758,6 +4758,12 @@ function buildNodeWithSN(n2, options) {
|
|
|
4758
4758
|
} else {
|
|
4759
4759
|
node2.appendChild(childNode);
|
|
4760
4760
|
}
|
|
4761
|
+
} else if (n2.type === NodeType$1$1.Document && childN.type === NodeType$1$1.DocumentType) {
|
|
4762
|
+
if (node2.firstChild && node2.firstChild.nodeType === 1) {
|
|
4763
|
+
node2.insertBefore(childNode, node2.firstChild);
|
|
4764
|
+
} else {
|
|
4765
|
+
node2.appendChild(childNode);
|
|
4766
|
+
}
|
|
4761
4767
|
} else {
|
|
4762
4768
|
node2.appendChild(childNode);
|
|
4763
4769
|
}
|
|
@@ -13221,12 +13227,13 @@ class Replayer {
|
|
|
13221
13227
|
}
|
|
13222
13228
|
}
|
|
13223
13229
|
applyStyleDeclaration(data, styleSheet) {
|
|
13230
|
+
var _a2, _b2;
|
|
13224
13231
|
if (data.set) {
|
|
13225
13232
|
const rule2 = getNestedRule(
|
|
13226
13233
|
styleSheet.rules,
|
|
13227
13234
|
data.index
|
|
13228
13235
|
);
|
|
13229
|
-
rule2.style.setProperty(
|
|
13236
|
+
(_a2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _a2.setProperty(
|
|
13230
13237
|
data.set.property,
|
|
13231
13238
|
data.set.value,
|
|
13232
13239
|
data.set.priority
|
|
@@ -13237,7 +13244,7 @@ class Replayer {
|
|
|
13237
13244
|
styleSheet.rules,
|
|
13238
13245
|
data.index
|
|
13239
13246
|
);
|
|
13240
|
-
rule2.style.removeProperty(data.remove.property);
|
|
13247
|
+
(_b2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _b2.removeProperty(data.remove.property);
|
|
13241
13248
|
}
|
|
13242
13249
|
}
|
|
13243
13250
|
applyAdoptedStyleSheet(data) {
|