react-native-macos 0.0.0-dae9a3e3b → 0.0.0-db2cc6efb

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 (178) hide show
  1. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/Libraries/Image/React-RCTImage.podspec +1 -1
  4. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  5. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h +14 -0
  6. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
  7. package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
  8. package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
  9. package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +2 -0
  10. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
  11. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  12. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  13. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  14. package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +7 -0
  15. package/Libraries/Text/RCTTextAttributes.h +9 -3
  16. package/Libraries/Text/RCTTextAttributes.m +17 -0
  17. package/Libraries/Text/Text/RCTTextView.m +1 -7
  18. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  19. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  20. package/React/Base/RCTUIKit.h +11 -0
  21. package/React/Base/RCTVersion.m +1 -1
  22. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
  23. package/React/CoreModules/RCTLogBox.h +1 -1
  24. package/React/CoreModules/RCTLogBox.mm +35 -19
  25. package/React/CoreModules/RCTLogBoxView.h +8 -5
  26. package/React/CoreModules/RCTLogBoxView.mm +64 -23
  27. package/React/CoreModules/React-CoreModules.podspec +1 -1
  28. package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
  29. package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
  30. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
  31. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +8 -8
  32. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
  33. package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
  34. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +1 -1
  35. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +6 -14
  36. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
  37. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
  38. package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +1 -1
  39. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
  40. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +8 -4
  41. package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
  42. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
  43. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +3 -3
  44. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +4 -4
  45. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
  46. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +4 -4
  47. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +22 -22
  48. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
  49. package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +5 -5
  50. package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
  51. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +1 -1
  52. package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +1 -1
  53. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +2 -2
  54. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +2 -2
  55. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
  56. package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +3 -0
  57. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
  58. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +5 -5
  59. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +7 -6
  60. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +4 -4
  61. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
  62. package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +2 -2
  63. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
  64. package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +2 -2
  65. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
  66. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +23 -22
  67. package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
  68. package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
  69. package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
  70. package/React/Fabric/Mounting/RCTComponentViewFactory.mm +10 -1
  71. package/React/Fabric/Mounting/RCTComponentViewProtocol.h +4 -4
  72. package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
  73. package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
  74. package/React/Fabric/Mounting/RCTMountingManager.h +3 -3
  75. package/React/Fabric/Mounting/RCTMountingManager.mm +19 -11
  76. package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
  77. package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +1 -1
  78. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +6 -6
  79. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +6 -6
  80. package/React/Fabric/RCTConversions.h +6 -6
  81. package/React/Fabric/RCTImageResponseDelegate.h +1 -1
  82. package/React/Fabric/RCTLocalizationProvider.h +1 -1
  83. package/React/Fabric/RCTScheduler.h +1 -1
  84. package/React/Fabric/RCTSurfacePresenter.h +8 -2
  85. package/React/Fabric/RCTSurfacePresenter.mm +14 -6
  86. package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
  87. package/React/Fabric/RCTSurfaceRegistry.h +1 -1
  88. package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
  89. package/React/Fabric/RCTSurfaceTouchHandler.mm +8 -8
  90. package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
  91. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
  92. package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
  93. package/React/Modules/RCTSurfacePresenterStub.h +4 -0
  94. package/React/React-RCTFabric.podspec +1 -1
  95. package/React/Views/RCTMaskedView.h +1 -1
  96. package/React/Views/RCTModalHostView.h +2 -2
  97. package/React/Views/RCTModalHostViewController.h +1 -1
  98. package/React/Views/RCTModalManager.h +1 -1
  99. package/React/Views/RCTView.m +1 -1
  100. package/React/Views/RCTWeakViewHolder.h +1 -1
  101. package/React/Views/RCTWrapperViewController.h +2 -2
  102. package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
  103. package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
  104. package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
  105. package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
  106. package/React/Views/ScrollView/RCTScrollView.m +0 -30
  107. package/React/Views/ScrollView/RCTScrollableProtocol.h +1 -1
  108. package/ReactAndroid/gradle.properties +1 -1
  109. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
  110. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  111. package/ReactAndroid/src/main/jni/Application.mk +1 -1
  112. package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
  113. package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
  114. package/ReactCommon/ReactCommon.podspec +1 -1
  115. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  116. package/ReactCommon/cxxreact/tests/BUCK +1 -1
  117. package/ReactCommon/microprofiler/BUCK +1 -1
  118. package/ReactCommon/react/debug/react_native_assert.h +1 -1
  119. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
  120. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
  121. package/ReactCommon/react/renderer/animations/conversions.h +11 -11
  122. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
  123. package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
  124. package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
  125. package/ReactCommon/react/renderer/attributedstring/conversions.h +1 -1
  126. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
  127. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +3 -3
  128. package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
  129. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
  130. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
  131. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
  132. package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
  133. package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
  134. package/ReactCommon/react/renderer/components/view/ViewProps.h +3 -1
  135. package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
  136. package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +16 -16
  137. package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
  138. package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
  139. package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
  140. package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
  141. package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -7
  142. package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
  143. package/ReactCommon/react/renderer/core/Props.h +0 -4
  144. package/ReactCommon/react/renderer/core/RawProps.h +1 -1
  145. package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
  146. package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
  147. package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
  148. package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
  149. package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
  150. package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
  151. package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
  152. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
  153. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
  154. package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
  155. package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
  156. package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
  157. package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
  158. package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
  159. package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
  160. package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
  161. package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
  162. package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +1 -2
  163. package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -1
  164. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
  165. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
  166. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +15 -15
  167. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
  168. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
  169. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
  170. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
  171. package/ReactCommon/react/utils/ContextContainer.h +2 -2
  172. package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
  173. package/ReactCommon/yoga/Yoga.podspec +1 -1
  174. package/package.json +4 -1
  175. package/scripts/react_native_pods.rb +1 -1
  176. package/template/Gemfile.lock +2 -2
  177. package/template/package.json +1 -1
  178. package/ReactCommon/butter/optional.h +0 -38
@@ -9,11 +9,11 @@
9
9
 
10
10
  #include <memory>
11
11
  #include <mutex>
12
+ #include <optional>
12
13
  #include <string>
13
14
 
14
15
  #include <butter/map.h>
15
16
  #include <butter/mutex.h>
16
- #include <butter/optional.h>
17
17
 
18
18
  #include <react/debug/flags.h>
19
19
  #include <react/debug/react_native_assert.h>
@@ -92,7 +92,7 @@ class ContextContainer final {
92
92
  * Returns an empty optional if the instance could not be found.
93
93
  */
94
94
  template <typename T>
95
- butter::optional<T> find(std::string const &key) const {
95
+ std::optional<T> find(std::string const &key) const {
96
96
  std::shared_lock<butter::shared_mutex> lock(mutex_);
97
97
 
98
98
  auto iterator = instances_.find(key);
@@ -8,8 +8,8 @@
8
8
  #include <functional>
9
9
  #include <memory>
10
10
  #include <mutex>
11
+ #include <optional>
11
12
 
12
- #include <butter/optional.h>
13
13
  #include <folly/container/EvictingCacheMap.h>
14
14
 
15
15
  namespace facebook {
@@ -48,7 +48,7 @@ class SimpleThreadSafeCache {
48
48
  * If the value wasn't found in the cache, returns empty optional.
49
49
  * Can be called from any thread.
50
50
  */
51
- butter::optional<ValueT> get(const KeyT &key) const {
51
+ std::optional<ValueT> get(const KeyT &key) const {
52
52
  std::lock_guard<std::mutex> lock(mutex_);
53
53
  auto iterator = map_.find(key);
54
54
  if (iterator == map_.end()) {
@@ -38,7 +38,7 @@ Pod::Spec.new do |spec|
38
38
  '-fexceptions',
39
39
  '-Wall',
40
40
  '-Werror',
41
- '-std=c++1y',
41
+ '-std=c++17',
42
42
  '-fPIC'
43
43
  ]
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.0.0-dae9a3e3b",
3
+ "version": "0.0.0-db2cc6efb",
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
  },
@@ -352,7 +352,7 @@ def get_react_codegen_spec(options={})
352
352
  'homepage' => 'https://facebook.com/',
353
353
  'license' => 'Unlicense',
354
354
  'authors' => 'Facebook',
355
- 'compiler_flags' => "#{folly_compiler_flags} #{boost_compiler_flags} -Wno-nullability-completeness",
355
+ 'compiler_flags' => "#{folly_compiler_flags} #{boost_compiler_flags} -Wno-nullability-completeness -std=c++17",
356
356
  'source' => { :git => '' },
357
357
  'header_mappings_dir' => './',
358
358
  'platforms' => {
@@ -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)
@@ -97,4 +97,4 @@ RUBY VERSION
97
97
  ruby 3.0.4p208
98
98
 
99
99
  BUNDLED WITH
100
- 2.3.24
100
+ 2.3.26
@@ -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-dae9a3e3b"
16
+ "react-native": "0.0.0-db2cc6efb"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.12.9",
@@ -1,38 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #pragma once
9
-
10
- #include <butter/butter.h>
11
-
12
- #if defined(BUTTER_USE_FOLLY_CONTAINERS) || __cplusplus < 202000L
13
-
14
- #include <folly/Optional.h>
15
-
16
- #else
17
-
18
- #include <optional>
19
-
20
- #endif
21
-
22
- namespace facebook {
23
- namespace butter {
24
-
25
- #if defined(BUTTER_USE_FOLLY_CONTAINERS) || __cplusplus < 202000L
26
-
27
- template <typename Value>
28
- using optional = folly::Optional<Value>;
29
-
30
- #else
31
-
32
- template <typename Value>
33
- using optional = std::optional<Value>;
34
-
35
- #endif
36
-
37
- } // namespace butter
38
- } // namespace facebook