@fluentui-react-native/callout 0.21.17 → 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 CHANGED
@@ -2,7 +2,43 @@
2
2
  "name": "@fluentui-react-native/callout",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 04 Oct 2022 21:07:00 GMT",
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",
21
+ "tag": "@fluentui-react-native/callout_v0.21.18",
22
+ "version": "0.21.18",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "beachball",
27
+ "package": "@fluentui-react-native/callout",
28
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.18.11",
29
+ "commit": "b7330fc87faaea399ba9f7f40ca691a3cdad8ccf"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui-react-native/callout",
34
+ "comment": "Bump @uifabricshared/foundation-compose to v1.12.9",
35
+ "commit": "b7330fc87faaea399ba9f7f40ca691a3cdad8ccf"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Tue, 04 Oct 2022 21:09:28 GMT",
6
42
  "tag": "@fluentui-react-native/callout_v0.21.17",
7
43
  "version": "0.21.17",
8
44
  "comments": {
@@ -11,13 +47,13 @@
11
47
  "author": "beachball",
12
48
  "package": "@fluentui-react-native/callout",
13
49
  "comment": "Bump @fluentui-react-native/interactive-hooks to v0.18.10",
14
- "commit": "ac6a7ec3c7e35ed94af821c9f82bfe566366fbf8"
50
+ "commit": "32b6348d1077759b38f33ffb00e7ab9db8d2c77c"
15
51
  },
16
52
  {
17
53
  "author": "beachball",
18
54
  "package": "@fluentui-react-native/callout",
19
55
  "comment": "Bump @uifabricshared/foundation-compose to v1.12.8",
20
- "commit": "ac6a7ec3c7e35ed94af821c9f82bfe566366fbf8"
56
+ "commit": "32b6348d1077759b38f33ffb00e7ab9db8d2c77c"
21
57
  }
22
58
  ]
23
59
  }
package/CHANGELOG.md CHANGED
@@ -1,12 +1,29 @@
1
1
  # Change Log - @fluentui-react-native/callout
2
2
 
3
- This log was last generated on Tue, 04 Oct 2022 21:07:00 GMT and should not be manually modified.
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
+
15
+ ## 0.21.18
16
+
17
+ Thu, 06 Oct 2022 17:24:49 GMT
18
+
19
+ ### Patches
20
+
21
+ - Bump @fluentui-react-native/interactive-hooks to v0.18.11
22
+ - Bump @uifabricshared/foundation-compose to v1.12.9
23
+
7
24
  ## 0.21.17
8
25
 
9
- Tue, 04 Oct 2022 21:07:00 GMT
26
+ Tue, 04 Oct 2022 21:09:28 GMT
10
27
 
11
28
  ### Patches
12
29
 
@@ -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.17",
3
+ "version": "0.21.19",
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.10 <1.0.0",
30
+ "@fluentui-react-native/interactive-hooks": ">=0.18.11 <1.0.0",
31
31
  "@fluentui-react-native/tokens": ">=0.17.2 <1.0.0",
32
32
  "@uifabricshared/foundation-composable": ">=0.11.1 <1.0.0",
33
- "@uifabricshared/foundation-compose": "^1.12.8",
33
+ "@uifabricshared/foundation-compose": "^1.12.9",
34
34
  "@uifabricshared/foundation-settings": ">=0.12.1 <1.0.0"
35
35
  },
36
36
  "devDependencies": {