@fluentui-react-native/callout 0.25.7 → 0.25.9
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 +64 -1
- package/CHANGELOG.md +21 -2
- package/macos/CalloutManager.swift +4 -0
- package/macos/CalloutView.swift +9 -2
- package/macos/FRNCalloutManager.h +1 -0
- package/macos/FRNCalloutManager.m +1 -1
- package/macos/FlippedVisualEffectView.swift +2 -0
- package/macos/GuardedEventMonitor.swift +1 -1
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,70 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/callout",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 22 Feb 2024 23:22:15 GMT",
|
|
6
|
+
"version": "0.25.9",
|
|
7
|
+
"tag": "@fluentui-react-native/callout_v0.25.9",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "rofang@microsoft.com",
|
|
12
|
+
"package": "@fluentui-react-native/callout",
|
|
13
|
+
"commit": "dbd7aadff1ba8c61fd5d8aedde8b079c650e37fa",
|
|
14
|
+
"comment": "Rework package json version notation"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/callout",
|
|
19
|
+
"comment": "Bump @fluentui-react-native/interactive-hooks to v0.25.8",
|
|
20
|
+
"commit": "not available"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui-react-native/callout",
|
|
25
|
+
"comment": "Bump @fluentui-react-native/tokens to v0.22.6",
|
|
26
|
+
"commit": "not available"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui-react-native/callout",
|
|
31
|
+
"comment": "Bump @uifabricshared/foundation-compose to v1.14.21",
|
|
32
|
+
"commit": "not available"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"date": "Thu, 01 Feb 2024 20:54:31 GMT",
|
|
39
|
+
"version": "0.25.8",
|
|
40
|
+
"tag": "@fluentui-react-native/callout_v0.25.8",
|
|
41
|
+
"comments": {
|
|
42
|
+
"patch": [
|
|
43
|
+
{
|
|
44
|
+
"author": "7664112+FalseLobster@users.noreply.github.com",
|
|
45
|
+
"package": "@fluentui-react-native/callout",
|
|
46
|
+
"commit": "9bc47a95e0c990bc67955cbfa101a4b180a53148",
|
|
47
|
+
"comment": "fix rtl bug in macos callout/menu controls going offscreen"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"date": "Wed, 24 Jan 2024 23:08:27 GMT",
|
|
54
|
+
"version": "0.25.7",
|
|
55
|
+
"tag": "@fluentui-react-native/callout_v0.25.7",
|
|
56
|
+
"comments": {
|
|
57
|
+
"none": [
|
|
58
|
+
{
|
|
59
|
+
"author": "araje@microsoft.com",
|
|
60
|
+
"package": "@fluentui-react-native/callout",
|
|
61
|
+
"commit": "84a30d159490fb1034c18fb1ba7accfcd1d47a9c",
|
|
62
|
+
"comment": "Add explicit module imports"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"date": "Mon, 22 Jan 2024 22:09:17 GMT",
|
|
6
69
|
"version": "0.25.7",
|
|
7
70
|
"tag": "@fluentui-react-native/callout_v0.25.7",
|
|
8
71
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/callout
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 22 Feb 2024 23:22:15 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.25.9
|
|
8
|
+
|
|
9
|
+
Thu, 22 Feb 2024 23:22:15 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Rework package json version notation (rofang@microsoft.com)
|
|
14
|
+
- Bump @fluentui-react-native/interactive-hooks to v0.25.8
|
|
15
|
+
- Bump @fluentui-react-native/tokens to v0.22.6
|
|
16
|
+
- Bump @uifabricshared/foundation-compose to v1.14.21
|
|
17
|
+
|
|
18
|
+
## 0.25.8
|
|
19
|
+
|
|
20
|
+
Thu, 01 Feb 2024 20:54:31 GMT
|
|
21
|
+
|
|
22
|
+
### Patches
|
|
23
|
+
|
|
24
|
+
- fix rtl bug in macos callout/menu controls going offscreen (7664112+FalseLobster@users.noreply.github.com)
|
|
25
|
+
|
|
7
26
|
## 0.25.7
|
|
8
27
|
|
|
9
|
-
Mon, 22 Jan 2024 22:
|
|
28
|
+
Mon, 22 Jan 2024 22:09:17 GMT
|
|
10
29
|
|
|
11
30
|
### Patches
|
|
12
31
|
|
package/macos/CalloutView.swift
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import Foundation
|
|
2
1
|
import AppKit
|
|
2
|
+
import Foundation
|
|
3
|
+
#if USE_REACT_AS_MODULE
|
|
4
|
+
import React
|
|
5
|
+
#endif // USE_REACT_AS_MODULE
|
|
3
6
|
|
|
4
7
|
@objc(FRNCalloutView)
|
|
5
8
|
class CalloutView: RCTView, CalloutWindowLifeCycleDelegate {
|
|
@@ -261,7 +264,7 @@ class CalloutView: RCTView, CalloutWindowLifeCycleDelegate {
|
|
|
261
264
|
origin.y = NSMaxY(anchorScreenRect) - calloutFrame.size.height
|
|
262
265
|
case .maxY:
|
|
263
266
|
// When in RTL mode, align the right edges of the menu and flyout anchor
|
|
264
|
-
if (NSApp.userInterfaceLayoutDirection == .rightToLeft) {
|
|
267
|
+
if (NSApp.userInterfaceLayoutDirection == .rightToLeft || RCTI18nUtil.sharedInstance().isRTL()) {
|
|
265
268
|
origin.x = NSMaxX(anchorScreenRect) - calloutFrame.size.width
|
|
266
269
|
} else {
|
|
267
270
|
origin.x = NSMinX(anchorScreenRect);
|
|
@@ -334,6 +337,10 @@ class CalloutView: RCTView, CalloutWindowLifeCycleDelegate {
|
|
|
334
337
|
if (NSMaxX(calloutScreenRect) > NSMaxX(screenFrame)) {
|
|
335
338
|
calloutScreenRect.origin.x = NSMaxX(screenFrame) - NSWidth(calloutScreenRect)
|
|
336
339
|
}
|
|
340
|
+
// If we go off the left edge in RTL, just slide to the right so we're fully onscreen
|
|
341
|
+
if (NSMinX(calloutScreenRect) < NSMinX(screenFrame)) {
|
|
342
|
+
calloutScreenRect.origin.x = 0;
|
|
343
|
+
}
|
|
337
344
|
@unknown default:
|
|
338
345
|
preconditionFailure("Unknown directional hint")
|
|
339
346
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/callout",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.9",
|
|
4
4
|
"description": "A cross-platform Callout component using the Fluent Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@fluentui-react-native/adapters": "^0.12.0",
|
|
29
29
|
"@fluentui-react-native/component-cache": "^1.6.0",
|
|
30
|
-
"@fluentui-react-native/interactive-hooks": "
|
|
31
|
-
"@fluentui-react-native/tokens": "
|
|
32
|
-
"@uifabricshared/foundation-composable": "
|
|
33
|
-
"@uifabricshared/foundation-compose": "^1.14.
|
|
34
|
-
"@uifabricshared/foundation-settings": "
|
|
30
|
+
"@fluentui-react-native/interactive-hooks": "^0.25.8",
|
|
31
|
+
"@fluentui-react-native/tokens": "^0.22.6",
|
|
32
|
+
"@uifabricshared/foundation-composable": "^0.12.3",
|
|
33
|
+
"@uifabricshared/foundation-compose": "^1.14.21",
|
|
34
|
+
"@uifabricshared/foundation-settings": "^0.14.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@fluentui-react-native/eslint-config-rules": "^0.1.1",
|