@office-iss/react-native-win32 0.67.0-preview.2 → 0.68.0-preview.2

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 (619) hide show
  1. package/.eslintignore +2 -1
  2. package/.flowconfig +9 -2
  3. package/CHANGELOG.json +387 -17
  4. package/CHANGELOG.md +148 -12
  5. package/IntegrationTests/AccessibilityManagerTest.js +1 -1
  6. package/IntegrationTests/AppEventsTest.js +2 -1
  7. package/IntegrationTests/AsyncStorageTest.js +8 -6
  8. package/IntegrationTests/GlobalEvalWithSourceUrlTest.js +1 -1
  9. package/IntegrationTests/ImageCachePolicyTest.js +1 -1
  10. package/IntegrationTests/ImageSnapshotTest.js +1 -1
  11. package/IntegrationTests/IntegrationTestHarnessTest.js +8 -6
  12. package/IntegrationTests/IntegrationTestsApp.js +3 -9
  13. package/IntegrationTests/LayoutEventsTest.js +1 -1
  14. package/IntegrationTests/LoggingTestModule.js +8 -8
  15. package/IntegrationTests/PromiseTest.js +1 -1
  16. package/IntegrationTests/PropertiesUpdateTest.js +1 -1
  17. package/IntegrationTests/RCTRootViewIntegrationTestApp.js +3 -9
  18. package/IntegrationTests/ReactContentSizeUpdateTest.js +1 -1
  19. package/IntegrationTests/SimpleSnapshotTest.js +1 -1
  20. package/IntegrationTests/SizeFlexibilityUpdateTest.js +1 -1
  21. package/IntegrationTests/SyncMethodTest.js +1 -1
  22. package/IntegrationTests/TimersTest.js +1 -1
  23. package/IntegrationTests/WebSocketTest.js +2 -2
  24. package/IntegrationTests/launchWebSocketServer.command +1 -1
  25. package/IntegrationTests/websocket_integration_test_server.js +1 -1
  26. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +4 -4
  27. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -1
  28. package/Libraries/Alert/Alert.js +4 -4
  29. package/Libraries/Alert/Alert.win32.js +3 -3
  30. package/Libraries/Alert/NativeAlertManager.js +1 -1
  31. package/Libraries/Alert/RCTAlertManager.android.js +2 -2
  32. package/Libraries/Alert/RCTAlertManager.ios.js +1 -1
  33. package/Libraries/Animated/Animated.js +1 -1
  34. package/Libraries/Animated/AnimatedEvent.js +11 -6
  35. package/Libraries/Animated/AnimatedImplementation.js +116 -85
  36. package/Libraries/Animated/AnimatedMock.js +65 -22
  37. package/Libraries/{Components/Touchable/__mocks__/ensureComponentIsNative.js → Animated/AnimatedPlatformConfig.js} +3 -2
  38. package/Libraries/Animated/AnimatedWeb.js +1 -1
  39. package/Libraries/Animated/Easing.js +38 -40
  40. package/Libraries/Animated/NativeAnimatedHelper.js +24 -21
  41. package/Libraries/Animated/NativeAnimatedModule.js +1 -1
  42. package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -1
  43. package/Libraries/Animated/SpringConfig.js +11 -11
  44. package/Libraries/Animated/animations/Animation.js +6 -4
  45. package/Libraries/Animated/animations/DecayAnimation.js +6 -1
  46. package/Libraries/Animated/animations/SpringAnimation.js +16 -1
  47. package/Libraries/Animated/animations/TimingAnimation.js +15 -2
  48. package/Libraries/Animated/bezier.js +20 -9
  49. package/Libraries/Animated/components/AnimatedFlatList.js +1 -1
  50. package/Libraries/Animated/components/AnimatedImage.js +1 -1
  51. package/Libraries/Animated/components/AnimatedScrollView.js +1 -1
  52. package/Libraries/Animated/components/AnimatedSectionList.js +1 -1
  53. package/Libraries/Animated/components/AnimatedText.js +1 -1
  54. package/Libraries/Animated/components/AnimatedView.js +1 -1
  55. package/Libraries/Animated/createAnimatedComponent.js +4 -4
  56. package/Libraries/Animated/createAnimatedComponentInjection.js +1 -1
  57. package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +1 -1
  58. package/Libraries/Animated/nodes/AnimatedAddition.js +6 -5
  59. package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
  60. package/Libraries/Animated/nodes/AnimatedDiffClamp.js +5 -4
  61. package/Libraries/Animated/nodes/AnimatedDivision.js +6 -5
  62. package/Libraries/Animated/nodes/AnimatedInterpolation.js +8 -6
  63. package/Libraries/Animated/nodes/AnimatedModulo.js +5 -4
  64. package/Libraries/Animated/nodes/AnimatedMultiplication.js +6 -5
  65. package/Libraries/Animated/nodes/AnimatedNode.js +31 -18
  66. package/Libraries/Animated/nodes/AnimatedProps.js +12 -4
  67. package/Libraries/Animated/nodes/AnimatedStyle.js +9 -7
  68. package/Libraries/Animated/nodes/AnimatedSubtraction.js +6 -5
  69. package/Libraries/Animated/nodes/AnimatedTracking.js +8 -6
  70. package/Libraries/Animated/nodes/AnimatedTransform.js +6 -4
  71. package/Libraries/Animated/nodes/AnimatedValue.js +21 -12
  72. package/Libraries/Animated/nodes/AnimatedValueXY.js +14 -14
  73. package/Libraries/Animated/nodes/AnimatedWithChildren.js +6 -5
  74. package/Libraries/Animated/useAnimatedProps.js +1 -1
  75. package/Libraries/AppState/AppState.js +9 -8
  76. package/Libraries/AppState/NativeAppState.js +1 -1
  77. package/Libraries/BatchedBridge/BatchedBridge.js +1 -1
  78. package/Libraries/BatchedBridge/MessageQueue.js +7 -9
  79. package/Libraries/BatchedBridge/NativeModules.js +1 -1
  80. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +1 -1
  81. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +3 -3
  82. package/Libraries/Blob/Blob.js +1 -1
  83. package/Libraries/Blob/BlobManager.js +1 -1
  84. package/Libraries/Blob/BlobRegistry.js +1 -1
  85. package/Libraries/Blob/BlobTypes.js +1 -1
  86. package/Libraries/Blob/File.js +1 -1
  87. package/Libraries/Blob/FileReader.js +1 -1
  88. package/Libraries/Blob/NativeBlobModule.js +1 -1
  89. package/Libraries/Blob/NativeFileReaderModule.js +1 -1
  90. package/Libraries/Blob/URL.js +26 -21
  91. package/Libraries/Blob/__mocks__/BlobModule.js +1 -1
  92. package/Libraries/Blob/__mocks__/FileReaderModule.js +1 -1
  93. package/Libraries/BugReporting/BugReporting.js +1 -1
  94. package/Libraries/BugReporting/NativeBugReporting.js +1 -1
  95. package/Libraries/BugReporting/dumpReactTree.js +1 -1
  96. package/Libraries/BugReporting/getReactData.js +15 -6
  97. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +89 -29
  98. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +95 -35
  99. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +4 -1
  100. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +5 -1
  101. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js +1 -1
  102. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js +1 -1
  103. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.win32.js +1 -1
  104. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -1
  105. package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +5 -5
  106. package/Libraries/Components/Button.js +1 -1
  107. package/Libraries/Components/Clipboard/Clipboard.js +1 -1
  108. package/Libraries/Components/Clipboard/NativeClipboard.js +1 -1
  109. package/Libraries/Components/DatePicker/DatePickerIOS.android.js +1 -1
  110. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +18 -2
  111. package/Libraries/Components/DatePicker/DatePickerIOS.win32.js +1 -1
  112. package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +1 -1
  113. package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +1 -1
  114. package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +3 -3
  115. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +5 -4
  116. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js +1 -1
  117. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +1 -1
  118. package/Libraries/Components/Keyboard/Keyboard.js +9 -8
  119. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +11 -6
  120. package/Libraries/Components/Keyboard/NativeKeyboardObserver.js +1 -1
  121. package/Libraries/Components/MaskedView/MaskedViewIOS.android.js +1 -1
  122. package/Libraries/Components/MaskedView/MaskedViewIOS.ios.js +1 -1
  123. package/Libraries/Components/MaskedView/MaskedViewIOS.win32.js +1 -1
  124. package/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js +1 -1
  125. package/Libraries/Components/Pressable/Pressable.js +38 -2
  126. package/Libraries/Components/Pressable/Pressable.win32.js +384 -0
  127. package/Libraries/Components/Pressable/useAndroidRippleForView.js +1 -1
  128. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +6 -5
  129. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js +1 -1
  130. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +1 -1
  131. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +1 -1
  132. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +1 -1
  133. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +3 -2
  134. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.win32.js +1 -1
  135. package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +1 -1
  136. package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +1 -2
  137. package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +1 -1
  138. package/Libraries/Components/RefreshControl/RefreshControl.js +3 -8
  139. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +3 -4
  140. package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +1 -1
  141. package/Libraries/Components/SafeAreaView/SafeAreaView.js +3 -3
  142. package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +3 -3
  143. package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +3 -1
  144. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +16 -6
  145. package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +4 -6
  146. package/Libraries/Components/ScrollView/ScrollView.js +22 -15
  147. package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
  148. package/Libraries/Components/ScrollView/ScrollViewContext.js +1 -1
  149. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +135 -71
  150. package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +2 -1
  151. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +2 -2
  152. package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +2 -1
  153. package/Libraries/Components/ScrollView/processDecelerationRate.js +1 -1
  154. package/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js +1 -1
  155. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +1 -1
  156. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +3 -9
  157. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.js +1 -1
  158. package/Libraries/Components/Slider/Slider.js +1 -1
  159. package/Libraries/Components/Slider/SliderNativeComponent.js +3 -3
  160. package/Libraries/Components/Sound/NativeSoundManager.js +1 -1
  161. package/Libraries/Components/Sound/SoundManager.js +2 -2
  162. package/Libraries/Components/StaticRenderer.js +1 -1
  163. package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -1
  164. package/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js +1 -1
  165. package/Libraries/Components/StatusBar/StatusBar.js +1 -1
  166. package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +1 -1
  167. package/Libraries/Components/Switch/Switch.js +1 -1
  168. package/Libraries/Components/Switch/SwitchNativeComponent.js +1 -1
  169. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +175 -14
  170. package/Libraries/Components/TextInput/InputAccessoryView.js +1 -1
  171. package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +1 -1
  172. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +10 -5
  173. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +6 -5
  174. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +32 -11
  175. package/Libraries/Components/TextInput/TextInput.js +131 -31
  176. package/Libraries/Components/TextInput/TextInputNativeCommands.js +1 -1
  177. package/Libraries/Components/TextInput/TextInputState.js +1 -1
  178. package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
  179. package/Libraries/Components/ToastAndroid/NativeToastAndroid.js +1 -1
  180. package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +4 -4
  181. package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +4 -4
  182. package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +4 -4
  183. package/Libraries/Components/Touchable/BoundingDimensions.js +3 -3
  184. package/Libraries/Components/Touchable/PooledClass.js +12 -12
  185. package/Libraries/Components/Touchable/Position.js +2 -2
  186. package/Libraries/Components/Touchable/Touchable.js +27 -40
  187. package/Libraries/Components/Touchable/TouchableBounce.js +3 -6
  188. package/Libraries/Components/Touchable/TouchableHighlight.js +3 -6
  189. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -12
  190. package/Libraries/Components/Touchable/TouchableOpacity.js +3 -7
  191. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +3 -6
  192. package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +1 -1
  193. package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
  194. package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -1
  195. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -1
  196. package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +1 -1
  197. package/Libraries/Components/View/ReactNativeViewViewConfig.js +13 -2
  198. package/Libraries/Components/View/ReactNativeViewViewConfig.win32.js +13 -2
  199. package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +1 -1
  200. package/Libraries/Components/View/View.js +1 -1
  201. package/Libraries/Components/View/View.win32.js +60 -4
  202. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  203. package/Libraries/Components/View/ViewNativeComponent.js +4 -5
  204. package/Libraries/Components/View/ViewPropTypes.js +38 -31
  205. package/Libraries/Components/View/ViewPropTypes.win32.js +553 -0
  206. package/Libraries/Core/Devtools/getDevServer.js +1 -1
  207. package/Libraries/Core/Devtools/openFileInEditor.js +1 -1
  208. package/Libraries/Core/Devtools/openURLInBrowser.js +1 -1
  209. package/Libraries/Core/Devtools/parseErrorStack.js +1 -1
  210. package/Libraries/Core/Devtools/parseHermesStack.js +3 -2
  211. package/Libraries/Core/Devtools/symbolicateStackTrace.js +1 -1
  212. package/Libraries/Core/ExceptionsManager.js +3 -3
  213. package/Libraries/Core/ExtendedError.js +1 -1
  214. package/Libraries/Core/InitializeCore.js +1 -3
  215. package/Libraries/Core/NativeExceptionsManager.js +3 -4
  216. package/Libraries/Core/ReactFiberErrorDialog.js +1 -1
  217. package/Libraries/Core/ReactNativeVersion.js +3 -3
  218. package/Libraries/Core/ReactNativeVersionCheck.js +12 -2
  219. package/Libraries/Core/ReactNativeVersionCheck.win32.js +12 -2
  220. package/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js +1 -1
  221. package/Libraries/Core/Timers/JSTimers.js +35 -42
  222. package/Libraries/Core/Timers/NativeTiming.js +1 -1
  223. package/Libraries/Core/Timers/immediateShim.js +1 -1
  224. package/Libraries/Core/Timers/queueMicrotask.js +1 -1
  225. package/Libraries/Core/__mocks__/ErrorUtils.js +1 -1
  226. package/Libraries/Core/checkNativeVersion.js +1 -1
  227. package/Libraries/Core/polyfillPromise.js +1 -1
  228. package/Libraries/Core/setUpAlert.js +2 -2
  229. package/Libraries/Core/setUpBatchedBridge.js +15 -3
  230. package/Libraries/Core/setUpDeveloperTools.js +2 -2
  231. package/Libraries/Core/setUpErrorHandling.js +2 -2
  232. package/Libraries/Core/setUpGlobals.js +1 -1
  233. package/Libraries/Core/setUpNavigator.js +1 -1
  234. package/Libraries/Core/setUpPerformance.js +2 -2
  235. package/Libraries/Core/setUpReactDevTools.js +1 -1
  236. package/Libraries/Core/setUpReactRefresh.js +1 -1
  237. package/Libraries/Core/setUpRegeneratorRuntime.js +2 -2
  238. package/Libraries/Core/setUpSegmentFetcher.js +5 -5
  239. package/Libraries/Core/setUpSystrace.js +1 -1
  240. package/Libraries/Core/setUpTimers.js +12 -2
  241. package/Libraries/Core/setUpXHR.js +1 -1
  242. package/Libraries/EventEmitter/NativeEventEmitter.js +3 -2
  243. package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +1 -1
  244. package/Libraries/EventEmitter/RCTEventEmitter.js +1 -1
  245. package/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +1 -1
  246. package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -2
  247. package/Libraries/HeapCapture/HeapCapture.js +2 -2
  248. package/Libraries/HeapCapture/NativeJSCHeapCapture.js +1 -1
  249. package/Libraries/Image/AssetRegistry.js +1 -1
  250. package/Libraries/Image/AssetSourceResolver.js +3 -5
  251. package/Libraries/Image/AssetUtils.js +1 -1
  252. package/Libraries/Image/Image.android.js +38 -30
  253. package/Libraries/Image/Image.ios.js +17 -20
  254. package/Libraries/Image/Image.win32.js +19 -22
  255. package/Libraries/Image/ImageAnalyticsTagContext.js +3 -4
  256. package/Libraries/Image/ImageBackground.js +11 -2
  257. package/Libraries/Image/ImageInjection.js +1 -1
  258. package/Libraries/Image/ImagePickerIOS.js +7 -7
  259. package/Libraries/Image/ImageProps.js +18 -18
  260. package/Libraries/Image/ImageResizeMode.js +1 -1
  261. package/Libraries/Image/ImageSource.js +1 -1
  262. package/Libraries/Image/ImageViewNativeComponent.js +96 -61
  263. package/Libraries/Image/NativeImageEditor.js +1 -1
  264. package/Libraries/Image/NativeImageLoaderAndroid.js +2 -4
  265. package/Libraries/Image/NativeImageLoaderIOS.js +1 -1
  266. package/Libraries/Image/NativeImageLoaderWin32.js +1 -1
  267. package/Libraries/Image/NativeImagePickerIOS.js +1 -1
  268. package/Libraries/Image/NativeImageStoreAndroid.js +1 -1
  269. package/Libraries/Image/NativeImageStoreIOS.js +1 -1
  270. package/Libraries/Image/RelativeImageStub.js +1 -1
  271. package/Libraries/Image/TextInlineImageNativeComponent.js +14 -74
  272. package/Libraries/Image/nativeImageSource.js +3 -3
  273. package/Libraries/Image/resolveAssetSource.js +1 -1
  274. package/Libraries/Image/resolveAssetSource.win32.js +1 -1
  275. package/Libraries/Inspector/BorderBox.js +1 -1
  276. package/Libraries/Inspector/BoxInspector.js +1 -1
  277. package/Libraries/Inspector/ElementBox.js +1 -1
  278. package/Libraries/Inspector/ElementProperties.js +1 -1
  279. package/Libraries/Inspector/Inspector.js +2 -2
  280. package/Libraries/Inspector/Inspector.win32.js +7 -7
  281. package/Libraries/Inspector/InspectorOverlay.js +1 -1
  282. package/Libraries/Inspector/InspectorOverlay.win32.js +1 -1
  283. package/Libraries/Inspector/InspectorPanel.js +1 -1
  284. package/Libraries/Inspector/NetworkOverlay.js +3 -6
  285. package/Libraries/Inspector/PerformanceOverlay.js +1 -1
  286. package/Libraries/Inspector/StyleInspector.js +1 -1
  287. package/Libraries/Inspector/resolveBoxStyle.js +1 -1
  288. package/Libraries/Interaction/Batchinator.js +1 -1
  289. package/Libraries/Interaction/BridgeSpyStallHandler.js +2 -2
  290. package/Libraries/Interaction/FrameRateLogger.js +3 -3
  291. package/Libraries/Interaction/InteractionManager.js +3 -5
  292. package/Libraries/Interaction/InteractionStallDebugger.js +1 -1
  293. package/Libraries/Interaction/JSEventLoopWatchdog.js +5 -5
  294. package/Libraries/Interaction/NativeFrameRateLogger.js +1 -1
  295. package/Libraries/Interaction/PanResponder.js +4 -5
  296. package/Libraries/Interaction/TaskQueue.js +1 -1
  297. package/Libraries/Interaction/TouchHistoryMath.js +8 -8
  298. package/Libraries/JSInspector/InspectorAgent.js +1 -1
  299. package/Libraries/JSInspector/JSInspector.js +1 -1
  300. package/Libraries/JSInspector/NetworkAgent.js +2 -7
  301. package/Libraries/LayoutAnimation/LayoutAnimation.js +4 -4
  302. package/Libraries/Linking/Linking.js +8 -8
  303. package/Libraries/Linking/NativeIntentAndroid.js +1 -1
  304. package/Libraries/Linking/NativeLinkingManager.js +1 -1
  305. package/Libraries/Lists/CellRenderMask.js +1 -1
  306. package/Libraries/Lists/FillRateHelper.js +5 -4
  307. package/Libraries/Lists/FlatList.js +4 -5
  308. package/Libraries/Lists/SectionList.js +4 -4
  309. package/Libraries/Lists/SectionListModern.js +4 -4
  310. package/Libraries/Lists/ViewabilityHelper.js +5 -11
  311. package/Libraries/Lists/VirtualizeUtils.js +3 -7
  312. package/Libraries/Lists/VirtualizedList.js +23 -33
  313. package/Libraries/Lists/VirtualizedListContext.js +3 -4
  314. package/Libraries/Lists/VirtualizedSectionList.js +54 -63
  315. package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +1 -1
  316. package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
  317. package/Libraries/Lists/__tests__/CellRenderMask-test.js +1 -1
  318. package/Libraries/Lists/__tests__/{FillRateHelper-test.js → FillRateHelper-test.windows.js} +8 -8
  319. package/Libraries/Lists/__tests__/{FlatList-test.js → FlatList-test.windows.js} +3 -3
  320. package/Libraries/Lists/__tests__/{SectionList-test.js → SectionList-test.windows.js} +15 -15
  321. package/Libraries/Lists/__tests__/ViewabilityHelper-test.js +15 -15
  322. package/Libraries/Lists/__tests__/{VirtualizeUtils-test.js → VirtualizeUtils-test.windows.js} +19 -22
  323. package/Libraries/Lists/__tests__/{VirtualizedList-test.js → VirtualizedList-test.windows.js} +32 -32
  324. package/Libraries/Lists/__tests__/{VirtualizedSectionList-test.js → VirtualizedSectionList-test.windows.js} +15 -15
  325. package/Libraries/LogBox/Data/LogBoxData.js +2 -2
  326. package/Libraries/LogBox/Data/LogBoxLog.js +1 -1
  327. package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
  328. package/Libraries/LogBox/Data/parseLogBoxLog.js +13 -24
  329. package/Libraries/LogBox/LogBox.js +4 -4
  330. package/Libraries/LogBox/LogBoxInspectorContainer.js +1 -1
  331. package/Libraries/LogBox/LogBoxNotificationContainer.js +1 -1
  332. package/Libraries/LogBox/UI/AnsiHighlight.js +10 -5
  333. package/Libraries/LogBox/UI/LogBoxButton.js +1 -1
  334. package/Libraries/LogBox/UI/LogBoxInspector.js +4 -2
  335. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +1 -1
  336. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -1
  337. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
  338. package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +1 -1
  339. package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +1 -1
  340. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +2 -2
  341. package/Libraries/LogBox/UI/LogBoxInspectorSection.js +1 -1
  342. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -2
  343. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -2
  344. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +2 -2
  345. package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +4 -2
  346. package/Libraries/LogBox/UI/LogBoxMessage.js +7 -3
  347. package/Libraries/LogBox/UI/LogBoxNotification.js +7 -4
  348. package/Libraries/LogBox/UI/LogBoxStyle.js +1 -1
  349. package/Libraries/LogBox/UI/LogBoxStyle.win32.js +1 -1
  350. package/Libraries/Modal/Modal.js +15 -14
  351. package/Libraries/Modal/ModalInjection.js +1 -1
  352. package/Libraries/Modal/NativeModalManager.js +1 -1
  353. package/Libraries/Modal/RCTModalHostViewNativeComponent.js +12 -12
  354. package/Libraries/NativeComponent/NativeComponentRegistry.js +30 -33
  355. package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +27 -0
  356. package/Libraries/NativeComponent/StaticViewConfigValidator.js +198 -0
  357. package/Libraries/NativeComponent/ViewConfig.js +1 -1
  358. package/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +1 -1
  359. package/Libraries/NativeModules/specs/NativeDevMenu.js +1 -1
  360. package/Libraries/NativeModules/specs/NativeDevSettings.js +1 -1
  361. package/Libraries/NativeModules/specs/NativeDeviceEventManager.js +1 -1
  362. package/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js +1 -1
  363. package/Libraries/NativeModules/specs/NativeLogBox.js +1 -1
  364. package/Libraries/NativeModules/specs/NativeRedBox.js +1 -1
  365. package/Libraries/NativeModules/specs/NativeSourceCode.js +1 -1
  366. package/Libraries/Network/FormData.js +1 -1
  367. package/Libraries/Network/NativeNetworkingAndroid.js +1 -1
  368. package/Libraries/Network/NativeNetworkingIOS.js +1 -1
  369. package/Libraries/Network/RCTNetworking.android.js +1 -1
  370. package/Libraries/Network/RCTNetworking.ios.js +1 -1
  371. package/Libraries/Network/RCTNetworking.win32.js +2 -2
  372. package/Libraries/Network/XHRInterceptor.js +6 -7
  373. package/Libraries/Network/XMLHttpRequest.js +44 -8
  374. package/Libraries/Network/convertRequestBody.js +1 -1
  375. package/Libraries/Network/fetch.js +1 -1
  376. package/Libraries/NewAppScreen/components/Colors.js +1 -1
  377. package/Libraries/NewAppScreen/components/DebugInstructions.js +1 -1
  378. package/Libraries/NewAppScreen/components/Header.js +1 -1
  379. package/Libraries/NewAppScreen/components/HermesBadge.js +1 -1
  380. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +1 -1
  381. package/Libraries/NewAppScreen/components/ReloadInstructions.js +1 -1
  382. package/Libraries/NewAppScreen/index.js +1 -1
  383. package/Libraries/Performance/NativeJSCSamplingProfiler.js +1 -1
  384. package/Libraries/Performance/PureComponentDebug.js +1 -1
  385. package/Libraries/Performance/QuickPerformanceLogger.js +18 -1
  386. package/Libraries/Performance/SamplingProfiler.js +4 -4
  387. package/Libraries/Performance/Systrace.js +9 -2
  388. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +7 -2
  389. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +20 -9
  390. package/Libraries/Pressability/HoverState.js +1 -1
  391. package/Libraries/Pressability/HoverState.win32.js +60 -0
  392. package/Libraries/Pressability/Pressability.js +3 -3
  393. package/Libraries/Pressability/Pressability.win32.js +962 -0
  394. package/Libraries/Pressability/PressabilityDebug.js +15 -12
  395. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +5 -3
  396. package/Libraries/Pressability/PressabilityTypes.js +1 -1
  397. package/Libraries/Pressability/usePressability.js +1 -1
  398. package/Libraries/Promise.js +1 -1
  399. package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -1
  400. package/Libraries/PushNotificationIOS/PushNotificationIOS.js +33 -32
  401. package/Libraries/ReactNative/AppContainer.js +3 -3
  402. package/Libraries/ReactNative/AppRegistry.js +15 -13
  403. package/Libraries/ReactNative/DisplayMode.js +1 -1
  404. package/Libraries/ReactNative/DummyUIManager.js +13 -6
  405. package/Libraries/ReactNative/FabricUIManager.js +1 -1
  406. package/Libraries/ReactNative/HeadlessJsTaskError.js +1 -1
  407. package/Libraries/ReactNative/I18nManager.js +3 -6
  408. package/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js +1 -1
  409. package/Libraries/ReactNative/NativeI18nManager.js +1 -1
  410. package/Libraries/ReactNative/NativeUIManager.js +1 -1
  411. package/Libraries/ReactNative/PaperUIManager.js +3 -4
  412. package/Libraries/ReactNative/PaperUIManager.win32.js +8 -9
  413. package/Libraries/ReactNative/ReactFabricInternals.js +1 -1
  414. package/Libraries/ReactNative/RootTag.js +3 -4
  415. package/Libraries/ReactNative/UIManager.js +5 -7
  416. package/Libraries/ReactNative/UIManagerInjection.js +4 -2
  417. package/Libraries/ReactNative/UIManagerProperties.js +1 -1
  418. package/Libraries/ReactNative/getCachedComponentWithDebugName.js +4 -2
  419. package/Libraries/ReactNative/getNativeComponentAttributes.js +21 -9
  420. package/Libraries/ReactNative/renderApplication.js +1 -1
  421. package/Libraries/ReactNative/requireNativeComponent.js +1 -1
  422. package/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js +1 -1
  423. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -1
  424. package/Libraries/Reliability/UserFlow.js +1 -1
  425. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1134 -426
  426. package/Libraries/Renderer/implementations/ReactFabric-dev.js +1 -1
  427. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +265 -236
  428. package/Libraries/Renderer/implementations/ReactFabric-prod.js +1 -1
  429. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +538 -302
  430. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1 -1
  431. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1084 -463
  432. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +1 -1
  433. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +251 -224
  434. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1 -1
  435. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +519 -281
  436. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1 -1
  437. package/Libraries/Renderer/shims/ReactFabric.js +2 -2
  438. package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
  439. package/Libraries/Renderer/shims/ReactNative.js +2 -2
  440. package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -2
  441. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -4
  442. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
  443. package/Libraries/Settings/NativeSettingsManager.js +1 -1
  444. package/Libraries/Settings/Settings.android.js +1 -1
  445. package/Libraries/Settings/Settings.ios.js +1 -1
  446. package/Libraries/Share/NativeShareModule.js +1 -1
  447. package/Libraries/Share/Share.js +1 -1
  448. package/Libraries/Storage/AsyncStorage.js +34 -35
  449. package/Libraries/Storage/NativeAsyncLocalStorage.js +1 -1
  450. package/Libraries/Storage/NativeAsyncSQLiteDBStorage.js +1 -1
  451. package/Libraries/StyleSheet/EdgeInsetsPropType.js +1 -1
  452. package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +1 -1
  453. package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
  454. package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +1 -1
  455. package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +1 -1
  456. package/Libraries/StyleSheet/PointPropType.js +1 -1
  457. package/Libraries/StyleSheet/Rect.js +1 -1
  458. package/Libraries/StyleSheet/StyleSheet.js +3 -2
  459. package/Libraries/StyleSheet/StyleSheet.win32.js +3 -2
  460. package/Libraries/StyleSheet/StyleSheetTypes.js +2 -2
  461. package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +1 -1
  462. package/Libraries/StyleSheet/flattenStyle.js +1 -1
  463. package/Libraries/StyleSheet/normalizeColor.js +1 -1
  464. package/Libraries/StyleSheet/processColor.js +3 -3
  465. package/Libraries/StyleSheet/processColorArray.js +1 -1
  466. package/Libraries/StyleSheet/processTransform.js +21 -2
  467. package/Libraries/StyleSheet/setNormalizedColorAlpha.js +1 -1
  468. package/Libraries/StyleSheet/splitLayoutProps.js +2 -4
  469. package/Libraries/Text/Text.js +11 -12
  470. package/Libraries/Text/TextAncestor.js +1 -1
  471. package/Libraries/Text/TextNativeComponent.js +10 -8
  472. package/Libraries/Text/TextNativeComponent.win32.js +9 -7
  473. package/Libraries/Text/TextProps.js +19 -19
  474. package/Libraries/TurboModule/RCTExport.js +1 -1
  475. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  476. package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +1 -1
  477. package/Libraries/Types/CodegenTypes.js +1 -1
  478. package/Libraries/Types/CoreEventTypes.js +1 -1
  479. package/Libraries/Types/CoreEventTypes.win32.js +191 -0
  480. package/Libraries/Types/RootTagTypes.js +1 -1
  481. package/Libraries/UTFSequence.js +1 -1
  482. package/Libraries/Utilities/Appearance.js +7 -6
  483. package/Libraries/Utilities/BackHandler.android.js +5 -5
  484. package/Libraries/Utilities/BackHandler.ios.js +1 -1
  485. package/Libraries/Utilities/BackHandler.win32.js +5 -5
  486. package/Libraries/Utilities/DebugEnvironment.js +1 -1
  487. package/Libraries/Utilities/DevSettings.js +1 -1
  488. package/Libraries/Utilities/DeviceInfo.js +1 -1
  489. package/Libraries/Utilities/Dimensions.js +1 -1
  490. package/Libraries/Utilities/FeatureDetection.js +1 -1
  491. package/Libraries/Utilities/GlobalPerformanceLogger.js +1 -1
  492. package/Libraries/Utilities/HMRClient.js +3 -3
  493. package/Libraries/Utilities/HMRClientProdShim.js +1 -1
  494. package/Libraries/Utilities/JSDevSupportModule.js +4 -5
  495. package/Libraries/Utilities/LoadingView.android.js +1 -1
  496. package/Libraries/Utilities/LoadingView.ios.js +1 -1
  497. package/Libraries/Utilities/LoadingView.js +1 -1
  498. package/Libraries/Utilities/MatrixMath.js +20 -20
  499. package/Libraries/Utilities/NativeAppearance.js +1 -1
  500. package/Libraries/Utilities/NativeDevLoadingView.js +1 -1
  501. package/Libraries/Utilities/NativeDevSplitBundleLoader.js +1 -1
  502. package/Libraries/Utilities/NativeDeviceInfo.js +1 -1
  503. package/Libraries/Utilities/NativeJSDevSupport.js +1 -1
  504. package/Libraries/Utilities/NativePlatformConstantsAndroid.js +1 -1
  505. package/Libraries/Utilities/NativePlatformConstantsIOS.js +1 -1
  506. package/Libraries/Utilities/PerformanceLoggerContext.js +3 -4
  507. package/Libraries/Utilities/PixelRatio.js +1 -1
  508. package/Libraries/Utilities/Platform.android.js +1 -1
  509. package/Libraries/Utilities/Platform.ios.js +1 -1
  510. package/Libraries/Utilities/PolyfillFunctions.js +1 -1
  511. package/Libraries/Utilities/RCTLog.js +1 -1
  512. package/Libraries/Utilities/ReactNativeTestTools.js +8 -12
  513. package/Libraries/Utilities/SceneTracker.js +5 -4
  514. package/Libraries/Utilities/__mocks__/BackHandler.js +4 -4
  515. package/Libraries/Utilities/__mocks__/GlobalPerformanceLogger.js +1 -1
  516. package/Libraries/Utilities/__mocks__/PixelRatio.js +1 -1
  517. package/Libraries/Utilities/binaryToBase64.js +1 -1
  518. package/Libraries/Utilities/buildStyleInterpolator.js +10 -10
  519. package/Libraries/Utilities/clamp.js +1 -1
  520. package/Libraries/Utilities/codegenNativeCommands.js +1 -1
  521. package/Libraries/Utilities/codegenNativeComponent.js +4 -3
  522. package/Libraries/Utilities/createPerformanceLogger.js +1 -1
  523. package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +3 -3
  524. package/Libraries/Utilities/defineLazyObjectProperty.js +1 -1
  525. package/Libraries/Utilities/deprecatedPropType.js +1 -1
  526. package/Libraries/Utilities/differ/deepDiffer.js +2 -2
  527. package/Libraries/Utilities/differ/insetsDiffer.js +2 -2
  528. package/Libraries/Utilities/differ/matricesDiffer.js +6 -2
  529. package/Libraries/Utilities/differ/pointsDiffer.js +2 -2
  530. package/Libraries/Utilities/differ/sizesDiffer.js +11 -5
  531. package/Libraries/Utilities/dismissKeyboard.js +1 -1
  532. package/Libraries/Utilities/groupByEveryN.js +1 -1
  533. package/Libraries/Utilities/infoLog.js +1 -1
  534. package/Libraries/Utilities/logError.js +2 -2
  535. package/Libraries/Utilities/mapWithSeparator.js +1 -1
  536. package/Libraries/Utilities/mergeIntoFast.js +2 -2
  537. package/Libraries/Utilities/setAndForwardRef.js +1 -1
  538. package/Libraries/Utilities/stringifySafe.js +1 -1
  539. package/Libraries/Utilities/truncate.js +2 -2
  540. package/Libraries/Utilities/useColorScheme.js +1 -1
  541. package/Libraries/Utilities/useMergeRefs.js +1 -1
  542. package/Libraries/Utilities/useRefEffect.js +1 -1
  543. package/Libraries/Utilities/useWindowDimensions.js +6 -2
  544. package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +4 -2
  545. package/Libraries/Utilities/warnOnce.js +1 -1
  546. package/Libraries/Vibration/NativeVibration.js +1 -1
  547. package/Libraries/Vibration/Vibration.js +6 -6
  548. package/Libraries/WebSocket/NativeWebSocketModule.js +1 -1
  549. package/Libraries/WebSocket/WebSocket.js +1 -1
  550. package/Libraries/WebSocket/WebSocketEvent.js +1 -1
  551. package/Libraries/WebSocket/WebSocketInterceptor.js +7 -7
  552. package/Libraries/WebSocket/__mocks__/event-target-shim.js +1 -1
  553. package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -1
  554. package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +1 -1
  555. package/Libraries/promiseRejectionTrackingOptions.js +2 -2
  556. package/Libraries/vendor/core/ErrorUtils.js +1 -1
  557. package/Libraries/vendor/emitter/EventEmitter.js +1 -1
  558. package/Libraries/vendor/emitter/EventSubscription.js +1 -1
  559. package/Libraries/vendor/emitter/_EmitterSubscription.js +3 -2
  560. package/Libraries/vendor/emitter/_EventEmitter.js +3 -2
  561. package/Libraries/vendor/emitter/_EventSubscription.js +3 -2
  562. package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +2 -2
  563. package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +1 -1
  564. package/flow/HermesInternalType.js +1 -1
  565. package/flow/Position.js +1 -1
  566. package/flow/Promise.js +1 -1
  567. package/flow/Stringish.js +1 -1
  568. package/flow/console.js +1 -1
  569. package/flow/global.js +2 -6
  570. package/flow/jest.js +1 -1
  571. package/flow/use-subscription.js +1 -1
  572. package/flow-typed/npm/glob_v7.x.x.js +79 -0
  573. package/index.js +26 -17
  574. package/index.win32.js +26 -20
  575. package/interface.js +1 -1
  576. package/jest/MockNativeMethods.js +1 -1
  577. package/jest/assetFileTransformer.js +3 -3
  578. package/jest/mockComponent.js +1 -1
  579. package/jest/mockModal.js +3 -3
  580. package/jest/mockNativeComponent.js +5 -1
  581. package/jest/mockScrollView.js +1 -1
  582. package/jest/preprocessor.js +10 -78
  583. package/jest/renderer.js +1 -1
  584. package/jest/setup.js +5 -4
  585. package/overrides.json +98 -63
  586. package/package.json +24 -23
  587. package/rn-get-polyfills.js +1 -1
  588. package/rntypes/globals.d.ts +6 -5
  589. package/rntypes/index.d.ts +89 -312
  590. package/rntypes/legacy-properties.d.ts +0 -28
  591. package/src/rntypes/globals.d.ts +6 -5
  592. package/src/rntypes/index.d.ts +89 -312
  593. package/src/rntypes/legacy-properties.d.ts +0 -28
  594. package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -116
  595. package/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js +0 -76
  596. package/Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType.js +0 -28
  597. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +0 -131
  598. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.ios.js +0 -82
  599. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.win32.js +0 -82
  600. package/Libraries/DeprecatedPropTypes/DeprecatedImageSourcePropType.js +0 -40
  601. package/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js +0 -76
  602. package/Libraries/DeprecatedPropTypes/DeprecatedLayoutPropTypes.js +0 -233
  603. package/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js +0 -24
  604. package/Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js +0 -30
  605. package/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js +0 -32
  606. package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +0 -622
  607. package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
  608. package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -157
  609. package/Libraries/DeprecatedPropTypes/DeprecatedTransformPropTypes.js +0 -99
  610. package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +0 -46
  611. package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +0 -408
  612. package/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js +0 -68
  613. package/Libraries/DeprecatedPropTypes/deprecatedCreateStrictShapeTypeChecker.js +0 -86
  614. package/flow-typed/npm/prop-types_v15.x.x.js +0 -42
  615. package/src/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap +0 -427
  616. package/src/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap +0 -391
  617. package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizeUtils-test.js.snap +0 -3
  618. package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap +0 -4634
  619. package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap +0 -1153
@@ -7,10 +7,21 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<62430ecbf70b848b8677c9a80f79d347>>
10
+ * @generated SignedSource<<ed6282c0e752a40e526104dcc0d5c8b8>>
11
11
  */
12
12
 
13
- "use strict";
13
+
14
+ 'use strict';
15
+
16
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
17
+ if (
18
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
19
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
20
+ 'function'
21
+ ) {
22
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
23
+ }
24
+ "use strict";
14
25
  require("react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore");
15
26
  var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"),
16
27
  React = require("react"),
@@ -927,7 +938,7 @@ eventPluginOrder = Array.prototype.slice.call([
927
938
  "ReactNativeBridgeEventPlugin"
928
939
  ]);
929
940
  recomputePluginOrdering();
930
- var injectedNamesToPlugins$jscomp$inline_227 = {
941
+ var injectedNamesToPlugins$jscomp$inline_228 = {
931
942
  ResponderEventPlugin: ResponderEventPlugin,
932
943
  ReactNativeBridgeEventPlugin: {
933
944
  eventTypes: {},
@@ -962,33 +973,33 @@ var injectedNamesToPlugins$jscomp$inline_227 = {
962
973
  }
963
974
  }
964
975
  },
965
- isOrderingDirty$jscomp$inline_228 = !1,
966
- pluginName$jscomp$inline_229;
967
- for (pluginName$jscomp$inline_229 in injectedNamesToPlugins$jscomp$inline_227)
976
+ isOrderingDirty$jscomp$inline_229 = !1,
977
+ pluginName$jscomp$inline_230;
978
+ for (pluginName$jscomp$inline_230 in injectedNamesToPlugins$jscomp$inline_228)
968
979
  if (
969
- injectedNamesToPlugins$jscomp$inline_227.hasOwnProperty(
970
- pluginName$jscomp$inline_229
980
+ injectedNamesToPlugins$jscomp$inline_228.hasOwnProperty(
981
+ pluginName$jscomp$inline_230
971
982
  )
972
983
  ) {
973
- var pluginModule$jscomp$inline_230 =
974
- injectedNamesToPlugins$jscomp$inline_227[pluginName$jscomp$inline_229];
984
+ var pluginModule$jscomp$inline_231 =
985
+ injectedNamesToPlugins$jscomp$inline_228[pluginName$jscomp$inline_230];
975
986
  if (
976
- !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_229) ||
977
- namesToPlugins[pluginName$jscomp$inline_229] !==
978
- pluginModule$jscomp$inline_230
987
+ !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_230) ||
988
+ namesToPlugins[pluginName$jscomp$inline_230] !==
989
+ pluginModule$jscomp$inline_231
979
990
  ) {
980
- if (namesToPlugins[pluginName$jscomp$inline_229])
991
+ if (namesToPlugins[pluginName$jscomp$inline_230])
981
992
  throw Error(
982
993
  "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
983
- (pluginName$jscomp$inline_229 + "`.")
994
+ (pluginName$jscomp$inline_230 + "`.")
984
995
  );
985
996
  namesToPlugins[
986
- pluginName$jscomp$inline_229
987
- ] = pluginModule$jscomp$inline_230;
988
- isOrderingDirty$jscomp$inline_228 = !0;
997
+ pluginName$jscomp$inline_230
998
+ ] = pluginModule$jscomp$inline_231;
999
+ isOrderingDirty$jscomp$inline_229 = !0;
989
1000
  }
990
1001
  }
991
- isOrderingDirty$jscomp$inline_228 && recomputePluginOrdering();
1002
+ isOrderingDirty$jscomp$inline_229 && recomputePluginOrdering();
992
1003
  function getInstanceFromInstance(instanceHandle) {
993
1004
  return instanceHandle;
994
1005
  }
@@ -1608,6 +1619,7 @@ var scheduleCallback = Scheduler.unstable_scheduleCallback,
1608
1619
  IdlePriority = Scheduler.unstable_IdlePriority,
1609
1620
  rendererID = null,
1610
1621
  injectedHook = null,
1622
+ injectedProfilingHooks = null,
1611
1623
  isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;
1612
1624
  function onCommitRoot(root, eventPriority) {
1613
1625
  if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
@@ -1637,6 +1649,80 @@ function onCommitRoot(root, eventPriority) {
1637
1649
  );
1638
1650
  } catch (err) {}
1639
1651
  }
1652
+ function injectProfilingHooks(profilingHooks) {
1653
+ injectedProfilingHooks = profilingHooks;
1654
+ }
1655
+ function getLaneLabelMap() {
1656
+ for (var map = new Map(), lane = 1, index$3 = 0; 31 > index$3; index$3++) {
1657
+ var label = getLabelForLane(lane);
1658
+ map.set(lane, label);
1659
+ lane *= 2;
1660
+ }
1661
+ return map;
1662
+ }
1663
+ function markCommitStopped() {
1664
+ null !== injectedProfilingHooks &&
1665
+ "function" === typeof injectedProfilingHooks.markCommitStopped &&
1666
+ injectedProfilingHooks.markCommitStopped();
1667
+ }
1668
+ function markComponentRenderStarted(fiber) {
1669
+ null !== injectedProfilingHooks &&
1670
+ "function" === typeof injectedProfilingHooks.markComponentRenderStarted &&
1671
+ injectedProfilingHooks.markComponentRenderStarted(fiber);
1672
+ }
1673
+ function markComponentRenderStopped() {
1674
+ null !== injectedProfilingHooks &&
1675
+ "function" === typeof injectedProfilingHooks.markComponentRenderStopped &&
1676
+ injectedProfilingHooks.markComponentRenderStopped();
1677
+ }
1678
+ function markComponentLayoutEffectUnmountStarted(fiber) {
1679
+ null !== injectedProfilingHooks &&
1680
+ "function" ===
1681
+ typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
1682
+ injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
1683
+ }
1684
+ function markComponentLayoutEffectUnmountStopped() {
1685
+ null !== injectedProfilingHooks &&
1686
+ "function" ===
1687
+ typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
1688
+ injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
1689
+ }
1690
+ function markRenderStarted(lanes) {
1691
+ null !== injectedProfilingHooks &&
1692
+ "function" === typeof injectedProfilingHooks.markRenderStarted &&
1693
+ injectedProfilingHooks.markRenderStarted(lanes);
1694
+ }
1695
+ function markRenderStopped() {
1696
+ null !== injectedProfilingHooks &&
1697
+ "function" === typeof injectedProfilingHooks.markRenderStopped &&
1698
+ injectedProfilingHooks.markRenderStopped();
1699
+ }
1700
+ function markStateUpdateScheduled(fiber, lane) {
1701
+ null !== injectedProfilingHooks &&
1702
+ "function" === typeof injectedProfilingHooks.markStateUpdateScheduled &&
1703
+ injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
1704
+ }
1705
+ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
1706
+ log = Math.log,
1707
+ LN2 = Math.LN2;
1708
+ function clz32Fallback(x) {
1709
+ x >>>= 0;
1710
+ return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
1711
+ }
1712
+ function getLabelForLane(lane) {
1713
+ if (lane & 1) return "Sync";
1714
+ if (lane & 2) return "InputContinuousHydration";
1715
+ if (lane & 4) return "InputContinuous";
1716
+ if (lane & 8) return "DefaultHydration";
1717
+ if (lane & 16) return "Default";
1718
+ if (lane & 32) return "TransitionHydration";
1719
+ if (lane & 4194240) return "Transition";
1720
+ if (lane & 130023424) return "Retry";
1721
+ if (lane & 134217728) return "SelectiveHydration";
1722
+ if (lane & 268435456) return "IdleHydration";
1723
+ if (lane & 536870912) return "Idle";
1724
+ if (lane & 1073741824) return "Offscreen";
1725
+ }
1640
1726
  var nextTransitionLane = 64,
1641
1727
  nextRetryLane = 4194304;
1642
1728
  function getHighestPriorityLanes(lanes) {
@@ -1802,30 +1888,30 @@ function markRootFinished(root, remainingLanes) {
1802
1888
  remainingLanes = root.entanglements;
1803
1889
  var eventTimes = root.eventTimes;
1804
1890
  for (root = root.expirationTimes; 0 < noLongerPendingLanes; ) {
1805
- var index$7 = 31 - clz32(noLongerPendingLanes),
1806
- lane = 1 << index$7;
1807
- remainingLanes[index$7] = 0;
1808
- eventTimes[index$7] = -1;
1809
- root[index$7] = -1;
1891
+ var index$8 = 31 - clz32(noLongerPendingLanes),
1892
+ lane = 1 << index$8;
1893
+ remainingLanes[index$8] = 0;
1894
+ eventTimes[index$8] = -1;
1895
+ root[index$8] = -1;
1810
1896
  noLongerPendingLanes &= ~lane;
1811
1897
  }
1812
1898
  }
1813
1899
  function markRootEntangled(root, entangledLanes) {
1814
1900
  var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
1815
1901
  for (root = root.entanglements; rootEntangledLanes; ) {
1816
- var index$8 = 31 - clz32(rootEntangledLanes),
1817
- lane = 1 << index$8;
1818
- (lane & entangledLanes) | (root[index$8] & entangledLanes) &&
1819
- (root[index$8] |= entangledLanes);
1902
+ var index$9 = 31 - clz32(rootEntangledLanes),
1903
+ lane = 1 << index$9;
1904
+ (lane & entangledLanes) | (root[index$9] & entangledLanes) &&
1905
+ (root[index$9] |= entangledLanes);
1820
1906
  rootEntangledLanes &= ~lane;
1821
1907
  }
1822
1908
  }
1823
1909
  function addFiberToLanesMap(root, fiber, lanes) {
1824
1910
  if (isDevToolsPresent)
1825
1911
  for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) {
1826
- var index$9 = 31 - clz32(lanes),
1827
- lane = 1 << index$9;
1828
- root[index$9].add(fiber);
1912
+ var index$10 = 31 - clz32(lanes),
1913
+ lane = 1 << index$10;
1914
+ root[index$10].add(fiber);
1829
1915
  lanes &= ~lane;
1830
1916
  }
1831
1917
  }
@@ -1837,25 +1923,19 @@ function movePendingFibersToMemoized(root, lanes) {
1837
1923
  0 < lanes;
1838
1924
 
1839
1925
  ) {
1840
- var index$10 = 31 - clz32(lanes);
1841
- root = 1 << index$10;
1842
- index$10 = pendingUpdatersLaneMap[index$10];
1843
- 0 < index$10.size &&
1844
- (index$10.forEach(function(fiber) {
1926
+ var index$11 = 31 - clz32(lanes);
1927
+ root = 1 << index$11;
1928
+ index$11 = pendingUpdatersLaneMap[index$11];
1929
+ 0 < index$11.size &&
1930
+ (index$11.forEach(function(fiber) {
1845
1931
  var alternate = fiber.alternate;
1846
1932
  (null !== alternate && memoizedUpdaters.has(alternate)) ||
1847
1933
  memoizedUpdaters.add(fiber);
1848
1934
  }),
1849
- index$10.clear());
1935
+ index$11.clear());
1850
1936
  lanes &= ~root;
1851
1937
  }
1852
1938
  }
1853
- var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
1854
- log = Math.log,
1855
- LN2 = Math.LN2;
1856
- function clz32Fallback(lanes) {
1857
- return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
1858
- }
1859
1939
  var currentUpdatePriority = 0;
1860
1940
  function lanesToEventPriority(lanes) {
1861
1941
  lanes &= -lanes;
@@ -1867,11 +1947,6 @@ function lanesToEventPriority(lanes) {
1867
1947
  : 4
1868
1948
  : 1;
1869
1949
  }
1870
- function shim() {
1871
- throw Error(
1872
- "The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
1873
- );
1874
- }
1875
1950
  function shim$1() {
1876
1951
  throw Error(
1877
1952
  "The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
@@ -2176,12 +2251,14 @@ function shallowEqual(objA, objB) {
2176
2251
  var keysA = Object.keys(objA),
2177
2252
  keysB = Object.keys(objB);
2178
2253
  if (keysA.length !== keysB.length) return !1;
2179
- for (keysB = 0; keysB < keysA.length; keysB++)
2254
+ for (keysB = 0; keysB < keysA.length; keysB++) {
2255
+ var currentKey = keysA[keysB];
2180
2256
  if (
2181
- !hasOwnProperty.call(objB, keysA[keysB]) ||
2182
- !objectIs(objA[keysA[keysB]], objB[keysA[keysB]])
2257
+ !hasOwnProperty.call(objB, currentKey) ||
2258
+ !objectIs(objA[currentKey], objB[currentKey])
2183
2259
  )
2184
2260
  return !1;
2261
+ }
2185
2262
  return !0;
2186
2263
  }
2187
2264
  function describeFiber(fiber) {
@@ -2564,6 +2641,7 @@ var classComponentUpdater = {
2564
2641
  enqueueUpdate(inst, update);
2565
2642
  payload = scheduleUpdateOnFiber(inst, lane, eventTime);
2566
2643
  null !== payload && entangleTransitions(payload, inst, lane);
2644
+ markStateUpdateScheduled(inst, lane);
2567
2645
  },
2568
2646
  enqueueReplaceState: function(inst, payload, callback) {
2569
2647
  inst = inst._reactInternals;
@@ -2576,6 +2654,7 @@ var classComponentUpdater = {
2576
2654
  enqueueUpdate(inst, update);
2577
2655
  payload = scheduleUpdateOnFiber(inst, lane, eventTime);
2578
2656
  null !== payload && entangleTransitions(payload, inst, lane);
2657
+ markStateUpdateScheduled(inst, lane);
2579
2658
  },
2580
2659
  enqueueForceUpdate: function(inst, callback) {
2581
2660
  inst = inst._reactInternals;
@@ -2587,6 +2666,9 @@ var classComponentUpdater = {
2587
2666
  enqueueUpdate(inst, update);
2588
2667
  callback = scheduleUpdateOnFiber(inst, lane, eventTime);
2589
2668
  null !== callback && entangleTransitions(callback, inst, lane);
2669
+ null !== injectedProfilingHooks &&
2670
+ "function" === typeof injectedProfilingHooks.markForceUpdateScheduled &&
2671
+ injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
2590
2672
  }
2591
2673
  };
2592
2674
  function checkShouldComponentUpdate(
@@ -2679,6 +2761,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
2679
2761
  "function" === typeof instance.componentDidMount &&
2680
2762
  (workInProgress.flags |= 4);
2681
2763
  }
2764
+ var forkStack = [],
2765
+ forkStackIndex = 0,
2766
+ treeForkProvider = null,
2767
+ idStack = [],
2768
+ idStackIndex = 0,
2769
+ treeContextProvider = null;
2770
+ function popTreeContext(workInProgress) {
2771
+ for (; workInProgress === treeForkProvider; )
2772
+ (treeForkProvider = forkStack[--forkStackIndex]),
2773
+ (forkStack[forkStackIndex] = null),
2774
+ --forkStackIndex,
2775
+ (forkStack[forkStackIndex] = null);
2776
+ for (; workInProgress === treeContextProvider; )
2777
+ (treeContextProvider = idStack[--idStackIndex]),
2778
+ (idStack[idStackIndex] = null),
2779
+ --idStackIndex,
2780
+ (idStack[idStackIndex] = null),
2781
+ --idStackIndex,
2782
+ (idStack[idStackIndex] = null);
2783
+ }
2682
2784
  function coerceRef(returnFiber, current, element) {
2683
2785
  returnFiber = element.ref;
2684
2786
  if (
@@ -2773,7 +2875,8 @@ function ChildReconciler(shouldTrackSideEffects) {
2773
2875
  }
2774
2876
  function placeChild(newFiber, lastPlacedIndex, newIndex) {
2775
2877
  newFiber.index = newIndex;
2776
- if (!shouldTrackSideEffects) return lastPlacedIndex;
2878
+ if (!shouldTrackSideEffects)
2879
+ return (newFiber.flags |= 1048576), lastPlacedIndex;
2777
2880
  newIndex = newFiber.alternate;
2778
2881
  if (null !== newIndex)
2779
2882
  return (
@@ -2864,7 +2967,10 @@ function ChildReconciler(shouldTrackSideEffects) {
2864
2967
  return current;
2865
2968
  }
2866
2969
  function createChild(returnFiber, newChild, lanes) {
2867
- if ("string" === typeof newChild || "number" === typeof newChild)
2970
+ if (
2971
+ ("string" === typeof newChild && "" !== newChild) ||
2972
+ "number" === typeof newChild
2973
+ )
2868
2974
  return (
2869
2975
  (newChild = createFiberFromText(
2870
2976
  "" + newChild,
@@ -2918,7 +3024,10 @@ function ChildReconciler(shouldTrackSideEffects) {
2918
3024
  }
2919
3025
  function updateSlot(returnFiber, oldFiber, newChild, lanes) {
2920
3026
  var key = null !== oldFiber ? oldFiber.key : null;
2921
- if ("string" === typeof newChild || "number" === typeof newChild)
3027
+ if (
3028
+ ("string" === typeof newChild && "" !== newChild) ||
3029
+ "number" === typeof newChild
3030
+ )
2922
3031
  return null !== key
2923
3032
  ? null
2924
3033
  : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
@@ -2948,7 +3057,10 @@ function ChildReconciler(shouldTrackSideEffects) {
2948
3057
  newChild,
2949
3058
  lanes
2950
3059
  ) {
2951
- if ("string" === typeof newChild || "number" === typeof newChild)
3060
+ if (
3061
+ ("string" === typeof newChild && "" !== newChild) ||
3062
+ "number" === typeof newChild
3063
+ )
2952
3064
  return (
2953
3065
  (existingChildren = existingChildren.get(newIdx) || null),
2954
3066
  updateTextNode(returnFiber, existingChildren, "" + newChild, lanes)
@@ -3274,7 +3386,8 @@ function ChildReconciler(shouldTrackSideEffects) {
3274
3386
  );
3275
3387
  throwOnInvalidObjectType(returnFiber, newChild);
3276
3388
  }
3277
- return "string" === typeof newChild || "number" === typeof newChild
3389
+ return ("string" === typeof newChild && "" !== newChild) ||
3390
+ "number" === typeof newChild
3278
3391
  ? ((newChild = "" + newChild),
3279
3392
  null !== currentFirstChild && 6 === currentFirstChild.tag
3280
3393
  ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
@@ -3377,7 +3490,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
3377
3490
  currentHook = null,
3378
3491
  workInProgressHook = null,
3379
3492
  didScheduleRenderPhaseUpdate = !1,
3380
- didScheduleRenderPhaseUpdateDuringThisPass = !1;
3493
+ didScheduleRenderPhaseUpdateDuringThisPass = !1,
3494
+ globalClientIdCounter = 0;
3381
3495
  function throwInvalidHookError() {
3382
3496
  throw Error(
3383
3497
  "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
@@ -3800,7 +3914,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
3800
3914
  hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
3801
3915
  }
3802
3916
  function mountEffect(create, deps) {
3803
- return mountEffectImpl(4196352, 8, create, deps);
3917
+ return mountEffectImpl(8390656, 8, create, deps);
3804
3918
  }
3805
3919
  function updateEffect(create, deps) {
3806
3920
  return updateEffectImpl(2048, 8, create, deps);
@@ -3880,6 +3994,9 @@ function startTransition(setPending, callback) {
3880
3994
  (ReactCurrentBatchConfig$1.transition = prevTransition);
3881
3995
  }
3882
3996
  }
3997
+ function updateId() {
3998
+ return updateWorkInProgressHook().memoizedState;
3999
+ }
3883
4000
  function dispatchReducerAction(fiber, queue, action) {
3884
4001
  var lane = requestUpdateLane(fiber);
3885
4002
  action = {
@@ -3893,8 +4010,9 @@ function dispatchReducerAction(fiber, queue, action) {
3893
4010
  ? enqueueRenderPhaseUpdate(queue, action)
3894
4011
  : (enqueueUpdate$1(fiber, queue, action),
3895
4012
  (action = requestEventTime()),
3896
- (fiber = scheduleUpdateOnFiber(fiber, lane, action)),
3897
- null !== fiber && entangleTransitionUpdate(fiber, queue, lane));
4013
+ (action = scheduleUpdateOnFiber(fiber, lane, action)),
4014
+ null !== action && entangleTransitionUpdate(action, queue, lane));
4015
+ markStateUpdateScheduled(fiber, lane);
3898
4016
  }
3899
4017
  function dispatchSetState(fiber, queue, action) {
3900
4018
  var lane = requestUpdateLane(fiber),
@@ -3924,9 +4042,10 @@ function dispatchSetState(fiber, queue, action) {
3924
4042
  } finally {
3925
4043
  }
3926
4044
  action = requestEventTime();
3927
- fiber = scheduleUpdateOnFiber(fiber, lane, action);
3928
- null !== fiber && entangleTransitionUpdate(fiber, queue, lane);
4045
+ action = scheduleUpdateOnFiber(fiber, lane, action);
4046
+ null !== action && entangleTransitionUpdate(action, queue, lane);
3929
4047
  }
4048
+ markStateUpdateScheduled(fiber, lane);
3930
4049
  }
3931
4050
  function isRenderPhaseUpdate(fiber) {
3932
4051
  var alternate = fiber.alternate;
@@ -3987,7 +4106,7 @@ var ContextOnlyDispatcher = {
3987
4106
  useTransition: throwInvalidHookError,
3988
4107
  useMutableSource: throwInvalidHookError,
3989
4108
  useSyncExternalStore: throwInvalidHookError,
3990
- useOpaqueIdentifier: throwInvalidHookError,
4109
+ useId: throwInvalidHookError,
3991
4110
  unstable_isNewReconciler: !1
3992
4111
  },
3993
4112
  HooksDispatcherOnMount = {
@@ -4085,8 +4204,12 @@ var ContextOnlyDispatcher = {
4085
4204
  return useMutableSource(hook, source, getSnapshot, subscribe);
4086
4205
  },
4087
4206
  useSyncExternalStore: mountSyncExternalStore,
4088
- useOpaqueIdentifier: function() {
4089
- throw Error("Not yet implemented");
4207
+ useId: function() {
4208
+ var hook = mountWorkInProgressHook(),
4209
+ identifierPrefix = workInProgressRoot.identifierPrefix,
4210
+ globalClientId = globalClientIdCounter++;
4211
+ identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
4212
+ return (hook.memoizedState = identifierPrefix);
4090
4213
  },
4091
4214
  unstable_isNewReconciler: !1
4092
4215
  },
@@ -4169,9 +4292,7 @@ var ContextOnlyDispatcher = {
4169
4292
  }
4170
4293
  return nextSnapshot;
4171
4294
  },
4172
- useOpaqueIdentifier: function() {
4173
- return updateReducer(basicStateReducer)[0];
4174
- },
4295
+ useId: updateId,
4175
4296
  unstable_isNewReconciler: !1
4176
4297
  },
4177
4298
  HooksDispatcherOnRerender = {
@@ -4214,9 +4335,7 @@ var ContextOnlyDispatcher = {
4214
4335
  },
4215
4336
  useMutableSource: updateMutableSource,
4216
4337
  useSyncExternalStore: mountSyncExternalStore,
4217
- useOpaqueIdentifier: function() {
4218
- return rerenderReducer(basicStateReducer)[0];
4219
- },
4338
+ useId: updateId,
4220
4339
  unstable_isNewReconciler: !1
4221
4340
  },
4222
4341
  now$1 = Scheduler.unstable_now,
@@ -4521,14 +4640,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
4521
4640
  break;
4522
4641
  case "collapsed":
4523
4642
  lastTailNode = renderState.tail;
4524
- for (var lastTailNode$37 = null; null !== lastTailNode; )
4525
- null !== lastTailNode.alternate && (lastTailNode$37 = lastTailNode),
4643
+ for (var lastTailNode$38 = null; null !== lastTailNode; )
4644
+ null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
4526
4645
  (lastTailNode = lastTailNode.sibling);
4527
- null === lastTailNode$37
4646
+ null === lastTailNode$38
4528
4647
  ? hasRenderedATailFallback || null === renderState.tail
4529
4648
  ? (renderState.tail = null)
4530
4649
  : (renderState.tail.sibling = null)
4531
- : (lastTailNode$37.sibling = null);
4650
+ : (lastTailNode$38.sibling = null);
4532
4651
  }
4533
4652
  }
4534
4653
  function bubbleProperties(completedWork) {
@@ -4540,53 +4659,53 @@ function bubbleProperties(completedWork) {
4540
4659
  if (didBailout)
4541
4660
  if (0 !== (completedWork.mode & 2)) {
4542
4661
  for (
4543
- var treeBaseDuration$39 = completedWork.selfBaseDuration,
4544
- child$40 = completedWork.child;
4545
- null !== child$40;
4662
+ var treeBaseDuration$40 = completedWork.selfBaseDuration,
4663
+ child$41 = completedWork.child;
4664
+ null !== child$41;
4546
4665
 
4547
4666
  )
4548
- (newChildLanes |= child$40.lanes | child$40.childLanes),
4549
- (subtreeFlags |= child$40.subtreeFlags & 7340032),
4550
- (subtreeFlags |= child$40.flags & 7340032),
4551
- (treeBaseDuration$39 += child$40.treeBaseDuration),
4552
- (child$40 = child$40.sibling);
4553
- completedWork.treeBaseDuration = treeBaseDuration$39;
4667
+ (newChildLanes |= child$41.lanes | child$41.childLanes),
4668
+ (subtreeFlags |= child$41.subtreeFlags & 14680064),
4669
+ (subtreeFlags |= child$41.flags & 14680064),
4670
+ (treeBaseDuration$40 += child$41.treeBaseDuration),
4671
+ (child$41 = child$41.sibling);
4672
+ completedWork.treeBaseDuration = treeBaseDuration$40;
4554
4673
  } else
4555
4674
  for (
4556
- treeBaseDuration$39 = completedWork.child;
4557
- null !== treeBaseDuration$39;
4675
+ treeBaseDuration$40 = completedWork.child;
4676
+ null !== treeBaseDuration$40;
4558
4677
 
4559
4678
  )
4560
4679
  (newChildLanes |=
4561
- treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
4562
- (subtreeFlags |= treeBaseDuration$39.subtreeFlags & 7340032),
4563
- (subtreeFlags |= treeBaseDuration$39.flags & 7340032),
4564
- (treeBaseDuration$39.return = completedWork),
4565
- (treeBaseDuration$39 = treeBaseDuration$39.sibling);
4680
+ treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
4681
+ (subtreeFlags |= treeBaseDuration$40.subtreeFlags & 14680064),
4682
+ (subtreeFlags |= treeBaseDuration$40.flags & 14680064),
4683
+ (treeBaseDuration$40.return = completedWork),
4684
+ (treeBaseDuration$40 = treeBaseDuration$40.sibling);
4566
4685
  else if (0 !== (completedWork.mode & 2)) {
4567
- treeBaseDuration$39 = completedWork.actualDuration;
4568
- child$40 = completedWork.selfBaseDuration;
4686
+ treeBaseDuration$40 = completedWork.actualDuration;
4687
+ child$41 = completedWork.selfBaseDuration;
4569
4688
  for (var child = completedWork.child; null !== child; )
4570
4689
  (newChildLanes |= child.lanes | child.childLanes),
4571
4690
  (subtreeFlags |= child.subtreeFlags),
4572
4691
  (subtreeFlags |= child.flags),
4573
- (treeBaseDuration$39 += child.actualDuration),
4574
- (child$40 += child.treeBaseDuration),
4692
+ (treeBaseDuration$40 += child.actualDuration),
4693
+ (child$41 += child.treeBaseDuration),
4575
4694
  (child = child.sibling);
4576
- completedWork.actualDuration = treeBaseDuration$39;
4577
- completedWork.treeBaseDuration = child$40;
4695
+ completedWork.actualDuration = treeBaseDuration$40;
4696
+ completedWork.treeBaseDuration = child$41;
4578
4697
  } else
4579
4698
  for (
4580
- treeBaseDuration$39 = completedWork.child;
4581
- null !== treeBaseDuration$39;
4699
+ treeBaseDuration$40 = completedWork.child;
4700
+ null !== treeBaseDuration$40;
4582
4701
 
4583
4702
  )
4584
4703
  (newChildLanes |=
4585
- treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
4586
- (subtreeFlags |= treeBaseDuration$39.subtreeFlags),
4587
- (subtreeFlags |= treeBaseDuration$39.flags),
4588
- (treeBaseDuration$39.return = completedWork),
4589
- (treeBaseDuration$39 = treeBaseDuration$39.sibling);
4704
+ treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
4705
+ (subtreeFlags |= treeBaseDuration$40.subtreeFlags),
4706
+ (subtreeFlags |= treeBaseDuration$40.flags),
4707
+ (treeBaseDuration$40.return = completedWork),
4708
+ (treeBaseDuration$40 = treeBaseDuration$40.sibling);
4590
4709
  completedWork.subtreeFlags |= subtreeFlags;
4591
4710
  completedWork.childLanes = newChildLanes;
4592
4711
  return didBailout;
@@ -4618,6 +4737,7 @@ function completeSuspendedOffscreenHostContainer(current, workInProgress) {
4618
4737
  }
4619
4738
  function completeWork(current, workInProgress, renderLanes) {
4620
4739
  var newProps = workInProgress.pendingProps;
4740
+ popTreeContext(workInProgress);
4621
4741
  switch (workInProgress.tag) {
4622
4742
  case 2:
4623
4743
  case 16:
@@ -4731,11 +4851,7 @@ function completeWork(current, workInProgress, renderLanes) {
4731
4851
  !renderLanes &&
4732
4852
  ((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
4733
4853
  )
4734
- if (
4735
- (null === current &&
4736
- !0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
4737
- 0 !== (suspenseStackCursor.current & 1)
4738
- )
4854
+ if (null === current || 0 !== (suspenseStackCursor.current & 1))
4739
4855
  0 === workInProgressRootExitStatus &&
4740
4856
  (workInProgressRootExitStatus = 3);
4741
4857
  else {
@@ -4747,7 +4863,7 @@ function completeWork(current, workInProgress, renderLanes) {
4747
4863
  workInProgressRootExitStatus = 4;
4748
4864
  null === workInProgressRoot ||
4749
4865
  (0 === (workInProgressRootSkippedLanes & 268435455) &&
4750
- 0 === (workInProgressRootUpdatedLanes & 268435455)) ||
4866
+ 0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
4751
4867
  markRootSuspended$1(
4752
4868
  workInProgressRoot,
4753
4869
  workInProgressRootRenderLanes
@@ -4807,7 +4923,7 @@ function completeWork(current, workInProgress, renderLanes) {
4807
4923
  for (newProps = workInProgress.child; null !== newProps; )
4808
4924
  (renderLanes = newProps),
4809
4925
  (renderedTail = current),
4810
- (renderLanes.flags &= 7340034),
4926
+ (renderLanes.flags &= 14680066),
4811
4927
  (type = renderLanes.alternate),
4812
4928
  null === type
4813
4929
  ? ((renderLanes.childLanes = 0),
@@ -4950,6 +5066,7 @@ function updateForwardRef(
4950
5066
  Component = Component.render;
4951
5067
  var ref = workInProgress.ref;
4952
5068
  prepareToReadContext(workInProgress, renderLanes);
5069
+ markComponentRenderStarted(workInProgress);
4953
5070
  nextProps = renderWithHooks(
4954
5071
  current,
4955
5072
  workInProgress,
@@ -4958,6 +5075,7 @@ function updateForwardRef(
4958
5075
  ref,
4959
5076
  renderLanes
4960
5077
  );
5078
+ markComponentRenderStopped();
4961
5079
  if (null !== current && !didReceiveUpdate)
4962
5080
  return (
4963
5081
  (workInProgress.updateQueue = current.updateQueue),
@@ -5152,6 +5270,7 @@ function updateFunctionComponent(
5152
5270
  : contextStackCursor.current;
5153
5271
  context = getMaskedContext(workInProgress, context);
5154
5272
  prepareToReadContext(workInProgress, renderLanes);
5273
+ markComponentRenderStarted(workInProgress);
5155
5274
  Component = renderWithHooks(
5156
5275
  current,
5157
5276
  workInProgress,
@@ -5160,6 +5279,7 @@ function updateFunctionComponent(
5160
5279
  context,
5161
5280
  renderLanes
5162
5281
  );
5282
+ markComponentRenderStopped();
5163
5283
  if (null !== current && !didReceiveUpdate)
5164
5284
  return (
5165
5285
  (workInProgress.updateQueue = current.updateQueue),
@@ -5396,7 +5516,10 @@ function finishClassComponent(
5396
5516
  ) {
5397
5517
  var nextChildren = null;
5398
5518
  profilerStartTime = -1;
5399
- } else nextChildren = shouldUpdate.render();
5519
+ } else
5520
+ markComponentRenderStarted(workInProgress),
5521
+ (nextChildren = shouldUpdate.render()),
5522
+ markComponentRenderStopped();
5400
5523
  workInProgress.flags |= 1;
5401
5524
  null !== current && didCaptureError
5402
5525
  ? ((didCaptureError = nextChildren),
@@ -5429,7 +5552,7 @@ function pushHostRootContext(workInProgress) {
5429
5552
  pushTopLevelContextObject(workInProgress, root.context, !1);
5430
5553
  pushHostContainer(workInProgress, root.containerInfo);
5431
5554
  }
5432
- var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
5555
+ var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
5433
5556
  function mountSuspenseOffscreenState(renderLanes) {
5434
5557
  return { baseLanes: renderLanes, cachePool: null };
5435
5558
  }
@@ -5443,11 +5566,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
5443
5566
  null !== current && null === current.memoizedState
5444
5567
  ? !1
5445
5568
  : 0 !== (suspenseContext & 2));
5446
- JSCompiler_temp
5447
- ? ((showFallback = !0), (workInProgress.flags &= -129))
5448
- : (null !== current && null === current.memoizedState) ||
5449
- !0 === nextProps.unstable_avoidThisFallback ||
5450
- (suspenseContext |= 1);
5569
+ if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
5570
+ else if (null === current || null !== current.memoizedState)
5571
+ suspenseContext |= 1;
5451
5572
  push(suspenseStackCursor, suspenseContext & 1);
5452
5573
  if (null === current) {
5453
5574
  current = nextProps.children;
@@ -5666,7 +5787,7 @@ function updateSuspenseFallbackChildren(
5666
5787
  primaryChildren
5667
5788
  ))),
5668
5789
  (current.subtreeFlags =
5669
- currentPrimaryChildFragment.subtreeFlags & 7340032));
5790
+ currentPrimaryChildFragment.subtreeFlags & 14680064));
5670
5791
  null !== currentFallbackChildFragment
5671
5792
  ? (fallbackChildren = createWorkInProgress(
5672
5793
  currentFallbackChildFragment,
@@ -5898,6 +6019,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
5898
6019
  return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
5899
6020
  }
5900
6021
  function unwindWork(workInProgress) {
6022
+ popTreeContext(workInProgress);
5901
6023
  switch (workInProgress.tag) {
5902
6024
  case 1:
5903
6025
  isContextProvider(workInProgress.type) && popContext();
@@ -6051,24 +6173,63 @@ function commitHookEffectListUnmount(
6051
6173
  var destroy = effect.destroy;
6052
6174
  effect.destroy = void 0;
6053
6175
  void 0 !== destroy &&
6054
- safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
6176
+ (0 !== (flags & 8)
6177
+ ? null !== injectedProfilingHooks &&
6178
+ "function" ===
6179
+ typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted &&
6180
+ injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(
6181
+ finishedWork
6182
+ )
6183
+ : 0 !== (flags & 4) &&
6184
+ markComponentLayoutEffectUnmountStarted(finishedWork),
6185
+ safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy),
6186
+ 0 !== (flags & 8)
6187
+ ? null !== injectedProfilingHooks &&
6188
+ "function" ===
6189
+ typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
6190
+ injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
6191
+ : 0 !== (flags & 4) && markComponentLayoutEffectUnmountStopped());
6055
6192
  }
6056
6193
  effect = effect.next;
6057
6194
  } while (effect !== updateQueue);
6058
6195
  }
6059
6196
  }
6060
- function commitHookEffectListMount(tag, finishedWork) {
6061
- finishedWork = finishedWork.updateQueue;
6062
- finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
6063
- if (null !== finishedWork) {
6064
- var effect = (finishedWork = finishedWork.next);
6197
+ function commitHookEffectListMount(flags, finishedWork) {
6198
+ var updateQueue = finishedWork.updateQueue;
6199
+ updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
6200
+ if (null !== updateQueue) {
6201
+ var effect = (updateQueue = updateQueue.next);
6065
6202
  do {
6066
- if ((effect.tag & tag) === tag) {
6067
- var create$86 = effect.create;
6068
- effect.destroy = create$86();
6203
+ if ((effect.tag & flags) === flags) {
6204
+ 0 !== (flags & 8)
6205
+ ? null !== injectedProfilingHooks &&
6206
+ "function" ===
6207
+ typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted &&
6208
+ injectedProfilingHooks.markComponentPassiveEffectMountStarted(
6209
+ finishedWork
6210
+ )
6211
+ : 0 !== (flags & 4) &&
6212
+ null !== injectedProfilingHooks &&
6213
+ "function" ===
6214
+ typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted &&
6215
+ injectedProfilingHooks.markComponentLayoutEffectMountStarted(
6216
+ finishedWork
6217
+ );
6218
+ var create$87 = effect.create;
6219
+ effect.destroy = create$87();
6220
+ 0 !== (flags & 8)
6221
+ ? null !== injectedProfilingHooks &&
6222
+ "function" ===
6223
+ typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped &&
6224
+ injectedProfilingHooks.markComponentPassiveEffectMountStopped()
6225
+ : 0 !== (flags & 4) &&
6226
+ null !== injectedProfilingHooks &&
6227
+ "function" ===
6228
+ typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped &&
6229
+ injectedProfilingHooks.markComponentLayoutEffectMountStopped();
6069
6230
  }
6070
6231
  effect = effect.next;
6071
- } while (effect !== finishedWork);
6232
+ } while (effect !== updateQueue);
6072
6233
  }
6073
6234
  }
6074
6235
  function detachFiberAfterEffects(fiber) {
@@ -6192,13 +6353,17 @@ function commitMutationEffects(root, firstChild, committedLanes) {
6192
6353
  var _effect = effect,
6193
6354
  destroy = _effect.destroy,
6194
6355
  tag = _effect.tag;
6195
- void 0 === destroy ||
6196
- (0 === (tag & 2) && 0 === (tag & 4)) ||
6197
- (current.mode & 2
6198
- ? (startLayoutEffectTimer(),
6199
- safelyCallDestroy(current, root, destroy),
6200
- recordLayoutEffectDuration(current))
6201
- : safelyCallDestroy(current, root, destroy));
6356
+ void 0 !== destroy &&
6357
+ (0 !== (tag & 2)
6358
+ ? safelyCallDestroy(current, root, destroy)
6359
+ : 0 !== (tag & 4) &&
6360
+ (markComponentLayoutEffectUnmountStarted(current),
6361
+ current.mode & 2
6362
+ ? (startLayoutEffectTimer(),
6363
+ safelyCallDestroy(current, root, destroy),
6364
+ recordLayoutEffectDuration(current))
6365
+ : safelyCallDestroy(current, root, destroy),
6366
+ markComponentLayoutEffectUnmountStopped()));
6202
6367
  effect = effect.next;
6203
6368
  } while (effect !== firstEffect);
6204
6369
  }
@@ -6282,8 +6447,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
6282
6447
  switch (root.tag) {
6283
6448
  case 13:
6284
6449
  if (null !== root.memoizedState) {
6285
- var current$92 = root.alternate;
6286
- if (null === current$92 || null === current$92.memoizedState)
6450
+ var current$93 = root.alternate;
6451
+ if (null === current$93 || null === current$93.memoizedState)
6287
6452
  globalMostRecentFallbackTime = now();
6288
6453
  }
6289
6454
  }
@@ -6393,27 +6558,30 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6393
6558
  commitUpdateQueue(committedLanes, updateQueue, instance);
6394
6559
  break;
6395
6560
  case 3:
6396
- var updateQueue$88 = committedLanes.updateQueue;
6397
- if (null !== updateQueue$88) {
6398
- var instance$89 = null;
6561
+ var updateQueue$89 = committedLanes.updateQueue;
6562
+ if (null !== updateQueue$89) {
6563
+ var instance$90 = null;
6399
6564
  if (null !== committedLanes.child)
6400
6565
  switch (committedLanes.child.tag) {
6401
6566
  case 5:
6402
- instance$89 =
6567
+ instance$90 =
6403
6568
  committedLanes.child.stateNode.canonical;
6404
6569
  break;
6405
6570
  case 1:
6406
- instance$89 = committedLanes.child.stateNode;
6571
+ instance$90 = committedLanes.child.stateNode;
6407
6572
  }
6408
6573
  commitUpdateQueue(
6409
6574
  committedLanes,
6410
- updateQueue$88,
6411
- instance$89
6575
+ updateQueue$89,
6576
+ instance$90
6412
6577
  );
6413
6578
  }
6414
6579
  break;
6415
6580
  case 5:
6416
- null === current && committedLanes.flags & 4 && shim();
6581
+ if (null === current && committedLanes.flags & 4)
6582
+ throw Error(
6583
+ "The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
6584
+ );
6417
6585
  break;
6418
6586
  case 6:
6419
6587
  break;
@@ -6424,7 +6592,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6424
6592
  onCommit = _finishedWork$memoize2.onCommit,
6425
6593
  onRender = _finishedWork$memoize2.onRender,
6426
6594
  effectDuration = committedLanes.stateNode.effectDuration;
6427
- instance$89 = commitTime;
6595
+ instance$90 = commitTime;
6428
6596
  current = null === current ? "mount" : "update";
6429
6597
  currentUpdateIsNested && (current = "nested-update");
6430
6598
  "function" === typeof onRender &&
@@ -6434,14 +6602,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6434
6602
  committedLanes.actualDuration,
6435
6603
  committedLanes.treeBaseDuration,
6436
6604
  committedLanes.actualStartTime,
6437
- instance$89
6605
+ instance$90
6438
6606
  );
6439
6607
  "function" === typeof onCommit &&
6440
6608
  onCommit(
6441
6609
  committedLanes.memoizedProps.id,
6442
6610
  current,
6443
6611
  effectDuration,
6444
- instance$89
6612
+ instance$90
6445
6613
  );
6446
6614
  enqueuePendingPassiveProfilerEffect(committedLanes);
6447
6615
  var parentFiber = committedLanes.return;
@@ -6471,27 +6639,27 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6471
6639
  );
6472
6640
  }
6473
6641
  if (committedLanes.flags & 512) {
6474
- instance$89 = void 0;
6642
+ instance$90 = void 0;
6475
6643
  current = committedLanes;
6476
6644
  var ref = current.ref;
6477
6645
  if (null !== ref) {
6478
6646
  var instance$jscomp$0 = current.stateNode;
6479
6647
  switch (current.tag) {
6480
6648
  case 5:
6481
- instance$89 = instance$jscomp$0.canonical;
6649
+ instance$90 = instance$jscomp$0.canonical;
6482
6650
  break;
6483
6651
  default:
6484
- instance$89 = instance$jscomp$0;
6652
+ instance$90 = instance$jscomp$0;
6485
6653
  }
6486
6654
  if ("function" === typeof ref)
6487
6655
  if (current.mode & 2)
6488
6656
  try {
6489
- startLayoutEffectTimer(), ref(instance$89);
6657
+ startLayoutEffectTimer(), ref(instance$90);
6490
6658
  } finally {
6491
6659
  recordLayoutEffectDuration(current);
6492
6660
  }
6493
- else ref(instance$89);
6494
- else ref.current = instance$89;
6661
+ else ref(instance$90);
6662
+ else ref.current = instance$90;
6495
6663
  }
6496
6664
  }
6497
6665
  } catch (error) {
@@ -6506,10 +6674,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
6506
6674
  nextEffect = null;
6507
6675
  break;
6508
6676
  }
6509
- instance$89 = committedLanes.sibling;
6510
- if (null !== instance$89) {
6511
- instance$89.return = committedLanes.return;
6512
- nextEffect = instance$89;
6677
+ instance$90 = committedLanes.sibling;
6678
+ if (null !== instance$90) {
6679
+ instance$90.return = committedLanes.return;
6680
+ nextEffect = instance$90;
6513
6681
  break;
6514
6682
  }
6515
6683
  nextEffect = committedLanes.return;
@@ -6529,7 +6697,8 @@ var ceil = Math.ceil,
6529
6697
  workInProgressRootExitStatus = 0,
6530
6698
  workInProgressRootFatalError = null,
6531
6699
  workInProgressRootSkippedLanes = 0,
6532
- workInProgressRootUpdatedLanes = 0,
6700
+ workInProgressRootInterleavedUpdatedLanes = 0,
6701
+ workInProgressRootRenderPhaseUpdatedLanes = 0,
6533
6702
  workInProgressRootPingedLanes = 0,
6534
6703
  globalMostRecentFallbackTime = 0,
6535
6704
  workInProgressRootRenderTargetTime = Infinity,
@@ -6589,18 +6758,21 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
6589
6758
  ));
6590
6759
  var root = markUpdateLaneFromFiberToRoot(fiber, lane);
6591
6760
  if (null === root) return null;
6592
- isDevToolsPresent && addFiberToLanesMap(root, fiber, lane);
6593
6761
  markRootUpdated(root, lane, eventTime);
6594
- root === workInProgressRoot &&
6595
- (0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
6596
- 4 === workInProgressRootExitStatus &&
6597
- markRootSuspended$1(root, workInProgressRootRenderLanes));
6598
- ensureRootIsScheduled(root, eventTime);
6599
- 1 === lane &&
6600
- 0 === executionContext &&
6601
- 0 === (fiber.mode & 1) &&
6602
- ((workInProgressRootRenderTargetTime = now() + 500),
6603
- includesLegacySyncCallbacks && flushSyncCallbacks());
6762
+ 0 !== (executionContext & 2) && root === workInProgressRoot
6763
+ ? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
6764
+ : (isDevToolsPresent && addFiberToLanesMap(root, fiber, lane),
6765
+ root === workInProgressRoot &&
6766
+ (0 === (executionContext & 2) &&
6767
+ (workInProgressRootInterleavedUpdatedLanes |= lane),
6768
+ 4 === workInProgressRootExitStatus &&
6769
+ markRootSuspended$1(root, workInProgressRootRenderLanes)),
6770
+ ensureRootIsScheduled(root, eventTime),
6771
+ 1 === lane &&
6772
+ 0 === executionContext &&
6773
+ 0 === (fiber.mode & 1) &&
6774
+ ((workInProgressRootRenderTargetTime = now() + 500),
6775
+ includesLegacySyncCallbacks && flushSyncCallbacks()));
6604
6776
  return root;
6605
6777
  }
6606
6778
  function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
@@ -6626,12 +6798,12 @@ function ensureRootIsScheduled(root, currentTime) {
6626
6798
  0 < lanes;
6627
6799
 
6628
6800
  ) {
6629
- var index$5 = 31 - clz32(lanes),
6630
- lane = 1 << index$5,
6631
- expirationTime = expirationTimes[index$5];
6801
+ var index$6 = 31 - clz32(lanes),
6802
+ lane = 1 << index$6,
6803
+ expirationTime = expirationTimes[index$6];
6632
6804
  if (-1 === expirationTime) {
6633
6805
  if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
6634
- expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
6806
+ expirationTimes[index$6] = computeExpirationTime(lane, currentTime);
6635
6807
  } else expirationTime <= currentTime && (root.expiredLanes |= lane);
6636
6808
  lanes &= ~lane;
6637
6809
  }
@@ -6726,6 +6898,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6726
6898
  workInProgressRootRenderTargetTime = now() + 500;
6727
6899
  prepareFreshStack(root, didTimeout);
6728
6900
  }
6901
+ markRenderStarted(didTimeout);
6729
6902
  do
6730
6903
  try {
6731
6904
  workLoopConcurrent();
@@ -6738,8 +6911,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6738
6911
  ReactCurrentDispatcher$2.current = prevDispatcher;
6739
6912
  executionContext = prevExecutionContext;
6740
6913
  null !== workInProgress
6741
- ? (didTimeout = 0)
6742
- : ((workInProgressRoot = null),
6914
+ ? (null !== injectedProfilingHooks &&
6915
+ "function" === typeof injectedProfilingHooks.markRenderYielded &&
6916
+ injectedProfilingHooks.markRenderYielded(),
6917
+ (didTimeout = 0))
6918
+ : (markRenderStopped(),
6919
+ (workInProgressRoot = null),
6743
6920
  (workInProgressRootRenderLanes = 0),
6744
6921
  (didTimeout = workInProgressRootExitStatus));
6745
6922
  }
@@ -6855,10 +7032,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
6855
7032
  function recoverFromConcurrentError(root, errorRetryLanes) {
6856
7033
  var prevExecutionContext = executionContext;
6857
7034
  executionContext |= 8;
6858
- root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
6859
- root = renderRootSync(root, errorRetryLanes);
7035
+ root.isDehydrated && (root.isDehydrated = !1);
7036
+ for (
7037
+ var exitStatus, i = 0;
7038
+ 50 > i &&
7039
+ ((exitStatus = renderRootSync(root, errorRetryLanes)),
7040
+ 2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
7041
+ i++
7042
+ );
6860
7043
  executionContext = prevExecutionContext;
6861
- return root;
7044
+ return exitStatus;
6862
7045
  }
6863
7046
  function isRenderConsistentWithExternalStores(finishedWork) {
6864
7047
  for (var node = finishedWork; ; ) {
@@ -6896,13 +7079,13 @@ function isRenderConsistentWithExternalStores(finishedWork) {
6896
7079
  }
6897
7080
  function markRootSuspended$1(root, suspendedLanes) {
6898
7081
  suspendedLanes &= ~workInProgressRootPingedLanes;
6899
- suspendedLanes &= ~workInProgressRootUpdatedLanes;
7082
+ suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
6900
7083
  root.suspendedLanes |= suspendedLanes;
6901
7084
  root.pingedLanes &= ~suspendedLanes;
6902
7085
  for (root = root.expirationTimes; 0 < suspendedLanes; ) {
6903
- var index$6 = 31 - clz32(suspendedLanes),
6904
- lane = 1 << index$6;
6905
- root[index$6] = -1;
7086
+ var index$7 = 31 - clz32(suspendedLanes),
7087
+ lane = 1 << index$7;
7088
+ root[index$7] = -1;
6906
7089
  suspendedLanes &= ~lane;
6907
7090
  }
6908
7091
  }
@@ -6916,13 +7099,10 @@ function performSyncWorkOnRoot(root) {
6916
7099
  if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
6917
7100
  var exitStatus = renderRootSync(root, lanes);
6918
7101
  if (0 !== root.tag && 2 === exitStatus) {
6919
- var prevExecutionContext = executionContext;
6920
- executionContext |= 8;
6921
- root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
6922
7102
  var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
6923
7103
  0 !== errorRetryLanes &&
6924
- ((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
6925
- executionContext = prevExecutionContext;
7104
+ ((lanes = errorRetryLanes),
7105
+ (exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
6926
7106
  }
6927
7107
  if (1 === exitStatus)
6928
7108
  throw ((exitStatus = workInProgressRootFatalError),
@@ -6949,6 +7129,7 @@ function prepareFreshStack(root, lanes) {
6949
7129
  if (null !== workInProgress)
6950
7130
  for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
6951
7131
  var interruptedWork = timeoutHandle;
7132
+ popTreeContext(interruptedWork);
6952
7133
  switch (interruptedWork.tag) {
6953
7134
  case 1:
6954
7135
  interruptedWork = interruptedWork.type.childContextTypes;
@@ -6988,7 +7169,7 @@ function prepareFreshStack(root, lanes) {
6988
7169
  workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
6989
7170
  workInProgressRootExitStatus = 0;
6990
7171
  workInProgressRootFatalError = null;
6991
- workInProgressRootPingedLanes = workInProgressRootUpdatedLanes = workInProgressRootSkippedLanes = 0;
7172
+ workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
6992
7173
  if (null !== interleavedQueues) {
6993
7174
  for (root = 0; root < interleavedQueues.length; root++)
6994
7175
  if (
@@ -7009,7 +7190,7 @@ function prepareFreshStack(root, lanes) {
7009
7190
  interleavedQueues = null;
7010
7191
  }
7011
7192
  }
7012
- function handleError(root$jscomp$0, thrownValue) {
7193
+ function handleError(root, thrownValue) {
7013
7194
  do {
7014
7195
  var erroredWork = workInProgress;
7015
7196
  try {
@@ -7039,20 +7220,42 @@ function handleError(root$jscomp$0, thrownValue) {
7039
7220
  }
7040
7221
  erroredWork.mode & 2 &&
7041
7222
  stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0);
7223
+ markComponentRenderStopped();
7224
+ if (
7225
+ null !== thrownValue &&
7226
+ "object" === typeof thrownValue &&
7227
+ "function" === typeof thrownValue.then
7228
+ ) {
7229
+ var wakeable = thrownValue;
7230
+ null !== injectedProfilingHooks &&
7231
+ "function" === typeof injectedProfilingHooks.markComponentSuspended &&
7232
+ injectedProfilingHooks.markComponentSuspended(
7233
+ erroredWork,
7234
+ wakeable,
7235
+ workInProgressRootRenderLanes
7236
+ );
7237
+ } else
7238
+ null !== injectedProfilingHooks &&
7239
+ "function" === typeof injectedProfilingHooks.markComponentErrored &&
7240
+ injectedProfilingHooks.markComponentErrored(
7241
+ erroredWork,
7242
+ thrownValue,
7243
+ workInProgressRootRenderLanes
7244
+ );
7042
7245
  a: {
7043
- var root = root$jscomp$0,
7044
- returnFiber = erroredWork.return,
7246
+ wakeable = root;
7247
+ var returnFiber = erroredWork.return,
7045
7248
  sourceFiber = erroredWork,
7046
7249
  value = thrownValue;
7047
7250
  thrownValue = workInProgressRootRenderLanes;
7048
7251
  sourceFiber.flags |= 32768;
7049
- isDevToolsPresent && restorePendingUpdaters(root, thrownValue);
7252
+ isDevToolsPresent && restorePendingUpdaters(wakeable, thrownValue);
7050
7253
  if (
7051
7254
  null !== value &&
7052
7255
  "object" === typeof value &&
7053
7256
  "function" === typeof value.then
7054
7257
  ) {
7055
- var wakeable = value,
7258
+ var wakeable$jscomp$0 = value,
7056
7259
  sourceFiber$jscomp$0 = sourceFiber,
7057
7260
  tag = sourceFiber$jscomp$0.tag;
7058
7261
  if (
@@ -7070,99 +7273,90 @@ function handleError(root$jscomp$0, thrownValue) {
7070
7273
  }
7071
7274
  b: {
7072
7275
  sourceFiber$jscomp$0 = returnFiber;
7073
- var sourceFiber$jscomp$1 = sourceFiber,
7074
- rootRenderLanes = thrownValue,
7075
- hasInvisibleParentBoundary =
7076
- 0 !== (suspenseStackCursor.current & 1),
7077
- node = sourceFiber$jscomp$0;
7078
7276
  do {
7079
7277
  var JSCompiler_temp;
7080
- if ((JSCompiler_temp = 13 === node.tag)) {
7081
- var nextState = node.memoizedState;
7278
+ if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
7279
+ var nextState = sourceFiber$jscomp$0.memoizedState;
7082
7280
  JSCompiler_temp =
7083
7281
  null !== nextState
7084
7282
  ? null !== nextState.dehydrated
7085
7283
  ? !0
7086
7284
  : !1
7087
- : !0 !== node.memoizedProps.unstable_avoidThisFallback
7088
- ? !0
7089
- : hasInvisibleParentBoundary
7090
- ? !1
7091
7285
  : !0;
7092
7286
  }
7093
7287
  if (JSCompiler_temp) {
7094
- if (0 === (node.mode & 1)) {
7095
- if (node === sourceFiber$jscomp$0) node.flags |= 65536;
7096
- else {
7097
- node.flags |= 128;
7098
- sourceFiber$jscomp$1.flags |= 131072;
7099
- sourceFiber$jscomp$1.flags &= -52805;
7100
- if (
7101
- enablePersistentOffscreenHostContainer &&
7102
- null === node.alternate
7103
- ) {
7104
- var offscreenContainer = node.child.child;
7105
- if (null !== offscreenContainer) {
7106
- var containerProps = getOffscreenContainerProps(
7107
- "hidden",
7108
- offscreenContainer.memoizedProps.children
7109
- );
7110
- offscreenContainer.pendingProps = containerProps;
7111
- offscreenContainer.memoizedProps = containerProps;
7112
- }
7113
- }
7114
- if (1 === sourceFiber$jscomp$1.tag)
7115
- if (null === sourceFiber$jscomp$1.alternate)
7116
- sourceFiber$jscomp$1.tag = 17;
7117
- else {
7118
- var update = createUpdate(-1, 1);
7119
- update.tag = 2;
7120
- enqueueUpdate(sourceFiber$jscomp$1, update);
7121
- }
7122
- sourceFiber$jscomp$1.lanes |= 1;
7123
- }
7124
- var suspenseBoundary = node;
7125
- break b;
7126
- }
7127
- node.flags |= 65536;
7128
- node.lanes = rootRenderLanes;
7129
- suspenseBoundary = node;
7288
+ var suspenseBoundary = sourceFiber$jscomp$0;
7130
7289
  break b;
7131
7290
  }
7132
- node = node.return;
7133
- } while (null !== node);
7291
+ sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
7292
+ } while (null !== sourceFiber$jscomp$0);
7134
7293
  suspenseBoundary = null;
7135
7294
  }
7136
7295
  if (null !== suspenseBoundary) {
7137
- value = void 0;
7138
- sourceFiber = suspenseBoundary;
7139
- if (sourceFiber.mode & 1) {
7140
- var pingCache = root.pingCache;
7296
+ suspenseBoundary.flags &= -257;
7297
+ value = suspenseBoundary;
7298
+ sourceFiber$jscomp$0 = thrownValue;
7299
+ if (0 === (value.mode & 1))
7300
+ if (value === returnFiber) value.flags |= 65536;
7301
+ else {
7302
+ value.flags |= 128;
7303
+ sourceFiber.flags |= 131072;
7304
+ sourceFiber.flags &= -52805;
7305
+ if (
7306
+ enablePersistentOffscreenHostContainer &&
7307
+ null === value.alternate
7308
+ ) {
7309
+ var offscreenContainer = value.child.child;
7310
+ if (null !== offscreenContainer) {
7311
+ var containerProps = getOffscreenContainerProps(
7312
+ "hidden",
7313
+ offscreenContainer.memoizedProps.children
7314
+ );
7315
+ offscreenContainer.pendingProps = containerProps;
7316
+ offscreenContainer.memoizedProps = containerProps;
7317
+ }
7318
+ }
7319
+ if (1 === sourceFiber.tag)
7320
+ if (null === sourceFiber.alternate) sourceFiber.tag = 17;
7321
+ else {
7322
+ var update = createUpdate(-1, 1);
7323
+ update.tag = 2;
7324
+ enqueueUpdate(sourceFiber, update);
7325
+ }
7326
+ sourceFiber.lanes |= 1;
7327
+ }
7328
+ else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
7329
+ sourceFiber = void 0;
7330
+ value = suspenseBoundary;
7331
+ if (value.mode & 1) {
7332
+ var pingCache = wakeable.pingCache;
7141
7333
  null === pingCache
7142
- ? ((pingCache = root.pingCache = new PossiblyWeakMap()),
7143
- (value = new Set()),
7144
- pingCache.set(wakeable, value))
7145
- : ((value = pingCache.get(wakeable)),
7146
- void 0 === value &&
7147
- ((value = new Set()), pingCache.set(wakeable, value)));
7148
- if (!value.has(thrownValue)) {
7149
- value.add(thrownValue);
7334
+ ? ((pingCache = wakeable.pingCache = new PossiblyWeakMap()),
7335
+ (sourceFiber = new Set()),
7336
+ pingCache.set(wakeable$jscomp$0, sourceFiber))
7337
+ : ((sourceFiber = pingCache.get(wakeable$jscomp$0)),
7338
+ void 0 === sourceFiber &&
7339
+ ((sourceFiber = new Set()),
7340
+ pingCache.set(wakeable$jscomp$0, sourceFiber)));
7341
+ if (!sourceFiber.has(thrownValue)) {
7342
+ sourceFiber.add(thrownValue);
7150
7343
  var ping = pingSuspendedRoot.bind(
7151
7344
  null,
7152
- root,
7153
7345
  wakeable,
7346
+ wakeable$jscomp$0,
7154
7347
  thrownValue
7155
7348
  );
7156
- isDevToolsPresent && restorePendingUpdaters(root, thrownValue);
7157
- wakeable.then(ping, ping);
7349
+ isDevToolsPresent &&
7350
+ restorePendingUpdaters(wakeable, thrownValue);
7351
+ wakeable$jscomp$0.then(ping, ping);
7158
7352
  }
7159
7353
  }
7160
- var wakeables = sourceFiber.updateQueue;
7354
+ var wakeables = value.updateQueue;
7161
7355
  if (null === wakeables) {
7162
7356
  var updateQueue = new Set();
7163
- updateQueue.add(wakeable);
7164
- sourceFiber.updateQueue = updateQueue;
7165
- } else wakeables.add(wakeable);
7357
+ updateQueue.add(wakeable$jscomp$0);
7358
+ value.updateQueue = updateQueue;
7359
+ } else wakeables.add(wakeable$jscomp$0);
7166
7360
  break a;
7167
7361
  } else
7168
7362
  value = Error(
@@ -7173,47 +7367,47 @@ function handleError(root$jscomp$0, thrownValue) {
7173
7367
  4 !== workInProgressRootExitStatus &&
7174
7368
  (workInProgressRootExitStatus = 2);
7175
7369
  value = createCapturedValue(value, sourceFiber);
7176
- root = returnFiber;
7370
+ wakeable = returnFiber;
7177
7371
  do {
7178
- switch (root.tag) {
7372
+ switch (wakeable.tag) {
7179
7373
  case 3:
7180
- wakeable = value;
7181
- root.flags |= 65536;
7374
+ wakeable$jscomp$0 = value;
7375
+ wakeable.flags |= 65536;
7182
7376
  thrownValue &= -thrownValue;
7183
- root.lanes |= thrownValue;
7377
+ wakeable.lanes |= thrownValue;
7184
7378
  var update$jscomp$0 = createRootErrorUpdate(
7185
- root,
7186
7379
  wakeable,
7380
+ wakeable$jscomp$0,
7187
7381
  thrownValue
7188
7382
  );
7189
- enqueueCapturedUpdate(root, update$jscomp$0);
7383
+ enqueueCapturedUpdate(wakeable, update$jscomp$0);
7190
7384
  break a;
7191
7385
  case 1:
7192
- wakeable = value;
7193
- var ctor = root.type,
7194
- instance = root.stateNode;
7386
+ wakeable$jscomp$0 = value;
7387
+ var ctor = wakeable.type,
7388
+ instance = wakeable.stateNode;
7195
7389
  if (
7196
- 0 === (root.flags & 128) &&
7390
+ 0 === (wakeable.flags & 128) &&
7197
7391
  ("function" === typeof ctor.getDerivedStateFromError ||
7198
7392
  (null !== instance &&
7199
7393
  "function" === typeof instance.componentDidCatch &&
7200
7394
  (null === legacyErrorBoundariesThatAlreadyFailed ||
7201
7395
  !legacyErrorBoundariesThatAlreadyFailed.has(instance))))
7202
7396
  ) {
7203
- root.flags |= 65536;
7397
+ wakeable.flags |= 65536;
7204
7398
  thrownValue &= -thrownValue;
7205
- root.lanes |= thrownValue;
7206
- var update$33 = createClassErrorUpdate(
7207
- root,
7399
+ wakeable.lanes |= thrownValue;
7400
+ var update$34 = createClassErrorUpdate(
7208
7401
  wakeable,
7402
+ wakeable$jscomp$0,
7209
7403
  thrownValue
7210
7404
  );
7211
- enqueueCapturedUpdate(root, update$33);
7405
+ enqueueCapturedUpdate(wakeable, update$34);
7212
7406
  break a;
7213
7407
  }
7214
7408
  }
7215
- root = root.return;
7216
- } while (null !== root);
7409
+ wakeable = wakeable.return;
7410
+ } while (null !== wakeable);
7217
7411
  }
7218
7412
  completeUnitOfWork(erroredWork);
7219
7413
  } catch (yetAnotherThrownValue) {
@@ -7245,6 +7439,7 @@ function renderRootSync(root, lanes) {
7245
7439
  }
7246
7440
  prepareFreshStack(root, lanes);
7247
7441
  }
7442
+ markRenderStarted(lanes);
7248
7443
  do
7249
7444
  try {
7250
7445
  workLoopSync();
@@ -7260,6 +7455,7 @@ function renderRootSync(root, lanes) {
7260
7455
  throw Error(
7261
7456
  "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
7262
7457
  );
7458
+ markRenderStopped();
7263
7459
  workInProgressRoot = null;
7264
7460
  workInProgressRootRenderLanes = 0;
7265
7461
  return workInProgressRootExitStatus;
@@ -7352,7 +7548,10 @@ function commitRootImpl(root, renderPriorityLevel) {
7352
7548
  throw Error("Should not already be working.");
7353
7549
  var finishedWork = root.finishedWork,
7354
7550
  lanes = root.finishedLanes;
7355
- if (null === finishedWork) return null;
7551
+ null !== injectedProfilingHooks &&
7552
+ "function" === typeof injectedProfilingHooks.markCommitStarted &&
7553
+ injectedProfilingHooks.markCommitStarted(lanes);
7554
+ if (null === finishedWork) return markCommitStopped(), null;
7356
7555
  root.finishedWork = null;
7357
7556
  root.finishedLanes = 0;
7358
7557
  if (finishedWork === root.current)
@@ -7387,7 +7586,13 @@ function commitRootImpl(root, renderPriorityLevel) {
7387
7586
  commitTime = now$1();
7388
7587
  commitMutationEffects(root, finishedWork, lanes);
7389
7588
  root.current = finishedWork;
7589
+ null !== injectedProfilingHooks &&
7590
+ "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
7591
+ injectedProfilingHooks.markLayoutEffectsStarted(lanes);
7390
7592
  commitLayoutEffects(finishedWork, root, lanes);
7593
+ null !== injectedProfilingHooks &&
7594
+ "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
7595
+ injectedProfilingHooks.markLayoutEffectsStopped();
7391
7596
  requestPaint();
7392
7597
  executionContext = prevExecutionContext;
7393
7598
  currentUpdatePriority = previousPriority;
@@ -7418,6 +7623,7 @@ function commitRootImpl(root, renderPriorityLevel) {
7418
7623
  : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
7419
7624
  : (nestedUpdateCount = 0);
7420
7625
  flushSyncCallbacks();
7626
+ markCommitStopped();
7421
7627
  return null;
7422
7628
  }
7423
7629
  function flushPassiveEffects() {
@@ -7432,11 +7638,16 @@ function flushPassiveEffects() {
7432
7638
  var JSCompiler_inline_result = !1;
7433
7639
  else {
7434
7640
  renderPriority = rootWithPendingPassiveEffects;
7641
+ var lanes = pendingPassiveEffectsLanes;
7435
7642
  rootWithPendingPassiveEffects = null;
7436
7643
  pendingPassiveEffectsLanes = 0;
7437
7644
  if (0 !== (executionContext & 6))
7438
7645
  throw Error("Cannot flush passive effects while already rendering.");
7439
- var prevExecutionContext = executionContext;
7646
+ null !== injectedProfilingHooks &&
7647
+ "function" ===
7648
+ typeof injectedProfilingHooks.markPassiveEffectsStarted &&
7649
+ injectedProfilingHooks.markPassiveEffectsStarted(lanes);
7650
+ lanes = executionContext;
7440
7651
  executionContext |= 4;
7441
7652
  for (nextEffect = renderPriority.current; null !== nextEffect; ) {
7442
7653
  var fiber = nextEffect,
@@ -7599,7 +7810,11 @@ function flushPassiveEffects() {
7599
7810
  }
7600
7811
  }
7601
7812
  }
7602
- executionContext = prevExecutionContext;
7813
+ null !== injectedProfilingHooks &&
7814
+ "function" ===
7815
+ typeof injectedProfilingHooks.markPassiveEffectsStopped &&
7816
+ injectedProfilingHooks.markPassiveEffectsStopped();
7817
+ executionContext = lanes;
7603
7818
  flushSyncCallbacks();
7604
7819
  if (
7605
7820
  injectedHook &&
@@ -7756,6 +7971,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
7756
7971
  contextStackCursor.current
7757
7972
  );
7758
7973
  prepareToReadContext(workInProgress, renderLanes);
7974
+ markComponentRenderStarted(workInProgress);
7759
7975
  context = renderWithHooks(
7760
7976
  null,
7761
7977
  workInProgress,
@@ -7764,6 +7980,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
7764
7980
  context,
7765
7981
  renderLanes
7766
7982
  );
7983
+ markComponentRenderStopped();
7767
7984
  workInProgress.flags |= 1;
7768
7985
  if (
7769
7986
  "object" === typeof context &&
@@ -8089,7 +8306,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
8089
8306
  (Component = workInProgress.pendingProps.children),
8090
8307
  prepareToReadContext(workInProgress, renderLanes),
8091
8308
  (context = readContext(context)),
8309
+ markComponentRenderStarted(workInProgress),
8092
8310
  (Component = Component(context)),
8311
+ markComponentRenderStopped(),
8093
8312
  (workInProgress.flags |= 1),
8094
8313
  reconcileChildren(current, workInProgress, Component, renderLanes),
8095
8314
  workInProgress.child
@@ -8220,7 +8439,7 @@ function createWorkInProgress(current, pendingProps) {
8220
8439
  (workInProgress.deletions = null),
8221
8440
  (workInProgress.actualDuration = 0),
8222
8441
  (workInProgress.actualStartTime = -1));
8223
- workInProgress.flags = current.flags & 7340032;
8442
+ workInProgress.flags = current.flags & 14680064;
8224
8443
  workInProgress.childLanes = current.childLanes;
8225
8444
  workInProgress.lanes = current.lanes;
8226
8445
  workInProgress.child = current.child;
@@ -8363,7 +8582,7 @@ function createFiberFromPortal(portal, mode, lanes) {
8363
8582
  };
8364
8583
  return mode;
8365
8584
  }
8366
- function FiberRootNode(containerInfo, tag, hydrate) {
8585
+ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
8367
8586
  this.tag = tag;
8368
8587
  this.containerInfo = containerInfo;
8369
8588
  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
@@ -8376,6 +8595,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
8376
8595
  this.expirationTimes = createLaneMap(-1);
8377
8596
  this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
8378
8597
  this.entanglements = createLaneMap(0);
8598
+ this.identifierPrefix = identifierPrefix;
8379
8599
  this.passiveEffectDuration = this.effectDuration = 0;
8380
8600
  this.memoizedUpdaters = new Set();
8381
8601
  containerInfo = this.pendingUpdatersLaneMap = [];
@@ -8409,6 +8629,9 @@ function updateContainer(element, container, parentComponent, callback) {
8409
8629
  var current = container.current,
8410
8630
  eventTime = requestEventTime(),
8411
8631
  lane = requestUpdateLane(current);
8632
+ null !== injectedProfilingHooks &&
8633
+ "function" === typeof injectedProfilingHooks.markRenderScheduled &&
8634
+ injectedProfilingHooks.markRenderScheduled(lane);
8412
8635
  a: if (parentComponent) {
8413
8636
  parentComponent = parentComponent._reactInternals;
8414
8637
  b: {
@@ -8583,10 +8806,10 @@ batchedUpdatesImpl = function(fn, a) {
8583
8806
  }
8584
8807
  };
8585
8808
  var roots = new Map(),
8586
- devToolsConfig$jscomp$inline_965 = {
8809
+ devToolsConfig$jscomp$inline_1002 = {
8587
8810
  findFiberByHostInstance: getInstanceFromInstance,
8588
8811
  bundleType: 0,
8589
- version: "18.0.0-afcb9cdc9-20211008",
8812
+ version: "18.0.0-rc.0-51947a14b-20220113",
8590
8813
  rendererPackageName: "react-native-renderer",
8591
8814
  rendererConfig: {
8592
8815
  getInspectorDataForViewTag: function() {
@@ -8601,11 +8824,11 @@ var roots = new Map(),
8601
8824
  }.bind(null, findNodeHandle)
8602
8825
  }
8603
8826
  };
8604
- var internals$jscomp$inline_1239 = {
8605
- bundleType: devToolsConfig$jscomp$inline_965.bundleType,
8606
- version: devToolsConfig$jscomp$inline_965.version,
8607
- rendererPackageName: devToolsConfig$jscomp$inline_965.rendererPackageName,
8608
- rendererConfig: devToolsConfig$jscomp$inline_965.rendererConfig,
8827
+ var internals$jscomp$inline_1279 = {
8828
+ bundleType: devToolsConfig$jscomp$inline_1002.bundleType,
8829
+ version: devToolsConfig$jscomp$inline_1002.version,
8830
+ rendererPackageName: devToolsConfig$jscomp$inline_1002.rendererPackageName,
8831
+ rendererConfig: devToolsConfig$jscomp$inline_1002.rendererConfig,
8609
8832
  overrideHookState: null,
8610
8833
  overrideHookStateDeletePath: null,
8611
8834
  overrideHookStateRenamePath: null,
@@ -8621,26 +8844,29 @@ var internals$jscomp$inline_1239 = {
8621
8844
  return null === fiber ? null : fiber.stateNode;
8622
8845
  },
8623
8846
  findFiberByHostInstance:
8624
- devToolsConfig$jscomp$inline_965.findFiberByHostInstance ||
8847
+ devToolsConfig$jscomp$inline_1002.findFiberByHostInstance ||
8625
8848
  emptyFindFiberByHostInstance,
8626
8849
  findHostInstancesForRefresh: null,
8627
8850
  scheduleRefresh: null,
8628
8851
  scheduleRoot: null,
8629
8852
  setRefreshHandler: null,
8630
8853
  getCurrentFiber: null,
8631
- reconcilerVersion: "18.0.0-afcb9cdc9-20211008"
8854
+ reconcilerVersion: "18.0.0-rc.0-51947a14b-20220113"
8632
8855
  };
8633
8856
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
8634
- var hook$jscomp$inline_1240 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8857
+ var hook$jscomp$inline_1280 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8635
8858
  if (
8636
- !hook$jscomp$inline_1240.isDisabled &&
8637
- hook$jscomp$inline_1240.supportsFiber
8859
+ !hook$jscomp$inline_1280.isDisabled &&
8860
+ hook$jscomp$inline_1280.supportsFiber
8638
8861
  )
8639
8862
  try {
8640
- (rendererID = hook$jscomp$inline_1240.inject(
8641
- internals$jscomp$inline_1239
8863
+ (rendererID = hook$jscomp$inline_1280.inject(
8864
+ Object.assign({}, internals$jscomp$inline_1279, {
8865
+ getLaneLabelMap: getLaneLabelMap,
8866
+ injectProfilingHooks: injectProfilingHooks
8867
+ })
8642
8868
  )),
8643
- (injectedHook = hook$jscomp$inline_1240);
8869
+ (injectedHook = hook$jscomp$inline_1280);
8644
8870
  } catch (err) {}
8645
8871
  }
8646
8872
  exports.createPortal = function(children, containerTag) {
@@ -8680,7 +8906,7 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
8680
8906
  var root = roots.get(containerTag);
8681
8907
  root ||
8682
8908
  ((root = concurrentRoot ? 1 : 0),
8683
- (concurrentRoot = new FiberRootNode(containerTag, root, !1)),
8909
+ (concurrentRoot = new FiberRootNode(containerTag, root, !1, "")),
8684
8910
  (root = 1 === root ? 1 : 0),
8685
8911
  isDevToolsPresent && (root |= 2),
8686
8912
  (root = createFiber(3, null, null, root)),
@@ -8723,3 +8949,13 @@ exports.stopSurface = function(containerTag) {
8723
8949
  exports.unmountComponentAtNode = function(containerTag) {
8724
8950
  this.stopSurface(containerTag);
8725
8951
  };
8952
+
8953
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
8954
+ if (
8955
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
8956
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
8957
+ 'function'
8958
+ ) {
8959
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
8960
+ }
8961
+