Release 0.7.20
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rrweb",
|
||||
"version": "0.7.19",
|
||||
"version": "0.7.20",
|
||||
"description": "record and replay the web",
|
||||
"scripts": {
|
||||
"test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts",
|
||||
|
||||
1
typings/replay/index.d.ts
vendored
1
typings/replay/index.d.ts
vendored
@@ -18,6 +18,7 @@ export declare class Replayer {
|
||||
on(event: string, handler: Handler): void;
|
||||
setConfig(config: Partial<playerConfig>): void;
|
||||
getMetaData(): playerMetaData;
|
||||
getCurrentTime(): number;
|
||||
getTimeOffset(): number;
|
||||
play(timeOffset?: number): void;
|
||||
pause(): void;
|
||||
|
||||
7
typings/types.d.ts
vendored
7
typings/types.d.ts
vendored
@@ -50,13 +50,14 @@ export declare enum IncrementalSource {
|
||||
MouseInteraction = 2,
|
||||
Scroll = 3,
|
||||
ViewportResize = 4,
|
||||
Input = 5
|
||||
Input = 5,
|
||||
TouchMove = 6
|
||||
}
|
||||
export declare type mutationData = {
|
||||
source: IncrementalSource.Mutation;
|
||||
} & mutationCallbackParam;
|
||||
export declare type mousemoveData = {
|
||||
source: IncrementalSource.MouseMove;
|
||||
source: IncrementalSource.MouseMove | IncrementalSource.TouchMove;
|
||||
positions: mousePosition[];
|
||||
};
|
||||
export declare type mouseInteractionData = {
|
||||
@@ -137,7 +138,7 @@ declare type mutationCallbackParam = {
|
||||
adds: addedNodeMutation[];
|
||||
};
|
||||
export declare type mutationCallBack = (m: mutationCallbackParam) => void;
|
||||
export declare type mousemoveCallBack = (p: mousePosition[]) => void;
|
||||
export declare type mousemoveCallBack = (p: mousePosition[], source: IncrementalSource.MouseMove | IncrementalSource.TouchMove) => void;
|
||||
export declare type mousePosition = {
|
||||
x: number;
|
||||
y: number;
|
||||
|
||||
3
typings/utils.d.ts
vendored
3
typings/utils.d.ts
vendored
@@ -2,10 +2,11 @@ import { Mirror, throttleOptions, listenerHandler, hookResetter, blockClass } fr
|
||||
import { INode } from 'rrweb-snapshot';
|
||||
export declare function on(type: string, fn: EventListenerOrEventListenerObject, target?: Document | Window): listenerHandler;
|
||||
export declare const mirror: Mirror;
|
||||
export declare function throttle<T>(func: (arg: T) => void, wait: number, options?: throttleOptions): () => void;
|
||||
export declare function throttle<T>(func: (arg: T) => void, wait: number, options?: throttleOptions): (args: T) => void;
|
||||
export declare function hookSetter<T>(target: T, key: string | number | symbol, d: PropertyDescriptor, isRevoked?: boolean): hookResetter;
|
||||
export declare function getWindowHeight(): number;
|
||||
export declare function getWindowWidth(): number;
|
||||
export declare function isBlocked(node: Node | null, blockClass: blockClass): boolean;
|
||||
export declare function isAncestorRemoved(target: INode): boolean;
|
||||
export declare function isTouchEvent(event: MouseEvent | TouchEvent): event is TouchEvent;
|
||||
export declare function polyfill(): void;
|
||||
|
||||
Reference in New Issue
Block a user