@highlight-run/rrweb 1.1.13 → 1.1.16

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.
@@ -42,6 +42,7 @@ export declare class Replayer {
42
42
  resume(timeOffset?: number): void;
43
43
  startLive(baselineTime?: number): void;
44
44
  addEvent(rawEvent: eventWithTime | string): void;
45
+ replaceEvents(events: eventWithTime[]): void;
45
46
  enableInteract(): void;
46
47
  disableInteract(): void;
47
48
  resetCache(): void;
@@ -30,6 +30,11 @@ export declare type PlayerEvent = {
30
30
  payload: {
31
31
  event: eventWithTime;
32
32
  };
33
+ } | {
34
+ type: 'REPLACE_EVENTS';
35
+ payload: {
36
+ events: eventWithTime[];
37
+ };
33
38
  } | {
34
39
  type: 'END';
35
40
  };
@@ -8,6 +8,7 @@ export declare class Timer {
8
8
  constructor(actions: actionWithDelay[] | undefined, speed: number);
9
9
  addAction(action: actionWithDelay): void;
10
10
  addActions(actions: actionWithDelay[]): void;
11
+ replaceActions(actions: actionWithDelay[]): void;
11
12
  start(): void;
12
13
  clear(): void;
13
14
  setSpeed(speed: number): void;
package/dist/utils.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare function patch(source: {
10
10
  }, name: string, replacement: (...args: any[]) => any): () => void;
11
11
  export declare function getWindowHeight(): number;
12
12
  export declare function getWindowWidth(): number;
13
+ export declare const isCanvasNode: (node: Node | null) => boolean;
13
14
  export declare function isBlocked(node: Node | null, blockClass: blockClass): boolean;
14
15
  export declare function isIgnored(n: Node | INode): boolean;
15
16
  export declare function isAncestorRemoved(target: INode, mirror: Mirror): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highlight-run/rrweb",
3
- "version": "1.1.13",
3
+ "version": "1.1.16",
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",
@@ -1,14 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
@@ -1,2 +0,0 @@
1
- import { StringifyOptions } from '../types';
2
- export declare function stringify(obj: any, stringifyOptions?: StringifyOptions): string;