react-native-macos 0.68.62 → 0.68.64

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: 62,
19
+ patch: 64,
20
20
  prerelease: null,
21
21
  };
@@ -130,6 +130,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
130
130
  // The assumption here is that a RCTUIView/RCTSurfaceView will always have a superview.
131
131
  CGPoint touchLocation = [self.view.superview convertPoint:touch.locationInWindow fromView:nil];
132
132
  NSView *targetView = [self.view hitTest:touchLocation];
133
+ // Don't record clicks on scrollbars.
134
+ if ([targetView isKindOfClass:[NSScroller class]]) {
135
+ continue;
136
+ }
133
137
  // Pair the mouse down events with mouse up events so our _nativeTouches cache doesn't get stale
134
138
  if ([targetView isKindOfClass:[NSControl class]]) {
135
139
  _shouldSendMouseUpOnSystemBehalf = [(NSControl*)targetView isEnabled];
@@ -400,6 +404,11 @@ static BOOL RCTAnyTouchesChanged(NSSet *touches) // [TODO(macOS GH#774)
400
404
  // "end"/"cancel" needs to remove the touch *after* extracting the event.
401
405
  [self _recordNewTouches:touches];
402
406
 
407
+ // [TODO(macOS GH#774) - Filter out touches that were ignored.
408
+ touches = [touches objectsPassingTest:^(id touch, BOOL *stop) {
409
+ return [_nativeTouches containsObject:touch];
410
+ }]; // ]TODO(macOS GH#774)
411
+
403
412
  [self _updateAndDispatchTouches:touches eventName:@"touchStart"];
404
413
 
405
414
  if (self.state == UIGestureRecognizerStatePossible) {
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(62),
30
+ RCTVersionPatch: @(64),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -448,7 +448,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
448
448
  for (NSString *state in [self accessibilityState]) {
449
449
  id val = [self accessibilityState][state];
450
450
  if (val != nil) {
451
- if ([state isEqualToString:@"checked"]) {
451
+ if ([state isEqualToString:@"checked"] || [state isEqualToString:@"selected"]) {
452
452
  if ([val isKindOfClass:[NSNumber class]]) {
453
453
  accessibilityValue = @([val boolValue]);
454
454
  } else if ([val isKindOfClass:[NSString class]] && [val isEqualToString:@"mixed"]) {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.62
1
+ VERSION_NAME=0.68.64
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", 62,
24
+ "patch", 64,
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 = 62;
24
+ int32_t Patch = 64;
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.62",
3
+ "version": "0.68.64",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -1,9 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- CFPropertyList (3.0.5)
4
+ CFPropertyList (3.0.6)
5
5
  rexml
6
- activesupport (6.1.7.1)
6
+ activesupport (6.1.7.2)
7
7
  concurrent-ruby (~> 1.0, >= 1.0.2)
8
8
  i18n (>= 1.6, < 2)
9
9
  minitest (>= 5.1)
@@ -54,7 +54,7 @@ GEM
54
54
  netrc (~> 0.11)
55
55
  cocoapods-try (1.2.0)
56
56
  colored2 (3.1.2)
57
- concurrent-ruby (1.1.10)
57
+ concurrent-ruby (1.2.0)
58
58
  escape (0.0.4)
59
59
  ethon (0.16.0)
60
60
  ffi (>= 1.15.0)
@@ -76,7 +76,7 @@ GEM
76
76
  ruby-macho (2.5.1)
77
77
  typhoeus (1.4.0)
78
78
  ethon (>= 0.9.0)
79
- tzinfo (2.0.5)
79
+ tzinfo (2.0.6)
80
80
  concurrent-ruby (~> 1.0)
81
81
  xcodeproj (1.22.0)
82
82
  CFPropertyList (>= 2.3.3, < 4.0)
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
- "react-native-macos": "0.68.62"
15
+ "react-native-macos": "0.68.64"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",