clarity-visualize 0.8.38-beta → 0.8.39

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.
@@ -760,6 +760,9 @@ class InteractionHelper {
760
760
  }
761
761
  };
762
762
  this.pointer = (event) => {
763
+ if (!this.state.options.pointer) {
764
+ return;
765
+ }
763
766
  let data = event.data;
764
767
  let type = event.event;
765
768
  let doc = this.state.window.document;
@@ -1999,6 +2002,7 @@ class Visualizer {
1999
2002
  this.setup = (target, options) => __awaiter(this, void 0, void 0, function* () {
2000
2003
  this.reset();
2001
2004
  // Infer options
2005
+ options.pointer = "pointer" in options ? options.pointer : true;
2002
2006
  options.canvas = "canvas" in options ? options.canvas : true;
2003
2007
  options.keyframes = "keyframes" in options ? options.keyframes : false;
2004
2008
  // Set visualization state
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-visualize",
3
- "version": "0.8.38-beta",
3
+ "version": "0.8.39",
4
4
  "description": "An analytics library that uses web page interactions to generate aggregated insights",
5
5
  "author": "Microsoft Corp.",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "url": "https://github.com/Microsoft/clarity/issues"
28
28
  },
29
29
  "dependencies": {
30
- "clarity-decode": "^0.8.38-beta"
30
+ "clarity-decode": "^0.8.39"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@rollup/plugin-commonjs": "^24.0.0",
@@ -133,6 +133,9 @@ export class InteractionHelper {
133
133
  };
134
134
 
135
135
  public pointer = (event: Interaction.PointerEvent): void => {
136
+ if (!this.state.options.pointer) {
137
+ return;
138
+ }
136
139
  let data = event.data;
137
140
  let type = event.event;
138
141
  let doc = this.state.window.document;
package/src/visualizer.ts CHANGED
@@ -149,6 +149,7 @@ export class Visualizer implements VisualizerType {
149
149
  public setup = async (target: Window, options: Options): Promise<Visualizer> => {
150
150
  this.reset();
151
151
  // Infer options
152
+ options.pointer = "pointer" in options ? options.pointer : true;
152
153
  options.canvas = "canvas" in options ? options.canvas : true;
153
154
  options.keyframes = "keyframes" in options ? options.keyframes : false;
154
155
 
@@ -63,6 +63,7 @@ export interface Options {
63
63
  useproxy?: LinkHandler;
64
64
  onclickMismatch?: ClickLogger;
65
65
  metadata?: HTMLElement;
66
+ pointer?: boolean;
66
67
  canvas?: boolean;
67
68
  keyframes?: boolean;
68
69
  mobile?: boolean;