react-native-tvos 0.74.5-0 → 0.75.2-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Animated/AnimatedImplementation.js +2 -0
- package/Libraries/Animated/NativeAnimatedHelper.js +4 -0
- package/Libraries/Animated/createAnimatedComponent.js +10 -4
- package/Libraries/Animated/useAnimatedProps.js +56 -28
- package/Libraries/AppDelegate/RCTAppDelegate.h +9 -0
- package/Libraries/AppDelegate/RCTAppDelegate.mm +95 -37
- package/Libraries/AppDelegate/RCTAppSetupUtils.mm +23 -27
- package/Libraries/AppDelegate/RCTRootViewFactory.h +71 -0
- package/Libraries/AppDelegate/RCTRootViewFactory.mm +76 -17
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +3 -4
- package/Libraries/BatchedBridge/MessageQueue.js +1 -0
- package/Libraries/Blob/RCTBlobCollector.mm +4 -1
- package/Libraries/Blob/RCTBlobManager.h +2 -0
- package/Libraries/Blob/RCTBlobManager.mm +6 -0
- package/Libraries/Blob/React-RCTBlob.podspec +2 -2
- package/Libraries/Components/Button.js +10 -5
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +11 -2
- package/Libraries/Components/Pressable/Pressable.js +29 -7
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +4 -0
- package/Libraries/Components/ScrollView/ScrollView.js +109 -29
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +6 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +13 -1
- package/Libraries/Components/StatusBar/StatusBar.js +1 -21
- package/Libraries/Components/TV/TVViewPropTypes.js +1 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +0 -15
- package/Libraries/Components/TextInput/InputAccessoryView.js +10 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +0 -12
- package/Libraries/Components/TextInput/TextInput.d.ts +0 -19
- package/Libraries/Components/TextInput/TextInput.js +14 -70
- package/Libraries/Components/Touchable/Touchable.js +2 -2
- package/Libraries/Components/Touchable/TouchableHighlight.d.ts +4 -10
- package/Libraries/Components/Touchable/TouchableHighlight.js +3 -1
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +4 -32
- package/Libraries/Components/Touchable/TouchableOpacity.js +3 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +8 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +131 -138
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +6 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/View.js +1 -11
- package/Libraries/Components/View/ViewAccessibility.js +4 -4
- package/Libraries/Components/View/ViewPropTypes.d.ts +7 -49
- package/Libraries/Components/View/ViewPropTypes.js +7 -0
- package/Libraries/Core/Devtools/loadBundleFromServer.js +3 -3
- package/Libraries/Core/Devtools/parseErrorStack.js +5 -5
- package/Libraries/Core/Devtools/parseHermesStack.js +22 -16
- package/Libraries/Core/ErrorHandlers.js +116 -0
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/setUpDeveloperTools.js +3 -1
- package/Libraries/Core/setUpPerformance.js +6 -4
- package/Libraries/Core/setUpReactDevTools.js +70 -10
- package/Libraries/Core/setUpTimers.js +50 -31
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +1 -1
- package/Libraries/Image/Image.android.js +23 -13
- package/Libraries/Image/Image.d.ts +14 -15
- package/Libraries/Image/Image.ios.js +21 -11
- package/Libraries/Image/ImageProps.js +16 -5
- package/Libraries/Image/ImageTypes.flow.js +7 -2
- package/Libraries/Image/ImageUtils.js +1 -0
- package/Libraries/Image/ImageViewNativeComponent.js +2 -1
- package/Libraries/Image/RCTImageLoader.mm +0 -12
- package/Libraries/Image/RCTImageLoaderLoggable.h +3 -1
- package/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +0 -3
- package/Libraries/Image/RCTUIImageViewAnimated.mm +21 -17
- package/Libraries/Image/React-RCTImage.podspec +2 -2
- package/Libraries/Inspector/ElementBox.js +6 -3
- package/Libraries/Inspector/ElementProperties.js +1 -1
- package/Libraries/Interaction/TouchHistoryMath.js +4 -4
- package/Libraries/IntersectionObserver/IntersectionObserverManager.js +6 -26
- package/Libraries/JSInspector/NetworkAgent.js +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +2 -2
- package/Libraries/LogBox/Data/LogBoxData.js +39 -29
- package/Libraries/LogBox/Data/LogBoxLog.js +114 -2
- package/Libraries/LogBox/Data/parseLogBoxLog.js +168 -53
- package/Libraries/LogBox/LogBox.js +29 -12
- package/Libraries/LogBox/LogBoxNotificationContainer.js +4 -0
- package/Libraries/LogBox/UI/LogBoxInspector.js +8 -70
- package/Libraries/LogBox/UI/LogBoxInspectorBody.js +87 -0
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +6 -42
- package/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js +58 -0
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +5 -66
- package/Libraries/LogBox/UI/LogBoxInspectorHeaderButton.js +76 -0
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +8 -5
- package/Libraries/LogBox/UI/LogBoxNotification.js +20 -164
- package/Libraries/LogBox/UI/LogBoxNotificationCountBadge.js +63 -0
- package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +67 -0
- package/Libraries/LogBox/UI/LogBoxNotificationMessage.js +57 -0
- package/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.mm +0 -2
- package/Libraries/NativeAnimation/RCTAnimationUtils.h +1 -0
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
- package/Libraries/NativeComponent/BaseViewConfig.android.js +5 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +5 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +12 -5
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +3 -0
- package/Libraries/NativeComponent/TVViewConfig.js +1 -1
- package/Libraries/Network/RCTNetworkTask.mm +1 -1
- package/Libraries/Network/RCTNetworking.js.flow +1 -0
- package/Libraries/Network/React-RCTNetwork.podspec +2 -2
- package/Libraries/Network/XMLHttpRequest.js +5 -1
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +3 -3
- package/Libraries/Pressability/Pressability.js +3 -51
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +0 -7
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +0 -64
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +2 -2
- package/Libraries/ReactNative/AppContainer-dev.js +3 -2
- package/Libraries/ReactNative/AppContainer-prod.js +2 -1
- package/Libraries/ReactNative/AppContainer.js +2 -0
- package/Libraries/ReactNative/AppRegistry.d.ts +7 -0
- package/Libraries/ReactNative/AppRegistry.js +10 -4
- package/Libraries/ReactNative/BridgelessUIManager.js +1 -21
- package/Libraries/ReactNative/FabricUIManager.js +0 -51
- package/Libraries/ReactNative/ReactFabricPublicInstance/warnForStyleProps.js +1 -0
- package/Libraries/ReactNative/RendererImplementation.js +20 -2
- package/Libraries/ReactNative/UIManager.d.ts +0 -21
- package/Libraries/ReactNative/UIManagerProperties.js +0 -3
- package/Libraries/ReactNative/__mocks__/FabricUIManager.js +5 -341
- package/Libraries/ReactNative/getNativeComponentAttributes.js +8 -8
- package/Libraries/ReactNative/renderApplication.js +3 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +862 -1553
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3166 -3510
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3512 -3866
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +829 -1552
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3320 -3680
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +3669 -4038
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +2 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.js +24 -3
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -2
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Settings/React-RCTSettings.podspec +2 -2
- package/Libraries/Share/Share.d.ts +16 -10
- package/Libraries/Share/Share.js +14 -15
- package/Libraries/StyleSheet/StyleSheet.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheet.js +3 -10
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +21 -21
- package/Libraries/StyleSheet/StyleSheetTypes.js +24 -18
- package/Libraries/StyleSheet/flattenStyle.js +1 -0
- package/Libraries/StyleSheet/processFilter.js +132 -0
- package/Libraries/StyleSheet/processTransform.js +18 -3
- package/Libraries/Text/Text/NSTextStorage+FontScaling.m +5 -0
- package/Libraries/Text/Text.js +150 -129
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.mm +13 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +0 -1
- package/Libraries/Text/TextInput/RCTBaseTextInputView.mm +61 -6
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.mm +0 -1
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.mm +2 -2
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.mm +13 -0
- package/Libraries/Text/TextNativeComponent.js +5 -4
- package/Libraries/Text/TextProps.js +6 -6
- package/Libraries/TurboModule/TurboModuleRegistry.js +2 -1
- package/Libraries/Types/CodegenTypes.js +3 -0
- package/Libraries/Utilities/DevLoadingView.js +66 -0
- package/Libraries/Utilities/Dimensions.js +1 -0
- package/Libraries/Utilities/HMRClient.js +36 -8
- package/Libraries/Utilities/HMRClientProdShim.js +1 -0
- package/Libraries/Utilities/Platform.android.js +5 -5
- package/Libraries/Utilities/Platform.d.ts +1 -1
- package/Libraries/Utilities/Platform.flow.js +2 -2
- package/Libraries/Utilities/Platform.ios.js +1 -1
- package/Libraries/Utilities/RCTLog.js +1 -0
- package/Libraries/Utilities/ReactNativeTestTools.js +12 -24
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +11 -6
- package/Libraries/Vibration/React-RCTVibration.podspec +2 -2
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.m +1 -1
- package/Libraries/promiseRejectionTrackingOptions.js +1 -0
- package/README-core.md +5 -5
- package/README.md +76 -41
- package/React/Base/RCTBridge+Inspector.h +1 -1
- package/React/Base/RCTBridge.h +0 -4
- package/React/Base/RCTBridge.mm +59 -30
- package/React/Base/RCTBridgeModule.h +7 -6
- package/React/Base/RCTBridgeModuleDecorator.m +1 -1
- package/React/Base/RCTBundleManager.h +2 -0
- package/React/Base/RCTBundleURLProvider.mm +8 -0
- package/React/Base/RCTCallInvoker.h +27 -0
- package/React/Base/RCTCallInvoker.mm +28 -0
- package/React/Base/RCTCallInvokerModule.h +17 -0
- package/React/Base/RCTConvert.h +18 -0
- package/React/Base/RCTConvert.mm +67 -6
- package/React/Base/RCTDefines.h +0 -9
- package/React/Base/RCTJavaScriptLoader.mm +4 -2
- package/React/Base/RCTModuleData.h +10 -8
- package/React/Base/RCTModuleData.mm +23 -17
- package/React/Base/RCTModuleRegistry.m +6 -1
- package/React/Base/RCTRootView.h +1 -1
- package/React/Base/RCTRootView.m +0 -9
- package/React/Base/RCTRuntimeExecutorModule.h +4 -3
- package/React/Base/RCTUtils.h +4 -4
- package/React/Base/RCTUtils.m +4 -4
- package/React/Base/RCTVersion.m +2 -2
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +3 -4
- package/React/CoreModules/RCTAccessibilityManager+Internal.h +1 -1
- package/React/CoreModules/RCTAppearance.h +1 -0
- package/React/CoreModules/RCTAppearance.mm +20 -1
- package/React/CoreModules/RCTDevSettings.mm +12 -0
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/CoreModules/RCTEventDispatcher.mm +15 -0
- package/React/CoreModules/RCTPerfMonitor.mm +1 -2
- package/React/CoreModules/RCTPlatform.mm +11 -11
- package/React/CoreModules/RCTRedBox.h +0 -18
- package/React/CoreModules/RCTRedBox.mm +1 -38
- package/React/CoreModules/React-CoreModules.podspec +2 -2
- package/React/CxxBridge/NSDataBigString.mm +1 -1
- package/React/CxxBridge/RCTCxxBridge.mm +19 -8
- package/React/CxxBridge/RCTObjcExecutor.mm +1 -1
- package/React/CxxModule/RCTCxxModule.h +1 -1
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +8 -3
- package/React/DevSupport/RCTPausedInDebuggerOverlayController.h +15 -0
- package/React/DevSupport/RCTPausedInDebuggerOverlayController.mm +134 -0
- package/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm +28 -8
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +4 -5
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +1 -2
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +1 -8
- package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.mm +0 -5
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +17 -5
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +63 -38
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +42 -14
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +80 -45
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +45 -3
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +2 -2
- package/React/Fabric/Mounting/RCTMountingManager.mm +1 -1
- package/React/Fabric/RCTImageResponseDelegate.h +5 -2
- package/React/Fabric/RCTImageResponseObserverProxy.h +3 -3
- package/React/Fabric/RCTImageResponseObserverProxy.mm +5 -4
- package/React/Fabric/RCTScheduler.h +0 -2
- package/React/Fabric/RCTScheduler.mm +7 -4
- package/React/Fabric/RCTSurfacePresenter.mm +1 -22
- package/React/Fabric/Utils/RCTColorSpaceUtils.h +16 -0
- package/React/Fabric/Utils/RCTColorSpaceUtils.mm +23 -0
- package/React/I18n/strings/es.lproj/fbt_language_pack.bin +0 -0
- package/React/Inspector/RCTCxxInspectorWebSocketAdapter.mm +1 -1
- package/React/Modules/RCTUIManager.m +0 -18
- package/React/Modules/RCTUIManagerUtils.m +2 -1
- package/React/React-RCTFabric.podspec +8 -3
- package/React/Resources/PrivacyInfo.xcprivacy +29 -0
- package/React/Tests/Text/RCTParagraphComponentViewTests.mm +45 -45
- package/React/Views/RCTActivityIndicatorViewManager.m +0 -3
- package/React/Views/RCTBorderDrawing.m +0 -10
- package/React/Views/RCTFont.mm +3 -1
- package/React/Views/RCTModalHostViewManager.h +0 -6
- package/React/Views/RCTModalHostViewManager.m +0 -17
- package/React/Views/RCTViewManager.m +143 -3
- package/React/Views/ScrollView/RCTScrollView.m +4 -5
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -2
- package/React-Core.podspec +3 -1
- package/ReactAndroid/api/ReactAndroid.api +1063 -696
- package/ReactAndroid/build.gradle.kts +48 -9
- package/ReactAndroid/cmake-utils/ReactNative-application.cmake +11 -6
- package/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +17 -7
- package/ReactAndroid/gradle.properties +1 -4
- package/ReactAndroid/hermes-engine/build.gradle.kts +36 -17
- package/ReactAndroid/publish.gradle +8 -14
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/NoopPrinter.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/Printer.kt +20 -0
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/PrinterHolder.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/hermes/unicode/AndroidUnicodeUtils.kt +77 -0
- package/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackageTurboModuleManagerDelegate.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java +43 -35
- package/ReactAndroid/src/main/java/com/facebook/react/DebugCorePackage.java +31 -21
- package/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/MemoryPressureRouter.java +8 -12
- package/ReactAndroid/src/main/java/com/facebook/react/NativeModuleRegistryBuilder.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +40 -26
- package/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +26 -31
- package/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactHost.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +100 -14
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +18 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackage.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackageTurboModuleManagerDelegate.java +20 -39
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +11 -9
- package/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.kt +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +20 -13
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseActivityEventListener.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java +5 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BridgeReactContext.java +292 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/Callback.kt +20 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.kt +137 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +28 -22
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ColorPropConverter.java +88 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.kt +32 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/FallbackJSBundleLoader.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSExceptionHandler.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSInstance.kt +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java +14 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyMap.java +15 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/LifecycleEventListener.kt +46 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleSpec.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArrayInterface.kt +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.kt +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener.kt +30 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/OnBatchCompleteListener.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/PromiseImpl.java +12 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactApplicationContext.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +69 -154
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactInstanceManagerInspectorTarget.java +59 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMethod.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactModuleWithSpec.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.kt +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.kt +46 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMapKeySetIterator.kt +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.kt +190 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableType.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.kt +53 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/Systrace.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManagerListener.kt +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UiThreadUtil.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UnexpectedNativeTypeException.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WindowFocusChangeListener.kt +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableArray.kt +27 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableMap.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.kt +69 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/queue/MessageQueueThreadImpl.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/ClassFinder.kt +30 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/DebugServerException.java +9 -4
- package/ReactAndroid/src/main/java/com/facebook/react/common/JavascriptException.kt +27 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.kt +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/ReactConstants.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/SingleThreadAsserter.kt +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/SystemClock.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/MapBuffer.kt +19 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.kt +43 -22
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/WritableMapBuffer.kt +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -29
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultComponentsRegistry.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt +49 -3
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactActivityDelegate.kt +0 -8
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactHost.kt +21 -7
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactNativeHost.kt +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultTurboModuleManagerDelegate.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +10 -5
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BundleDownloader.java +22 -21
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DebugOverlayController.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.kt +117 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.kt +114 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +38 -21
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.kt +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +41 -20
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportSoLoader.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.kt +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.kt +101 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorFlags.kt +20 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialog.kt +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.kt +73 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.kt +53 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PausedInDebuggerOverlayDialogManager.java +75 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PerftestDevSupportManager.java +5 -6
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReleaseDevSupportManager.java +214 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java +35 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.kt +27 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevBundleDownloadListener.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevLoadingViewManager.kt +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevOptionHandler.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSplitBundleCallback.kt +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.kt +127 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorCustomizer.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorType.kt +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PackagerStatusCallback.kt +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PausedInDebuggerOverlayManager.kt +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/RedBoxHandler.kt +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/StackFrame.kt +44 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.kt +72 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/BindingImpl.kt +113 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/ComponentFactory.kt +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/CoreComponentsRegistry.kt +30 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricSoLoader.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +71 -41
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManagerProviderImpl.java +18 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/GuardedFrameCallback.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/SynchronousEvent.kt +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventBeatManager.java +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +16 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.java +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/internal/interop/InteropUiBlockListener.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/interop/UIBlock.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/interop/UIBlockViewResolver.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/LayoutMetricsConversions.kt +53 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +53 -33
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +42 -28
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/BatchMountItem.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchCommandMountItem.kt +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchIntCommandMountItem.kt +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchStringCommandMountItem.kt +27 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/FabricNameComponentMapping.kt +45 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +49 -33
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/MountItem.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/MountItemFactory.kt +70 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java +2 -5
- package/ReactAndroid/src/main/java/com/facebook/react/interfaces/exceptionmanager/ReactJsExceptionHandler.kt +34 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/AndroidChoreographerProvider.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.kt +32 -0
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +87 -15
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +156 -36
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +32 -8
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +32 -8
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +175 -43
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +32 -8
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/NativeModuleSoLoader.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/TurboModuleInteropUtils.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/TurboModuleManagerDelegate.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/TurboModulePerfLogger.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java +5 -13
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/LinearCountingRetryPolicy.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/NoRetryPolicy.kt +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.kt +42 -0
- package/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModuleList.kt +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfo.kt +56 -0
- package/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfoProvider.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/module/processing/ReactModuleSpecProcessor.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/AccessibilityInfoModule.kt +212 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.kt +100 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.kt +97 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.kt +84 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.kt +49 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/common/ModuleDataCleaner.kt +46 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +12 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +21 -56
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DevSettingsModule.kt +79 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.kt +158 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.kt +172 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/SourceCodeModule.kt +27 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/interfaces/DeveloperSettings.kt +46 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.kt +85 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.kt +44 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devtoolssettings/DevToolsSettingsManagerModule.kt +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java +67 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/ReactOkHttpNetworkFetcher.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.kt +43 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.kt +101 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.kt +305 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientFactory.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ProgressiveStringDecoder.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/share/ShareModule.kt +66 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/sound/SoundManagerModule.kt +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.kt +185 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/toast/ToastModule.kt +80 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.kt +64 -0
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/FileIoHandler.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/NotificationOnlyHandler.kt +20 -0
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestOnlyHandler.kt +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +20 -0
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/NativeModulePerfLogger.kt +48 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessCatalystInstance.kt +31 -57
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessDevSupportManager.java +7 -15
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessReactContext.java +39 -10
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessReactStateTracker.kt +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/CoreReactPackage.java +39 -29
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/JSCInstance.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/JSRuntimeFactory.kt +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.kt +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +223 -139
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostInspectorTarget.kt +57 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.java +109 -94
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.kt +183 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/cxxreactpackage/CxxReactPackage.kt +3 -14
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/Executors.java +53 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/Task.java +25 -492
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/TaskCompletionSource.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainPackageConfig.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +62 -49
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/CallInvokerHolderImpl.kt +29 -0
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/BindingsInstallerHolder.kt +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/TurboModuleWithJSIBindings.kt +20 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +64 -13
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerDelegate.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerInterface.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolverBinding.kt +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.kt +102 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FabricViewStateManager.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FilterHelper.kt +329 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FloatUtil.kt +32 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/IViewGroupManager.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/IllegalViewOperationException.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +127 -15
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LengthPercentage.kt +73 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/MatrixMathHelper.kt +496 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/MeasureSpecAssertions.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeKind.kt +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +3 -87
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NoSuchNativeViewException.kt +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/OnLayoutEvent.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.kt +58 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.kt +50 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroupHelper.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactInvalidPropertyException.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java +12 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +18 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +28 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactStylesDiffMap.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.kt +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewUtil.kt +45 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/SimpleViewManager.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/Spacing.kt +203 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.java +96 -8
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TransformHelper.java +76 -11
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIConstantsProviderBinding.kt +47 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +0 -30
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +10 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -47
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +3 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java +8 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +0 -59
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewDefaults.kt +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupDrawingOrderHelper.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewHierarchyDumper.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerDelegate.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.kt +305 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/YogaNodePool.kt +20 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/ReactProp.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/ReactPropGroup.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/UIManagerType.kt +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/ViewUtil.kt +79 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/BoxShadowDrawable.kt +102 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/CSSBackgroundDrawable.java +1395 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +21 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java +36 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.kt +44 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEvent.java +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +5 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/SynchronousEventReceiver.kt +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.kt +207 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AnimatedPropertyType.kt +32 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/InterpolatorType.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationType.kt +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.kt +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutDeleteAnimation.kt +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutUpdateAnimation.kt +49 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/BorderRadiusStyle.kt +146 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/ComputedBorderRadius.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/util/ExceptionDataHelper.kt +36 -0
- package/ReactAndroid/src/main/java/com/facebook/react/util/JSStackTrace.kt +67 -0
- package/ReactAndroid/src/main/java/com/facebook/react/util/RCTLog.kt +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.kt +108 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.kt +43 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/common/ViewUtils.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/debuggingoverlay/DebuggingOverlay.kt +86 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/debuggingoverlay/DebuggingOverlayManager.kt +151 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/debuggingoverlay/TraceUpdate.kt +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.kt +29 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.kt +29 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.kt +41 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.kt +44 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/GlobalImageLoadListener.kt +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageLoadEvent.kt +156 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMode.kt +66 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactCallerContextFactory.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageDownloadListener.kt +53 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java +16 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +32 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ScaleTypeStartInside.kt +41 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.kt +73 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.kt +89 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.kt +81 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostHelper.kt +62 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.kt +34 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.kt +149 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.kt +554 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/RequestCloseEvent.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ShowEvent.kt +30 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.kt +59 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/MaintainVisibleScrollPositionHelper.java +10 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerView.java +15 -21
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerViewManager.kt +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +76 -46
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +13 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +80 -17
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewAccessibilityDelegate.java +8 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewCommandHelper.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +570 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +13 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.kt +174 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEventType.kt +29 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/RefreshEvent.kt +29 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.kt +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/DefaultStyleValuesUtil.kt +53 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java +7 -196
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +61 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java +27 -56
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +5 -22
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +328 -133
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomLetterSpacingSpan.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomLineHeightSpan.kt +69 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomStyleSpan.kt +79 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactAbsoluteSizeSpan.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactBackgroundColorSpan.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactClickableSpan.kt +49 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactForegroundColorSpan.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactSpan.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactStrikethroughSpan.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactTagSpan.kt +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactUnderlineSpan.kt +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/SetSpanOperation.kt +58 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ShadowStyleSpan.kt +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/TextInlineImageSpan.kt +58 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/TextInlineViewPlaceholderSpan.kt +52 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +14 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +13 -41
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedView.kt +37 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.kt +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/MeasureUtil.kt +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactClippingViewManager.java +7 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +6 -1422
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundManager.java +66 -9
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +124 -205
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +28 -19
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ViewGroupClickEvent.kt +31 -0
- package/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.kt +85 -0
- package/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.kt +88 -0
- package/ReactAndroid/src/main/java/com/facebook/systrace/TraceListener.kt +15 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNative.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIBase.java +5 -0
- package/ReactAndroid/src/main/jni/CMakeLists.txt +11 -6
- package/ReactAndroid/src/main/jni/first-party/fb/include/fb/log.h +1 -1
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h +7 -6
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h +7 -5
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNI.h +1 -1
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp +31 -12
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YogaJniException.cpp +1 -1
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YogaJniException.h +2 -2
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/common.cpp +8 -8
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/corefunctions.cpp +5 -5
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/yogajni.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/devsupport/JInspectorFlags.cpp +3 -14
- package/ReactAndroid/src/main/jni/react/devsupport/JInspectorFlags.h +1 -3
- package/ReactAndroid/src/main/jni/react/fabric/AsyncEventBeat.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/fabric/Binding.cpp +20 -35
- package/ReactAndroid/src/main/jni/react/fabric/Binding.h +0 -1
- package/ReactAndroid/src/main/jni/react/fabric/EventEmitterWrapper.cpp +19 -1
- package/ReactAndroid/src/main/jni/react/fabric/EventEmitterWrapper.h +1 -0
- package/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp +26 -14
- package/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.h +1 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +211 -43
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +44 -8
- package/ReactAndroid/src/main/jni/react/jni/CMakeLists.txt +1 -1
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +15 -2
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +11 -1
- package/ReactAndroid/src/main/jni/react/jni/JExecutor.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/jni/JExecutor.h +21 -0
- package/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp +2 -0
- package/ReactAndroid/src/main/jni/react/jni/ReactInstanceManagerInspectorTarget.cpp +122 -0
- package/ReactAndroid/src/main/jni/react/jni/ReactInstanceManagerInspectorTarget.h +76 -0
- package/ReactAndroid/src/main/jni/react/jni/SafeReleaseJniRef.h +73 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/CMakeLists.txt +5 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.cpp +9 -4
- package/ReactAndroid/src/main/jni/react/reactnativeblob/BlobCollector.cpp +13 -1
- package/ReactAndroid/src/main/jni/react/reactnativeblob/BlobCollector.h +2 -0
- package/ReactAndroid/src/main/jni/react/reactperflogger/CMakeLists.txt +3 -4
- package/ReactAndroid/src/main/jni/react/reactperflogger/reactperflogger/JNativeModulePerfLogger.h +1 -1
- package/ReactAndroid/src/main/jni/react/runtime/cxxreactpackage/CMakeLists.txt +4 -3
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactExceptionManager.cpp +44 -4
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactExceptionManager.h +2 -2
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.cpp +104 -0
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.h +78 -0
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.cpp +29 -18
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.h +9 -2
- package/ReactAndroid/src/main/jni/react/runtime/jni/OnLoad.cpp +2 -0
- package/ReactAndroid/src/main/jni/react/turbomodule/CMakeLists.txt +1 -0
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/BindingsInstallerHolder.cpp +22 -0
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/BindingsInstallerHolder.h +30 -0
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/TurboModuleManager.cpp +42 -30
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/TurboModuleManager.h +8 -6
- package/ReactAndroid/src/main/jni/react/uimanager/ComponentNameResolverBinding.cpp +59 -0
- package/ReactAndroid/src/main/jni/react/uimanager/ComponentNameResolverBinding.h +29 -0
- package/ReactAndroid/src/main/jni/react/uimanager/OnLoad.cpp +4 -4
- package/ReactAndroid/src/main/jni/react/uimanager/UIConstantsProviderBinding.cpp +66 -0
- package/ReactAndroid/src/main/jni/react/uimanager/UIConstantsProviderBinding.h +83 -0
- package/ReactAndroid/src/main/res/devsupport/drawable/paused_in_debugger_background.xml +27 -0
- package/ReactAndroid/src/main/res/devsupport/drawable/ripple_effect.xml +10 -0
- package/ReactAndroid/src/main/res/devsupport/drawable-hdpi/ic_resume.png +0 -0
- package/ReactAndroid/src/main/res/devsupport/drawable-mdpi/ic_resume.png +0 -0
- package/ReactAndroid/src/main/res/devsupport/drawable-xhdpi/ic_resume.png +0 -0
- package/ReactAndroid/src/main/res/devsupport/drawable-xxhdpi/ic_resume.png +0 -0
- package/ReactAndroid/src/main/res/devsupport/drawable-xxxhdpi/ic_resume.png +0 -0
- package/ReactAndroid/src/main/res/devsupport/layout/paused_in_debugger_view.xml +35 -0
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +6 -0
- package/ReactAndroid/src/main/res/views/uimanager/values-es/strings.xml +3 -3
- package/ReactCommon/React-Fabric.podspec +50 -100
- package/ReactCommon/React-FabricComponents.podspec +205 -0
- package/ReactCommon/React-FabricImage.podspec +1 -1
- package/ReactCommon/ReactCommon.podspec +2 -1
- package/ReactCommon/callinvoker/ReactCommon/CallInvoker.h +21 -3
- package/ReactCommon/cxxreact/CMakeLists.txt +4 -4
- package/ReactCommon/cxxreact/ErrorUtils.h +2 -0
- package/ReactCommon/cxxreact/Instance.cpp +69 -30
- package/ReactCommon/cxxreact/Instance.h +7 -7
- package/ReactCommon/cxxreact/JSExecutor.cpp +6 -10
- package/ReactCommon/cxxreact/JSExecutor.h +14 -11
- package/ReactCommon/cxxreact/MoveWrapper.h +1 -1
- package/ReactCommon/cxxreact/NativeToJsBridge.cpp +4 -4
- package/ReactCommon/cxxreact/PrivacyInfo.xcprivacy +21 -0
- package/ReactCommon/cxxreact/React-cxxreact.podspec +3 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/cxxreact/SharedProxyCxxModule.h +2 -0
- package/ReactCommon/cxxreact/SystraceSection.h +101 -4
- package/ReactCommon/hermes/executor/HermesExecutorFactory.cpp +14 -38
- package/ReactCommon/hermes/executor/HermesExecutorFactory.h +4 -10
- package/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeAgentDelegate.cpp +44 -146
- package/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeAgentDelegate.h +23 -11
- package/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.cpp +237 -0
- package/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.h +75 -0
- package/ReactCommon/jsc/JSCRuntime.cpp +1 -2
- package/ReactCommon/jserrorhandler/JsErrorHandler.cpp +40 -34
- package/ReactCommon/jserrorhandler/JsErrorHandler.h +21 -17
- package/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +0 -1
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsi/jsi/decorator.h +14 -0
- package/ReactCommon/jsi/jsi/jsi-inl.h +1 -1
- package/ReactCommon/jsi/jsi/jsi.h +6 -1
- package/ReactCommon/jsi/jsi/test/testlib.cpp +32 -0
- package/ReactCommon/jsiexecutor/CMakeLists.txt +1 -1
- package/ReactCommon/jsinspector-modern/CONCEPTS.md +2 -2
- package/ReactCommon/jsinspector-modern/CdpJson.cpp +72 -0
- package/ReactCommon/jsinspector-modern/CdpJson.h +138 -0
- package/ReactCommon/jsinspector-modern/ConsoleMessage.cpp +40 -0
- package/ReactCommon/jsinspector-modern/ConsoleMessage.h +89 -0
- package/ReactCommon/jsinspector-modern/FallbackRuntimeAgentDelegate.cpp +9 -10
- package/ReactCommon/jsinspector-modern/FallbackRuntimeTargetDelegate.cpp +47 -0
- package/ReactCommon/jsinspector-modern/FallbackRuntimeTargetDelegate.h +47 -0
- package/ReactCommon/jsinspector-modern/ForwardingConsoleMethods.def +38 -0
- package/ReactCommon/jsinspector-modern/HostAgent.cpp +269 -0
- package/ReactCommon/jsinspector-modern/HostAgent.h +109 -0
- package/ReactCommon/jsinspector-modern/HostCommand.h +19 -0
- package/ReactCommon/jsinspector-modern/HostTarget.cpp +231 -0
- package/ReactCommon/jsinspector-modern/HostTarget.h +256 -0
- package/ReactCommon/jsinspector-modern/InspectorFlags.cpp +28 -30
- package/ReactCommon/jsinspector-modern/InspectorFlags.h +14 -10
- package/ReactCommon/jsinspector-modern/InspectorInterfaces.cpp +2 -1
- package/ReactCommon/jsinspector-modern/InspectorInterfaces.h +3 -2
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnection.cpp +0 -1
- package/ReactCommon/jsinspector-modern/InspectorUtilities.h +8 -0
- package/ReactCommon/jsinspector-modern/InstanceAgent.cpp +86 -6
- package/ReactCommon/jsinspector-modern/InstanceAgent.h +9 -2
- package/ReactCommon/jsinspector-modern/InstanceTarget.cpp +1 -1
- package/ReactCommon/jsinspector-modern/InstanceTarget.h +13 -0
- package/ReactCommon/jsinspector-modern/React-jsinspector.podspec +1 -1
- package/ReactCommon/jsinspector-modern/ReactCdp.h +2 -2
- package/ReactCommon/jsinspector-modern/RuntimeAgent.cpp +16 -24
- package/ReactCommon/jsinspector-modern/RuntimeAgent.h +2 -3
- package/ReactCommon/jsinspector-modern/RuntimeAgentDelegate.h +1 -1
- package/ReactCommon/jsinspector-modern/RuntimeTarget.cpp +8 -1
- package/ReactCommon/jsinspector-modern/RuntimeTarget.h +65 -12
- package/ReactCommon/jsinspector-modern/RuntimeTargetConsole.cpp +486 -0
- package/ReactCommon/jsinspector-modern/SessionState.h +12 -0
- package/ReactCommon/jsinspector-modern/StackTrace.h +39 -0
- package/ReactCommon/jsinspector-modern/tests/ConsoleApiTest.cpp +851 -0
- package/ReactCommon/jsinspector-modern/tests/FollyDynamicMatchers.cpp +1 -1
- package/ReactCommon/jsinspector-modern/tests/FollyDynamicMatchers.h +28 -1
- package/ReactCommon/jsinspector-modern/tests/HostTargetTest.cpp +701 -0
- package/ReactCommon/jsinspector-modern/tests/InspectorMocks.h +26 -5
- package/ReactCommon/jsinspector-modern/tests/InspectorPackagerConnectionTest.cpp +0 -1
- package/ReactCommon/jsinspector-modern/tests/JsiIntegrationTest.cpp +266 -153
- package/ReactCommon/jsinspector-modern/tests/JsiIntegrationTest.h +192 -0
- package/ReactCommon/jsinspector-modern/tests/ReactInstanceIntegrationTest.cpp +239 -0
- package/ReactCommon/jsinspector-modern/tests/ReactInstanceIntegrationTest.h +78 -0
- package/ReactCommon/jsinspector-modern/tests/ReactNativeMocks.cpp +94 -0
- package/ReactCommon/jsinspector-modern/tests/ReactNativeMocks.h +65 -0
- package/ReactCommon/jsinspector-modern/tests/engines/JsiIntegrationTestGenericEngineAdapter.cpp +13 -15
- package/ReactCommon/jsinspector-modern/tests/engines/JsiIntegrationTestGenericEngineAdapter.h +8 -7
- package/ReactCommon/jsinspector-modern/tests/engines/JsiIntegrationTestHermesEngineAdapter.cpp +18 -23
- package/ReactCommon/jsinspector-modern/tests/engines/JsiIntegrationTestHermesEngineAdapter.h +10 -9
- package/ReactCommon/jsinspector-modern/tests/prelude.js.h +636 -0
- package/ReactCommon/jsinspector-modern/tests/utils/InspectorFlagOverridesGuard.cpp +49 -0
- package/ReactCommon/jsinspector-modern/tests/utils/InspectorFlagOverridesGuard.h +42 -0
- package/ReactCommon/react/bridging/Base.h +3 -3
- package/ReactCommon/react/bridging/Bridging.h +1 -0
- package/ReactCommon/react/bridging/CallbackWrapper.h +6 -7
- package/ReactCommon/react/bridging/EventEmitter.h +134 -0
- package/ReactCommon/react/bridging/Function.h +22 -8
- package/ReactCommon/react/bridging/LongLivedObject.cpp +18 -4
- package/ReactCommon/react/bridging/LongLivedObject.h +4 -2
- package/ReactCommon/react/bridging/Promise.h +5 -3
- package/ReactCommon/react/bridging/tests/BridgingTest.cpp +112 -2
- package/ReactCommon/react/bridging/tests/BridgingTest.h +6 -6
- package/ReactCommon/react/bridging/tests/ClassTest.cpp +2 -4
- package/ReactCommon/react/debug/react_native_assert.h +2 -0
- package/ReactCommon/react/debug/react_native_expect.h +2 -0
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +63 -15
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +86 -22
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +256 -40
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +40 -16
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +56 -8
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +20 -8
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.cpp +15 -16
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.cpp +7 -10
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.h +21 -7
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +9 -5
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +5 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.cpp +3 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +2 -4
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +17 -12
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.h +6 -0
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTRuntimeExecutor.h +2 -0
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +4 -4
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +51 -34
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleWithJSIBindings.h +20 -0
- package/ReactCommon/react/nativemodule/defaults/CMakeLists.txt +27 -0
- package/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.cpp +38 -0
- package/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.h +18 -0
- package/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +51 -0
- package/ReactCommon/react/nativemodule/dom/CMakeLists.txt +28 -0
- package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +355 -0
- package/ReactCommon/react/nativemodule/dom/NativeDOM.h +110 -0
- package/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +50 -0
- package/ReactCommon/react/nativemodule/featureflags/CMakeLists.txt +26 -0
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +77 -15
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +39 -10
- package/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +48 -0
- package/ReactCommon/react/nativemodule/idlecallbacks/CMakeLists.txt +26 -0
- package/ReactCommon/react/nativemodule/idlecallbacks/NativeIdleCallbacks.cpp +168 -0
- package/ReactCommon/react/nativemodule/idlecallbacks/NativeIdleCallbacks.h +42 -0
- package/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +49 -0
- package/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.h +89 -0
- package/ReactCommon/react/nativemodule/microtasks/CMakeLists.txt +25 -0
- package/ReactCommon/react/nativemodule/microtasks/NativeMicrotasks.cpp +31 -0
- package/ReactCommon/react/nativemodule/microtasks/NativeMicrotasks.h +27 -0
- package/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +48 -0
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp +170 -0
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h +94 -0
- package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
- package/ReactCommon/react/nativemodule/samples/platform/android/CMakeLists.txt +2 -1
- package/ReactCommon/react/nativemodule/samples/platform/android/NativeSampleTurboModuleSpec.java +64 -50
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleJSIBindings.cpp +31 -0
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleJSIBindings.h +32 -0
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleSpec.cpp +41 -39
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleSpec.h +2 -1
- package/ReactCommon/react/nativemodule/samples/platform/android/SampleTurboModule.java +21 -7
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTNativeSampleTurboModuleSpec.h +2 -2
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTNativeSampleTurboModuleSpec.mm +14 -14
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleTurboModule.mm +21 -8
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleTurboModulePlugin.h +37 -0
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp +167 -0
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.h +52 -0
- package/ReactCommon/react/nativemodule/webperformance/NativePerformanceObserver.cpp +123 -0
- package/ReactCommon/react/nativemodule/webperformance/NativePerformanceObserver.h +91 -0
- package/ReactCommon/react/performance/timeline/BoundedConsumableBuffer.h +247 -0
- package/ReactCommon/react/performance/timeline/CMakeLists.txt +22 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryReporter.cpp +296 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryReporter.h +193 -0
- package/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +56 -0
- package/ReactCommon/react/performance/timeline/tests/BoundedConsumableBufferTest.cpp +219 -0
- package/ReactCommon/react/performance/timeline/tests/PerformanceEntryReporterTest.cpp +368 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +7 -5
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +2 -1
- package/ReactCommon/react/renderer/animations/conversions.h +2 -0
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +8 -0
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -0
- package/ReactCommon/react/renderer/attributedstring/conversions.h +57 -166
- package/ReactCommon/react/renderer/attributedstring/primitives.h +7 -0
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h +1 -1
- package/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.cpp +27 -0
- package/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.h +6 -15
- package/ReactCommon/react/renderer/components/image/ImageEventEmitter.cpp +35 -6
- package/ReactCommon/react/renderer/components/image/ImageEventEmitter.h +4 -3
- package/ReactCommon/react/renderer/components/image/ImageProps.h +2 -0
- package/ReactCommon/react/renderer/components/image/ImageState.h +1 -4
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.cpp +4 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.h +1 -1
- package/ReactCommon/react/renderer/components/modal/CMakeLists.txt +0 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewState.h +0 -6
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/conversions.h +2 -0
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.cpp +29 -0
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +31 -0
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp +132 -0
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.h +169 -0
- package/ReactCommon/react/renderer/components/rncore/Props.cpp +155 -0
- package/ReactCommon/react/renderer/components/rncore/Props.h +396 -0
- package/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h +293 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp +24 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +109 -0
- package/ReactCommon/react/renderer/components/rncore/States.cpp +16 -0
- package/ReactCommon/react/renderer/components/rncore/States.h +113 -0
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +1 -1
- package/ReactCommon/react/renderer/components/safeareaview/SafeAreaViewComponentDescriptor.h +0 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewEventEmitter.cpp +21 -16
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewEventEmitter.h +16 -17
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +32 -6
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +3 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewShadowNode.cpp +8 -3
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewState.h +0 -5
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +12 -0
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.cpp +34 -21
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +5 -1
- package/ReactCommon/react/renderer/components/text/ParagraphState.cpp +1 -1
- package/ReactCommon/react/renderer/components/text/ParagraphState.h +7 -6
- package/ReactCommon/react/renderer/components/text/conversions.h +2 -9
- package/ReactCommon/react/renderer/components/textinput/BaseTextInputProps.cpp +186 -0
- package/ReactCommon/react/renderer/components/textinput/BaseTextInputProps.h +68 -0
- package/ReactCommon/react/renderer/components/textinput/CMakeLists.txt +3 -6
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +2 -116
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputProps.h +2 -22
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp +20 -2
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +11 -5
- package/ReactCommon/react/renderer/components/textinput/platform/android/react/renderer/components/androidtextinput/AndroidTextInputState.cpp +4 -15
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputEventEmitter.cpp +23 -54
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputEventEmitter.h +28 -34
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.cpp +1 -77
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.h +3 -33
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.cpp +20 -2
- package/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputShadowNode.h +4 -0
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +98 -24
- package/ReactCommon/react/renderer/components/view/BaseViewProps.h +13 -1
- package/ReactCommon/react/renderer/components/view/ConcreteViewShadowNode.h +20 -3
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +14 -64
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.h +0 -2
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +6 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +6 -1
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +21 -14
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/conversions.h +278 -50
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +0 -4
- package/ReactCommon/react/renderer/components/view/platform/cxx/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +0 -4
- package/ReactCommon/react/renderer/components/view/primitives.h +40 -2
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +2 -2
- package/ReactCommon/react/renderer/consistency/CMakeLists.txt +20 -0
- package/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +45 -0
- package/ReactCommon/react/renderer/consistency/ScopedShadowTreeRevisionLock.h +54 -0
- package/ReactCommon/react/renderer/consistency/ShadowTreeRevisionConsistencyManager.cpp +14 -0
- package/ReactCommon/react/renderer/consistency/ShadowTreeRevisionConsistencyManager.h +24 -0
- package/ReactCommon/react/renderer/core/CMakeLists.txt +2 -0
- package/ReactCommon/react/renderer/core/ComponentDescriptor.cpp +3 -2
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +3 -3
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +1 -0
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +3 -2
- package/ReactCommon/react/renderer/core/ConcreteState.h +17 -15
- package/ReactCommon/react/renderer/core/DynamicPropsUtilities.cpp +6 -1
- package/ReactCommon/react/renderer/core/DynamicPropsUtilities.h +29 -2
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +25 -38
- package/ReactCommon/react/renderer/core/EventDispatcher.h +19 -14
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +6 -13
- package/ReactCommon/react/renderer/core/EventEmitter.h +14 -4
- package/ReactCommon/react/renderer/core/EventLogger.h +1 -3
- package/ReactCommon/react/renderer/core/EventQueue.cpp +25 -2
- package/ReactCommon/react/renderer/core/EventQueue.h +14 -4
- package/ReactCommon/react/renderer/core/EventQueueProcessor.cpp +5 -3
- package/ReactCommon/react/renderer/core/EventQueueProcessor.h +3 -1
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +27 -76
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +7 -1
- package/ReactCommon/react/renderer/core/PropsMacros.h +1 -1
- package/ReactCommon/react/renderer/core/RawProps.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawProps.h +1 -1
- package/ReactCommon/react/renderer/core/RawPropsKeyMap.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawPropsParser.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawPropsParser.h +1 -1
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ReactRootViewTagGenerator.cpp +22 -0
- package/ReactCommon/react/renderer/core/ReactRootViewTagGenerator.h +16 -0
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +61 -16
- package/ReactCommon/react/renderer/core/ShadowNode.h +61 -4
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.cpp +2 -4
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +3 -4
- package/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp +0 -11
- package/ReactCommon/react/renderer/core/ShadowNodeFragment.h +2 -24
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +5 -2
- package/ReactCommon/react/renderer/core/State.h +0 -1
- package/ReactCommon/react/renderer/core/propsConversions.h +6 -6
- package/ReactCommon/react/renderer/core/tests/DynamicPropsUtilitiesTest.cpp +19 -5
- package/ReactCommon/react/renderer/core/tests/EventQueueProcessorTest.cpp +12 -1
- package/ReactCommon/react/renderer/core/tests/FindNodeAtPointTest.cpp +140 -0
- package/ReactCommon/react/renderer/core/tests/LayoutableShadowNodeTest.cpp +155 -106
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +9 -12
- package/ReactCommon/react/renderer/core/tests/ShadowNodeTest.cpp +118 -8
- package/ReactCommon/react/renderer/core/tests/TestComponent.h +2 -7
- package/ReactCommon/react/renderer/css/CSSAngleUnit.h +66 -0
- package/ReactCommon/react/renderer/css/CSSColorUtils.h +373 -0
- package/ReactCommon/react/renderer/css/CSSDeclaredStyle.h +43 -13
- package/ReactCommon/react/renderer/css/CSSKeywords.h +9 -13
- package/ReactCommon/react/renderer/css/CSSLengthUnit.h +1 -1
- package/ReactCommon/react/renderer/css/CSSProperties.h +280 -80
- package/ReactCommon/react/renderer/css/CSSSyntaxParser.h +322 -0
- package/ReactCommon/react/renderer/css/CSSToken.h +84 -0
- package/ReactCommon/react/renderer/css/CSSTokenizer.h +98 -86
- package/ReactCommon/react/renderer/css/CSSValue.h +12 -197
- package/ReactCommon/react/renderer/css/CSSValueParser.h +317 -0
- package/ReactCommon/react/renderer/css/CSSValueVariant.h +267 -0
- package/ReactCommon/react/renderer/css/tests/CSSDeclaredStyleTest.cpp +22 -9
- package/ReactCommon/react/renderer/css/tests/CSSSyntaxParserTest.cpp +269 -0
- package/ReactCommon/react/renderer/css/tests/CSSTokenizerTest.cpp +150 -82
- package/ReactCommon/react/renderer/css/tests/CSSValueParserTest.cpp +419 -0
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.h +8 -8
- package/ReactCommon/react/renderer/debug/flags.h +7 -9
- package/ReactCommon/react/renderer/dom/CMakeLists.txt +26 -0
- package/ReactCommon/react/renderer/dom/DOM.cpp +574 -0
- package/ReactCommon/react/renderer/dom/DOM.h +123 -0
- package/ReactCommon/react/renderer/element/ComponentBuilder.cpp +1 -1
- package/ReactCommon/react/renderer/element/Element.h +4 -4
- package/ReactCommon/react/renderer/graphics/ColorComponents.cpp +23 -0
- package/ReactCommon/react/renderer/graphics/ColorComponents.h +6 -0
- package/ReactCommon/react/renderer/graphics/Filter.h +61 -0
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +2 -1
- package/ReactCommon/react/renderer/graphics/Transform.cpp +96 -32
- package/ReactCommon/react/renderer/graphics/Transform.h +8 -5
- package/ReactCommon/react/renderer/graphics/ValueUnit.h +11 -0
- package/ReactCommon/react/renderer/graphics/fromRawValueShared.h +18 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm +6 -0
- package/ReactCommon/react/renderer/graphics/tests/TransformTest.cpp +44 -0
- package/ReactCommon/react/renderer/imagemanager/ImageResponse.cpp +7 -0
- package/ReactCommon/react/renderer/imagemanager/ImageResponse.h +9 -0
- package/ReactCommon/react/renderer/imagemanager/ImageResponseObserver.h +3 -2
- package/ReactCommon/react/renderer/imagemanager/ImageResponseObserverCoordinator.cpp +10 -5
- package/ReactCommon/react/renderer/imagemanager/ImageResponseObserverCoordinator.h +11 -2
- package/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTImageManager.mm +4 -3
- package/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTSyncImageManager.mm +3 -2
- package/ReactCommon/react/renderer/imagemanager/primitives.h +7 -0
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +8 -0
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +3 -0
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +9 -0
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +1 -1
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +21 -0
- package/ReactCommon/react/renderer/mounting/CMakeLists.txt +3 -1
- package/ReactCommon/react/renderer/mounting/Differentiator.cpp +55 -99
- package/ReactCommon/react/renderer/mounting/Differentiator.h +2 -9
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +38 -25
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +6 -4
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +81 -84
- package/ReactCommon/react/renderer/mounting/ShadowView.cpp +0 -10
- package/ReactCommon/react/renderer/mounting/ShadowView.h +9 -25
- package/ReactCommon/react/renderer/mounting/stubs/StubViewTree.cpp +313 -0
- package/ReactCommon/react/renderer/mounting/stubs/StubViewTree.h +54 -0
- package/ReactCommon/react/renderer/mounting/stubs/stubs.cpp +106 -0
- package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +1 -1
- package/ReactCommon/react/renderer/mounting/tests/OrderIndexTest.cpp +2 -2
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +3 -5
- package/ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp +174 -3
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +726 -98
- package/ReactCommon/react/renderer/mounting/updateMountedFlag.cpp +69 -0
- package/ReactCommon/react/renderer/mounting/updateMountedFlag.h +19 -0
- package/ReactCommon/react/renderer/observers/events/CMakeLists.txt +25 -0
- package/ReactCommon/react/renderer/observers/events/EventPerformanceLogger.cpp +200 -0
- package/ReactCommon/react/renderer/observers/events/EventPerformanceLogger.h +63 -0
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserverManager.cpp +7 -1
- package/ReactCommon/react/renderer/observers/mutation/MutationObserverManager.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/CMakeLists.txt +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +1 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +20 -5
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +27 -9
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +3 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +5 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +3 -3
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler_Legacy.cpp +67 -24
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler_Legacy.h +27 -10
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler_Modern.cpp +131 -61
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler_Modern.h +29 -12
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h +4 -4
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +111 -12
- package/ReactCommon/react/renderer/runtimescheduler/tests/SchedulerPriorityTest.cpp +2 -2
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.cpp +1 -2
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.h +2 -0
- package/ReactCommon/react/renderer/scheduler/CMakeLists.txt +3 -0
- package/ReactCommon/react/renderer/scheduler/InspectorData.h +2 -0
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +27 -14
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +5 -0
- package/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +1 -2
- package/ReactCommon/react/renderer/scheduler/SchedulerToolbox.h +0 -6
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +1 -1
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +1 -1
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/TextLayoutContext.h +4 -4
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.cpp +12 -150
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h +0 -16
- package/ReactCommon/react/renderer/textlayoutmanager/platform/cxx/TextLayoutManager.cpp +8 -9
- package/ReactCommon/react/renderer/textlayoutmanager/platform/cxx/TextLayoutManager.h +10 -7
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.mm +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +47 -2
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.h +3 -9
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm +83 -87
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/TextLayoutManager.h +1 -7
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/TextLayoutManager.mm +3 -24
- package/ReactCommon/react/renderer/uimanager/CMakeLists.txt +7 -2
- package/ReactCommon/react/renderer/uimanager/SurfaceRegistryBinding.cpp +1 -1
- package/ReactCommon/react/renderer/uimanager/SurfaceRegistryBinding.h +1 -0
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +86 -170
- package/ReactCommon/react/renderer/uimanager/UIManager.h +18 -14
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +117 -695
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +1 -0
- package/ReactCommon/react/renderer/uimanager/consistency/CMakeLists.txt +26 -0
- package/ReactCommon/react/renderer/uimanager/consistency/LatestShadowTreeRevisionProvider.cpp +29 -0
- package/ReactCommon/react/renderer/uimanager/consistency/LatestShadowTreeRevisionProvider.h +35 -0
- package/ReactCommon/react/renderer/uimanager/consistency/LazyShadowTreeRevisionConsistencyManager.cpp +90 -0
- package/ReactCommon/react/renderer/uimanager/consistency/LazyShadowTreeRevisionConsistencyManager.h +54 -0
- package/ReactCommon/react/renderer/uimanager/consistency/ShadowTreeRevisionProvider.h +27 -0
- package/ReactCommon/react/renderer/uimanager/consistency/tests/LazyShadowTreeRevisionConsistencyManagerTest.cpp +395 -0
- package/ReactCommon/react/renderer/uimanager/primitives.h +9 -77
- package/ReactCommon/react/runtime/BridgelessNativeMethodCallInvoker.cpp +2 -2
- package/ReactCommon/react/runtime/BridgelessNativeMethodCallInvoker.h +4 -2
- package/ReactCommon/react/runtime/BufferedRuntimeExecutor.cpp +1 -1
- package/ReactCommon/react/runtime/BufferedRuntimeExecutor.h +2 -1
- package/ReactCommon/react/runtime/JSRuntimeFactory.cpp +6 -10
- package/ReactCommon/react/runtime/JSRuntimeFactory.h +16 -8
- package/ReactCommon/react/runtime/ReactInstance.cpp +105 -73
- package/ReactCommon/react/runtime/ReactInstance.h +7 -15
- package/ReactCommon/react/runtime/TimerManager.cpp +81 -105
- package/ReactCommon/react/runtime/TimerManager.h +11 -34
- package/ReactCommon/react/runtime/hermes/HermesInstance.cpp +17 -47
- package/ReactCommon/react/runtime/nativeviewconfig/LegacyUIManagerConstantsProviderBinding.cpp +4 -4
- package/ReactCommon/react/runtime/nativeviewconfig/LegacyUIManagerConstantsProviderBinding.h +2 -4
- package/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +1 -0
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.h +0 -6
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm +55 -32
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.h +1 -2
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm +18 -42
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTLegacyUIManagerConstantsProvider.mm +1 -2
- package/ReactCommon/react/runtime/tests/cxx/ReactInstanceTest.cpp +10 -13
- package/ReactCommon/react/test_utils/ios/Shims/ShimRCTInstance.mm +1 -1
- package/ReactCommon/react/test_utils/shadowTreeGeneration.h +3 -3
- package/ReactCommon/react/utils/ContextContainer.h +1 -1
- package/ReactCommon/react/utils/CoreFeatures.cpp +0 -4
- package/ReactCommon/react/utils/CoreFeatures.h +0 -16
- package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
- package/ReactCommon/react/utils/OnScopeExit.h +36 -0
- package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -0
- package/ReactCommon/react/utils/fnv1a.h +14 -1
- package/ReactCommon/react/utils/jsi-utils.cpp +39 -0
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -0
- package/ReactCommon/reactperflogger/reactperflogger/HermesPerfettoDataSource.cpp +120 -0
- package/ReactCommon/reactperflogger/reactperflogger/HermesPerfettoDataSource.h +34 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfetto.cpp +56 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfetto.h +22 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfettoCategories.cpp +14 -0
- package/ReactCommon/reactperflogger/reactperflogger/ReactPerfettoCategories.h +18 -0
- package/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h +0 -40
- package/ReactCommon/yoga/Yoga.podspec +2 -3
- package/ReactCommon/yoga/cmake/project-defaults.cmake +0 -2
- package/ReactCommon/yoga/yoga/YGConfig.h +4 -4
- package/ReactCommon/yoga/yoga/YGMacros.h +6 -0
- package/ReactCommon/yoga/yoga/YGNode.cpp +2 -2
- package/ReactCommon/yoga/yoga/YGNode.h +4 -4
- package/ReactCommon/yoga/yoga/YGNodeStyle.cpp +5 -0
- package/ReactCommon/yoga/yoga/YGNodeStyle.h +2 -0
- package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.cpp +2 -0
- package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.h +9 -9
- package/ReactCommon/yoga/yoga/algorithm/Align.h +43 -0
- package/ReactCommon/yoga/yoga/algorithm/BoundAxis.h +5 -5
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +200 -178
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h +16 -16
- package/ReactCommon/yoga/yoga/algorithm/FlexLine.cpp +16 -6
- package/ReactCommon/yoga/yoga/algorithm/FlexLine.h +4 -1
- package/ReactCommon/yoga/yoga/algorithm/PixelGrid.h +7 -7
- package/ReactCommon/yoga/yoga/config/Config.cpp +0 -4
- package/ReactCommon/yoga/yoga/config/Config.h +3 -3
- package/ReactCommon/yoga/yoga/debug/Log.h +1 -1
- package/ReactCommon/yoga/yoga/event/event.cpp +2 -2
- package/ReactCommon/yoga/yoga/event/event.h +7 -4
- package/ReactCommon/yoga/yoga/node/Node.cpp +57 -35
- package/ReactCommon/yoga/yoga/node/Node.h +15 -15
- package/ReactCommon/yoga/yoga/style/SmallValueBuffer.h +3 -3
- package/ReactCommon/yoga/yoga/style/Style.h +2 -4
- package/ReactCommon/yoga/yoga/style/StyleValuePool.h +2 -2
- package/build.gradle.kts +2 -0
- package/cli.js +133 -4
- package/gradle/libs.versions.toml +4 -4
- package/jest/mockComponent.js +7 -0
- package/jest/renderer.js +25 -14
- package/jest/setup.js +19 -13
- package/package.json +23 -23
- package/react-native.config.js +54 -22
- package/rn-get-polyfills.js +1 -0
- package/scripts/bundle.js +69 -0
- package/scripts/cocoapods/autolinking.rb +205 -0
- package/scripts/cocoapods/autolinking_utils.rb +25 -0
- package/scripts/cocoapods/codegen_utils.rb +7 -7
- package/scripts/cocoapods/fabric.rb +1 -0
- package/scripts/cocoapods/new_architecture.rb +1 -1
- package/scripts/cocoapods/spm.rb +94 -0
- package/scripts/cocoapods/utils.rb +8 -19
- package/scripts/codegen/generate-artifacts-executor.js +64 -23
- package/scripts/hermes/hermes-utils.js +24 -3
- package/scripts/hermes/prepare-hermes-for-build.js +2 -0
- package/scripts/react-native-xcode.sh +12 -3
- package/scripts/react_native_pods.rb +29 -20
- package/sdks/.hermesversion +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +8 -2
- package/sdks/hermes-engine/utils/build-apple-framework.sh +10 -4
- package/sdks/hermes-engine/utils/build-ios-framework.sh +1 -1
- package/sdks/hermesc/linux64-bin/hermesc +0 -0
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermes-lit +1 -1
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/sdks/hermesc/win64-bin/msvcp140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140_1.dll +0 -0
- package/src/private/core/composeStyles.js +27 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +93 -33
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +23 -4
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +56 -0
- package/src/private/fusebox/README.md +12 -0
- package/src/private/fusebox/setUpFuseboxReactDevToolsDispatcher.js +108 -0
- package/src/private/specs/modules/NativeBlobModule.js +4 -2
- package/src/private/specs/modules/NativeDevSettings.js +1 -0
- package/src/private/specs/modules/NativePlatformConstantsAndroid.js +1 -1
- package/src/private/specs/modules/NativePlatformConstantsIOS.js +1 -1
- package/src/private/specs/modules/NativePushNotificationManagerIOS.js +0 -4
- package/src/private/specs/modules/NativeUIManager.js +0 -7
- package/src/private/webapis/dom/geometry/DOMRectReadOnly.js +24 -24
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +11 -14
- package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +2 -3
- package/src/private/webapis/dom/nodes/ReadOnlyElement.js +24 -54
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +5 -13
- package/src/private/webapis/dom/nodes/specs/NativeDOM.js +468 -0
- package/src/private/webapis/dom/nodes/specs/__mocks__/NativeDOMMock.js +413 -0
- package/src/private/webapis/dom/oldstylecollections/DOMRectList.js +4 -4
- package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +4 -4
- package/src/private/webapis/dom/oldstylecollections/NodeList.js +5 -5
- package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +34 -0
- package/src/private/webapis/microtasks/specs/NativeMicrotasks.js +21 -0
- package/src/private/webapis/performance/EventCounts.js +1 -1
- package/src/private/webapis/performance/MemoryInfo.js +9 -9
- package/src/private/webapis/performance/Performance.js +10 -56
- package/src/private/webapis/performance/PerformanceObserver.js +30 -22
- package/src/private/webapis/performance/RawPerformanceEntry.js +2 -7
- package/src/private/webapis/performance/ReactNativeStartupTiming.js +18 -18
- package/src/private/webapis/performance/UserTiming.js +63 -0
- package/src/private/webapis/performance/specs/NativePerformance.js +34 -0
- package/src/private/webapis/performance/specs/NativePerformanceObserver.js +61 -0
- package/src/private/webapis/performance/specs/__mocks__/NativePerformance.js +67 -0
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceObserver.js +127 -0
- package/third-party-podspecs/RCT-Folly/PrivacyInfo.xcprivacy +21 -0
- package/third-party-podspecs/RCT-Folly.podspec +2 -0
- package/third-party-podspecs/boost/PrivacyInfo.xcprivacy +29 -0
- package/third-party-podspecs/boost.podspec +7 -3
- package/third-party-podspecs/glog/PrivacyInfo.xcprivacy +21 -0
- package/third-party-podspecs/glog.podspec +2 -13
- package/types/modules/globals.d.ts +4 -0
- package/Libraries/Components/View/ReactNativeViewViewConfigAppleTV.js +0 -20
- package/Libraries/IntersectionObserver/NativeIntersectionObserver.h +0 -91
- package/Libraries/MutationObserver/NativeMutationObserver.cpp +0 -164
- package/Libraries/MutationObserver/NativeMutationObserver.h +0 -92
- package/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +0 -13
- package/Libraries/Utilities/LoadingView.android.js +0 -44
- package/Libraries/Utilities/LoadingView.ios.js +0 -50
- package/Libraries/Utilities/LoadingView.js +0 -16
- package/React/Views/RCTSegmentedControl.h +0 -18
- package/React/Views/RCTSegmentedControl.m +0 -68
- package/React/Views/RCTSegmentedControlManager.h +0 -12
- package/React/Views/RCTSegmentedControlManager.m +0 -36
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/NoopPrinter.java +0 -29
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/Printer.java +0 -20
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/PrinterHolder.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java +0 -13
- package/ReactAndroid/src/main/java/com/facebook/hermes/unicode/AndroidUnicodeUtils.java +0 -82
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +0 -50
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/Callback.java +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +0 -156
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.java +0 -32
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSExceptionHandler.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModule.java +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleHolder.java +0 -37
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModulePackage.java +0 -18
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleProvider.java +0 -13
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleSpec.java +0 -16
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleType.java +0 -17
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSInstance.java +0 -18
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/LifecycleEventListener.java +0 -50
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressure.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/MemoryPressureListener.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeArrayInterface.java +0 -13
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.java +0 -28
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/OnBatchCompleteListener.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMethod.java +0 -38
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactModuleWithSpec.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.java +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.java +0 -55
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMapKeySetIterator.java +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java +0 -293
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableType.java +0 -21
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +0 -53
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/Systrace.java +0 -17
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UnexpectedNativeTypeException.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WindowFocusChangeListener.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableArray.java +0 -28
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableMap.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java +0 -81
- package/ReactAndroid/src/main/java/com/facebook/react/common/JavascriptException.java +0 -37
- package/ReactAndroid/src/main/java/com/facebook/react/common/LifecycleState.java +0 -31
- package/ReactAndroid/src/main/java/com/facebook/react/common/ReactConstants.java +0 -24
- package/ReactAndroid/src/main/java/com/facebook/react/common/SingleThreadAsserter.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/common/StandardCharsets.java +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/common/SystemClock.java +0 -30
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +0 -113
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevInternalSettings.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSettingsActivity.java +0 -28
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportSoLoader.java +0 -24
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +0 -207
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java +0 -45
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.java +0 -104
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorFlags.java +0 -28
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialog.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +0 -93
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.java +0 -90
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +0 -12
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevBundleDownloadListener.java +0 -18
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevLoadingViewManager.java +0 -21
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevOptionHandler.java +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSplitBundleCallback.java +0 -16
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +0 -131
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorCustomizer.java +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/ErrorType.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/PackagerStatusCallback.java +0 -12
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/RedBoxHandler.java +0 -40
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/StackFrame.java +0 -44
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/.clang-tidy +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +0 -69
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/BindingImpl.java +0 -121
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/ComponentFactory.java +0 -32
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/CoreComponentsRegistry.java +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricSoLoader.java +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/GuardedFrameCallback.java +0 -43
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/LayoutMetricsConversions.java +0 -54
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/BatchMountItem.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchCommandMountItem.java +0 -31
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchIntCommandMountItem.java +0 -47
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchStringCommandMountItem.java +0 -47
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/FabricNameComponentMapping.java +0 -52
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/MountItem.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/MountItemFactory.java +0 -60
- package/ReactAndroid/src/main/java/com/facebook/react/internal/AndroidChoreographerProvider.java +0 -41
- package/ReactAndroid/src/main/java/com/facebook/react/internal/ChoreographerProvider.java +0 -30
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/.clang-tidy +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/LinearCountingRetryPolicy.java +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/NoRetryPolicy.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java +0 -53
- package/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModuleList.java +0 -31
- package/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfo.java +0 -93
- package/ReactAndroid/src/main/java/com/facebook/react/module/model/ReactModuleInfoProvider.java +0 -16
- package/ReactAndroid/src/main/java/com/facebook/react/modules/.clang-tidy +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/AccessibilityInfoModule.java +0 -238
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +0 -125
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/AppRegistry.java +0 -21
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.java +0 -120
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/ImageStoreManager.java +0 -102
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java +0 -53
- package/ReactAndroid/src/main/java/com/facebook/react/modules/common/ModuleDataCleaner.java +0 -64
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/AnimationsDebugModule.java +0 -106
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DevSettingsModule.java +0 -111
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/DidJSUpdateUiDuringFrameDetector.java +0 -169
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.java +0 -225
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/SourceCodeModule.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/interfaces/DeveloperSettings.java +0 -42
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java +0 -109
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.java +0 -63
- package/ReactAndroid/src/main/java/com/facebook/react/modules/devtoolssettings/DevToolsSettingsManagerModule.java +0 -53
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +0 -61
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.java +0 -98
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.java +0 -319
- package/ReactAndroid/src/main/java/com/facebook/react/modules/share/ShareModule.java +0 -75
- package/ReactAndroid/src/main/java/com/facebook/react/modules/sound/SoundManagerModule.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java +0 -210
- package/ReactAndroid/src/main/java/com/facebook/react/modules/toast/ToastModule.java +0 -98
- package/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java +0 -72
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/NotificationOnlyHandler.java +0 -24
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/RequestOnlyHandler.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/NativeModulePerfLogger.java +0 -58
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/.clang-tidy +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BoltsFutureTask.java +0 -93
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessReactStateTracker.java +0 -32
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/JSCInstance.java +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/JSRuntimeFactory.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.java +0 -50
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.java +0 -253
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/AggregateException.java +0 -129
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/AndroidExecutors.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/BoltsExecutors.java +0 -120
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/CancellationToken.java +0 -74
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/CancellationTokenRegistration.java +0 -60
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/CancellationTokenSource.java +0 -216
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/Capture.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainPackageConfig.java +0 -38
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/CallInvokerHolderImpl.java +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl.java +0 -36
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolverManager.java +0 -41
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +0 -95
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FloatUtil.java +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.java +0 -40
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/IllegalViewOperationException.java +0 -32
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/MatrixMathHelper.java +0 -539
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/MeasureSpecAssertions.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeKind.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NoSuchNativeViewException.java +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java +0 -58
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactInvalidPropertyException.java +0 -21
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.java +0 -24
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.java +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewUtil.java +0 -49
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/SimpleViewManager.java +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/Spacing.java +0 -197
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIConstantsProviderManager.java +0 -73
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewDefaults.java +0 -16
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java +0 -334
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/YogaNodePool.java +0 -31
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/UIManagerType.java +0 -24
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/ViewUtil.java +0 -67
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +0 -249
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/AnimatedPropertyType.java +0 -37
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/InterpolatorType.java +0 -40
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutAnimationType.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutCreateAnimation.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutDeleteAnimation.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/layoutanimation/LayoutUpdateAnimation.java +0 -49
- package/ReactAndroid/src/main/java/com/facebook/react/util/ExceptionDataHelper.java +0 -37
- package/ReactAndroid/src/main/java/com/facebook/react/util/JSStackTrace.java +0 -74
- package/ReactAndroid/src/main/java/com/facebook/react/util/RCTLog.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.java +0 -115
- package/ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.java +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/views/common/ViewUtils.java +0 -36
- package/ReactAndroid/src/main/java/com/facebook/react/views/debuggingoverlay/DebuggingOverlay.java +0 -97
- package/ReactAndroid/src/main/java/com/facebook/react/views/debuggingoverlay/DebuggingOverlayManager.java +0 -162
- package/ReactAndroid/src/main/java/com/facebook/react/views/debuggingoverlay/TraceUpdate.java +0 -37
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.java +0 -49
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.java +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/GlobalImageLoadListener.java +0 -17
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageLoadEvent.java +0 -176
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMethod.java +0 -17
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ImageResizeMode.java +0 -81
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactCallerContextFactory.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageDownloadListener.java +0 -80
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ScaleTypeStartInside.java +0 -40
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.java +0 -92
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.java +0 -105
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java +0 -83
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostHelper.java +0 -65
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +0 -180
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +0 -638
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/RequestCloseEvent.java +0 -42
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ShowEvent.java +0 -42
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ProgressBarShadowNode.java +0 -81
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerViewManager.java +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +0 -601
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java +0 -183
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEventType.java +0 -37
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/RefreshEvent.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.java +0 -52
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/BasicTextAttributeProvider.kt +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/DefaultStyleValuesUtil.java +0 -64
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/EffectiveTextAttributeProvider.kt +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/HierarchicTextAttributeProvider.kt +0 -63
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +0 -604
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutUtils.kt +0 -379
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/fragments/BridgeTextFragment.kt +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/fragments/BridgeTextFragmentList.kt +0 -18
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/fragments/MapBufferTextFragment.kt +0 -42
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/fragments/MapBufferTextFragmentList.kt +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/fragments/TextFragment.kt +0 -29
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/fragments/TextFragmentList.kt +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomLetterSpacingSpan.java +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomLineHeightSpan.java +0 -66
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomStyleSpan.java +0 -93
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactAbsoluteSizeSpan.java +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactBackgroundColorSpan.java +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactClickableSpan.java +0 -69
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactForegroundColorSpan.java +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactSpan.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactStrikethroughSpan.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactTagSpan.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ReactUnderlineSpan.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/SetSpanOperation.java +0 -64
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/ShadowStyleSpan.java +0 -28
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/TextInlineImageSpan.java +0 -59
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/TextInlineViewPlaceholderSpan.java +0 -67
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedView.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager.java +0 -41
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java +0 -75
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/MeasureUtil.java +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ViewGroupClickEvent.java +0 -46
- package/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java +0 -89
- package/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.java +0 -117
- package/ReactAndroid/src/main/java/com/facebook/systrace/TraceListener.java +0 -14
- package/ReactAndroid/src/main/jni/first-party/.clang-tidy +0 -6
- package/ReactAndroid/src/main/jni/first-party/yogajni/.clang-tidy +0 -5
- package/ReactAndroid/src/main/jni/react/hermes/.clang-tidy +0 -6
- package/ReactAndroid/src/main/jni/react/jni/.clang-tidy +0 -6
- package/ReactAndroid/src/main/jni/react/mapbuffer/react/common/mapbuffer/.clang-tidy +0 -3
- package/ReactAndroid/src/main/jni/react/reactperflogger/reactperflogger/.clang-tidy +0 -6
- package/ReactAndroid/src/main/jni/react/reactperflogger/reactperflogger/OnLoad.cpp +0 -14
- package/ReactAndroid/src/main/jni/react/runtime/cxxreactpackage/ReactCommon/OnLoad.cpp +0 -14
- package/ReactAndroid/src/main/jni/react/runtime/hermes/jni/.clang-tidy +0 -20
- package/ReactAndroid/src/main/jni/react/runtime/jni/.clang-tidy +0 -20
- package/ReactAndroid/src/main/jni/react/uimanager/ComponentNameResolverManager.cpp +0 -74
- package/ReactAndroid/src/main/jni/react/uimanager/ComponentNameResolverManager.h +0 -52
- package/ReactAndroid/src/main/jni/react/uimanager/UIConstantsProviderManager.cpp +0 -95
- package/ReactAndroid/src/main/jni/react/uimanager/UIConstantsProviderManager.h +0 -113
- package/ReactCommon/.clang-tidy +0 -7
- package/ReactCommon/butter/.clang-tidy +0 -6
- package/ReactCommon/butter/CMakeLists.txt +0 -21
- package/ReactCommon/butter/butter.h +0 -76
- package/ReactCommon/butter/map.h +0 -45
- package/ReactCommon/callinvoker/.clang-tidy +0 -6
- package/ReactCommon/cxxreact/.clang-tidy +0 -6
- package/ReactCommon/hermes/.clang-tidy +0 -6
- package/ReactCommon/jsc/.clang-tidy +0 -6
- package/ReactCommon/jsengineinstance/.clang-tidy +0 -6
- package/ReactCommon/jsi/.clang-tidy +0 -6
- package/ReactCommon/jsiexecutor/.clang-tidy +0 -6
- package/ReactCommon/jsinspector-modern/.clang-tidy +0 -6
- package/ReactCommon/jsinspector-modern/PageAgent.cpp +0 -153
- package/ReactCommon/jsinspector-modern/PageAgent.h +0 -89
- package/ReactCommon/jsinspector-modern/PageTarget.cpp +0 -166
- package/ReactCommon/jsinspector-modern/PageTarget.h +0 -190
- package/ReactCommon/jsinspector-modern/Parsing.cpp +0 -32
- package/ReactCommon/jsinspector-modern/Parsing.h +0 -69
- package/ReactCommon/jsinspector-modern/tests/PageTargetTest.cpp +0 -517
- package/ReactCommon/react/config/.clang-tidy +0 -6
- package/ReactCommon/react/nativemodule/.clang-tidy +0 -6
- package/ReactCommon/react/renderer/.clang-tidy +0 -195
- package/ReactCommon/react/renderer/attributedstring/tests/AttributedStringTest.cpp +0 -45
- package/ReactCommon/react/renderer/attributedstring/tests/ParagraphAttributesTest.cpp +0 -34
- package/ReactCommon/react/renderer/attributedstring/tests/TextAttributesTest.cpp +0 -37
- package/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.cpp +0 -100
- package/ReactCommon/react/renderer/components/text/ParagraphLayoutManager.h +0 -94
- package/ReactCommon/react/renderer/components/text/tests/ParagraphLocalDataTest.cpp +0 -52
- package/ReactCommon/react/renderer/components/text/tests/TextTest.cpp +0 -14
- package/ReactCommon/react/renderer/core/BatchedEventQueue.cpp +0 -20
- package/ReactCommon/react/renderer/core/BatchedEventQueue.h +0 -28
- package/ReactCommon/react/renderer/core/EventLogger.cpp +0 -22
- package/ReactCommon/react/renderer/core/EventPriority.h +0 -24
- package/ReactCommon/react/renderer/core/UnbatchedEventQueue.cpp +0 -17
- package/ReactCommon/react/renderer/core/UnbatchedEventQueue.h +0 -25
- package/ReactCommon/react/renderer/css/CSSParser.h +0 -220
- package/ReactCommon/react/renderer/css/tests/CSSParserTest.cpp +0 -317
- package/ReactCommon/react/renderer/debug/SystraceSection.h +0 -59
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +0 -313
- package/ReactCommon/react/renderer/mounting/StubViewTree.h +0 -54
- package/ReactCommon/react/renderer/mounting/stubs.cpp +0 -98
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.cpp +0 -59
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.h +0 -45
- package/ReactCommon/react/renderer/timeline/Timeline.cpp +0 -120
- package/ReactCommon/react/renderer/timeline/Timeline.h +0 -60
- package/ReactCommon/react/renderer/timeline/TimelineController.cpp +0 -74
- package/ReactCommon/react/renderer/timeline/TimelineController.h +0 -75
- package/ReactCommon/react/renderer/timeline/TimelineFrame.cpp +0 -23
- package/ReactCommon/react/renderer/timeline/TimelineFrame.h +0 -44
- package/ReactCommon/react/renderer/timeline/TimelineHandler.cpp +0 -95
- package/ReactCommon/react/renderer/timeline/TimelineHandler.h +0 -78
- package/ReactCommon/react/renderer/timeline/TimelineSnapshot.cpp +0 -30
- package/ReactCommon/react/renderer/timeline/TimelineSnapshot.h +0 -32
- package/ReactCommon/react/runtime/.clang-tidy +0 -17
- package/ReactCommon/react/runtime/BridgelessJSCallInvoker.cpp +0 -29
- package/ReactCommon/react/runtime/BridgelessJSCallInvoker.h +0 -28
- package/ReactCommon/react/utils/.clang-tidy +0 -6
- package/ReactCommon/react/utils/jsi.cpp +0 -39
- package/ReactCommon/reactperflogger/.clang-tidy +0 -6
- package/ReactCommon/runtimeexecutor/.clang-tidy +0 -6
- package/ReactCommon/yoga/.clang-tidy +0 -5
- package/jest/ReactNativeInternalFeatureFlagsMock.js +0 -13
- package/local-cli/cli.js +0 -18
- package/scripts/cocoapods/FlipperConfiguration.rb +0 -31
- package/scripts/native_modules.rb +0 -6
- package/src/private/featureflags/NativeReactNativeFeatureFlags.js +0 -44
- package/src/private/featureflags/__tests__/ReactNativeFeatureFlags-test.js +0 -92
- package/src/private/specs/modules/NativeAnimationsDebugModule.js +0 -20
- package/src/private/webapis/dom/oldstylecollections/__tests__/DOMRectList-test.js +0 -85
- package/src/private/webapis/dom/oldstylecollections/__tests__/HTMLCollection-test.js +0 -80
- package/src/private/webapis/dom/oldstylecollections/__tests__/NodeList-test.js +0 -161
- package/src/private/webapis/performance/BoundedConsumableBuffer.h +0 -244
- package/src/private/webapis/performance/NativePerformance.cpp +0 -95
- package/src/private/webapis/performance/NativePerformance.h +0 -60
- package/src/private/webapis/performance/NativePerformance.js +0 -33
- package/src/private/webapis/performance/NativePerformanceObserver.cpp +0 -140
- package/src/private/webapis/performance/NativePerformanceObserver.h +0 -98
- package/src/private/webapis/performance/NativePerformanceObserver.js +0 -61
- package/src/private/webapis/performance/PerformanceEntryReporter.cpp +0 -470
- package/src/private/webapis/performance/PerformanceEntryReporter.h +0 -207
- package/src/private/webapis/performance/__mocks__/NativePerformance.js +0 -67
- package/src/private/webapis/performance/__mocks__/NativePerformanceObserver.js +0 -128
- package/src/private/webapis/performance/__tests__/BoundedConsumableBufferTest.cpp +0 -201
- package/src/private/webapis/performance/__tests__/EventCounts-test.js +0 -116
- package/src/private/webapis/performance/__tests__/NativePerformanceMock-test.js +0 -82
- package/src/private/webapis/performance/__tests__/NativePerformanceObserverMock-test.js +0 -108
- package/src/private/webapis/performance/__tests__/Performance-test.js +0 -117
- package/src/private/webapis/performance/__tests__/PerformanceEntryReporterTest.cpp +0 -373
- package/src/private/webapis/performance/__tests__/PerformanceObserver-test.js +0 -208
- package/template/App.tsx +0 -118
- package/template/Gemfile +0 -9
- package/template/README.md +0 -79
- package/template/__tests__/App.test.tsx +0 -17
- package/template/_bundle/config +0 -2
- package/template/_eslintrc.js +0 -4
- package/template/_gitignore +0 -74
- package/template/_prettierrc.js +0 -7
- package/template/_watchmanconfig +0 -1
- package/template/android/app/build.gradle +0 -121
- package/template/android/app/debug.keystore +0 -0
- package/template/android/app/proguard-rules.pro +0 -10
- package/template/android/app/src/debug/AndroidManifest.xml +0 -9
- package/template/android/app/src/main/AndroidManifest.xml +0 -32
- package/template/android/app/src/main/java/com/helloworld/MainActivity.kt +0 -22
- package/template/android/app/src/main/java/com/helloworld/MainApplication.kt +0 -43
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/template/android/app/src/main/res/drawable/tv_banner.png +0 -0
- package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/values/strings.xml +0 -3
- package/template/android/app/src/main/res/values/styles.xml +0 -9
- package/template/android/build.gradle +0 -21
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/template/android/gradle.properties +0 -41
- package/template/android/gradlew +0 -249
- package/template/android/gradlew.bat +0 -92
- package/template/android/settings.gradle +0 -4
- package/template/app.json +0 -4
- package/template/babel.config.js +0 -3
- package/template/index.js +0 -9
- package/template/ios/HelloWorld/AppDelegate.h +0 -6
- package/template/ios/HelloWorld/AppDelegate.mm +0 -31
- package/template/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/template/ios/HelloWorld/Images.xcassets/Contents.json +0 -6
- package/template/ios/HelloWorld/Info.plist +0 -52
- package/template/ios/HelloWorld/LaunchScreen.storyboard +0 -47
- package/template/ios/HelloWorld/PrivacyInfo.xcprivacy +0 -38
- package/template/ios/HelloWorld/main.m +0 -10
- package/template/ios/HelloWorld-tvOS/Info.plist +0 -53
- package/template/ios/HelloWorld-tvOSTests/Info.plist +0 -24
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +0 -1154
- package/template/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld-tvOS.xcscheme +0 -88
- package/template/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme +0 -88
- package/template/ios/HelloWorldTests/HelloWorldTests.m +0 -66
- package/template/ios/HelloWorldTests/Info.plist +0 -24
- package/template/ios/Podfile +0 -61
- package/template/ios/_xcode.env +0 -11
- package/template/jest.config.js +0 -3
- package/template/metro.config.js +0 -32
- package/template/package.json +0 -38
- package/template/react-native.config.js +0 -12
- package/template/tsconfig.json +0 -3
- package/template.config.js +0 -12
- /package/{Libraries/IntersectionObserver → ReactCommon/react/nativemodule/intersectionobserver}/NativeIntersectionObserver.cpp +0 -0
- /package/ReactCommon/react/renderer/mounting/{StubView.cpp → stubs/StubView.cpp} +0 -0
- /package/ReactCommon/react/renderer/mounting/{StubView.h → stubs/StubView.h} +0 -0
- /package/ReactCommon/react/renderer/mounting/{stubs.h → stubs/stubs.h} +0 -0
- /package/ReactCommon/react/utils/{jsi.h → jsi-utils.h} +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @nolint
|
|
9
9
|
* @providesModule ReactNativeRenderer-dev
|
|
10
10
|
* @preventMunge
|
|
11
|
-
* @generated SignedSource<<
|
|
11
|
+
* @generated SignedSource<<4fbb60a6e6520f92ffc104738fdd5ce8>>
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
"use strict";
|
|
@@ -98,292 +98,14 @@ if (__DEV__) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
var fakeNode = null;
|
|
102
|
-
|
|
103
|
-
{
|
|
104
|
-
if (
|
|
105
|
-
typeof window !== "undefined" &&
|
|
106
|
-
typeof window.dispatchEvent === "function" &&
|
|
107
|
-
typeof document !== "undefined" && // $FlowFixMe[method-unbinding]
|
|
108
|
-
typeof document.createEvent === "function"
|
|
109
|
-
) {
|
|
110
|
-
fakeNode = document.createElement("react");
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function invokeGuardedCallbackImpl(name, func, context) {
|
|
115
|
-
{
|
|
116
|
-
// In DEV mode, we use a special version
|
|
117
|
-
// that plays more nicely with the browser's DevTools. The idea is to preserve
|
|
118
|
-
// "Pause on exceptions" behavior. Because React wraps all user-provided
|
|
119
|
-
// functions in invokeGuardedCallback, and the production version of
|
|
120
|
-
// invokeGuardedCallback uses a try-catch, all user exceptions are treated
|
|
121
|
-
// like caught exceptions, and the DevTools won't pause unless the developer
|
|
122
|
-
// takes the extra step of enabling pause on caught exceptions. This is
|
|
123
|
-
// unintuitive, though, because even though React has caught the error, from
|
|
124
|
-
// the developer's perspective, the error is uncaught.
|
|
125
|
-
//
|
|
126
|
-
// To preserve the expected "Pause on exceptions" behavior, we don't use a
|
|
127
|
-
// try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
|
|
128
|
-
// DOM node, and call the user-provided callback from inside an event handler
|
|
129
|
-
// for that fake event. If the callback throws, the error is "captured" using
|
|
130
|
-
// event loop context, it does not interrupt the normal program flow.
|
|
131
|
-
// Effectively, this gives us try-catch behavior without actually using
|
|
132
|
-
// try-catch. Neat!
|
|
133
|
-
// fakeNode signifies we are in an environment with a document and window object
|
|
134
|
-
if (fakeNode) {
|
|
135
|
-
var evt = document.createEvent("Event");
|
|
136
|
-
var didCall = false; // Keeps track of whether the user-provided callback threw an error. We
|
|
137
|
-
// set this to true at the beginning, then set it to false right after
|
|
138
|
-
// calling the function. If the function errors, `didError` will never be
|
|
139
|
-
// set to false. This strategy works even if the browser is flaky and
|
|
140
|
-
// fails to call our global error handler, because it doesn't rely on
|
|
141
|
-
// the error event at all.
|
|
142
|
-
|
|
143
|
-
var didError = true; // Keeps track of the value of window.event so that we can reset it
|
|
144
|
-
// during the callback to let user code access window.event in the
|
|
145
|
-
// browsers that support it.
|
|
146
|
-
|
|
147
|
-
var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
|
|
148
|
-
// dispatching: https://github.com/facebook/react/issues/13688
|
|
149
|
-
|
|
150
|
-
var windowEventDescriptor = Object.getOwnPropertyDescriptor(
|
|
151
|
-
window,
|
|
152
|
-
"event"
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
var restoreAfterDispatch = function () {
|
|
156
|
-
// We immediately remove the callback from event listeners so that
|
|
157
|
-
// nested `invokeGuardedCallback` calls do not clash. Otherwise, a
|
|
158
|
-
// nested call would trigger the fake event handlers of any call higher
|
|
159
|
-
// in the stack.
|
|
160
|
-
fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
|
|
161
|
-
// window.event assignment in both IE <= 10 as they throw an error
|
|
162
|
-
// "Member not found" in strict mode, and in Firefox which does not
|
|
163
|
-
// support window.event.
|
|
164
|
-
|
|
165
|
-
if (
|
|
166
|
-
typeof window.event !== "undefined" &&
|
|
167
|
-
window.hasOwnProperty("event")
|
|
168
|
-
) {
|
|
169
|
-
window.event = windowEvent;
|
|
170
|
-
}
|
|
171
|
-
}; // Create an event handler for our fake event. We will synchronously
|
|
172
|
-
// dispatch our fake event using `dispatchEvent`. Inside the handler, we
|
|
173
|
-
// call the user-provided callback.
|
|
174
|
-
// $FlowFixMe[method-unbinding]
|
|
175
|
-
|
|
176
|
-
var _funcArgs = Array.prototype.slice.call(arguments, 3);
|
|
177
|
-
|
|
178
|
-
var callCallback = function () {
|
|
179
|
-
didCall = true;
|
|
180
|
-
restoreAfterDispatch(); // $FlowFixMe[incompatible-call] Flow doesn't understand the arguments splicing.
|
|
181
|
-
|
|
182
|
-
func.apply(context, _funcArgs);
|
|
183
|
-
didError = false;
|
|
184
|
-
}; // Create a global error event handler. We use this to capture the value
|
|
185
|
-
// that was thrown. It's possible that this error handler will fire more
|
|
186
|
-
// than once; for example, if non-React code also calls `dispatchEvent`
|
|
187
|
-
// and a handler for that event throws. We should be resilient to most of
|
|
188
|
-
// those cases. Even if our error event handler fires more than once, the
|
|
189
|
-
// last error event is always used. If the callback actually does error,
|
|
190
|
-
// we know that the last error event is the correct one, because it's not
|
|
191
|
-
// possible for anything else to have happened in between our callback
|
|
192
|
-
// erroring and the code that follows the `dispatchEvent` call below. If
|
|
193
|
-
// the callback doesn't error, but the error event was fired, we know to
|
|
194
|
-
// ignore it because `didError` will be false, as described above.
|
|
195
|
-
|
|
196
|
-
var error; // Use this to track whether the error event is ever called.
|
|
197
|
-
|
|
198
|
-
var didSetError = false;
|
|
199
|
-
var isCrossOriginError = false;
|
|
200
|
-
|
|
201
|
-
var handleWindowError = function (event) {
|
|
202
|
-
error = event.error;
|
|
203
|
-
didSetError = true;
|
|
204
|
-
|
|
205
|
-
if (error === null && event.colno === 0 && event.lineno === 0) {
|
|
206
|
-
isCrossOriginError = true;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
if (event.defaultPrevented) {
|
|
210
|
-
// Some other error handler has prevented default.
|
|
211
|
-
// Browsers silence the error report if this happens.
|
|
212
|
-
// We'll remember this to later decide whether to log it or not.
|
|
213
|
-
if (error != null && typeof error === "object") {
|
|
214
|
-
try {
|
|
215
|
-
error._suppressLogging = true;
|
|
216
|
-
} catch (inner) {
|
|
217
|
-
// Ignore.
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}; // Create a fake event type.
|
|
222
|
-
|
|
223
|
-
var evtType = "react-" + (name ? name : "invokeguardedcallback"); // Attach our event handlers
|
|
224
|
-
|
|
225
|
-
window.addEventListener("error", handleWindowError);
|
|
226
|
-
fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
|
|
227
|
-
// errors, it will trigger our global error handler.
|
|
228
|
-
|
|
229
|
-
evt.initEvent(evtType, false, false);
|
|
230
|
-
fakeNode.dispatchEvent(evt);
|
|
231
|
-
|
|
232
|
-
if (windowEventDescriptor) {
|
|
233
|
-
Object.defineProperty(window, "event", windowEventDescriptor);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (didCall && didError) {
|
|
237
|
-
if (!didSetError) {
|
|
238
|
-
// The callback errored, but the error event never fired.
|
|
239
|
-
// eslint-disable-next-line react-internal/prod-error-codes
|
|
240
|
-
error = new Error(
|
|
241
|
-
"An error was thrown inside one of your components, but React " +
|
|
242
|
-
"doesn't know what it was. This is likely due to browser " +
|
|
243
|
-
'flakiness. React does its best to preserve the "Pause on ' +
|
|
244
|
-
'exceptions" behavior of the DevTools, which requires some ' +
|
|
245
|
-
"DEV-mode only tricks. It's possible that these don't work in " +
|
|
246
|
-
"your browser. Try triggering the error in production mode, " +
|
|
247
|
-
"or switching to a modern browser. If you suspect that this is " +
|
|
248
|
-
"actually an issue with React, please file an issue."
|
|
249
|
-
);
|
|
250
|
-
} else if (isCrossOriginError) {
|
|
251
|
-
// eslint-disable-next-line react-internal/prod-error-codes
|
|
252
|
-
error = new Error(
|
|
253
|
-
"A cross-origin error was thrown. React doesn't have access to " +
|
|
254
|
-
"the actual error object in development. " +
|
|
255
|
-
"See https://reactjs.org/link/crossorigin-error for more information."
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
this.onError(error);
|
|
260
|
-
} // Remove our event listeners
|
|
261
|
-
|
|
262
|
-
window.removeEventListener("error", handleWindowError);
|
|
263
|
-
|
|
264
|
-
if (didCall) {
|
|
265
|
-
return;
|
|
266
|
-
} else {
|
|
267
|
-
// Something went really wrong, and our event was not dispatched.
|
|
268
|
-
// https://github.com/facebook/react/issues/16734
|
|
269
|
-
// https://github.com/facebook/react/issues/16585
|
|
270
|
-
// Fall back to the production implementation.
|
|
271
|
-
restoreAfterDispatch(); // we fall through and call the prod version instead
|
|
272
|
-
}
|
|
273
|
-
} // We only get here if we are in an environment that either does not support the browser
|
|
274
|
-
// variant or we had trouble getting the browser to emit the error.
|
|
275
|
-
// $FlowFixMe[method-unbinding]
|
|
276
|
-
|
|
277
|
-
var funcArgs = Array.prototype.slice.call(arguments, 3);
|
|
278
|
-
|
|
279
|
-
try {
|
|
280
|
-
// $FlowFixMe[incompatible-call] Flow doesn't understand the arguments splicing.
|
|
281
|
-
func.apply(context, funcArgs);
|
|
282
|
-
} catch (error) {
|
|
283
|
-
this.onError(error);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
var hasError = false;
|
|
289
|
-
var caughtError = null; // Used by event system to capture/rethrow the first error.
|
|
290
|
-
|
|
291
|
-
var hasRethrowError = false;
|
|
292
|
-
var rethrowError = null;
|
|
293
|
-
var reporter = {
|
|
294
|
-
onError: function (error) {
|
|
295
|
-
hasError = true;
|
|
296
|
-
caughtError = error;
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
/**
|
|
300
|
-
* Call a function while guarding against errors that happens within it.
|
|
301
|
-
* Returns an error if it throws, otherwise null.
|
|
302
|
-
*
|
|
303
|
-
* In production, this is implemented using a try-catch. The reason we don't
|
|
304
|
-
* use a try-catch directly is so that we can swap out a different
|
|
305
|
-
* implementation in DEV mode.
|
|
306
|
-
*
|
|
307
|
-
* @param {String} name of the guard to use for logging or debugging
|
|
308
|
-
* @param {Function} func The function to invoke
|
|
309
|
-
* @param {*} context The context to use when calling the function
|
|
310
|
-
* @param {...*} args Arguments for function
|
|
311
|
-
*/
|
|
312
|
-
|
|
313
|
-
function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
|
|
314
|
-
hasError = false;
|
|
315
|
-
caughtError = null;
|
|
316
|
-
invokeGuardedCallbackImpl.apply(reporter, arguments);
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* Same as invokeGuardedCallback, but instead of returning an error, it stores
|
|
320
|
-
* it in a global so it can be rethrown by `rethrowCaughtError` later.
|
|
321
|
-
* TODO: See if caughtError and rethrowError can be unified.
|
|
322
|
-
*
|
|
323
|
-
* @param {String} name of the guard to use for logging or debugging
|
|
324
|
-
* @param {Function} func The function to invoke
|
|
325
|
-
* @param {*} context The context to use when calling the function
|
|
326
|
-
* @param {...*} args Arguments for function
|
|
327
|
-
*/
|
|
328
|
-
|
|
329
|
-
function invokeGuardedCallbackAndCatchFirstError(
|
|
330
|
-
name,
|
|
331
|
-
func,
|
|
332
|
-
context,
|
|
333
|
-
a,
|
|
334
|
-
b,
|
|
335
|
-
c,
|
|
336
|
-
d,
|
|
337
|
-
e,
|
|
338
|
-
f
|
|
339
|
-
) {
|
|
340
|
-
invokeGuardedCallback.apply(this, arguments);
|
|
341
|
-
|
|
342
|
-
if (hasError) {
|
|
343
|
-
var error = clearCaughtError();
|
|
344
|
-
|
|
345
|
-
if (!hasRethrowError) {
|
|
346
|
-
hasRethrowError = true;
|
|
347
|
-
rethrowError = error;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* During execution of guarded functions we will capture the first error which
|
|
353
|
-
* we will rethrow to be handled by the top level error handler.
|
|
354
|
-
*/
|
|
355
|
-
|
|
356
|
-
function rethrowCaughtError() {
|
|
357
|
-
if (hasRethrowError) {
|
|
358
|
-
var error = rethrowError;
|
|
359
|
-
hasRethrowError = false;
|
|
360
|
-
rethrowError = null;
|
|
361
|
-
throw error;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
function hasCaughtError() {
|
|
365
|
-
return hasError;
|
|
366
|
-
}
|
|
367
|
-
function clearCaughtError() {
|
|
368
|
-
if (hasError) {
|
|
369
|
-
var error = caughtError;
|
|
370
|
-
hasError = false;
|
|
371
|
-
caughtError = null;
|
|
372
|
-
return error;
|
|
373
|
-
} else {
|
|
374
|
-
throw new Error(
|
|
375
|
-
"clearCaughtError was called but no error was captured. This error " +
|
|
376
|
-
"is likely caused by a bug in React. Please file an issue."
|
|
377
|
-
);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
|
|
381
101
|
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
|
|
382
102
|
|
|
383
103
|
function isArray(a) {
|
|
384
104
|
return isArrayImpl(a);
|
|
385
105
|
}
|
|
386
106
|
|
|
107
|
+
var hasError = false;
|
|
108
|
+
var caughtError = null;
|
|
387
109
|
var getFiberCurrentPropsFromNode$1 = null;
|
|
388
110
|
var getInstanceFromNode = null;
|
|
389
111
|
var getNodeFromInstance = null;
|
|
@@ -399,7 +121,7 @@ if (__DEV__) {
|
|
|
399
121
|
{
|
|
400
122
|
if (!getNodeFromInstance || !getInstanceFromNode) {
|
|
401
123
|
error(
|
|
402
|
-
"
|
|
124
|
+
"Injected " +
|
|
403
125
|
"module is missing getNodeFromInstance or getInstanceFromNode."
|
|
404
126
|
);
|
|
405
127
|
}
|
|
@@ -439,9 +161,17 @@ if (__DEV__) {
|
|
|
439
161
|
*/
|
|
440
162
|
|
|
441
163
|
function executeDispatch(event, listener, inst) {
|
|
442
|
-
var type = event.type || "unknown-event";
|
|
443
164
|
event.currentTarget = getNodeFromInstance(inst);
|
|
444
|
-
|
|
165
|
+
|
|
166
|
+
try {
|
|
167
|
+
listener(event);
|
|
168
|
+
} catch (error) {
|
|
169
|
+
if (!hasError) {
|
|
170
|
+
hasError = true;
|
|
171
|
+
caughtError = error;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
445
175
|
event.currentTarget = null;
|
|
446
176
|
}
|
|
447
177
|
/**
|
|
@@ -534,7 +264,7 @@ if (__DEV__) {
|
|
|
534
264
|
var dispatchInstance = event._dispatchInstances;
|
|
535
265
|
|
|
536
266
|
if (isArray(dispatchListener)) {
|
|
537
|
-
throw new Error("
|
|
267
|
+
throw new Error("Invalid `event`.");
|
|
538
268
|
}
|
|
539
269
|
|
|
540
270
|
event.currentTarget = dispatchListener
|
|
@@ -554,6 +284,14 @@ if (__DEV__) {
|
|
|
554
284
|
function hasDispatches(event) {
|
|
555
285
|
return !!event._dispatchListeners;
|
|
556
286
|
}
|
|
287
|
+
function rethrowCaughtError() {
|
|
288
|
+
if (hasError) {
|
|
289
|
+
var error = caughtError;
|
|
290
|
+
hasError = false;
|
|
291
|
+
caughtError = null;
|
|
292
|
+
throw error;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
557
295
|
|
|
558
296
|
var assign = Object.assign;
|
|
559
297
|
|
|
@@ -840,7 +578,7 @@ if (__DEV__) {
|
|
|
840
578
|
"This synthetic event is reused for performance reasons. If you're seeing this, " +
|
|
841
579
|
"you're %s `%s` on a released/nullified synthetic event. %s. " +
|
|
842
580
|
"If you must keep the original synthetic event around, use event.persist(). " +
|
|
843
|
-
"See https://
|
|
581
|
+
"See https://react.dev/link/event-pooling for more information.",
|
|
844
582
|
action,
|
|
845
583
|
propName,
|
|
846
584
|
result
|
|
@@ -1160,9 +898,7 @@ if (__DEV__) {
|
|
|
1160
898
|
|
|
1161
899
|
function accumulate(current, next) {
|
|
1162
900
|
if (next == null) {
|
|
1163
|
-
throw new Error(
|
|
1164
|
-
"accumulate(...): Accumulated items must not be null or undefined."
|
|
1165
|
-
);
|
|
901
|
+
throw new Error("Accumulated items must not be null or undefined.");
|
|
1166
902
|
}
|
|
1167
903
|
|
|
1168
904
|
if (current == null) {
|
|
@@ -1200,9 +936,7 @@ if (__DEV__) {
|
|
|
1200
936
|
|
|
1201
937
|
function accumulateInto(current, next) {
|
|
1202
938
|
if (next == null) {
|
|
1203
|
-
throw new Error(
|
|
1204
|
-
"accumulateInto(...): Accumulated items must not be null or undefined."
|
|
1205
|
-
);
|
|
939
|
+
throw new Error("Accumulated items must not be null or undefined.");
|
|
1206
940
|
}
|
|
1207
941
|
|
|
1208
942
|
if (current == null) {
|
|
@@ -2940,6 +2674,7 @@ to return true:wantsResponderID| |
|
|
|
2940
2674
|
key._reactInternals = value;
|
|
2941
2675
|
}
|
|
2942
2676
|
|
|
2677
|
+
// -----------------------------------------------------------------------------
|
|
2943
2678
|
var enableSchedulingProfiler = false;
|
|
2944
2679
|
var enableProfilerTimer = true;
|
|
2945
2680
|
var enableProfilerCommitHooks = true;
|
|
@@ -2949,6 +2684,7 @@ to return true:wantsResponderID| |
|
|
|
2949
2684
|
var enableLazyContextPropagation = false;
|
|
2950
2685
|
var enableLegacyHidden = false;
|
|
2951
2686
|
var enableAsyncActions = false;
|
|
2687
|
+
var enableBigIntSupport = false;
|
|
2952
2688
|
|
|
2953
2689
|
// ATTENTION
|
|
2954
2690
|
// When adding new symbols to this file,
|
|
@@ -2959,7 +2695,9 @@ to return true:wantsResponderID| |
|
|
|
2959
2695
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2960
2696
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
2961
2697
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2962
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
2698
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); // TODO: Delete with enableRenderableContext
|
|
2699
|
+
|
|
2700
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
2963
2701
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
2964
2702
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
2965
2703
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
@@ -3059,13 +2797,21 @@ to return true:wantsResponderID| |
|
|
|
3059
2797
|
}
|
|
3060
2798
|
|
|
3061
2799
|
switch (type.$$typeof) {
|
|
2800
|
+
case REACT_PROVIDER_TYPE: {
|
|
2801
|
+
var provider = type;
|
|
2802
|
+
return getContextName$1(provider._context) + ".Provider";
|
|
2803
|
+
}
|
|
2804
|
+
|
|
3062
2805
|
case REACT_CONTEXT_TYPE:
|
|
3063
2806
|
var context = type;
|
|
3064
|
-
return getContextName$1(context) + ".Consumer";
|
|
3065
2807
|
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
2808
|
+
{
|
|
2809
|
+
return getContextName$1(context) + ".Consumer";
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
case REACT_CONSUMER_TYPE: {
|
|
2813
|
+
return null;
|
|
2814
|
+
}
|
|
3069
2815
|
|
|
3070
2816
|
case REACT_FORWARD_REF_TYPE:
|
|
3071
2817
|
return getWrappedName$1(type, type.render, "ForwardRef");
|
|
@@ -3118,13 +2864,15 @@ to return true:wantsResponderID| |
|
|
|
3118
2864
|
case CacheComponent:
|
|
3119
2865
|
return "Cache";
|
|
3120
2866
|
|
|
3121
|
-
case ContextConsumer:
|
|
2867
|
+
case ContextConsumer: {
|
|
3122
2868
|
var context = type;
|
|
3123
2869
|
return getContextName(context) + ".Consumer";
|
|
2870
|
+
}
|
|
3124
2871
|
|
|
3125
|
-
case ContextProvider:
|
|
2872
|
+
case ContextProvider: {
|
|
3126
2873
|
var provider = type;
|
|
3127
2874
|
return getContextName(provider._context) + ".Provider";
|
|
2875
|
+
}
|
|
3128
2876
|
|
|
3129
2877
|
case DehydratedFragment:
|
|
3130
2878
|
return "DehydratedFragment";
|
|
@@ -3364,9 +3112,6 @@ to return true:wantsResponderID| |
|
|
|
3364
3112
|
|
|
3365
3113
|
return null;
|
|
3366
3114
|
}
|
|
3367
|
-
function isFiberMounted(fiber) {
|
|
3368
|
-
return getNearestMountedFiber(fiber) === fiber;
|
|
3369
|
-
}
|
|
3370
3115
|
function isMounted(component) {
|
|
3371
3116
|
{
|
|
3372
3117
|
var owner = ReactCurrentOwner$3.current;
|
|
@@ -4379,7 +4124,7 @@ to return true:wantsResponderID| |
|
|
|
4379
4124
|
error(
|
|
4380
4125
|
"The installed version of React DevTools is too old and will not work " +
|
|
4381
4126
|
"with the current version of React. Please update React DevTools. " +
|
|
4382
|
-
"https://
|
|
4127
|
+
"https://react.dev/link/react-devtools"
|
|
4383
4128
|
);
|
|
4384
4129
|
} // DevTools exists, even though it doesn't support Fiber.
|
|
4385
4130
|
|
|
@@ -5126,7 +4871,7 @@ to return true:wantsResponderID| |
|
|
|
5126
4871
|
|
|
5127
4872
|
return laneMap;
|
|
5128
4873
|
}
|
|
5129
|
-
function markRootUpdated(root, updateLane) {
|
|
4874
|
+
function markRootUpdated$1(root, updateLane) {
|
|
5130
4875
|
root.pendingLanes |= updateLane; // If there are any suspended transitions, it's possible this new update
|
|
5131
4876
|
// could unblock them. Clear the suspended lanes so that we can try rendering
|
|
5132
4877
|
// them again.
|
|
@@ -5163,7 +4908,7 @@ to return true:wantsResponderID| |
|
|
|
5163
4908
|
markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);
|
|
5164
4909
|
}
|
|
5165
4910
|
}
|
|
5166
|
-
function markRootPinged(root, pingedLanes) {
|
|
4911
|
+
function markRootPinged$1(root, pingedLanes) {
|
|
5167
4912
|
root.pingedLanes |= root.suspendedLanes & pingedLanes;
|
|
5168
4913
|
}
|
|
5169
4914
|
function markRootFinished(root, remainingLanes, spawnedLane) {
|
|
@@ -5817,214 +5562,6 @@ to return true:wantsResponderID| |
|
|
|
5817
5562
|
return null;
|
|
5818
5563
|
}
|
|
5819
5564
|
|
|
5820
|
-
function describeBuiltInComponentFrame(name, ownerFn) {
|
|
5821
|
-
{
|
|
5822
|
-
var ownerName = null;
|
|
5823
|
-
|
|
5824
|
-
if (ownerFn) {
|
|
5825
|
-
ownerName = ownerFn.displayName || ownerFn.name || null;
|
|
5826
|
-
}
|
|
5827
|
-
|
|
5828
|
-
return describeComponentFrame(name, ownerName);
|
|
5829
|
-
}
|
|
5830
|
-
}
|
|
5831
|
-
|
|
5832
|
-
{
|
|
5833
|
-
var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map;
|
|
5834
|
-
new PossiblyWeakMap$1();
|
|
5835
|
-
}
|
|
5836
|
-
|
|
5837
|
-
function describeComponentFrame(name, ownerName) {
|
|
5838
|
-
var sourceInfo = "";
|
|
5839
|
-
|
|
5840
|
-
if (ownerName) {
|
|
5841
|
-
sourceInfo = " (created by " + ownerName + ")";
|
|
5842
|
-
}
|
|
5843
|
-
|
|
5844
|
-
return "\n in " + (name || "Unknown") + sourceInfo;
|
|
5845
|
-
}
|
|
5846
|
-
|
|
5847
|
-
function describeClassComponentFrame(ctor, ownerFn) {
|
|
5848
|
-
{
|
|
5849
|
-
return describeFunctionComponentFrame(ctor, ownerFn);
|
|
5850
|
-
}
|
|
5851
|
-
}
|
|
5852
|
-
function describeFunctionComponentFrame(fn, ownerFn) {
|
|
5853
|
-
{
|
|
5854
|
-
if (!fn) {
|
|
5855
|
-
return "";
|
|
5856
|
-
}
|
|
5857
|
-
|
|
5858
|
-
var name = fn.displayName || fn.name || null;
|
|
5859
|
-
var ownerName = null;
|
|
5860
|
-
|
|
5861
|
-
if (ownerFn) {
|
|
5862
|
-
ownerName = ownerFn.displayName || ownerFn.name || null;
|
|
5863
|
-
}
|
|
5864
|
-
|
|
5865
|
-
return describeComponentFrame(name, ownerName);
|
|
5866
|
-
}
|
|
5867
|
-
}
|
|
5868
|
-
|
|
5869
|
-
function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
|
|
5870
|
-
if (type == null) {
|
|
5871
|
-
return "";
|
|
5872
|
-
}
|
|
5873
|
-
|
|
5874
|
-
if (typeof type === "function") {
|
|
5875
|
-
{
|
|
5876
|
-
return describeFunctionComponentFrame(type, ownerFn);
|
|
5877
|
-
}
|
|
5878
|
-
}
|
|
5879
|
-
|
|
5880
|
-
if (typeof type === "string") {
|
|
5881
|
-
return describeBuiltInComponentFrame(type, ownerFn);
|
|
5882
|
-
}
|
|
5883
|
-
|
|
5884
|
-
switch (type) {
|
|
5885
|
-
case REACT_SUSPENSE_TYPE:
|
|
5886
|
-
return describeBuiltInComponentFrame("Suspense", ownerFn);
|
|
5887
|
-
|
|
5888
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
5889
|
-
return describeBuiltInComponentFrame("SuspenseList", ownerFn);
|
|
5890
|
-
}
|
|
5891
|
-
|
|
5892
|
-
if (typeof type === "object") {
|
|
5893
|
-
switch (type.$$typeof) {
|
|
5894
|
-
case REACT_FORWARD_REF_TYPE:
|
|
5895
|
-
return describeFunctionComponentFrame(type.render, ownerFn);
|
|
5896
|
-
|
|
5897
|
-
case REACT_MEMO_TYPE:
|
|
5898
|
-
// Memo may contain any component type so we recursively resolve it.
|
|
5899
|
-
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
|
|
5900
|
-
|
|
5901
|
-
case REACT_LAZY_TYPE: {
|
|
5902
|
-
var lazyComponent = type;
|
|
5903
|
-
var payload = lazyComponent._payload;
|
|
5904
|
-
var init = lazyComponent._init;
|
|
5905
|
-
|
|
5906
|
-
try {
|
|
5907
|
-
// Lazy may contain any component type so we recursively resolve it.
|
|
5908
|
-
return describeUnknownElementTypeFrameInDEV(
|
|
5909
|
-
init(payload),
|
|
5910
|
-
ownerFn
|
|
5911
|
-
);
|
|
5912
|
-
} catch (x) {}
|
|
5913
|
-
}
|
|
5914
|
-
}
|
|
5915
|
-
}
|
|
5916
|
-
|
|
5917
|
-
return "";
|
|
5918
|
-
}
|
|
5919
|
-
|
|
5920
|
-
// $FlowFixMe[method-unbinding]
|
|
5921
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5922
|
-
|
|
5923
|
-
var loggedTypeFailures = {};
|
|
5924
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
5925
|
-
|
|
5926
|
-
function setCurrentlyValidatingElement(element) {
|
|
5927
|
-
{
|
|
5928
|
-
if (element) {
|
|
5929
|
-
var owner = element._owner;
|
|
5930
|
-
var stack = describeUnknownElementTypeFrameInDEV(
|
|
5931
|
-
element.type,
|
|
5932
|
-
owner ? owner.type : null
|
|
5933
|
-
);
|
|
5934
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
5935
|
-
} else {
|
|
5936
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
5937
|
-
}
|
|
5938
|
-
}
|
|
5939
|
-
}
|
|
5940
|
-
|
|
5941
|
-
function checkPropTypes(
|
|
5942
|
-
typeSpecs,
|
|
5943
|
-
values,
|
|
5944
|
-
location,
|
|
5945
|
-
componentName,
|
|
5946
|
-
element
|
|
5947
|
-
) {
|
|
5948
|
-
{
|
|
5949
|
-
// $FlowFixMe[incompatible-use] This is okay but Flow doesn't know it.
|
|
5950
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
5951
|
-
|
|
5952
|
-
for (var typeSpecName in typeSpecs) {
|
|
5953
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
5954
|
-
var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
|
|
5955
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
5956
|
-
// After these have been cleaned up, we'll let them throw.
|
|
5957
|
-
|
|
5958
|
-
try {
|
|
5959
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
5960
|
-
// behavior as without this statement except with a better message.
|
|
5961
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
5962
|
-
// eslint-disable-next-line react-internal/prod-error-codes
|
|
5963
|
-
var err = Error(
|
|
5964
|
-
(componentName || "React class") +
|
|
5965
|
-
": " +
|
|
5966
|
-
location +
|
|
5967
|
-
" type `" +
|
|
5968
|
-
typeSpecName +
|
|
5969
|
-
"` is invalid; " +
|
|
5970
|
-
"it must be a function, usually from the `prop-types` package, but received `" +
|
|
5971
|
-
typeof typeSpecs[typeSpecName] +
|
|
5972
|
-
"`." +
|
|
5973
|
-
"This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
5974
|
-
);
|
|
5975
|
-
err.name = "Invariant Violation";
|
|
5976
|
-
throw err;
|
|
5977
|
-
}
|
|
5978
|
-
|
|
5979
|
-
error$1 = typeSpecs[typeSpecName](
|
|
5980
|
-
values,
|
|
5981
|
-
typeSpecName,
|
|
5982
|
-
componentName,
|
|
5983
|
-
location,
|
|
5984
|
-
null,
|
|
5985
|
-
"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"
|
|
5986
|
-
);
|
|
5987
|
-
} catch (ex) {
|
|
5988
|
-
error$1 = ex;
|
|
5989
|
-
}
|
|
5990
|
-
|
|
5991
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
5992
|
-
setCurrentlyValidatingElement(element);
|
|
5993
|
-
|
|
5994
|
-
error(
|
|
5995
|
-
"%s: type specification of %s" +
|
|
5996
|
-
" `%s` is invalid; the type checker " +
|
|
5997
|
-
"function must return `null` or an `Error` but returned a %s. " +
|
|
5998
|
-
"You may have forgotten to pass an argument to the type checker " +
|
|
5999
|
-
"creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " +
|
|
6000
|
-
"shape all require an argument).",
|
|
6001
|
-
componentName || "React class",
|
|
6002
|
-
location,
|
|
6003
|
-
typeSpecName,
|
|
6004
|
-
typeof error$1
|
|
6005
|
-
);
|
|
6006
|
-
|
|
6007
|
-
setCurrentlyValidatingElement(null);
|
|
6008
|
-
}
|
|
6009
|
-
|
|
6010
|
-
if (
|
|
6011
|
-
error$1 instanceof Error &&
|
|
6012
|
-
!(error$1.message in loggedTypeFailures)
|
|
6013
|
-
) {
|
|
6014
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
6015
|
-
// same error.
|
|
6016
|
-
loggedTypeFailures[error$1.message] = true;
|
|
6017
|
-
setCurrentlyValidatingElement(element);
|
|
6018
|
-
|
|
6019
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
6020
|
-
|
|
6021
|
-
setCurrentlyValidatingElement(null);
|
|
6022
|
-
}
|
|
6023
|
-
}
|
|
6024
|
-
}
|
|
6025
|
-
}
|
|
6026
|
-
}
|
|
6027
|
-
|
|
6028
5565
|
var valueStack = [];
|
|
6029
5566
|
var fiberStack;
|
|
6030
5567
|
|
|
@@ -6076,280 +5613,33 @@ to return true:wantsResponderID| |
|
|
|
6076
5613
|
cursor.current = value;
|
|
6077
5614
|
}
|
|
6078
5615
|
|
|
6079
|
-
var
|
|
6080
|
-
|
|
6081
|
-
{
|
|
6082
|
-
warnedAboutMissingGetChildContext = {};
|
|
6083
|
-
}
|
|
6084
|
-
|
|
6085
|
-
var emptyContextObject = {};
|
|
5616
|
+
var emptyContextObject = {};
|
|
6086
5617
|
|
|
6087
5618
|
{
|
|
6088
5619
|
Object.freeze(emptyContextObject);
|
|
6089
5620
|
} // A cursor to the current merged context object on the stack.
|
|
6090
5621
|
|
|
6091
|
-
var contextStackCursor$1 = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.
|
|
6092
|
-
|
|
6093
|
-
var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
|
|
6094
|
-
// We use this to get access to the parent context after we have already
|
|
6095
|
-
// pushed the next context provider, and now need to merge their contexts.
|
|
6096
|
-
|
|
6097
|
-
var previousContext = emptyContextObject;
|
|
6098
|
-
|
|
6099
|
-
function getUnmaskedContext(
|
|
6100
|
-
workInProgress,
|
|
6101
|
-
Component,
|
|
6102
|
-
didPushOwnContextIfProvider
|
|
6103
|
-
) {
|
|
6104
|
-
{
|
|
6105
|
-
if (didPushOwnContextIfProvider && isContextProvider(Component)) {
|
|
6106
|
-
// If the fiber is a context provider itself, when we read its context
|
|
6107
|
-
// we may have already pushed its own child context on the stack. A context
|
|
6108
|
-
// provider should not "see" its own child context. Therefore we read the
|
|
6109
|
-
// previous (parent) context instead for a context provider.
|
|
6110
|
-
return previousContext;
|
|
6111
|
-
}
|
|
6112
|
-
|
|
6113
|
-
return contextStackCursor$1.current;
|
|
6114
|
-
}
|
|
6115
|
-
}
|
|
6116
|
-
|
|
6117
|
-
function cacheContext(workInProgress, unmaskedContext, maskedContext) {
|
|
6118
|
-
{
|
|
6119
|
-
var instance = workInProgress.stateNode;
|
|
6120
|
-
instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
|
|
6121
|
-
instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
|
|
6122
|
-
}
|
|
6123
|
-
}
|
|
6124
|
-
|
|
6125
|
-
function getMaskedContext(workInProgress, unmaskedContext) {
|
|
6126
|
-
{
|
|
6127
|
-
var type = workInProgress.type;
|
|
6128
|
-
var contextTypes = type.contextTypes;
|
|
6129
|
-
|
|
6130
|
-
if (!contextTypes) {
|
|
6131
|
-
return emptyContextObject;
|
|
6132
|
-
} // Avoid recreating masked context unless unmasked context has changed.
|
|
6133
|
-
// Failing to do this will result in unnecessary calls to componentWillReceiveProps.
|
|
6134
|
-
// This may trigger infinite loops if componentWillReceiveProps calls setState.
|
|
6135
|
-
|
|
6136
|
-
var instance = workInProgress.stateNode;
|
|
6137
|
-
|
|
6138
|
-
if (
|
|
6139
|
-
instance &&
|
|
6140
|
-
instance.__reactInternalMemoizedUnmaskedChildContext ===
|
|
6141
|
-
unmaskedContext
|
|
6142
|
-
) {
|
|
6143
|
-
return instance.__reactInternalMemoizedMaskedChildContext;
|
|
6144
|
-
}
|
|
6145
|
-
|
|
6146
|
-
var context = {};
|
|
6147
|
-
|
|
6148
|
-
for (var key in contextTypes) {
|
|
6149
|
-
context[key] = unmaskedContext[key];
|
|
6150
|
-
}
|
|
6151
|
-
|
|
6152
|
-
{
|
|
6153
|
-
var name = getComponentNameFromFiber(workInProgress) || "Unknown";
|
|
6154
|
-
checkPropTypes(contextTypes, context, "context", name);
|
|
6155
|
-
} // Cache unmasked context so we can avoid recreating masked context unless necessary.
|
|
6156
|
-
// Context is created before the class component is instantiated so check for instance.
|
|
6157
|
-
|
|
6158
|
-
if (instance) {
|
|
6159
|
-
cacheContext(workInProgress, unmaskedContext, context);
|
|
6160
|
-
}
|
|
6161
|
-
|
|
6162
|
-
return context;
|
|
6163
|
-
}
|
|
6164
|
-
}
|
|
6165
|
-
|
|
6166
5622
|
function hasContextChanged() {
|
|
6167
5623
|
{
|
|
6168
|
-
return
|
|
5624
|
+
return false;
|
|
6169
5625
|
}
|
|
6170
5626
|
}
|
|
6171
5627
|
|
|
6172
5628
|
function isContextProvider(type) {
|
|
6173
5629
|
{
|
|
6174
|
-
|
|
6175
|
-
return childContextTypes !== null && childContextTypes !== undefined;
|
|
6176
|
-
}
|
|
6177
|
-
}
|
|
6178
|
-
|
|
6179
|
-
function popContext(fiber) {
|
|
6180
|
-
{
|
|
6181
|
-
pop(didPerformWorkStackCursor, fiber);
|
|
6182
|
-
pop(contextStackCursor$1, fiber);
|
|
6183
|
-
}
|
|
6184
|
-
}
|
|
6185
|
-
|
|
6186
|
-
function popTopLevelContextObject(fiber) {
|
|
6187
|
-
{
|
|
6188
|
-
pop(didPerformWorkStackCursor, fiber);
|
|
6189
|
-
pop(contextStackCursor$1, fiber);
|
|
6190
|
-
}
|
|
6191
|
-
}
|
|
6192
|
-
|
|
6193
|
-
function pushTopLevelContextObject(fiber, context, didChange) {
|
|
6194
|
-
{
|
|
6195
|
-
if (contextStackCursor$1.current !== emptyContextObject) {
|
|
6196
|
-
throw new Error(
|
|
6197
|
-
"Unexpected context found on stack. " +
|
|
6198
|
-
"This error is likely caused by a bug in React. Please file an issue."
|
|
6199
|
-
);
|
|
6200
|
-
}
|
|
6201
|
-
|
|
6202
|
-
push(contextStackCursor$1, context, fiber);
|
|
6203
|
-
push(didPerformWorkStackCursor, didChange, fiber);
|
|
5630
|
+
return false;
|
|
6204
5631
|
}
|
|
6205
5632
|
}
|
|
6206
5633
|
|
|
6207
5634
|
function processChildContext(fiber, type, parentContext) {
|
|
6208
5635
|
{
|
|
6209
|
-
|
|
6210
|
-
var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
|
|
6211
|
-
// It has only been added in Fiber to match the (unintentional) behavior in Stack.
|
|
6212
|
-
|
|
6213
|
-
if (typeof instance.getChildContext !== "function") {
|
|
6214
|
-
{
|
|
6215
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown";
|
|
6216
|
-
|
|
6217
|
-
if (!warnedAboutMissingGetChildContext[componentName]) {
|
|
6218
|
-
warnedAboutMissingGetChildContext[componentName] = true;
|
|
6219
|
-
|
|
6220
|
-
error(
|
|
6221
|
-
"%s.childContextTypes is specified but there is no getChildContext() method " +
|
|
6222
|
-
"on the instance. You can either define getChildContext() on %s or remove " +
|
|
6223
|
-
"childContextTypes from it.",
|
|
6224
|
-
componentName,
|
|
6225
|
-
componentName
|
|
6226
|
-
);
|
|
6227
|
-
}
|
|
6228
|
-
}
|
|
6229
|
-
|
|
6230
|
-
return parentContext;
|
|
6231
|
-
}
|
|
6232
|
-
|
|
6233
|
-
var childContext = instance.getChildContext();
|
|
6234
|
-
|
|
6235
|
-
for (var contextKey in childContext) {
|
|
6236
|
-
if (!(contextKey in childContextTypes)) {
|
|
6237
|
-
throw new Error(
|
|
6238
|
-
(getComponentNameFromFiber(fiber) || "Unknown") +
|
|
6239
|
-
'.getChildContext(): key "' +
|
|
6240
|
-
contextKey +
|
|
6241
|
-
'" is not defined in childContextTypes.'
|
|
6242
|
-
);
|
|
6243
|
-
}
|
|
6244
|
-
}
|
|
6245
|
-
|
|
6246
|
-
{
|
|
6247
|
-
var name = getComponentNameFromFiber(fiber) || "Unknown";
|
|
6248
|
-
checkPropTypes(
|
|
6249
|
-
childContextTypes,
|
|
6250
|
-
childContext,
|
|
6251
|
-
"child context",
|
|
6252
|
-
name
|
|
6253
|
-
);
|
|
6254
|
-
}
|
|
6255
|
-
|
|
6256
|
-
return assign({}, parentContext, childContext);
|
|
6257
|
-
}
|
|
6258
|
-
}
|
|
6259
|
-
|
|
6260
|
-
function pushContextProvider(workInProgress) {
|
|
6261
|
-
{
|
|
6262
|
-
var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
|
|
6263
|
-
// If the instance does not exist yet, we will push null at first,
|
|
6264
|
-
// and replace it on the stack later when invalidating the context.
|
|
6265
|
-
|
|
6266
|
-
var memoizedMergedChildContext =
|
|
6267
|
-
(instance && instance.__reactInternalMemoizedMergedChildContext) ||
|
|
6268
|
-
emptyContextObject; // Remember the parent context so we can merge with it later.
|
|
6269
|
-
// Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
|
|
6270
|
-
|
|
6271
|
-
previousContext = contextStackCursor$1.current;
|
|
6272
|
-
push(contextStackCursor$1, memoizedMergedChildContext, workInProgress);
|
|
6273
|
-
push(
|
|
6274
|
-
didPerformWorkStackCursor,
|
|
6275
|
-
didPerformWorkStackCursor.current,
|
|
6276
|
-
workInProgress
|
|
6277
|
-
);
|
|
6278
|
-
return true;
|
|
6279
|
-
}
|
|
6280
|
-
}
|
|
6281
|
-
|
|
6282
|
-
function invalidateContextProvider(workInProgress, type, didChange) {
|
|
6283
|
-
{
|
|
6284
|
-
var instance = workInProgress.stateNode;
|
|
6285
|
-
|
|
6286
|
-
if (!instance) {
|
|
6287
|
-
throw new Error(
|
|
6288
|
-
"Expected to have an instance by this point. " +
|
|
6289
|
-
"This error is likely caused by a bug in React. Please file an issue."
|
|
6290
|
-
);
|
|
6291
|
-
}
|
|
6292
|
-
|
|
6293
|
-
if (didChange) {
|
|
6294
|
-
// Merge parent and own context.
|
|
6295
|
-
// Skip this if we're not updating due to sCU.
|
|
6296
|
-
// This avoids unnecessarily recomputing memoized values.
|
|
6297
|
-
var mergedContext = processChildContext(
|
|
6298
|
-
workInProgress,
|
|
6299
|
-
type,
|
|
6300
|
-
previousContext
|
|
6301
|
-
);
|
|
6302
|
-
instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
|
|
6303
|
-
// It is important to unwind the context in the reverse order.
|
|
6304
|
-
|
|
6305
|
-
pop(didPerformWorkStackCursor, workInProgress);
|
|
6306
|
-
pop(contextStackCursor$1, workInProgress); // Now push the new context and mark that it has changed.
|
|
6307
|
-
|
|
6308
|
-
push(contextStackCursor$1, mergedContext, workInProgress);
|
|
6309
|
-
push(didPerformWorkStackCursor, didChange, workInProgress);
|
|
6310
|
-
} else {
|
|
6311
|
-
pop(didPerformWorkStackCursor, workInProgress);
|
|
6312
|
-
push(didPerformWorkStackCursor, didChange, workInProgress);
|
|
6313
|
-
}
|
|
5636
|
+
return parentContext;
|
|
6314
5637
|
}
|
|
6315
5638
|
}
|
|
6316
5639
|
|
|
6317
5640
|
function findCurrentUnmaskedContext(fiber) {
|
|
6318
5641
|
{
|
|
6319
|
-
|
|
6320
|
-
// makes sense elsewhere
|
|
6321
|
-
if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) {
|
|
6322
|
-
throw new Error(
|
|
6323
|
-
"Expected subtree parent to be a mounted class component. " +
|
|
6324
|
-
"This error is likely caused by a bug in React. Please file an issue."
|
|
6325
|
-
);
|
|
6326
|
-
}
|
|
6327
|
-
|
|
6328
|
-
var node = fiber;
|
|
6329
|
-
|
|
6330
|
-
do {
|
|
6331
|
-
switch (node.tag) {
|
|
6332
|
-
case HostRoot:
|
|
6333
|
-
return node.stateNode.context;
|
|
6334
|
-
|
|
6335
|
-
case ClassComponent: {
|
|
6336
|
-
var Component = node.type;
|
|
6337
|
-
|
|
6338
|
-
if (isContextProvider(Component)) {
|
|
6339
|
-
return node.stateNode.__reactInternalMemoizedMergedChildContext;
|
|
6340
|
-
}
|
|
6341
|
-
|
|
6342
|
-
break;
|
|
6343
|
-
}
|
|
6344
|
-
} // $FlowFixMe[incompatible-type] we bail out when we get a null
|
|
6345
|
-
|
|
6346
|
-
node = node.return;
|
|
6347
|
-
} while (node !== null);
|
|
6348
|
-
|
|
6349
|
-
throw new Error(
|
|
6350
|
-
"Found unexpected detached subtree parent. " +
|
|
6351
|
-
"This error is likely caused by a bug in React. Please file an issue."
|
|
6352
|
-
);
|
|
5642
|
+
return emptyContextObject;
|
|
6353
5643
|
}
|
|
6354
5644
|
}
|
|
6355
5645
|
|
|
@@ -6468,16 +5758,8 @@ to return true:wantsResponderID| |
|
|
|
6468
5758
|
}
|
|
6469
5759
|
|
|
6470
5760
|
var isHydrating = false; // This flag allows for warning supression when we expect there to be mismatches
|
|
6471
|
-
// due to earlier mismatches or a suspended fiber.
|
|
6472
|
-
|
|
6473
|
-
var didSuspendOrErrorDEV = false; // Hydration errors that were thrown inside this boundary
|
|
6474
5761
|
|
|
6475
5762
|
var hydrationErrors = null;
|
|
6476
|
-
function didSuspendOrErrorWhileHydratingDEV() {
|
|
6477
|
-
{
|
|
6478
|
-
return didSuspendOrErrorDEV;
|
|
6479
|
-
}
|
|
6480
|
-
}
|
|
6481
5763
|
|
|
6482
5764
|
function prepareToHydrateHostInstance(fiber, hostContext) {
|
|
6483
5765
|
{
|
|
@@ -7819,6 +7101,9 @@ to return true:wantsResponderID| |
|
|
|
7819
7101
|
}
|
|
7820
7102
|
}
|
|
7821
7103
|
|
|
7104
|
+
// $FlowFixMe[method-unbinding]
|
|
7105
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7106
|
+
|
|
7822
7107
|
/**
|
|
7823
7108
|
* Performs equality by iterating through keys on an object and returning false
|
|
7824
7109
|
* when any key has values which are not strictly equal between the arguments.
|
|
@@ -7860,6 +7145,61 @@ to return true:wantsResponderID| |
|
|
|
7860
7145
|
return true;
|
|
7861
7146
|
}
|
|
7862
7147
|
|
|
7148
|
+
function describeBuiltInComponentFrame(name, ownerFn) {
|
|
7149
|
+
{
|
|
7150
|
+
var ownerName = null;
|
|
7151
|
+
|
|
7152
|
+
if (ownerFn) {
|
|
7153
|
+
ownerName = ownerFn.displayName || ownerFn.name || null;
|
|
7154
|
+
}
|
|
7155
|
+
|
|
7156
|
+
return describeComponentFrame(name, ownerName);
|
|
7157
|
+
}
|
|
7158
|
+
}
|
|
7159
|
+
function describeDebugInfoFrame(name, env) {
|
|
7160
|
+
return describeBuiltInComponentFrame(
|
|
7161
|
+
name + (env ? " (" + env + ")" : ""),
|
|
7162
|
+
null
|
|
7163
|
+
);
|
|
7164
|
+
}
|
|
7165
|
+
|
|
7166
|
+
{
|
|
7167
|
+
var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map;
|
|
7168
|
+
new PossiblyWeakMap$1();
|
|
7169
|
+
}
|
|
7170
|
+
|
|
7171
|
+
function describeComponentFrame(name, ownerName) {
|
|
7172
|
+
var sourceInfo = "";
|
|
7173
|
+
|
|
7174
|
+
if (ownerName) {
|
|
7175
|
+
sourceInfo = " (created by " + ownerName + ")";
|
|
7176
|
+
}
|
|
7177
|
+
|
|
7178
|
+
return "\n in " + (name || "Unknown") + sourceInfo;
|
|
7179
|
+
}
|
|
7180
|
+
|
|
7181
|
+
function describeClassComponentFrame(ctor, ownerFn) {
|
|
7182
|
+
{
|
|
7183
|
+
return describeFunctionComponentFrame(ctor, ownerFn);
|
|
7184
|
+
}
|
|
7185
|
+
}
|
|
7186
|
+
function describeFunctionComponentFrame(fn, ownerFn) {
|
|
7187
|
+
{
|
|
7188
|
+
if (!fn) {
|
|
7189
|
+
return "";
|
|
7190
|
+
}
|
|
7191
|
+
|
|
7192
|
+
var name = fn.displayName || fn.name || null;
|
|
7193
|
+
var ownerName = null;
|
|
7194
|
+
|
|
7195
|
+
if (ownerFn) {
|
|
7196
|
+
ownerName = ownerFn.displayName || ownerFn.name || null;
|
|
7197
|
+
}
|
|
7198
|
+
|
|
7199
|
+
return describeComponentFrame(name, ownerName);
|
|
7200
|
+
}
|
|
7201
|
+
}
|
|
7202
|
+
|
|
7863
7203
|
function describeFiber(fiber) {
|
|
7864
7204
|
var owner = fiber._debugOwner ? fiber._debugOwner.type : null;
|
|
7865
7205
|
|
|
@@ -7900,7 +7240,22 @@ to return true:wantsResponderID| |
|
|
|
7900
7240
|
var node = workInProgress;
|
|
7901
7241
|
|
|
7902
7242
|
do {
|
|
7903
|
-
info += describeFiber(node);
|
|
7243
|
+
info += describeFiber(node);
|
|
7244
|
+
|
|
7245
|
+
if (true) {
|
|
7246
|
+
// Add any Server Component stack frames in reverse order.
|
|
7247
|
+
var debugInfo = node._debugInfo;
|
|
7248
|
+
|
|
7249
|
+
if (debugInfo) {
|
|
7250
|
+
for (var i = debugInfo.length - 1; i >= 0; i--) {
|
|
7251
|
+
var entry = debugInfo[i];
|
|
7252
|
+
|
|
7253
|
+
if (typeof entry.name === "string") {
|
|
7254
|
+
info += describeDebugInfoFrame(entry.name, entry.env);
|
|
7255
|
+
}
|
|
7256
|
+
}
|
|
7257
|
+
}
|
|
7258
|
+
} // $FlowFixMe[incompatible-type] we bail out when we get a null
|
|
7904
7259
|
|
|
7905
7260
|
node = node.return;
|
|
7906
7261
|
} while (node);
|
|
@@ -8146,7 +7501,7 @@ to return true:wantsResponderID| |
|
|
|
8146
7501
|
|
|
8147
7502
|
error(
|
|
8148
7503
|
"Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " +
|
|
8149
|
-
"See https://
|
|
7504
|
+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
|
|
8150
7505
|
"* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" +
|
|
8151
7506
|
"\nPlease update the following components: %s",
|
|
8152
7507
|
sortedNames
|
|
@@ -8161,11 +7516,11 @@ to return true:wantsResponderID| |
|
|
|
8161
7516
|
error(
|
|
8162
7517
|
"Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " +
|
|
8163
7518
|
"and may indicate bugs in your code. " +
|
|
8164
|
-
"See https://
|
|
7519
|
+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
|
|
8165
7520
|
"* Move data fetching code or side effects to componentDidUpdate.\n" +
|
|
8166
7521
|
"* If you're updating state whenever props change, " +
|
|
8167
7522
|
"refactor your code to use memoization techniques or move it to " +
|
|
8168
|
-
"static getDerivedStateFromProps. Learn more at: https://
|
|
7523
|
+
"static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" +
|
|
8169
7524
|
"\nPlease update the following components: %s",
|
|
8170
7525
|
_sortedNames
|
|
8171
7526
|
);
|
|
@@ -8179,7 +7534,7 @@ to return true:wantsResponderID| |
|
|
|
8179
7534
|
error(
|
|
8180
7535
|
"Using UNSAFE_componentWillUpdate in strict mode is not recommended " +
|
|
8181
7536
|
"and may indicate bugs in your code. " +
|
|
8182
|
-
"See https://
|
|
7537
|
+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
|
|
8183
7538
|
"* Move data fetching code or side effects to componentDidUpdate.\n" +
|
|
8184
7539
|
"\nPlease update the following components: %s",
|
|
8185
7540
|
_sortedNames2
|
|
@@ -8193,7 +7548,7 @@ to return true:wantsResponderID| |
|
|
|
8193
7548
|
|
|
8194
7549
|
warn(
|
|
8195
7550
|
"componentWillMount has been renamed, and is not recommended for use. " +
|
|
8196
|
-
"See https://
|
|
7551
|
+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
|
|
8197
7552
|
"* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" +
|
|
8198
7553
|
"* Rename componentWillMount to UNSAFE_componentWillMount to suppress " +
|
|
8199
7554
|
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
|
|
@@ -8211,11 +7566,11 @@ to return true:wantsResponderID| |
|
|
|
8211
7566
|
|
|
8212
7567
|
warn(
|
|
8213
7568
|
"componentWillReceiveProps has been renamed, and is not recommended for use. " +
|
|
8214
|
-
"See https://
|
|
7569
|
+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
|
|
8215
7570
|
"* Move data fetching code or side effects to componentDidUpdate.\n" +
|
|
8216
7571
|
"* If you're updating state whenever props change, refactor your " +
|
|
8217
7572
|
"code to use memoization techniques or move it to " +
|
|
8218
|
-
"static getDerivedStateFromProps. Learn more at: https://
|
|
7573
|
+
"static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" +
|
|
8219
7574
|
"* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " +
|
|
8220
7575
|
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
|
|
8221
7576
|
"To rename all deprecated lifecycles to their new names, you can run " +
|
|
@@ -8232,7 +7587,7 @@ to return true:wantsResponderID| |
|
|
|
8232
7587
|
|
|
8233
7588
|
warn(
|
|
8234
7589
|
"componentWillUpdate has been renamed, and is not recommended for use. " +
|
|
8235
|
-
"See https://
|
|
7590
|
+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
|
|
8236
7591
|
"* Move data fetching code or side effects to componentDidUpdate.\n" +
|
|
8237
7592
|
"* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " +
|
|
8238
7593
|
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
|
|
@@ -8305,7 +7660,7 @@ to return true:wantsResponderID| |
|
|
|
8305
7660
|
"\n\nThe old API will be supported in all 16.x releases, but applications " +
|
|
8306
7661
|
"using it should migrate to the new version." +
|
|
8307
7662
|
"\n\nPlease update the following components: %s" +
|
|
8308
|
-
"\n\nLearn more about this warning here: https://
|
|
7663
|
+
"\n\nLearn more about this warning here: https://react.dev/link/legacy-context",
|
|
8309
7664
|
sortedNames
|
|
8310
7665
|
);
|
|
8311
7666
|
} finally {
|
|
@@ -8585,20 +7940,20 @@ to return true:wantsResponderID| |
|
|
|
8585
7940
|
rejectedThenable.reason = error;
|
|
8586
7941
|
}
|
|
8587
7942
|
}
|
|
8588
|
-
);
|
|
7943
|
+
);
|
|
7944
|
+
} // Check one more time in case the thenable resolved synchronously.
|
|
8589
7945
|
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
7946
|
+
switch (thenable.status) {
|
|
7947
|
+
case "fulfilled": {
|
|
7948
|
+
var fulfilledThenable = thenable;
|
|
7949
|
+
return fulfilledThenable.value;
|
|
7950
|
+
}
|
|
8595
7951
|
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
}
|
|
7952
|
+
case "rejected": {
|
|
7953
|
+
var rejectedThenable = thenable;
|
|
7954
|
+
var _rejectedError = rejectedThenable.reason;
|
|
7955
|
+
checkIfUseWrappedInAsyncCatch(_rejectedError);
|
|
7956
|
+
throw _rejectedError;
|
|
8602
7957
|
}
|
|
8603
7958
|
} // Suspend.
|
|
8604
7959
|
//
|
|
@@ -8676,11 +8031,26 @@ to return true:wantsResponderID| |
|
|
|
8676
8031
|
|
|
8677
8032
|
var thenableState$1 = null;
|
|
8678
8033
|
var thenableIndexCounter$1 = 0;
|
|
8034
|
+
|
|
8035
|
+
function mergeDebugInfo(outer, inner) {
|
|
8036
|
+
if (inner == null) {
|
|
8037
|
+
return outer;
|
|
8038
|
+
} else if (outer === null) {
|
|
8039
|
+
return inner;
|
|
8040
|
+
} else {
|
|
8041
|
+
// If we have two debugInfo, we need to create a new one. This makes the array no longer
|
|
8042
|
+
// live so we'll miss any future updates if we received more so ideally we should always
|
|
8043
|
+
// do this after both have fully resolved/unsuspended.
|
|
8044
|
+
return outer.concat(inner);
|
|
8045
|
+
}
|
|
8046
|
+
}
|
|
8047
|
+
|
|
8679
8048
|
var didWarnAboutMaps;
|
|
8680
8049
|
var didWarnAboutGenerators;
|
|
8681
8050
|
var didWarnAboutStringRefs;
|
|
8682
8051
|
var ownerHasKeyUseWarning;
|
|
8683
8052
|
var ownerHasFunctionTypeWarning;
|
|
8053
|
+
var ownerHasSymbolTypeWarning;
|
|
8684
8054
|
|
|
8685
8055
|
var warnForMissingKey = function (child, returnFiber) {};
|
|
8686
8056
|
|
|
@@ -8696,6 +8066,7 @@ to return true:wantsResponderID| |
|
|
|
8696
8066
|
|
|
8697
8067
|
ownerHasKeyUseWarning = {};
|
|
8698
8068
|
ownerHasFunctionTypeWarning = {};
|
|
8069
|
+
ownerHasSymbolTypeWarning = {};
|
|
8699
8070
|
|
|
8700
8071
|
warnForMissingKey = function (child, returnFiber) {
|
|
8701
8072
|
if (child === null || typeof child !== "object") {
|
|
@@ -8725,7 +8096,7 @@ to return true:wantsResponderID| |
|
|
|
8725
8096
|
|
|
8726
8097
|
error(
|
|
8727
8098
|
"Each child in a list should have a unique " +
|
|
8728
|
-
'"key" prop. See https://
|
|
8099
|
+
'"key" prop. See https://react.dev/link/warning-keys for ' +
|
|
8729
8100
|
"more information."
|
|
8730
8101
|
);
|
|
8731
8102
|
};
|
|
@@ -8746,122 +8117,128 @@ to return true:wantsResponderID| |
|
|
|
8746
8117
|
return trackUsedThenable(thenableState$1, thenable, index);
|
|
8747
8118
|
}
|
|
8748
8119
|
|
|
8749
|
-
function
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
if (
|
|
8759
|
-
// Will already throw with "Function components cannot have string refs"
|
|
8760
|
-
!(element._owner && element._owner.tag !== ClassComponent) && // Will already warn with "Function components cannot be given refs"
|
|
8761
|
-
!(
|
|
8762
|
-
typeof element.type === "function" && !isReactClass(element.type)
|
|
8763
|
-
) && // Will already throw with "Element ref was specified as a string (someStringRef) but no owner was set"
|
|
8764
|
-
element._owner
|
|
8765
|
-
) {
|
|
8766
|
-
var componentName =
|
|
8767
|
-
getComponentNameFromFiber(returnFiber) || "Component";
|
|
8768
|
-
|
|
8769
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
8770
|
-
error(
|
|
8771
|
-
'Component "%s" contains the string ref "%s". Support for string refs ' +
|
|
8772
|
-
"will be removed in a future major release. We recommend using " +
|
|
8773
|
-
"useRef() or createRef() instead. " +
|
|
8774
|
-
"Learn more about using refs safely here: " +
|
|
8775
|
-
"https://reactjs.org/link/strict-mode-string-ref",
|
|
8776
|
-
componentName,
|
|
8777
|
-
mixedRef
|
|
8778
|
-
);
|
|
8779
|
-
|
|
8780
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
8781
|
-
}
|
|
8782
|
-
}
|
|
8783
|
-
}
|
|
8120
|
+
function convertStringRefToCallbackRef(
|
|
8121
|
+
returnFiber,
|
|
8122
|
+
current,
|
|
8123
|
+
element,
|
|
8124
|
+
mixedRef
|
|
8125
|
+
) {
|
|
8126
|
+
{
|
|
8127
|
+
checkPropStringCoercion(mixedRef, "ref");
|
|
8128
|
+
}
|
|
8784
8129
|
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
var inst;
|
|
8130
|
+
var stringRef = "" + mixedRef;
|
|
8131
|
+
var owner = element._owner;
|
|
8788
8132
|
|
|
8789
|
-
|
|
8790
|
-
|
|
8133
|
+
if (!owner) {
|
|
8134
|
+
throw new Error(
|
|
8135
|
+
"Element ref was specified as a string (" +
|
|
8136
|
+
stringRef +
|
|
8137
|
+
") but no owner was set. This could happen for one of" +
|
|
8138
|
+
" the following reasons:\n" +
|
|
8139
|
+
"1. You may be adding a ref to a function component\n" +
|
|
8140
|
+
"2. You may be adding a ref to a component that was not created inside a component's render method\n" +
|
|
8141
|
+
"3. You have multiple copies of React loaded\n" +
|
|
8142
|
+
"See https://react.dev/link/refs-must-have-owner for more information."
|
|
8143
|
+
);
|
|
8144
|
+
}
|
|
8791
8145
|
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8146
|
+
if (owner.tag !== ClassComponent) {
|
|
8147
|
+
throw new Error(
|
|
8148
|
+
"Function components cannot have string refs. " +
|
|
8149
|
+
"We recommend using useRef() instead. " +
|
|
8150
|
+
"Learn more about using refs safely here: " +
|
|
8151
|
+
"https://react.dev/link/strict-mode-string-ref"
|
|
8152
|
+
);
|
|
8153
|
+
}
|
|
8800
8154
|
|
|
8801
|
-
|
|
8802
|
-
|
|
8155
|
+
{
|
|
8156
|
+
if (
|
|
8157
|
+
// Will already warn with "Function components cannot be given refs"
|
|
8158
|
+
!(typeof element.type === "function" && !isReactClass(element.type))
|
|
8159
|
+
) {
|
|
8160
|
+
var componentName =
|
|
8161
|
+
getComponentNameFromFiber(returnFiber) || "Component";
|
|
8803
8162
|
|
|
8804
|
-
if (!
|
|
8805
|
-
|
|
8806
|
-
"
|
|
8807
|
-
|
|
8808
|
-
"
|
|
8809
|
-
"
|
|
8163
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
8164
|
+
error(
|
|
8165
|
+
'Component "%s" contains the string ref "%s". Support for string refs ' +
|
|
8166
|
+
"will be removed in a future major release. We recommend using " +
|
|
8167
|
+
"useRef() or createRef() instead. " +
|
|
8168
|
+
"Learn more about using refs safely here: " +
|
|
8169
|
+
"https://react.dev/link/strict-mode-string-ref",
|
|
8170
|
+
componentName,
|
|
8171
|
+
stringRef
|
|
8810
8172
|
);
|
|
8811
|
-
} // Assigning this to a const so Flow knows it won't change in the closure
|
|
8812
|
-
|
|
8813
|
-
var resolvedInst = inst;
|
|
8814
8173
|
|
|
8815
|
-
|
|
8816
|
-
checkPropStringCoercion(mixedRef, "ref");
|
|
8174
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
8817
8175
|
}
|
|
8176
|
+
}
|
|
8177
|
+
}
|
|
8818
8178
|
|
|
8819
|
-
|
|
8179
|
+
var inst = owner.stateNode;
|
|
8820
8180
|
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8181
|
+
if (!inst) {
|
|
8182
|
+
throw new Error(
|
|
8183
|
+
"Missing owner for string ref " +
|
|
8184
|
+
stringRef +
|
|
8185
|
+
". This error is likely caused by a " +
|
|
8186
|
+
"bug in React. Please file an issue."
|
|
8187
|
+
);
|
|
8188
|
+
} // Check if previous string ref matches new string ref
|
|
8829
8189
|
|
|
8830
|
-
|
|
8831
|
-
|
|
8190
|
+
if (
|
|
8191
|
+
current !== null &&
|
|
8192
|
+
current.ref !== null &&
|
|
8193
|
+
typeof current.ref === "function" &&
|
|
8194
|
+
current.ref._stringRef === stringRef
|
|
8195
|
+
) {
|
|
8196
|
+
// Reuse the existing string ref
|
|
8197
|
+
var currentRef = current.ref;
|
|
8198
|
+
return currentRef;
|
|
8199
|
+
} // Create a new string ref
|
|
8832
8200
|
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
} else {
|
|
8836
|
-
refs[stringRef] = value;
|
|
8837
|
-
}
|
|
8838
|
-
};
|
|
8201
|
+
var ref = function (value) {
|
|
8202
|
+
var refs = inst.refs;
|
|
8839
8203
|
|
|
8840
|
-
|
|
8841
|
-
|
|
8204
|
+
if (value === null) {
|
|
8205
|
+
delete refs[stringRef];
|
|
8842
8206
|
} else {
|
|
8843
|
-
|
|
8844
|
-
throw new Error(
|
|
8845
|
-
"Expected ref to be a function, a string, an object returned by React.createRef(), or null."
|
|
8846
|
-
);
|
|
8847
|
-
}
|
|
8848
|
-
|
|
8849
|
-
if (!element._owner) {
|
|
8850
|
-
throw new Error(
|
|
8851
|
-
"Element ref was specified as a string (" +
|
|
8852
|
-
mixedRef +
|
|
8853
|
-
") but no owner was set. This could happen for one of" +
|
|
8854
|
-
" the following reasons:\n" +
|
|
8855
|
-
"1. You may be adding a ref to a function component\n" +
|
|
8856
|
-
"2. You may be adding a ref to a component that was not created inside a component's render method\n" +
|
|
8857
|
-
"3. You have multiple copies of React loaded\n" +
|
|
8858
|
-
"See https://reactjs.org/link/refs-must-have-owner for more information."
|
|
8859
|
-
);
|
|
8860
|
-
}
|
|
8207
|
+
refs[stringRef] = value;
|
|
8861
8208
|
}
|
|
8209
|
+
};
|
|
8210
|
+
|
|
8211
|
+
ref._stringRef = stringRef;
|
|
8212
|
+
return ref;
|
|
8213
|
+
}
|
|
8214
|
+
|
|
8215
|
+
function coerceRef(returnFiber, current, workInProgress, element) {
|
|
8216
|
+
var mixedRef;
|
|
8217
|
+
|
|
8218
|
+
{
|
|
8219
|
+
// Old behavior.
|
|
8220
|
+
mixedRef = element.ref;
|
|
8862
8221
|
}
|
|
8863
8222
|
|
|
8864
|
-
|
|
8223
|
+
var coercedRef;
|
|
8224
|
+
|
|
8225
|
+
if (
|
|
8226
|
+
typeof mixedRef === "string" ||
|
|
8227
|
+
typeof mixedRef === "number" ||
|
|
8228
|
+
typeof mixedRef === "boolean"
|
|
8229
|
+
) {
|
|
8230
|
+
coercedRef = convertStringRefToCallbackRef(
|
|
8231
|
+
returnFiber,
|
|
8232
|
+
current,
|
|
8233
|
+
element,
|
|
8234
|
+
mixedRef
|
|
8235
|
+
);
|
|
8236
|
+
} else {
|
|
8237
|
+
coercedRef = mixedRef;
|
|
8238
|
+
} // TODO: If enableRefAsProp is on, we shouldn't use the `ref` field. We
|
|
8239
|
+
// should always read the ref from the prop.
|
|
8240
|
+
|
|
8241
|
+
workInProgress.ref = coercedRef;
|
|
8865
8242
|
}
|
|
8866
8243
|
|
|
8867
8244
|
function throwOnInvalidObjectType(returnFiber, newChild) {
|
|
@@ -8878,22 +8255,68 @@ to return true:wantsResponderID| |
|
|
|
8878
8255
|
);
|
|
8879
8256
|
}
|
|
8880
8257
|
|
|
8881
|
-
function warnOnFunctionType(returnFiber) {
|
|
8258
|
+
function warnOnFunctionType(returnFiber, invalidChild) {
|
|
8882
8259
|
{
|
|
8883
|
-
var
|
|
8884
|
-
getComponentNameFromFiber(returnFiber) || "Component";
|
|
8260
|
+
var parentName = getComponentNameFromFiber(returnFiber) || "Component";
|
|
8885
8261
|
|
|
8886
|
-
if (ownerHasFunctionTypeWarning[
|
|
8262
|
+
if (ownerHasFunctionTypeWarning[parentName]) {
|
|
8887
8263
|
return;
|
|
8888
8264
|
}
|
|
8889
8265
|
|
|
8890
|
-
ownerHasFunctionTypeWarning[
|
|
8266
|
+
ownerHasFunctionTypeWarning[parentName] = true;
|
|
8267
|
+
var name = invalidChild.displayName || invalidChild.name || "Component";
|
|
8891
8268
|
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
"
|
|
8895
|
-
|
|
8896
|
-
|
|
8269
|
+
if (returnFiber.tag === HostRoot) {
|
|
8270
|
+
error(
|
|
8271
|
+
"Functions are not valid as a React child. This may happen if " +
|
|
8272
|
+
"you return %s instead of <%s /> from render. " +
|
|
8273
|
+
"Or maybe you meant to call this function rather than return it.\n" +
|
|
8274
|
+
" root.render(%s)",
|
|
8275
|
+
name,
|
|
8276
|
+
name,
|
|
8277
|
+
name
|
|
8278
|
+
);
|
|
8279
|
+
} else {
|
|
8280
|
+
error(
|
|
8281
|
+
"Functions are not valid as a React child. This may happen if " +
|
|
8282
|
+
"you return %s instead of <%s /> from render. " +
|
|
8283
|
+
"Or maybe you meant to call this function rather than return it.\n" +
|
|
8284
|
+
" <%s>{%s}</%s>",
|
|
8285
|
+
name,
|
|
8286
|
+
name,
|
|
8287
|
+
parentName,
|
|
8288
|
+
name,
|
|
8289
|
+
parentName
|
|
8290
|
+
);
|
|
8291
|
+
}
|
|
8292
|
+
}
|
|
8293
|
+
}
|
|
8294
|
+
|
|
8295
|
+
function warnOnSymbolType(returnFiber, invalidChild) {
|
|
8296
|
+
{
|
|
8297
|
+
var parentName = getComponentNameFromFiber(returnFiber) || "Component";
|
|
8298
|
+
|
|
8299
|
+
if (ownerHasSymbolTypeWarning[parentName]) {
|
|
8300
|
+
return;
|
|
8301
|
+
}
|
|
8302
|
+
|
|
8303
|
+
ownerHasSymbolTypeWarning[parentName] = true; // eslint-disable-next-line react-internal/safe-string-coercion
|
|
8304
|
+
|
|
8305
|
+
var name = String(invalidChild);
|
|
8306
|
+
|
|
8307
|
+
if (returnFiber.tag === HostRoot) {
|
|
8308
|
+
error(
|
|
8309
|
+
"Symbols are not valid as a React child.\n" + " root.render(%s)",
|
|
8310
|
+
name
|
|
8311
|
+
);
|
|
8312
|
+
} else {
|
|
8313
|
+
error(
|
|
8314
|
+
"Symbols are not valid as a React child.\n" + " <%s>%s</%s>",
|
|
8315
|
+
parentName,
|
|
8316
|
+
name,
|
|
8317
|
+
parentName
|
|
8318
|
+
);
|
|
8319
|
+
}
|
|
8897
8320
|
}
|
|
8898
8321
|
}
|
|
8899
8322
|
|
|
@@ -8940,7 +8363,7 @@ to return true:wantsResponderID| |
|
|
|
8940
8363
|
return null;
|
|
8941
8364
|
}
|
|
8942
8365
|
|
|
8943
|
-
function mapRemainingChildren(
|
|
8366
|
+
function mapRemainingChildren(currentFirstChild) {
|
|
8944
8367
|
// Add the remaining children to a temporary map so that we can find them by
|
|
8945
8368
|
// keys quickly. Implicit (null) keys get added to this set with their index
|
|
8946
8369
|
// instead.
|
|
@@ -9009,7 +8432,13 @@ to return true:wantsResponderID| |
|
|
|
9009
8432
|
return newFiber;
|
|
9010
8433
|
}
|
|
9011
8434
|
|
|
9012
|
-
function updateTextNode(
|
|
8435
|
+
function updateTextNode(
|
|
8436
|
+
returnFiber,
|
|
8437
|
+
current,
|
|
8438
|
+
textContent,
|
|
8439
|
+
lanes,
|
|
8440
|
+
debugInfo
|
|
8441
|
+
) {
|
|
9013
8442
|
if (current === null || current.tag !== HostText) {
|
|
9014
8443
|
// Insert
|
|
9015
8444
|
var created = createFiberFromText(
|
|
@@ -9018,16 +8447,26 @@ to return true:wantsResponderID| |
|
|
|
9018
8447
|
lanes
|
|
9019
8448
|
);
|
|
9020
8449
|
created.return = returnFiber;
|
|
8450
|
+
|
|
8451
|
+
{
|
|
8452
|
+
created._debugInfo = debugInfo;
|
|
8453
|
+
}
|
|
8454
|
+
|
|
9021
8455
|
return created;
|
|
9022
8456
|
} else {
|
|
9023
8457
|
// Update
|
|
9024
8458
|
var existing = useFiber(current, textContent);
|
|
9025
8459
|
existing.return = returnFiber;
|
|
8460
|
+
|
|
8461
|
+
{
|
|
8462
|
+
existing._debugInfo = debugInfo;
|
|
8463
|
+
}
|
|
8464
|
+
|
|
9026
8465
|
return existing;
|
|
9027
8466
|
}
|
|
9028
8467
|
}
|
|
9029
8468
|
|
|
9030
|
-
function updateElement(returnFiber, current, element, lanes) {
|
|
8469
|
+
function updateElement(returnFiber, current, element, lanes, debugInfo) {
|
|
9031
8470
|
var elementType = element.type;
|
|
9032
8471
|
|
|
9033
8472
|
if (elementType === REACT_FRAGMENT_TYPE) {
|
|
@@ -9036,7 +8475,8 @@ to return true:wantsResponderID| |
|
|
|
9036
8475
|
current,
|
|
9037
8476
|
element.props.children,
|
|
9038
8477
|
lanes,
|
|
9039
|
-
element.key
|
|
8478
|
+
element.key,
|
|
8479
|
+
debugInfo
|
|
9040
8480
|
);
|
|
9041
8481
|
}
|
|
9042
8482
|
|
|
@@ -9054,11 +8494,12 @@ to return true:wantsResponderID| |
|
|
|
9054
8494
|
) {
|
|
9055
8495
|
// Move based on index
|
|
9056
8496
|
var existing = useFiber(current, element.props);
|
|
9057
|
-
|
|
8497
|
+
coerceRef(returnFiber, current, existing, element);
|
|
9058
8498
|
existing.return = returnFiber;
|
|
9059
8499
|
|
|
9060
8500
|
{
|
|
9061
8501
|
existing._debugOwner = element._owner;
|
|
8502
|
+
existing._debugInfo = debugInfo;
|
|
9062
8503
|
}
|
|
9063
8504
|
|
|
9064
8505
|
return existing;
|
|
@@ -9066,12 +8507,17 @@ to return true:wantsResponderID| |
|
|
|
9066
8507
|
} // Insert
|
|
9067
8508
|
|
|
9068
8509
|
var created = createFiberFromElement(element, returnFiber.mode, lanes);
|
|
9069
|
-
|
|
8510
|
+
coerceRef(returnFiber, current, created, element);
|
|
9070
8511
|
created.return = returnFiber;
|
|
8512
|
+
|
|
8513
|
+
{
|
|
8514
|
+
created._debugInfo = debugInfo;
|
|
8515
|
+
}
|
|
8516
|
+
|
|
9071
8517
|
return created;
|
|
9072
8518
|
}
|
|
9073
8519
|
|
|
9074
|
-
function updatePortal(returnFiber, current, portal, lanes) {
|
|
8520
|
+
function updatePortal(returnFiber, current, portal, lanes, debugInfo) {
|
|
9075
8521
|
if (
|
|
9076
8522
|
current === null ||
|
|
9077
8523
|
current.tag !== HostPortal ||
|
|
@@ -9081,16 +8527,33 @@ to return true:wantsResponderID| |
|
|
|
9081
8527
|
// Insert
|
|
9082
8528
|
var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
|
|
9083
8529
|
created.return = returnFiber;
|
|
8530
|
+
|
|
8531
|
+
{
|
|
8532
|
+
created._debugInfo = debugInfo;
|
|
8533
|
+
}
|
|
8534
|
+
|
|
9084
8535
|
return created;
|
|
9085
8536
|
} else {
|
|
9086
8537
|
// Update
|
|
9087
8538
|
var existing = useFiber(current, portal.children || []);
|
|
9088
8539
|
existing.return = returnFiber;
|
|
8540
|
+
|
|
8541
|
+
{
|
|
8542
|
+
existing._debugInfo = debugInfo;
|
|
8543
|
+
}
|
|
8544
|
+
|
|
9089
8545
|
return existing;
|
|
9090
8546
|
}
|
|
9091
8547
|
}
|
|
9092
8548
|
|
|
9093
|
-
function updateFragment(
|
|
8549
|
+
function updateFragment(
|
|
8550
|
+
returnFiber,
|
|
8551
|
+
current,
|
|
8552
|
+
fragment,
|
|
8553
|
+
lanes,
|
|
8554
|
+
key,
|
|
8555
|
+
debugInfo
|
|
8556
|
+
) {
|
|
9094
8557
|
if (current === null || current.tag !== Fragment) {
|
|
9095
8558
|
// Insert
|
|
9096
8559
|
var created = createFiberFromFragment(
|
|
@@ -9100,29 +8563,46 @@ to return true:wantsResponderID| |
|
|
|
9100
8563
|
key
|
|
9101
8564
|
);
|
|
9102
8565
|
created.return = returnFiber;
|
|
8566
|
+
|
|
8567
|
+
{
|
|
8568
|
+
created._debugInfo = debugInfo;
|
|
8569
|
+
}
|
|
8570
|
+
|
|
9103
8571
|
return created;
|
|
9104
8572
|
} else {
|
|
9105
8573
|
// Update
|
|
9106
8574
|
var existing = useFiber(current, fragment);
|
|
9107
8575
|
existing.return = returnFiber;
|
|
8576
|
+
|
|
8577
|
+
{
|
|
8578
|
+
existing._debugInfo = debugInfo;
|
|
8579
|
+
}
|
|
8580
|
+
|
|
9108
8581
|
return existing;
|
|
9109
8582
|
}
|
|
9110
8583
|
}
|
|
9111
8584
|
|
|
9112
|
-
function createChild(returnFiber, newChild, lanes) {
|
|
8585
|
+
function createChild(returnFiber, newChild, lanes, debugInfo) {
|
|
9113
8586
|
if (
|
|
9114
8587
|
(typeof newChild === "string" && newChild !== "") ||
|
|
9115
|
-
typeof newChild === "number"
|
|
8588
|
+
typeof newChild === "number" ||
|
|
8589
|
+
enableBigIntSupport
|
|
9116
8590
|
) {
|
|
9117
8591
|
// Text nodes don't have keys. If the previous node is implicitly keyed
|
|
9118
8592
|
// we can continue to replace it without aborting even if it is not a text
|
|
9119
8593
|
// node.
|
|
9120
8594
|
var created = createFiberFromText(
|
|
8595
|
+
// $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
|
|
9121
8596
|
"" + newChild,
|
|
9122
8597
|
returnFiber.mode,
|
|
9123
8598
|
lanes
|
|
9124
8599
|
);
|
|
9125
8600
|
created.return = returnFiber;
|
|
8601
|
+
|
|
8602
|
+
{
|
|
8603
|
+
created._debugInfo = debugInfo;
|
|
8604
|
+
}
|
|
8605
|
+
|
|
9126
8606
|
return created;
|
|
9127
8607
|
}
|
|
9128
8608
|
|
|
@@ -9135,8 +8615,16 @@ to return true:wantsResponderID| |
|
|
|
9135
8615
|
lanes
|
|
9136
8616
|
);
|
|
9137
8617
|
|
|
9138
|
-
|
|
8618
|
+
coerceRef(returnFiber, null, _created, newChild);
|
|
9139
8619
|
_created.return = returnFiber;
|
|
8620
|
+
|
|
8621
|
+
{
|
|
8622
|
+
_created._debugInfo = mergeDebugInfo(
|
|
8623
|
+
debugInfo,
|
|
8624
|
+
newChild._debugInfo
|
|
8625
|
+
);
|
|
8626
|
+
}
|
|
8627
|
+
|
|
9140
8628
|
return _created;
|
|
9141
8629
|
}
|
|
9142
8630
|
|
|
@@ -9148,13 +8636,23 @@ to return true:wantsResponderID| |
|
|
|
9148
8636
|
);
|
|
9149
8637
|
|
|
9150
8638
|
_created2.return = returnFiber;
|
|
8639
|
+
|
|
8640
|
+
{
|
|
8641
|
+
_created2._debugInfo = debugInfo;
|
|
8642
|
+
}
|
|
8643
|
+
|
|
9151
8644
|
return _created2;
|
|
9152
8645
|
}
|
|
9153
8646
|
|
|
9154
8647
|
case REACT_LAZY_TYPE: {
|
|
9155
8648
|
var payload = newChild._payload;
|
|
9156
8649
|
var init = newChild._init;
|
|
9157
|
-
return createChild(
|
|
8650
|
+
return createChild(
|
|
8651
|
+
returnFiber,
|
|
8652
|
+
init(payload),
|
|
8653
|
+
lanes,
|
|
8654
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo) // call merge after init
|
|
8655
|
+
);
|
|
9158
8656
|
}
|
|
9159
8657
|
}
|
|
9160
8658
|
|
|
@@ -9167,6 +8665,14 @@ to return true:wantsResponderID| |
|
|
|
9167
8665
|
);
|
|
9168
8666
|
|
|
9169
8667
|
_created3.return = returnFiber;
|
|
8668
|
+
|
|
8669
|
+
{
|
|
8670
|
+
_created3._debugInfo = mergeDebugInfo(
|
|
8671
|
+
debugInfo,
|
|
8672
|
+
newChild._debugInfo
|
|
8673
|
+
);
|
|
8674
|
+
}
|
|
8675
|
+
|
|
9170
8676
|
return _created3;
|
|
9171
8677
|
} // Usable node types
|
|
9172
8678
|
//
|
|
@@ -9174,15 +8680,21 @@ to return true:wantsResponderID| |
|
|
|
9174
8680
|
|
|
9175
8681
|
if (typeof newChild.then === "function") {
|
|
9176
8682
|
var thenable = newChild;
|
|
9177
|
-
return createChild(
|
|
8683
|
+
return createChild(
|
|
8684
|
+
returnFiber,
|
|
8685
|
+
unwrapThenable(thenable),
|
|
8686
|
+
lanes,
|
|
8687
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
8688
|
+
);
|
|
9178
8689
|
}
|
|
9179
8690
|
|
|
9180
8691
|
if (newChild.$$typeof === REACT_CONTEXT_TYPE) {
|
|
9181
8692
|
var context = newChild;
|
|
9182
8693
|
return createChild(
|
|
9183
8694
|
returnFiber,
|
|
9184
|
-
|
|
9185
|
-
lanes
|
|
8695
|
+
readContextDuringReconciliation(returnFiber, context, lanes),
|
|
8696
|
+
lanes,
|
|
8697
|
+
debugInfo
|
|
9186
8698
|
);
|
|
9187
8699
|
}
|
|
9188
8700
|
|
|
@@ -9191,20 +8703,25 @@ to return true:wantsResponderID| |
|
|
|
9191
8703
|
|
|
9192
8704
|
{
|
|
9193
8705
|
if (typeof newChild === "function") {
|
|
9194
|
-
warnOnFunctionType(returnFiber);
|
|
8706
|
+
warnOnFunctionType(returnFiber, newChild);
|
|
8707
|
+
}
|
|
8708
|
+
|
|
8709
|
+
if (typeof newChild === "symbol") {
|
|
8710
|
+
warnOnSymbolType(returnFiber, newChild);
|
|
9195
8711
|
}
|
|
9196
8712
|
}
|
|
9197
8713
|
|
|
9198
8714
|
return null;
|
|
9199
8715
|
}
|
|
9200
8716
|
|
|
9201
|
-
function updateSlot(returnFiber, oldFiber, newChild, lanes) {
|
|
8717
|
+
function updateSlot(returnFiber, oldFiber, newChild, lanes, debugInfo) {
|
|
9202
8718
|
// Update the fiber if the keys match, otherwise return null.
|
|
9203
8719
|
var key = oldFiber !== null ? oldFiber.key : null;
|
|
9204
8720
|
|
|
9205
8721
|
if (
|
|
9206
8722
|
(typeof newChild === "string" && newChild !== "") ||
|
|
9207
|
-
typeof newChild === "number"
|
|
8723
|
+
typeof newChild === "number" ||
|
|
8724
|
+
enableBigIntSupport
|
|
9208
8725
|
) {
|
|
9209
8726
|
// Text nodes don't have keys. If the previous node is implicitly keyed
|
|
9210
8727
|
// we can continue to replace it without aborting even if it is not a text
|
|
@@ -9213,14 +8730,26 @@ to return true:wantsResponderID| |
|
|
|
9213
8730
|
return null;
|
|
9214
8731
|
}
|
|
9215
8732
|
|
|
9216
|
-
return updateTextNode(
|
|
8733
|
+
return updateTextNode(
|
|
8734
|
+
returnFiber,
|
|
8735
|
+
oldFiber, // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
|
|
8736
|
+
"" + newChild,
|
|
8737
|
+
lanes,
|
|
8738
|
+
debugInfo
|
|
8739
|
+
);
|
|
9217
8740
|
}
|
|
9218
8741
|
|
|
9219
8742
|
if (typeof newChild === "object" && newChild !== null) {
|
|
9220
8743
|
switch (newChild.$$typeof) {
|
|
9221
8744
|
case REACT_ELEMENT_TYPE: {
|
|
9222
8745
|
if (newChild.key === key) {
|
|
9223
|
-
return updateElement(
|
|
8746
|
+
return updateElement(
|
|
8747
|
+
returnFiber,
|
|
8748
|
+
oldFiber,
|
|
8749
|
+
newChild,
|
|
8750
|
+
lanes,
|
|
8751
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
8752
|
+
);
|
|
9224
8753
|
} else {
|
|
9225
8754
|
return null;
|
|
9226
8755
|
}
|
|
@@ -9228,7 +8757,13 @@ to return true:wantsResponderID| |
|
|
|
9228
8757
|
|
|
9229
8758
|
case REACT_PORTAL_TYPE: {
|
|
9230
8759
|
if (newChild.key === key) {
|
|
9231
|
-
return updatePortal(
|
|
8760
|
+
return updatePortal(
|
|
8761
|
+
returnFiber,
|
|
8762
|
+
oldFiber,
|
|
8763
|
+
newChild,
|
|
8764
|
+
lanes,
|
|
8765
|
+
debugInfo
|
|
8766
|
+
);
|
|
9232
8767
|
} else {
|
|
9233
8768
|
return null;
|
|
9234
8769
|
}
|
|
@@ -9237,7 +8772,13 @@ to return true:wantsResponderID| |
|
|
|
9237
8772
|
case REACT_LAZY_TYPE: {
|
|
9238
8773
|
var payload = newChild._payload;
|
|
9239
8774
|
var init = newChild._init;
|
|
9240
|
-
return updateSlot(
|
|
8775
|
+
return updateSlot(
|
|
8776
|
+
returnFiber,
|
|
8777
|
+
oldFiber,
|
|
8778
|
+
init(payload),
|
|
8779
|
+
lanes,
|
|
8780
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
8781
|
+
);
|
|
9241
8782
|
}
|
|
9242
8783
|
}
|
|
9243
8784
|
|
|
@@ -9246,7 +8787,14 @@ to return true:wantsResponderID| |
|
|
|
9246
8787
|
return null;
|
|
9247
8788
|
}
|
|
9248
8789
|
|
|
9249
|
-
return updateFragment(
|
|
8790
|
+
return updateFragment(
|
|
8791
|
+
returnFiber,
|
|
8792
|
+
oldFiber,
|
|
8793
|
+
newChild,
|
|
8794
|
+
lanes,
|
|
8795
|
+
null,
|
|
8796
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
8797
|
+
);
|
|
9250
8798
|
} // Usable node types
|
|
9251
8799
|
//
|
|
9252
8800
|
// Unwrap the inner value and recursively call this function again.
|
|
@@ -9257,7 +8805,8 @@ to return true:wantsResponderID| |
|
|
|
9257
8805
|
returnFiber,
|
|
9258
8806
|
oldFiber,
|
|
9259
8807
|
unwrapThenable(thenable),
|
|
9260
|
-
lanes
|
|
8808
|
+
lanes,
|
|
8809
|
+
debugInfo
|
|
9261
8810
|
);
|
|
9262
8811
|
}
|
|
9263
8812
|
|
|
@@ -9266,8 +8815,9 @@ to return true:wantsResponderID| |
|
|
|
9266
8815
|
return updateSlot(
|
|
9267
8816
|
returnFiber,
|
|
9268
8817
|
oldFiber,
|
|
9269
|
-
|
|
9270
|
-
lanes
|
|
8818
|
+
readContextDuringReconciliation(returnFiber, context, lanes),
|
|
8819
|
+
lanes,
|
|
8820
|
+
debugInfo
|
|
9271
8821
|
);
|
|
9272
8822
|
}
|
|
9273
8823
|
|
|
@@ -9276,7 +8826,11 @@ to return true:wantsResponderID| |
|
|
|
9276
8826
|
|
|
9277
8827
|
{
|
|
9278
8828
|
if (typeof newChild === "function") {
|
|
9279
|
-
warnOnFunctionType(returnFiber);
|
|
8829
|
+
warnOnFunctionType(returnFiber, newChild);
|
|
8830
|
+
}
|
|
8831
|
+
|
|
8832
|
+
if (typeof newChild === "symbol") {
|
|
8833
|
+
warnOnSymbolType(returnFiber, newChild);
|
|
9280
8834
|
}
|
|
9281
8835
|
}
|
|
9282
8836
|
|
|
@@ -9288,20 +8842,23 @@ to return true:wantsResponderID| |
|
|
|
9288
8842
|
returnFiber,
|
|
9289
8843
|
newIdx,
|
|
9290
8844
|
newChild,
|
|
9291
|
-
lanes
|
|
8845
|
+
lanes,
|
|
8846
|
+
debugInfo
|
|
9292
8847
|
) {
|
|
9293
8848
|
if (
|
|
9294
8849
|
(typeof newChild === "string" && newChild !== "") ||
|
|
9295
|
-
typeof newChild === "number"
|
|
8850
|
+
typeof newChild === "number" ||
|
|
8851
|
+
enableBigIntSupport
|
|
9296
8852
|
) {
|
|
9297
8853
|
// Text nodes don't have keys, so we neither have to check the old nor
|
|
9298
8854
|
// new node for the key. If both are text nodes, they match.
|
|
9299
8855
|
var matchedFiber = existingChildren.get(newIdx) || null;
|
|
9300
8856
|
return updateTextNode(
|
|
9301
8857
|
returnFiber,
|
|
9302
|
-
matchedFiber,
|
|
8858
|
+
matchedFiber, // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
|
|
9303
8859
|
"" + newChild,
|
|
9304
|
-
lanes
|
|
8860
|
+
lanes,
|
|
8861
|
+
debugInfo
|
|
9305
8862
|
);
|
|
9306
8863
|
}
|
|
9307
8864
|
|
|
@@ -9313,7 +8870,13 @@ to return true:wantsResponderID| |
|
|
|
9313
8870
|
newChild.key === null ? newIdx : newChild.key
|
|
9314
8871
|
) || null;
|
|
9315
8872
|
|
|
9316
|
-
return updateElement(
|
|
8873
|
+
return updateElement(
|
|
8874
|
+
returnFiber,
|
|
8875
|
+
_matchedFiber,
|
|
8876
|
+
newChild,
|
|
8877
|
+
lanes,
|
|
8878
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
8879
|
+
);
|
|
9317
8880
|
}
|
|
9318
8881
|
|
|
9319
8882
|
case REACT_PORTAL_TYPE: {
|
|
@@ -9322,7 +8885,13 @@ to return true:wantsResponderID| |
|
|
|
9322
8885
|
newChild.key === null ? newIdx : newChild.key
|
|
9323
8886
|
) || null;
|
|
9324
8887
|
|
|
9325
|
-
return updatePortal(
|
|
8888
|
+
return updatePortal(
|
|
8889
|
+
returnFiber,
|
|
8890
|
+
_matchedFiber2,
|
|
8891
|
+
newChild,
|
|
8892
|
+
lanes,
|
|
8893
|
+
debugInfo
|
|
8894
|
+
);
|
|
9326
8895
|
}
|
|
9327
8896
|
|
|
9328
8897
|
case REACT_LAZY_TYPE:
|
|
@@ -9333,7 +8902,8 @@ to return true:wantsResponderID| |
|
|
|
9333
8902
|
returnFiber,
|
|
9334
8903
|
newIdx,
|
|
9335
8904
|
init(payload),
|
|
9336
|
-
lanes
|
|
8905
|
+
lanes,
|
|
8906
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
9337
8907
|
);
|
|
9338
8908
|
}
|
|
9339
8909
|
|
|
@@ -9345,7 +8915,8 @@ to return true:wantsResponderID| |
|
|
|
9345
8915
|
_matchedFiber3,
|
|
9346
8916
|
newChild,
|
|
9347
8917
|
lanes,
|
|
9348
|
-
null
|
|
8918
|
+
null,
|
|
8919
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
9349
8920
|
);
|
|
9350
8921
|
} // Usable node types
|
|
9351
8922
|
//
|
|
@@ -9358,7 +8929,8 @@ to return true:wantsResponderID| |
|
|
|
9358
8929
|
returnFiber,
|
|
9359
8930
|
newIdx,
|
|
9360
8931
|
unwrapThenable(thenable),
|
|
9361
|
-
lanes
|
|
8932
|
+
lanes,
|
|
8933
|
+
debugInfo
|
|
9362
8934
|
);
|
|
9363
8935
|
}
|
|
9364
8936
|
|
|
@@ -9368,8 +8940,9 @@ to return true:wantsResponderID| |
|
|
|
9368
8940
|
existingChildren,
|
|
9369
8941
|
returnFiber,
|
|
9370
8942
|
newIdx,
|
|
9371
|
-
|
|
9372
|
-
lanes
|
|
8943
|
+
readContextDuringReconciliation(returnFiber, context, lanes),
|
|
8944
|
+
lanes,
|
|
8945
|
+
debugInfo
|
|
9373
8946
|
);
|
|
9374
8947
|
}
|
|
9375
8948
|
|
|
@@ -9378,7 +8951,11 @@ to return true:wantsResponderID| |
|
|
|
9378
8951
|
|
|
9379
8952
|
{
|
|
9380
8953
|
if (typeof newChild === "function") {
|
|
9381
|
-
warnOnFunctionType(returnFiber);
|
|
8954
|
+
warnOnFunctionType(returnFiber, newChild);
|
|
8955
|
+
}
|
|
8956
|
+
|
|
8957
|
+
if (typeof newChild === "symbol") {
|
|
8958
|
+
warnOnSymbolType(returnFiber, newChild);
|
|
9382
8959
|
}
|
|
9383
8960
|
}
|
|
9384
8961
|
|
|
@@ -9441,7 +9018,8 @@ to return true:wantsResponderID| |
|
|
|
9441
9018
|
returnFiber,
|
|
9442
9019
|
currentFirstChild,
|
|
9443
9020
|
newChildren,
|
|
9444
|
-
lanes
|
|
9021
|
+
lanes,
|
|
9022
|
+
debugInfo
|
|
9445
9023
|
) {
|
|
9446
9024
|
// This algorithm can't optimize by searching from both ends since we
|
|
9447
9025
|
// don't have backpointers on fibers. I'm trying to see how far we can get
|
|
@@ -9487,7 +9065,8 @@ to return true:wantsResponderID| |
|
|
|
9487
9065
|
returnFiber,
|
|
9488
9066
|
oldFiber,
|
|
9489
9067
|
newChildren[newIdx],
|
|
9490
|
-
lanes
|
|
9068
|
+
lanes,
|
|
9069
|
+
debugInfo
|
|
9491
9070
|
);
|
|
9492
9071
|
|
|
9493
9072
|
if (newFiber === null) {
|
|
@@ -9541,7 +9120,8 @@ to return true:wantsResponderID| |
|
|
|
9541
9120
|
var _newFiber = createChild(
|
|
9542
9121
|
returnFiber,
|
|
9543
9122
|
newChildren[newIdx],
|
|
9544
|
-
lanes
|
|
9123
|
+
lanes,
|
|
9124
|
+
debugInfo
|
|
9545
9125
|
);
|
|
9546
9126
|
|
|
9547
9127
|
if (_newFiber === null) {
|
|
@@ -9563,7 +9143,7 @@ to return true:wantsResponderID| |
|
|
|
9563
9143
|
return resultingFirstChild;
|
|
9564
9144
|
} // Add all children to a key map for quick lookups.
|
|
9565
9145
|
|
|
9566
|
-
var existingChildren = mapRemainingChildren(
|
|
9146
|
+
var existingChildren = mapRemainingChildren(oldFiber); // Keep scanning and use the map to restore deleted items as moves.
|
|
9567
9147
|
|
|
9568
9148
|
for (; newIdx < newChildren.length; newIdx++) {
|
|
9569
9149
|
var _newFiber2 = updateFromMap(
|
|
@@ -9571,7 +9151,8 @@ to return true:wantsResponderID| |
|
|
|
9571
9151
|
returnFiber,
|
|
9572
9152
|
newIdx,
|
|
9573
9153
|
newChildren[newIdx],
|
|
9574
|
-
lanes
|
|
9154
|
+
lanes,
|
|
9155
|
+
debugInfo
|
|
9575
9156
|
);
|
|
9576
9157
|
|
|
9577
9158
|
if (_newFiber2 !== null) {
|
|
@@ -9614,7 +9195,8 @@ to return true:wantsResponderID| |
|
|
|
9614
9195
|
returnFiber,
|
|
9615
9196
|
currentFirstChild,
|
|
9616
9197
|
newChildrenIterable,
|
|
9617
|
-
lanes
|
|
9198
|
+
lanes,
|
|
9199
|
+
debugInfo
|
|
9618
9200
|
) {
|
|
9619
9201
|
// This is the same implementation as reconcileChildrenArray(),
|
|
9620
9202
|
// but using the iterator instead.
|
|
@@ -9699,7 +9281,13 @@ to return true:wantsResponderID| |
|
|
|
9699
9281
|
nextOldFiber = oldFiber.sibling;
|
|
9700
9282
|
}
|
|
9701
9283
|
|
|
9702
|
-
var newFiber = updateSlot(
|
|
9284
|
+
var newFiber = updateSlot(
|
|
9285
|
+
returnFiber,
|
|
9286
|
+
oldFiber,
|
|
9287
|
+
step.value,
|
|
9288
|
+
lanes,
|
|
9289
|
+
debugInfo
|
|
9290
|
+
);
|
|
9703
9291
|
|
|
9704
9292
|
if (newFiber === null) {
|
|
9705
9293
|
// TODO: This breaks on empty slots like null children. That's
|
|
@@ -9749,7 +9337,12 @@ to return true:wantsResponderID| |
|
|
|
9749
9337
|
// If we don't have any more existing children we can choose a fast path
|
|
9750
9338
|
// since the rest will all be insertions.
|
|
9751
9339
|
for (; !step.done; newIdx++, step = newChildren.next()) {
|
|
9752
|
-
var _newFiber3 = createChild(
|
|
9340
|
+
var _newFiber3 = createChild(
|
|
9341
|
+
returnFiber,
|
|
9342
|
+
step.value,
|
|
9343
|
+
lanes,
|
|
9344
|
+
debugInfo
|
|
9345
|
+
);
|
|
9753
9346
|
|
|
9754
9347
|
if (_newFiber3 === null) {
|
|
9755
9348
|
continue;
|
|
@@ -9770,7 +9363,7 @@ to return true:wantsResponderID| |
|
|
|
9770
9363
|
return resultingFirstChild;
|
|
9771
9364
|
} // Add all children to a key map for quick lookups.
|
|
9772
9365
|
|
|
9773
|
-
var existingChildren = mapRemainingChildren(
|
|
9366
|
+
var existingChildren = mapRemainingChildren(oldFiber); // Keep scanning and use the map to restore deleted items as moves.
|
|
9774
9367
|
|
|
9775
9368
|
for (; !step.done; newIdx++, step = newChildren.next()) {
|
|
9776
9369
|
var _newFiber4 = updateFromMap(
|
|
@@ -9778,7 +9371,8 @@ to return true:wantsResponderID| |
|
|
|
9778
9371
|
returnFiber,
|
|
9779
9372
|
newIdx,
|
|
9780
9373
|
step.value,
|
|
9781
|
-
lanes
|
|
9374
|
+
lanes,
|
|
9375
|
+
debugInfo
|
|
9782
9376
|
);
|
|
9783
9377
|
|
|
9784
9378
|
if (_newFiber4 !== null) {
|
|
@@ -9845,7 +9439,8 @@ to return true:wantsResponderID| |
|
|
|
9845
9439
|
returnFiber,
|
|
9846
9440
|
currentFirstChild,
|
|
9847
9441
|
element,
|
|
9848
|
-
lanes
|
|
9442
|
+
lanes,
|
|
9443
|
+
debugInfo
|
|
9849
9444
|
) {
|
|
9850
9445
|
var key = element.key;
|
|
9851
9446
|
var child = currentFirstChild;
|
|
@@ -9864,6 +9459,7 @@ to return true:wantsResponderID| |
|
|
|
9864
9459
|
|
|
9865
9460
|
{
|
|
9866
9461
|
existing._debugOwner = element._owner;
|
|
9462
|
+
existing._debugInfo = debugInfo;
|
|
9867
9463
|
}
|
|
9868
9464
|
|
|
9869
9465
|
return existing;
|
|
@@ -9884,11 +9480,12 @@ to return true:wantsResponderID| |
|
|
|
9884
9480
|
|
|
9885
9481
|
var _existing = useFiber(child, element.props);
|
|
9886
9482
|
|
|
9887
|
-
|
|
9483
|
+
coerceRef(returnFiber, child, _existing, element);
|
|
9888
9484
|
_existing.return = returnFiber;
|
|
9889
9485
|
|
|
9890
9486
|
{
|
|
9891
9487
|
_existing._debugOwner = element._owner;
|
|
9488
|
+
_existing._debugInfo = debugInfo;
|
|
9892
9489
|
}
|
|
9893
9490
|
|
|
9894
9491
|
return _existing;
|
|
@@ -9912,6 +9509,11 @@ to return true:wantsResponderID| |
|
|
|
9912
9509
|
element.key
|
|
9913
9510
|
);
|
|
9914
9511
|
created.return = returnFiber;
|
|
9512
|
+
|
|
9513
|
+
{
|
|
9514
|
+
created._debugInfo = debugInfo;
|
|
9515
|
+
}
|
|
9516
|
+
|
|
9915
9517
|
return created;
|
|
9916
9518
|
} else {
|
|
9917
9519
|
var _created4 = createFiberFromElement(
|
|
@@ -9920,8 +9522,13 @@ to return true:wantsResponderID| |
|
|
|
9920
9522
|
lanes
|
|
9921
9523
|
);
|
|
9922
9524
|
|
|
9923
|
-
|
|
9525
|
+
coerceRef(returnFiber, currentFirstChild, _created4, element);
|
|
9924
9526
|
_created4.return = returnFiber;
|
|
9527
|
+
|
|
9528
|
+
{
|
|
9529
|
+
_created4._debugInfo = debugInfo;
|
|
9530
|
+
}
|
|
9531
|
+
|
|
9925
9532
|
return _created4;
|
|
9926
9533
|
}
|
|
9927
9534
|
}
|
|
@@ -9930,7 +9537,8 @@ to return true:wantsResponderID| |
|
|
|
9930
9537
|
returnFiber,
|
|
9931
9538
|
currentFirstChild,
|
|
9932
9539
|
portal,
|
|
9933
|
-
lanes
|
|
9540
|
+
lanes,
|
|
9541
|
+
debugInfo
|
|
9934
9542
|
) {
|
|
9935
9543
|
var key = portal.key;
|
|
9936
9544
|
var child = currentFirstChild;
|
|
@@ -9970,7 +9578,8 @@ to return true:wantsResponderID| |
|
|
|
9970
9578
|
returnFiber,
|
|
9971
9579
|
currentFirstChild,
|
|
9972
9580
|
newChild,
|
|
9973
|
-
lanes
|
|
9581
|
+
lanes,
|
|
9582
|
+
debugInfo
|
|
9974
9583
|
) {
|
|
9975
9584
|
// This function is not recursive.
|
|
9976
9585
|
// If the top level item is an array, we treat it as a set of children,
|
|
@@ -9998,7 +9607,8 @@ to return true:wantsResponderID| |
|
|
|
9998
9607
|
returnFiber,
|
|
9999
9608
|
currentFirstChild,
|
|
10000
9609
|
newChild,
|
|
10001
|
-
lanes
|
|
9610
|
+
lanes,
|
|
9611
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
10002
9612
|
)
|
|
10003
9613
|
);
|
|
10004
9614
|
|
|
@@ -10014,13 +9624,13 @@ to return true:wantsResponderID| |
|
|
|
10014
9624
|
|
|
10015
9625
|
case REACT_LAZY_TYPE:
|
|
10016
9626
|
var payload = newChild._payload;
|
|
10017
|
-
var init = newChild._init;
|
|
10018
|
-
|
|
10019
|
-
return reconcileChildFibers(
|
|
9627
|
+
var init = newChild._init;
|
|
9628
|
+
return reconcileChildFibersImpl(
|
|
10020
9629
|
returnFiber,
|
|
10021
9630
|
currentFirstChild,
|
|
10022
9631
|
init(payload),
|
|
10023
|
-
lanes
|
|
9632
|
+
lanes,
|
|
9633
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
10024
9634
|
);
|
|
10025
9635
|
}
|
|
10026
9636
|
|
|
@@ -10029,7 +9639,8 @@ to return true:wantsResponderID| |
|
|
|
10029
9639
|
returnFiber,
|
|
10030
9640
|
currentFirstChild,
|
|
10031
9641
|
newChild,
|
|
10032
|
-
lanes
|
|
9642
|
+
lanes,
|
|
9643
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
10033
9644
|
);
|
|
10034
9645
|
}
|
|
10035
9646
|
|
|
@@ -10038,7 +9649,8 @@ to return true:wantsResponderID| |
|
|
|
10038
9649
|
returnFiber,
|
|
10039
9650
|
currentFirstChild,
|
|
10040
9651
|
newChild,
|
|
10041
|
-
lanes
|
|
9652
|
+
lanes,
|
|
9653
|
+
mergeDebugInfo(debugInfo, newChild._debugInfo)
|
|
10042
9654
|
);
|
|
10043
9655
|
} // Usables are a valid React node type. When React encounters a Usable in
|
|
10044
9656
|
// a child position, it unwraps it using the same algorithm as `use`. For
|
|
@@ -10063,7 +9675,8 @@ to return true:wantsResponderID| |
|
|
|
10063
9675
|
returnFiber,
|
|
10064
9676
|
currentFirstChild,
|
|
10065
9677
|
unwrapThenable(thenable),
|
|
10066
|
-
lanes
|
|
9678
|
+
lanes,
|
|
9679
|
+
mergeDebugInfo(debugInfo, thenable._debugInfo)
|
|
10067
9680
|
);
|
|
10068
9681
|
}
|
|
10069
9682
|
|
|
@@ -10072,8 +9685,9 @@ to return true:wantsResponderID| |
|
|
|
10072
9685
|
return reconcileChildFibersImpl(
|
|
10073
9686
|
returnFiber,
|
|
10074
9687
|
currentFirstChild,
|
|
10075
|
-
|
|
10076
|
-
lanes
|
|
9688
|
+
readContextDuringReconciliation(returnFiber, context, lanes),
|
|
9689
|
+
lanes,
|
|
9690
|
+
debugInfo
|
|
10077
9691
|
);
|
|
10078
9692
|
}
|
|
10079
9693
|
|
|
@@ -10082,12 +9696,13 @@ to return true:wantsResponderID| |
|
|
|
10082
9696
|
|
|
10083
9697
|
if (
|
|
10084
9698
|
(typeof newChild === "string" && newChild !== "") ||
|
|
10085
|
-
typeof newChild === "number"
|
|
9699
|
+
typeof newChild === "number" ||
|
|
9700
|
+
enableBigIntSupport
|
|
10086
9701
|
) {
|
|
10087
9702
|
return placeSingleChild(
|
|
10088
9703
|
reconcileSingleTextNode(
|
|
10089
9704
|
returnFiber,
|
|
10090
|
-
currentFirstChild,
|
|
9705
|
+
currentFirstChild, // $FlowFixMe[unsafe-addition] Flow doesn't want us to use `+` operator with string and bigint
|
|
10091
9706
|
"" + newChild,
|
|
10092
9707
|
lanes
|
|
10093
9708
|
)
|
|
@@ -10096,7 +9711,11 @@ to return true:wantsResponderID| |
|
|
|
10096
9711
|
|
|
10097
9712
|
{
|
|
10098
9713
|
if (typeof newChild === "function") {
|
|
10099
|
-
warnOnFunctionType(returnFiber);
|
|
9714
|
+
warnOnFunctionType(returnFiber, newChild);
|
|
9715
|
+
}
|
|
9716
|
+
|
|
9717
|
+
if (typeof newChild === "symbol") {
|
|
9718
|
+
warnOnSymbolType(returnFiber, newChild);
|
|
10100
9719
|
}
|
|
10101
9720
|
} // Remaining cases are all treated as empty.
|
|
10102
9721
|
|
|
@@ -10116,7 +9735,8 @@ to return true:wantsResponderID| |
|
|
|
10116
9735
|
returnFiber,
|
|
10117
9736
|
currentFirstChild,
|
|
10118
9737
|
newChild,
|
|
10119
|
-
lanes
|
|
9738
|
+
lanes,
|
|
9739
|
+
null // debugInfo
|
|
10120
9740
|
);
|
|
10121
9741
|
thenableState$1 = null; // Don't bother to reset `thenableIndexCounter` to 0 because it always gets
|
|
10122
9742
|
// set at the beginning.
|
|
@@ -10552,7 +10172,7 @@ to return true:wantsResponderID| |
|
|
|
10552
10172
|
error(
|
|
10553
10173
|
"React has detected a change in the order of Hooks called by %s. " +
|
|
10554
10174
|
"This will lead to bugs and errors if not fixed. " +
|
|
10555
|
-
"For more information, read the Rules of Hooks: https://
|
|
10175
|
+
"For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" +
|
|
10556
10176
|
" Previous render Next render\n" +
|
|
10557
10177
|
" ------------------------------------------------------\n" +
|
|
10558
10178
|
"%s" +
|
|
@@ -10603,7 +10223,7 @@ to return true:wantsResponderID| |
|
|
|
10603
10223
|
"1. You might have mismatching versions of React and the renderer (such as React DOM)\n" +
|
|
10604
10224
|
"2. You might be breaking the Rules of Hooks\n" +
|
|
10605
10225
|
"3. You might have more than one copy of React in the same app\n" +
|
|
10606
|
-
"See https://
|
|
10226
|
+
"See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
10607
10227
|
);
|
|
10608
10228
|
}
|
|
10609
10229
|
|
|
@@ -12175,8 +11795,8 @@ to return true:wantsResponderID| |
|
|
|
12175
11795
|
}
|
|
12176
11796
|
|
|
12177
11797
|
function updateTransition() {
|
|
12178
|
-
var
|
|
12179
|
-
booleanOrThenable =
|
|
11798
|
+
var _updateState2 = updateState(),
|
|
11799
|
+
booleanOrThenable = _updateState2[0];
|
|
12180
11800
|
|
|
12181
11801
|
var hook = updateWorkInProgressHook();
|
|
12182
11802
|
var start = hook.memoizedState;
|
|
@@ -12435,7 +12055,7 @@ to return true:wantsResponderID| |
|
|
|
12435
12055
|
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " +
|
|
12436
12056
|
"You can only call Hooks at the top level of your React function. " +
|
|
12437
12057
|
"For more information, see " +
|
|
12438
|
-
"https://
|
|
12058
|
+
"https://react.dev/link/rules-of-hooks"
|
|
12439
12059
|
);
|
|
12440
12060
|
};
|
|
12441
12061
|
|
|
@@ -13464,7 +13084,6 @@ to return true:wantsResponderID| |
|
|
|
13464
13084
|
var didWarnAboutLegacyLifecyclesAndDerivedState;
|
|
13465
13085
|
var didWarnAboutUndefinedDerivedState;
|
|
13466
13086
|
var didWarnAboutDirectlyAssigningPropsToState;
|
|
13467
|
-
var didWarnAboutContextTypeAndContextTypes;
|
|
13468
13087
|
var didWarnAboutInvalidateContextType;
|
|
13469
13088
|
var didWarnOnInvalidCallback;
|
|
13470
13089
|
|
|
@@ -13475,7 +13094,6 @@ to return true:wantsResponderID| |
|
|
|
13475
13094
|
didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
|
|
13476
13095
|
didWarnAboutDirectlyAssigningPropsToState = new Set();
|
|
13477
13096
|
didWarnAboutUndefinedDerivedState = new Set();
|
|
13478
|
-
didWarnAboutContextTypeAndContextTypes = new Set();
|
|
13479
13097
|
didWarnAboutInvalidateContextType = new Set();
|
|
13480
13098
|
didWarnOnInvalidCallback = new Set(); // This is so gross but it's at least non-critical and can be removed if
|
|
13481
13099
|
// it causes problems. This is meant to give a nicer error message for
|
|
@@ -13499,21 +13117,20 @@ to return true:wantsResponderID| |
|
|
|
13499
13117
|
Object.freeze(fakeInternalInstance);
|
|
13500
13118
|
}
|
|
13501
13119
|
|
|
13502
|
-
function warnOnInvalidCallback(callback
|
|
13120
|
+
function warnOnInvalidCallback(callback) {
|
|
13503
13121
|
{
|
|
13504
13122
|
if (callback === null || typeof callback === "function") {
|
|
13505
13123
|
return;
|
|
13506
|
-
}
|
|
13124
|
+
} // eslint-disable-next-line react-internal/safe-string-coercion
|
|
13507
13125
|
|
|
13508
|
-
var key =
|
|
13126
|
+
var key = String(callback);
|
|
13509
13127
|
|
|
13510
13128
|
if (!didWarnOnInvalidCallback.has(key)) {
|
|
13511
13129
|
didWarnOnInvalidCallback.add(key);
|
|
13512
13130
|
|
|
13513
13131
|
error(
|
|
13514
|
-
"
|
|
13132
|
+
"Expected the last optional `callback` argument to be a " +
|
|
13515
13133
|
"function. Instead received: %s.",
|
|
13516
|
-
callerName,
|
|
13517
13134
|
callback
|
|
13518
13135
|
);
|
|
13519
13136
|
}
|
|
@@ -13587,7 +13204,7 @@ to return true:wantsResponderID| |
|
|
|
13587
13204
|
|
|
13588
13205
|
if (callback !== undefined && callback !== null) {
|
|
13589
13206
|
{
|
|
13590
|
-
warnOnInvalidCallback(callback
|
|
13207
|
+
warnOnInvalidCallback(callback);
|
|
13591
13208
|
}
|
|
13592
13209
|
|
|
13593
13210
|
update.callback = callback;
|
|
@@ -13609,7 +13226,7 @@ to return true:wantsResponderID| |
|
|
|
13609
13226
|
|
|
13610
13227
|
if (callback !== undefined && callback !== null) {
|
|
13611
13228
|
{
|
|
13612
|
-
warnOnInvalidCallback(callback
|
|
13229
|
+
warnOnInvalidCallback(callback);
|
|
13613
13230
|
}
|
|
13614
13231
|
|
|
13615
13232
|
update.callback = callback;
|
|
@@ -13631,7 +13248,7 @@ to return true:wantsResponderID| |
|
|
|
13631
13248
|
|
|
13632
13249
|
if (callback !== undefined && callback !== null) {
|
|
13633
13250
|
{
|
|
13634
|
-
warnOnInvalidCallback(callback
|
|
13251
|
+
warnOnInvalidCallback(callback);
|
|
13635
13252
|
}
|
|
13636
13253
|
|
|
13637
13254
|
update.callback = callback;
|
|
@@ -13711,13 +13328,13 @@ to return true:wantsResponderID| |
|
|
|
13711
13328
|
if (!renderPresent) {
|
|
13712
13329
|
if (ctor.prototype && typeof ctor.prototype.render === "function") {
|
|
13713
13330
|
error(
|
|
13714
|
-
"
|
|
13331
|
+
"No `render` method found on the %s " +
|
|
13715
13332
|
"instance: did you accidentally return an object from the constructor?",
|
|
13716
13333
|
name
|
|
13717
13334
|
);
|
|
13718
13335
|
} else {
|
|
13719
13336
|
error(
|
|
13720
|
-
"
|
|
13337
|
+
"No `render` method found on the %s " +
|
|
13721
13338
|
"instance: you may have forgotten to define `render`.",
|
|
13722
13339
|
name
|
|
13723
13340
|
);
|
|
@@ -13766,24 +13383,18 @@ to return true:wantsResponderID| |
|
|
|
13766
13383
|
}
|
|
13767
13384
|
|
|
13768
13385
|
{
|
|
13769
|
-
if (
|
|
13386
|
+
if (ctor.childContextTypes) {
|
|
13770
13387
|
error(
|
|
13771
|
-
"
|
|
13772
|
-
"
|
|
13388
|
+
"%s uses the legacy childContextTypes API which is no longer supported. " +
|
|
13389
|
+
"Use React.createContext() instead.",
|
|
13773
13390
|
name
|
|
13774
13391
|
);
|
|
13775
13392
|
}
|
|
13776
13393
|
|
|
13777
|
-
if (
|
|
13778
|
-
ctor.contextType &&
|
|
13779
|
-
ctor.contextTypes &&
|
|
13780
|
-
!didWarnAboutContextTypeAndContextTypes.has(ctor)
|
|
13781
|
-
) {
|
|
13782
|
-
didWarnAboutContextTypeAndContextTypes.add(ctor);
|
|
13783
|
-
|
|
13394
|
+
if (ctor.contextTypes) {
|
|
13784
13395
|
error(
|
|
13785
|
-
"%s
|
|
13786
|
-
"
|
|
13396
|
+
"%s uses the legacy contextTypes API which is no longer supported. " +
|
|
13397
|
+
"Use React.createContext() with static contextType instead.",
|
|
13787
13398
|
name
|
|
13788
13399
|
);
|
|
13789
13400
|
}
|
|
@@ -13852,9 +13463,8 @@ to return true:wantsResponderID| |
|
|
|
13852
13463
|
|
|
13853
13464
|
if (instance.props !== undefined && hasMutatedProps) {
|
|
13854
13465
|
error(
|
|
13855
|
-
"
|
|
13466
|
+
"When calling super() in `%s`, make sure to pass " +
|
|
13856
13467
|
"up the same props that your component's constructor was passed.",
|
|
13857
|
-
name,
|
|
13858
13468
|
name
|
|
13859
13469
|
);
|
|
13860
13470
|
}
|
|
@@ -13937,8 +13547,6 @@ to return true:wantsResponderID| |
|
|
|
13937
13547
|
}
|
|
13938
13548
|
|
|
13939
13549
|
function constructClassInstance(workInProgress, ctor, props) {
|
|
13940
|
-
var isLegacyContextConsumer = false;
|
|
13941
|
-
var unmaskedContext = emptyContextObject;
|
|
13942
13550
|
var context = emptyContextObject;
|
|
13943
13551
|
var contextType = ctor.contextType;
|
|
13944
13552
|
|
|
@@ -13947,8 +13555,7 @@ to return true:wantsResponderID| |
|
|
|
13947
13555
|
var isValid = // Allow null for conditional declaration
|
|
13948
13556
|
contextType === null ||
|
|
13949
13557
|
(contextType !== undefined &&
|
|
13950
|
-
contextType.$$typeof === REACT_CONTEXT_TYPE
|
|
13951
|
-
contextType._context === undefined); // Not a <Context.Consumer>
|
|
13558
|
+
contextType.$$typeof === REACT_CONTEXT_TYPE);
|
|
13952
13559
|
|
|
13953
13560
|
if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
|
|
13954
13561
|
didWarnAboutInvalidateContextType.add(ctor);
|
|
@@ -13962,11 +13569,7 @@ to return true:wantsResponderID| |
|
|
|
13962
13569
|
"try moving the createContext() call to a separate file.";
|
|
13963
13570
|
} else if (typeof contextType !== "object") {
|
|
13964
13571
|
addendum = " However, it is set to a " + typeof contextType + ".";
|
|
13965
|
-
} else if (contextType.$$typeof ===
|
|
13966
|
-
addendum =
|
|
13967
|
-
" Did you accidentally pass the Context.Provider instead?";
|
|
13968
|
-
} else if (contextType._context !== undefined) {
|
|
13969
|
-
// <Context.Consumer>
|
|
13572
|
+
} else if (contextType.$$typeof === REACT_CONSUMER_TYPE) {
|
|
13970
13573
|
addendum =
|
|
13971
13574
|
" Did you accidentally pass the Context.Consumer instead?";
|
|
13972
13575
|
} else {
|
|
@@ -13988,14 +13591,6 @@ to return true:wantsResponderID| |
|
|
|
13988
13591
|
|
|
13989
13592
|
if (typeof contextType === "object" && contextType !== null) {
|
|
13990
13593
|
context = readContext(contextType);
|
|
13991
|
-
} else {
|
|
13992
|
-
unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
|
|
13993
|
-
var contextTypes = ctor.contextTypes;
|
|
13994
|
-
isLegacyContextConsumer =
|
|
13995
|
-
contextTypes !== null && contextTypes !== undefined;
|
|
13996
|
-
context = isLegacyContextConsumer
|
|
13997
|
-
? getMaskedContext(workInProgress, unmaskedContext)
|
|
13998
|
-
: emptyContextObject;
|
|
13999
13594
|
}
|
|
14000
13595
|
|
|
14001
13596
|
var instance = new ctor(props, context); // Instantiate twice to help detect side-effects.
|
|
@@ -14103,7 +13698,7 @@ to return true:wantsResponderID| |
|
|
|
14103
13698
|
"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" +
|
|
14104
13699
|
"%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" +
|
|
14105
13700
|
"The above lifecycles should be removed. Learn more about this warning here:\n" +
|
|
14106
|
-
"https://
|
|
13701
|
+
"https://react.dev/link/unsafe-component-lifecycles",
|
|
14107
13702
|
_componentName,
|
|
14108
13703
|
newApiName,
|
|
14109
13704
|
foundWillMountName !== null ? "\n " + foundWillMountName : "",
|
|
@@ -14115,12 +13710,7 @@ to return true:wantsResponderID| |
|
|
|
14115
13710
|
}
|
|
14116
13711
|
}
|
|
14117
13712
|
}
|
|
14118
|
-
} // Cache unmasked context so we can avoid recreating masked context unless necessary.
|
|
14119
|
-
// ReactFiberContext usually updates this cache but can't for newly-created instances.
|
|
14120
|
-
|
|
14121
|
-
if (isLegacyContextConsumer) {
|
|
14122
|
-
cacheContext(workInProgress, unmaskedContext, context);
|
|
14123
|
-
}
|
|
13713
|
+
} // Cache unmasked context so we can avoid recreating masked context unless necessary.
|
|
14124
13714
|
|
|
14125
13715
|
return instance;
|
|
14126
13716
|
}
|
|
@@ -14210,8 +13800,7 @@ to return true:wantsResponderID| |
|
|
|
14210
13800
|
if (typeof contextType === "object" && contextType !== null) {
|
|
14211
13801
|
instance.context = readContext(contextType);
|
|
14212
13802
|
} else {
|
|
14213
|
-
|
|
14214
|
-
instance.context = getMaskedContext(workInProgress, unmaskedContext);
|
|
13803
|
+
instance.context = emptyContextObject;
|
|
14215
13804
|
}
|
|
14216
13805
|
|
|
14217
13806
|
{
|
|
@@ -14295,16 +13884,6 @@ to return true:wantsResponderID| |
|
|
|
14295
13884
|
|
|
14296
13885
|
if (typeof contextType === "object" && contextType !== null) {
|
|
14297
13886
|
nextContext = readContext(contextType);
|
|
14298
|
-
} else {
|
|
14299
|
-
var nextLegacyUnmaskedContext = getUnmaskedContext(
|
|
14300
|
-
workInProgress,
|
|
14301
|
-
ctor,
|
|
14302
|
-
true
|
|
14303
|
-
);
|
|
14304
|
-
nextContext = getMaskedContext(
|
|
14305
|
-
workInProgress,
|
|
14306
|
-
nextLegacyUnmaskedContext
|
|
14307
|
-
);
|
|
14308
13887
|
}
|
|
14309
13888
|
|
|
14310
13889
|
var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
|
|
@@ -14448,13 +14027,6 @@ to return true:wantsResponderID| |
|
|
|
14448
14027
|
|
|
14449
14028
|
if (typeof contextType === "object" && contextType !== null) {
|
|
14450
14029
|
nextContext = readContext(contextType);
|
|
14451
|
-
} else {
|
|
14452
|
-
var nextUnmaskedContext = getUnmaskedContext(
|
|
14453
|
-
workInProgress,
|
|
14454
|
-
ctor,
|
|
14455
|
-
true
|
|
14456
|
-
);
|
|
14457
|
-
nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
|
|
14458
14030
|
}
|
|
14459
14031
|
|
|
14460
14032
|
var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
|
|
@@ -14608,17 +14180,37 @@ to return true:wantsResponderID| |
|
|
|
14608
14180
|
return shouldUpdate;
|
|
14609
14181
|
}
|
|
14610
14182
|
|
|
14183
|
+
var CapturedStacks = new WeakMap();
|
|
14611
14184
|
function createCapturedValueAtFiber(value, source) {
|
|
14612
14185
|
// If the value is an error, call this function immediately after it is thrown
|
|
14613
14186
|
// so the stack is accurate.
|
|
14187
|
+
var stack;
|
|
14188
|
+
|
|
14189
|
+
if (typeof value === "object" && value !== null) {
|
|
14190
|
+
var capturedStack = CapturedStacks.get(value);
|
|
14191
|
+
|
|
14192
|
+
if (typeof capturedStack === "string") {
|
|
14193
|
+
stack = capturedStack;
|
|
14194
|
+
} else {
|
|
14195
|
+
stack = getStackByFiberInDevAndProd(source);
|
|
14196
|
+
CapturedStacks.set(value, stack);
|
|
14197
|
+
}
|
|
14198
|
+
} else {
|
|
14199
|
+
stack = getStackByFiberInDevAndProd(source);
|
|
14200
|
+
}
|
|
14201
|
+
|
|
14614
14202
|
return {
|
|
14615
14203
|
value: value,
|
|
14616
14204
|
source: source,
|
|
14617
|
-
stack:
|
|
14205
|
+
stack: stack,
|
|
14618
14206
|
digest: null
|
|
14619
14207
|
};
|
|
14620
14208
|
}
|
|
14621
|
-
function
|
|
14209
|
+
function createCapturedValueFromError(value, digest, stack) {
|
|
14210
|
+
if (typeof stack === "string") {
|
|
14211
|
+
CapturedStacks.set(value, stack);
|
|
14212
|
+
}
|
|
14213
|
+
|
|
14622
14214
|
return {
|
|
14623
14215
|
value: value,
|
|
14624
14216
|
source: null,
|
|
@@ -14664,25 +14256,8 @@ to return true:wantsResponderID| |
|
|
|
14664
14256
|
if (true) {
|
|
14665
14257
|
var source = errorInfo.source;
|
|
14666
14258
|
var stack = errorInfo.stack;
|
|
14667
|
-
var componentStack = stack !== null ? stack : ""; //
|
|
14668
|
-
//
|
|
14669
|
-
// We record this information as an expando on the error.
|
|
14670
|
-
|
|
14671
|
-
if (error != null && error._suppressLogging) {
|
|
14672
|
-
if (boundary.tag === ClassComponent) {
|
|
14673
|
-
// The error is recoverable and was silenced.
|
|
14674
|
-
// Ignore it and don't print the stack addendum.
|
|
14675
|
-
// This is handy for testing error boundaries without noise.
|
|
14676
|
-
return;
|
|
14677
|
-
} // The error is fatal. Since the silencing might have
|
|
14678
|
-
// been accidental, we'll surface it anyway.
|
|
14679
|
-
// However, the browser would have silenced the original error
|
|
14680
|
-
// so we'll print it first, and then print the stack addendum.
|
|
14681
|
-
|
|
14682
|
-
console["error"](error); // Don't transform to our wrapper
|
|
14683
|
-
// For a more detailed description of this block, see:
|
|
14684
|
-
// https://github.com/facebook/react/pull/13384
|
|
14685
|
-
}
|
|
14259
|
+
var componentStack = stack !== null ? stack : ""; // TODO: There's no longer a way to silence these warnings e.g. for tests.
|
|
14260
|
+
// See https://github.com/facebook/react/pull/13384
|
|
14686
14261
|
|
|
14687
14262
|
var componentName = source ? getComponentNameFromFiber(source) : null;
|
|
14688
14263
|
var componentNameMessage = componentName
|
|
@@ -14695,7 +14270,7 @@ to return true:wantsResponderID| |
|
|
|
14695
14270
|
if (boundary.tag === HostRoot) {
|
|
14696
14271
|
errorBoundaryMessage =
|
|
14697
14272
|
"Consider adding an error boundary to your tree to customize error handling behavior.\n" +
|
|
14698
|
-
"Visit https://
|
|
14273
|
+
"Visit https://react.dev/link/error-boundaries to learn more about error boundaries.";
|
|
14699
14274
|
} else {
|
|
14700
14275
|
var errorBoundaryName =
|
|
14701
14276
|
getComponentNameFromFiber(boundary) || "Anonymous";
|
|
@@ -14704,19 +14279,17 @@ to return true:wantsResponderID| |
|
|
|
14704
14279
|
("using the error boundary you provided, " +
|
|
14705
14280
|
errorBoundaryName +
|
|
14706
14281
|
".");
|
|
14707
|
-
}
|
|
14708
|
-
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
|
|
14712
|
-
|
|
14713
|
-
|
|
14714
|
-
|
|
14715
|
-
|
|
14716
|
-
|
|
14717
|
-
|
|
14718
|
-
|
|
14719
|
-
console["error"](combinedMessage); // Don't transform to our wrapper
|
|
14282
|
+
} // In development, we provide our own message which includes the component stack
|
|
14283
|
+
// in addition to the error.
|
|
14284
|
+
|
|
14285
|
+
console["error"](
|
|
14286
|
+
// Don't transform to our wrapper
|
|
14287
|
+
"%o\n\n%s\n%s\n\n%s",
|
|
14288
|
+
error,
|
|
14289
|
+
componentNameMessage,
|
|
14290
|
+
componentStack,
|
|
14291
|
+
errorBoundaryMessage
|
|
14292
|
+
);
|
|
14720
14293
|
}
|
|
14721
14294
|
} catch (e) {
|
|
14722
14295
|
// This method must not throw, or React internal state will get messed up.
|
|
@@ -15307,25 +14880,13 @@ to return true:wantsResponderID| |
|
|
|
15307
14880
|
// TODO: current can be non-null here even if the component
|
|
15308
14881
|
// hasn't yet mounted. This happens after the first render suspends.
|
|
15309
14882
|
// We'll need to figure out if this is fine or can cause issues.
|
|
15310
|
-
{
|
|
15311
|
-
if (workInProgress.type !== workInProgress.elementType) {
|
|
15312
|
-
// Lazy component props can't be validated in createElement
|
|
15313
|
-
// because they're only guaranteed to be resolved here.
|
|
15314
|
-
var innerPropTypes = Component.propTypes;
|
|
15315
|
-
|
|
15316
|
-
if (innerPropTypes) {
|
|
15317
|
-
checkPropTypes(
|
|
15318
|
-
innerPropTypes,
|
|
15319
|
-
nextProps, // Resolved props
|
|
15320
|
-
"prop",
|
|
15321
|
-
getComponentNameFromType(Component)
|
|
15322
|
-
);
|
|
15323
|
-
}
|
|
15324
|
-
}
|
|
15325
|
-
}
|
|
15326
|
-
|
|
15327
14883
|
var render = Component.render;
|
|
15328
|
-
var ref = workInProgress.ref;
|
|
14884
|
+
var ref = workInProgress.ref;
|
|
14885
|
+
var propsWithoutRef;
|
|
14886
|
+
|
|
14887
|
+
{
|
|
14888
|
+
propsWithoutRef = nextProps;
|
|
14889
|
+
} // The rest is a fork of updateFunctionComponent
|
|
15329
14890
|
|
|
15330
14891
|
var nextChildren;
|
|
15331
14892
|
prepareToReadContext(workInProgress, renderLanes);
|
|
@@ -15337,7 +14898,7 @@ to return true:wantsResponderID| |
|
|
|
15337
14898
|
current,
|
|
15338
14899
|
workInProgress,
|
|
15339
14900
|
render,
|
|
15340
|
-
|
|
14901
|
+
propsWithoutRef,
|
|
15341
14902
|
ref,
|
|
15342
14903
|
renderLanes
|
|
15343
14904
|
);
|
|
@@ -15398,19 +14959,6 @@ to return true:wantsResponderID| |
|
|
|
15398
14959
|
}
|
|
15399
14960
|
|
|
15400
14961
|
{
|
|
15401
|
-
var innerPropTypes = type.propTypes;
|
|
15402
|
-
|
|
15403
|
-
if (innerPropTypes) {
|
|
15404
|
-
// Inner memo component props aren't currently validated in createElement.
|
|
15405
|
-
// We could move it there, but we'd still need this for lazy code path.
|
|
15406
|
-
checkPropTypes(
|
|
15407
|
-
innerPropTypes,
|
|
15408
|
-
nextProps, // Resolved props
|
|
15409
|
-
"prop",
|
|
15410
|
-
getComponentNameFromType(type)
|
|
15411
|
-
);
|
|
15412
|
-
}
|
|
15413
|
-
|
|
15414
14962
|
if (Component.defaultProps !== undefined) {
|
|
15415
14963
|
var componentName = getComponentNameFromType(type) || "Unknown";
|
|
15416
14964
|
|
|
@@ -15440,22 +14988,6 @@ to return true:wantsResponderID| |
|
|
|
15440
14988
|
return child;
|
|
15441
14989
|
}
|
|
15442
14990
|
|
|
15443
|
-
{
|
|
15444
|
-
var _type = Component.type;
|
|
15445
|
-
var _innerPropTypes = _type.propTypes;
|
|
15446
|
-
|
|
15447
|
-
if (_innerPropTypes) {
|
|
15448
|
-
// Inner memo component props aren't currently validated in createElement.
|
|
15449
|
-
// We could move it there, but we'd still need this for lazy code path.
|
|
15450
|
-
checkPropTypes(
|
|
15451
|
-
_innerPropTypes,
|
|
15452
|
-
nextProps, // Resolved props
|
|
15453
|
-
"prop",
|
|
15454
|
-
getComponentNameFromType(_type)
|
|
15455
|
-
);
|
|
15456
|
-
}
|
|
15457
|
-
}
|
|
15458
|
-
|
|
15459
14991
|
var currentChild = current.child; // This is always exactly one child
|
|
15460
14992
|
|
|
15461
14993
|
var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(
|
|
@@ -15501,40 +15033,6 @@ to return true:wantsResponderID| |
|
|
|
15501
15033
|
// TODO: current can be non-null here even if the component
|
|
15502
15034
|
// hasn't yet mounted. This happens when the inner render suspends.
|
|
15503
15035
|
// We'll need to figure out if this is fine or can cause issues.
|
|
15504
|
-
{
|
|
15505
|
-
if (workInProgress.type !== workInProgress.elementType) {
|
|
15506
|
-
// Lazy component props can't be validated in createElement
|
|
15507
|
-
// because they're only guaranteed to be resolved here.
|
|
15508
|
-
var outerMemoType = workInProgress.elementType;
|
|
15509
|
-
|
|
15510
|
-
if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
|
|
15511
|
-
// We warn when you define propTypes on lazy()
|
|
15512
|
-
// so let's just skip over it to find memo() outer wrapper.
|
|
15513
|
-
// Inner props for memo are validated later.
|
|
15514
|
-
var lazyComponent = outerMemoType;
|
|
15515
|
-
var payload = lazyComponent._payload;
|
|
15516
|
-
var init = lazyComponent._init;
|
|
15517
|
-
|
|
15518
|
-
try {
|
|
15519
|
-
outerMemoType = init(payload);
|
|
15520
|
-
} catch (x) {
|
|
15521
|
-
outerMemoType = null;
|
|
15522
|
-
} // Inner propTypes will be validated in the function component path.
|
|
15523
|
-
|
|
15524
|
-
var outerPropTypes = outerMemoType && outerMemoType.propTypes;
|
|
15525
|
-
|
|
15526
|
-
if (outerPropTypes) {
|
|
15527
|
-
checkPropTypes(
|
|
15528
|
-
outerPropTypes,
|
|
15529
|
-
nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
|
|
15530
|
-
"prop",
|
|
15531
|
-
getComponentNameFromType(outerMemoType)
|
|
15532
|
-
);
|
|
15533
|
-
}
|
|
15534
|
-
}
|
|
15535
|
-
}
|
|
15536
|
-
}
|
|
15537
|
-
|
|
15538
15036
|
if (current !== null) {
|
|
15539
15037
|
var prevProps = current.memoizedProps;
|
|
15540
15038
|
|
|
@@ -15607,7 +15105,7 @@ to return true:wantsResponderID| |
|
|
|
15607
15105
|
var nextIsDetached =
|
|
15608
15106
|
(workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0;
|
|
15609
15107
|
var prevState = current !== null ? current.memoizedState : null;
|
|
15610
|
-
markRef
|
|
15108
|
+
markRef(current, workInProgress);
|
|
15611
15109
|
|
|
15612
15110
|
if (nextProps.mode === "hidden" || enableLegacyHidden || nextIsDetached) {
|
|
15613
15111
|
// Rendering a hidden tree.
|
|
@@ -15772,16 +15270,26 @@ to return true:wantsResponderID| |
|
|
|
15772
15270
|
return workInProgress.child;
|
|
15773
15271
|
}
|
|
15774
15272
|
|
|
15775
|
-
function markRef
|
|
15273
|
+
function markRef(current, workInProgress) {
|
|
15274
|
+
// TODO: Check props.ref instead of fiber.ref when enableRefAsProp is on.
|
|
15776
15275
|
var ref = workInProgress.ref;
|
|
15777
15276
|
|
|
15778
|
-
if (
|
|
15779
|
-
(current
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15784
|
-
|
|
15277
|
+
if (ref === null) {
|
|
15278
|
+
if (current !== null && current.ref !== null) {
|
|
15279
|
+
// Schedule a Ref effect
|
|
15280
|
+
workInProgress.flags |= Ref | RefStatic;
|
|
15281
|
+
}
|
|
15282
|
+
} else {
|
|
15283
|
+
if (typeof ref !== "function" && typeof ref !== "object") {
|
|
15284
|
+
throw new Error(
|
|
15285
|
+
"Expected ref to be a function, an object returned by React.createRef(), or undefined/null."
|
|
15286
|
+
);
|
|
15287
|
+
}
|
|
15288
|
+
|
|
15289
|
+
if (current === null || current.ref !== ref) {
|
|
15290
|
+
// Schedule a Ref effect
|
|
15291
|
+
workInProgress.flags |= Ref | RefStatic;
|
|
15292
|
+
}
|
|
15785
15293
|
}
|
|
15786
15294
|
}
|
|
15787
15295
|
|
|
@@ -15792,34 +15300,8 @@ to return true:wantsResponderID| |
|
|
|
15792
15300
|
nextProps,
|
|
15793
15301
|
renderLanes
|
|
15794
15302
|
) {
|
|
15795
|
-
{
|
|
15796
|
-
if (workInProgress.type !== workInProgress.elementType) {
|
|
15797
|
-
// Lazy component props can't be validated in createElement
|
|
15798
|
-
// because they're only guaranteed to be resolved here.
|
|
15799
|
-
var innerPropTypes = Component.propTypes;
|
|
15800
|
-
|
|
15801
|
-
if (innerPropTypes) {
|
|
15802
|
-
checkPropTypes(
|
|
15803
|
-
innerPropTypes,
|
|
15804
|
-
nextProps, // Resolved props
|
|
15805
|
-
"prop",
|
|
15806
|
-
getComponentNameFromType(Component)
|
|
15807
|
-
);
|
|
15808
|
-
}
|
|
15809
|
-
}
|
|
15810
|
-
}
|
|
15811
|
-
|
|
15812
15303
|
var context;
|
|
15813
15304
|
|
|
15814
|
-
{
|
|
15815
|
-
var unmaskedContext = getUnmaskedContext(
|
|
15816
|
-
workInProgress,
|
|
15817
|
-
Component,
|
|
15818
|
-
true
|
|
15819
|
-
);
|
|
15820
|
-
context = getMaskedContext(workInProgress, unmaskedContext);
|
|
15821
|
-
}
|
|
15822
|
-
|
|
15823
15305
|
var nextChildren;
|
|
15824
15306
|
prepareToReadContext(workInProgress, renderLanes);
|
|
15825
15307
|
|
|
@@ -15929,30 +15411,14 @@ to return true:wantsResponderID| |
|
|
|
15929
15411
|
break;
|
|
15930
15412
|
}
|
|
15931
15413
|
}
|
|
15932
|
-
|
|
15933
|
-
if (workInProgress.type !== workInProgress.elementType) {
|
|
15934
|
-
// Lazy component props can't be validated in createElement
|
|
15935
|
-
// because they're only guaranteed to be resolved here.
|
|
15936
|
-
var innerPropTypes = Component.propTypes;
|
|
15937
|
-
|
|
15938
|
-
if (innerPropTypes) {
|
|
15939
|
-
checkPropTypes(
|
|
15940
|
-
innerPropTypes,
|
|
15941
|
-
nextProps, // Resolved props
|
|
15942
|
-
"prop",
|
|
15943
|
-
getComponentNameFromType(Component)
|
|
15944
|
-
);
|
|
15945
|
-
}
|
|
15946
|
-
}
|
|
15947
15414
|
} // Push context providers early to prevent context stack mismatches.
|
|
15948
15415
|
// During mounting we don't know the child context yet as the instance doesn't exist.
|
|
15949
15416
|
// We will invalidate the child context in finishClassComponent() right after rendering.
|
|
15950
15417
|
|
|
15951
15418
|
var hasContext;
|
|
15952
15419
|
|
|
15953
|
-
if (isContextProvider(
|
|
15420
|
+
if (isContextProvider()) {
|
|
15954
15421
|
hasContext = true;
|
|
15955
|
-
pushContextProvider(workInProgress);
|
|
15956
15422
|
} else {
|
|
15957
15423
|
hasContext = false;
|
|
15958
15424
|
}
|
|
@@ -16022,15 +15488,10 @@ to return true:wantsResponderID| |
|
|
|
16022
15488
|
renderLanes
|
|
16023
15489
|
) {
|
|
16024
15490
|
// Refs should update even if shouldComponentUpdate returns false
|
|
16025
|
-
markRef
|
|
15491
|
+
markRef(current, workInProgress);
|
|
16026
15492
|
var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1;
|
|
16027
15493
|
|
|
16028
15494
|
if (!shouldUpdate && !didCaptureError) {
|
|
16029
|
-
// Context providers should defer to sCU for rendering
|
|
16030
|
-
if (hasContext) {
|
|
16031
|
-
invalidateContextProvider(workInProgress, Component, false);
|
|
16032
|
-
}
|
|
16033
|
-
|
|
16034
15495
|
return bailoutOnAlreadyFinishedWork(
|
|
16035
15496
|
current,
|
|
16036
15497
|
workInProgress,
|
|
@@ -16096,27 +15557,12 @@ to return true:wantsResponderID| |
|
|
|
16096
15557
|
|
|
16097
15558
|
workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.
|
|
16098
15559
|
|
|
16099
|
-
if (hasContext) {
|
|
16100
|
-
invalidateContextProvider(workInProgress, Component, true);
|
|
16101
|
-
}
|
|
16102
|
-
|
|
16103
15560
|
return workInProgress.child;
|
|
16104
15561
|
}
|
|
16105
15562
|
|
|
16106
15563
|
function pushHostRootContext(workInProgress) {
|
|
16107
15564
|
var root = workInProgress.stateNode;
|
|
16108
15565
|
|
|
16109
|
-
if (root.pendingContext) {
|
|
16110
|
-
pushTopLevelContextObject(
|
|
16111
|
-
workInProgress,
|
|
16112
|
-
root.pendingContext,
|
|
16113
|
-
root.pendingContext !== root.context
|
|
16114
|
-
);
|
|
16115
|
-
} else if (root.context) {
|
|
16116
|
-
// Should always be set
|
|
16117
|
-
pushTopLevelContextObject(workInProgress, root.context, false);
|
|
16118
|
-
}
|
|
16119
|
-
|
|
16120
15566
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
16121
15567
|
}
|
|
16122
15568
|
|
|
@@ -16168,7 +15614,7 @@ to return true:wantsResponderID| |
|
|
|
16168
15614
|
workInProgress.flags |= ContentReset;
|
|
16169
15615
|
}
|
|
16170
15616
|
|
|
16171
|
-
markRef
|
|
15617
|
+
markRef(current, workInProgress);
|
|
16172
15618
|
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
16173
15619
|
return workInProgress.child;
|
|
16174
15620
|
}
|
|
@@ -16249,21 +15695,6 @@ to return true:wantsResponderID| |
|
|
|
16249
15695
|
}
|
|
16250
15696
|
|
|
16251
15697
|
case MemoComponent: {
|
|
16252
|
-
{
|
|
16253
|
-
if (workInProgress.type !== workInProgress.elementType) {
|
|
16254
|
-
var outerPropTypes = Component.propTypes;
|
|
16255
|
-
|
|
16256
|
-
if (outerPropTypes) {
|
|
16257
|
-
checkPropTypes(
|
|
16258
|
-
outerPropTypes,
|
|
16259
|
-
resolvedProps, // Resolved for outer only
|
|
16260
|
-
"prop",
|
|
16261
|
-
getComponentNameFromType(Component)
|
|
16262
|
-
);
|
|
16263
|
-
}
|
|
16264
|
-
}
|
|
16265
|
-
}
|
|
16266
|
-
|
|
16267
15698
|
child = updateMemoComponent(
|
|
16268
15699
|
null,
|
|
16269
15700
|
workInProgress,
|
|
@@ -16313,9 +15744,8 @@ to return true:wantsResponderID| |
|
|
|
16313
15744
|
|
|
16314
15745
|
var hasContext;
|
|
16315
15746
|
|
|
16316
|
-
if (isContextProvider(
|
|
15747
|
+
if (isContextProvider()) {
|
|
16317
15748
|
hasContext = true;
|
|
16318
|
-
pushContextProvider(workInProgress);
|
|
16319
15749
|
} else {
|
|
16320
15750
|
hasContext = false;
|
|
16321
15751
|
}
|
|
@@ -16343,15 +15773,6 @@ to return true:wantsResponderID| |
|
|
|
16343
15773
|
var props = workInProgress.pendingProps;
|
|
16344
15774
|
var context;
|
|
16345
15775
|
|
|
16346
|
-
{
|
|
16347
|
-
var unmaskedContext = getUnmaskedContext(
|
|
16348
|
-
workInProgress,
|
|
16349
|
-
Component,
|
|
16350
|
-
false
|
|
16351
|
-
);
|
|
16352
|
-
context = getMaskedContext(workInProgress, unmaskedContext);
|
|
16353
|
-
}
|
|
16354
|
-
|
|
16355
15776
|
prepareToReadContext(workInProgress, renderLanes);
|
|
16356
15777
|
var value;
|
|
16357
15778
|
|
|
@@ -16461,9 +15882,8 @@ to return true:wantsResponderID| |
|
|
|
16461
15882
|
|
|
16462
15883
|
var hasContext = false;
|
|
16463
15884
|
|
|
16464
|
-
if (isContextProvider(
|
|
15885
|
+
if (isContextProvider()) {
|
|
16465
15886
|
hasContext = true;
|
|
16466
|
-
pushContextProvider(workInProgress);
|
|
16467
15887
|
} else {
|
|
16468
15888
|
hasContext = false;
|
|
16469
15889
|
}
|
|
@@ -16487,6 +15907,16 @@ to return true:wantsResponderID| |
|
|
|
16487
15907
|
// Proceed under the assumption that this is a function component
|
|
16488
15908
|
workInProgress.tag = FunctionComponent;
|
|
16489
15909
|
|
|
15910
|
+
{
|
|
15911
|
+
if (Component.contextTypes) {
|
|
15912
|
+
error(
|
|
15913
|
+
"%s uses the legacy contextTypes API which is no longer supported. " +
|
|
15914
|
+
"Use React.createContext() with React.useContext() instead.",
|
|
15915
|
+
getComponentNameFromType(Component) || "Unknown"
|
|
15916
|
+
);
|
|
15917
|
+
}
|
|
15918
|
+
}
|
|
15919
|
+
|
|
16490
15920
|
reconcileChildren(null, workInProgress, value, renderLanes);
|
|
16491
15921
|
|
|
16492
15922
|
{
|
|
@@ -16502,7 +15932,8 @@ to return true:wantsResponderID| |
|
|
|
16502
15932
|
if (Component) {
|
|
16503
15933
|
if (Component.childContextTypes) {
|
|
16504
15934
|
error(
|
|
16505
|
-
"
|
|
15935
|
+
"childContextTypes cannot be defined on a function component.\n" +
|
|
15936
|
+
" %s.childContextTypes = ...",
|
|
16506
15937
|
Component.displayName || Component.name || "Component"
|
|
16507
15938
|
);
|
|
16508
15939
|
}
|
|
@@ -17136,7 +16567,7 @@ to return true:wantsResponderID| |
|
|
|
17136
16567
|
}
|
|
17137
16568
|
|
|
17138
16569
|
error.digest = digest;
|
|
17139
|
-
capturedValue =
|
|
16570
|
+
capturedValue = createCapturedValueFromError(error, digest, stack);
|
|
17140
16571
|
}
|
|
17141
16572
|
|
|
17142
16573
|
return retrySuspenseComponentWithoutHydrating(
|
|
@@ -17246,7 +16677,7 @@ to return true:wantsResponderID| |
|
|
|
17246
16677
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
17247
16678
|
workInProgress.flags &= ~ForceClientRender;
|
|
17248
16679
|
|
|
17249
|
-
var _capturedValue =
|
|
16680
|
+
var _capturedValue = createCapturedValueFromError(
|
|
17250
16681
|
new Error(
|
|
17251
16682
|
"There was an error while hydrating this Suspense boundary. " +
|
|
17252
16683
|
"Switched to client rendering."
|
|
@@ -17735,8 +17166,12 @@ to return true:wantsResponderID| |
|
|
|
17735
17166
|
var hasWarnedAboutUsingNoValuePropOnContextProvider = false;
|
|
17736
17167
|
|
|
17737
17168
|
function updateContextProvider(current, workInProgress, renderLanes) {
|
|
17738
|
-
var
|
|
17739
|
-
|
|
17169
|
+
var context;
|
|
17170
|
+
|
|
17171
|
+
{
|
|
17172
|
+
context = workInProgress.type._context;
|
|
17173
|
+
}
|
|
17174
|
+
|
|
17740
17175
|
var newProps = workInProgress.pendingProps;
|
|
17741
17176
|
var oldProps = workInProgress.memoizedProps;
|
|
17742
17177
|
var newValue = newProps.value;
|
|
@@ -17751,17 +17186,6 @@ to return true:wantsResponderID| |
|
|
|
17751
17186
|
);
|
|
17752
17187
|
}
|
|
17753
17188
|
}
|
|
17754
|
-
|
|
17755
|
-
var providerPropTypes = workInProgress.type.propTypes;
|
|
17756
|
-
|
|
17757
|
-
if (providerPropTypes) {
|
|
17758
|
-
checkPropTypes(
|
|
17759
|
-
providerPropTypes,
|
|
17760
|
-
newProps,
|
|
17761
|
-
"prop",
|
|
17762
|
-
"Context.Provider"
|
|
17763
|
-
);
|
|
17764
|
-
}
|
|
17765
17189
|
}
|
|
17766
17190
|
|
|
17767
17191
|
pushProvider(workInProgress, context, newValue);
|
|
@@ -17795,34 +17219,16 @@ to return true:wantsResponderID| |
|
|
|
17795
17219
|
return workInProgress.child;
|
|
17796
17220
|
}
|
|
17797
17221
|
|
|
17798
|
-
var hasWarnedAboutUsingContextAsConsumer = false;
|
|
17799
|
-
|
|
17800
17222
|
function updateContextConsumer(current, workInProgress, renderLanes) {
|
|
17801
|
-
var context
|
|
17802
|
-
// DEV mode, we create a separate object for Context.Consumer that acts
|
|
17803
|
-
// like a proxy to Context. This proxy object adds unnecessary code in PROD
|
|
17804
|
-
// so we use the old behaviour (Context.Consumer references Context) to
|
|
17805
|
-
// reduce size and overhead. The separate object references context via
|
|
17806
|
-
// a property called "_context", which also gives us the ability to check
|
|
17807
|
-
// in DEV mode if this property exists or not and warn if it does not.
|
|
17223
|
+
var context;
|
|
17808
17224
|
|
|
17809
17225
|
{
|
|
17810
|
-
|
|
17811
|
-
// This may be because it's a Context (rather than a Consumer).
|
|
17812
|
-
// Or it may be because it's older React where they're the same thing.
|
|
17813
|
-
// We only want to warn if we're sure it's a new React.
|
|
17814
|
-
if (context !== context.Consumer) {
|
|
17815
|
-
if (!hasWarnedAboutUsingContextAsConsumer) {
|
|
17816
|
-
hasWarnedAboutUsingContextAsConsumer = true;
|
|
17226
|
+
context = workInProgress.type;
|
|
17817
17227
|
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
);
|
|
17822
|
-
}
|
|
17228
|
+
{
|
|
17229
|
+
if (context._context !== undefined) {
|
|
17230
|
+
context = context._context;
|
|
17823
17231
|
}
|
|
17824
|
-
} else {
|
|
17825
|
-
context = context._context;
|
|
17826
17232
|
}
|
|
17827
17233
|
}
|
|
17828
17234
|
|
|
@@ -17923,7 +17329,11 @@ to return true:wantsResponderID| |
|
|
|
17923
17329
|
newWorkInProgress.index = oldWorkInProgress.index;
|
|
17924
17330
|
newWorkInProgress.sibling = oldWorkInProgress.sibling;
|
|
17925
17331
|
newWorkInProgress.return = oldWorkInProgress.return;
|
|
17926
|
-
newWorkInProgress.ref = oldWorkInProgress.ref;
|
|
17332
|
+
newWorkInProgress.ref = oldWorkInProgress.ref;
|
|
17333
|
+
|
|
17334
|
+
{
|
|
17335
|
+
newWorkInProgress._debugInfo = oldWorkInProgress._debugInfo;
|
|
17336
|
+
} // Replace the child/sibling pointers above it.
|
|
17927
17337
|
|
|
17928
17338
|
if (oldWorkInProgress === returnFiber.child) {
|
|
17929
17339
|
returnFiber.child = newWorkInProgress;
|
|
@@ -17995,12 +17405,6 @@ to return true:wantsResponderID| |
|
|
|
17995
17405
|
break;
|
|
17996
17406
|
|
|
17997
17407
|
case ClassComponent: {
|
|
17998
|
-
var Component = workInProgress.type;
|
|
17999
|
-
|
|
18000
|
-
if (isContextProvider(Component)) {
|
|
18001
|
-
pushContextProvider(workInProgress);
|
|
18002
|
-
}
|
|
18003
|
-
|
|
18004
17408
|
break;
|
|
18005
17409
|
}
|
|
18006
17410
|
|
|
@@ -18013,7 +17417,12 @@ to return true:wantsResponderID| |
|
|
|
18013
17417
|
|
|
18014
17418
|
case ContextProvider: {
|
|
18015
17419
|
var newValue = workInProgress.memoizedProps.value;
|
|
18016
|
-
var context
|
|
17420
|
+
var context;
|
|
17421
|
+
|
|
17422
|
+
{
|
|
17423
|
+
context = workInProgress.type._context;
|
|
17424
|
+
}
|
|
17425
|
+
|
|
18017
17426
|
pushProvider(workInProgress, context, newValue);
|
|
18018
17427
|
break;
|
|
18019
17428
|
}
|
|
@@ -18171,7 +17580,7 @@ to return true:wantsResponderID| |
|
|
|
18171
17580
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
18172
17581
|
}
|
|
18173
17582
|
|
|
18174
|
-
function beginWork
|
|
17583
|
+
function beginWork(current, workInProgress, renderLanes) {
|
|
18175
17584
|
{
|
|
18176
17585
|
if (workInProgress._debugNeedsRemount && current !== null) {
|
|
18177
17586
|
// This will restart the begin phase with a new fiber.
|
|
@@ -18357,31 +17766,16 @@ to return true:wantsResponderID| |
|
|
|
18357
17766
|
return updateContextConsumer(current, workInProgress, renderLanes);
|
|
18358
17767
|
|
|
18359
17768
|
case MemoComponent: {
|
|
18360
|
-
var
|
|
17769
|
+
var _type = workInProgress.type;
|
|
18361
17770
|
var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.
|
|
18362
17771
|
|
|
18363
|
-
var _resolvedProps3 = resolveDefaultProps(
|
|
17772
|
+
var _resolvedProps3 = resolveDefaultProps(_type, _unresolvedProps3);
|
|
18364
17773
|
|
|
18365
|
-
|
|
18366
|
-
if (workInProgress.type !== workInProgress.elementType) {
|
|
18367
|
-
var outerPropTypes = _type2.propTypes;
|
|
18368
|
-
|
|
18369
|
-
if (outerPropTypes) {
|
|
18370
|
-
checkPropTypes(
|
|
18371
|
-
outerPropTypes,
|
|
18372
|
-
_resolvedProps3, // Resolved for outer only
|
|
18373
|
-
"prop",
|
|
18374
|
-
getComponentNameFromType(_type2)
|
|
18375
|
-
);
|
|
18376
|
-
}
|
|
18377
|
-
}
|
|
18378
|
-
}
|
|
18379
|
-
|
|
18380
|
-
_resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
|
|
17774
|
+
_resolvedProps3 = resolveDefaultProps(_type.type, _resolvedProps3);
|
|
18381
17775
|
return updateMemoComponent(
|
|
18382
17776
|
current,
|
|
18383
17777
|
workInProgress,
|
|
18384
|
-
|
|
17778
|
+
_type,
|
|
18385
17779
|
_resolvedProps3,
|
|
18386
17780
|
renderLanes
|
|
18387
17781
|
);
|
|
@@ -18744,7 +18138,7 @@ to return true:wantsResponderID| |
|
|
|
18744
18138
|
|
|
18745
18139
|
return readContextForConsumer(currentlyRenderingFiber, context);
|
|
18746
18140
|
}
|
|
18747
|
-
function
|
|
18141
|
+
function readContextDuringReconciliation(consumer, context, renderLanes) {
|
|
18748
18142
|
if (currentlyRenderingFiber === null) {
|
|
18749
18143
|
prepareToReadContext(consumer, renderLanes);
|
|
18750
18144
|
}
|
|
@@ -18824,10 +18218,6 @@ to return true:wantsResponderID| |
|
|
|
18824
18218
|
workInProgress.flags |= Update;
|
|
18825
18219
|
}
|
|
18826
18220
|
|
|
18827
|
-
function markRef(workInProgress) {
|
|
18828
|
-
workInProgress.flags |= Ref | RefStatic;
|
|
18829
|
-
}
|
|
18830
|
-
|
|
18831
18221
|
function appendAllChildren(
|
|
18832
18222
|
parent,
|
|
18833
18223
|
workInProgress,
|
|
@@ -19234,12 +18624,6 @@ to return true:wantsResponderID| |
|
|
|
19234
18624
|
return null;
|
|
19235
18625
|
|
|
19236
18626
|
case ClassComponent: {
|
|
19237
|
-
var Component = workInProgress.type;
|
|
19238
|
-
|
|
19239
|
-
if (isContextProvider(Component)) {
|
|
19240
|
-
popContext(workInProgress);
|
|
19241
|
-
}
|
|
19242
|
-
|
|
19243
18627
|
bubbleProperties(workInProgress);
|
|
19244
18628
|
return null;
|
|
19245
18629
|
}
|
|
@@ -19247,7 +18631,6 @@ to return true:wantsResponderID| |
|
|
|
19247
18631
|
case HostRoot: {
|
|
19248
18632
|
var fiberRoot = workInProgress.stateNode;
|
|
19249
18633
|
popHostContainer(workInProgress);
|
|
19250
|
-
popTopLevelContextObject(workInProgress);
|
|
19251
18634
|
|
|
19252
18635
|
if (fiberRoot.pendingContext) {
|
|
19253
18636
|
fiberRoot.context = fiberRoot.pendingContext;
|
|
@@ -19302,10 +18685,6 @@ to return true:wantsResponderID| |
|
|
|
19302
18685
|
|
|
19303
18686
|
if (current !== null && workInProgress.stateNode != null) {
|
|
19304
18687
|
updateHostComponent(current, workInProgress, _type2, newProps);
|
|
19305
|
-
|
|
19306
|
-
if (current.ref !== workInProgress.ref) {
|
|
19307
|
-
markRef(workInProgress);
|
|
19308
|
-
}
|
|
19309
18688
|
} else {
|
|
19310
18689
|
if (!newProps) {
|
|
19311
18690
|
if (workInProgress.stateNode === null) {
|
|
@@ -19351,11 +18730,6 @@ to return true:wantsResponderID| |
|
|
|
19351
18730
|
markUpdate(workInProgress);
|
|
19352
18731
|
}
|
|
19353
18732
|
}
|
|
19354
|
-
|
|
19355
|
-
if (workInProgress.ref !== null) {
|
|
19356
|
-
// If there is a ref on a host node we need to schedule a callback
|
|
19357
|
-
markRef(workInProgress);
|
|
19358
|
-
}
|
|
19359
18733
|
}
|
|
19360
18734
|
|
|
19361
18735
|
bubbleProperties(workInProgress); // This must come at the very end of the complete phase, because it might
|
|
@@ -19410,7 +18784,6 @@ to return true:wantsResponderID| |
|
|
|
19410
18784
|
}
|
|
19411
18785
|
|
|
19412
18786
|
case SuspenseComponent: {
|
|
19413
|
-
popSuspenseHandler(workInProgress);
|
|
19414
18787
|
var nextState = workInProgress.memoizedState; // Special path for dehydrated boundaries. We may eventually move this
|
|
19415
18788
|
// to its own fiber type so that we can add other kinds of hydration
|
|
19416
18789
|
// boundaries that aren't associated with a Suspense tree. In anticipation
|
|
@@ -19431,17 +18804,21 @@ to return true:wantsResponderID| |
|
|
|
19431
18804
|
|
|
19432
18805
|
if (!fallthroughToNormalSuspensePath) {
|
|
19433
18806
|
if (workInProgress.flags & ForceClientRender) {
|
|
19434
|
-
// Special case. There were remaining unhydrated nodes. We treat
|
|
18807
|
+
popSuspenseHandler(workInProgress); // Special case. There were remaining unhydrated nodes. We treat
|
|
19435
18808
|
// this as a mismatch. Revert to client rendering.
|
|
18809
|
+
|
|
19436
18810
|
return workInProgress;
|
|
19437
18811
|
} else {
|
|
19438
|
-
// Did not finish hydrating, either because this is the initial
|
|
18812
|
+
popSuspenseHandler(workInProgress); // Did not finish hydrating, either because this is the initial
|
|
19439
18813
|
// render or because something suspended.
|
|
18814
|
+
|
|
19440
18815
|
return null;
|
|
19441
18816
|
}
|
|
19442
18817
|
} // Continue with the normal Suspense path.
|
|
19443
18818
|
}
|
|
19444
18819
|
|
|
18820
|
+
popSuspenseHandler(workInProgress);
|
|
18821
|
+
|
|
19445
18822
|
if ((workInProgress.flags & DidCapture) !== NoFlags$1) {
|
|
19446
18823
|
// Something suspended. Re-render with the fallback children.
|
|
19447
18824
|
workInProgress.lanes = renderLanes; // Do not reset the effect list.
|
|
@@ -19507,20 +18884,17 @@ to return true:wantsResponderID| |
|
|
|
19507
18884
|
|
|
19508
18885
|
case ContextProvider:
|
|
19509
18886
|
// Pop provider fiber
|
|
19510
|
-
var context
|
|
18887
|
+
var context;
|
|
18888
|
+
|
|
18889
|
+
{
|
|
18890
|
+
context = workInProgress.type._context;
|
|
18891
|
+
}
|
|
18892
|
+
|
|
19511
18893
|
popProvider(context, workInProgress);
|
|
19512
18894
|
bubbleProperties(workInProgress);
|
|
19513
18895
|
return null;
|
|
19514
18896
|
|
|
19515
18897
|
case IncompleteClassComponent: {
|
|
19516
|
-
// Same as class component case. I put it down here so that the tags are
|
|
19517
|
-
// sequential to ensure this switch is compiled to a jump table.
|
|
19518
|
-
var _Component = workInProgress.type;
|
|
19519
|
-
|
|
19520
|
-
if (isContextProvider(_Component)) {
|
|
19521
|
-
popContext(workInProgress);
|
|
19522
|
-
}
|
|
19523
|
-
|
|
19524
18898
|
bubbleProperties(workInProgress);
|
|
19525
18899
|
return null;
|
|
19526
18900
|
}
|
|
@@ -19812,12 +19186,6 @@ to return true:wantsResponderID| |
|
|
|
19812
19186
|
function unwindWork(current, workInProgress, renderLanes) {
|
|
19813
19187
|
switch (workInProgress.tag) {
|
|
19814
19188
|
case ClassComponent: {
|
|
19815
|
-
var Component = workInProgress.type;
|
|
19816
|
-
|
|
19817
|
-
if (isContextProvider(Component)) {
|
|
19818
|
-
popContext(workInProgress);
|
|
19819
|
-
}
|
|
19820
|
-
|
|
19821
19189
|
var flags = workInProgress.flags;
|
|
19822
19190
|
|
|
19823
19191
|
if (flags & ShouldCapture) {
|
|
@@ -19835,7 +19203,6 @@ to return true:wantsResponderID| |
|
|
|
19835
19203
|
|
|
19836
19204
|
case HostRoot: {
|
|
19837
19205
|
popHostContainer(workInProgress);
|
|
19838
|
-
popTopLevelContextObject(workInProgress);
|
|
19839
19206
|
var _flags = workInProgress.flags;
|
|
19840
19207
|
|
|
19841
19208
|
if (
|
|
@@ -19899,7 +19266,12 @@ to return true:wantsResponderID| |
|
|
|
19899
19266
|
return null;
|
|
19900
19267
|
|
|
19901
19268
|
case ContextProvider:
|
|
19902
|
-
var context
|
|
19269
|
+
var context;
|
|
19270
|
+
|
|
19271
|
+
{
|
|
19272
|
+
context = workInProgress.type._context;
|
|
19273
|
+
}
|
|
19274
|
+
|
|
19903
19275
|
popProvider(context, workInProgress);
|
|
19904
19276
|
return null;
|
|
19905
19277
|
|
|
@@ -19936,18 +19308,11 @@ to return true:wantsResponderID| |
|
|
|
19936
19308
|
function unwindInterruptedWork(current, interruptedWork, renderLanes) {
|
|
19937
19309
|
switch (interruptedWork.tag) {
|
|
19938
19310
|
case ClassComponent: {
|
|
19939
|
-
var childContextTypes = interruptedWork.type.childContextTypes;
|
|
19940
|
-
|
|
19941
|
-
if (childContextTypes !== null && childContextTypes !== undefined) {
|
|
19942
|
-
popContext(interruptedWork);
|
|
19943
|
-
}
|
|
19944
|
-
|
|
19945
19311
|
break;
|
|
19946
19312
|
}
|
|
19947
19313
|
|
|
19948
19314
|
case HostRoot: {
|
|
19949
19315
|
popHostContainer(interruptedWork);
|
|
19950
|
-
popTopLevelContextObject(interruptedWork);
|
|
19951
19316
|
break;
|
|
19952
19317
|
}
|
|
19953
19318
|
|
|
@@ -19971,7 +19336,12 @@ to return true:wantsResponderID| |
|
|
|
19971
19336
|
break;
|
|
19972
19337
|
|
|
19973
19338
|
case ContextProvider:
|
|
19974
|
-
var context
|
|
19339
|
+
var context;
|
|
19340
|
+
|
|
19341
|
+
{
|
|
19342
|
+
context = interruptedWork.type._context;
|
|
19343
|
+
}
|
|
19344
|
+
|
|
19975
19345
|
popProvider(context, interruptedWork);
|
|
19976
19346
|
break;
|
|
19977
19347
|
|
|
@@ -20005,20 +19375,6 @@ to return true:wantsResponderID| |
|
|
|
20005
19375
|
);
|
|
20006
19376
|
}
|
|
20007
19377
|
|
|
20008
|
-
function reportUncaughtErrorInDEV(error) {
|
|
20009
|
-
// Wrapping each small part of the commit phase into a guarded
|
|
20010
|
-
// callback is a bit too slow (https://github.com/facebook/react/pull/21666).
|
|
20011
|
-
// But we rely on it to surface errors to DEV tools like overlays
|
|
20012
|
-
// (https://github.com/facebook/react/issues/21712).
|
|
20013
|
-
// As a compromise, rethrow only caught errors in a guard.
|
|
20014
|
-
{
|
|
20015
|
-
invokeGuardedCallback(null, function () {
|
|
20016
|
-
throw error;
|
|
20017
|
-
});
|
|
20018
|
-
clearCaughtError();
|
|
20019
|
-
}
|
|
20020
|
-
}
|
|
20021
|
-
|
|
20022
19378
|
function callComponentWillUnmountWithTimer(current, instance) {
|
|
20023
19379
|
instance.props = current.memoizedProps;
|
|
20024
19380
|
instance.state = current.memoizedState;
|
|
@@ -20395,7 +19751,7 @@ to return true:wantsResponderID| |
|
|
|
20395
19751
|
" }\n" +
|
|
20396
19752
|
" fetchData();\n" +
|
|
20397
19753
|
"}, [someId]); // Or [] if effect doesn't need props or state\n\n" +
|
|
20398
|
-
"Learn more about data fetching with Hooks: https://
|
|
19754
|
+
"Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching";
|
|
20399
19755
|
} else {
|
|
20400
19756
|
addendum = " You returned: " + destroy;
|
|
20401
19757
|
}
|
|
@@ -21030,6 +20386,8 @@ to return true:wantsResponderID| |
|
|
|
21030
20386
|
}
|
|
21031
20387
|
} else {
|
|
21032
20388
|
{
|
|
20389
|
+
// TODO: We should move these warnings to happen during the render
|
|
20390
|
+
// phase (markRef).
|
|
21033
20391
|
if (!ref.hasOwnProperty("current")) {
|
|
21034
20392
|
error(
|
|
21035
20393
|
"Unexpected ref object provided for %s. " +
|
|
@@ -23283,7 +22641,9 @@ to return true:wantsResponderID| |
|
|
|
23283
22641
|
var workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI.
|
|
23284
22642
|
// We will log them once the tree commits.
|
|
23285
22643
|
|
|
23286
|
-
var workInProgressRootRecoverableErrors = null; //
|
|
22644
|
+
var workInProgressRootRecoverableErrors = null; // Tracks when an update occurs during the render phase.
|
|
22645
|
+
|
|
22646
|
+
var workInProgressRootDidIncludeRecursiveRenderUpdate = false; // Thacks when an update occurs during the commit phase. It's a separate
|
|
23287
22647
|
// filled in with the resolved UI. This lets us throttle the appearance of new
|
|
23288
22648
|
// content as it streams in, to minimize jank.
|
|
23289
22649
|
// TODO: Think of a better name for this variable?
|
|
@@ -23307,7 +22667,7 @@ to return true:wantsResponderID| |
|
|
|
23307
22667
|
}
|
|
23308
22668
|
var hasUncaughtError = false;
|
|
23309
22669
|
var firstUncaughtError = null;
|
|
23310
|
-
var legacyErrorBoundariesThatAlreadyFailed = null;
|
|
22670
|
+
var legacyErrorBoundariesThatAlreadyFailed = null;
|
|
23311
22671
|
var rootDoesHavePassiveEffects = false;
|
|
23312
22672
|
var rootWithPendingPassiveEffects = null;
|
|
23313
22673
|
var pendingPassiveEffectsLanes = NoLanes;
|
|
@@ -23799,6 +23159,7 @@ to return true:wantsResponderID| |
|
|
|
23799
23159
|
root,
|
|
23800
23160
|
workInProgressRootRecoverableErrors,
|
|
23801
23161
|
workInProgressTransitions,
|
|
23162
|
+
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
|
23802
23163
|
workInProgressDeferredLane
|
|
23803
23164
|
);
|
|
23804
23165
|
} else {
|
|
@@ -23829,6 +23190,7 @@ to return true:wantsResponderID| |
|
|
|
23829
23190
|
finishedWork,
|
|
23830
23191
|
workInProgressRootRecoverableErrors,
|
|
23831
23192
|
workInProgressTransitions,
|
|
23193
|
+
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
|
23832
23194
|
lanes,
|
|
23833
23195
|
workInProgressDeferredLane
|
|
23834
23196
|
),
|
|
@@ -23843,6 +23205,7 @@ to return true:wantsResponderID| |
|
|
|
23843
23205
|
finishedWork,
|
|
23844
23206
|
workInProgressRootRecoverableErrors,
|
|
23845
23207
|
workInProgressTransitions,
|
|
23208
|
+
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
|
23846
23209
|
lanes,
|
|
23847
23210
|
workInProgressDeferredLane
|
|
23848
23211
|
);
|
|
@@ -23854,6 +23217,7 @@ to return true:wantsResponderID| |
|
|
|
23854
23217
|
finishedWork,
|
|
23855
23218
|
recoverableErrors,
|
|
23856
23219
|
transitions,
|
|
23220
|
+
didIncludeRenderPhaseUpdate,
|
|
23857
23221
|
lanes,
|
|
23858
23222
|
spawnedLane
|
|
23859
23223
|
) {
|
|
@@ -23878,14 +23242,26 @@ to return true:wantsResponderID| |
|
|
|
23878
23242
|
// us that it's ready. This will be canceled if we start work on the
|
|
23879
23243
|
// root again.
|
|
23880
23244
|
root.cancelPendingCommit = schedulePendingCommit(
|
|
23881
|
-
commitRoot.bind(
|
|
23245
|
+
commitRoot.bind(
|
|
23246
|
+
null,
|
|
23247
|
+
root,
|
|
23248
|
+
recoverableErrors,
|
|
23249
|
+
transitions,
|
|
23250
|
+
didIncludeRenderPhaseUpdate
|
|
23251
|
+
)
|
|
23882
23252
|
);
|
|
23883
23253
|
markRootSuspended(root, lanes, spawnedLane);
|
|
23884
23254
|
return;
|
|
23885
23255
|
}
|
|
23886
23256
|
} // Otherwise, commit immediately.
|
|
23887
23257
|
|
|
23888
|
-
commitRoot(
|
|
23258
|
+
commitRoot(
|
|
23259
|
+
root,
|
|
23260
|
+
recoverableErrors,
|
|
23261
|
+
transitions,
|
|
23262
|
+
didIncludeRenderPhaseUpdate,
|
|
23263
|
+
spawnedLane
|
|
23264
|
+
);
|
|
23889
23265
|
}
|
|
23890
23266
|
|
|
23891
23267
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
@@ -23948,13 +23324,23 @@ to return true:wantsResponderID| |
|
|
|
23948
23324
|
// eslint-disable-next-line no-unreachable
|
|
23949
23325
|
|
|
23950
23326
|
return true;
|
|
23327
|
+
} // The extra indirections around markRootUpdated and markRootSuspended is
|
|
23328
|
+
// needed to avoid a circular dependency between this module and
|
|
23329
|
+
// ReactFiberLane. There's probably a better way to split up these modules and
|
|
23330
|
+
// avoid this problem. Perhaps all the root-marking functions should move into
|
|
23331
|
+
// the work loop.
|
|
23332
|
+
|
|
23333
|
+
function markRootUpdated(root, updatedLanes) {
|
|
23334
|
+
markRootUpdated$1(root, updatedLanes);
|
|
23335
|
+
}
|
|
23336
|
+
|
|
23337
|
+
function markRootPinged(root, pingedLanes) {
|
|
23338
|
+
markRootPinged$1(root, pingedLanes);
|
|
23951
23339
|
}
|
|
23952
23340
|
|
|
23953
23341
|
function markRootSuspended(root, suspendedLanes, spawnedLane) {
|
|
23954
23342
|
// When suspending, we should always exclude lanes that were pinged or (more
|
|
23955
23343
|
// rarely, since we try to avoid it) updated during the render phase.
|
|
23956
|
-
// TODO: Lol maybe there's a better way to factor this besides this
|
|
23957
|
-
// obnoxiously named function :)
|
|
23958
23344
|
suspendedLanes = removeLanes(
|
|
23959
23345
|
suspendedLanes,
|
|
23960
23346
|
workInProgressRootPingedLanes
|
|
@@ -23963,6 +23349,7 @@ to return true:wantsResponderID| |
|
|
|
23963
23349
|
suspendedLanes,
|
|
23964
23350
|
workInProgressRootInterleavedUpdatedLanes
|
|
23965
23351
|
);
|
|
23352
|
+
|
|
23966
23353
|
markRootSuspended$1(root, suspendedLanes, spawnedLane);
|
|
23967
23354
|
} // This is the entry point for synchronous tasks that don't go
|
|
23968
23355
|
// through Scheduler
|
|
@@ -24037,6 +23424,7 @@ to return true:wantsResponderID| |
|
|
|
24037
23424
|
root,
|
|
24038
23425
|
workInProgressRootRecoverableErrors,
|
|
24039
23426
|
workInProgressTransitions,
|
|
23427
|
+
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
|
24040
23428
|
workInProgressDeferredLane
|
|
24041
23429
|
); // Before exiting, make sure there's a callback scheduled for the next
|
|
24042
23430
|
// pending level.
|
|
@@ -24181,7 +23569,8 @@ to return true:wantsResponderID| |
|
|
|
24181
23569
|
workInProgressRootPingedLanes = NoLanes;
|
|
24182
23570
|
workInProgressDeferredLane = NoLane;
|
|
24183
23571
|
workInProgressRootConcurrentErrors = null;
|
|
24184
|
-
workInProgressRootRecoverableErrors = null;
|
|
23572
|
+
workInProgressRootRecoverableErrors = null;
|
|
23573
|
+
workInProgressRootDidIncludeRecursiveRenderUpdate = false; // Get the lanes that are entangled with whatever we're about to render. We
|
|
24185
23574
|
// track these separately so we can distinguish the priority of the render
|
|
24186
23575
|
// task from the priority of the lanes it is entangled with. For example, a
|
|
24187
23576
|
// transition may not be allowed to finish unless it includes the Sync lane,
|
|
@@ -24856,15 +24245,6 @@ to return true:wantsResponderID| |
|
|
|
24856
24245
|
: resolveDefaultProps(Component, unresolvedProps);
|
|
24857
24246
|
var context;
|
|
24858
24247
|
|
|
24859
|
-
{
|
|
24860
|
-
var unmaskedContext = getUnmaskedContext(
|
|
24861
|
-
unitOfWork,
|
|
24862
|
-
Component,
|
|
24863
|
-
true
|
|
24864
|
-
);
|
|
24865
|
-
context = getMaskedContext(unitOfWork, unmaskedContext);
|
|
24866
|
-
}
|
|
24867
|
-
|
|
24868
24248
|
next = replayFunctionComponent(
|
|
24869
24249
|
current,
|
|
24870
24250
|
unitOfWork,
|
|
@@ -25145,7 +24525,13 @@ to return true:wantsResponderID| |
|
|
|
25145
24525
|
workInProgress = null;
|
|
25146
24526
|
}
|
|
25147
24527
|
|
|
25148
|
-
function commitRoot(
|
|
24528
|
+
function commitRoot(
|
|
24529
|
+
root,
|
|
24530
|
+
recoverableErrors,
|
|
24531
|
+
transitions,
|
|
24532
|
+
didIncludeRenderPhaseUpdate,
|
|
24533
|
+
spawnedLane
|
|
24534
|
+
) {
|
|
25149
24535
|
// TODO: This no longer makes any sense. We already wrap the mutation and
|
|
25150
24536
|
// layout phases. Should be able to remove.
|
|
25151
24537
|
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
|
@@ -25158,6 +24544,7 @@ to return true:wantsResponderID| |
|
|
|
25158
24544
|
root,
|
|
25159
24545
|
recoverableErrors,
|
|
25160
24546
|
transitions,
|
|
24547
|
+
didIncludeRenderPhaseUpdate,
|
|
25161
24548
|
previousUpdateLanePriority,
|
|
25162
24549
|
spawnedLane
|
|
25163
24550
|
);
|
|
@@ -25173,6 +24560,7 @@ to return true:wantsResponderID| |
|
|
|
25173
24560
|
root,
|
|
25174
24561
|
recoverableErrors,
|
|
25175
24562
|
transitions,
|
|
24563
|
+
didIncludeRenderPhaseUpdate,
|
|
25176
24564
|
renderPriorityLevel,
|
|
25177
24565
|
spawnedLane
|
|
25178
24566
|
) {
|
|
@@ -25232,7 +24620,7 @@ to return true:wantsResponderID| |
|
|
|
25232
24620
|
|
|
25233
24621
|
var concurrentlyUpdatedLanes = getConcurrentlyUpdatedLanes();
|
|
25234
24622
|
remainingLanes = mergeLanes(remainingLanes, concurrentlyUpdatedLanes);
|
|
25235
|
-
markRootFinished(root, remainingLanes, spawnedLane);
|
|
24623
|
+
markRootFinished(root, remainingLanes, spawnedLane); // Reset this before firing side effects so we can detect recursive updates.
|
|
25236
24624
|
|
|
25237
24625
|
if (root === workInProgressRoot) {
|
|
25238
24626
|
// We can reset these now that they are finished.
|
|
@@ -25295,7 +24683,7 @@ to return true:wantsResponderID| |
|
|
|
25295
24683
|
// Mark the current commit time to be shared by all Profilers in this
|
|
25296
24684
|
// batch. This enables them to be grouped later.
|
|
25297
24685
|
recordCommitTime();
|
|
25298
|
-
}
|
|
24686
|
+
} // The next phase is the mutation phase, where we mutate the host tree.
|
|
25299
24687
|
|
|
25300
24688
|
commitMutationEffects(root, finishedWork, lanes);
|
|
25301
24689
|
// the mutation phase, so that the previous tree is still current during
|
|
@@ -25414,6 +24802,9 @@ to return true:wantsResponderID| |
|
|
|
25414
24802
|
// hydration is conceptually not an update.
|
|
25415
24803
|
|
|
25416
24804
|
if (
|
|
24805
|
+
// Check if there was a recursive update spawned by this render, in either
|
|
24806
|
+
// the render phase or the commit phase. We track these explicitly because
|
|
24807
|
+
// we can't infer from the remaining lanes alone.
|
|
25417
24808
|
// Was the finished render the result of an update (not hydration)?
|
|
25418
24809
|
includesSomeLane(lanes, UpdateLanes) && // Did it schedule a sync update?
|
|
25419
24810
|
includesSomeLane(remainingLanes, SyncUpdateLanes)
|
|
@@ -25613,7 +25004,6 @@ to return true:wantsResponderID| |
|
|
|
25613
25004
|
error$1
|
|
25614
25005
|
) {
|
|
25615
25006
|
{
|
|
25616
|
-
reportUncaughtErrorInDEV(error$1);
|
|
25617
25007
|
setIsRunningInsertionEffect(false);
|
|
25618
25008
|
}
|
|
25619
25009
|
|
|
@@ -25835,6 +25225,7 @@ to return true:wantsResponderID| |
|
|
|
25835
25225
|
nestedPassiveUpdateCount = 0;
|
|
25836
25226
|
rootWithNestedUpdates = null;
|
|
25837
25227
|
rootWithPassiveNestedUpdates = null;
|
|
25228
|
+
|
|
25838
25229
|
throw new Error(
|
|
25839
25230
|
"Maximum update depth exceeded. This can happen when a component " +
|
|
25840
25231
|
"repeatedly calls setState inside componentWillUpdate or " +
|
|
@@ -25991,81 +25382,6 @@ to return true:wantsResponderID| |
|
|
|
25991
25382
|
}
|
|
25992
25383
|
}
|
|
25993
25384
|
}
|
|
25994
|
-
var beginWork;
|
|
25995
|
-
|
|
25996
|
-
{
|
|
25997
|
-
var dummyFiber = null;
|
|
25998
|
-
|
|
25999
|
-
beginWork = function (current, unitOfWork, lanes) {
|
|
26000
|
-
// If a component throws an error, we replay it again in a synchronously
|
|
26001
|
-
// dispatched event, so that the debugger will treat it as an uncaught
|
|
26002
|
-
// error See ReactErrorUtils for more information.
|
|
26003
|
-
// Before entering the begin phase, copy the work-in-progress onto a dummy
|
|
26004
|
-
// fiber. If beginWork throws, we'll use this to reset the state.
|
|
26005
|
-
var originalWorkInProgressCopy = assignFiberPropertiesInDEV(
|
|
26006
|
-
dummyFiber,
|
|
26007
|
-
unitOfWork
|
|
26008
|
-
);
|
|
26009
|
-
|
|
26010
|
-
try {
|
|
26011
|
-
return beginWork$1(current, unitOfWork, lanes);
|
|
26012
|
-
} catch (originalError) {
|
|
26013
|
-
if (
|
|
26014
|
-
didSuspendOrErrorWhileHydratingDEV() ||
|
|
26015
|
-
originalError === SuspenseException ||
|
|
26016
|
-
originalError === SelectiveHydrationException ||
|
|
26017
|
-
(originalError !== null &&
|
|
26018
|
-
typeof originalError === "object" &&
|
|
26019
|
-
typeof originalError.then === "function")
|
|
26020
|
-
) {
|
|
26021
|
-
// Don't replay promises.
|
|
26022
|
-
// Don't replay errors if we are hydrating and have already suspended or handled an error
|
|
26023
|
-
throw originalError;
|
|
26024
|
-
} // Don't reset current debug fiber, since we're about to work on the
|
|
26025
|
-
// same fiber again.
|
|
26026
|
-
// Unwind the failed stack frame
|
|
26027
|
-
|
|
26028
|
-
resetSuspendedWorkLoopOnUnwind(unitOfWork);
|
|
26029
|
-
unwindInterruptedWork(current, unitOfWork); // Restore the original properties of the fiber.
|
|
26030
|
-
|
|
26031
|
-
assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
|
|
26032
|
-
|
|
26033
|
-
if (unitOfWork.mode & ProfileMode) {
|
|
26034
|
-
// Reset the profiler timer.
|
|
26035
|
-
startProfilerTimer(unitOfWork);
|
|
26036
|
-
} // Run beginWork again.
|
|
26037
|
-
|
|
26038
|
-
invokeGuardedCallback(
|
|
26039
|
-
null,
|
|
26040
|
-
beginWork$1,
|
|
26041
|
-
null,
|
|
26042
|
-
current,
|
|
26043
|
-
unitOfWork,
|
|
26044
|
-
lanes
|
|
26045
|
-
);
|
|
26046
|
-
|
|
26047
|
-
if (hasCaughtError()) {
|
|
26048
|
-
var replayError = clearCaughtError();
|
|
26049
|
-
|
|
26050
|
-
if (
|
|
26051
|
-
typeof replayError === "object" &&
|
|
26052
|
-
replayError !== null &&
|
|
26053
|
-
replayError._suppressLogging &&
|
|
26054
|
-
typeof originalError === "object" &&
|
|
26055
|
-
originalError !== null &&
|
|
26056
|
-
!originalError._suppressLogging
|
|
26057
|
-
) {
|
|
26058
|
-
// If suppressed, let the flag carry over to the original error which is the one we'll rethrow.
|
|
26059
|
-
originalError._suppressLogging = true;
|
|
26060
|
-
}
|
|
26061
|
-
} // We always throw the original error in case the second render pass is not idempotent.
|
|
26062
|
-
// This can happen if a memoized function or CommonJS module doesn't throw after first invocation.
|
|
26063
|
-
|
|
26064
|
-
throw originalError;
|
|
26065
|
-
}
|
|
26066
|
-
};
|
|
26067
|
-
}
|
|
26068
|
-
|
|
26069
25385
|
var didWarnAboutUpdateInRender = false;
|
|
26070
25386
|
var didWarnAboutUpdateInRenderForAnotherComponent;
|
|
26071
25387
|
|
|
@@ -26096,7 +25412,7 @@ to return true:wantsResponderID| |
|
|
|
26096
25412
|
error(
|
|
26097
25413
|
"Cannot update a component (`%s`) while rendering a " +
|
|
26098
25414
|
"different component (`%s`). To locate the bad setState() call inside `%s`, " +
|
|
26099
|
-
"follow the stack trace as described in https://
|
|
25415
|
+
"follow the stack trace as described in https://react.dev/link/setstate-in-render",
|
|
26100
25416
|
setStateComponentName,
|
|
26101
25417
|
renderingComponentName,
|
|
26102
25418
|
renderingComponentName
|
|
@@ -26205,7 +25521,7 @@ to return true:wantsResponderID| |
|
|
|
26205
25521
|
"/* assert on the output */\n\n" +
|
|
26206
25522
|
"This ensures that you're testing the behavior the user would see " +
|
|
26207
25523
|
"in the browser." +
|
|
26208
|
-
" Learn more at https://
|
|
25524
|
+
" Learn more at https://react.dev/link/wrap-tests-with-act",
|
|
26209
25525
|
getComponentNameFromFiber(fiber)
|
|
26210
25526
|
);
|
|
26211
25527
|
} finally {
|
|
@@ -26237,7 +25553,7 @@ to return true:wantsResponderID| |
|
|
|
26237
25553
|
"/* assert on the output */\n\n" +
|
|
26238
25554
|
"This ensures that you're testing the behavior the user would see " +
|
|
26239
25555
|
"in the browser." +
|
|
26240
|
-
" Learn more at https://
|
|
25556
|
+
" Learn more at https://react.dev/link/wrap-tests-with-act"
|
|
26241
25557
|
);
|
|
26242
25558
|
}
|
|
26243
25559
|
}
|
|
@@ -26774,6 +26090,7 @@ to return true:wantsResponderID| |
|
|
|
26774
26090
|
|
|
26775
26091
|
{
|
|
26776
26092
|
// This isn't directly used but is handy for debugging internals:
|
|
26093
|
+
this._debugInfo = null;
|
|
26777
26094
|
this._debugOwner = null;
|
|
26778
26095
|
this._debugNeedsRemount = false;
|
|
26779
26096
|
this._debugHookTypes = null;
|
|
@@ -26912,6 +26229,7 @@ to return true:wantsResponderID| |
|
|
|
26912
26229
|
}
|
|
26913
26230
|
|
|
26914
26231
|
{
|
|
26232
|
+
workInProgress._debugInfo = current._debugInfo;
|
|
26915
26233
|
workInProgress._debugNeedsRemount = current._debugNeedsRemount;
|
|
26916
26234
|
|
|
26917
26235
|
switch (workInProgress.tag) {
|
|
@@ -27110,14 +26428,21 @@ to return true:wantsResponderID| |
|
|
|
27110
26428
|
default: {
|
|
27111
26429
|
if (typeof type === "object" && type !== null) {
|
|
27112
26430
|
switch (type.$$typeof) {
|
|
27113
|
-
case REACT_PROVIDER_TYPE:
|
|
26431
|
+
case REACT_PROVIDER_TYPE: {
|
|
27114
26432
|
fiberTag = ContextProvider;
|
|
27115
26433
|
break getTag;
|
|
26434
|
+
}
|
|
27116
26435
|
|
|
27117
|
-
|
|
27118
|
-
|
|
26436
|
+
// Fall through
|
|
26437
|
+
|
|
26438
|
+
case REACT_CONTEXT_TYPE: {
|
|
27119
26439
|
fiberTag = ContextConsumer;
|
|
27120
26440
|
break getTag;
|
|
26441
|
+
}
|
|
26442
|
+
|
|
26443
|
+
case REACT_CONSUMER_TYPE:
|
|
26444
|
+
|
|
26445
|
+
// Fall through
|
|
27121
26446
|
|
|
27122
26447
|
case REACT_FORWARD_REF_TYPE:
|
|
27123
26448
|
fiberTag = ForwardRef;
|
|
@@ -27286,54 +26611,6 @@ to return true:wantsResponderID| |
|
|
|
27286
26611
|
implementation: portal.implementation
|
|
27287
26612
|
};
|
|
27288
26613
|
return fiber;
|
|
27289
|
-
} // Used for stashing WIP properties to replay failed work in DEV.
|
|
27290
|
-
|
|
27291
|
-
function assignFiberPropertiesInDEV(target, source) {
|
|
27292
|
-
if (target === null) {
|
|
27293
|
-
// This Fiber's initial properties will always be overwritten.
|
|
27294
|
-
// We only use a Fiber to ensure the same hidden class so DEV isn't slow.
|
|
27295
|
-
target = createFiber(IndeterminateComponent, null, null, NoMode);
|
|
27296
|
-
} // This is intentionally written as a list of all properties.
|
|
27297
|
-
// We tried to use Object.assign() instead but this is called in
|
|
27298
|
-
// the hottest path, and Object.assign() was too slow:
|
|
27299
|
-
// https://github.com/facebook/react/issues/12502
|
|
27300
|
-
// This code is DEV-only so size is not a concern.
|
|
27301
|
-
|
|
27302
|
-
target.tag = source.tag;
|
|
27303
|
-
target.key = source.key;
|
|
27304
|
-
target.elementType = source.elementType;
|
|
27305
|
-
target.type = source.type;
|
|
27306
|
-
target.stateNode = source.stateNode;
|
|
27307
|
-
target.return = source.return;
|
|
27308
|
-
target.child = source.child;
|
|
27309
|
-
target.sibling = source.sibling;
|
|
27310
|
-
target.index = source.index;
|
|
27311
|
-
target.ref = source.ref;
|
|
27312
|
-
target.refCleanup = source.refCleanup;
|
|
27313
|
-
target.pendingProps = source.pendingProps;
|
|
27314
|
-
target.memoizedProps = source.memoizedProps;
|
|
27315
|
-
target.updateQueue = source.updateQueue;
|
|
27316
|
-
target.memoizedState = source.memoizedState;
|
|
27317
|
-
target.dependencies = source.dependencies;
|
|
27318
|
-
target.mode = source.mode;
|
|
27319
|
-
target.flags = source.flags;
|
|
27320
|
-
target.subtreeFlags = source.subtreeFlags;
|
|
27321
|
-
target.deletions = source.deletions;
|
|
27322
|
-
target.lanes = source.lanes;
|
|
27323
|
-
target.childLanes = source.childLanes;
|
|
27324
|
-
target.alternate = source.alternate;
|
|
27325
|
-
|
|
27326
|
-
{
|
|
27327
|
-
target.actualDuration = source.actualDuration;
|
|
27328
|
-
target.actualStartTime = source.actualStartTime;
|
|
27329
|
-
target.selfBaseDuration = source.selfBaseDuration;
|
|
27330
|
-
target.treeBaseDuration = source.treeBaseDuration;
|
|
27331
|
-
}
|
|
27332
|
-
|
|
27333
|
-
target._debugOwner = source._debugOwner;
|
|
27334
|
-
target._debugNeedsRemount = source._debugNeedsRemount;
|
|
27335
|
-
target._debugHookTypes = source._debugHookTypes;
|
|
27336
|
-
return target;
|
|
27337
26614
|
}
|
|
27338
26615
|
|
|
27339
26616
|
function FiberRootNode(
|
|
@@ -27445,7 +26722,7 @@ to return true:wantsResponderID| |
|
|
|
27445
26722
|
return root;
|
|
27446
26723
|
}
|
|
27447
26724
|
|
|
27448
|
-
var ReactVersion = "18.3.0-canary-
|
|
26725
|
+
var ReactVersion = "18.3.0-canary-9372c6311-20240315";
|
|
27449
26726
|
|
|
27450
26727
|
function createPortal$1(
|
|
27451
26728
|
children,
|
|
@@ -27487,12 +26764,12 @@ to return true:wantsResponderID| |
|
|
|
27487
26764
|
}
|
|
27488
26765
|
|
|
27489
26766
|
var fiber = get(parentComponent);
|
|
27490
|
-
var parentContext = findCurrentUnmaskedContext(
|
|
26767
|
+
var parentContext = findCurrentUnmaskedContext();
|
|
27491
26768
|
|
|
27492
26769
|
if (fiber.tag === ClassComponent) {
|
|
27493
26770
|
var Component = fiber.type;
|
|
27494
26771
|
|
|
27495
|
-
if (isContextProvider(
|
|
26772
|
+
if (isContextProvider()) {
|
|
27496
26773
|
return processChildContext(fiber, Component, parentContext);
|
|
27497
26774
|
}
|
|
27498
26775
|
}
|
|
@@ -27537,7 +26814,7 @@ to return true:wantsResponderID| |
|
|
|
27537
26814
|
"%s was passed an instance of %s which is inside StrictMode. " +
|
|
27538
26815
|
"Instead, add a ref directly to the element you want to reference. " +
|
|
27539
26816
|
"Learn more about using refs safely here: " +
|
|
27540
|
-
"https://
|
|
26817
|
+
"https://react.dev/link/strict-mode-find-node",
|
|
27541
26818
|
methodName,
|
|
27542
26819
|
methodName,
|
|
27543
26820
|
componentName
|
|
@@ -27548,7 +26825,7 @@ to return true:wantsResponderID| |
|
|
|
27548
26825
|
"%s was passed an instance of %s which renders StrictMode children. " +
|
|
27549
26826
|
"Instead, add a ref directly to the element you want to reference. " +
|
|
27550
26827
|
"Learn more about using refs safely here: " +
|
|
27551
|
-
"https://
|
|
26828
|
+
"https://react.dev/link/strict-mode-find-node",
|
|
27552
26829
|
methodName,
|
|
27553
26830
|
methodName,
|
|
27554
26831
|
componentName
|
|
@@ -27638,7 +26915,7 @@ to return true:wantsResponderID| |
|
|
|
27638
26915
|
{
|
|
27639
26916
|
if (typeof callback !== "function") {
|
|
27640
26917
|
error(
|
|
27641
|
-
"
|
|
26918
|
+
"Expected the last optional `callback` argument to be a " +
|
|
27642
26919
|
"function. Instead received: %s.",
|
|
27643
26920
|
callback
|
|
27644
26921
|
);
|