react-native-windows 0.64.27 → 0.64.28

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, 06 Dec 2021 16:10:13 GMT",
5
+ "date": "Mon, 17 Jan 2022 16:09:50 GMT",
6
+ "tag": "react-native-windows_v0.64.28",
7
+ "version": "0.64.28",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Fork HoverState.js to allow hover events on Pressable",
12
+ "author": "saadnajmi2@gmail.com",
13
+ "commit": "acfb47a7924f4d4e34e020838423bbbab026d670",
14
+ "package": "react-native-windows"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 06 Dec 2021 16:10:29 GMT",
6
21
  "tag": "react-native-windows_v0.64.27",
7
22
  "version": "0.64.27",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,24 +1,32 @@
1
1
  # Change Log - react-native-windows
2
2
 
3
- This log was last generated on Mon, 06 Dec 2021 16:10:13 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 17 Jan 2022 16:09:50 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.64.27
7
+ ## 0.64.28
8
8
 
9
- Mon, 06 Dec 2021 16:10:13 GMT
9
+ Mon, 17 Jan 2022 16:09:50 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Remove legacy logic to find win32 bundle (30809111+acoates-ms@users.noreply.github.com)
14
- - InstanceCreated should fire before any JS code is run (30809111+acoates-ms@users.noreply.github.com)
15
- - ReloadInstance async task and InstanceLoaded event were not correctly reporting failures (30809111+acoates-ms@users.noreply.github.com)
16
- - Better reporting of failures to load the bundle file (30809111+acoates-ms@users.noreply.github.com)
17
- - Fix crash when adding a ReactRootView while reloading a ReactHost (30809111+acoates-ms@users.noreply.github.com)
18
- - Prevent TurboModules from leaking on instance shutdown (30809111+acoates-ms@users.noreply.github.com)
19
- - Websocket is hitting the UI queue unnecessarily (30809111+acoates-ms@users.noreply.github.com)
20
- - Hook up DetachViewInstance method for custom UI implementations (30809111+acoates-ms@users.noreply.github.com)
13
+ - Fork HoverState.js to allow hover events on Pressable (saadnajmi2@gmail.com)
21
14
 
15
+ ## 0.64.27
16
+
17
+ Mon, 06 Dec 2021 16:10:29 GMT
18
+
19
+ ### Patches
20
+
21
+ - Remove legacy logic to find win32 bundle (30809111+acoates-ms@users.noreply.github.com)
22
+ - InstanceCreated should fire before any JS code is run (30809111+acoates-ms@users.noreply.github.com)
23
+ - ReloadInstance async task and InstanceLoaded event were not correctly reporting failures (30809111+acoates-ms@users.noreply.github.com)
24
+ - Better reporting of failures to load the bundle file (30809111+acoates-ms@users.noreply.github.com)
25
+ - Fix crash when adding a ReactRootView while reloading a ReactHost (30809111+acoates-ms@users.noreply.github.com)
26
+ - Prevent TurboModules from leaking on instance shutdown (30809111+acoates-ms@users.noreply.github.com)
27
+ - Websocket is hitting the UI queue unnecessarily (30809111+acoates-ms@users.noreply.github.com)
28
+ - Hook up DetachViewInstance method for custom UI implementations (30809111+acoates-ms@users.noreply.github.com)
29
+
22
30
  ## 0.64.26
23
31
 
24
32
  Mon, 15 Nov 2021 16:09:20 GMT
@@ -29,6 +29,7 @@ import type {
29
29
  LayoutEvent,
30
30
  PressEvent,
31
31
  // [Windows
32
+ MouseEvent,
32
33
  BlurEvent,
33
34
  FocusEvent, // Windows]
34
35
  } from '../../Types/CoreEventTypes';
@@ -66,6 +67,16 @@ type Props = $ReadOnly<{|
66
67
  */
67
68
  children: React.Node | ((state: StateCallbackType) => React.Node),
68
69
 
70
+ /**
71
+ * Duration to wait after hover in before calling `onHoverIn`.
72
+ */
73
+ delayHoverIn?: ?number,
74
+
75
+ /**
76
+ * Duration to wait after hover out before calling `onHoverOut`.
77
+ */
78
+ delayHoverOut?: ?number,
79
+
69
80
  /**
70
81
  * Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.
71
82
  */
@@ -92,6 +103,16 @@ type Props = $ReadOnly<{|
92
103
  */
93
104
  onLayout?: ?(event: LayoutEvent) => void,
94
105
 
106
+ /**
107
+ * Called when the hover is activated to provide visual feedback.
108
+ */
109
+ onHoverIn?: ?(event: MouseEvent) => mixed,
110
+
111
+ /**
112
+ * Called when the hover is deactivated to undo visual feedback.
113
+ */
114
+ onHoverOut?: ?(event: MouseEvent) => mixed,
115
+
95
116
  /**
96
117
  * Called when a long-tap gesture is detected.
97
118
  */
@@ -164,9 +185,13 @@ function Pressable(props: Props, forwardedRef): React.Node {
164
185
  android_disableSound,
165
186
  android_ripple,
166
187
  children,
188
+ delayHoverIn,
189
+ delayHoverOut,
167
190
  delayLongPress,
168
191
  disabled,
169
192
  focusable,
193
+ onHoverIn,
194
+ onHoverOut,
170
195
  onLongPress,
171
196
  onPress,
172
197
  onPressIn,
@@ -221,8 +246,12 @@ function Pressable(props: Props, forwardedRef): React.Node {
221
246
  hitSlop,
222
247
  pressRectOffset: pressRetentionOffset,
223
248
  android_disableSound,
249
+ delayHoverIn,
250
+ delayHoverOut,
224
251
  delayLongPress,
225
252
  delayPressIn: unstable_pressDelay,
253
+ onHoverIn,
254
+ onHoverOut,
226
255
  onLongPress,
227
256
  onPress,
228
257
  onPressIn(event: PressEvent): void {
@@ -252,9 +281,13 @@ function Pressable(props: Props, forwardedRef): React.Node {
252
281
  [
253
282
  android_disableSound,
254
283
  android_rippleConfig,
284
+ delayHoverIn,
285
+ delayHoverOut,
255
286
  delayLongPress,
256
287
  disabled,
257
288
  hitSlop,
289
+ onHoverIn,
290
+ onHoverOut,
258
291
  onLongPress,
259
292
  onPress,
260
293
  onPressIn,
@@ -8,8 +8,6 @@
8
8
  * @format
9
9
  */
10
10
 
11
- 'use strict';
12
-
13
11
  import Platform from '../Utilities/Platform';
14
12
 
15
13
  let isEnabled = false;
@@ -51,6 +49,10 @@ if (Platform.OS === 'web') {
51
49
  document.addEventListener('touchmove', disableHover, true);
52
50
  document.addEventListener('mousemove', enableHover, true);
53
51
  }
52
+ // [Windows
53
+ } else if (Platform.OS === 'windows') {
54
+ isEnabled = true;
55
+ // Windows]
54
56
  }
55
57
 
56
58
  export function isHoverEnabled(): boolean {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.64.27",
3
+ "version": "0.64.28",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",