@fluentui-react-native/focus-zone 0.9.17 → 0.9.20

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,52 @@
2
2
  "name": "@fluentui-react-native/focus-zone",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 12 Apr 2022 00:34:43 GMT",
5
+ "date": "Mon, 18 Apr 2022 17:50:14 GMT",
6
+ "tag": "@fluentui-react-native/focus-zone_v0.9.20",
7
+ "version": "0.9.20",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui-react-native/focus-zone",
13
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.1",
14
+ "commit": "924f19a6cda14eabbadcf4ece5e9f7e92e5c6986"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 13 Apr 2022 23:44:28 GMT",
21
+ "tag": "@fluentui-react-native/focus-zone_v0.9.19",
22
+ "version": "0.9.19",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "beachball",
27
+ "package": "@fluentui-react-native/focus-zone",
28
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.15.0",
29
+ "commit": "129f628a9676a93f10466cea6efdfff1243e86f0"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Tue, 12 Apr 2022 21:53:04 GMT",
36
+ "tag": "@fluentui-react-native/focus-zone_v0.9.18",
37
+ "version": "0.9.18",
38
+ "comments": {
39
+ "patch": [
40
+ {
41
+ "author": "sanajmi@microsoft.com",
42
+ "package": "@fluentui-react-native/focus-zone",
43
+ "commit": "86b38c2e20e29fb4248bfd64e534da45deb35dfa",
44
+ "comment": "Scroll scrollView when Focus moves out of viewport"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Tue, 12 Apr 2022 00:35:08 GMT",
6
51
  "tag": "@fluentui-react-native/focus-zone_v0.9.17",
7
52
  "version": "0.9.17",
8
53
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - @fluentui-react-native/focus-zone
2
2
 
3
- This log was last generated on Tue, 12 Apr 2022 00:34:43 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 18 Apr 2022 17:50:14 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.9.20
8
+
9
+ Mon, 18 Apr 2022 17:50:14 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/interactive-hooks to v0.15.1
14
+
15
+ ## 0.9.19
16
+
17
+ Wed, 13 Apr 2022 23:44:28 GMT
18
+
19
+ ### Patches
20
+
21
+ - Bump @fluentui-react-native/interactive-hooks to v0.15.0
22
+
23
+ ## 0.9.18
24
+
25
+ Tue, 12 Apr 2022 21:53:04 GMT
26
+
27
+ ### Patches
28
+
29
+ - Scroll scrollView when Focus moves out of viewport (sanajmi@microsoft.com)
30
+
7
31
  ## 0.9.17
8
32
 
9
- Tue, 12 Apr 2022 00:34:43 GMT
33
+ Tue, 12 Apr 2022 00:35:08 GMT
10
34
 
11
35
  ### Patches
12
36
 
@@ -168,18 +168,19 @@ static RCTFocusZone *GetFocusZoneAncestor(NSView *view)
168
168
  /// Bypass FocusZone if it's empty or has no focusable elements
169
169
  static BOOL ShouldSkipFocusZone(NSView *view)
170
170
  {
171
- if([view isKindOfClass:[RCTFocusZone class]])
172
- {
173
- NSView *keyView = GetFirstKeyViewWithin(view);
174
- // FocusZone is empty or has no focusable elements
175
- if (keyView == nil)
176
- {
177
- return YES;
178
- }
179
- }
171
+ if([view isKindOfClass:[RCTFocusZone class]])
172
+ {
173
+ NSView *keyView = GetFirstKeyViewWithin(view);
174
+ // FocusZone is empty or has no focusable elements
175
+ if (keyView == nil)
176
+ {
177
+ return YES;
178
+ }
179
+ }
180
180
 
181
- return NO;
181
+ return NO;
182
182
  }
183
+
183
184
  /// Accept firstResponder on FocusZone itself in order to reassign it within the FocusZone.
184
185
  - (BOOL)acceptsFirstResponder
185
186
  {
@@ -434,6 +435,7 @@ static BOOL ShouldSkipFocusZone(NSView *view)
434
435
  if (!passthrough && viewToFocus != nil)
435
436
  {
436
437
  [[self window] makeFirstResponder:viewToFocus];
438
+ [viewToFocus scrollRectToVisible:[viewToFocus bounds]];
437
439
  }
438
440
  else
439
441
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/focus-zone",
3
- "version": "0.9.17",
3
+ "version": "0.9.20",
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/component-cache": "^1.3.2",
26
- "@fluentui-react-native/interactive-hooks": ">=0.14.8 <1.0.0",
26
+ "@fluentui-react-native/interactive-hooks": ">=0.15.1 <1.0.0",
27
27
  "@uifabricshared/foundation-composable": ">=0.10.3 <1.0.0",
28
28
  "@uifabricshared/foundation-settings": ">=0.11.3 <1.0.0"
29
29
  },