@fluentui-react-native/focus-zone 0.19.5 → 0.19.6
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 +21 -0
- package/CHANGELOG.md +10 -1
- package/macos/RCTFocusZone.m +9 -1
- package/package.json +2 -2
- package/tsconfig.json +1 -2
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Wed, 29 Jan 2025 23:39:20 GMT",
|
|
6
|
+
"version": "0.19.6",
|
|
7
|
+
"tag": "@fluentui-react-native/focus-zone_v0.19.6",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/focus-zone",
|
|
13
|
+
"commit": "5ca24ac45054439768404d117213a2ae4767235d",
|
|
14
|
+
"comment": "fix tsconfig for jest types"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "nakambo@microsoft.com",
|
|
18
|
+
"package": "@fluentui-react-native/focus-zone",
|
|
19
|
+
"commit": "d9ebc6372dd4add1f995c336436b6cd31395bdb3",
|
|
20
|
+
"comment": "Fix TextInput focus when inside a FocusZone"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
4
25
|
{
|
|
5
26
|
"date": "Thu, 16 Jan 2025 19:12:12 GMT",
|
|
6
27
|
"version": "0.19.4",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/focus-zone
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Wed, 29 Jan 2025 23:39:20 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.19.6
|
|
8
|
+
|
|
9
|
+
Wed, 29 Jan 2025 23:39:20 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- fix tsconfig for jest types (sanajmi@microsoft.com)
|
|
14
|
+
- Fix TextInput focus when inside a FocusZone (nakambo@microsoft.com)
|
|
15
|
+
|
|
7
16
|
## 0.19.2
|
|
8
17
|
|
|
9
18
|
Sat, 27 Jul 2024 06:54:11 GMT
|
package/macos/RCTFocusZone.m
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#import "KeyCodes.h"
|
|
2
|
+
#import <React/RCTBaseTextInputView.h>
|
|
2
3
|
#import "RCTFocusZone.h"
|
|
3
4
|
#import "RCTi18nUtil.h"
|
|
4
5
|
|
|
@@ -61,7 +62,14 @@ static NSView *GetFirstFocusableViewWithin(NSView *parentView)
|
|
|
61
62
|
|
|
62
63
|
for (NSView *view in [parentView subviews]) {
|
|
63
64
|
if ([view acceptsFirstResponder]) {
|
|
64
|
-
|
|
65
|
+
if ([view isKindOfClass:[RCTBaseTextInputView class]]) {
|
|
66
|
+
RCTUIView *backedTextInputView = [(RCTBaseTextInputView *)view backedTextInputView];
|
|
67
|
+
if ([backedTextInputView acceptsFirstResponder]) {
|
|
68
|
+
return backedTextInputView;
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
return view;
|
|
72
|
+
}
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
NSView *match = GetFirstFocusableViewWithin(view);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.6",
|
|
4
4
|
"description": "A cross-platform FocusZone component using the Fluent Design System",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fluentui-react-native/adapters": "0.13.0",
|
|
26
|
-
"@fluentui-react-native/interactive-hooks": "0.27.
|
|
26
|
+
"@fluentui-react-native/interactive-hooks": "0.27.4",
|
|
27
27
|
"@uifabricshared/foundation-composable": "0.13.1",
|
|
28
28
|
"@uifabricshared/foundation-settings": "0.15.1"
|
|
29
29
|
},
|