@openreplay/tracker 16.3.0-beta.0 → 16.3.0-beta.2
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/cjs/entry.js +49 -162
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +49 -162
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/observer/observer.d.ts +1 -0
- package/dist/cjs/main/modules/cssrules.d.ts +3 -1
- package/dist/cjs/main/utils.d.ts +3 -0
- package/dist/lib/entry.js +49 -162
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +49 -162
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/observer/observer.d.ts +1 -0
- package/dist/lib/main/modules/cssrules.d.ts +3 -1
- package/dist/lib/main/utils.d.ts +3 -0
- package/dist/types/main/app/observer/observer.d.ts +1 -0
- package/dist/types/main/modules/cssrules.d.ts +3 -1
- package/dist/types/main/utils.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type App from '../app/index.js';
|
|
2
2
|
export interface CssRulesOptions {
|
|
3
|
-
|
|
3
|
+
/** turn this on if you have issues with emotionjs created styles */
|
|
4
4
|
scanInMemoryCSS?: boolean;
|
|
5
|
+
/** how often to scan tracked stylesheets (with "empty" rules) */
|
|
6
|
+
checkCssInterval?: number;
|
|
5
7
|
/**
|
|
6
8
|
Useful for cases where you expect limited amount of mutations
|
|
7
9
|
|
package/dist/lib/main/utils.d.ts
CHANGED
|
@@ -28,3 +28,6 @@ export declare function createEventListener(target: EventTarget, event: string,
|
|
|
28
28
|
export declare function deleteEventListener(target: EventTarget, event: string, cb: EventListenerOrEventListenerObject, capture?: boolean, forceNgOff?: boolean): void;
|
|
29
29
|
export declare function requestIdleCb(callback: () => void): void;
|
|
30
30
|
export declare function simpleMerge<T>(defaultObj: T, givenObj: Partial<T>): T;
|
|
31
|
+
export declare function throttleWithTrailing<K, Args extends any[]>(fn: (key: K, ...args: Args) => void, interval: number): ((key: K, ...args: Args) => void) & {
|
|
32
|
+
clear: () => void;
|
|
33
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type App from '../app/index.js';
|
|
2
2
|
export interface CssRulesOptions {
|
|
3
|
-
|
|
3
|
+
/** turn this on if you have issues with emotionjs created styles */
|
|
4
4
|
scanInMemoryCSS?: boolean;
|
|
5
|
+
/** how often to scan tracked stylesheets (with "empty" rules) */
|
|
6
|
+
checkCssInterval?: number;
|
|
5
7
|
/**
|
|
6
8
|
Useful for cases where you expect limited amount of mutations
|
|
7
9
|
|
|
@@ -28,3 +28,6 @@ export declare function createEventListener(target: EventTarget, event: string,
|
|
|
28
28
|
export declare function deleteEventListener(target: EventTarget, event: string, cb: EventListenerOrEventListenerObject, capture?: boolean, forceNgOff?: boolean): void;
|
|
29
29
|
export declare function requestIdleCb(callback: () => void): void;
|
|
30
30
|
export declare function simpleMerge<T>(defaultObj: T, givenObj: Partial<T>): T;
|
|
31
|
+
export declare function throttleWithTrailing<K, Args extends any[]>(fn: (key: K, ...args: Args) => void, interval: number): ((key: K, ...args: Args) => void) & {
|
|
32
|
+
clear: () => void;
|
|
33
|
+
};
|