@posthog/rrweb-snapshot 0.0.52 → 0.0.54
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/css.d.cts +5 -0
- package/dist/css.d.ts +5 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/rebuild.d.cts +23 -0
- package/dist/rebuild.d.ts +23 -0
- package/dist/record.cjs +1013 -14
- package/dist/record.cjs.map +1 -1
- package/dist/record.d.cts +5 -273
- package/dist/record.d.ts +5 -273
- package/dist/record.js +1029 -29
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +967 -985
- 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/replay.cjs +1 -1
- package/dist/replay.d.cts +5 -219
- package/dist/replay.d.ts +5 -219
- package/dist/replay.js +2 -2
- package/dist/replay.umd.cjs +13 -10
- package/dist/replay.umd.cjs.map +2 -2
- package/dist/replay.umd.min.cjs +19 -19
- package/dist/replay.umd.min.cjs.map +2 -2
- package/dist/rrweb-snapshot.cjs +2 -2
- package/dist/rrweb-snapshot.d.cts +1 -299
- package/dist/rrweb-snapshot.d.ts +1 -299
- package/dist/rrweb-snapshot.js +26 -26
- package/dist/rrweb-snapshot.umd.cjs +41 -16
- 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 +2 -2
- package/dist/snapshot.d.cts +71 -0
- package/dist/snapshot.d.ts +71 -0
- package/dist/{types-B7TTv7Jc.cjs → types-BjupQhwp.cjs} +10 -7
- package/dist/types-BjupQhwp.cjs.map +1 -0
- package/dist/{types-B7TTv7Jc.umd.cjs → types-BjupQhwp.umd.cjs} +11 -8
- package/dist/types-BjupQhwp.umd.cjs.map +7 -0
- package/dist/types-BjupQhwp.umd.min.cjs +20 -0
- package/dist/types-BjupQhwp.umd.min.cjs.map +7 -0
- package/dist/{types-OLXvwyjP.js → types-D1TQIdgp.js} +10 -7
- package/dist/types-D1TQIdgp.js.map +1 -0
- package/dist/types.d.cts +103 -0
- package/dist/types.d.ts +103 -0
- package/dist/utils.d.cts +51 -0
- package/dist/utils.d.ts +51 -0
- package/package.json +3 -3
- package/dist/record-BUfdSR_C.cjs +0 -1015
- package/dist/record-BUfdSR_C.cjs.map +0 -1
- package/dist/record-BUfdSR_C.umd.cjs +0 -1590
- package/dist/record-BUfdSR_C.umd.cjs.map +0 -7
- package/dist/record-BUfdSR_C.umd.min.cjs +0 -20
- package/dist/record-BUfdSR_C.umd.min.cjs.map +0 -7
- package/dist/record-CbT7EKn4.js +0 -1016
- package/dist/record-CbT7EKn4.js.map +0 -1
- package/dist/types-B7TTv7Jc.cjs.map +0 -1
- package/dist/types-B7TTv7Jc.umd.cjs.map +0 -7
- package/dist/types-B7TTv7Jc.umd.min.cjs +0 -20
- package/dist/types-B7TTv7Jc.umd.min.cjs.map +0 -7
- package/dist/types-OLXvwyjP.js.map +0 -1
package/dist/css.d.cts
ADDED
package/dist/css.d.ts
ADDED
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as snapshot, serializeNodeWithId, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId } from './snapshot';
|
|
2
|
+
import { default as rebuild, buildNodeWithSN, adaptCssForReplay, createCache } from './rebuild';
|
|
3
|
+
|
|
4
|
+
export * from './types';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export { snapshot, serializeNodeWithId, rebuild, buildNodeWithSN, adaptCssForReplay, createCache, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId, };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as snapshot, serializeNodeWithId, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId } from './snapshot';
|
|
2
|
+
import { default as rebuild, buildNodeWithSN, adaptCssForReplay, createCache } from './rebuild';
|
|
3
|
+
|
|
4
|
+
export * from './types';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export { snapshot, serializeNodeWithId, rebuild, buildNodeWithSN, adaptCssForReplay, createCache, transformAttribute, ignoreAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, classMatchesRegex, slimDOMDefaults, IGNORED_NODE, DEFAULT_MAX_DEPTH, wasMaxDepthReached, resetMaxDepthState, genId, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { serializedNodeWithId } from '@posthog/rrweb-types';
|
|
2
|
+
import { BuildCache } from './types';
|
|
3
|
+
import { Mirror } from './utils';
|
|
4
|
+
|
|
5
|
+
export declare function adaptCssForReplay(cssText: string, cache: BuildCache): string;
|
|
6
|
+
export declare function createCache(): BuildCache;
|
|
7
|
+
export declare function buildNodeWithSN(n: serializedNodeWithId, options: {
|
|
8
|
+
doc: Document;
|
|
9
|
+
mirror: Mirror;
|
|
10
|
+
skipChild?: boolean;
|
|
11
|
+
hackCss: boolean;
|
|
12
|
+
afterAppend?: (n: Node, id: number) => unknown;
|
|
13
|
+
cache: BuildCache;
|
|
14
|
+
}): Node | null;
|
|
15
|
+
declare function rebuild(n: serializedNodeWithId, options: {
|
|
16
|
+
doc: Document;
|
|
17
|
+
onVisit?: (node: Node) => unknown;
|
|
18
|
+
hackCss?: boolean;
|
|
19
|
+
afterAppend?: (n: Node, id: number) => unknown;
|
|
20
|
+
cache: BuildCache;
|
|
21
|
+
mirror: Mirror;
|
|
22
|
+
}): Node | null;
|
|
23
|
+
export default rebuild;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { serializedNodeWithId } from '@posthog/rrweb-types';
|
|
2
|
+
import { BuildCache } from './types';
|
|
3
|
+
import { Mirror } from './utils';
|
|
4
|
+
|
|
5
|
+
export declare function adaptCssForReplay(cssText: string, cache: BuildCache): string;
|
|
6
|
+
export declare function createCache(): BuildCache;
|
|
7
|
+
export declare function buildNodeWithSN(n: serializedNodeWithId, options: {
|
|
8
|
+
doc: Document;
|
|
9
|
+
mirror: Mirror;
|
|
10
|
+
skipChild?: boolean;
|
|
11
|
+
hackCss: boolean;
|
|
12
|
+
afterAppend?: (n: Node, id: number) => unknown;
|
|
13
|
+
cache: BuildCache;
|
|
14
|
+
}): Node | null;
|
|
15
|
+
declare function rebuild(n: serializedNodeWithId, options: {
|
|
16
|
+
doc: Document;
|
|
17
|
+
onVisit?: (node: Node) => unknown;
|
|
18
|
+
hackCss?: boolean;
|
|
19
|
+
afterAppend?: (n: Node, id: number) => unknown;
|
|
20
|
+
cache: BuildCache;
|
|
21
|
+
mirror: Mirror;
|
|
22
|
+
}): Node | null;
|
|
23
|
+
export default rebuild;
|