clarity-js 0.8.14 → 0.8.15

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/types/data.d.ts CHANGED
@@ -3,13 +3,12 @@ export type Target = (number | Node);
3
3
  export type Token = (string | number | number[] | string[] | (string | number)[]);
4
4
  export type DecodedToken = (any | any[]);
5
5
 
6
- export type MetadataCallback = (data: Metadata, playback: boolean, consentStatus?: ConsentState) => void;
6
+ export type MetadataCallback = (data: Metadata, playback: boolean) => void;
7
7
  export interface MetadataCallbackOptions {
8
8
  callback: MetadataCallback,
9
9
  wait: boolean,
10
10
  recall: boolean,
11
- called: boolean,
12
- consentInfo: boolean
11
+ called: boolean
13
12
  }
14
13
  export type SignalCallback = (data: ClaritySignal) => void
15
14
 
@@ -72,7 +71,6 @@ export const enum Event {
72
71
  Animation = 44,
73
72
  StyleSheetAdoption = 45,
74
73
  StyleSheetUpdate = 46,
75
- Consent = 47,
76
74
 
77
75
  // Apps specific events
78
76
  WebViewDiscover = 100,
@@ -349,8 +347,6 @@ export const enum Constant {
349
347
  SHA256 = "SHA-256",
350
348
  Electron = "Electron",
351
349
  Caret = "^",
352
- Granted = "granted",
353
- Denied = "denied",
354
350
  }
355
351
 
356
352
  export const enum XMLReadyState {
@@ -361,10 +357,6 @@ export const enum XMLReadyState {
361
357
  Done = 4
362
358
  }
363
359
 
364
- export const enum ConsentSource{
365
- Implicit = 0,
366
- API = 1
367
- }
368
360
 
369
361
  /* Helper Interfaces */
370
362
 
@@ -522,15 +514,4 @@ export interface PerformanceEventTiming extends PerformanceEntry {
522
514
  export interface Interaction {
523
515
  id: number;
524
516
  latency: number;
525
- }
526
-
527
- export interface ConsentState {
528
- ad_Storage?: string;
529
- analytics_Storage?: string;
530
- }
531
-
532
- export interface ConsentData {
533
- source: ConsentSource;
534
- ad_Storage: BooleanFlag;
535
- analytics_Storage: BooleanFlag;
536
- }
517
+ }
package/types/index.d.ts CHANGED
@@ -12,7 +12,6 @@ interface Clarity {
12
12
  resume: () => void;
13
13
  upgrade: (key: string) => void;
14
14
  consent: () => void;
15
- consentv2: () => void;
16
15
  event: (name: string, value: string) => void;
17
16
  set: (variable: string, value: string | string[]) => void;
18
17
  identify: (userId: string, sessionId?: string, pageId?: string, userHint?: string) => void;