@posthog/rrweb-snapshot 0.0.41 → 0.0.43
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/record-B2nV9UFB.js +995 -0
- package/dist/record-B2nV9UFB.js.map +1 -0
- package/dist/record-oACzRSl-.cjs +994 -0
- package/dist/record-oACzRSl-.cjs.map +1 -0
- package/dist/record-oACzRSl-.umd.cjs +1569 -0
- package/dist/record-oACzRSl-.umd.cjs.map +7 -0
- package/dist/record-oACzRSl-.umd.min.cjs +20 -0
- package/dist/record-oACzRSl-.umd.min.cjs.map +7 -0
- package/dist/record.cjs +13 -986
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +29 -1003
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +955 -929
- package/dist/record.umd.cjs.map +3 -3
- package/dist/record.umd.min.cjs +1 -1
- package/dist/record.umd.min.cjs.map +4 -4
- package/dist/rrweb-snapshot.cjs +2 -1
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.d.cts +2 -0
- package/dist/rrweb-snapshot.d.ts +2 -0
- package/dist/rrweb-snapshot.js +24 -23
- package/dist/rrweb-snapshot.umd.cjs +10 -26
- package/dist/rrweb-snapshot.umd.cjs.map +2 -2
- package/dist/rrweb-snapshot.umd.min.cjs +11 -11
- package/dist/rrweb-snapshot.umd.min.cjs.map +3 -3
- package/package.json +3 -3
package/dist/rrweb-snapshot.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D, I, b, c, g, i, n, r, a, s, t, v, w } from "./record-B2nV9UFB.js";
|
|
2
2
|
import { adaptCssForReplay, buildNodeWithSN, createCache, rebuild } from "./replay.js";
|
|
3
|
-
import { M, N, o, p, h, e, n, f, l, j, d, g, i, b, k, a, m, r, c, s, t } from "./types-OLXvwyjP.js";
|
|
3
|
+
import { M, N, o, p, h, e, n as n2, f, l, j, d, g as g2, i as i2, b as b2, k, a as a2, m, r as r2, c as c2, s as s2, t as t2 } from "./types-OLXvwyjP.js";
|
|
4
4
|
export {
|
|
5
|
-
DEFAULT_MAX_DEPTH,
|
|
6
|
-
IGNORED_NODE,
|
|
5
|
+
D as DEFAULT_MAX_DEPTH,
|
|
6
|
+
I as IGNORED_NODE,
|
|
7
7
|
M as Mirror,
|
|
8
8
|
N as NodeType,
|
|
9
9
|
o as absolutifyURLs,
|
|
10
10
|
adaptCssForReplay,
|
|
11
11
|
buildNodeWithSN,
|
|
12
12
|
p as checkDataURLSize,
|
|
13
|
-
classMatchesRegex,
|
|
14
|
-
cleanupSnapshot,
|
|
13
|
+
b as classMatchesRegex,
|
|
14
|
+
c as cleanupSnapshot,
|
|
15
15
|
createCache,
|
|
16
16
|
h as createMirror,
|
|
17
17
|
e as escapeImportStatement,
|
|
18
|
-
|
|
18
|
+
n2 as extractFileExtension,
|
|
19
19
|
f as fixSafariColons,
|
|
20
|
-
genId,
|
|
20
|
+
g as genId,
|
|
21
21
|
l as getInputType,
|
|
22
|
-
ignoreAttribute,
|
|
22
|
+
i as ignoreAttribute,
|
|
23
23
|
j as is2DCanvasBlank,
|
|
24
24
|
d as isCSSImportRule,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
g2 as isCSSStyleRule,
|
|
26
|
+
i2 as isElement,
|
|
27
|
+
b2 as isNativeShadowDom,
|
|
28
28
|
k as isNodeMetaEqual,
|
|
29
|
-
|
|
29
|
+
a2 as isShadowRoot,
|
|
30
30
|
m as maskInputValue,
|
|
31
|
-
needMaskingText,
|
|
31
|
+
n as needMaskingText,
|
|
32
32
|
rebuild,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
r2 as recompressBase64Image,
|
|
34
|
+
r as resetMaxDepthState,
|
|
35
|
+
a as serializeNodeWithId,
|
|
36
|
+
s as snapshot,
|
|
37
|
+
c2 as stringifyRule,
|
|
38
|
+
s2 as stringifyStylesheet,
|
|
39
|
+
t2 as toLowerCase,
|
|
40
|
+
t as transformAttribute,
|
|
41
|
+
v as visitSnapshot,
|
|
42
|
+
w as wasMaxDepthReached
|
|
42
43
|
};
|
|
43
44
|
//# sourceMappingURL=rrweb-snapshot.js.map
|
|
@@ -587,11 +587,10 @@ var require_types_B7TTv7Jc = __commonJS({
|
|
|
587
587
|
}
|
|
588
588
|
});
|
|
589
589
|
|
|
590
|
-
// dist/record
|
|
591
|
-
var
|
|
592
|
-
"dist/record
|
|
590
|
+
// dist/record-oACzRSl-.cjs
|
|
591
|
+
var require_record_oACzRSl = __commonJS({
|
|
592
|
+
"dist/record-oACzRSl-.cjs"(exports2) {
|
|
593
593
|
"use strict";
|
|
594
|
-
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
595
594
|
var types2 = require_types_B7TTv7Jc();
|
|
596
595
|
var _id = 1;
|
|
597
596
|
var tagNameRegex = new RegExp("[^a-z0-9-_:]");
|
|
@@ -1232,6 +1231,10 @@ var require_record = __commonJS({
|
|
|
1232
1231
|
function wasMaxDepthReached() {
|
|
1233
1232
|
return _maxDepthReached;
|
|
1234
1233
|
}
|
|
1234
|
+
function resetMaxDepthState() {
|
|
1235
|
+
_maxDepthReached = false;
|
|
1236
|
+
_maxDepthWarned = false;
|
|
1237
|
+
}
|
|
1235
1238
|
function serializeNodeWithId(n, options) {
|
|
1236
1239
|
const {
|
|
1237
1240
|
doc,
|
|
@@ -1567,27 +1570,6 @@ var require_record = __commonJS({
|
|
|
1567
1570
|
function cleanupSnapshot() {
|
|
1568
1571
|
_id = 1;
|
|
1569
1572
|
}
|
|
1570
|
-
exports2.Mirror = types2.Mirror;
|
|
1571
|
-
exports2.NodeType = types2.NodeType;
|
|
1572
|
-
exports2.absolutifyURLs = types2.absolutifyURLs;
|
|
1573
|
-
exports2.checkDataURLSize = types2.checkDataURLSize;
|
|
1574
|
-
exports2.createMirror = types2.createMirror;
|
|
1575
|
-
exports2.escapeImportStatement = types2.escapeImportStatement;
|
|
1576
|
-
exports2.extractFileExtension = types2.extractFileExtension;
|
|
1577
|
-
exports2.fixSafariColons = types2.fixSafariColons;
|
|
1578
|
-
exports2.getInputType = types2.getInputType;
|
|
1579
|
-
exports2.is2DCanvasBlank = types2.is2DCanvasBlank;
|
|
1580
|
-
exports2.isCSSImportRule = types2.isCSSImportRule;
|
|
1581
|
-
exports2.isCSSStyleRule = types2.isCSSStyleRule;
|
|
1582
|
-
exports2.isElement = types2.isElement;
|
|
1583
|
-
exports2.isNativeShadowDom = types2.isNativeShadowDom;
|
|
1584
|
-
exports2.isNodeMetaEqual = types2.isNodeMetaEqual;
|
|
1585
|
-
exports2.isShadowRoot = types2.isShadowRoot;
|
|
1586
|
-
exports2.maskInputValue = types2.maskInputValue;
|
|
1587
|
-
exports2.recompressBase64Image = types2.recompressBase64Image;
|
|
1588
|
-
exports2.stringifyRule = types2.stringifyRule;
|
|
1589
|
-
exports2.stringifyStylesheet = types2.stringifyStylesheet;
|
|
1590
|
-
exports2.toLowerCase = types2.toLowerCase;
|
|
1591
1573
|
exports2.DEFAULT_MAX_DEPTH = DEFAULT_MAX_DEPTH;
|
|
1592
1574
|
exports2.IGNORED_NODE = IGNORED_NODE;
|
|
1593
1575
|
exports2.classMatchesRegex = classMatchesRegex;
|
|
@@ -1595,6 +1577,7 @@ var require_record = __commonJS({
|
|
|
1595
1577
|
exports2.genId = genId;
|
|
1596
1578
|
exports2.ignoreAttribute = ignoreAttribute;
|
|
1597
1579
|
exports2.needMaskingText = needMaskingText;
|
|
1580
|
+
exports2.resetMaxDepthState = resetMaxDepthState;
|
|
1598
1581
|
exports2.serializeNodeWithId = serializeNodeWithId;
|
|
1599
1582
|
exports2.snapshot = snapshot;
|
|
1600
1583
|
exports2.transformAttribute = transformAttribute;
|
|
@@ -6001,7 +5984,7 @@ var require_replay = __commonJS({
|
|
|
6001
5984
|
|
|
6002
5985
|
// dist/rrweb-snapshot.cjs
|
|
6003
5986
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
6004
|
-
var record =
|
|
5987
|
+
var record = require_record_oACzRSl();
|
|
6005
5988
|
var replay = require_replay();
|
|
6006
5989
|
var types = require_types_B7TTv7Jc();
|
|
6007
5990
|
exports.DEFAULT_MAX_DEPTH = record.DEFAULT_MAX_DEPTH;
|
|
@@ -6011,6 +5994,7 @@ exports.cleanupSnapshot = record.cleanupSnapshot;
|
|
|
6011
5994
|
exports.genId = record.genId;
|
|
6012
5995
|
exports.ignoreAttribute = record.ignoreAttribute;
|
|
6013
5996
|
exports.needMaskingText = record.needMaskingText;
|
|
5997
|
+
exports.resetMaxDepthState = record.resetMaxDepthState;
|
|
6014
5998
|
exports.serializeNodeWithId = record.serializeNodeWithId;
|
|
6015
5999
|
exports.snapshot = record.snapshot;
|
|
6016
6000
|
exports.transformAttribute = record.transformAttribute;
|