@spotify-confidence/csr-common 0.18.6 → 0.18.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.18.7](https://github.com/spotify/confidence-sdk-js/compare/csr-common-v0.18.6...csr-common-v0.18.7) (2026-08-18)
4
+
5
+
6
+ ### ✨ New Features
7
+
8
+ * **csr-recorder:** capture click modifier keys ([#435](https://github.com/spotify/confidence-sdk-js/issues/435)) ([a1e7a96](https://github.com/spotify/confidence-sdk-js/commit/a1e7a96996cd2f361f3b44cc924d6b4d5ff0b003))
9
+
3
10
  ## [0.18.6](https://github.com/spotify/confidence-sdk-js/compare/csr-common-v0.18.5...csr-common-v0.18.6) (2026-08-18)
4
11
 
5
12
 
package/dist/index.d.cts CHANGED
@@ -70,7 +70,12 @@ type MouseInteractionData = {
70
70
  id: number;
71
71
  x?: number;
72
72
  y?: number;
73
- pointerType?: number;
73
+ pointerType?: number; /** Mouse button and modifier keys present on click events. */
74
+ button?: number;
75
+ altKey?: boolean;
76
+ ctrlKey?: boolean;
77
+ metaKey?: boolean;
78
+ shiftKey?: boolean;
74
79
  };
75
80
  type SelectionRange = {
76
81
  start: number;
@@ -138,6 +143,11 @@ type ClickCustomData = {
138
143
  targetId: number;
139
144
  element?: ElementDescriptor;
140
145
  pathname?: string;
146
+ button?: number;
147
+ altKey?: boolean;
148
+ ctrlKey?: boolean;
149
+ metaKey?: boolean;
150
+ shiftKey?: boolean;
141
151
  };
142
152
  };
143
153
  type InputCustomData = {
package/dist/index.d.ts CHANGED
@@ -70,7 +70,12 @@ type MouseInteractionData = {
70
70
  id: number;
71
71
  x?: number;
72
72
  y?: number;
73
- pointerType?: number;
73
+ pointerType?: number; /** Mouse button and modifier keys present on click events. */
74
+ button?: number;
75
+ altKey?: boolean;
76
+ ctrlKey?: boolean;
77
+ metaKey?: boolean;
78
+ shiftKey?: boolean;
74
79
  };
75
80
  type SelectionRange = {
76
81
  start: number;
@@ -138,6 +143,11 @@ type ClickCustomData = {
138
143
  targetId: number;
139
144
  element?: ElementDescriptor;
140
145
  pathname?: string;
146
+ button?: number;
147
+ altKey?: boolean;
148
+ ctrlKey?: boolean;
149
+ metaKey?: boolean;
150
+ shiftKey?: boolean;
141
151
  };
142
152
  };
143
153
  type InputCustomData = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotify-confidence/csr-common",
3
3
  "license": "Apache-2.0",
4
- "version": "0.18.6",
4
+ "version": "0.18.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/spotify/confidence-sdk-js.git",
package/src/events.ts CHANGED
@@ -72,6 +72,12 @@ export type MouseInteractionData = {
72
72
  x?: number;
73
73
  y?: number;
74
74
  pointerType?: number;
75
+ /** Mouse button and modifier keys present on click events. */
76
+ button?: number;
77
+ altKey?: boolean;
78
+ ctrlKey?: boolean;
79
+ metaKey?: boolean;
80
+ shiftKey?: boolean;
75
81
  };
76
82
 
77
83
  export type SelectionRange = {
@@ -148,6 +154,11 @@ export type ClickCustomData = {
148
154
  targetId: number;
149
155
  element?: ElementDescriptor;
150
156
  pathname?: string;
157
+ button?: number;
158
+ altKey?: boolean;
159
+ ctrlKey?: boolean;
160
+ metaKey?: boolean;
161
+ shiftKey?: boolean;
151
162
  };
152
163
  };
153
164