@react-types/shared 3.0.0-nightly.2989 → 3.0.0-nightly.2992
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 +2 -2
- package/src/dnd.d.ts +1 -2
- package/src/refs.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/shared",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.2992+546ffa41f",
|
|
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": "
|
|
17
|
+
"gitHead": "546ffa41f7d1d3a566950a14d8f46cf726891220"
|
|
18
18
|
}
|
package/src/dnd.d.ts
CHANGED
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {Key} from '@react-types/shared';
|
|
14
|
-
import {RefObject} from 'react';
|
|
13
|
+
import {Key, RefObject} from '@react-types/shared';
|
|
15
14
|
|
|
16
15
|
export interface DragDropEvent {
|
|
17
16
|
/** The x coordinate of the event, relative to the target element. */
|
package/src/refs.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export interface FocusableRefValue<T extends HTMLElement = HTMLElement, D extend
|
|
|
23
23
|
export type DOMRef<T extends HTMLElement = HTMLElement> = Ref<DOMRefValue<T>>;
|
|
24
24
|
export type FocusableRef<T extends HTMLElement = HTMLElement> = Ref<FocusableRefValue<T>>;
|
|
25
25
|
|
|
26
|
+
export interface RefObject<T> {
|
|
27
|
+
current: T
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
// Override forwardRef types so generics work.
|
|
27
31
|
declare function forwardRef<T, P = {}>(
|
|
28
32
|
render: (props: P, ref: Ref<T>) => ReactNode | null
|