react-native-windows 0.65.9 → 0.65.10
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.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "react-native-windows",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 17 Jan 2022 16:11:10 GMT",
|
|
6
|
+
"tag": "react-native-windows_v0.65.10",
|
|
7
|
+
"version": "0.65.10",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Fork HoverState.js to allow hover events on Pressable",
|
|
12
|
+
"author": "saadnajmi2@gmail.com",
|
|
13
|
+
"commit": "5e51350579884c5db479729185f232df77a7e992",
|
|
14
|
+
"package": "react-native-windows"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 29 Nov 2021 16:12:25 GMT",
|
|
6
21
|
"tag": "react-native-windows_v0.65.9",
|
|
7
22
|
"version": "0.65.9",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
# Change Log - react-native-windows
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
This log was last generated on Mon, 17 Jan 2022 16:11:10 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.65.
|
|
7
|
+
## 0.65.10
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 17 Jan 2022 16:11:10 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Fix C# Module Event invocation (vmorozov@microsoft.com)
|
|
13
|
+
- Fork HoverState.js to allow hover events on Pressable (saadnajmi2@gmail.com)
|
|
15
14
|
|
|
15
|
+
## 0.65.9
|
|
16
|
+
|
|
17
|
+
Mon, 29 Nov 2021 16:12:25 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- [0.65] Make ADK dependency optional in dependency script (jthysell@microsoft.com)
|
|
22
|
+
- Fix C# Module Event invocation (vmorozov@microsoft.com)
|
|
23
|
+
|
|
16
24
|
## 0.65.8
|
|
17
25
|
|
|
18
26
|
Mon, 15 Nov 2021 16:09:31 GMT
|
|
@@ -25,6 +25,7 @@ import usePressability from '../../Pressability/usePressability';
|
|
|
25
25
|
import {normalizeRect, type RectOrSize} from '../../StyleSheet/Rect';
|
|
26
26
|
import type {
|
|
27
27
|
LayoutEvent,
|
|
28
|
+
MouseEvent,
|
|
28
29
|
PressEvent,
|
|
29
30
|
// [Windows
|
|
30
31
|
BlurEvent,
|
|
@@ -71,6 +72,16 @@ type Props = $ReadOnly<{|
|
|
|
71
72
|
*/
|
|
72
73
|
children: React.Node | ((state: StateCallbackType) => React.Node),
|
|
73
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Duration to wait after hover in before calling `onHoverIn`.
|
|
77
|
+
*/
|
|
78
|
+
delayHoverIn?: ?number,
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Duration to wait after hover out before calling `onHoverOut`.
|
|
82
|
+
*/
|
|
83
|
+
delayHoverOut?: ?number,
|
|
84
|
+
|
|
74
85
|
/**
|
|
75
86
|
* Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.
|
|
76
87
|
*/
|
|
@@ -97,6 +108,16 @@ type Props = $ReadOnly<{|
|
|
|
97
108
|
*/
|
|
98
109
|
onLayout?: ?(event: LayoutEvent) => mixed,
|
|
99
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Called when the hover is activated to provide visual feedback.
|
|
113
|
+
*/
|
|
114
|
+
onHoverIn?: ?(event: MouseEvent) => mixed,
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Called when the hover is deactivated to undo visual feedback.
|
|
118
|
+
*/
|
|
119
|
+
onHoverOut?: ?(event: MouseEvent) => mixed,
|
|
120
|
+
|
|
100
121
|
/**
|
|
101
122
|
* Called when a long-tap gesture is detected.
|
|
102
123
|
*/
|
|
@@ -180,9 +201,13 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
180
201
|
android_ripple,
|
|
181
202
|
cancelable,
|
|
182
203
|
children,
|
|
204
|
+
delayHoverIn,
|
|
205
|
+
delayHoverOut,
|
|
183
206
|
delayLongPress,
|
|
184
207
|
disabled,
|
|
185
208
|
focusable,
|
|
209
|
+
onHoverIn,
|
|
210
|
+
onHoverOut,
|
|
186
211
|
onLongPress,
|
|
187
212
|
onPress,
|
|
188
213
|
onPressIn,
|
|
@@ -246,8 +271,12 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
246
271
|
hitSlop,
|
|
247
272
|
pressRectOffset: pressRetentionOffset,
|
|
248
273
|
android_disableSound,
|
|
274
|
+
delayHoverIn,
|
|
275
|
+
delayHoverOut,
|
|
249
276
|
delayLongPress,
|
|
250
277
|
delayPressIn: unstable_pressDelay,
|
|
278
|
+
onHoverIn,
|
|
279
|
+
onHoverOut,
|
|
251
280
|
onLongPress,
|
|
252
281
|
onPress,
|
|
253
282
|
onPressIn(event: PressEvent): void {
|
|
@@ -280,9 +309,13 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
280
309
|
android_disableSound,
|
|
281
310
|
android_rippleConfig,
|
|
282
311
|
cancelable,
|
|
312
|
+
delayHoverIn,
|
|
313
|
+
delayHoverOut,
|
|
283
314
|
delayLongPress,
|
|
284
315
|
disabled,
|
|
285
316
|
hitSlop,
|
|
317
|
+
onHoverIn,
|
|
318
|
+
onHoverOut,
|
|
286
319
|
onLongPress,
|
|
287
320
|
onPress,
|
|
288
321
|
onPressIn,
|
|
@@ -49,6 +49,10 @@ if (Platform.OS === 'web') {
|
|
|
49
49
|
document.addEventListener('touchmove', disableHover, true);
|
|
50
50
|
document.addEventListener('mousemove', enableHover, true);
|
|
51
51
|
}
|
|
52
|
+
// [Windows
|
|
53
|
+
} else if (Platform.OS === 'windows') {
|
|
54
|
+
isEnabled = true;
|
|
55
|
+
// Windows]
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
export function isHoverEnabled(): boolean {
|