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,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<6fc8d6b12f7d5605a1f7ab5894718cb3>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -782,18 +782,16 @@ function recomputePluginOrdering() {
|
|
|
782
782
|
for (var pluginName in namesToPlugins) {
|
|
783
783
|
var pluginModule = namesToPlugins[pluginName],
|
|
784
784
|
pluginIndex = eventPluginOrder.indexOf(pluginName);
|
|
785
|
-
if (
|
|
785
|
+
if (-1 >= pluginIndex)
|
|
786
786
|
throw Error(
|
|
787
787
|
"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" +
|
|
788
|
-
pluginName +
|
|
789
|
-
"`."
|
|
788
|
+
(pluginName + "`.")
|
|
790
789
|
);
|
|
791
790
|
if (!plugins[pluginIndex]) {
|
|
792
791
|
if (!pluginModule.extractEvents)
|
|
793
792
|
throw Error(
|
|
794
793
|
"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" +
|
|
795
|
-
pluginName +
|
|
796
|
-
"` does not."
|
|
794
|
+
(pluginName + "` does not.")
|
|
797
795
|
);
|
|
798
796
|
plugins[pluginIndex] = pluginModule;
|
|
799
797
|
pluginIndex = pluginModule.eventTypes;
|
|
@@ -804,8 +802,7 @@ function recomputePluginOrdering() {
|
|
|
804
802
|
if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))
|
|
805
803
|
throw Error(
|
|
806
804
|
"EventPluginRegistry: More than one plugin attempted to publish the same event name, `" +
|
|
807
|
-
eventName$jscomp$0 +
|
|
808
|
-
"`."
|
|
805
|
+
(eventName$jscomp$0 + "`.")
|
|
809
806
|
);
|
|
810
807
|
eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;
|
|
811
808
|
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
|
|
@@ -845,8 +842,7 @@ function publishRegistrationName(registrationName, pluginModule) {
|
|
|
845
842
|
if (registrationNameModules[registrationName])
|
|
846
843
|
throw Error(
|
|
847
844
|
"EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" +
|
|
848
|
-
registrationName +
|
|
849
|
-
"`."
|
|
845
|
+
(registrationName + "`.")
|
|
850
846
|
);
|
|
851
847
|
registrationNameModules[registrationName] = pluginModule;
|
|
852
848
|
}
|
|
@@ -930,7 +926,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
930
926
|
"ReactNativeBridgeEventPlugin"
|
|
931
927
|
]);
|
|
932
928
|
recomputePluginOrdering();
|
|
933
|
-
var injectedNamesToPlugins$jscomp$
|
|
929
|
+
var injectedNamesToPlugins$jscomp$inline_222 = {
|
|
934
930
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
935
931
|
ReactNativeBridgeEventPlugin: {
|
|
936
932
|
eventTypes: {},
|
|
@@ -965,34 +961,33 @@ var injectedNamesToPlugins$jscomp$inline_224 = {
|
|
|
965
961
|
}
|
|
966
962
|
}
|
|
967
963
|
},
|
|
968
|
-
isOrderingDirty$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
970
|
-
for (pluginName$jscomp$
|
|
964
|
+
isOrderingDirty$jscomp$inline_223 = !1,
|
|
965
|
+
pluginName$jscomp$inline_224;
|
|
966
|
+
for (pluginName$jscomp$inline_224 in injectedNamesToPlugins$jscomp$inline_222)
|
|
971
967
|
if (
|
|
972
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
-
pluginName$jscomp$
|
|
968
|
+
injectedNamesToPlugins$jscomp$inline_222.hasOwnProperty(
|
|
969
|
+
pluginName$jscomp$inline_224
|
|
974
970
|
)
|
|
975
971
|
) {
|
|
976
|
-
var pluginModule$jscomp$
|
|
977
|
-
injectedNamesToPlugins$jscomp$
|
|
972
|
+
var pluginModule$jscomp$inline_225 =
|
|
973
|
+
injectedNamesToPlugins$jscomp$inline_222[pluginName$jscomp$inline_224];
|
|
978
974
|
if (
|
|
979
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
980
|
-
namesToPlugins[pluginName$jscomp$
|
|
981
|
-
pluginModule$jscomp$
|
|
975
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_224) ||
|
|
976
|
+
namesToPlugins[pluginName$jscomp$inline_224] !==
|
|
977
|
+
pluginModule$jscomp$inline_225
|
|
982
978
|
) {
|
|
983
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
979
|
+
if (namesToPlugins[pluginName$jscomp$inline_224])
|
|
984
980
|
throw Error(
|
|
985
981
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
986
|
-
pluginName$jscomp$
|
|
987
|
-
"`."
|
|
982
|
+
(pluginName$jscomp$inline_224 + "`.")
|
|
988
983
|
);
|
|
989
984
|
namesToPlugins[
|
|
990
|
-
pluginName$jscomp$
|
|
991
|
-
] = pluginModule$jscomp$
|
|
992
|
-
isOrderingDirty$jscomp$
|
|
985
|
+
pluginName$jscomp$inline_224
|
|
986
|
+
] = pluginModule$jscomp$inline_225;
|
|
987
|
+
isOrderingDirty$jscomp$inline_223 = !0;
|
|
993
988
|
}
|
|
994
989
|
}
|
|
995
|
-
isOrderingDirty$jscomp$
|
|
990
|
+
isOrderingDirty$jscomp$inline_223 && recomputePluginOrdering();
|
|
996
991
|
var instanceCache = new Map(),
|
|
997
992
|
instanceProps = new Map();
|
|
998
993
|
function getInstanceFromTag(tag) {
|
|
@@ -1293,7 +1288,7 @@ function getNearestMountedFiber(fiber) {
|
|
|
1293
1288
|
fiber = node;
|
|
1294
1289
|
do
|
|
1295
1290
|
(node = fiber),
|
|
1296
|
-
0 !== (node.flags &
|
|
1291
|
+
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
|
1297
1292
|
(fiber = node.return);
|
|
1298
1293
|
while (fiber);
|
|
1299
1294
|
}
|
|
@@ -1702,6 +1697,13 @@ function onCommitRoot(root) {
|
|
|
1702
1697
|
);
|
|
1703
1698
|
} catch (err) {}
|
|
1704
1699
|
}
|
|
1700
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1701
|
+
log = Math.log,
|
|
1702
|
+
LN2 = Math.LN2;
|
|
1703
|
+
function clz32Fallback(x) {
|
|
1704
|
+
x >>>= 0;
|
|
1705
|
+
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
1706
|
+
}
|
|
1705
1707
|
var nextTransitionLane = 64,
|
|
1706
1708
|
nextRetryLane = 4194304;
|
|
1707
1709
|
function getHighestPriorityLanes(lanes) {
|
|
@@ -1841,6 +1843,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1841
1843
|
root = root.pendingLanes & -1073741825;
|
|
1842
1844
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1843
1845
|
}
|
|
1846
|
+
function includesBlockingLane(root, lanes) {
|
|
1847
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1848
|
+
}
|
|
1844
1849
|
function createLaneMap(initial) {
|
|
1845
1850
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1846
1851
|
return laneMap;
|
|
@@ -1882,12 +1887,6 @@ function markRootEntangled(root, entangledLanes) {
|
|
|
1882
1887
|
rootEntangledLanes &= ~lane;
|
|
1883
1888
|
}
|
|
1884
1889
|
}
|
|
1885
|
-
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1886
|
-
log = Math.log,
|
|
1887
|
-
LN2 = Math.LN2;
|
|
1888
|
-
function clz32Fallback(lanes) {
|
|
1889
|
-
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
|
|
1890
|
-
}
|
|
1891
1890
|
var currentUpdatePriority = 0;
|
|
1892
1891
|
function lanesToEventPriority(lanes) {
|
|
1893
1892
|
lanes &= -lanes;
|
|
@@ -2044,7 +2043,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2044
2043
|
: pop(didPerformWorkStackCursor);
|
|
2045
2044
|
push(didPerformWorkStackCursor, didChange);
|
|
2046
2045
|
}
|
|
2047
|
-
|
|
2046
|
+
function is(x, y) {
|
|
2047
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2048
|
+
}
|
|
2049
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2050
|
+
syncQueue = null,
|
|
2048
2051
|
includesLegacySyncCallbacks = !1,
|
|
2049
2052
|
isFlushingSyncQueue = !1;
|
|
2050
2053
|
function flushSyncCallbacks() {
|
|
@@ -2073,10 +2076,6 @@ function flushSyncCallbacks() {
|
|
|
2073
2076
|
return null;
|
|
2074
2077
|
}
|
|
2075
2078
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2076
|
-
function is(x, y) {
|
|
2077
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2078
|
-
}
|
|
2079
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
2080
2079
|
function shallowEqual(objA, objB) {
|
|
2081
2080
|
if (objectIs(objA, objB)) return !0;
|
|
2082
2081
|
if (
|
|
@@ -2089,12 +2088,14 @@ function shallowEqual(objA, objB) {
|
|
|
2089
2088
|
var keysA = Object.keys(objA),
|
|
2090
2089
|
keysB = Object.keys(objB);
|
|
2091
2090
|
if (keysA.length !== keysB.length) return !1;
|
|
2092
|
-
for (keysB = 0; keysB < keysA.length; keysB++)
|
|
2091
|
+
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
2092
|
+
var currentKey = keysA[keysB];
|
|
2093
2093
|
if (
|
|
2094
|
-
!hasOwnProperty.call(objB,
|
|
2095
|
-
!objectIs(objA[
|
|
2094
|
+
!hasOwnProperty.call(objB, currentKey) ||
|
|
2095
|
+
!objectIs(objA[currentKey], objB[currentKey])
|
|
2096
2096
|
)
|
|
2097
2097
|
return !1;
|
|
2098
|
+
}
|
|
2098
2099
|
return !0;
|
|
2099
2100
|
}
|
|
2100
2101
|
function describeFiber(fiber) {
|
|
@@ -2373,7 +2374,7 @@ function processUpdateQueue(
|
|
|
2373
2374
|
newState = workInProgress;
|
|
2374
2375
|
break a;
|
|
2375
2376
|
case 3:
|
|
2376
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2377
|
+
workInProgress.flags = (workInProgress.flags & -65537) | 128;
|
|
2377
2378
|
case 0:
|
|
2378
2379
|
workInProgress = update.payload;
|
|
2379
2380
|
updateLane =
|
|
@@ -2604,6 +2605,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2604
2605
|
"function" === typeof instance.componentDidMount &&
|
|
2605
2606
|
(workInProgress.flags |= 4);
|
|
2606
2607
|
}
|
|
2608
|
+
var forkStack = [],
|
|
2609
|
+
forkStackIndex = 0,
|
|
2610
|
+
treeForkProvider = null,
|
|
2611
|
+
idStack = [],
|
|
2612
|
+
idStackIndex = 0,
|
|
2613
|
+
treeContextProvider = null;
|
|
2614
|
+
function popTreeContext(workInProgress) {
|
|
2615
|
+
for (; workInProgress === treeForkProvider; )
|
|
2616
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2617
|
+
(forkStack[forkStackIndex] = null),
|
|
2618
|
+
--forkStackIndex,
|
|
2619
|
+
(forkStack[forkStackIndex] = null);
|
|
2620
|
+
for (; workInProgress === treeContextProvider; )
|
|
2621
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2622
|
+
(idStack[idStackIndex] = null),
|
|
2623
|
+
--idStackIndex,
|
|
2624
|
+
(idStack[idStackIndex] = null),
|
|
2625
|
+
--idStackIndex,
|
|
2626
|
+
(idStack[idStackIndex] = null);
|
|
2627
|
+
}
|
|
2607
2628
|
function coerceRef(returnFiber, current, element) {
|
|
2608
2629
|
returnFiber = element.ref;
|
|
2609
2630
|
if (
|
|
@@ -2626,7 +2647,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2626
2647
|
returnFiber +
|
|
2627
2648
|
". This error is likely caused by a bug in React. Please file an issue."
|
|
2628
2649
|
);
|
|
2629
|
-
var
|
|
2650
|
+
var resolvedInst = inst,
|
|
2651
|
+
stringRef = "" + returnFiber;
|
|
2630
2652
|
if (
|
|
2631
2653
|
null !== current &&
|
|
2632
2654
|
null !== current.ref &&
|
|
@@ -2635,8 +2657,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2635
2657
|
)
|
|
2636
2658
|
return current.ref;
|
|
2637
2659
|
current = function(value) {
|
|
2638
|
-
var refs =
|
|
2639
|
-
refs === emptyRefsObject && (refs =
|
|
2660
|
+
var refs = resolvedInst.refs;
|
|
2661
|
+
refs === emptyRefsObject && (refs = resolvedInst.refs = {});
|
|
2640
2662
|
null === value ? delete refs[stringRef] : (refs[stringRef] = value);
|
|
2641
2663
|
};
|
|
2642
2664
|
current._stringRef = stringRef;
|
|
@@ -2697,7 +2719,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2697
2719
|
}
|
|
2698
2720
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
2699
2721
|
newFiber.index = newIndex;
|
|
2700
|
-
if (!shouldTrackSideEffects)
|
|
2722
|
+
if (!shouldTrackSideEffects)
|
|
2723
|
+
return (newFiber.flags |= 1048576), lastPlacedIndex;
|
|
2701
2724
|
newIndex = newFiber.alternate;
|
|
2702
2725
|
if (null !== newIndex)
|
|
2703
2726
|
return (
|
|
@@ -3301,7 +3324,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
3301
3324
|
currentHook = null,
|
|
3302
3325
|
workInProgressHook = null,
|
|
3303
3326
|
didScheduleRenderPhaseUpdate = !1,
|
|
3304
|
-
didScheduleRenderPhaseUpdateDuringThisPass = !1
|
|
3327
|
+
didScheduleRenderPhaseUpdateDuringThisPass = !1,
|
|
3328
|
+
globalClientIdCounter = 0;
|
|
3305
3329
|
function throwInvalidHookError() {
|
|
3306
3330
|
throw Error(
|
|
3307
3331
|
"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."
|
|
@@ -3335,7 +3359,7 @@ function renderWithHooks(
|
|
|
3335
3359
|
nextRenderLanes = 0;
|
|
3336
3360
|
do {
|
|
3337
3361
|
didScheduleRenderPhaseUpdateDuringThisPass = !1;
|
|
3338
|
-
if (
|
|
3362
|
+
if (25 <= nextRenderLanes)
|
|
3339
3363
|
throw Error(
|
|
3340
3364
|
"Too many re-renders. React limits the number of renders to prevent an infinite loop."
|
|
3341
3365
|
);
|
|
@@ -3436,19 +3460,18 @@ function updateReducer(reducer) {
|
|
|
3436
3460
|
(newBaseQueueLast = newBaseQueueLast.next = {
|
|
3437
3461
|
lane: 0,
|
|
3438
3462
|
action: update.action,
|
|
3439
|
-
|
|
3463
|
+
hasEagerState: update.hasEagerState,
|
|
3440
3464
|
eagerState: update.eagerState,
|
|
3441
3465
|
next: null
|
|
3442
3466
|
}),
|
|
3443
|
-
(current =
|
|
3444
|
-
update.
|
|
3445
|
-
|
|
3446
|
-
: reducer(current, update.action));
|
|
3467
|
+
(current = update.hasEagerState
|
|
3468
|
+
? update.eagerState
|
|
3469
|
+
: reducer(current, update.action));
|
|
3447
3470
|
else {
|
|
3448
3471
|
var clone = {
|
|
3449
3472
|
lane: updateLane,
|
|
3450
3473
|
action: update.action,
|
|
3451
|
-
|
|
3474
|
+
hasEagerState: update.hasEagerState,
|
|
3452
3475
|
eagerState: update.eagerState,
|
|
3453
3476
|
next: null
|
|
3454
3477
|
};
|
|
@@ -3588,7 +3611,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3588
3611
|
lastRenderedReducer: basicStateReducer,
|
|
3589
3612
|
lastRenderedState: snapshot
|
|
3590
3613
|
}),
|
|
3591
|
-
(hook.dispatch = setSnapshot =
|
|
3614
|
+
(hook.dispatch = setSnapshot = dispatchSetState.bind(
|
|
3592
3615
|
null,
|
|
3593
3616
|
currentlyRenderingFiber$1,
|
|
3594
3617
|
hook
|
|
@@ -3603,11 +3626,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3603
3626
|
var hook = updateWorkInProgressHook();
|
|
3604
3627
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3605
3628
|
}
|
|
3629
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3630
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3631
|
+
hook = mountWorkInProgressHook();
|
|
3632
|
+
var nextSnapshot = getSnapshot();
|
|
3633
|
+
var root = workInProgressRoot;
|
|
3634
|
+
if (null === root)
|
|
3635
|
+
throw Error(
|
|
3636
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3637
|
+
);
|
|
3638
|
+
includesBlockingLane(root, renderLanes) ||
|
|
3639
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3640
|
+
hook.memoizedState = nextSnapshot;
|
|
3641
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3642
|
+
hook.queue = root;
|
|
3643
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [subscribe]);
|
|
3644
|
+
fiber.flags |= 2048;
|
|
3645
|
+
pushEffect(
|
|
3646
|
+
9,
|
|
3647
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3648
|
+
void 0,
|
|
3649
|
+
null
|
|
3650
|
+
);
|
|
3651
|
+
return nextSnapshot;
|
|
3652
|
+
}
|
|
3653
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3654
|
+
fiber.flags |= 16384;
|
|
3655
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3656
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3657
|
+
null === getSnapshot
|
|
3658
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3659
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3660
|
+
(getSnapshot.stores = [fiber]))
|
|
3661
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3662
|
+
null === renderedSnapshot
|
|
3663
|
+
? (getSnapshot.stores = [fiber])
|
|
3664
|
+
: renderedSnapshot.push(fiber));
|
|
3665
|
+
}
|
|
3666
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3667
|
+
inst.value = nextSnapshot;
|
|
3668
|
+
inst.getSnapshot = getSnapshot;
|
|
3669
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3670
|
+
}
|
|
3671
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3672
|
+
return subscribe(function() {
|
|
3673
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3674
|
+
});
|
|
3675
|
+
}
|
|
3676
|
+
function checkIfSnapshotChanged(inst) {
|
|
3677
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3678
|
+
inst = inst.value;
|
|
3679
|
+
try {
|
|
3680
|
+
var nextValue = latestGetSnapshot();
|
|
3681
|
+
return !objectIs(inst, nextValue);
|
|
3682
|
+
} catch (error) {
|
|
3683
|
+
return !0;
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3606
3686
|
function mountState(initialState) {
|
|
3607
3687
|
var hook = mountWorkInProgressHook();
|
|
3608
3688
|
"function" === typeof initialState && (initialState = initialState());
|
|
3609
3689
|
hook.memoizedState = hook.baseState = initialState;
|
|
3610
|
-
initialState =
|
|
3690
|
+
initialState = {
|
|
3611
3691
|
pending: null,
|
|
3612
3692
|
interleaved: null,
|
|
3613
3693
|
lanes: 0,
|
|
@@ -3615,7 +3695,8 @@ function mountState(initialState) {
|
|
|
3615
3695
|
lastRenderedReducer: basicStateReducer,
|
|
3616
3696
|
lastRenderedState: initialState
|
|
3617
3697
|
};
|
|
3618
|
-
|
|
3698
|
+
hook.queue = initialState;
|
|
3699
|
+
initialState = initialState.dispatch = dispatchSetState.bind(
|
|
3619
3700
|
null,
|
|
3620
3701
|
currentlyRenderingFiber$1,
|
|
3621
3702
|
initialState
|
|
@@ -3626,7 +3707,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3626
3707
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3627
3708
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3628
3709
|
null === create
|
|
3629
|
-
? ((create = { lastEffect: null }),
|
|
3710
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3630
3711
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3631
3712
|
(create.lastEffect = tag.next = tag))
|
|
3632
3713
|
: ((destroy = create.lastEffect),
|
|
@@ -3667,14 +3748,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3667
3748
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3668
3749
|
}
|
|
3669
3750
|
function mountEffect(create, deps) {
|
|
3670
|
-
return mountEffectImpl(
|
|
3751
|
+
return mountEffectImpl(8390656, 8, create, deps);
|
|
3671
3752
|
}
|
|
3672
3753
|
function updateEffect(create, deps) {
|
|
3673
|
-
return updateEffectImpl(
|
|
3754
|
+
return updateEffectImpl(2048, 8, create, deps);
|
|
3674
3755
|
}
|
|
3675
|
-
function
|
|
3756
|
+
function updateInsertionEffect(create, deps) {
|
|
3676
3757
|
return updateEffectImpl(4, 2, create, deps);
|
|
3677
3758
|
}
|
|
3759
|
+
function updateLayoutEffect(create, deps) {
|
|
3760
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3761
|
+
}
|
|
3678
3762
|
function imperativeHandleEffect(create, ref) {
|
|
3679
3763
|
if ("function" === typeof ref)
|
|
3680
3764
|
return (
|
|
@@ -3697,7 +3781,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3697
3781
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3698
3782
|
return updateEffectImpl(
|
|
3699
3783
|
4,
|
|
3700
|
-
|
|
3784
|
+
4,
|
|
3701
3785
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3702
3786
|
deps
|
|
3703
3787
|
);
|
|
@@ -3744,47 +3828,38 @@ function startTransition(setPending, callback) {
|
|
|
3744
3828
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3745
3829
|
}
|
|
3746
3830
|
}
|
|
3747
|
-
function
|
|
3748
|
-
|
|
3749
|
-
|
|
3831
|
+
function updateId() {
|
|
3832
|
+
return updateWorkInProgressHook().memoizedState;
|
|
3833
|
+
}
|
|
3834
|
+
function dispatchReducerAction(fiber, queue, action) {
|
|
3835
|
+
var lane = requestUpdateLane(fiber);
|
|
3836
|
+
action = {
|
|
3837
|
+
lane: lane,
|
|
3838
|
+
action: action,
|
|
3839
|
+
hasEagerState: !1,
|
|
3840
|
+
eagerState: null,
|
|
3841
|
+
next: null
|
|
3842
|
+
};
|
|
3843
|
+
isRenderPhaseUpdate(fiber)
|
|
3844
|
+
? enqueueRenderPhaseUpdate(queue, action)
|
|
3845
|
+
: (enqueueUpdate$1(fiber, queue, action),
|
|
3846
|
+
(action = requestEventTime()),
|
|
3847
|
+
(fiber = scheduleUpdateOnFiber(fiber, lane, action)),
|
|
3848
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane));
|
|
3849
|
+
}
|
|
3850
|
+
function dispatchSetState(fiber, queue, action) {
|
|
3851
|
+
var lane = requestUpdateLane(fiber),
|
|
3750
3852
|
update = {
|
|
3751
3853
|
lane: lane,
|
|
3752
3854
|
action: action,
|
|
3753
|
-
|
|
3855
|
+
hasEagerState: !1,
|
|
3754
3856
|
eagerState: null,
|
|
3755
3857
|
next: null
|
|
3756
|
-
}
|
|
3757
|
-
|
|
3758
|
-
if (
|
|
3759
|
-
fiber === currentlyRenderingFiber$1 ||
|
|
3760
|
-
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3761
|
-
)
|
|
3762
|
-
(didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0),
|
|
3763
|
-
(lane = queue.pending),
|
|
3764
|
-
null === lane
|
|
3765
|
-
? (update.next = update)
|
|
3766
|
-
: ((update.next = lane.next), (lane.next = update)),
|
|
3767
|
-
(queue.pending = update);
|
|
3858
|
+
};
|
|
3859
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3768
3860
|
else {
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
0 !== (fiber.mode & 1) &&
|
|
3772
|
-
0 === (executionContext & 2)
|
|
3773
|
-
) {
|
|
3774
|
-
var interleaved = queue.interleaved;
|
|
3775
|
-
null === interleaved
|
|
3776
|
-
? ((update.next = update),
|
|
3777
|
-
null === interleavedQueues
|
|
3778
|
-
? (interleavedQueues = [queue])
|
|
3779
|
-
: interleavedQueues.push(queue))
|
|
3780
|
-
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
3781
|
-
queue.interleaved = update;
|
|
3782
|
-
} else
|
|
3783
|
-
(interleaved = queue.pending),
|
|
3784
|
-
null === interleaved
|
|
3785
|
-
? (update.next = update)
|
|
3786
|
-
: ((update.next = interleaved.next), (interleaved.next = update)),
|
|
3787
|
-
(queue.pending = update);
|
|
3861
|
+
enqueueUpdate$1(fiber, queue, update);
|
|
3862
|
+
var alternate = fiber.alternate;
|
|
3788
3863
|
if (
|
|
3789
3864
|
0 === fiber.lanes &&
|
|
3790
3865
|
(null === alternate || 0 === alternate.lanes) &&
|
|
@@ -3793,20 +3868,57 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3793
3868
|
try {
|
|
3794
3869
|
var currentState = queue.lastRenderedState,
|
|
3795
3870
|
eagerState = alternate(currentState, action);
|
|
3796
|
-
update.
|
|
3871
|
+
update.hasEagerState = !0;
|
|
3797
3872
|
update.eagerState = eagerState;
|
|
3798
3873
|
if (objectIs(eagerState, currentState)) return;
|
|
3799
3874
|
} catch (error) {
|
|
3800
3875
|
} finally {
|
|
3801
3876
|
}
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3877
|
+
action = requestEventTime();
|
|
3878
|
+
fiber = scheduleUpdateOnFiber(fiber, lane, action);
|
|
3879
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane);
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
function isRenderPhaseUpdate(fiber) {
|
|
3883
|
+
var alternate = fiber.alternate;
|
|
3884
|
+
return (
|
|
3885
|
+
fiber === currentlyRenderingFiber$1 ||
|
|
3886
|
+
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3887
|
+
);
|
|
3888
|
+
}
|
|
3889
|
+
function enqueueRenderPhaseUpdate(queue, update) {
|
|
3890
|
+
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
|
|
3891
|
+
var pending = queue.pending;
|
|
3892
|
+
null === pending
|
|
3893
|
+
? (update.next = update)
|
|
3894
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
3895
|
+
queue.pending = update;
|
|
3896
|
+
}
|
|
3897
|
+
function enqueueUpdate$1(fiber, queue, update) {
|
|
3898
|
+
null !== workInProgressRoot &&
|
|
3899
|
+
0 !== (fiber.mode & 1) &&
|
|
3900
|
+
0 === (executionContext & 2)
|
|
3901
|
+
? ((fiber = queue.interleaved),
|
|
3902
|
+
null === fiber
|
|
3903
|
+
? ((update.next = update),
|
|
3904
|
+
null === interleavedQueues
|
|
3905
|
+
? (interleavedQueues = [queue])
|
|
3906
|
+
: interleavedQueues.push(queue))
|
|
3907
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3908
|
+
(queue.interleaved = update))
|
|
3909
|
+
: ((fiber = queue.pending),
|
|
3910
|
+
null === fiber
|
|
3911
|
+
? (update.next = update)
|
|
3912
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3913
|
+
(queue.pending = update));
|
|
3914
|
+
}
|
|
3915
|
+
function entangleTransitionUpdate(root, queue, lane) {
|
|
3916
|
+
if (0 !== (lane & 4194240)) {
|
|
3917
|
+
var queueLanes = queue.lanes;
|
|
3918
|
+
queueLanes &= root.pendingLanes;
|
|
3919
|
+
lane |= queueLanes;
|
|
3920
|
+
queue.lanes = lane;
|
|
3921
|
+
markRootEntangled(root, lane);
|
|
3810
3922
|
}
|
|
3811
3923
|
}
|
|
3812
3924
|
var ContextOnlyDispatcher = {
|
|
@@ -3815,6 +3927,7 @@ var ContextOnlyDispatcher = {
|
|
|
3815
3927
|
useContext: throwInvalidHookError,
|
|
3816
3928
|
useEffect: throwInvalidHookError,
|
|
3817
3929
|
useImperativeHandle: throwInvalidHookError,
|
|
3930
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3818
3931
|
useLayoutEffect: throwInvalidHookError,
|
|
3819
3932
|
useMemo: throwInvalidHookError,
|
|
3820
3933
|
useReducer: throwInvalidHookError,
|
|
@@ -3824,7 +3937,8 @@ var ContextOnlyDispatcher = {
|
|
|
3824
3937
|
useDeferredValue: throwInvalidHookError,
|
|
3825
3938
|
useTransition: throwInvalidHookError,
|
|
3826
3939
|
useMutableSource: throwInvalidHookError,
|
|
3827
|
-
|
|
3940
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3941
|
+
useId: throwInvalidHookError,
|
|
3828
3942
|
unstable_isNewReconciler: !1
|
|
3829
3943
|
},
|
|
3830
3944
|
HooksDispatcherOnMount = {
|
|
@@ -3842,12 +3956,15 @@ var ContextOnlyDispatcher = {
|
|
|
3842
3956
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3843
3957
|
return mountEffectImpl(
|
|
3844
3958
|
4,
|
|
3845
|
-
|
|
3959
|
+
4,
|
|
3846
3960
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3847
3961
|
deps
|
|
3848
3962
|
);
|
|
3849
3963
|
},
|
|
3850
3964
|
useLayoutEffect: function(create, deps) {
|
|
3965
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3966
|
+
},
|
|
3967
|
+
useInsertionEffect: function(create, deps) {
|
|
3851
3968
|
return mountEffectImpl(4, 2, create, deps);
|
|
3852
3969
|
},
|
|
3853
3970
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3861,7 +3978,7 @@ var ContextOnlyDispatcher = {
|
|
|
3861
3978
|
var hook = mountWorkInProgressHook();
|
|
3862
3979
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3863
3980
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3864
|
-
reducer =
|
|
3981
|
+
reducer = {
|
|
3865
3982
|
pending: null,
|
|
3866
3983
|
interleaved: null,
|
|
3867
3984
|
lanes: 0,
|
|
@@ -3869,7 +3986,8 @@ var ContextOnlyDispatcher = {
|
|
|
3869
3986
|
lastRenderedReducer: reducer,
|
|
3870
3987
|
lastRenderedState: initialArg
|
|
3871
3988
|
};
|
|
3872
|
-
|
|
3989
|
+
hook.queue = reducer;
|
|
3990
|
+
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
3873
3991
|
null,
|
|
3874
3992
|
currentlyRenderingFiber$1,
|
|
3875
3993
|
reducer
|
|
@@ -3917,8 +4035,11 @@ var ContextOnlyDispatcher = {
|
|
|
3917
4035
|
};
|
|
3918
4036
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3919
4037
|
},
|
|
3920
|
-
|
|
3921
|
-
|
|
4038
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4039
|
+
useId: function() {
|
|
4040
|
+
var hook = mountWorkInProgressHook();
|
|
4041
|
+
var id = "r:" + (globalClientIdCounter++).toString(32);
|
|
4042
|
+
return (hook.memoizedState = id);
|
|
3922
4043
|
},
|
|
3923
4044
|
unstable_isNewReconciler: !1
|
|
3924
4045
|
},
|
|
@@ -3928,6 +4049,7 @@ var ContextOnlyDispatcher = {
|
|
|
3928
4049
|
useContext: readContext,
|
|
3929
4050
|
useEffect: updateEffect,
|
|
3930
4051
|
useImperativeHandle: updateImperativeHandle,
|
|
4052
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3931
4053
|
useLayoutEffect: updateLayoutEffect,
|
|
3932
4054
|
useMemo: updateMemo,
|
|
3933
4055
|
useReducer: updateReducer,
|
|
@@ -3960,9 +4082,47 @@ var ContextOnlyDispatcher = {
|
|
|
3960
4082
|
return [isPending, start];
|
|
3961
4083
|
},
|
|
3962
4084
|
useMutableSource: updateMutableSource,
|
|
3963
|
-
|
|
3964
|
-
|
|
4085
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4086
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4087
|
+
hook = updateWorkInProgressHook(),
|
|
4088
|
+
nextSnapshot = getSnapshot(),
|
|
4089
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4090
|
+
snapshotChanged &&
|
|
4091
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4092
|
+
hook = hook.queue;
|
|
4093
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4094
|
+
subscribe
|
|
4095
|
+
]);
|
|
4096
|
+
if (
|
|
4097
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4098
|
+
snapshotChanged ||
|
|
4099
|
+
(null !== workInProgressHook &&
|
|
4100
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4101
|
+
) {
|
|
4102
|
+
fiber.flags |= 2048;
|
|
4103
|
+
pushEffect(
|
|
4104
|
+
9,
|
|
4105
|
+
updateStoreInstance.bind(
|
|
4106
|
+
null,
|
|
4107
|
+
fiber,
|
|
4108
|
+
hook,
|
|
4109
|
+
nextSnapshot,
|
|
4110
|
+
getSnapshot
|
|
4111
|
+
),
|
|
4112
|
+
void 0,
|
|
4113
|
+
null
|
|
4114
|
+
);
|
|
4115
|
+
subscribe = workInProgressRoot;
|
|
4116
|
+
if (null === subscribe)
|
|
4117
|
+
throw Error(
|
|
4118
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4119
|
+
);
|
|
4120
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4121
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4122
|
+
}
|
|
4123
|
+
return nextSnapshot;
|
|
3965
4124
|
},
|
|
4125
|
+
useId: updateId,
|
|
3966
4126
|
unstable_isNewReconciler: !1
|
|
3967
4127
|
},
|
|
3968
4128
|
HooksDispatcherOnRerender = {
|
|
@@ -3971,6 +4131,7 @@ var ContextOnlyDispatcher = {
|
|
|
3971
4131
|
useContext: readContext,
|
|
3972
4132
|
useEffect: updateEffect,
|
|
3973
4133
|
useImperativeHandle: updateImperativeHandle,
|
|
4134
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3974
4135
|
useLayoutEffect: updateLayoutEffect,
|
|
3975
4136
|
useMemo: updateMemo,
|
|
3976
4137
|
useReducer: rerenderReducer,
|
|
@@ -4003,9 +4164,8 @@ var ContextOnlyDispatcher = {
|
|
|
4003
4164
|
return [isPending, start];
|
|
4004
4165
|
},
|
|
4005
4166
|
useMutableSource: updateMutableSource,
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
},
|
|
4167
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4168
|
+
useId: updateId,
|
|
4009
4169
|
unstable_isNewReconciler: !1
|
|
4010
4170
|
};
|
|
4011
4171
|
function createCapturedValue(value, source) {
|
|
@@ -4120,14 +4280,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4120
4280
|
break;
|
|
4121
4281
|
case "collapsed":
|
|
4122
4282
|
lastTailNode = renderState.tail;
|
|
4123
|
-
for (var lastTailNode$
|
|
4124
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4283
|
+
for (var lastTailNode$35 = null; null !== lastTailNode; )
|
|
4284
|
+
null !== lastTailNode.alternate && (lastTailNode$35 = lastTailNode),
|
|
4125
4285
|
(lastTailNode = lastTailNode.sibling);
|
|
4126
|
-
null === lastTailNode$
|
|
4286
|
+
null === lastTailNode$35
|
|
4127
4287
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4128
4288
|
? (renderState.tail = null)
|
|
4129
4289
|
: (renderState.tail.sibling = null)
|
|
4130
|
-
: (lastTailNode$
|
|
4290
|
+
: (lastTailNode$35.sibling = null);
|
|
4131
4291
|
}
|
|
4132
4292
|
}
|
|
4133
4293
|
function bubbleProperties(completedWork) {
|
|
@@ -4137,25 +4297,26 @@ function bubbleProperties(completedWork) {
|
|
|
4137
4297
|
newChildLanes = 0,
|
|
4138
4298
|
subtreeFlags = 0;
|
|
4139
4299
|
if (didBailout)
|
|
4140
|
-
for (var child$
|
|
4141
|
-
(newChildLanes |= child$
|
|
4142
|
-
(subtreeFlags |= child$
|
|
4143
|
-
(subtreeFlags |= child$
|
|
4144
|
-
(child$
|
|
4145
|
-
(child$
|
|
4300
|
+
for (var child$36 = completedWork.child; null !== child$36; )
|
|
4301
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4302
|
+
(subtreeFlags |= child$36.subtreeFlags & 14680064),
|
|
4303
|
+
(subtreeFlags |= child$36.flags & 14680064),
|
|
4304
|
+
(child$36.return = completedWork),
|
|
4305
|
+
(child$36 = child$36.sibling);
|
|
4146
4306
|
else
|
|
4147
|
-
for (child$
|
|
4148
|
-
(newChildLanes |= child$
|
|
4149
|
-
(subtreeFlags |= child$
|
|
4150
|
-
(subtreeFlags |= child$
|
|
4151
|
-
(child$
|
|
4152
|
-
(child$
|
|
4307
|
+
for (child$36 = completedWork.child; null !== child$36; )
|
|
4308
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4309
|
+
(subtreeFlags |= child$36.subtreeFlags),
|
|
4310
|
+
(subtreeFlags |= child$36.flags),
|
|
4311
|
+
(child$36.return = completedWork),
|
|
4312
|
+
(child$36 = child$36.sibling);
|
|
4153
4313
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4154
4314
|
completedWork.childLanes = newChildLanes;
|
|
4155
4315
|
return didBailout;
|
|
4156
4316
|
}
|
|
4157
4317
|
function completeWork(current, workInProgress, renderLanes) {
|
|
4158
4318
|
var newProps = workInProgress.pendingProps;
|
|
4319
|
+
popTreeContext(workInProgress);
|
|
4159
4320
|
switch (workInProgress.tag) {
|
|
4160
4321
|
case 2:
|
|
4161
4322
|
case 16:
|
|
@@ -4185,8 +4346,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4185
4346
|
((newProps.context = newProps.pendingContext),
|
|
4186
4347
|
(newProps.pendingContext = null)),
|
|
4187
4348
|
(null !== current && null !== current.child) ||
|
|
4188
|
-
newProps.
|
|
4189
|
-
(workInProgress.flags |=
|
|
4349
|
+
newProps.isDehydrated ||
|
|
4350
|
+
(workInProgress.flags |= 1024),
|
|
4190
4351
|
updateHostContainer(current, workInProgress),
|
|
4191
4352
|
bubbleProperties(workInProgress),
|
|
4192
4353
|
null
|
|
@@ -4203,7 +4364,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4203
4364
|
newProps,
|
|
4204
4365
|
renderLanes
|
|
4205
4366
|
),
|
|
4206
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |=
|
|
4367
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4207
4368
|
else {
|
|
4208
4369
|
if (!newProps) {
|
|
4209
4370
|
if (null === workInProgress.stateNode)
|
|
@@ -4238,7 +4399,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4238
4399
|
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4239
4400
|
workInProgress.stateNode = renderLanes;
|
|
4240
4401
|
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4241
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4402
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4242
4403
|
}
|
|
4243
4404
|
bubbleProperties(workInProgress);
|
|
4244
4405
|
return null;
|
|
@@ -4282,7 +4443,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4282
4443
|
if (
|
|
4283
4444
|
null !== newProps &&
|
|
4284
4445
|
!renderLanes &&
|
|
4285
|
-
((workInProgress.child.flags |=
|
|
4446
|
+
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4286
4447
|
)
|
|
4287
4448
|
if (
|
|
4288
4449
|
(null === current &&
|
|
@@ -4294,12 +4455,13 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4294
4455
|
else {
|
|
4295
4456
|
if (
|
|
4296
4457
|
0 === workInProgressRootExitStatus ||
|
|
4297
|
-
3 === workInProgressRootExitStatus
|
|
4458
|
+
3 === workInProgressRootExitStatus ||
|
|
4459
|
+
2 === workInProgressRootExitStatus
|
|
4298
4460
|
)
|
|
4299
4461
|
workInProgressRootExitStatus = 4;
|
|
4300
4462
|
null === workInProgressRoot ||
|
|
4301
4463
|
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4302
|
-
0 === (
|
|
4464
|
+
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
|
|
4303
4465
|
markRootSuspended$1(
|
|
4304
4466
|
workInProgressRoot,
|
|
4305
4467
|
workInProgressRootRenderLanes
|
|
@@ -4354,7 +4516,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4354
4516
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4355
4517
|
(renderLanes = newProps),
|
|
4356
4518
|
(type = current),
|
|
4357
|
-
(renderLanes.flags &=
|
|
4519
|
+
(renderLanes.flags &= 14680066),
|
|
4358
4520
|
(updatePayload = renderLanes.alternate),
|
|
4359
4521
|
null === updatePayload
|
|
4360
4522
|
? ((renderLanes.childLanes = 0),
|
|
@@ -4458,14 +4620,14 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4458
4620
|
(null !== current.memoizedState) !== renderLanes &&
|
|
4459
4621
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4460
4622
|
23 !== workInProgress.tag &&
|
|
4461
|
-
(workInProgress.flags |=
|
|
4623
|
+
(workInProgress.flags |= 8192),
|
|
4462
4624
|
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4463
4625
|
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4464
4626
|
(bubbleProperties(workInProgress),
|
|
4465
4627
|
23 !== workInProgress.tag &&
|
|
4466
4628
|
workInProgress.subtreeFlags & 6 &&
|
|
4467
4629
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4468
|
-
(workInProgress.flags |=
|
|
4630
|
+
(workInProgress.flags |= 8192))
|
|
4469
4631
|
: bubbleProperties(workInProgress),
|
|
4470
4632
|
null
|
|
4471
4633
|
);
|
|
@@ -4510,7 +4672,7 @@ function updateForwardRef(
|
|
|
4510
4672
|
if (null !== current && !didReceiveUpdate)
|
|
4511
4673
|
return (
|
|
4512
4674
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4513
|
-
(workInProgress.flags &= -
|
|
4675
|
+
(workInProgress.flags &= -2053),
|
|
4514
4676
|
(current.lanes &= ~renderLanes),
|
|
4515
4677
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4516
4678
|
);
|
|
@@ -4584,7 +4746,7 @@ function updateSimpleMemoComponent(
|
|
|
4584
4746
|
current.ref === workInProgress.ref
|
|
4585
4747
|
)
|
|
4586
4748
|
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4587
|
-
0 !== (current.flags &
|
|
4749
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4588
4750
|
else
|
|
4589
4751
|
return (
|
|
4590
4752
|
(workInProgress.lanes = current.lanes),
|
|
@@ -4648,7 +4810,7 @@ function markRef$1(current, workInProgress) {
|
|
|
4648
4810
|
(null === current && null !== ref) ||
|
|
4649
4811
|
(null !== current && current.ref !== ref)
|
|
4650
4812
|
)
|
|
4651
|
-
workInProgress.flags |=
|
|
4813
|
+
workInProgress.flags |= 512;
|
|
4652
4814
|
}
|
|
4653
4815
|
function updateFunctionComponent(
|
|
4654
4816
|
current,
|
|
@@ -4673,7 +4835,7 @@ function updateFunctionComponent(
|
|
|
4673
4835
|
if (null !== current && !didReceiveUpdate)
|
|
4674
4836
|
return (
|
|
4675
4837
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4676
|
-
(workInProgress.flags &= -
|
|
4838
|
+
(workInProgress.flags &= -2053),
|
|
4677
4839
|
(current.lanes &= ~renderLanes),
|
|
4678
4840
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4679
4841
|
);
|
|
@@ -4849,7 +5011,7 @@ function updateClassComponent(
|
|
|
4849
5011
|
"function" === typeof instance.componentDidUpdate &&
|
|
4850
5012
|
(workInProgress.flags |= 4),
|
|
4851
5013
|
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
4852
|
-
(workInProgress.flags |=
|
|
5014
|
+
(workInProgress.flags |= 1024))
|
|
4853
5015
|
: ("function" !== typeof instance.componentDidUpdate ||
|
|
4854
5016
|
(oldProps === current.memoizedProps &&
|
|
4855
5017
|
oldState === current.memoizedState) ||
|
|
@@ -4857,7 +5019,7 @@ function updateClassComponent(
|
|
|
4857
5019
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
4858
5020
|
(oldProps === current.memoizedProps &&
|
|
4859
5021
|
oldState === current.memoizedState) ||
|
|
4860
|
-
(workInProgress.flags |=
|
|
5022
|
+
(workInProgress.flags |= 1024),
|
|
4861
5023
|
(workInProgress.memoizedProps = nextProps),
|
|
4862
5024
|
(workInProgress.memoizedState = newState)),
|
|
4863
5025
|
(instance.props = nextProps),
|
|
@@ -4871,7 +5033,7 @@ function updateClassComponent(
|
|
|
4871
5033
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
4872
5034
|
(oldProps === current.memoizedProps &&
|
|
4873
5035
|
oldState === current.memoizedState) ||
|
|
4874
|
-
(workInProgress.flags |=
|
|
5036
|
+
(workInProgress.flags |= 1024),
|
|
4875
5037
|
(nextProps = !1));
|
|
4876
5038
|
}
|
|
4877
5039
|
return finishClassComponent(
|
|
@@ -4935,7 +5097,7 @@ function pushHostRootContext(workInProgress) {
|
|
|
4935
5097
|
pushTopLevelContextObject(workInProgress, root.context, !1);
|
|
4936
5098
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
4937
5099
|
}
|
|
4938
|
-
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
|
|
5100
|
+
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
4939
5101
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
4940
5102
|
return { baseLanes: renderLanes, cachePool: null };
|
|
4941
5103
|
}
|
|
@@ -5128,7 +5290,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5128
5290
|
(primaryChildren.pendingProps = primaryChildProps),
|
|
5129
5291
|
(workInProgress.deletions = null))
|
|
5130
5292
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
5131
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5293
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 14680064));
|
|
5132
5294
|
null !== currentFallbackChildFragment
|
|
5133
5295
|
? (fallbackChildren = createWorkInProgress(
|
|
5134
5296
|
currentFallbackChildFragment,
|
|
@@ -5352,12 +5514,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5352
5514
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5353
5515
|
}
|
|
5354
5516
|
function unwindWork(workInProgress) {
|
|
5517
|
+
popTreeContext(workInProgress);
|
|
5355
5518
|
switch (workInProgress.tag) {
|
|
5356
5519
|
case 1:
|
|
5357
5520
|
isContextProvider(workInProgress.type) && popContext();
|
|
5358
5521
|
var flags = workInProgress.flags;
|
|
5359
|
-
return flags &
|
|
5360
|
-
? ((workInProgress.flags = (flags & -
|
|
5522
|
+
return flags & 65536
|
|
5523
|
+
? ((workInProgress.flags = (flags & -65537) | 128), workInProgress)
|
|
5361
5524
|
: null;
|
|
5362
5525
|
case 3:
|
|
5363
5526
|
popHostContainer();
|
|
@@ -5369,7 +5532,7 @@ function unwindWork(workInProgress) {
|
|
|
5369
5532
|
throw Error(
|
|
5370
5533
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5371
5534
|
);
|
|
5372
|
-
workInProgress.flags = (flags & -
|
|
5535
|
+
workInProgress.flags = (flags & -65537) | 128;
|
|
5373
5536
|
return workInProgress;
|
|
5374
5537
|
case 5:
|
|
5375
5538
|
return popHostContext(workInProgress), null;
|
|
@@ -5377,8 +5540,8 @@ function unwindWork(workInProgress) {
|
|
|
5377
5540
|
return (
|
|
5378
5541
|
pop(suspenseStackCursor),
|
|
5379
5542
|
(flags = workInProgress.flags),
|
|
5380
|
-
flags &
|
|
5381
|
-
? ((workInProgress.flags = (flags & -
|
|
5543
|
+
flags & 65536
|
|
5544
|
+
? ((workInProgress.flags = (flags & -65537) | 128), workInProgress)
|
|
5382
5545
|
: null
|
|
5383
5546
|
);
|
|
5384
5547
|
case 19:
|
|
@@ -5409,13 +5572,20 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5409
5572
|
}
|
|
5410
5573
|
else ref.current = null;
|
|
5411
5574
|
}
|
|
5575
|
+
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
5576
|
+
try {
|
|
5577
|
+
destroy();
|
|
5578
|
+
} catch (error) {
|
|
5579
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5580
|
+
}
|
|
5581
|
+
}
|
|
5412
5582
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
5413
5583
|
function commitBeforeMutationEffects(root, firstChild) {
|
|
5414
5584
|
for (nextEffect = firstChild; null !== nextEffect; )
|
|
5415
5585
|
if (
|
|
5416
5586
|
((root = nextEffect),
|
|
5417
5587
|
(firstChild = root.child),
|
|
5418
|
-
0 !== (root.subtreeFlags &
|
|
5588
|
+
0 !== (root.subtreeFlags & 1028) && null !== firstChild)
|
|
5419
5589
|
)
|
|
5420
5590
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5421
5591
|
else
|
|
@@ -5423,7 +5593,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5423
5593
|
root = nextEffect;
|
|
5424
5594
|
try {
|
|
5425
5595
|
var current = root.alternate;
|
|
5426
|
-
if (0 !== (root.flags &
|
|
5596
|
+
if (0 !== (root.flags & 1024))
|
|
5427
5597
|
switch (root.tag) {
|
|
5428
5598
|
case 0:
|
|
5429
5599
|
case 11:
|
|
@@ -5473,7 +5643,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5473
5643
|
function commitHookEffectListUnmount(
|
|
5474
5644
|
flags,
|
|
5475
5645
|
finishedWork,
|
|
5476
|
-
nearestMountedAncestor
|
|
5646
|
+
nearestMountedAncestor
|
|
5477
5647
|
) {
|
|
5478
5648
|
var updateQueue = finishedWork.updateQueue;
|
|
5479
5649
|
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
|
|
@@ -5483,35 +5653,28 @@ function commitHookEffectListUnmount(
|
|
|
5483
5653
|
if ((effect.tag & flags) === flags) {
|
|
5484
5654
|
var destroy = effect.destroy;
|
|
5485
5655
|
effect.destroy = void 0;
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
|
|
5489
|
-
try {
|
|
5490
|
-
destroy();
|
|
5491
|
-
} catch (error) {
|
|
5492
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5493
|
-
}
|
|
5494
|
-
}
|
|
5656
|
+
void 0 !== destroy &&
|
|
5657
|
+
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
5495
5658
|
}
|
|
5496
5659
|
effect = effect.next;
|
|
5497
5660
|
} while (effect !== updateQueue);
|
|
5498
5661
|
}
|
|
5499
5662
|
}
|
|
5500
|
-
function commitHookEffectListMount(
|
|
5663
|
+
function commitHookEffectListMount(flags, finishedWork) {
|
|
5501
5664
|
finishedWork = finishedWork.updateQueue;
|
|
5502
5665
|
finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
|
|
5503
5666
|
if (null !== finishedWork) {
|
|
5504
5667
|
var effect = (finishedWork = finishedWork.next);
|
|
5505
5668
|
do {
|
|
5506
|
-
if ((effect.tag &
|
|
5507
|
-
var create$
|
|
5508
|
-
effect.destroy = create$
|
|
5669
|
+
if ((effect.tag & flags) === flags) {
|
|
5670
|
+
var create$80 = effect.create;
|
|
5671
|
+
effect.destroy = create$80();
|
|
5509
5672
|
}
|
|
5510
5673
|
effect = effect.next;
|
|
5511
5674
|
} while (effect !== finishedWork);
|
|
5512
5675
|
}
|
|
5513
5676
|
}
|
|
5514
|
-
function commitUnmount(finishedRoot, current, nearestMountedAncestor
|
|
5677
|
+
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
5515
5678
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
5516
5679
|
try {
|
|
5517
5680
|
injectedHook.onCommitFiberUnmount(rendererID, current);
|
|
@@ -5531,21 +5694,17 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5531
5694
|
var _effect = effect,
|
|
5532
5695
|
destroy = _effect.destroy;
|
|
5533
5696
|
_effect = _effect.tag;
|
|
5534
|
-
|
|
5535
|
-
_effect
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
} catch (error) {
|
|
5540
|
-
captureCommitPhaseError(_effect, nearestMountedAncestor, error);
|
|
5541
|
-
}
|
|
5542
|
-
}
|
|
5697
|
+
void 0 !== destroy &&
|
|
5698
|
+
(0 !== (_effect & 2)
|
|
5699
|
+
? safelyCallDestroy(current, nearestMountedAncestor, destroy)
|
|
5700
|
+
: 0 !== (_effect & 4) &&
|
|
5701
|
+
safelyCallDestroy(current, nearestMountedAncestor, destroy));
|
|
5543
5702
|
effect = effect.next;
|
|
5544
5703
|
} while (effect !== finishedRoot);
|
|
5545
5704
|
}
|
|
5546
5705
|
break;
|
|
5547
5706
|
case 1:
|
|
5548
|
-
safelyDetachRef(current, nearestMountedAncestor
|
|
5707
|
+
safelyDetachRef(current, nearestMountedAncestor);
|
|
5549
5708
|
finishedRoot = current.stateNode;
|
|
5550
5709
|
if ("function" === typeof finishedRoot.componentWillUnmount)
|
|
5551
5710
|
try {
|
|
@@ -5553,22 +5712,14 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5553
5712
|
(finishedRoot.state = current.memoizedState),
|
|
5554
5713
|
finishedRoot.componentWillUnmount();
|
|
5555
5714
|
} catch (error) {
|
|
5556
|
-
captureCommitPhaseError(
|
|
5557
|
-
current,
|
|
5558
|
-
nearestMountedAncestor$jscomp$0,
|
|
5559
|
-
error
|
|
5560
|
-
);
|
|
5715
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5561
5716
|
}
|
|
5562
5717
|
break;
|
|
5563
5718
|
case 5:
|
|
5564
|
-
safelyDetachRef(current, nearestMountedAncestor
|
|
5719
|
+
safelyDetachRef(current, nearestMountedAncestor);
|
|
5565
5720
|
break;
|
|
5566
5721
|
case 4:
|
|
5567
|
-
unmountHostComponents(
|
|
5568
|
-
finishedRoot,
|
|
5569
|
-
current,
|
|
5570
|
-
nearestMountedAncestor$jscomp$0
|
|
5571
|
-
);
|
|
5722
|
+
unmountHostComponents(finishedRoot, current, nearestMountedAncestor);
|
|
5572
5723
|
}
|
|
5573
5724
|
}
|
|
5574
5725
|
function detachFiberAfterEffects(fiber) {
|
|
@@ -5858,6 +6009,8 @@ function commitWork(current, finishedWork) {
|
|
|
5858
6009
|
case 14:
|
|
5859
6010
|
case 15:
|
|
5860
6011
|
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
6012
|
+
commitHookEffectListMount(3, finishedWork);
|
|
6013
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5861
6014
|
return;
|
|
5862
6015
|
case 1:
|
|
5863
6016
|
return;
|
|
@@ -5944,14 +6097,14 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5944
6097
|
}
|
|
5945
6098
|
}
|
|
5946
6099
|
deletions = firstChild.child;
|
|
5947
|
-
if (0 !== (firstChild.subtreeFlags &
|
|
6100
|
+
if (0 !== (firstChild.subtreeFlags & 12854) && null !== deletions)
|
|
5948
6101
|
(deletions.return = firstChild), (nextEffect = deletions);
|
|
5949
6102
|
else
|
|
5950
6103
|
for (; null !== nextEffect; ) {
|
|
5951
6104
|
firstChild = nextEffect;
|
|
5952
6105
|
try {
|
|
5953
6106
|
var flags = firstChild.flags;
|
|
5954
|
-
if (flags &
|
|
6107
|
+
if (flags & 512) {
|
|
5955
6108
|
var current = firstChild.alternate;
|
|
5956
6109
|
if (null !== current) {
|
|
5957
6110
|
var currentRef = current.ref;
|
|
@@ -5961,12 +6114,12 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5961
6114
|
: (currentRef.current = null));
|
|
5962
6115
|
}
|
|
5963
6116
|
}
|
|
5964
|
-
if (flags &
|
|
6117
|
+
if (flags & 8192)
|
|
5965
6118
|
switch (firstChild.tag) {
|
|
5966
6119
|
case 13:
|
|
5967
6120
|
if (null !== firstChild.memoizedState) {
|
|
5968
|
-
var current$
|
|
5969
|
-
if (null === current$
|
|
6121
|
+
var current$85 = firstChild.alternate;
|
|
6122
|
+
if (null === current$85 || null === current$85.memoizedState)
|
|
5970
6123
|
globalMostRecentFallbackTime = now();
|
|
5971
6124
|
}
|
|
5972
6125
|
break;
|
|
@@ -6042,7 +6195,7 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6042
6195
|
}
|
|
6043
6196
|
}
|
|
6044
6197
|
}
|
|
6045
|
-
switch (flags &
|
|
6198
|
+
switch (flags & 4102) {
|
|
6046
6199
|
case 2:
|
|
6047
6200
|
commitPlacement(firstChild);
|
|
6048
6201
|
firstChild.flags &= -3;
|
|
@@ -6052,11 +6205,11 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6052
6205
|
firstChild.flags &= -3;
|
|
6053
6206
|
commitWork(firstChild.alternate, firstChild);
|
|
6054
6207
|
break;
|
|
6055
|
-
case
|
|
6056
|
-
firstChild.flags &= -
|
|
6208
|
+
case 4096:
|
|
6209
|
+
firstChild.flags &= -4097;
|
|
6057
6210
|
break;
|
|
6058
|
-
case
|
|
6059
|
-
firstChild.flags &= -
|
|
6211
|
+
case 4100:
|
|
6212
|
+
firstChild.flags &= -4097;
|
|
6060
6213
|
commitWork(firstChild.alternate, firstChild);
|
|
6061
6214
|
break;
|
|
6062
6215
|
case 4:
|
|
@@ -6079,20 +6232,20 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6079
6232
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
6080
6233
|
var fiber = nextEffect,
|
|
6081
6234
|
firstChild = fiber.child;
|
|
6082
|
-
if (0 !== (fiber.subtreeFlags &
|
|
6235
|
+
if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild)
|
|
6083
6236
|
(firstChild.return = fiber), (nextEffect = firstChild);
|
|
6084
6237
|
else
|
|
6085
6238
|
for (fiber = finishedWork; null !== nextEffect; ) {
|
|
6086
6239
|
firstChild = nextEffect;
|
|
6087
|
-
if (0 !== (firstChild.flags &
|
|
6240
|
+
if (0 !== (firstChild.flags & 8772)) {
|
|
6088
6241
|
var current = firstChild.alternate;
|
|
6089
6242
|
try {
|
|
6090
|
-
if (0 !== (firstChild.flags &
|
|
6243
|
+
if (0 !== (firstChild.flags & 8772))
|
|
6091
6244
|
switch (firstChild.tag) {
|
|
6092
6245
|
case 0:
|
|
6093
6246
|
case 11:
|
|
6094
6247
|
case 15:
|
|
6095
|
-
commitHookEffectListMount(
|
|
6248
|
+
commitHookEffectListMount(5, firstChild);
|
|
6096
6249
|
break;
|
|
6097
6250
|
case 1:
|
|
6098
6251
|
var instance = firstChild.stateNode;
|
|
@@ -6117,8 +6270,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6117
6270
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6118
6271
|
break;
|
|
6119
6272
|
case 3:
|
|
6120
|
-
var updateQueue$
|
|
6121
|
-
if (null !== updateQueue$
|
|
6273
|
+
var updateQueue$81 = firstChild.updateQueue;
|
|
6274
|
+
if (null !== updateQueue$81) {
|
|
6122
6275
|
current = null;
|
|
6123
6276
|
if (null !== firstChild.child)
|
|
6124
6277
|
switch (firstChild.child.tag) {
|
|
@@ -6128,7 +6281,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6128
6281
|
case 1:
|
|
6129
6282
|
current = firstChild.child.stateNode;
|
|
6130
6283
|
}
|
|
6131
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6284
|
+
commitUpdateQueue(firstChild, updateQueue$81, current);
|
|
6132
6285
|
}
|
|
6133
6286
|
break;
|
|
6134
6287
|
case 5:
|
|
@@ -6152,7 +6305,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6152
6305
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6153
6306
|
);
|
|
6154
6307
|
}
|
|
6155
|
-
if (firstChild.flags &
|
|
6308
|
+
if (firstChild.flags & 512) {
|
|
6156
6309
|
current = void 0;
|
|
6157
6310
|
var ref = firstChild.ref;
|
|
6158
6311
|
if (null !== ref) {
|
|
@@ -6200,7 +6353,8 @@ var ceil = Math.ceil,
|
|
|
6200
6353
|
workInProgressRootExitStatus = 0,
|
|
6201
6354
|
workInProgressRootFatalError = null,
|
|
6202
6355
|
workInProgressRootSkippedLanes = 0,
|
|
6203
|
-
|
|
6356
|
+
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6357
|
+
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6204
6358
|
workInProgressRootPingedLanes = 0,
|
|
6205
6359
|
globalMostRecentFallbackTime = 0,
|
|
6206
6360
|
workInProgressRootRenderTargetTime = Infinity,
|
|
@@ -6247,16 +6401,19 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6247
6401
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6248
6402
|
if (null === root) return null;
|
|
6249
6403
|
markRootUpdated(root, lane, eventTime);
|
|
6250
|
-
root === workInProgressRoot
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6404
|
+
0 !== (executionContext & 2) && root === workInProgressRoot
|
|
6405
|
+
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
|
|
6406
|
+
: (root === workInProgressRoot &&
|
|
6407
|
+
(0 === (executionContext & 2) &&
|
|
6408
|
+
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
6409
|
+
4 === workInProgressRootExitStatus &&
|
|
6410
|
+
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6411
|
+
ensureRootIsScheduled(root, eventTime),
|
|
6412
|
+
1 === lane &&
|
|
6413
|
+
0 === executionContext &&
|
|
6414
|
+
0 === (fiber.mode & 1) &&
|
|
6415
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6416
|
+
includesLegacySyncCallbacks && flushSyncCallbacks()));
|
|
6260
6417
|
return root;
|
|
6261
6418
|
}
|
|
6262
6419
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6356,15 +6513,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6356
6513
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6357
6514
|
);
|
|
6358
6515
|
if (0 === lanes) return null;
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6516
|
+
if (
|
|
6517
|
+
includesBlockingLane(root, lanes) ||
|
|
6518
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6519
|
+
didTimeout
|
|
6520
|
+
)
|
|
6521
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6522
|
+
else {
|
|
6366
6523
|
didTimeout = lanes;
|
|
6367
|
-
|
|
6524
|
+
var prevExecutionContext = executionContext;
|
|
6368
6525
|
executionContext |= 2;
|
|
6369
6526
|
var prevDispatcher = pushDispatcher();
|
|
6370
6527
|
if (
|
|
@@ -6383,30 +6540,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6383
6540
|
while (1);
|
|
6384
6541
|
resetContextDependencies();
|
|
6385
6542
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6386
|
-
executionContext =
|
|
6543
|
+
executionContext = prevExecutionContext;
|
|
6387
6544
|
null !== workInProgress
|
|
6388
6545
|
? (didTimeout = 0)
|
|
6389
6546
|
: ((workInProgressRoot = null),
|
|
6390
6547
|
(workInProgressRootRenderLanes = 0),
|
|
6391
6548
|
(didTimeout = workInProgressRootExitStatus));
|
|
6392
|
-
}
|
|
6549
|
+
}
|
|
6393
6550
|
if (0 !== didTimeout) {
|
|
6394
6551
|
2 === didTimeout &&
|
|
6395
|
-
((
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
0 !== prevDispatcher &&
|
|
6400
|
-
((lanes = prevDispatcher),
|
|
6401
|
-
(didTimeout = renderRootSync(root, prevDispatcher))),
|
|
6402
|
-
(executionContext = JSCompiler_inline_result));
|
|
6552
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6553
|
+
0 !== prevExecutionContext &&
|
|
6554
|
+
((lanes = prevExecutionContext),
|
|
6555
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6403
6556
|
if (1 === didTimeout)
|
|
6404
6557
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6405
6558
|
prepareFreshStack(root, 0),
|
|
6406
6559
|
markRootSuspended$1(root, lanes),
|
|
6407
6560
|
ensureRootIsScheduled(root, now()),
|
|
6408
6561
|
originalCallbackNode);
|
|
6409
|
-
|
|
6562
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6563
|
+
prevExecutionContext = root.current.alternate;
|
|
6564
|
+
if (
|
|
6565
|
+
prevDispatcher &&
|
|
6566
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6567
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6568
|
+
2 === didTimeout &&
|
|
6569
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6570
|
+
0 !== prevDispatcher &&
|
|
6571
|
+
((lanes = prevDispatcher),
|
|
6572
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6573
|
+
1 === didTimeout)
|
|
6574
|
+
)
|
|
6575
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6576
|
+
prepareFreshStack(root, 0),
|
|
6577
|
+
markRootSuspended$1(root, lanes),
|
|
6578
|
+
ensureRootIsScheduled(root, now()),
|
|
6579
|
+
originalCallbackNode);
|
|
6580
|
+
root.finishedWork = prevExecutionContext;
|
|
6410
6581
|
root.finishedLanes = lanes;
|
|
6411
6582
|
switch (didTimeout) {
|
|
6412
6583
|
case 0:
|
|
@@ -6423,10 +6594,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6423
6594
|
10 < didTimeout)
|
|
6424
6595
|
) {
|
|
6425
6596
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6426
|
-
|
|
6427
|
-
if ((
|
|
6597
|
+
prevExecutionContext = root.suspendedLanes;
|
|
6598
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6428
6599
|
requestEventTime();
|
|
6429
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
6600
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6430
6601
|
break;
|
|
6431
6602
|
}
|
|
6432
6603
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6441,15 +6612,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6441
6612
|
markRootSuspended$1(root, lanes);
|
|
6442
6613
|
if ((lanes & 4194240) === lanes) break;
|
|
6443
6614
|
didTimeout = root.eventTimes;
|
|
6444
|
-
for (
|
|
6615
|
+
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6445
6616
|
var index$5 = 31 - clz32(lanes);
|
|
6446
6617
|
prevDispatcher = 1 << index$5;
|
|
6447
6618
|
index$5 = didTimeout[index$5];
|
|
6448
|
-
index$5 >
|
|
6449
|
-
(JSCompiler_inline_result = index$5);
|
|
6619
|
+
index$5 > prevExecutionContext && (prevExecutionContext = index$5);
|
|
6450
6620
|
lanes &= ~prevDispatcher;
|
|
6451
6621
|
}
|
|
6452
|
-
lanes =
|
|
6622
|
+
lanes = prevExecutionContext;
|
|
6453
6623
|
lanes = now() - lanes;
|
|
6454
6624
|
lanes =
|
|
6455
6625
|
(120 > lanes
|
|
@@ -6486,9 +6656,57 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6486
6656
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6487
6657
|
: null;
|
|
6488
6658
|
}
|
|
6659
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6660
|
+
var prevExecutionContext = executionContext;
|
|
6661
|
+
executionContext |= 8;
|
|
6662
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
6663
|
+
for (
|
|
6664
|
+
var exitStatus, i = 0;
|
|
6665
|
+
50 > i &&
|
|
6666
|
+
((exitStatus = renderRootSync(root, errorRetryLanes)),
|
|
6667
|
+
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
|
|
6668
|
+
i++
|
|
6669
|
+
);
|
|
6670
|
+
executionContext = prevExecutionContext;
|
|
6671
|
+
return exitStatus;
|
|
6672
|
+
}
|
|
6673
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6674
|
+
for (var node = finishedWork; ; ) {
|
|
6675
|
+
if (node.flags & 16384) {
|
|
6676
|
+
var updateQueue = node.updateQueue;
|
|
6677
|
+
if (
|
|
6678
|
+
null !== updateQueue &&
|
|
6679
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6680
|
+
)
|
|
6681
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6682
|
+
var check = updateQueue[i],
|
|
6683
|
+
getSnapshot = check.getSnapshot;
|
|
6684
|
+
check = check.value;
|
|
6685
|
+
try {
|
|
6686
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6687
|
+
} catch (error) {
|
|
6688
|
+
return !1;
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
}
|
|
6692
|
+
updateQueue = node.child;
|
|
6693
|
+
if (node.subtreeFlags & 16384 && null !== updateQueue)
|
|
6694
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6695
|
+
else {
|
|
6696
|
+
if (node === finishedWork) break;
|
|
6697
|
+
for (; null === node.sibling; ) {
|
|
6698
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6699
|
+
node = node.return;
|
|
6700
|
+
}
|
|
6701
|
+
node.sibling.return = node.return;
|
|
6702
|
+
node = node.sibling;
|
|
6703
|
+
}
|
|
6704
|
+
}
|
|
6705
|
+
return !0;
|
|
6706
|
+
}
|
|
6489
6707
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6490
6708
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6491
|
-
suspendedLanes &= ~
|
|
6709
|
+
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
6492
6710
|
root.suspendedLanes |= suspendedLanes;
|
|
6493
6711
|
root.pingedLanes &= ~suspendedLanes;
|
|
6494
6712
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
@@ -6506,13 +6724,10 @@ function performSyncWorkOnRoot(root) {
|
|
|
6506
6724
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6507
6725
|
var exitStatus = renderRootSync(root, lanes);
|
|
6508
6726
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6509
|
-
var prevExecutionContext = executionContext;
|
|
6510
|
-
executionContext |= 8;
|
|
6511
|
-
root.hydrate && (root.hydrate = !1);
|
|
6512
6727
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6513
6728
|
0 !== errorRetryLanes &&
|
|
6514
|
-
((lanes = errorRetryLanes),
|
|
6515
|
-
|
|
6729
|
+
((lanes = errorRetryLanes),
|
|
6730
|
+
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
|
|
6516
6731
|
}
|
|
6517
6732
|
if (1 === exitStatus)
|
|
6518
6733
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6539,6 +6754,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6539
6754
|
if (null !== workInProgress)
|
|
6540
6755
|
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
|
|
6541
6756
|
var interruptedWork = timeoutHandle;
|
|
6757
|
+
popTreeContext(interruptedWork);
|
|
6542
6758
|
switch (interruptedWork.tag) {
|
|
6543
6759
|
case 1:
|
|
6544
6760
|
interruptedWork = interruptedWork.type.childContextTypes;
|
|
@@ -6578,7 +6794,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6578
6794
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
6579
6795
|
workInProgressRootExitStatus = 0;
|
|
6580
6796
|
workInProgressRootFatalError = null;
|
|
6581
|
-
workInProgressRootPingedLanes =
|
|
6797
|
+
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6582
6798
|
if (null !== interleavedQueues) {
|
|
6583
6799
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
6584
6800
|
if (
|
|
@@ -6633,59 +6849,67 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6633
6849
|
sourceFiber = erroredWork,
|
|
6634
6850
|
value = thrownValue;
|
|
6635
6851
|
thrownValue = workInProgressRootRenderLanes;
|
|
6636
|
-
sourceFiber.flags |=
|
|
6852
|
+
sourceFiber.flags |= 32768;
|
|
6637
6853
|
if (
|
|
6638
6854
|
null !== value &&
|
|
6639
6855
|
"object" === typeof value &&
|
|
6640
6856
|
"function" === typeof value.then
|
|
6641
6857
|
) {
|
|
6642
6858
|
var wakeable = value,
|
|
6643
|
-
|
|
6859
|
+
sourceFiber$jscomp$0 = sourceFiber,
|
|
6860
|
+
tag = sourceFiber$jscomp$0.tag;
|
|
6644
6861
|
if (
|
|
6645
|
-
0 === (sourceFiber.mode & 1) &&
|
|
6862
|
+
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
6646
6863
|
(0 === tag || 11 === tag || 15 === tag)
|
|
6647
6864
|
) {
|
|
6648
|
-
var currentSource = sourceFiber.alternate;
|
|
6865
|
+
var currentSource = sourceFiber$jscomp$0.alternate;
|
|
6649
6866
|
currentSource
|
|
6650
|
-
? ((sourceFiber.updateQueue = currentSource.updateQueue),
|
|
6651
|
-
(sourceFiber.memoizedState =
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6867
|
+
? ((sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue),
|
|
6868
|
+
(sourceFiber$jscomp$0.memoizedState =
|
|
6869
|
+
currentSource.memoizedState),
|
|
6870
|
+
(sourceFiber$jscomp$0.lanes = currentSource.lanes))
|
|
6871
|
+
: ((sourceFiber$jscomp$0.updateQueue = null),
|
|
6872
|
+
(sourceFiber$jscomp$0.memoizedState = null));
|
|
6655
6873
|
}
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6874
|
+
b: {
|
|
6875
|
+
sourceFiber$jscomp$0 = returnFiber;
|
|
6876
|
+
var hasInvisibleParentBoundary =
|
|
6877
|
+
0 !== (suspenseStackCursor.current & 1);
|
|
6878
|
+
do {
|
|
6879
|
+
var JSCompiler_temp;
|
|
6880
|
+
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
|
|
6881
|
+
var nextState = sourceFiber$jscomp$0.memoizedState;
|
|
6882
|
+
JSCompiler_temp =
|
|
6883
|
+
null !== nextState
|
|
6884
|
+
? null !== nextState.dehydrated
|
|
6885
|
+
? !0
|
|
6886
|
+
: !1
|
|
6887
|
+
: !0 !==
|
|
6888
|
+
sourceFiber$jscomp$0.memoizedProps
|
|
6889
|
+
.unstable_avoidThisFallback
|
|
6666
6890
|
? !0
|
|
6667
|
-
:
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
sourceFiber.flags |=
|
|
6688
|
-
sourceFiber.flags &= -
|
|
6891
|
+
: hasInvisibleParentBoundary
|
|
6892
|
+
? !1
|
|
6893
|
+
: !0;
|
|
6894
|
+
}
|
|
6895
|
+
if (JSCompiler_temp) {
|
|
6896
|
+
var suspenseBoundary = sourceFiber$jscomp$0;
|
|
6897
|
+
break b;
|
|
6898
|
+
}
|
|
6899
|
+
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
|
|
6900
|
+
} while (null !== sourceFiber$jscomp$0);
|
|
6901
|
+
suspenseBoundary = null;
|
|
6902
|
+
}
|
|
6903
|
+
if (null !== suspenseBoundary) {
|
|
6904
|
+
suspenseBoundary.flags &= -257;
|
|
6905
|
+
value = suspenseBoundary;
|
|
6906
|
+
sourceFiber$jscomp$0 = thrownValue;
|
|
6907
|
+
if (0 === (value.mode & 1))
|
|
6908
|
+
if (value === returnFiber) value.flags |= 65536;
|
|
6909
|
+
else {
|
|
6910
|
+
value.flags |= 128;
|
|
6911
|
+
sourceFiber.flags |= 131072;
|
|
6912
|
+
sourceFiber.flags &= -52805;
|
|
6689
6913
|
if (1 === sourceFiber.tag)
|
|
6690
6914
|
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6691
6915
|
else {
|
|
@@ -6694,83 +6918,88 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6694
6918
|
enqueueUpdate(sourceFiber, update);
|
|
6695
6919
|
}
|
|
6696
6920
|
sourceFiber.lanes |= 1;
|
|
6697
|
-
break a;
|
|
6698
6921
|
}
|
|
6699
|
-
|
|
6700
|
-
|
|
6922
|
+
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
|
|
6923
|
+
sourceFiber = void 0;
|
|
6924
|
+
value = suspenseBoundary;
|
|
6925
|
+
if (value.mode & 1) {
|
|
6701
6926
|
var pingCache = root.pingCache;
|
|
6702
6927
|
null === pingCache
|
|
6703
6928
|
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
|
|
6704
|
-
(
|
|
6705
|
-
pingCache.set(wakeable,
|
|
6706
|
-
: ((
|
|
6707
|
-
void 0 ===
|
|
6708
|
-
((
|
|
6709
|
-
|
|
6710
|
-
|
|
6929
|
+
(sourceFiber = new Set()),
|
|
6930
|
+
pingCache.set(wakeable, sourceFiber))
|
|
6931
|
+
: ((sourceFiber = pingCache.get(wakeable)),
|
|
6932
|
+
void 0 === sourceFiber &&
|
|
6933
|
+
((sourceFiber = new Set()),
|
|
6934
|
+
pingCache.set(wakeable, sourceFiber)));
|
|
6935
|
+
if (!sourceFiber.has(thrownValue)) {
|
|
6936
|
+
sourceFiber.add(thrownValue);
|
|
6711
6937
|
var ping = pingSuspendedRoot.bind(
|
|
6712
6938
|
null,
|
|
6713
6939
|
root,
|
|
6714
6940
|
wakeable,
|
|
6715
|
-
|
|
6941
|
+
thrownValue
|
|
6716
6942
|
);
|
|
6717
6943
|
wakeable.then(ping, ping);
|
|
6718
6944
|
}
|
|
6719
|
-
workInProgress$32.flags |= 16384;
|
|
6720
|
-
workInProgress$32.lanes = thrownValue;
|
|
6721
|
-
break a;
|
|
6722
6945
|
}
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6946
|
+
var wakeables = value.updateQueue;
|
|
6947
|
+
if (null === wakeables) {
|
|
6948
|
+
var updateQueue = new Set();
|
|
6949
|
+
updateQueue.add(wakeable);
|
|
6950
|
+
value.updateQueue = updateQueue;
|
|
6951
|
+
} else wakeables.add(wakeable);
|
|
6952
|
+
break a;
|
|
6953
|
+
} else
|
|
6954
|
+
value = Error(
|
|
6955
|
+
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
6956
|
+
" 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."
|
|
6957
|
+
);
|
|
6729
6958
|
}
|
|
6730
|
-
|
|
6959
|
+
4 !== workInProgressRootExitStatus &&
|
|
6731
6960
|
(workInProgressRootExitStatus = 2);
|
|
6732
6961
|
value = createCapturedValue(value, sourceFiber);
|
|
6733
|
-
|
|
6962
|
+
root = returnFiber;
|
|
6734
6963
|
do {
|
|
6735
|
-
switch (
|
|
6964
|
+
switch (root.tag) {
|
|
6736
6965
|
case 3:
|
|
6737
|
-
|
|
6738
|
-
|
|
6966
|
+
wakeable = value;
|
|
6967
|
+
root.flags |= 65536;
|
|
6739
6968
|
thrownValue &= -thrownValue;
|
|
6740
|
-
|
|
6741
|
-
var update$
|
|
6742
|
-
workInProgress$32,
|
|
6969
|
+
root.lanes |= thrownValue;
|
|
6970
|
+
var update$jscomp$0 = createRootErrorUpdate(
|
|
6743
6971
|
root,
|
|
6972
|
+
wakeable,
|
|
6744
6973
|
thrownValue
|
|
6745
6974
|
);
|
|
6746
|
-
enqueueCapturedUpdate(
|
|
6975
|
+
enqueueCapturedUpdate(root, update$jscomp$0);
|
|
6747
6976
|
break a;
|
|
6748
6977
|
case 1:
|
|
6749
|
-
|
|
6750
|
-
var ctor =
|
|
6751
|
-
instance =
|
|
6978
|
+
wakeable = value;
|
|
6979
|
+
var ctor = root.type,
|
|
6980
|
+
instance = root.stateNode;
|
|
6752
6981
|
if (
|
|
6753
|
-
0 === (
|
|
6982
|
+
0 === (root.flags & 128) &&
|
|
6754
6983
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
6755
6984
|
(null !== instance &&
|
|
6756
6985
|
"function" === typeof instance.componentDidCatch &&
|
|
6757
6986
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
6758
6987
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
6759
6988
|
) {
|
|
6760
|
-
|
|
6989
|
+
root.flags |= 65536;
|
|
6761
6990
|
thrownValue &= -thrownValue;
|
|
6762
|
-
|
|
6763
|
-
var update$
|
|
6764
|
-
workInProgress$32,
|
|
6991
|
+
root.lanes |= thrownValue;
|
|
6992
|
+
var update$33 = createClassErrorUpdate(
|
|
6765
6993
|
root,
|
|
6994
|
+
wakeable,
|
|
6766
6995
|
thrownValue
|
|
6767
6996
|
);
|
|
6768
|
-
enqueueCapturedUpdate(
|
|
6997
|
+
enqueueCapturedUpdate(root, update$33);
|
|
6769
6998
|
break a;
|
|
6770
6999
|
}
|
|
6771
7000
|
}
|
|
6772
|
-
|
|
6773
|
-
} while (null !==
|
|
7001
|
+
root = root.return;
|
|
7002
|
+
} while (null !== root);
|
|
6774
7003
|
}
|
|
6775
7004
|
completeUnitOfWork(erroredWork);
|
|
6776
7005
|
} catch (yetAnotherThrownValue) {
|
|
@@ -6831,7 +7060,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6831
7060
|
do {
|
|
6832
7061
|
var current = completedWork.alternate;
|
|
6833
7062
|
unitOfWork = completedWork.return;
|
|
6834
|
-
if (0 === (completedWork.flags &
|
|
7063
|
+
if (0 === (completedWork.flags & 32768)) {
|
|
6835
7064
|
if (
|
|
6836
7065
|
((current = completeWork(current, completedWork, subtreeRenderLanes)),
|
|
6837
7066
|
null !== current)
|
|
@@ -6842,12 +7071,12 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6842
7071
|
} else {
|
|
6843
7072
|
current = unwindWork(completedWork);
|
|
6844
7073
|
if (null !== current) {
|
|
6845
|
-
current.flags &=
|
|
7074
|
+
current.flags &= 32767;
|
|
6846
7075
|
workInProgress = current;
|
|
6847
7076
|
return;
|
|
6848
7077
|
}
|
|
6849
7078
|
null !== unitOfWork &&
|
|
6850
|
-
((unitOfWork.flags |=
|
|
7079
|
+
((unitOfWork.flags |= 32768),
|
|
6851
7080
|
(unitOfWork.subtreeFlags = 0),
|
|
6852
7081
|
(unitOfWork.deletions = null));
|
|
6853
7082
|
}
|
|
@@ -6894,16 +7123,16 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6894
7123
|
root === workInProgressRoot &&
|
|
6895
7124
|
((workInProgress = workInProgressRoot = null),
|
|
6896
7125
|
(workInProgressRootRenderLanes = 0));
|
|
6897
|
-
(0 === (finishedWork.subtreeFlags &
|
|
6898
|
-
0 === (finishedWork.flags &
|
|
7126
|
+
(0 === (finishedWork.subtreeFlags & 2064) &&
|
|
7127
|
+
0 === (finishedWork.flags & 2064)) ||
|
|
6899
7128
|
rootDoesHavePassiveEffects ||
|
|
6900
7129
|
((rootDoesHavePassiveEffects = !0),
|
|
6901
7130
|
scheduleCallback$1(NormalPriority, function() {
|
|
6902
7131
|
flushPassiveEffects();
|
|
6903
7132
|
return null;
|
|
6904
7133
|
}));
|
|
6905
|
-
remainingLanes = 0 !== (finishedWork.flags &
|
|
6906
|
-
if (0 !== (finishedWork.subtreeFlags &
|
|
7134
|
+
remainingLanes = 0 !== (finishedWork.flags & 15990);
|
|
7135
|
+
if (0 !== (finishedWork.subtreeFlags & 15990) || remainingLanes) {
|
|
6907
7136
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
6908
7137
|
ReactCurrentBatchConfig$2.transition = 0;
|
|
6909
7138
|
var previousPriority = currentUpdatePriority;
|
|
@@ -6926,11 +7155,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6926
7155
|
(pendingPassiveEffectsLanes = lanes));
|
|
6927
7156
|
remainingLanes = root.pendingLanes;
|
|
6928
7157
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
6929
|
-
0 !== (remainingLanes & 1)
|
|
6930
|
-
? root === rootWithNestedUpdates
|
|
6931
|
-
? nestedUpdateCount++
|
|
6932
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
6933
|
-
: (nestedUpdateCount = 0);
|
|
6934
7158
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
6935
7159
|
ensureRootIsScheduled(root, now());
|
|
6936
7160
|
if (hasUncaughtError)
|
|
@@ -6941,6 +7165,12 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6941
7165
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
6942
7166
|
0 !== root.tag &&
|
|
6943
7167
|
flushPassiveEffects();
|
|
7168
|
+
remainingLanes = root.pendingLanes;
|
|
7169
|
+
0 !== (remainingLanes & 1)
|
|
7170
|
+
? root === rootWithNestedUpdates
|
|
7171
|
+
? nestedUpdateCount++
|
|
7172
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
7173
|
+
: (nestedUpdateCount = 0);
|
|
6944
7174
|
flushSyncCallbacks();
|
|
6945
7175
|
return null;
|
|
6946
7176
|
}
|
|
@@ -6976,7 +7206,7 @@ function flushPassiveEffects() {
|
|
|
6976
7206
|
case 0:
|
|
6977
7207
|
case 11:
|
|
6978
7208
|
case 15:
|
|
6979
|
-
commitHookEffectListUnmount(
|
|
7209
|
+
commitHookEffectListUnmount(8, fiber$jscomp$0, fiber);
|
|
6980
7210
|
}
|
|
6981
7211
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
6982
7212
|
if (null !== child$jscomp$0)
|
|
@@ -7016,17 +7246,17 @@ function flushPassiveEffects() {
|
|
|
7016
7246
|
nextEffect = fiber;
|
|
7017
7247
|
}
|
|
7018
7248
|
}
|
|
7019
|
-
if (0 !== (fiber.subtreeFlags &
|
|
7249
|
+
if (0 !== (fiber.subtreeFlags & 2064) && null !== child)
|
|
7020
7250
|
(child.return = fiber), (nextEffect = child);
|
|
7021
7251
|
else
|
|
7022
7252
|
b: for (; null !== nextEffect; ) {
|
|
7023
7253
|
fiber = nextEffect;
|
|
7024
|
-
if (0 !== (fiber.flags &
|
|
7254
|
+
if (0 !== (fiber.flags & 2048))
|
|
7025
7255
|
switch (fiber.tag) {
|
|
7026
7256
|
case 0:
|
|
7027
7257
|
case 11:
|
|
7028
7258
|
case 15:
|
|
7029
|
-
commitHookEffectListUnmount(
|
|
7259
|
+
commitHookEffectListUnmount(9, fiber, fiber.return);
|
|
7030
7260
|
}
|
|
7031
7261
|
var sibling$jscomp$0 = fiber.sibling;
|
|
7032
7262
|
if (null !== sibling$jscomp$0) {
|
|
@@ -7041,18 +7271,18 @@ function flushPassiveEffects() {
|
|
|
7041
7271
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
7042
7272
|
child = nextEffect;
|
|
7043
7273
|
var firstChild = child.child;
|
|
7044
|
-
if (0 !== (child.subtreeFlags &
|
|
7274
|
+
if (0 !== (child.subtreeFlags & 2064) && null !== firstChild)
|
|
7045
7275
|
(firstChild.return = child), (nextEffect = firstChild);
|
|
7046
7276
|
else
|
|
7047
7277
|
b: for (child = finishedWork; null !== nextEffect; ) {
|
|
7048
7278
|
deletions = nextEffect;
|
|
7049
|
-
if (0 !== (deletions.flags &
|
|
7279
|
+
if (0 !== (deletions.flags & 2048))
|
|
7050
7280
|
try {
|
|
7051
7281
|
switch (deletions.tag) {
|
|
7052
7282
|
case 0:
|
|
7053
7283
|
case 11:
|
|
7054
7284
|
case 15:
|
|
7055
|
-
commitHookEffectListMount(
|
|
7285
|
+
commitHookEffectListMount(9, deletions);
|
|
7056
7286
|
}
|
|
7057
7287
|
} catch (error) {
|
|
7058
7288
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -7198,7 +7428,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7198
7428
|
renderLanes
|
|
7199
7429
|
)
|
|
7200
7430
|
);
|
|
7201
|
-
didReceiveUpdate = 0 !== (current.flags &
|
|
7431
|
+
didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
|
|
7202
7432
|
}
|
|
7203
7433
|
else didReceiveUpdate = !1;
|
|
7204
7434
|
workInProgress.lanes = 0;
|
|
@@ -7664,7 +7894,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7664
7894
|
(workInProgress.flags = 0),
|
|
7665
7895
|
(workInProgress.subtreeFlags = 0),
|
|
7666
7896
|
(workInProgress.deletions = null));
|
|
7667
|
-
workInProgress.flags = current.flags &
|
|
7897
|
+
workInProgress.flags = current.flags & 14680064;
|
|
7668
7898
|
workInProgress.childLanes = current.childLanes;
|
|
7669
7899
|
workInProgress.lanes = current.lanes;
|
|
7670
7900
|
workInProgress.child = current.child;
|
|
@@ -7757,8 +7987,7 @@ function createFiberFromTypeAndProps(
|
|
|
7757
7987
|
}
|
|
7758
7988
|
throw Error(
|
|
7759
7989
|
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
7760
|
-
(null == type ? type : typeof type) +
|
|
7761
|
-
"."
|
|
7990
|
+
((null == type ? type : typeof type) + ".")
|
|
7762
7991
|
);
|
|
7763
7992
|
}
|
|
7764
7993
|
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
@@ -7804,7 +8033,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
7804
8033
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
7805
8034
|
this.timeoutHandle = -1;
|
|
7806
8035
|
this.pendingContext = this.context = null;
|
|
7807
|
-
this.
|
|
8036
|
+
this.isDehydrated = hydrate;
|
|
7808
8037
|
this.callbackNode = null;
|
|
7809
8038
|
this.callbackPriority = 0;
|
|
7810
8039
|
this.eventTimes = createLaneMap(0);
|
|
@@ -7828,9 +8057,9 @@ function findHostInstance(component) {
|
|
|
7828
8057
|
if (void 0 === fiber) {
|
|
7829
8058
|
if ("function" === typeof component.render)
|
|
7830
8059
|
throw Error("Unable to find node on an unmounted component.");
|
|
8060
|
+
component = Object.keys(component).join(",");
|
|
7831
8061
|
throw Error(
|
|
7832
|
-
"Argument appears to not be a ReactComponent. Keys: " +
|
|
7833
|
-
Object.keys(component)
|
|
8062
|
+
"Argument appears to not be a ReactComponent. Keys: " + component
|
|
7834
8063
|
);
|
|
7835
8064
|
}
|
|
7836
8065
|
component = findCurrentHostFiber(fiber);
|
|
@@ -8021,10 +8250,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8021
8250
|
}
|
|
8022
8251
|
};
|
|
8023
8252
|
var roots = new Map(),
|
|
8024
|
-
devToolsConfig$jscomp$
|
|
8253
|
+
devToolsConfig$jscomp$inline_966 = {
|
|
8025
8254
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8026
8255
|
bundleType: 0,
|
|
8027
|
-
version: "18.0.0-
|
|
8256
|
+
version: "18.0.0-c0c71a868-20211112",
|
|
8028
8257
|
rendererPackageName: "react-native-renderer",
|
|
8029
8258
|
rendererConfig: {
|
|
8030
8259
|
getInspectorDataForViewTag: function() {
|
|
@@ -8039,11 +8268,11 @@ var roots = new Map(),
|
|
|
8039
8268
|
}.bind(null, findNodeHandle)
|
|
8040
8269
|
}
|
|
8041
8270
|
};
|
|
8042
|
-
var internals$jscomp$
|
|
8043
|
-
bundleType: devToolsConfig$jscomp$
|
|
8044
|
-
version: devToolsConfig$jscomp$
|
|
8045
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8046
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8271
|
+
var internals$jscomp$inline_1230 = {
|
|
8272
|
+
bundleType: devToolsConfig$jscomp$inline_966.bundleType,
|
|
8273
|
+
version: devToolsConfig$jscomp$inline_966.version,
|
|
8274
|
+
rendererPackageName: devToolsConfig$jscomp$inline_966.rendererPackageName,
|
|
8275
|
+
rendererConfig: devToolsConfig$jscomp$inline_966.rendererConfig,
|
|
8047
8276
|
overrideHookState: null,
|
|
8048
8277
|
overrideHookStateDeletePath: null,
|
|
8049
8278
|
overrideHookStateRenamePath: null,
|
|
@@ -8059,26 +8288,26 @@ var internals$jscomp$inline_1237 = {
|
|
|
8059
8288
|
return null === fiber ? null : fiber.stateNode;
|
|
8060
8289
|
},
|
|
8061
8290
|
findFiberByHostInstance:
|
|
8062
|
-
devToolsConfig$jscomp$
|
|
8291
|
+
devToolsConfig$jscomp$inline_966.findFiberByHostInstance ||
|
|
8063
8292
|
emptyFindFiberByHostInstance,
|
|
8064
8293
|
findHostInstancesForRefresh: null,
|
|
8065
8294
|
scheduleRefresh: null,
|
|
8066
8295
|
scheduleRoot: null,
|
|
8067
8296
|
setRefreshHandler: null,
|
|
8068
8297
|
getCurrentFiber: null,
|
|
8069
|
-
reconcilerVersion: "18.0.0-
|
|
8298
|
+
reconcilerVersion: "18.0.0-c0c71a868-20211112"
|
|
8070
8299
|
};
|
|
8071
8300
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8072
|
-
var hook$jscomp$
|
|
8301
|
+
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8073
8302
|
if (
|
|
8074
|
-
!hook$jscomp$
|
|
8075
|
-
hook$jscomp$
|
|
8303
|
+
!hook$jscomp$inline_1231.isDisabled &&
|
|
8304
|
+
hook$jscomp$inline_1231.supportsFiber
|
|
8076
8305
|
)
|
|
8077
8306
|
try {
|
|
8078
|
-
(rendererID = hook$jscomp$
|
|
8079
|
-
internals$jscomp$
|
|
8307
|
+
(rendererID = hook$jscomp$inline_1231.inject(
|
|
8308
|
+
internals$jscomp$inline_1230
|
|
8080
8309
|
)),
|
|
8081
|
-
(injectedHook = hook$jscomp$
|
|
8310
|
+
(injectedHook = hook$jscomp$inline_1231);
|
|
8082
8311
|
} catch (err) {}
|
|
8083
8312
|
}
|
|
8084
8313
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|