@fluentui-react-native/callout 0.21.18 → 0.21.19
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 +16 -1
- package/CHANGELOG.md +10 -2
- package/macos/Callout.swift +12 -0
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/callout",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 10 Oct 2022 23:25:47 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/callout_v0.21.19",
|
|
7
|
+
"version": "0.21.19",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "email not defined",
|
|
12
|
+
"package": "@fluentui-react-native/callout",
|
|
13
|
+
"commit": "c923ec7cac8757eef74618609d14f3b1aa9f3f01",
|
|
14
|
+
"comment": "Fix callout bug"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 06 Oct 2022 17:24:49 GMT",
|
|
6
21
|
"tag": "@fluentui-react-native/callout_v0.21.18",
|
|
7
22
|
"version": "0.21.18",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/callout
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 10 Oct 2022 23:25:47 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.21.19
|
|
8
|
+
|
|
9
|
+
Mon, 10 Oct 2022 23:25:47 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Fix callout bug (email not defined)
|
|
14
|
+
|
|
7
15
|
## 0.21.18
|
|
8
16
|
|
|
9
|
-
Thu, 06 Oct 2022 17:
|
|
17
|
+
Thu, 06 Oct 2022 17:24:49 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/macos/Callout.swift
CHANGED
|
@@ -43,6 +43,13 @@ class CalloutView: RCTView, CalloutWindowLifeCycleDelegate {
|
|
|
43
43
|
convenience init(bridge: RCTBridge) {
|
|
44
44
|
self.init()
|
|
45
45
|
self.bridge = bridge
|
|
46
|
+
|
|
47
|
+
// Listens for mouse clicks in the main menu bar while callout is shown
|
|
48
|
+
NotificationCenter.default.addObserver(
|
|
49
|
+
self,
|
|
50
|
+
selector: #selector(menuDidBeginTracking),
|
|
51
|
+
name: NSMenu.didBeginTrackingNotification,
|
|
52
|
+
object: nil)
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
override func viewDidMoveToWindow() {
|
|
@@ -330,6 +337,11 @@ class CalloutView: RCTView, CalloutWindowLifeCycleDelegate {
|
|
|
330
337
|
}
|
|
331
338
|
}
|
|
332
339
|
|
|
340
|
+
// The app's main menu bar is active while callout is shown, dismiss.
|
|
341
|
+
@objc private func menuDidBeginTracking() {
|
|
342
|
+
self.dismissCallout()
|
|
343
|
+
}
|
|
344
|
+
|
|
333
345
|
// MARK: Private variables
|
|
334
346
|
|
|
335
347
|
/// The view the Callout is presented from, if anchorRect is nil.
|