@highlight-run/rrweb 1.1.10 → 1.1.13

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.
@@ -0,0 +1,6 @@
1
+ import { RecordPlugin } from '../../../types';
2
+ export declare type SequentialIdOptions = {
3
+ key: string;
4
+ };
5
+ export declare const PLUGIN_NAME = "rrweb/sequential-id@1";
6
+ export declare const getRecordSequentialIdPlugin: (options?: Partial<SequentialIdOptions>) => RecordPlugin;
@@ -0,0 +1,7 @@
1
+ import type { SequentialIdOptions } from '../record';
2
+ import { ReplayPlugin } from '../../../types';
3
+ declare type Options = SequentialIdOptions & {
4
+ warnOnMissingId: boolean;
5
+ };
6
+ export declare const getReplaySequentialIdPlugin: (options?: Partial<Options>) => ReplayPlugin;
7
+ export {};
package/dist/types.d.ts CHANGED
@@ -134,7 +134,8 @@ export declare type SamplingStrategy = Partial<{
134
134
  }>;
135
135
  export declare type RecordPlugin<TOptions = unknown> = {
136
136
  name: string;
137
- observer: (cb: Function, win: IWindow, options: TOptions) => listenerHandler;
137
+ observer?: (cb: Function, win: IWindow, options: TOptions) => listenerHandler;
138
+ eventProcessor?: <TExtend>(event: eventWithTime) => eventWithTime & TExtend;
138
139
  options: TOptions;
139
140
  };
140
141
  export declare type recordOptions<T> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highlight-run/rrweb",
3
- "version": "1.1.10",
3
+ "version": "1.1.13",
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",