@react-types/shared 3.32.1 → 3.33.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/events.d.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/shared",
3
- "version": "3.32.1",
3
+ "version": "3.33.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -14,5 +14,5 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "gitHead": "0bda51183baa23306342af32a82012ea0fe0f2dc"
17
+ "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
18
18
  }
package/src/events.d.ts CHANGED
@@ -51,6 +51,11 @@ export interface PressEvent {
51
51
  x: number,
52
52
  /** Y position relative to the target. */
53
53
  y: number,
54
+ /**
55
+ * The key that triggered the press event, if it was triggered by a keyboard interaction.
56
+ * This is useful for differentiating between Space and Enter key presses.
57
+ */
58
+ key?: string,
54
59
  /**
55
60
  * By default, press events stop propagation to parent elements.
56
61
  * In cases where a handler decides not to handle a specific event,