@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.
@@ -34,6 +34,7 @@ export default abstract class Observer {
34
34
  */
35
35
  private handleIframeSrcChange;
36
36
  private sendNodeAttribute;
37
+ private throttledSetNodeData;
37
38
  private sendNodeData;
38
39
  private bindNode;
39
40
  private bindTree;
@@ -1,7 +1,9 @@
1
1
  import type App from '../app/index.js';
2
2
  export interface CssRulesOptions {
3
- checkCssInterval?: number;
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
+ };
@@ -34,6 +34,7 @@ export default abstract class Observer {
34
34
  */
35
35
  private handleIframeSrcChange;
36
36
  private sendNodeAttribute;
37
+ private throttledSetNodeData;
37
38
  private sendNodeData;
38
39
  private bindNode;
39
40
  private bindTree;
@@ -1,7 +1,9 @@
1
1
  import type App from '../app/index.js';
2
2
  export interface CssRulesOptions {
3
- checkCssInterval?: number;
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
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "16.3.0-beta.0",
4
+ "version": "16.3.0-beta.2",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"