@openreplay/tracker 17.2.1 → 17.2.3

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.
@@ -28,6 +28,7 @@ export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & I
28
28
  resetTabOnWindowOpen?: boolean;
29
29
  network?: Partial<NetworkOptions>;
30
30
  mouse?: Partial<MouseHandlerOptions>;
31
+ customAttributes?: string[];
31
32
  __DISABLE_SECURE_MODE?: boolean;
32
33
  css: CssRulesOptions;
33
34
  webAnimations?: WapOptions;
@@ -1,6 +1,6 @@
1
1
  import type App from '../app/index.js';
2
2
  type TextFieldElement = HTMLInputElement | HTMLTextAreaElement;
3
- export declare function getInputLabel(node: TextFieldElement): string;
3
+ export declare function getInputLabel(node: TextFieldElement, customAttributes?: string[]): string;
4
4
  export declare const InputMode: {
5
5
  readonly Plain: 0;
6
6
  readonly Obscured: 1;
@@ -29,6 +29,7 @@ export interface Options {
29
29
  * will override other settings.
30
30
  * */
31
31
  defaultInputMode: InputModeT;
32
+ customAttributes?: string[];
32
33
  }
33
34
  export default function (app: App, opts: Partial<Options>): void;
34
35
  export {};
@@ -8,6 +8,7 @@ export interface MouseHandlerOptions {
8
8
  * default 7 = 210ms
9
9
  * */
10
10
  trackingOffset?: number;
11
+ customAttributes?: string[];
11
12
  }
12
13
  export default function (app: App, options?: MouseHandlerOptions): void;
13
14
  export declare function getCSSPath(el: any): string | false;
@@ -9,6 +9,8 @@ export declare function normSpaces(str: string): string;
9
9
  export declare function isURL(s: string): boolean;
10
10
  export declare const DOCS_HOST = "https://docs.openreplay.com";
11
11
  export declare function deprecationWarn(nameOfFeature: string, useInstead: string, docsPath?: string): void;
12
+ export declare function getCustomAttributeLabel(e: Element, customAttributes?: string[]): string;
13
+ export declare function getClassSelector(e: Element): string;
12
14
  export declare function getLabelAttribute(e: Element): string | null;
13
15
  export declare function hasOpenreplayAttribute(e: Element, attr: string): boolean;
14
16
  /**
@@ -28,6 +28,7 @@ export type Options = Partial<AppOptions & ConsoleOptions & ExceptionOptions & I
28
28
  resetTabOnWindowOpen?: boolean;
29
29
  network?: Partial<NetworkOptions>;
30
30
  mouse?: Partial<MouseHandlerOptions>;
31
+ customAttributes?: string[];
31
32
  __DISABLE_SECURE_MODE?: boolean;
32
33
  css: CssRulesOptions;
33
34
  webAnimations?: WapOptions;
@@ -1,6 +1,6 @@
1
1
  import type App from '../app/index.js';
2
2
  type TextFieldElement = HTMLInputElement | HTMLTextAreaElement;
3
- export declare function getInputLabel(node: TextFieldElement): string;
3
+ export declare function getInputLabel(node: TextFieldElement, customAttributes?: string[]): string;
4
4
  export declare const InputMode: {
5
5
  readonly Plain: 0;
6
6
  readonly Obscured: 1;
@@ -29,6 +29,7 @@ export interface Options {
29
29
  * will override other settings.
30
30
  * */
31
31
  defaultInputMode: InputModeT;
32
+ customAttributes?: string[];
32
33
  }
33
34
  export default function (app: App, opts: Partial<Options>): void;
34
35
  export {};
@@ -8,6 +8,7 @@ export interface MouseHandlerOptions {
8
8
  * default 7 = 210ms
9
9
  * */
10
10
  trackingOffset?: number;
11
+ customAttributes?: string[];
11
12
  }
12
13
  export default function (app: App, options?: MouseHandlerOptions): void;
13
14
  export declare function getCSSPath(el: any): string | false;
@@ -9,6 +9,8 @@ export declare function normSpaces(str: string): string;
9
9
  export declare function isURL(s: string): boolean;
10
10
  export declare const DOCS_HOST = "https://docs.openreplay.com";
11
11
  export declare function deprecationWarn(nameOfFeature: string, useInstead: string, docsPath?: string): void;
12
+ export declare function getCustomAttributeLabel(e: Element, customAttributes?: string[]): string;
13
+ export declare function getClassSelector(e: Element): string;
12
14
  export declare function getLabelAttribute(e: Element): string | null;
13
15
  export declare function hasOpenreplayAttribute(e: Element, attr: string): boolean;
14
16
  /**
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": "17.2.1",
4
+ "version": "17.2.3",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"