@highlight-run/rrweb 0.12.14 → 1.0.7

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/types.d.ts CHANGED
@@ -227,16 +227,20 @@ export declare type textMutation = {
227
227
  id: number;
228
228
  value: string | null;
229
229
  };
230
+ export declare type styleAttributeValue = {
231
+ [key: string]: styleValueWithPriority | string | false;
232
+ };
233
+ export declare type styleValueWithPriority = [string, string];
230
234
  export declare type attributeCursor = {
231
235
  node: Node;
232
236
  attributes: {
233
- [key: string]: string | null;
237
+ [key: string]: string | styleAttributeValue | null;
234
238
  };
235
239
  };
236
240
  export declare type attributeMutation = {
237
241
  id: number;
238
242
  attributes: {
239
- [key: string]: string | null;
243
+ [key: string]: string | styleAttributeValue | null;
240
244
  };
241
245
  };
242
246
  export declare type removedNodeMutation = {
@@ -400,7 +404,6 @@ export declare type playerConfig = {
400
404
  triggerFocus: boolean;
401
405
  UNSAFE_replayCanvas: boolean;
402
406
  pauseAnimation?: boolean;
403
- userTriggeredOnInput: boolean;
404
407
  mouseTail: boolean | {
405
408
  duration?: number;
406
409
  lineCap?: string;
@@ -463,6 +466,8 @@ export interface HighlightConfiguration {
463
466
  declare global {
464
467
  interface Window {
465
468
  HIG_CONFIGURATION: HighlightConfiguration;
469
+ FontFace: typeof FontFace;
466
470
  }
467
471
  }
472
+ export declare type IWindow = Window & typeof globalThis;
468
473
  export {};
package/dist/utils.d.ts CHANGED
@@ -45,6 +45,7 @@ export declare class TreeIndex {
45
45
  inputMap: TreeIndex['inputMap'];
46
46
  };
47
47
  private reset;
48
+ idRemoved(id: number): boolean;
48
49
  }
49
50
  declare type ResolveTree = {
50
51
  value: addedNodeMutation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highlight-run/rrweb",
3
- "version": "0.12.14",
3
+ "version": "1.0.7",
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",