react-native-macos 0.0.0-3a2426fff → 0.0.0-3b6429a3b

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.
Files changed (105) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +7 -0
  3. package/Libraries/Text/RCTTextAttributes.h +9 -3
  4. package/Libraries/Text/RCTTextAttributes.m +17 -0
  5. package/Libraries/Text/Text/RCTTextView.m +0 -4
  6. package/React/Base/RCTUIKit.h +11 -0
  7. package/React/Base/RCTVersion.m +1 -1
  8. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
  9. package/React/CoreModules/RCTLogBox.mm +26 -9
  10. package/React/CoreModules/RCTLogBoxView.h +5 -0
  11. package/React/CoreModules/RCTLogBoxView.mm +36 -0
  12. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
  13. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
  14. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +8 -8
  15. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
  16. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
  17. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +1 -1
  18. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +6 -6
  19. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
  20. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
  21. package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +1 -1
  22. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
  23. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +8 -4
  24. package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
  25. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
  26. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +3 -3
  27. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +4 -4
  28. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
  29. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +4 -4
  30. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +22 -22
  31. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
  32. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +5 -5
  33. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
  34. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +1 -1
  35. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +1 -1
  36. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +2 -2
  37. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +2 -2
  38. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
  39. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +3 -0
  40. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
  41. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +3 -3
  42. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +3 -3
  43. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +2 -2
  44. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
  45. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +2 -2
  46. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
  47. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +2 -2
  48. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
  49. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +18 -18
  50. package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
  51. package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
  52. package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
  53. package/React/Fabric/Mounting/RCTComponentViewProtocol.h +3 -3
  54. package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
  55. package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
  56. package/React/Fabric/Mounting/RCTMountingManager.h +3 -3
  57. package/React/Fabric/Mounting/RCTMountingManager.mm +10 -9
  58. package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
  59. package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +1 -1
  60. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +5 -5
  61. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +5 -5
  62. package/React/Fabric/RCTConversions.h +6 -6
  63. package/React/Fabric/RCTImageResponseDelegate.h +1 -1
  64. package/React/Fabric/RCTLocalizationProvider.h +1 -1
  65. package/React/Fabric/RCTScheduler.h +1 -1
  66. package/React/Fabric/RCTSurfacePresenter.h +8 -2
  67. package/React/Fabric/RCTSurfacePresenter.mm +13 -5
  68. package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
  69. package/React/Fabric/RCTSurfaceRegistry.h +1 -1
  70. package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
  71. package/React/Fabric/RCTSurfaceTouchHandler.mm +8 -8
  72. package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
  73. package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
  74. package/React/Modules/RCTSurfacePresenterStub.h +4 -0
  75. package/React/Views/RCTMaskedView.h +1 -1
  76. package/React/Views/RCTModalHostView.h +2 -2
  77. package/React/Views/RCTModalHostViewController.h +1 -1
  78. package/React/Views/RCTModalManager.h +1 -1
  79. package/React/Views/RCTWeakViewHolder.h +1 -1
  80. package/React/Views/RCTWrapperViewController.h +2 -2
  81. package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
  82. package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
  83. package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
  84. package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
  85. package/React/Views/ScrollView/RCTScrollableProtocol.h +1 -1
  86. package/ReactAndroid/gradle.properties +1 -1
  87. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  88. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  89. package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +3 -3
  90. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
  91. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +3 -3
  92. package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
  93. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
  94. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
  95. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
  96. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
  97. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
  98. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +7 -7
  99. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
  100. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
  101. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
  102. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
  103. package/package.json +4 -1
  104. package/template/Gemfile.lock +1 -1
  105. package/template/package.json +1 -1
@@ -5,12 +5,12 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  @class RCTWrapperViewController;
11
11
 
12
12
  @interface RCTWrapperViewController : UIViewController
13
13
 
14
- - (instancetype)initWithContentView:(UIView *)contentView NS_DESIGNATED_INITIALIZER;
14
+ - (instancetype)initWithContentView:(RCTUIView *)contentView NS_DESIGNATED_INITIALIZER; // TODO(macOS GH#774)
15
15
 
16
16
  @end
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTComponent.h>
11
11
  #import <React/RCTScrollableProtocol.h>
@@ -14,6 +14,6 @@
14
14
 
15
15
  @property (nonatomic, copy) NSString *title;
16
16
  @property (nonatomic, copy) RCTDirectEventBlock onRefresh;
17
- @property (nonatomic, weak) UIScrollView *scrollView;
17
+ @property (nonatomic, weak) RCTUIScrollView *scrollView; // TODO(macOS GH#774)
18
18
 
19
19
  @end
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  #import <React/RCTComponent.h>
9
- #import <UIKit/UIKit.h>
9
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
10
10
 
11
11
  /**
12
12
  * Protocol used to dispatch commands in `RCTRefreshControlManager.h`.
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTView.h>
11
11
 
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  NS_ASSUME_NONNULL_BEGIN
11
11
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  #if !TARGET_OS_OSX // TODO(macOS GH#774)
44
44
  @optional
45
- @property (nonatomic, weak) UIScrollView *scrollView;
45
+ @property (nonatomic, weak) RCTUIScrollView *scrollView;
46
46
  #endif // TODO(macOS GH#774)
47
47
 
48
48
  @end
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.0.0-3a2426fff
1
+ VERSION_NAME=0.0.0-3b6429a3b
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -22,5 +22,5 @@ public class ReactNativeVersion {
22
22
  "major", 0,
23
23
  "minor", 0,
24
24
  "patch", 0,
25
- "prerelease", "3a2426fff");
25
+ "prerelease", "3b6429a3b");
26
26
  }
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 0;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "3a2426fff";
25
+ std::string_view Prerelease = "3b6429a3b";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
@@ -2107,9 +2107,9 @@ decimal.js@^10.2.1:
2107
2107
  integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==
2108
2108
 
2109
2109
  decode-uri-component@^0.2.0:
2110
- version "0.2.0"
2111
- resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
2112
- integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
2110
+ version "0.2.2"
2111
+ resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
2112
+ integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==
2113
2113
 
2114
2114
  deep-is@~0.1.3:
2115
2115
  version "0.1.4"
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  #import <Foundation/Foundation.h>
9
- #import <UIKit/UIKit.h>
9
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
10
10
  #include <folly/dynamic.h>
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
@@ -20,13 +20,13 @@ typedef void (^InterceptorBlock)(std::string eventName, folly::dynamic event);
20
20
 
21
21
  - (instancetype)initWithComponentData:(RCTComponentData *)componentData bridge:(RCTBridge *)bridge;
22
22
 
23
- - (UIView *)createPaperViewWithTag:(NSInteger)tag;
23
+ - (RCTUIView *)createPaperViewWithTag:(NSInteger)tag; // TODO(macOS GH#774)
24
24
 
25
25
  - (void)addObserveForTag:(NSInteger)tag usingBlock:(InterceptorBlock)block;
26
26
 
27
27
  - (void)removeObserveForTag:(NSInteger)tag;
28
28
 
29
- - (void)setProps:(folly::dynamic const &)props forView:(UIView *)view;
29
+ - (void)setProps:(folly::dynamic const &)props forView:(RCTUIView *)view; // TODO(macOS GH#774)
30
30
 
31
31
  - (NSString *)componentViewName;
32
32
 
@@ -71,9 +71,9 @@ using namespace facebook::react;
71
71
  [_eventInterceptors removeObjectForKey:[NSNumber numberWithInteger:tag]];
72
72
  }
73
73
 
74
- - (UIView *)createPaperViewWithTag:(NSInteger)tag;
74
+ - (RCTUIView *)createPaperViewWithTag:(NSInteger)tag; // TODO(macOS GH#774)
75
75
  {
76
- UIView *view = [_componentData createViewWithTag:[NSNumber numberWithInteger:tag] rootTag:NULL];
76
+ RCTUIView *view = [_componentData createViewWithTag:[NSNumber numberWithInteger:tag] rootTag:NULL]; // TODO(macOS GH#774)
77
77
  if ([_componentData.bridgelessViewManager conformsToProtocol:@protocol(RCTWeakViewHolder)]) {
78
78
  id<RCTWeakViewHolder> weakViewHolder = (id<RCTWeakViewHolder>)_componentData.bridgelessViewManager;
79
79
  if (!weakViewHolder.weakViews) {
@@ -84,7 +84,7 @@ using namespace facebook::react;
84
84
  return view;
85
85
  }
86
86
 
87
- - (void)setProps:(folly::dynamic const &)props forView:(UIView *)view
87
+ - (void)setProps:(folly::dynamic const &)props forView:(RCTUIView *)view // TODO(macOS GH#774)
88
88
  {
89
89
  if (props.isObject()) {
90
90
  NSDictionary<NSString *, id> *convertedProps = convertFollyDynamicToId(props);
@@ -9,7 +9,7 @@
9
9
 
10
10
  #import <Foundation/Foundation.h>
11
11
  #import <React/RCTUtils.h>
12
- #import <UIKit/UIKit.h>
12
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
13
13
 
14
14
  #include <string>
15
15
 
@@ -131,7 +131,7 @@ static NSDictionary<NSString *, NSDictionary *> *_PlatformColorSelectorsDict()
131
131
  return dict;
132
132
  }
133
133
 
134
- static UIColor *_UIColorFromHexValue(NSNumber *hexValue)
134
+ static RCTUIColor *_UIColorFromHexValue(NSNumber *hexValue) // TODO(macOS GH#774)
135
135
  {
136
136
  NSUInteger hexIntValue = [hexValue unsignedIntegerValue];
137
137
 
@@ -140,10 +140,10 @@ static UIColor *_UIColorFromHexValue(NSNumber *hexValue)
140
140
  CGFloat blue = ((CGFloat)((hexIntValue & 0xFF00) >> 8)) / 255.0;
141
141
  CGFloat alpha = ((CGFloat)(hexIntValue & 0xFF)) / 255.0;
142
142
 
143
- return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
143
+ return [RCTUIColor colorWithRed:red green:green blue:blue alpha:alpha]; // TODO(macOS GH#774)
144
144
  }
145
145
 
146
- static UIColor *_Nullable _UIColorFromSemanticString(NSString *semanticString)
146
+ static RCTUIColor *_Nullable _UIColorFromSemanticString(NSString *semanticString) // TODO(macOS GH#774)
147
147
  {
148
148
  NSString *platformColorString = [semanticString hasSuffix:kColorSuffix]
149
149
  ? [semanticString substringToIndex:[semanticString length] - [kColorSuffix length]]
@@ -152,17 +152,17 @@ static UIColor *_Nullable _UIColorFromSemanticString(NSString *semanticString)
152
152
  NSDictionary<NSString *, id> *colorInfo = platformColorSelectorsDict[platformColorString];
153
153
  if (colorInfo) {
154
154
  SEL objcColorSelector = NSSelectorFromString([platformColorString stringByAppendingString:kColorSuffix]);
155
- if (![UIColor respondsToSelector:objcColorSelector]) {
155
+ if (![RCTUIColor respondsToSelector:objcColorSelector]) { // TODO(macOS GH#774)
156
156
  NSNumber *fallbackRGB = colorInfo[kFallbackARGBKey];
157
157
  if (fallbackRGB) {
158
158
  return _UIColorFromHexValue(fallbackRGB);
159
159
  }
160
160
  } else {
161
- Class uiColorClass = [UIColor class];
161
+ Class uiColorClass = [RCTUIColor class]; // TODO(macOS GH#774)
162
162
  IMP imp = [uiColorClass methodForSelector:objcColorSelector];
163
163
  id (*getUIColor)(id, SEL) = ((id(*)(id, SEL))imp);
164
164
  id colorObject = getUIColor(uiColorClass, objcColorSelector);
165
- if ([colorObject isKindOfClass:[UIColor class]]) {
165
+ if ([colorObject isKindOfClass:[RCTUIColor class]]) { // TODO(macOS GH#774)
166
166
  return colorObject;
167
167
  }
168
168
  }
@@ -177,7 +177,7 @@ static inline NSString *_NSStringFromCString(
177
177
  return [NSString stringWithCString:string.c_str() encoding:encoding];
178
178
  }
179
179
 
180
- static inline facebook::react::ColorComponents _ColorComponentsFromUIColor(UIColor *color)
180
+ static inline facebook::react::ColorComponents _ColorComponentsFromUIColor(RCTUIColor *color) // TODO(macOS GH#774)
181
181
  {
182
182
  CGFloat rgba[4];
183
183
  RCTGetRGBAColorComponents(color.CGColor, rgba);
@@ -188,7 +188,7 @@ facebook::react::ColorComponents RCTPlatformColorComponentsFromSemanticItems(std
188
188
  {
189
189
  for (const auto &semanticCString : semanticItems) {
190
190
  NSString *semanticNSString = _NSStringFromCString(semanticCString);
191
- UIColor *uiColor = [UIColor colorNamed:semanticNSString];
191
+ RCTUIColor *uiColor = [RCTUIColor colorNamed:semanticNSString]; // TODO(macOS GH#774)
192
192
  if (uiColor != nil) {
193
193
  return _ColorComponentsFromUIColor(uiColor);
194
194
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <RCTImageManagerProtocol.h>
11
11
 
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <React/RCTImageLoader.h>
11
11
  #import <react/renderer/imagemanager/primitives.h>
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <RCTImageManagerProtocol.h>
11
11
 
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  @interface NSTextStorage (FontScaling)
11
11
 
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #include <react/renderer/attributedstring/AttributedString.h>
11
11
  #include <react/renderer/attributedstring/AttributedStringBox.h>
@@ -83,9 +83,9 @@ inline static CGFloat RCTEffectiveFontSizeMultiplierFromTextAttributes(const Tex
83
83
  : 1.0;
84
84
  }
85
85
 
86
- inline static UIColor *RCTEffectiveForegroundColorFromTextAttributes(const TextAttributes &textAttributes)
86
+ inline static RCTUIColor *RCTEffectiveForegroundColorFromTextAttributes(const TextAttributes &textAttributes) // TODO(macOS GH#774)
87
87
  {
88
- UIColor *effectiveForegroundColor = RCTUIColorFromSharedColor(textAttributes.foregroundColor) ?: [UIColor blackColor];
88
+ RCTUIColor *effectiveForegroundColor = RCTUIColorFromSharedColor(textAttributes.foregroundColor) ?: [RCTUIColor blackColor]; // TODO(macOS GH#774)
89
89
 
90
90
  if (!isnan(textAttributes.opacity)) {
91
91
  effectiveForegroundColor = [effectiveForegroundColor
@@ -95,16 +95,16 @@ inline static UIColor *RCTEffectiveForegroundColorFromTextAttributes(const TextA
95
95
  return effectiveForegroundColor;
96
96
  }
97
97
 
98
- inline static UIColor *RCTEffectiveBackgroundColorFromTextAttributes(const TextAttributes &textAttributes)
98
+ inline static RCTUIColor *RCTEffectiveBackgroundColorFromTextAttributes(const TextAttributes &textAttributes) // TODO(macOS GH#774)
99
99
  {
100
- UIColor *effectiveBackgroundColor = RCTUIColorFromSharedColor(textAttributes.backgroundColor);
100
+ RCTUIColor *effectiveBackgroundColor = RCTUIColorFromSharedColor(textAttributes.backgroundColor); // TODO(macOS GH#774)
101
101
 
102
102
  if (effectiveBackgroundColor && !isnan(textAttributes.opacity)) {
103
103
  effectiveBackgroundColor = [effectiveBackgroundColor
104
104
  colorWithAlphaComponent:CGColorGetAlpha(effectiveBackgroundColor.CGColor) * textAttributes.opacity];
105
105
  }
106
106
 
107
- return effectiveBackgroundColor ?: [UIColor clearColor];
107
+ return effectiveBackgroundColor ?: [RCTUIColor clearColor]; // TODO(macOS GH#774)
108
108
  }
109
109
 
110
110
  NSDictionary<NSAttributedStringKey, id> *RCTNSTextAttributesFromTextAttributes(TextAttributes const &textAttributes)
@@ -118,7 +118,7 @@ NSDictionary<NSAttributedStringKey, id> *RCTNSTextAttributesFromTextAttributes(T
118
118
  }
119
119
 
120
120
  // Colors
121
- UIColor *effectiveForegroundColor = RCTEffectiveForegroundColorFromTextAttributes(textAttributes);
121
+ RCTUIColor *effectiveForegroundColor = RCTEffectiveForegroundColorFromTextAttributes(textAttributes); // TODO(macOS GH#774)
122
122
 
123
123
  if (textAttributes.foregroundColor || !isnan(textAttributes.opacity)) {
124
124
  attributes[NSForegroundColorAttributeName] = effectiveForegroundColor;
@@ -174,7 +174,7 @@ NSDictionary<NSAttributedStringKey, id> *RCTNSTextAttributesFromTextAttributes(T
174
174
  NSUnderlineStyle style = RCTNSUnderlineStyleFromTextDecorationStyle(
175
175
  textAttributes.textDecorationStyle.value_or(TextDecorationStyle::Solid));
176
176
 
177
- UIColor *textDecorationColor = RCTUIColorFromSharedColor(textAttributes.textDecorationColor);
177
+ RCTUIColor *textDecorationColor = RCTUIColorFromSharedColor(textAttributes.textDecorationColor); // TODO(macOS GH#774)
178
178
 
179
179
  // Underline
180
180
  if (textDecorationLineType == TextDecorationLineType::Underline ||
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  NS_ASSUME_NONNULL_BEGIN
11
11
 
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <react/renderer/textlayoutmanager/RCTFontProperties.h>
11
11
 
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #import <react/renderer/attributedstring/AttributedString.h>
11
11
  #import <react/renderer/attributedstring/ParagraphAttributes.h>
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- #import <UIKit/UIKit.h>
8
+ #import <React/RCTUIKit.h> // TODO(macOS GH#774)
9
9
 
10
10
  #include <react/renderer/textlayoutmanager/RCTFontProperties.h>
11
11
  #include <react/renderer/textlayoutmanager/RCTFontUtils.h>
@@ -71,24 +71,24 @@ inline static NSUnderlineStyle RCTNSUnderlineStyleFromTextDecorationStyle(TextDe
71
71
  }
72
72
  }
73
73
 
74
- inline static UIColor *RCTUIColorFromSharedColor(const SharedColor &sharedColor)
74
+ inline static RCTUIColor *RCTUIColorFromSharedColor(const SharedColor &sharedColor) // TODO(macOS GH#774)
75
75
  {
76
76
  if (!sharedColor) {
77
77
  return nil;
78
78
  }
79
79
 
80
80
  if (*facebook::react::clearColor() == *sharedColor) {
81
- return [UIColor clearColor];
81
+ return [RCTUIColor clearColor]; // TODO(macOS GH#774)
82
82
  }
83
83
 
84
84
  if (*facebook::react::blackColor() == *sharedColor) {
85
- return [UIColor blackColor];
85
+ return [RCTUIColor blackColor]; // TODO(macOS GH#774)
86
86
  }
87
87
 
88
88
  if (*facebook::react::whiteColor() == *sharedColor) {
89
- return [UIColor whiteColor];
89
+ return [RCTUIColor whiteColor]; // TODO(macOS GH#774)
90
90
  }
91
91
 
92
92
  auto components = facebook::react::colorComponentsFromColor(sharedColor);
93
- return [UIColor colorWithRed:components.red green:components.green blue:components.blue alpha:components.alpha];
93
+ return [RCTUIColor colorWithRed:components.red green:components.green blue:components.blue alpha:components.alpha]; // TODO(macOS GH#774)
94
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.0.0-3a2426fff",
3
+ "version": "0.0.0-3b6429a3b",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -95,6 +95,7 @@
95
95
  "@react-native-community/cli": "^7.0.3",
96
96
  "@react-native-community/cli-platform-android": "^7.0.1",
97
97
  "@react-native-community/cli-platform-ios": "^7.0.1",
98
+ "@react-native-community/cli-tools": "^7.0.1",
98
99
  "@react-native/assets": "1.0.0",
99
100
  "@react-native/normalize-color": "2.0.0",
100
101
  "@react-native/polyfills": "2.0.0",
@@ -170,12 +171,14 @@
170
171
  "resolutions": {
171
172
  "async": "^3.2.2",
172
173
  "es5-ext": "0.10.53",
174
+ "micromatch": "^4.0.0",
173
175
  "readable-stream": "^4.0.0",
174
176
  "shell-quote": "^1.7.3"
175
177
  },
176
178
  "_justification": {
177
179
  "async": "Versions of async prior to 3.2.2 are vulnerable to prototype pollution",
178
180
  "es5-ext": "Packages after 0.10.54 and at the moment up until 0.10.59 contain a protest message. A policy prevents us from using packages with protestware, therefore downgrading to the latest release without the message.",
181
+ "micromatch": "Version 3.x.x depends on decode-uri-component 0.2.0, which has a DoS vulnerability",
179
182
  "readable-stream": "Eliminates dependency on outdated string_decoder component",
180
183
  "shell-quote": "Versions prior to 1.7.3 have an RCE vulnerability. Should be removable once we upgrade CLI tools to ^8.0.0 with RN 0.69."
181
184
  },
@@ -65,7 +65,7 @@ GEM
65
65
  httpclient (2.8.3)
66
66
  i18n (1.12.0)
67
67
  concurrent-ruby (~> 1.0)
68
- json (2.6.2)
68
+ json (2.6.3)
69
69
  minitest (5.16.3)
70
70
  molinillo (0.8.0)
71
71
  nanaimo (0.3.0)
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
15
  "react-native-macos": "1000.0.0",
16
- "react-native": "0.0.0-3a2426fff"
16
+ "react-native": "0.0.0-3b6429a3b"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.12.9",