@fluentui-react-native/focus-zone 0.10.32 → 0.10.34

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,37 @@
2
2
  "name": "@fluentui-react-native/focus-zone",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 02 Nov 2022 00:58:54 GMT",
5
+ "date": "Mon, 07 Nov 2022 21:41:53 GMT",
6
+ "tag": "@fluentui-react-native/focus-zone_v0.10.34",
7
+ "version": "0.10.34",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "email not defined",
12
+ "package": "@fluentui-react-native/focus-zone",
13
+ "commit": "6f086d9beaa1aea80f475f62d8bdb80f3c855c83",
14
+ "comment": "Fix infinite loop in ContextualMenu"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Fri, 04 Nov 2022 14:36:23 GMT",
21
+ "tag": "@fluentui-react-native/focus-zone_v0.10.33",
22
+ "version": "0.10.33",
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.19.6",
29
+ "commit": "ddd021042b3e70af9dcc976f1d89e9c912defa65"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Wed, 02 Nov 2022 00:59:45 GMT",
6
36
  "tag": "@fluentui-react-native/focus-zone_v0.10.32",
7
37
  "version": "0.10.32",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @fluentui-react-native/focus-zone
2
2
 
3
- This log was last generated on Wed, 02 Nov 2022 00:58:54 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 07 Nov 2022 21:41:53 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.10.34
8
+
9
+ Mon, 07 Nov 2022 21:41:53 GMT
10
+
11
+ ### Patches
12
+
13
+ - Fix infinite loop in ContextualMenu (email not defined)
14
+
15
+ ## 0.10.33
16
+
17
+ Fri, 04 Nov 2022 14:36:23 GMT
18
+
19
+ ### Patches
20
+
21
+ - Bump @fluentui-react-native/interactive-hooks to v0.19.6
22
+
7
23
  ## 0.10.32
8
24
 
9
- Wed, 02 Nov 2022 00:58:54 GMT
25
+ Wed, 02 Nov 2022 00:59:45 GMT
10
26
 
11
27
  ### Patches
12
28
 
@@ -418,6 +418,12 @@ static RCTFocusZone *GetFocusZoneAncestor(NSView *view)
418
418
  nextViewToFocus = [self nextValidKeyView];
419
419
  while([nextViewToFocus isDescendantOf:focusZoneAncestor])
420
420
  {
421
+ // there are no views left in the key view loop
422
+ if ([nextViewToFocus isEqual:focusZoneAncestor])
423
+ {
424
+ nextViewToFocus = nil;
425
+ break;
426
+ }
421
427
  nextViewToFocus = [nextViewToFocus nextValidKeyView];
422
428
  }
423
429
  }
@@ -426,6 +432,12 @@ static RCTFocusZone *GetFocusZoneAncestor(NSView *view)
426
432
  nextViewToFocus = [self previousValidKeyView];
427
433
  while([nextViewToFocus isDescendantOf:focusZoneAncestor])
428
434
  {
435
+ // there are no views left in the key view loop
436
+ if ([nextViewToFocus isEqual:focusZoneAncestor])
437
+ {
438
+ nextViewToFocus = nil;
439
+ break;
440
+ }
429
441
  nextViewToFocus = [nextViewToFocus previousValidKeyView];
430
442
  }
431
443
 
@@ -480,7 +492,8 @@ static RCTFocusZone *GetFocusZoneAncestor(NSView *view)
480
492
  [[self window] makeFirstResponder:viewToFocus];
481
493
  [viewToFocus scrollRectToVisible:[viewToFocus bounds]];
482
494
  }
483
- else
495
+ // Call super only if there are views to focus
496
+ else if (viewToFocus != nil)
484
497
  {
485
498
  [super keyDown:event];
486
499
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/focus-zone",
3
- "version": "0.10.32",
3
+ "version": "0.10.34",
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.4.2",
26
- "@fluentui-react-native/interactive-hooks": ">=0.19.5 <1.0.0",
26
+ "@fluentui-react-native/interactive-hooks": ">=0.19.6 <1.0.0",
27
27
  "@uifabricshared/foundation-composable": ">=0.11.1 <1.0.0",
28
28
  "@uifabricshared/foundation-settings": ">=0.12.1 <1.0.0"
29
29
  },