@fluentui-react-native/focus-zone 0.10.33 → 0.10.35
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 +31 -1
- package/CHANGELOG.md +18 -2
- package/macos/RCTFocusZone.m +14 -1
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Tue, 08 Nov 2022 19:19:21 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/focus-zone_v0.10.35",
|
|
7
|
+
"version": "0.10.35",
|
|
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.19.7",
|
|
14
|
+
"commit": "2a423f2b00d2039d1c67fc60b4d81b942e45a9dc"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 07 Nov 2022 21:42:58 GMT",
|
|
21
|
+
"tag": "@fluentui-react-native/focus-zone_v0.10.34",
|
|
22
|
+
"version": "0.10.34",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "email not defined",
|
|
27
|
+
"package": "@fluentui-react-native/focus-zone",
|
|
28
|
+
"commit": "6f086d9beaa1aea80f475f62d8bdb80f3c855c83",
|
|
29
|
+
"comment": "Fix infinite loop in ContextualMenu"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Fri, 04 Nov 2022 14:36:23 GMT",
|
|
6
36
|
"tag": "@fluentui-react-native/focus-zone_v0.10.33",
|
|
7
37
|
"version": "0.10.33",
|
|
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
|
|
3
|
+
This log was last generated on Tue, 08 Nov 2022 19:19:21 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.10.35
|
|
8
|
+
|
|
9
|
+
Tue, 08 Nov 2022 19:19:21 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.19.7
|
|
14
|
+
|
|
15
|
+
## 0.10.34
|
|
16
|
+
|
|
17
|
+
Mon, 07 Nov 2022 21:42:58 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Fix infinite loop in ContextualMenu (email not defined)
|
|
22
|
+
|
|
7
23
|
## 0.10.33
|
|
8
24
|
|
|
9
|
-
Fri, 04 Nov 2022 14:
|
|
25
|
+
Fri, 04 Nov 2022 14:36:23 GMT
|
|
10
26
|
|
|
11
27
|
### Patches
|
|
12
28
|
|
package/macos/RCTFocusZone.m
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "0.10.35",
|
|
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.
|
|
26
|
+
"@fluentui-react-native/interactive-hooks": ">=0.19.7 <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
|
},
|