@react-types/shared 3.13.0 → 3.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/shared",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
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": "8f921ec5094e7c2b3c301bcb6133372e35a2052b"
17
+ "gitHead": "715c3f563ccf8c2e0102d3e18403d9db21a05a71"
18
18
  }
@@ -89,31 +89,31 @@ export type SortDirection = 'ascending' | 'descending';
89
89
 
90
90
  export interface KeyboardDelegate {
91
91
  /** Returns the key visually below the given one, or `null` for none. */
92
- getKeyBelow?(key: Key): Key,
92
+ getKeyBelow?(key: Key): Key | null,
93
93
 
94
94
  /** Returns the key visually above the given one, or `null` for none. */
95
- getKeyAbove?(key: Key): Key,
95
+ getKeyAbove?(key: Key): Key | null,
96
96
 
97
97
  /** Returns the key visually to the left of the given one, or `null` for none. */
98
- getKeyLeftOf?(key: Key): Key,
98
+ getKeyLeftOf?(key: Key): Key | null,
99
99
 
100
100
  /** Returns the key visually to the right of the given one, or `null` for none. */
101
- getKeyRightOf?(key: Key): Key,
101
+ getKeyRightOf?(key: Key): Key | null,
102
102
 
103
103
  /** Returns the key visually one page below the given one, or `null` for none. */
104
- getKeyPageBelow?(key: Key): Key,
104
+ getKeyPageBelow?(key: Key): Key | null,
105
105
 
106
106
  /** Returns the key visually one page above the given one, or `null` for none. */
107
- getKeyPageAbove?(key: Key): Key,
107
+ getKeyPageAbove?(key: Key): Key | null,
108
108
 
109
109
  /** Returns the first key, or `null` for none. */
110
- getFirstKey?(key?: Key, global?: boolean): Key,
110
+ getFirstKey?(key?: Key, global?: boolean): Key | null,
111
111
 
112
112
  /** Returns the last key, or `null` for none. */
113
- getLastKey?(key?: Key, global?: boolean): Key,
113
+ getLastKey?(key?: Key, global?: boolean): Key | null,
114
114
 
115
115
  /** Returns the next key after `fromKey` that matches the given search string, or `null` for none. */
116
- getKeyForSearch?(search: string, fromKey?: Key): Key
116
+ getKeyForSearch?(search: string, fromKey?: Key): Key | null
117
117
  }
118
118
 
119
119
  /**