react-native-macos 0.68.25 → 0.68.28

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: 25,
19
+ patch: 28,
20
20
  prerelease: null,
21
21
  };
@@ -664,6 +664,7 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
664
664
  removeClippedSubviews={removeClippedSubviewsOrDefault(
665
665
  _removeClippedSubviews,
666
666
  )}
667
+ accessibilityRole="table" // TODO(macOS GH#774): Inherit NSAccessibilityTable protocols
667
668
  {...this._renderer()}
668
669
  />
669
670
  );
@@ -1461,6 +1461,7 @@ RCT_ENUM_CONVERTER(
1461
1461
  @"list": NSAccessibilityListRole,
1462
1462
  @"popupbutton": NSAccessibilityPopUpButtonRole,
1463
1463
  @"menubutton": NSAccessibilityMenuButtonRole,
1464
+ @"table": NSAccessibilityTableRole,
1464
1465
  };
1465
1466
  });
1466
1467
 
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(25),
30
+ RCTVersionPatch: @(28),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -716,6 +716,22 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
716
716
  #endif // TODO(macOS GH#774)
717
717
 
718
718
  #if TARGET_OS_OSX // [TODO(macOS GH#774)
719
+ // Workaround AppKit issue with directly manipulating the view layer's shadow.
720
+ - (NSShadow*)shadow
721
+ {
722
+ CALayer *layer = self.layer;
723
+ NSShadow *shadow = nil;
724
+
725
+ if (layer.shadowColor != nil && layer.shadowOpacity > 0) {
726
+ shadow = [NSShadow new];
727
+
728
+ shadow.shadowColor = [[NSColor colorWithCGColor:layer.shadowColor] colorWithAlphaComponent:layer.shadowOpacity];
729
+ shadow.shadowOffset = layer.shadowOffset;
730
+ shadow.shadowBlurRadius = layer.shadowRadius;
731
+ }
732
+ return shadow;
733
+ }
734
+
719
735
  - (void)viewDidMoveToWindow
720
736
  {
721
737
  // Subscribe to view bounds changed notification so that the view can be notified when a
@@ -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
 
@@ -549,6 +549,11 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
549
549
  {
550
550
  [_scrollView setAccessibilityLabel:accessibilityLabel];
551
551
  }
552
+
553
+ - (void)setAccessibilityRole:(NSAccessibilityRole)accessibilityRole
554
+ {
555
+ [_scrollView setAccessibilityRole:accessibilityRole];
556
+ }
552
557
  #endif // ]TODO(macOS GH#774)
553
558
 
554
559
  RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.25
1
+ VERSION_NAME=0.68.28
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", 25,
24
+ "patch", 28,
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 = 25;
24
+ int32_t Patch = 28;
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.25",
3
+ "version": "0.68.28",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -9,8 +9,8 @@ GEM
9
9
  minitest (>= 5.1)
10
10
  tzinfo (~> 2.0)
11
11
  zeitwerk (~> 2.3)
12
- addressable (2.8.0)
13
- public_suffix (>= 2.0.2, < 5.0)
12
+ addressable (2.8.1)
13
+ public_suffix (>= 2.0.2, < 6.0)
14
14
  algoliasearch (1.27.5)
15
15
  httpclient (~> 2.8, >= 2.8.3)
16
16
  json (>= 1.5.1)
@@ -66,7 +66,7 @@ GEM
66
66
  i18n (1.12.0)
67
67
  concurrent-ruby (~> 1.0)
68
68
  json (2.6.2)
69
- minitest (5.16.2)
69
+ minitest (5.16.3)
70
70
  molinillo (0.8.0)
71
71
  nanaimo (0.3.0)
72
72
  nap (1.1.0)
@@ -97,4 +97,4 @@ RUBY VERSION
97
97
  ruby 3.0.4p208
98
98
 
99
99
  BUNDLED WITH
100
- 2.3.19
100
+ 2.3.20
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
- "react-native-macos": "0.68.25"
15
+ "react-native-macos": "0.68.28"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",