react-native-macos 0.68.58 → 0.68.60

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.
@@ -16,6 +16,6 @@
16
16
  exports.version = {
17
17
  major: 0,
18
18
  minor: 68,
19
- patch: 58,
19
+ patch: 60,
20
20
  prerelease: null,
21
21
  };
@@ -224,8 +224,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
224
224
  #else // [TODO(macOS GH#774)
225
225
  NSEvent *nativeTouch = _nativeTouches[touchIndex];
226
226
  CGPoint location = nativeTouch.locationInWindow;
227
- CGPoint rootViewLocation = CGPointMake(location.x, CGRectGetHeight(self.view.window.frame) - location.y);
228
- CGPoint touchViewLocation = rootViewLocation;
227
+ RCTAssert(_cachedRootView, @"We were unable to find a root view for the touch");
228
+ CGPoint rootViewLocation = [_cachedRootView.window.contentView convertPoint:location toView:_cachedRootView];
229
+ NSView *touchView = _touchViews[touchIndex];
230
+ CGPoint touchViewLocation = [touchView convertPoint:location fromView:nil];
229
231
  #endif // ]TODO(macOS GH#774)
230
232
 
231
233
  NSMutableDictionary *reactTouch = _reactTouches[touchIndex];
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(58),
30
+ RCTVersionPatch: @(60),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.58
1
+ VERSION_NAME=0.68.60
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -21,6 +21,6 @@ public class ReactNativeVersion {
21
21
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
22
22
  "major", 0,
23
23
  "minor", 68,
24
- "patch", 58,
24
+ "patch", 60,
25
25
  "prerelease", null);
26
26
  }
@@ -21,7 +21,7 @@ namespace facebook::react {
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 68;
24
- int32_t Patch = 58;
24
+ int32_t Patch = 60;
25
25
  std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.68.58",
3
+ "version": "0.68.60",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -95,6 +95,7 @@
95
95
  "@react-native-community/cli": "^7.0.3",
96
96
  "@react-native-community/cli-platform-android": "^7.0.1",
97
97
  "@react-native-community/cli-platform-ios": "^7.0.1",
98
+ "@react-native-community/cli-tools": "^7.0.1",
98
99
  "@react-native/assets": "1.0.0",
99
100
  "@react-native/normalize-color": "2.0.0",
100
101
  "@react-native/polyfills": "2.0.0",
@@ -177,12 +178,14 @@
177
178
  "resolutions": {
178
179
  "async": "^3.2.2",
179
180
  "es5-ext": "0.10.53",
181
+ "micromatch": "^4.0.0",
180
182
  "readable-stream": "^4.0.0",
181
183
  "shell-quote": "^1.7.3"
182
184
  },
183
185
  "_justification": {
184
186
  "async": "Versions of async prior to 3.2.2 are vulnerable to prototype pollution",
185
187
  "es5-ext": "Packages after 0.10.54 and at the moment up until 0.10.59 contain a protest message. A policy prevents us from using packages with protestware, therefore downgrading to the latest release without the message.",
188
+ "micromatch": "Version 3.x.x depends on decode-uri-component 0.2.0, which has a DoS vulnerability",
186
189
  "readable-stream": "Eliminates dependency on outdated string_decoder component",
187
190
  "shell-quote": "Versions prior to 1.7.3 have an RCE vulnerability. Should be removable once we upgrade CLI tools to ^8.0.0 with RN 0.69."
188
191
  },
@@ -65,8 +65,8 @@ GEM
65
65
  httpclient (2.8.3)
66
66
  i18n (1.12.0)
67
67
  concurrent-ruby (~> 1.0)
68
- json (2.6.2)
69
- minitest (5.16.3)
68
+ json (2.6.3)
69
+ minitest (5.17.0)
70
70
  molinillo (0.8.0)
71
71
  nanaimo (0.3.0)
72
72
  nap (1.1.0)
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
- "react-native-macos": "0.68.58"
15
+ "react-native-macos": "0.68.60"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",