react-native-macos 0.68.54 → 0.68.56

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: 54,
19
+ patch: 56,
20
20
  prerelease: null,
21
21
  };
@@ -227,7 +227,7 @@ NSString *const RCTTextAttributesTagAttributeName = @"RCTTextAttributesTagAttrib
227
227
  #if !TARGET_OS_OSX // [TODO(macOS GH#774)
228
228
  if (_dynamicTypeRamp != RCTDynamicTypeRampUndefined) {
229
229
  UIFontMetrics *fontMetrics = RCTUIFontMetricsForDynamicTypeRamp(_dynamicTypeRamp);
230
- CGFloat baseSize = RCTUIBaseSizeForDynamicTypeRamp(_dynamicTypeRamp);
230
+ CGFloat baseSize = RCTBaseSizeForDynamicTypeRamp(_dynamicTypeRamp);
231
231
  fontSizeMultiplier = [fontMetrics scaledValueForValue:baseSize] / baseSize;
232
232
  }
233
233
  #endif // ]TODO(macOS GH#774)
@@ -16,7 +16,7 @@ typedef NS_ENUM(NSInteger, RCTDynamicTypeRamp) {
16
16
  RCTDynamicTypeRampCaption2,
17
17
  RCTDynamicTypeRampCaption1,
18
18
  RCTDynamicTypeRampFootnote,
19
- RCTDynamicTypeRampSubhead,
19
+ RCTDynamicTypeRampSubheadline,
20
20
  RCTDynamicTypeRampCallout,
21
21
  RCTDynamicTypeRampBody,
22
22
  RCTDynamicTypeRampHeadline,
@@ -36,5 +36,5 @@ typedef NS_ENUM(NSInteger, RCTDynamicTypeRamp) {
36
36
  /// Generates a `UIFontMetrics` instance representing a particular Dynamic Type ramp.
37
37
  UIFontMetrics * _Nonnull RCTUIFontMetricsForDynamicTypeRamp(RCTDynamicTypeRamp dynamicTypeRamp);
38
38
  /// The "reference" size for a particular font scale ramp, equal to a text element's size under default text size settings.
39
- CGFloat RCTUIBaseSizeForDynamicTypeRamp(RCTDynamicTypeRamp dynamicTypeRamp);
39
+ CGFloat RCTBaseSizeForDynamicTypeRamp(RCTDynamicTypeRamp dynamicTypeRamp);
40
40
  #endif // ]TODO(macOS GH#774)
@@ -15,7 +15,7 @@ RCT_ENUM_CONVERTER(RCTDynamicTypeRamp, (@{
15
15
  @"caption2": @(RCTDynamicTypeRampCaption2),
16
16
  @"caption1": @(RCTDynamicTypeRampCaption1),
17
17
  @"footnote": @(RCTDynamicTypeRampFootnote),
18
- @"subhead": @(RCTDynamicTypeRampSubhead),
18
+ @"subheadline": @(RCTDynamicTypeRampSubheadline),
19
19
  @"callout": @(RCTDynamicTypeRampCallout),
20
20
  @"body": @(RCTDynamicTypeRampBody),
21
21
  @"headline": @(RCTDynamicTypeRampHeadline),
@@ -36,7 +36,7 @@ UIFontMetrics *RCTUIFontMetricsForDynamicTypeRamp(RCTDynamicTypeRamp dynamicType
36
36
  @(RCTDynamicTypeRampCaption2): UIFontTextStyleCaption2,
37
37
  @(RCTDynamicTypeRampCaption1): UIFontTextStyleCaption1,
38
38
  @(RCTDynamicTypeRampFootnote): UIFontTextStyleFootnote,
39
- @(RCTDynamicTypeRampSubhead): UIFontTextStyleSubheadline,
39
+ @(RCTDynamicTypeRampSubheadline): UIFontTextStyleSubheadline,
40
40
  @(RCTDynamicTypeRampCallout): UIFontTextStyleCallout,
41
41
  @(RCTDynamicTypeRampBody): UIFontTextStyleBody,
42
42
  @(RCTDynamicTypeRampHeadline): UIFontTextStyleHeadline,
@@ -51,7 +51,7 @@ UIFontMetrics *RCTUIFontMetricsForDynamicTypeRamp(RCTDynamicTypeRamp dynamicType
51
51
  return [UIFontMetrics metricsForTextStyle:textStyle];
52
52
  }
53
53
 
54
- CGFloat RCTUIBaseSizeForDynamicTypeRamp(RCTDynamicTypeRamp dynamicTypeRamp) {
54
+ CGFloat RCTBaseSizeForDynamicTypeRamp(RCTDynamicTypeRamp dynamicTypeRamp) {
55
55
  static NSDictionary<NSNumber *, NSNumber *> *mapping;
56
56
  static dispatch_once_t onceToken;
57
57
  dispatch_once(&onceToken, ^{
@@ -60,7 +60,7 @@ CGFloat RCTUIBaseSizeForDynamicTypeRamp(RCTDynamicTypeRamp dynamicTypeRamp) {
60
60
  @(RCTDynamicTypeRampCaption2): @11,
61
61
  @(RCTDynamicTypeRampCaption1): @12,
62
62
  @(RCTDynamicTypeRampFootnote): @13,
63
- @(RCTDynamicTypeRampSubhead): @15,
63
+ @(RCTDynamicTypeRampSubheadline): @15,
64
64
  @(RCTDynamicTypeRampCallout): @16,
65
65
  @(RCTDynamicTypeRampBody): @17,
66
66
  @(RCTDynamicTypeRampHeadline): @17,
@@ -193,7 +193,7 @@ export type TextProps = $ReadOnly<{|
193
193
  | 'caption2'
194
194
  | 'caption1'
195
195
  | 'footnote'
196
- | 'subhead'
196
+ | 'subheadline'
197
197
  | 'callout'
198
198
  | 'body'
199
199
  | 'headline'
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(54),
30
+ RCTVersionPatch: @(56),
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.54
1
+ VERSION_NAME=0.68.56
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", 54,
24
+ "patch", 56,
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 = 54;
24
+ int32_t Patch = 56;
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.54",
3
+ "version": "0.68.56",
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.22
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.54"
15
+ "react-native-macos": "0.68.56"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",