@fluentui-react-native/callout 0.21.18 → 0.21.20

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,49 @@
2
2
  "name": "@fluentui-react-native/callout",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 06 Oct 2022 17:22:51 GMT",
5
+ "date": "Tue, 11 Oct 2022 22:39:43 GMT",
6
+ "tag": "@fluentui-react-native/callout_v0.21.20",
7
+ "version": "0.21.20",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui-react-native/callout",
13
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.18.12",
14
+ "commit": "3547a335f47efb90f52c10443dc85f755046a324"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/callout",
19
+ "comment": "Bump @fluentui-react-native/tokens to v0.17.3",
20
+ "commit": "3547a335f47efb90f52c10443dc85f755046a324"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/callout",
25
+ "comment": "Bump @uifabricshared/foundation-compose to v1.12.10",
26
+ "commit": "3547a335f47efb90f52c10443dc85f755046a324"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Mon, 10 Oct 2022 23:26:12 GMT",
33
+ "tag": "@fluentui-react-native/callout_v0.21.19",
34
+ "version": "0.21.19",
35
+ "comments": {
36
+ "patch": [
37
+ {
38
+ "author": "email not defined",
39
+ "package": "@fluentui-react-native/callout",
40
+ "commit": "c923ec7cac8757eef74618609d14f3b1aa9f3f01",
41
+ "comment": "Fix callout bug"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "date": "Thu, 06 Oct 2022 17:24:49 GMT",
6
48
  "tag": "@fluentui-react-native/callout_v0.21.18",
7
49
  "version": "0.21.18",
8
50
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui-react-native/callout
2
2
 
3
- This log was last generated on Thu, 06 Oct 2022 17:22:51 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 11 Oct 2022 22:39:43 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.21.20
8
+
9
+ Tue, 11 Oct 2022 22:39:43 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/interactive-hooks to v0.18.12
14
+ - Bump @fluentui-react-native/tokens to v0.17.3
15
+ - Bump @uifabricshared/foundation-compose to v1.12.10
16
+
17
+ ## 0.21.19
18
+
19
+ Mon, 10 Oct 2022 23:26:12 GMT
20
+
21
+ ### Patches
22
+
23
+ - Fix callout bug (email not defined)
24
+
7
25
  ## 0.21.18
8
26
 
9
- Thu, 06 Oct 2022 17:22:51 GMT
27
+ Thu, 06 Oct 2022 17:24:49 GMT
10
28
 
11
29
  ### Patches
12
30
 
@@ -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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/callout",
3
- "version": "0.21.18",
3
+ "version": "0.21.20",
4
4
  "description": "A cross-platform Callout component using the Fluent Design System",
5
5
  "license": "MIT",
6
6
  "author": "",
@@ -27,10 +27,10 @@
27
27
  "dependencies": {
28
28
  "@fluentui-react-native/adapters": "^0.9.2",
29
29
  "@fluentui-react-native/component-cache": "^1.4.2",
30
- "@fluentui-react-native/interactive-hooks": ">=0.18.11 <1.0.0",
31
- "@fluentui-react-native/tokens": ">=0.17.2 <1.0.0",
30
+ "@fluentui-react-native/interactive-hooks": ">=0.18.12 <1.0.0",
31
+ "@fluentui-react-native/tokens": ">=0.17.3 <1.0.0",
32
32
  "@uifabricshared/foundation-composable": ">=0.11.1 <1.0.0",
33
- "@uifabricshared/foundation-compose": "^1.12.9",
33
+ "@uifabricshared/foundation-compose": "^1.12.10",
34
34
  "@uifabricshared/foundation-settings": ">=0.12.1 <1.0.0"
35
35
  },
36
36
  "devDependencies": {