react-native-macos 0.66.69 → 0.66.70

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: 66,
15
- patch: 69,
15
+ patch: 70,
16
16
  prerelease: null,
17
17
  };
@@ -652,6 +652,7 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
652
652
  removeClippedSubviews={removeClippedSubviewsOrDefault(
653
653
  _removeClippedSubviews,
654
654
  )}
655
+ accessibilityRole="table" // TODO(macOS GH#774): Inherit NSAccessibilityTable protocols
655
656
  {...this._renderer()}
656
657
  />
657
658
  );
@@ -1444,6 +1444,7 @@ RCT_ENUM_CONVERTER(
1444
1444
  @"list": NSAccessibilityListRole,
1445
1445
  @"popupbutton": NSAccessibilityPopUpButtonRole,
1446
1446
  @"menubutton": NSAccessibilityMenuButtonRole,
1447
+ @"table": NSAccessibilityTableRole,
1447
1448
  };
1448
1449
  });
1449
1450
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(66),
26
- RCTVersionPatch: @(69),
26
+ RCTVersionPatch: @(70),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -51,6 +51,7 @@ RCT_MULTI_ENUM_CONVERTER(
51
51
  // a set of RN accessibilityTraits are macOS specific accessiblity roles and map to nothing on iOS:
52
52
  @"disclosure" : @(UIAccessibilityTraitNone),
53
53
  @"group" : @(UIAccessibilityTraitNone),
54
+ @"table": @(UIAccessibilityTraitNone),
54
55
  // ]TODO(macOS GH#774)
55
56
  @"alert" : @(UIAccessibilityTraitNone),
56
57
  @"checkbox" : @(UIAccessibilityTraitNone),
@@ -54,6 +54,18 @@
54
54
  horizontalScrollerHeight:verticalScrollerWidth];
55
55
  [[[scrollView bridge] uiManager] setLocalData:localData forView:self];
56
56
  }
57
+
58
+ if ([platformScrollView accessibilityRole] == NSAccessibilityTableRole) {
59
+ NSMutableArray *subViews = [[NSMutableArray alloc] initWithCapacity:[[self subviews] count]];
60
+ for (NSView *view in [self subviews]) {
61
+ if ([view isKindOfClass:[RCTView class]]) {
62
+ [subViews addObject:view];
63
+ }
64
+ }
65
+
66
+ [platformScrollView setAccessibilityRows:subViews];
67
+ }
68
+
57
69
  #endif // ]TODO(macOS GH#774)
58
70
  }
59
71
 
@@ -485,6 +485,11 @@
485
485
  {
486
486
  [_scrollView setAccessibilityLabel:accessibilityLabel];
487
487
  }
488
+
489
+ - (void)setAccessibilityRole:(NSAccessibilityRole)accessibilityRole
490
+ {
491
+ [_scrollView setAccessibilityRole:accessibilityRole];
492
+ }
488
493
  #endif // ]TODO(macOS GH#774)
489
494
 
490
495
  RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.66.69
1
+ VERSION_NAME=0.66.70
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -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", 66,
20
- "patch", 69,
20
+ "patch", 70,
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 = 66;
20
- int32_t Patch = 69;
20
+ int32_t Patch = 70;
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.66.69",
3
+ "version": "0.66.70",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.66.69"
14
+ "react-native": "0.66.70"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",