react-native-macos 0.0.0-d74468479 → 0.0.0-d744e5a3f
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/React-RCTActionSheet.podspec +1 -1
- package/Libraries/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +2 -3
- package/Libraries/Alert/Alert.js +119 -10
- package/Libraries/Alert/NativeAlertManager.js +3 -21
- package/Libraries/Alert/RCTAlertManager.android.js +1 -1
- package/Libraries/Alert/RCTAlertManager.macos.js +1 -1
- package/Libraries/Animated/AnimatedEvent.js +10 -5
- package/Libraries/Animated/AnimatedImplementation.js +92 -60
- package/Libraries/Animated/AnimatedMock.js +16 -13
- package/Libraries/{ReactNative/UIManagerInjection.js → Animated/AnimatedPlatformConfig.js} +2 -4
- package/Libraries/Animated/Easing.js +36 -36
- package/Libraries/Animated/NativeAnimatedHelper.js +36 -21
- package/Libraries/Animated/NativeAnimatedModule.js +1 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -0
- 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 +9 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +5 -4
- package/Libraries/Animated/nodes/AnimatedColor.js +327 -0
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +4 -3
- package/Libraries/Animated/nodes/AnimatedDivision.js +5 -4
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +7 -5
- package/Libraries/Animated/nodes/AnimatedModulo.js +4 -3
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +5 -4
- package/Libraries/Animated/nodes/AnimatedNode.js +28 -15
- 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 +3 -1
- 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 +2 -2
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +35 -33
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +2 -2
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.macos.js +1 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -2
- package/Libraries/Components/Button.js +25 -28
- package/Libraries/Components/DatePicker/DatePickerIOS.macos.js +1 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.macos.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.android.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.ios.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.macos.js +1 -1
- package/Libraries/Components/DatePickerMacOS/RCTDatePickerNativeComponentMacOS.js +1 -1
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +6 -7
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.macos.js +1 -1
- package/Libraries/Components/Keyboard/Keyboard.js +8 -7
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +8 -13
- package/Libraries/Components/MaskedView/MaskedViewIOS.macos.js +1 -1
- package/Libraries/Components/Picker/PickerAndroid.macos.js +1 -1
- package/Libraries/Components/Picker/PickerIOS.macos.js +1 -1
- package/Libraries/Components/Pressable/Pressable.js +20 -22
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.macos.js +1 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +2 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.macos.js +1 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +2 -7
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +3 -3
- 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 +48 -122
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +147 -71
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -2
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -0
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +2 -8
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.macos.js +1 -1
- package/Libraries/Components/Slider/Slider.js +3 -5
- package/Libraries/Components/Slider/SliderNativeComponent.js +2 -3
- package/Libraries/Components/Sound/SoundManager.js +1 -1
- package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +2 -2
- 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 +55 -8
- package/Libraries/Components/TextInput/TextInput.js +145 -26
- package/Libraries/Components/TextInput/TextInputState.js +2 -8
- package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +3 -3
- package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +3 -3
- package/Libraries/Components/ToastAndroid/ToastAndroid.macos.js +1 -1
- 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 +5 -6
- package/Libraries/Components/Touchable/TouchableHighlight.js +5 -6
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +4 -11
- package/Libraries/Components/Touchable/TouchableOpacity.js +13 -10
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +11 -11
- package/Libraries/Components/View/DraggedType.js +1 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +3 -3
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +3 -4
- package/Libraries/Components/View/View.js +0 -8
- package/Libraries/Components/View/ViewAccessibility.js +1 -6
- package/Libraries/Components/View/ViewNativeComponent.js +65 -9
- package/Libraries/Components/View/ViewPropTypes.js +105 -124
- package/Libraries/Core/Devtools/parseHermesStack.js +2 -1
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/NativeExceptionsManager.js +3 -4
- package/Libraries/Core/RawEventEmitter.js +38 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -5
- 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/setUpReactDevTools.js +3 -2
- package/Libraries/Core/setUpRegeneratorRuntime.js +1 -1
- package/Libraries/Core/setUpSegmentFetcher.js +4 -4
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.macos.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +6 -8
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +5 -4
- package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
- package/Libraries/HeapCapture/HeapCapture.js +1 -1
- package/Libraries/Image/AssetSourceResolver.js +2 -4
- package/Libraries/Image/Image.android.js +20 -17
- package/Libraries/Image/Image.ios.js +3 -9
- package/Libraries/Image/Image.macos.js +1 -1
- 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 +104 -60
- package/Libraries/Image/NativeImageLoaderAndroid.js +1 -3
- package/Libraries/Image/RCTAnimatedImage.h +3 -3
- package/Libraries/Image/RCTAnimatedImage.m +10 -10
- package/Libraries/Image/RCTDisplayWeakRefreshable.h +3 -3
- package/Libraries/Image/RCTDisplayWeakRefreshable.m +3 -3
- package/Libraries/Image/RCTImageBlurUtils.h +1 -1
- package/Libraries/Image/RCTImageBlurUtils.m +12 -12
- package/Libraries/Image/RCTImageCache.h +1 -1
- package/Libraries/Image/RCTImageCache.m +4 -4
- package/Libraries/Image/RCTImageDataDecoder.h +1 -1
- package/Libraries/Image/RCTImageEditingManager.mm +3 -3
- package/Libraries/Image/RCTImageLoader.h +2 -2
- package/Libraries/Image/RCTImageLoader.mm +38 -32
- package/Libraries/Image/RCTImageLoaderProtocol.h +1 -1
- package/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +2 -2
- package/Libraries/Image/RCTImageStoreManager.h +1 -1
- package/Libraries/Image/RCTImageStoreManager.mm +4 -4
- package/Libraries/Image/RCTImageURLLoader.h +1 -1
- package/Libraries/Image/RCTImageURLLoaderWithAttribution.h +2 -2
- package/Libraries/Image/RCTImageUtils.h +2 -2
- package/Libraries/Image/RCTImageUtils.m +22 -22
- package/Libraries/Image/RCTImageView.h +3 -11
- package/Libraries/Image/RCTImageView.mm +86 -74
- package/Libraries/Image/RCTImageViewManager.mm +2 -2
- package/Libraries/Image/RCTResizeMode.h +3 -3
- package/Libraries/Image/RCTUIImageViewAnimated.h +4 -4
- package/Libraries/Image/RCTUIImageViewAnimated.m +11 -11
- package/Libraries/Image/React-RCTImage.podspec +2 -2
- package/Libraries/Image/TextInlineImageNativeComponent.js +12 -72
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Inspector/ElementProperties.js +2 -4
- package/Libraries/Inspector/Inspector.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/Linking/Linking.js +2 -2
- package/Libraries/LinkingIOS/RCTLinkingManager.h +6 -5
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +4 -4
- package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +13 -6
- package/Libraries/Lists/FillRateHelper.js +1 -3
- package/Libraries/Lists/FlatList.js +42 -6
- package/Libraries/Lists/SectionList.js +1 -1
- package/Libraries/Lists/ViewabilityHelper.js +4 -10
- package/Libraries/Lists/VirtualizeUtils.js +2 -6
- package/Libraries/Lists/VirtualizedList.js +199 -170
- package/Libraries/Lists/VirtualizedListContext.js +3 -5
- package/Libraries/Lists/VirtualizedSectionList.js +84 -88
- 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/Drivers/RCTDecayAnimation.m +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m +1 -1
- package/{ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp → Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h} +6 -4
- 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/Nodes/RCTValueAnimatedNode.h +1 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +10 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +5 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +11 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +8 -0
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +3 -3
- package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -4
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +566 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +7 -3
- package/Libraries/NativeComponent/ViewConfig.js +4 -4
- package/Libraries/NativeComponent/ViewConfigIgnore.js +53 -0
- package/Libraries/NativeModules/specs/NativeDevSettings.js +3 -1
- package/Libraries/Network/RCTFileRequestHandler.mm +3 -3
- package/Libraries/Network/RCTNetworking.macos.js +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +3 -3
- package/Libraries/Network/XHRInterceptor.js +5 -6
- package/Libraries/Network/XMLHttpRequest.js +0 -1
- package/Libraries/NewAppScreen/components/DebugInstructions.js +2 -2
- 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/NewAppScreen/components/ReloadInstructions.js +2 -2
- package/Libraries/Performance/QuickPerformanceLogger.js +17 -0
- package/Libraries/Performance/SamplingProfiler.js +3 -3
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -3
- package/Libraries/Pressability/HoverState.js +2 -2
- package/Libraries/Pressability/Pressability.js +28 -5
- package/Libraries/Pressability/PressabilityDebug.js +5 -9
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +4 -2
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +9 -8
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +8 -8
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +81 -73
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +2 -2
- package/Libraries/RCTRequired/RCTRequired.podspec +1 -1
- package/Libraries/ReactNative/AppContainer.js +4 -6
- package/Libraries/ReactNative/AppRegistry.js +2 -3
- package/Libraries/ReactNative/DummyUIManager.js +5 -3
- package/Libraries/ReactNative/I18nManager.js +2 -5
- package/Libraries/ReactNative/PaperUIManager.js +3 -4
- package/Libraries/ReactNative/RootTag.js +2 -3
- package/Libraries/ReactNative/UIManager.js +3 -9
- package/Libraries/ReactNative/getNativeComponentAttributes.js +4 -0
- package/Libraries/ReactNative/renderApplication.js +1 -2
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +4 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +440 -409
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +157 -137
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +482 -518
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +412 -408
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +145 -124
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +470 -505
- package/Libraries/Settings/RCTSettingsManager.mm +6 -6
- package/Libraries/Settings/React-RCTSettings.podspec +2 -2
- package/Libraries/Settings/Settings.macos.js +1 -1
- package/Libraries/Storage/AsyncStorage.js +21 -21
- package/Libraries/StyleSheet/EdgeInsetsPropType.js +4 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +3 -2
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +3 -2
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +3 -2
- package/Libraries/StyleSheet/StyleSheet.js +2 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +28 -3
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/processColor.js +2 -2
- package/Libraries/StyleSheet/processTransform.js +1 -1
- package/Libraries/StyleSheet/splitLayoutProps.js +1 -3
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +10 -2
- package/Libraries/Text/RCTConvert+Text.h +2 -2
- package/Libraries/Text/RCTTextAttributes.h +21 -13
- package/Libraries/Text/RCTTextAttributes.m +75 -27
- package/Libraries/Text/RCTTextUIKit.h +2 -0
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -2
- package/Libraries/Text/RawText/RCTRawTextViewManager.m +2 -2
- package/Libraries/Text/React-RCTText.podspec +2 -2
- package/Libraries/Text/Text/NSTextStorage+FontScaling.h +1 -1
- package/Libraries/Text/Text/NSTextStorage+FontScaling.m +1 -1
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +40 -0
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +77 -0
- package/Libraries/Text/Text/RCTTextShadowView.m +15 -15
- package/Libraries/Text/Text/RCTTextView.h +5 -5
- package/Libraries/Text/Text/RCTTextView.m +173 -108
- package/Libraries/Text/Text/RCTTextViewManager.m +6 -6
- package/Libraries/Text/Text.js +2 -15
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +8 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +81 -16
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +16 -3
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +12 -11
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +173 -110
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +18 -6
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h +9 -9
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +61 -44
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +20 -20
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +16 -4
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +15 -7
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +190 -61
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +43 -31
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.m +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryView.h +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryView.m +3 -3
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +7 -7
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.m +1 -1
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +9 -5
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m +2 -2
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +13 -11
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +125 -53
- package/Libraries/Text/TextInput/Singleline/macOS/RCTUISecureTextField.h +1 -1
- package/Libraries/Text/TextInput/Singleline/macOS/RCTUISecureTextField.m +1 -1
- package/Libraries/Text/TextNativeComponent.js +6 -6
- package/Libraries/Text/TextProps.js +29 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m +2 -2
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +2 -2
- package/Libraries/Types/CoreEventTypes.js +6 -7
- package/Libraries/Utilities/Appearance.js +8 -5
- package/Libraries/Utilities/BackHandler.android.js +4 -4
- package/Libraries/Utilities/BackHandler.macos.js +1 -1
- package/Libraries/Utilities/DevSettings.js +1 -1
- package/Libraries/Utilities/HMRClient.js +4 -8
- package/Libraries/Utilities/JSDevSupportModule.js +3 -4
- package/Libraries/Utilities/LoadingView.macos.js +1 -1
- package/Libraries/Utilities/MatrixMath.js +19 -19
- package/Libraries/Utilities/PerformanceLoggerContext.js +2 -3
- package/Libraries/Utilities/Platform.macos.js +1 -1
- 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 +5 -3
- package/Libraries/Vibration/React-RCTVibration.podspec +2 -2
- package/Libraries/Vibration/Vibration.js +2 -2
- package/Libraries/WebSocket/RCTSRWebSocket.m +13 -10
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/Libraries/WebSocket/WebSocketInterceptor.js +5 -5
- package/Libraries/promiseRejectionTrackingOptions.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +3 -2
- package/Libraries/vendor/emitter/_EventEmitter.js +3 -2
- package/Libraries/vendor/emitter/_EventSubscription.js +3 -2
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
- package/README.md +1 -1
- package/React/AppSetup/RCTAppSetupUtils.h +1 -1
- package/React/AppSetup/RCTAppSetupUtils.mm +1 -1
- package/React/Base/RCTAssert.h +30 -15
- package/React/Base/RCTAssert.m +59 -19
- package/React/Base/RCTBridge+Cxx.h +1 -1
- package/React/Base/RCTBridge+Cxx.mm +1 -1
- package/React/Base/RCTBridge.h +1 -1
- package/React/Base/RCTBridge.m +6 -4
- package/React/Base/RCTBridgeModule.h +4 -4
- package/React/Base/RCTBundleURLProvider.h +1 -1
- package/React/Base/RCTBundleURLProvider.mm +4 -4
- package/React/Base/RCTConstants.h +6 -0
- package/React/Base/RCTConstants.m +15 -0
- package/React/Base/RCTConvert.h +14 -14
- package/React/Base/RCTConvert.m +175 -158
- package/React/Base/RCTDisplayLink.m +8 -8
- package/React/Base/RCTEventDispatcherProtocol.h +6 -1
- package/React/Base/RCTFrameUpdate.h +2 -2
- package/React/Base/RCTFrameUpdate.m +2 -2
- package/React/Base/RCTImageSource.m +2 -2
- package/React/Base/RCTJSStackFrame.m +2 -2
- package/React/Base/RCTJSThread.h +1 -1
- package/React/Base/RCTJavaScriptLoader.h +1 -1
- package/React/Base/RCTJavaScriptLoader.mm +2 -2
- package/React/Base/RCTKeyCommands.m +2 -2
- package/React/Base/RCTModuleData.mm +2 -2
- package/React/Base/RCTModuleMethod.mm +2 -2
- package/React/Base/RCTMultipartDataTask.m +2 -20
- package/React/Base/RCTPlatformDisplayLink.h +1 -1
- package/React/Base/RCTRedBoxSetEnabled.m +1 -1
- package/React/Base/RCTReloadCommand.m +4 -4
- package/React/Base/RCTRootContentView.h +1 -1
- package/React/Base/RCTRootContentView.m +10 -10
- package/React/Base/RCTRootView.h +4 -4
- package/React/Base/RCTRootView.m +26 -77
- package/React/Base/RCTTouchEvent.m +2 -2
- package/React/Base/RCTTouchHandler.h +5 -5
- package/React/Base/RCTTouchHandler.m +81 -66
- package/React/Base/RCTUIKit.h +110 -28
- package/React/Base/RCTUtils.h +12 -12
- package/React/Base/RCTUtils.m +65 -35
- package/React/Base/RCTUtilsUIOverride.h +1 -1
- package/React/Base/RCTUtilsUIOverride.m +1 -1
- package/React/Base/RCTVersion.m +1 -5
- package/React/Base/RCTViewRegistry.m +2 -2
- package/React/Base/Surface/RCTSurfaceDelegate.h +1 -1
- package/React/Base/Surface/RCTSurfaceProtocol.h +1 -1
- package/React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h +1 -1
- package/React/Base/Surface/RCTSurfaceRootView.h +1 -1
- package/React/Base/Surface/RCTSurfaceView.h +1 -1
- package/React/Base/Surface/RCTSurfaceView.mm +2 -2
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +3 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +5 -5
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h +3 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +14 -15
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm +1 -1
- package/React/Base/macOS/RCTPlatform.m +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +4 -2
- package/React/Base/macOS/RCTUIKit.m +107 -11
- package/React/CoreModules/CoreModulesPlugins.mm +6 -6
- package/React/CoreModules/RCTAccessibilityManager.h +1 -1
- package/React/CoreModules/RCTAccessibilityManager.mm +2 -2
- package/React/CoreModules/RCTActionSheetManager.h +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +31 -31
- package/React/CoreModules/RCTAlertController.h +7 -7
- package/React/CoreModules/RCTAlertController.m +12 -6
- package/React/CoreModules/RCTAlertManager.h +1 -1
- package/React/CoreModules/RCTAlertManager.mm +10 -10
- package/React/CoreModules/RCTAppState.mm +6 -6
- package/React/CoreModules/RCTAppearance.h +4 -4
- package/React/CoreModules/RCTAppearance.mm +30 -14
- package/React/CoreModules/RCTAsyncLocalStorage.mm +5 -6
- package/React/CoreModules/RCTClipboard.mm +7 -7
- package/React/CoreModules/RCTDevLoadingView.h +1 -1
- package/React/CoreModules/RCTDevLoadingView.mm +32 -32
- package/React/CoreModules/RCTDevMenu.h +3 -3
- package/React/CoreModules/RCTDevMenu.mm +40 -42
- package/React/CoreModules/RCTDevSettings.h +4 -4
- package/React/CoreModules/RCTDevSettings.mm +51 -30
- package/React/CoreModules/RCTDevSplitBundleLoader.h +1 -1
- package/React/CoreModules/RCTDeviceInfo.h +2 -2
- package/React/CoreModules/RCTDeviceInfo.mm +22 -22
- package/React/CoreModules/RCTEventDispatcher.mm +6 -1
- package/React/CoreModules/RCTExceptionsManager.mm +1 -1
- package/React/CoreModules/RCTFPSGraph.h +3 -3
- package/React/CoreModules/RCTFPSGraph.m +2 -2
- package/React/CoreModules/RCTKeyboardObserver.mm +8 -8
- package/React/CoreModules/RCTLogBox.h +2 -2
- package/React/CoreModules/RCTLogBox.mm +36 -20
- package/React/CoreModules/RCTLogBoxView.h +12 -9
- package/React/CoreModules/RCTLogBoxView.mm +67 -26
- package/React/CoreModules/RCTPerfMonitor.mm +1 -1
- package/React/CoreModules/RCTPlatform.mm +1 -1
- package/React/CoreModules/RCTRedBox.h +1 -1
- package/React/CoreModules/RCTRedBox.mm +24 -24
- package/React/CoreModules/RCTStatusBarManager.h +3 -3
- package/React/CoreModules/RCTStatusBarManager.mm +4 -4
- package/React/CoreModules/RCTTiming.mm +2 -2
- package/React/CoreModules/RCTWebSocketModule.mm +3 -3
- package/React/CoreModules/React-CoreModules.podspec +4 -4
- package/React/CxxBridge/RCTCxxBridge.mm +9 -9
- package/React/CxxModule/RCTCxxMethod.mm +2 -2
- package/React/DevSupport/RCTDevLoadingViewProtocol.h +2 -2
- package/React/DevSupport/RCTInspectorDevServerHelper.h +1 -1
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +8 -8
- package/React/DevSupport/RCTPackagerConnection.mm +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +2 -2
- package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.mm +3 -2
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +10 -8
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +2 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +75 -25
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +3 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +2 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +10 -5
- package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +10 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +5 -3
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +23 -6
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +17 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +6 -4
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +98 -34
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +19 -5
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +3 -3
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +5 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +3 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +4 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +6 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +24 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +47 -8
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +9 -6
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +16 -4
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +6 -4
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +14 -4
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +41 -23
- package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
- package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +12 -3
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +4 -4
- package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
- package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
- package/React/Fabric/Mounting/RCTMountingManager.h +4 -4
- package/React/Fabric/Mounting/RCTMountingManager.mm +30 -19
- package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.h +5 -3
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.mm +10 -8
- package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +6 -4
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +6 -6
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +10 -6
- package/React/Fabric/RCTConversions.h +17 -7
- package/React/Fabric/RCTImageResponseDelegate.h +1 -1
- package/React/Fabric/RCTImageResponseObserverProxy.h +1 -0
- package/React/Fabric/RCTLocalizationProvider.h +1 -1
- package/React/Fabric/RCTLocalizationProvider.mm +10 -4
- package/React/Fabric/RCTScheduler.h +8 -1
- package/React/Fabric/RCTScheduler.mm +15 -0
- package/React/Fabric/RCTSurfacePresenter.h +10 -2
- package/React/Fabric/RCTSurfacePresenter.mm +72 -29
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
- package/React/Fabric/RCTSurfaceTouchHandler.mm +50 -28
- package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -1
- package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
- package/React/Modules/RCTEventEmitter.h +7 -7
- package/React/Modules/RCTI18nUtil.m +1 -1
- package/React/Modules/RCTLayoutAnimation.h +1 -1
- package/React/Modules/RCTLayoutAnimation.m +14 -14
- package/React/Modules/RCTLayoutAnimationGroup.h +1 -1
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -2
- package/React/Modules/RCTSurfacePresenterStub.h +6 -2
- package/React/Modules/RCTUIManager.h +12 -12
- package/React/Modules/RCTUIManager.m +126 -105
- package/React/Modules/RCTUIManagerObserverCoordinator.h +1 -1
- package/React/Modules/RCTUIManagerUtils.h +1 -1
- package/React/Profiler/RCTProfile.m +23 -23
- package/React/React-RCTFabric.podspec +2 -2
- package/React/UIUtils/RCTUIUtils.h +6 -6
- package/React/UIUtils/RCTUIUtils.m +3 -3
- package/React/Views/RCTActivityIndicatorView.h +4 -4
- package/React/Views/RCTActivityIndicatorView.m +6 -5
- package/React/Views/RCTActivityIndicatorViewManager.m +4 -4
- package/React/Views/RCTAnimationType.h +4 -4
- package/React/Views/RCTAutoInsetsProtocol.h +1 -1
- package/React/Views/RCTBorderDrawing.h +2 -2
- package/React/Views/RCTBorderDrawing.m +22 -22
- package/React/Views/RCTComponentData.h +3 -3
- package/React/Views/RCTComponentData.m +4 -4
- package/React/Views/RCTCursor.h +39 -0
- package/React/Views/RCTCursor.m +105 -0
- package/React/Views/RCTDatePicker.h +4 -4
- package/React/Views/RCTDatePicker.m +12 -12
- package/React/Views/RCTDatePickerManager.h +3 -3
- package/React/Views/RCTDatePickerManager.m +16 -16
- package/React/Views/RCTFont.h +1 -1
- package/React/Views/RCTFont.mm +20 -18
- package/React/Views/RCTFontSmoothing.h +1 -1
- package/React/Views/RCTLayout.h +1 -1
- package/React/Views/RCTMaskedView.h +1 -1
- package/React/Views/RCTModalHostView.h +7 -2
- package/React/Views/RCTModalHostViewController.h +1 -1
- package/React/Views/RCTModalHostViewManager.m +3 -0
- package/React/Views/RCTModalManager.h +1 -1
- package/React/Views/RCTProgressView.h +6 -6
- package/React/Views/RCTProgressView.m +1 -1
- package/React/Views/RCTProgressViewManager.m +13 -13
- package/React/Views/RCTSegmentedControl.h +6 -6
- package/React/Views/RCTSegmentedControl.m +16 -16
- package/React/Views/RCTSegmentedControlManager.m +3 -3
- package/React/Views/RCTShadowView+Internal.h +1 -1
- package/React/Views/RCTShadowView+Layout.h +1 -1
- package/React/Views/RCTShadowView.h +4 -4
- package/React/Views/RCTShadowView.m +8 -8
- package/React/Views/RCTSlider.h +14 -10
- package/React/Views/RCTSlider.m +38 -38
- package/React/Views/RCTSliderManager.m +10 -9
- package/React/Views/RCTSwitch.h +2 -11
- package/React/Views/RCTSwitch.m +0 -20
- package/React/Views/RCTSwitchManager.m +8 -12
- package/React/Views/RCTView.h +29 -13
- package/React/Views/RCTView.m +291 -320
- package/React/Views/RCTViewKeyboardEvent.h +6 -28
- package/React/Views/RCTViewKeyboardEvent.m +68 -61
- package/React/Views/RCTViewManager.h +5 -5
- package/React/Views/RCTViewManager.m +87 -89
- package/React/Views/RCTViewUtils.h +2 -2
- package/React/Views/RCTViewUtils.m +3 -3
- package/React/Views/RCTWeakViewHolder.h +1 -1
- package/React/Views/RCTWrapperViewController.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -2
- package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
- package/React/Views/ScrollView/RCTScrollContentShadowView.h +1 -1
- package/React/Views/ScrollView/RCTScrollContentShadowView.m +4 -4
- package/React/Views/ScrollView/RCTScrollContentView.h +5 -1
- package/React/Views/ScrollView/RCTScrollContentView.m +25 -7
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +2 -0
- package/React/Views/ScrollView/RCTScrollEvent.m +3 -3
- package/React/Views/ScrollView/RCTScrollView.h +10 -8
- package/React/Views/ScrollView/RCTScrollView.m +227 -227
- package/React/Views/ScrollView/RCTScrollViewManager.h +2 -2
- package/React/Views/ScrollView/RCTScrollViewManager.m +28 -27
- package/React/Views/ScrollView/RCTScrollableProtocol.h +6 -6
- package/React/Views/UIView+Private.h +4 -4
- package/React/Views/UIView+React.h +13 -11
- package/React/Views/UIView+React.m +73 -56
- package/React-Core.podspec +5 -5
- package/React.podspec +1 -1
- package/ReactAndroid/build.gradle +22 -6
- package/ReactAndroid/gradle.properties +4 -3
- package/ReactAndroid/proguard-rules.pro +4 -6
- 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/hermes/reactexecutor/OnLoad.cpp +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +13 -26
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +7 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeWithUpdateableConfig.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ColorAnimatedNode.java +131 -0
- 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/NativeAnimatedModule.java +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java +2 -0
- 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/ReactMarker.java +2 -1
- 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/SurfaceDelegate.java +3 -0
- 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 -20
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +40 -50
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/{RedBoxDialog.java → RedBoxContentView.java} +38 -29
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialogSurfaceDelegate.java +117 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/{RedBoxHandler.java → interfaces/RedBoxHandler.java} +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/{AsyncEventBeatV2.cpp → AsyncEventBeat.cpp} +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeat.h +8 -40
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +39 -36
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +0 -13
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +5 -18
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java +20 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +106 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +3 -3
- 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/ReactRoot.java +1 -6
- 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 -14
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +3 -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/image/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +0 -90
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java +2 -1
- 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 +10 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +35 -21
- 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 +10 -6
- 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/textinput/ReactTextInputManager.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java +19 -0
- 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/shell/values/styles.xml +3 -2
- 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/ReactAndroid/src/test/java/com/facebook/react/views/BUCK +5 -2
- package/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java +9 -0
- package/ReactCommon/React-Fabric.podspec +1 -1
- package/ReactCommon/React-rncore.podspec +1 -1
- package/ReactCommon/ReactCommon.podspec +2 -2
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/JSBigString.cpp +0 -65
- package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -5
- package/ReactCommon/cxxreact/tests/BUCK +1 -1
- package/ReactCommon/hermes/inspector/Exceptions.h +6 -0
- package/ReactCommon/hermes/inspector/Inspector.cpp +5 -2
- package/ReactCommon/hermes/inspector/Inspector.h +14 -0
- package/ReactCommon/hermes/inspector/InspectorState.cpp +16 -8
- package/ReactCommon/hermes/inspector/chrome/Connection.cpp +319 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.cpp +79 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.h +43 -1
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionTests.cpp +251 -7
- package/ReactCommon/hermes/inspector/chrome/tests/MessageTests.cpp +1068 -1
- package/ReactCommon/hermes/inspector/tools/message_types.txt +1 -0
- 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 +352 -1300
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsi/jsi/jsi.cpp +2 -0
- package/ReactCommon/jsi/jsi/jsi.h +7 -3
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
- package/ReactCommon/jsinspector/React-jsinspector.podspec +1 -1
- package/ReactCommon/logger/React-logger.podspec +1 -1
- 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/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm +4 -4
- 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 +49 -47
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +7 -5
- package/ReactCommon/react/renderer/components/modal/ModalHostViewComponentDescriptor.h +1 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewState.h +1 -1
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/conversions.h +1 -1
- 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/AndroidTextInputProps.cpp +6 -6
- 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.cpp +1 -18
- package/ReactCommon/react/renderer/components/view/ViewProps.h +4 -6
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +4 -4
- 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 +45 -3
- package/ReactCommon/react/renderer/components/view/propsConversions.h +138 -0
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +19 -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/conversions.h +1 -11
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +64 -85
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +103 -27
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +88 -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 +48 -52
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +46 -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 +48 -29
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +10 -0
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +40 -4
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +10 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +15 -15
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.mm +4 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.mm +5 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +8 -9
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +9 -4
- 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/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/yoga/Yoga.podspec +1 -1
- package/index.js +21 -33
- 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/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.m +1 -1
- package/package.json +25 -97
- package/react.gradle +14 -4
- package/scripts/find-node.sh +7 -0
- package/scripts/generate-artifacts.js +25 -21
- package/scripts/react_native_pods.rb +9 -11
- 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 +1 -1
- package/template/Gemfile.lock +13 -13
- package/template/_flowconfig +2 -2
- package/template/_gitignore +2 -1
- package/template/_ruby-version +1 -1
- package/template/android/app/build.gradle +0 -5
- package/template/android/app/src/main/java/com/helloworld/MainActivity.java +2 -1
- package/template/android/build.gradle +2 -2
- package/template/android/gradle.properties +3 -3
- 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 +2 -3
- package/third-party-podspecs/DoubleConversion.podspec +1 -1
- package/third-party-podspecs/RCT-Folly.podspec +1 -1
- package/third-party-podspecs/boost.podspec +1 -1
- package/third-party-podspecs/glog.podspec +1 -1
- package/Libraries/Alert/AlertMacOS.js +0 -211
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -113
- package/Libraries/Components/View/PlatformViewPropTypes.macos.js +0 -16
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +0 -373
- package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +0 -83
- 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/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +0 -40
- 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<<6fb23e3f27b69a5703944d58969d32f4>>
|
|
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;
|
|
@@ -2335,19 +2282,16 @@ function popProvider(context) {
|
|
|
2335
2282
|
pop(valueCursor);
|
|
2336
2283
|
context._currentValue = currentValue;
|
|
2337
2284
|
}
|
|
2338
|
-
function
|
|
2285
|
+
function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {
|
|
2339
2286
|
for (; null !== parent; ) {
|
|
2340
2287
|
var alternate = parent.alternate;
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
null
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
else
|
|
2349
|
-
(parent.childLanes |= renderLanes),
|
|
2350
|
-
null !== alternate && (alternate.childLanes |= renderLanes);
|
|
2288
|
+
(parent.childLanes & renderLanes) !== renderLanes
|
|
2289
|
+
? ((parent.childLanes |= renderLanes),
|
|
2290
|
+
null !== alternate && (alternate.childLanes |= renderLanes))
|
|
2291
|
+
: null !== alternate &&
|
|
2292
|
+
(alternate.childLanes & renderLanes) !== renderLanes &&
|
|
2293
|
+
(alternate.childLanes |= renderLanes);
|
|
2294
|
+
if (parent === propagationRoot) break;
|
|
2351
2295
|
parent = parent.return;
|
|
2352
2296
|
}
|
|
2353
2297
|
}
|
|
@@ -2686,18 +2630,18 @@ var classComponentUpdater = {
|
|
|
2686
2630
|
markStateUpdateScheduled(inst, lane);
|
|
2687
2631
|
},
|
|
2688
2632
|
enqueueForceUpdate: function(inst, callback) {
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2633
|
+
inst = inst._reactInternals;
|
|
2634
|
+
var eventTime = requestEventTime(),
|
|
2635
|
+
lane = requestUpdateLane(inst),
|
|
2636
|
+
update = createUpdate(eventTime, lane);
|
|
2693
2637
|
update.tag = 2;
|
|
2694
2638
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2695
|
-
enqueueUpdate(
|
|
2696
|
-
callback = scheduleUpdateOnFiber(
|
|
2697
|
-
null !== callback && entangleTransitions(callback,
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2639
|
+
enqueueUpdate(inst, update);
|
|
2640
|
+
callback = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2641
|
+
null !== callback && entangleTransitions(callback, inst, lane);
|
|
2642
|
+
null !== injectedProfilingHooks &&
|
|
2643
|
+
"function" === typeof injectedProfilingHooks.markForceUpdateScheduled &&
|
|
2644
|
+
injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
|
|
2701
2645
|
}
|
|
2702
2646
|
};
|
|
2703
2647
|
function checkShouldComponentUpdate(
|
|
@@ -3786,9 +3730,9 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3786
3730
|
latestSetSnapshot(latestGetSnapshot(source._source));
|
|
3787
3731
|
var lane = requestUpdateLane(fiber);
|
|
3788
3732
|
root.mutableReadLanes |= lane & root.pendingLanes;
|
|
3789
|
-
} catch (error
|
|
3733
|
+
} catch (error) {
|
|
3790
3734
|
latestSetSnapshot(function() {
|
|
3791
|
-
throw error
|
|
3735
|
+
throw error;
|
|
3792
3736
|
});
|
|
3793
3737
|
}
|
|
3794
3738
|
});
|
|
@@ -3821,28 +3765,37 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3821
3765
|
var hook = updateWorkInProgressHook();
|
|
3822
3766
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3823
3767
|
}
|
|
3824
|
-
function
|
|
3768
|
+
function updateSyncExternalStore(subscribe, getSnapshot) {
|
|
3825
3769
|
var fiber = currentlyRenderingFiber$1,
|
|
3826
|
-
hook =
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3770
|
+
hook = updateWorkInProgressHook(),
|
|
3771
|
+
nextSnapshot = getSnapshot(),
|
|
3772
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
3773
|
+
snapshotChanged &&
|
|
3774
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
3775
|
+
hook = hook.queue;
|
|
3776
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
3777
|
+
subscribe
|
|
3778
|
+
]);
|
|
3779
|
+
if (
|
|
3780
|
+
hook.getSnapshot !== getSnapshot ||
|
|
3781
|
+
snapshotChanged ||
|
|
3782
|
+
(null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1)
|
|
3783
|
+
) {
|
|
3784
|
+
fiber.flags |= 2048;
|
|
3785
|
+
pushEffect(
|
|
3786
|
+
9,
|
|
3787
|
+
updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot),
|
|
3788
|
+
void 0,
|
|
3789
|
+
null
|
|
3832
3790
|
);
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
9,
|
|
3842
|
-
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3843
|
-
void 0,
|
|
3844
|
-
null
|
|
3845
|
-
);
|
|
3791
|
+
subscribe = workInProgressRoot;
|
|
3792
|
+
if (null === subscribe)
|
|
3793
|
+
throw Error(
|
|
3794
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3795
|
+
);
|
|
3796
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
3797
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3798
|
+
}
|
|
3846
3799
|
return nextSnapshot;
|
|
3847
3800
|
}
|
|
3848
3801
|
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
@@ -3874,7 +3827,7 @@ function checkIfSnapshotChanged(inst) {
|
|
|
3874
3827
|
try {
|
|
3875
3828
|
var nextValue = latestGetSnapshot();
|
|
3876
3829
|
return !objectIs(inst, nextValue);
|
|
3877
|
-
} catch (error
|
|
3830
|
+
} catch (error) {
|
|
3878
3831
|
return !0;
|
|
3879
3832
|
}
|
|
3880
3833
|
}
|
|
@@ -4067,7 +4020,7 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
4067
4020
|
update.hasEagerState = !0;
|
|
4068
4021
|
update.eagerState = eagerState;
|
|
4069
4022
|
if (objectIs(eagerState, currentState)) return;
|
|
4070
|
-
} catch (error
|
|
4023
|
+
} catch (error) {
|
|
4071
4024
|
} finally {
|
|
4072
4025
|
}
|
|
4073
4026
|
action = requestEventTime();
|
|
@@ -4232,7 +4185,32 @@ var ContextOnlyDispatcher = {
|
|
|
4232
4185
|
};
|
|
4233
4186
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
4234
4187
|
},
|
|
4235
|
-
useSyncExternalStore:
|
|
4188
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4189
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4190
|
+
hook = mountWorkInProgressHook();
|
|
4191
|
+
var nextSnapshot = getSnapshot();
|
|
4192
|
+
var root = workInProgressRoot;
|
|
4193
|
+
if (null === root)
|
|
4194
|
+
throw Error(
|
|
4195
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4196
|
+
);
|
|
4197
|
+
includesBlockingLane(root, renderLanes) ||
|
|
4198
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4199
|
+
hook.memoizedState = nextSnapshot;
|
|
4200
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
4201
|
+
hook.queue = root;
|
|
4202
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [
|
|
4203
|
+
subscribe
|
|
4204
|
+
]);
|
|
4205
|
+
fiber.flags |= 2048;
|
|
4206
|
+
pushEffect(
|
|
4207
|
+
9,
|
|
4208
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
4209
|
+
void 0,
|
|
4210
|
+
null
|
|
4211
|
+
);
|
|
4212
|
+
return nextSnapshot;
|
|
4213
|
+
},
|
|
4236
4214
|
useId: function() {
|
|
4237
4215
|
var hook = mountWorkInProgressHook(),
|
|
4238
4216
|
identifierPrefix = workInProgressRoot.identifierPrefix,
|
|
@@ -4281,46 +4259,7 @@ var ContextOnlyDispatcher = {
|
|
|
4281
4259
|
return [isPending, start];
|
|
4282
4260
|
},
|
|
4283
4261
|
useMutableSource: updateMutableSource,
|
|
4284
|
-
useSyncExternalStore:
|
|
4285
|
-
var fiber = currentlyRenderingFiber$1,
|
|
4286
|
-
hook = updateWorkInProgressHook(),
|
|
4287
|
-
nextSnapshot = getSnapshot(),
|
|
4288
|
-
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4289
|
-
snapshotChanged &&
|
|
4290
|
-
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4291
|
-
hook = hook.queue;
|
|
4292
|
-
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4293
|
-
subscribe
|
|
4294
|
-
]);
|
|
4295
|
-
if (
|
|
4296
|
-
hook.getSnapshot !== getSnapshot ||
|
|
4297
|
-
snapshotChanged ||
|
|
4298
|
-
(null !== workInProgressHook &&
|
|
4299
|
-
workInProgressHook.memoizedState.tag & 1)
|
|
4300
|
-
) {
|
|
4301
|
-
fiber.flags |= 2048;
|
|
4302
|
-
pushEffect(
|
|
4303
|
-
9,
|
|
4304
|
-
updateStoreInstance.bind(
|
|
4305
|
-
null,
|
|
4306
|
-
fiber,
|
|
4307
|
-
hook,
|
|
4308
|
-
nextSnapshot,
|
|
4309
|
-
getSnapshot
|
|
4310
|
-
),
|
|
4311
|
-
void 0,
|
|
4312
|
-
null
|
|
4313
|
-
);
|
|
4314
|
-
subscribe = workInProgressRoot;
|
|
4315
|
-
if (null === subscribe)
|
|
4316
|
-
throw Error(
|
|
4317
|
-
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4318
|
-
);
|
|
4319
|
-
includesBlockingLane(subscribe, renderLanes) ||
|
|
4320
|
-
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4321
|
-
}
|
|
4322
|
-
return nextSnapshot;
|
|
4323
|
-
},
|
|
4262
|
+
useSyncExternalStore: updateSyncExternalStore,
|
|
4324
4263
|
useId: updateId,
|
|
4325
4264
|
unstable_isNewReconciler: !1
|
|
4326
4265
|
},
|
|
@@ -4363,7 +4302,7 @@ var ContextOnlyDispatcher = {
|
|
|
4363
4302
|
return [isPending, start];
|
|
4364
4303
|
},
|
|
4365
4304
|
useMutableSource: updateMutableSource,
|
|
4366
|
-
useSyncExternalStore:
|
|
4305
|
+
useSyncExternalStore: updateSyncExternalStore,
|
|
4367
4306
|
useId: updateId,
|
|
4368
4307
|
unstable_isNewReconciler: !1
|
|
4369
4308
|
},
|
|
@@ -4454,7 +4393,7 @@ function logCapturedError(boundary, errorInfo) {
|
|
|
4454
4393
|
});
|
|
4455
4394
|
}
|
|
4456
4395
|
}
|
|
4457
|
-
var PossiblyWeakMap
|
|
4396
|
+
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4458
4397
|
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
4459
4398
|
lane = createUpdate(-1, lane);
|
|
4460
4399
|
lane.tag = 3;
|
|
@@ -4471,9 +4410,9 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4471
4410
|
lane.tag = 3;
|
|
4472
4411
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
4473
4412
|
if ("function" === typeof getDerivedStateFromError) {
|
|
4474
|
-
var error
|
|
4413
|
+
var error = errorInfo.value;
|
|
4475
4414
|
lane.payload = function() {
|
|
4476
|
-
return getDerivedStateFromError(error
|
|
4415
|
+
return getDerivedStateFromError(error);
|
|
4477
4416
|
};
|
|
4478
4417
|
lane.callback = function() {
|
|
4479
4418
|
logCapturedError(fiber, errorInfo);
|
|
@@ -4537,14 +4476,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4537
4476
|
break;
|
|
4538
4477
|
case "collapsed":
|
|
4539
4478
|
lastTailNode = renderState.tail;
|
|
4540
|
-
for (var lastTailNode$
|
|
4541
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4479
|
+
for (var lastTailNode$38 = null; null !== lastTailNode; )
|
|
4480
|
+
null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
|
|
4542
4481
|
(lastTailNode = lastTailNode.sibling);
|
|
4543
|
-
null === lastTailNode$
|
|
4482
|
+
null === lastTailNode$38
|
|
4544
4483
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4545
4484
|
? (renderState.tail = null)
|
|
4546
4485
|
: (renderState.tail.sibling = null)
|
|
4547
|
-
: (lastTailNode$
|
|
4486
|
+
: (lastTailNode$38.sibling = null);
|
|
4548
4487
|
}
|
|
4549
4488
|
}
|
|
4550
4489
|
function bubbleProperties(completedWork) {
|
|
@@ -4556,53 +4495,53 @@ function bubbleProperties(completedWork) {
|
|
|
4556
4495
|
if (didBailout)
|
|
4557
4496
|
if (0 !== (completedWork.mode & 2)) {
|
|
4558
4497
|
for (
|
|
4559
|
-
var treeBaseDuration$
|
|
4560
|
-
child$
|
|
4561
|
-
null !== child$
|
|
4498
|
+
var treeBaseDuration$40 = completedWork.selfBaseDuration,
|
|
4499
|
+
child$41 = completedWork.child;
|
|
4500
|
+
null !== child$41;
|
|
4562
4501
|
|
|
4563
4502
|
)
|
|
4564
|
-
(newChildLanes |= child$
|
|
4565
|
-
(subtreeFlags |= child$
|
|
4566
|
-
(subtreeFlags |= child$
|
|
4567
|
-
(treeBaseDuration$
|
|
4568
|
-
(child$
|
|
4569
|
-
completedWork.treeBaseDuration = treeBaseDuration$
|
|
4503
|
+
(newChildLanes |= child$41.lanes | child$41.childLanes),
|
|
4504
|
+
(subtreeFlags |= child$41.subtreeFlags & 14680064),
|
|
4505
|
+
(subtreeFlags |= child$41.flags & 14680064),
|
|
4506
|
+
(treeBaseDuration$40 += child$41.treeBaseDuration),
|
|
4507
|
+
(child$41 = child$41.sibling);
|
|
4508
|
+
completedWork.treeBaseDuration = treeBaseDuration$40;
|
|
4570
4509
|
} else
|
|
4571
4510
|
for (
|
|
4572
|
-
treeBaseDuration$
|
|
4573
|
-
null !== treeBaseDuration$
|
|
4511
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4512
|
+
null !== treeBaseDuration$40;
|
|
4574
4513
|
|
|
4575
4514
|
)
|
|
4576
4515
|
(newChildLanes |=
|
|
4577
|
-
treeBaseDuration$
|
|
4578
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4579
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4580
|
-
(treeBaseDuration$
|
|
4581
|
-
(treeBaseDuration$
|
|
4516
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4517
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags & 14680064),
|
|
4518
|
+
(subtreeFlags |= treeBaseDuration$40.flags & 14680064),
|
|
4519
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4520
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4582
4521
|
else if (0 !== (completedWork.mode & 2)) {
|
|
4583
|
-
treeBaseDuration$
|
|
4584
|
-
child$
|
|
4522
|
+
treeBaseDuration$40 = completedWork.actualDuration;
|
|
4523
|
+
child$41 = completedWork.selfBaseDuration;
|
|
4585
4524
|
for (var child = completedWork.child; null !== child; )
|
|
4586
4525
|
(newChildLanes |= child.lanes | child.childLanes),
|
|
4587
4526
|
(subtreeFlags |= child.subtreeFlags),
|
|
4588
4527
|
(subtreeFlags |= child.flags),
|
|
4589
|
-
(treeBaseDuration$
|
|
4590
|
-
(child$
|
|
4528
|
+
(treeBaseDuration$40 += child.actualDuration),
|
|
4529
|
+
(child$41 += child.treeBaseDuration),
|
|
4591
4530
|
(child = child.sibling);
|
|
4592
|
-
completedWork.actualDuration = treeBaseDuration$
|
|
4593
|
-
completedWork.treeBaseDuration = child$
|
|
4531
|
+
completedWork.actualDuration = treeBaseDuration$40;
|
|
4532
|
+
completedWork.treeBaseDuration = child$41;
|
|
4594
4533
|
} else
|
|
4595
4534
|
for (
|
|
4596
|
-
treeBaseDuration$
|
|
4597
|
-
null !== treeBaseDuration$
|
|
4535
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4536
|
+
null !== treeBaseDuration$40;
|
|
4598
4537
|
|
|
4599
4538
|
)
|
|
4600
4539
|
(newChildLanes |=
|
|
4601
|
-
treeBaseDuration$
|
|
4602
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4603
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4604
|
-
(treeBaseDuration$
|
|
4605
|
-
(treeBaseDuration$
|
|
4540
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4541
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags),
|
|
4542
|
+
(subtreeFlags |= treeBaseDuration$40.flags),
|
|
4543
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4544
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4606
4545
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4607
4546
|
completedWork.childLanes = newChildLanes;
|
|
4608
4547
|
return didBailout;
|
|
@@ -5630,11 +5569,11 @@ function updateSuspenseFallbackChildren(
|
|
|
5630
5569
|
workInProgress.child = primaryChildren;
|
|
5631
5570
|
return fallbackChildren;
|
|
5632
5571
|
}
|
|
5633
|
-
function
|
|
5572
|
+
function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
|
|
5634
5573
|
fiber.lanes |= renderLanes;
|
|
5635
5574
|
var alternate = fiber.alternate;
|
|
5636
5575
|
null !== alternate && (alternate.lanes |= renderLanes);
|
|
5637
|
-
|
|
5576
|
+
scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
|
|
5638
5577
|
}
|
|
5639
5578
|
function initSuspenseListRenderState(
|
|
5640
5579
|
workInProgress,
|
|
@@ -5673,8 +5612,9 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
5673
5612
|
a: for (current = workInProgress.child; null !== current; ) {
|
|
5674
5613
|
if (13 === current.tag)
|
|
5675
5614
|
null !== current.memoizedState &&
|
|
5676
|
-
|
|
5677
|
-
else if (19 === current.tag)
|
|
5615
|
+
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
|
|
5616
|
+
else if (19 === current.tag)
|
|
5617
|
+
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
|
|
5678
5618
|
else if (null !== current.child) {
|
|
5679
5619
|
current.child.return = current;
|
|
5680
5620
|
current = current.child;
|
|
@@ -5910,16 +5850,16 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5910
5850
|
recordLayoutEffectDuration(current);
|
|
5911
5851
|
}
|
|
5912
5852
|
else ref(null);
|
|
5913
|
-
} catch (error
|
|
5914
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
5853
|
+
} catch (error) {
|
|
5854
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5915
5855
|
}
|
|
5916
5856
|
else ref.current = null;
|
|
5917
5857
|
}
|
|
5918
5858
|
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
5919
5859
|
try {
|
|
5920
5860
|
destroy();
|
|
5921
|
-
} catch (error
|
|
5922
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
5861
|
+
} catch (error) {
|
|
5862
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5923
5863
|
}
|
|
5924
5864
|
}
|
|
5925
5865
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
@@ -5968,8 +5908,8 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5968
5908
|
"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
5909
|
);
|
|
5970
5910
|
}
|
|
5971
|
-
} catch (error
|
|
5972
|
-
captureCommitPhaseError(root, root.return, error
|
|
5911
|
+
} catch (error) {
|
|
5912
|
+
captureCommitPhaseError(root, root.return, error);
|
|
5973
5913
|
}
|
|
5974
5914
|
firstChild = root.sibling;
|
|
5975
5915
|
if (null !== firstChild) {
|
|
@@ -5996,24 +5936,23 @@ function commitHookEffectListUnmount(
|
|
|
5996
5936
|
if ((effect.tag & flags) === flags) {
|
|
5997
5937
|
var destroy = effect.destroy;
|
|
5998
5938
|
effect.destroy = void 0;
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
)
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
markComponentLayoutEffectUnmountStarted(finishedWork);
|
|
6011
|
-
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
5939
|
+
void 0 !== destroy &&
|
|
5940
|
+
(0 !== (flags & 8)
|
|
5941
|
+
? null !== injectedProfilingHooks &&
|
|
5942
|
+
"function" ===
|
|
5943
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted &&
|
|
5944
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(
|
|
5945
|
+
finishedWork
|
|
5946
|
+
)
|
|
5947
|
+
: 0 !== (flags & 4) &&
|
|
5948
|
+
markComponentLayoutEffectUnmountStarted(finishedWork),
|
|
5949
|
+
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy),
|
|
6012
5950
|
0 !== (flags & 8)
|
|
6013
|
-
?
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
5951
|
+
? null !== injectedProfilingHooks &&
|
|
5952
|
+
"function" ===
|
|
5953
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
|
|
5954
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
|
|
5955
|
+
: 0 !== (flags & 4) && markComponentLayoutEffectUnmountStopped());
|
|
6017
5956
|
}
|
|
6018
5957
|
effect = effect.next;
|
|
6019
5958
|
} while (effect !== updateQueue);
|
|
@@ -6026,30 +5965,32 @@ function commitHookEffectListMount(flags, finishedWork) {
|
|
|
6026
5965
|
var effect = (updateQueue = updateQueue.next);
|
|
6027
5966
|
do {
|
|
6028
5967
|
if ((effect.tag & flags) === flags) {
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
5968
|
+
0 !== (flags & 8)
|
|
5969
|
+
? null !== injectedProfilingHooks &&
|
|
5970
|
+
"function" ===
|
|
5971
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted &&
|
|
5972
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStarted(
|
|
5973
|
+
finishedWork
|
|
5974
|
+
)
|
|
5975
|
+
: 0 !== (flags & 4) &&
|
|
5976
|
+
null !== injectedProfilingHooks &&
|
|
5977
|
+
"function" ===
|
|
5978
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted &&
|
|
5979
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStarted(
|
|
5980
|
+
finishedWork
|
|
6035
5981
|
);
|
|
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();
|
|
5982
|
+
var create$87 = effect.create;
|
|
5983
|
+
effect.destroy = create$87();
|
|
6047
5984
|
0 !== (flags & 8)
|
|
6048
|
-
?
|
|
6049
|
-
|
|
5985
|
+
? null !== injectedProfilingHooks &&
|
|
5986
|
+
"function" ===
|
|
5987
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped &&
|
|
5988
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStopped()
|
|
6050
5989
|
: 0 !== (flags & 4) &&
|
|
6051
|
-
|
|
6052
|
-
|
|
5990
|
+
null !== injectedProfilingHooks &&
|
|
5991
|
+
"function" ===
|
|
5992
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped &&
|
|
5993
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStopped();
|
|
6053
5994
|
}
|
|
6054
5995
|
effect = effect.next;
|
|
6055
5996
|
} while (effect !== updateQueue);
|
|
@@ -6106,8 +6047,8 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
6106
6047
|
recordLayoutEffectDuration(current);
|
|
6107
6048
|
}
|
|
6108
6049
|
else finishedRoot.componentWillUnmount();
|
|
6109
|
-
} catch (error
|
|
6110
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error
|
|
6050
|
+
} catch (error) {
|
|
6051
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
6111
6052
|
}
|
|
6112
6053
|
break;
|
|
6113
6054
|
case 5:
|
|
@@ -6505,8 +6446,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6505
6446
|
var alternate = childToDelete.alternate;
|
|
6506
6447
|
null !== alternate && (alternate.return = null);
|
|
6507
6448
|
childToDelete.return = null;
|
|
6508
|
-
} catch (error
|
|
6509
|
-
captureCommitPhaseError(childToDelete, firstChild, error
|
|
6449
|
+
} catch (error) {
|
|
6450
|
+
captureCommitPhaseError(childToDelete, firstChild, error);
|
|
6510
6451
|
}
|
|
6511
6452
|
}
|
|
6512
6453
|
committedLanes = firstChild.child;
|
|
@@ -6538,11 +6479,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6538
6479
|
switch (firstChild.tag) {
|
|
6539
6480
|
case 13:
|
|
6540
6481
|
if (null !== firstChild.memoizedState) {
|
|
6541
|
-
var current$
|
|
6542
|
-
if (
|
|
6543
|
-
null === current$105 ||
|
|
6544
|
-
null === current$105.memoizedState
|
|
6545
|
-
)
|
|
6482
|
+
var current$94 = firstChild.alternate;
|
|
6483
|
+
if (null === current$94 || null === current$94.memoizedState)
|
|
6546
6484
|
globalMostRecentFallbackTime = now();
|
|
6547
6485
|
}
|
|
6548
6486
|
break;
|
|
@@ -6638,8 +6576,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6638
6576
|
case 4:
|
|
6639
6577
|
commitWork(firstChild.alternate, firstChild);
|
|
6640
6578
|
}
|
|
6641
|
-
} catch (error
|
|
6642
|
-
captureCommitPhaseError(firstChild, firstChild.return, error
|
|
6579
|
+
} catch (error) {
|
|
6580
|
+
captureCommitPhaseError(firstChild, firstChild.return, error);
|
|
6643
6581
|
}
|
|
6644
6582
|
committedLanes = firstChild.sibling;
|
|
6645
6583
|
if (null !== committedLanes) {
|
|
@@ -6726,21 +6664,21 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6726
6664
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6727
6665
|
break;
|
|
6728
6666
|
case 3:
|
|
6729
|
-
var updateQueue$
|
|
6730
|
-
if (null !== updateQueue$
|
|
6731
|
-
var instance$
|
|
6667
|
+
var updateQueue$89 = committedLanes.updateQueue;
|
|
6668
|
+
if (null !== updateQueue$89) {
|
|
6669
|
+
var instance$90 = null;
|
|
6732
6670
|
if (null !== committedLanes.child)
|
|
6733
6671
|
switch (committedLanes.child.tag) {
|
|
6734
6672
|
case 5:
|
|
6735
|
-
instance$
|
|
6673
|
+
instance$90 = committedLanes.child.stateNode;
|
|
6736
6674
|
break;
|
|
6737
6675
|
case 1:
|
|
6738
|
-
instance$
|
|
6676
|
+
instance$90 = committedLanes.child.stateNode;
|
|
6739
6677
|
}
|
|
6740
6678
|
commitUpdateQueue(
|
|
6741
6679
|
committedLanes,
|
|
6742
|
-
updateQueue$
|
|
6743
|
-
instance$
|
|
6680
|
+
updateQueue$89,
|
|
6681
|
+
instance$90
|
|
6744
6682
|
);
|
|
6745
6683
|
}
|
|
6746
6684
|
break;
|
|
@@ -6755,7 +6693,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6755
6693
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6756
6694
|
onRender = _finishedWork$memoize2.onRender,
|
|
6757
6695
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6758
|
-
instance$
|
|
6696
|
+
instance$90 = commitTime;
|
|
6759
6697
|
current = null === current ? "mount" : "update";
|
|
6760
6698
|
currentUpdateIsNested && (current = "nested-update");
|
|
6761
6699
|
"function" === typeof onRender &&
|
|
@@ -6765,14 +6703,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6765
6703
|
committedLanes.actualDuration,
|
|
6766
6704
|
committedLanes.treeBaseDuration,
|
|
6767
6705
|
committedLanes.actualStartTime,
|
|
6768
|
-
instance$
|
|
6706
|
+
instance$90
|
|
6769
6707
|
);
|
|
6770
6708
|
"function" === typeof onCommit &&
|
|
6771
6709
|
onCommit(
|
|
6772
6710
|
committedLanes.memoizedProps.id,
|
|
6773
6711
|
current,
|
|
6774
6712
|
effectDuration,
|
|
6775
|
-
instance$
|
|
6713
|
+
instance$90
|
|
6776
6714
|
);
|
|
6777
6715
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6778
6716
|
var parentFiber = committedLanes.return;
|
|
@@ -6802,34 +6740,34 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6802
6740
|
);
|
|
6803
6741
|
}
|
|
6804
6742
|
if (committedLanes.flags & 512) {
|
|
6805
|
-
instance$
|
|
6743
|
+
instance$90 = void 0;
|
|
6806
6744
|
current = committedLanes;
|
|
6807
6745
|
var ref = current.ref;
|
|
6808
6746
|
if (null !== ref) {
|
|
6809
6747
|
var instance$jscomp$0 = current.stateNode;
|
|
6810
6748
|
switch (current.tag) {
|
|
6811
6749
|
case 5:
|
|
6812
|
-
instance$
|
|
6750
|
+
instance$90 = instance$jscomp$0;
|
|
6813
6751
|
break;
|
|
6814
6752
|
default:
|
|
6815
|
-
instance$
|
|
6753
|
+
instance$90 = instance$jscomp$0;
|
|
6816
6754
|
}
|
|
6817
6755
|
if ("function" === typeof ref)
|
|
6818
6756
|
if (current.mode & 2)
|
|
6819
6757
|
try {
|
|
6820
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6758
|
+
startLayoutEffectTimer(), ref(instance$90);
|
|
6821
6759
|
} finally {
|
|
6822
6760
|
recordLayoutEffectDuration(current);
|
|
6823
6761
|
}
|
|
6824
|
-
else ref(instance$
|
|
6825
|
-
else ref.current = instance$
|
|
6762
|
+
else ref(instance$90);
|
|
6763
|
+
else ref.current = instance$90;
|
|
6826
6764
|
}
|
|
6827
6765
|
}
|
|
6828
|
-
} catch (error
|
|
6766
|
+
} catch (error) {
|
|
6829
6767
|
captureCommitPhaseError(
|
|
6830
6768
|
committedLanes,
|
|
6831
6769
|
committedLanes.return,
|
|
6832
|
-
error
|
|
6770
|
+
error
|
|
6833
6771
|
);
|
|
6834
6772
|
}
|
|
6835
6773
|
}
|
|
@@ -6837,10 +6775,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6837
6775
|
nextEffect = null;
|
|
6838
6776
|
break;
|
|
6839
6777
|
}
|
|
6840
|
-
instance$
|
|
6841
|
-
if (null !== instance$
|
|
6842
|
-
instance$
|
|
6843
|
-
nextEffect = instance$
|
|
6778
|
+
instance$90 = committedLanes.sibling;
|
|
6779
|
+
if (null !== instance$90) {
|
|
6780
|
+
instance$90.return = committedLanes.return;
|
|
6781
|
+
nextEffect = instance$90;
|
|
6844
6782
|
break;
|
|
6845
6783
|
}
|
|
6846
6784
|
nextEffect = committedLanes.return;
|
|
@@ -6861,8 +6799,9 @@ var ceil = Math.ceil,
|
|
|
6861
6799
|
workInProgressRootFatalError = null,
|
|
6862
6800
|
workInProgressRootSkippedLanes = 0,
|
|
6863
6801
|
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6864
|
-
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6865
6802
|
workInProgressRootPingedLanes = 0,
|
|
6803
|
+
workInProgressRootConcurrentErrors = null,
|
|
6804
|
+
workInProgressRootRecoverableErrors = null,
|
|
6866
6805
|
globalMostRecentFallbackTime = 0,
|
|
6867
6806
|
workInProgressRootRenderTargetTime = Infinity,
|
|
6868
6807
|
hasUncaughtError = !1,
|
|
@@ -6909,9 +6848,8 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6909
6848
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6910
6849
|
if (null === root) return null;
|
|
6911
6850
|
markRootUpdated(root, lane, eventTime);
|
|
6912
|
-
0
|
|
6913
|
-
|
|
6914
|
-
: (isDevToolsPresent && addFiberToLanesMap(root, fiber, lane),
|
|
6851
|
+
if (0 === (executionContext & 2) || root !== workInProgressRoot)
|
|
6852
|
+
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane),
|
|
6915
6853
|
root === workInProgressRoot &&
|
|
6916
6854
|
(0 === (executionContext & 2) &&
|
|
6917
6855
|
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
@@ -6922,7 +6860,7 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6922
6860
|
0 === executionContext &&
|
|
6923
6861
|
0 === (fiber.mode & 1) &&
|
|
6924
6862
|
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6925
|
-
includesLegacySyncCallbacks && flushSyncCallbacks())
|
|
6863
|
+
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6926
6864
|
return root;
|
|
6927
6865
|
}
|
|
6928
6866
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6948,12 +6886,12 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6948
6886
|
0 < lanes;
|
|
6949
6887
|
|
|
6950
6888
|
) {
|
|
6951
|
-
var index$
|
|
6952
|
-
lane = 1 << index$
|
|
6953
|
-
expirationTime = expirationTimes[index$
|
|
6889
|
+
var index$7 = 31 - clz32(lanes),
|
|
6890
|
+
lane = 1 << index$7,
|
|
6891
|
+
expirationTime = expirationTimes[index$7];
|
|
6954
6892
|
if (-1 === expirationTime) {
|
|
6955
6893
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6956
|
-
expirationTimes[index$
|
|
6894
|
+
expirationTimes[index$7] = computeExpirationTime(lane, currentTime);
|
|
6957
6895
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6958
6896
|
lanes &= ~lane;
|
|
6959
6897
|
}
|
|
@@ -7048,7 +6986,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7048
6986
|
workInProgressRootRenderTargetTime = now() + 500;
|
|
7049
6987
|
prepareFreshStack(root, didTimeout);
|
|
7050
6988
|
}
|
|
7051
|
-
|
|
6989
|
+
markRenderStarted(didTimeout);
|
|
7052
6990
|
do
|
|
7053
6991
|
try {
|
|
7054
6992
|
workLoopConcurrent();
|
|
@@ -7061,9 +6999,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7061
6999
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
7062
7000
|
executionContext = prevExecutionContext;
|
|
7063
7001
|
null !== workInProgress
|
|
7064
|
-
? (
|
|
7002
|
+
? (null !== injectedProfilingHooks &&
|
|
7003
|
+
"function" === typeof injectedProfilingHooks.markRenderYielded &&
|
|
7004
|
+
injectedProfilingHooks.markRenderYielded(),
|
|
7065
7005
|
(didTimeout = 0))
|
|
7066
|
-
: (
|
|
7006
|
+
: (markRenderStopped(),
|
|
7067
7007
|
(workInProgressRoot = null),
|
|
7068
7008
|
(workInProgressRootRenderLanes = 0),
|
|
7069
7009
|
(didTimeout = workInProgressRootExitStatus));
|
|
@@ -7105,7 +7045,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7105
7045
|
case 1:
|
|
7106
7046
|
throw Error("Root did not complete. This is a bug in React.");
|
|
7107
7047
|
case 2:
|
|
7108
|
-
commitRoot(root);
|
|
7048
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
7109
7049
|
break;
|
|
7110
7050
|
case 3:
|
|
7111
7051
|
markRootSuspended$1(root, lanes);
|
|
@@ -7122,12 +7062,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7122
7062
|
break;
|
|
7123
7063
|
}
|
|
7124
7064
|
root.timeoutHandle = scheduleTimeout(
|
|
7125
|
-
commitRoot.bind(null, root),
|
|
7065
|
+
commitRoot.bind(null, root, workInProgressRootRecoverableErrors),
|
|
7126
7066
|
didTimeout
|
|
7127
7067
|
);
|
|
7128
7068
|
break;
|
|
7129
7069
|
}
|
|
7130
|
-
commitRoot(root);
|
|
7070
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
7131
7071
|
break;
|
|
7132
7072
|
case 4:
|
|
7133
7073
|
markRootSuspended$1(root, lanes);
|
|
@@ -7158,15 +7098,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7158
7098
|
: 1960 * ceil(lanes / 1960)) - lanes;
|
|
7159
7099
|
if (10 < lanes) {
|
|
7160
7100
|
root.timeoutHandle = scheduleTimeout(
|
|
7161
|
-
commitRoot.bind(null, root),
|
|
7101
|
+
commitRoot.bind(null, root, workInProgressRootRecoverableErrors),
|
|
7162
7102
|
lanes
|
|
7163
7103
|
);
|
|
7164
7104
|
break;
|
|
7165
7105
|
}
|
|
7166
|
-
commitRoot(root);
|
|
7106
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
7167
7107
|
break;
|
|
7168
7108
|
case 5:
|
|
7169
|
-
commitRoot(root);
|
|
7109
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
7170
7110
|
break;
|
|
7171
7111
|
default:
|
|
7172
7112
|
throw Error("Unknown root exit status.");
|
|
@@ -7181,15 +7121,18 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
7181
7121
|
var prevExecutionContext = executionContext;
|
|
7182
7122
|
executionContext |= 8;
|
|
7183
7123
|
root.isDehydrated && (root.isDehydrated = !1);
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7124
|
+
var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;
|
|
7125
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
7126
|
+
2 !== root &&
|
|
7127
|
+
null !== errorsFromFirstAttempt &&
|
|
7128
|
+
(null === workInProgressRootConcurrentErrors
|
|
7129
|
+
? (workInProgressRootRecoverableErrors = errorsFromFirstAttempt)
|
|
7130
|
+
: (workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
|
|
7131
|
+
null,
|
|
7132
|
+
errorsFromFirstAttempt
|
|
7133
|
+
)));
|
|
7191
7134
|
executionContext = prevExecutionContext;
|
|
7192
|
-
return
|
|
7135
|
+
return root;
|
|
7193
7136
|
}
|
|
7194
7137
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
7195
7138
|
for (var node = finishedWork; ; ) {
|
|
@@ -7205,7 +7148,7 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
7205
7148
|
check = check.value;
|
|
7206
7149
|
try {
|
|
7207
7150
|
if (!objectIs(getSnapshot(), check)) return !1;
|
|
7208
|
-
} catch (error
|
|
7151
|
+
} catch (error) {
|
|
7209
7152
|
return !1;
|
|
7210
7153
|
}
|
|
7211
7154
|
}
|
|
@@ -7231,9 +7174,9 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
7231
7174
|
root.suspendedLanes |= suspendedLanes;
|
|
7232
7175
|
root.pingedLanes &= ~suspendedLanes;
|
|
7233
7176
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
7234
|
-
var index$
|
|
7235
|
-
lane = 1 << index$
|
|
7236
|
-
root[index$
|
|
7177
|
+
var index$8 = 31 - clz32(suspendedLanes),
|
|
7178
|
+
lane = 1 << index$8;
|
|
7179
|
+
root[index$8] = -1;
|
|
7237
7180
|
suspendedLanes &= ~lane;
|
|
7238
7181
|
}
|
|
7239
7182
|
}
|
|
@@ -7260,7 +7203,7 @@ function performSyncWorkOnRoot(root) {
|
|
|
7260
7203
|
exitStatus);
|
|
7261
7204
|
root.finishedWork = root.current.alternate;
|
|
7262
7205
|
root.finishedLanes = lanes;
|
|
7263
|
-
commitRoot(root);
|
|
7206
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
7264
7207
|
ensureRootIsScheduled(root, now());
|
|
7265
7208
|
return null;
|
|
7266
7209
|
}
|
|
@@ -7317,7 +7260,8 @@ function prepareFreshStack(root, lanes) {
|
|
|
7317
7260
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
7318
7261
|
workInProgressRootExitStatus = 0;
|
|
7319
7262
|
workInProgressRootFatalError = null;
|
|
7320
|
-
workInProgressRootPingedLanes =
|
|
7263
|
+
workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
7264
|
+
workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null;
|
|
7321
7265
|
if (null !== interleavedQueues) {
|
|
7322
7266
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
7323
7267
|
if (
|
|
@@ -7338,7 +7282,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
7338
7282
|
interleavedQueues = null;
|
|
7339
7283
|
}
|
|
7340
7284
|
}
|
|
7341
|
-
function handleError(root, thrownValue
|
|
7285
|
+
function handleError(root, thrownValue) {
|
|
7342
7286
|
do {
|
|
7343
7287
|
var erroredWork = workInProgress;
|
|
7344
7288
|
try {
|
|
@@ -7362,7 +7306,7 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7362
7306
|
ReactCurrentOwner$2.current = null;
|
|
7363
7307
|
if (null === erroredWork || null === erroredWork.return) {
|
|
7364
7308
|
workInProgressRootExitStatus = 1;
|
|
7365
|
-
workInProgressRootFatalError = thrownValue
|
|
7309
|
+
workInProgressRootFatalError = thrownValue;
|
|
7366
7310
|
workInProgress = null;
|
|
7367
7311
|
break;
|
|
7368
7312
|
}
|
|
@@ -7370,46 +7314,41 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7370
7314
|
stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0);
|
|
7371
7315
|
markComponentRenderStopped();
|
|
7372
7316
|
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
|
-
}
|
|
7317
|
+
null !== thrownValue &&
|
|
7318
|
+
"object" === typeof thrownValue &&
|
|
7319
|
+
"function" === typeof thrownValue.then
|
|
7320
|
+
) {
|
|
7321
|
+
var wakeable = thrownValue;
|
|
7322
|
+
null !== injectedProfilingHooks &&
|
|
7323
|
+
"function" === typeof injectedProfilingHooks.markComponentSuspended &&
|
|
7324
|
+
injectedProfilingHooks.markComponentSuspended(
|
|
7325
|
+
erroredWork,
|
|
7326
|
+
wakeable,
|
|
7327
|
+
workInProgressRootRenderLanes
|
|
7328
|
+
);
|
|
7329
|
+
} else
|
|
7330
|
+
null !== injectedProfilingHooks &&
|
|
7331
|
+
"function" === typeof injectedProfilingHooks.markComponentErrored &&
|
|
7332
|
+
injectedProfilingHooks.markComponentErrored(
|
|
7333
|
+
erroredWork,
|
|
7334
|
+
thrownValue,
|
|
7335
|
+
workInProgressRootRenderLanes
|
|
7336
|
+
);
|
|
7397
7337
|
a: {
|
|
7398
|
-
|
|
7338
|
+
wakeable = root;
|
|
7399
7339
|
var returnFiber = erroredWork.return,
|
|
7400
7340
|
sourceFiber = erroredWork,
|
|
7401
|
-
value = thrownValue
|
|
7402
|
-
thrownValue
|
|
7341
|
+
value = thrownValue;
|
|
7342
|
+
thrownValue = workInProgressRootRenderLanes;
|
|
7403
7343
|
sourceFiber.flags |= 32768;
|
|
7404
|
-
isDevToolsPresent &&
|
|
7405
|
-
restorePendingUpdaters(thrownValue, thrownValue$jscomp$0);
|
|
7344
|
+
isDevToolsPresent && restorePendingUpdaters(wakeable, thrownValue);
|
|
7406
7345
|
if (
|
|
7407
7346
|
null !== value &&
|
|
7408
7347
|
"object" === typeof value &&
|
|
7409
7348
|
"function" === typeof value.then
|
|
7410
7349
|
) {
|
|
7411
|
-
|
|
7412
|
-
|
|
7350
|
+
var wakeable$jscomp$0 = value,
|
|
7351
|
+
sourceFiber$jscomp$0 = sourceFiber,
|
|
7413
7352
|
tag = sourceFiber$jscomp$0.tag;
|
|
7414
7353
|
if (
|
|
7415
7354
|
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
@@ -7448,7 +7387,7 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7448
7387
|
if (null !== suspenseBoundary) {
|
|
7449
7388
|
suspenseBoundary.flags &= -257;
|
|
7450
7389
|
value = suspenseBoundary;
|
|
7451
|
-
sourceFiber$jscomp$0 = thrownValue
|
|
7390
|
+
sourceFiber$jscomp$0 = thrownValue;
|
|
7452
7391
|
if (0 === (value.mode & 1))
|
|
7453
7392
|
if (value === returnFiber) value.flags |= 65536;
|
|
7454
7393
|
else {
|
|
@@ -7468,34 +7407,34 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7468
7407
|
sourceFiber = void 0;
|
|
7469
7408
|
value = suspenseBoundary;
|
|
7470
7409
|
if (value.mode & 1) {
|
|
7471
|
-
var pingCache =
|
|
7410
|
+
var pingCache = wakeable.pingCache;
|
|
7472
7411
|
null === pingCache
|
|
7473
|
-
? ((pingCache =
|
|
7412
|
+
? ((pingCache = wakeable.pingCache = new PossiblyWeakMap()),
|
|
7474
7413
|
(sourceFiber = new Set()),
|
|
7475
|
-
pingCache.set(
|
|
7476
|
-
: ((sourceFiber = pingCache.get(
|
|
7414
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber))
|
|
7415
|
+
: ((sourceFiber = pingCache.get(wakeable$jscomp$0)),
|
|
7477
7416
|
void 0 === sourceFiber &&
|
|
7478
7417
|
((sourceFiber = new Set()),
|
|
7479
|
-
pingCache.set(
|
|
7480
|
-
if (!sourceFiber.has(thrownValue
|
|
7481
|
-
sourceFiber.add(thrownValue
|
|
7418
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber)));
|
|
7419
|
+
if (!sourceFiber.has(thrownValue)) {
|
|
7420
|
+
sourceFiber.add(thrownValue);
|
|
7482
7421
|
var ping = pingSuspendedRoot.bind(
|
|
7483
7422
|
null,
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
thrownValue
|
|
7423
|
+
wakeable,
|
|
7424
|
+
wakeable$jscomp$0,
|
|
7425
|
+
thrownValue
|
|
7487
7426
|
);
|
|
7488
7427
|
isDevToolsPresent &&
|
|
7489
|
-
restorePendingUpdaters(
|
|
7490
|
-
|
|
7428
|
+
restorePendingUpdaters(wakeable, thrownValue);
|
|
7429
|
+
wakeable$jscomp$0.then(ping, ping);
|
|
7491
7430
|
}
|
|
7492
7431
|
}
|
|
7493
7432
|
var wakeables = value.updateQueue;
|
|
7494
7433
|
if (null === wakeables) {
|
|
7495
7434
|
var updateQueue = new Set();
|
|
7496
|
-
updateQueue.add(
|
|
7435
|
+
updateQueue.add(wakeable$jscomp$0);
|
|
7497
7436
|
value.updateQueue = updateQueue;
|
|
7498
|
-
} else wakeables.add(
|
|
7437
|
+
} else wakeables.add(wakeable$jscomp$0);
|
|
7499
7438
|
break a;
|
|
7500
7439
|
} else
|
|
7501
7440
|
value = Error(
|
|
@@ -7503,54 +7442,58 @@ function handleError(root, thrownValue$jscomp$0) {
|
|
|
7503
7442
|
" 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."
|
|
7504
7443
|
);
|
|
7505
7444
|
}
|
|
7445
|
+
wakeable = value;
|
|
7506
7446
|
4 !== workInProgressRootExitStatus &&
|
|
7507
7447
|
(workInProgressRootExitStatus = 2);
|
|
7448
|
+
null === workInProgressRootConcurrentErrors
|
|
7449
|
+
? (workInProgressRootConcurrentErrors = [wakeable])
|
|
7450
|
+
: workInProgressRootConcurrentErrors.push(wakeable);
|
|
7508
7451
|
value = createCapturedValue(value, sourceFiber);
|
|
7509
|
-
|
|
7452
|
+
wakeable = returnFiber;
|
|
7510
7453
|
do {
|
|
7511
|
-
switch (
|
|
7454
|
+
switch (wakeable.tag) {
|
|
7512
7455
|
case 3:
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
thrownValue
|
|
7516
|
-
|
|
7456
|
+
wakeable$jscomp$0 = value;
|
|
7457
|
+
wakeable.flags |= 65536;
|
|
7458
|
+
thrownValue &= -thrownValue;
|
|
7459
|
+
wakeable.lanes |= thrownValue;
|
|
7517
7460
|
var update$jscomp$0 = createRootErrorUpdate(
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
thrownValue
|
|
7461
|
+
wakeable,
|
|
7462
|
+
wakeable$jscomp$0,
|
|
7463
|
+
thrownValue
|
|
7521
7464
|
);
|
|
7522
|
-
enqueueCapturedUpdate(
|
|
7465
|
+
enqueueCapturedUpdate(wakeable, update$jscomp$0);
|
|
7523
7466
|
break a;
|
|
7524
7467
|
case 1:
|
|
7525
|
-
|
|
7526
|
-
var ctor =
|
|
7527
|
-
instance =
|
|
7468
|
+
wakeable$jscomp$0 = value;
|
|
7469
|
+
var ctor = wakeable.type,
|
|
7470
|
+
instance = wakeable.stateNode;
|
|
7528
7471
|
if (
|
|
7529
|
-
0 === (
|
|
7472
|
+
0 === (wakeable.flags & 128) &&
|
|
7530
7473
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
7531
7474
|
(null !== instance &&
|
|
7532
7475
|
"function" === typeof instance.componentDidCatch &&
|
|
7533
7476
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7534
7477
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
7535
7478
|
) {
|
|
7536
|
-
|
|
7537
|
-
thrownValue
|
|
7538
|
-
|
|
7539
|
-
var update$
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
thrownValue
|
|
7479
|
+
wakeable.flags |= 65536;
|
|
7480
|
+
thrownValue &= -thrownValue;
|
|
7481
|
+
wakeable.lanes |= thrownValue;
|
|
7482
|
+
var update$36 = createClassErrorUpdate(
|
|
7483
|
+
wakeable,
|
|
7484
|
+
wakeable$jscomp$0,
|
|
7485
|
+
thrownValue
|
|
7543
7486
|
);
|
|
7544
|
-
enqueueCapturedUpdate(
|
|
7487
|
+
enqueueCapturedUpdate(wakeable, update$36);
|
|
7545
7488
|
break a;
|
|
7546
7489
|
}
|
|
7547
7490
|
}
|
|
7548
|
-
|
|
7549
|
-
} while (null !==
|
|
7491
|
+
wakeable = wakeable.return;
|
|
7492
|
+
} while (null !== wakeable);
|
|
7550
7493
|
}
|
|
7551
7494
|
completeUnitOfWork(erroredWork);
|
|
7552
7495
|
} catch (yetAnotherThrownValue) {
|
|
7553
|
-
thrownValue
|
|
7496
|
+
thrownValue = yetAnotherThrownValue;
|
|
7554
7497
|
workInProgress === erroredWork &&
|
|
7555
7498
|
null !== erroredWork &&
|
|
7556
7499
|
(workInProgress = erroredWork = erroredWork.return);
|
|
@@ -7578,7 +7521,7 @@ function renderRootSync(root, lanes) {
|
|
|
7578
7521
|
}
|
|
7579
7522
|
prepareFreshStack(root, lanes);
|
|
7580
7523
|
}
|
|
7581
|
-
|
|
7524
|
+
markRenderStarted(lanes);
|
|
7582
7525
|
do
|
|
7583
7526
|
try {
|
|
7584
7527
|
workLoopSync();
|
|
@@ -7594,7 +7537,7 @@ function renderRootSync(root, lanes) {
|
|
|
7594
7537
|
throw Error(
|
|
7595
7538
|
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
|
|
7596
7539
|
);
|
|
7597
|
-
|
|
7540
|
+
markRenderStopped();
|
|
7598
7541
|
workInProgressRoot = null;
|
|
7599
7542
|
workInProgressRootRenderLanes = 0;
|
|
7600
7543
|
return workInProgressRootExitStatus;
|
|
@@ -7667,35 +7610,30 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7667
7610
|
} while (null !== completedWork);
|
|
7668
7611
|
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
|
|
7669
7612
|
}
|
|
7670
|
-
function commitRoot(root) {
|
|
7613
|
+
function commitRoot(root, recoverableErrors) {
|
|
7671
7614
|
var previousUpdateLanePriority = currentUpdatePriority,
|
|
7672
7615
|
prevTransition = ReactCurrentBatchConfig$2.transition;
|
|
7673
7616
|
try {
|
|
7674
7617
|
(ReactCurrentBatchConfig$2.transition = 0),
|
|
7675
7618
|
(currentUpdatePriority = 1),
|
|
7676
|
-
commitRootImpl(root, previousUpdateLanePriority);
|
|
7619
|
+
commitRootImpl(root, recoverableErrors, previousUpdateLanePriority);
|
|
7677
7620
|
} finally {
|
|
7678
7621
|
(ReactCurrentBatchConfig$2.transition = prevTransition),
|
|
7679
7622
|
(currentUpdatePriority = previousUpdateLanePriority);
|
|
7680
7623
|
}
|
|
7681
7624
|
return null;
|
|
7682
7625
|
}
|
|
7683
|
-
function commitRootImpl(root, renderPriorityLevel) {
|
|
7626
|
+
function commitRootImpl(root, recoverableErrors, renderPriorityLevel) {
|
|
7684
7627
|
do flushPassiveEffects();
|
|
7685
7628
|
while (null !== rootWithPendingPassiveEffects);
|
|
7686
7629
|
if (0 !== (executionContext & 6))
|
|
7687
7630
|
throw Error("Should not already be working.");
|
|
7688
7631
|
var finishedWork = root.finishedWork,
|
|
7689
7632
|
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;
|
|
7633
|
+
null !== injectedProfilingHooks &&
|
|
7634
|
+
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
|
7635
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
|
7636
|
+
if (null === finishedWork) return markCommitStopped(), null;
|
|
7699
7637
|
root.finishedWork = null;
|
|
7700
7638
|
root.finishedLanes = 0;
|
|
7701
7639
|
if (finishedWork === root.current)
|
|
@@ -7730,9 +7668,13 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7730
7668
|
commitTime = now$1();
|
|
7731
7669
|
commitMutationEffects(root, finishedWork, lanes);
|
|
7732
7670
|
root.current = finishedWork;
|
|
7733
|
-
|
|
7671
|
+
null !== injectedProfilingHooks &&
|
|
7672
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
|
7673
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes);
|
|
7734
7674
|
commitLayoutEffects(finishedWork, root, lanes);
|
|
7735
|
-
|
|
7675
|
+
null !== injectedProfilingHooks &&
|
|
7676
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
|
7677
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
|
7736
7678
|
requestPaint();
|
|
7737
7679
|
executionContext = prevExecutionContext;
|
|
7738
7680
|
currentUpdatePriority = previousPriority;
|
|
@@ -7747,6 +7689,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7747
7689
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
7748
7690
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
|
7749
7691
|
ensureRootIsScheduled(root, now());
|
|
7692
|
+
if (null !== recoverableErrors)
|
|
7693
|
+
for (
|
|
7694
|
+
renderPriorityLevel = 0;
|
|
7695
|
+
renderPriorityLevel < recoverableErrors.length;
|
|
7696
|
+
renderPriorityLevel++
|
|
7697
|
+
)
|
|
7698
|
+
(finishedWork = recoverableErrors[renderPriorityLevel]),
|
|
7699
|
+
(lanes = root.onRecoverableError),
|
|
7700
|
+
null !== lanes && lanes(finishedWork);
|
|
7750
7701
|
if (hasUncaughtError)
|
|
7751
7702
|
throw ((hasUncaughtError = !1),
|
|
7752
7703
|
(root = firstUncaughtError),
|
|
@@ -7763,7 +7714,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7763
7714
|
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7764
7715
|
: (nestedUpdateCount = 0);
|
|
7765
7716
|
flushSyncCallbacks();
|
|
7766
|
-
|
|
7717
|
+
markCommitStopped();
|
|
7767
7718
|
return null;
|
|
7768
7719
|
}
|
|
7769
7720
|
function flushPassiveEffects() {
|
|
@@ -7783,8 +7734,10 @@ function flushPassiveEffects() {
|
|
|
7783
7734
|
pendingPassiveEffectsLanes = 0;
|
|
7784
7735
|
if (0 !== (executionContext & 6))
|
|
7785
7736
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
7786
|
-
|
|
7787
|
-
|
|
7737
|
+
null !== injectedProfilingHooks &&
|
|
7738
|
+
"function" ===
|
|
7739
|
+
typeof injectedProfilingHooks.markPassiveEffectsStarted &&
|
|
7740
|
+
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
|
7788
7741
|
lanes = executionContext;
|
|
7789
7742
|
executionContext |= 4;
|
|
7790
7743
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
@@ -7895,12 +7848,8 @@ function flushPassiveEffects() {
|
|
|
7895
7848
|
}
|
|
7896
7849
|
} else commitHookEffectListMount(9, fiberToDelete);
|
|
7897
7850
|
}
|
|
7898
|
-
} catch (error
|
|
7899
|
-
captureCommitPhaseError(
|
|
7900
|
-
deletions,
|
|
7901
|
-
deletions.return,
|
|
7902
|
-
error$114
|
|
7903
|
-
);
|
|
7851
|
+
} catch (error) {
|
|
7852
|
+
captureCommitPhaseError(deletions, deletions.return, error);
|
|
7904
7853
|
}
|
|
7905
7854
|
if (deletions === child) {
|
|
7906
7855
|
nextEffect = null;
|
|
@@ -7952,7 +7901,10 @@ function flushPassiveEffects() {
|
|
|
7952
7901
|
}
|
|
7953
7902
|
}
|
|
7954
7903
|
}
|
|
7955
|
-
|
|
7904
|
+
null !== injectedProfilingHooks &&
|
|
7905
|
+
"function" ===
|
|
7906
|
+
typeof injectedProfilingHooks.markPassiveEffectsStopped &&
|
|
7907
|
+
injectedProfilingHooks.markPassiveEffectsStopped();
|
|
7956
7908
|
executionContext = lanes;
|
|
7957
7909
|
flushSyncCallbacks();
|
|
7958
7910
|
if (
|
|
@@ -8400,7 +8352,11 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
8400
8352
|
newValue.lanes |= renderLanes;
|
|
8401
8353
|
dependency = newValue.alternate;
|
|
8402
8354
|
null !== dependency && (dependency.lanes |= renderLanes);
|
|
8403
|
-
|
|
8355
|
+
scheduleContextWorkOnParentPath(
|
|
8356
|
+
newValue.return,
|
|
8357
|
+
renderLanes,
|
|
8358
|
+
workInProgress
|
|
8359
|
+
);
|
|
8404
8360
|
list.lanes |= renderLanes;
|
|
8405
8361
|
break;
|
|
8406
8362
|
}
|
|
@@ -8714,7 +8670,13 @@ function createFiberFromPortal(portal, mode, lanes) {
|
|
|
8714
8670
|
};
|
|
8715
8671
|
return mode;
|
|
8716
8672
|
}
|
|
8717
|
-
function FiberRootNode(
|
|
8673
|
+
function FiberRootNode(
|
|
8674
|
+
containerInfo,
|
|
8675
|
+
tag,
|
|
8676
|
+
hydrate,
|
|
8677
|
+
identifierPrefix,
|
|
8678
|
+
onRecoverableError
|
|
8679
|
+
) {
|
|
8718
8680
|
this.tag = tag;
|
|
8719
8681
|
this.containerInfo = containerInfo;
|
|
8720
8682
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
@@ -8728,6 +8690,7 @@ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
|
|
|
8728
8690
|
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
8729
8691
|
this.entanglements = createLaneMap(0);
|
|
8730
8692
|
this.identifierPrefix = identifierPrefix;
|
|
8693
|
+
this.onRecoverableError = onRecoverableError;
|
|
8731
8694
|
this.passiveEffectDuration = this.effectDuration = 0;
|
|
8732
8695
|
this.memoizedUpdaters = new Set();
|
|
8733
8696
|
containerInfo = this.pendingUpdatersLaneMap = [];
|
|
@@ -8761,7 +8724,9 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8761
8724
|
var current = container.current,
|
|
8762
8725
|
eventTime = requestEventTime(),
|
|
8763
8726
|
lane = requestUpdateLane(current);
|
|
8764
|
-
|
|
8727
|
+
null !== injectedProfilingHooks &&
|
|
8728
|
+
"function" === typeof injectedProfilingHooks.markRenderScheduled &&
|
|
8729
|
+
injectedProfilingHooks.markRenderScheduled(lane);
|
|
8765
8730
|
a: if (parentComponent) {
|
|
8766
8731
|
parentComponent = parentComponent._reactInternals;
|
|
8767
8732
|
b: {
|
|
@@ -8943,10 +8908,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8943
8908
|
}
|
|
8944
8909
|
};
|
|
8945
8910
|
var roots = new Map(),
|
|
8946
|
-
devToolsConfig$jscomp$
|
|
8911
|
+
devToolsConfig$jscomp$inline_1045 = {
|
|
8947
8912
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8948
8913
|
bundleType: 0,
|
|
8949
|
-
version: "18.0.0-rc.0-
|
|
8914
|
+
version: "18.0.0-rc.0-a3bde7974-20220208",
|
|
8950
8915
|
rendererPackageName: "react-native-renderer",
|
|
8951
8916
|
rendererConfig: {
|
|
8952
8917
|
getInspectorDataForViewTag: function() {
|
|
@@ -8961,11 +8926,24 @@ var roots = new Map(),
|
|
|
8961
8926
|
}.bind(null, findNodeHandle)
|
|
8962
8927
|
}
|
|
8963
8928
|
};
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8929
|
+
(function(internals) {
|
|
8930
|
+
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
|
|
8931
|
+
var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8932
|
+
if (hook.isDisabled || !hook.supportsFiber) return !0;
|
|
8933
|
+
try {
|
|
8934
|
+
(internals = Object.assign({}, internals, {
|
|
8935
|
+
getLaneLabelMap: getLaneLabelMap,
|
|
8936
|
+
injectProfilingHooks: injectProfilingHooks
|
|
8937
|
+
})),
|
|
8938
|
+
(rendererID = hook.inject(internals)),
|
|
8939
|
+
(injectedHook = hook);
|
|
8940
|
+
} catch (err) {}
|
|
8941
|
+
return hook.checkDCE ? !0 : !1;
|
|
8942
|
+
})({
|
|
8943
|
+
bundleType: devToolsConfig$jscomp$inline_1045.bundleType,
|
|
8944
|
+
version: devToolsConfig$jscomp$inline_1045.version,
|
|
8945
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1045.rendererPackageName,
|
|
8946
|
+
rendererConfig: devToolsConfig$jscomp$inline_1045.rendererConfig,
|
|
8969
8947
|
overrideHookState: null,
|
|
8970
8948
|
overrideHookStateDeletePath: null,
|
|
8971
8949
|
overrideHookStateRenamePath: null,
|
|
@@ -8981,28 +8959,15 @@ var internals$jscomp$inline_1358 = {
|
|
|
8981
8959
|
return null === fiber ? null : fiber.stateNode;
|
|
8982
8960
|
},
|
|
8983
8961
|
findFiberByHostInstance:
|
|
8984
|
-
devToolsConfig$jscomp$
|
|
8962
|
+
devToolsConfig$jscomp$inline_1045.findFiberByHostInstance ||
|
|
8985
8963
|
emptyFindFiberByHostInstance,
|
|
8986
8964
|
findHostInstancesForRefresh: null,
|
|
8987
8965
|
scheduleRefresh: null,
|
|
8988
8966
|
scheduleRoot: null,
|
|
8989
8967
|
setRefreshHandler: null,
|
|
8990
8968
|
getCurrentFiber: null,
|
|
8991
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8992
|
-
};
|
|
8993
|
-
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8994
|
-
var hook$jscomp$inline_1359 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8995
|
-
if (
|
|
8996
|
-
!hook$jscomp$inline_1359.isDisabled &&
|
|
8997
|
-
hook$jscomp$inline_1359.supportsFiber
|
|
8998
|
-
)
|
|
8999
|
-
try {
|
|
9000
|
-
(rendererID = hook$jscomp$inline_1359.inject(
|
|
9001
|
-
internals$jscomp$inline_1358
|
|
9002
|
-
)),
|
|
9003
|
-
(injectedHook = hook$jscomp$inline_1359);
|
|
9004
|
-
} catch (err) {}
|
|
9005
|
-
}
|
|
8969
|
+
reconcilerVersion: "18.0.0-rc.0-a3bde7974-20220208"
|
|
8970
|
+
});
|
|
9006
8971
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
9007
8972
|
computeComponentStackForErrorReporting: function(reactTag) {
|
|
9008
8973
|
return (reactTag = getInstanceFromTag(reactTag))
|
|
@@ -9046,7 +9011,7 @@ exports.findNodeHandle = findNodeHandle;
|
|
|
9046
9011
|
exports.render = function(element, containerTag, callback) {
|
|
9047
9012
|
var root = roots.get(containerTag);
|
|
9048
9013
|
if (!root) {
|
|
9049
|
-
root = new FiberRootNode(containerTag, 0, !1, "");
|
|
9014
|
+
root = new FiberRootNode(containerTag, 0, !1, "", null);
|
|
9050
9015
|
var JSCompiler_inline_result = 0;
|
|
9051
9016
|
isDevToolsPresent && (JSCompiler_inline_result |= 2);
|
|
9052
9017
|
JSCompiler_inline_result = createFiber(
|