react-native-macos 0.72.5 → 0.72.7

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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 72,
15
- patch: 5,
15
+ patch: 7,
16
16
  prerelease: null,
17
17
  };
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(72),
26
- RCTVersionPatch: @(5),
26
+ RCTVersionPatch: @(7),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -31,7 +31,11 @@ class JSCExecutorFactory : public JSExecutorFactory {
31
31
  JSIExecutor::RuntimeInstaller runtimeInstaller_;
32
32
 
33
33
  // [macOS
34
+ #if DEBUG
34
35
  bool enableDebugger_ = true;
36
+ #else
37
+ bool enableDebugger_ = false;
38
+ #endif
35
39
  std::string debuggerName_ = "JSC React Native";
36
40
  // macOS]
37
41
  };
@@ -1491,16 +1491,21 @@ setBorderColor() setBorderColor(Top) setBorderColor(Right) setBorderColor(Bottom
1491
1491
 
1492
1492
  - (void)updateTrackingAreas
1493
1493
  {
1494
- if (_trackingArea) {
1495
- [self removeTrackingArea:_trackingArea];
1496
- }
1494
+ BOOL hasMouseHoverEvent = self.onMouseEnter || self.onMouseLeave;
1495
+ BOOL wouldRecreateIdenticalTrackingArea = hasMouseHoverEvent && _trackingArea && NSEqualRects(self.bounds, [_trackingArea rect]);
1496
+
1497
+ if (!wouldRecreateIdenticalTrackingArea) {
1498
+ if (_trackingArea) {
1499
+ [self removeTrackingArea:_trackingArea];
1500
+ }
1497
1501
 
1498
- if (self.onMouseEnter || self.onMouseLeave) {
1499
- _trackingArea = [[NSTrackingArea alloc] initWithRect:self.bounds
1500
- options:NSTrackingActiveAlways|NSTrackingMouseEnteredAndExited
1501
- owner:self
1502
- userInfo:nil];
1503
- [self addTrackingArea:_trackingArea];
1502
+ if (hasMouseHoverEvent) {
1503
+ _trackingArea = [[NSTrackingArea alloc] initWithRect:self.bounds
1504
+ options:NSTrackingActiveAlways|NSTrackingMouseEnteredAndExited
1505
+ owner:self
1506
+ userInfo:nil];
1507
+ [self addTrackingArea:_trackingArea];
1508
+ }
1504
1509
  }
1505
1510
 
1506
1511
  [super updateTrackingAreas];
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.5
1
+ VERSION_NAME=0.72.7
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 72,
20
- "patch", 5,
20
+ "patch", 7,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 72;
20
- int32_t Patch = 5;
20
+ int32_t Patch = 7;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.72.5",
3
+ "version": "0.72.7",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "react": "18.2.0",
15
15
  "react-native-macos": "1000.0.0",
16
- "react-native": "0.72.5"
16
+ "react-native": "0.72.7"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.20.0",