@fluentui-react-native/focus-zone 0.11.2 → 0.11.4
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 +4 -3
- 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": "Fri, 11 Nov 2022 18:04:20 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/focus-zone_v0.11.4",
|
|
7
|
+
"version": "0.11.4",
|
|
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.20.2",
|
|
14
|
+
"commit": "b4bc2de7906d898e7a08e4fae106ae66023a49c0"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Fri, 11 Nov 2022 01:02:57 GMT",
|
|
21
|
+
"tag": "@fluentui-react-native/focus-zone_v0.11.3",
|
|
22
|
+
"version": "0.11.3",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "sanajmi@microsoft.com",
|
|
27
|
+
"package": "@fluentui-react-native/focus-zone",
|
|
28
|
+
"commit": "634f6d3d043439166ba9fcd904e831ef85c73df0",
|
|
29
|
+
"comment": "FocusZone (macOS): Ensure we passthrough unhandled keyboard events"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Thu, 10 Nov 2022 02:05:55 GMT",
|
|
6
36
|
"tag": "@fluentui-react-native/focus-zone_v0.11.2",
|
|
7
37
|
"version": "0.11.2",
|
|
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 Fri, 11 Nov 2022 18:04:20 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.11.4
|
|
8
|
+
|
|
9
|
+
Fri, 11 Nov 2022 18:04:20 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.20.2
|
|
14
|
+
|
|
15
|
+
## 0.11.3
|
|
16
|
+
|
|
17
|
+
Fri, 11 Nov 2022 01:02:57 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- FocusZone (macOS): Ensure we passthrough unhandled keyboard events (sanajmi@microsoft.com)
|
|
22
|
+
|
|
7
23
|
## 0.11.2
|
|
8
24
|
|
|
9
|
-
Thu, 10 Nov 2022 02:05:
|
|
25
|
+
Thu, 10 Nov 2022 02:05:55 GMT
|
|
10
26
|
|
|
11
27
|
### Patches
|
|
12
28
|
|
package/macos/RCTFocusZone.m
CHANGED
|
@@ -465,14 +465,15 @@ static BOOL ShouldSkipFocusZone(NSView *view)
|
|
|
465
465
|
viewToFocus = [self nextViewToFocusWithFallback:action];
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
if (
|
|
468
|
+
if (viewToFocus != nil)
|
|
469
469
|
{
|
|
470
470
|
[[self window] makeFirstResponder:viewToFocus];
|
|
471
471
|
[viewToFocus scrollRectToVisible:[viewToFocus bounds]];
|
|
472
472
|
}
|
|
473
|
-
|
|
474
|
-
else if (viewToFocus != nil)
|
|
473
|
+
else if (passthrough)
|
|
475
474
|
{
|
|
475
|
+
// Only call super if we explicitly want to passthrough the event
|
|
476
|
+
// I.E: FocusZone don't handle this specific key
|
|
476
477
|
[super keyDown:event];
|
|
477
478
|
}
|
|
478
479
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/focus-zone",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
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.20.
|
|
26
|
+
"@fluentui-react-native/interactive-hooks": ">=0.20.2 <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
|
},
|