@openreplay/tracker 16.3.0 → 16.4.0-beta.1

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.
@@ -1,11 +1,30 @@
1
1
  import type App from '../app/index.js';
2
2
  export interface MouseHandlerOptions {
3
3
  disableClickmaps?: boolean;
4
+ /** minimum length of an optimised selector.
5
+ *
6
+ * body > div > div > p => body > p for example
7
+ *
8
+ * default 2
9
+ * */
10
+ minSelectorDepth?: number;
11
+ /** how many selectors to try before falling back to nth-child selectors
12
+ * performance expensive operation
13
+ *
14
+ * default 1000
15
+ * */
16
+ nthThreshold?: number;
17
+ /**
18
+ * how many tries to optimise and shorten the selector
19
+ *
20
+ * default 10_000
21
+ * */
22
+ maxOptimiseTries?: number;
4
23
  /**
5
24
  * how many ticks to wait before capturing mouse position
6
25
  * (can affect performance)
7
26
  * 1 tick = 30ms
8
- * default 7 = 210ms
27
+ * default 7
9
28
  * */
10
29
  trackingOffset?: number;
11
30
  }
@@ -1,11 +1,30 @@
1
1
  import type App from '../app/index.js';
2
2
  export interface MouseHandlerOptions {
3
3
  disableClickmaps?: boolean;
4
+ /** minimum length of an optimised selector.
5
+ *
6
+ * body > div > div > p => body > p for example
7
+ *
8
+ * default 2
9
+ * */
10
+ minSelectorDepth?: number;
11
+ /** how many selectors to try before falling back to nth-child selectors
12
+ * performance expensive operation
13
+ *
14
+ * default 1000
15
+ * */
16
+ nthThreshold?: number;
17
+ /**
18
+ * how many tries to optimise and shorten the selector
19
+ *
20
+ * default 10_000
21
+ * */
22
+ maxOptimiseTries?: number;
4
23
  /**
5
24
  * how many ticks to wait before capturing mouse position
6
25
  * (can affect performance)
7
26
  * 1 tick = 30ms
8
- * default 7 = 210ms
27
+ * default 7
9
28
  * */
10
29
  trackingOffset?: number;
11
30
  }
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",
4
+ "version": "16.4.0-beta.1",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"