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<<84b02666b89c30d381a8cdd2ef587911>>
|
|
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"),
|
|
@@ -783,18 +794,16 @@ function recomputePluginOrdering() {
|
|
|
783
794
|
for (var pluginName in namesToPlugins) {
|
|
784
795
|
var pluginModule = namesToPlugins[pluginName],
|
|
785
796
|
pluginIndex = eventPluginOrder.indexOf(pluginName);
|
|
786
|
-
if (
|
|
797
|
+
if (-1 >= pluginIndex)
|
|
787
798
|
throw Error(
|
|
788
799
|
"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" +
|
|
789
|
-
pluginName +
|
|
790
|
-
"`."
|
|
800
|
+
(pluginName + "`.")
|
|
791
801
|
);
|
|
792
802
|
if (!plugins[pluginIndex]) {
|
|
793
803
|
if (!pluginModule.extractEvents)
|
|
794
804
|
throw Error(
|
|
795
805
|
"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" +
|
|
796
|
-
pluginName +
|
|
797
|
-
"` does not."
|
|
806
|
+
(pluginName + "` does not.")
|
|
798
807
|
);
|
|
799
808
|
plugins[pluginIndex] = pluginModule;
|
|
800
809
|
pluginIndex = pluginModule.eventTypes;
|
|
@@ -805,8 +814,7 @@ function recomputePluginOrdering() {
|
|
|
805
814
|
if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))
|
|
806
815
|
throw Error(
|
|
807
816
|
"EventPluginRegistry: More than one plugin attempted to publish the same event name, `" +
|
|
808
|
-
eventName$jscomp$0 +
|
|
809
|
-
"`."
|
|
817
|
+
(eventName$jscomp$0 + "`.")
|
|
810
818
|
);
|
|
811
819
|
eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;
|
|
812
820
|
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
|
|
@@ -846,8 +854,7 @@ function publishRegistrationName(registrationName, pluginModule) {
|
|
|
846
854
|
if (registrationNameModules[registrationName])
|
|
847
855
|
throw Error(
|
|
848
856
|
"EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" +
|
|
849
|
-
registrationName +
|
|
850
|
-
"`."
|
|
857
|
+
(registrationName + "`.")
|
|
851
858
|
);
|
|
852
859
|
registrationNameModules[registrationName] = pluginModule;
|
|
853
860
|
}
|
|
@@ -931,7 +938,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
931
938
|
"ReactNativeBridgeEventPlugin"
|
|
932
939
|
]);
|
|
933
940
|
recomputePluginOrdering();
|
|
934
|
-
var injectedNamesToPlugins$jscomp$
|
|
941
|
+
var injectedNamesToPlugins$jscomp$inline_243 = {
|
|
935
942
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
936
943
|
ReactNativeBridgeEventPlugin: {
|
|
937
944
|
eventTypes: {},
|
|
@@ -966,34 +973,33 @@ var injectedNamesToPlugins$jscomp$inline_229 = {
|
|
|
966
973
|
}
|
|
967
974
|
}
|
|
968
975
|
},
|
|
969
|
-
isOrderingDirty$jscomp$
|
|
970
|
-
pluginName$jscomp$
|
|
971
|
-
for (pluginName$jscomp$
|
|
976
|
+
isOrderingDirty$jscomp$inline_244 = !1,
|
|
977
|
+
pluginName$jscomp$inline_245;
|
|
978
|
+
for (pluginName$jscomp$inline_245 in injectedNamesToPlugins$jscomp$inline_243)
|
|
972
979
|
if (
|
|
973
|
-
injectedNamesToPlugins$jscomp$
|
|
974
|
-
pluginName$jscomp$
|
|
980
|
+
injectedNamesToPlugins$jscomp$inline_243.hasOwnProperty(
|
|
981
|
+
pluginName$jscomp$inline_245
|
|
975
982
|
)
|
|
976
983
|
) {
|
|
977
|
-
var pluginModule$jscomp$
|
|
978
|
-
injectedNamesToPlugins$jscomp$
|
|
984
|
+
var pluginModule$jscomp$inline_246 =
|
|
985
|
+
injectedNamesToPlugins$jscomp$inline_243[pluginName$jscomp$inline_245];
|
|
979
986
|
if (
|
|
980
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
981
|
-
namesToPlugins[pluginName$jscomp$
|
|
982
|
-
pluginModule$jscomp$
|
|
987
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_245) ||
|
|
988
|
+
namesToPlugins[pluginName$jscomp$inline_245] !==
|
|
989
|
+
pluginModule$jscomp$inline_246
|
|
983
990
|
) {
|
|
984
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
991
|
+
if (namesToPlugins[pluginName$jscomp$inline_245])
|
|
985
992
|
throw Error(
|
|
986
993
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
987
|
-
pluginName$jscomp$
|
|
988
|
-
"`."
|
|
994
|
+
(pluginName$jscomp$inline_245 + "`.")
|
|
989
995
|
);
|
|
990
996
|
namesToPlugins[
|
|
991
|
-
pluginName$jscomp$
|
|
992
|
-
] = pluginModule$jscomp$
|
|
993
|
-
isOrderingDirty$jscomp$
|
|
997
|
+
pluginName$jscomp$inline_245
|
|
998
|
+
] = pluginModule$jscomp$inline_246;
|
|
999
|
+
isOrderingDirty$jscomp$inline_244 = !0;
|
|
994
1000
|
}
|
|
995
1001
|
}
|
|
996
|
-
isOrderingDirty$jscomp$
|
|
1002
|
+
isOrderingDirty$jscomp$inline_244 && recomputePluginOrdering();
|
|
997
1003
|
function getInstanceFromInstance(instanceHandle) {
|
|
998
1004
|
return instanceHandle;
|
|
999
1005
|
}
|
|
@@ -1192,7 +1198,7 @@ function getNearestMountedFiber(fiber) {
|
|
|
1192
1198
|
fiber = node;
|
|
1193
1199
|
do
|
|
1194
1200
|
(node = fiber),
|
|
1195
|
-
0 !== (node.flags &
|
|
1201
|
+
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
|
1196
1202
|
(fiber = node.return);
|
|
1197
1203
|
while (fiber);
|
|
1198
1204
|
}
|
|
@@ -1642,6 +1648,27 @@ function onCommitRoot(root, eventPriority) {
|
|
|
1642
1648
|
);
|
|
1643
1649
|
} catch (err) {}
|
|
1644
1650
|
}
|
|
1651
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1652
|
+
log = Math.log,
|
|
1653
|
+
LN2 = Math.LN2;
|
|
1654
|
+
function clz32Fallback(x) {
|
|
1655
|
+
x >>>= 0;
|
|
1656
|
+
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
1657
|
+
}
|
|
1658
|
+
function getLabelForLane(lane) {
|
|
1659
|
+
if (lane & 1) return "Sync";
|
|
1660
|
+
if (lane & 2) return "InputContinuousHydration";
|
|
1661
|
+
if (lane & 4) return "InputContinuous";
|
|
1662
|
+
if (lane & 8) return "DefaultHydration";
|
|
1663
|
+
if (lane & 16) return "Default";
|
|
1664
|
+
if (lane & 32) return "TransitionHydration";
|
|
1665
|
+
if (lane & 4194240) return "Transition";
|
|
1666
|
+
if (lane & 130023424) return "Retry";
|
|
1667
|
+
if (lane & 134217728) return "SelectiveHydration";
|
|
1668
|
+
if (lane & 268435456) return "IdleHydration";
|
|
1669
|
+
if (lane & 536870912) return "Idle";
|
|
1670
|
+
if (lane & 1073741824) return "Offscreen";
|
|
1671
|
+
}
|
|
1645
1672
|
var nextTransitionLane = 64,
|
|
1646
1673
|
nextRetryLane = 4194304;
|
|
1647
1674
|
function getHighestPriorityLanes(lanes) {
|
|
@@ -1781,6 +1808,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1781
1808
|
root = root.pendingLanes & -1073741825;
|
|
1782
1809
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1783
1810
|
}
|
|
1811
|
+
function includesBlockingLane(root, lanes) {
|
|
1812
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1813
|
+
}
|
|
1784
1814
|
function createLaneMap(initial) {
|
|
1785
1815
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1786
1816
|
return laneMap;
|
|
@@ -1852,12 +1882,6 @@ function movePendingFibersToMemoized(root, lanes) {
|
|
|
1852
1882
|
lanes &= ~root;
|
|
1853
1883
|
}
|
|
1854
1884
|
}
|
|
1855
|
-
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1856
|
-
log = Math.log,
|
|
1857
|
-
LN2 = Math.LN2;
|
|
1858
|
-
function clz32Fallback(lanes) {
|
|
1859
|
-
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
|
|
1860
|
-
}
|
|
1861
1885
|
var currentUpdatePriority = 0;
|
|
1862
1886
|
function lanesToEventPriority(lanes) {
|
|
1863
1887
|
lanes &= -lanes;
|
|
@@ -2133,7 +2157,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2133
2157
|
: pop(didPerformWorkStackCursor);
|
|
2134
2158
|
push(didPerformWorkStackCursor, didChange);
|
|
2135
2159
|
}
|
|
2136
|
-
|
|
2160
|
+
function is(x, y) {
|
|
2161
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2162
|
+
}
|
|
2163
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2164
|
+
syncQueue = null,
|
|
2137
2165
|
includesLegacySyncCallbacks = !1,
|
|
2138
2166
|
isFlushingSyncQueue = !1;
|
|
2139
2167
|
function flushSyncCallbacks() {
|
|
@@ -2161,11 +2189,114 @@ function flushSyncCallbacks() {
|
|
|
2161
2189
|
}
|
|
2162
2190
|
return null;
|
|
2163
2191
|
}
|
|
2164
|
-
var
|
|
2165
|
-
|
|
2166
|
-
|
|
2192
|
+
var supportsUserTimingV3 = !1;
|
|
2193
|
+
if (
|
|
2194
|
+
"undefined" !== typeof performance &&
|
|
2195
|
+
"function" === typeof performance.mark &&
|
|
2196
|
+
"function" === typeof performance.clearMarks
|
|
2197
|
+
) {
|
|
2198
|
+
var markOptions = {};
|
|
2199
|
+
Object.defineProperty(markOptions, "startTime", {
|
|
2200
|
+
get: function() {
|
|
2201
|
+
supportsUserTimingV3 = !0;
|
|
2202
|
+
return 0;
|
|
2203
|
+
},
|
|
2204
|
+
set: function() {}
|
|
2205
|
+
});
|
|
2206
|
+
try {
|
|
2207
|
+
performance.mark("__v3", markOptions);
|
|
2208
|
+
} catch (error) {
|
|
2209
|
+
} finally {
|
|
2210
|
+
performance.clearMarks("__v3");
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
var laneLabels = [];
|
|
2214
|
+
function getLaneLabels() {
|
|
2215
|
+
if (0 === laneLabels.length)
|
|
2216
|
+
for (var lane = 1, index$11 = 0; 31 > index$11; index$11++)
|
|
2217
|
+
laneLabels.push(getLabelForLane(lane)), (lane *= 2);
|
|
2218
|
+
return laneLabels;
|
|
2219
|
+
}
|
|
2220
|
+
function markAndClear(name) {
|
|
2221
|
+
performance.mark(name);
|
|
2222
|
+
performance.clearMarks(name);
|
|
2223
|
+
}
|
|
2224
|
+
function markInternalModuleRanges() {
|
|
2225
|
+
if (
|
|
2226
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
2227
|
+
"function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges
|
|
2228
|
+
) {
|
|
2229
|
+
var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();
|
|
2230
|
+
if (isArrayImpl(ranges))
|
|
2231
|
+
for (var i = 0; i < ranges.length; i++) {
|
|
2232
|
+
var range = ranges[i];
|
|
2233
|
+
if (isArrayImpl(range) && 2 === range.length) {
|
|
2234
|
+
range = ranges[i];
|
|
2235
|
+
var stopStackFrame = range[1];
|
|
2236
|
+
markAndClear("--react-internal-module-start-" + range[0]);
|
|
2237
|
+
markAndClear("--react-internal-module-stop-" + stopStackFrame);
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
function markComponentRenderStarted(fiber) {
|
|
2243
|
+
supportsUserTimingV3 &&
|
|
2244
|
+
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2245
|
+
markAndClear("--component-render-start-" + fiber));
|
|
2246
|
+
}
|
|
2247
|
+
function markComponentRenderStopped() {
|
|
2248
|
+
supportsUserTimingV3 && markAndClear("--component-render-stop");
|
|
2249
|
+
}
|
|
2250
|
+
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
2251
|
+
supportsUserTimingV3 &&
|
|
2252
|
+
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2253
|
+
markAndClear("--component-layout-effect-unmount-start-" + fiber));
|
|
2254
|
+
}
|
|
2255
|
+
function markComponentLayoutEffectUnmountStopped() {
|
|
2256
|
+
supportsUserTimingV3 &&
|
|
2257
|
+
markAndClear("--component-layout-effect-unmount-stop");
|
|
2258
|
+
}
|
|
2259
|
+
var wakeableIDs = new ("function" === typeof WeakMap ? WeakMap : Map)(),
|
|
2260
|
+
wakeableID = 0;
|
|
2261
|
+
function getWakeableID(wakeable) {
|
|
2262
|
+
wakeableIDs.has(wakeable) || wakeableIDs.set(wakeable, wakeableID++);
|
|
2263
|
+
return wakeableIDs.get(wakeable);
|
|
2264
|
+
}
|
|
2265
|
+
function markComponentSuspended(fiber, wakeable, lanes) {
|
|
2266
|
+
if (supportsUserTimingV3) {
|
|
2267
|
+
var eventType = wakeableIDs.has(wakeable) ? "resuspend" : "suspend",
|
|
2268
|
+
id = getWakeableID(wakeable),
|
|
2269
|
+
componentName = getComponentNameFromFiber(fiber) || "Unknown";
|
|
2270
|
+
markAndClear(
|
|
2271
|
+
"--suspense-" +
|
|
2272
|
+
eventType +
|
|
2273
|
+
"-" +
|
|
2274
|
+
id +
|
|
2275
|
+
"-" +
|
|
2276
|
+
componentName +
|
|
2277
|
+
"-" +
|
|
2278
|
+
(null === fiber.alternate ? "mount" : "update") +
|
|
2279
|
+
"-" +
|
|
2280
|
+
lanes +
|
|
2281
|
+
"-" +
|
|
2282
|
+
(wakeable.displayName || "")
|
|
2283
|
+
);
|
|
2284
|
+
wakeable.then(
|
|
2285
|
+
function() {
|
|
2286
|
+
return markAndClear("--suspense-resolved-" + id + "-" + componentName);
|
|
2287
|
+
},
|
|
2288
|
+
function() {
|
|
2289
|
+
return markAndClear("--suspense-rejected-" + id + "-" + componentName);
|
|
2290
|
+
}
|
|
2291
|
+
);
|
|
2292
|
+
}
|
|
2167
2293
|
}
|
|
2168
|
-
|
|
2294
|
+
function markStateUpdateScheduled(fiber, lane) {
|
|
2295
|
+
supportsUserTimingV3 &&
|
|
2296
|
+
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2297
|
+
markAndClear("--schedule-state-update-" + lane + "-" + fiber));
|
|
2298
|
+
}
|
|
2299
|
+
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2169
2300
|
function shallowEqual(objA, objB) {
|
|
2170
2301
|
if (objectIs(objA, objB)) return !0;
|
|
2171
2302
|
if (
|
|
@@ -2178,12 +2309,14 @@ function shallowEqual(objA, objB) {
|
|
|
2178
2309
|
var keysA = Object.keys(objA),
|
|
2179
2310
|
keysB = Object.keys(objB);
|
|
2180
2311
|
if (keysA.length !== keysB.length) return !1;
|
|
2181
|
-
for (keysB = 0; keysB < keysA.length; keysB++)
|
|
2312
|
+
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
2313
|
+
var currentKey = keysA[keysB];
|
|
2182
2314
|
if (
|
|
2183
|
-
!hasOwnProperty.call(objB,
|
|
2184
|
-
!objectIs(objA[
|
|
2315
|
+
!hasOwnProperty.call(objB, currentKey) ||
|
|
2316
|
+
!objectIs(objA[currentKey], objB[currentKey])
|
|
2185
2317
|
)
|
|
2186
2318
|
return !1;
|
|
2319
|
+
}
|
|
2187
2320
|
return !0;
|
|
2188
2321
|
}
|
|
2189
2322
|
function describeFiber(fiber) {
|
|
@@ -2450,7 +2583,7 @@ function processUpdateQueue(
|
|
|
2450
2583
|
newState = workInProgress;
|
|
2451
2584
|
break a;
|
|
2452
2585
|
case 3:
|
|
2453
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2586
|
+
workInProgress.flags = (workInProgress.flags & -65537) | 128;
|
|
2454
2587
|
case 0:
|
|
2455
2588
|
workInProgress = update.payload;
|
|
2456
2589
|
updateLane =
|
|
@@ -2566,6 +2699,7 @@ var classComponentUpdater = {
|
|
|
2566
2699
|
enqueueUpdate(inst, update);
|
|
2567
2700
|
payload = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2568
2701
|
null !== payload && entangleTransitions(payload, inst, lane);
|
|
2702
|
+
markStateUpdateScheduled(inst, lane);
|
|
2569
2703
|
},
|
|
2570
2704
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
2571
2705
|
inst = inst._reactInternals;
|
|
@@ -2578,17 +2712,21 @@ var classComponentUpdater = {
|
|
|
2578
2712
|
enqueueUpdate(inst, update);
|
|
2579
2713
|
payload = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2580
2714
|
null !== payload && entangleTransitions(payload, inst, lane);
|
|
2715
|
+
markStateUpdateScheduled(inst, lane);
|
|
2581
2716
|
},
|
|
2582
2717
|
enqueueForceUpdate: function(inst, callback) {
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2718
|
+
var fiber = inst._reactInternals,
|
|
2719
|
+
eventTime = requestEventTime();
|
|
2720
|
+
inst = requestUpdateLane(fiber);
|
|
2721
|
+
var update = createUpdate(eventTime, inst);
|
|
2587
2722
|
update.tag = 2;
|
|
2588
2723
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2589
|
-
enqueueUpdate(
|
|
2590
|
-
callback = scheduleUpdateOnFiber(
|
|
2591
|
-
null !== callback && entangleTransitions(callback,
|
|
2724
|
+
enqueueUpdate(fiber, update);
|
|
2725
|
+
callback = scheduleUpdateOnFiber(fiber, inst, eventTime);
|
|
2726
|
+
null !== callback && entangleTransitions(callback, fiber, inst);
|
|
2727
|
+
supportsUserTimingV3 &&
|
|
2728
|
+
((callback = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2729
|
+
markAndClear("--schedule-forced-update-" + inst + "-" + callback));
|
|
2592
2730
|
}
|
|
2593
2731
|
};
|
|
2594
2732
|
function checkShouldComponentUpdate(
|
|
@@ -2681,6 +2819,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2681
2819
|
"function" === typeof instance.componentDidMount &&
|
|
2682
2820
|
(workInProgress.flags |= 4);
|
|
2683
2821
|
}
|
|
2822
|
+
var forkStack = [],
|
|
2823
|
+
forkStackIndex = 0,
|
|
2824
|
+
treeForkProvider = null,
|
|
2825
|
+
idStack = [],
|
|
2826
|
+
idStackIndex = 0,
|
|
2827
|
+
treeContextProvider = null;
|
|
2828
|
+
function popTreeContext(workInProgress) {
|
|
2829
|
+
for (; workInProgress === treeForkProvider; )
|
|
2830
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2831
|
+
(forkStack[forkStackIndex] = null),
|
|
2832
|
+
--forkStackIndex,
|
|
2833
|
+
(forkStack[forkStackIndex] = null);
|
|
2834
|
+
for (; workInProgress === treeContextProvider; )
|
|
2835
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2836
|
+
(idStack[idStackIndex] = null),
|
|
2837
|
+
--idStackIndex,
|
|
2838
|
+
(idStack[idStackIndex] = null),
|
|
2839
|
+
--idStackIndex,
|
|
2840
|
+
(idStack[idStackIndex] = null);
|
|
2841
|
+
}
|
|
2684
2842
|
function coerceRef(returnFiber, current, element) {
|
|
2685
2843
|
returnFiber = element.ref;
|
|
2686
2844
|
if (
|
|
@@ -2703,7 +2861,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2703
2861
|
returnFiber +
|
|
2704
2862
|
". This error is likely caused by a bug in React. Please file an issue."
|
|
2705
2863
|
);
|
|
2706
|
-
var
|
|
2864
|
+
var resolvedInst = inst,
|
|
2865
|
+
stringRef = "" + returnFiber;
|
|
2707
2866
|
if (
|
|
2708
2867
|
null !== current &&
|
|
2709
2868
|
null !== current.ref &&
|
|
@@ -2712,8 +2871,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2712
2871
|
)
|
|
2713
2872
|
return current.ref;
|
|
2714
2873
|
current = function(value) {
|
|
2715
|
-
var refs =
|
|
2716
|
-
refs === emptyRefsObject && (refs =
|
|
2874
|
+
var refs = resolvedInst.refs;
|
|
2875
|
+
refs === emptyRefsObject && (refs = resolvedInst.refs = {});
|
|
2717
2876
|
null === value ? delete refs[stringRef] : (refs[stringRef] = value);
|
|
2718
2877
|
};
|
|
2719
2878
|
current._stringRef = stringRef;
|
|
@@ -2774,7 +2933,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2774
2933
|
}
|
|
2775
2934
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
2776
2935
|
newFiber.index = newIndex;
|
|
2777
|
-
if (!shouldTrackSideEffects)
|
|
2936
|
+
if (!shouldTrackSideEffects)
|
|
2937
|
+
return (newFiber.flags |= 1048576), lastPlacedIndex;
|
|
2778
2938
|
newIndex = newFiber.alternate;
|
|
2779
2939
|
if (null !== newIndex)
|
|
2780
2940
|
return (
|
|
@@ -3378,7 +3538,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
3378
3538
|
currentHook = null,
|
|
3379
3539
|
workInProgressHook = null,
|
|
3380
3540
|
didScheduleRenderPhaseUpdate = !1,
|
|
3381
|
-
didScheduleRenderPhaseUpdateDuringThisPass = !1
|
|
3541
|
+
didScheduleRenderPhaseUpdateDuringThisPass = !1,
|
|
3542
|
+
globalClientIdCounter = 0;
|
|
3382
3543
|
function throwInvalidHookError() {
|
|
3383
3544
|
throw Error(
|
|
3384
3545
|
"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."
|
|
@@ -3412,7 +3573,7 @@ function renderWithHooks(
|
|
|
3412
3573
|
nextRenderLanes = 0;
|
|
3413
3574
|
do {
|
|
3414
3575
|
didScheduleRenderPhaseUpdateDuringThisPass = !1;
|
|
3415
|
-
if (
|
|
3576
|
+
if (25 <= nextRenderLanes)
|
|
3416
3577
|
throw Error(
|
|
3417
3578
|
"Too many re-renders. React limits the number of renders to prevent an infinite loop."
|
|
3418
3579
|
);
|
|
@@ -3513,19 +3674,18 @@ function updateReducer(reducer) {
|
|
|
3513
3674
|
(newBaseQueueLast = newBaseQueueLast.next = {
|
|
3514
3675
|
lane: 0,
|
|
3515
3676
|
action: update.action,
|
|
3516
|
-
|
|
3677
|
+
hasEagerState: update.hasEagerState,
|
|
3517
3678
|
eagerState: update.eagerState,
|
|
3518
3679
|
next: null
|
|
3519
3680
|
}),
|
|
3520
|
-
(current =
|
|
3521
|
-
update.
|
|
3522
|
-
|
|
3523
|
-
: reducer(current, update.action));
|
|
3681
|
+
(current = update.hasEagerState
|
|
3682
|
+
? update.eagerState
|
|
3683
|
+
: reducer(current, update.action));
|
|
3524
3684
|
else {
|
|
3525
3685
|
var clone = {
|
|
3526
3686
|
lane: updateLane,
|
|
3527
3687
|
action: update.action,
|
|
3528
|
-
|
|
3688
|
+
hasEagerState: update.hasEagerState,
|
|
3529
3689
|
eagerState: update.eagerState,
|
|
3530
3690
|
next: null
|
|
3531
3691
|
};
|
|
@@ -3645,9 +3805,9 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3645
3805
|
latestSetSnapshot(latestGetSnapshot(source._source));
|
|
3646
3806
|
var lane = requestUpdateLane(fiber);
|
|
3647
3807
|
root.mutableReadLanes |= lane & root.pendingLanes;
|
|
3648
|
-
} catch (error) {
|
|
3808
|
+
} catch (error$31) {
|
|
3649
3809
|
latestSetSnapshot(function() {
|
|
3650
|
-
throw error;
|
|
3810
|
+
throw error$31;
|
|
3651
3811
|
});
|
|
3652
3812
|
}
|
|
3653
3813
|
});
|
|
@@ -3665,7 +3825,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3665
3825
|
lastRenderedReducer: basicStateReducer,
|
|
3666
3826
|
lastRenderedState: snapshot
|
|
3667
3827
|
}),
|
|
3668
|
-
(hook.dispatch = setSnapshot =
|
|
3828
|
+
(hook.dispatch = setSnapshot = dispatchSetState.bind(
|
|
3669
3829
|
null,
|
|
3670
3830
|
currentlyRenderingFiber$1,
|
|
3671
3831
|
hook
|
|
@@ -3680,11 +3840,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3680
3840
|
var hook = updateWorkInProgressHook();
|
|
3681
3841
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3682
3842
|
}
|
|
3843
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3844
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3845
|
+
hook = mountWorkInProgressHook();
|
|
3846
|
+
var nextSnapshot = getSnapshot();
|
|
3847
|
+
var root = workInProgressRoot;
|
|
3848
|
+
if (null === root)
|
|
3849
|
+
throw Error(
|
|
3850
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3851
|
+
);
|
|
3852
|
+
includesBlockingLane(root, renderLanes) ||
|
|
3853
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3854
|
+
hook.memoizedState = nextSnapshot;
|
|
3855
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3856
|
+
hook.queue = root;
|
|
3857
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [subscribe]);
|
|
3858
|
+
fiber.flags |= 2048;
|
|
3859
|
+
pushEffect(
|
|
3860
|
+
9,
|
|
3861
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3862
|
+
void 0,
|
|
3863
|
+
null
|
|
3864
|
+
);
|
|
3865
|
+
return nextSnapshot;
|
|
3866
|
+
}
|
|
3867
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3868
|
+
fiber.flags |= 16384;
|
|
3869
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3870
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3871
|
+
null === getSnapshot
|
|
3872
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3873
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3874
|
+
(getSnapshot.stores = [fiber]))
|
|
3875
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3876
|
+
null === renderedSnapshot
|
|
3877
|
+
? (getSnapshot.stores = [fiber])
|
|
3878
|
+
: renderedSnapshot.push(fiber));
|
|
3879
|
+
}
|
|
3880
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3881
|
+
inst.value = nextSnapshot;
|
|
3882
|
+
inst.getSnapshot = getSnapshot;
|
|
3883
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3884
|
+
}
|
|
3885
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3886
|
+
return subscribe(function() {
|
|
3887
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3888
|
+
});
|
|
3889
|
+
}
|
|
3890
|
+
function checkIfSnapshotChanged(inst) {
|
|
3891
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3892
|
+
inst = inst.value;
|
|
3893
|
+
try {
|
|
3894
|
+
var nextValue = latestGetSnapshot();
|
|
3895
|
+
return !objectIs(inst, nextValue);
|
|
3896
|
+
} catch (error$32) {
|
|
3897
|
+
return !0;
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3683
3900
|
function mountState(initialState) {
|
|
3684
3901
|
var hook = mountWorkInProgressHook();
|
|
3685
3902
|
"function" === typeof initialState && (initialState = initialState());
|
|
3686
3903
|
hook.memoizedState = hook.baseState = initialState;
|
|
3687
|
-
initialState =
|
|
3904
|
+
initialState = {
|
|
3688
3905
|
pending: null,
|
|
3689
3906
|
interleaved: null,
|
|
3690
3907
|
lanes: 0,
|
|
@@ -3692,7 +3909,8 @@ function mountState(initialState) {
|
|
|
3692
3909
|
lastRenderedReducer: basicStateReducer,
|
|
3693
3910
|
lastRenderedState: initialState
|
|
3694
3911
|
};
|
|
3695
|
-
|
|
3912
|
+
hook.queue = initialState;
|
|
3913
|
+
initialState = initialState.dispatch = dispatchSetState.bind(
|
|
3696
3914
|
null,
|
|
3697
3915
|
currentlyRenderingFiber$1,
|
|
3698
3916
|
initialState
|
|
@@ -3703,7 +3921,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3703
3921
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3704
3922
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3705
3923
|
null === create
|
|
3706
|
-
? ((create = { lastEffect: null }),
|
|
3924
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3707
3925
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3708
3926
|
(create.lastEffect = tag.next = tag))
|
|
3709
3927
|
: ((destroy = create.lastEffect),
|
|
@@ -3744,14 +3962,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3744
3962
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3745
3963
|
}
|
|
3746
3964
|
function mountEffect(create, deps) {
|
|
3747
|
-
return mountEffectImpl(
|
|
3965
|
+
return mountEffectImpl(8390656, 8, create, deps);
|
|
3748
3966
|
}
|
|
3749
3967
|
function updateEffect(create, deps) {
|
|
3750
|
-
return updateEffectImpl(
|
|
3968
|
+
return updateEffectImpl(2048, 8, create, deps);
|
|
3751
3969
|
}
|
|
3752
|
-
function
|
|
3970
|
+
function updateInsertionEffect(create, deps) {
|
|
3753
3971
|
return updateEffectImpl(4, 2, create, deps);
|
|
3754
3972
|
}
|
|
3973
|
+
function updateLayoutEffect(create, deps) {
|
|
3974
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3975
|
+
}
|
|
3755
3976
|
function imperativeHandleEffect(create, ref) {
|
|
3756
3977
|
if ("function" === typeof ref)
|
|
3757
3978
|
return (
|
|
@@ -3774,7 +3995,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3774
3995
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3775
3996
|
return updateEffectImpl(
|
|
3776
3997
|
4,
|
|
3777
|
-
|
|
3998
|
+
4,
|
|
3778
3999
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3779
4000
|
deps
|
|
3780
4001
|
);
|
|
@@ -3821,47 +4042,39 @@ function startTransition(setPending, callback) {
|
|
|
3821
4042
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3822
4043
|
}
|
|
3823
4044
|
}
|
|
3824
|
-
function
|
|
3825
|
-
|
|
3826
|
-
|
|
4045
|
+
function updateId() {
|
|
4046
|
+
return updateWorkInProgressHook().memoizedState;
|
|
4047
|
+
}
|
|
4048
|
+
function dispatchReducerAction(fiber, queue, action) {
|
|
4049
|
+
var lane = requestUpdateLane(fiber);
|
|
4050
|
+
action = {
|
|
4051
|
+
lane: lane,
|
|
4052
|
+
action: action,
|
|
4053
|
+
hasEagerState: !1,
|
|
4054
|
+
eagerState: null,
|
|
4055
|
+
next: null
|
|
4056
|
+
};
|
|
4057
|
+
isRenderPhaseUpdate(fiber)
|
|
4058
|
+
? enqueueRenderPhaseUpdate(queue, action)
|
|
4059
|
+
: (enqueueUpdate$1(fiber, queue, action),
|
|
4060
|
+
(action = requestEventTime()),
|
|
4061
|
+
(action = scheduleUpdateOnFiber(fiber, lane, action)),
|
|
4062
|
+
null !== action && entangleTransitionUpdate(action, queue, lane));
|
|
4063
|
+
markStateUpdateScheduled(fiber, lane);
|
|
4064
|
+
}
|
|
4065
|
+
function dispatchSetState(fiber, queue, action) {
|
|
4066
|
+
var lane = requestUpdateLane(fiber),
|
|
3827
4067
|
update = {
|
|
3828
4068
|
lane: lane,
|
|
3829
4069
|
action: action,
|
|
3830
|
-
|
|
4070
|
+
hasEagerState: !1,
|
|
3831
4071
|
eagerState: null,
|
|
3832
4072
|
next: null
|
|
3833
|
-
}
|
|
3834
|
-
|
|
3835
|
-
if (
|
|
3836
|
-
fiber === currentlyRenderingFiber$1 ||
|
|
3837
|
-
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3838
|
-
)
|
|
3839
|
-
(didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0),
|
|
3840
|
-
(lane = queue.pending),
|
|
3841
|
-
null === lane
|
|
3842
|
-
? (update.next = update)
|
|
3843
|
-
: ((update.next = lane.next), (lane.next = update)),
|
|
3844
|
-
(queue.pending = update);
|
|
4073
|
+
};
|
|
4074
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3845
4075
|
else {
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
0 !== (fiber.mode & 1) &&
|
|
3849
|
-
0 === (executionContext & 2)
|
|
3850
|
-
) {
|
|
3851
|
-
var interleaved = queue.interleaved;
|
|
3852
|
-
null === interleaved
|
|
3853
|
-
? ((update.next = update),
|
|
3854
|
-
null === interleavedQueues
|
|
3855
|
-
? (interleavedQueues = [queue])
|
|
3856
|
-
: interleavedQueues.push(queue))
|
|
3857
|
-
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
3858
|
-
queue.interleaved = update;
|
|
3859
|
-
} else
|
|
3860
|
-
(interleaved = queue.pending),
|
|
3861
|
-
null === interleaved
|
|
3862
|
-
? (update.next = update)
|
|
3863
|
-
: ((update.next = interleaved.next), (interleaved.next = update)),
|
|
3864
|
-
(queue.pending = update);
|
|
4076
|
+
enqueueUpdate$1(fiber, queue, update);
|
|
4077
|
+
var alternate = fiber.alternate;
|
|
3865
4078
|
if (
|
|
3866
4079
|
0 === fiber.lanes &&
|
|
3867
4080
|
(null === alternate || 0 === alternate.lanes) &&
|
|
@@ -3870,20 +4083,58 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3870
4083
|
try {
|
|
3871
4084
|
var currentState = queue.lastRenderedState,
|
|
3872
4085
|
eagerState = alternate(currentState, action);
|
|
3873
|
-
update.
|
|
4086
|
+
update.hasEagerState = !0;
|
|
3874
4087
|
update.eagerState = eagerState;
|
|
3875
4088
|
if (objectIs(eagerState, currentState)) return;
|
|
3876
|
-
} catch (error) {
|
|
4089
|
+
} catch (error$34) {
|
|
3877
4090
|
} finally {
|
|
3878
4091
|
}
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
4092
|
+
action = requestEventTime();
|
|
4093
|
+
action = scheduleUpdateOnFiber(fiber, lane, action);
|
|
4094
|
+
null !== action && entangleTransitionUpdate(action, queue, lane);
|
|
4095
|
+
}
|
|
4096
|
+
markStateUpdateScheduled(fiber, lane);
|
|
4097
|
+
}
|
|
4098
|
+
function isRenderPhaseUpdate(fiber) {
|
|
4099
|
+
var alternate = fiber.alternate;
|
|
4100
|
+
return (
|
|
4101
|
+
fiber === currentlyRenderingFiber$1 ||
|
|
4102
|
+
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
4103
|
+
);
|
|
4104
|
+
}
|
|
4105
|
+
function enqueueRenderPhaseUpdate(queue, update) {
|
|
4106
|
+
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
|
|
4107
|
+
var pending = queue.pending;
|
|
4108
|
+
null === pending
|
|
4109
|
+
? (update.next = update)
|
|
4110
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
4111
|
+
queue.pending = update;
|
|
4112
|
+
}
|
|
4113
|
+
function enqueueUpdate$1(fiber, queue, update) {
|
|
4114
|
+
null !== workInProgressRoot &&
|
|
4115
|
+
0 !== (fiber.mode & 1) &&
|
|
4116
|
+
0 === (executionContext & 2)
|
|
4117
|
+
? ((fiber = queue.interleaved),
|
|
4118
|
+
null === fiber
|
|
4119
|
+
? ((update.next = update),
|
|
4120
|
+
null === interleavedQueues
|
|
4121
|
+
? (interleavedQueues = [queue])
|
|
4122
|
+
: interleavedQueues.push(queue))
|
|
4123
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
4124
|
+
(queue.interleaved = update))
|
|
4125
|
+
: ((fiber = queue.pending),
|
|
4126
|
+
null === fiber
|
|
4127
|
+
? (update.next = update)
|
|
4128
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
4129
|
+
(queue.pending = update));
|
|
4130
|
+
}
|
|
4131
|
+
function entangleTransitionUpdate(root, queue, lane) {
|
|
4132
|
+
if (0 !== (lane & 4194240)) {
|
|
4133
|
+
var queueLanes = queue.lanes;
|
|
4134
|
+
queueLanes &= root.pendingLanes;
|
|
4135
|
+
lane |= queueLanes;
|
|
4136
|
+
queue.lanes = lane;
|
|
4137
|
+
markRootEntangled(root, lane);
|
|
3887
4138
|
}
|
|
3888
4139
|
}
|
|
3889
4140
|
var ContextOnlyDispatcher = {
|
|
@@ -3892,6 +4143,7 @@ var ContextOnlyDispatcher = {
|
|
|
3892
4143
|
useContext: throwInvalidHookError,
|
|
3893
4144
|
useEffect: throwInvalidHookError,
|
|
3894
4145
|
useImperativeHandle: throwInvalidHookError,
|
|
4146
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3895
4147
|
useLayoutEffect: throwInvalidHookError,
|
|
3896
4148
|
useMemo: throwInvalidHookError,
|
|
3897
4149
|
useReducer: throwInvalidHookError,
|
|
@@ -3901,7 +4153,8 @@ var ContextOnlyDispatcher = {
|
|
|
3901
4153
|
useDeferredValue: throwInvalidHookError,
|
|
3902
4154
|
useTransition: throwInvalidHookError,
|
|
3903
4155
|
useMutableSource: throwInvalidHookError,
|
|
3904
|
-
|
|
4156
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
4157
|
+
useId: throwInvalidHookError,
|
|
3905
4158
|
unstable_isNewReconciler: !1
|
|
3906
4159
|
},
|
|
3907
4160
|
HooksDispatcherOnMount = {
|
|
@@ -3919,12 +4172,15 @@ var ContextOnlyDispatcher = {
|
|
|
3919
4172
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3920
4173
|
return mountEffectImpl(
|
|
3921
4174
|
4,
|
|
3922
|
-
|
|
4175
|
+
4,
|
|
3923
4176
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3924
4177
|
deps
|
|
3925
4178
|
);
|
|
3926
4179
|
},
|
|
3927
4180
|
useLayoutEffect: function(create, deps) {
|
|
4181
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
4182
|
+
},
|
|
4183
|
+
useInsertionEffect: function(create, deps) {
|
|
3928
4184
|
return mountEffectImpl(4, 2, create, deps);
|
|
3929
4185
|
},
|
|
3930
4186
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3938,7 +4194,7 @@ var ContextOnlyDispatcher = {
|
|
|
3938
4194
|
var hook = mountWorkInProgressHook();
|
|
3939
4195
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3940
4196
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3941
|
-
reducer =
|
|
4197
|
+
reducer = {
|
|
3942
4198
|
pending: null,
|
|
3943
4199
|
interleaved: null,
|
|
3944
4200
|
lanes: 0,
|
|
@@ -3946,7 +4202,8 @@ var ContextOnlyDispatcher = {
|
|
|
3946
4202
|
lastRenderedReducer: reducer,
|
|
3947
4203
|
lastRenderedState: initialArg
|
|
3948
4204
|
};
|
|
3949
|
-
|
|
4205
|
+
hook.queue = reducer;
|
|
4206
|
+
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
3950
4207
|
null,
|
|
3951
4208
|
currentlyRenderingFiber$1,
|
|
3952
4209
|
reducer
|
|
@@ -3994,8 +4251,11 @@ var ContextOnlyDispatcher = {
|
|
|
3994
4251
|
};
|
|
3995
4252
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3996
4253
|
},
|
|
3997
|
-
|
|
3998
|
-
|
|
4254
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4255
|
+
useId: function() {
|
|
4256
|
+
var hook = mountWorkInProgressHook();
|
|
4257
|
+
var id = "r:" + (globalClientIdCounter++).toString(32);
|
|
4258
|
+
return (hook.memoizedState = id);
|
|
3999
4259
|
},
|
|
4000
4260
|
unstable_isNewReconciler: !1
|
|
4001
4261
|
},
|
|
@@ -4005,6 +4265,7 @@ var ContextOnlyDispatcher = {
|
|
|
4005
4265
|
useContext: readContext,
|
|
4006
4266
|
useEffect: updateEffect,
|
|
4007
4267
|
useImperativeHandle: updateImperativeHandle,
|
|
4268
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4008
4269
|
useLayoutEffect: updateLayoutEffect,
|
|
4009
4270
|
useMemo: updateMemo,
|
|
4010
4271
|
useReducer: updateReducer,
|
|
@@ -4037,9 +4298,47 @@ var ContextOnlyDispatcher = {
|
|
|
4037
4298
|
return [isPending, start];
|
|
4038
4299
|
},
|
|
4039
4300
|
useMutableSource: updateMutableSource,
|
|
4040
|
-
|
|
4041
|
-
|
|
4301
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4302
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4303
|
+
hook = updateWorkInProgressHook(),
|
|
4304
|
+
nextSnapshot = getSnapshot(),
|
|
4305
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4306
|
+
snapshotChanged &&
|
|
4307
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4308
|
+
hook = hook.queue;
|
|
4309
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4310
|
+
subscribe
|
|
4311
|
+
]);
|
|
4312
|
+
if (
|
|
4313
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4314
|
+
snapshotChanged ||
|
|
4315
|
+
(null !== workInProgressHook &&
|
|
4316
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4317
|
+
) {
|
|
4318
|
+
fiber.flags |= 2048;
|
|
4319
|
+
pushEffect(
|
|
4320
|
+
9,
|
|
4321
|
+
updateStoreInstance.bind(
|
|
4322
|
+
null,
|
|
4323
|
+
fiber,
|
|
4324
|
+
hook,
|
|
4325
|
+
nextSnapshot,
|
|
4326
|
+
getSnapshot
|
|
4327
|
+
),
|
|
4328
|
+
void 0,
|
|
4329
|
+
null
|
|
4330
|
+
);
|
|
4331
|
+
subscribe = workInProgressRoot;
|
|
4332
|
+
if (null === subscribe)
|
|
4333
|
+
throw Error(
|
|
4334
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4335
|
+
);
|
|
4336
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4337
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4338
|
+
}
|
|
4339
|
+
return nextSnapshot;
|
|
4042
4340
|
},
|
|
4341
|
+
useId: updateId,
|
|
4043
4342
|
unstable_isNewReconciler: !1
|
|
4044
4343
|
},
|
|
4045
4344
|
HooksDispatcherOnRerender = {
|
|
@@ -4048,6 +4347,7 @@ var ContextOnlyDispatcher = {
|
|
|
4048
4347
|
useContext: readContext,
|
|
4049
4348
|
useEffect: updateEffect,
|
|
4050
4349
|
useImperativeHandle: updateImperativeHandle,
|
|
4350
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4051
4351
|
useLayoutEffect: updateLayoutEffect,
|
|
4052
4352
|
useMemo: updateMemo,
|
|
4053
4353
|
useReducer: rerenderReducer,
|
|
@@ -4080,9 +4380,8 @@ var ContextOnlyDispatcher = {
|
|
|
4080
4380
|
return [isPending, start];
|
|
4081
4381
|
},
|
|
4082
4382
|
useMutableSource: updateMutableSource,
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
},
|
|
4383
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4384
|
+
useId: updateId,
|
|
4086
4385
|
unstable_isNewReconciler: !1
|
|
4087
4386
|
},
|
|
4088
4387
|
now$1 = Scheduler.unstable_now,
|
|
@@ -4178,7 +4477,7 @@ function logCapturedError(boundary, errorInfo) {
|
|
|
4178
4477
|
});
|
|
4179
4478
|
}
|
|
4180
4479
|
}
|
|
4181
|
-
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4480
|
+
var PossiblyWeakMap$1 = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4182
4481
|
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
4183
4482
|
lane = createUpdate(-1, lane);
|
|
4184
4483
|
lane.tag = 3;
|
|
@@ -4195,9 +4494,9 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4195
4494
|
lane.tag = 3;
|
|
4196
4495
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
4197
4496
|
if ("function" === typeof getDerivedStateFromError) {
|
|
4198
|
-
var error = errorInfo.value;
|
|
4497
|
+
var error$36 = errorInfo.value;
|
|
4199
4498
|
lane.payload = function() {
|
|
4200
|
-
return getDerivedStateFromError(error);
|
|
4499
|
+
return getDerivedStateFromError(error$36);
|
|
4201
4500
|
};
|
|
4202
4501
|
lane.callback = function() {
|
|
4203
4502
|
logCapturedError(fiber, errorInfo);
|
|
@@ -4223,7 +4522,7 @@ function hadNoMutationsEffects(current, completedWork) {
|
|
|
4223
4522
|
if (null !== current && current.child === completedWork.child) return !0;
|
|
4224
4523
|
if (0 !== (completedWork.flags & 16)) return !1;
|
|
4225
4524
|
for (current = completedWork.child; null !== current; ) {
|
|
4226
|
-
if (0 !== (current.flags &
|
|
4525
|
+
if (0 !== (current.flags & 12854) || 0 !== (current.subtreeFlags & 12854))
|
|
4227
4526
|
return !1;
|
|
4228
4527
|
current = current.sibling;
|
|
4229
4528
|
}
|
|
@@ -4387,14 +4686,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4387
4686
|
break;
|
|
4388
4687
|
case "collapsed":
|
|
4389
4688
|
lastTailNode = renderState.tail;
|
|
4390
|
-
for (var lastTailNode$
|
|
4391
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4689
|
+
for (var lastTailNode$43 = null; null !== lastTailNode; )
|
|
4690
|
+
null !== lastTailNode.alternate && (lastTailNode$43 = lastTailNode),
|
|
4392
4691
|
(lastTailNode = lastTailNode.sibling);
|
|
4393
|
-
null === lastTailNode$
|
|
4692
|
+
null === lastTailNode$43
|
|
4394
4693
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4395
4694
|
? (renderState.tail = null)
|
|
4396
4695
|
: (renderState.tail.sibling = null)
|
|
4397
|
-
: (lastTailNode$
|
|
4696
|
+
: (lastTailNode$43.sibling = null);
|
|
4398
4697
|
}
|
|
4399
4698
|
}
|
|
4400
4699
|
function bubbleProperties(completedWork) {
|
|
@@ -4406,53 +4705,53 @@ function bubbleProperties(completedWork) {
|
|
|
4406
4705
|
if (didBailout)
|
|
4407
4706
|
if (0 !== (completedWork.mode & 2)) {
|
|
4408
4707
|
for (
|
|
4409
|
-
var treeBaseDuration$
|
|
4410
|
-
child$
|
|
4411
|
-
null !== child$
|
|
4708
|
+
var treeBaseDuration$45 = completedWork.selfBaseDuration,
|
|
4709
|
+
child$46 = completedWork.child;
|
|
4710
|
+
null !== child$46;
|
|
4412
4711
|
|
|
4413
4712
|
)
|
|
4414
|
-
(newChildLanes |= child$
|
|
4415
|
-
(subtreeFlags |= child$
|
|
4416
|
-
(subtreeFlags |= child$
|
|
4417
|
-
(treeBaseDuration$
|
|
4418
|
-
(child$
|
|
4419
|
-
completedWork.treeBaseDuration = treeBaseDuration$
|
|
4713
|
+
(newChildLanes |= child$46.lanes | child$46.childLanes),
|
|
4714
|
+
(subtreeFlags |= child$46.subtreeFlags & 14680064),
|
|
4715
|
+
(subtreeFlags |= child$46.flags & 14680064),
|
|
4716
|
+
(treeBaseDuration$45 += child$46.treeBaseDuration),
|
|
4717
|
+
(child$46 = child$46.sibling);
|
|
4718
|
+
completedWork.treeBaseDuration = treeBaseDuration$45;
|
|
4420
4719
|
} else
|
|
4421
4720
|
for (
|
|
4422
|
-
treeBaseDuration$
|
|
4423
|
-
null !== treeBaseDuration$
|
|
4721
|
+
treeBaseDuration$45 = completedWork.child;
|
|
4722
|
+
null !== treeBaseDuration$45;
|
|
4424
4723
|
|
|
4425
4724
|
)
|
|
4426
4725
|
(newChildLanes |=
|
|
4427
|
-
treeBaseDuration$
|
|
4428
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4429
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4430
|
-
(treeBaseDuration$
|
|
4431
|
-
(treeBaseDuration$
|
|
4726
|
+
treeBaseDuration$45.lanes | treeBaseDuration$45.childLanes),
|
|
4727
|
+
(subtreeFlags |= treeBaseDuration$45.subtreeFlags & 14680064),
|
|
4728
|
+
(subtreeFlags |= treeBaseDuration$45.flags & 14680064),
|
|
4729
|
+
(treeBaseDuration$45.return = completedWork),
|
|
4730
|
+
(treeBaseDuration$45 = treeBaseDuration$45.sibling);
|
|
4432
4731
|
else if (0 !== (completedWork.mode & 2)) {
|
|
4433
|
-
treeBaseDuration$
|
|
4434
|
-
child$
|
|
4732
|
+
treeBaseDuration$45 = completedWork.actualDuration;
|
|
4733
|
+
child$46 = completedWork.selfBaseDuration;
|
|
4435
4734
|
for (var child = completedWork.child; null !== child; )
|
|
4436
4735
|
(newChildLanes |= child.lanes | child.childLanes),
|
|
4437
4736
|
(subtreeFlags |= child.subtreeFlags),
|
|
4438
4737
|
(subtreeFlags |= child.flags),
|
|
4439
|
-
(treeBaseDuration$
|
|
4440
|
-
(child$
|
|
4738
|
+
(treeBaseDuration$45 += child.actualDuration),
|
|
4739
|
+
(child$46 += child.treeBaseDuration),
|
|
4441
4740
|
(child = child.sibling);
|
|
4442
|
-
completedWork.actualDuration = treeBaseDuration$
|
|
4443
|
-
completedWork.treeBaseDuration = child$
|
|
4741
|
+
completedWork.actualDuration = treeBaseDuration$45;
|
|
4742
|
+
completedWork.treeBaseDuration = child$46;
|
|
4444
4743
|
} else
|
|
4445
4744
|
for (
|
|
4446
|
-
treeBaseDuration$
|
|
4447
|
-
null !== treeBaseDuration$
|
|
4745
|
+
treeBaseDuration$45 = completedWork.child;
|
|
4746
|
+
null !== treeBaseDuration$45;
|
|
4448
4747
|
|
|
4449
4748
|
)
|
|
4450
4749
|
(newChildLanes |=
|
|
4451
|
-
treeBaseDuration$
|
|
4452
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4453
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4454
|
-
(treeBaseDuration$
|
|
4455
|
-
(treeBaseDuration$
|
|
4750
|
+
treeBaseDuration$45.lanes | treeBaseDuration$45.childLanes),
|
|
4751
|
+
(subtreeFlags |= treeBaseDuration$45.subtreeFlags),
|
|
4752
|
+
(subtreeFlags |= treeBaseDuration$45.flags),
|
|
4753
|
+
(treeBaseDuration$45.return = completedWork),
|
|
4754
|
+
(treeBaseDuration$45 = treeBaseDuration$45.sibling);
|
|
4456
4755
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4457
4756
|
completedWork.childLanes = newChildLanes;
|
|
4458
4757
|
return didBailout;
|
|
@@ -4479,11 +4778,12 @@ function completeSuspendedOffscreenHostContainer(current, workInProgress) {
|
|
|
4479
4778
|
)),
|
|
4480
4779
|
appendAllChildren(rootContainerInstance, workInProgress, !1, !1),
|
|
4481
4780
|
(workInProgress.stateNode = rootContainerInstance),
|
|
4482
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4781
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512));
|
|
4483
4782
|
bubbleProperties(workInProgress);
|
|
4484
4783
|
}
|
|
4485
4784
|
function completeWork(current, workInProgress, renderLanes) {
|
|
4486
4785
|
var newProps = workInProgress.pendingProps;
|
|
4786
|
+
popTreeContext(workInProgress);
|
|
4487
4787
|
switch (workInProgress.tag) {
|
|
4488
4788
|
case 2:
|
|
4489
4789
|
case 16:
|
|
@@ -4513,8 +4813,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4513
4813
|
((newProps.context = newProps.pendingContext),
|
|
4514
4814
|
(newProps.pendingContext = null)),
|
|
4515
4815
|
(null !== current && null !== current.child) ||
|
|
4516
|
-
newProps.
|
|
4517
|
-
(workInProgress.flags |=
|
|
4816
|
+
newProps.isDehydrated ||
|
|
4817
|
+
(workInProgress.flags |= 1024),
|
|
4518
4818
|
updateHostContainer(current, workInProgress),
|
|
4519
4819
|
bubbleProperties(workInProgress),
|
|
4520
4820
|
null
|
|
@@ -4531,7 +4831,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4531
4831
|
newProps,
|
|
4532
4832
|
renderLanes
|
|
4533
4833
|
),
|
|
4534
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |=
|
|
4834
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4535
4835
|
else {
|
|
4536
4836
|
if (!newProps) {
|
|
4537
4837
|
if (null === workInProgress.stateNode)
|
|
@@ -4551,7 +4851,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4551
4851
|
);
|
|
4552
4852
|
appendAllChildren(current, workInProgress, !1, !1);
|
|
4553
4853
|
workInProgress.stateNode = current;
|
|
4554
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4854
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4555
4855
|
}
|
|
4556
4856
|
bubbleProperties(workInProgress);
|
|
4557
4857
|
return null;
|
|
@@ -4595,7 +4895,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4595
4895
|
if (
|
|
4596
4896
|
newProps &&
|
|
4597
4897
|
!renderLanes &&
|
|
4598
|
-
((workInProgress.child.flags |=
|
|
4898
|
+
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4599
4899
|
)
|
|
4600
4900
|
if (
|
|
4601
4901
|
(null === current &&
|
|
@@ -4607,12 +4907,13 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4607
4907
|
else {
|
|
4608
4908
|
if (
|
|
4609
4909
|
0 === workInProgressRootExitStatus ||
|
|
4610
|
-
3 === workInProgressRootExitStatus
|
|
4910
|
+
3 === workInProgressRootExitStatus ||
|
|
4911
|
+
2 === workInProgressRootExitStatus
|
|
4611
4912
|
)
|
|
4612
4913
|
workInProgressRootExitStatus = 4;
|
|
4613
4914
|
null === workInProgressRoot ||
|
|
4614
4915
|
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4615
|
-
0 === (
|
|
4916
|
+
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
|
|
4616
4917
|
markRootSuspended$1(
|
|
4617
4918
|
workInProgressRoot,
|
|
4618
4919
|
workInProgressRootRenderLanes
|
|
@@ -4672,7 +4973,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4672
4973
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4673
4974
|
(renderLanes = newProps),
|
|
4674
4975
|
(renderedTail = current),
|
|
4675
|
-
(renderLanes.flags &=
|
|
4976
|
+
(renderLanes.flags &= 14680066),
|
|
4676
4977
|
(type = renderLanes.alternate),
|
|
4677
4978
|
null === type
|
|
4678
4979
|
? ((renderLanes.childLanes = 0),
|
|
@@ -4778,7 +5079,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4778
5079
|
(null !== current.memoizedState) !== renderLanes &&
|
|
4779
5080
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4780
5081
|
23 !== workInProgress.tag &&
|
|
4781
|
-
(workInProgress.flags |=
|
|
5082
|
+
(workInProgress.flags |= 8192),
|
|
4782
5083
|
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4783
5084
|
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4784
5085
|
bubbleProperties(workInProgress)
|
|
@@ -4815,6 +5116,7 @@ function updateForwardRef(
|
|
|
4815
5116
|
Component = Component.render;
|
|
4816
5117
|
var ref = workInProgress.ref;
|
|
4817
5118
|
prepareToReadContext(workInProgress, renderLanes);
|
|
5119
|
+
markComponentRenderStarted(workInProgress);
|
|
4818
5120
|
nextProps = renderWithHooks(
|
|
4819
5121
|
current,
|
|
4820
5122
|
workInProgress,
|
|
@@ -4823,10 +5125,11 @@ function updateForwardRef(
|
|
|
4823
5125
|
ref,
|
|
4824
5126
|
renderLanes
|
|
4825
5127
|
);
|
|
5128
|
+
markComponentRenderStopped();
|
|
4826
5129
|
if (null !== current && !didReceiveUpdate)
|
|
4827
5130
|
return (
|
|
4828
5131
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4829
|
-
(workInProgress.flags &= -
|
|
5132
|
+
(workInProgress.flags &= -2053),
|
|
4830
5133
|
(current.lanes &= ~renderLanes),
|
|
4831
5134
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4832
5135
|
);
|
|
@@ -4900,7 +5203,7 @@ function updateSimpleMemoComponent(
|
|
|
4900
5203
|
current.ref === workInProgress.ref
|
|
4901
5204
|
)
|
|
4902
5205
|
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4903
|
-
0 !== (current.flags &
|
|
5206
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4904
5207
|
else
|
|
4905
5208
|
return (
|
|
4906
5209
|
(workInProgress.lanes = current.lanes),
|
|
@@ -5003,7 +5306,7 @@ function markRef$1(current, workInProgress) {
|
|
|
5003
5306
|
(null === current && null !== ref) ||
|
|
5004
5307
|
(null !== current && current.ref !== ref)
|
|
5005
5308
|
)
|
|
5006
|
-
workInProgress.flags |=
|
|
5309
|
+
workInProgress.flags |= 512;
|
|
5007
5310
|
}
|
|
5008
5311
|
function updateFunctionComponent(
|
|
5009
5312
|
current,
|
|
@@ -5017,6 +5320,7 @@ function updateFunctionComponent(
|
|
|
5017
5320
|
: contextStackCursor.current;
|
|
5018
5321
|
context = getMaskedContext(workInProgress, context);
|
|
5019
5322
|
prepareToReadContext(workInProgress, renderLanes);
|
|
5323
|
+
markComponentRenderStarted(workInProgress);
|
|
5020
5324
|
Component = renderWithHooks(
|
|
5021
5325
|
current,
|
|
5022
5326
|
workInProgress,
|
|
@@ -5025,10 +5329,11 @@ function updateFunctionComponent(
|
|
|
5025
5329
|
context,
|
|
5026
5330
|
renderLanes
|
|
5027
5331
|
);
|
|
5332
|
+
markComponentRenderStopped();
|
|
5028
5333
|
if (null !== current && !didReceiveUpdate)
|
|
5029
5334
|
return (
|
|
5030
5335
|
(workInProgress.updateQueue = current.updateQueue),
|
|
5031
|
-
(workInProgress.flags &= -
|
|
5336
|
+
(workInProgress.flags &= -2053),
|
|
5032
5337
|
(current.lanes &= ~renderLanes),
|
|
5033
5338
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
5034
5339
|
);
|
|
@@ -5204,7 +5509,7 @@ function updateClassComponent(
|
|
|
5204
5509
|
"function" === typeof instance.componentDidUpdate &&
|
|
5205
5510
|
(workInProgress.flags |= 4),
|
|
5206
5511
|
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
5207
|
-
(workInProgress.flags |=
|
|
5512
|
+
(workInProgress.flags |= 1024))
|
|
5208
5513
|
: ("function" !== typeof instance.componentDidUpdate ||
|
|
5209
5514
|
(oldProps === current.memoizedProps &&
|
|
5210
5515
|
oldState === current.memoizedState) ||
|
|
@@ -5212,7 +5517,7 @@ function updateClassComponent(
|
|
|
5212
5517
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5213
5518
|
(oldProps === current.memoizedProps &&
|
|
5214
5519
|
oldState === current.memoizedState) ||
|
|
5215
|
-
(workInProgress.flags |=
|
|
5520
|
+
(workInProgress.flags |= 1024),
|
|
5216
5521
|
(workInProgress.memoizedProps = nextProps),
|
|
5217
5522
|
(workInProgress.memoizedState = newState)),
|
|
5218
5523
|
(instance.props = nextProps),
|
|
@@ -5226,7 +5531,7 @@ function updateClassComponent(
|
|
|
5226
5531
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5227
5532
|
(oldProps === current.memoizedProps &&
|
|
5228
5533
|
oldState === current.memoizedState) ||
|
|
5229
|
-
(workInProgress.flags |=
|
|
5534
|
+
(workInProgress.flags |= 1024),
|
|
5230
5535
|
(nextProps = !1));
|
|
5231
5536
|
}
|
|
5232
5537
|
return finishClassComponent(
|
|
@@ -5261,7 +5566,10 @@ function finishClassComponent(
|
|
|
5261
5566
|
) {
|
|
5262
5567
|
var nextChildren = null;
|
|
5263
5568
|
profilerStartTime = -1;
|
|
5264
|
-
} else
|
|
5569
|
+
} else
|
|
5570
|
+
markComponentRenderStarted(workInProgress),
|
|
5571
|
+
(nextChildren = shouldUpdate.render()),
|
|
5572
|
+
markComponentRenderStopped();
|
|
5265
5573
|
workInProgress.flags |= 1;
|
|
5266
5574
|
null !== current && didCaptureError
|
|
5267
5575
|
? ((didCaptureError = nextChildren),
|
|
@@ -5294,7 +5602,7 @@ function pushHostRootContext(workInProgress) {
|
|
|
5294
5602
|
pushTopLevelContextObject(workInProgress, root.context, !1);
|
|
5295
5603
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
5296
5604
|
}
|
|
5297
|
-
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
|
|
5605
|
+
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
5298
5606
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
5299
5607
|
return { baseLanes: renderLanes, cachePool: null };
|
|
5300
5608
|
}
|
|
@@ -5531,7 +5839,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5531
5839
|
primaryChildren
|
|
5532
5840
|
))),
|
|
5533
5841
|
(current.subtreeFlags =
|
|
5534
|
-
currentPrimaryChildFragment.subtreeFlags &
|
|
5842
|
+
currentPrimaryChildFragment.subtreeFlags & 14680064));
|
|
5535
5843
|
null !== currentFallbackChildFragment
|
|
5536
5844
|
? (fallbackChildren = createWorkInProgress(
|
|
5537
5845
|
currentFallbackChildFragment,
|
|
@@ -5763,12 +6071,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5763
6071
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5764
6072
|
}
|
|
5765
6073
|
function unwindWork(workInProgress) {
|
|
6074
|
+
popTreeContext(workInProgress);
|
|
5766
6075
|
switch (workInProgress.tag) {
|
|
5767
6076
|
case 1:
|
|
5768
6077
|
isContextProvider(workInProgress.type) && popContext();
|
|
5769
6078
|
var flags = workInProgress.flags;
|
|
5770
|
-
return flags &
|
|
5771
|
-
? ((workInProgress.flags = (flags & -
|
|
6079
|
+
return flags & 65536
|
|
6080
|
+
? ((workInProgress.flags = (flags & -65537) | 128),
|
|
5772
6081
|
0 !== (workInProgress.mode & 2) &&
|
|
5773
6082
|
transferActualDuration(workInProgress),
|
|
5774
6083
|
workInProgress)
|
|
@@ -5783,7 +6092,7 @@ function unwindWork(workInProgress) {
|
|
|
5783
6092
|
throw Error(
|
|
5784
6093
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5785
6094
|
);
|
|
5786
|
-
workInProgress.flags = (flags & -
|
|
6095
|
+
workInProgress.flags = (flags & -65537) | 128;
|
|
5787
6096
|
return workInProgress;
|
|
5788
6097
|
case 5:
|
|
5789
6098
|
return popHostContext(workInProgress), null;
|
|
@@ -5791,8 +6100,8 @@ function unwindWork(workInProgress) {
|
|
|
5791
6100
|
return (
|
|
5792
6101
|
pop(suspenseStackCursor),
|
|
5793
6102
|
(flags = workInProgress.flags),
|
|
5794
|
-
flags &
|
|
5795
|
-
? ((workInProgress.flags = (flags & -
|
|
6103
|
+
flags & 65536
|
|
6104
|
+
? ((workInProgress.flags = (flags & -65537) | 128),
|
|
5796
6105
|
0 !== (workInProgress.mode & 2) &&
|
|
5797
6106
|
transferActualDuration(workInProgress),
|
|
5798
6107
|
workInProgress)
|
|
@@ -5829,16 +6138,16 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5829
6138
|
recordLayoutEffectDuration(current);
|
|
5830
6139
|
}
|
|
5831
6140
|
else ref(null);
|
|
5832
|
-
} catch (error) {
|
|
5833
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
6141
|
+
} catch (error$93) {
|
|
6142
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$93);
|
|
5834
6143
|
}
|
|
5835
6144
|
else ref.current = null;
|
|
5836
6145
|
}
|
|
5837
6146
|
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
5838
6147
|
try {
|
|
5839
6148
|
destroy();
|
|
5840
|
-
} catch (error) {
|
|
5841
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
6149
|
+
} catch (error$94) {
|
|
6150
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$94);
|
|
5842
6151
|
}
|
|
5843
6152
|
}
|
|
5844
6153
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
@@ -5847,7 +6156,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5847
6156
|
if (
|
|
5848
6157
|
((root = nextEffect),
|
|
5849
6158
|
(firstChild = root.child),
|
|
5850
|
-
0 !== (root.subtreeFlags &
|
|
6159
|
+
0 !== (root.subtreeFlags & 1028) && null !== firstChild)
|
|
5851
6160
|
)
|
|
5852
6161
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5853
6162
|
else
|
|
@@ -5855,7 +6164,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5855
6164
|
root = nextEffect;
|
|
5856
6165
|
try {
|
|
5857
6166
|
var current = root.alternate;
|
|
5858
|
-
if (0 !== (root.flags &
|
|
6167
|
+
if (0 !== (root.flags & 1024))
|
|
5859
6168
|
switch (root.tag) {
|
|
5860
6169
|
case 0:
|
|
5861
6170
|
case 11:
|
|
@@ -5887,8 +6196,8 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5887
6196
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
5888
6197
|
);
|
|
5889
6198
|
}
|
|
5890
|
-
} catch (error) {
|
|
5891
|
-
captureCommitPhaseError(root, root.return, error);
|
|
6199
|
+
} catch (error$95) {
|
|
6200
|
+
captureCommitPhaseError(root, root.return, error$95);
|
|
5892
6201
|
}
|
|
5893
6202
|
firstChild = root.sibling;
|
|
5894
6203
|
if (null !== firstChild) {
|
|
@@ -5915,25 +6224,63 @@ function commitHookEffectListUnmount(
|
|
|
5915
6224
|
if ((effect.tag & flags) === flags) {
|
|
5916
6225
|
var destroy = effect.destroy;
|
|
5917
6226
|
effect.destroy = void 0;
|
|
5918
|
-
void 0 !== destroy
|
|
6227
|
+
if (void 0 !== destroy) {
|
|
6228
|
+
if (0 !== (flags & 8)) {
|
|
6229
|
+
if (supportsUserTimingV3) {
|
|
6230
|
+
var componentName =
|
|
6231
|
+
getComponentNameFromFiber(finishedWork) || "Unknown";
|
|
6232
|
+
markAndClear(
|
|
6233
|
+
"--component-passive-effect-unmount-start-" + componentName
|
|
6234
|
+
);
|
|
6235
|
+
}
|
|
6236
|
+
} else
|
|
6237
|
+
0 !== (flags & 4) &&
|
|
6238
|
+
markComponentLayoutEffectUnmountStarted(finishedWork);
|
|
5919
6239
|
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
6240
|
+
0 !== (flags & 8)
|
|
6241
|
+
? supportsUserTimingV3 &&
|
|
6242
|
+
markAndClear("--component-passive-effect-unmount-stop")
|
|
6243
|
+
: 0 !== (flags & 4) && markComponentLayoutEffectUnmountStopped();
|
|
6244
|
+
}
|
|
5920
6245
|
}
|
|
5921
6246
|
effect = effect.next;
|
|
5922
6247
|
} while (effect !== updateQueue);
|
|
5923
6248
|
}
|
|
5924
6249
|
}
|
|
5925
|
-
function commitHookEffectListMount(
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
if (null !==
|
|
5929
|
-
var effect = (
|
|
6250
|
+
function commitHookEffectListMount(flags, finishedWork) {
|
|
6251
|
+
var updateQueue = finishedWork.updateQueue;
|
|
6252
|
+
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
|
|
6253
|
+
if (null !== updateQueue) {
|
|
6254
|
+
var effect = (updateQueue = updateQueue.next);
|
|
5930
6255
|
do {
|
|
5931
|
-
if ((effect.tag &
|
|
5932
|
-
|
|
5933
|
-
|
|
6256
|
+
if ((effect.tag & flags) === flags) {
|
|
6257
|
+
if (0 !== (flags & 8)) {
|
|
6258
|
+
if (supportsUserTimingV3) {
|
|
6259
|
+
var componentName =
|
|
6260
|
+
getComponentNameFromFiber(finishedWork) || "Unknown";
|
|
6261
|
+
markAndClear(
|
|
6262
|
+
"--component-passive-effect-mount-start-" + componentName
|
|
6263
|
+
);
|
|
6264
|
+
}
|
|
6265
|
+
} else
|
|
6266
|
+
0 !== (flags & 4) &&
|
|
6267
|
+
supportsUserTimingV3 &&
|
|
6268
|
+
((componentName =
|
|
6269
|
+
getComponentNameFromFiber(finishedWork) || "Unknown"),
|
|
6270
|
+
markAndClear(
|
|
6271
|
+
"--component-layout-effect-mount-start-" + componentName
|
|
6272
|
+
));
|
|
6273
|
+
componentName = effect.create;
|
|
6274
|
+
effect.destroy = componentName();
|
|
6275
|
+
0 !== (flags & 8)
|
|
6276
|
+
? supportsUserTimingV3 &&
|
|
6277
|
+
markAndClear("--component-passive-effect-mount-stop")
|
|
6278
|
+
: 0 !== (flags & 4) &&
|
|
6279
|
+
supportsUserTimingV3 &&
|
|
6280
|
+
markAndClear("--component-layout-effect-mount-stop");
|
|
5934
6281
|
}
|
|
5935
6282
|
effect = effect.next;
|
|
5936
|
-
} while (effect !==
|
|
6283
|
+
} while (effect !== updateQueue);
|
|
5937
6284
|
}
|
|
5938
6285
|
}
|
|
5939
6286
|
function detachFiberAfterEffects(fiber) {
|
|
@@ -5958,14 +6305,16 @@ function commitWork(current, finishedWork) {
|
|
|
5958
6305
|
case 11:
|
|
5959
6306
|
case 14:
|
|
5960
6307
|
case 15:
|
|
6308
|
+
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
6309
|
+
commitHookEffectListMount(3, finishedWork);
|
|
5961
6310
|
if (finishedWork.mode & 2)
|
|
5962
6311
|
try {
|
|
5963
6312
|
startLayoutEffectTimer(),
|
|
5964
|
-
commitHookEffectListUnmount(
|
|
6313
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5965
6314
|
} finally {
|
|
5966
6315
|
recordLayoutEffectDuration(finishedWork);
|
|
5967
6316
|
}
|
|
5968
|
-
else commitHookEffectListUnmount(
|
|
6317
|
+
else commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5969
6318
|
return;
|
|
5970
6319
|
case 12:
|
|
5971
6320
|
return;
|
|
@@ -6056,12 +6405,16 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6056
6405
|
destroy = _effect.destroy,
|
|
6057
6406
|
tag = _effect.tag;
|
|
6058
6407
|
void 0 !== destroy &&
|
|
6059
|
-
0 !== (tag & 2)
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6408
|
+
(0 !== (tag & 2)
|
|
6409
|
+
? safelyCallDestroy(current, root, destroy)
|
|
6410
|
+
: 0 !== (tag & 4) &&
|
|
6411
|
+
(markComponentLayoutEffectUnmountStarted(current),
|
|
6412
|
+
current.mode & 2
|
|
6413
|
+
? (startLayoutEffectTimer(),
|
|
6414
|
+
safelyCallDestroy(current, root, destroy),
|
|
6415
|
+
recordLayoutEffectDuration(current))
|
|
6416
|
+
: safelyCallDestroy(current, root, destroy),
|
|
6417
|
+
markComponentLayoutEffectUnmountStopped()));
|
|
6065
6418
|
effect = effect.next;
|
|
6066
6419
|
} while (effect !== firstEffect);
|
|
6067
6420
|
}
|
|
@@ -6086,8 +6439,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6086
6439
|
recordLayoutEffectDuration(effect);
|
|
6087
6440
|
}
|
|
6088
6441
|
else _effect.componentWillUnmount();
|
|
6089
|
-
} catch (error) {
|
|
6090
|
-
captureCommitPhaseError(current, root, error);
|
|
6442
|
+
} catch (error$92) {
|
|
6443
|
+
captureCommitPhaseError(current, root, error$92);
|
|
6091
6444
|
}
|
|
6092
6445
|
break;
|
|
6093
6446
|
case 5:
|
|
@@ -6112,19 +6465,19 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6112
6465
|
var alternate = childToDelete.alternate;
|
|
6113
6466
|
null !== alternate && (alternate.return = null);
|
|
6114
6467
|
childToDelete.return = null;
|
|
6115
|
-
} catch (error) {
|
|
6116
|
-
captureCommitPhaseError(childToDelete, root, error);
|
|
6468
|
+
} catch (error$102) {
|
|
6469
|
+
captureCommitPhaseError(childToDelete, root, error$102);
|
|
6117
6470
|
}
|
|
6118
6471
|
}
|
|
6119
6472
|
firstChild = root.child;
|
|
6120
|
-
if (0 !== (root.subtreeFlags &
|
|
6473
|
+
if (0 !== (root.subtreeFlags & 12854) && null !== firstChild)
|
|
6121
6474
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
6122
6475
|
else
|
|
6123
6476
|
for (; null !== nextEffect; ) {
|
|
6124
6477
|
root = nextEffect;
|
|
6125
6478
|
try {
|
|
6126
6479
|
var flags = root.flags;
|
|
6127
|
-
if (flags &
|
|
6480
|
+
if (flags & 512) {
|
|
6128
6481
|
var current$jscomp$0 = root.alternate;
|
|
6129
6482
|
if (null !== current$jscomp$0) {
|
|
6130
6483
|
firstChild = current$jscomp$0;
|
|
@@ -6141,16 +6494,19 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6141
6494
|
else currentRef.current = null;
|
|
6142
6495
|
}
|
|
6143
6496
|
}
|
|
6144
|
-
if (flags &
|
|
6497
|
+
if (flags & 8192)
|
|
6145
6498
|
switch (root.tag) {
|
|
6146
6499
|
case 13:
|
|
6147
6500
|
if (null !== root.memoizedState) {
|
|
6148
|
-
var current$
|
|
6149
|
-
if (
|
|
6501
|
+
var current$104 = root.alternate;
|
|
6502
|
+
if (
|
|
6503
|
+
null === current$104 ||
|
|
6504
|
+
null === current$104.memoizedState
|
|
6505
|
+
)
|
|
6150
6506
|
globalMostRecentFallbackTime = now();
|
|
6151
6507
|
}
|
|
6152
6508
|
}
|
|
6153
|
-
switch (flags &
|
|
6509
|
+
switch (flags & 4102) {
|
|
6154
6510
|
case 2:
|
|
6155
6511
|
root.flags &= -3;
|
|
6156
6512
|
break;
|
|
@@ -6158,18 +6514,18 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6158
6514
|
root.flags &= -3;
|
|
6159
6515
|
commitWork(root.alternate, root);
|
|
6160
6516
|
break;
|
|
6161
|
-
case
|
|
6162
|
-
root.flags &= -
|
|
6517
|
+
case 4096:
|
|
6518
|
+
root.flags &= -4097;
|
|
6163
6519
|
break;
|
|
6164
|
-
case
|
|
6165
|
-
root.flags &= -
|
|
6520
|
+
case 4100:
|
|
6521
|
+
root.flags &= -4097;
|
|
6166
6522
|
commitWork(root.alternate, root);
|
|
6167
6523
|
break;
|
|
6168
6524
|
case 4:
|
|
6169
6525
|
commitWork(root.alternate, root);
|
|
6170
6526
|
}
|
|
6171
|
-
} catch (error) {
|
|
6172
|
-
captureCommitPhaseError(root, root.return, error);
|
|
6527
|
+
} catch (error$103) {
|
|
6528
|
+
captureCommitPhaseError(root, root.return, error$103);
|
|
6173
6529
|
}
|
|
6174
6530
|
firstChild = root.sibling;
|
|
6175
6531
|
if (null !== firstChild) {
|
|
@@ -6189,16 +6545,16 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6189
6545
|
if (
|
|
6190
6546
|
((root = nextEffect),
|
|
6191
6547
|
(committedLanes = root.child),
|
|
6192
|
-
0 !== (root.subtreeFlags &
|
|
6548
|
+
0 !== (root.subtreeFlags & 8772) && null !== committedLanes)
|
|
6193
6549
|
)
|
|
6194
6550
|
(committedLanes.return = root), (nextEffect = committedLanes);
|
|
6195
6551
|
else
|
|
6196
6552
|
for (root = finishedWork; null !== nextEffect; ) {
|
|
6197
6553
|
committedLanes = nextEffect;
|
|
6198
|
-
if (0 !== (committedLanes.flags &
|
|
6554
|
+
if (0 !== (committedLanes.flags & 8772)) {
|
|
6199
6555
|
var current = committedLanes.alternate;
|
|
6200
6556
|
try {
|
|
6201
|
-
if (0 !== (committedLanes.flags &
|
|
6557
|
+
if (0 !== (committedLanes.flags & 8772))
|
|
6202
6558
|
switch (committedLanes.tag) {
|
|
6203
6559
|
case 0:
|
|
6204
6560
|
case 11:
|
|
@@ -6206,11 +6562,11 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6206
6562
|
if (committedLanes.mode & 2)
|
|
6207
6563
|
try {
|
|
6208
6564
|
startLayoutEffectTimer(),
|
|
6209
|
-
commitHookEffectListMount(
|
|
6565
|
+
commitHookEffectListMount(5, committedLanes);
|
|
6210
6566
|
} finally {
|
|
6211
6567
|
recordLayoutEffectDuration(committedLanes);
|
|
6212
6568
|
}
|
|
6213
|
-
else commitHookEffectListMount(
|
|
6569
|
+
else commitHookEffectListMount(5, committedLanes);
|
|
6214
6570
|
break;
|
|
6215
6571
|
case 1:
|
|
6216
6572
|
var instance = committedLanes.stateNode;
|
|
@@ -6256,22 +6612,22 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6256
6612
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6257
6613
|
break;
|
|
6258
6614
|
case 3:
|
|
6259
|
-
var updateQueue$
|
|
6260
|
-
if (null !== updateQueue$
|
|
6261
|
-
var instance$
|
|
6615
|
+
var updateQueue$98 = committedLanes.updateQueue;
|
|
6616
|
+
if (null !== updateQueue$98) {
|
|
6617
|
+
var instance$99 = null;
|
|
6262
6618
|
if (null !== committedLanes.child)
|
|
6263
6619
|
switch (committedLanes.child.tag) {
|
|
6264
6620
|
case 5:
|
|
6265
|
-
instance$
|
|
6621
|
+
instance$99 =
|
|
6266
6622
|
committedLanes.child.stateNode.canonical;
|
|
6267
6623
|
break;
|
|
6268
6624
|
case 1:
|
|
6269
|
-
instance$
|
|
6625
|
+
instance$99 = committedLanes.child.stateNode;
|
|
6270
6626
|
}
|
|
6271
6627
|
commitUpdateQueue(
|
|
6272
6628
|
committedLanes,
|
|
6273
|
-
updateQueue$
|
|
6274
|
-
instance$
|
|
6629
|
+
updateQueue$98,
|
|
6630
|
+
instance$99
|
|
6275
6631
|
);
|
|
6276
6632
|
}
|
|
6277
6633
|
break;
|
|
@@ -6287,7 +6643,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6287
6643
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6288
6644
|
onRender = _finishedWork$memoize2.onRender,
|
|
6289
6645
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6290
|
-
instance$
|
|
6646
|
+
instance$99 = commitTime;
|
|
6291
6647
|
current = null === current ? "mount" : "update";
|
|
6292
6648
|
currentUpdateIsNested && (current = "nested-update");
|
|
6293
6649
|
"function" === typeof onRender &&
|
|
@@ -6297,14 +6653,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6297
6653
|
committedLanes.actualDuration,
|
|
6298
6654
|
committedLanes.treeBaseDuration,
|
|
6299
6655
|
committedLanes.actualStartTime,
|
|
6300
|
-
instance$
|
|
6656
|
+
instance$99
|
|
6301
6657
|
);
|
|
6302
6658
|
"function" === typeof onCommit &&
|
|
6303
6659
|
onCommit(
|
|
6304
6660
|
committedLanes.memoizedProps.id,
|
|
6305
6661
|
current,
|
|
6306
6662
|
effectDuration,
|
|
6307
|
-
instance$
|
|
6663
|
+
instance$99
|
|
6308
6664
|
);
|
|
6309
6665
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6310
6666
|
var parentFiber = committedLanes.return;
|
|
@@ -6333,35 +6689,35 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6333
6689
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6334
6690
|
);
|
|
6335
6691
|
}
|
|
6336
|
-
if (committedLanes.flags &
|
|
6337
|
-
instance$
|
|
6692
|
+
if (committedLanes.flags & 512) {
|
|
6693
|
+
instance$99 = void 0;
|
|
6338
6694
|
current = committedLanes;
|
|
6339
6695
|
var ref = current.ref;
|
|
6340
6696
|
if (null !== ref) {
|
|
6341
6697
|
var instance$jscomp$0 = current.stateNode;
|
|
6342
6698
|
switch (current.tag) {
|
|
6343
6699
|
case 5:
|
|
6344
|
-
instance$
|
|
6700
|
+
instance$99 = instance$jscomp$0.canonical;
|
|
6345
6701
|
break;
|
|
6346
6702
|
default:
|
|
6347
|
-
instance$
|
|
6703
|
+
instance$99 = instance$jscomp$0;
|
|
6348
6704
|
}
|
|
6349
6705
|
if ("function" === typeof ref)
|
|
6350
6706
|
if (current.mode & 2)
|
|
6351
6707
|
try {
|
|
6352
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6708
|
+
startLayoutEffectTimer(), ref(instance$99);
|
|
6353
6709
|
} finally {
|
|
6354
6710
|
recordLayoutEffectDuration(current);
|
|
6355
6711
|
}
|
|
6356
|
-
else ref(instance$
|
|
6357
|
-
else ref.current = instance$
|
|
6712
|
+
else ref(instance$99);
|
|
6713
|
+
else ref.current = instance$99;
|
|
6358
6714
|
}
|
|
6359
6715
|
}
|
|
6360
|
-
} catch (error) {
|
|
6716
|
+
} catch (error$111) {
|
|
6361
6717
|
captureCommitPhaseError(
|
|
6362
6718
|
committedLanes,
|
|
6363
6719
|
committedLanes.return,
|
|
6364
|
-
error
|
|
6720
|
+
error$111
|
|
6365
6721
|
);
|
|
6366
6722
|
}
|
|
6367
6723
|
}
|
|
@@ -6369,10 +6725,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6369
6725
|
nextEffect = null;
|
|
6370
6726
|
break;
|
|
6371
6727
|
}
|
|
6372
|
-
instance$
|
|
6373
|
-
if (null !== instance$
|
|
6374
|
-
instance$
|
|
6375
|
-
nextEffect = instance$
|
|
6728
|
+
instance$99 = committedLanes.sibling;
|
|
6729
|
+
if (null !== instance$99) {
|
|
6730
|
+
instance$99.return = committedLanes.return;
|
|
6731
|
+
nextEffect = instance$99;
|
|
6376
6732
|
break;
|
|
6377
6733
|
}
|
|
6378
6734
|
nextEffect = committedLanes.return;
|
|
@@ -6392,7 +6748,8 @@ var ceil = Math.ceil,
|
|
|
6392
6748
|
workInProgressRootExitStatus = 0,
|
|
6393
6749
|
workInProgressRootFatalError = null,
|
|
6394
6750
|
workInProgressRootSkippedLanes = 0,
|
|
6395
|
-
|
|
6751
|
+
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6752
|
+
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6396
6753
|
workInProgressRootPingedLanes = 0,
|
|
6397
6754
|
globalMostRecentFallbackTime = 0,
|
|
6398
6755
|
workInProgressRootRenderTargetTime = Infinity,
|
|
@@ -6452,18 +6809,21 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6452
6809
|
));
|
|
6453
6810
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6454
6811
|
if (null === root) return null;
|
|
6455
|
-
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane);
|
|
6456
6812
|
markRootUpdated(root, lane, eventTime);
|
|
6457
|
-
root === workInProgressRoot
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6813
|
+
0 !== (executionContext & 2) && root === workInProgressRoot
|
|
6814
|
+
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
|
|
6815
|
+
: (isDevToolsPresent && addFiberToLanesMap(root, fiber, lane),
|
|
6816
|
+
root === workInProgressRoot &&
|
|
6817
|
+
(0 === (executionContext & 2) &&
|
|
6818
|
+
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
6819
|
+
4 === workInProgressRootExitStatus &&
|
|
6820
|
+
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6821
|
+
ensureRootIsScheduled(root, eventTime),
|
|
6822
|
+
1 === lane &&
|
|
6823
|
+
0 === executionContext &&
|
|
6824
|
+
0 === (fiber.mode & 1) &&
|
|
6825
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6826
|
+
includesLegacySyncCallbacks && flushSyncCallbacks()));
|
|
6467
6827
|
return root;
|
|
6468
6828
|
}
|
|
6469
6829
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6564,15 +6924,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6564
6924
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6565
6925
|
);
|
|
6566
6926
|
if (0 === lanes) return null;
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6927
|
+
if (
|
|
6928
|
+
includesBlockingLane(root, lanes) ||
|
|
6929
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6930
|
+
didTimeout
|
|
6931
|
+
)
|
|
6932
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6933
|
+
else {
|
|
6574
6934
|
didTimeout = lanes;
|
|
6575
|
-
|
|
6935
|
+
var prevExecutionContext = executionContext;
|
|
6576
6936
|
executionContext |= 2;
|
|
6577
6937
|
var prevDispatcher = pushDispatcher();
|
|
6578
6938
|
if (
|
|
@@ -6589,6 +6949,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6589
6949
|
workInProgressRootRenderTargetTime = now() + 500;
|
|
6590
6950
|
prepareFreshStack(root, didTimeout);
|
|
6591
6951
|
}
|
|
6952
|
+
supportsUserTimingV3 && markAndClear("--render-start-" + didTimeout);
|
|
6592
6953
|
do
|
|
6593
6954
|
try {
|
|
6594
6955
|
workLoopConcurrent();
|
|
@@ -6599,30 +6960,46 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6599
6960
|
while (1);
|
|
6600
6961
|
resetContextDependencies();
|
|
6601
6962
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6602
|
-
executionContext =
|
|
6963
|
+
executionContext = prevExecutionContext;
|
|
6603
6964
|
null !== workInProgress
|
|
6604
|
-
? (
|
|
6605
|
-
|
|
6965
|
+
? (supportsUserTimingV3 && markAndClear("--render-yield"),
|
|
6966
|
+
(didTimeout = 0))
|
|
6967
|
+
: (supportsUserTimingV3 && markAndClear("--render-stop"),
|
|
6968
|
+
(workInProgressRoot = null),
|
|
6606
6969
|
(workInProgressRootRenderLanes = 0),
|
|
6607
6970
|
(didTimeout = workInProgressRootExitStatus));
|
|
6608
|
-
}
|
|
6971
|
+
}
|
|
6609
6972
|
if (0 !== didTimeout) {
|
|
6610
6973
|
2 === didTimeout &&
|
|
6611
|
-
((
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
0 !== prevDispatcher &&
|
|
6616
|
-
((lanes = prevDispatcher),
|
|
6617
|
-
(didTimeout = renderRootSync(root, prevDispatcher))),
|
|
6618
|
-
(executionContext = JSCompiler_inline_result));
|
|
6974
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6975
|
+
0 !== prevExecutionContext &&
|
|
6976
|
+
((lanes = prevExecutionContext),
|
|
6977
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6619
6978
|
if (1 === didTimeout)
|
|
6620
6979
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6621
6980
|
prepareFreshStack(root, 0),
|
|
6622
6981
|
markRootSuspended$1(root, lanes),
|
|
6623
6982
|
ensureRootIsScheduled(root, now()),
|
|
6624
6983
|
originalCallbackNode);
|
|
6625
|
-
|
|
6984
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6985
|
+
prevExecutionContext = root.current.alternate;
|
|
6986
|
+
if (
|
|
6987
|
+
prevDispatcher &&
|
|
6988
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6989
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6990
|
+
2 === didTimeout &&
|
|
6991
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6992
|
+
0 !== prevDispatcher &&
|
|
6993
|
+
((lanes = prevDispatcher),
|
|
6994
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6995
|
+
1 === didTimeout)
|
|
6996
|
+
)
|
|
6997
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6998
|
+
prepareFreshStack(root, 0),
|
|
6999
|
+
markRootSuspended$1(root, lanes),
|
|
7000
|
+
ensureRootIsScheduled(root, now()),
|
|
7001
|
+
originalCallbackNode);
|
|
7002
|
+
root.finishedWork = prevExecutionContext;
|
|
6626
7003
|
root.finishedLanes = lanes;
|
|
6627
7004
|
switch (didTimeout) {
|
|
6628
7005
|
case 0:
|
|
@@ -6639,10 +7016,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6639
7016
|
10 < didTimeout)
|
|
6640
7017
|
) {
|
|
6641
7018
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6642
|
-
|
|
6643
|
-
if ((
|
|
7019
|
+
prevExecutionContext = root.suspendedLanes;
|
|
7020
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6644
7021
|
requestEventTime();
|
|
6645
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
7022
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6646
7023
|
break;
|
|
6647
7024
|
}
|
|
6648
7025
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6657,14 +7034,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6657
7034
|
markRootSuspended$1(root, lanes);
|
|
6658
7035
|
if ((lanes & 4194240) === lanes) break;
|
|
6659
7036
|
didTimeout = root.eventTimes;
|
|
6660
|
-
for (
|
|
7037
|
+
for (prevExecutionContext = -1; 0 < lanes; )
|
|
6661
7038
|
(memoizedUpdaters = 31 - clz32(lanes)),
|
|
6662
7039
|
(prevDispatcher = 1 << memoizedUpdaters),
|
|
6663
7040
|
(memoizedUpdaters = didTimeout[memoizedUpdaters]),
|
|
6664
|
-
memoizedUpdaters >
|
|
6665
|
-
(
|
|
7041
|
+
memoizedUpdaters > prevExecutionContext &&
|
|
7042
|
+
(prevExecutionContext = memoizedUpdaters),
|
|
6666
7043
|
(lanes &= ~prevDispatcher);
|
|
6667
|
-
lanes =
|
|
7044
|
+
lanes = prevExecutionContext;
|
|
6668
7045
|
lanes = now() - lanes;
|
|
6669
7046
|
lanes =
|
|
6670
7047
|
(120 > lanes
|
|
@@ -6701,9 +7078,57 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6701
7078
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6702
7079
|
: null;
|
|
6703
7080
|
}
|
|
7081
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
7082
|
+
var prevExecutionContext = executionContext;
|
|
7083
|
+
executionContext |= 8;
|
|
7084
|
+
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
|
|
7085
|
+
for (
|
|
7086
|
+
var exitStatus, i = 0;
|
|
7087
|
+
50 > i &&
|
|
7088
|
+
((exitStatus = renderRootSync(root, errorRetryLanes)),
|
|
7089
|
+
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
|
|
7090
|
+
i++
|
|
7091
|
+
);
|
|
7092
|
+
executionContext = prevExecutionContext;
|
|
7093
|
+
return exitStatus;
|
|
7094
|
+
}
|
|
7095
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
7096
|
+
for (var node = finishedWork; ; ) {
|
|
7097
|
+
if (node.flags & 16384) {
|
|
7098
|
+
var updateQueue = node.updateQueue;
|
|
7099
|
+
if (
|
|
7100
|
+
null !== updateQueue &&
|
|
7101
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
7102
|
+
)
|
|
7103
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
7104
|
+
var check = updateQueue[i],
|
|
7105
|
+
getSnapshot = check.getSnapshot;
|
|
7106
|
+
check = check.value;
|
|
7107
|
+
try {
|
|
7108
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
7109
|
+
} catch (error$116) {
|
|
7110
|
+
return !1;
|
|
7111
|
+
}
|
|
7112
|
+
}
|
|
7113
|
+
}
|
|
7114
|
+
updateQueue = node.child;
|
|
7115
|
+
if (node.subtreeFlags & 16384 && null !== updateQueue)
|
|
7116
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
7117
|
+
else {
|
|
7118
|
+
if (node === finishedWork) break;
|
|
7119
|
+
for (; null === node.sibling; ) {
|
|
7120
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
7121
|
+
node = node.return;
|
|
7122
|
+
}
|
|
7123
|
+
node.sibling.return = node.return;
|
|
7124
|
+
node = node.sibling;
|
|
7125
|
+
}
|
|
7126
|
+
}
|
|
7127
|
+
return !0;
|
|
7128
|
+
}
|
|
6704
7129
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6705
7130
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6706
|
-
suspendedLanes &= ~
|
|
7131
|
+
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
6707
7132
|
root.suspendedLanes |= suspendedLanes;
|
|
6708
7133
|
root.pingedLanes &= ~suspendedLanes;
|
|
6709
7134
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
@@ -6723,13 +7148,10 @@ function performSyncWorkOnRoot(root) {
|
|
|
6723
7148
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6724
7149
|
var exitStatus = renderRootSync(root, lanes);
|
|
6725
7150
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6726
|
-
var prevExecutionContext = executionContext;
|
|
6727
|
-
executionContext |= 8;
|
|
6728
|
-
root.hydrate && ((root.hydrate = !1), shim(root.containerInfo));
|
|
6729
7151
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6730
7152
|
0 !== errorRetryLanes &&
|
|
6731
|
-
((lanes = errorRetryLanes),
|
|
6732
|
-
|
|
7153
|
+
((lanes = errorRetryLanes),
|
|
7154
|
+
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
|
|
6733
7155
|
}
|
|
6734
7156
|
if (1 === exitStatus)
|
|
6735
7157
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6756,6 +7178,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6756
7178
|
if (null !== workInProgress)
|
|
6757
7179
|
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
|
|
6758
7180
|
var interruptedWork = timeoutHandle;
|
|
7181
|
+
popTreeContext(interruptedWork);
|
|
6759
7182
|
switch (interruptedWork.tag) {
|
|
6760
7183
|
case 1:
|
|
6761
7184
|
interruptedWork = interruptedWork.type.childContextTypes;
|
|
@@ -6795,7 +7218,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6795
7218
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
6796
7219
|
workInProgressRootExitStatus = 0;
|
|
6797
7220
|
workInProgressRootFatalError = null;
|
|
6798
|
-
workInProgressRootPingedLanes =
|
|
7221
|
+
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6799
7222
|
if (null !== interleavedQueues) {
|
|
6800
7223
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
6801
7224
|
if (
|
|
@@ -6816,7 +7239,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6816
7239
|
interleavedQueues = null;
|
|
6817
7240
|
}
|
|
6818
7241
|
}
|
|
6819
|
-
function handleError(root$jscomp$0
|
|
7242
|
+
function handleError(root, thrownValue$jscomp$0) {
|
|
6820
7243
|
do {
|
|
6821
7244
|
var erroredWork = workInProgress;
|
|
6822
7245
|
try {
|
|
@@ -6840,77 +7263,112 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6840
7263
|
ReactCurrentOwner$2.current = null;
|
|
6841
7264
|
if (null === erroredWork || null === erroredWork.return) {
|
|
6842
7265
|
workInProgressRootExitStatus = 1;
|
|
6843
|
-
workInProgressRootFatalError = thrownValue;
|
|
7266
|
+
workInProgressRootFatalError = thrownValue$jscomp$0;
|
|
6844
7267
|
workInProgress = null;
|
|
6845
7268
|
break;
|
|
6846
7269
|
}
|
|
6847
7270
|
erroredWork.mode & 2 &&
|
|
6848
7271
|
stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0);
|
|
7272
|
+
markComponentRenderStopped();
|
|
7273
|
+
if (
|
|
7274
|
+
null !== thrownValue$jscomp$0 &&
|
|
7275
|
+
"object" === typeof thrownValue$jscomp$0 &&
|
|
7276
|
+
"function" === typeof thrownValue$jscomp$0.then
|
|
7277
|
+
)
|
|
7278
|
+
markComponentSuspended(
|
|
7279
|
+
erroredWork,
|
|
7280
|
+
thrownValue$jscomp$0,
|
|
7281
|
+
workInProgressRootRenderLanes
|
|
7282
|
+
);
|
|
7283
|
+
else {
|
|
7284
|
+
var fiber = erroredWork,
|
|
7285
|
+
thrownValue = thrownValue$jscomp$0;
|
|
7286
|
+
if (supportsUserTimingV3) {
|
|
7287
|
+
var componentName = getComponentNameFromFiber(fiber) || "Unknown",
|
|
7288
|
+
phase = null === fiber.alternate ? "mount" : "update";
|
|
7289
|
+
fiber = "";
|
|
7290
|
+
null !== thrownValue &&
|
|
7291
|
+
"object" === typeof thrownValue &&
|
|
7292
|
+
"string" === typeof thrownValue.message
|
|
7293
|
+
? (fiber = thrownValue.message)
|
|
7294
|
+
: "string" === typeof thrownValue && (fiber = thrownValue);
|
|
7295
|
+
markAndClear("--error-" + componentName + "-" + phase + "-" + fiber);
|
|
7296
|
+
}
|
|
7297
|
+
}
|
|
6849
7298
|
a: {
|
|
6850
|
-
|
|
6851
|
-
|
|
7299
|
+
thrownValue = root;
|
|
7300
|
+
var returnFiber = erroredWork.return,
|
|
6852
7301
|
sourceFiber = erroredWork,
|
|
6853
|
-
value = thrownValue;
|
|
6854
|
-
thrownValue = workInProgressRootRenderLanes;
|
|
6855
|
-
sourceFiber.flags |=
|
|
6856
|
-
isDevToolsPresent &&
|
|
7302
|
+
value = thrownValue$jscomp$0;
|
|
7303
|
+
thrownValue$jscomp$0 = workInProgressRootRenderLanes;
|
|
7304
|
+
sourceFiber.flags |= 32768;
|
|
7305
|
+
isDevToolsPresent &&
|
|
7306
|
+
restorePendingUpdaters(thrownValue, thrownValue$jscomp$0);
|
|
6857
7307
|
if (
|
|
6858
7308
|
null !== value &&
|
|
6859
7309
|
"object" === typeof value &&
|
|
6860
7310
|
"function" === typeof value.then
|
|
6861
7311
|
) {
|
|
6862
|
-
|
|
6863
|
-
|
|
7312
|
+
fiber = value;
|
|
7313
|
+
var sourceFiber$jscomp$0 = sourceFiber,
|
|
7314
|
+
tag = sourceFiber$jscomp$0.tag;
|
|
6864
7315
|
if (
|
|
6865
|
-
0 === (sourceFiber.mode & 1) &&
|
|
7316
|
+
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
6866
7317
|
(0 === tag || 11 === tag || 15 === tag)
|
|
6867
7318
|
) {
|
|
6868
|
-
var currentSource = sourceFiber.alternate;
|
|
7319
|
+
var currentSource = sourceFiber$jscomp$0.alternate;
|
|
6869
7320
|
currentSource
|
|
6870
|
-
? ((sourceFiber.updateQueue = currentSource.updateQueue),
|
|
6871
|
-
(sourceFiber.memoizedState =
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
7321
|
+
? ((sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue),
|
|
7322
|
+
(sourceFiber$jscomp$0.memoizedState =
|
|
7323
|
+
currentSource.memoizedState),
|
|
7324
|
+
(sourceFiber$jscomp$0.lanes = currentSource.lanes))
|
|
7325
|
+
: ((sourceFiber$jscomp$0.updateQueue = null),
|
|
7326
|
+
(sourceFiber$jscomp$0.memoizedState = null));
|
|
6875
7327
|
}
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
7328
|
+
b: {
|
|
7329
|
+
sourceFiber$jscomp$0 = returnFiber;
|
|
7330
|
+
var hasInvisibleParentBoundary =
|
|
7331
|
+
0 !== (suspenseStackCursor.current & 1);
|
|
7332
|
+
do {
|
|
7333
|
+
var JSCompiler_temp;
|
|
7334
|
+
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
|
|
7335
|
+
var nextState = sourceFiber$jscomp$0.memoizedState;
|
|
7336
|
+
JSCompiler_temp =
|
|
7337
|
+
null !== nextState
|
|
7338
|
+
? null !== nextState.dehydrated
|
|
7339
|
+
? !0
|
|
7340
|
+
: !1
|
|
7341
|
+
: !0 !==
|
|
7342
|
+
sourceFiber$jscomp$0.memoizedProps
|
|
7343
|
+
.unstable_avoidThisFallback
|
|
6886
7344
|
? !0
|
|
6887
|
-
:
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
sourceFiber.flags |=
|
|
6908
|
-
sourceFiber.flags &= -
|
|
7345
|
+
: hasInvisibleParentBoundary
|
|
7346
|
+
? !1
|
|
7347
|
+
: !0;
|
|
7348
|
+
}
|
|
7349
|
+
if (JSCompiler_temp) {
|
|
7350
|
+
var suspenseBoundary = sourceFiber$jscomp$0;
|
|
7351
|
+
break b;
|
|
7352
|
+
}
|
|
7353
|
+
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
|
|
7354
|
+
} while (null !== sourceFiber$jscomp$0);
|
|
7355
|
+
suspenseBoundary = null;
|
|
7356
|
+
}
|
|
7357
|
+
if (null !== suspenseBoundary) {
|
|
7358
|
+
suspenseBoundary.flags &= -257;
|
|
7359
|
+
value = suspenseBoundary;
|
|
7360
|
+
sourceFiber$jscomp$0 = thrownValue$jscomp$0;
|
|
7361
|
+
if (0 === (value.mode & 1))
|
|
7362
|
+
if (value === returnFiber) value.flags |= 65536;
|
|
7363
|
+
else {
|
|
7364
|
+
value.flags |= 128;
|
|
7365
|
+
sourceFiber.flags |= 131072;
|
|
7366
|
+
sourceFiber.flags &= -52805;
|
|
6909
7367
|
if (
|
|
6910
7368
|
enablePersistentOffscreenHostContainer &&
|
|
6911
|
-
null ===
|
|
7369
|
+
null === value.alternate
|
|
6912
7370
|
) {
|
|
6913
|
-
var offscreenContainer =
|
|
7371
|
+
var offscreenContainer = value.child.child;
|
|
6914
7372
|
if (null !== offscreenContainer) {
|
|
6915
7373
|
var containerProps = getOffscreenContainerProps(
|
|
6916
7374
|
"hidden",
|
|
@@ -6928,88 +7386,94 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6928
7386
|
enqueueUpdate(sourceFiber, update);
|
|
6929
7387
|
}
|
|
6930
7388
|
sourceFiber.lanes |= 1;
|
|
6931
|
-
break a;
|
|
6932
7389
|
}
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
7390
|
+
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
|
|
7391
|
+
sourceFiber = void 0;
|
|
7392
|
+
value = suspenseBoundary;
|
|
7393
|
+
if (value.mode & 1) {
|
|
7394
|
+
var pingCache = thrownValue.pingCache;
|
|
6936
7395
|
null === pingCache
|
|
6937
|
-
? ((pingCache =
|
|
6938
|
-
(
|
|
6939
|
-
pingCache.set(
|
|
6940
|
-
: ((
|
|
6941
|
-
void 0 ===
|
|
6942
|
-
((
|
|
6943
|
-
|
|
6944
|
-
|
|
7396
|
+
? ((pingCache = thrownValue.pingCache = new PossiblyWeakMap$1()),
|
|
7397
|
+
(sourceFiber = new Set()),
|
|
7398
|
+
pingCache.set(fiber, sourceFiber))
|
|
7399
|
+
: ((sourceFiber = pingCache.get(fiber)),
|
|
7400
|
+
void 0 === sourceFiber &&
|
|
7401
|
+
((sourceFiber = new Set()),
|
|
7402
|
+
pingCache.set(fiber, sourceFiber)));
|
|
7403
|
+
if (!sourceFiber.has(thrownValue$jscomp$0)) {
|
|
7404
|
+
sourceFiber.add(thrownValue$jscomp$0);
|
|
6945
7405
|
var ping = pingSuspendedRoot.bind(
|
|
6946
7406
|
null,
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
7407
|
+
thrownValue,
|
|
7408
|
+
fiber,
|
|
7409
|
+
thrownValue$jscomp$0
|
|
6950
7410
|
);
|
|
6951
|
-
isDevToolsPresent &&
|
|
6952
|
-
|
|
7411
|
+
isDevToolsPresent &&
|
|
7412
|
+
restorePendingUpdaters(thrownValue, thrownValue$jscomp$0);
|
|
7413
|
+
fiber.then(ping, ping);
|
|
6953
7414
|
}
|
|
6954
|
-
workInProgress$32.flags |= 16384;
|
|
6955
|
-
workInProgress$32.lanes = thrownValue;
|
|
6956
|
-
break a;
|
|
6957
7415
|
}
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
7416
|
+
var wakeables = value.updateQueue;
|
|
7417
|
+
if (null === wakeables) {
|
|
7418
|
+
var updateQueue = new Set();
|
|
7419
|
+
updateQueue.add(fiber);
|
|
7420
|
+
value.updateQueue = updateQueue;
|
|
7421
|
+
} else wakeables.add(fiber);
|
|
7422
|
+
break a;
|
|
7423
|
+
} else
|
|
7424
|
+
value = Error(
|
|
7425
|
+
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
7426
|
+
" 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."
|
|
7427
|
+
);
|
|
6964
7428
|
}
|
|
6965
|
-
|
|
7429
|
+
4 !== workInProgressRootExitStatus &&
|
|
6966
7430
|
(workInProgressRootExitStatus = 2);
|
|
6967
7431
|
value = createCapturedValue(value, sourceFiber);
|
|
6968
|
-
|
|
7432
|
+
thrownValue = returnFiber;
|
|
6969
7433
|
do {
|
|
6970
|
-
switch (
|
|
7434
|
+
switch (thrownValue.tag) {
|
|
6971
7435
|
case 3:
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
thrownValue &= -thrownValue;
|
|
6975
|
-
|
|
6976
|
-
var update$
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
thrownValue
|
|
7436
|
+
fiber = value;
|
|
7437
|
+
thrownValue.flags |= 65536;
|
|
7438
|
+
thrownValue$jscomp$0 &= -thrownValue$jscomp$0;
|
|
7439
|
+
thrownValue.lanes |= thrownValue$jscomp$0;
|
|
7440
|
+
var update$jscomp$0 = createRootErrorUpdate(
|
|
7441
|
+
thrownValue,
|
|
7442
|
+
fiber,
|
|
7443
|
+
thrownValue$jscomp$0
|
|
6980
7444
|
);
|
|
6981
|
-
enqueueCapturedUpdate(
|
|
7445
|
+
enqueueCapturedUpdate(thrownValue, update$jscomp$0);
|
|
6982
7446
|
break a;
|
|
6983
7447
|
case 1:
|
|
6984
|
-
|
|
6985
|
-
var ctor =
|
|
6986
|
-
instance =
|
|
7448
|
+
fiber = value;
|
|
7449
|
+
var ctor = thrownValue.type,
|
|
7450
|
+
instance = thrownValue.stateNode;
|
|
6987
7451
|
if (
|
|
6988
|
-
0 === (
|
|
7452
|
+
0 === (thrownValue.flags & 128) &&
|
|
6989
7453
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
6990
7454
|
(null !== instance &&
|
|
6991
7455
|
"function" === typeof instance.componentDidCatch &&
|
|
6992
7456
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
6993
7457
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
6994
7458
|
) {
|
|
6995
|
-
|
|
6996
|
-
thrownValue &= -thrownValue;
|
|
6997
|
-
|
|
6998
|
-
var update$
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
thrownValue
|
|
7459
|
+
thrownValue.flags |= 65536;
|
|
7460
|
+
thrownValue$jscomp$0 &= -thrownValue$jscomp$0;
|
|
7461
|
+
thrownValue.lanes |= thrownValue$jscomp$0;
|
|
7462
|
+
var update$39 = createClassErrorUpdate(
|
|
7463
|
+
thrownValue,
|
|
7464
|
+
fiber,
|
|
7465
|
+
thrownValue$jscomp$0
|
|
7002
7466
|
);
|
|
7003
|
-
enqueueCapturedUpdate(
|
|
7467
|
+
enqueueCapturedUpdate(thrownValue, update$39);
|
|
7004
7468
|
break a;
|
|
7005
7469
|
}
|
|
7006
7470
|
}
|
|
7007
|
-
|
|
7008
|
-
} while (null !==
|
|
7471
|
+
thrownValue = thrownValue.return;
|
|
7472
|
+
} while (null !== thrownValue);
|
|
7009
7473
|
}
|
|
7010
7474
|
completeUnitOfWork(erroredWork);
|
|
7011
7475
|
} catch (yetAnotherThrownValue) {
|
|
7012
|
-
thrownValue = yetAnotherThrownValue;
|
|
7476
|
+
thrownValue$jscomp$0 = yetAnotherThrownValue;
|
|
7013
7477
|
workInProgress === erroredWork &&
|
|
7014
7478
|
null !== erroredWork &&
|
|
7015
7479
|
(workInProgress = erroredWork = erroredWork.return);
|
|
@@ -7037,6 +7501,7 @@ function renderRootSync(root, lanes) {
|
|
|
7037
7501
|
}
|
|
7038
7502
|
prepareFreshStack(root, lanes);
|
|
7039
7503
|
}
|
|
7504
|
+
supportsUserTimingV3 && markAndClear("--render-start-" + lanes);
|
|
7040
7505
|
do
|
|
7041
7506
|
try {
|
|
7042
7507
|
workLoopSync();
|
|
@@ -7052,6 +7517,7 @@ function renderRootSync(root, lanes) {
|
|
|
7052
7517
|
throw Error(
|
|
7053
7518
|
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
|
|
7054
7519
|
);
|
|
7520
|
+
supportsUserTimingV3 && markAndClear("--render-stop");
|
|
7055
7521
|
workInProgressRoot = null;
|
|
7056
7522
|
workInProgressRootRenderLanes = 0;
|
|
7057
7523
|
return workInProgressRootExitStatus;
|
|
@@ -7082,7 +7548,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7082
7548
|
do {
|
|
7083
7549
|
var current = completedWork.alternate;
|
|
7084
7550
|
unitOfWork = completedWork.return;
|
|
7085
|
-
if (0 === (completedWork.flags &
|
|
7551
|
+
if (0 === (completedWork.flags & 32768)) {
|
|
7086
7552
|
if (0 === (completedWork.mode & 2))
|
|
7087
7553
|
current = completeWork(current, completedWork, subtreeRenderLanes);
|
|
7088
7554
|
else {
|
|
@@ -7099,7 +7565,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7099
7565
|
} else {
|
|
7100
7566
|
current = unwindWork(completedWork);
|
|
7101
7567
|
if (null !== current) {
|
|
7102
|
-
current.flags &=
|
|
7568
|
+
current.flags &= 32767;
|
|
7103
7569
|
workInProgress = current;
|
|
7104
7570
|
return;
|
|
7105
7571
|
}
|
|
@@ -7111,7 +7577,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7111
7577
|
completedWork.actualDuration = current;
|
|
7112
7578
|
}
|
|
7113
7579
|
null !== unitOfWork &&
|
|
7114
|
-
((unitOfWork.flags |=
|
|
7580
|
+
((unitOfWork.flags |= 32768),
|
|
7115
7581
|
(unitOfWork.subtreeFlags = 0),
|
|
7116
7582
|
(unitOfWork.deletions = null));
|
|
7117
7583
|
}
|
|
@@ -7144,7 +7610,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7144
7610
|
throw Error("Should not already be working.");
|
|
7145
7611
|
var finishedWork = root.finishedWork,
|
|
7146
7612
|
lanes = root.finishedLanes;
|
|
7147
|
-
|
|
7613
|
+
supportsUserTimingV3 &&
|
|
7614
|
+
(markAndClear("--commit-start-" + lanes),
|
|
7615
|
+
markAndClear("--react-version-18.0.0-c0c71a868-20211112"),
|
|
7616
|
+
markAndClear("--profiler-version-1"),
|
|
7617
|
+
getLaneLabels(),
|
|
7618
|
+
markAndClear("--react-lane-labels-" + laneLabels.join(",")),
|
|
7619
|
+
markInternalModuleRanges());
|
|
7620
|
+
if (null === finishedWork)
|
|
7621
|
+
return supportsUserTimingV3 && markAndClear("--commit-stop"), null;
|
|
7148
7622
|
root.finishedWork = null;
|
|
7149
7623
|
root.finishedLanes = 0;
|
|
7150
7624
|
if (finishedWork === root.current)
|
|
@@ -7158,16 +7632,16 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7158
7632
|
root === workInProgressRoot &&
|
|
7159
7633
|
((workInProgress = workInProgressRoot = null),
|
|
7160
7634
|
(workInProgressRootRenderLanes = 0));
|
|
7161
|
-
(0 === (finishedWork.subtreeFlags &
|
|
7162
|
-
0 === (finishedWork.flags &
|
|
7635
|
+
(0 === (finishedWork.subtreeFlags & 2064) &&
|
|
7636
|
+
0 === (finishedWork.flags & 2064)) ||
|
|
7163
7637
|
rootDoesHavePassiveEffects ||
|
|
7164
7638
|
((rootDoesHavePassiveEffects = !0),
|
|
7165
7639
|
scheduleCallback$1(NormalPriority, function() {
|
|
7166
7640
|
flushPassiveEffects();
|
|
7167
7641
|
return null;
|
|
7168
7642
|
}));
|
|
7169
|
-
remainingLanes = 0 !== (finishedWork.flags &
|
|
7170
|
-
if (0 !== (finishedWork.subtreeFlags &
|
|
7643
|
+
remainingLanes = 0 !== (finishedWork.flags & 15990);
|
|
7644
|
+
if (0 !== (finishedWork.subtreeFlags & 15990) || remainingLanes) {
|
|
7171
7645
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
7172
7646
|
ReactCurrentBatchConfig$2.transition = 0;
|
|
7173
7647
|
var previousPriority = currentUpdatePriority;
|
|
@@ -7179,7 +7653,9 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7179
7653
|
commitTime = now$1();
|
|
7180
7654
|
commitMutationEffects(root, finishedWork, lanes);
|
|
7181
7655
|
root.current = finishedWork;
|
|
7656
|
+
supportsUserTimingV3 && markAndClear("--layout-effects-start-" + lanes);
|
|
7182
7657
|
commitLayoutEffects(finishedWork, root, lanes);
|
|
7658
|
+
supportsUserTimingV3 && markAndClear("--layout-effects-stop");
|
|
7183
7659
|
requestPaint();
|
|
7184
7660
|
executionContext = prevExecutionContext;
|
|
7185
7661
|
currentUpdatePriority = previousPriority;
|
|
@@ -7191,12 +7667,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7191
7667
|
(pendingPassiveEffectsLanes = lanes));
|
|
7192
7668
|
remainingLanes = root.pendingLanes;
|
|
7193
7669
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
7194
|
-
0 !== (remainingLanes & 1)
|
|
7195
|
-
? ((nestedUpdateScheduled = !0),
|
|
7196
|
-
root === rootWithNestedUpdates
|
|
7197
|
-
? nestedUpdateCount++
|
|
7198
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7199
|
-
: (nestedUpdateCount = 0);
|
|
7200
7670
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
7201
7671
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
|
7202
7672
|
ensureRootIsScheduled(root, now());
|
|
@@ -7208,7 +7678,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7208
7678
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
7209
7679
|
0 !== root.tag &&
|
|
7210
7680
|
flushPassiveEffects();
|
|
7681
|
+
remainingLanes = root.pendingLanes;
|
|
7682
|
+
0 !== (remainingLanes & 1)
|
|
7683
|
+
? ((nestedUpdateScheduled = !0),
|
|
7684
|
+
root === rootWithNestedUpdates
|
|
7685
|
+
? nestedUpdateCount++
|
|
7686
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7687
|
+
: (nestedUpdateCount = 0);
|
|
7211
7688
|
flushSyncCallbacks();
|
|
7689
|
+
supportsUserTimingV3 && markAndClear("--commit-stop");
|
|
7212
7690
|
return null;
|
|
7213
7691
|
}
|
|
7214
7692
|
function flushPassiveEffects() {
|
|
@@ -7223,11 +7701,14 @@ function flushPassiveEffects() {
|
|
|
7223
7701
|
var JSCompiler_inline_result = !1;
|
|
7224
7702
|
else {
|
|
7225
7703
|
renderPriority = rootWithPendingPassiveEffects;
|
|
7704
|
+
var lanes = pendingPassiveEffectsLanes;
|
|
7226
7705
|
rootWithPendingPassiveEffects = null;
|
|
7227
7706
|
pendingPassiveEffectsLanes = 0;
|
|
7228
7707
|
if (0 !== (executionContext & 6))
|
|
7229
7708
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
7230
|
-
|
|
7709
|
+
supportsUserTimingV3 &&
|
|
7710
|
+
markAndClear("--passive-effects-start-" + lanes);
|
|
7711
|
+
lanes = executionContext;
|
|
7231
7712
|
executionContext |= 4;
|
|
7232
7713
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
7233
7714
|
var fiber = nextEffect,
|
|
@@ -7246,9 +7727,9 @@ function flushPassiveEffects() {
|
|
|
7246
7727
|
case 15:
|
|
7247
7728
|
current.mode & 2
|
|
7248
7729
|
? ((passiveEffectStartTime = now$1()),
|
|
7249
|
-
commitHookEffectListUnmount(
|
|
7730
|
+
commitHookEffectListUnmount(8, current, fiber),
|
|
7250
7731
|
recordPassiveEffectDuration(current))
|
|
7251
|
-
: commitHookEffectListUnmount(
|
|
7732
|
+
: commitHookEffectListUnmount(8, current, fiber);
|
|
7252
7733
|
}
|
|
7253
7734
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
7254
7735
|
if (null !== child$jscomp$0)
|
|
@@ -7288,21 +7769,21 @@ function flushPassiveEffects() {
|
|
|
7288
7769
|
nextEffect = fiber;
|
|
7289
7770
|
}
|
|
7290
7771
|
}
|
|
7291
|
-
if (0 !== (fiber.subtreeFlags &
|
|
7772
|
+
if (0 !== (fiber.subtreeFlags & 2064) && null !== child)
|
|
7292
7773
|
(child.return = fiber), (nextEffect = child);
|
|
7293
7774
|
else
|
|
7294
7775
|
b: for (; null !== nextEffect; ) {
|
|
7295
7776
|
fiber = nextEffect;
|
|
7296
|
-
if (0 !== (fiber.flags &
|
|
7777
|
+
if (0 !== (fiber.flags & 2048))
|
|
7297
7778
|
switch (((i = fiber), i.tag)) {
|
|
7298
7779
|
case 0:
|
|
7299
7780
|
case 11:
|
|
7300
7781
|
case 15:
|
|
7301
7782
|
i.mode & 2
|
|
7302
7783
|
? ((passiveEffectStartTime = now$1()),
|
|
7303
|
-
commitHookEffectListUnmount(
|
|
7784
|
+
commitHookEffectListUnmount(9, i, i.return),
|
|
7304
7785
|
recordPassiveEffectDuration(i))
|
|
7305
|
-
: commitHookEffectListUnmount(
|
|
7786
|
+
: commitHookEffectListUnmount(9, i, i.return);
|
|
7306
7787
|
}
|
|
7307
7788
|
var sibling$jscomp$0 = fiber.sibling;
|
|
7308
7789
|
if (null !== sibling$jscomp$0) {
|
|
@@ -7317,12 +7798,12 @@ function flushPassiveEffects() {
|
|
|
7317
7798
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
7318
7799
|
child = nextEffect;
|
|
7319
7800
|
var firstChild = child.child;
|
|
7320
|
-
if (0 !== (child.subtreeFlags &
|
|
7801
|
+
if (0 !== (child.subtreeFlags & 2064) && null !== firstChild)
|
|
7321
7802
|
(firstChild.return = child), (nextEffect = firstChild);
|
|
7322
7803
|
else
|
|
7323
7804
|
b: for (child = finishedWork; null !== nextEffect; ) {
|
|
7324
7805
|
deletions = nextEffect;
|
|
7325
|
-
if (0 !== (deletions.flags &
|
|
7806
|
+
if (0 !== (deletions.flags & 2048))
|
|
7326
7807
|
try {
|
|
7327
7808
|
switch (((fiberToDelete = deletions), fiberToDelete.tag)) {
|
|
7328
7809
|
case 0:
|
|
@@ -7331,14 +7812,18 @@ function flushPassiveEffects() {
|
|
|
7331
7812
|
if (fiberToDelete.mode & 2) {
|
|
7332
7813
|
passiveEffectStartTime = now$1();
|
|
7333
7814
|
try {
|
|
7334
|
-
commitHookEffectListMount(
|
|
7815
|
+
commitHookEffectListMount(9, fiberToDelete);
|
|
7335
7816
|
} finally {
|
|
7336
7817
|
recordPassiveEffectDuration(fiberToDelete);
|
|
7337
7818
|
}
|
|
7338
|
-
} else commitHookEffectListMount(
|
|
7819
|
+
} else commitHookEffectListMount(9, fiberToDelete);
|
|
7339
7820
|
}
|
|
7340
|
-
} catch (error) {
|
|
7341
|
-
captureCommitPhaseError(
|
|
7821
|
+
} catch (error$112) {
|
|
7822
|
+
captureCommitPhaseError(
|
|
7823
|
+
deletions,
|
|
7824
|
+
deletions.return,
|
|
7825
|
+
error$112
|
|
7826
|
+
);
|
|
7342
7827
|
}
|
|
7343
7828
|
if (deletions === child) {
|
|
7344
7829
|
nextEffect = null;
|
|
@@ -7390,7 +7875,8 @@ function flushPassiveEffects() {
|
|
|
7390
7875
|
}
|
|
7391
7876
|
}
|
|
7392
7877
|
}
|
|
7393
|
-
|
|
7878
|
+
supportsUserTimingV3 && markAndClear("--passive-effects-stop");
|
|
7879
|
+
executionContext = lanes;
|
|
7394
7880
|
flushSyncCallbacks();
|
|
7395
7881
|
if (
|
|
7396
7882
|
injectedHook &&
|
|
@@ -7530,7 +8016,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7530
8016
|
renderLanes
|
|
7531
8017
|
)
|
|
7532
8018
|
);
|
|
7533
|
-
didReceiveUpdate = 0 !== (current.flags &
|
|
8019
|
+
didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
|
|
7534
8020
|
}
|
|
7535
8021
|
else didReceiveUpdate = !1;
|
|
7536
8022
|
workInProgress.lanes = 0;
|
|
@@ -7547,6 +8033,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7547
8033
|
contextStackCursor.current
|
|
7548
8034
|
);
|
|
7549
8035
|
prepareToReadContext(workInProgress, renderLanes);
|
|
8036
|
+
markComponentRenderStarted(workInProgress);
|
|
7550
8037
|
context = renderWithHooks(
|
|
7551
8038
|
null,
|
|
7552
8039
|
workInProgress,
|
|
@@ -7555,6 +8042,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7555
8042
|
context,
|
|
7556
8043
|
renderLanes
|
|
7557
8044
|
);
|
|
8045
|
+
markComponentRenderStopped();
|
|
7558
8046
|
workInProgress.flags |= 1;
|
|
7559
8047
|
if (
|
|
7560
8048
|
"object" === typeof context &&
|
|
@@ -7880,7 +8368,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7880
8368
|
(Component = workInProgress.pendingProps.children),
|
|
7881
8369
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7882
8370
|
(context = readContext(context)),
|
|
8371
|
+
markComponentRenderStarted(workInProgress),
|
|
7883
8372
|
(Component = Component(context)),
|
|
8373
|
+
markComponentRenderStopped(),
|
|
7884
8374
|
(workInProgress.flags |= 1),
|
|
7885
8375
|
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7886
8376
|
workInProgress.child
|
|
@@ -8011,7 +8501,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
8011
8501
|
(workInProgress.deletions = null),
|
|
8012
8502
|
(workInProgress.actualDuration = 0),
|
|
8013
8503
|
(workInProgress.actualStartTime = -1));
|
|
8014
|
-
workInProgress.flags = current.flags &
|
|
8504
|
+
workInProgress.flags = current.flags & 14680064;
|
|
8015
8505
|
workInProgress.childLanes = current.childLanes;
|
|
8016
8506
|
workInProgress.lanes = current.lanes;
|
|
8017
8507
|
workInProgress.child = current.child;
|
|
@@ -8107,8 +8597,7 @@ function createFiberFromTypeAndProps(
|
|
|
8107
8597
|
}
|
|
8108
8598
|
throw Error(
|
|
8109
8599
|
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
8110
|
-
(null == type ? type : typeof type) +
|
|
8111
|
-
"."
|
|
8600
|
+
((null == type ? type : typeof type) + ".")
|
|
8112
8601
|
);
|
|
8113
8602
|
}
|
|
8114
8603
|
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
@@ -8161,7 +8650,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
8161
8650
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
8162
8651
|
this.timeoutHandle = -1;
|
|
8163
8652
|
this.pendingContext = this.context = null;
|
|
8164
|
-
this.
|
|
8653
|
+
this.isDehydrated = hydrate;
|
|
8165
8654
|
this.callbackNode = null;
|
|
8166
8655
|
this.callbackPriority = 0;
|
|
8167
8656
|
this.eventTimes = createLaneMap(0);
|
|
@@ -8189,9 +8678,9 @@ function findHostInstance(component) {
|
|
|
8189
8678
|
if (void 0 === fiber) {
|
|
8190
8679
|
if ("function" === typeof component.render)
|
|
8191
8680
|
throw Error("Unable to find node on an unmounted component.");
|
|
8681
|
+
component = Object.keys(component).join(",");
|
|
8192
8682
|
throw Error(
|
|
8193
|
-
"Argument appears to not be a ReactComponent. Keys: " +
|
|
8194
|
-
Object.keys(component)
|
|
8683
|
+
"Argument appears to not be a ReactComponent. Keys: " + component
|
|
8195
8684
|
);
|
|
8196
8685
|
}
|
|
8197
8686
|
component = findCurrentHostFiber(fiber);
|
|
@@ -8201,6 +8690,7 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8201
8690
|
var current = container.current,
|
|
8202
8691
|
eventTime = requestEventTime(),
|
|
8203
8692
|
lane = requestUpdateLane(current);
|
|
8693
|
+
supportsUserTimingV3 && markAndClear("--schedule-render-" + lane);
|
|
8204
8694
|
a: if (parentComponent) {
|
|
8205
8695
|
parentComponent = parentComponent._reactInternals;
|
|
8206
8696
|
b: {
|
|
@@ -8375,10 +8865,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8375
8865
|
}
|
|
8376
8866
|
};
|
|
8377
8867
|
var roots = new Map(),
|
|
8378
|
-
devToolsConfig$jscomp$
|
|
8868
|
+
devToolsConfig$jscomp$inline_1020 = {
|
|
8379
8869
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
8380
8870
|
bundleType: 0,
|
|
8381
|
-
version: "18.0.0-
|
|
8871
|
+
version: "18.0.0-c0c71a868-20211112",
|
|
8382
8872
|
rendererPackageName: "react-native-renderer",
|
|
8383
8873
|
rendererConfig: {
|
|
8384
8874
|
getInspectorDataForViewTag: function() {
|
|
@@ -8393,11 +8883,11 @@ var roots = new Map(),
|
|
|
8393
8883
|
}.bind(null, findNodeHandle)
|
|
8394
8884
|
}
|
|
8395
8885
|
};
|
|
8396
|
-
var internals$jscomp$
|
|
8397
|
-
bundleType: devToolsConfig$jscomp$
|
|
8398
|
-
version: devToolsConfig$jscomp$
|
|
8399
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8400
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8886
|
+
var internals$jscomp$inline_1308 = {
|
|
8887
|
+
bundleType: devToolsConfig$jscomp$inline_1020.bundleType,
|
|
8888
|
+
version: devToolsConfig$jscomp$inline_1020.version,
|
|
8889
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1020.rendererPackageName,
|
|
8890
|
+
rendererConfig: devToolsConfig$jscomp$inline_1020.rendererConfig,
|
|
8401
8891
|
overrideHookState: null,
|
|
8402
8892
|
overrideHookStateDeletePath: null,
|
|
8403
8893
|
overrideHookStateRenamePath: null,
|
|
@@ -8413,26 +8903,26 @@ var internals$jscomp$inline_1239 = {
|
|
|
8413
8903
|
return null === fiber ? null : fiber.stateNode;
|
|
8414
8904
|
},
|
|
8415
8905
|
findFiberByHostInstance:
|
|
8416
|
-
devToolsConfig$jscomp$
|
|
8906
|
+
devToolsConfig$jscomp$inline_1020.findFiberByHostInstance ||
|
|
8417
8907
|
emptyFindFiberByHostInstance,
|
|
8418
8908
|
findHostInstancesForRefresh: null,
|
|
8419
8909
|
scheduleRefresh: null,
|
|
8420
8910
|
scheduleRoot: null,
|
|
8421
8911
|
setRefreshHandler: null,
|
|
8422
8912
|
getCurrentFiber: null,
|
|
8423
|
-
reconcilerVersion: "18.0.0-
|
|
8913
|
+
reconcilerVersion: "18.0.0-c0c71a868-20211112"
|
|
8424
8914
|
};
|
|
8425
8915
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8426
|
-
var hook$jscomp$
|
|
8916
|
+
var hook$jscomp$inline_1309 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8427
8917
|
if (
|
|
8428
|
-
!hook$jscomp$
|
|
8429
|
-
hook$jscomp$
|
|
8918
|
+
!hook$jscomp$inline_1309.isDisabled &&
|
|
8919
|
+
hook$jscomp$inline_1309.supportsFiber
|
|
8430
8920
|
)
|
|
8431
8921
|
try {
|
|
8432
|
-
(rendererID = hook$jscomp$
|
|
8433
|
-
internals$jscomp$
|
|
8922
|
+
(rendererID = hook$jscomp$inline_1309.inject(
|
|
8923
|
+
internals$jscomp$inline_1308
|
|
8434
8924
|
)),
|
|
8435
|
-
(injectedHook = hook$jscomp$
|
|
8925
|
+
(injectedHook = hook$jscomp$inline_1309);
|
|
8436
8926
|
} catch (err) {}
|
|
8437
8927
|
}
|
|
8438
8928
|
exports.createPortal = function(children, containerTag) {
|
|
@@ -8515,3 +9005,13 @@ exports.stopSurface = function(containerTag) {
|
|
|
8515
9005
|
exports.unmountComponentAtNode = function(containerTag) {
|
|
8516
9006
|
this.stopSurface(containerTag);
|
|
8517
9007
|
};
|
|
9008
|
+
|
|
9009
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
9010
|
+
if (
|
|
9011
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
9012
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
9013
|
+
'function'
|
|
9014
|
+
) {
|
|
9015
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
9016
|
+
}
|
|
9017
|
+
|