react-native-macos 0.0.0-d74468479 → 0.0.0-d7b3947f3

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 (516) hide show
  1. package/Libraries/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +2 -3
  2. package/Libraries/Alert/Alert.js +2 -2
  3. package/Libraries/Alert/RCTAlertManager.android.js +1 -1
  4. package/Libraries/Animated/AnimatedEvent.js +10 -5
  5. package/Libraries/Animated/AnimatedImplementation.js +92 -60
  6. package/Libraries/Animated/AnimatedMock.js +14 -11
  7. package/{ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp → Libraries/Animated/AnimatedPlatformConfig.js} +6 -5
  8. package/Libraries/Animated/Easing.js +36 -36
  9. package/Libraries/Animated/NativeAnimatedHelper.js +23 -20
  10. package/Libraries/Animated/animations/Animation.js +5 -3
  11. package/Libraries/Animated/animations/DecayAnimation.js +5 -0
  12. package/Libraries/Animated/animations/SpringAnimation.js +15 -0
  13. package/Libraries/Animated/animations/TimingAnimation.js +14 -1
  14. package/Libraries/Animated/nodes/AnimatedAddition.js +5 -4
  15. package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
  16. package/Libraries/Animated/nodes/AnimatedDiffClamp.js +4 -3
  17. package/Libraries/Animated/nodes/AnimatedDivision.js +5 -4
  18. package/Libraries/Animated/nodes/AnimatedInterpolation.js +5 -3
  19. package/Libraries/Animated/nodes/AnimatedModulo.js +4 -3
  20. package/Libraries/Animated/nodes/AnimatedMultiplication.js +5 -4
  21. package/Libraries/Animated/nodes/AnimatedNode.js +27 -14
  22. package/Libraries/Animated/nodes/AnimatedProps.js +11 -3
  23. package/Libraries/Animated/nodes/AnimatedStyle.js +6 -4
  24. package/Libraries/Animated/nodes/AnimatedSubtraction.js +5 -4
  25. package/Libraries/Animated/nodes/AnimatedTracking.js +7 -5
  26. package/Libraries/Animated/nodes/AnimatedTransform.js +5 -3
  27. package/Libraries/Animated/nodes/AnimatedValue.js +2 -0
  28. package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
  29. package/Libraries/Animated/nodes/AnimatedWithChildren.js +5 -4
  30. package/Libraries/AppState/AppState.js +8 -7
  31. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +2 -2
  32. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  33. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -20
  34. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -2
  35. package/Libraries/Components/Button.js +1 -2
  36. package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
  37. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +6 -7
  38. package/Libraries/Components/Keyboard/Keyboard.js +8 -7
  39. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +8 -13
  40. package/Libraries/Components/Pressable/Pressable.js +1 -2
  41. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +2 -1
  42. package/Libraries/Components/RefreshControl/RefreshControl.js +2 -7
  43. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
  44. package/Libraries/Components/SafeAreaView/SafeAreaView.js +2 -2
  45. package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -0
  46. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +15 -5
  47. package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +3 -5
  48. package/Libraries/Components/ScrollView/ScrollView.js +34 -100
  49. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +134 -71
  50. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -2
  51. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +2 -8
  52. package/Libraries/Components/Slider/SliderNativeComponent.js +2 -2
  53. package/Libraries/Components/Sound/SoundManager.js +1 -1
  54. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +115 -2
  55. package/Libraries/Components/TextInput/InputAccessoryView.js +1 -2
  56. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +9 -4
  57. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +5 -4
  58. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +33 -8
  59. package/Libraries/Components/TextInput/TextInput.js +137 -11
  60. package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +3 -3
  61. package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +3 -3
  62. package/Libraries/Components/Touchable/BoundingDimensions.js +2 -2
  63. package/Libraries/Components/Touchable/PooledClass.js +6 -6
  64. package/Libraries/Components/Touchable/Position.js +1 -1
  65. package/Libraries/Components/Touchable/Touchable.js +26 -25
  66. package/Libraries/Components/Touchable/TouchableBounce.js +1 -2
  67. package/Libraries/Components/Touchable/TouchableHighlight.js +1 -2
  68. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +4 -11
  69. package/Libraries/Components/Touchable/TouchableOpacity.js +1 -3
  70. package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -0
  71. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
  72. package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -0
  73. package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +3 -3
  74. package/Libraries/Components/View/View.js +0 -7
  75. package/Libraries/Components/View/ViewNativeComponent.js +3 -4
  76. package/Libraries/Components/View/ViewPropTypes.js +17 -6
  77. package/Libraries/Core/Devtools/parseHermesStack.js +2 -1
  78. package/Libraries/Core/ExceptionsManager.js +2 -2
  79. package/Libraries/Core/NativeExceptionsManager.js +2 -3
  80. package/Libraries/Core/ReactNativeVersion.js +1 -1
  81. package/Libraries/Core/ReactNativeVersionCheck.js +1 -0
  82. package/Libraries/Core/Timers/JSTimers.js +34 -41
  83. package/Libraries/Core/setUpAlert.js +1 -1
  84. package/Libraries/Core/setUpDeveloperTools.js +1 -1
  85. package/Libraries/Core/setUpPerformance.js +1 -1
  86. package/Libraries/Core/setUpRegeneratorRuntime.js +1 -1
  87. package/Libraries/Core/setUpSegmentFetcher.js +4 -4
  88. package/Libraries/EventEmitter/NativeEventEmitter.js +2 -1
  89. package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +2 -1
  90. package/Libraries/HeapCapture/HeapCapture.js +1 -1
  91. package/Libraries/Image/AssetSourceResolver.js +2 -4
  92. package/Libraries/Image/Image.android.js +20 -11
  93. package/Libraries/Image/Image.ios.js +3 -3
  94. package/Libraries/Image/ImageAnalyticsTagContext.js +2 -3
  95. package/Libraries/Image/ImageBackground.js +1 -2
  96. package/Libraries/Image/ImagePickerIOS.js +6 -6
  97. package/Libraries/Image/ImageViewNativeComponent.js +95 -60
  98. package/Libraries/Image/NativeImageLoaderAndroid.js +1 -3
  99. package/Libraries/Image/RCTImageCache.m +1 -1
  100. package/Libraries/Image/RCTImageView.mm +36 -24
  101. package/Libraries/Image/React-RCTImage.podspec +1 -1
  102. package/Libraries/Image/TextInlineImageNativeComponent.js +12 -72
  103. package/Libraries/Inspector/ElementProperties.js +2 -4
  104. package/Libraries/Inspector/InspectorOverlay.js +1 -2
  105. package/Libraries/Inspector/InspectorPanel.js +1 -2
  106. package/Libraries/Inspector/NetworkOverlay.js +5 -11
  107. package/Libraries/Interaction/BridgeSpyStallHandler.js +1 -1
  108. package/Libraries/Interaction/FrameRateLogger.js +2 -2
  109. package/Libraries/Interaction/InteractionManager.js +2 -4
  110. package/Libraries/Interaction/JSEventLoopWatchdog.js +4 -4
  111. package/Libraries/Interaction/PanResponder.js +3 -4
  112. package/Libraries/Interaction/TouchHistoryMath.js +7 -7
  113. package/Libraries/JSInspector/NetworkAgent.js +1 -6
  114. package/Libraries/LayoutAnimation/LayoutAnimation.js +3 -3
  115. package/Libraries/LinkingIOS/RCTLinkingManager.h +1 -0
  116. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  117. package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +12 -5
  118. package/Libraries/Lists/FillRateHelper.js +1 -3
  119. package/Libraries/Lists/FlatList.js +41 -5
  120. package/Libraries/Lists/ViewabilityHelper.js +4 -10
  121. package/Libraries/Lists/VirtualizeUtils.js +2 -6
  122. package/Libraries/Lists/VirtualizedList.js +162 -131
  123. package/Libraries/Lists/VirtualizedListContext.js +3 -5
  124. package/Libraries/Lists/VirtualizedSectionList.js +63 -68
  125. package/Libraries/LogBox/Data/LogBoxData.js +1 -1
  126. package/Libraries/LogBox/Data/parseLogBoxLog.js +12 -23
  127. package/Libraries/LogBox/UI/LogBoxButton.js +2 -4
  128. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +2 -4
  129. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -2
  130. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -2
  131. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +3 -6
  132. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -3
  133. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -4
  134. package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +2 -4
  135. package/Libraries/LogBox/UI/LogBoxNotification.js +2 -4
  136. package/Libraries/Modal/Modal.js +2 -5
  137. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h +14 -0
  138. package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
  139. package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
  140. package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
  141. package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +2 -0
  142. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
  143. package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -4
  144. package/Libraries/NativeComponent/StaticViewConfigValidator.js +39 -0
  145. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  146. package/Libraries/Network/XHRInterceptor.js +5 -6
  147. package/Libraries/Network/XMLHttpRequest.js +0 -1
  148. package/Libraries/NewAppScreen/components/Header.js +2 -4
  149. package/Libraries/NewAppScreen/components/HermesBadge.js +1 -2
  150. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +2 -4
  151. package/Libraries/Performance/QuickPerformanceLogger.js +17 -0
  152. package/Libraries/Performance/SamplingProfiler.js +3 -3
  153. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -3
  154. package/Libraries/Pressability/Pressability.js +2 -2
  155. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +4 -2
  156. package/Libraries/PushNotificationIOS/PushNotificationIOS.js +8 -7
  157. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  158. package/Libraries/ReactNative/AppContainer.js +4 -6
  159. package/Libraries/ReactNative/AppRegistry.js +2 -3
  160. package/Libraries/ReactNative/I18nManager.js +2 -5
  161. package/Libraries/ReactNative/PaperUIManager.js +2 -3
  162. package/Libraries/ReactNative/RootTag.js +2 -3
  163. package/Libraries/ReactNative/UIManager.js +5 -10
  164. package/Libraries/ReactNative/UIManagerInjection.js +3 -3
  165. package/Libraries/ReactNative/getNativeComponentAttributes.js +4 -0
  166. package/Libraries/ReactNative/renderApplication.js +1 -2
  167. package/Libraries/Renderer/REVISION +1 -1
  168. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +278 -356
  169. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +87 -78
  170. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +340 -393
  171. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +278 -356
  172. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +87 -78
  173. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +340 -393
  174. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  175. package/Libraries/Storage/AsyncStorage.js +21 -21
  176. package/Libraries/StyleSheet/StyleSheet.js +2 -1
  177. package/Libraries/StyleSheet/StyleSheetTypes.js +26 -1
  178. package/Libraries/StyleSheet/processColor.js +2 -2
  179. package/Libraries/StyleSheet/splitLayoutProps.js +1 -3
  180. package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +8 -0
  181. package/Libraries/Text/RCTTextAttributes.h +11 -3
  182. package/Libraries/Text/RCTTextAttributes.m +64 -14
  183. package/Libraries/Text/Text/RCTDynamicTypeRamp.h +40 -0
  184. package/Libraries/Text/Text/RCTDynamicTypeRamp.m +77 -0
  185. package/Libraries/Text/Text/RCTTextView.m +123 -58
  186. package/Libraries/Text/Text.js +2 -9
  187. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +8 -0
  188. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +66 -1
  189. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +13 -0
  190. package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +2 -1
  191. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +105 -7
  192. package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +13 -1
  193. package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +20 -3
  194. package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +1 -0
  195. package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +12 -0
  196. package/Libraries/Text/TextInput/RCTBaseTextInputView.h +9 -1
  197. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +128 -4
  198. package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +15 -3
  199. package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +4 -0
  200. package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +2 -0
  201. package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +68 -2
  202. package/Libraries/Text/TextNativeComponent.js +5 -5
  203. package/Libraries/Text/TextProps.js +29 -0
  204. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  205. package/Libraries/Types/CoreEventTypes.js +0 -1
  206. package/Libraries/Utilities/Appearance.js +8 -5
  207. package/Libraries/Utilities/BackHandler.android.js +4 -4
  208. package/Libraries/Utilities/HMRClient.js +2 -2
  209. package/Libraries/Utilities/JSDevSupportModule.js +3 -4
  210. package/Libraries/Utilities/MatrixMath.js +19 -19
  211. package/Libraries/Utilities/PerformanceLoggerContext.js +2 -3
  212. package/Libraries/Utilities/ReactNativeTestTools.js +2 -4
  213. package/Libraries/Utilities/SceneTracker.js +1 -3
  214. package/Libraries/Utilities/__mocks__/BackHandler.js +3 -3
  215. package/Libraries/Utilities/buildStyleInterpolator.js +9 -9
  216. package/Libraries/Utilities/codegenNativeComponent.js +4 -2
  217. package/Libraries/Utilities/differ/deepDiffer.js +1 -1
  218. package/Libraries/Utilities/differ/insetsDiffer.js +1 -1
  219. package/Libraries/Utilities/differ/matricesDiffer.js +1 -1
  220. package/Libraries/Utilities/differ/pointsDiffer.js +1 -1
  221. package/Libraries/Utilities/differ/sizesDiffer.js +1 -1
  222. package/Libraries/Utilities/logError.js +1 -1
  223. package/Libraries/Utilities/mergeIntoFast.js +1 -1
  224. package/Libraries/Utilities/truncate.js +1 -1
  225. package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -0
  226. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  227. package/Libraries/Vibration/Vibration.js +2 -2
  228. package/Libraries/WebSocket/RCTSRWebSocket.m +4 -0
  229. package/Libraries/WebSocket/WebSocketInterceptor.js +4 -4
  230. package/Libraries/promiseRejectionTrackingOptions.js +1 -1
  231. package/Libraries/vendor/emitter/_EmitterSubscription.js +2 -1
  232. package/Libraries/vendor/emitter/_EventEmitter.js +2 -1
  233. package/Libraries/vendor/emitter/_EventSubscription.js +2 -1
  234. package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
  235. package/React/Base/RCTAssert.h +30 -15
  236. package/React/Base/RCTAssert.m +59 -19
  237. package/React/Base/RCTBridge.m +5 -3
  238. package/React/Base/RCTConstants.h +6 -0
  239. package/React/Base/RCTConstants.m +15 -0
  240. package/React/Base/RCTConvert.m +26 -5
  241. package/React/Base/RCTEventDispatcherProtocol.h +5 -0
  242. package/React/Base/RCTRootView.m +0 -51
  243. package/React/Base/RCTTouchHandler.m +15 -1
  244. package/React/Base/RCTUIKit.h +10 -13
  245. package/React/Base/RCTUtils.m +33 -3
  246. package/React/Base/RCTVersion.m +1 -1
  247. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
  248. package/React/Base/macOS/RCTPlatformDisplayLink.m +3 -1
  249. package/React/Base/macOS/RCTUIKit.m +53 -0
  250. package/React/CoreModules/RCTAlertController.m +6 -0
  251. package/React/CoreModules/RCTAppearance.mm +21 -5
  252. package/React/CoreModules/RCTDevLoadingView.mm +1 -1
  253. package/React/CoreModules/RCTDevSettings.mm +33 -12
  254. package/React/CoreModules/RCTEventDispatcher.mm +6 -1
  255. package/React/CoreModules/RCTExceptionsManager.mm +1 -1
  256. package/React/CoreModules/RCTLogBox.h +1 -1
  257. package/React/CoreModules/RCTLogBox.mm +35 -19
  258. package/React/CoreModules/RCTLogBoxView.h +8 -5
  259. package/React/CoreModules/RCTLogBoxView.mm +64 -23
  260. package/React/CoreModules/RCTPerfMonitor.mm +1 -1
  261. package/React/CoreModules/React-CoreModules.podspec +1 -1
  262. package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
  263. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +1 -0
  264. package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +69 -19
  265. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +2 -1
  266. package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +0 -1
  267. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
  268. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +35 -9
  269. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +2 -2
  270. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +4 -3
  271. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +2 -2
  272. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +13 -5
  273. package/React/Fabric/Mounting/RCTComponentViewFactory.mm +12 -3
  274. package/React/Fabric/Mounting/RCTComponentViewProtocol.h +1 -1
  275. package/React/Fabric/Mounting/RCTMountingManager.h +1 -1
  276. package/React/Fabric/Mounting/RCTMountingManager.mm +19 -11
  277. package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.h +5 -3
  278. package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.mm +10 -8
  279. package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +5 -3
  280. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +1 -1
  281. package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +1 -1
  282. package/React/Fabric/RCTConversions.h +9 -1
  283. package/React/Fabric/RCTImageResponseObserverProxy.h +1 -0
  284. package/React/Fabric/RCTLocalizationProvider.mm +10 -4
  285. package/React/Fabric/RCTScheduler.h +7 -0
  286. package/React/Fabric/RCTScheduler.mm +15 -0
  287. package/React/Fabric/RCTSurfacePresenter.h +8 -0
  288. package/React/Fabric/RCTSurfacePresenter.mm +54 -24
  289. package/React/Fabric/RCTSurfaceTouchHandler.mm +0 -1
  290. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
  291. package/React/Modules/RCTSurfacePresenterStub.h +4 -0
  292. package/React/Modules/RCTUIManager.m +35 -14
  293. package/React/React-RCTFabric.podspec +2 -2
  294. package/React/Views/RCTActivityIndicatorView.m +2 -1
  295. package/React/Views/RCTCursor.h +39 -0
  296. package/React/Views/RCTCursor.m +105 -0
  297. package/React/Views/RCTFont.mm +11 -9
  298. package/React/Views/RCTModalHostView.h +5 -0
  299. package/React/Views/RCTModalHostViewManager.m +3 -0
  300. package/React/Views/RCTSliderManager.m +1 -0
  301. package/React/Views/RCTView.h +16 -0
  302. package/React/Views/RCTView.m +142 -189
  303. package/React/Views/RCTViewKeyboardEvent.h +6 -28
  304. package/React/Views/RCTViewKeyboardEvent.m +66 -61
  305. package/React/Views/RCTViewManager.m +19 -13
  306. package/React/Views/ScrollView/RCTScrollContentView.h +4 -0
  307. package/React/Views/ScrollView/RCTScrollContentView.m +18 -0
  308. package/React/Views/ScrollView/RCTScrollContentViewManager.m +2 -0
  309. package/React/Views/ScrollView/RCTScrollView.h +2 -1
  310. package/React/Views/ScrollView/RCTScrollView.m +72 -80
  311. package/React/Views/ScrollView/RCTScrollViewManager.m +1 -1
  312. package/React/Views/UIView+React.h +2 -0
  313. package/React/Views/UIView+React.m +35 -18
  314. package/ReactAndroid/build.gradle +16 -6
  315. package/ReactAndroid/gradle.properties +4 -3
  316. package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +1 -2
  317. package/ReactAndroid/src/androidTest/js/Asserts.js +2 -2
  318. package/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js +1 -1
  319. package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +1 -2
  320. package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +1 -2
  321. package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +54 -54
  322. package/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js +1 -1
  323. package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +6 -7
  324. package/ReactAndroid/src/androidTest/js/ShareTestModule.js +1 -1
  325. package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +12 -19
  326. package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +2 -3
  327. package/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js +2 -2
  328. package/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js +17 -17
  329. package/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js +10 -10
  330. package/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js +2 -2
  331. package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +2 -3
  332. package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +3 -6
  333. package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +3 -6
  334. package/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js +5 -5
  335. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +12 -4
  336. package/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java +1 -1
  337. package/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java +1 -1
  338. package/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java +39 -3
  339. package/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +2 -2
  340. package/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java +1 -1
  341. package/ReactAndroid/src/main/java/com/facebook/react/animated/SubtractionAnimatedNode.java +3 -3
  342. package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java +0 -4
  343. package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +0 -3
  344. package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +0 -6
  345. package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +6 -6
  346. package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java +6 -6
  347. package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.java +119 -78
  348. package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.cpp +7 -35
  349. package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.h +5 -18
  350. package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -14
  351. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -1
  352. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +0 -2
  353. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +2 -1
  354. package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
  355. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  356. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
  357. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +4 -0
  358. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java +18 -0
  359. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +12 -0
  360. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +2 -2
  361. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -3
  362. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerDelegate.java +4 -0
  363. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerInterface.java +3 -0
  364. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +1 -0
  365. package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +3 -0
  366. package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +8 -0
  367. package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java +2 -0
  368. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +22 -5
  369. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +6 -0
  370. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +22 -5
  371. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +23 -14
  372. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +6 -0
  373. package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +24 -0
  374. package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +8 -8
  375. package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +1 -1
  376. package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +1 -1
  377. package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java +2 -2
  378. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +1 -8
  379. package/ReactAndroid/src/main/jni/Application.mk +1 -1
  380. package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
  381. package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
  382. package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +40 -16
  383. package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.cpp +3 -3
  384. package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.h +3 -3
  385. package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.cpp +2 -2
  386. package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.h +3 -3
  387. package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
  388. package/ReactAndroid/src/main/third-party/android/androidx/BUCK +16 -4
  389. package/ReactAndroid/src/main/third-party/java/okhttp/BUCK +4 -4
  390. package/ReactCommon/React-Fabric.podspec +1 -1
  391. package/ReactCommon/React-rncore.podspec +1 -1
  392. package/ReactCommon/ReactCommon.podspec +1 -1
  393. package/ReactCommon/cxxreact/JSBigString.cpp +0 -65
  394. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  395. package/ReactCommon/cxxreact/tests/BUCK +1 -1
  396. package/ReactCommon/hermes/inspector/tools/msggen/package.json +1 -1
  397. package/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js +1 -1
  398. package/ReactCommon/hermes/inspector/tools/msggen/src/index.js +1 -1
  399. package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +346 -1294
  400. package/ReactCommon/microprofiler/BUCK +1 -1
  401. package/ReactCommon/react/debug/react_native_assert.h +1 -1
  402. package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +8 -3
  403. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
  404. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
  405. package/ReactCommon/react/renderer/animations/conversions.h +11 -11
  406. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
  407. package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
  408. package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
  409. package/ReactCommon/react/renderer/attributedstring/conversions.h +39 -39
  410. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
  411. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +4 -2
  412. package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
  413. package/ReactCommon/react/renderer/components/text/conversions.h +4 -4
  414. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
  415. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
  416. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
  417. package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
  418. package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
  419. package/ReactCommon/react/renderer/components/view/ViewProps.h +3 -1
  420. package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
  421. package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -5
  422. package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +26 -17
  423. package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
  424. package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
  425. package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
  426. package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
  427. package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -7
  428. package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
  429. package/ReactCommon/react/renderer/core/EventDispatcher.cpp +21 -0
  430. package/ReactCommon/react/renderer/core/EventDispatcher.h +15 -0
  431. package/ReactCommon/react/renderer/core/EventListener.cpp +39 -0
  432. package/ReactCommon/react/renderer/core/EventListener.h +44 -0
  433. package/ReactCommon/react/renderer/core/Props.h +0 -4
  434. package/ReactCommon/react/renderer/core/RawProps.h +1 -1
  435. package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
  436. package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
  437. package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
  438. package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
  439. package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
  440. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
  441. package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
  442. package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +64 -85
  443. package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +101 -27
  444. package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +86 -165
  445. package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +22 -57
  446. package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +36 -26
  447. package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
  448. package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
  449. package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
  450. package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
  451. package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
  452. package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
  453. package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +6 -9
  454. package/ReactCommon/react/renderer/mounting/TelemetryController.h +7 -7
  455. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +10 -19
  456. package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +37 -13
  457. package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +1 -1
  458. package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
  459. package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +4 -11
  460. package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +1 -0
  461. package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +19 -2
  462. package/ReactCommon/react/renderer/scheduler/Scheduler.h +10 -1
  463. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +8 -8
  464. package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +4 -0
  465. package/ReactCommon/react/utils/ContextContainer.h +2 -2
  466. package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
  467. package/ReactCommon/react/utils/ManagedObjectWrapper.mm +1 -3
  468. package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
  469. package/ReactCommon/yoga/Yoga.podspec +1 -1
  470. package/jest/assetFileTransformer.js +2 -2
  471. package/jest/mockModal.js +2 -2
  472. package/jest/preprocessor.js +2 -2
  473. package/jest/setup.js +3 -3
  474. package/package.json +33 -73
  475. package/react.gradle +0 -4
  476. package/scripts/find-node.sh +7 -0
  477. package/scripts/generate-artifacts.js +21 -17
  478. package/scripts/react_native_pods.rb +7 -9
  479. package/scripts/react_native_pods_utils/script_phases.rb +2 -2
  480. package/scripts/react_native_pods_utils/script_phases.sh +1 -1
  481. package/template/App.js +4 -8
  482. package/template/Gemfile.lock +10 -10
  483. package/template/_flowconfig +1 -1
  484. package/template/_gitignore +2 -1
  485. package/template/android/build.gradle +1 -1
  486. package/template/android/gradle.properties +1 -1
  487. package/template/android/gradlew.bat +89 -89
  488. package/template/android/settings.gradle +1 -5
  489. package/template/ios/HelloWorldTests/HelloWorldTests.m +1 -0
  490. package/template/ios/Podfile +1 -0
  491. package/template/package.json +3 -3
  492. package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -113
  493. package/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js +0 -76
  494. package/Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType.js +0 -28
  495. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +0 -131
  496. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.ios.js +0 -82
  497. package/Libraries/DeprecatedPropTypes/DeprecatedImageSourcePropType.js +0 -40
  498. package/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js +0 -76
  499. package/Libraries/DeprecatedPropTypes/DeprecatedLayoutPropTypes.js +0 -233
  500. package/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js +0 -24
  501. package/Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js +0 -30
  502. package/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js +0 -32
  503. package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +0 -693
  504. package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
  505. package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -168
  506. package/Libraries/DeprecatedPropTypes/DeprecatedTransformPropTypes.js +0 -99
  507. package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +0 -46
  508. package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +0 -408
  509. package/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js +0 -68
  510. package/Libraries/DeprecatedPropTypes/deprecatedCreateStrictShapeTypeChecker.js +0 -86
  511. package/Libraries/Types/RootTagTypes.js~merged +0 -23
  512. package/ReactCommon/butter/optional.h +0 -38
  513. package/ReactCommon/react/renderer/mapbuffer/primitives.h +0 -91
  514. package/ReactCommon/react/renderer/mounting/MountingTransactionMetadata.h +0 -32
  515. package/flow-typed/npm/prop-types_v15.x.x.js +0 -42
  516. package/third-party-podspecs/boost-for-react-native.podspec +0 -20
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<6b9c0ba969139d6ee3eb09f15762393c>>
10
+ * @generated SignedSource<<3ab224d749aabfd2af41824a03d0c6ce>>
11
11
  */
12
12
 
13
13
  'use strict';
@@ -4252,6 +4252,7 @@ function reenableLogs() {
4252
4252
 
4253
4253
  var rendererID = null;
4254
4254
  var injectedHook = null;
4255
+ var injectedProfilingHooks = null;
4255
4256
  var hasLoggedError = false;
4256
4257
  var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined";
4257
4258
  function injectInternals(internals) {
@@ -4282,7 +4283,12 @@ function injectInternals(internals) {
4282
4283
  }
4283
4284
 
4284
4285
  try {
4285
- rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
4286
+ rendererID = hook.inject(
4287
+ Object.assign({}, internals, {
4288
+ getLaneLabelMap: getLaneLabelMap,
4289
+ injectProfilingHooks: injectProfilingHooks
4290
+ })
4291
+ ); // We have successfully injected, so now it is safe to set up hooks.
4286
4292
 
4287
4293
  injectedHook = hook;
4288
4294
  } catch (err) {
@@ -4409,6 +4415,272 @@ function setIsStrictModeForDevtools(newIsStrictMode) {
4409
4415
  reenableLogs();
4410
4416
  }
4411
4417
  }
4418
+ } // Profiler API hooks
4419
+
4420
+ function injectProfilingHooks(profilingHooks) {
4421
+ injectedProfilingHooks = profilingHooks;
4422
+ }
4423
+
4424
+ function getLaneLabelMap() {
4425
+ var map = new Map();
4426
+ var lane = 1;
4427
+
4428
+ for (var index = 0; index < TotalLanes; index++) {
4429
+ var label = getLabelForLane(lane);
4430
+ map.set(lane, label);
4431
+ lane *= 2;
4432
+ }
4433
+
4434
+ return map;
4435
+ }
4436
+
4437
+ function markCommitStarted(lanes) {
4438
+ {
4439
+ if (
4440
+ injectedProfilingHooks !== null &&
4441
+ typeof injectedProfilingHooks.markCommitStarted === "function"
4442
+ ) {
4443
+ injectedProfilingHooks.markCommitStarted(lanes);
4444
+ }
4445
+ }
4446
+ }
4447
+ function markCommitStopped() {
4448
+ {
4449
+ if (
4450
+ injectedProfilingHooks !== null &&
4451
+ typeof injectedProfilingHooks.markCommitStopped === "function"
4452
+ ) {
4453
+ injectedProfilingHooks.markCommitStopped();
4454
+ }
4455
+ }
4456
+ }
4457
+ function markComponentRenderStarted(fiber) {
4458
+ {
4459
+ if (
4460
+ injectedProfilingHooks !== null &&
4461
+ typeof injectedProfilingHooks.markComponentRenderStarted === "function"
4462
+ ) {
4463
+ injectedProfilingHooks.markComponentRenderStarted(fiber);
4464
+ }
4465
+ }
4466
+ }
4467
+ function markComponentRenderStopped() {
4468
+ {
4469
+ if (
4470
+ injectedProfilingHooks !== null &&
4471
+ typeof injectedProfilingHooks.markComponentRenderStopped === "function"
4472
+ ) {
4473
+ injectedProfilingHooks.markComponentRenderStopped();
4474
+ }
4475
+ }
4476
+ }
4477
+ function markComponentPassiveEffectMountStarted(fiber) {
4478
+ {
4479
+ if (
4480
+ injectedProfilingHooks !== null &&
4481
+ typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted ===
4482
+ "function"
4483
+ ) {
4484
+ injectedProfilingHooks.markComponentPassiveEffectMountStarted(fiber);
4485
+ }
4486
+ }
4487
+ }
4488
+ function markComponentPassiveEffectMountStopped() {
4489
+ {
4490
+ if (
4491
+ injectedProfilingHooks !== null &&
4492
+ typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped ===
4493
+ "function"
4494
+ ) {
4495
+ injectedProfilingHooks.markComponentPassiveEffectMountStopped();
4496
+ }
4497
+ }
4498
+ }
4499
+ function markComponentPassiveEffectUnmountStarted(fiber) {
4500
+ {
4501
+ if (
4502
+ injectedProfilingHooks !== null &&
4503
+ typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted ===
4504
+ "function"
4505
+ ) {
4506
+ injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(fiber);
4507
+ }
4508
+ }
4509
+ }
4510
+ function markComponentPassiveEffectUnmountStopped() {
4511
+ {
4512
+ if (
4513
+ injectedProfilingHooks !== null &&
4514
+ typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped ===
4515
+ "function"
4516
+ ) {
4517
+ injectedProfilingHooks.markComponentPassiveEffectUnmountStopped();
4518
+ }
4519
+ }
4520
+ }
4521
+ function markComponentLayoutEffectMountStarted(fiber) {
4522
+ {
4523
+ if (
4524
+ injectedProfilingHooks !== null &&
4525
+ typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted ===
4526
+ "function"
4527
+ ) {
4528
+ injectedProfilingHooks.markComponentLayoutEffectMountStarted(fiber);
4529
+ }
4530
+ }
4531
+ }
4532
+ function markComponentLayoutEffectMountStopped() {
4533
+ {
4534
+ if (
4535
+ injectedProfilingHooks !== null &&
4536
+ typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped ===
4537
+ "function"
4538
+ ) {
4539
+ injectedProfilingHooks.markComponentLayoutEffectMountStopped();
4540
+ }
4541
+ }
4542
+ }
4543
+ function markComponentLayoutEffectUnmountStarted(fiber) {
4544
+ {
4545
+ if (
4546
+ injectedProfilingHooks !== null &&
4547
+ typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted ===
4548
+ "function"
4549
+ ) {
4550
+ injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
4551
+ }
4552
+ }
4553
+ }
4554
+ function markComponentLayoutEffectUnmountStopped() {
4555
+ {
4556
+ if (
4557
+ injectedProfilingHooks !== null &&
4558
+ typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped ===
4559
+ "function"
4560
+ ) {
4561
+ injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
4562
+ }
4563
+ }
4564
+ }
4565
+ function markComponentErrored(fiber, thrownValue, lanes) {
4566
+ {
4567
+ if (
4568
+ injectedProfilingHooks !== null &&
4569
+ typeof injectedProfilingHooks.markComponentErrored === "function"
4570
+ ) {
4571
+ injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);
4572
+ }
4573
+ }
4574
+ }
4575
+ function markComponentSuspended(fiber, wakeable, lanes) {
4576
+ {
4577
+ if (
4578
+ injectedProfilingHooks !== null &&
4579
+ typeof injectedProfilingHooks.markComponentSuspended === "function"
4580
+ ) {
4581
+ injectedProfilingHooks.markComponentSuspended(fiber, wakeable, lanes);
4582
+ }
4583
+ }
4584
+ }
4585
+ function markLayoutEffectsStarted(lanes) {
4586
+ {
4587
+ if (
4588
+ injectedProfilingHooks !== null &&
4589
+ typeof injectedProfilingHooks.markLayoutEffectsStarted === "function"
4590
+ ) {
4591
+ injectedProfilingHooks.markLayoutEffectsStarted(lanes);
4592
+ }
4593
+ }
4594
+ }
4595
+ function markLayoutEffectsStopped() {
4596
+ {
4597
+ if (
4598
+ injectedProfilingHooks !== null &&
4599
+ typeof injectedProfilingHooks.markLayoutEffectsStopped === "function"
4600
+ ) {
4601
+ injectedProfilingHooks.markLayoutEffectsStopped();
4602
+ }
4603
+ }
4604
+ }
4605
+ function markPassiveEffectsStarted(lanes) {
4606
+ {
4607
+ if (
4608
+ injectedProfilingHooks !== null &&
4609
+ typeof injectedProfilingHooks.markPassiveEffectsStarted === "function"
4610
+ ) {
4611
+ injectedProfilingHooks.markPassiveEffectsStarted(lanes);
4612
+ }
4613
+ }
4614
+ }
4615
+ function markPassiveEffectsStopped() {
4616
+ {
4617
+ if (
4618
+ injectedProfilingHooks !== null &&
4619
+ typeof injectedProfilingHooks.markPassiveEffectsStopped === "function"
4620
+ ) {
4621
+ injectedProfilingHooks.markPassiveEffectsStopped();
4622
+ }
4623
+ }
4624
+ }
4625
+ function markRenderStarted(lanes) {
4626
+ {
4627
+ if (
4628
+ injectedProfilingHooks !== null &&
4629
+ typeof injectedProfilingHooks.markRenderStarted === "function"
4630
+ ) {
4631
+ injectedProfilingHooks.markRenderStarted(lanes);
4632
+ }
4633
+ }
4634
+ }
4635
+ function markRenderYielded() {
4636
+ {
4637
+ if (
4638
+ injectedProfilingHooks !== null &&
4639
+ typeof injectedProfilingHooks.markRenderYielded === "function"
4640
+ ) {
4641
+ injectedProfilingHooks.markRenderYielded();
4642
+ }
4643
+ }
4644
+ }
4645
+ function markRenderStopped() {
4646
+ {
4647
+ if (
4648
+ injectedProfilingHooks !== null &&
4649
+ typeof injectedProfilingHooks.markRenderStopped === "function"
4650
+ ) {
4651
+ injectedProfilingHooks.markRenderStopped();
4652
+ }
4653
+ }
4654
+ }
4655
+ function markRenderScheduled(lane) {
4656
+ {
4657
+ if (
4658
+ injectedProfilingHooks !== null &&
4659
+ typeof injectedProfilingHooks.markRenderScheduled === "function"
4660
+ ) {
4661
+ injectedProfilingHooks.markRenderScheduled(lane);
4662
+ }
4663
+ }
4664
+ }
4665
+ function markForceUpdateScheduled(fiber, lane) {
4666
+ {
4667
+ if (
4668
+ injectedProfilingHooks !== null &&
4669
+ typeof injectedProfilingHooks.markForceUpdateScheduled === "function"
4670
+ ) {
4671
+ injectedProfilingHooks.markForceUpdateScheduled(fiber, lane);
4672
+ }
4673
+ }
4674
+ }
4675
+ function markStateUpdateScheduled(fiber, lane) {
4676
+ {
4677
+ if (
4678
+ injectedProfilingHooks !== null &&
4679
+ typeof injectedProfilingHooks.markStateUpdateScheduled === "function"
4680
+ ) {
4681
+ injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
4682
+ }
4683
+ }
4412
4684
  }
4413
4685
 
4414
4686
  var NoMode =
@@ -6242,358 +6514,6 @@ function flushSyncCallbacks() {
6242
6514
  return null;
6243
6515
  }
6244
6516
 
6245
- var ReactVersion = "18.0.0-rc.0-fe905f152-20220107";
6246
-
6247
- var SCHEDULING_PROFILER_VERSION = 1;
6248
-
6249
- var getLabelForLane$1 = getLabelForLane;
6250
- var TotalLanes$1 = TotalLanes;
6251
- /**
6252
- * If performance exists and supports the subset of the User Timing API that we
6253
- * require.
6254
- */
6255
-
6256
- var supportsUserTiming =
6257
- typeof performance !== "undefined" &&
6258
- typeof performance.mark === "function" &&
6259
- typeof performance.clearMarks === "function";
6260
- var supportsUserTimingV3 = false;
6261
-
6262
- {
6263
- if (supportsUserTiming) {
6264
- var CHECK_V3_MARK = "__v3";
6265
- var markOptions = {}; // $FlowFixMe: Ignore Flow complaining about needing a value
6266
-
6267
- Object.defineProperty(markOptions, "startTime", {
6268
- get: function() {
6269
- supportsUserTimingV3 = true;
6270
- return 0;
6271
- },
6272
- set: function() {}
6273
- });
6274
-
6275
- try {
6276
- // $FlowFixMe: Flow expects the User Timing level 2 API.
6277
- performance.mark(CHECK_V3_MARK, markOptions);
6278
- } catch (error) {
6279
- // Ignore
6280
- } finally {
6281
- performance.clearMarks(CHECK_V3_MARK);
6282
- }
6283
- }
6284
- }
6285
-
6286
- var laneLabels = [];
6287
- function getLaneLabels() {
6288
- if (laneLabels.length === 0) {
6289
- var lane = 1;
6290
-
6291
- for (var index = 0; index < TotalLanes$1; index++) {
6292
- laneLabels.push(getLabelForLane$1(lane));
6293
- lane *= 2;
6294
- }
6295
- }
6296
-
6297
- return laneLabels;
6298
- }
6299
-
6300
- function markLaneToLabelMetadata() {
6301
- getLaneLabels();
6302
- markAndClear("--react-lane-labels-" + laneLabels.join(","));
6303
- }
6304
-
6305
- function markAndClear(name) {
6306
- performance.mark(name);
6307
- performance.clearMarks(name);
6308
- }
6309
-
6310
- function markVersionMetadata() {
6311
- markAndClear("--react-version-" + ReactVersion);
6312
- markAndClear("--profiler-version-" + SCHEDULING_PROFILER_VERSION);
6313
- }
6314
-
6315
- function markInternalModuleRanges() {
6316
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
6317
- if (
6318
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" &&
6319
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges === "function"
6320
- ) {
6321
- var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges(); // This check would not be required,
6322
- // except that it's possible for things to override __REACT_DEVTOOLS_GLOBAL_HOOK__.
6323
-
6324
- if (isArray(ranges)) {
6325
- for (var i = 0; i < ranges.length; i++) {
6326
- var range = ranges[i];
6327
-
6328
- if (isArray(range) && range.length === 2) {
6329
- var _ranges$i = ranges[i],
6330
- startStackFrame = _ranges$i[0],
6331
- stopStackFrame = _ranges$i[1];
6332
- markAndClear("--react-internal-module-start-" + startStackFrame);
6333
- markAndClear("--react-internal-module-stop-" + stopStackFrame);
6334
- }
6335
- }
6336
- }
6337
- }
6338
- }
6339
-
6340
- function markCommitStarted(lanes) {
6341
- {
6342
- if (supportsUserTimingV3) {
6343
- markAndClear("--commit-start-" + lanes); // Certain types of metadata should be logged infrequently.
6344
- // Normally we would log this during module init,
6345
- // but there's no guarantee a user is profiling at that time.
6346
- // Commits happen infrequently (less than renders or state updates)
6347
- // so we log this extra information along with a commit.
6348
- // It will likely be logged more than once but that's okay.
6349
- //
6350
- // TODO Once DevTools supports starting/stopping the profiler,
6351
- // we can log this data only once (when started) and remove the per-commit logging.
6352
-
6353
- markVersionMetadata();
6354
- markLaneToLabelMetadata();
6355
- markInternalModuleRanges();
6356
- }
6357
- }
6358
- }
6359
- function markCommitStopped() {
6360
- {
6361
- if (supportsUserTimingV3) {
6362
- markAndClear("--commit-stop");
6363
- }
6364
- }
6365
- }
6366
- function markComponentRenderStarted(fiber) {
6367
- {
6368
- if (supportsUserTimingV3) {
6369
- var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
6370
-
6371
- markAndClear("--component-render-start-" + componentName);
6372
- }
6373
- }
6374
- }
6375
- function markComponentRenderStopped() {
6376
- {
6377
- if (supportsUserTimingV3) {
6378
- markAndClear("--component-render-stop");
6379
- }
6380
- }
6381
- }
6382
- function markComponentPassiveEffectMountStarted(fiber) {
6383
- {
6384
- if (supportsUserTimingV3) {
6385
- var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
6386
-
6387
- markAndClear("--component-passive-effect-mount-start-" + componentName);
6388
- }
6389
- }
6390
- }
6391
- function markComponentPassiveEffectMountStopped() {
6392
- {
6393
- if (supportsUserTimingV3) {
6394
- markAndClear("--component-passive-effect-mount-stop");
6395
- }
6396
- }
6397
- }
6398
- function markComponentPassiveEffectUnmountStarted(fiber) {
6399
- {
6400
- if (supportsUserTimingV3) {
6401
- var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
6402
-
6403
- markAndClear("--component-passive-effect-unmount-start-" + componentName);
6404
- }
6405
- }
6406
- }
6407
- function markComponentPassiveEffectUnmountStopped() {
6408
- {
6409
- if (supportsUserTimingV3) {
6410
- markAndClear("--component-passive-effect-unmount-stop");
6411
- }
6412
- }
6413
- }
6414
- function markComponentLayoutEffectMountStarted(fiber) {
6415
- {
6416
- if (supportsUserTimingV3) {
6417
- var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
6418
-
6419
- markAndClear("--component-layout-effect-mount-start-" + componentName);
6420
- }
6421
- }
6422
- }
6423
- function markComponentLayoutEffectMountStopped() {
6424
- {
6425
- if (supportsUserTimingV3) {
6426
- markAndClear("--component-layout-effect-mount-stop");
6427
- }
6428
- }
6429
- }
6430
- function markComponentLayoutEffectUnmountStarted(fiber) {
6431
- {
6432
- if (supportsUserTimingV3) {
6433
- var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
6434
-
6435
- markAndClear("--component-layout-effect-unmount-start-" + componentName);
6436
- }
6437
- }
6438
- }
6439
- function markComponentLayoutEffectUnmountStopped() {
6440
- {
6441
- if (supportsUserTimingV3) {
6442
- markAndClear("--component-layout-effect-unmount-stop");
6443
- }
6444
- }
6445
- }
6446
- function markComponentErrored(fiber, thrownValue, lanes) {
6447
- {
6448
- if (supportsUserTimingV3) {
6449
- var componentName = getComponentNameFromFiber(fiber) || "Unknown";
6450
- var phase = fiber.alternate === null ? "mount" : "update";
6451
- var message = "";
6452
-
6453
- if (
6454
- thrownValue !== null &&
6455
- typeof thrownValue === "object" &&
6456
- typeof thrownValue.message === "string"
6457
- ) {
6458
- message = thrownValue.message;
6459
- } else if (typeof thrownValue === "string") {
6460
- message = thrownValue;
6461
- } // TODO (timeline) Add component stack id
6462
-
6463
- markAndClear("--error-" + componentName + "-" + phase + "-" + message);
6464
- }
6465
- }
6466
- }
6467
- var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; // $FlowFixMe: Flow cannot handle polymorphic WeakMaps
6468
-
6469
- var wakeableIDs = new PossiblyWeakMap$1();
6470
- var wakeableID = 0;
6471
-
6472
- function getWakeableID(wakeable) {
6473
- if (!wakeableIDs.has(wakeable)) {
6474
- wakeableIDs.set(wakeable, wakeableID++);
6475
- }
6476
-
6477
- return wakeableIDs.get(wakeable);
6478
- }
6479
-
6480
- function markComponentSuspended(fiber, wakeable, lanes) {
6481
- {
6482
- if (supportsUserTimingV3) {
6483
- var eventType = wakeableIDs.has(wakeable) ? "resuspend" : "suspend";
6484
- var id = getWakeableID(wakeable);
6485
- var componentName = getComponentNameFromFiber(fiber) || "Unknown";
6486
- var phase = fiber.alternate === null ? "mount" : "update"; // Following the non-standard fn.displayName convention,
6487
- // frameworks like Relay may also annotate Promises with a displayName,
6488
- // describing what operation/data the thrown Promise is related to.
6489
- // When this is available we should pass it along to the Timeline.
6490
-
6491
- var displayName = wakeable.displayName || ""; // TODO (timeline) Add component stack id
6492
-
6493
- markAndClear(
6494
- "--suspense-" +
6495
- eventType +
6496
- "-" +
6497
- id +
6498
- "-" +
6499
- componentName +
6500
- "-" +
6501
- phase +
6502
- "-" +
6503
- lanes +
6504
- "-" +
6505
- displayName
6506
- );
6507
- wakeable.then(
6508
- function() {
6509
- return markAndClear(
6510
- "--suspense-resolved-" + id + "-" + componentName
6511
- );
6512
- },
6513
- function() {
6514
- return markAndClear(
6515
- "--suspense-rejected-" + id + "-" + componentName
6516
- );
6517
- }
6518
- );
6519
- }
6520
- }
6521
- }
6522
- function markLayoutEffectsStarted(lanes) {
6523
- {
6524
- if (supportsUserTimingV3) {
6525
- markAndClear("--layout-effects-start-" + lanes);
6526
- }
6527
- }
6528
- }
6529
- function markLayoutEffectsStopped() {
6530
- {
6531
- if (supportsUserTimingV3) {
6532
- markAndClear("--layout-effects-stop");
6533
- }
6534
- }
6535
- }
6536
- function markPassiveEffectsStarted(lanes) {
6537
- {
6538
- if (supportsUserTimingV3) {
6539
- markAndClear("--passive-effects-start-" + lanes);
6540
- }
6541
- }
6542
- }
6543
- function markPassiveEffectsStopped() {
6544
- {
6545
- if (supportsUserTimingV3) {
6546
- markAndClear("--passive-effects-stop");
6547
- }
6548
- }
6549
- }
6550
- function markRenderStarted(lanes) {
6551
- {
6552
- if (supportsUserTimingV3) {
6553
- markAndClear("--render-start-" + lanes);
6554
- }
6555
- }
6556
- }
6557
- function markRenderYielded() {
6558
- {
6559
- if (supportsUserTimingV3) {
6560
- markAndClear("--render-yield");
6561
- }
6562
- }
6563
- }
6564
- function markRenderStopped() {
6565
- {
6566
- if (supportsUserTimingV3) {
6567
- markAndClear("--render-stop");
6568
- }
6569
- }
6570
- }
6571
- function markRenderScheduled(lane) {
6572
- {
6573
- if (supportsUserTimingV3) {
6574
- markAndClear("--schedule-render-" + lane);
6575
- }
6576
- }
6577
- }
6578
- function markForceUpdateScheduled(fiber, lane) {
6579
- {
6580
- if (supportsUserTimingV3) {
6581
- var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
6582
-
6583
- markAndClear("--schedule-forced-update-" + lane + "-" + componentName);
6584
- }
6585
- }
6586
- }
6587
- function markStateUpdateScheduled(fiber, lane) {
6588
- {
6589
- if (supportsUserTimingV3) {
6590
- var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
6591
-
6592
- markAndClear("--schedule-state-update-" + lane + "-" + componentName);
6593
- }
6594
- }
6595
- }
6596
-
6597
6517
  var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
6598
6518
  var NoTransition = 0;
6599
6519
  function requestCurrentTransition() {
@@ -13796,7 +13716,7 @@ function logCapturedError(boundary, errorInfo) {
13796
13716
  }
13797
13717
  }
13798
13718
 
13799
- var PossiblyWeakMap$2 = typeof WeakMap === "function" ? WeakMap : Map;
13719
+ var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map;
13800
13720
 
13801
13721
  function createRootErrorUpdate(fiber, errorInfo, lane) {
13802
13722
  var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.
@@ -13901,7 +13821,7 @@ function attachWakeableListeners(suspenseBoundary, root, wakeable, lanes) {
13901
13821
  var threadIDs;
13902
13822
 
13903
13823
  if (pingCache === null) {
13904
- pingCache = root.pingCache = new PossiblyWeakMap$2();
13824
+ pingCache = root.pingCache = new PossiblyWeakMap$1();
13905
13825
  threadIDs = new Set();
13906
13826
  pingCache.set(wakeable, threadIDs);
13907
13827
  } else {
@@ -24018,6 +23938,8 @@ function createFiberRoot(
24018
23938
  return root;
24019
23939
  }
24020
23940
 
23941
+ var ReactVersion = "18.0.0-rc.0-51947a14b-20220113";
23942
+
24021
23943
  function createPortal(
24022
23944
  children,
24023
23945
  containerInfo, // TODO: figure out the API for cross-renderer implementation.