react-native-macos 0.0.0-d74468479 → 0.0.0-d7b3947f3
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/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +2 -3
- package/Libraries/Alert/Alert.js +2 -2
- package/Libraries/Alert/RCTAlertManager.android.js +1 -1
- package/Libraries/Animated/AnimatedEvent.js +10 -5
- package/Libraries/Animated/AnimatedImplementation.js +92 -60
- package/Libraries/Animated/AnimatedMock.js +14 -11
- package/{ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp → Libraries/Animated/AnimatedPlatformConfig.js} +6 -5
- package/Libraries/Animated/Easing.js +36 -36
- package/Libraries/Animated/NativeAnimatedHelper.js +23 -20
- package/Libraries/Animated/animations/Animation.js +5 -3
- package/Libraries/Animated/animations/DecayAnimation.js +5 -0
- package/Libraries/Animated/animations/SpringAnimation.js +15 -0
- package/Libraries/Animated/animations/TimingAnimation.js +14 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +5 -4
- package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +4 -3
- package/Libraries/Animated/nodes/AnimatedDivision.js +5 -4
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +5 -3
- package/Libraries/Animated/nodes/AnimatedModulo.js +4 -3
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +5 -4
- package/Libraries/Animated/nodes/AnimatedNode.js +27 -14
- package/Libraries/Animated/nodes/AnimatedProps.js +11 -3
- package/Libraries/Animated/nodes/AnimatedStyle.js +6 -4
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +5 -4
- package/Libraries/Animated/nodes/AnimatedTracking.js +7 -5
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -3
- package/Libraries/Animated/nodes/AnimatedValue.js +2 -0
- package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +5 -4
- package/Libraries/AppState/AppState.js +8 -7
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +2 -2
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -20
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -2
- package/Libraries/Components/Button.js +1 -2
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +6 -7
- package/Libraries/Components/Keyboard/Keyboard.js +8 -7
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +8 -13
- package/Libraries/Components/Pressable/Pressable.js +1 -2
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +2 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +2 -7
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +2 -2
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -0
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +15 -5
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +3 -5
- package/Libraries/Components/ScrollView/ScrollView.js +34 -100
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +134 -71
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -2
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +2 -8
- package/Libraries/Components/Slider/SliderNativeComponent.js +2 -2
- package/Libraries/Components/Sound/SoundManager.js +1 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +115 -2
- package/Libraries/Components/TextInput/InputAccessoryView.js +1 -2
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +9 -4
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +5 -4
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +33 -8
- package/Libraries/Components/TextInput/TextInput.js +137 -11
- package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +3 -3
- package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +3 -3
- package/Libraries/Components/Touchable/BoundingDimensions.js +2 -2
- package/Libraries/Components/Touchable/PooledClass.js +6 -6
- package/Libraries/Components/Touchable/Position.js +1 -1
- package/Libraries/Components/Touchable/Touchable.js +26 -25
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -2
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -2
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +4 -11
- package/Libraries/Components/Touchable/TouchableOpacity.js +1 -3
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -0
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +3 -3
- package/Libraries/Components/View/View.js +0 -7
- package/Libraries/Components/View/ViewNativeComponent.js +3 -4
- package/Libraries/Components/View/ViewPropTypes.js +17 -6
- package/Libraries/Core/Devtools/parseHermesStack.js +2 -1
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/NativeExceptionsManager.js +2 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -0
- package/Libraries/Core/Timers/JSTimers.js +34 -41
- package/Libraries/Core/setUpAlert.js +1 -1
- package/Libraries/Core/setUpDeveloperTools.js +1 -1
- package/Libraries/Core/setUpPerformance.js +1 -1
- package/Libraries/Core/setUpRegeneratorRuntime.js +1 -1
- package/Libraries/Core/setUpSegmentFetcher.js +4 -4
- package/Libraries/EventEmitter/NativeEventEmitter.js +2 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +2 -1
- package/Libraries/HeapCapture/HeapCapture.js +1 -1
- package/Libraries/Image/AssetSourceResolver.js +2 -4
- package/Libraries/Image/Image.android.js +20 -11
- package/Libraries/Image/Image.ios.js +3 -3
- package/Libraries/Image/ImageAnalyticsTagContext.js +2 -3
- package/Libraries/Image/ImageBackground.js +1 -2
- package/Libraries/Image/ImagePickerIOS.js +6 -6
- package/Libraries/Image/ImageViewNativeComponent.js +95 -60
- package/Libraries/Image/NativeImageLoaderAndroid.js +1 -3
- package/Libraries/Image/RCTImageCache.m +1 -1
- package/Libraries/Image/RCTImageView.mm +36 -24
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +12 -72
- package/Libraries/Inspector/ElementProperties.js +2 -4
- package/Libraries/Inspector/InspectorOverlay.js +1 -2
- package/Libraries/Inspector/InspectorPanel.js +1 -2
- package/Libraries/Inspector/NetworkOverlay.js +5 -11
- package/Libraries/Interaction/BridgeSpyStallHandler.js +1 -1
- package/Libraries/Interaction/FrameRateLogger.js +2 -2
- package/Libraries/Interaction/InteractionManager.js +2 -4
- package/Libraries/Interaction/JSEventLoopWatchdog.js +4 -4
- package/Libraries/Interaction/PanResponder.js +3 -4
- package/Libraries/Interaction/TouchHistoryMath.js +7 -7
- package/Libraries/JSInspector/NetworkAgent.js +1 -6
- package/Libraries/LayoutAnimation/LayoutAnimation.js +3 -3
- package/Libraries/LinkingIOS/RCTLinkingManager.h +1 -0
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +12 -5
- package/Libraries/Lists/FillRateHelper.js +1 -3
- package/Libraries/Lists/FlatList.js +41 -5
- package/Libraries/Lists/ViewabilityHelper.js +4 -10
- package/Libraries/Lists/VirtualizeUtils.js +2 -6
- package/Libraries/Lists/VirtualizedList.js +162 -131
- package/Libraries/Lists/VirtualizedListContext.js +3 -5
- package/Libraries/Lists/VirtualizedSectionList.js +63 -68
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +12 -23
- package/Libraries/LogBox/UI/LogBoxButton.js +2 -4
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +2 -4
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -2
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -2
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +3 -6
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -3
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -4
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +2 -4
- package/Libraries/LogBox/UI/LogBoxNotification.js +2 -4
- package/Libraries/Modal/Modal.js +2 -5
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h +14 -0
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
- package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +2 -0
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
- package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -4
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +39 -0
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XHRInterceptor.js +5 -6
- package/Libraries/Network/XMLHttpRequest.js +0 -1
- package/Libraries/NewAppScreen/components/Header.js +2 -4
- package/Libraries/NewAppScreen/components/HermesBadge.js +1 -2
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +2 -4
- package/Libraries/Performance/QuickPerformanceLogger.js +17 -0
- package/Libraries/Performance/SamplingProfiler.js +3 -3
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -3
- package/Libraries/Pressability/Pressability.js +2 -2
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +4 -2
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +8 -7
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/ReactNative/AppContainer.js +4 -6
- package/Libraries/ReactNative/AppRegistry.js +2 -3
- package/Libraries/ReactNative/I18nManager.js +2 -5
- package/Libraries/ReactNative/PaperUIManager.js +2 -3
- package/Libraries/ReactNative/RootTag.js +2 -3
- package/Libraries/ReactNative/UIManager.js +5 -10
- package/Libraries/ReactNative/UIManagerInjection.js +3 -3
- package/Libraries/ReactNative/getNativeComponentAttributes.js +4 -0
- package/Libraries/ReactNative/renderApplication.js +1 -2
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +340 -393
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +340 -393
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Storage/AsyncStorage.js +21 -21
- package/Libraries/StyleSheet/StyleSheet.js +2 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +26 -1
- package/Libraries/StyleSheet/processColor.js +2 -2
- package/Libraries/StyleSheet/splitLayoutProps.js +1 -3
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +8 -0
- package/Libraries/Text/RCTTextAttributes.h +11 -3
- package/Libraries/Text/RCTTextAttributes.m +64 -14
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +40 -0
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +77 -0
- package/Libraries/Text/Text/RCTTextView.m +123 -58
- package/Libraries/Text/Text.js +2 -9
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +8 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +66 -1
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +13 -0
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +2 -1
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +105 -7
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +13 -1
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +20 -3
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +1 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +12 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +9 -1
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +128 -4
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +15 -3
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +4 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +2 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +68 -2
- package/Libraries/Text/TextNativeComponent.js +5 -5
- package/Libraries/Text/TextProps.js +29 -0
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/Types/CoreEventTypes.js +0 -1
- package/Libraries/Utilities/Appearance.js +8 -5
- package/Libraries/Utilities/BackHandler.android.js +4 -4
- package/Libraries/Utilities/HMRClient.js +2 -2
- package/Libraries/Utilities/JSDevSupportModule.js +3 -4
- package/Libraries/Utilities/MatrixMath.js +19 -19
- package/Libraries/Utilities/PerformanceLoggerContext.js +2 -3
- package/Libraries/Utilities/ReactNativeTestTools.js +2 -4
- package/Libraries/Utilities/SceneTracker.js +1 -3
- package/Libraries/Utilities/__mocks__/BackHandler.js +3 -3
- package/Libraries/Utilities/buildStyleInterpolator.js +9 -9
- package/Libraries/Utilities/codegenNativeComponent.js +4 -2
- package/Libraries/Utilities/differ/deepDiffer.js +1 -1
- package/Libraries/Utilities/differ/insetsDiffer.js +1 -1
- package/Libraries/Utilities/differ/matricesDiffer.js +1 -1
- package/Libraries/Utilities/differ/pointsDiffer.js +1 -1
- package/Libraries/Utilities/differ/sizesDiffer.js +1 -1
- package/Libraries/Utilities/logError.js +1 -1
- package/Libraries/Utilities/mergeIntoFast.js +1 -1
- package/Libraries/Utilities/truncate.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -0
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/Vibration/Vibration.js +2 -2
- package/Libraries/WebSocket/RCTSRWebSocket.m +4 -0
- package/Libraries/WebSocket/WebSocketInterceptor.js +4 -4
- package/Libraries/promiseRejectionTrackingOptions.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +2 -1
- package/Libraries/vendor/emitter/_EventEmitter.js +2 -1
- package/Libraries/vendor/emitter/_EventSubscription.js +2 -1
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
- package/React/Base/RCTAssert.h +30 -15
- package/React/Base/RCTAssert.m +59 -19
- package/React/Base/RCTBridge.m +5 -3
- package/React/Base/RCTConstants.h +6 -0
- package/React/Base/RCTConstants.m +15 -0
- package/React/Base/RCTConvert.m +26 -5
- package/React/Base/RCTEventDispatcherProtocol.h +5 -0
- package/React/Base/RCTRootView.m +0 -51
- package/React/Base/RCTTouchHandler.m +15 -1
- package/React/Base/RCTUIKit.h +10 -13
- package/React/Base/RCTUtils.m +33 -3
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +3 -1
- package/React/Base/macOS/RCTUIKit.m +53 -0
- package/React/CoreModules/RCTAlertController.m +6 -0
- package/React/CoreModules/RCTAppearance.mm +21 -5
- package/React/CoreModules/RCTDevLoadingView.mm +1 -1
- package/React/CoreModules/RCTDevSettings.mm +33 -12
- package/React/CoreModules/RCTEventDispatcher.mm +6 -1
- package/React/CoreModules/RCTExceptionsManager.mm +1 -1
- package/React/CoreModules/RCTLogBox.h +1 -1
- package/React/CoreModules/RCTLogBox.mm +35 -19
- package/React/CoreModules/RCTLogBoxView.h +8 -5
- package/React/CoreModules/RCTLogBoxView.mm +64 -23
- package/React/CoreModules/RCTPerfMonitor.mm +1 -1
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +1 -0
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +69 -19
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +2 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +0 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +35 -9
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +4 -3
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +13 -5
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +12 -3
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/RCTMountingManager.h +1 -1
- package/React/Fabric/Mounting/RCTMountingManager.mm +19 -11
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.h +5 -3
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.mm +10 -8
- package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +5 -3
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +1 -1
- package/React/Fabric/RCTConversions.h +9 -1
- package/React/Fabric/RCTImageResponseObserverProxy.h +1 -0
- package/React/Fabric/RCTLocalizationProvider.mm +10 -4
- package/React/Fabric/RCTScheduler.h +7 -0
- package/React/Fabric/RCTScheduler.mm +15 -0
- package/React/Fabric/RCTSurfacePresenter.h +8 -0
- package/React/Fabric/RCTSurfacePresenter.mm +54 -24
- package/React/Fabric/RCTSurfaceTouchHandler.mm +0 -1
- package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
- package/React/Modules/RCTSurfacePresenterStub.h +4 -0
- package/React/Modules/RCTUIManager.m +35 -14
- package/React/React-RCTFabric.podspec +2 -2
- package/React/Views/RCTActivityIndicatorView.m +2 -1
- package/React/Views/RCTCursor.h +39 -0
- package/React/Views/RCTCursor.m +105 -0
- package/React/Views/RCTFont.mm +11 -9
- package/React/Views/RCTModalHostView.h +5 -0
- package/React/Views/RCTModalHostViewManager.m +3 -0
- package/React/Views/RCTSliderManager.m +1 -0
- package/React/Views/RCTView.h +16 -0
- package/React/Views/RCTView.m +142 -189
- package/React/Views/RCTViewKeyboardEvent.h +6 -28
- package/React/Views/RCTViewKeyboardEvent.m +66 -61
- package/React/Views/RCTViewManager.m +19 -13
- package/React/Views/ScrollView/RCTScrollContentView.h +4 -0
- package/React/Views/ScrollView/RCTScrollContentView.m +18 -0
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +2 -0
- package/React/Views/ScrollView/RCTScrollView.h +2 -1
- package/React/Views/ScrollView/RCTScrollView.m +72 -80
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -1
- package/React/Views/UIView+React.h +2 -0
- package/React/Views/UIView+React.m +35 -18
- package/ReactAndroid/build.gradle +16 -6
- package/ReactAndroid/gradle.properties +4 -3
- package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +1 -2
- package/ReactAndroid/src/androidTest/js/Asserts.js +2 -2
- package/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js +1 -1
- package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +1 -2
- package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +1 -2
- package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +54 -54
- package/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js +1 -1
- package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +6 -7
- package/ReactAndroid/src/androidTest/js/ShareTestModule.js +1 -1
- package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +12 -19
- package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +2 -3
- package/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js +2 -2
- package/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js +17 -17
- package/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js +10 -10
- package/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js +2 -2
- package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +2 -3
- package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +3 -6
- package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +3 -6
- package/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +12 -4
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java +39 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/SubtractionAnimatedNode.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.java +119 -78
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.cpp +7 -35
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.h +5 -18
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerDelegate.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerInterface.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +23 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +1 -8
- package/ReactAndroid/src/main/jni/Application.mk +1 -1
- package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +40 -16
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.cpp +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.h +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.h +3 -3
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +16 -4
- package/ReactAndroid/src/main/third-party/java/okhttp/BUCK +4 -4
- package/ReactCommon/React-Fabric.podspec +1 -1
- package/ReactCommon/React-rncore.podspec +1 -1
- package/ReactCommon/ReactCommon.podspec +1 -1
- package/ReactCommon/cxxreact/JSBigString.cpp +0 -65
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/cxxreact/tests/BUCK +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/src/index.js +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +346 -1294
- package/ReactCommon/microprofiler/BUCK +1 -1
- package/ReactCommon/react/debug/react_native_assert.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +8 -3
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
- package/ReactCommon/react/renderer/animations/conversions.h +11 -11
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
- package/ReactCommon/react/renderer/attributedstring/conversions.h +39 -39
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +4 -2
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/text/conversions.h +4 -4
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
- package/ReactCommon/react/renderer/components/view/ViewProps.h +3 -1
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -5
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +26 -17
- package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
- package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
- package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -7
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +21 -0
- package/ReactCommon/react/renderer/core/EventDispatcher.h +15 -0
- package/ReactCommon/react/renderer/core/EventListener.cpp +39 -0
- package/ReactCommon/react/renderer/core/EventListener.h +44 -0
- package/ReactCommon/react/renderer/core/Props.h +0 -4
- package/ReactCommon/react/renderer/core/RawProps.h +1 -1
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
- package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
- package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
- package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +64 -85
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +101 -27
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +86 -165
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +22 -57
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +36 -26
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
- package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
- package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +6 -9
- package/ReactCommon/react/renderer/mounting/TelemetryController.h +7 -7
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +10 -19
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +37 -13
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +4 -11
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +1 -0
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +19 -2
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +10 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +8 -8
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +4 -0
- package/ReactCommon/react/utils/ContextContainer.h +2 -2
- package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
- package/ReactCommon/react/utils/ManagedObjectWrapper.mm +1 -3
- package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
- package/ReactCommon/yoga/Yoga.podspec +1 -1
- package/jest/assetFileTransformer.js +2 -2
- package/jest/mockModal.js +2 -2
- package/jest/preprocessor.js +2 -2
- package/jest/setup.js +3 -3
- package/package.json +33 -73
- package/react.gradle +0 -4
- package/scripts/find-node.sh +7 -0
- package/scripts/generate-artifacts.js +21 -17
- package/scripts/react_native_pods.rb +7 -9
- package/scripts/react_native_pods_utils/script_phases.rb +2 -2
- package/scripts/react_native_pods_utils/script_phases.sh +1 -1
- package/template/App.js +4 -8
- package/template/Gemfile.lock +10 -10
- package/template/_flowconfig +1 -1
- package/template/_gitignore +2 -1
- package/template/android/build.gradle +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/android/gradlew.bat +89 -89
- package/template/android/settings.gradle +1 -5
- package/template/ios/HelloWorldTests/HelloWorldTests.m +1 -0
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -3
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -113
- package/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType.js +0 -28
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +0 -131
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.ios.js +0 -82
- package/Libraries/DeprecatedPropTypes/DeprecatedImageSourcePropType.js +0 -40
- package/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedLayoutPropTypes.js +0 -233
- package/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js +0 -24
- package/Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js +0 -30
- package/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js +0 -32
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +0 -693
- package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
- package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -168
- package/Libraries/DeprecatedPropTypes/DeprecatedTransformPropTypes.js +0 -99
- package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +0 -46
- package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +0 -408
- package/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js +0 -68
- package/Libraries/DeprecatedPropTypes/deprecatedCreateStrictShapeTypeChecker.js +0 -86
- package/Libraries/Types/RootTagTypes.js~merged +0 -23
- package/ReactCommon/butter/optional.h +0 -38
- package/ReactCommon/react/renderer/mapbuffer/primitives.h +0 -91
- package/ReactCommon/react/renderer/mounting/MountingTransactionMetadata.h +0 -32
- package/flow-typed/npm/prop-types_v15.x.x.js +0 -42
- package/third-party-podspecs/boost-for-react-native.podspec +0 -20
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<b48d0cdae51eab70302c920e0a867d32>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
@@ -937,7 +937,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
937
937
|
"ReactNativeBridgeEventPlugin"
|
|
938
938
|
]);
|
|
939
939
|
recomputePluginOrdering();
|
|
940
|
-
var injectedNamesToPlugins$jscomp$
|
|
940
|
+
var injectedNamesToPlugins$jscomp$inline_231 = {
|
|
941
941
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
942
942
|
ReactNativeBridgeEventPlugin: {
|
|
943
943
|
eventTypes: {},
|
|
@@ -972,33 +972,33 @@ var injectedNamesToPlugins$jscomp$inline_246 = {
|
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
},
|
|
975
|
-
isOrderingDirty$jscomp$
|
|
976
|
-
pluginName$jscomp$
|
|
977
|
-
for (pluginName$jscomp$
|
|
975
|
+
isOrderingDirty$jscomp$inline_232 = !1,
|
|
976
|
+
pluginName$jscomp$inline_233;
|
|
977
|
+
for (pluginName$jscomp$inline_233 in injectedNamesToPlugins$jscomp$inline_231)
|
|
978
978
|
if (
|
|
979
|
-
injectedNamesToPlugins$jscomp$
|
|
980
|
-
pluginName$jscomp$
|
|
979
|
+
injectedNamesToPlugins$jscomp$inline_231.hasOwnProperty(
|
|
980
|
+
pluginName$jscomp$inline_233
|
|
981
981
|
)
|
|
982
982
|
) {
|
|
983
|
-
var pluginModule$jscomp$
|
|
984
|
-
injectedNamesToPlugins$jscomp$
|
|
983
|
+
var pluginModule$jscomp$inline_234 =
|
|
984
|
+
injectedNamesToPlugins$jscomp$inline_231[pluginName$jscomp$inline_233];
|
|
985
985
|
if (
|
|
986
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
987
|
-
namesToPlugins[pluginName$jscomp$
|
|
988
|
-
pluginModule$jscomp$
|
|
986
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_233) ||
|
|
987
|
+
namesToPlugins[pluginName$jscomp$inline_233] !==
|
|
988
|
+
pluginModule$jscomp$inline_234
|
|
989
989
|
) {
|
|
990
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
990
|
+
if (namesToPlugins[pluginName$jscomp$inline_233])
|
|
991
991
|
throw Error(
|
|
992
992
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
993
|
-
(pluginName$jscomp$
|
|
993
|
+
(pluginName$jscomp$inline_233 + "`.")
|
|
994
994
|
);
|
|
995
995
|
namesToPlugins[
|
|
996
|
-
pluginName$jscomp$
|
|
997
|
-
] = pluginModule$jscomp$
|
|
998
|
-
isOrderingDirty$jscomp$
|
|
996
|
+
pluginName$jscomp$inline_233
|
|
997
|
+
] = pluginModule$jscomp$inline_234;
|
|
998
|
+
isOrderingDirty$jscomp$inline_232 = !0;
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
|
-
isOrderingDirty$jscomp$
|
|
1001
|
+
isOrderingDirty$jscomp$inline_232 && recomputePluginOrdering();
|
|
1002
1002
|
var instanceCache = new Map(),
|
|
1003
1003
|
instanceProps = new Map();
|
|
1004
1004
|
function getInstanceFromTag(tag) {
|
|
@@ -1697,6 +1697,7 @@ var ReactNativeFiberHostComponent = (function() {
|
|
|
1697
1697
|
IdlePriority = Scheduler.unstable_IdlePriority,
|
|
1698
1698
|
rendererID = null,
|
|
1699
1699
|
injectedHook = null,
|
|
1700
|
+
injectedProfilingHooks = null,
|
|
1700
1701
|
isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
1701
1702
|
function onCommitRoot(root, eventPriority) {
|
|
1702
1703
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
@@ -1726,6 +1727,59 @@ function onCommitRoot(root, eventPriority) {
|
|
|
1726
1727
|
);
|
|
1727
1728
|
} catch (err) {}
|
|
1728
1729
|
}
|
|
1730
|
+
function injectProfilingHooks(profilingHooks) {
|
|
1731
|
+
injectedProfilingHooks = profilingHooks;
|
|
1732
|
+
}
|
|
1733
|
+
function getLaneLabelMap() {
|
|
1734
|
+
for (var map = new Map(), lane = 1, index$4 = 0; 31 > index$4; index$4++) {
|
|
1735
|
+
var label = getLabelForLane(lane);
|
|
1736
|
+
map.set(lane, label);
|
|
1737
|
+
lane *= 2;
|
|
1738
|
+
}
|
|
1739
|
+
return map;
|
|
1740
|
+
}
|
|
1741
|
+
function markCommitStopped() {
|
|
1742
|
+
null !== injectedProfilingHooks &&
|
|
1743
|
+
"function" === typeof injectedProfilingHooks.markCommitStopped &&
|
|
1744
|
+
injectedProfilingHooks.markCommitStopped();
|
|
1745
|
+
}
|
|
1746
|
+
function markComponentRenderStarted(fiber) {
|
|
1747
|
+
null !== injectedProfilingHooks &&
|
|
1748
|
+
"function" === typeof injectedProfilingHooks.markComponentRenderStarted &&
|
|
1749
|
+
injectedProfilingHooks.markComponentRenderStarted(fiber);
|
|
1750
|
+
}
|
|
1751
|
+
function markComponentRenderStopped() {
|
|
1752
|
+
null !== injectedProfilingHooks &&
|
|
1753
|
+
"function" === typeof injectedProfilingHooks.markComponentRenderStopped &&
|
|
1754
|
+
injectedProfilingHooks.markComponentRenderStopped();
|
|
1755
|
+
}
|
|
1756
|
+
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
1757
|
+
null !== injectedProfilingHooks &&
|
|
1758
|
+
"function" ===
|
|
1759
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
|
|
1760
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
|
|
1761
|
+
}
|
|
1762
|
+
function markComponentLayoutEffectUnmountStopped() {
|
|
1763
|
+
null !== injectedProfilingHooks &&
|
|
1764
|
+
"function" ===
|
|
1765
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
|
|
1766
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
|
|
1767
|
+
}
|
|
1768
|
+
function markRenderStarted(lanes) {
|
|
1769
|
+
null !== injectedProfilingHooks &&
|
|
1770
|
+
"function" === typeof injectedProfilingHooks.markRenderStarted &&
|
|
1771
|
+
injectedProfilingHooks.markRenderStarted(lanes);
|
|
1772
|
+
}
|
|
1773
|
+
function markRenderStopped() {
|
|
1774
|
+
null !== injectedProfilingHooks &&
|
|
1775
|
+
"function" === typeof injectedProfilingHooks.markRenderStopped &&
|
|
1776
|
+
injectedProfilingHooks.markRenderStopped();
|
|
1777
|
+
}
|
|
1778
|
+
function markStateUpdateScheduled(fiber, lane) {
|
|
1779
|
+
null !== injectedProfilingHooks &&
|
|
1780
|
+
"function" === typeof injectedProfilingHooks.markStateUpdateScheduled &&
|
|
1781
|
+
injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
|
|
1782
|
+
}
|
|
1729
1783
|
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1730
1784
|
log = Math.log,
|
|
1731
1785
|
LN2 = Math.LN2;
|
|
@@ -1912,30 +1966,30 @@ function markRootFinished(root, remainingLanes) {
|
|
|
1912
1966
|
remainingLanes = root.entanglements;
|
|
1913
1967
|
var eventTimes = root.eventTimes;
|
|
1914
1968
|
for (root = root.expirationTimes; 0 < noLongerPendingLanes; ) {
|
|
1915
|
-
var index$
|
|
1916
|
-
lane = 1 << index$
|
|
1917
|
-
remainingLanes[index$
|
|
1918
|
-
eventTimes[index$
|
|
1919
|
-
root[index$
|
|
1969
|
+
var index$9 = 31 - clz32(noLongerPendingLanes),
|
|
1970
|
+
lane = 1 << index$9;
|
|
1971
|
+
remainingLanes[index$9] = 0;
|
|
1972
|
+
eventTimes[index$9] = -1;
|
|
1973
|
+
root[index$9] = -1;
|
|
1920
1974
|
noLongerPendingLanes &= ~lane;
|
|
1921
1975
|
}
|
|
1922
1976
|
}
|
|
1923
1977
|
function markRootEntangled(root, entangledLanes) {
|
|
1924
1978
|
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
|
|
1925
1979
|
for (root = root.entanglements; rootEntangledLanes; ) {
|
|
1926
|
-
var index$
|
|
1927
|
-
lane = 1 << index$
|
|
1928
|
-
(lane & entangledLanes) | (root[index$
|
|
1929
|
-
(root[index$
|
|
1980
|
+
var index$10 = 31 - clz32(rootEntangledLanes),
|
|
1981
|
+
lane = 1 << index$10;
|
|
1982
|
+
(lane & entangledLanes) | (root[index$10] & entangledLanes) &&
|
|
1983
|
+
(root[index$10] |= entangledLanes);
|
|
1930
1984
|
rootEntangledLanes &= ~lane;
|
|
1931
1985
|
}
|
|
1932
1986
|
}
|
|
1933
1987
|
function addFiberToLanesMap(root, fiber, lanes) {
|
|
1934
1988
|
if (isDevToolsPresent)
|
|
1935
1989
|
for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) {
|
|
1936
|
-
var index$
|
|
1937
|
-
lane = 1 << index$
|
|
1938
|
-
root[index$
|
|
1990
|
+
var index$11 = 31 - clz32(lanes),
|
|
1991
|
+
lane = 1 << index$11;
|
|
1992
|
+
root[index$11].add(fiber);
|
|
1939
1993
|
lanes &= ~lane;
|
|
1940
1994
|
}
|
|
1941
1995
|
}
|
|
@@ -1947,16 +2001,16 @@ function movePendingFibersToMemoized(root, lanes) {
|
|
|
1947
2001
|
0 < lanes;
|
|
1948
2002
|
|
|
1949
2003
|
) {
|
|
1950
|
-
var index$
|
|
1951
|
-
root = 1 << index$
|
|
1952
|
-
index$
|
|
1953
|
-
0 < index$
|
|
1954
|
-
(index$
|
|
2004
|
+
var index$12 = 31 - clz32(lanes);
|
|
2005
|
+
root = 1 << index$12;
|
|
2006
|
+
index$12 = pendingUpdatersLaneMap[index$12];
|
|
2007
|
+
0 < index$12.size &&
|
|
2008
|
+
(index$12.forEach(function(fiber) {
|
|
1955
2009
|
var alternate = fiber.alternate;
|
|
1956
2010
|
(null !== alternate && memoizedUpdaters.has(alternate)) ||
|
|
1957
2011
|
memoizedUpdaters.add(fiber);
|
|
1958
2012
|
}),
|
|
1959
|
-
index$
|
|
2013
|
+
index$12.clear());
|
|
1960
2014
|
lanes &= ~root;
|
|
1961
2015
|
}
|
|
1962
2016
|
}
|
|
@@ -2148,113 +2202,6 @@ function flushSyncCallbacks() {
|
|
|
2148
2202
|
}
|
|
2149
2203
|
return null;
|
|
2150
2204
|
}
|
|
2151
|
-
var supportsUserTimingV3 = !1;
|
|
2152
|
-
if (
|
|
2153
|
-
"undefined" !== typeof performance &&
|
|
2154
|
-
"function" === typeof performance.mark &&
|
|
2155
|
-
"function" === typeof performance.clearMarks
|
|
2156
|
-
) {
|
|
2157
|
-
var markOptions = {};
|
|
2158
|
-
Object.defineProperty(markOptions, "startTime", {
|
|
2159
|
-
get: function() {
|
|
2160
|
-
supportsUserTimingV3 = !0;
|
|
2161
|
-
return 0;
|
|
2162
|
-
},
|
|
2163
|
-
set: function() {}
|
|
2164
|
-
});
|
|
2165
|
-
try {
|
|
2166
|
-
performance.mark("__v3", markOptions);
|
|
2167
|
-
} catch (error) {
|
|
2168
|
-
} finally {
|
|
2169
|
-
performance.clearMarks("__v3");
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
var laneLabels = [];
|
|
2173
|
-
function getLaneLabels() {
|
|
2174
|
-
if (0 === laneLabels.length)
|
|
2175
|
-
for (var lane = 1, index$13 = 0; 31 > index$13; index$13++)
|
|
2176
|
-
laneLabels.push(getLabelForLane(lane)), (lane *= 2);
|
|
2177
|
-
return laneLabels;
|
|
2178
|
-
}
|
|
2179
|
-
function markAndClear(name) {
|
|
2180
|
-
performance.mark(name);
|
|
2181
|
-
performance.clearMarks(name);
|
|
2182
|
-
}
|
|
2183
|
-
function markInternalModuleRanges() {
|
|
2184
|
-
if (
|
|
2185
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
2186
|
-
"function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges
|
|
2187
|
-
) {
|
|
2188
|
-
var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges();
|
|
2189
|
-
if (isArrayImpl(ranges))
|
|
2190
|
-
for (var i = 0; i < ranges.length; i++) {
|
|
2191
|
-
var range = ranges[i];
|
|
2192
|
-
if (isArrayImpl(range) && 2 === range.length) {
|
|
2193
|
-
range = ranges[i];
|
|
2194
|
-
var stopStackFrame = range[1];
|
|
2195
|
-
markAndClear("--react-internal-module-start-" + range[0]);
|
|
2196
|
-
markAndClear("--react-internal-module-stop-" + stopStackFrame);
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
}
|
|
2201
|
-
function markComponentRenderStarted(fiber) {
|
|
2202
|
-
supportsUserTimingV3 &&
|
|
2203
|
-
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2204
|
-
markAndClear("--component-render-start-" + fiber));
|
|
2205
|
-
}
|
|
2206
|
-
function markComponentRenderStopped() {
|
|
2207
|
-
supportsUserTimingV3 && markAndClear("--component-render-stop");
|
|
2208
|
-
}
|
|
2209
|
-
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
2210
|
-
supportsUserTimingV3 &&
|
|
2211
|
-
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2212
|
-
markAndClear("--component-layout-effect-unmount-start-" + fiber));
|
|
2213
|
-
}
|
|
2214
|
-
function markComponentLayoutEffectUnmountStopped() {
|
|
2215
|
-
supportsUserTimingV3 &&
|
|
2216
|
-
markAndClear("--component-layout-effect-unmount-stop");
|
|
2217
|
-
}
|
|
2218
|
-
var wakeableIDs = new ("function" === typeof WeakMap ? WeakMap : Map)(),
|
|
2219
|
-
wakeableID = 0;
|
|
2220
|
-
function getWakeableID(wakeable) {
|
|
2221
|
-
wakeableIDs.has(wakeable) || wakeableIDs.set(wakeable, wakeableID++);
|
|
2222
|
-
return wakeableIDs.get(wakeable);
|
|
2223
|
-
}
|
|
2224
|
-
function markComponentSuspended(fiber, wakeable, lanes) {
|
|
2225
|
-
if (supportsUserTimingV3) {
|
|
2226
|
-
var eventType = wakeableIDs.has(wakeable) ? "resuspend" : "suspend",
|
|
2227
|
-
id = getWakeableID(wakeable),
|
|
2228
|
-
componentName = getComponentNameFromFiber(fiber) || "Unknown";
|
|
2229
|
-
markAndClear(
|
|
2230
|
-
"--suspense-" +
|
|
2231
|
-
eventType +
|
|
2232
|
-
"-" +
|
|
2233
|
-
id +
|
|
2234
|
-
"-" +
|
|
2235
|
-
componentName +
|
|
2236
|
-
"-" +
|
|
2237
|
-
(null === fiber.alternate ? "mount" : "update") +
|
|
2238
|
-
"-" +
|
|
2239
|
-
lanes +
|
|
2240
|
-
"-" +
|
|
2241
|
-
(wakeable.displayName || "")
|
|
2242
|
-
);
|
|
2243
|
-
wakeable.then(
|
|
2244
|
-
function() {
|
|
2245
|
-
return markAndClear("--suspense-resolved-" + id + "-" + componentName);
|
|
2246
|
-
},
|
|
2247
|
-
function() {
|
|
2248
|
-
return markAndClear("--suspense-rejected-" + id + "-" + componentName);
|
|
2249
|
-
}
|
|
2250
|
-
);
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
function markStateUpdateScheduled(fiber, lane) {
|
|
2254
|
-
supportsUserTimingV3 &&
|
|
2255
|
-
((fiber = getComponentNameFromFiber(fiber) || "Unknown"),
|
|
2256
|
-
markAndClear("--schedule-state-update-" + lane + "-" + fiber));
|
|
2257
|
-
}
|
|
2258
2205
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2259
2206
|
function shallowEqual(objA, objB) {
|
|
2260
2207
|
if (objectIs(objA, objB)) return !0;
|
|
@@ -2686,18 +2633,18 @@ var classComponentUpdater = {
|
|
|
2686
2633
|
markStateUpdateScheduled(inst, lane);
|
|
2687
2634
|
},
|
|
2688
2635
|
enqueueForceUpdate: function(inst, callback) {
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2636
|
+
inst = inst._reactInternals;
|
|
2637
|
+
var eventTime = requestEventTime(),
|
|
2638
|
+
lane = requestUpdateLane(inst),
|
|
2639
|
+
update = createUpdate(eventTime, lane);
|
|
2693
2640
|
update.tag = 2;
|
|
2694
2641
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2695
|
-
enqueueUpdate(
|
|
2696
|
-
callback = scheduleUpdateOnFiber(
|
|
2697
|
-
null !== callback && entangleTransitions(callback,
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2642
|
+
enqueueUpdate(inst, update);
|
|
2643
|
+
callback = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2644
|
+
null !== callback && entangleTransitions(callback, inst, lane);
|
|
2645
|
+
null !== injectedProfilingHooks &&
|
|
2646
|
+
"function" === typeof injectedProfilingHooks.markForceUpdateScheduled &&
|
|
2647
|
+
injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
|
|
2701
2648
|
}
|
|
2702
2649
|
};
|
|
2703
2650
|
function checkShouldComponentUpdate(
|
|
@@ -3786,9 +3733,9 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3786
3733
|
latestSetSnapshot(latestGetSnapshot(source._source));
|
|
3787
3734
|
var lane = requestUpdateLane(fiber);
|
|
3788
3735
|
root.mutableReadLanes |= lane & root.pendingLanes;
|
|
3789
|
-
} catch (error
|
|
3736
|
+
} catch (error) {
|
|
3790
3737
|
latestSetSnapshot(function() {
|
|
3791
|
-
throw error
|
|
3738
|
+
throw error;
|
|
3792
3739
|
});
|
|
3793
3740
|
}
|
|
3794
3741
|
});
|
|
@@ -3874,7 +3821,7 @@ function checkIfSnapshotChanged(inst) {
|
|
|
3874
3821
|
try {
|
|
3875
3822
|
var nextValue = latestGetSnapshot();
|
|
3876
3823
|
return !objectIs(inst, nextValue);
|
|
3877
|
-
} catch (error
|
|
3824
|
+
} catch (error) {
|
|
3878
3825
|
return !0;
|
|
3879
3826
|
}
|
|
3880
3827
|
}
|
|
@@ -4067,7 +4014,7 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
4067
4014
|
update.hasEagerState = !0;
|
|
4068
4015
|
update.eagerState = eagerState;
|
|
4069
4016
|
if (objectIs(eagerState, currentState)) return;
|
|
4070
|
-
} catch (error
|
|
4017
|
+
} catch (error) {
|
|
4071
4018
|
} finally {
|
|
4072
4019
|
}
|
|
4073
4020
|
action = requestEventTime();
|
|
@@ -4454,7 +4401,7 @@ function logCapturedError(boundary, errorInfo) {
|
|
|
4454
4401
|
});
|
|
4455
4402
|
}
|
|
4456
4403
|
}
|
|
4457
|
-
var PossiblyWeakMap
|
|
4404
|
+
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4458
4405
|
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
4459
4406
|
lane = createUpdate(-1, lane);
|
|
4460
4407
|
lane.tag = 3;
|
|
@@ -4471,9 +4418,9 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4471
4418
|
lane.tag = 3;
|
|
4472
4419
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
4473
4420
|
if ("function" === typeof getDerivedStateFromError) {
|
|
4474
|
-
var error
|
|
4421
|
+
var error = errorInfo.value;
|
|
4475
4422
|
lane.payload = function() {
|
|
4476
|
-
return getDerivedStateFromError(error
|
|
4423
|
+
return getDerivedStateFromError(error);
|
|
4477
4424
|
};
|
|
4478
4425
|
lane.callback = function() {
|
|
4479
4426
|
logCapturedError(fiber, errorInfo);
|
|
@@ -4537,14 +4484,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4537
4484
|
break;
|
|
4538
4485
|
case "collapsed":
|
|
4539
4486
|
lastTailNode = renderState.tail;
|
|
4540
|
-
for (var lastTailNode$
|
|
4541
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4487
|
+
for (var lastTailNode$38 = null; null !== lastTailNode; )
|
|
4488
|
+
null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
|
|
4542
4489
|
(lastTailNode = lastTailNode.sibling);
|
|
4543
|
-
null === lastTailNode$
|
|
4490
|
+
null === lastTailNode$38
|
|
4544
4491
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4545
4492
|
? (renderState.tail = null)
|
|
4546
4493
|
: (renderState.tail.sibling = null)
|
|
4547
|
-
: (lastTailNode$
|
|
4494
|
+
: (lastTailNode$38.sibling = null);
|
|
4548
4495
|
}
|
|
4549
4496
|
}
|
|
4550
4497
|
function bubbleProperties(completedWork) {
|
|
@@ -4556,53 +4503,53 @@ function bubbleProperties(completedWork) {
|
|
|
4556
4503
|
if (didBailout)
|
|
4557
4504
|
if (0 !== (completedWork.mode & 2)) {
|
|
4558
4505
|
for (
|
|
4559
|
-
var treeBaseDuration$
|
|
4560
|
-
child$
|
|
4561
|
-
null !== child$
|
|
4506
|
+
var treeBaseDuration$40 = completedWork.selfBaseDuration,
|
|
4507
|
+
child$41 = completedWork.child;
|
|
4508
|
+
null !== child$41;
|
|
4562
4509
|
|
|
4563
4510
|
)
|
|
4564
|
-
(newChildLanes |= child$
|
|
4565
|
-
(subtreeFlags |= child$
|
|
4566
|
-
(subtreeFlags |= child$
|
|
4567
|
-
(treeBaseDuration$
|
|
4568
|
-
(child$
|
|
4569
|
-
completedWork.treeBaseDuration = treeBaseDuration$
|
|
4511
|
+
(newChildLanes |= child$41.lanes | child$41.childLanes),
|
|
4512
|
+
(subtreeFlags |= child$41.subtreeFlags & 14680064),
|
|
4513
|
+
(subtreeFlags |= child$41.flags & 14680064),
|
|
4514
|
+
(treeBaseDuration$40 += child$41.treeBaseDuration),
|
|
4515
|
+
(child$41 = child$41.sibling);
|
|
4516
|
+
completedWork.treeBaseDuration = treeBaseDuration$40;
|
|
4570
4517
|
} else
|
|
4571
4518
|
for (
|
|
4572
|
-
treeBaseDuration$
|
|
4573
|
-
null !== treeBaseDuration$
|
|
4519
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4520
|
+
null !== treeBaseDuration$40;
|
|
4574
4521
|
|
|
4575
4522
|
)
|
|
4576
4523
|
(newChildLanes |=
|
|
4577
|
-
treeBaseDuration$
|
|
4578
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4579
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4580
|
-
(treeBaseDuration$
|
|
4581
|
-
(treeBaseDuration$
|
|
4524
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4525
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags & 14680064),
|
|
4526
|
+
(subtreeFlags |= treeBaseDuration$40.flags & 14680064),
|
|
4527
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4528
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4582
4529
|
else if (0 !== (completedWork.mode & 2)) {
|
|
4583
|
-
treeBaseDuration$
|
|
4584
|
-
child$
|
|
4530
|
+
treeBaseDuration$40 = completedWork.actualDuration;
|
|
4531
|
+
child$41 = completedWork.selfBaseDuration;
|
|
4585
4532
|
for (var child = completedWork.child; null !== child; )
|
|
4586
4533
|
(newChildLanes |= child.lanes | child.childLanes),
|
|
4587
4534
|
(subtreeFlags |= child.subtreeFlags),
|
|
4588
4535
|
(subtreeFlags |= child.flags),
|
|
4589
|
-
(treeBaseDuration$
|
|
4590
|
-
(child$
|
|
4536
|
+
(treeBaseDuration$40 += child.actualDuration),
|
|
4537
|
+
(child$41 += child.treeBaseDuration),
|
|
4591
4538
|
(child = child.sibling);
|
|
4592
|
-
completedWork.actualDuration = treeBaseDuration$
|
|
4593
|
-
completedWork.treeBaseDuration = child$
|
|
4539
|
+
completedWork.actualDuration = treeBaseDuration$40;
|
|
4540
|
+
completedWork.treeBaseDuration = child$41;
|
|
4594
4541
|
} else
|
|
4595
4542
|
for (
|
|
4596
|
-
treeBaseDuration$
|
|
4597
|
-
null !== treeBaseDuration$
|
|
4543
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4544
|
+
null !== treeBaseDuration$40;
|
|
4598
4545
|
|
|
4599
4546
|
)
|
|
4600
4547
|
(newChildLanes |=
|
|
4601
|
-
treeBaseDuration$
|
|
4602
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4603
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4604
|
-
(treeBaseDuration$
|
|
4605
|
-
(treeBaseDuration$
|
|
4548
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4549
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags),
|
|
4550
|
+
(subtreeFlags |= treeBaseDuration$40.flags),
|
|
4551
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4552
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4606
4553
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4607
4554
|
completedWork.childLanes = newChildLanes;
|
|
4608
4555
|
return didBailout;
|
|
@@ -5910,16 +5857,16 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5910
5857
|
recordLayoutEffectDuration(current);
|
|
5911
5858
|
}
|
|
5912
5859
|
else ref(null);
|
|
5913
|
-
} catch (error
|
|
5914
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
5860
|
+
} catch (error) {
|
|
5861
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5915
5862
|
}
|
|
5916
5863
|
else ref.current = null;
|
|
5917
5864
|
}
|
|
5918
5865
|
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
5919
5866
|
try {
|
|
5920
5867
|
destroy();
|
|
5921
|
-
} catch (error
|
|
5922
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
5868
|
+
} catch (error) {
|
|
5869
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5923
5870
|
}
|
|
5924
5871
|
}
|
|
5925
5872
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
@@ -5968,8 +5915,8 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5968
5915
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
5969
5916
|
);
|
|
5970
5917
|
}
|
|
5971
|
-
} catch (error
|
|
5972
|
-
captureCommitPhaseError(root, root.return, error
|
|
5918
|
+
} catch (error) {
|
|
5919
|
+
captureCommitPhaseError(root, root.return, error);
|
|
5973
5920
|
}
|
|
5974
5921
|
firstChild = root.sibling;
|
|
5975
5922
|
if (null !== firstChild) {
|
|
@@ -5996,24 +5943,23 @@ function commitHookEffectListUnmount(
|
|
|
5996
5943
|
if ((effect.tag & flags) === flags) {
|
|
5997
5944
|
var destroy = effect.destroy;
|
|
5998
5945
|
effect.destroy = void 0;
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
)
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
markComponentLayoutEffectUnmountStarted(finishedWork);
|
|
6011
|
-
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
5946
|
+
void 0 !== destroy &&
|
|
5947
|
+
(0 !== (flags & 8)
|
|
5948
|
+
? null !== injectedProfilingHooks &&
|
|
5949
|
+
"function" ===
|
|
5950
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted &&
|
|
5951
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(
|
|
5952
|
+
finishedWork
|
|
5953
|
+
)
|
|
5954
|
+
: 0 !== (flags & 4) &&
|
|
5955
|
+
markComponentLayoutEffectUnmountStarted(finishedWork),
|
|
5956
|
+
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy),
|
|
6012
5957
|
0 !== (flags & 8)
|
|
6013
|
-
?
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
5958
|
+
? null !== injectedProfilingHooks &&
|
|
5959
|
+
"function" ===
|
|
5960
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
|
|
5961
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
|
|
5962
|
+
: 0 !== (flags & 4) && markComponentLayoutEffectUnmountStopped());
|
|
6017
5963
|
}
|
|
6018
5964
|
effect = effect.next;
|
|
6019
5965
|
} while (effect !== updateQueue);
|
|
@@ -6026,30 +5972,32 @@ function commitHookEffectListMount(flags, finishedWork) {
|
|
|
6026
5972
|
var effect = (updateQueue = updateQueue.next);
|
|
6027
5973
|
do {
|
|
6028
5974
|
if ((effect.tag & flags) === flags) {
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
5975
|
+
0 !== (flags & 8)
|
|
5976
|
+
? null !== injectedProfilingHooks &&
|
|
5977
|
+
"function" ===
|
|
5978
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted &&
|
|
5979
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStarted(
|
|
5980
|
+
finishedWork
|
|
5981
|
+
)
|
|
5982
|
+
: 0 !== (flags & 4) &&
|
|
5983
|
+
null !== injectedProfilingHooks &&
|
|
5984
|
+
"function" ===
|
|
5985
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted &&
|
|
5986
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStarted(
|
|
5987
|
+
finishedWork
|
|
6035
5988
|
);
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
0 !== (flags & 4) &&
|
|
6039
|
-
supportsUserTimingV3 &&
|
|
6040
|
-
((componentName =
|
|
6041
|
-
getComponentNameFromFiber(finishedWork) || "Unknown"),
|
|
6042
|
-
markAndClear(
|
|
6043
|
-
"--component-layout-effect-mount-start-" + componentName
|
|
6044
|
-
));
|
|
6045
|
-
componentName = effect.create;
|
|
6046
|
-
effect.destroy = componentName();
|
|
5989
|
+
var create$87 = effect.create;
|
|
5990
|
+
effect.destroy = create$87();
|
|
6047
5991
|
0 !== (flags & 8)
|
|
6048
|
-
?
|
|
6049
|
-
|
|
5992
|
+
? null !== injectedProfilingHooks &&
|
|
5993
|
+
"function" ===
|
|
5994
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped &&
|
|
5995
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStopped()
|
|
6050
5996
|
: 0 !== (flags & 4) &&
|
|
6051
|
-
|
|
6052
|
-
|
|
5997
|
+
null !== injectedProfilingHooks &&
|
|
5998
|
+
"function" ===
|
|
5999
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped &&
|
|
6000
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStopped();
|
|
6053
6001
|
}
|
|
6054
6002
|
effect = effect.next;
|
|
6055
6003
|
} while (effect !== updateQueue);
|
|
@@ -6106,8 +6054,8 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
6106
6054
|
recordLayoutEffectDuration(current);
|
|
6107
6055
|
}
|
|
6108
6056
|
else finishedRoot.componentWillUnmount();
|
|
6109
|
-
} catch (error
|
|
6110
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
6057
|
+
} catch (error) {
|
|
6058
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
6111
6059
|
}
|
|
6112
6060
|
break;
|
|
6113
6061
|
case 5:
|
|
@@ -6505,8 +6453,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6505
6453
|
var alternate = childToDelete.alternate;
|
|
6506
6454
|
null !== alternate && (alternate.return = null);
|
|
6507
6455
|
childToDelete.return = null;
|
|
6508
|
-
} catch (error
|
|
6509
|
-
captureCommitPhaseError(childToDelete, firstChild, error
|
|
6456
|
+
} catch (error) {
|
|
6457
|
+
captureCommitPhaseError(childToDelete, firstChild, error);
|
|
6510
6458
|
}
|
|
6511
6459
|
}
|
|
6512
6460
|
committedLanes = firstChild.child;
|
|
@@ -6538,11 +6486,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6538
6486
|
switch (firstChild.tag) {
|
|
6539
6487
|
case 13:
|
|
6540
6488
|
if (null !== firstChild.memoizedState) {
|
|
6541
|
-
var current$
|
|
6542
|
-
if (
|
|
6543
|
-
null === current$105 ||
|
|
6544
|
-
null === current$105.memoizedState
|
|
6545
|
-
)
|
|
6489
|
+
var current$94 = firstChild.alternate;
|
|
6490
|
+
if (null === current$94 || null === current$94.memoizedState)
|
|
6546
6491
|
globalMostRecentFallbackTime = now();
|
|
6547
6492
|
}
|
|
6548
6493
|
break;
|
|
@@ -6638,8 +6583,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6638
6583
|
case 4:
|
|
6639
6584
|
commitWork(firstChild.alternate, firstChild);
|
|
6640
6585
|
}
|
|
6641
|
-
} catch (error
|
|
6642
|
-
captureCommitPhaseError(firstChild, firstChild.return, error
|
|
6586
|
+
} catch (error) {
|
|
6587
|
+
captureCommitPhaseError(firstChild, firstChild.return, error);
|
|
6643
6588
|
}
|
|
6644
6589
|
committedLanes = firstChild.sibling;
|
|
6645
6590
|
if (null !== committedLanes) {
|
|
@@ -6726,21 +6671,21 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6726
6671
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6727
6672
|
break;
|
|
6728
6673
|
case 3:
|
|
6729
|
-
var updateQueue$
|
|
6730
|
-
if (null !== updateQueue$
|
|
6731
|
-
var instance$
|
|
6674
|
+
var updateQueue$89 = committedLanes.updateQueue;
|
|
6675
|
+
if (null !== updateQueue$89) {
|
|
6676
|
+
var instance$90 = null;
|
|
6732
6677
|
if (null !== committedLanes.child)
|
|
6733
6678
|
switch (committedLanes.child.tag) {
|
|
6734
6679
|
case 5:
|
|
6735
|
-
instance$
|
|
6680
|
+
instance$90 = committedLanes.child.stateNode;
|
|
6736
6681
|
break;
|
|
6737
6682
|
case 1:
|
|
6738
|
-
instance$
|
|
6683
|
+
instance$90 = committedLanes.child.stateNode;
|
|
6739
6684
|
}
|
|
6740
6685
|
commitUpdateQueue(
|
|
6741
6686
|
committedLanes,
|
|
6742
|
-
updateQueue$
|
|
6743
|
-
instance$
|
|
6687
|
+
updateQueue$89,
|
|
6688
|
+
instance$90
|
|
6744
6689
|
);
|
|
6745
6690
|
}
|
|
6746
6691
|
break;
|
|
@@ -6755,7 +6700,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6755
6700
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6756
6701
|
onRender = _finishedWork$memoize2.onRender,
|
|
6757
6702
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6758
|
-
instance$
|
|
6703
|
+
instance$90 = commitTime;
|
|
6759
6704
|
current = null === current ? "mount" : "update";
|
|
6760
6705
|
currentUpdateIsNested && (current = "nested-update");
|
|
6761
6706
|
"function" === typeof onRender &&
|
|
@@ -6765,14 +6710,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6765
6710
|
committedLanes.actualDuration,
|
|
6766
6711
|
committedLanes.treeBaseDuration,
|
|
6767
6712
|
committedLanes.actualStartTime,
|
|
6768
|
-
instance$
|
|
6713
|
+
instance$90
|
|
6769
6714
|
);
|
|
6770
6715
|
"function" === typeof onCommit &&
|
|
6771
6716
|
onCommit(
|
|
6772
6717
|
committedLanes.memoizedProps.id,
|
|
6773
6718
|
current,
|
|
6774
6719
|
effectDuration,
|
|
6775
|
-
instance$
|
|
6720
|
+
instance$90
|
|
6776
6721
|
);
|
|
6777
6722
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6778
6723
|
var parentFiber = committedLanes.return;
|
|
@@ -6802,34 +6747,34 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6802
6747
|
);
|
|
6803
6748
|
}
|
|
6804
6749
|
if (committedLanes.flags & 512) {
|
|
6805
|
-
instance$
|
|
6750
|
+
instance$90 = void 0;
|
|
6806
6751
|
current = committedLanes;
|
|
6807
6752
|
var ref = current.ref;
|
|
6808
6753
|
if (null !== ref) {
|
|
6809
6754
|
var instance$jscomp$0 = current.stateNode;
|
|
6810
6755
|
switch (current.tag) {
|
|
6811
6756
|
case 5:
|
|
6812
|
-
instance$
|
|
6757
|
+
instance$90 = instance$jscomp$0;
|
|
6813
6758
|
break;
|
|
6814
6759
|
default:
|
|
6815
|
-
instance$
|
|
6760
|
+
instance$90 = instance$jscomp$0;
|
|
6816
6761
|
}
|
|
6817
6762
|
if ("function" === typeof ref)
|
|
6818
6763
|
if (current.mode & 2)
|
|
6819
6764
|
try {
|
|
6820
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6765
|
+
startLayoutEffectTimer(), ref(instance$90);
|
|
6821
6766
|
} finally {
|
|
6822
6767
|
recordLayoutEffectDuration(current);
|
|
6823
6768
|
}
|
|
6824
|
-
else ref(instance$
|
|
6825
|
-
else ref.current = instance$
|
|
6769
|
+
else ref(instance$90);
|
|
6770
|
+
else ref.current = instance$90;
|
|
6826
6771
|
}
|
|
6827
6772
|
}
|
|
6828
|
-
} catch (error
|
|
6773
|
+
} catch (error) {
|
|
6829
6774
|
captureCommitPhaseError(
|
|
6830
6775
|
committedLanes,
|
|
6831
6776
|
committedLanes.return,
|
|
6832
|
-
error
|
|
6777
|
+
error
|
|
6833
6778
|
);
|
|
6834
6779
|
}
|
|
6835
6780
|
}
|
|
@@ -6837,10 +6782,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6837
6782
|
nextEffect = null;
|
|
6838
6783
|
break;
|
|
6839
6784
|
}
|
|
6840
|
-
instance$
|
|
6841
|
-
if (null !== instance$
|
|
6842
|
-
instance$
|
|
6843
|
-
nextEffect = instance$
|
|
6785
|
+
instance$90 = committedLanes.sibling;
|
|
6786
|
+
if (null !== instance$90) {
|
|
6787
|
+
instance$90.return = committedLanes.return;
|
|
6788
|
+
nextEffect = instance$90;
|
|
6844
6789
|
break;
|
|
6845
6790
|
}
|
|
6846
6791
|
nextEffect = committedLanes.return;
|
|
@@ -6948,12 +6893,12 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6948
6893
|
0 < lanes;
|
|
6949
6894
|
|
|
6950
6895
|
) {
|
|
6951
|
-
var index$
|
|
6952
|
-
lane = 1 << index$
|
|
6953
|
-
expirationTime = expirationTimes[index$
|
|
6896
|
+
var index$7 = 31 - clz32(lanes),
|
|
6897
|
+
lane = 1 << index$7,
|
|
6898
|
+
expirationTime = expirationTimes[index$7];
|
|
6954
6899
|
if (-1 === expirationTime) {
|
|
6955
6900
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6956
|
-
expirationTimes[index$
|
|
6901
|
+
expirationTimes[index$7] = computeExpirationTime(lane, currentTime);
|
|
6957
6902
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6958
6903
|
lanes &= ~lane;
|
|
6959
6904
|
}
|
|
@@ -7048,7 +6993,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7048
6993
|
workInProgressRootRenderTargetTime = now() + 500;
|
|
7049
6994
|
prepareFreshStack(root, didTimeout);
|
|
7050
6995
|
}
|
|
7051
|
-
|
|
6996
|
+
markRenderStarted(didTimeout);
|
|
7052
6997
|
do
|
|
7053
6998
|
try {
|
|
7054
6999
|
workLoopConcurrent();
|
|
@@ -7061,9 +7006,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7061
7006
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
7062
7007
|
executionContext = prevExecutionContext;
|
|
7063
7008
|
null !== workInProgress
|
|
7064
|
-
? (
|
|
7009
|
+
? (null !== injectedProfilingHooks &&
|
|
7010
|
+
"function" === typeof injectedProfilingHooks.markRenderYielded &&
|
|
7011
|
+
injectedProfilingHooks.markRenderYielded(),
|
|
7065
7012
|
(didTimeout = 0))
|
|
7066
|
-
: (
|
|
7013
|
+
: (markRenderStopped(),
|
|
7067
7014
|
(workInProgressRoot = null),
|
|
7068
7015
|
(workInProgressRootRenderLanes = 0),
|
|
7069
7016
|
(didTimeout = workInProgressRootExitStatus));
|
|
@@ -7205,7 +7152,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
7205
7152
|
check = check.value;
|
|
7206
7153
|
try {
|
|
7207
7154
|
if (!objectIs(getSnapshot(), check)) return !1;
|
|
7208
|
-
} catch (error
|
|
7155
|
+
} catch (error) {
|
|
7209
7156
|
return !1;
|
|
7210
7157
|
}
|
|
7211
7158
|
}
|
|
@@ -7231,9 +7178,9 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
7231
7178
|
root.suspendedLanes |= suspendedLanes;
|
|
7232
7179
|
root.pingedLanes &= ~suspendedLanes;
|
|
7233
7180
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
7234
|
-
var index$
|
|
7235
|
-
lane = 1 << index$
|
|
7236
|
-
root[index$
|
|
7181
|
+
var index$8 = 31 - clz32(suspendedLanes),
|
|
7182
|
+
lane = 1 << index$8;
|
|
7183
|
+
root[index$8] = -1;
|
|
7237
7184
|
suspendedLanes &= ~lane;
|
|
7238
7185
|
}
|
|
7239
7186
|
}
|
|
@@ -7338,7 +7285,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
7338
7285
|
interleavedQueues = null;
|
|
7339
7286
|
}
|
|
7340
7287
|
}
|
|
7341
|
-
function handleError(root, thrownValue
|
|
7288
|
+
function handleError(root, thrownValue) {
|
|
7342
7289
|
do {
|
|
7343
7290
|
var erroredWork = workInProgress;
|
|
7344
7291
|
try {
|
|
@@ -7362,7 +7309,7 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7362
7309
|
ReactCurrentOwner$2.current = null;
|
|
7363
7310
|
if (null === erroredWork || null === erroredWork.return) {
|
|
7364
7311
|
workInProgressRootExitStatus = 1;
|
|
7365
|
-
workInProgressRootFatalError = thrownValue
|
|
7312
|
+
workInProgressRootFatalError = thrownValue;
|
|
7366
7313
|
workInProgress = null;
|
|
7367
7314
|
break;
|
|
7368
7315
|
}
|
|
@@ -7370,46 +7317,41 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7370
7317
|
stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0);
|
|
7371
7318
|
markComponentRenderStopped();
|
|
7372
7319
|
if (
|
|
7373
|
-
null !== thrownValue
|
|
7374
|
-
"object" === typeof thrownValue
|
|
7375
|
-
"function" === typeof thrownValue
|
|
7376
|
-
)
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
: "string" === typeof thrownValue && (fiber = thrownValue);
|
|
7394
|
-
markAndClear("--error-" + componentName + "-" + phase + "-" + fiber);
|
|
7395
|
-
}
|
|
7396
|
-
}
|
|
7320
|
+
null !== thrownValue &&
|
|
7321
|
+
"object" === typeof thrownValue &&
|
|
7322
|
+
"function" === typeof thrownValue.then
|
|
7323
|
+
) {
|
|
7324
|
+
var wakeable = thrownValue;
|
|
7325
|
+
null !== injectedProfilingHooks &&
|
|
7326
|
+
"function" === typeof injectedProfilingHooks.markComponentSuspended &&
|
|
7327
|
+
injectedProfilingHooks.markComponentSuspended(
|
|
7328
|
+
erroredWork,
|
|
7329
|
+
wakeable,
|
|
7330
|
+
workInProgressRootRenderLanes
|
|
7331
|
+
);
|
|
7332
|
+
} else
|
|
7333
|
+
null !== injectedProfilingHooks &&
|
|
7334
|
+
"function" === typeof injectedProfilingHooks.markComponentErrored &&
|
|
7335
|
+
injectedProfilingHooks.markComponentErrored(
|
|
7336
|
+
erroredWork,
|
|
7337
|
+
thrownValue,
|
|
7338
|
+
workInProgressRootRenderLanes
|
|
7339
|
+
);
|
|
7397
7340
|
a: {
|
|
7398
|
-
|
|
7341
|
+
wakeable = root;
|
|
7399
7342
|
var returnFiber = erroredWork.return,
|
|
7400
7343
|
sourceFiber = erroredWork,
|
|
7401
|
-
value = thrownValue
|
|
7402
|
-
thrownValue
|
|
7344
|
+
value = thrownValue;
|
|
7345
|
+
thrownValue = workInProgressRootRenderLanes;
|
|
7403
7346
|
sourceFiber.flags |= 32768;
|
|
7404
|
-
isDevToolsPresent &&
|
|
7405
|
-
restorePendingUpdaters(thrownValue, thrownValue$jscomp$0);
|
|
7347
|
+
isDevToolsPresent && restorePendingUpdaters(wakeable, thrownValue);
|
|
7406
7348
|
if (
|
|
7407
7349
|
null !== value &&
|
|
7408
7350
|
"object" === typeof value &&
|
|
7409
7351
|
"function" === typeof value.then
|
|
7410
7352
|
) {
|
|
7411
|
-
|
|
7412
|
-
|
|
7353
|
+
var wakeable$jscomp$0 = value,
|
|
7354
|
+
sourceFiber$jscomp$0 = sourceFiber,
|
|
7413
7355
|
tag = sourceFiber$jscomp$0.tag;
|
|
7414
7356
|
if (
|
|
7415
7357
|
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
@@ -7448,7 +7390,7 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7448
7390
|
if (null !== suspenseBoundary) {
|
|
7449
7391
|
suspenseBoundary.flags &= -257;
|
|
7450
7392
|
value = suspenseBoundary;
|
|
7451
|
-
sourceFiber$jscomp$0 = thrownValue
|
|
7393
|
+
sourceFiber$jscomp$0 = thrownValue;
|
|
7452
7394
|
if (0 === (value.mode & 1))
|
|
7453
7395
|
if (value === returnFiber) value.flags |= 65536;
|
|
7454
7396
|
else {
|
|
@@ -7468,34 +7410,34 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7468
7410
|
sourceFiber = void 0;
|
|
7469
7411
|
value = suspenseBoundary;
|
|
7470
7412
|
if (value.mode & 1) {
|
|
7471
|
-
var pingCache =
|
|
7413
|
+
var pingCache = wakeable.pingCache;
|
|
7472
7414
|
null === pingCache
|
|
7473
|
-
? ((pingCache =
|
|
7415
|
+
? ((pingCache = wakeable.pingCache = new PossiblyWeakMap()),
|
|
7474
7416
|
(sourceFiber = new Set()),
|
|
7475
|
-
pingCache.set(
|
|
7476
|
-
: ((sourceFiber = pingCache.get(
|
|
7417
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber))
|
|
7418
|
+
: ((sourceFiber = pingCache.get(wakeable$jscomp$0)),
|
|
7477
7419
|
void 0 === sourceFiber &&
|
|
7478
7420
|
((sourceFiber = new Set()),
|
|
7479
|
-
pingCache.set(
|
|
7480
|
-
if (!sourceFiber.has(thrownValue
|
|
7481
|
-
sourceFiber.add(thrownValue
|
|
7421
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber)));
|
|
7422
|
+
if (!sourceFiber.has(thrownValue)) {
|
|
7423
|
+
sourceFiber.add(thrownValue);
|
|
7482
7424
|
var ping = pingSuspendedRoot.bind(
|
|
7483
7425
|
null,
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
thrownValue
|
|
7426
|
+
wakeable,
|
|
7427
|
+
wakeable$jscomp$0,
|
|
7428
|
+
thrownValue
|
|
7487
7429
|
);
|
|
7488
7430
|
isDevToolsPresent &&
|
|
7489
|
-
restorePendingUpdaters(
|
|
7490
|
-
|
|
7431
|
+
restorePendingUpdaters(wakeable, thrownValue);
|
|
7432
|
+
wakeable$jscomp$0.then(ping, ping);
|
|
7491
7433
|
}
|
|
7492
7434
|
}
|
|
7493
7435
|
var wakeables = value.updateQueue;
|
|
7494
7436
|
if (null === wakeables) {
|
|
7495
7437
|
var updateQueue = new Set();
|
|
7496
|
-
updateQueue.add(
|
|
7438
|
+
updateQueue.add(wakeable$jscomp$0);
|
|
7497
7439
|
value.updateQueue = updateQueue;
|
|
7498
|
-
} else wakeables.add(
|
|
7440
|
+
} else wakeables.add(wakeable$jscomp$0);
|
|
7499
7441
|
break a;
|
|
7500
7442
|
} else
|
|
7501
7443
|
value = Error(
|
|
@@ -7506,51 +7448,51 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7506
7448
|
4 !== workInProgressRootExitStatus &&
|
|
7507
7449
|
(workInProgressRootExitStatus = 2);
|
|
7508
7450
|
value = createCapturedValue(value, sourceFiber);
|
|
7509
|
-
|
|
7451
|
+
wakeable = returnFiber;
|
|
7510
7452
|
do {
|
|
7511
|
-
switch (
|
|
7453
|
+
switch (wakeable.tag) {
|
|
7512
7454
|
case 3:
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
thrownValue
|
|
7516
|
-
|
|
7455
|
+
wakeable$jscomp$0 = value;
|
|
7456
|
+
wakeable.flags |= 65536;
|
|
7457
|
+
thrownValue &= -thrownValue;
|
|
7458
|
+
wakeable.lanes |= thrownValue;
|
|
7517
7459
|
var update$jscomp$0 = createRootErrorUpdate(
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
thrownValue
|
|
7460
|
+
wakeable,
|
|
7461
|
+
wakeable$jscomp$0,
|
|
7462
|
+
thrownValue
|
|
7521
7463
|
);
|
|
7522
|
-
enqueueCapturedUpdate(
|
|
7464
|
+
enqueueCapturedUpdate(wakeable, update$jscomp$0);
|
|
7523
7465
|
break a;
|
|
7524
7466
|
case 1:
|
|
7525
|
-
|
|
7526
|
-
var ctor =
|
|
7527
|
-
instance =
|
|
7467
|
+
wakeable$jscomp$0 = value;
|
|
7468
|
+
var ctor = wakeable.type,
|
|
7469
|
+
instance = wakeable.stateNode;
|
|
7528
7470
|
if (
|
|
7529
|
-
0 === (
|
|
7471
|
+
0 === (wakeable.flags & 128) &&
|
|
7530
7472
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
7531
7473
|
(null !== instance &&
|
|
7532
7474
|
"function" === typeof instance.componentDidCatch &&
|
|
7533
7475
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7534
7476
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
7535
7477
|
) {
|
|
7536
|
-
|
|
7537
|
-
thrownValue
|
|
7538
|
-
|
|
7539
|
-
var update$
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
thrownValue
|
|
7478
|
+
wakeable.flags |= 65536;
|
|
7479
|
+
thrownValue &= -thrownValue;
|
|
7480
|
+
wakeable.lanes |= thrownValue;
|
|
7481
|
+
var update$36 = createClassErrorUpdate(
|
|
7482
|
+
wakeable,
|
|
7483
|
+
wakeable$jscomp$0,
|
|
7484
|
+
thrownValue
|
|
7543
7485
|
);
|
|
7544
|
-
enqueueCapturedUpdate(
|
|
7486
|
+
enqueueCapturedUpdate(wakeable, update$36);
|
|
7545
7487
|
break a;
|
|
7546
7488
|
}
|
|
7547
7489
|
}
|
|
7548
|
-
|
|
7549
|
-
} while (null !==
|
|
7490
|
+
wakeable = wakeable.return;
|
|
7491
|
+
} while (null !== wakeable);
|
|
7550
7492
|
}
|
|
7551
7493
|
completeUnitOfWork(erroredWork);
|
|
7552
7494
|
} catch (yetAnotherThrownValue) {
|
|
7553
|
-
thrownValue
|
|
7495
|
+
thrownValue = yetAnotherThrownValue;
|
|
7554
7496
|
workInProgress === erroredWork &&
|
|
7555
7497
|
null !== erroredWork &&
|
|
7556
7498
|
(workInProgress = erroredWork = erroredWork.return);
|
|
@@ -7578,7 +7520,7 @@ function renderRootSync(root, lanes) {
|
|
|
7578
7520
|
}
|
|
7579
7521
|
prepareFreshStack(root, lanes);
|
|
7580
7522
|
}
|
|
7581
|
-
|
|
7523
|
+
markRenderStarted(lanes);
|
|
7582
7524
|
do
|
|
7583
7525
|
try {
|
|
7584
7526
|
workLoopSync();
|
|
@@ -7594,7 +7536,7 @@ function renderRootSync(root, lanes) {
|
|
|
7594
7536
|
throw Error(
|
|
7595
7537
|
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
|
|
7596
7538
|
);
|
|
7597
|
-
|
|
7539
|
+
markRenderStopped();
|
|
7598
7540
|
workInProgressRoot = null;
|
|
7599
7541
|
workInProgressRootRenderLanes = 0;
|
|
7600
7542
|
return workInProgressRootExitStatus;
|
|
@@ -7687,15 +7629,10 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7687
7629
|
throw Error("Should not already be working.");
|
|
7688
7630
|
var finishedWork = root.finishedWork,
|
|
7689
7631
|
lanes = root.finishedLanes;
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
getLaneLabels(),
|
|
7695
|
-
markAndClear("--react-lane-labels-" + laneLabels.join(",")),
|
|
7696
|
-
markInternalModuleRanges());
|
|
7697
|
-
if (null === finishedWork)
|
|
7698
|
-
return supportsUserTimingV3 && markAndClear("--commit-stop"), null;
|
|
7632
|
+
null !== injectedProfilingHooks &&
|
|
7633
|
+
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
|
7634
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
|
7635
|
+
if (null === finishedWork) return markCommitStopped(), null;
|
|
7699
7636
|
root.finishedWork = null;
|
|
7700
7637
|
root.finishedLanes = 0;
|
|
7701
7638
|
if (finishedWork === root.current)
|
|
@@ -7730,9 +7667,13 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7730
7667
|
commitTime = now$1();
|
|
7731
7668
|
commitMutationEffects(root, finishedWork, lanes);
|
|
7732
7669
|
root.current = finishedWork;
|
|
7733
|
-
|
|
7670
|
+
null !== injectedProfilingHooks &&
|
|
7671
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
|
7672
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes);
|
|
7734
7673
|
commitLayoutEffects(finishedWork, root, lanes);
|
|
7735
|
-
|
|
7674
|
+
null !== injectedProfilingHooks &&
|
|
7675
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
|
7676
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
|
7736
7677
|
requestPaint();
|
|
7737
7678
|
executionContext = prevExecutionContext;
|
|
7738
7679
|
currentUpdatePriority = previousPriority;
|
|
@@ -7763,7 +7704,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7763
7704
|
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7764
7705
|
: (nestedUpdateCount = 0);
|
|
7765
7706
|
flushSyncCallbacks();
|
|
7766
|
-
|
|
7707
|
+
markCommitStopped();
|
|
7767
7708
|
return null;
|
|
7768
7709
|
}
|
|
7769
7710
|
function flushPassiveEffects() {
|
|
@@ -7783,8 +7724,10 @@ function flushPassiveEffects() {
|
|
|
7783
7724
|
pendingPassiveEffectsLanes = 0;
|
|
7784
7725
|
if (0 !== (executionContext & 6))
|
|
7785
7726
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
7786
|
-
|
|
7787
|
-
|
|
7727
|
+
null !== injectedProfilingHooks &&
|
|
7728
|
+
"function" ===
|
|
7729
|
+
typeof injectedProfilingHooks.markPassiveEffectsStarted &&
|
|
7730
|
+
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
|
7788
7731
|
lanes = executionContext;
|
|
7789
7732
|
executionContext |= 4;
|
|
7790
7733
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
@@ -7895,12 +7838,8 @@ function flushPassiveEffects() {
|
|
|
7895
7838
|
}
|
|
7896
7839
|
} else commitHookEffectListMount(9, fiberToDelete);
|
|
7897
7840
|
}
|
|
7898
|
-
} catch (error
|
|
7899
|
-
captureCommitPhaseError(
|
|
7900
|
-
deletions,
|
|
7901
|
-
deletions.return,
|
|
7902
|
-
error$114
|
|
7903
|
-
);
|
|
7841
|
+
} catch (error) {
|
|
7842
|
+
captureCommitPhaseError(deletions, deletions.return, error);
|
|
7904
7843
|
}
|
|
7905
7844
|
if (deletions === child) {
|
|
7906
7845
|
nextEffect = null;
|
|
@@ -7952,7 +7891,10 @@ function flushPassiveEffects() {
|
|
|
7952
7891
|
}
|
|
7953
7892
|
}
|
|
7954
7893
|
}
|
|
7955
|
-
|
|
7894
|
+
null !== injectedProfilingHooks &&
|
|
7895
|
+
"function" ===
|
|
7896
|
+
typeof injectedProfilingHooks.markPassiveEffectsStopped &&
|
|
7897
|
+
injectedProfilingHooks.markPassiveEffectsStopped();
|
|
7956
7898
|
executionContext = lanes;
|
|
7957
7899
|
flushSyncCallbacks();
|
|
7958
7900
|
if (
|
|
@@ -8761,7 +8703,9 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8761
8703
|
var current = container.current,
|
|
8762
8704
|
eventTime = requestEventTime(),
|
|
8763
8705
|
lane = requestUpdateLane(current);
|
|
8764
|
-
|
|
8706
|
+
null !== injectedProfilingHooks &&
|
|
8707
|
+
"function" === typeof injectedProfilingHooks.markRenderScheduled &&
|
|
8708
|
+
injectedProfilingHooks.markRenderScheduled(lane);
|
|
8765
8709
|
a: if (parentComponent) {
|
|
8766
8710
|
parentComponent = parentComponent._reactInternals;
|
|
8767
8711
|
b: {
|
|
@@ -8943,10 +8887,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8943
8887
|
}
|
|
8944
8888
|
};
|
|
8945
8889
|
var roots = new Map(),
|
|
8946
|
-
devToolsConfig$jscomp$
|
|
8890
|
+
devToolsConfig$jscomp$inline_1043 = {
|
|
8947
8891
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8948
8892
|
bundleType: 0,
|
|
8949
|
-
version: "18.0.0-rc.0-
|
|
8893
|
+
version: "18.0.0-rc.0-51947a14b-20220113",
|
|
8950
8894
|
rendererPackageName: "react-native-renderer",
|
|
8951
8895
|
rendererConfig: {
|
|
8952
8896
|
getInspectorDataForViewTag: function() {
|
|
@@ -8961,11 +8905,11 @@ var roots = new Map(),
|
|
|
8961
8905
|
}.bind(null, findNodeHandle)
|
|
8962
8906
|
}
|
|
8963
8907
|
};
|
|
8964
|
-
var internals$jscomp$
|
|
8965
|
-
bundleType: devToolsConfig$jscomp$
|
|
8966
|
-
version: devToolsConfig$jscomp$
|
|
8967
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8968
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8908
|
+
var internals$jscomp$inline_1330 = {
|
|
8909
|
+
bundleType: devToolsConfig$jscomp$inline_1043.bundleType,
|
|
8910
|
+
version: devToolsConfig$jscomp$inline_1043.version,
|
|
8911
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1043.rendererPackageName,
|
|
8912
|
+
rendererConfig: devToolsConfig$jscomp$inline_1043.rendererConfig,
|
|
8969
8913
|
overrideHookState: null,
|
|
8970
8914
|
overrideHookStateDeletePath: null,
|
|
8971
8915
|
overrideHookStateRenamePath: null,
|
|
@@ -8981,26 +8925,29 @@ var internals$jscomp$inline_1358 = {
|
|
|
8981
8925
|
return null === fiber ? null : fiber.stateNode;
|
|
8982
8926
|
},
|
|
8983
8927
|
findFiberByHostInstance:
|
|
8984
|
-
devToolsConfig$jscomp$
|
|
8928
|
+
devToolsConfig$jscomp$inline_1043.findFiberByHostInstance ||
|
|
8985
8929
|
emptyFindFiberByHostInstance,
|
|
8986
8930
|
findHostInstancesForRefresh: null,
|
|
8987
8931
|
scheduleRefresh: null,
|
|
8988
8932
|
scheduleRoot: null,
|
|
8989
8933
|
setRefreshHandler: null,
|
|
8990
8934
|
getCurrentFiber: null,
|
|
8991
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8935
|
+
reconcilerVersion: "18.0.0-rc.0-51947a14b-20220113"
|
|
8992
8936
|
};
|
|
8993
8937
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8994
|
-
var hook$jscomp$
|
|
8938
|
+
var hook$jscomp$inline_1331 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8995
8939
|
if (
|
|
8996
|
-
!hook$jscomp$
|
|
8997
|
-
hook$jscomp$
|
|
8940
|
+
!hook$jscomp$inline_1331.isDisabled &&
|
|
8941
|
+
hook$jscomp$inline_1331.supportsFiber
|
|
8998
8942
|
)
|
|
8999
8943
|
try {
|
|
9000
|
-
(rendererID = hook$jscomp$
|
|
9001
|
-
internals$jscomp$
|
|
8944
|
+
(rendererID = hook$jscomp$inline_1331.inject(
|
|
8945
|
+
Object.assign({}, internals$jscomp$inline_1330, {
|
|
8946
|
+
getLaneLabelMap: getLaneLabelMap,
|
|
8947
|
+
injectProfilingHooks: injectProfilingHooks
|
|
8948
|
+
})
|
|
9002
8949
|
)),
|
|
9003
|
-
(injectedHook = hook$jscomp$
|
|
8950
|
+
(injectedHook = hook$jscomp$inline_1331);
|
|
9004
8951
|
} catch (err) {}
|
|
9005
8952
|
}
|
|
9006
8953
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|