@highlight-run/rrweb 0.12.12 → 1.0.8
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugins/console/record/index.d.ts +1 -1
- package/dist/record/stringify.d.ts +2 -0
- package/dist/replay/index.d.ts +2 -0
- package/dist/snapshot/index.d.ts +2 -2
- package/dist/snapshot/rebuild.d.ts +5 -2
- package/dist/snapshot/types.d.ts +4 -0
- package/dist/stats.json +1 -0
- package/dist/types.d.ts +9 -4
- package/dist/utils.d.ts +1 -0
- package/package.json +1 -1
package/dist/replay/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare class Replayer {
|
|
|
20
20
|
private fragmentParentMap;
|
|
21
21
|
private elementStateMap;
|
|
22
22
|
private virtualStyleRulesMap;
|
|
23
|
+
private cache;
|
|
23
24
|
private imageMap;
|
|
24
25
|
private nextUserInteractionEvent;
|
|
25
26
|
private mirror;
|
|
@@ -43,6 +44,7 @@ export declare class Replayer {
|
|
|
43
44
|
addEvent(rawEvent: eventWithTime | string): void;
|
|
44
45
|
enableInteract(): void;
|
|
45
46
|
disableInteract(): void;
|
|
47
|
+
resetCache(): void;
|
|
46
48
|
private setupDom;
|
|
47
49
|
private handleResize;
|
|
48
50
|
private applyEventsSynchronously;
|
package/dist/snapshot/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import snapshot, { serializeNodeWithId, transformAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, IGNORED_NODE } from './snapshot';
|
|
2
|
-
import rebuild, { buildNodeWithSN, addHoverClass } from './rebuild';
|
|
2
|
+
import rebuild, { buildNodeWithSN, addHoverClass, createCache } from './rebuild';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './utils';
|
|
5
|
-
export { snapshot, serializeNodeWithId, rebuild, buildNodeWithSN, addHoverClass, transformAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, IGNORED_NODE, };
|
|
5
|
+
export { snapshot, serializeNodeWithId, rebuild, buildNodeWithSN, addHoverClass, createCache, transformAttribute, visitSnapshot, cleanupSnapshot, needMaskingText, IGNORED_NODE, };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { serializedNodeWithId, idNodeMap, INode } from './types';
|
|
2
|
-
export declare function addHoverClass(cssText: string): string;
|
|
1
|
+
import { serializedNodeWithId, idNodeMap, INode, BuildCache } from './types';
|
|
2
|
+
export declare function addHoverClass(cssText: string, cache: BuildCache): string;
|
|
3
|
+
export declare function createCache(): BuildCache;
|
|
3
4
|
export declare function buildNodeWithSN(n: serializedNodeWithId, options: {
|
|
4
5
|
doc: Document;
|
|
5
6
|
map: idNodeMap;
|
|
6
7
|
skipChild?: boolean;
|
|
7
8
|
hackCss: boolean;
|
|
8
9
|
afterAppend?: (n: INode) => unknown;
|
|
10
|
+
cache: BuildCache;
|
|
9
11
|
}): INode | null;
|
|
10
12
|
declare function rebuild(n: serializedNodeWithId, options: {
|
|
11
13
|
doc: Document;
|
|
12
14
|
onVisit?: (node: INode) => unknown;
|
|
13
15
|
hackCss?: boolean;
|
|
14
16
|
afterAppend?: (n: INode) => unknown;
|
|
17
|
+
cache: BuildCache;
|
|
15
18
|
}): [Node | null, idNodeMap];
|
|
16
19
|
export default rebuild;
|
package/dist/snapshot/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare enum NodeType {
|
|
|
9
9
|
export declare type documentNode = {
|
|
10
10
|
type: NodeType.Document;
|
|
11
11
|
childNodes: serializedNodeWithId[];
|
|
12
|
+
compatMode?: string;
|
|
12
13
|
};
|
|
13
14
|
export declare type documentTypeNode = {
|
|
14
15
|
type: NodeType.DocumentType;
|
|
@@ -90,3 +91,6 @@ export declare type SlimDOMOptions = Partial<{
|
|
|
90
91
|
export declare type MaskTextFn = (text: string) => string;
|
|
91
92
|
export declare type MaskInputFn = (text: string) => string;
|
|
92
93
|
export declare type KeepIframeSrcFn = (src: string) => boolean;
|
|
94
|
+
export declare type BuildCache = {
|
|
95
|
+
stylesWithHoverClass: Map<string, string>;
|
|
96
|
+
};
|