react-native-macos 0.68.55 → 0.68.57

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: 55,
19
+ patch: 57,
20
20
  prerelease: null,
21
21
  };
@@ -1331,9 +1331,21 @@ class VirtualizedList extends React.PureComponent<Props, State> {
1331
1331
  const preferredScrollerStyleDidChangeHandler =
1332
1332
  this.props.onPreferredScrollerStyleDidChange;
1333
1333
 
1334
+ const isFirstRowSelected = this.state.selectedRowIndex === this.state.first;
1335
+ const isLastRowSelected = this.state.selectedRowIndex === this.state.last;
1336
+
1337
+ // Don't pass in ArrowUp/ArrowDown at the top/bottom of the list so that keyboard event can bubble
1338
+ let _validKeysDown = ['Home', 'End'];
1339
+ if (!isFirstRowSelected) {
1340
+ _validKeysDown.push('ArrowUp');
1341
+ }
1342
+ if (!isLastRowSelected) {
1343
+ _validKeysDown.push('ArrowDown');
1344
+ }
1345
+
1334
1346
  const keyboardNavigationProps = {
1335
1347
  focusable: true,
1336
- validKeysDown: ['ArrowUp', 'ArrowDown', 'Home', 'End'],
1348
+ validKeysDown: _validKeysDown,
1337
1349
  onKeyDown: this._handleKeyDown,
1338
1350
  };
1339
1351
  // ]TODO(macOS GH#774)
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(55),
30
+ RCTVersionPatch: @(57),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -1431,9 +1431,14 @@ setBorderColor() setBorderColor(Top) setBorderColor(Right) setBorderColor(Bottom
1431
1431
  }
1432
1432
  }
1433
1433
 
1434
+ - (BOOL)needsPanelToBecomeKey {
1435
+ // We need to override this so that mouse clicks don't move keyboard focus on focusable views by default.
1436
+ return false;
1437
+ }
1438
+
1434
1439
  - (BOOL)acceptsFirstResponder
1435
1440
  {
1436
- return ([self focusable] && [NSApp isFullKeyboardAccessEnabled]) || [super acceptsFirstResponder];
1441
+ return [self focusable] || [super acceptsFirstResponder];
1437
1442
  }
1438
1443
 
1439
1444
  - (void)updateTrackingAreas
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.55
1
+ VERSION_NAME=0.68.57
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", 55,
24
+ "patch", 57,
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 = 55;
24
+ int32_t Patch = 57;
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.55",
3
+ "version": "0.68.57",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -97,4 +97,4 @@ RUBY VERSION
97
97
  ruby 3.0.4p208
98
98
 
99
99
  BUNDLED WITH
100
- 2.3.23
100
+ 2.3.24
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
- "react-native-macos": "0.68.55"
15
+ "react-native-macos": "0.68.57"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",