@highlight-run/rrweb 0.12.11 → 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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/plugins/console/record/index.d.ts +1 -1
- package/dist/record/stringify.d.ts +2 -0
- package/dist/replay/index.d.ts +2 -0
- package/dist/snapshot/index.d.ts +2 -2
- package/dist/snapshot/rebuild.d.ts +5 -2
- package/dist/snapshot/types.d.ts +4 -0
- package/dist/stats.json +1 -0
- package/dist/types.d.ts +9 -4
- package/dist/utils.d.ts +1 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export declare type SamplingStrategy = Partial<{
|
|
|
132
132
|
}>;
|
|
133
133
|
export declare type RecordPlugin<TOptions = unknown> = {
|
|
134
134
|
name: string;
|
|
135
|
-
observer: (cb: Function, options: TOptions) => listenerHandler;
|
|
135
|
+
observer: (cb: Function, win: Window, options: TOptions) => listenerHandler;
|
|
136
136
|
options: TOptions;
|
|
137
137
|
};
|
|
138
138
|
export declare type recordOptions<T> = {
|
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highlight-run/rrweb",
|
|
3
|
-
"version": "0.
|
|
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",
|