react-native-macos 0.81.1 → 0.81.3
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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Text/TextInput/Multiline/RCTWrappedTextView.h +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/RCTSurface.mm +3 -3
- package/React/DevSupport/RCTPackagerConnection.mm +1 -0
- package/React/Views/RCTCursor.m +1 -0
- package/React/Views/RCTViewManager.m +1 -0
- package/React/Views/ScrollView/RCTScrollView.m +3 -5
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +0 -3
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/react/renderer/components/view/platform/macos/react/renderer/components/view/MouseEvent.h +1 -1
- package/package.json +9 -9
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
NS_ASSUME_NONNULL_BEGIN
|
|
20
20
|
|
|
21
|
-
@interface RCTWrappedTextView : RCTPlatformView <RCTBackedTextInputViewProtocol>
|
|
21
|
+
@interface RCTWrappedTextView : RCTPlatformView <RCTBackedTextInputViewProtocol, RCTBackedTextInputDelegate, NSTextViewDelegate> // [macOS]
|
|
22
22
|
|
|
23
23
|
@property (nonatomic, weak) id<RCTBackedTextInputDelegate> textInputDelegate;
|
|
24
24
|
@property (assign) BOOL hideVerticalScrollIndicator;
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
// right after the semaphore signals.
|
|
466
466
|
|
|
467
467
|
// Atomic variant of `_waitingForMountingStageOnMainQueue = YES;`
|
|
468
|
-
|
|
468
|
+
atomic_store(&_waitingForMountingStageOnMainQueue, 1); // [macOS] C++23 compatibility
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
dispatch_semaphore_t semaphore;
|
|
@@ -488,7 +488,7 @@
|
|
|
488
488
|
auto timeoutOccurred = dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, timeout * NSEC_PER_SEC));
|
|
489
489
|
|
|
490
490
|
// Atomic equivalent of `_waitingForMountingStageOnMainQueue = NO;`.
|
|
491
|
-
|
|
491
|
+
atomic_store(&_waitingForMountingStageOnMainQueue, 0); // [macOS] C++23 compatibility
|
|
492
492
|
|
|
493
493
|
if (!timeoutOccurred) {
|
|
494
494
|
// Balancing the semaphore.
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
{
|
|
547
547
|
if (atomic_load(&_waitingForMountingStageOnMainQueue) && (self.stage & RCTSurfaceStageSurfaceDidInitialLayout)) {
|
|
548
548
|
// Atomic equivalent of `_waitingForMountingStageOnMainQueue = NO;`.
|
|
549
|
-
|
|
549
|
+
atomic_store(&_waitingForMountingStageOnMainQueue, 0); // [macOS] C++23 compatibility
|
|
550
550
|
|
|
551
551
|
{
|
|
552
552
|
std::lock_guard<std::mutex> lock(_mutex);
|
package/React/Views/RCTCursor.m
CHANGED
|
@@ -442,6 +442,7 @@ RCT_CUSTOM_VIEW_PROPERTY(pointerEvents, RCTPointerEvents, RCTView)
|
|
|
442
442
|
// Unspecified values do not.
|
|
443
443
|
// This wouldn't override a container view's `userInteractionEnabled = NO`
|
|
444
444
|
view.userInteractionEnabled = YES;
|
|
445
|
+
break; // [macOS]
|
|
445
446
|
case RCTPointerEventsNone:
|
|
446
447
|
view.userInteractionEnabled = NO;
|
|
447
448
|
break;
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
@implementation RCTScrollView {
|
|
319
319
|
id<RCTEventDispatcherProtocol> _eventDispatcher;
|
|
320
320
|
CGRect _prevFirstVisibleFrame;
|
|
321
|
-
__weak
|
|
321
|
+
__weak RCTPlatformView *_firstVisibleView; // [macOS]
|
|
322
322
|
RCTCustomScrollView *_scrollView;
|
|
323
323
|
#if !TARGET_OS_OSX // [macOS]
|
|
324
324
|
UIView *_contentView;
|
|
@@ -940,17 +940,15 @@ RCT_SCROLL_EVENT_HANDLER(scrollViewDidScrollToTop, onScrollToTop)
|
|
|
940
940
|
_scrollView.contentInset = UIEdgeInsetsMake(top, left, top, left);
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
-
|
|
944
|
-
- (void)addScrollListener:(NSObject<UIScrollViewDelegate> *)scrollListener
|
|
943
|
+
- (void)addScrollListener:(NSObject<RCTUIScrollViewDelegate> *)scrollListener // [macOS]
|
|
945
944
|
{
|
|
946
945
|
[_scrollListeners addObject:scrollListener];
|
|
947
946
|
}
|
|
948
947
|
|
|
949
|
-
- (void)removeScrollListener:(NSObject<
|
|
948
|
+
- (void)removeScrollListener:(NSObject<RCTUIScrollViewDelegate> *)scrollListener // [macOS]
|
|
950
949
|
{
|
|
951
950
|
[_scrollListeners removeObject:scrollListener];
|
|
952
951
|
}
|
|
953
|
-
#endif // [macOS]
|
|
954
952
|
|
|
955
953
|
- (void)scrollViewDidScroll:(RCTCustomScrollView *)scrollView // [macOS]
|
|
956
954
|
{
|
|
@@ -1404,14 +1404,14 @@ public class ReactInstanceManager {
|
|
|
1404
1404
|
new RuntimeException(
|
|
1405
1405
|
"detachRootViewFromInstance called with ReactRootView with invalid id"));
|
|
1406
1406
|
}
|
|
1407
|
-
|
|
1408
|
-
clearReactRoot(reactRoot);
|
|
1409
1407
|
} else {
|
|
1410
1408
|
reactContext
|
|
1411
1409
|
.getCatalystInstance()
|
|
1412
1410
|
.getJSModule(AppRegistry.class)
|
|
1413
1411
|
.unmountApplicationComponentAtRootTag(reactRoot.getRootViewTag());
|
|
1414
1412
|
}
|
|
1413
|
+
|
|
1414
|
+
clearReactRoot(reactRoot);
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
1417
|
@ThreadConfined(UI)
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
#define REACT_NATIVE_VERSION_MAJOR 0
|
|
16
16
|
#define REACT_NATIVE_VERSION_MINOR 81
|
|
17
|
-
#define REACT_NATIVE_VERSION_PATCH
|
|
17
|
+
#define REACT_NATIVE_VERSION_PATCH 3
|
|
18
18
|
|
|
19
19
|
namespace facebook::react {
|
|
20
20
|
|
|
21
21
|
constexpr struct {
|
|
22
22
|
int32_t Major = 0;
|
|
23
23
|
int32_t Minor = 81;
|
|
24
|
-
int32_t Patch =
|
|
24
|
+
int32_t Patch = 3;
|
|
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.81.
|
|
3
|
+
"version": "0.81.3",
|
|
4
4
|
"description": "React Native for macOS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"peerDependencies": {
|
|
158
158
|
"@types/react": "^19.1.4",
|
|
159
159
|
"react": "^19.1.4",
|
|
160
|
-
"react-native": "0.81.
|
|
160
|
+
"react-native": "0.81.6"
|
|
161
161
|
},
|
|
162
162
|
"peerDependenciesMeta": {
|
|
163
163
|
"@types/react": {
|
|
@@ -166,13 +166,13 @@
|
|
|
166
166
|
},
|
|
167
167
|
"dependencies": {
|
|
168
168
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
169
|
-
"@react-native-macos/virtualized-lists": "0.81.
|
|
170
|
-
"@react-native/assets-registry": "0.81.
|
|
171
|
-
"@react-native/codegen": "0.81.
|
|
172
|
-
"@react-native/community-cli-plugin": "0.81.
|
|
173
|
-
"@react-native/gradle-plugin": "0.81.
|
|
174
|
-
"@react-native/js-polyfills": "0.81.
|
|
175
|
-
"@react-native/normalize-colors": "0.81.
|
|
169
|
+
"@react-native-macos/virtualized-lists": "0.81.3",
|
|
170
|
+
"@react-native/assets-registry": "0.81.6",
|
|
171
|
+
"@react-native/codegen": "0.81.6",
|
|
172
|
+
"@react-native/community-cli-plugin": "0.81.6",
|
|
173
|
+
"@react-native/gradle-plugin": "0.81.6",
|
|
174
|
+
"@react-native/js-polyfills": "0.81.6",
|
|
175
|
+
"@react-native/normalize-colors": "0.81.6",
|
|
176
176
|
"abort-controller": "^3.0.0",
|
|
177
177
|
"anser": "^1.4.9",
|
|
178
178
|
"ansi-regex": "^5.0.0",
|