@amplitude/rrweb-player 2.0.0-alpha.31 → 2.0.0-alpha.33
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 +18 -10
- package/dist/rrweb-player.cjs.map +1 -1
- package/dist/rrweb-player.js +18 -10
- package/dist/rrweb-player.js.map +1 -1
- package/dist/rrweb-player.umd.cjs +18 -10
- package/dist/rrweb-player.umd.cjs.map +2 -2
- package/dist/rrweb-player.umd.min.cjs +21 -21
- package/dist/rrweb-player.umd.min.cjs.map +3 -3
- package/package.json +4 -4
package/dist/rrweb-player.js
CHANGED
|
@@ -4071,6 +4071,7 @@ postcss$1$1.Input;
|
|
|
4071
4071
|
postcss$1$1.Rule;
|
|
4072
4072
|
postcss$1$1.Root;
|
|
4073
4073
|
postcss$1$1.Node;
|
|
4074
|
+
const customElementExclusions = ["webview"];
|
|
4074
4075
|
const tagMap = {
|
|
4075
4076
|
script: "noscript",
|
|
4076
4077
|
// camel case svg element tag names
|
|
@@ -4192,7 +4193,8 @@ function buildNode(n2, options) {
|
|
|
4192
4193
|
// If the tag name is a custom element name
|
|
4193
4194
|
n2.isCustom && // If the browser supports custom elements
|
|
4194
4195
|
((_a2 = doc.defaultView) == null ? void 0 : _a2.customElements) && // If the custom element hasn't been defined yet
|
|
4195
|
-
!doc.defaultView.customElements.get(n2.tagName)
|
|
4196
|
+
!doc.defaultView.customElements.get(n2.tagName) && // If the tag is not in the exclusion list
|
|
4197
|
+
!customElementExclusions.includes(n2.tagName)
|
|
4196
4198
|
)
|
|
4197
4199
|
doc.defaultView.customElements.define(
|
|
4198
4200
|
n2.tagName,
|
|
@@ -9364,14 +9366,20 @@ const testableMethods = {
|
|
|
9364
9366
|
MutationObserver: ["constructor"]
|
|
9365
9367
|
};
|
|
9366
9368
|
const untaintedBasePrototype = {};
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9369
|
+
function angularZoneUnpatchedAlternative(key) {
|
|
9370
|
+
var _a2, _b2;
|
|
9371
|
+
const angularUnpatchedVersionSymbol = (_b2 = (_a2 = globalThis == null ? void 0 : globalThis.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b2.call(_a2, key);
|
|
9372
|
+
if (angularUnpatchedVersionSymbol && globalThis[angularUnpatchedVersionSymbol]) {
|
|
9373
|
+
return globalThis[angularUnpatchedVersionSymbol];
|
|
9374
|
+
} else {
|
|
9375
|
+
return void 0;
|
|
9376
|
+
}
|
|
9377
|
+
}
|
|
9370
9378
|
function getUntaintedPrototype(key) {
|
|
9371
9379
|
if (untaintedBasePrototype[key])
|
|
9372
9380
|
return untaintedBasePrototype[key];
|
|
9373
|
-
const
|
|
9374
|
-
const defaultPrototype =
|
|
9381
|
+
const candidate = angularZoneUnpatchedAlternative(key) || globalThis[key];
|
|
9382
|
+
const defaultPrototype = candidate.prototype;
|
|
9375
9383
|
const accessorNames = key in testableAccessors ? testableAccessors[key] : void 0;
|
|
9376
9384
|
const isUntaintedAccessors = Boolean(
|
|
9377
9385
|
accessorNames && // @ts-expect-error 2345
|
|
@@ -9394,15 +9402,15 @@ function getUntaintedPrototype(key) {
|
|
|
9394
9402
|
}
|
|
9395
9403
|
)
|
|
9396
9404
|
);
|
|
9397
|
-
if (isUntaintedAccessors && isUntaintedMethods
|
|
9398
|
-
untaintedBasePrototype[key] =
|
|
9399
|
-
return
|
|
9405
|
+
if (isUntaintedAccessors && isUntaintedMethods) {
|
|
9406
|
+
untaintedBasePrototype[key] = candidate.prototype;
|
|
9407
|
+
return candidate.prototype;
|
|
9400
9408
|
}
|
|
9401
9409
|
try {
|
|
9402
9410
|
const iframeEl = document.createElement("iframe");
|
|
9403
9411
|
document.body.appendChild(iframeEl);
|
|
9404
9412
|
const win = iframeEl.contentWindow;
|
|
9405
|
-
if (!win) return
|
|
9413
|
+
if (!win) return candidate.prototype;
|
|
9406
9414
|
const untaintedObject = win[key].prototype;
|
|
9407
9415
|
document.body.removeChild(iframeEl);
|
|
9408
9416
|
if (!untaintedObject) return defaultPrototype;
|