react-native-macos 0.0.0-35c96300a → 0.0.0-38e149ac0
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/ActionSheetIOS/ActionSheetIOS.js +17 -4
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +25 -0
- package/Libraries/Alert/Alert.js +1 -1
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/AnimatedImplementation.js +23 -24
- package/Libraries/Animated/AnimatedMock.js +52 -11
- package/Libraries/Animated/Easing.js +1 -3
- package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
- package/Libraries/Animated/SpringConfig.js +10 -10
- package/Libraries/Animated/bezier.js +19 -8
- package/Libraries/Animated/components/AnimatedImage.js +3 -3
- package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
- package/Libraries/Animated/components/AnimatedText.js +3 -3
- package/Libraries/Animated/components/AnimatedView.js +1 -3
- package/Libraries/Animated/createAnimatedComponent.js +6 -37
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +2 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +3 -3
- package/Libraries/Animated/nodes/AnimatedStyle.js +2 -2
- package/Libraries/Animated/nodes/AnimatedValue.js +10 -10
- package/Libraries/Animated/nodes/AnimatedValueXY.js +12 -12
- package/Libraries/AppState/AppState.js +2 -2
- package/Libraries/BatchedBridge/MessageQueue.js +6 -8
- package/Libraries/Blob/RCTBlobManager.mm +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +2 -2
- package/Libraries/Blob/URL.js +25 -20
- package/Libraries/BugReporting/getReactData.js +14 -5
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +68 -24
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +3 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +2 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +4 -4
- package/Libraries/Components/Button.js +6 -8
- package/Libraries/Components/CheckBox/CheckBox.macos.js +8 -4
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +20 -7
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +8 -9
- package/Libraries/Components/Keyboard/Keyboard.js +2 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +18 -7
- package/Libraries/Components/Pressable/Pressable.js +2 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +5 -4
- package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +0 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
- package/Libraries/Components/ScrollView/ScrollView.js +26 -21
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +269 -252
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +59 -11
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -3
- package/Libraries/Components/TextInput/InputAccessoryView.js +2 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +0 -2
- package/Libraries/Components/TextInput/TextInput.js +39 -20
- package/Libraries/Components/Touchable/PooledClass.js +5 -5
- package/Libraries/Components/Touchable/Touchable.js +0 -14
- package/Libraries/Components/Touchable/TouchableBounce.js +13 -23
- package/Libraries/Components/Touchable/TouchableHighlight.js +21 -31
- package/Libraries/Components/Touchable/TouchableOpacity.js +16 -30
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +8 -18
- package/Libraries/Components/View/ReactNativeViewAttributes.js +8 -7
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +12 -1
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
- package/Libraries/Components/View/View.js +9 -11
- package/Libraries/Components/View/ViewAccessibility.js +1 -2
- package/Libraries/Components/View/ViewPropTypes.js +31 -37
- package/Libraries/Core/ExceptionsManager.js +45 -80
- package/Libraries/Core/ExtendedError.js +0 -1
- package/Libraries/Core/InitializeCore.js +0 -2
- package/Libraries/Core/ReactNativeVersion.js +5 -1
- package/Libraries/Core/ReactNativeVersionCheck.js +10 -1
- package/Libraries/Core/setUpBatchedBridge.js +15 -3
- package/Libraries/Core/setUpErrorHandling.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -4
- package/Libraries/Core/setUpTimers.js +13 -3
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +6 -6
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +83 -12
- package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +18 -18
- package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +30 -30
- package/Libraries/Image/Image.android.js +16 -17
- package/Libraries/Image/Image.ios.js +18 -15
- package/Libraries/Image/ImageBackground.js +22 -10
- package/Libraries/Image/ImageProps.js +45 -17
- package/Libraries/Image/RCTAnimatedImage.m +1 -1
- package/Libraries/Image/RCTImageCache.m +2 -2
- package/Libraries/Image/RCTImageLoaderProtocol.h +1 -1
- package/Libraries/Image/RCTImageView.mm +7 -9
- package/Libraries/Image/RCTUIImageViewAnimated.m +1 -1
- package/Libraries/Image/React-RCTImage.podspec +2 -2
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Inspector/ElementProperties.js +4 -2
- package/Libraries/Inspector/Inspector.js +1 -1
- package/Libraries/Inspector/InspectorOverlay.js +2 -1
- package/Libraries/Inspector/InspectorPanel.js +2 -1
- package/Libraries/Inspector/NetworkOverlay.js +6 -3
- package/Libraries/Linking/Linking.js +7 -7
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +2 -2
- package/Libraries/Lists/FillRateHelper.js +4 -1
- package/Libraries/Lists/SectionList.js +3 -3
- package/Libraries/Lists/SectionListModern.js +3 -3
- package/Libraries/Lists/VirtualizedList.js +14 -9
- package/Libraries/Lists/VirtualizedListContext.js +2 -1
- package/Libraries/LogBox/Data/LogBoxData.js +18 -19
- package/Libraries/LogBox/LogBox.js +3 -3
- package/Libraries/LogBox/UI/AnsiHighlight.js +9 -4
- package/Libraries/LogBox/UI/LogBoxButton.js +4 -2
- package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
- package/Libraries/LogBox/UI/LogBoxInspector.js +3 -1
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +4 -2
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +2 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +2 -1
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +7 -4
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +2 -1
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +5 -3
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +7 -3
- package/Libraries/LogBox/UI/LogBoxMessage.js +6 -2
- package/Libraries/LogBox/UI/LogBoxNotification.js +10 -5
- package/Libraries/Modal/Modal.js +17 -14
- package/Libraries/Modal/RCTModalHostViewNativeComponent.js +11 -11
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +42 -38
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +33 -32
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +1 -4
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +10 -41
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
- package/Libraries/NativeComponent/NativeComponentRegistry.js +26 -9
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +159 -0
- package/Libraries/Network/React-RCTNetwork.podspec +2 -2
- package/Libraries/Network/XMLHttpRequest.js +43 -6
- package/Libraries/NewAppScreen/components/Header.js +4 -2
- package/Libraries/NewAppScreen/components/HermesBadge.js +2 -1
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +4 -2
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/Performance/Systrace.js +8 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +7 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +17 -5
- package/Libraries/Pressability/Pressability.js +13 -13
- package/Libraries/Pressability/PressabilityDebug.js +14 -11
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +26 -26
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +1 -2
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +2 -2
- package/Libraries/RCTTest/RNTester-macOSUITests/RNTester_macOSUITests.m +1 -1
- package/Libraries/ReactNative/AppContainer.js +4 -2
- package/Libraries/ReactNative/AppRegistry.js +12 -10
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +3 -1
- package/Libraries/ReactNative/getNativeComponentAttributes.js +15 -1
- package/Libraries/ReactNative/renderApplication.js +2 -1
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +2528 -1057
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +608 -375
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +963 -463
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +2551 -1168
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +610 -381
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +960 -460
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -2
- 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.js +1 -1
- package/Libraries/Storage/AsyncStorage.js +12 -13
- package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +16 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +2 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +8 -1
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/StyleSheet/processTransform.js +20 -1
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -0
- package/Libraries/Text/Text/RCTTextView.m +8 -4
- package/Libraries/Text/Text.js +7 -10
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +18 -14
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +2 -0
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +15 -3
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +14 -15
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +3 -1
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +11 -15
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +3 -0
- package/Libraries/Text/TextNativeComponent.js +0 -2
- package/Libraries/Text/TextProps.js +19 -25
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/Types/RootTagTypes.js~merged +23 -0
- package/Libraries/Utilities/HMRClient.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +5 -7
- package/Libraries/Utilities/SceneTracker.js +4 -1
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -2
- package/Libraries/Utilities/differ/matricesDiffer.js +5 -1
- package/Libraries/Utilities/differ/sizesDiffer.js +10 -4
- package/Libraries/Utilities/useWindowDimensions.js +5 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +1 -1
- package/Libraries/Vibration/React-RCTVibration.podspec +2 -2
- package/Libraries/Vibration/Vibration.js +3 -3
- package/Libraries/WebSocket/RCTSRWebSocket.m +23 -0
- package/Libraries/WebSocket/WebSocketInterceptor.js +2 -2
- package/README.md +19 -43
- package/React/Base/RCTBridge+Private.h +8 -0
- package/React/Base/RCTBridge.h +4 -0
- package/React/Base/RCTBridge.m +19 -7
- package/React/Base/RCTBridgeMethod.h +1 -1
- package/React/Base/RCTBridgeModule.h +3 -12
- package/React/Base/RCTBundleURLProvider.h +1 -15
- package/React/Base/RCTBundleURLProvider.mm +15 -31
- package/React/Base/RCTConstants.h +0 -12
- package/React/Base/RCTConstants.m +0 -30
- package/React/Base/RCTConvert.h +1 -1
- package/React/Base/RCTConvert.m +25 -8
- package/React/Base/RCTDefines.h +12 -3
- package/React/Base/RCTDisplayLink.m +6 -2
- package/React/Base/RCTEventDispatcherProtocol.h +2 -0
- package/React/Base/RCTImageSource.m +2 -0
- package/React/Base/RCTJSStackFrame.m +2 -0
- package/React/Base/RCTJSThread.h +29 -0
- package/React/Base/RCTJSThread.m +19 -0
- package/React/Base/RCTJavaScriptLoader.mm +2 -0
- package/React/Base/RCTKeyCommands.m +2 -0
- package/React/Base/RCTMockDef.h +61 -0
- package/React/Base/RCTModuleData.mm +2 -0
- package/React/Base/RCTModuleMethod.mm +2 -0
- package/React/Base/RCTNullability.h +1 -1
- package/React/Base/RCTPerformanceLogger.h +1 -1
- package/React/Base/RCTRootView.h +15 -0
- package/React/Base/RCTRootView.m +15 -0
- package/React/Base/RCTTouchEvent.m +2 -0
- package/React/Base/RCTTouchHandler.m +1 -8
- package/React/Base/RCTUtils.h +3 -0
- package/React/Base/RCTUtils.m +14 -7
- package/React/Base/RCTVersion.m +5 -1
- package/React/Base/Surface/RCTSurface.mm +2 -4
- package/React/Base/Surface/RCTSurfaceProtocol.h +2 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +11 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +35 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +5 -2
- package/React/CoreModules/RCTAccessibilityManager+Internal.h +24 -0
- package/React/CoreModules/RCTAccessibilityManager.mm +18 -3
- package/React/CoreModules/RCTActionSheetManager.mm +18 -5
- package/React/CoreModules/RCTAddressSanitizerCrashManager.h +12 -0
- package/React/CoreModules/RCTAddressSanitizerCrashManager.mm +18 -0
- package/React/CoreModules/RCTAlertController.m +9 -5
- package/React/CoreModules/RCTAlertManager.mm +1 -1
- package/React/CoreModules/RCTAppearance.mm +23 -25
- package/React/CoreModules/RCTDevLoadingView.mm +19 -19
- package/React/CoreModules/RCTDevMenu.mm +9 -9
- package/React/CoreModules/RCTDevSettings.mm +6 -6
- package/React/CoreModules/RCTDevSplitBundleLoader.mm +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/CoreModules/RCTEventDispatcher.mm +5 -0
- package/React/CoreModules/RCTExceptionsManager.mm +11 -24
- package/React/CoreModules/RCTLogBox.mm +1 -3
- package/React/CoreModules/RCTLogBoxView.h +2 -0
- package/React/CoreModules/RCTLogBoxView.mm +5 -0
- package/React/CoreModules/RCTPerfMonitor.mm +9 -4
- package/React/CoreModules/RCTRedBox.mm +1 -5
- package/React/CoreModules/React-CoreModules.podspec +2 -2
- package/React/CxxBridge/RCTCxxBridge.mm +21 -10
- package/React/CxxModule/RCTCxxMethod.mm +2 -0
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
- package/React/DevSupport/RCTPackagerConnection.h +3 -0
- package/React/DevSupport/RCTPackagerConnection.mm +9 -5
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +12 -4
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +6 -15
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +0 -3
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +1 -0
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +4 -6
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +29 -93
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +29 -5
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +2 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +5 -8
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +2 -2
- package/React/Fabric/Mounting/RCTMountingManager.mm +16 -2
- package/React/Fabric/RCTScheduler.mm +12 -5
- package/React/Fabric/RCTSurfacePresenter.mm +2 -10
- package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
- package/React/Fabric/Surface/RCTFabricSurface.h +9 -24
- package/React/Fabric/Surface/RCTFabricSurface.mm +6 -10
- package/React/Modules/RCTEventEmitter.h +2 -2
- package/React/Modules/RCTI18nUtil.h +6 -13
- package/React/Modules/RCTI18nUtil.m +47 -1
- package/React/Modules/RCTLayoutAnimation.m +2 -0
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -0
- package/React/Modules/RCTUIManager.m +19 -10
- package/React/React-RCTFabric.podspec +1 -2
- package/React/Tests/Text/RCTParagraphComponentViewTests.mm +7 -7
- package/React/Views/RCTFont.mm +58 -47
- package/React/Views/RCTShadowView.m +3 -1
- package/React/Views/RCTSwitch.h +1 -1
- package/React/Views/RCTSwitch.m +0 -15
- package/React/Views/RCTView.h +5 -11
- package/React/Views/RCTView.m +30 -36
- package/React/Views/RCTViewManager.m +13 -18
- package/React/Views/RCTViewUtils.h +20 -0
- package/React/Views/RCTViewUtils.m +24 -0
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +3 -5
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.h +2 -2
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.m +4 -4
- package/React/Views/ScrollView/RCTScrollContentView.m +10 -24
- package/React/Views/ScrollView/RCTScrollView.m +14 -35
- package/React/Views/ScrollView/RCTScrollViewManager.m +2 -7
- package/React/Views/UIView+React.m +7 -10
- package/React-Core.podspec +0 -12
- package/ReactAndroid/Android-prebuilt.mk +35 -2
- package/ReactAndroid/DevExperience.md +1 -1
- package/ReactAndroid/build.gradle +97 -229
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/androidTest/AndroidManifest.xml +1 -0
- package/ReactAndroid/src/androidTest/buck-runner/AndroidManifest.xml +2 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/ReactNativeTestRule.java +2 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -1
- package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +2 -1
- package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +2 -1
- package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +2 -1
- package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +25 -22
- package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +4 -3
- package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +15 -8
- package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +3 -2
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -7
- package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +3 -8
- package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +6 -3
- package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +6 -3
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +2 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java +14 -8
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceEventListener.java +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +86 -43
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +50 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +58 -10
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +13 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegate.java +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegateFactory.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +6 -3
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +102 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +35 -11
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +5 -72
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.java +28 -42
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/EmptyReactNativeConfig.java +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +3 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +54 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/ReactNativeConfig.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +8 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.java +43 -9
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.cpp +69 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +2 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +89 -36
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CoreComponentsRegistry.h +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +20 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/SurfaceHandlerBinding.cpp +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +11 -12
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +25 -13
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/JSCExecutor.java +6 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/AccessibilityInfoModule.java +41 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java +9 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java +7 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/{JavaScriptTimerManager.java → JavaScriptTimerExecutor.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +23 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/BUCK +0 -12
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +10 -25
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java +11 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +90 -10
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +11 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +38 -23
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +19 -22
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventCategoryDef.java +42 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcherImpl.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java +13 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +17 -9
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +56 -16
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java +15 -16
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +109 -19
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +12 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +107 -154
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +119 -144
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +247 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java +22 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +21 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +22 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +25 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +25 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +5 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +30 -16
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +6 -5
- package/ReactAndroid/src/main/jni/react/jni/BUCK +4 -5
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +49 -7
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +15 -2
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h +25 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactMarker.cpp +11 -3
- package/ReactAndroid/src/main/jni/react/jni/JReactMarker.h +3 -0
- package/{ReactCommon/react/renderer/core/Constants.h → ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp} +8 -9
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
- package/ReactAndroid/src/main/jni/react/perftests/BUCK +0 -4
- package/ReactAndroid/src/main/jni/third-party/libevent/event-config.h +339 -339
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +8 -0
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +6 -6
- package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +43 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java +3 -1
- package/ReactCommon/React-Fabric.podspec +2 -10
- package/ReactCommon/React-rncore.podspec +41 -0
- package/ReactCommon/better/BUCK +0 -6
- package/ReactCommon/callinvoker/BUCK +2 -8
- package/ReactCommon/cxxreact/Android.mk +2 -2
- package/ReactCommon/cxxreact/BUCK +1 -16
- package/ReactCommon/cxxreact/ReactMarker.cpp +5 -1
- package/ReactCommon/cxxreact/ReactMarker.h +9 -10
- package/ReactCommon/cxxreact/ReactNativeVersion.h +5 -1
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +7 -4
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +1238 -1491
- package/ReactCommon/hermes/inspector/tools/sandcastle/setup.sh +0 -4
- package/ReactCommon/jsi/BUCK +0 -9
- package/ReactCommon/jsi/jsi/jsi.h +4 -4
- package/ReactCommon/jsinspector/BUCK +1 -5
- package/ReactCommon/logger/BUCK +0 -5
- package/ReactCommon/react/config/BUCK +2 -6
- package/ReactCommon/react/debug/Android.mk +0 -2
- package/ReactCommon/react/debug/BUCK +0 -6
- package/ReactCommon/react/debug/react_native_assert.cpp +4 -4
- package/ReactCommon/react/nativemodule/core/BUCK +0 -5
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +14 -31
- package/ReactCommon/react/nativemodule/samples/BUCK +0 -7
- package/ReactCommon/react/renderer/animations/BUCK +1 -4
- package/ReactCommon/react/renderer/animations/LayoutAnimationCallbackWrapper.h +34 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +5 -26
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +8 -14
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +912 -1147
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +80 -245
- package/ReactCommon/react/renderer/animations/conversions.h +212 -0
- package/ReactCommon/react/renderer/animations/primitives.h +104 -0
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +3 -3
- package/ReactCommon/react/renderer/animations/utils.cpp +71 -0
- package/ReactCommon/react/renderer/animations/utils.h +80 -0
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +0 -1
- package/ReactCommon/react/renderer/attributedstring/BUCK +0 -6
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +7 -3
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +12 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +6 -15
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -5
- package/ReactCommon/react/renderer/attributedstring/conversions.h +87 -92
- package/ReactCommon/react/renderer/attributedstring/primitives.h +21 -19
- package/ReactCommon/react/renderer/componentregistry/BUCK +0 -6
- package/ReactCommon/react/renderer/componentregistry/native/BUCK +0 -6
- package/ReactCommon/react/renderer/components/image/BUCK +0 -6
- package/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.h +0 -2
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +0 -6
- package/ReactCommon/react/renderer/components/inputaccessory/InputAccessoryComponentDescriptor.h +0 -4
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +0 -6
- package/ReactCommon/react/renderer/components/modal/BUCK +0 -6
- package/ReactCommon/react/renderer/components/modal/ModalHostViewComponentDescriptor.h +0 -5
- package/ReactCommon/react/renderer/components/progressbar/BUCK +0 -6
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/root/BUCK +0 -6
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +0 -6
- package/ReactCommon/react/renderer/components/scrollview/BUCK +0 -6
- package/ReactCommon/react/renderer/components/slider/BUCK +0 -6
- package/ReactCommon/react/renderer/components/slider/SliderComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/switch/BUCK +0 -6
- package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/text/BUCK +0 -6
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +4 -10
- package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -20
- package/ReactCommon/react/renderer/components/textinput/BUCK +0 -6
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +2 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK +0 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.cpp +5 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.h +3 -0
- package/ReactCommon/react/renderer/components/unimplementedview/BUCK +0 -6
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +0 -4
- package/ReactCommon/react/renderer/components/view/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/view/BUCK +2 -6
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
- package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -23
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +18 -0
- package/ReactCommon/react/renderer/components/view/ViewProps.h +6 -0
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +2 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +7 -6
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +4 -0
- package/ReactCommon/react/renderer/core/BUCK +2 -6
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +14 -9
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +1 -10
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +9 -4
- package/ReactCommon/react/renderer/core/EventEmitter.h +2 -1
- package/ReactCommon/react/renderer/core/EventTarget.cpp +4 -2
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +13 -23
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +2 -2
- package/ReactCommon/react/renderer/core/Props.h +1 -0
- package/ReactCommon/react/renderer/core/PropsParserContext.h +3 -2
- package/ReactCommon/react/renderer/core/RawEvent.h +7 -5
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +7 -10
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
- package/ReactCommon/react/renderer/debug/BUCK +2 -6
- package/ReactCommon/react/renderer/element/BUCK +0 -6
- package/ReactCommon/react/renderer/graphics/Android.mk +1 -1
- package/ReactCommon/react/renderer/graphics/BUCK +0 -6
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -1
- package/ReactCommon/react/renderer/graphics/Transform.cpp +1 -1
- package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +8 -10
- package/ReactCommon/react/renderer/imagemanager/BUCK +0 -6
- package/ReactCommon/react/renderer/leakchecker/BUCK +0 -6
- package/ReactCommon/react/renderer/mapbuffer/BUCK +0 -6
- package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
- package/ReactCommon/react/renderer/mounting/BUCK +0 -6
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -7
- package/ReactCommon/react/renderer/runtimescheduler/ErrorUtils.h +36 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +28 -20
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +4 -3
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +32 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +36 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -3
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +26 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubErrorUtils.h +72 -0
- package/ReactCommon/react/renderer/scheduler/BUCK +0 -6
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +1 -4
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -1
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +4 -4
- package/ReactCommon/react/renderer/telemetry/BUCK +0 -6
- package/ReactCommon/react/renderer/templateprocessor/BUCK +0 -6
- package/ReactCommon/react/renderer/textlayoutmanager/BUCK +0 -6
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +23 -5
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +10 -35
- package/ReactCommon/react/renderer/timeline/BUCK +6 -12
- package/ReactCommon/react/renderer/uimanager/BUCK +0 -6
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +2 -2
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +1 -1
- package/ReactCommon/react/test_utils/BUCK +3 -6
- package/ReactCommon/react/test_utils/MockSurfaceHandler.h +26 -0
- package/ReactCommon/react/utils/BUCK +0 -6
- package/ReactCommon/react/utils/ContextContainer.h +0 -27
- package/ReactCommon/reactperflogger/BUCK +0 -4
- package/ReactCommon/runtimeexecutor/Android.mk +1 -1
- package/ReactCommon/runtimeexecutor/BUCK +0 -6
- package/ReactCommon/yoga/BUCK +1 -5
- package/flow/global.js +41 -0
- package/flow-typed/npm/glob_v7.x.x.js +79 -0
- package/index.js +41 -26
- package/jest/mockModal.js +31 -0
- package/jest/mockNativeComponent.js +4 -0
- package/jest/preprocessor.js +7 -75
- package/jest/setup.js +6 -3
- package/local-cli/cli.js +0 -0
- package/local-cli/generator-macos/templates/macos/Podfile +2 -7
- package/package.json +55 -32
- package/react.gradle +73 -26
- package/scripts/compose-source-maps.js +14 -10
- package/scripts/find-node.sh +19 -0
- package/scripts/generate-specs-cli.js +62 -10
- package/scripts/ios-configure-glog.sh +25 -0
- package/scripts/launchPackager.command +11 -3
- package/scripts/packager.sh +1 -1
- package/scripts/react-native-xcode.sh +7 -7
- package/scripts/react_native_pods.rb +372 -60
- package/scripts/update-ruby.sh +69 -0
- package/template/App.js +8 -4
- package/template/Gemfile +6 -0
- package/template/Gemfile.lock +100 -0
- package/template/_bundle/config +2 -0
- package/template/_flowconfig +1 -1
- package/template/_prettierrc.js +2 -2
- package/template/_ruby-version +1 -0
- package/template/android/app/build.gradle +12 -9
- package/template/android/app/src/debug/AndroidManifest.xml +1 -1
- package/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java +2 -1
- package/template/android/app/src/main/AndroidManifest.xml +3 -2
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- package/template/android/app/src/main/res/values/styles.xml +1 -0
- package/template/android/build.gradle +11 -7
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +6 -1
- package/template/android/gradlew +153 -104
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +0 -2
- package/template/package.json +4 -2
- package/third-party-podspecs/RCT-Folly.podspec +2 -2
- package/third-party-podspecs/glog.podspec +0 -1
- package/CHANGELOG.json +0 -500
- package/CHANGELOG.md +0 -240
- package/Libraries/.npmignore +0 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/Touchable/__mocks__/ensureComponentIsNative.js +0 -12
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
- package/Libraries/Interaction/InteractionMixin.js +0 -54
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
- package/React/Base/macOS/RCTDynamicColor.h +0 -28
- package/React/Base/macOS/RCTDynamicColor.m +0 -219
- package/React/Fabric/Surface/RCTFabricSurfaceHostingView.h +0 -15
- package/React/Fabric/Surface/RCTFabricSurfaceHostingView.mm +0 -27
- package/ReactAndroid/.npmignore +0 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
- package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/BUCK +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +0 -153
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +0 -117
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/BUCK +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/RuntimeSchedulerManager.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/Android.mk +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/BUCK +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/OnLoad.cpp +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.cpp +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.h +0 -40
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerDelegate.java +0 -57
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerInterface.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/BUCK +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerDelegate.java +0 -62
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerInterface.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerDelegate.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerInterface.java +0 -17
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerDelegate.java +0 -51
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerInterface.java +0 -21
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerDelegate.java +0 -63
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerInterface.java +0 -24
- package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
- package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
- package/ReactCommon/react/renderer/core/Constants.cpp +0 -24
- package/scripts/fixmacscripts.sh +0 -9
- package/scripts/generate-specs.sh +0 -99
- package/scripts/postInstall.js +0 -6
- package/template/_editorconfig +0 -3
- package/template/_gitattributes +0 -3
|
@@ -7,10 +7,21 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<bbacb11ee462ae80c14f12baf55dfb71>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
'use strict';
|
|
15
|
+
|
|
16
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
17
|
+
if (
|
|
18
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
19
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
20
|
+
'function'
|
|
21
|
+
) {
|
|
22
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
23
|
+
}
|
|
24
|
+
"use strict";
|
|
14
25
|
require("react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore");
|
|
15
26
|
var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"),
|
|
16
27
|
React = require("react");
|
|
@@ -782,18 +793,16 @@ function recomputePluginOrdering() {
|
|
|
782
793
|
for (var pluginName in namesToPlugins) {
|
|
783
794
|
var pluginModule = namesToPlugins[pluginName],
|
|
784
795
|
pluginIndex = eventPluginOrder.indexOf(pluginName);
|
|
785
|
-
if (
|
|
796
|
+
if (-1 >= pluginIndex)
|
|
786
797
|
throw Error(
|
|
787
798
|
"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" +
|
|
788
|
-
pluginName +
|
|
789
|
-
"`."
|
|
799
|
+
(pluginName + "`.")
|
|
790
800
|
);
|
|
791
801
|
if (!plugins[pluginIndex]) {
|
|
792
802
|
if (!pluginModule.extractEvents)
|
|
793
803
|
throw Error(
|
|
794
804
|
"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" +
|
|
795
|
-
pluginName +
|
|
796
|
-
"` does not."
|
|
805
|
+
(pluginName + "` does not.")
|
|
797
806
|
);
|
|
798
807
|
plugins[pluginIndex] = pluginModule;
|
|
799
808
|
pluginIndex = pluginModule.eventTypes;
|
|
@@ -804,8 +813,7 @@ function recomputePluginOrdering() {
|
|
|
804
813
|
if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))
|
|
805
814
|
throw Error(
|
|
806
815
|
"EventPluginRegistry: More than one plugin attempted to publish the same event name, `" +
|
|
807
|
-
eventName$jscomp$0 +
|
|
808
|
-
"`."
|
|
816
|
+
(eventName$jscomp$0 + "`.")
|
|
809
817
|
);
|
|
810
818
|
eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;
|
|
811
819
|
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
|
|
@@ -845,8 +853,7 @@ function publishRegistrationName(registrationName, pluginModule) {
|
|
|
845
853
|
if (registrationNameModules[registrationName])
|
|
846
854
|
throw Error(
|
|
847
855
|
"EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" +
|
|
848
|
-
registrationName +
|
|
849
|
-
"`."
|
|
856
|
+
(registrationName + "`.")
|
|
850
857
|
);
|
|
851
858
|
registrationNameModules[registrationName] = pluginModule;
|
|
852
859
|
}
|
|
@@ -930,7 +937,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
930
937
|
"ReactNativeBridgeEventPlugin"
|
|
931
938
|
]);
|
|
932
939
|
recomputePluginOrdering();
|
|
933
|
-
var injectedNamesToPlugins$jscomp$
|
|
940
|
+
var injectedNamesToPlugins$jscomp$inline_246 = {
|
|
934
941
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
935
942
|
ReactNativeBridgeEventPlugin: {
|
|
936
943
|
eventTypes: {},
|
|
@@ -965,34 +972,33 @@ var injectedNamesToPlugins$jscomp$inline_232 = {
|
|
|
965
972
|
}
|
|
966
973
|
}
|
|
967
974
|
},
|
|
968
|
-
isOrderingDirty$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
970
|
-
for (pluginName$jscomp$
|
|
975
|
+
isOrderingDirty$jscomp$inline_247 = !1,
|
|
976
|
+
pluginName$jscomp$inline_248;
|
|
977
|
+
for (pluginName$jscomp$inline_248 in injectedNamesToPlugins$jscomp$inline_246)
|
|
971
978
|
if (
|
|
972
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
-
pluginName$jscomp$
|
|
979
|
+
injectedNamesToPlugins$jscomp$inline_246.hasOwnProperty(
|
|
980
|
+
pluginName$jscomp$inline_248
|
|
974
981
|
)
|
|
975
982
|
) {
|
|
976
|
-
var pluginModule$jscomp$
|
|
977
|
-
injectedNamesToPlugins$jscomp$
|
|
983
|
+
var pluginModule$jscomp$inline_249 =
|
|
984
|
+
injectedNamesToPlugins$jscomp$inline_246[pluginName$jscomp$inline_248];
|
|
978
985
|
if (
|
|
979
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
980
|
-
namesToPlugins[pluginName$jscomp$
|
|
981
|
-
pluginModule$jscomp$
|
|
986
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_248) ||
|
|
987
|
+
namesToPlugins[pluginName$jscomp$inline_248] !==
|
|
988
|
+
pluginModule$jscomp$inline_249
|
|
982
989
|
) {
|
|
983
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
990
|
+
if (namesToPlugins[pluginName$jscomp$inline_248])
|
|
984
991
|
throw Error(
|
|
985
992
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
986
|
-
pluginName$jscomp$
|
|
987
|
-
"`."
|
|
993
|
+
(pluginName$jscomp$inline_248 + "`.")
|
|
988
994
|
);
|
|
989
995
|
namesToPlugins[
|
|
990
|
-
pluginName$jscomp$
|
|
991
|
-
] = pluginModule$jscomp$
|
|
992
|
-
isOrderingDirty$jscomp$
|
|
996
|
+
pluginName$jscomp$inline_248
|
|
997
|
+
] = pluginModule$jscomp$inline_249;
|
|
998
|
+
isOrderingDirty$jscomp$inline_247 = !0;
|
|
993
999
|
}
|
|
994
1000
|
}
|
|
995
|
-
isOrderingDirty$jscomp$
|
|
1001
|
+
isOrderingDirty$jscomp$inline_247 && recomputePluginOrdering();
|
|
996
1002
|
var instanceCache = new Map(),
|
|
997
1003
|
instanceProps = new Map();
|
|
998
1004
|
function getInstanceFromTag(tag) {
|
|
@@ -1293,7 +1299,7 @@ function getNearestMountedFiber(fiber) {
|
|
|
1293
1299
|
fiber = node;
|
|
1294
1300
|
do
|
|
1295
1301
|
(node = fiber),
|
|
1296
|
-
0 !== (node.flags &
|
|
1302
|
+
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
|
1297
1303
|
(fiber = node.return);
|
|
1298
1304
|
while (fiber);
|
|
1299
1305
|
}
|
|
@@ -1720,6 +1726,27 @@ function onCommitRoot(root, eventPriority) {
|
|
|
1720
1726
|
);
|
|
1721
1727
|
} catch (err) {}
|
|
1722
1728
|
}
|
|
1729
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1730
|
+
log = Math.log,
|
|
1731
|
+
LN2 = Math.LN2;
|
|
1732
|
+
function clz32Fallback(x) {
|
|
1733
|
+
x >>>= 0;
|
|
1734
|
+
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
1735
|
+
}
|
|
1736
|
+
function getLabelForLane(lane) {
|
|
1737
|
+
if (lane & 1) return "Sync";
|
|
1738
|
+
if (lane & 2) return "InputContinuousHydration";
|
|
1739
|
+
if (lane & 4) return "InputContinuous";
|
|
1740
|
+
if (lane & 8) return "DefaultHydration";
|
|
1741
|
+
if (lane & 16) return "Default";
|
|
1742
|
+
if (lane & 32) return "TransitionHydration";
|
|
1743
|
+
if (lane & 4194240) return "Transition";
|
|
1744
|
+
if (lane & 130023424) return "Retry";
|
|
1745
|
+
if (lane & 134217728) return "SelectiveHydration";
|
|
1746
|
+
if (lane & 268435456) return "IdleHydration";
|
|
1747
|
+
if (lane & 536870912) return "Idle";
|
|
1748
|
+
if (lane & 1073741824) return "Offscreen";
|
|
1749
|
+
}
|
|
1723
1750
|
var nextTransitionLane = 64,
|
|
1724
1751
|
nextRetryLane = 4194304;
|
|
1725
1752
|
function getHighestPriorityLanes(lanes) {
|
|
@@ -1859,6 +1886,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1859
1886
|
root = root.pendingLanes & -1073741825;
|
|
1860
1887
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1861
1888
|
}
|
|
1889
|
+
function includesBlockingLane(root, lanes) {
|
|
1890
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1891
|
+
}
|
|
1862
1892
|
function createLaneMap(initial) {
|
|
1863
1893
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1864
1894
|
return laneMap;
|
|
@@ -1930,12 +1960,6 @@ function movePendingFibersToMemoized(root, lanes) {
|
|
|
1930
1960
|
lanes &= ~root;
|
|
1931
1961
|
}
|
|
1932
1962
|
}
|
|
1933
|
-
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1934
|
-
log = Math.log,
|
|
1935
|
-
LN2 = Math.LN2;
|
|
1936
|
-
function clz32Fallback(lanes) {
|
|
1937
|
-
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
|
|
1938
|
-
}
|
|
1939
1963
|
var currentUpdatePriority = 0;
|
|
1940
1964
|
function lanesToEventPriority(lanes) {
|
|
1941
1965
|
lanes &= -lanes;
|
|
@@ -2092,7 +2116,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2092
2116
|
: pop(didPerformWorkStackCursor);
|
|
2093
2117
|
push(didPerformWorkStackCursor, didChange);
|
|
2094
2118
|
}
|
|
2095
|
-
|
|
2119
|
+
function is(x, y) {
|
|
2120
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2121
|
+
}
|
|
2122
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2123
|
+
syncQueue = null,
|
|
2096
2124
|
includesLegacySyncCallbacks = !1,
|
|
2097
2125
|
isFlushingSyncQueue = !1;
|
|
2098
2126
|
function flushSyncCallbacks() {
|
|
@@ -2120,11 +2148,114 @@ function flushSyncCallbacks() {
|
|
|
2120
2148
|
}
|
|
2121
2149
|
return null;
|
|
2122
2150
|
}
|
|
2123
|
-
var
|
|
2124
|
-
|
|
2125
|
-
|
|
2151
|
+
var supportsUserTimingV3 = !1;
|
|
2152
|
+
if (
|
|
2153
|
+
"undefined" !== typeof performance &&
|
|
2154
|
+
"function" === typeof performance.mark &&
|
|
2155
|
+
"function" === typeof performance.clearMarks
|
|
2156
|
+
) {
|
|
2157
|
+
var markOptions = {};
|
|
2158
|
+
Object.defineProperty(markOptions, "startTime", {
|
|
2159
|
+
get: function() {
|
|
2160
|
+
supportsUserTimingV3 = !0;
|
|
2161
|
+
return 0;
|
|
2162
|
+
},
|
|
2163
|
+
set: function() {}
|
|
2164
|
+
});
|
|
2165
|
+
try {
|
|
2166
|
+
performance.mark("__v3", markOptions);
|
|
2167
|
+
} catch (error) {
|
|
2168
|
+
} finally {
|
|
2169
|
+
performance.clearMarks("__v3");
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
var laneLabels = [];
|
|
2173
|
+
function getLaneLabels() {
|
|
2174
|
+
if (0 === laneLabels.length)
|
|
2175
|
+
for (var lane = 1, index$13 = 0; 31 > index$13; index$13++)
|
|
2176
|
+
laneLabels.push(getLabelForLane(lane)), (lane *= 2);
|
|
2177
|
+
return laneLabels;
|
|
2178
|
+
}
|
|
2179
|
+
function markAndClear(name) {
|
|
2180
|
+
performance.mark(name);
|
|
2181
|
+
performance.clearMarks(name);
|
|
2182
|
+
}
|
|
2183
|
+
function markInternalModuleRanges() {
|
|
2184
|
+
if (
|
|
2185
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
2186
|
+
"function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges
|
|
2187
|
+
) {
|
|
2188
|
+
var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();
|
|
2189
|
+
if (isArrayImpl(ranges))
|
|
2190
|
+
for (var i = 0; i < ranges.length; i++) {
|
|
2191
|
+
var range = ranges[i];
|
|
2192
|
+
if (isArrayImpl(range) && 2 === range.length) {
|
|
2193
|
+
range = ranges[i];
|
|
2194
|
+
var stopStackFrame = range[1];
|
|
2195
|
+
markAndClear("--react-internal-module-start-" + range[0]);
|
|
2196
|
+
markAndClear("--react-internal-module-stop-" + stopStackFrame);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
function markComponentRenderStarted(fiber) {
|
|
2202
|
+
supportsUserTimingV3 &&
|
|
2203
|
+
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2204
|
+
markAndClear("--component-render-start-" + fiber));
|
|
2205
|
+
}
|
|
2206
|
+
function markComponentRenderStopped() {
|
|
2207
|
+
supportsUserTimingV3 && markAndClear("--component-render-stop");
|
|
2208
|
+
}
|
|
2209
|
+
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
2210
|
+
supportsUserTimingV3 &&
|
|
2211
|
+
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2212
|
+
markAndClear("--component-layout-effect-unmount-start-" + fiber));
|
|
2213
|
+
}
|
|
2214
|
+
function markComponentLayoutEffectUnmountStopped() {
|
|
2215
|
+
supportsUserTimingV3 &&
|
|
2216
|
+
markAndClear("--component-layout-effect-unmount-stop");
|
|
2217
|
+
}
|
|
2218
|
+
var wakeableIDs = new ("function" === typeof WeakMap ? WeakMap : Map)(),
|
|
2219
|
+
wakeableID = 0;
|
|
2220
|
+
function getWakeableID(wakeable) {
|
|
2221
|
+
wakeableIDs.has(wakeable) || wakeableIDs.set(wakeable, wakeableID++);
|
|
2222
|
+
return wakeableIDs.get(wakeable);
|
|
2223
|
+
}
|
|
2224
|
+
function markComponentSuspended(fiber, wakeable, lanes) {
|
|
2225
|
+
if (supportsUserTimingV3) {
|
|
2226
|
+
var eventType = wakeableIDs.has(wakeable) ? "resuspend" : "suspend",
|
|
2227
|
+
id = getWakeableID(wakeable),
|
|
2228
|
+
componentName = getComponentNameFromFiber(fiber) || "Unknown";
|
|
2229
|
+
markAndClear(
|
|
2230
|
+
"--suspense-" +
|
|
2231
|
+
eventType +
|
|
2232
|
+
"-" +
|
|
2233
|
+
id +
|
|
2234
|
+
"-" +
|
|
2235
|
+
componentName +
|
|
2236
|
+
"-" +
|
|
2237
|
+
(null === fiber.alternate ? "mount" : "update") +
|
|
2238
|
+
"-" +
|
|
2239
|
+
lanes +
|
|
2240
|
+
"-" +
|
|
2241
|
+
(wakeable.displayName || "")
|
|
2242
|
+
);
|
|
2243
|
+
wakeable.then(
|
|
2244
|
+
function() {
|
|
2245
|
+
return markAndClear("--suspense-resolved-" + id + "-" + componentName);
|
|
2246
|
+
},
|
|
2247
|
+
function() {
|
|
2248
|
+
return markAndClear("--suspense-rejected-" + id + "-" + componentName);
|
|
2249
|
+
}
|
|
2250
|
+
);
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
function markStateUpdateScheduled(fiber, lane) {
|
|
2254
|
+
supportsUserTimingV3 &&
|
|
2255
|
+
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2256
|
+
markAndClear("--schedule-state-update-" + lane + "-" + fiber));
|
|
2126
2257
|
}
|
|
2127
|
-
var
|
|
2258
|
+
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2128
2259
|
function shallowEqual(objA, objB) {
|
|
2129
2260
|
if (objectIs(objA, objB)) return !0;
|
|
2130
2261
|
if (
|
|
@@ -2137,12 +2268,14 @@ function shallowEqual(objA, objB) {
|
|
|
2137
2268
|
var keysA = Object.keys(objA),
|
|
2138
2269
|
keysB = Object.keys(objB);
|
|
2139
2270
|
if (keysA.length !== keysB.length) return !1;
|
|
2140
|
-
for (keysB = 0; keysB < keysA.length; keysB++)
|
|
2271
|
+
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
2272
|
+
var currentKey = keysA[keysB];
|
|
2141
2273
|
if (
|
|
2142
|
-
!hasOwnProperty.call(objB,
|
|
2143
|
-
!objectIs(objA[
|
|
2274
|
+
!hasOwnProperty.call(objB, currentKey) ||
|
|
2275
|
+
!objectIs(objA[currentKey], objB[currentKey])
|
|
2144
2276
|
)
|
|
2145
2277
|
return !1;
|
|
2278
|
+
}
|
|
2146
2279
|
return !0;
|
|
2147
2280
|
}
|
|
2148
2281
|
function describeFiber(fiber) {
|
|
@@ -2421,7 +2554,7 @@ function processUpdateQueue(
|
|
|
2421
2554
|
newState = workInProgress;
|
|
2422
2555
|
break a;
|
|
2423
2556
|
case 3:
|
|
2424
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2557
|
+
workInProgress.flags = (workInProgress.flags & -65537) | 128;
|
|
2425
2558
|
case 0:
|
|
2426
2559
|
workInProgress = update.payload;
|
|
2427
2560
|
updateLane =
|
|
@@ -2537,6 +2670,7 @@ var classComponentUpdater = {
|
|
|
2537
2670
|
enqueueUpdate(inst, update);
|
|
2538
2671
|
payload = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2539
2672
|
null !== payload && entangleTransitions(payload, inst, lane);
|
|
2673
|
+
markStateUpdateScheduled(inst, lane);
|
|
2540
2674
|
},
|
|
2541
2675
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
2542
2676
|
inst = inst._reactInternals;
|
|
@@ -2549,17 +2683,21 @@ var classComponentUpdater = {
|
|
|
2549
2683
|
enqueueUpdate(inst, update);
|
|
2550
2684
|
payload = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2551
2685
|
null !== payload && entangleTransitions(payload, inst, lane);
|
|
2686
|
+
markStateUpdateScheduled(inst, lane);
|
|
2552
2687
|
},
|
|
2553
2688
|
enqueueForceUpdate: function(inst, callback) {
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2689
|
+
var fiber = inst._reactInternals,
|
|
2690
|
+
eventTime = requestEventTime();
|
|
2691
|
+
inst = requestUpdateLane(fiber);
|
|
2692
|
+
var update = createUpdate(eventTime, inst);
|
|
2558
2693
|
update.tag = 2;
|
|
2559
2694
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2560
|
-
enqueueUpdate(
|
|
2561
|
-
callback = scheduleUpdateOnFiber(
|
|
2562
|
-
null !== callback && entangleTransitions(callback,
|
|
2695
|
+
enqueueUpdate(fiber, update);
|
|
2696
|
+
callback = scheduleUpdateOnFiber(fiber, inst, eventTime);
|
|
2697
|
+
null !== callback && entangleTransitions(callback, fiber, inst);
|
|
2698
|
+
supportsUserTimingV3 &&
|
|
2699
|
+
((callback = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2700
|
+
markAndClear("--schedule-forced-update-" + inst + "-" + callback));
|
|
2563
2701
|
}
|
|
2564
2702
|
};
|
|
2565
2703
|
function checkShouldComponentUpdate(
|
|
@@ -2652,6 +2790,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2652
2790
|
"function" === typeof instance.componentDidMount &&
|
|
2653
2791
|
(workInProgress.flags |= 4);
|
|
2654
2792
|
}
|
|
2793
|
+
var forkStack = [],
|
|
2794
|
+
forkStackIndex = 0,
|
|
2795
|
+
treeForkProvider = null,
|
|
2796
|
+
idStack = [],
|
|
2797
|
+
idStackIndex = 0,
|
|
2798
|
+
treeContextProvider = null;
|
|
2799
|
+
function popTreeContext(workInProgress) {
|
|
2800
|
+
for (; workInProgress === treeForkProvider; )
|
|
2801
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2802
|
+
(forkStack[forkStackIndex] = null),
|
|
2803
|
+
--forkStackIndex,
|
|
2804
|
+
(forkStack[forkStackIndex] = null);
|
|
2805
|
+
for (; workInProgress === treeContextProvider; )
|
|
2806
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2807
|
+
(idStack[idStackIndex] = null),
|
|
2808
|
+
--idStackIndex,
|
|
2809
|
+
(idStack[idStackIndex] = null),
|
|
2810
|
+
--idStackIndex,
|
|
2811
|
+
(idStack[idStackIndex] = null);
|
|
2812
|
+
}
|
|
2655
2813
|
function coerceRef(returnFiber, current, element) {
|
|
2656
2814
|
returnFiber = element.ref;
|
|
2657
2815
|
if (
|
|
@@ -2674,7 +2832,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2674
2832
|
returnFiber +
|
|
2675
2833
|
". This error is likely caused by a bug in React. Please file an issue."
|
|
2676
2834
|
);
|
|
2677
|
-
var
|
|
2835
|
+
var resolvedInst = inst,
|
|
2836
|
+
stringRef = "" + returnFiber;
|
|
2678
2837
|
if (
|
|
2679
2838
|
null !== current &&
|
|
2680
2839
|
null !== current.ref &&
|
|
@@ -2683,8 +2842,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2683
2842
|
)
|
|
2684
2843
|
return current.ref;
|
|
2685
2844
|
current = function(value) {
|
|
2686
|
-
var refs =
|
|
2687
|
-
refs === emptyRefsObject && (refs =
|
|
2845
|
+
var refs = resolvedInst.refs;
|
|
2846
|
+
refs === emptyRefsObject && (refs = resolvedInst.refs = {});
|
|
2688
2847
|
null === value ? delete refs[stringRef] : (refs[stringRef] = value);
|
|
2689
2848
|
};
|
|
2690
2849
|
current._stringRef = stringRef;
|
|
@@ -2745,7 +2904,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2745
2904
|
}
|
|
2746
2905
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
2747
2906
|
newFiber.index = newIndex;
|
|
2748
|
-
if (!shouldTrackSideEffects)
|
|
2907
|
+
if (!shouldTrackSideEffects)
|
|
2908
|
+
return (newFiber.flags |= 1048576), lastPlacedIndex;
|
|
2749
2909
|
newIndex = newFiber.alternate;
|
|
2750
2910
|
if (null !== newIndex)
|
|
2751
2911
|
return (
|
|
@@ -3349,7 +3509,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
3349
3509
|
currentHook = null,
|
|
3350
3510
|
workInProgressHook = null,
|
|
3351
3511
|
didScheduleRenderPhaseUpdate = !1,
|
|
3352
|
-
didScheduleRenderPhaseUpdateDuringThisPass = !1
|
|
3512
|
+
didScheduleRenderPhaseUpdateDuringThisPass = !1,
|
|
3513
|
+
globalClientIdCounter = 0;
|
|
3353
3514
|
function throwInvalidHookError() {
|
|
3354
3515
|
throw Error(
|
|
3355
3516
|
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
@@ -3383,7 +3544,7 @@ function renderWithHooks(
|
|
|
3383
3544
|
nextRenderLanes = 0;
|
|
3384
3545
|
do {
|
|
3385
3546
|
didScheduleRenderPhaseUpdateDuringThisPass = !1;
|
|
3386
|
-
if (
|
|
3547
|
+
if (25 <= nextRenderLanes)
|
|
3387
3548
|
throw Error(
|
|
3388
3549
|
"Too many re-renders. React limits the number of renders to prevent an infinite loop."
|
|
3389
3550
|
);
|
|
@@ -3484,19 +3645,18 @@ function updateReducer(reducer) {
|
|
|
3484
3645
|
(newBaseQueueLast = newBaseQueueLast.next = {
|
|
3485
3646
|
lane: 0,
|
|
3486
3647
|
action: update.action,
|
|
3487
|
-
|
|
3648
|
+
hasEagerState: update.hasEagerState,
|
|
3488
3649
|
eagerState: update.eagerState,
|
|
3489
3650
|
next: null
|
|
3490
3651
|
}),
|
|
3491
|
-
(current =
|
|
3492
|
-
update.
|
|
3493
|
-
|
|
3494
|
-
: reducer(current, update.action));
|
|
3652
|
+
(current = update.hasEagerState
|
|
3653
|
+
? update.eagerState
|
|
3654
|
+
: reducer(current, update.action));
|
|
3495
3655
|
else {
|
|
3496
3656
|
var clone = {
|
|
3497
3657
|
lane: updateLane,
|
|
3498
3658
|
action: update.action,
|
|
3499
|
-
|
|
3659
|
+
hasEagerState: update.hasEagerState,
|
|
3500
3660
|
eagerState: update.eagerState,
|
|
3501
3661
|
next: null
|
|
3502
3662
|
};
|
|
@@ -3616,9 +3776,9 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3616
3776
|
latestSetSnapshot(latestGetSnapshot(source._source));
|
|
3617
3777
|
var lane = requestUpdateLane(fiber);
|
|
3618
3778
|
root.mutableReadLanes |= lane & root.pendingLanes;
|
|
3619
|
-
} catch (error) {
|
|
3779
|
+
} catch (error$33) {
|
|
3620
3780
|
latestSetSnapshot(function() {
|
|
3621
|
-
throw error;
|
|
3781
|
+
throw error$33;
|
|
3622
3782
|
});
|
|
3623
3783
|
}
|
|
3624
3784
|
});
|
|
@@ -3636,7 +3796,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3636
3796
|
lastRenderedReducer: basicStateReducer,
|
|
3637
3797
|
lastRenderedState: snapshot
|
|
3638
3798
|
}),
|
|
3639
|
-
(hook.dispatch = setSnapshot =
|
|
3799
|
+
(hook.dispatch = setSnapshot = dispatchSetState.bind(
|
|
3640
3800
|
null,
|
|
3641
3801
|
currentlyRenderingFiber$1,
|
|
3642
3802
|
hook
|
|
@@ -3651,11 +3811,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3651
3811
|
var hook = updateWorkInProgressHook();
|
|
3652
3812
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3653
3813
|
}
|
|
3814
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3815
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3816
|
+
hook = mountWorkInProgressHook();
|
|
3817
|
+
var nextSnapshot = getSnapshot();
|
|
3818
|
+
var root = workInProgressRoot;
|
|
3819
|
+
if (null === root)
|
|
3820
|
+
throw Error(
|
|
3821
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3822
|
+
);
|
|
3823
|
+
includesBlockingLane(root, renderLanes) ||
|
|
3824
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3825
|
+
hook.memoizedState = nextSnapshot;
|
|
3826
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3827
|
+
hook.queue = root;
|
|
3828
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [subscribe]);
|
|
3829
|
+
fiber.flags |= 2048;
|
|
3830
|
+
pushEffect(
|
|
3831
|
+
9,
|
|
3832
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3833
|
+
void 0,
|
|
3834
|
+
null
|
|
3835
|
+
);
|
|
3836
|
+
return nextSnapshot;
|
|
3837
|
+
}
|
|
3838
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3839
|
+
fiber.flags |= 16384;
|
|
3840
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3841
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3842
|
+
null === getSnapshot
|
|
3843
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3844
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3845
|
+
(getSnapshot.stores = [fiber]))
|
|
3846
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3847
|
+
null === renderedSnapshot
|
|
3848
|
+
? (getSnapshot.stores = [fiber])
|
|
3849
|
+
: renderedSnapshot.push(fiber));
|
|
3850
|
+
}
|
|
3851
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3852
|
+
inst.value = nextSnapshot;
|
|
3853
|
+
inst.getSnapshot = getSnapshot;
|
|
3854
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3855
|
+
}
|
|
3856
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3857
|
+
return subscribe(function() {
|
|
3858
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3859
|
+
});
|
|
3860
|
+
}
|
|
3861
|
+
function checkIfSnapshotChanged(inst) {
|
|
3862
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3863
|
+
inst = inst.value;
|
|
3864
|
+
try {
|
|
3865
|
+
var nextValue = latestGetSnapshot();
|
|
3866
|
+
return !objectIs(inst, nextValue);
|
|
3867
|
+
} catch (error$34) {
|
|
3868
|
+
return !0;
|
|
3869
|
+
}
|
|
3870
|
+
}
|
|
3654
3871
|
function mountState(initialState) {
|
|
3655
3872
|
var hook = mountWorkInProgressHook();
|
|
3656
3873
|
"function" === typeof initialState && (initialState = initialState());
|
|
3657
3874
|
hook.memoizedState = hook.baseState = initialState;
|
|
3658
|
-
initialState =
|
|
3875
|
+
initialState = {
|
|
3659
3876
|
pending: null,
|
|
3660
3877
|
interleaved: null,
|
|
3661
3878
|
lanes: 0,
|
|
@@ -3663,7 +3880,8 @@ function mountState(initialState) {
|
|
|
3663
3880
|
lastRenderedReducer: basicStateReducer,
|
|
3664
3881
|
lastRenderedState: initialState
|
|
3665
3882
|
};
|
|
3666
|
-
|
|
3883
|
+
hook.queue = initialState;
|
|
3884
|
+
initialState = initialState.dispatch = dispatchSetState.bind(
|
|
3667
3885
|
null,
|
|
3668
3886
|
currentlyRenderingFiber$1,
|
|
3669
3887
|
initialState
|
|
@@ -3674,7 +3892,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3674
3892
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3675
3893
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3676
3894
|
null === create
|
|
3677
|
-
? ((create = { lastEffect: null }),
|
|
3895
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3678
3896
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3679
3897
|
(create.lastEffect = tag.next = tag))
|
|
3680
3898
|
: ((destroy = create.lastEffect),
|
|
@@ -3715,14 +3933,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3715
3933
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3716
3934
|
}
|
|
3717
3935
|
function mountEffect(create, deps) {
|
|
3718
|
-
return mountEffectImpl(
|
|
3936
|
+
return mountEffectImpl(8390656, 8, create, deps);
|
|
3719
3937
|
}
|
|
3720
3938
|
function updateEffect(create, deps) {
|
|
3721
|
-
return updateEffectImpl(
|
|
3939
|
+
return updateEffectImpl(2048, 8, create, deps);
|
|
3722
3940
|
}
|
|
3723
|
-
function
|
|
3941
|
+
function updateInsertionEffect(create, deps) {
|
|
3724
3942
|
return updateEffectImpl(4, 2, create, deps);
|
|
3725
3943
|
}
|
|
3944
|
+
function updateLayoutEffect(create, deps) {
|
|
3945
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3946
|
+
}
|
|
3726
3947
|
function imperativeHandleEffect(create, ref) {
|
|
3727
3948
|
if ("function" === typeof ref)
|
|
3728
3949
|
return (
|
|
@@ -3745,7 +3966,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3745
3966
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3746
3967
|
return updateEffectImpl(
|
|
3747
3968
|
4,
|
|
3748
|
-
|
|
3969
|
+
4,
|
|
3749
3970
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3750
3971
|
deps
|
|
3751
3972
|
);
|
|
@@ -3792,47 +4013,39 @@ function startTransition(setPending, callback) {
|
|
|
3792
4013
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3793
4014
|
}
|
|
3794
4015
|
}
|
|
3795
|
-
function
|
|
3796
|
-
|
|
3797
|
-
|
|
4016
|
+
function updateId() {
|
|
4017
|
+
return updateWorkInProgressHook().memoizedState;
|
|
4018
|
+
}
|
|
4019
|
+
function dispatchReducerAction(fiber, queue, action) {
|
|
4020
|
+
var lane = requestUpdateLane(fiber);
|
|
4021
|
+
action = {
|
|
4022
|
+
lane: lane,
|
|
4023
|
+
action: action,
|
|
4024
|
+
hasEagerState: !1,
|
|
4025
|
+
eagerState: null,
|
|
4026
|
+
next: null
|
|
4027
|
+
};
|
|
4028
|
+
isRenderPhaseUpdate(fiber)
|
|
4029
|
+
? enqueueRenderPhaseUpdate(queue, action)
|
|
4030
|
+
: (enqueueUpdate$1(fiber, queue, action),
|
|
4031
|
+
(action = requestEventTime()),
|
|
4032
|
+
(action = scheduleUpdateOnFiber(fiber, lane, action)),
|
|
4033
|
+
null !== action && entangleTransitionUpdate(action, queue, lane));
|
|
4034
|
+
markStateUpdateScheduled(fiber, lane);
|
|
4035
|
+
}
|
|
4036
|
+
function dispatchSetState(fiber, queue, action) {
|
|
4037
|
+
var lane = requestUpdateLane(fiber),
|
|
3798
4038
|
update = {
|
|
3799
4039
|
lane: lane,
|
|
3800
4040
|
action: action,
|
|
3801
|
-
|
|
4041
|
+
hasEagerState: !1,
|
|
3802
4042
|
eagerState: null,
|
|
3803
4043
|
next: null
|
|
3804
|
-
}
|
|
3805
|
-
|
|
3806
|
-
if (
|
|
3807
|
-
fiber === currentlyRenderingFiber$1 ||
|
|
3808
|
-
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3809
|
-
)
|
|
3810
|
-
(didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0),
|
|
3811
|
-
(lane = queue.pending),
|
|
3812
|
-
null === lane
|
|
3813
|
-
? (update.next = update)
|
|
3814
|
-
: ((update.next = lane.next), (lane.next = update)),
|
|
3815
|
-
(queue.pending = update);
|
|
4044
|
+
};
|
|
4045
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3816
4046
|
else {
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
0 !== (fiber.mode & 1) &&
|
|
3820
|
-
0 === (executionContext & 2)
|
|
3821
|
-
) {
|
|
3822
|
-
var interleaved = queue.interleaved;
|
|
3823
|
-
null === interleaved
|
|
3824
|
-
? ((update.next = update),
|
|
3825
|
-
null === interleavedQueues
|
|
3826
|
-
? (interleavedQueues = [queue])
|
|
3827
|
-
: interleavedQueues.push(queue))
|
|
3828
|
-
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
3829
|
-
queue.interleaved = update;
|
|
3830
|
-
} else
|
|
3831
|
-
(interleaved = queue.pending),
|
|
3832
|
-
null === interleaved
|
|
3833
|
-
? (update.next = update)
|
|
3834
|
-
: ((update.next = interleaved.next), (interleaved.next = update)),
|
|
3835
|
-
(queue.pending = update);
|
|
4047
|
+
enqueueUpdate$1(fiber, queue, update);
|
|
4048
|
+
var alternate = fiber.alternate;
|
|
3836
4049
|
if (
|
|
3837
4050
|
0 === fiber.lanes &&
|
|
3838
4051
|
(null === alternate || 0 === alternate.lanes) &&
|
|
@@ -3841,20 +4054,58 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3841
4054
|
try {
|
|
3842
4055
|
var currentState = queue.lastRenderedState,
|
|
3843
4056
|
eagerState = alternate(currentState, action);
|
|
3844
|
-
update.
|
|
4057
|
+
update.hasEagerState = !0;
|
|
3845
4058
|
update.eagerState = eagerState;
|
|
3846
4059
|
if (objectIs(eagerState, currentState)) return;
|
|
3847
|
-
} catch (error) {
|
|
4060
|
+
} catch (error$36) {
|
|
3848
4061
|
} finally {
|
|
3849
4062
|
}
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
4063
|
+
action = requestEventTime();
|
|
4064
|
+
action = scheduleUpdateOnFiber(fiber, lane, action);
|
|
4065
|
+
null !== action && entangleTransitionUpdate(action, queue, lane);
|
|
4066
|
+
}
|
|
4067
|
+
markStateUpdateScheduled(fiber, lane);
|
|
4068
|
+
}
|
|
4069
|
+
function isRenderPhaseUpdate(fiber) {
|
|
4070
|
+
var alternate = fiber.alternate;
|
|
4071
|
+
return (
|
|
4072
|
+
fiber === currentlyRenderingFiber$1 ||
|
|
4073
|
+
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
4074
|
+
);
|
|
4075
|
+
}
|
|
4076
|
+
function enqueueRenderPhaseUpdate(queue, update) {
|
|
4077
|
+
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
|
|
4078
|
+
var pending = queue.pending;
|
|
4079
|
+
null === pending
|
|
4080
|
+
? (update.next = update)
|
|
4081
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
4082
|
+
queue.pending = update;
|
|
4083
|
+
}
|
|
4084
|
+
function enqueueUpdate$1(fiber, queue, update) {
|
|
4085
|
+
null !== workInProgressRoot &&
|
|
4086
|
+
0 !== (fiber.mode & 1) &&
|
|
4087
|
+
0 === (executionContext & 2)
|
|
4088
|
+
? ((fiber = queue.interleaved),
|
|
4089
|
+
null === fiber
|
|
4090
|
+
? ((update.next = update),
|
|
4091
|
+
null === interleavedQueues
|
|
4092
|
+
? (interleavedQueues = [queue])
|
|
4093
|
+
: interleavedQueues.push(queue))
|
|
4094
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
4095
|
+
(queue.interleaved = update))
|
|
4096
|
+
: ((fiber = queue.pending),
|
|
4097
|
+
null === fiber
|
|
4098
|
+
? (update.next = update)
|
|
4099
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
4100
|
+
(queue.pending = update));
|
|
4101
|
+
}
|
|
4102
|
+
function entangleTransitionUpdate(root, queue, lane) {
|
|
4103
|
+
if (0 !== (lane & 4194240)) {
|
|
4104
|
+
var queueLanes = queue.lanes;
|
|
4105
|
+
queueLanes &= root.pendingLanes;
|
|
4106
|
+
lane |= queueLanes;
|
|
4107
|
+
queue.lanes = lane;
|
|
4108
|
+
markRootEntangled(root, lane);
|
|
3858
4109
|
}
|
|
3859
4110
|
}
|
|
3860
4111
|
var ContextOnlyDispatcher = {
|
|
@@ -3863,6 +4114,7 @@ var ContextOnlyDispatcher = {
|
|
|
3863
4114
|
useContext: throwInvalidHookError,
|
|
3864
4115
|
useEffect: throwInvalidHookError,
|
|
3865
4116
|
useImperativeHandle: throwInvalidHookError,
|
|
4117
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3866
4118
|
useLayoutEffect: throwInvalidHookError,
|
|
3867
4119
|
useMemo: throwInvalidHookError,
|
|
3868
4120
|
useReducer: throwInvalidHookError,
|
|
@@ -3872,7 +4124,8 @@ var ContextOnlyDispatcher = {
|
|
|
3872
4124
|
useDeferredValue: throwInvalidHookError,
|
|
3873
4125
|
useTransition: throwInvalidHookError,
|
|
3874
4126
|
useMutableSource: throwInvalidHookError,
|
|
3875
|
-
|
|
4127
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
4128
|
+
useId: throwInvalidHookError,
|
|
3876
4129
|
unstable_isNewReconciler: !1
|
|
3877
4130
|
},
|
|
3878
4131
|
HooksDispatcherOnMount = {
|
|
@@ -3890,12 +4143,15 @@ var ContextOnlyDispatcher = {
|
|
|
3890
4143
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3891
4144
|
return mountEffectImpl(
|
|
3892
4145
|
4,
|
|
3893
|
-
|
|
4146
|
+
4,
|
|
3894
4147
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3895
4148
|
deps
|
|
3896
4149
|
);
|
|
3897
4150
|
},
|
|
3898
4151
|
useLayoutEffect: function(create, deps) {
|
|
4152
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
4153
|
+
},
|
|
4154
|
+
useInsertionEffect: function(create, deps) {
|
|
3899
4155
|
return mountEffectImpl(4, 2, create, deps);
|
|
3900
4156
|
},
|
|
3901
4157
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3909,7 +4165,7 @@ var ContextOnlyDispatcher = {
|
|
|
3909
4165
|
var hook = mountWorkInProgressHook();
|
|
3910
4166
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3911
4167
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3912
|
-
reducer =
|
|
4168
|
+
reducer = {
|
|
3913
4169
|
pending: null,
|
|
3914
4170
|
interleaved: null,
|
|
3915
4171
|
lanes: 0,
|
|
@@ -3917,7 +4173,8 @@ var ContextOnlyDispatcher = {
|
|
|
3917
4173
|
lastRenderedReducer: reducer,
|
|
3918
4174
|
lastRenderedState: initialArg
|
|
3919
4175
|
};
|
|
3920
|
-
|
|
4176
|
+
hook.queue = reducer;
|
|
4177
|
+
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
3921
4178
|
null,
|
|
3922
4179
|
currentlyRenderingFiber$1,
|
|
3923
4180
|
reducer
|
|
@@ -3965,8 +4222,11 @@ var ContextOnlyDispatcher = {
|
|
|
3965
4222
|
};
|
|
3966
4223
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3967
4224
|
},
|
|
3968
|
-
|
|
3969
|
-
|
|
4225
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4226
|
+
useId: function() {
|
|
4227
|
+
var hook = mountWorkInProgressHook();
|
|
4228
|
+
var id = "r:" + (globalClientIdCounter++).toString(32);
|
|
4229
|
+
return (hook.memoizedState = id);
|
|
3970
4230
|
},
|
|
3971
4231
|
unstable_isNewReconciler: !1
|
|
3972
4232
|
},
|
|
@@ -3976,6 +4236,7 @@ var ContextOnlyDispatcher = {
|
|
|
3976
4236
|
useContext: readContext,
|
|
3977
4237
|
useEffect: updateEffect,
|
|
3978
4238
|
useImperativeHandle: updateImperativeHandle,
|
|
4239
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3979
4240
|
useLayoutEffect: updateLayoutEffect,
|
|
3980
4241
|
useMemo: updateMemo,
|
|
3981
4242
|
useReducer: updateReducer,
|
|
@@ -4008,9 +4269,47 @@ var ContextOnlyDispatcher = {
|
|
|
4008
4269
|
return [isPending, start];
|
|
4009
4270
|
},
|
|
4010
4271
|
useMutableSource: updateMutableSource,
|
|
4011
|
-
|
|
4012
|
-
|
|
4272
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4273
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4274
|
+
hook = updateWorkInProgressHook(),
|
|
4275
|
+
nextSnapshot = getSnapshot(),
|
|
4276
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4277
|
+
snapshotChanged &&
|
|
4278
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4279
|
+
hook = hook.queue;
|
|
4280
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4281
|
+
subscribe
|
|
4282
|
+
]);
|
|
4283
|
+
if (
|
|
4284
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4285
|
+
snapshotChanged ||
|
|
4286
|
+
(null !== workInProgressHook &&
|
|
4287
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4288
|
+
) {
|
|
4289
|
+
fiber.flags |= 2048;
|
|
4290
|
+
pushEffect(
|
|
4291
|
+
9,
|
|
4292
|
+
updateStoreInstance.bind(
|
|
4293
|
+
null,
|
|
4294
|
+
fiber,
|
|
4295
|
+
hook,
|
|
4296
|
+
nextSnapshot,
|
|
4297
|
+
getSnapshot
|
|
4298
|
+
),
|
|
4299
|
+
void 0,
|
|
4300
|
+
null
|
|
4301
|
+
);
|
|
4302
|
+
subscribe = workInProgressRoot;
|
|
4303
|
+
if (null === subscribe)
|
|
4304
|
+
throw Error(
|
|
4305
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4306
|
+
);
|
|
4307
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4308
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4309
|
+
}
|
|
4310
|
+
return nextSnapshot;
|
|
4013
4311
|
},
|
|
4312
|
+
useId: updateId,
|
|
4014
4313
|
unstable_isNewReconciler: !1
|
|
4015
4314
|
},
|
|
4016
4315
|
HooksDispatcherOnRerender = {
|
|
@@ -4019,6 +4318,7 @@ var ContextOnlyDispatcher = {
|
|
|
4019
4318
|
useContext: readContext,
|
|
4020
4319
|
useEffect: updateEffect,
|
|
4021
4320
|
useImperativeHandle: updateImperativeHandle,
|
|
4321
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4022
4322
|
useLayoutEffect: updateLayoutEffect,
|
|
4023
4323
|
useMemo: updateMemo,
|
|
4024
4324
|
useReducer: rerenderReducer,
|
|
@@ -4051,9 +4351,8 @@ var ContextOnlyDispatcher = {
|
|
|
4051
4351
|
return [isPending, start];
|
|
4052
4352
|
},
|
|
4053
4353
|
useMutableSource: updateMutableSource,
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
},
|
|
4354
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4355
|
+
useId: updateId,
|
|
4057
4356
|
unstable_isNewReconciler: !1
|
|
4058
4357
|
},
|
|
4059
4358
|
now$1 = Scheduler.unstable_now,
|
|
@@ -4143,7 +4442,7 @@ function logCapturedError(boundary, errorInfo) {
|
|
|
4143
4442
|
});
|
|
4144
4443
|
}
|
|
4145
4444
|
}
|
|
4146
|
-
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4445
|
+
var PossiblyWeakMap$1 = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4147
4446
|
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
4148
4447
|
lane = createUpdate(-1, lane);
|
|
4149
4448
|
lane.tag = 3;
|
|
@@ -4160,9 +4459,9 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4160
4459
|
lane.tag = 3;
|
|
4161
4460
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
4162
4461
|
if ("function" === typeof getDerivedStateFromError) {
|
|
4163
|
-
var error = errorInfo.value;
|
|
4462
|
+
var error$38 = errorInfo.value;
|
|
4164
4463
|
lane.payload = function() {
|
|
4165
|
-
return getDerivedStateFromError(error);
|
|
4464
|
+
return getDerivedStateFromError(error$38);
|
|
4166
4465
|
};
|
|
4167
4466
|
lane.callback = function() {
|
|
4168
4467
|
logCapturedError(fiber, errorInfo);
|
|
@@ -4226,14 +4525,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4226
4525
|
break;
|
|
4227
4526
|
case "collapsed":
|
|
4228
4527
|
lastTailNode = renderState.tail;
|
|
4229
|
-
for (var lastTailNode$
|
|
4230
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4528
|
+
for (var lastTailNode$43 = null; null !== lastTailNode; )
|
|
4529
|
+
null !== lastTailNode.alternate && (lastTailNode$43 = lastTailNode),
|
|
4231
4530
|
(lastTailNode = lastTailNode.sibling);
|
|
4232
|
-
null === lastTailNode$
|
|
4531
|
+
null === lastTailNode$43
|
|
4233
4532
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4234
4533
|
? (renderState.tail = null)
|
|
4235
4534
|
: (renderState.tail.sibling = null)
|
|
4236
|
-
: (lastTailNode$
|
|
4535
|
+
: (lastTailNode$43.sibling = null);
|
|
4237
4536
|
}
|
|
4238
4537
|
}
|
|
4239
4538
|
function bubbleProperties(completedWork) {
|
|
@@ -4245,59 +4544,60 @@ function bubbleProperties(completedWork) {
|
|
|
4245
4544
|
if (didBailout)
|
|
4246
4545
|
if (0 !== (completedWork.mode & 2)) {
|
|
4247
4546
|
for (
|
|
4248
|
-
var treeBaseDuration$
|
|
4249
|
-
child$
|
|
4250
|
-
null !== child$
|
|
4547
|
+
var treeBaseDuration$45 = completedWork.selfBaseDuration,
|
|
4548
|
+
child$46 = completedWork.child;
|
|
4549
|
+
null !== child$46;
|
|
4251
4550
|
|
|
4252
4551
|
)
|
|
4253
|
-
(newChildLanes |= child$
|
|
4254
|
-
(subtreeFlags |= child$
|
|
4255
|
-
(subtreeFlags |= child$
|
|
4256
|
-
(treeBaseDuration$
|
|
4257
|
-
(child$
|
|
4258
|
-
completedWork.treeBaseDuration = treeBaseDuration$
|
|
4552
|
+
(newChildLanes |= child$46.lanes | child$46.childLanes),
|
|
4553
|
+
(subtreeFlags |= child$46.subtreeFlags & 14680064),
|
|
4554
|
+
(subtreeFlags |= child$46.flags & 14680064),
|
|
4555
|
+
(treeBaseDuration$45 += child$46.treeBaseDuration),
|
|
4556
|
+
(child$46 = child$46.sibling);
|
|
4557
|
+
completedWork.treeBaseDuration = treeBaseDuration$45;
|
|
4259
4558
|
} else
|
|
4260
4559
|
for (
|
|
4261
|
-
treeBaseDuration$
|
|
4262
|
-
null !== treeBaseDuration$
|
|
4560
|
+
treeBaseDuration$45 = completedWork.child;
|
|
4561
|
+
null !== treeBaseDuration$45;
|
|
4263
4562
|
|
|
4264
4563
|
)
|
|
4265
4564
|
(newChildLanes |=
|
|
4266
|
-
treeBaseDuration$
|
|
4267
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4268
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4269
|
-
(treeBaseDuration$
|
|
4270
|
-
(treeBaseDuration$
|
|
4565
|
+
treeBaseDuration$45.lanes | treeBaseDuration$45.childLanes),
|
|
4566
|
+
(subtreeFlags |= treeBaseDuration$45.subtreeFlags & 14680064),
|
|
4567
|
+
(subtreeFlags |= treeBaseDuration$45.flags & 14680064),
|
|
4568
|
+
(treeBaseDuration$45.return = completedWork),
|
|
4569
|
+
(treeBaseDuration$45 = treeBaseDuration$45.sibling);
|
|
4271
4570
|
else if (0 !== (completedWork.mode & 2)) {
|
|
4272
|
-
treeBaseDuration$
|
|
4273
|
-
child$
|
|
4571
|
+
treeBaseDuration$45 = completedWork.actualDuration;
|
|
4572
|
+
child$46 = completedWork.selfBaseDuration;
|
|
4274
4573
|
for (var child = completedWork.child; null !== child; )
|
|
4275
4574
|
(newChildLanes |= child.lanes | child.childLanes),
|
|
4276
4575
|
(subtreeFlags |= child.subtreeFlags),
|
|
4277
4576
|
(subtreeFlags |= child.flags),
|
|
4278
|
-
(treeBaseDuration$
|
|
4279
|
-
(child$
|
|
4577
|
+
(treeBaseDuration$45 += child.actualDuration),
|
|
4578
|
+
(child$46 += child.treeBaseDuration),
|
|
4280
4579
|
(child = child.sibling);
|
|
4281
|
-
completedWork.actualDuration = treeBaseDuration$
|
|
4282
|
-
completedWork.treeBaseDuration = child$
|
|
4580
|
+
completedWork.actualDuration = treeBaseDuration$45;
|
|
4581
|
+
completedWork.treeBaseDuration = child$46;
|
|
4283
4582
|
} else
|
|
4284
4583
|
for (
|
|
4285
|
-
treeBaseDuration$
|
|
4286
|
-
null !== treeBaseDuration$
|
|
4584
|
+
treeBaseDuration$45 = completedWork.child;
|
|
4585
|
+
null !== treeBaseDuration$45;
|
|
4287
4586
|
|
|
4288
4587
|
)
|
|
4289
4588
|
(newChildLanes |=
|
|
4290
|
-
treeBaseDuration$
|
|
4291
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4292
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4293
|
-
(treeBaseDuration$
|
|
4294
|
-
(treeBaseDuration$
|
|
4589
|
+
treeBaseDuration$45.lanes | treeBaseDuration$45.childLanes),
|
|
4590
|
+
(subtreeFlags |= treeBaseDuration$45.subtreeFlags),
|
|
4591
|
+
(subtreeFlags |= treeBaseDuration$45.flags),
|
|
4592
|
+
(treeBaseDuration$45.return = completedWork),
|
|
4593
|
+
(treeBaseDuration$45 = treeBaseDuration$45.sibling);
|
|
4295
4594
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4296
4595
|
completedWork.childLanes = newChildLanes;
|
|
4297
4596
|
return didBailout;
|
|
4298
4597
|
}
|
|
4299
4598
|
function completeWork(current, workInProgress, renderLanes) {
|
|
4300
4599
|
var newProps = workInProgress.pendingProps;
|
|
4600
|
+
popTreeContext(workInProgress);
|
|
4301
4601
|
switch (workInProgress.tag) {
|
|
4302
4602
|
case 2:
|
|
4303
4603
|
case 16:
|
|
@@ -4327,8 +4627,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4327
4627
|
((newProps.context = newProps.pendingContext),
|
|
4328
4628
|
(newProps.pendingContext = null)),
|
|
4329
4629
|
(null !== current && null !== current.child) ||
|
|
4330
|
-
newProps.
|
|
4331
|
-
(workInProgress.flags |=
|
|
4630
|
+
newProps.isDehydrated ||
|
|
4631
|
+
(workInProgress.flags |= 1024),
|
|
4332
4632
|
updateHostContainer(current, workInProgress),
|
|
4333
4633
|
bubbleProperties(workInProgress),
|
|
4334
4634
|
null
|
|
@@ -4345,7 +4645,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4345
4645
|
newProps,
|
|
4346
4646
|
renderLanes
|
|
4347
4647
|
),
|
|
4348
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |=
|
|
4648
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4349
4649
|
else {
|
|
4350
4650
|
if (!newProps) {
|
|
4351
4651
|
if (null === workInProgress.stateNode)
|
|
@@ -4380,7 +4680,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4380
4680
|
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4381
4681
|
workInProgress.stateNode = renderLanes;
|
|
4382
4682
|
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4383
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4683
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4384
4684
|
}
|
|
4385
4685
|
bubbleProperties(workInProgress);
|
|
4386
4686
|
return null;
|
|
@@ -4430,7 +4730,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4430
4730
|
if (
|
|
4431
4731
|
newProps &&
|
|
4432
4732
|
!renderLanes &&
|
|
4433
|
-
((workInProgress.child.flags |=
|
|
4733
|
+
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4434
4734
|
)
|
|
4435
4735
|
if (
|
|
4436
4736
|
(null === current &&
|
|
@@ -4442,12 +4742,13 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4442
4742
|
else {
|
|
4443
4743
|
if (
|
|
4444
4744
|
0 === workInProgressRootExitStatus ||
|
|
4445
|
-
3 === workInProgressRootExitStatus
|
|
4745
|
+
3 === workInProgressRootExitStatus ||
|
|
4746
|
+
2 === workInProgressRootExitStatus
|
|
4446
4747
|
)
|
|
4447
4748
|
workInProgressRootExitStatus = 4;
|
|
4448
4749
|
null === workInProgressRoot ||
|
|
4449
4750
|
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4450
|
-
0 === (
|
|
4751
|
+
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
|
|
4451
4752
|
markRootSuspended$1(
|
|
4452
4753
|
workInProgressRoot,
|
|
4453
4754
|
workInProgressRootRenderLanes
|
|
@@ -4507,7 +4808,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4507
4808
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4508
4809
|
(renderLanes = newProps),
|
|
4509
4810
|
(updatePayload = current),
|
|
4510
|
-
(renderLanes.flags &=
|
|
4811
|
+
(renderLanes.flags &= 14680066),
|
|
4511
4812
|
(type = renderLanes.alternate),
|
|
4512
4813
|
null === type
|
|
4513
4814
|
? ((renderLanes.childLanes = 0),
|
|
@@ -4613,14 +4914,14 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4613
4914
|
(null !== current.memoizedState) !== renderLanes &&
|
|
4614
4915
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4615
4916
|
23 !== workInProgress.tag &&
|
|
4616
|
-
(workInProgress.flags |=
|
|
4917
|
+
(workInProgress.flags |= 8192),
|
|
4617
4918
|
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4618
4919
|
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4619
4920
|
(bubbleProperties(workInProgress),
|
|
4620
4921
|
23 !== workInProgress.tag &&
|
|
4621
4922
|
workInProgress.subtreeFlags & 6 &&
|
|
4622
4923
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4623
|
-
(workInProgress.flags |=
|
|
4924
|
+
(workInProgress.flags |= 8192))
|
|
4624
4925
|
: bubbleProperties(workInProgress),
|
|
4625
4926
|
null
|
|
4626
4927
|
);
|
|
@@ -4654,6 +4955,7 @@ function updateForwardRef(
|
|
|
4654
4955
|
Component = Component.render;
|
|
4655
4956
|
var ref = workInProgress.ref;
|
|
4656
4957
|
prepareToReadContext(workInProgress, renderLanes);
|
|
4958
|
+
markComponentRenderStarted(workInProgress);
|
|
4657
4959
|
nextProps = renderWithHooks(
|
|
4658
4960
|
current,
|
|
4659
4961
|
workInProgress,
|
|
@@ -4662,10 +4964,11 @@ function updateForwardRef(
|
|
|
4662
4964
|
ref,
|
|
4663
4965
|
renderLanes
|
|
4664
4966
|
);
|
|
4967
|
+
markComponentRenderStopped();
|
|
4665
4968
|
if (null !== current && !didReceiveUpdate)
|
|
4666
4969
|
return (
|
|
4667
4970
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4668
|
-
(workInProgress.flags &= -
|
|
4971
|
+
(workInProgress.flags &= -2053),
|
|
4669
4972
|
(current.lanes &= ~renderLanes),
|
|
4670
4973
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4671
4974
|
);
|
|
@@ -4739,7 +5042,7 @@ function updateSimpleMemoComponent(
|
|
|
4739
5042
|
current.ref === workInProgress.ref
|
|
4740
5043
|
)
|
|
4741
5044
|
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4742
|
-
0 !== (current.flags &
|
|
5045
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4743
5046
|
else
|
|
4744
5047
|
return (
|
|
4745
5048
|
(workInProgress.lanes = current.lanes),
|
|
@@ -4803,7 +5106,7 @@ function markRef$1(current, workInProgress) {
|
|
|
4803
5106
|
(null === current && null !== ref) ||
|
|
4804
5107
|
(null !== current && current.ref !== ref)
|
|
4805
5108
|
)
|
|
4806
|
-
workInProgress.flags |=
|
|
5109
|
+
workInProgress.flags |= 512;
|
|
4807
5110
|
}
|
|
4808
5111
|
function updateFunctionComponent(
|
|
4809
5112
|
current,
|
|
@@ -4817,6 +5120,7 @@ function updateFunctionComponent(
|
|
|
4817
5120
|
: contextStackCursor.current;
|
|
4818
5121
|
context = getMaskedContext(workInProgress, context);
|
|
4819
5122
|
prepareToReadContext(workInProgress, renderLanes);
|
|
5123
|
+
markComponentRenderStarted(workInProgress);
|
|
4820
5124
|
Component = renderWithHooks(
|
|
4821
5125
|
current,
|
|
4822
5126
|
workInProgress,
|
|
@@ -4825,10 +5129,11 @@ function updateFunctionComponent(
|
|
|
4825
5129
|
context,
|
|
4826
5130
|
renderLanes
|
|
4827
5131
|
);
|
|
5132
|
+
markComponentRenderStopped();
|
|
4828
5133
|
if (null !== current && !didReceiveUpdate)
|
|
4829
5134
|
return (
|
|
4830
5135
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4831
|
-
(workInProgress.flags &= -
|
|
5136
|
+
(workInProgress.flags &= -2053),
|
|
4832
5137
|
(current.lanes &= ~renderLanes),
|
|
4833
5138
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4834
5139
|
);
|
|
@@ -5004,7 +5309,7 @@ function updateClassComponent(
|
|
|
5004
5309
|
"function" === typeof instance.componentDidUpdate &&
|
|
5005
5310
|
(workInProgress.flags |= 4),
|
|
5006
5311
|
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
5007
|
-
(workInProgress.flags |=
|
|
5312
|
+
(workInProgress.flags |= 1024))
|
|
5008
5313
|
: ("function" !== typeof instance.componentDidUpdate ||
|
|
5009
5314
|
(oldProps === current.memoizedProps &&
|
|
5010
5315
|
oldState === current.memoizedState) ||
|
|
@@ -5012,7 +5317,7 @@ function updateClassComponent(
|
|
|
5012
5317
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5013
5318
|
(oldProps === current.memoizedProps &&
|
|
5014
5319
|
oldState === current.memoizedState) ||
|
|
5015
|
-
(workInProgress.flags |=
|
|
5320
|
+
(workInProgress.flags |= 1024),
|
|
5016
5321
|
(workInProgress.memoizedProps = nextProps),
|
|
5017
5322
|
(workInProgress.memoizedState = newState)),
|
|
5018
5323
|
(instance.props = nextProps),
|
|
@@ -5026,7 +5331,7 @@ function updateClassComponent(
|
|
|
5026
5331
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5027
5332
|
(oldProps === current.memoizedProps &&
|
|
5028
5333
|
oldState === current.memoizedState) ||
|
|
5029
|
-
(workInProgress.flags |=
|
|
5334
|
+
(workInProgress.flags |= 1024),
|
|
5030
5335
|
(nextProps = !1));
|
|
5031
5336
|
}
|
|
5032
5337
|
return finishClassComponent(
|
|
@@ -5061,7 +5366,10 @@ function finishClassComponent(
|
|
|
5061
5366
|
) {
|
|
5062
5367
|
var nextChildren = null;
|
|
5063
5368
|
profilerStartTime = -1;
|
|
5064
|
-
} else
|
|
5369
|
+
} else
|
|
5370
|
+
markComponentRenderStarted(workInProgress),
|
|
5371
|
+
(nextChildren = shouldUpdate.render()),
|
|
5372
|
+
markComponentRenderStopped();
|
|
5065
5373
|
workInProgress.flags |= 1;
|
|
5066
5374
|
null !== current && didCaptureError
|
|
5067
5375
|
? ((didCaptureError = nextChildren),
|
|
@@ -5094,7 +5402,7 @@ function pushHostRootContext(workInProgress) {
|
|
|
5094
5402
|
pushTopLevelContextObject(workInProgress, root.context, !1);
|
|
5095
5403
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
5096
5404
|
}
|
|
5097
|
-
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
|
|
5405
|
+
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
5098
5406
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
5099
5407
|
return { baseLanes: renderLanes, cachePool: null };
|
|
5100
5408
|
}
|
|
@@ -5297,7 +5605,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5297
5605
|
(primaryChildren.treeBaseDuration = current.treeBaseDuration)),
|
|
5298
5606
|
(workInProgress.deletions = null))
|
|
5299
5607
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
5300
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5608
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 14680064));
|
|
5301
5609
|
null !== currentFallbackChildFragment
|
|
5302
5610
|
? (fallbackChildren = createWorkInProgress(
|
|
5303
5611
|
currentFallbackChildFragment,
|
|
@@ -5529,12 +5837,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5529
5837
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5530
5838
|
}
|
|
5531
5839
|
function unwindWork(workInProgress) {
|
|
5840
|
+
popTreeContext(workInProgress);
|
|
5532
5841
|
switch (workInProgress.tag) {
|
|
5533
5842
|
case 1:
|
|
5534
5843
|
isContextProvider(workInProgress.type) && popContext();
|
|
5535
5844
|
var flags = workInProgress.flags;
|
|
5536
|
-
return flags &
|
|
5537
|
-
? ((workInProgress.flags = (flags & -
|
|
5845
|
+
return flags & 65536
|
|
5846
|
+
? ((workInProgress.flags = (flags & -65537) | 128),
|
|
5538
5847
|
0 !== (workInProgress.mode & 2) &&
|
|
5539
5848
|
transferActualDuration(workInProgress),
|
|
5540
5849
|
workInProgress)
|
|
@@ -5549,7 +5858,7 @@ function unwindWork(workInProgress) {
|
|
|
5549
5858
|
throw Error(
|
|
5550
5859
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5551
5860
|
);
|
|
5552
|
-
workInProgress.flags = (flags & -
|
|
5861
|
+
workInProgress.flags = (flags & -65537) | 128;
|
|
5553
5862
|
return workInProgress;
|
|
5554
5863
|
case 5:
|
|
5555
5864
|
return popHostContext(workInProgress), null;
|
|
@@ -5557,8 +5866,8 @@ function unwindWork(workInProgress) {
|
|
|
5557
5866
|
return (
|
|
5558
5867
|
pop(suspenseStackCursor),
|
|
5559
5868
|
(flags = workInProgress.flags),
|
|
5560
|
-
flags &
|
|
5561
|
-
? ((workInProgress.flags = (flags & -
|
|
5869
|
+
flags & 65536
|
|
5870
|
+
? ((workInProgress.flags = (flags & -65537) | 128),
|
|
5562
5871
|
0 !== (workInProgress.mode & 2) &&
|
|
5563
5872
|
transferActualDuration(workInProgress),
|
|
5564
5873
|
workInProgress)
|
|
@@ -5595,16 +5904,16 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5595
5904
|
recordLayoutEffectDuration(current);
|
|
5596
5905
|
}
|
|
5597
5906
|
else ref(null);
|
|
5598
|
-
} catch (error) {
|
|
5599
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5907
|
+
} catch (error$93) {
|
|
5908
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$93);
|
|
5600
5909
|
}
|
|
5601
5910
|
else ref.current = null;
|
|
5602
5911
|
}
|
|
5603
5912
|
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
5604
5913
|
try {
|
|
5605
5914
|
destroy();
|
|
5606
|
-
} catch (error) {
|
|
5607
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5915
|
+
} catch (error$94) {
|
|
5916
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$94);
|
|
5608
5917
|
}
|
|
5609
5918
|
}
|
|
5610
5919
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
@@ -5613,7 +5922,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5613
5922
|
if (
|
|
5614
5923
|
((root = nextEffect),
|
|
5615
5924
|
(firstChild = root.child),
|
|
5616
|
-
0 !== (root.subtreeFlags &
|
|
5925
|
+
0 !== (root.subtreeFlags & 1028) && null !== firstChild)
|
|
5617
5926
|
)
|
|
5618
5927
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5619
5928
|
else
|
|
@@ -5621,7 +5930,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5621
5930
|
root = nextEffect;
|
|
5622
5931
|
try {
|
|
5623
5932
|
var current = root.alternate;
|
|
5624
|
-
if (0 !== (root.flags &
|
|
5933
|
+
if (0 !== (root.flags & 1024))
|
|
5625
5934
|
switch (root.tag) {
|
|
5626
5935
|
case 0:
|
|
5627
5936
|
case 11:
|
|
@@ -5653,8 +5962,8 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5653
5962
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
5654
5963
|
);
|
|
5655
5964
|
}
|
|
5656
|
-
} catch (error) {
|
|
5657
|
-
captureCommitPhaseError(root, root.return, error);
|
|
5965
|
+
} catch (error$95) {
|
|
5966
|
+
captureCommitPhaseError(root, root.return, error$95);
|
|
5658
5967
|
}
|
|
5659
5968
|
firstChild = root.sibling;
|
|
5660
5969
|
if (null !== firstChild) {
|
|
@@ -5681,25 +5990,63 @@ function commitHookEffectListUnmount(
|
|
|
5681
5990
|
if ((effect.tag & flags) === flags) {
|
|
5682
5991
|
var destroy = effect.destroy;
|
|
5683
5992
|
effect.destroy = void 0;
|
|
5684
|
-
void 0 !== destroy
|
|
5993
|
+
if (void 0 !== destroy) {
|
|
5994
|
+
if (0 !== (flags & 8)) {
|
|
5995
|
+
if (supportsUserTimingV3) {
|
|
5996
|
+
var componentName =
|
|
5997
|
+
getComponentNameFromFiber(finishedWork) || "Unknown";
|
|
5998
|
+
markAndClear(
|
|
5999
|
+
"--component-passive-effect-unmount-start-" + componentName
|
|
6000
|
+
);
|
|
6001
|
+
}
|
|
6002
|
+
} else
|
|
6003
|
+
0 !== (flags & 4) &&
|
|
6004
|
+
markComponentLayoutEffectUnmountStarted(finishedWork);
|
|
5685
6005
|
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
6006
|
+
0 !== (flags & 8)
|
|
6007
|
+
? supportsUserTimingV3 &&
|
|
6008
|
+
markAndClear("--component-passive-effect-unmount-stop")
|
|
6009
|
+
: 0 !== (flags & 4) && markComponentLayoutEffectUnmountStopped();
|
|
6010
|
+
}
|
|
5686
6011
|
}
|
|
5687
6012
|
effect = effect.next;
|
|
5688
6013
|
} while (effect !== updateQueue);
|
|
5689
6014
|
}
|
|
5690
6015
|
}
|
|
5691
|
-
function commitHookEffectListMount(
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
if (null !==
|
|
5695
|
-
var effect = (
|
|
6016
|
+
function commitHookEffectListMount(flags, finishedWork) {
|
|
6017
|
+
var updateQueue = finishedWork.updateQueue;
|
|
6018
|
+
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
|
|
6019
|
+
if (null !== updateQueue) {
|
|
6020
|
+
var effect = (updateQueue = updateQueue.next);
|
|
5696
6021
|
do {
|
|
5697
|
-
if ((effect.tag &
|
|
5698
|
-
|
|
5699
|
-
|
|
6022
|
+
if ((effect.tag & flags) === flags) {
|
|
6023
|
+
if (0 !== (flags & 8)) {
|
|
6024
|
+
if (supportsUserTimingV3) {
|
|
6025
|
+
var componentName =
|
|
6026
|
+
getComponentNameFromFiber(finishedWork) || "Unknown";
|
|
6027
|
+
markAndClear(
|
|
6028
|
+
"--component-passive-effect-mount-start-" + componentName
|
|
6029
|
+
);
|
|
6030
|
+
}
|
|
6031
|
+
} else
|
|
6032
|
+
0 !== (flags & 4) &&
|
|
6033
|
+
supportsUserTimingV3 &&
|
|
6034
|
+
((componentName =
|
|
6035
|
+
getComponentNameFromFiber(finishedWork) || "Unknown"),
|
|
6036
|
+
markAndClear(
|
|
6037
|
+
"--component-layout-effect-mount-start-" + componentName
|
|
6038
|
+
));
|
|
6039
|
+
componentName = effect.create;
|
|
6040
|
+
effect.destroy = componentName();
|
|
6041
|
+
0 !== (flags & 8)
|
|
6042
|
+
? supportsUserTimingV3 &&
|
|
6043
|
+
markAndClear("--component-passive-effect-mount-stop")
|
|
6044
|
+
: 0 !== (flags & 4) &&
|
|
6045
|
+
supportsUserTimingV3 &&
|
|
6046
|
+
markAndClear("--component-layout-effect-mount-stop");
|
|
5700
6047
|
}
|
|
5701
6048
|
effect = effect.next;
|
|
5702
|
-
} while (effect !==
|
|
6049
|
+
} while (effect !== updateQueue);
|
|
5703
6050
|
}
|
|
5704
6051
|
}
|
|
5705
6052
|
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
@@ -5723,12 +6070,16 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
5723
6070
|
destroy = _effect.destroy;
|
|
5724
6071
|
_effect = _effect.tag;
|
|
5725
6072
|
void 0 !== destroy &&
|
|
5726
|
-
0 !== (_effect & 2)
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
6073
|
+
(0 !== (_effect & 2)
|
|
6074
|
+
? safelyCallDestroy(current, nearestMountedAncestor, destroy)
|
|
6075
|
+
: 0 !== (_effect & 4) &&
|
|
6076
|
+
(markComponentLayoutEffectUnmountStarted(current),
|
|
6077
|
+
current.mode & 2
|
|
6078
|
+
? (startLayoutEffectTimer(),
|
|
6079
|
+
safelyCallDestroy(current, nearestMountedAncestor, destroy),
|
|
6080
|
+
recordLayoutEffectDuration(current))
|
|
6081
|
+
: safelyCallDestroy(current, nearestMountedAncestor, destroy),
|
|
6082
|
+
markComponentLayoutEffectUnmountStopped()));
|
|
5732
6083
|
effect = effect.next;
|
|
5733
6084
|
} while (effect !== finishedRoot);
|
|
5734
6085
|
}
|
|
@@ -5749,8 +6100,8 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
5749
6100
|
recordLayoutEffectDuration(current);
|
|
5750
6101
|
}
|
|
5751
6102
|
else finishedRoot.componentWillUnmount();
|
|
5752
|
-
} catch (error) {
|
|
5753
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
6103
|
+
} catch (error$92) {
|
|
6104
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$92);
|
|
5754
6105
|
}
|
|
5755
6106
|
break;
|
|
5756
6107
|
case 5:
|
|
@@ -6046,14 +6397,16 @@ function commitWork(current, finishedWork) {
|
|
|
6046
6397
|
case 11:
|
|
6047
6398
|
case 14:
|
|
6048
6399
|
case 15:
|
|
6400
|
+
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
6401
|
+
commitHookEffectListMount(3, finishedWork);
|
|
6049
6402
|
if (finishedWork.mode & 2)
|
|
6050
6403
|
try {
|
|
6051
6404
|
startLayoutEffectTimer(),
|
|
6052
|
-
commitHookEffectListUnmount(
|
|
6405
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6053
6406
|
} finally {
|
|
6054
6407
|
recordLayoutEffectDuration(finishedWork);
|
|
6055
6408
|
}
|
|
6056
|
-
else commitHookEffectListUnmount(
|
|
6409
|
+
else commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6057
6410
|
return;
|
|
6058
6411
|
case 1:
|
|
6059
6412
|
return;
|
|
@@ -6146,19 +6499,19 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6146
6499
|
var alternate = childToDelete.alternate;
|
|
6147
6500
|
null !== alternate && (alternate.return = null);
|
|
6148
6501
|
childToDelete.return = null;
|
|
6149
|
-
} catch (error) {
|
|
6150
|
-
captureCommitPhaseError(childToDelete, firstChild, error);
|
|
6502
|
+
} catch (error$103) {
|
|
6503
|
+
captureCommitPhaseError(childToDelete, firstChild, error$103);
|
|
6151
6504
|
}
|
|
6152
6505
|
}
|
|
6153
6506
|
committedLanes = firstChild.child;
|
|
6154
|
-
if (0 !== (firstChild.subtreeFlags &
|
|
6507
|
+
if (0 !== (firstChild.subtreeFlags & 12854) && null !== committedLanes)
|
|
6155
6508
|
(committedLanes.return = firstChild), (nextEffect = committedLanes);
|
|
6156
6509
|
else
|
|
6157
6510
|
for (; null !== nextEffect; ) {
|
|
6158
6511
|
firstChild = nextEffect;
|
|
6159
6512
|
try {
|
|
6160
6513
|
var flags = firstChild.flags;
|
|
6161
|
-
if (flags &
|
|
6514
|
+
if (flags & 512) {
|
|
6162
6515
|
var current = firstChild.alternate;
|
|
6163
6516
|
if (null !== current) {
|
|
6164
6517
|
committedLanes = current;
|
|
@@ -6175,12 +6528,15 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6175
6528
|
else currentRef.current = null;
|
|
6176
6529
|
}
|
|
6177
6530
|
}
|
|
6178
|
-
if (flags &
|
|
6531
|
+
if (flags & 8192)
|
|
6179
6532
|
switch (firstChild.tag) {
|
|
6180
6533
|
case 13:
|
|
6181
6534
|
if (null !== firstChild.memoizedState) {
|
|
6182
|
-
var current$
|
|
6183
|
-
if (
|
|
6535
|
+
var current$105 = firstChild.alternate;
|
|
6536
|
+
if (
|
|
6537
|
+
null === current$105 ||
|
|
6538
|
+
null === current$105.memoizedState
|
|
6539
|
+
)
|
|
6184
6540
|
globalMostRecentFallbackTime = now();
|
|
6185
6541
|
}
|
|
6186
6542
|
break;
|
|
@@ -6256,7 +6612,7 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6256
6612
|
}
|
|
6257
6613
|
}
|
|
6258
6614
|
}
|
|
6259
|
-
switch (flags &
|
|
6615
|
+
switch (flags & 4102) {
|
|
6260
6616
|
case 2:
|
|
6261
6617
|
commitPlacement(firstChild);
|
|
6262
6618
|
firstChild.flags &= -3;
|
|
@@ -6266,18 +6622,18 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6266
6622
|
firstChild.flags &= -3;
|
|
6267
6623
|
commitWork(firstChild.alternate, firstChild);
|
|
6268
6624
|
break;
|
|
6269
|
-
case
|
|
6270
|
-
firstChild.flags &= -
|
|
6625
|
+
case 4096:
|
|
6626
|
+
firstChild.flags &= -4097;
|
|
6271
6627
|
break;
|
|
6272
|
-
case
|
|
6273
|
-
firstChild.flags &= -
|
|
6628
|
+
case 4100:
|
|
6629
|
+
firstChild.flags &= -4097;
|
|
6274
6630
|
commitWork(firstChild.alternate, firstChild);
|
|
6275
6631
|
break;
|
|
6276
6632
|
case 4:
|
|
6277
6633
|
commitWork(firstChild.alternate, firstChild);
|
|
6278
6634
|
}
|
|
6279
|
-
} catch (error) {
|
|
6280
|
-
captureCommitPhaseError(firstChild, firstChild.return, error);
|
|
6635
|
+
} catch (error$104) {
|
|
6636
|
+
captureCommitPhaseError(firstChild, firstChild.return, error$104);
|
|
6281
6637
|
}
|
|
6282
6638
|
committedLanes = firstChild.sibling;
|
|
6283
6639
|
if (null !== committedLanes) {
|
|
@@ -6297,16 +6653,16 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6297
6653
|
if (
|
|
6298
6654
|
((root = nextEffect),
|
|
6299
6655
|
(committedLanes = root.child),
|
|
6300
|
-
0 !== (root.subtreeFlags &
|
|
6656
|
+
0 !== (root.subtreeFlags & 8772) && null !== committedLanes)
|
|
6301
6657
|
)
|
|
6302
6658
|
(committedLanes.return = root), (nextEffect = committedLanes);
|
|
6303
6659
|
else
|
|
6304
6660
|
for (root = finishedWork; null !== nextEffect; ) {
|
|
6305
6661
|
committedLanes = nextEffect;
|
|
6306
|
-
if (0 !== (committedLanes.flags &
|
|
6662
|
+
if (0 !== (committedLanes.flags & 8772)) {
|
|
6307
6663
|
var current = committedLanes.alternate;
|
|
6308
6664
|
try {
|
|
6309
|
-
if (0 !== (committedLanes.flags &
|
|
6665
|
+
if (0 !== (committedLanes.flags & 8772))
|
|
6310
6666
|
switch (committedLanes.tag) {
|
|
6311
6667
|
case 0:
|
|
6312
6668
|
case 11:
|
|
@@ -6314,11 +6670,11 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6314
6670
|
if (committedLanes.mode & 2)
|
|
6315
6671
|
try {
|
|
6316
6672
|
startLayoutEffectTimer(),
|
|
6317
|
-
commitHookEffectListMount(
|
|
6673
|
+
commitHookEffectListMount(5, committedLanes);
|
|
6318
6674
|
} finally {
|
|
6319
6675
|
recordLayoutEffectDuration(committedLanes);
|
|
6320
6676
|
}
|
|
6321
|
-
else commitHookEffectListMount(
|
|
6677
|
+
else commitHookEffectListMount(5, committedLanes);
|
|
6322
6678
|
break;
|
|
6323
6679
|
case 1:
|
|
6324
6680
|
var instance = committedLanes.stateNode;
|
|
@@ -6364,21 +6720,21 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6364
6720
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6365
6721
|
break;
|
|
6366
6722
|
case 3:
|
|
6367
|
-
var updateQueue$
|
|
6368
|
-
if (null !== updateQueue$
|
|
6369
|
-
var instance$
|
|
6723
|
+
var updateQueue$98 = committedLanes.updateQueue;
|
|
6724
|
+
if (null !== updateQueue$98) {
|
|
6725
|
+
var instance$99 = null;
|
|
6370
6726
|
if (null !== committedLanes.child)
|
|
6371
6727
|
switch (committedLanes.child.tag) {
|
|
6372
6728
|
case 5:
|
|
6373
|
-
instance$
|
|
6729
|
+
instance$99 = committedLanes.child.stateNode;
|
|
6374
6730
|
break;
|
|
6375
6731
|
case 1:
|
|
6376
|
-
instance$
|
|
6732
|
+
instance$99 = committedLanes.child.stateNode;
|
|
6377
6733
|
}
|
|
6378
6734
|
commitUpdateQueue(
|
|
6379
6735
|
committedLanes,
|
|
6380
|
-
updateQueue$
|
|
6381
|
-
instance$
|
|
6736
|
+
updateQueue$98,
|
|
6737
|
+
instance$99
|
|
6382
6738
|
);
|
|
6383
6739
|
}
|
|
6384
6740
|
break;
|
|
@@ -6393,7 +6749,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6393
6749
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6394
6750
|
onRender = _finishedWork$memoize2.onRender,
|
|
6395
6751
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6396
|
-
instance$
|
|
6752
|
+
instance$99 = commitTime;
|
|
6397
6753
|
current = null === current ? "mount" : "update";
|
|
6398
6754
|
currentUpdateIsNested && (current = "nested-update");
|
|
6399
6755
|
"function" === typeof onRender &&
|
|
@@ -6403,14 +6759,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6403
6759
|
committedLanes.actualDuration,
|
|
6404
6760
|
committedLanes.treeBaseDuration,
|
|
6405
6761
|
committedLanes.actualStartTime,
|
|
6406
|
-
instance$
|
|
6762
|
+
instance$99
|
|
6407
6763
|
);
|
|
6408
6764
|
"function" === typeof onCommit &&
|
|
6409
6765
|
onCommit(
|
|
6410
6766
|
committedLanes.memoizedProps.id,
|
|
6411
6767
|
current,
|
|
6412
6768
|
effectDuration,
|
|
6413
|
-
instance$
|
|
6769
|
+
instance$99
|
|
6414
6770
|
);
|
|
6415
6771
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6416
6772
|
var parentFiber = committedLanes.return;
|
|
@@ -6439,35 +6795,35 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6439
6795
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6440
6796
|
);
|
|
6441
6797
|
}
|
|
6442
|
-
if (committedLanes.flags &
|
|
6443
|
-
instance$
|
|
6798
|
+
if (committedLanes.flags & 512) {
|
|
6799
|
+
instance$99 = void 0;
|
|
6444
6800
|
current = committedLanes;
|
|
6445
6801
|
var ref = current.ref;
|
|
6446
6802
|
if (null !== ref) {
|
|
6447
6803
|
var instance$jscomp$0 = current.stateNode;
|
|
6448
6804
|
switch (current.tag) {
|
|
6449
6805
|
case 5:
|
|
6450
|
-
instance$
|
|
6806
|
+
instance$99 = instance$jscomp$0;
|
|
6451
6807
|
break;
|
|
6452
6808
|
default:
|
|
6453
|
-
instance$
|
|
6809
|
+
instance$99 = instance$jscomp$0;
|
|
6454
6810
|
}
|
|
6455
6811
|
if ("function" === typeof ref)
|
|
6456
6812
|
if (current.mode & 2)
|
|
6457
6813
|
try {
|
|
6458
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6814
|
+
startLayoutEffectTimer(), ref(instance$99);
|
|
6459
6815
|
} finally {
|
|
6460
6816
|
recordLayoutEffectDuration(current);
|
|
6461
6817
|
}
|
|
6462
|
-
else ref(instance$
|
|
6463
|
-
else ref.current = instance$
|
|
6818
|
+
else ref(instance$99);
|
|
6819
|
+
else ref.current = instance$99;
|
|
6464
6820
|
}
|
|
6465
6821
|
}
|
|
6466
|
-
} catch (error) {
|
|
6822
|
+
} catch (error$113) {
|
|
6467
6823
|
captureCommitPhaseError(
|
|
6468
6824
|
committedLanes,
|
|
6469
6825
|
committedLanes.return,
|
|
6470
|
-
error
|
|
6826
|
+
error$113
|
|
6471
6827
|
);
|
|
6472
6828
|
}
|
|
6473
6829
|
}
|
|
@@ -6475,10 +6831,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6475
6831
|
nextEffect = null;
|
|
6476
6832
|
break;
|
|
6477
6833
|
}
|
|
6478
|
-
instance$
|
|
6479
|
-
if (null !== instance$
|
|
6480
|
-
instance$
|
|
6481
|
-
nextEffect = instance$
|
|
6834
|
+
instance$99 = committedLanes.sibling;
|
|
6835
|
+
if (null !== instance$99) {
|
|
6836
|
+
instance$99.return = committedLanes.return;
|
|
6837
|
+
nextEffect = instance$99;
|
|
6482
6838
|
break;
|
|
6483
6839
|
}
|
|
6484
6840
|
nextEffect = committedLanes.return;
|
|
@@ -6498,7 +6854,8 @@ var ceil = Math.ceil,
|
|
|
6498
6854
|
workInProgressRootExitStatus = 0,
|
|
6499
6855
|
workInProgressRootFatalError = null,
|
|
6500
6856
|
workInProgressRootSkippedLanes = 0,
|
|
6501
|
-
|
|
6857
|
+
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6858
|
+
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6502
6859
|
workInProgressRootPingedLanes = 0,
|
|
6503
6860
|
globalMostRecentFallbackTime = 0,
|
|
6504
6861
|
workInProgressRootRenderTargetTime = Infinity,
|
|
@@ -6545,18 +6902,21 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6545
6902
|
));
|
|
6546
6903
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6547
6904
|
if (null === root) return null;
|
|
6548
|
-
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane);
|
|
6549
6905
|
markRootUpdated(root, lane, eventTime);
|
|
6550
|
-
root === workInProgressRoot
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6906
|
+
0 !== (executionContext & 2) && root === workInProgressRoot
|
|
6907
|
+
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
|
|
6908
|
+
: (isDevToolsPresent && addFiberToLanesMap(root, fiber, lane),
|
|
6909
|
+
root === workInProgressRoot &&
|
|
6910
|
+
(0 === (executionContext & 2) &&
|
|
6911
|
+
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
6912
|
+
4 === workInProgressRootExitStatus &&
|
|
6913
|
+
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6914
|
+
ensureRootIsScheduled(root, eventTime),
|
|
6915
|
+
1 === lane &&
|
|
6916
|
+
0 === executionContext &&
|
|
6917
|
+
0 === (fiber.mode & 1) &&
|
|
6918
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6919
|
+
includesLegacySyncCallbacks && flushSyncCallbacks()));
|
|
6560
6920
|
return root;
|
|
6561
6921
|
}
|
|
6562
6922
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6657,15 +7017,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6657
7017
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6658
7018
|
);
|
|
6659
7019
|
if (0 === lanes) return null;
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
7020
|
+
if (
|
|
7021
|
+
includesBlockingLane(root, lanes) ||
|
|
7022
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
7023
|
+
didTimeout
|
|
7024
|
+
)
|
|
7025
|
+
didTimeout = renderRootSync(root, lanes);
|
|
7026
|
+
else {
|
|
6667
7027
|
didTimeout = lanes;
|
|
6668
|
-
|
|
7028
|
+
var prevExecutionContext = executionContext;
|
|
6669
7029
|
executionContext |= 2;
|
|
6670
7030
|
var prevDispatcher = pushDispatcher();
|
|
6671
7031
|
if (
|
|
@@ -6682,6 +7042,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6682
7042
|
workInProgressRootRenderTargetTime = now() + 500;
|
|
6683
7043
|
prepareFreshStack(root, didTimeout);
|
|
6684
7044
|
}
|
|
7045
|
+
supportsUserTimingV3 && markAndClear("--render-start-" + didTimeout);
|
|
6685
7046
|
do
|
|
6686
7047
|
try {
|
|
6687
7048
|
workLoopConcurrent();
|
|
@@ -6692,30 +7053,46 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6692
7053
|
while (1);
|
|
6693
7054
|
resetContextDependencies();
|
|
6694
7055
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6695
|
-
executionContext =
|
|
7056
|
+
executionContext = prevExecutionContext;
|
|
6696
7057
|
null !== workInProgress
|
|
6697
|
-
? (
|
|
6698
|
-
|
|
7058
|
+
? (supportsUserTimingV3 && markAndClear("--render-yield"),
|
|
7059
|
+
(didTimeout = 0))
|
|
7060
|
+
: (supportsUserTimingV3 && markAndClear("--render-stop"),
|
|
7061
|
+
(workInProgressRoot = null),
|
|
6699
7062
|
(workInProgressRootRenderLanes = 0),
|
|
6700
7063
|
(didTimeout = workInProgressRootExitStatus));
|
|
6701
|
-
}
|
|
7064
|
+
}
|
|
6702
7065
|
if (0 !== didTimeout) {
|
|
6703
7066
|
2 === didTimeout &&
|
|
6704
|
-
((
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
0 !== prevDispatcher &&
|
|
6709
|
-
((lanes = prevDispatcher),
|
|
6710
|
-
(didTimeout = renderRootSync(root, prevDispatcher))),
|
|
6711
|
-
(executionContext = JSCompiler_inline_result));
|
|
7067
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
7068
|
+
0 !== prevExecutionContext &&
|
|
7069
|
+
((lanes = prevExecutionContext),
|
|
7070
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6712
7071
|
if (1 === didTimeout)
|
|
6713
7072
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6714
7073
|
prepareFreshStack(root, 0),
|
|
6715
7074
|
markRootSuspended$1(root, lanes),
|
|
6716
7075
|
ensureRootIsScheduled(root, now()),
|
|
6717
7076
|
originalCallbackNode);
|
|
6718
|
-
|
|
7077
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
7078
|
+
prevExecutionContext = root.current.alternate;
|
|
7079
|
+
if (
|
|
7080
|
+
prevDispatcher &&
|
|
7081
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
7082
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
7083
|
+
2 === didTimeout &&
|
|
7084
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
7085
|
+
0 !== prevDispatcher &&
|
|
7086
|
+
((lanes = prevDispatcher),
|
|
7087
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
7088
|
+
1 === didTimeout)
|
|
7089
|
+
)
|
|
7090
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
7091
|
+
prepareFreshStack(root, 0),
|
|
7092
|
+
markRootSuspended$1(root, lanes),
|
|
7093
|
+
ensureRootIsScheduled(root, now()),
|
|
7094
|
+
originalCallbackNode);
|
|
7095
|
+
root.finishedWork = prevExecutionContext;
|
|
6719
7096
|
root.finishedLanes = lanes;
|
|
6720
7097
|
switch (didTimeout) {
|
|
6721
7098
|
case 0:
|
|
@@ -6732,10 +7109,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6732
7109
|
10 < didTimeout)
|
|
6733
7110
|
) {
|
|
6734
7111
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6735
|
-
|
|
6736
|
-
if ((
|
|
7112
|
+
prevExecutionContext = root.suspendedLanes;
|
|
7113
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6737
7114
|
requestEventTime();
|
|
6738
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
7115
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6739
7116
|
break;
|
|
6740
7117
|
}
|
|
6741
7118
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6750,14 +7127,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6750
7127
|
markRootSuspended$1(root, lanes);
|
|
6751
7128
|
if ((lanes & 4194240) === lanes) break;
|
|
6752
7129
|
didTimeout = root.eventTimes;
|
|
6753
|
-
for (
|
|
7130
|
+
for (prevExecutionContext = -1; 0 < lanes; )
|
|
6754
7131
|
(memoizedUpdaters = 31 - clz32(lanes)),
|
|
6755
7132
|
(prevDispatcher = 1 << memoizedUpdaters),
|
|
6756
7133
|
(memoizedUpdaters = didTimeout[memoizedUpdaters]),
|
|
6757
|
-
memoizedUpdaters >
|
|
6758
|
-
(
|
|
7134
|
+
memoizedUpdaters > prevExecutionContext &&
|
|
7135
|
+
(prevExecutionContext = memoizedUpdaters),
|
|
6759
7136
|
(lanes &= ~prevDispatcher);
|
|
6760
|
-
lanes =
|
|
7137
|
+
lanes = prevExecutionContext;
|
|
6761
7138
|
lanes = now() - lanes;
|
|
6762
7139
|
lanes =
|
|
6763
7140
|
(120 > lanes
|
|
@@ -6794,9 +7171,57 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6794
7171
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6795
7172
|
: null;
|
|
6796
7173
|
}
|
|
7174
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
7175
|
+
var prevExecutionContext = executionContext;
|
|
7176
|
+
executionContext |= 8;
|
|
7177
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
7178
|
+
for (
|
|
7179
|
+
var exitStatus, i = 0;
|
|
7180
|
+
50 > i &&
|
|
7181
|
+
((exitStatus = renderRootSync(root, errorRetryLanes)),
|
|
7182
|
+
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
|
|
7183
|
+
i++
|
|
7184
|
+
);
|
|
7185
|
+
executionContext = prevExecutionContext;
|
|
7186
|
+
return exitStatus;
|
|
7187
|
+
}
|
|
7188
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
7189
|
+
for (var node = finishedWork; ; ) {
|
|
7190
|
+
if (node.flags & 16384) {
|
|
7191
|
+
var updateQueue = node.updateQueue;
|
|
7192
|
+
if (
|
|
7193
|
+
null !== updateQueue &&
|
|
7194
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
7195
|
+
)
|
|
7196
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
7197
|
+
var check = updateQueue[i],
|
|
7198
|
+
getSnapshot = check.getSnapshot;
|
|
7199
|
+
check = check.value;
|
|
7200
|
+
try {
|
|
7201
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
7202
|
+
} catch (error$118) {
|
|
7203
|
+
return !1;
|
|
7204
|
+
}
|
|
7205
|
+
}
|
|
7206
|
+
}
|
|
7207
|
+
updateQueue = node.child;
|
|
7208
|
+
if (node.subtreeFlags & 16384 && null !== updateQueue)
|
|
7209
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
7210
|
+
else {
|
|
7211
|
+
if (node === finishedWork) break;
|
|
7212
|
+
for (; null === node.sibling; ) {
|
|
7213
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
7214
|
+
node = node.return;
|
|
7215
|
+
}
|
|
7216
|
+
node.sibling.return = node.return;
|
|
7217
|
+
node = node.sibling;
|
|
7218
|
+
}
|
|
7219
|
+
}
|
|
7220
|
+
return !0;
|
|
7221
|
+
}
|
|
6797
7222
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6798
7223
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6799
|
-
suspendedLanes &= ~
|
|
7224
|
+
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
6800
7225
|
root.suspendedLanes |= suspendedLanes;
|
|
6801
7226
|
root.pingedLanes &= ~suspendedLanes;
|
|
6802
7227
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
@@ -6816,13 +7241,10 @@ function performSyncWorkOnRoot(root) {
|
|
|
6816
7241
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6817
7242
|
var exitStatus = renderRootSync(root, lanes);
|
|
6818
7243
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6819
|
-
var prevExecutionContext = executionContext;
|
|
6820
|
-
executionContext |= 8;
|
|
6821
|
-
root.hydrate && (root.hydrate = !1);
|
|
6822
7244
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6823
7245
|
0 !== errorRetryLanes &&
|
|
6824
|
-
((lanes = errorRetryLanes),
|
|
6825
|
-
|
|
7246
|
+
((lanes = errorRetryLanes),
|
|
7247
|
+
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
|
|
6826
7248
|
}
|
|
6827
7249
|
if (1 === exitStatus)
|
|
6828
7250
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6849,6 +7271,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6849
7271
|
if (null !== workInProgress)
|
|
6850
7272
|
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
|
|
6851
7273
|
var interruptedWork = timeoutHandle;
|
|
7274
|
+
popTreeContext(interruptedWork);
|
|
6852
7275
|
switch (interruptedWork.tag) {
|
|
6853
7276
|
case 1:
|
|
6854
7277
|
interruptedWork = interruptedWork.type.childContextTypes;
|
|
@@ -6888,7 +7311,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6888
7311
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
6889
7312
|
workInProgressRootExitStatus = 0;
|
|
6890
7313
|
workInProgressRootFatalError = null;
|
|
6891
|
-
workInProgressRootPingedLanes =
|
|
7314
|
+
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6892
7315
|
if (null !== interleavedQueues) {
|
|
6893
7316
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
6894
7317
|
if (
|
|
@@ -6909,7 +7332,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6909
7332
|
interleavedQueues = null;
|
|
6910
7333
|
}
|
|
6911
7334
|
}
|
|
6912
|
-
function handleError(root$jscomp$0
|
|
7335
|
+
function handleError(root, thrownValue$jscomp$0) {
|
|
6913
7336
|
do {
|
|
6914
7337
|
var erroredWork = workInProgress;
|
|
6915
7338
|
try {
|
|
@@ -6933,72 +7356,107 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6933
7356
|
ReactCurrentOwner$2.current = null;
|
|
6934
7357
|
if (null === erroredWork || null === erroredWork.return) {
|
|
6935
7358
|
workInProgressRootExitStatus = 1;
|
|
6936
|
-
workInProgressRootFatalError = thrownValue;
|
|
7359
|
+
workInProgressRootFatalError = thrownValue$jscomp$0;
|
|
6937
7360
|
workInProgress = null;
|
|
6938
7361
|
break;
|
|
6939
7362
|
}
|
|
6940
7363
|
erroredWork.mode & 2 &&
|
|
6941
7364
|
stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0);
|
|
7365
|
+
markComponentRenderStopped();
|
|
7366
|
+
if (
|
|
7367
|
+
null !== thrownValue$jscomp$0 &&
|
|
7368
|
+
"object" === typeof thrownValue$jscomp$0 &&
|
|
7369
|
+
"function" === typeof thrownValue$jscomp$0.then
|
|
7370
|
+
)
|
|
7371
|
+
markComponentSuspended(
|
|
7372
|
+
erroredWork,
|
|
7373
|
+
thrownValue$jscomp$0,
|
|
7374
|
+
workInProgressRootRenderLanes
|
|
7375
|
+
);
|
|
7376
|
+
else {
|
|
7377
|
+
var fiber = erroredWork,
|
|
7378
|
+
thrownValue = thrownValue$jscomp$0;
|
|
7379
|
+
if (supportsUserTimingV3) {
|
|
7380
|
+
var componentName = getComponentNameFromFiber(fiber) || "Unknown",
|
|
7381
|
+
phase = null === fiber.alternate ? "mount" : "update";
|
|
7382
|
+
fiber = "";
|
|
7383
|
+
null !== thrownValue &&
|
|
7384
|
+
"object" === typeof thrownValue &&
|
|
7385
|
+
"string" === typeof thrownValue.message
|
|
7386
|
+
? (fiber = thrownValue.message)
|
|
7387
|
+
: "string" === typeof thrownValue && (fiber = thrownValue);
|
|
7388
|
+
markAndClear("--error-" + componentName + "-" + phase + "-" + fiber);
|
|
7389
|
+
}
|
|
7390
|
+
}
|
|
6942
7391
|
a: {
|
|
6943
|
-
|
|
6944
|
-
|
|
7392
|
+
thrownValue = root;
|
|
7393
|
+
var returnFiber = erroredWork.return,
|
|
6945
7394
|
sourceFiber = erroredWork,
|
|
6946
|
-
value = thrownValue;
|
|
6947
|
-
thrownValue = workInProgressRootRenderLanes;
|
|
6948
|
-
sourceFiber.flags |=
|
|
6949
|
-
isDevToolsPresent &&
|
|
7395
|
+
value = thrownValue$jscomp$0;
|
|
7396
|
+
thrownValue$jscomp$0 = workInProgressRootRenderLanes;
|
|
7397
|
+
sourceFiber.flags |= 32768;
|
|
7398
|
+
isDevToolsPresent &&
|
|
7399
|
+
restorePendingUpdaters(thrownValue, thrownValue$jscomp$0);
|
|
6950
7400
|
if (
|
|
6951
7401
|
null !== value &&
|
|
6952
7402
|
"object" === typeof value &&
|
|
6953
7403
|
"function" === typeof value.then
|
|
6954
7404
|
) {
|
|
6955
|
-
|
|
6956
|
-
|
|
7405
|
+
fiber = value;
|
|
7406
|
+
var sourceFiber$jscomp$0 = sourceFiber,
|
|
7407
|
+
tag = sourceFiber$jscomp$0.tag;
|
|
6957
7408
|
if (
|
|
6958
|
-
0 === (sourceFiber.mode & 1) &&
|
|
7409
|
+
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
6959
7410
|
(0 === tag || 11 === tag || 15 === tag)
|
|
6960
7411
|
) {
|
|
6961
|
-
var currentSource = sourceFiber.alternate;
|
|
7412
|
+
var currentSource = sourceFiber$jscomp$0.alternate;
|
|
6962
7413
|
currentSource
|
|
6963
|
-
? ((sourceFiber.updateQueue = currentSource.updateQueue),
|
|
6964
|
-
(sourceFiber.memoizedState =
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
7414
|
+
? ((sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue),
|
|
7415
|
+
(sourceFiber$jscomp$0.memoizedState =
|
|
7416
|
+
currentSource.memoizedState),
|
|
7417
|
+
(sourceFiber$jscomp$0.lanes = currentSource.lanes))
|
|
7418
|
+
: ((sourceFiber$jscomp$0.updateQueue = null),
|
|
7419
|
+
(sourceFiber$jscomp$0.memoizedState = null));
|
|
6968
7420
|
}
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
7421
|
+
b: {
|
|
7422
|
+
sourceFiber$jscomp$0 = returnFiber;
|
|
7423
|
+
var hasInvisibleParentBoundary =
|
|
7424
|
+
0 !== (suspenseStackCursor.current & 1);
|
|
7425
|
+
do {
|
|
7426
|
+
var JSCompiler_temp;
|
|
7427
|
+
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
|
|
7428
|
+
var nextState = sourceFiber$jscomp$0.memoizedState;
|
|
7429
|
+
JSCompiler_temp =
|
|
7430
|
+
null !== nextState
|
|
7431
|
+
? null !== nextState.dehydrated
|
|
7432
|
+
? !0
|
|
7433
|
+
: !1
|
|
7434
|
+
: !0 !==
|
|
7435
|
+
sourceFiber$jscomp$0.memoizedProps
|
|
7436
|
+
.unstable_avoidThisFallback
|
|
6979
7437
|
? !0
|
|
6980
|
-
:
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
sourceFiber.flags |=
|
|
7001
|
-
sourceFiber.flags &= -
|
|
7438
|
+
: hasInvisibleParentBoundary
|
|
7439
|
+
? !1
|
|
7440
|
+
: !0;
|
|
7441
|
+
}
|
|
7442
|
+
if (JSCompiler_temp) {
|
|
7443
|
+
var suspenseBoundary = sourceFiber$jscomp$0;
|
|
7444
|
+
break b;
|
|
7445
|
+
}
|
|
7446
|
+
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
|
|
7447
|
+
} while (null !== sourceFiber$jscomp$0);
|
|
7448
|
+
suspenseBoundary = null;
|
|
7449
|
+
}
|
|
7450
|
+
if (null !== suspenseBoundary) {
|
|
7451
|
+
suspenseBoundary.flags &= -257;
|
|
7452
|
+
value = suspenseBoundary;
|
|
7453
|
+
sourceFiber$jscomp$0 = thrownValue$jscomp$0;
|
|
7454
|
+
if (0 === (value.mode & 1))
|
|
7455
|
+
if (value === returnFiber) value.flags |= 65536;
|
|
7456
|
+
else {
|
|
7457
|
+
value.flags |= 128;
|
|
7458
|
+
sourceFiber.flags |= 131072;
|
|
7459
|
+
sourceFiber.flags &= -52805;
|
|
7002
7460
|
if (1 === sourceFiber.tag)
|
|
7003
7461
|
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
7004
7462
|
else {
|
|
@@ -7007,88 +7465,94 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7007
7465
|
enqueueUpdate(sourceFiber, update);
|
|
7008
7466
|
}
|
|
7009
7467
|
sourceFiber.lanes |= 1;
|
|
7010
|
-
break a;
|
|
7011
7468
|
}
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7469
|
+
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
|
|
7470
|
+
sourceFiber = void 0;
|
|
7471
|
+
value = suspenseBoundary;
|
|
7472
|
+
if (value.mode & 1) {
|
|
7473
|
+
var pingCache = thrownValue.pingCache;
|
|
7015
7474
|
null === pingCache
|
|
7016
|
-
? ((pingCache =
|
|
7017
|
-
(
|
|
7018
|
-
pingCache.set(
|
|
7019
|
-
: ((
|
|
7020
|
-
void 0 ===
|
|
7021
|
-
((
|
|
7022
|
-
|
|
7023
|
-
|
|
7475
|
+
? ((pingCache = thrownValue.pingCache = new PossiblyWeakMap$1()),
|
|
7476
|
+
(sourceFiber = new Set()),
|
|
7477
|
+
pingCache.set(fiber, sourceFiber))
|
|
7478
|
+
: ((sourceFiber = pingCache.get(fiber)),
|
|
7479
|
+
void 0 === sourceFiber &&
|
|
7480
|
+
((sourceFiber = new Set()),
|
|
7481
|
+
pingCache.set(fiber, sourceFiber)));
|
|
7482
|
+
if (!sourceFiber.has(thrownValue$jscomp$0)) {
|
|
7483
|
+
sourceFiber.add(thrownValue$jscomp$0);
|
|
7024
7484
|
var ping = pingSuspendedRoot.bind(
|
|
7025
7485
|
null,
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7486
|
+
thrownValue,
|
|
7487
|
+
fiber,
|
|
7488
|
+
thrownValue$jscomp$0
|
|
7029
7489
|
);
|
|
7030
|
-
isDevToolsPresent &&
|
|
7031
|
-
|
|
7490
|
+
isDevToolsPresent &&
|
|
7491
|
+
restorePendingUpdaters(thrownValue, thrownValue$jscomp$0);
|
|
7492
|
+
fiber.then(ping, ping);
|
|
7032
7493
|
}
|
|
7033
|
-
workInProgress$34.flags |= 16384;
|
|
7034
|
-
workInProgress$34.lanes = thrownValue;
|
|
7035
|
-
break a;
|
|
7036
7494
|
}
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7495
|
+
var wakeables = value.updateQueue;
|
|
7496
|
+
if (null === wakeables) {
|
|
7497
|
+
var updateQueue = new Set();
|
|
7498
|
+
updateQueue.add(fiber);
|
|
7499
|
+
value.updateQueue = updateQueue;
|
|
7500
|
+
} else wakeables.add(fiber);
|
|
7501
|
+
break a;
|
|
7502
|
+
} else
|
|
7503
|
+
value = Error(
|
|
7504
|
+
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
7505
|
+
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
|
7506
|
+
);
|
|
7043
7507
|
}
|
|
7044
|
-
|
|
7508
|
+
4 !== workInProgressRootExitStatus &&
|
|
7045
7509
|
(workInProgressRootExitStatus = 2);
|
|
7046
7510
|
value = createCapturedValue(value, sourceFiber);
|
|
7047
|
-
|
|
7511
|
+
thrownValue = returnFiber;
|
|
7048
7512
|
do {
|
|
7049
|
-
switch (
|
|
7513
|
+
switch (thrownValue.tag) {
|
|
7050
7514
|
case 3:
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
thrownValue &= -thrownValue;
|
|
7054
|
-
|
|
7055
|
-
var update$
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
thrownValue
|
|
7515
|
+
fiber = value;
|
|
7516
|
+
thrownValue.flags |= 65536;
|
|
7517
|
+
thrownValue$jscomp$0 &= -thrownValue$jscomp$0;
|
|
7518
|
+
thrownValue.lanes |= thrownValue$jscomp$0;
|
|
7519
|
+
var update$jscomp$0 = createRootErrorUpdate(
|
|
7520
|
+
thrownValue,
|
|
7521
|
+
fiber,
|
|
7522
|
+
thrownValue$jscomp$0
|
|
7059
7523
|
);
|
|
7060
|
-
enqueueCapturedUpdate(
|
|
7524
|
+
enqueueCapturedUpdate(thrownValue, update$jscomp$0);
|
|
7061
7525
|
break a;
|
|
7062
7526
|
case 1:
|
|
7063
|
-
|
|
7064
|
-
var ctor =
|
|
7065
|
-
instance =
|
|
7527
|
+
fiber = value;
|
|
7528
|
+
var ctor = thrownValue.type,
|
|
7529
|
+
instance = thrownValue.stateNode;
|
|
7066
7530
|
if (
|
|
7067
|
-
0 === (
|
|
7531
|
+
0 === (thrownValue.flags & 128) &&
|
|
7068
7532
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
7069
7533
|
(null !== instance &&
|
|
7070
7534
|
"function" === typeof instance.componentDidCatch &&
|
|
7071
7535
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7072
7536
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
7073
7537
|
) {
|
|
7074
|
-
|
|
7075
|
-
thrownValue &= -thrownValue;
|
|
7076
|
-
|
|
7077
|
-
var update$
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
thrownValue
|
|
7538
|
+
thrownValue.flags |= 65536;
|
|
7539
|
+
thrownValue$jscomp$0 &= -thrownValue$jscomp$0;
|
|
7540
|
+
thrownValue.lanes |= thrownValue$jscomp$0;
|
|
7541
|
+
var update$41 = createClassErrorUpdate(
|
|
7542
|
+
thrownValue,
|
|
7543
|
+
fiber,
|
|
7544
|
+
thrownValue$jscomp$0
|
|
7081
7545
|
);
|
|
7082
|
-
enqueueCapturedUpdate(
|
|
7546
|
+
enqueueCapturedUpdate(thrownValue, update$41);
|
|
7083
7547
|
break a;
|
|
7084
7548
|
}
|
|
7085
7549
|
}
|
|
7086
|
-
|
|
7087
|
-
} while (null !==
|
|
7550
|
+
thrownValue = thrownValue.return;
|
|
7551
|
+
} while (null !== thrownValue);
|
|
7088
7552
|
}
|
|
7089
7553
|
completeUnitOfWork(erroredWork);
|
|
7090
7554
|
} catch (yetAnotherThrownValue) {
|
|
7091
|
-
thrownValue = yetAnotherThrownValue;
|
|
7555
|
+
thrownValue$jscomp$0 = yetAnotherThrownValue;
|
|
7092
7556
|
workInProgress === erroredWork &&
|
|
7093
7557
|
null !== erroredWork &&
|
|
7094
7558
|
(workInProgress = erroredWork = erroredWork.return);
|
|
@@ -7116,6 +7580,7 @@ function renderRootSync(root, lanes) {
|
|
|
7116
7580
|
}
|
|
7117
7581
|
prepareFreshStack(root, lanes);
|
|
7118
7582
|
}
|
|
7583
|
+
supportsUserTimingV3 && markAndClear("--render-start-" + lanes);
|
|
7119
7584
|
do
|
|
7120
7585
|
try {
|
|
7121
7586
|
workLoopSync();
|
|
@@ -7131,6 +7596,7 @@ function renderRootSync(root, lanes) {
|
|
|
7131
7596
|
throw Error(
|
|
7132
7597
|
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
|
|
7133
7598
|
);
|
|
7599
|
+
supportsUserTimingV3 && markAndClear("--render-stop");
|
|
7134
7600
|
workInProgressRoot = null;
|
|
7135
7601
|
workInProgressRootRenderLanes = 0;
|
|
7136
7602
|
return workInProgressRootExitStatus;
|
|
@@ -7161,7 +7627,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7161
7627
|
do {
|
|
7162
7628
|
var current = completedWork.alternate;
|
|
7163
7629
|
unitOfWork = completedWork.return;
|
|
7164
|
-
if (0 === (completedWork.flags &
|
|
7630
|
+
if (0 === (completedWork.flags & 32768)) {
|
|
7165
7631
|
if (0 === (completedWork.mode & 2))
|
|
7166
7632
|
current = completeWork(current, completedWork, subtreeRenderLanes);
|
|
7167
7633
|
else {
|
|
@@ -7178,7 +7644,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7178
7644
|
} else {
|
|
7179
7645
|
current = unwindWork(completedWork);
|
|
7180
7646
|
if (null !== current) {
|
|
7181
|
-
current.flags &=
|
|
7647
|
+
current.flags &= 32767;
|
|
7182
7648
|
workInProgress = current;
|
|
7183
7649
|
return;
|
|
7184
7650
|
}
|
|
@@ -7190,7 +7656,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7190
7656
|
completedWork.actualDuration = current;
|
|
7191
7657
|
}
|
|
7192
7658
|
null !== unitOfWork &&
|
|
7193
|
-
((unitOfWork.flags |=
|
|
7659
|
+
((unitOfWork.flags |= 32768),
|
|
7194
7660
|
(unitOfWork.subtreeFlags = 0),
|
|
7195
7661
|
(unitOfWork.deletions = null));
|
|
7196
7662
|
}
|
|
@@ -7223,7 +7689,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7223
7689
|
throw Error("Should not already be working.");
|
|
7224
7690
|
var finishedWork = root.finishedWork,
|
|
7225
7691
|
lanes = root.finishedLanes;
|
|
7226
|
-
|
|
7692
|
+
supportsUserTimingV3 &&
|
|
7693
|
+
(markAndClear("--commit-start-" + lanes),
|
|
7694
|
+
markAndClear("--react-version-18.0.0-c0c71a868-20211112"),
|
|
7695
|
+
markAndClear("--profiler-version-1"),
|
|
7696
|
+
getLaneLabels(),
|
|
7697
|
+
markAndClear("--react-lane-labels-" + laneLabels.join(",")),
|
|
7698
|
+
markInternalModuleRanges());
|
|
7699
|
+
if (null === finishedWork)
|
|
7700
|
+
return supportsUserTimingV3 && markAndClear("--commit-stop"), null;
|
|
7227
7701
|
root.finishedWork = null;
|
|
7228
7702
|
root.finishedLanes = 0;
|
|
7229
7703
|
if (finishedWork === root.current)
|
|
@@ -7237,16 +7711,16 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7237
7711
|
root === workInProgressRoot &&
|
|
7238
7712
|
((workInProgress = workInProgressRoot = null),
|
|
7239
7713
|
(workInProgressRootRenderLanes = 0));
|
|
7240
|
-
(0 === (finishedWork.subtreeFlags &
|
|
7241
|
-
0 === (finishedWork.flags &
|
|
7714
|
+
(0 === (finishedWork.subtreeFlags & 2064) &&
|
|
7715
|
+
0 === (finishedWork.flags & 2064)) ||
|
|
7242
7716
|
rootDoesHavePassiveEffects ||
|
|
7243
7717
|
((rootDoesHavePassiveEffects = !0),
|
|
7244
7718
|
scheduleCallback$1(NormalPriority, function() {
|
|
7245
7719
|
flushPassiveEffects();
|
|
7246
7720
|
return null;
|
|
7247
7721
|
}));
|
|
7248
|
-
remainingLanes = 0 !== (finishedWork.flags &
|
|
7249
|
-
if (0 !== (finishedWork.subtreeFlags &
|
|
7722
|
+
remainingLanes = 0 !== (finishedWork.flags & 15990);
|
|
7723
|
+
if (0 !== (finishedWork.subtreeFlags & 15990) || remainingLanes) {
|
|
7250
7724
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
7251
7725
|
ReactCurrentBatchConfig$2.transition = 0;
|
|
7252
7726
|
var previousPriority = currentUpdatePriority;
|
|
@@ -7258,7 +7732,9 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7258
7732
|
commitTime = now$1();
|
|
7259
7733
|
commitMutationEffects(root, finishedWork, lanes);
|
|
7260
7734
|
root.current = finishedWork;
|
|
7735
|
+
supportsUserTimingV3 && markAndClear("--layout-effects-start-" + lanes);
|
|
7261
7736
|
commitLayoutEffects(finishedWork, root, lanes);
|
|
7737
|
+
supportsUserTimingV3 && markAndClear("--layout-effects-stop");
|
|
7262
7738
|
requestPaint();
|
|
7263
7739
|
executionContext = prevExecutionContext;
|
|
7264
7740
|
currentUpdatePriority = previousPriority;
|
|
@@ -7270,12 +7746,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7270
7746
|
(pendingPassiveEffectsLanes = lanes));
|
|
7271
7747
|
remainingLanes = root.pendingLanes;
|
|
7272
7748
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
7273
|
-
0 !== (remainingLanes & 1)
|
|
7274
|
-
? ((nestedUpdateScheduled = !0),
|
|
7275
|
-
root === rootWithNestedUpdates
|
|
7276
|
-
? nestedUpdateCount++
|
|
7277
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7278
|
-
: (nestedUpdateCount = 0);
|
|
7279
7749
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
7280
7750
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
|
7281
7751
|
ensureRootIsScheduled(root, now());
|
|
@@ -7287,7 +7757,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7287
7757
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
7288
7758
|
0 !== root.tag &&
|
|
7289
7759
|
flushPassiveEffects();
|
|
7760
|
+
remainingLanes = root.pendingLanes;
|
|
7761
|
+
0 !== (remainingLanes & 1)
|
|
7762
|
+
? ((nestedUpdateScheduled = !0),
|
|
7763
|
+
root === rootWithNestedUpdates
|
|
7764
|
+
? nestedUpdateCount++
|
|
7765
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7766
|
+
: (nestedUpdateCount = 0);
|
|
7290
7767
|
flushSyncCallbacks();
|
|
7768
|
+
supportsUserTimingV3 && markAndClear("--commit-stop");
|
|
7291
7769
|
return null;
|
|
7292
7770
|
}
|
|
7293
7771
|
function flushPassiveEffects() {
|
|
@@ -7302,11 +7780,14 @@ function flushPassiveEffects() {
|
|
|
7302
7780
|
var JSCompiler_inline_result = !1;
|
|
7303
7781
|
else {
|
|
7304
7782
|
renderPriority = rootWithPendingPassiveEffects;
|
|
7783
|
+
var lanes = pendingPassiveEffectsLanes;
|
|
7305
7784
|
rootWithPendingPassiveEffects = null;
|
|
7306
7785
|
pendingPassiveEffectsLanes = 0;
|
|
7307
7786
|
if (0 !== (executionContext & 6))
|
|
7308
7787
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
7309
|
-
|
|
7788
|
+
supportsUserTimingV3 &&
|
|
7789
|
+
markAndClear("--passive-effects-start-" + lanes);
|
|
7790
|
+
lanes = executionContext;
|
|
7310
7791
|
executionContext |= 4;
|
|
7311
7792
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
7312
7793
|
var fiber = nextEffect,
|
|
@@ -7325,9 +7806,9 @@ function flushPassiveEffects() {
|
|
|
7325
7806
|
case 15:
|
|
7326
7807
|
current.mode & 2
|
|
7327
7808
|
? ((passiveEffectStartTime = now$1()),
|
|
7328
|
-
commitHookEffectListUnmount(
|
|
7809
|
+
commitHookEffectListUnmount(8, current, fiber),
|
|
7329
7810
|
recordPassiveEffectDuration(current))
|
|
7330
|
-
: commitHookEffectListUnmount(
|
|
7811
|
+
: commitHookEffectListUnmount(8, current, fiber);
|
|
7331
7812
|
}
|
|
7332
7813
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
7333
7814
|
if (null !== child$jscomp$0)
|
|
@@ -7367,21 +7848,21 @@ function flushPassiveEffects() {
|
|
|
7367
7848
|
nextEffect = fiber;
|
|
7368
7849
|
}
|
|
7369
7850
|
}
|
|
7370
|
-
if (0 !== (fiber.subtreeFlags &
|
|
7851
|
+
if (0 !== (fiber.subtreeFlags & 2064) && null !== child)
|
|
7371
7852
|
(child.return = fiber), (nextEffect = child);
|
|
7372
7853
|
else
|
|
7373
7854
|
b: for (; null !== nextEffect; ) {
|
|
7374
7855
|
fiber = nextEffect;
|
|
7375
|
-
if (0 !== (fiber.flags &
|
|
7856
|
+
if (0 !== (fiber.flags & 2048))
|
|
7376
7857
|
switch (((i = fiber), i.tag)) {
|
|
7377
7858
|
case 0:
|
|
7378
7859
|
case 11:
|
|
7379
7860
|
case 15:
|
|
7380
7861
|
i.mode & 2
|
|
7381
7862
|
? ((passiveEffectStartTime = now$1()),
|
|
7382
|
-
commitHookEffectListUnmount(
|
|
7863
|
+
commitHookEffectListUnmount(9, i, i.return),
|
|
7383
7864
|
recordPassiveEffectDuration(i))
|
|
7384
|
-
: commitHookEffectListUnmount(
|
|
7865
|
+
: commitHookEffectListUnmount(9, i, i.return);
|
|
7385
7866
|
}
|
|
7386
7867
|
var sibling$jscomp$0 = fiber.sibling;
|
|
7387
7868
|
if (null !== sibling$jscomp$0) {
|
|
@@ -7396,12 +7877,12 @@ function flushPassiveEffects() {
|
|
|
7396
7877
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
7397
7878
|
child = nextEffect;
|
|
7398
7879
|
var firstChild = child.child;
|
|
7399
|
-
if (0 !== (child.subtreeFlags &
|
|
7880
|
+
if (0 !== (child.subtreeFlags & 2064) && null !== firstChild)
|
|
7400
7881
|
(firstChild.return = child), (nextEffect = firstChild);
|
|
7401
7882
|
else
|
|
7402
7883
|
b: for (child = finishedWork; null !== nextEffect; ) {
|
|
7403
7884
|
deletions = nextEffect;
|
|
7404
|
-
if (0 !== (deletions.flags &
|
|
7885
|
+
if (0 !== (deletions.flags & 2048))
|
|
7405
7886
|
try {
|
|
7406
7887
|
switch (((fiberToDelete = deletions), fiberToDelete.tag)) {
|
|
7407
7888
|
case 0:
|
|
@@ -7410,14 +7891,18 @@ function flushPassiveEffects() {
|
|
|
7410
7891
|
if (fiberToDelete.mode & 2) {
|
|
7411
7892
|
passiveEffectStartTime = now$1();
|
|
7412
7893
|
try {
|
|
7413
|
-
commitHookEffectListMount(
|
|
7894
|
+
commitHookEffectListMount(9, fiberToDelete);
|
|
7414
7895
|
} finally {
|
|
7415
7896
|
recordPassiveEffectDuration(fiberToDelete);
|
|
7416
7897
|
}
|
|
7417
|
-
} else commitHookEffectListMount(
|
|
7898
|
+
} else commitHookEffectListMount(9, fiberToDelete);
|
|
7418
7899
|
}
|
|
7419
|
-
} catch (error) {
|
|
7420
|
-
captureCommitPhaseError(
|
|
7900
|
+
} catch (error$114) {
|
|
7901
|
+
captureCommitPhaseError(
|
|
7902
|
+
deletions,
|
|
7903
|
+
deletions.return,
|
|
7904
|
+
error$114
|
|
7905
|
+
);
|
|
7421
7906
|
}
|
|
7422
7907
|
if (deletions === child) {
|
|
7423
7908
|
nextEffect = null;
|
|
@@ -7469,7 +7954,8 @@ function flushPassiveEffects() {
|
|
|
7469
7954
|
}
|
|
7470
7955
|
}
|
|
7471
7956
|
}
|
|
7472
|
-
|
|
7957
|
+
supportsUserTimingV3 && markAndClear("--passive-effects-stop");
|
|
7958
|
+
executionContext = lanes;
|
|
7473
7959
|
flushSyncCallbacks();
|
|
7474
7960
|
if (
|
|
7475
7961
|
injectedHook &&
|
|
@@ -7609,7 +8095,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7609
8095
|
renderLanes
|
|
7610
8096
|
)
|
|
7611
8097
|
);
|
|
7612
|
-
didReceiveUpdate = 0 !== (current.flags &
|
|
8098
|
+
didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
|
|
7613
8099
|
}
|
|
7614
8100
|
else didReceiveUpdate = !1;
|
|
7615
8101
|
workInProgress.lanes = 0;
|
|
@@ -7626,6 +8112,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7626
8112
|
contextStackCursor.current
|
|
7627
8113
|
);
|
|
7628
8114
|
prepareToReadContext(workInProgress, renderLanes);
|
|
8115
|
+
markComponentRenderStarted(workInProgress);
|
|
7629
8116
|
context = renderWithHooks(
|
|
7630
8117
|
null,
|
|
7631
8118
|
workInProgress,
|
|
@@ -7634,6 +8121,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7634
8121
|
context,
|
|
7635
8122
|
renderLanes
|
|
7636
8123
|
);
|
|
8124
|
+
markComponentRenderStopped();
|
|
7637
8125
|
workInProgress.flags |= 1;
|
|
7638
8126
|
if (
|
|
7639
8127
|
"object" === typeof context &&
|
|
@@ -7959,7 +8447,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7959
8447
|
(Component = workInProgress.pendingProps.children),
|
|
7960
8448
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7961
8449
|
(context = readContext(context)),
|
|
8450
|
+
markComponentRenderStarted(workInProgress),
|
|
7962
8451
|
(Component = Component(context)),
|
|
8452
|
+
markComponentRenderStopped(),
|
|
7963
8453
|
(workInProgress.flags |= 1),
|
|
7964
8454
|
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7965
8455
|
workInProgress.child
|
|
@@ -8090,7 +8580,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
8090
8580
|
(workInProgress.deletions = null),
|
|
8091
8581
|
(workInProgress.actualDuration = 0),
|
|
8092
8582
|
(workInProgress.actualStartTime = -1));
|
|
8093
|
-
workInProgress.flags = current.flags &
|
|
8583
|
+
workInProgress.flags = current.flags & 14680064;
|
|
8094
8584
|
workInProgress.childLanes = current.childLanes;
|
|
8095
8585
|
workInProgress.lanes = current.lanes;
|
|
8096
8586
|
workInProgress.child = current.child;
|
|
@@ -8186,8 +8676,7 @@ function createFiberFromTypeAndProps(
|
|
|
8186
8676
|
}
|
|
8187
8677
|
throw Error(
|
|
8188
8678
|
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
8189
|
-
(null == type ? type : typeof type) +
|
|
8190
|
-
"."
|
|
8679
|
+
((null == type ? type : typeof type) + ".")
|
|
8191
8680
|
);
|
|
8192
8681
|
}
|
|
8193
8682
|
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
@@ -8233,7 +8722,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
8233
8722
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
8234
8723
|
this.timeoutHandle = -1;
|
|
8235
8724
|
this.pendingContext = this.context = null;
|
|
8236
|
-
this.
|
|
8725
|
+
this.isDehydrated = hydrate;
|
|
8237
8726
|
this.callbackNode = null;
|
|
8238
8727
|
this.callbackPriority = 0;
|
|
8239
8728
|
this.eventTimes = createLaneMap(0);
|
|
@@ -8261,9 +8750,9 @@ function findHostInstance(component) {
|
|
|
8261
8750
|
if (void 0 === fiber) {
|
|
8262
8751
|
if ("function" === typeof component.render)
|
|
8263
8752
|
throw Error("Unable to find node on an unmounted component.");
|
|
8753
|
+
component = Object.keys(component).join(",");
|
|
8264
8754
|
throw Error(
|
|
8265
|
-
"Argument appears to not be a ReactComponent. Keys: " +
|
|
8266
|
-
Object.keys(component)
|
|
8755
|
+
"Argument appears to not be a ReactComponent. Keys: " + component
|
|
8267
8756
|
);
|
|
8268
8757
|
}
|
|
8269
8758
|
component = findCurrentHostFiber(fiber);
|
|
@@ -8273,6 +8762,7 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8273
8762
|
var current = container.current,
|
|
8274
8763
|
eventTime = requestEventTime(),
|
|
8275
8764
|
lane = requestUpdateLane(current);
|
|
8765
|
+
supportsUserTimingV3 && markAndClear("--schedule-render-" + lane);
|
|
8276
8766
|
a: if (parentComponent) {
|
|
8277
8767
|
parentComponent = parentComponent._reactInternals;
|
|
8278
8768
|
b: {
|
|
@@ -8454,10 +8944,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8454
8944
|
}
|
|
8455
8945
|
};
|
|
8456
8946
|
var roots = new Map(),
|
|
8457
|
-
devToolsConfig$jscomp$
|
|
8947
|
+
devToolsConfig$jscomp$inline_1061 = {
|
|
8458
8948
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8459
8949
|
bundleType: 0,
|
|
8460
|
-
version: "18.0.0-
|
|
8950
|
+
version: "18.0.0-c0c71a868-20211112",
|
|
8461
8951
|
rendererPackageName: "react-native-renderer",
|
|
8462
8952
|
rendererConfig: {
|
|
8463
8953
|
getInspectorDataForViewTag: function() {
|
|
@@ -8472,11 +8962,11 @@ var roots = new Map(),
|
|
|
8472
8962
|
}.bind(null, findNodeHandle)
|
|
8473
8963
|
}
|
|
8474
8964
|
};
|
|
8475
|
-
var internals$jscomp$
|
|
8476
|
-
bundleType: devToolsConfig$jscomp$
|
|
8477
|
-
version: devToolsConfig$jscomp$
|
|
8478
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8479
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8965
|
+
var internals$jscomp$inline_1359 = {
|
|
8966
|
+
bundleType: devToolsConfig$jscomp$inline_1061.bundleType,
|
|
8967
|
+
version: devToolsConfig$jscomp$inline_1061.version,
|
|
8968
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1061.rendererPackageName,
|
|
8969
|
+
rendererConfig: devToolsConfig$jscomp$inline_1061.rendererConfig,
|
|
8480
8970
|
overrideHookState: null,
|
|
8481
8971
|
overrideHookStateDeletePath: null,
|
|
8482
8972
|
overrideHookStateRenamePath: null,
|
|
@@ -8492,26 +8982,26 @@ var internals$jscomp$inline_1287 = {
|
|
|
8492
8982
|
return null === fiber ? null : fiber.stateNode;
|
|
8493
8983
|
},
|
|
8494
8984
|
findFiberByHostInstance:
|
|
8495
|
-
devToolsConfig$jscomp$
|
|
8985
|
+
devToolsConfig$jscomp$inline_1061.findFiberByHostInstance ||
|
|
8496
8986
|
emptyFindFiberByHostInstance,
|
|
8497
8987
|
findHostInstancesForRefresh: null,
|
|
8498
8988
|
scheduleRefresh: null,
|
|
8499
8989
|
scheduleRoot: null,
|
|
8500
8990
|
setRefreshHandler: null,
|
|
8501
8991
|
getCurrentFiber: null,
|
|
8502
|
-
reconcilerVersion: "18.0.0-
|
|
8992
|
+
reconcilerVersion: "18.0.0-c0c71a868-20211112"
|
|
8503
8993
|
};
|
|
8504
8994
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8505
|
-
var hook$jscomp$
|
|
8995
|
+
var hook$jscomp$inline_1360 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8506
8996
|
if (
|
|
8507
|
-
!hook$jscomp$
|
|
8508
|
-
hook$jscomp$
|
|
8997
|
+
!hook$jscomp$inline_1360.isDisabled &&
|
|
8998
|
+
hook$jscomp$inline_1360.supportsFiber
|
|
8509
8999
|
)
|
|
8510
9000
|
try {
|
|
8511
|
-
(rendererID = hook$jscomp$
|
|
8512
|
-
internals$jscomp$
|
|
9001
|
+
(rendererID = hook$jscomp$inline_1360.inject(
|
|
9002
|
+
internals$jscomp$inline_1359
|
|
8513
9003
|
)),
|
|
8514
|
-
(injectedHook = hook$jscomp$
|
|
9004
|
+
(injectedHook = hook$jscomp$inline_1360);
|
|
8515
9005
|
} catch (err) {}
|
|
8516
9006
|
}
|
|
8517
9007
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
@@ -8601,3 +9091,13 @@ exports.unmountComponentAtNodeAndRemoveContainer = function(containerTag) {
|
|
|
8601
9091
|
ReactNativePrivateInterface.UIManager.removeRootView(containerTag);
|
|
8602
9092
|
};
|
|
8603
9093
|
exports.unstable_batchedUpdates = batchedUpdates;
|
|
9094
|
+
|
|
9095
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
9096
|
+
if (
|
|
9097
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
9098
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
9099
|
+
'function'
|
|
9100
|
+
) {
|
|
9101
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
9102
|
+
}
|
|
9103
|
+
|