@office-iss/react-native-win32 0.68.8 → 0.68.9
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 +16 -1
- package/CHANGELOG.md +13 -5
- package/Libraries/Components/Pressable/Pressable.win32.js +0 -20
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 19 Dec 2022 16:10:02 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.68.9",
|
|
7
|
+
"version": "0.68.9",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "36fd1854a9da654ce92a3b208e81f5413ebb8736",
|
|
14
|
+
"comment": "Remove unnecessary overrides to onFocus and onBlur in Pressable"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 07 Nov 2022 16:10:04 GMT",
|
|
6
21
|
"tag": "@office-iss/react-native-win32_v0.68.8",
|
|
7
22
|
"version": "0.68.8",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
This log was last generated on Mon, 19 Dec 2022 16:10:02 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.68.
|
|
7
|
+
## 0.68.9
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 19 Dec 2022 16:10:02 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Remove duplicate accessibilityLevel prop (krsiler@microsoft.com)
|
|
13
|
+
- Remove unnecessary overrides to onFocus and onBlur in Pressable (sanajmi@microsoft.com)
|
|
15
14
|
|
|
15
|
+
## 0.68.8
|
|
16
|
+
|
|
17
|
+
Mon, 07 Nov 2022 16:10:04 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Add accessibilityLevel to BasePropsWin32 (krsiler@microsoft.com)
|
|
22
|
+
- Remove duplicate accessibilityLevel prop (krsiler@microsoft.com)
|
|
23
|
+
|
|
16
24
|
## 0.68.7
|
|
17
25
|
|
|
18
26
|
Mon, 24 Oct 2022 15:08:15 GMT
|
|
@@ -249,22 +249,6 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
249
249
|
const viewRef = useRef<React.ElementRef<typeof View> | null>(null);
|
|
250
250
|
useImperativeHandle(forwardedRef, () => viewRef.current);
|
|
251
251
|
|
|
252
|
-
// [Windows
|
|
253
|
-
const _onBlur = (event: BlurEvent) => {
|
|
254
|
-
TextInputState.blurInput(viewRef.current);
|
|
255
|
-
if (props.onBlur) {
|
|
256
|
-
props.onBlur(event);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
const _onFocus = (event: FocusEvent) => {
|
|
261
|
-
TextInputState.focusInput(viewRef.current);
|
|
262
|
-
if (props.onFocus) {
|
|
263
|
-
props.onFocus(event);
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
// Windows]
|
|
267
|
-
|
|
268
252
|
const android_rippleConfig = useAndroidRippleForView(android_ripple, viewRef);
|
|
269
253
|
|
|
270
254
|
const [pressed, setPressed] = usePressState(testOnly_pressed === true);
|
|
@@ -358,10 +342,6 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
358
342
|
<View
|
|
359
343
|
{...restPropsWithDefaults}
|
|
360
344
|
{...eventHandlers}
|
|
361
|
-
// [Windows
|
|
362
|
-
onBlur={_onBlur}
|
|
363
|
-
onFocus={_onFocus}
|
|
364
|
-
// Windows]
|
|
365
345
|
ref={viewRef}
|
|
366
346
|
style={typeof style === 'function' ? style({pressed}) : style}>
|
|
367
347
|
{typeof children === 'function' ? children({pressed}) : children}
|