File tree Expand file tree Collapse file tree 7 files changed +40
-32
lines changed
packages/react-interactions/events/src/dom Expand file tree Collapse file tree 7 files changed +40
-32
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,11 @@ const contextMenuImpl = {
113
113
} ,
114
114
} ;
115
115
116
- export const ContextMenuResponder = React . DEPRECATED_createResponder <
117
- ReactDOMResponderEvent ,
118
- ReactDOMResponderContext ,
119
- > ( 'ContextMenu ', contextMenuImpl);
116
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
117
+ export const ContextMenuResponder = React . DEPRECATED_createResponder (
118
+ 'ContextMenu' ,
119
+ contextMenuImpl ,
120
+ ) ;
120
121
121
122
export function useContextMenu (
122
123
props : ContextMenuProps ,
Original file line number Diff line number Diff line change @@ -494,10 +494,11 @@ const focusResponderImpl = {
494
494
} ,
495
495
} ;
496
496
497
- export const FocusResponder = React . DEPRECATED_createResponder <
498
- ReactDOMResponderEvent ,
499
- ReactDOMResponderContext ,
500
- > ( 'Focus ', focusResponderImpl);
497
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
498
+ export const FocusResponder = React . DEPRECATED_createResponder (
499
+ 'Focus' ,
500
+ focusResponderImpl ,
501
+ ) ;
501
502
502
503
export function useFocus (
503
504
props : FocusProps ,
@@ -680,10 +681,11 @@ const focusWithinResponderImpl = {
680
681
} ,
681
682
} ;
682
683
683
- export const FocusWithinResponder = React . DEPRECATED_createResponder <
684
- ReactDOMResponderEvent ,
685
- ReactDOMResponderContext ,
686
- > ( 'FocusWithin ', focusWithinResponderImpl);
684
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
685
+ export const FocusWithinResponder = React . DEPRECATED_createResponder (
686
+ 'FocusWithin' ,
687
+ focusWithinResponderImpl ,
688
+ ) ;
687
689
688
690
export function useFocusWithin (
689
691
props : FocusWithinProps ,
Original file line number Diff line number Diff line change @@ -378,10 +378,11 @@ const hoverResponderFallbackImpl = {
378
378
onUnmount: unmountResponder ,
379
379
} ;
380
380
381
- export const HoverResponder = React . DEPRECATED_createResponder <
382
- ReactDOMResponderEvent ,
383
- ReactDOMResponderContext ,
384
- > ( 'Hover ', hasPointerEvents ? hoverResponderImpl : hoverResponderFallbackImpl);
381
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
382
+ export const HoverResponder = React . DEPRECATED_createResponder (
383
+ 'Hover' ,
384
+ hasPointerEvents ? hoverResponderImpl : hoverResponderFallbackImpl ,
385
+ ) ;
385
386
386
387
export function useHover (
387
388
props : HoverProps ,
Original file line number Diff line number Diff line change @@ -212,10 +212,11 @@ const inputResponderImpl = {
212
212
} ,
213
213
} ;
214
214
215
- export const InputResponder = React . DEPRECATED_createResponder <
216
- ReactDOMResponderEvent ,
217
- ReactDOMResponderContext ,
218
- > ( 'Input' , inputResponderImpl ) ;
215
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
216
+ export const InputResponder = React . DEPRECATED_createResponder (
217
+ 'Input' ,
218
+ inputResponderImpl ,
219
+ ) ;
219
220
220
221
export function useInput (
221
222
props : InputResponderProps ,
Original file line number Diff line number Diff line change @@ -229,10 +229,11 @@ const keyboardResponderImpl = {
229
229
} ,
230
230
} ;
231
231
232
- export const KeyboardResponder = React . DEPRECATED_createResponder <
233
- ReactDOMResponderEvent ,
234
- ReactDOMResponderContext ,
235
- > ( 'Keyboard' , keyboardResponderImpl ) ;
232
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
233
+ export const KeyboardResponder = React . DEPRECATED_createResponder (
234
+ 'Keyboard' ,
235
+ keyboardResponderImpl ,
236
+ ) ;
236
237
237
238
export function useKeyboard (
238
239
props : KeyboardProps ,
Original file line number Diff line number Diff line change @@ -903,10 +903,11 @@ const pressResponderImpl = {
903
903
} ,
904
904
} ;
905
905
906
- export const PressResponder = React . DEPRECATED_createResponder <
907
- ReactDOMResponderEvent ,
908
- ReactDOMResponderContext ,
909
- > ( 'Press' , pressResponderImpl ) ;
906
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
907
+ export const PressResponder = React . DEPRECATED_createResponder (
908
+ 'Press' ,
909
+ pressResponderImpl ,
910
+ ) ;
910
911
911
912
export function usePress (
912
913
props : PressProps ,
Original file line number Diff line number Diff line change @@ -721,10 +721,11 @@ const responderImpl = {
721
721
} ,
722
722
} ;
723
723
724
- export const TapResponder = React . DEPRECATED_createResponder <
725
- ReactDOMResponderEvent ,
726
- ReactDOMResponderContext ,
727
- > ( 'Tap ', responderImpl);
724
+ // $FlowFixMe Can't add generic types without causing a parsing/syntax errors
725
+ export const TapResponder = React . DEPRECATED_createResponder (
726
+ 'Tap' ,
727
+ responderImpl ,
728
+ ) ;
728
729
729
730
export function useTap (
730
731
props : TapProps ,
You can’t perform that action at this time.
0 commit comments