@highlight-run/rrweb 1.1.0 → 1.1.1
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.css +10 -172
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/replay/index.d.ts +2 -2
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
package/dist/replay/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class Replayer {
|
|
|
13
13
|
private mouseTail;
|
|
14
14
|
private tailPositions;
|
|
15
15
|
private emitter;
|
|
16
|
+
private nextUserInteractionEvent;
|
|
16
17
|
private activityIntervals;
|
|
17
18
|
private inactiveEndTimestamp;
|
|
18
19
|
private legacy_missingNodeRetryMap;
|
|
@@ -22,7 +23,6 @@ export declare class Replayer {
|
|
|
22
23
|
private virtualStyleRulesMap;
|
|
23
24
|
private cache;
|
|
24
25
|
private imageMap;
|
|
25
|
-
private nextUserInteractionEvent;
|
|
26
26
|
private mirror;
|
|
27
27
|
private firstFullSnapshot;
|
|
28
28
|
private newDocumentQueue;
|
|
@@ -54,9 +54,9 @@ export declare class Replayer {
|
|
|
54
54
|
private insertStyleRules;
|
|
55
55
|
private attachDocumentToIframe;
|
|
56
56
|
private collectIframeAndAttachDocument;
|
|
57
|
+
private waitForStylesheetLoad;
|
|
57
58
|
private hasImageArg;
|
|
58
59
|
private getImageArgs;
|
|
59
|
-
private waitForStylesheetLoad;
|
|
60
60
|
private preloadAllImages;
|
|
61
61
|
private applyIncremental;
|
|
62
62
|
private applyMutation;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Mirror, throttleOptions, listenerHandler, hookResetter, blockClass, addedNodeMutation, removedNodeMutation, textMutation, attributeMutation, mutationData, scrollData, inputData, DocumentDimension } from './types';
|
|
1
|
+
import { Mirror, throttleOptions, listenerHandler, hookResetter, blockClass, addedNodeMutation, removedNodeMutation, textMutation, attributeMutation, mutationData, scrollData, inputData, DocumentDimension, IWindow } from './types';
|
|
2
2
|
import { INode, serializedNodeWithId } from './snapshot';
|
|
3
|
-
export declare function on(type: string, fn: EventListenerOrEventListenerObject, target?: Document |
|
|
3
|
+
export declare function on(type: string, fn: EventListenerOrEventListenerObject, target?: Document | IWindow): listenerHandler;
|
|
4
4
|
export declare function createMirror(): Mirror;
|
|
5
5
|
export declare let _mirror: Mirror;
|
|
6
6
|
export declare function throttle<T>(func: (arg: T) => void, wait: number, options?: throttleOptions): (arg: T) => void;
|
|
7
|
-
export declare function hookSetter<T>(target: T, key: string | number | symbol, d: PropertyDescriptor, isRevoked?: boolean, win?:
|
|
7
|
+
export declare function hookSetter<T>(target: T, key: string | number | symbol, d: PropertyDescriptor, isRevoked?: boolean, win?: IWindow): hookResetter;
|
|
8
8
|
export declare function patch(source: {
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}, name: string, replacement: (...args: any[]) => any): () => void;
|
|
@@ -14,7 +14,7 @@ export declare function isBlocked(node: Node | null, blockClass: blockClass): bo
|
|
|
14
14
|
export declare function isIgnored(n: Node | INode): boolean;
|
|
15
15
|
export declare function isAncestorRemoved(target: INode, mirror: Mirror): boolean;
|
|
16
16
|
export declare function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent;
|
|
17
|
-
export declare function polyfill(win?:
|
|
17
|
+
export declare function polyfill(win?: IWindow): void;
|
|
18
18
|
export declare type TreeNode = {
|
|
19
19
|
id: number;
|
|
20
20
|
mutation: addedNodeMutation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highlight-run/rrweb",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "record and replay the web",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register -r ignore-styles -r jsdom-global/register test/**.test.ts",
|