react-native-tvos 0.69.8-2 → 0.71.7-0rc0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +80 -0
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +4 -3
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -0
- package/Libraries/Alert/Alert.d.ts +91 -0
- package/Libraries/Alert/Alert.js +25 -5
- package/Libraries/Alert/Alert.js.flow +49 -0
- package/Libraries/Alert/NativeAlertManager.js +3 -0
- package/Libraries/Alert/RCTAlertManager.ios.js +2 -1
- package/Libraries/Animated/Animated.d.ts +615 -0
- package/Libraries/Animated/Animated.js +13 -11
- package/Libraries/Animated/AnimatedEvent.js +19 -21
- package/Libraries/Animated/AnimatedImplementation.js +38 -26
- package/Libraries/Animated/AnimatedMock.js +15 -12
- package/Libraries/Animated/AnimatedWeb.js +2 -2
- package/Libraries/Animated/Easing.d.ts +37 -0
- package/Libraries/Animated/Easing.js +2 -2
- package/Libraries/Animated/NativeAnimatedHelper.js +247 -112
- package/Libraries/Animated/NativeAnimatedModule.js +4 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +4 -0
- package/Libraries/Animated/SpringConfig.js +2 -7
- package/Libraries/Animated/animations/Animation.js +3 -4
- package/Libraries/Animated/animations/DecayAnimation.js +5 -8
- package/Libraries/Animated/animations/SpringAnimation.js +12 -17
- package/Libraries/Animated/animations/TimingAnimation.js +12 -16
- package/Libraries/Animated/bezier.js +2 -2
- package/Libraries/Animated/components/AnimatedFlatList.js +5 -6
- package/Libraries/Animated/components/AnimatedImage.js +5 -6
- package/Libraries/Animated/components/AnimatedScrollView.js +110 -14
- package/Libraries/Animated/components/AnimatedSectionList.js +4 -5
- package/Libraries/Animated/components/AnimatedText.js +5 -6
- package/Libraries/Animated/components/AnimatedView.js +5 -6
- package/Libraries/Animated/createAnimatedComponent.js +14 -14
- package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +2 -2
- package/Libraries/Animated/nodes/AnimatedAddition.js +9 -9
- package/Libraries/Animated/nodes/AnimatedColor.js +56 -35
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +9 -9
- package/Libraries/Animated/nodes/AnimatedDivision.js +10 -10
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +28 -30
- package/Libraries/Animated/nodes/AnimatedModulo.js +9 -9
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +10 -11
- package/Libraries/Animated/nodes/AnimatedNode.js +10 -8
- package/Libraries/Animated/nodes/AnimatedProps.js +15 -25
- package/Libraries/Animated/nodes/AnimatedStyle.js +14 -21
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +10 -10
- package/Libraries/Animated/nodes/AnimatedTracking.js +8 -12
- package/Libraries/Animated/nodes/AnimatedTransform.js +39 -32
- package/Libraries/Animated/nodes/AnimatedValue.js +23 -15
- package/Libraries/Animated/nodes/AnimatedValueXY.js +31 -7
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +4 -5
- package/Libraries/Animated/useAnimatedProps.js +9 -16
- package/Libraries/Animated/useAnimatedValue.d.ts +15 -0
- package/Libraries/Animated/useAnimatedValue.js +25 -0
- package/Libraries/AppDelegate/RCTAppDelegate.h +123 -0
- package/Libraries/AppDelegate/RCTAppDelegate.mm +171 -0
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +73 -0
- package/Libraries/AppState/AppState.d.ts +58 -0
- package/Libraries/AppState/AppState.js +3 -39
- package/Libraries/AppState/NativeAppState.js +1 -0
- package/Libraries/BatchedBridge/MessageQueue.js +28 -18
- package/Libraries/BatchedBridge/NativeModules.d.ts +25 -0
- package/Libraries/BatchedBridge/NativeModules.js +4 -4
- package/Libraries/Blob/Blob.js +6 -0
- package/Libraries/Blob/BlobManager.js +5 -3
- package/Libraries/Blob/File.js +2 -3
- package/Libraries/Blob/FileReader.js +6 -11
- package/Libraries/Blob/NativeBlobModule.js +1 -0
- package/Libraries/Blob/NativeFileReaderModule.js +1 -0
- package/Libraries/Blob/RCTBlobCollector.h +0 -2
- package/Libraries/Blob/RCTBlobCollector.mm +27 -23
- package/Libraries/Blob/RCTBlobManager.h +1 -1
- package/Libraries/Blob/RCTBlobManager.mm +34 -28
- package/Libraries/Blob/RCTFileReaderModule.mm +24 -17
- package/Libraries/Blob/React-RCTBlob.podspec +5 -2
- package/Libraries/Blob/URL.js +11 -9
- package/Libraries/BugReporting/NativeBugReporting.js +1 -0
- package/Libraries/BugReporting/getReactData.js +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +157 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.flow.js +208 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +40 -28
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +1 -0
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +5 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +86 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.flow.js +58 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +7 -8
- package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +2 -3
- package/Libraries/Components/Button.d.ts +42 -0
- package/Libraries/Components/Button.flow.js +265 -0
- package/Libraries/Components/Button.js +62 -18
- package/Libraries/Components/Clipboard/Clipboard.d.ts +28 -0
- package/Libraries/Components/Clipboard/NativeClipboard.js +1 -0
- package/Libraries/Components/DatePicker/DatePickerIOS.android.js +4 -2
- package/Libraries/Components/DatePicker/DatePickerIOS.d.ts +92 -0
- package/Libraries/Components/{MaskedView/MaskedViewIOS.android.js → DatePicker/DatePickerIOS.flow.android.js} +3 -2
- package/Libraries/Components/DatePicker/DatePickerIOS.flow.ios.js +113 -0
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +8 -7
- package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +6 -5
- package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +1 -0
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +5 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +17 -14
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +141 -0
- package/Libraries/Components/Keyboard/Keyboard.d.ts +109 -0
- package/Libraries/Components/Keyboard/Keyboard.js +35 -19
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +46 -0
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +35 -15
- package/Libraries/Components/Keyboard/NativeKeyboardObserver.js +1 -0
- package/Libraries/Components/Pressable/Pressable.d.ts +167 -0
- package/Libraries/Components/Pressable/Pressable.js +77 -25
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +5 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +3 -3
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +83 -0
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +2 -2
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +1 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.d.ts +62 -0
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +4 -4
- package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +2 -2
- package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +5 -6
- package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +4 -4
- package/Libraries/Components/RefreshControl/RefreshControl.d.ts +87 -0
- package/Libraries/Components/RefreshControl/RefreshControl.js +4 -3
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
- package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +2 -4
- package/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +24 -0
- package/Libraries/Components/SafeAreaView/SafeAreaView.flow.js +19 -0
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +8 -34
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/ScrollView.d.ts +911 -0
- package/Libraries/Components/ScrollView/ScrollView.js +99 -62
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +3 -3
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +2 -1
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +3 -3
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +243 -267
- package/Libraries/Components/Slider/Slider.d.ts +132 -0
- package/Libraries/Components/Slider/Slider.js +9 -10
- package/Libraries/Components/Slider/SliderNativeComponent.js +4 -5
- package/Libraries/Components/Sound/NativeSoundManager.js +1 -0
- package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -0
- package/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js +1 -0
- package/Libraries/Components/StatusBar/StatusBar.d.ts +138 -0
- package/Libraries/Components/StatusBar/StatusBar.js +21 -18
- package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +8 -8
- package/Libraries/Components/Switch/Switch.d.ts +115 -0
- package/Libraries/Components/Switch/Switch.js +7 -14
- package/Libraries/Components/Switch/SwitchNativeComponent.js +9 -4
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +40 -12
- package/Libraries/Components/TextInput/InputAccessoryView.d.ts +34 -0
- package/Libraries/Components/TextInput/InputAccessoryView.js +17 -17
- package/Libraries/Components/TextInput/InputAccessoryView.js.flow +25 -0
- package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +3 -2
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +3 -2
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +3 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +855 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +1057 -0
- package/Libraries/Components/TextInput/TextInput.js +361 -39
- package/Libraries/Components/TextInput/TextInputNativeCommands.js +2 -2
- package/Libraries/Components/TextInput/TextInputState.js +22 -5
- package/Libraries/Components/ToastAndroid/NativeToastAndroid.js +1 -0
- package/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +47 -0
- package/Libraries/Components/Touchable/PooledClass.js +16 -4
- package/Libraries/Components/Touchable/Touchable.d.ts +90 -0
- package/Libraries/Components/Touchable/Touchable.flow.js +258 -0
- package/Libraries/Components/Touchable/Touchable.js +62 -14
- package/Libraries/Components/Touchable/TouchableBounce.js +44 -10
- package/Libraries/Components/Touchable/TouchableHighlight.d.ts +68 -0
- package/Libraries/Components/Touchable/TouchableHighlight.js +32 -10
- package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +114 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +60 -22
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +109 -0
- package/Libraries/Components/Touchable/TouchableOpacity.js +55 -18
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +143 -0
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +67 -13
- package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +1 -1
- package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +13 -9
- package/Libraries/Components/View/View.d.ts +29 -0
- package/Libraries/Components/View/View.js +92 -10
- package/Libraries/Components/View/ViewAccessibility.d.ts +373 -0
- package/Libraries/Components/View/ViewAccessibility.js +70 -1
- package/Libraries/Components/View/ViewNativeComponent.js +3 -3
- package/Libraries/Components/View/ViewPropTypes.d.ts +245 -0
- package/Libraries/Components/View/ViewPropTypes.js +107 -20
- package/Libraries/Core/Devtools/openFileInEditor.js +3 -0
- package/Libraries/Core/Devtools/parseErrorStack.js +1 -1
- package/Libraries/Core/Devtools/symbolicateStackTrace.js +2 -2
- package/Libraries/Core/ExceptionsManager.js +10 -0
- package/Libraries/Core/ExtendedError.js +11 -8
- package/Libraries/Core/InitializeCore.js +2 -1
- package/Libraries/Core/NativeExceptionsManager.js +3 -4
- package/Libraries/Core/RawEventEmitter.js +2 -1
- package/Libraries/Core/ReactFiberErrorDialog.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -0
- package/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js +1 -0
- package/Libraries/Core/Timers/JSTimers.js +15 -13
- package/Libraries/Core/Timers/NativeTiming.js +1 -0
- package/Libraries/Core/polyfillPromise.js +0 -32
- package/Libraries/Core/setUpBatchedBridge.js +6 -6
- package/Libraries/Core/setUpDeveloperTools.js +4 -6
- package/Libraries/Core/setUpPerformance.js +1 -1
- package/Libraries/Core/setUpReactDevTools.js +4 -1
- package/Libraries/Core/setUpRegeneratorRuntime.js +1 -1
- package/Libraries/Core/setUpTimers.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.d.ts +70 -0
- package/Libraries/EventEmitter/NativeEventEmitter.js +1 -13
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +30 -0
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +32 -0
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +1 -0
- package/Libraries/Events/EventPolyfill.js +1 -1
- package/Libraries/FBLazyVector/BUCK +2 -1
- package/Libraries/FBLazyVector/FBLazyVector/FBLazyIterator.h +9 -12
- package/Libraries/FBLazyVector/FBLazyVector/FBLazyVector.h +9 -6
- package/Libraries/HeapCapture/NativeJSCHeapCapture.js +1 -0
- package/Libraries/Image/AssetSourceResolver.js +6 -8
- package/Libraries/Image/Image.android.js +68 -48
- package/Libraries/Image/Image.d.ts +322 -0
- package/Libraries/Image/Image.flow.js +64 -0
- package/Libraries/Image/Image.ios.js +61 -31
- package/Libraries/Image/ImageBackground.js +18 -7
- package/Libraries/Image/ImageBackground.js.flow +17 -0
- package/Libraries/Image/ImageInjection.js +2 -1
- package/Libraries/Image/ImageProps.js +88 -5
- package/Libraries/Image/ImageResizeMode.d.ts +49 -0
- package/Libraries/Image/ImageSource.d.ts +76 -0
- package/Libraries/Image/ImageSource.js +7 -7
- package/Libraries/Image/ImageSourceUtils.js +80 -0
- package/Libraries/Image/ImageUtils.js +21 -0
- package/Libraries/Image/ImageViewNativeComponent.js +8 -5
- package/Libraries/Image/ImageViewNativeComponent.js.flow +45 -0
- package/Libraries/Image/NativeImageEditor.js +1 -0
- package/Libraries/Image/NativeImageLoaderAndroid.js +1 -0
- package/Libraries/Image/NativeImageLoaderIOS.js +1 -0
- package/Libraries/Image/NativeImageStoreAndroid.js +1 -0
- package/Libraries/Image/NativeImageStoreIOS.js +1 -0
- package/Libraries/Image/RCTAnimatedImage.m +5 -2
- package/Libraries/Image/RCTDisplayWeakRefreshable.h +1 -0
- package/Libraries/Image/RCTDisplayWeakRefreshable.m +4 -2
- package/Libraries/Image/RCTGIFImageDecoder.mm +7 -4
- package/Libraries/Image/RCTImageBlurUtils.m +22 -17
- package/Libraries/Image/RCTImageCache.h +7 -7
- package/Libraries/Image/RCTImageCache.m +16 -21
- package/Libraries/Image/RCTImageDataDecoder.h +1 -1
- package/Libraries/Image/RCTImageEditingManager.mm +53 -44
- package/Libraries/Image/RCTImageLoader.h +7 -7
- package/Libraries/Image/RCTImageLoader.mm +417 -367
- package/Libraries/Image/RCTImageLoaderProtocol.h +14 -17
- package/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +2 -2
- package/Libraries/Image/RCTImageStoreManager.mm +30 -25
- package/Libraries/Image/RCTImageURLLoader.h +11 -8
- package/Libraries/Image/RCTImageURLLoaderWithAttribution.h +6 -4
- package/Libraries/Image/RCTImageURLLoaderWithAttribution.mm +3 -1
- package/Libraries/Image/RCTImageUtils.h +19 -18
- package/Libraries/Image/RCTImageUtils.m +61 -67
- package/Libraries/Image/RCTImageView.h +2 -2
- package/Libraries/Image/RCTImageView.mm +50 -43
- package/Libraries/Image/RCTImageViewManager.mm +45 -41
- package/Libraries/Image/RCTLocalAssetImageLoader.mm +12 -10
- package/Libraries/Image/RCTResizeMode.h +1 -1
- package/Libraries/Image/RCTResizeMode.m +12 -8
- package/Libraries/Image/RCTUIImageViewAnimated.m +21 -13
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +4 -3
- package/Libraries/Image/TextInlineImageNativeComponent.js.flow +27 -0
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Image/resolveAssetSource.js +5 -5
- package/Libraries/Inspector/BorderBox.js +1 -1
- package/Libraries/Inspector/BoxInspector.js +3 -4
- package/Libraries/Inspector/DevtoolsOverlay.js +213 -0
- package/Libraries/Inspector/ElementBox.js +6 -7
- package/Libraries/Inspector/ElementProperties.js +10 -11
- package/Libraries/Inspector/Inspector.js +22 -108
- package/Libraries/Inspector/InspectorOverlay.js +5 -5
- package/Libraries/Inspector/InspectorPanel.js +12 -10
- package/Libraries/Inspector/NetworkOverlay.js +19 -10
- package/Libraries/Inspector/PerformanceOverlay.js +3 -3
- package/Libraries/Inspector/StyleInspector.js +2 -2
- package/Libraries/Inspector/getInspectorDataForViewAtPoint.js +71 -0
- package/Libraries/Interaction/BridgeSpyStallHandler.js +1 -1
- package/Libraries/Interaction/InteractionManager.d.ts +74 -0
- package/Libraries/Interaction/InteractionManager.js +8 -8
- package/Libraries/Interaction/NativeFrameRateLogger.js +1 -0
- package/Libraries/Interaction/PanResponder.d.ts +202 -0
- package/Libraries/Interaction/PanResponder.flow.js +257 -0
- package/Libraries/Interaction/PanResponder.js +20 -17
- package/Libraries/JSInspector/JSInspector.js +0 -3
- package/Libraries/JSInspector/NetworkAgent.js +3 -3
- package/Libraries/LayoutAnimation/LayoutAnimation.d.ts +84 -0
- package/Libraries/LayoutAnimation/LayoutAnimation.js +4 -3
- package/Libraries/Linking/Linking.d.ts +61 -0
- package/Libraries/Linking/Linking.js +3 -13
- package/Libraries/Linking/NativeIntentAndroid.js +1 -0
- package/Libraries/Linking/NativeLinkingManager.js +1 -0
- package/Libraries/LinkingIOS/RCTLinkingManager.h +5 -5
- package/Libraries/LinkingIOS/RCTLinkingManager.mm +75 -63
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/Lists/CellRenderMask.js +13 -3
- package/Libraries/Lists/ChildListCollection.js +72 -0
- package/Libraries/Lists/FillRateHelper.js +28 -17
- package/Libraries/Lists/FlatList.d.ts +251 -0
- package/Libraries/Lists/FlatList.js +90 -75
- package/Libraries/Lists/FlatList.js.flow +115 -0
- package/Libraries/Lists/SectionList.d.ts +258 -0
- package/Libraries/Lists/SectionList.js +7 -5
- package/Libraries/Lists/SectionListModern.js +6 -6
- package/Libraries/Lists/StateSafePureComponent.js +85 -0
- package/Libraries/Lists/ViewabilityHelper.js +39 -14
- package/Libraries/Lists/VirtualizeUtils.js +48 -31
- package/Libraries/Lists/VirtualizedList.d.ts +347 -0
- package/Libraries/Lists/VirtualizedList.js +605 -900
- package/Libraries/Lists/VirtualizedListCellRenderer.js +259 -0
- package/Libraries/Lists/VirtualizedListContext.js +8 -48
- package/Libraries/Lists/VirtualizedListProps.js +279 -0
- package/Libraries/Lists/VirtualizedSectionList.js +18 -11
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +10 -9
- package/Libraries/LogBox/Data/LogBoxLog.js +5 -5
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +4 -4
- package/Libraries/LogBox/Data/parseLogBoxLog.js +6 -4
- package/Libraries/LogBox/LogBox.d.ts +28 -0
- package/Libraries/LogBox/LogBox.js +14 -12
- package/Libraries/LogBox/LogBoxInspectorContainer.js +3 -2
- package/Libraries/LogBox/LogBoxNotificationContainer.js +2 -2
- package/Libraries/LogBox/UI/AnsiHighlight.js +7 -5
- package/Libraries/LogBox/UI/LogBoxButton.js +7 -6
- package/Libraries/LogBox/UI/LogBoxInspector.js +6 -6
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +12 -8
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +3 -3
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +7 -6
- package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +6 -5
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +7 -6
- package/Libraries/LogBox/UI/LogBoxInspectorSection.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +3 -6
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +5 -5
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +12 -7
- package/Libraries/LogBox/UI/LogBoxMessage.js +3 -3
- package/Libraries/LogBox/UI/LogBoxNotification.js +6 -5
- package/Libraries/Modal/Modal.d.ts +104 -0
- package/Libraries/Modal/Modal.js +14 -14
- package/Libraries/Modal/NativeModalManager.js +1 -0
- package/Libraries/Modal/RCTModalHostViewNativeComponent.js +3 -3
- package/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.h +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m +6 -9
- package/Libraries/NativeAnimation/Drivers/RCTEventAnimation.h +1 -2
- package/Libraries/NativeAnimation/Drivers/RCTEventAnimation.m +2 -4
- package/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.h +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +14 -21
- package/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.h +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m +8 -22
- package/Libraries/NativeAnimation/Nodes/RCTAdditionAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.h +2 -3
- package/Libraries/NativeAnimation/Nodes/RCTAnimatedNode.m +3 -5
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +2 -4
- package/Libraries/NativeAnimation/Nodes/RCTDiffClampAnimatedNode.m +7 -4
- package/Libraries/NativeAnimation/Nodes/RCTDivisionAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.m +14 -20
- package/Libraries/NativeAnimation/Nodes/RCTMultiplicationAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +13 -16
- package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +5 -7
- package/Libraries/NativeAnimation/Nodes/RCTSubtractionAnimatedNode.h +0 -1
- package/Libraries/NativeAnimation/Nodes/RCTSubtractionAnimatedNode.m +1 -3
- package/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.h +0 -1
- package/Libraries/NativeAnimation/Nodes/RCTTrackingAnimatedNode.m +3 -8
- package/Libraries/NativeAnimation/Nodes/RCTTransformAnimatedNode.m +4 -6
- package/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.m +1 -2
- package/Libraries/NativeAnimation/RCTAnimationUtils.h +14 -12
- package/Libraries/NativeAnimation/RCTAnimationUtils.m +15 -19
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.h +6 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +82 -69
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +11 -20
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +55 -64
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +5 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +68 -55
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +36 -20
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +34 -15
- package/Libraries/NativeComponent/NativeComponentRegistry.js +5 -4
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +1 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +1 -1
- package/Libraries/NativeComponent/ViewConfig.js +1 -0
- package/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +1 -0
- package/Libraries/NativeModules/specs/NativeDevMenu.js +1 -0
- package/Libraries/NativeModules/specs/NativeDevSettings.js +1 -0
- package/Libraries/NativeModules/specs/NativeDeviceEventManager.js +1 -0
- package/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js +1 -0
- package/Libraries/NativeModules/specs/NativeLogBox.js +1 -0
- package/Libraries/NativeModules/specs/NativeRedBox.js +1 -0
- package/Libraries/NativeModules/specs/NativeSourceCode.js +1 -0
- package/Libraries/Network/NativeNetworkingAndroid.js +1 -0
- package/Libraries/Network/NativeNetworkingIOS.js +1 -0
- package/Libraries/Network/RCTDataRequestHandler.mm +8 -11
- package/Libraries/Network/RCTFileRequestHandler.mm +10 -16
- package/Libraries/Network/RCTHTTPRequestHandler.h +4 -3
- package/Libraries/Network/RCTHTTPRequestHandler.mm +19 -23
- package/Libraries/Network/RCTNetworkTask.mm +2 -3
- package/Libraries/Network/RCTNetworking.android.js +4 -3
- package/Libraries/Network/RCTNetworking.ios.js +3 -2
- package/Libraries/Network/RCTNetworking.mm +189 -168
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XMLHttpRequest.js +9 -11
- package/Libraries/Network/convertRequestBody.js +1 -2
- package/Libraries/NewAppScreen/components/DebugInstructions.js +4 -1
- package/Libraries/NewAppScreen/components/Header.js +6 -2
- package/Libraries/NewAppScreen/components/HermesBadge.js +8 -9
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +8 -9
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +4 -1
- package/Libraries/NewAppScreen/index.js +1 -1
- package/Libraries/Performance/NativeJSCSamplingProfiler.js +1 -0
- package/Libraries/Performance/PureComponentDebug.js +1 -0
- package/Libraries/Performance/QuickPerformanceLogger.js +34 -10
- package/Libraries/Performance/Systrace.d.ts +66 -0
- package/Libraries/Performance/Systrace.js +110 -195
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +10 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +115 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +23 -4
- package/Libraries/Pressability/Pressability.js +38 -26
- package/Libraries/Pressability/PressabilityDebug.js +2 -2
- package/Libraries/Promise.js +0 -1
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
- package/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +295 -0
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +19 -14
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +2 -1
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +142 -103
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/RCTRequired/BUCK +2 -1
- package/Libraries/RCTRequired/RCTRequired/RCTRequired.h +31 -18
- package/Libraries/ReactNative/AppContainer.js +17 -7
- package/Libraries/ReactNative/AppRegistry.d.ts +119 -0
- package/Libraries/ReactNative/AppRegistry.js +30 -28
- package/Libraries/ReactNative/BridgelessUIManager.js +5 -2
- package/Libraries/ReactNative/FabricUIManager.js +3 -3
- package/Libraries/ReactNative/I18nManager.d.ts +25 -0
- package/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js +1 -0
- package/Libraries/ReactNative/NativeI18nManager.js +1 -0
- package/Libraries/ReactNative/NativeUIManager.js +1 -0
- package/Libraries/ReactNative/PaperUIManager.js +10 -10
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +21 -0
- package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +68 -0
- package/Libraries/ReactNative/RendererImplementation.js +112 -0
- package/Libraries/ReactNative/RendererProxy.d.ts +20 -0
- package/Libraries/ReactNative/RendererProxy.js +26 -0
- package/Libraries/ReactNative/RootTag.d.ts +13 -0
- package/Libraries/ReactNative/RootTag.js +0 -1
- package/Libraries/ReactNative/UIManager.d.ts +157 -0
- package/Libraries/ReactNative/UIManager.js +1 -1
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +1 -0
- package/Libraries/ReactNative/getNativeComponentAttributes.js +6 -7
- package/Libraries/ReactNative/renderApplication.js +39 -21
- package/Libraries/ReactNative/requireNativeComponent.d.ts +23 -0
- package/Libraries/ReactNative/requireNativeComponent.js +2 -2
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +10 -9
- package/Libraries/Renderer/README.md +22 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4765 -3842
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +1632 -1271
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1754 -1381
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +4726 -3782
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1706 -1342
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1720 -1343
- package/Libraries/Renderer/implementations/ReactNativeRenderer.d.ts +149 -0
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.d.ts +141 -0
- package/Libraries/Renderer/shims/ReactNativeTypes.js +23 -22
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +8 -8
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Settings/NativeSettingsManager.js +1 -0
- package/Libraries/Settings/RCTSettingsManager.mm +10 -12
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Settings/Settings.d.ts +18 -0
- package/Libraries/Share/NativeShareModule.js +1 -0
- package/Libraries/Share/Share.d.ts +80 -0
- package/Libraries/Share/Share.js +7 -5
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +18 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +9 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +25 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +1 -0
- package/Libraries/StyleSheet/StyleSheet.d.ts +160 -0
- package/Libraries/StyleSheet/StyleSheet.js +15 -11
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +331 -0
- package/Libraries/StyleSheet/StyleSheetTypes.js +101 -24
- package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +2 -2
- package/Libraries/StyleSheet/flattenStyle.js +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +3 -3
- package/Libraries/StyleSheet/private/_TransformStyle.js +26 -24
- package/Libraries/StyleSheet/processAspectRatio.js +63 -0
- package/Libraries/StyleSheet/processColor.d.ts +16 -0
- package/Libraries/StyleSheet/processColor.js +3 -4
- package/Libraries/StyleSheet/processColorArray.js +1 -0
- package/Libraries/StyleSheet/processFontVariant.js +30 -0
- package/Libraries/StyleSheet/processTransform.js +114 -103
- package/Libraries/StyleSheet/splitLayoutProps.js +7 -0
- package/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponent.mm +9 -12
- package/Libraries/SurfaceBackedComponent/RCTSurfaceBackedComponentState.h +1 -1
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm +9 -14
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentController.mm +16 -12
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h +1 -1
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.h +2 -3
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponentState.mm +3 -8
- package/Libraries/Text/BaseText/RCTBaseTextShadowView.h +4 -2
- package/Libraries/Text/BaseText/RCTBaseTextShadowView.m +13 -12
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +2 -0
- package/Libraries/Text/RCTConvert+Text.m +16 -14
- package/Libraries/Text/RCTTextAttributes.h +3 -0
- package/Libraries/Text/RCTTextAttributes.m +75 -54
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -1
- package/Libraries/Text/Text/NSTextStorage+FontScaling.m +22 -42
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +37 -0
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +86 -0
- package/Libraries/Text/Text/RCTTextShadowView.m +152 -175
- package/Libraries/Text/Text/RCTTextView.m +38 -40
- package/Libraries/Text/Text/RCTTextViewManager.m +7 -8
- package/Libraries/Text/Text.d.ts +209 -0
- package/Libraries/Text/Text.js +105 -19
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +10 -23
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +1 -1
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +1 -1
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +18 -12
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +10 -6
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h +1 -1
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +33 -14
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +1 -2
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +37 -47
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +2 -3
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +177 -155
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +19 -17
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.m +1 -1
- package/Libraries/Text/TextInput/RCTInputAccessoryView.m +2 -3
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +1 -2
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +3 -4
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m +1 -2
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +1 -1
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +7 -5
- package/Libraries/Text/TextNativeComponent.js +49 -41
- package/Libraries/Text/TextProps.js +64 -7
- package/{React/Views/RCTMaskedViewManager.h → Libraries/TurboModule/RCTExport.d.ts} +6 -6
- package/Libraries/TurboModule/TurboModuleRegistry.d.ts +13 -0
- package/Libraries/TurboModule/TurboModuleRegistry.js +3 -1
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +1 -0
- package/Libraries/TypeSafety/RCTConvertHelpers.h +22 -12
- package/Libraries/TypeSafety/RCTConvertHelpers.mm +2 -2
- package/Libraries/TypeSafety/RCTTypedModuleConstants.h +7 -5
- package/Libraries/TypeSafety/RCTTypedModuleConstants.mm +6 -4
- package/Libraries/Types/CoreEventTypes.d.ts +263 -0
- package/Libraries/Types/CoreEventTypes.js +139 -12
- package/Libraries/Utilities/AcessibilityMapping.js +154 -0
- package/Libraries/Utilities/Appearance.d.ts +43 -0
- package/Libraries/Utilities/Appearance.js +3 -3
- package/Libraries/Utilities/BackHandler.android.js +3 -5
- package/Libraries/Utilities/BackHandler.d.ts +38 -0
- package/Libraries/Utilities/DevSettings.d.ts +32 -0
- package/Libraries/Utilities/DevSettings.js +4 -2
- package/Libraries/Utilities/Dimensions.d.ts +79 -0
- package/Libraries/Utilities/Dimensions.js +2 -15
- package/Libraries/Utilities/GlobalPerformanceLogger.js +2 -1
- package/Libraries/Utilities/HMRClient.js +26 -11
- package/Libraries/Utilities/LoadingView.ios.js +1 -1
- package/Libraries/Utilities/NativeAppearance.js +1 -0
- package/Libraries/Utilities/NativeDevLoadingView.js +1 -0
- package/Libraries/Utilities/NativeDevSplitBundleLoader.js +1 -0
- package/Libraries/Utilities/NativeDeviceInfo.js +1 -0
- package/Libraries/Utilities/NativePlatformConstantsAndroid.js +1 -0
- package/Libraries/Utilities/NativePlatformConstantsIOS.js +1 -0
- package/Libraries/Utilities/PerformanceLoggerContext.js +3 -2
- package/Libraries/Utilities/PixelRatio.d.ts +64 -0
- package/Libraries/Utilities/PixelRatio.js.flow +21 -0
- package/Libraries/Utilities/Platform.android.js +11 -5
- package/Libraries/Utilities/Platform.d.ts +102 -0
- package/Libraries/Utilities/Platform.ios.js +12 -12
- package/Libraries/Utilities/PolyfillFunctions.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +12 -14
- package/Libraries/Utilities/codegenNativeCommands.js +2 -2
- package/Libraries/Utilities/codegenNativeComponent.js +4 -1
- package/Libraries/Utilities/createPerformanceLogger.d.ts +48 -0
- package/Libraries/Utilities/createPerformanceLogger.js +7 -8
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -0
- package/Libraries/Utilities/differ/deepDiffer.js +1 -1
- package/Libraries/Utilities/groupByEveryN.js +1 -1
- package/Libraries/Utilities/stringifySafe.js +6 -2
- package/Libraries/Utilities/truncate.js +1 -1
- package/Libraries/Utilities/useColorScheme.js +3 -2
- package/Libraries/Utilities/useRefEffect.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -2
- package/Libraries/Vibration/NativeVibration.js +1 -0
- package/Libraries/Vibration/RCTVibration.mm +5 -5
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/Vibration/Vibration.d.ts +43 -0
- package/Libraries/Vibration/Vibration.js +2 -1
- package/Libraries/WebPerformance/NativePerformanceObserver.cpp +42 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.h +64 -0
- package/Libraries/WebPerformance/NativePerformanceObserver.js +41 -0
- package/Libraries/WebPerformance/PerformanceObserver.js +223 -0
- package/Libraries/WebSocket/NativeWebSocketModule.js +1 -0
- package/Libraries/WebSocket/RCTReconnectingWebSocket.m +5 -2
- package/Libraries/WebSocket/RCTSRWebSocket.h +20 -16
- package/Libraries/WebSocket/RCTSRWebSocket.m +293 -187
- package/Libraries/WebSocket/WebSocket.js +12 -3
- package/Libraries/WebSocket/WebSocketInterceptor.js +1 -1
- package/Libraries/Wrapper/Example/RCTWrapperExampleView.m +5 -12
- package/Libraries/Wrapper/Example/RCTWrapperExampleViewController.m +2 -1
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.m +4 -5
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.m +2 -3
- package/Libraries/Wrapper/RCTWrapper.h +50 -48
- package/Libraries/Wrapper/RCTWrapperShadowView.m +9 -8
- package/Libraries/Wrapper/RCTWrapperView.m +1 -4
- package/Libraries/Wrapper/RCTWrapperViewControllerHostingView.m +1 -2
- package/Libraries/YellowBox/YellowBoxDeprecated.d.ts +19 -0
- package/Libraries/YellowBox/YellowBoxDeprecated.js +2 -3
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +2 -1
- package/Libraries/vendor/core/ErrorUtils.d.ts +15 -0
- package/Libraries/vendor/emitter/EventEmitter.d.ts +164 -0
- package/Libraries/vendor/emitter/EventEmitter.js +105 -12
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +73 -117
- package/React/AppSetup/RCTAppSetupUtils.h +6 -2
- package/React/AppSetup/RCTAppSetupUtils.mm +10 -8
- package/React/Base/RCTAssert.h +16 -10
- package/React/Base/RCTAssert.m +46 -31
- package/React/Base/RCTBridge.h +3 -107
- package/React/Base/RCTBridge.m +0 -18
- package/React/Base/RCTBridgeConstants.h +71 -0
- package/React/Base/RCTBridgeConstants.m +18 -0
- package/React/Base/RCTBridgeModule.h +4 -47
- package/React/Base/RCTBundleManager.h +23 -0
- package/React/Base/RCTBundleManager.m +1 -1
- package/React/Base/RCTConstants.h +55 -7
- package/React/Base/RCTConstants.m +30 -19
- package/React/Base/RCTConvert.h +3 -0
- package/React/Base/RCTConvert.m +29 -1
- package/React/Base/RCTDefines.h +2 -2
- package/React/Base/RCTEventDispatcherProtocol.h +5 -0
- package/React/Base/RCTKeyCommands.m +1 -1
- package/React/Base/RCTModuleData.mm +1 -0
- package/React/Base/RCTModuleMethod.mm +1 -1
- package/React/Base/RCTModuleRegistry.m +3 -1
- package/React/Base/RCTMultipartStreamReader.m +1 -0
- package/React/Base/RCTTurboModuleRegistry.h +29 -0
- package/React/Base/RCTVersion.m +3 -3
- package/React/Base/Surface/RCTSurface.mm +2 -1
- package/React/CoreModules/BUCK +6 -5
- package/React/CoreModules/CoreModulesPlugins.h +1 -1
- package/React/CoreModules/CoreModulesPlugins.mm +1 -1
- package/React/CoreModules/RCTAccessibilityManager.h +1 -0
- package/React/CoreModules/RCTAccessibilityManager.mm +11 -0
- package/React/CoreModules/RCTAlertController.m +35 -3
- package/React/CoreModules/RCTAlertManager.mm +55 -26
- package/React/CoreModules/RCTAppState.mm +2 -2
- package/React/CoreModules/RCTDevLoadingView.mm +15 -0
- package/React/CoreModules/RCTDevSettings.mm +1 -0
- package/React/CoreModules/RCTDeviceInfo.mm +28 -11
- package/React/CoreModules/RCTEventDispatcher.mm +12 -3
- package/React/CoreModules/RCTExceptionsManager.h +4 -1
- package/React/CoreModules/RCTExceptionsManager.mm +4 -12
- package/React/CoreModules/RCTLogBox.mm +2 -2
- package/React/CoreModules/RCTLogBoxView.mm +1 -1
- package/React/CoreModules/RCTRedBox.mm +7 -1
- package/React/CoreModules/React-CoreModules.podspec +2 -1
- package/React/CxxBridge/JSCExecutorFactory.mm +1 -1
- package/React/CxxBridge/RCTCxxBridge.mm +2 -1
- package/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.mm +1 -3
- package/React/CxxModule/RCTNativeModule.mm +15 -0
- package/React/CxxUtils/RCTFollyConvert.mm +11 -4
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +0 -8
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +1 -0
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +1 -0
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +1 -11
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +8 -3
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +23 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +16 -1
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +11 -7
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewRegistry.h +0 -5
- package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +0 -39
- package/React/Fabric/Mounting/RCTMountingManager.h +1 -1
- package/React/Fabric/Mounting/RCTMountingManager.mm +11 -9
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +1 -1
- package/React/Fabric/RCTScheduler.mm +0 -9
- package/React/Fabric/RCTSurfacePresenter.h +2 -1
- package/React/Fabric/RCTSurfacePresenter.mm +20 -18
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.mm +3 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +475 -61
- package/React/Fabric/Utils/RCTReactTaggedView.h +34 -0
- package/React/Fabric/Utils/RCTReactTaggedView.mm +55 -0
- package/React/Modules/RCTEventEmitter.h +2 -0
- package/React/Modules/RCTEventEmitter.m +15 -0
- package/React/Modules/RCTUIManager.m +1 -1
- package/React/Profiler/RCTProfile.h +20 -0
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Tests/Mounting/RCTComponentViewRegistryTests.mm +1 -0
- package/React/Views/RCTBorderCurve.h +13 -0
- package/React/Views/RCTComponentData.m +1 -0
- package/React/Views/RCTDatePickerManager.m +4 -0
- package/React/Views/RCTFont.mm +80 -0
- package/React/Views/RCTModalHostViewManager.m +16 -12
- package/React/Views/RCTProgressViewManager.m +4 -0
- package/React/Views/RCTSegmentedControlManager.m +4 -0
- package/React/Views/RCTShadowView.h +3 -0
- package/React/Views/RCTShadowView.m +14 -0
- package/React/Views/RCTView.h +11 -3
- package/React/Views/RCTView.m +18 -2
- package/React/Views/RCTViewManager.m +23 -3
- package/React/Views/RCTViewUtils.h +1 -0
- package/React/Views/RCTWrapperViewController.m +9 -10
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +0 -2
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -70
- package/React/Views/SafeAreaView/RCTSafeAreaViewManager.m +0 -2
- package/React/third-party.xcconfig +1 -1
- package/React-Core.podspec +45 -8
- package/ReactAndroid/Android-prebuilt.mk +10 -2
- package/ReactAndroid/README.md +3 -2
- package/ReactAndroid/build.gradle +361 -148
- package/ReactAndroid/cmake-utils/ReactNative-application.cmake +119 -0
- package/ReactAndroid/cmake-utils/default-app-setup/CMakeLists.txt +31 -0
- package/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +88 -0
- package/ReactAndroid/cmake-utils/folly-flags.cmake +22 -0
- package/ReactAndroid/external-artifacts/build.gradle +44 -0
- package/ReactAndroid/gradle.properties +24 -14
- package/ReactAndroid/hermes-engine/build.gradle +27 -34
- package/ReactAndroid/publish.gradle +100 -0
- package/ReactAndroid/src/main/java/com/facebook/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/debug/debugoverlay/model/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +4 -30
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/BUCK +5 -22
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java +14 -8
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.java +11 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/unicode/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/perftest/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackage.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/CompositeReactPackageTurboModuleManagerDelegate.java +67 -0
- package/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/JSEngineResolutionAlgorithm.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +41 -43
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +20 -45
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +19 -12
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +67 -5
- package/ReactAndroid/src/main/java/com/facebook/react/TurboReactPackage.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.java +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +248 -38
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +56 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/AssertionException.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BackgroundExecutor.java +19 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +10 -19
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ColorPropConverter.java +28 -21
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{DefaultNativeModuleCallExceptionHandler.java → DefaultJSExceptionHandler.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedAsyncTask.java +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedResultAsyncTask.java +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/GuardedRunnable.java +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{NativeModuleCallExceptionHandler.java → JSExceptionHandler.java} +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ModuleSpec.java +2 -9
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +14 -14
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java +45 -43
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UiThreadUtil.java +17 -4
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/MapBuffer.kt +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.kt +22 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/WritableMapBuffer.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/network/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +47 -41
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultComponentsRegistry.kt +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultJSIModulePackage.kt +58 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPoint.kt +49 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactActivityDelegate.kt +46 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactNativeHost.kt +71 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultTurboModuleManagerDelegate.kt +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevLoadingViewController.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +24 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/CoreComponentsRegistry.java +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/{bridge/queue/NativeRunnable.java → fabric/CppComponentRegistry.java} +11 -8
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/CppViewMutationsWrapper.java +47 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/DevToolsReactPerfLogger.java +85 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +14 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +109 -40
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/GuardedFrameCallback.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/LayoutMetricsConversions.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +10 -8
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +11 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +467 -56
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/DispatchStringCommandMountItem.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +31 -17
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK +3 -25
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/module/annotations/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/module/model/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/module/processing/BUCK +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/module/processing/ReactModuleSpecProcessor.java +4 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BUCK +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/bundleloader/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/common/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fabric/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/fresco/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +12 -18
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/RequestBodyUtil.java +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/share/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/sound/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoModule.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java +11 -3
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/processing/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/surface/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/touch/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/BUCK +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/interfaces/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +159 -17
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerDelegate.java +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerInterface.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +3 -14
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/GuardedFrameCallback.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java +380 -195
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +26 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +42 -37
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +5 -31
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +109 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerRegistry.java +51 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerResolver.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java +14 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/annotations/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +11 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEvent.java +225 -42
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEventHelper.java +166 -12
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/util/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/util/RNLog.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/common/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayout.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK +3 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +30 -30
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/BUCK +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.java +9 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +15 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +17 -20
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +12 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +52 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewAccessibilityDelegate.java +154 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +0 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/BUCK +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomLetterSpacingSpan.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +18 -17
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextUpdate.java +1 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +94 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java +42 -17
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.java +60 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +75 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +2 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +7 -18
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +9 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +264 -120
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +139 -110
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactMapBufferPropSetter.kt +37 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +24 -9
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundManager.java +11 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +74 -30
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/systrace/BUCK +5 -1
- package/ReactAndroid/src/main/java/com/facebook/systrace/Systrace.java +22 -8
- package/ReactAndroid/src/main/java/com/facebook/systrace/SystraceMessage.java +61 -8
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaGutter.java +35 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java +3 -2
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNative.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNode.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIBase.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeType.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java +2 -0
- package/ReactAndroid/src/main/jni/CMakeLists.txt +27 -13
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp +23 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/BUCK +44 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/CMakeLists.txt +22 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/Component.h +66 -0
- package/ReactAndroid/src/main/jni/react/cxxcomponents/ComponentManager.h +26 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/BUCK +3 -3
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/Binding.cpp +54 -69
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/Binding.h +9 -16
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/CMakeLists.txt +1 -0
- package/ReactAndroid/src/main/jni/react/fabric/ComponentRegistryResolver.cpp +51 -0
- package/ReactAndroid/src/main/jni/react/fabric/ComponentRegistryResolver.h +47 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppComponentRegistry.cpp +73 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppComponentRegistry.h +64 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppViewMutationsWrapper.cpp +100 -0
- package/ReactAndroid/src/main/jni/react/fabric/CppViewMutationsWrapper.h +39 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountItem.cpp +11 -2
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountItem.h +11 -2
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountingManager.cpp +125 -67
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/FabricMountingManager.h +3 -4
- package/ReactAndroid/src/main/jni/react/fabric/JBackgroundExecutor.cpp +30 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/JBackgroundExecutor.h +1 -8
- package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/OnLoad.cpp +2 -0
- package/ReactAndroid/src/main/jni/react/fabric/viewPropConversions.h +215 -0
- package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/.clang-tidy +1 -0
- package/ReactAndroid/src/main/jni/react/hermes/instrumentation/BUCK +27 -0
- package/ReactAndroid/src/main/jni/react/hermes/reactexecutor/BUCK +19 -0
- package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/reactexecutor/CMakeLists.txt +5 -14
- package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/reactexecutor/OnLoad.cpp +18 -5
- package/ReactAndroid/src/main/jni/react/jni/BUCK +3 -4
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +11 -28
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +2 -10
- package/ReactAndroid/src/main/jni/react/jni/JCallback.h +7 -0
- package/ReactAndroid/src/main/jni/react/jni/JMessageQueueThread.cpp +5 -7
- package/ReactAndroid/src/main/jni/react/jscexecutor/BUCK +22 -0
- package/ReactAndroid/src/main/jni/react/jscexecutor/CMakeLists.txt +36 -0
- package/ReactAndroid/src/main/{java/com/facebook → jni}/react/jscexecutor/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/BUCK +0 -1
- package/ReactAndroid/src/main/jni/react/newarchdefaults/CMakeLists.txt +22 -0
- package/{template/android/app/src/main/jni/MainComponentsRegistry.cpp → ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.cpp} +22 -13
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.h +47 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.cpp +60 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.h +53 -0
- package/ReactAndroid/src/main/jni/react/newarchdefaults/OnLoad.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/perftests/BUCK +0 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/BUCK +0 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/BUCK +0 -1
- package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/reactperflogger/.clang-tidy +1 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/BUCK +3 -3
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/CMakeLists.txt +2 -1
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/CompositeTurboModuleManagerDelegate.cpp +59 -0
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/CompositeTurboModuleManagerDelegate.h +49 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/OnLoad.cpp +3 -0
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/TurboModuleManager.cpp +18 -6
- package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/TurboModuleManagerDelegate.h +3 -3
- package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/BUCK +0 -2
- package/ReactAndroid/src/main/libraries/fbcore/src/main/java/com/facebook/common/logging/BUCK +1 -0
- package/ReactAndroid/src/main/libraries/fbjni/BUCK +1 -1
- package/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK +7 -6
- package/ReactAndroid/src/main/libraries/soloader/java/com/facebook/soloader/BUCK +5 -5
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +17 -17
- package/ReactCommon/React-Fabric.podspec +16 -5
- package/ReactCommon/ReactCommon.podspec +24 -6
- package/ReactCommon/butter/BUCK +4 -3
- package/ReactCommon/butter/CMakeLists.txt +3 -1
- package/ReactCommon/callinvoker/BUCK +1 -1
- package/ReactCommon/callinvoker/CMakeLists.txt +7 -1
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/BUCK +19 -14
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +33 -25
- package/ReactCommon/cxxreact/JSBigString.h +2 -2
- package/ReactCommon/cxxreact/JSBundleType.h +7 -4
- package/ReactCommon/cxxreact/JSExecutor.h +1 -1
- package/ReactCommon/cxxreact/NativeToJsBridge.cpp +2 -2
- package/ReactCommon/cxxreact/React-cxxreact.podspec +5 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/ReactCommon/cxxreact/SampleCxxModule.cpp +1 -1
- package/ReactCommon/cxxreact/SystraceSection.h +11 -1
- package/ReactCommon/cxxreact/tests/BUCK +6 -48
- package/ReactCommon/cxxreact/tests/jsarg_helpers.cpp +3 -4
- package/ReactCommon/cxxreact/tests/jsbigstring.cpp +0 -43
- package/ReactCommon/cxxreact/tests/main.cpp +15 -0
- package/ReactCommon/cxxreact/tests/methodcall.cpp +1 -2
- package/ReactCommon/hermes/React-hermes.podspec +10 -7
- package/ReactCommon/hermes/executor/CMakeLists.txt +6 -5
- package/ReactCommon/hermes/executor/HermesExecutorFactory.cpp +36 -24
- package/ReactCommon/hermes/executor/HermesExecutorFactory.h +6 -0
- package/ReactCommon/hermes/inspector/BUCK +5 -5
- package/ReactCommon/hermes/inspector/CMakeLists.txt +4 -4
- package/ReactCommon/hermes/inspector/Inspector.cpp +1 -1
- package/ReactCommon/hermes/inspector/RuntimeAdapter.cpp +3 -8
- package/ReactCommon/hermes/inspector/RuntimeAdapter.h +5 -10
- package/ReactCommon/hermes/inspector/chrome/Connection.cpp +87 -20
- package/ReactCommon/hermes/inspector/chrome/Connection.h +1 -1
- package/ReactCommon/hermes/inspector/chrome/ConnectionDemux.cpp +8 -19
- package/ReactCommon/hermes/inspector/chrome/ConnectionDemux.h +3 -2
- package/ReactCommon/hermes/inspector/chrome/MessageConverters.cpp +10 -0
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.cpp +106 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.h +49 -1
- package/ReactCommon/hermes/inspector/chrome/Registration.cpp +4 -4
- package/ReactCommon/hermes/inspector/chrome/Registration.h +9 -5
- package/ReactCommon/hermes/inspector/chrome/cli/main.cpp +5 -3
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionDemuxTests.cpp +3 -5
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionTests.cpp +48 -0
- package/ReactCommon/hermes/inspector/chrome/tests/SyncConnection.cpp +1 -3
- package/ReactCommon/hermes/inspector/tests/InspectorTests.cpp +1 -3
- package/ReactCommon/hermes/inspector/tools/message_types.txt +2 -0
- package/ReactCommon/hermes/inspector/tools/run_msggen +3 -1
- package/ReactCommon/{microprofiler → jsc}/.clang-tidy +1 -0
- package/ReactCommon/jsc/BUCK +34 -0
- package/ReactCommon/jsc/CMakeLists.txt +35 -0
- package/ReactCommon/{jsi → jsc}/JSCRuntime.cpp +71 -0
- package/ReactCommon/{React-bridging.podspec → jsc/React-jsc.podspec} +10 -15
- package/ReactCommon/jserrorhandler/BUCK +30 -0
- package/ReactCommon/jserrorhandler/JsErrorHandler.cpp +107 -0
- package/ReactCommon/jserrorhandler/JsErrorHandler.h +39 -0
- package/ReactCommon/jsi/BUCK +3 -34
- package/ReactCommon/jsi/CMakeLists.txt +0 -16
- package/ReactCommon/jsi/React-jsi.podspec +21 -13
- package/ReactCommon/jsi/jsi/JSIDynamic.cpp +7 -2
- package/ReactCommon/jsi/jsi/decorator.h +44 -0
- package/ReactCommon/jsi/jsi/jsi-inl.h +35 -2
- package/ReactCommon/jsi/jsi/jsi.cpp +44 -8
- package/ReactCommon/jsi/jsi/jsi.h +157 -0
- package/ReactCommon/jsiexecutor/BUCK +1 -2
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +5 -1
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +2 -7
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +0 -2
- package/ReactCommon/jsinspector/BUCK +3 -2
- package/ReactCommon/libraries/fbcore/src/test/java/com/facebook/powermock/BUCK +2 -0
- package/ReactCommon/logger/BUCK +1 -1
- package/ReactCommon/logger/React-logger.podspec +1 -1
- package/ReactCommon/react/bridging/Array.h +19 -0
- package/ReactCommon/react/bridging/BUCK +2 -2
- package/ReactCommon/react/bridging/Base.h +1 -2
- package/ReactCommon/react/bridging/CMakeLists.txt +8 -1
- package/ReactCommon/react/bridging/CallbackWrapper.h +1 -1
- package/ReactCommon/react/bridging/Class.h +21 -0
- package/ReactCommon/react/bridging/Convert.h +9 -0
- package/ReactCommon/react/bridging/tests/BridgingTest.cpp +113 -0
- package/ReactCommon/react/bridging/tests/BridgingTest.h +1 -1
- package/ReactCommon/react/config/BUCK +1 -3
- package/ReactCommon/react/config/CMakeLists.txt +2 -0
- package/ReactCommon/react/debug/BUCK +3 -4
- package/ReactCommon/react/debug/CMakeLists.txt +2 -0
- package/ReactCommon/react/nativemodule/core/BUCK +3 -5
- package/ReactCommon/react/nativemodule/core/CMakeLists.txt +8 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/CallbackWrapper.h +11 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.cpp +35 -18
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.h +4 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.cpp +23 -4
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.h +37 -19
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +46 -61
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +11 -12
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +1 -2
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +91 -145
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.h +5 -22
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.h +2 -2
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +5 -2
- package/ReactCommon/react/nativemodule/samples/BUCK +2 -1
- package/ReactCommon/react/nativemodule/samples/platform/android/CMakeLists.txt +27 -0
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleSpec.cpp +39 -12
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleSpec.h +1 -1
- package/ReactCommon/react/renderer/.clang-tidy +144 -0
- package/ReactCommon/react/renderer/animations/BUCK +1 -6
- package/ReactCommon/react/renderer/animations/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +4 -6
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +45 -35
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +7 -10
- package/ReactCommon/react/renderer/animations/utils.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/AttributedString.cpp +22 -5
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +13 -1
- package/ReactCommon/react/renderer/attributedstring/AttributedStringBox.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/BUCK +3 -5
- package/ReactCommon/react/renderer/attributedstring/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +14 -4
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -0
- package/ReactCommon/react/renderer/attributedstring/conversions.h +134 -0
- package/ReactCommon/react/renderer/attributedstring/primitives.h +30 -0
- package/ReactCommon/react/renderer/attributedstring/tests/AttributedStringBoxTest.cpp +2 -4
- package/ReactCommon/react/renderer/attributedstring/tests/ParagraphAttributesTest.cpp +2 -4
- package/ReactCommon/react/renderer/componentregistry/BUCK +1 -8
- package/ReactCommon/react/renderer/componentregistry/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.cpp +3 -5
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h +1 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +7 -14
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.h +3 -2
- package/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.cpp +2 -4
- package/ReactCommon/react/renderer/componentregistry/native/BUCK +1 -7
- package/ReactCommon/react/renderer/componentregistry/native/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/componentregistry/native/NativeComponentRegistryBinding.cpp +5 -7
- package/ReactCommon/react/renderer/components/image/BUCK +1 -4
- package/ReactCommon/react/renderer/components/image/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/image/ImageEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +82 -41
- package/ReactCommon/react/renderer/components/image/ImageProps.h +13 -7
- package/ReactCommon/react/renderer/components/image/ImageShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/image/ImageState.cpp +2 -4
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +3 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +0 -3
- package/ReactCommon/react/renderer/components/modal/BUCK +2 -4
- package/ReactCommon/react/renderer/components/modal/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/modal/ModalHostViewState.cpp +2 -4
- package/ReactCommon/react/renderer/components/progressbar/BUCK +2 -5
- package/ReactCommon/react/renderer/components/progressbar/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.cpp +2 -4
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarShadowNode.cpp +3 -5
- package/ReactCommon/react/renderer/components/root/BUCK +1 -5
- package/ReactCommon/react/renderer/components/root/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/root/RootProps.cpp +4 -6
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +1 -1
- package/ReactCommon/react/renderer/components/scrollview/BUCK +2 -5
- package/ReactCommon/react/renderer/components/scrollview/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +342 -202
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +6 -0
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewState.cpp +2 -4
- package/ReactCommon/react/renderer/components/slider/BUCK +2 -4
- package/ReactCommon/react/renderer/components/slider/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/slider/SliderShadowNode.cpp +3 -5
- package/ReactCommon/react/renderer/components/slider/SliderState.cpp +2 -4
- package/ReactCommon/react/renderer/components/slider/platform/android/react/renderer/components/slider/SliderMeasurementsManager.cpp +2 -4
- package/ReactCommon/react/renderer/components/switch/BUCK +1 -9
- package/ReactCommon/react/renderer/components/switch/CMakeLists.txt +2 -0
- package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchMeasurementsManager.cpp +2 -4
- package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchShadowNode.cpp +3 -5
- package/ReactCommon/react/renderer/components/text/BUCK +1 -6
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +135 -22
- package/ReactCommon/react/renderer/components/text/BaseTextProps.h +6 -0
- package/ReactCommon/react/renderer/components/text/BaseTextShadowNode.cpp +4 -6
- package/ReactCommon/react/renderer/components/text/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/text/ParagraphEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/ParagraphProps.cpp +103 -21
- package/ReactCommon/react/renderer/components/text/ParagraphProps.h +9 -3
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.cpp +5 -6
- package/ReactCommon/react/renderer/components/text/ParagraphState.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/ParagraphState.h +9 -0
- package/ReactCommon/react/renderer/components/text/RawTextProps.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/RawTextShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/TextProps.cpp +11 -4
- package/ReactCommon/react/renderer/components/text/TextProps.h +6 -0
- package/ReactCommon/react/renderer/components/text/TextShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/text/conversions.h +1 -9
- package/ReactCommon/react/renderer/components/textinput/BUCK +2 -6
- package/ReactCommon/react/renderer/components/textinput/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +223 -66
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +65 -59
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp +9 -11
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputState.cpp +24 -4
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputState.h +1 -3
- package/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK +4 -10
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.h +2 -2
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +11 -4
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +6 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputState.cpp +4 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/conversions.h +20 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +10 -2
- package/ReactCommon/react/renderer/components/textinput/iostextinput/propsConversions.h +4 -4
- package/ReactCommon/react/renderer/components/unimplementedview/BUCK +1 -9
- package/ReactCommon/react/renderer/components/unimplementedview/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +2 -4
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewProps.cpp +2 -4
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewShadowNode.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +223 -119
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.h +12 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityPropsMapBuffer.cpp +168 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityPropsMapBuffer.h +33 -0
- package/ReactCommon/react/renderer/components/view/BUCK +3 -4
- package/ReactCommon/react/renderer/components/view/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/components/view/PointerEvent.cpp +20 -7
- package/ReactCommon/react/renderer/components/view/PointerEvent.h +72 -6
- package/ReactCommon/react/renderer/components/view/Touch.cpp +3 -5
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -1
- package/ReactCommon/react/renderer/components/view/TouchEvent.cpp +3 -5
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +49 -12
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.h +5 -3
- package/ReactCommon/react/renderer/components/view/ViewEventEmitter.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +338 -161
- package/ReactCommon/react/renderer/components/view/ViewProps.h +12 -0
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
- package/ReactCommon/react/renderer/components/view/ViewPropsMapBuffer.cpp +202 -0
- package/ReactCommon/react/renderer/components/view/ViewPropsMapBuffer.h +56 -0
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +9 -28
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +8 -9
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +120 -5
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.h +12 -1
- package/ReactCommon/react/renderer/components/view/YogaStylablePropsMapBuffer.cpp +87 -0
- package/ReactCommon/{hermes/inspector/chrome/AutoAttachUtils.h → react/renderer/components/view/YogaStylablePropsMapBuffer.h} +11 -11
- package/ReactCommon/react/renderer/components/view/conversions.h +23 -2
- package/ReactCommon/react/renderer/components/view/primitives.h +17 -0
- package/ReactCommon/react/renderer/components/view/propsConversions.h +73 -18
- package/ReactCommon/react/renderer/components/view/tests/LayoutTest.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +2 -4
- package/ReactCommon/react/renderer/components/view/viewPropConversions.h +198 -0
- package/ReactCommon/react/renderer/core/BUCK +8 -9
- package/ReactCommon/react/renderer/core/BatchedEventQueue.cpp +2 -4
- package/ReactCommon/react/renderer/core/CMakeLists.txt +9 -1
- package/ReactCommon/react/renderer/core/ComponentDescriptor.cpp +2 -4
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +23 -8
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +4 -3
- package/ReactCommon/react/renderer/core/CoreFeatures.cpp +17 -0
- package/ReactCommon/react/renderer/core/CoreFeatures.h +31 -0
- package/ReactCommon/react/renderer/core/DynamicPropsUtilities.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventBeat.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +3 -5
- package/ReactCommon/react/renderer/core/EventQueue.cpp +3 -5
- package/ReactCommon/react/renderer/core/EventQueueProcessor.cpp +2 -4
- package/ReactCommon/react/renderer/core/EventTarget.cpp +3 -5
- package/ReactCommon/react/renderer/core/LayoutConstraints.cpp +2 -4
- package/ReactCommon/react/renderer/core/LayoutMetrics.cpp +3 -5
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +96 -18
- package/ReactCommon/react/renderer/core/Props.cpp +26 -12
- package/ReactCommon/react/renderer/core/Props.h +25 -13
- package/ReactCommon/react/renderer/core/PropsMacros.h +108 -0
- package/ReactCommon/react/renderer/core/PropsMapBuffer.cpp +37 -0
- package/ReactCommon/react/renderer/core/PropsMapBuffer.h +23 -0
- package/ReactCommon/react/renderer/core/RawEvent.cpp +2 -4
- package/ReactCommon/react/renderer/core/RawProps.cpp +12 -6
- package/ReactCommon/react/renderer/core/RawProps.h +10 -1
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +4 -6
- package/ReactCommon/react/renderer/core/RawPropsKeyMap.cpp +2 -4
- package/ReactCommon/react/renderer/core/RawPropsParser.cpp +65 -4
- package/ReactCommon/react/renderer/core/RawPropsParser.h +9 -0
- package/ReactCommon/react/renderer/core/RawPropsPrimitives.h +2 -0
- package/ReactCommon/react/renderer/core/RawValue.h +12 -14
- package/ReactCommon/react/renderer/core/Sealable.cpp +4 -6
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +14 -12
- package/ReactCommon/react/renderer/core/ShadowNode.h +17 -21
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.cpp +3 -5
- package/ReactCommon/react/renderer/core/ShadowNodeFamilyFragment.cpp +2 -4
- package/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp +2 -4
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.cpp +1 -3
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +18 -13
- package/ReactCommon/react/renderer/core/State.cpp +2 -4
- package/ReactCommon/react/renderer/core/UnbatchedEventQueue.cpp +2 -4
- package/ReactCommon/react/renderer/core/propsConversions.h +40 -29
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +9 -9
- package/ReactCommon/react/renderer/core/tests/EventQueueProcessorTest.cpp +3 -3
- package/ReactCommon/react/renderer/core/tests/LayoutableShadowNodeTest.cpp +372 -0
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +2 -2
- package/ReactCommon/react/renderer/core/tests/ShadowNodeTest.cpp +4 -4
- package/ReactCommon/react/renderer/core/tests/TestComponent.h +4 -2
- package/ReactCommon/react/renderer/core/tests/benchmarks/RawPropsBenchmark.cpp +2 -4
- package/ReactCommon/react/renderer/debug/BUCK +1 -4
- package/ReactCommon/react/renderer/debug/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.cpp +6 -8
- package/ReactCommon/react/renderer/debug/DebugStringConvertibleItem.cpp +2 -4
- package/ReactCommon/react/renderer/element/BUCK +1 -1
- package/ReactCommon/react/renderer/element/ComponentBuilder.cpp +2 -4
- package/ReactCommon/react/renderer/graphics/BUCK +2 -5
- package/ReactCommon/react/renderer/graphics/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
- package/ReactCommon/react/renderer/graphics/RectangleEdges.h +5 -0
- package/ReactCommon/react/renderer/graphics/Transform.cpp +43 -17
- package/ReactCommon/react/renderer/graphics/Transform.h +20 -5
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +11 -23
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.cpp +4 -6
- package/ReactCommon/react/renderer/graphics/tests/TransformTest.cpp +7 -0
- package/ReactCommon/react/renderer/imagemanager/BUCK +12 -31
- package/ReactCommon/react/renderer/imagemanager/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/imagemanager/ImageManager.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/ImageResponse.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/ImageResponseObserverCoordinator.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/ImageTelemetry.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageManager.cpp +6 -7
- package/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageRequest.cpp +2 -4
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +14 -16
- package/ReactCommon/react/renderer/leakchecker/BUCK +1 -1
- package/ReactCommon/react/renderer/leakchecker/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.cpp +4 -6
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.h +1 -1
- package/ReactCommon/react/renderer/leakchecker/WeakFamilyRegistry.cpp +3 -6
- package/ReactCommon/react/renderer/mapbuffer/BUCK +5 -6
- package/ReactCommon/react/renderer/mapbuffer/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +28 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +2 -0
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +35 -4
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +5 -0
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +25 -0
- package/ReactCommon/react/renderer/mounting/BUCK +2 -5
- package/ReactCommon/react/renderer/mounting/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/mounting/Differentiator.cpp +50 -97
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +4 -6
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +1 -1
- package/ReactCommon/react/renderer/mounting/MountingTransaction.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +8 -10
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +4 -4
- package/ReactCommon/react/renderer/mounting/ShadowTreeRegistry.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/ShadowView.cpp +5 -6
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +40 -13
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +39 -6
- package/ReactCommon/react/renderer/mounting/StubView.cpp +4 -6
- package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +7 -4
- package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/stubs.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +131 -123
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +6 -8
- package/ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp +2 -4
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +6 -6
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +12 -23
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +0 -10
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +22 -9
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +2 -4
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +6 -8
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +45 -64
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.cpp +1 -1
- package/ReactCommon/react/renderer/scheduler/BUCK +1 -5
- package/ReactCommon/react/renderer/scheduler/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +18 -38
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -4
- package/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +0 -8
- package/ReactCommon/react/renderer/scheduler/SchedulerToolbox.h +7 -0
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +10 -9
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +1 -1
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +2 -4
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.cpp +3 -5
- package/ReactCommon/react/renderer/telemetry/BUCK +1 -5
- package/ReactCommon/react/renderer/telemetry/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/telemetry/SurfaceTelemetry.cpp +2 -4
- package/ReactCommon/react/renderer/telemetry/TransactionTelemetry.cpp +2 -4
- package/ReactCommon/react/renderer/templateprocessor/BUCK +3 -5
- package/ReactCommon/react/renderer/templateprocessor/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.cpp +8 -10
- package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.h +3 -3
- package/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp +8 -9
- package/ReactCommon/react/renderer/textlayoutmanager/BUCK +1 -5
- package/ReactCommon/react/renderer/textlayoutmanager/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.cpp +2 -4
- package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +4 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.cpp +8 -72
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h +1 -2
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +133 -9
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +46 -23
- package/ReactCommon/react/renderer/timeline/BUCK +2 -5
- package/ReactCommon/react/renderer/timeline/Timeline.cpp +7 -8
- package/ReactCommon/react/renderer/timeline/TimelineController.cpp +3 -5
- package/ReactCommon/react/renderer/timeline/TimelineFrame.cpp +2 -4
- package/ReactCommon/react/renderer/timeline/TimelineHandler.cpp +3 -5
- package/ReactCommon/react/renderer/timeline/TimelineHandler.h +2 -2
- package/ReactCommon/react/renderer/timeline/TimelineSnapshot.cpp +2 -4
- package/ReactCommon/react/renderer/uimanager/BUCK +2 -5
- package/ReactCommon/react/renderer/uimanager/CMakeLists.txt +8 -1
- package/ReactCommon/react/renderer/uimanager/LayoutAnimationStatusDelegate.h +2 -0
- package/ReactCommon/react/renderer/uimanager/SurfaceRegistryBinding.cpp +66 -24
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +17 -20
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +52 -56
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +1 -7
- package/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h +0 -9
- package/ReactCommon/react/renderer/uimanager/primitives.h +7 -7
- package/ReactCommon/react/test_utils/BUCK +1 -1
- package/ReactCommon/react/test_utils/shadowTreeGeneration.h +7 -1
- package/ReactCommon/react/utils/BUCK +2 -6
- package/ReactCommon/react/utils/CMakeLists.txt +2 -0
- package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
- package/ReactCommon/react/utils/ManagedObjectWrapper.mm +1 -3
- package/ReactCommon/reactperflogger/BUCK +3 -3
- package/ReactCommon/reactperflogger/CMakeLists.txt +7 -1
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/BUCK +1 -1
- package/ReactCommon/runtimeexecutor/CMakeLists.txt +7 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/yoga/CMakeLists.txt +7 -1
- package/ReactCommon/yoga/yoga/CompactValue.h +49 -29
- package/ReactCommon/yoga/yoga/Utils.cpp +4 -0
- package/ReactCommon/yoga/yoga/YGEnums.cpp +14 -0
- package/ReactCommon/yoga/yoga/YGEnums.h +31 -52
- package/ReactCommon/yoga/yoga/YGMacros.h +43 -0
- package/ReactCommon/yoga/yoga/YGNode.cpp +33 -0
- package/ReactCommon/yoga/yoga/YGNode.h +11 -0
- package/ReactCommon/yoga/yoga/YGNodePrint.cpp +14 -0
- package/ReactCommon/yoga/yoga/YGStyle.cpp +1 -1
- package/ReactCommon/yoga/yoga/YGStyle.h +5 -0
- package/ReactCommon/yoga/yoga/Yoga.cpp +81 -29
- package/ReactCommon/yoga/yoga/Yoga.h +7 -0
- package/ReactCommon/yoga/yoga/event/event.h +3 -0
- package/android/README.md +21 -0
- package/build.gradle.kts +133 -0
- package/flow/JSITimerInternalType.js +30 -0
- package/flow/jest.js +2 -2
- package/flow-typed/npm/{react-dom_v16.x.x.js → react-dom_v17.x.x.js} +58 -31
- package/flow-typed/npm/yargs_v17.x.x.js +341 -0
- package/gradle.properties +12 -0
- package/index.js +89 -61
- package/interface.js +8 -0
- package/jest/react-native-env.js +18 -0
- package/jest/renderer.js +2 -2
- package/jest/setup.js +11 -9
- package/jest-preset.js +1 -1
- package/package.json +75 -56
- package/react.gradle +27 -7
- package/scripts/cocoapods/__tests__/codegen-test.rb +244 -0
- package/scripts/cocoapods/__tests__/codegen_utils-test.rb +548 -0
- package/scripts/cocoapods/__tests__/fabric-test.rb +55 -0
- package/scripts/cocoapods/__tests__/flipper-test.rb +155 -0
- package/scripts/cocoapods/__tests__/jsengine-test.rb +154 -0
- package/scripts/cocoapods/__tests__/local_podspec_patch-test.rb +171 -0
- package/scripts/cocoapods/__tests__/new_architecture-test.rb +290 -0
- package/scripts/cocoapods/__tests__/test_utils/CodegenScriptPhaseExtractorMock.rb +21 -0
- package/scripts/cocoapods/__tests__/test_utils/CodegenUtilsMock.rb +108 -0
- package/scripts/cocoapods/__tests__/test_utils/DirMock.rb +84 -0
- package/scripts/cocoapods/__tests__/test_utils/EnvironmentMock.rb +21 -0
- package/scripts/cocoapods/__tests__/test_utils/FileMock.rb +132 -0
- package/scripts/cocoapods/__tests__/test_utils/FileUtilsMock.rb +40 -0
- package/scripts/cocoapods/__tests__/test_utils/FinderMock.rb +28 -0
- package/scripts/cocoapods/__tests__/test_utils/InstallerMock.rb +213 -0
- package/scripts/cocoapods/__tests__/test_utils/LocalPodspecPatchMock.rb +14 -0
- package/scripts/cocoapods/__tests__/test_utils/Open3Mock.rb +43 -0
- package/scripts/cocoapods/__tests__/test_utils/PathnameMock.rb +42 -0
- package/scripts/cocoapods/__tests__/test_utils/PodMock.rb +144 -0
- package/scripts/cocoapods/__tests__/test_utils/SpecMock.rb +30 -0
- package/scripts/cocoapods/__tests__/test_utils/SysctlCheckerMock.rb +21 -0
- package/scripts/cocoapods/__tests__/test_utils/TargetDefinitionMock.rb +12 -0
- package/scripts/cocoapods/__tests__/test_utils/podSpy.rb +38 -0
- package/scripts/cocoapods/__tests__/test_utils/systemUtils.rb +14 -0
- package/scripts/cocoapods/__tests__/utils-test.rb +565 -0
- package/scripts/cocoapods/codegen.rb +106 -0
- package/scripts/cocoapods/codegen_script_phase_extractor.rb +13 -0
- package/scripts/cocoapods/codegen_utils.rb +331 -0
- package/scripts/cocoapods/fabric.rb +16 -0
- package/scripts/cocoapods/flipper.rb +118 -0
- package/scripts/cocoapods/helpers.rb +28 -0
- package/scripts/cocoapods/jsengine.rb +81 -0
- package/scripts/cocoapods/local_podspec_patch.rb +51 -0
- package/scripts/cocoapods/new_architecture.rb +101 -0
- package/scripts/cocoapods/utils.rb +188 -0
- package/scripts/codegen/codegen-utils.js +37 -0
- package/scripts/codegen/generate-artifacts-executor.js +560 -0
- package/scripts/codegen/generate-specs-cli-executor.js +127 -0
- package/scripts/generate-codegen-artifacts.js +72 -0
- package/scripts/generate-specs-cli.js +3 -88
- package/scripts/hermes/hermes-utils.js +144 -76
- package/scripts/hermes/prepare-hermes-for-build.js +9 -10
- package/scripts/ios-configure-glog.sh +3 -2
- package/scripts/launchPackager.command +4 -0
- package/scripts/native_modules.rb +6 -0
- package/scripts/packager.sh +1 -1
- package/scripts/react-native-xcode.sh +25 -19
- package/scripts/react_native_pods.rb +148 -554
- package/scripts/react_native_pods_utils/script_phases.sh +15 -17
- package/sdks/.hermesversion +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +104 -43
- package/sdks/hermes-engine/hermes-utils.rb +26 -0
- package/sdks/hermes-engine/utils/build-apple-framework.sh +84 -39
- package/sdks/hermes-engine/utils/build-hermes-xcode.sh +65 -0
- package/sdks/hermes-engine/utils/build-hermesc-xcode.sh +22 -0
- package/sdks/hermes-engine/utils/build-ios-framework.sh +2 -1
- package/sdks/hermes-engine/utils/build-mac-framework.sh +2 -1
- package/sdks/hermes-engine/utils/copy-hermes-xcode.sh +22 -0
- package/sdks/hermesc/linux64-bin/hermesc +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/settings.gradle.kts +34 -0
- package/template/{App.js → App.tsx} +14 -8
- package/template/Gemfile +2 -2
- package/template/_gitignore +6 -6
- package/template/_node-version +1 -0
- package/template/android/app/build.gradle +68 -222
- package/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java +4 -2
- package/template/android/app/src/main/AndroidManifest.xml +1 -2
- package/template/android/app/src/main/java/com/helloworld/MainActivity.java +13 -26
- package/template/android/app/src/main/java/com/helloworld/MainApplication.java +16 -47
- package/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.java +20 -0
- package/template/android/build.gradle +6 -38
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +8 -0
- package/template/android/settings.gradle +0 -7
- package/template/ios/HelloWorld/AppDelegate.h +2 -4
- package/template/ios/HelloWorld/AppDelegate.mm +12 -112
- package/template/ios/HelloWorld/Info.plist +2 -2
- package/template/ios/Podfile +19 -8
- package/template/package.json +19 -12
- package/template/tsconfig.json +3 -0
- package/third-party-podspecs/RCT-Folly.podspec +6 -5
- package/third-party-podspecs/boost.podspec +1 -1
- package/types/index.d.ts +213 -0
- package/types/modules/BatchedBridge.d.ts +32 -0
- package/types/modules/Codegen.d.ts +74 -0
- package/types/modules/Devtools.d.ts +31 -0
- package/types/modules/LaunchScreen.d.ts +18 -0
- package/types/modules/globals.d.ts +577 -0
- package/types/private/TimerMixin.d.ts +19 -0
- package/{React/Views/RCTMaskedView.h → types/private/Utilities.d.ts} +4 -8
- package/types/public/DeprecatedPropertiesAlias.d.ts +205 -0
- package/types/public/Insets.d.ts +15 -0
- package/types/public/ReactNativeRenderer.d.ts +149 -0
- package/types/public/ReactNativeTypes.d.ts +143 -0
- package/types/tsconfig.json +15 -0
- package/types/tslint.json +23 -0
- package/Libraries/Components/MaskedView/MaskedViewIOS.ios.js +0 -93
- package/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js +0 -21
- package/Libraries/Core/setUpSystrace.js +0 -21
- package/Libraries/Image/ImagePickerIOS.js +0 -103
- package/Libraries/Image/NativeImagePickerIOS.js +0 -38
- package/Libraries/Storage/AsyncStorage.js +0 -379
- package/Libraries/Storage/NativeAsyncLocalStorage.js +0 -44
- package/Libraries/Storage/NativeAsyncSQLiteDBStorage.js +0 -44
- package/Libraries/Utilities/JSDevSupportModule.js +0 -37
- package/Libraries/Utilities/NativeJSDevSupport.js +0 -23
- package/Libraries/vendor/emitter/EventSubscription.js +0 -19
- package/Libraries/vendor/emitter/_EmitterSubscription.js +0 -62
- package/Libraries/vendor/emitter/_EventEmitter.js +0 -184
- package/Libraries/vendor/emitter/_EventSubscription.js +0 -45
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +0 -108
- package/React/CoreModules/RCTAsyncLocalStorage.h +0 -41
- package/React/CoreModules/RCTAsyncLocalStorage.mm +0 -474
- package/React/Views/RCTMaskedView.m +0 -34
- package/React/Views/RCTMaskedViewManager.m +0 -22
- package/ReactAndroid/src/androidTest/AndroidManifest.xml +0 -20
- package/ReactAndroid/src/androidTest/assets/BUCK +0 -7
- package/ReactAndroid/src/androidTest/buck-runner/AndroidManifest.xml +0 -28
- package/ReactAndroid/src/androidTest/buck-runner/BUCK +0 -24
- package/ReactAndroid/src/androidTest/java/com/facebook/react/bridge/ArgumentsTest.java +0 -93
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AbstractScrollViewTestCase.java +0 -108
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/AssertModule.java +0 -53
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK +0 -46
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FabricUIManagerFactory.java +0 -19
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeAsyncLocalStorage.java +0 -56
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/FakeWebSocketModule.java +0 -44
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/InstanceSpecForTestPackage.java +0 -38
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/IntRecordingModule.java +0 -54
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/JSIntegrationTestChecker.java +0 -55
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/MultipleFailureException.java +0 -46
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java +0 -152
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java +0 -378
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstanceSpecForTest.java +0 -127
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstrumentationTest.java +0 -125
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java +0 -209
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactSettingsForTests.java +0 -59
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestAppShell.java +0 -38
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestApplicationImpl.java +0 -22
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestFactory.java +0 -27
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java +0 -217
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ScreenshotingFrameLayout.java +0 -77
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/SingleTouchGestureGenerator.java +0 -150
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/StringRecordingModule.java +0 -42
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK +0 -16
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/IdleWaiter.java +0 -14
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactBridgeIdleSignaler.java +0 -65
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/ReactIdleDetectionUtil.java +0 -121
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/BUCK +0 -25
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/network/NetworkRecordingModuleMock.java +0 -147
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK +0 -43
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/ReactNativeTestRule.java +0 -184
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/AnimatedTransformTest.java +0 -49
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -43
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMeasureLayoutTest.java +0 -138
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystMultitouchHandlingTestCase.java +0 -681
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJSToJavaParametersTestCase.java +0 -837
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSArgumentsTestCase.java +0 -385
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystNativeJavaToJSReturnValuesTestCase.java +0 -162
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystSubviewsClippingTestCase.java +0 -301
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystTouchBubblingTestCase.java +0 -155
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/CatalystUIManagerTestCase.java +0 -256
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ImageErrorTestCase.java +0 -47
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ImageOverlayColorTestCase.java +0 -25
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/InitialPropsTestCase.java +0 -120
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSLocaleTest.java +0 -102
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/JSResponderTestCase.java +0 -62
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/LayoutEventsTestCase.java +0 -37
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/NativeIdTestCase.java +0 -89
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ProgressBarTestCase.java +0 -123
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactHorizontalScrollViewTestCase.java +0 -125
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactScrollViewTestCase.java +0 -127
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactSwipeRefreshLayoutTestCase.java +0 -97
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ShareTestCase.java +0 -92
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TestIdTestCase.java +0 -46
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/TextInputTestCase.java +0 -327
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ViewRenderingTestCase.java +0 -154
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK +0 -33
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/ReactInstanceManagerTest.java +0 -96
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/ReactRootViewTest.java +0 -203
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/WritableNativeMapTest.java +0 -130
- package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +0 -85
- package/ReactAndroid/src/androidTest/js/Asserts.js +0 -38
- package/ReactAndroid/src/androidTest/js/BUCK +0 -29
- package/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js +0 -62
- package/ReactAndroid/src/androidTest/js/ImageErrorTestApp.js +0 -56
- package/ReactAndroid/src/androidTest/js/ImageOverlayColorTestApp.js +0 -29
- package/ReactAndroid/src/androidTest/js/InitialPropsTestApp.js +0 -25
- package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +0 -66
- package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +0 -89
- package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +0 -214
- package/ReactAndroid/src/androidTest/js/MultitouchHandlingTestAppModule.js +0 -78
- package/ReactAndroid/src/androidTest/js/NativeIdTestModule.js +0 -76
- package/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js +0 -59
- package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +0 -183
- package/ReactAndroid/src/androidTest/js/ShareTestModule.js +0 -36
- package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +0 -369
- package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +0 -101
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -113
- package/ReactAndroid/src/androidTest/js/TestIdTestModule.js +0 -86
- package/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js +0 -28
- package/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js +0 -125
- package/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js +0 -114
- package/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js +0 -39
- package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +0 -185
- package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +0 -84
- package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +0 -268
- package/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js +0 -109
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk +0 -31
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk +0 -55
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/Android.mk +0 -49
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/JSDevSupport.java +0 -103
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +0 -105
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/JBackgroundExecutor.cpp +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +0 -527
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/CMakeLists.txt +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncLocalStorageUtil.java +0 -125
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageErrorUtil.java +0 -38
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncStorageModule.java +0 -433
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK +0 -26
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/ReactDatabaseSupplier.java +0 -163
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/Android.mk +0 -32
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk +0 -63
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementationProvider.java +0 -72
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +0 -242
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/Android.mk +0 -45
- package/ReactAndroid/src/main/jni/Application.mk +0 -34
- package/ReactAndroid/src/main/jni/first-party/fb/Android.mk +0 -30
- package/ReactAndroid/src/main/jni/first-party/fbgloginit/Android.mk +0 -23
- package/ReactAndroid/src/main/jni/first-party/fbjni/Android.mk +0 -14
- package/ReactAndroid/src/main/jni/first-party/fbjni/CMakeLists.txt +0 -15
- package/ReactAndroid/src/main/jni/first-party/yogajni/Android.mk +0 -27
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +0 -176
- package/ReactAndroid/src/main/jni/react/jni/JNativeRunnable.h +0 -52
- package/ReactAndroid/src/main/jni/third-party/boost/Android.mk +0 -15
- package/ReactAndroid/src/main/jni/third-party/double-conversion/Android.mk +0 -22
- package/ReactAndroid/src/main/jni/third-party/fmt/Android.mk +0 -15
- package/ReactAndroid/src/main/jni/third-party/folly/Android.mk +0 -128
- package/ReactAndroid/src/main/jni/third-party/glog/Android.mk +0 -32
- package/ReactAndroid/src/main/jni/third-party/jsc/Android.mk +0 -6
- package/ReactAndroid/src/main/jni/third-party/libevent/Android.mk +0 -36
- package/ReactAndroid/src/test/java/com/facebook/common/logging/BUCK +0 -17
- package/ReactAndroid/src/test/java/com/facebook/common/logging/FakeLoggingDelegate.java +0 -138
- package/ReactAndroid/src/test/java/com/facebook/react/BUCK +0 -28
- package/ReactAndroid/src/test/java/com/facebook/react/CompositeReactPackageTest.java +0 -156
- package/ReactAndroid/src/test/java/com/facebook/react/ReactActivityDelegateTest.kt +0 -62
- package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +0 -255
- package/ReactAndroid/src/test/java/com/facebook/react/animated/BUCK +0 -22
- package/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedInterpolationTest.java +0 -123
- package/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java +0 -1294
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK +0 -44
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/BaseJavaModuleTest.java +0 -103
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/FallbackJSBundleLoaderTest.java +0 -176
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/InstanceHandleHelper.java +0 -19
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaOnlyArrayTest.java +0 -37
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaScriptModuleRegistryTest.java +0 -35
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java +0 -59
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/BUCK +0 -23
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/JSDebuggerWebSocketClientTest.java +0 -139
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/MultipartStreamReaderTest.java +0 -151
- package/ReactAndroid/src/test/java/com/facebook/react/devsupport/StackTraceHelperTest.java +0 -65
- package/ReactAndroid/src/test/java/com/facebook/react/fabric/events/BUCK +0 -16
- package/ReactAndroid/src/test/java/com/facebook/react/fabric/events/TouchEventDispatchTest.java +0 -616
- package/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK +0 -45
- package/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.java +0 -156
- package/ReactAndroid/src/test/java/com/facebook/react/modules/camera/ImageStoreManagerTest.java +0 -81
- package/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java +0 -57
- package/ReactAndroid/src/test/java/com/facebook/react/modules/deviceinfo/DeviceInfoModuleTest.java +0 -168
- package/ReactAndroid/src/test/java/com/facebook/react/modules/dialog/DialogModuleTest.java +0 -165
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/HeaderUtilTest.java +0 -73
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/NetworkingModuleTest.java +0 -647
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/ProgressiveStringDecoderTest.java +0 -138
- package/ReactAndroid/src/test/java/com/facebook/react/modules/network/ReactCookieJarContainerTest.java +0 -71
- package/ReactAndroid/src/test/java/com/facebook/react/modules/share/ShareModuleTest.java +0 -230
- package/ReactAndroid/src/test/java/com/facebook/react/modules/storage/AsyncStorageModuleTest.java +0 -345
- package/ReactAndroid/src/test/java/com/facebook/react/modules/timing/TimingModuleTest.java +0 -306
- package/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/BUCK +0 -18
- package/ReactAndroid/src/test/java/com/facebook/react/packagerconnection/JSPackagerClientTest.java +0 -144
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/BUCK +0 -40
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/BaseViewManagerTest.java +0 -79
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/LayoutPropertyApplicatorTest.java +0 -470
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/MatrixMathHelperTest.java +0 -173
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterSpecTest.java +0 -125
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropAnnotationSetterTest.java +0 -499
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropConstantsTest.java +0 -163
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSetterTest.java +0 -160
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/ReactPropForShadowNodeSpecTest.java +0 -122
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/SimpleViewPropertyTest.java +0 -116
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsTest.java +0 -173
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleTest.java +0 -721
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/BUCK +0 -16
- package/ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation/InterpolatorTypeTest.java +0 -49
- package/ReactAndroid/src/test/java/com/facebook/react/util/BUCK +0 -17
- package/ReactAndroid/src/test/java/com/facebook/react/util/JSStackTraceTest.java +0 -96
- package/ReactAndroid/src/test/java/com/facebook/react/views/BUCK +0 -41
- package/ReactAndroid/src/test/java/com/facebook/react/views/image/ImageResizeModeTest.java +0 -42
- package/ReactAndroid/src/test/java/com/facebook/react/views/image/ReactImagePropertyTest.java +0 -143
- package/ReactAndroid/src/test/java/com/facebook/react/views/slider/ReactSliderPropertyTest.java +0 -100
- package/ReactAndroid/src/test/java/com/facebook/react/views/text/CustomLineHeightSpanTest.java +0 -113
- package/ReactAndroid/src/test/java/com/facebook/react/views/text/ReactTextTest.java +0 -516
- package/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java +0 -400
- package/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java +0 -174
- package/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java +0 -56
- package/ReactAndroid/src/test/java/org/mockito/configuration/BUCK +0 -13
- package/ReactAndroid/src/test/java/org/mockito/configuration/MockitoConfiguration.java +0 -24
- package/ReactAndroid/src/test/resources/BUCK +0 -18
- package/ReactAndroid/src/test/resources/robolectric.properties +0 -2
- package/ReactCommon/butter/Android.mk +0 -27
- package/ReactCommon/callinvoker/Android.mk +0 -25
- package/ReactCommon/cxxreact/Android.mk +0 -51
- package/ReactCommon/hermes/executor/Android.mk +0 -41
- package/ReactCommon/hermes/inspector/Android.mk +0 -36
- package/ReactCommon/hermes/inspector/chrome/AutoAttachUtils.cpp +0 -151
- package/ReactCommon/hermes/inspector/tools/msggen/.babelrc +0 -8
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/CommandTest.js +0 -62
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/EventTest.js +0 -47
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/GraphTest.js +0 -78
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/HeaderWriterTest.js +0 -128
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/ImplementationWriterTest.js +0 -171
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/PropertyTest.js +0 -131
- package/ReactCommon/hermes/inspector/tools/msggen/__tests__/TypeTest.js +0 -50
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +0 -41
- package/ReactCommon/hermes/inspector/tools/msggen/src/Command.js +0 -79
- package/ReactCommon/hermes/inspector/tools/msggen/src/Converters.js +0 -39
- package/ReactCommon/hermes/inspector/tools/msggen/src/Event.js +0 -57
- package/ReactCommon/hermes/inspector/tools/msggen/src/GeneratedHeader.js +0 -16
- package/ReactCommon/hermes/inspector/tools/msggen/src/Graph.js +0 -90
- package/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js +0 -323
- package/ReactCommon/hermes/inspector/tools/msggen/src/ImplementationWriter.js +0 -421
- package/ReactCommon/hermes/inspector/tools/msggen/src/Property.js +0 -219
- package/ReactCommon/hermes/inspector/tools/msggen/src/TestHelpers.js +0 -40
- package/ReactCommon/hermes/inspector/tools/msggen/src/Type.js +0 -98
- package/ReactCommon/hermes/inspector/tools/msggen/src/custom.json +0 -26
- package/ReactCommon/hermes/inspector/tools/msggen/src/index.js +0 -251
- package/ReactCommon/jsi/Android.mk +0 -41
- package/ReactCommon/jsiexecutor/Android.mk +0 -23
- package/ReactCommon/jsinspector/Android.mk +0 -20
- package/ReactCommon/logger/Android.mk +0 -24
- package/ReactCommon/microprofiler/BUCK +0 -30
- package/ReactCommon/microprofiler/MicroProfiler.cpp +0 -252
- package/ReactCommon/microprofiler/MicroProfiler.h +0 -89
- package/ReactCommon/react/bridging/Android.mk +0 -27
- package/ReactCommon/react/config/Android.mk +0 -26
- package/ReactCommon/react/debug/Android.mk +0 -30
- package/ReactCommon/react/nativemodule/core/Android.mk +0 -40
- package/ReactCommon/react/nativemodule/samples/platform/android/Android.mk +0 -23
- package/ReactCommon/react/renderer/animations/Android.mk +0 -58
- package/ReactCommon/react/renderer/attributedstring/Android.mk +0 -53
- package/ReactCommon/react/renderer/componentregistry/Android.mk +0 -42
- package/ReactCommon/react/renderer/componentregistry/native/Android.mk +0 -37
- package/ReactCommon/react/renderer/components/image/Android.mk +0 -51
- package/ReactCommon/react/renderer/components/modal/Android.mk +0 -55
- package/ReactCommon/react/renderer/components/progressbar/Android.mk +0 -53
- package/ReactCommon/react/renderer/components/root/Android.mk +0 -46
- package/ReactCommon/react/renderer/components/scrollview/Android.mk +0 -49
- package/ReactCommon/react/renderer/components/slider/Android.mk +0 -59
- package/ReactCommon/react/renderer/components/switch/Android.mk +0 -53
- package/ReactCommon/react/renderer/components/text/Android.mk +0 -59
- package/ReactCommon/react/renderer/components/textinput/Android.mk +0 -67
- package/ReactCommon/react/renderer/components/unimplementedview/Android.mk +0 -47
- package/ReactCommon/react/renderer/components/view/Android.mk +0 -47
- package/ReactCommon/react/renderer/core/Android.mk +0 -41
- package/ReactCommon/react/renderer/debug/Android.mk +0 -28
- package/ReactCommon/react/renderer/graphics/Android.mk +0 -39
- package/ReactCommon/react/renderer/imagemanager/Android.mk +0 -44
- package/ReactCommon/react/renderer/leakchecker/Android.mk +0 -33
- package/ReactCommon/react/renderer/mapbuffer/Android.mk +0 -34
- package/ReactCommon/react/renderer/mounting/Android.mk +0 -55
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +0 -34
- package/ReactCommon/react/renderer/scheduler/Android.mk +0 -62
- package/ReactCommon/react/renderer/telemetry/Android.mk +0 -43
- package/ReactCommon/react/renderer/templateprocessor/Android.mk +0 -46
- package/ReactCommon/react/renderer/textlayoutmanager/Android.mk +0 -63
- package/ReactCommon/react/renderer/uimanager/Android.mk +0 -58
- package/ReactCommon/react/utils/Android.mk +0 -33
- package/ReactCommon/reactperflogger/Android.mk +0 -26
- package/ReactCommon/runtimeexecutor/Android.mk +0 -19
- package/ReactCommon/yoga/Android.mk +0 -21
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-debug.aar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar +0 -0
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2-release.aar.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module +0 -246
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.module.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom +0 -44
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/0.69.8-2/hermes-engine-0.69.8-2.pom.sha512 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml +0 -13
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.md5 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.sha1 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.sha256 +0 -1
- package/android/com/facebook/react/hermes-engine/maven-metadata.xml.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-debug.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-javadoc.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar +0 -0
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2-release.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module +0 -670
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom +0 -156
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.69.8-2/react-native-0.69.8-2.pom.sha512 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml +0 -13
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +0 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +0 -1
- package/jest/preprocessor.js +0 -40
- package/jest/preprocessor_DO_NOT_USE.js +0 -122
- package/scripts/generate-artifacts.js +0 -318
- package/template/_buckconfig +0 -6
- package/template/_flowconfig +0 -66
- package/template/_ruby-version +0 -1
- package/template/android/app/_BUCK +0 -55
- package/template/android/app/build_defs.bzl +0 -19
- package/template/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java +0 -116
- package/template/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java +0 -36
- package/template/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +0 -48
- package/template/android/app/src/main/jni/Android.mk +0 -48
- package/template/android/app/src/main/jni/MainApplicationModuleProvider.cpp +0 -24
- package/template/android/app/src/main/jni/MainApplicationModuleProvider.h +0 -16
- package/template/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +0 -45
- package/template/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +0 -38
- package/template/android/app/src/main/jni/MainComponentsRegistry.h +0 -32
- package/template/android/app/src/main/jni/OnLoad.cpp +0 -11
- package/tvos-types.d.ts +0 -192
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/AsyncEventBeat.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/AsyncEventBeat.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ComponentFactory.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ComponentFactory.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/CoreComponentsRegistry.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/CoreComponentsRegistry.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventBeatManager.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventBeatManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventEmitterWrapper.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/EventEmitterWrapper.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/JFabricUIManager.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/JFabricUIManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ReactNativeConfigHolder.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/ReactNativeConfigHolder.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/StateWrapperImpl.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/StateWrapperImpl.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/SurfaceHandlerBinding.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/fabric/jni → jni/react/fabric}/SurfaceHandlerBinding.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/HermesMemoryDumper.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/HermesSamplingProfiler.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/HermesSamplingProfiler.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook → jni/react}/hermes/instrumentation/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/.clang-tidy +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JReadableMapBuffer.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JReadableMapBuffer.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JWritableMapBuffer.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/JWritableMapBuffer.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/common/mapbuffer/jni → jni/react/mapbuffer}/react/common/mapbuffer/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/BlobCollector.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/BlobCollector.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/modules/blob/jni → jni/react/reactnativeblob}/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/reactperflogger/JNativeModulePerfLogger.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/reactperflogger/jni → jni/react/reactperflogger}/reactperflogger/OnLoad.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/CallInvokerHolder.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/CallInvokerHolder.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/turbomodule/core/jni → jni/react/turbomodule}/ReactCommon/TurboModuleManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/CMakeLists.txt +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/ComponentNameResolverManager.cpp +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/ComponentNameResolverManager.h +0 -0
- /package/ReactAndroid/src/main/{java/com/facebook/react/uimanager/jni → jni/react/uimanager}/OnLoad.cpp +0 -0
- /package/ReactCommon/{jsi → jsc}/JSCRuntime.h +0 -0
- /package/template/__tests__/{App-test.js → App-test.tsx} +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @nolint
|
|
9
9
|
* @providesModule ReactFabric-profiling
|
|
10
10
|
* @preventMunge
|
|
11
|
-
* @generated SignedSource<<
|
|
11
|
+
* @generated SignedSource<<1466b90312f81bedd331ce30d8d61240>>
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1028,7 +1028,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
1028
1028
|
"ReactNativeBridgeEventPlugin"
|
|
1029
1029
|
]);
|
|
1030
1030
|
recomputePluginOrdering();
|
|
1031
|
-
var injectedNamesToPlugins$jscomp$
|
|
1031
|
+
var injectedNamesToPlugins$jscomp$inline_234 = {
|
|
1032
1032
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
1033
1033
|
ReactNativeBridgeEventPlugin: {
|
|
1034
1034
|
eventTypes: {},
|
|
@@ -1074,33 +1074,33 @@ var injectedNamesToPlugins$jscomp$inline_223 = {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
},
|
|
1077
|
-
isOrderingDirty$jscomp$
|
|
1078
|
-
pluginName$jscomp$
|
|
1079
|
-
for (pluginName$jscomp$
|
|
1077
|
+
isOrderingDirty$jscomp$inline_235 = !1,
|
|
1078
|
+
pluginName$jscomp$inline_236;
|
|
1079
|
+
for (pluginName$jscomp$inline_236 in injectedNamesToPlugins$jscomp$inline_234)
|
|
1080
1080
|
if (
|
|
1081
|
-
injectedNamesToPlugins$jscomp$
|
|
1082
|
-
pluginName$jscomp$
|
|
1081
|
+
injectedNamesToPlugins$jscomp$inline_234.hasOwnProperty(
|
|
1082
|
+
pluginName$jscomp$inline_236
|
|
1083
1083
|
)
|
|
1084
1084
|
) {
|
|
1085
|
-
var pluginModule$jscomp$
|
|
1086
|
-
injectedNamesToPlugins$jscomp$
|
|
1085
|
+
var pluginModule$jscomp$inline_237 =
|
|
1086
|
+
injectedNamesToPlugins$jscomp$inline_234[pluginName$jscomp$inline_236];
|
|
1087
1087
|
if (
|
|
1088
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
1089
|
-
namesToPlugins[pluginName$jscomp$
|
|
1090
|
-
pluginModule$jscomp$
|
|
1088
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_236) ||
|
|
1089
|
+
namesToPlugins[pluginName$jscomp$inline_236] !==
|
|
1090
|
+
pluginModule$jscomp$inline_237
|
|
1091
1091
|
) {
|
|
1092
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
1092
|
+
if (namesToPlugins[pluginName$jscomp$inline_236])
|
|
1093
1093
|
throw Error(
|
|
1094
1094
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
1095
|
-
(pluginName$jscomp$
|
|
1095
|
+
(pluginName$jscomp$inline_236 + "`.")
|
|
1096
1096
|
);
|
|
1097
1097
|
namesToPlugins[
|
|
1098
|
-
pluginName$jscomp$
|
|
1099
|
-
] = pluginModule$jscomp$
|
|
1100
|
-
isOrderingDirty$jscomp$
|
|
1098
|
+
pluginName$jscomp$inline_236
|
|
1099
|
+
] = pluginModule$jscomp$inline_237;
|
|
1100
|
+
isOrderingDirty$jscomp$inline_235 = !0;
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
isOrderingDirty$jscomp$
|
|
1103
|
+
isOrderingDirty$jscomp$inline_235 && recomputePluginOrdering();
|
|
1104
1104
|
function getInstanceFromInstance(instanceHandle) {
|
|
1105
1105
|
return instanceHandle;
|
|
1106
1106
|
}
|
|
@@ -1870,6 +1870,12 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1870
1870
|
root = root.pendingLanes & -1073741825;
|
|
1871
1871
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1872
1872
|
}
|
|
1873
|
+
function claimNextTransitionLane() {
|
|
1874
|
+
var lane = nextTransitionLane;
|
|
1875
|
+
nextTransitionLane <<= 1;
|
|
1876
|
+
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64);
|
|
1877
|
+
return lane;
|
|
1878
|
+
}
|
|
1873
1879
|
function createLaneMap(initial) {
|
|
1874
1880
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1875
1881
|
return laneMap;
|
|
@@ -2248,7 +2254,28 @@ function flushSyncCallbacks() {
|
|
|
2248
2254
|
}
|
|
2249
2255
|
return null;
|
|
2250
2256
|
}
|
|
2251
|
-
var
|
|
2257
|
+
var forkStack = [],
|
|
2258
|
+
forkStackIndex = 0,
|
|
2259
|
+
treeForkProvider = null,
|
|
2260
|
+
idStack = [],
|
|
2261
|
+
idStackIndex = 0,
|
|
2262
|
+
treeContextProvider = null;
|
|
2263
|
+
function popTreeContext(workInProgress) {
|
|
2264
|
+
for (; workInProgress === treeForkProvider; )
|
|
2265
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2266
|
+
(forkStack[forkStackIndex] = null),
|
|
2267
|
+
--forkStackIndex,
|
|
2268
|
+
(forkStack[forkStackIndex] = null);
|
|
2269
|
+
for (; workInProgress === treeContextProvider; )
|
|
2270
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2271
|
+
(idStack[idStackIndex] = null),
|
|
2272
|
+
--idStackIndex,
|
|
2273
|
+
(idStack[idStackIndex] = null),
|
|
2274
|
+
--idStackIndex,
|
|
2275
|
+
(idStack[idStackIndex] = null);
|
|
2276
|
+
}
|
|
2277
|
+
var hydrationErrors = null,
|
|
2278
|
+
ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2252
2279
|
function shallowEqual(objA, objB) {
|
|
2253
2280
|
if (objectIs(objA, objB)) return !0;
|
|
2254
2281
|
if (
|
|
@@ -2357,8 +2384,34 @@ function readContext(context) {
|
|
|
2357
2384
|
} else lastContextDependency = lastContextDependency.next = context;
|
|
2358
2385
|
return value;
|
|
2359
2386
|
}
|
|
2360
|
-
var
|
|
2361
|
-
|
|
2387
|
+
var concurrentQueues = null;
|
|
2388
|
+
function pushConcurrentUpdateQueue(queue) {
|
|
2389
|
+
null === concurrentQueues
|
|
2390
|
+
? (concurrentQueues = [queue])
|
|
2391
|
+
: concurrentQueues.push(queue);
|
|
2392
|
+
}
|
|
2393
|
+
function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
|
|
2394
|
+
var interleaved = queue.interleaved;
|
|
2395
|
+
null === interleaved
|
|
2396
|
+
? ((update.next = update), pushConcurrentUpdateQueue(queue))
|
|
2397
|
+
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
2398
|
+
queue.interleaved = update;
|
|
2399
|
+
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
2400
|
+
}
|
|
2401
|
+
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
2402
|
+
sourceFiber.lanes |= lane;
|
|
2403
|
+
var alternate = sourceFiber.alternate;
|
|
2404
|
+
null !== alternate && (alternate.lanes |= lane);
|
|
2405
|
+
alternate = sourceFiber;
|
|
2406
|
+
for (sourceFiber = sourceFiber.return; null !== sourceFiber; )
|
|
2407
|
+
(sourceFiber.childLanes |= lane),
|
|
2408
|
+
(alternate = sourceFiber.alternate),
|
|
2409
|
+
null !== alternate && (alternate.childLanes |= lane),
|
|
2410
|
+
(alternate = sourceFiber),
|
|
2411
|
+
(sourceFiber = sourceFiber.return);
|
|
2412
|
+
return 3 === alternate.tag ? alternate.stateNode : null;
|
|
2413
|
+
}
|
|
2414
|
+
var hasForceUpdate = !1;
|
|
2362
2415
|
function initializeUpdateQueue(fiber) {
|
|
2363
2416
|
fiber.updateQueue = {
|
|
2364
2417
|
baseState: fiber.memoizedState,
|
|
@@ -2389,26 +2442,24 @@ function createUpdate(eventTime, lane) {
|
|
|
2389
2442
|
next: null
|
|
2390
2443
|
};
|
|
2391
2444
|
}
|
|
2392
|
-
function enqueueUpdate(fiber, update) {
|
|
2445
|
+
function enqueueUpdate(fiber, update, lane) {
|
|
2393
2446
|
var updateQueue = fiber.updateQueue;
|
|
2394
|
-
null
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
? (
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
: ((update.next = fiber.next), (fiber.next = update)),
|
|
2411
|
-
(updateQueue.pending = update)));
|
|
2447
|
+
if (null === updateQueue) return null;
|
|
2448
|
+
updateQueue = updateQueue.shared;
|
|
2449
|
+
if (0 !== (executionContext & 2)) {
|
|
2450
|
+
var pending = updateQueue.pending;
|
|
2451
|
+
null === pending
|
|
2452
|
+
? (update.next = update)
|
|
2453
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
2454
|
+
updateQueue.pending = update;
|
|
2455
|
+
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
2456
|
+
}
|
|
2457
|
+
pending = updateQueue.interleaved;
|
|
2458
|
+
null === pending
|
|
2459
|
+
? ((update.next = update), pushConcurrentUpdateQueue(updateQueue))
|
|
2460
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
2461
|
+
updateQueue.interleaved = update;
|
|
2462
|
+
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
2412
2463
|
}
|
|
2413
2464
|
function entangleTransitions(root, fiber, lane) {
|
|
2414
2465
|
fiber = fiber.updateQueue;
|
|
@@ -2645,9 +2696,10 @@ var classComponentUpdater = {
|
|
|
2645
2696
|
update = createUpdate(eventTime, lane);
|
|
2646
2697
|
update.payload = payload;
|
|
2647
2698
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2648
|
-
enqueueUpdate(inst, update);
|
|
2649
|
-
|
|
2650
|
-
|
|
2699
|
+
payload = enqueueUpdate(inst, update, lane);
|
|
2700
|
+
null !== payload &&
|
|
2701
|
+
(scheduleUpdateOnFiber(payload, inst, lane, eventTime),
|
|
2702
|
+
entangleTransitions(payload, inst, lane));
|
|
2651
2703
|
},
|
|
2652
2704
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
2653
2705
|
inst = inst._reactInternals;
|
|
@@ -2657,9 +2709,10 @@ var classComponentUpdater = {
|
|
|
2657
2709
|
update.tag = 1;
|
|
2658
2710
|
update.payload = payload;
|
|
2659
2711
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2660
|
-
enqueueUpdate(inst, update);
|
|
2661
|
-
|
|
2662
|
-
|
|
2712
|
+
payload = enqueueUpdate(inst, update, lane);
|
|
2713
|
+
null !== payload &&
|
|
2714
|
+
(scheduleUpdateOnFiber(payload, inst, lane, eventTime),
|
|
2715
|
+
entangleTransitions(payload, inst, lane));
|
|
2663
2716
|
},
|
|
2664
2717
|
enqueueForceUpdate: function(inst, callback) {
|
|
2665
2718
|
inst = inst._reactInternals;
|
|
@@ -2668,9 +2721,10 @@ var classComponentUpdater = {
|
|
|
2668
2721
|
update = createUpdate(eventTime, lane);
|
|
2669
2722
|
update.tag = 2;
|
|
2670
2723
|
void 0 !== callback && null !== callback && (update.callback = callback);
|
|
2671
|
-
enqueueUpdate(inst, update);
|
|
2672
|
-
|
|
2673
|
-
|
|
2724
|
+
callback = enqueueUpdate(inst, update, lane);
|
|
2725
|
+
null !== callback &&
|
|
2726
|
+
(scheduleUpdateOnFiber(callback, inst, lane, eventTime),
|
|
2727
|
+
entangleTransitions(callback, inst, lane));
|
|
2674
2728
|
}
|
|
2675
2729
|
};
|
|
2676
2730
|
function checkShouldComponentUpdate(
|
|
@@ -2763,26 +2817,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2763
2817
|
"function" === typeof instance.componentDidMount &&
|
|
2764
2818
|
(workInProgress.flags |= 4);
|
|
2765
2819
|
}
|
|
2766
|
-
var forkStack = [],
|
|
2767
|
-
forkStackIndex = 0,
|
|
2768
|
-
treeForkProvider = null,
|
|
2769
|
-
idStack = [],
|
|
2770
|
-
idStackIndex = 0,
|
|
2771
|
-
treeContextProvider = null;
|
|
2772
|
-
function popTreeContext(workInProgress) {
|
|
2773
|
-
for (; workInProgress === treeForkProvider; )
|
|
2774
|
-
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2775
|
-
(forkStack[forkStackIndex] = null),
|
|
2776
|
-
--forkStackIndex,
|
|
2777
|
-
(forkStack[forkStackIndex] = null);
|
|
2778
|
-
for (; workInProgress === treeContextProvider; )
|
|
2779
|
-
(treeContextProvider = idStack[--idStackIndex]),
|
|
2780
|
-
(idStack[idStackIndex] = null),
|
|
2781
|
-
--idStackIndex,
|
|
2782
|
-
(idStack[idStackIndex] = null),
|
|
2783
|
-
--idStackIndex,
|
|
2784
|
-
(idStack[idStackIndex] = null);
|
|
2785
|
-
}
|
|
2786
2820
|
function coerceRef(returnFiber, current, element) {
|
|
2787
2821
|
returnFiber = element.ref;
|
|
2788
2822
|
if (
|
|
@@ -2845,6 +2879,10 @@ function throwOnInvalidObjectType(returnFiber, newChild) {
|
|
|
2845
2879
|
"). If you meant to render a collection of children, use an array instead."
|
|
2846
2880
|
);
|
|
2847
2881
|
}
|
|
2882
|
+
function resolveLazy(lazyType) {
|
|
2883
|
+
var init = lazyType._init;
|
|
2884
|
+
return init(lazyType._payload);
|
|
2885
|
+
}
|
|
2848
2886
|
function ChildReconciler(shouldTrackSideEffects) {
|
|
2849
2887
|
function deleteChild(returnFiber, childToDelete) {
|
|
2850
2888
|
if (shouldTrackSideEffects) {
|
|
@@ -2917,7 +2955,14 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2917
2955
|
lanes,
|
|
2918
2956
|
element.key
|
|
2919
2957
|
);
|
|
2920
|
-
if (
|
|
2958
|
+
if (
|
|
2959
|
+
null !== current &&
|
|
2960
|
+
(current.elementType === elementType ||
|
|
2961
|
+
("object" === typeof elementType &&
|
|
2962
|
+
null !== elementType &&
|
|
2963
|
+
elementType.$$typeof === REACT_LAZY_TYPE &&
|
|
2964
|
+
resolveLazy(elementType) === current.type))
|
|
2965
|
+
)
|
|
2921
2966
|
return (
|
|
2922
2967
|
(lanes = useFiber(current, element.props)),
|
|
2923
2968
|
(lanes.ref = coerceRef(returnFiber, current, element)),
|
|
@@ -3008,6 +3053,9 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3008
3053
|
(newChild.return = returnFiber),
|
|
3009
3054
|
newChild
|
|
3010
3055
|
);
|
|
3056
|
+
case REACT_LAZY_TYPE:
|
|
3057
|
+
var init = newChild._init;
|
|
3058
|
+
return createChild(returnFiber, init(newChild._payload), lanes);
|
|
3011
3059
|
}
|
|
3012
3060
|
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
3013
3061
|
return (
|
|
@@ -3043,6 +3091,11 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3043
3091
|
return newChild.key === key
|
|
3044
3092
|
? updatePortal(returnFiber, oldFiber, newChild, lanes)
|
|
3045
3093
|
: null;
|
|
3094
|
+
case REACT_LAZY_TYPE:
|
|
3095
|
+
return (
|
|
3096
|
+
(key = newChild._init),
|
|
3097
|
+
updateSlot(returnFiber, oldFiber, key(newChild._payload), lanes)
|
|
3098
|
+
);
|
|
3046
3099
|
}
|
|
3047
3100
|
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
3048
3101
|
return null !== key
|
|
@@ -3085,6 +3138,15 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3085
3138
|
) || null),
|
|
3086
3139
|
updatePortal(returnFiber, existingChildren, newChild, lanes)
|
|
3087
3140
|
);
|
|
3141
|
+
case REACT_LAZY_TYPE:
|
|
3142
|
+
var init = newChild._init;
|
|
3143
|
+
return updateFromMap(
|
|
3144
|
+
existingChildren,
|
|
3145
|
+
returnFiber,
|
|
3146
|
+
newIdx,
|
|
3147
|
+
init(newChild._payload),
|
|
3148
|
+
lanes
|
|
3149
|
+
);
|
|
3088
3150
|
}
|
|
3089
3151
|
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
3090
3152
|
return (
|
|
@@ -3262,7 +3324,12 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3262
3324
|
});
|
|
3263
3325
|
return iteratorFn;
|
|
3264
3326
|
}
|
|
3265
|
-
|
|
3327
|
+
function reconcileChildFibers(
|
|
3328
|
+
returnFiber,
|
|
3329
|
+
currentFirstChild,
|
|
3330
|
+
newChild,
|
|
3331
|
+
lanes
|
|
3332
|
+
) {
|
|
3266
3333
|
"object" === typeof newChild &&
|
|
3267
3334
|
null !== newChild &&
|
|
3268
3335
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
@@ -3290,7 +3357,13 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3290
3357
|
returnFiber = currentFirstChild;
|
|
3291
3358
|
break a;
|
|
3292
3359
|
}
|
|
3293
|
-
} else if (
|
|
3360
|
+
} else if (
|
|
3361
|
+
child.elementType === key ||
|
|
3362
|
+
("object" === typeof key &&
|
|
3363
|
+
null !== key &&
|
|
3364
|
+
key.$$typeof === REACT_LAZY_TYPE &&
|
|
3365
|
+
resolveLazy(key) === child.type)
|
|
3366
|
+
) {
|
|
3294
3367
|
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3295
3368
|
currentFirstChild = useFiber(child, newChild.props);
|
|
3296
3369
|
currentFirstChild.ref = coerceRef(
|
|
@@ -3371,6 +3444,16 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3371
3444
|
returnFiber = currentFirstChild;
|
|
3372
3445
|
}
|
|
3373
3446
|
return placeSingleChild(returnFiber);
|
|
3447
|
+
case REACT_LAZY_TYPE:
|
|
3448
|
+
return (
|
|
3449
|
+
(child = newChild._init),
|
|
3450
|
+
reconcileChildFibers(
|
|
3451
|
+
returnFiber,
|
|
3452
|
+
currentFirstChild,
|
|
3453
|
+
child(newChild._payload),
|
|
3454
|
+
lanes
|
|
3455
|
+
)
|
|
3456
|
+
);
|
|
3374
3457
|
}
|
|
3375
3458
|
if (isArrayImpl(newChild))
|
|
3376
3459
|
return reconcileChildrenArray(
|
|
@@ -3406,7 +3489,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3406
3489
|
(returnFiber = currentFirstChild)),
|
|
3407
3490
|
placeSingleChild(returnFiber))
|
|
3408
3491
|
: deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3409
|
-
}
|
|
3492
|
+
}
|
|
3493
|
+
return reconcileChildFibers;
|
|
3410
3494
|
}
|
|
3411
3495
|
var reconcileChildFibers = ChildReconciler(!0),
|
|
3412
3496
|
mountChildFibers = ChildReconciler(!1),
|
|
@@ -3745,11 +3829,11 @@ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
|
3745
3829
|
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3746
3830
|
inst.value = nextSnapshot;
|
|
3747
3831
|
inst.getSnapshot = getSnapshot;
|
|
3748
|
-
checkIfSnapshotChanged(inst) &&
|
|
3832
|
+
checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
|
|
3749
3833
|
}
|
|
3750
3834
|
function subscribeToStore(fiber, inst, subscribe) {
|
|
3751
3835
|
return subscribe(function() {
|
|
3752
|
-
checkIfSnapshotChanged(inst) &&
|
|
3836
|
+
checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
|
|
3753
3837
|
});
|
|
3754
3838
|
}
|
|
3755
3839
|
function checkIfSnapshotChanged(inst) {
|
|
@@ -3762,6 +3846,10 @@ function checkIfSnapshotChanged(inst) {
|
|
|
3762
3846
|
return !0;
|
|
3763
3847
|
}
|
|
3764
3848
|
}
|
|
3849
|
+
function forceStoreRerender(fiber) {
|
|
3850
|
+
var root = markUpdateLaneFromFiberToRoot(fiber, 1);
|
|
3851
|
+
null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1);
|
|
3852
|
+
}
|
|
3765
3853
|
function mountState(initialState) {
|
|
3766
3854
|
var hook = mountWorkInProgressHook();
|
|
3767
3855
|
"function" === typeof initialState && (initialState = initialState());
|
|
@@ -3893,6 +3981,19 @@ function updateMemo(nextCreate, deps) {
|
|
|
3893
3981
|
hook.memoizedState = [nextCreate, deps];
|
|
3894
3982
|
return nextCreate;
|
|
3895
3983
|
}
|
|
3984
|
+
function updateDeferredValueImpl(hook, prevValue, value) {
|
|
3985
|
+
if (0 === (renderLanes & 21))
|
|
3986
|
+
return (
|
|
3987
|
+
hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)),
|
|
3988
|
+
(hook.memoizedState = value)
|
|
3989
|
+
);
|
|
3990
|
+
objectIs(value, prevValue) ||
|
|
3991
|
+
((value = claimNextTransitionLane()),
|
|
3992
|
+
(currentlyRenderingFiber$1.lanes |= value),
|
|
3993
|
+
(workInProgressRootSkippedLanes |= value),
|
|
3994
|
+
(hook.baseState = !0));
|
|
3995
|
+
return prevValue;
|
|
3996
|
+
}
|
|
3896
3997
|
function startTransition(setPending, callback) {
|
|
3897
3998
|
var previousPriority = currentUpdatePriority;
|
|
3898
3999
|
currentUpdatePriority =
|
|
@@ -3919,12 +4020,15 @@ function dispatchReducerAction(fiber, queue, action) {
|
|
|
3919
4020
|
eagerState: null,
|
|
3920
4021
|
next: null
|
|
3921
4022
|
};
|
|
3922
|
-
isRenderPhaseUpdate(fiber)
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
4023
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, action);
|
|
4024
|
+
else if (
|
|
4025
|
+
((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),
|
|
4026
|
+
null !== action)
|
|
4027
|
+
) {
|
|
4028
|
+
var eventTime = requestEventTime();
|
|
4029
|
+
scheduleUpdateOnFiber(action, fiber, lane, eventTime);
|
|
4030
|
+
entangleTransitionUpdate(action, queue, lane);
|
|
4031
|
+
}
|
|
3928
4032
|
}
|
|
3929
4033
|
function dispatchSetState(fiber, queue, action) {
|
|
3930
4034
|
var lane = requestUpdateLane(fiber),
|
|
@@ -3937,7 +4041,6 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
3937
4041
|
};
|
|
3938
4042
|
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3939
4043
|
else {
|
|
3940
|
-
enqueueUpdate$1(fiber, queue, update);
|
|
3941
4044
|
var alternate = fiber.alternate;
|
|
3942
4045
|
if (
|
|
3943
4046
|
0 === fiber.lanes &&
|
|
@@ -3949,13 +4052,22 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
3949
4052
|
eagerState = alternate(currentState, action);
|
|
3950
4053
|
update.hasEagerState = !0;
|
|
3951
4054
|
update.eagerState = eagerState;
|
|
3952
|
-
if (objectIs(eagerState, currentState))
|
|
4055
|
+
if (objectIs(eagerState, currentState)) {
|
|
4056
|
+
var interleaved = queue.interleaved;
|
|
4057
|
+
null === interleaved
|
|
4058
|
+
? ((update.next = update), pushConcurrentUpdateQueue(queue))
|
|
4059
|
+
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
4060
|
+
queue.interleaved = update;
|
|
4061
|
+
return;
|
|
4062
|
+
}
|
|
3953
4063
|
} catch (error) {
|
|
3954
4064
|
} finally {
|
|
3955
4065
|
}
|
|
3956
|
-
action =
|
|
3957
|
-
|
|
3958
|
-
|
|
4066
|
+
action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
|
|
4067
|
+
null !== action &&
|
|
4068
|
+
((update = requestEventTime()),
|
|
4069
|
+
scheduleUpdateOnFiber(action, fiber, lane, update),
|
|
4070
|
+
entangleTransitionUpdate(action, queue, lane));
|
|
3959
4071
|
}
|
|
3960
4072
|
}
|
|
3961
4073
|
function isRenderPhaseUpdate(fiber) {
|
|
@@ -3973,24 +4085,6 @@ function enqueueRenderPhaseUpdate(queue, update) {
|
|
|
3973
4085
|
: ((update.next = pending.next), (pending.next = update));
|
|
3974
4086
|
queue.pending = update;
|
|
3975
4087
|
}
|
|
3976
|
-
function enqueueUpdate$1(fiber, queue, update) {
|
|
3977
|
-
null !== workInProgressRoot &&
|
|
3978
|
-
0 !== (fiber.mode & 1) &&
|
|
3979
|
-
0 === (executionContext & 2)
|
|
3980
|
-
? ((fiber = queue.interleaved),
|
|
3981
|
-
null === fiber
|
|
3982
|
-
? ((update.next = update),
|
|
3983
|
-
null === interleavedQueues
|
|
3984
|
-
? (interleavedQueues = [queue])
|
|
3985
|
-
: interleavedQueues.push(queue))
|
|
3986
|
-
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3987
|
-
(queue.interleaved = update))
|
|
3988
|
-
: ((fiber = queue.pending),
|
|
3989
|
-
null === fiber
|
|
3990
|
-
? (update.next = update)
|
|
3991
|
-
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3992
|
-
(queue.pending = update));
|
|
3993
|
-
}
|
|
3994
4088
|
function entangleTransitionUpdate(root, queue, lane) {
|
|
3995
4089
|
if (0 !== (lane & 4194240)) {
|
|
3996
4090
|
var queueLanes = queue.lanes;
|
|
@@ -4081,29 +4175,14 @@ var ContextOnlyDispatcher = {
|
|
|
4081
4175
|
useState: mountState,
|
|
4082
4176
|
useDebugValue: mountDebugValue,
|
|
4083
4177
|
useDeferredValue: function(value) {
|
|
4084
|
-
|
|
4085
|
-
prevValue = _mountState[0],
|
|
4086
|
-
setValue = _mountState[1];
|
|
4087
|
-
mountEffect(
|
|
4088
|
-
function() {
|
|
4089
|
-
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
|
4090
|
-
ReactCurrentBatchConfig$1.transition = {};
|
|
4091
|
-
try {
|
|
4092
|
-
setValue(value);
|
|
4093
|
-
} finally {
|
|
4094
|
-
ReactCurrentBatchConfig$1.transition = prevTransition;
|
|
4095
|
-
}
|
|
4096
|
-
},
|
|
4097
|
-
[value]
|
|
4098
|
-
);
|
|
4099
|
-
return prevValue;
|
|
4178
|
+
return (mountWorkInProgressHook().memoizedState = value);
|
|
4100
4179
|
},
|
|
4101
4180
|
useTransition: function() {
|
|
4102
|
-
var
|
|
4103
|
-
isPending =
|
|
4104
|
-
|
|
4105
|
-
mountWorkInProgressHook().memoizedState =
|
|
4106
|
-
return [isPending,
|
|
4181
|
+
var _mountState = mountState(!1),
|
|
4182
|
+
isPending = _mountState[0];
|
|
4183
|
+
_mountState = startTransition.bind(null, _mountState[1]);
|
|
4184
|
+
mountWorkInProgressHook().memoizedState = _mountState;
|
|
4185
|
+
return [isPending, _mountState];
|
|
4107
4186
|
},
|
|
4108
4187
|
useMutableSource: function() {},
|
|
4109
4188
|
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
@@ -4157,22 +4236,8 @@ var ContextOnlyDispatcher = {
|
|
|
4157
4236
|
},
|
|
4158
4237
|
useDebugValue: mountDebugValue,
|
|
4159
4238
|
useDeferredValue: function(value) {
|
|
4160
|
-
var
|
|
4161
|
-
|
|
4162
|
-
setValue = _updateState[1];
|
|
4163
|
-
updateEffect(
|
|
4164
|
-
function() {
|
|
4165
|
-
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
|
4166
|
-
ReactCurrentBatchConfig$1.transition = {};
|
|
4167
|
-
try {
|
|
4168
|
-
setValue(value);
|
|
4169
|
-
} finally {
|
|
4170
|
-
ReactCurrentBatchConfig$1.transition = prevTransition;
|
|
4171
|
-
}
|
|
4172
|
-
},
|
|
4173
|
-
[value]
|
|
4174
|
-
);
|
|
4175
|
-
return prevValue;
|
|
4239
|
+
var hook = updateWorkInProgressHook();
|
|
4240
|
+
return updateDeferredValueImpl(hook, currentHook.memoizedState, value);
|
|
4176
4241
|
},
|
|
4177
4242
|
useTransition: function() {
|
|
4178
4243
|
var isPending = updateReducer(basicStateReducer)[0],
|
|
@@ -4200,22 +4265,10 @@ var ContextOnlyDispatcher = {
|
|
|
4200
4265
|
},
|
|
4201
4266
|
useDebugValue: mountDebugValue,
|
|
4202
4267
|
useDeferredValue: function(value) {
|
|
4203
|
-
var
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
function() {
|
|
4208
|
-
var prevTransition = ReactCurrentBatchConfig$1.transition;
|
|
4209
|
-
ReactCurrentBatchConfig$1.transition = {};
|
|
4210
|
-
try {
|
|
4211
|
-
setValue(value);
|
|
4212
|
-
} finally {
|
|
4213
|
-
ReactCurrentBatchConfig$1.transition = prevTransition;
|
|
4214
|
-
}
|
|
4215
|
-
},
|
|
4216
|
-
[value]
|
|
4217
|
-
);
|
|
4218
|
-
return prevValue;
|
|
4268
|
+
var hook = updateWorkInProgressHook();
|
|
4269
|
+
return null === currentHook
|
|
4270
|
+
? (hook.memoizedState = value)
|
|
4271
|
+
: updateDeferredValueImpl(hook, currentHook.memoizedState, value);
|
|
4219
4272
|
},
|
|
4220
4273
|
useTransition: function() {
|
|
4221
4274
|
var isPending = rerenderReducer(basicStateReducer)[0],
|
|
@@ -4285,7 +4338,7 @@ function transferActualDuration(fiber) {
|
|
|
4285
4338
|
for (var child = fiber.child; child; )
|
|
4286
4339
|
(fiber.actualDuration += child.actualDuration), (child = child.sibling);
|
|
4287
4340
|
}
|
|
4288
|
-
function
|
|
4341
|
+
function createCapturedValueAtFiber(value, source) {
|
|
4289
4342
|
try {
|
|
4290
4343
|
var info = "",
|
|
4291
4344
|
node = source;
|
|
@@ -4296,7 +4349,20 @@ function createCapturedValue(value, source) {
|
|
|
4296
4349
|
JSCompiler_inline_result =
|
|
4297
4350
|
"\nError generating stack: " + x.message + "\n" + x.stack;
|
|
4298
4351
|
}
|
|
4299
|
-
return {
|
|
4352
|
+
return {
|
|
4353
|
+
value: value,
|
|
4354
|
+
source: source,
|
|
4355
|
+
stack: JSCompiler_inline_result,
|
|
4356
|
+
digest: null
|
|
4357
|
+
};
|
|
4358
|
+
}
|
|
4359
|
+
function createCapturedValue(value, digest, stack) {
|
|
4360
|
+
return {
|
|
4361
|
+
value: value,
|
|
4362
|
+
source: null,
|
|
4363
|
+
stack: null != stack ? stack : null,
|
|
4364
|
+
digest: null != digest ? digest : null
|
|
4365
|
+
};
|
|
4300
4366
|
}
|
|
4301
4367
|
if (
|
|
4302
4368
|
"function" !==
|
|
@@ -4377,667 +4443,126 @@ function attachPingListener(root, wakeable, lanes) {
|
|
|
4377
4443
|
isDevToolsPresent && restorePendingUpdaters(root, lanes),
|
|
4378
4444
|
wakeable.then(pingCache, pingCache));
|
|
4379
4445
|
}
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4446
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4447
|
+
didReceiveUpdate = !1;
|
|
4448
|
+
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4449
|
+
workInProgress.child =
|
|
4450
|
+
null === current
|
|
4451
|
+
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4452
|
+
: reconcileChildFibers(
|
|
4453
|
+
workInProgress,
|
|
4454
|
+
current.child,
|
|
4455
|
+
nextChildren,
|
|
4456
|
+
renderLanes
|
|
4457
|
+
);
|
|
4389
4458
|
}
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
parent,
|
|
4459
|
+
function updateForwardRef(
|
|
4460
|
+
current,
|
|
4393
4461
|
workInProgress,
|
|
4394
|
-
|
|
4395
|
-
|
|
4462
|
+
Component,
|
|
4463
|
+
nextProps,
|
|
4464
|
+
renderLanes
|
|
4396
4465
|
) {
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4466
|
+
Component = Component.render;
|
|
4467
|
+
var ref = workInProgress.ref;
|
|
4468
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
4469
|
+
nextProps = renderWithHooks(
|
|
4470
|
+
current,
|
|
4471
|
+
workInProgress,
|
|
4472
|
+
Component,
|
|
4473
|
+
nextProps,
|
|
4474
|
+
ref,
|
|
4475
|
+
renderLanes
|
|
4476
|
+
);
|
|
4477
|
+
if (null !== current && !didReceiveUpdate)
|
|
4478
|
+
return (
|
|
4479
|
+
(workInProgress.updateQueue = current.updateQueue),
|
|
4480
|
+
(workInProgress.flags &= -2053),
|
|
4481
|
+
(current.lanes &= ~renderLanes),
|
|
4482
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4483
|
+
);
|
|
4484
|
+
workInProgress.flags |= 1;
|
|
4485
|
+
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4486
|
+
return workInProgress.child;
|
|
4487
|
+
}
|
|
4488
|
+
function updateMemoComponent(
|
|
4489
|
+
current,
|
|
4490
|
+
workInProgress,
|
|
4491
|
+
Component,
|
|
4492
|
+
nextProps,
|
|
4493
|
+
renderLanes
|
|
4494
|
+
) {
|
|
4495
|
+
if (null === current) {
|
|
4496
|
+
var type = Component.type;
|
|
4497
|
+
if (
|
|
4498
|
+
"function" === typeof type &&
|
|
4499
|
+
!shouldConstruct(type) &&
|
|
4500
|
+
void 0 === type.defaultProps &&
|
|
4501
|
+
null === Component.compare &&
|
|
4502
|
+
void 0 === Component.defaultProps
|
|
4503
|
+
)
|
|
4504
|
+
return (
|
|
4505
|
+
(workInProgress.tag = 15),
|
|
4506
|
+
(workInProgress.type = type),
|
|
4507
|
+
updateSimpleMemoComponent(
|
|
4508
|
+
current,
|
|
4509
|
+
workInProgress,
|
|
4510
|
+
type,
|
|
4511
|
+
nextProps,
|
|
4512
|
+
renderLanes
|
|
4513
|
+
)
|
|
4514
|
+
);
|
|
4515
|
+
current = createFiberFromTypeAndProps(
|
|
4516
|
+
Component.type,
|
|
4517
|
+
null,
|
|
4518
|
+
nextProps,
|
|
4519
|
+
workInProgress,
|
|
4520
|
+
workInProgress.mode,
|
|
4521
|
+
renderLanes
|
|
4522
|
+
);
|
|
4523
|
+
current.ref = workInProgress.ref;
|
|
4524
|
+
current.return = workInProgress;
|
|
4525
|
+
return (workInProgress.child = current);
|
|
4426
4526
|
}
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4527
|
+
type = current.child;
|
|
4528
|
+
if (0 === (current.lanes & renderLanes)) {
|
|
4529
|
+
var prevProps = type.memoizedProps;
|
|
4530
|
+
Component = Component.compare;
|
|
4531
|
+
Component = null !== Component ? Component : shallowEqual;
|
|
4532
|
+
if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)
|
|
4533
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4534
|
+
}
|
|
4535
|
+
workInProgress.flags |= 1;
|
|
4536
|
+
current = createWorkInProgress(type, nextProps);
|
|
4537
|
+
current.ref = workInProgress.ref;
|
|
4538
|
+
current.return = workInProgress;
|
|
4539
|
+
return (workInProgress.child = current);
|
|
4540
|
+
}
|
|
4541
|
+
function updateSimpleMemoComponent(
|
|
4542
|
+
current,
|
|
4430
4543
|
workInProgress,
|
|
4431
|
-
|
|
4432
|
-
|
|
4544
|
+
Component,
|
|
4545
|
+
nextProps,
|
|
4546
|
+
renderLanes
|
|
4433
4547
|
) {
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
(instance = cloneHiddenInstance(instance));
|
|
4440
|
-
appendChildNodeToSet(containerChildSet, instance.node);
|
|
4441
|
-
} else if (6 === node.tag) {
|
|
4442
|
-
instance = node.stateNode;
|
|
4443
|
-
if (needsVisibilityToggle && isHidden)
|
|
4444
|
-
throw Error("Not yet implemented.");
|
|
4445
|
-
appendChildNodeToSet(containerChildSet, instance.node);
|
|
4446
|
-
} else if (4 !== node.tag)
|
|
4447
|
-
if (22 === node.tag && null !== node.memoizedState)
|
|
4448
|
-
(instance = node.child),
|
|
4449
|
-
null !== instance && (instance.return = node),
|
|
4450
|
-
appendAllChildrenToContainer(containerChildSet, node, !0, !0);
|
|
4451
|
-
else if (null !== node.child) {
|
|
4452
|
-
node.child.return = node;
|
|
4453
|
-
node = node.child;
|
|
4454
|
-
continue;
|
|
4455
|
-
}
|
|
4456
|
-
if (node === workInProgress) break;
|
|
4457
|
-
for (; null === node.sibling; ) {
|
|
4458
|
-
if (null === node.return || node.return === workInProgress) return;
|
|
4459
|
-
node = node.return;
|
|
4460
|
-
}
|
|
4461
|
-
node.sibling.return = node.return;
|
|
4462
|
-
node = node.sibling;
|
|
4463
|
-
}
|
|
4464
|
-
}
|
|
4465
|
-
updateHostContainer = function(current, workInProgress) {
|
|
4466
|
-
var portalOrRoot = workInProgress.stateNode;
|
|
4467
|
-
if (!hadNoMutationsEffects(current, workInProgress)) {
|
|
4468
|
-
current = portalOrRoot.containerInfo;
|
|
4469
|
-
var newChildSet = createChildNodeSet(current);
|
|
4470
|
-
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
|
|
4471
|
-
portalOrRoot.pendingChildren = newChildSet;
|
|
4472
|
-
workInProgress.flags |= 4;
|
|
4473
|
-
completeRoot(current, newChildSet);
|
|
4474
|
-
}
|
|
4475
|
-
};
|
|
4476
|
-
updateHostComponent = function(current, workInProgress, type, newProps) {
|
|
4477
|
-
type = current.stateNode;
|
|
4478
|
-
var oldProps = current.memoizedProps;
|
|
4479
|
-
if (
|
|
4480
|
-
(current = hadNoMutationsEffects(current, workInProgress)) &&
|
|
4481
|
-
oldProps === newProps
|
|
4482
|
-
)
|
|
4483
|
-
workInProgress.stateNode = type;
|
|
4484
|
-
else {
|
|
4485
|
-
var recyclableInstance = workInProgress.stateNode;
|
|
4486
|
-
requiredContext(contextStackCursor$1.current);
|
|
4487
|
-
var updatePayload = null;
|
|
4488
|
-
oldProps !== newProps &&
|
|
4489
|
-
((oldProps = diffProperties(
|
|
4490
|
-
null,
|
|
4491
|
-
oldProps,
|
|
4492
|
-
newProps,
|
|
4493
|
-
recyclableInstance.canonical.viewConfig.validAttributes
|
|
4494
|
-
)),
|
|
4495
|
-
(recyclableInstance.canonical.currentProps = newProps),
|
|
4496
|
-
(updatePayload = oldProps));
|
|
4497
|
-
current && null === updatePayload
|
|
4498
|
-
? (workInProgress.stateNode = type)
|
|
4499
|
-
: ((newProps = updatePayload),
|
|
4500
|
-
(oldProps = type.node),
|
|
4501
|
-
(type = {
|
|
4502
|
-
node: current
|
|
4503
|
-
? null !== newProps
|
|
4504
|
-
? cloneNodeWithNewProps(oldProps, newProps)
|
|
4505
|
-
: cloneNode(oldProps)
|
|
4506
|
-
: null !== newProps
|
|
4507
|
-
? cloneNodeWithNewChildrenAndProps(oldProps, newProps)
|
|
4508
|
-
: cloneNodeWithNewChildren(oldProps),
|
|
4509
|
-
canonical: type.canonical
|
|
4510
|
-
}),
|
|
4511
|
-
(workInProgress.stateNode = type),
|
|
4512
|
-
current
|
|
4513
|
-
? (workInProgress.flags |= 4)
|
|
4514
|
-
: appendAllChildren(type, workInProgress, !1, !1));
|
|
4515
|
-
}
|
|
4516
|
-
};
|
|
4517
|
-
updateHostText = function(current, workInProgress, oldText, newText) {
|
|
4518
|
-
oldText !== newText
|
|
4519
|
-
? ((current = requiredContext(rootInstanceStackCursor.current)),
|
|
4520
|
-
(oldText = requiredContext(contextStackCursor$1.current)),
|
|
4521
|
-
(workInProgress.stateNode = createTextInstance(
|
|
4522
|
-
newText,
|
|
4523
|
-
current,
|
|
4524
|
-
oldText,
|
|
4525
|
-
workInProgress
|
|
4526
|
-
)),
|
|
4527
|
-
(workInProgress.flags |= 4))
|
|
4528
|
-
: (workInProgress.stateNode = current.stateNode);
|
|
4529
|
-
};
|
|
4530
|
-
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4531
|
-
switch (renderState.tailMode) {
|
|
4532
|
-
case "hidden":
|
|
4533
|
-
hasRenderedATailFallback = renderState.tail;
|
|
4534
|
-
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4535
|
-
null !== hasRenderedATailFallback.alternate &&
|
|
4536
|
-
(lastTailNode = hasRenderedATailFallback),
|
|
4537
|
-
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4538
|
-
null === lastTailNode
|
|
4539
|
-
? (renderState.tail = null)
|
|
4540
|
-
: (lastTailNode.sibling = null);
|
|
4541
|
-
break;
|
|
4542
|
-
case "collapsed":
|
|
4543
|
-
lastTailNode = renderState.tail;
|
|
4544
|
-
for (var lastTailNode$37 = null; null !== lastTailNode; )
|
|
4545
|
-
null !== lastTailNode.alternate && (lastTailNode$37 = lastTailNode),
|
|
4546
|
-
(lastTailNode = lastTailNode.sibling);
|
|
4547
|
-
null === lastTailNode$37
|
|
4548
|
-
? hasRenderedATailFallback || null === renderState.tail
|
|
4549
|
-
? (renderState.tail = null)
|
|
4550
|
-
: (renderState.tail.sibling = null)
|
|
4551
|
-
: (lastTailNode$37.sibling = null);
|
|
4552
|
-
}
|
|
4553
|
-
}
|
|
4554
|
-
function bubbleProperties(completedWork) {
|
|
4555
|
-
var didBailout =
|
|
4556
|
-
null !== completedWork.alternate &&
|
|
4557
|
-
completedWork.alternate.child === completedWork.child,
|
|
4558
|
-
newChildLanes = 0,
|
|
4559
|
-
subtreeFlags = 0;
|
|
4560
|
-
if (didBailout)
|
|
4561
|
-
if (0 !== (completedWork.mode & 2)) {
|
|
4562
|
-
for (
|
|
4563
|
-
var treeBaseDuration$39 = completedWork.selfBaseDuration,
|
|
4564
|
-
child$40 = completedWork.child;
|
|
4565
|
-
null !== child$40;
|
|
4566
|
-
|
|
4567
|
-
)
|
|
4568
|
-
(newChildLanes |= child$40.lanes | child$40.childLanes),
|
|
4569
|
-
(subtreeFlags |= child$40.subtreeFlags & 14680064),
|
|
4570
|
-
(subtreeFlags |= child$40.flags & 14680064),
|
|
4571
|
-
(treeBaseDuration$39 += child$40.treeBaseDuration),
|
|
4572
|
-
(child$40 = child$40.sibling);
|
|
4573
|
-
completedWork.treeBaseDuration = treeBaseDuration$39;
|
|
4574
|
-
} else
|
|
4575
|
-
for (
|
|
4576
|
-
treeBaseDuration$39 = completedWork.child;
|
|
4577
|
-
null !== treeBaseDuration$39;
|
|
4578
|
-
|
|
4579
|
-
)
|
|
4580
|
-
(newChildLanes |=
|
|
4581
|
-
treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
|
|
4582
|
-
(subtreeFlags |= treeBaseDuration$39.subtreeFlags & 14680064),
|
|
4583
|
-
(subtreeFlags |= treeBaseDuration$39.flags & 14680064),
|
|
4584
|
-
(treeBaseDuration$39.return = completedWork),
|
|
4585
|
-
(treeBaseDuration$39 = treeBaseDuration$39.sibling);
|
|
4586
|
-
else if (0 !== (completedWork.mode & 2)) {
|
|
4587
|
-
treeBaseDuration$39 = completedWork.actualDuration;
|
|
4588
|
-
child$40 = completedWork.selfBaseDuration;
|
|
4589
|
-
for (var child = completedWork.child; null !== child; )
|
|
4590
|
-
(newChildLanes |= child.lanes | child.childLanes),
|
|
4591
|
-
(subtreeFlags |= child.subtreeFlags),
|
|
4592
|
-
(subtreeFlags |= child.flags),
|
|
4593
|
-
(treeBaseDuration$39 += child.actualDuration),
|
|
4594
|
-
(child$40 += child.treeBaseDuration),
|
|
4595
|
-
(child = child.sibling);
|
|
4596
|
-
completedWork.actualDuration = treeBaseDuration$39;
|
|
4597
|
-
completedWork.treeBaseDuration = child$40;
|
|
4598
|
-
} else
|
|
4599
|
-
for (
|
|
4600
|
-
treeBaseDuration$39 = completedWork.child;
|
|
4601
|
-
null !== treeBaseDuration$39;
|
|
4602
|
-
|
|
4603
|
-
)
|
|
4604
|
-
(newChildLanes |=
|
|
4605
|
-
treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
|
|
4606
|
-
(subtreeFlags |= treeBaseDuration$39.subtreeFlags),
|
|
4607
|
-
(subtreeFlags |= treeBaseDuration$39.flags),
|
|
4608
|
-
(treeBaseDuration$39.return = completedWork),
|
|
4609
|
-
(treeBaseDuration$39 = treeBaseDuration$39.sibling);
|
|
4610
|
-
completedWork.subtreeFlags |= subtreeFlags;
|
|
4611
|
-
completedWork.childLanes = newChildLanes;
|
|
4612
|
-
return didBailout;
|
|
4613
|
-
}
|
|
4614
|
-
function completeWork(current, workInProgress, renderLanes) {
|
|
4615
|
-
var newProps = workInProgress.pendingProps;
|
|
4616
|
-
popTreeContext(workInProgress);
|
|
4617
|
-
switch (workInProgress.tag) {
|
|
4618
|
-
case 2:
|
|
4619
|
-
case 16:
|
|
4620
|
-
case 15:
|
|
4621
|
-
case 0:
|
|
4622
|
-
case 11:
|
|
4623
|
-
case 7:
|
|
4624
|
-
case 8:
|
|
4625
|
-
case 12:
|
|
4626
|
-
case 9:
|
|
4627
|
-
case 14:
|
|
4628
|
-
return bubbleProperties(workInProgress), null;
|
|
4629
|
-
case 1:
|
|
4630
|
-
return (
|
|
4631
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
4632
|
-
bubbleProperties(workInProgress),
|
|
4633
|
-
null
|
|
4634
|
-
);
|
|
4635
|
-
case 3:
|
|
4636
|
-
return (
|
|
4637
|
-
(newProps = workInProgress.stateNode),
|
|
4638
|
-
popHostContainer(),
|
|
4639
|
-
pop(didPerformWorkStackCursor),
|
|
4640
|
-
pop(contextStackCursor),
|
|
4641
|
-
resetWorkInProgressVersions(),
|
|
4642
|
-
newProps.pendingContext &&
|
|
4643
|
-
((newProps.context = newProps.pendingContext),
|
|
4644
|
-
(newProps.pendingContext = null)),
|
|
4645
|
-
(null !== current && null !== current.child) ||
|
|
4646
|
-
null === current ||
|
|
4647
|
-
(current.memoizedState.isDehydrated &&
|
|
4648
|
-
0 === (workInProgress.flags & 256)) ||
|
|
4649
|
-
(workInProgress.flags |= 1024),
|
|
4650
|
-
updateHostContainer(current, workInProgress),
|
|
4651
|
-
bubbleProperties(workInProgress),
|
|
4652
|
-
null
|
|
4653
|
-
);
|
|
4654
|
-
case 5:
|
|
4655
|
-
popHostContext(workInProgress);
|
|
4656
|
-
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4657
|
-
var type = workInProgress.type;
|
|
4658
|
-
if (null !== current && null != workInProgress.stateNode)
|
|
4659
|
-
updateHostComponent(
|
|
4660
|
-
current,
|
|
4661
|
-
workInProgress,
|
|
4662
|
-
type,
|
|
4663
|
-
newProps,
|
|
4664
|
-
renderLanes
|
|
4665
|
-
),
|
|
4666
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4667
|
-
else {
|
|
4668
|
-
if (!newProps) {
|
|
4669
|
-
if (null === workInProgress.stateNode)
|
|
4670
|
-
throw Error(
|
|
4671
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4672
|
-
);
|
|
4673
|
-
bubbleProperties(workInProgress);
|
|
4674
|
-
return null;
|
|
4675
|
-
}
|
|
4676
|
-
requiredContext(contextStackCursor$1.current);
|
|
4677
|
-
current = nextReactTag;
|
|
4678
|
-
nextReactTag += 2;
|
|
4679
|
-
type = getViewConfigForType(type);
|
|
4680
|
-
var updatePayload = diffProperties(
|
|
4681
|
-
null,
|
|
4682
|
-
emptyObject,
|
|
4683
|
-
newProps,
|
|
4684
|
-
type.validAttributes
|
|
4685
|
-
);
|
|
4686
|
-
renderLanes = createNode(
|
|
4687
|
-
current,
|
|
4688
|
-
type.uiViewClassName,
|
|
4689
|
-
renderLanes,
|
|
4690
|
-
updatePayload,
|
|
4691
|
-
workInProgress
|
|
4692
|
-
);
|
|
4693
|
-
current = new ReactFabricHostComponent(
|
|
4694
|
-
current,
|
|
4695
|
-
type,
|
|
4696
|
-
newProps,
|
|
4697
|
-
workInProgress
|
|
4698
|
-
);
|
|
4699
|
-
current = { node: renderLanes, canonical: current };
|
|
4700
|
-
appendAllChildren(current, workInProgress, !1, !1);
|
|
4701
|
-
workInProgress.stateNode = current;
|
|
4702
|
-
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4703
|
-
}
|
|
4704
|
-
bubbleProperties(workInProgress);
|
|
4705
|
-
return null;
|
|
4706
|
-
case 6:
|
|
4707
|
-
if (current && null != workInProgress.stateNode)
|
|
4708
|
-
updateHostText(
|
|
4709
|
-
current,
|
|
4710
|
-
workInProgress,
|
|
4711
|
-
current.memoizedProps,
|
|
4712
|
-
newProps
|
|
4713
|
-
);
|
|
4714
|
-
else {
|
|
4715
|
-
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
4716
|
-
throw Error(
|
|
4717
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4718
|
-
);
|
|
4719
|
-
current = requiredContext(rootInstanceStackCursor.current);
|
|
4720
|
-
renderLanes = requiredContext(contextStackCursor$1.current);
|
|
4721
|
-
workInProgress.stateNode = createTextInstance(
|
|
4722
|
-
newProps,
|
|
4723
|
-
current,
|
|
4724
|
-
renderLanes,
|
|
4725
|
-
workInProgress
|
|
4726
|
-
);
|
|
4727
|
-
}
|
|
4728
|
-
bubbleProperties(workInProgress);
|
|
4729
|
-
return null;
|
|
4730
|
-
case 13:
|
|
4731
|
-
pop(suspenseStackCursor);
|
|
4732
|
-
newProps = workInProgress.memoizedState;
|
|
4733
|
-
if (0 !== (workInProgress.flags & 128))
|
|
4734
|
-
return (
|
|
4735
|
-
(workInProgress.lanes = renderLanes),
|
|
4736
|
-
0 !== (workInProgress.mode & 2) &&
|
|
4737
|
-
transferActualDuration(workInProgress),
|
|
4738
|
-
workInProgress
|
|
4739
|
-
);
|
|
4740
|
-
newProps = null !== newProps;
|
|
4741
|
-
renderLanes = !1;
|
|
4742
|
-
null !== current && (renderLanes = null !== current.memoizedState);
|
|
4743
|
-
newProps &&
|
|
4744
|
-
!renderLanes &&
|
|
4745
|
-
((workInProgress.child.flags |= 8192),
|
|
4746
|
-
0 !== (workInProgress.mode & 1) &&
|
|
4747
|
-
(null === current || 0 !== (suspenseStackCursor.current & 1)
|
|
4748
|
-
? 0 === workInProgressRootExitStatus &&
|
|
4749
|
-
(workInProgressRootExitStatus = 3)
|
|
4750
|
-
: renderDidSuspendDelayIfPossible()));
|
|
4751
|
-
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
4752
|
-
bubbleProperties(workInProgress);
|
|
4753
|
-
0 !== (workInProgress.mode & 2) &&
|
|
4754
|
-
newProps &&
|
|
4755
|
-
((current = workInProgress.child),
|
|
4756
|
-
null !== current &&
|
|
4757
|
-
(workInProgress.treeBaseDuration -= current.treeBaseDuration));
|
|
4758
|
-
return null;
|
|
4759
|
-
case 4:
|
|
4760
|
-
return (
|
|
4761
|
-
popHostContainer(),
|
|
4762
|
-
updateHostContainer(current, workInProgress),
|
|
4763
|
-
bubbleProperties(workInProgress),
|
|
4764
|
-
null
|
|
4765
|
-
);
|
|
4766
|
-
case 10:
|
|
4767
|
-
return (
|
|
4768
|
-
popProvider(workInProgress.type._context),
|
|
4769
|
-
bubbleProperties(workInProgress),
|
|
4770
|
-
null
|
|
4771
|
-
);
|
|
4772
|
-
case 17:
|
|
4773
|
-
return (
|
|
4774
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
4775
|
-
bubbleProperties(workInProgress),
|
|
4776
|
-
null
|
|
4777
|
-
);
|
|
4778
|
-
case 19:
|
|
4779
|
-
pop(suspenseStackCursor);
|
|
4780
|
-
type = workInProgress.memoizedState;
|
|
4781
|
-
if (null === type) return bubbleProperties(workInProgress), null;
|
|
4782
|
-
newProps = 0 !== (workInProgress.flags & 128);
|
|
4783
|
-
updatePayload = type.rendering;
|
|
4784
|
-
if (null === updatePayload)
|
|
4785
|
-
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
4786
|
-
else {
|
|
4787
|
-
if (
|
|
4788
|
-
0 !== workInProgressRootExitStatus ||
|
|
4789
|
-
(null !== current && 0 !== (current.flags & 128))
|
|
4790
|
-
)
|
|
4791
|
-
for (current = workInProgress.child; null !== current; ) {
|
|
4792
|
-
updatePayload = findFirstSuspended(current);
|
|
4793
|
-
if (null !== updatePayload) {
|
|
4794
|
-
workInProgress.flags |= 128;
|
|
4795
|
-
cutOffTailIfNeeded(type, !1);
|
|
4796
|
-
current = updatePayload.updateQueue;
|
|
4797
|
-
null !== current &&
|
|
4798
|
-
((workInProgress.updateQueue = current),
|
|
4799
|
-
(workInProgress.flags |= 4));
|
|
4800
|
-
workInProgress.subtreeFlags = 0;
|
|
4801
|
-
current = renderLanes;
|
|
4802
|
-
for (newProps = workInProgress.child; null !== newProps; )
|
|
4803
|
-
(renderLanes = newProps),
|
|
4804
|
-
(updatePayload = current),
|
|
4805
|
-
(renderLanes.flags &= 14680066),
|
|
4806
|
-
(type = renderLanes.alternate),
|
|
4807
|
-
null === type
|
|
4808
|
-
? ((renderLanes.childLanes = 0),
|
|
4809
|
-
(renderLanes.lanes = updatePayload),
|
|
4810
|
-
(renderLanes.child = null),
|
|
4811
|
-
(renderLanes.subtreeFlags = 0),
|
|
4812
|
-
(renderLanes.memoizedProps = null),
|
|
4813
|
-
(renderLanes.memoizedState = null),
|
|
4814
|
-
(renderLanes.updateQueue = null),
|
|
4815
|
-
(renderLanes.dependencies = null),
|
|
4816
|
-
(renderLanes.stateNode = null),
|
|
4817
|
-
(renderLanes.selfBaseDuration = 0),
|
|
4818
|
-
(renderLanes.treeBaseDuration = 0))
|
|
4819
|
-
: ((renderLanes.childLanes = type.childLanes),
|
|
4820
|
-
(renderLanes.lanes = type.lanes),
|
|
4821
|
-
(renderLanes.child = type.child),
|
|
4822
|
-
(renderLanes.subtreeFlags = 0),
|
|
4823
|
-
(renderLanes.deletions = null),
|
|
4824
|
-
(renderLanes.memoizedProps = type.memoizedProps),
|
|
4825
|
-
(renderLanes.memoizedState = type.memoizedState),
|
|
4826
|
-
(renderLanes.updateQueue = type.updateQueue),
|
|
4827
|
-
(renderLanes.type = type.type),
|
|
4828
|
-
(updatePayload = type.dependencies),
|
|
4829
|
-
(renderLanes.dependencies =
|
|
4830
|
-
null === updatePayload
|
|
4831
|
-
? null
|
|
4832
|
-
: {
|
|
4833
|
-
lanes: updatePayload.lanes,
|
|
4834
|
-
firstContext: updatePayload.firstContext
|
|
4835
|
-
}),
|
|
4836
|
-
(renderLanes.selfBaseDuration = type.selfBaseDuration),
|
|
4837
|
-
(renderLanes.treeBaseDuration = type.treeBaseDuration)),
|
|
4838
|
-
(newProps = newProps.sibling);
|
|
4839
|
-
push(
|
|
4840
|
-
suspenseStackCursor,
|
|
4841
|
-
(suspenseStackCursor.current & 1) | 2
|
|
4842
|
-
);
|
|
4843
|
-
return workInProgress.child;
|
|
4844
|
-
}
|
|
4845
|
-
current = current.sibling;
|
|
4846
|
-
}
|
|
4847
|
-
null !== type.tail &&
|
|
4848
|
-
now() > workInProgressRootRenderTargetTime &&
|
|
4849
|
-
((workInProgress.flags |= 128),
|
|
4850
|
-
(newProps = !0),
|
|
4851
|
-
cutOffTailIfNeeded(type, !1),
|
|
4852
|
-
(workInProgress.lanes = 4194304));
|
|
4853
|
-
}
|
|
4854
|
-
else {
|
|
4855
|
-
if (!newProps)
|
|
4856
|
-
if (
|
|
4857
|
-
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
4858
|
-
) {
|
|
4859
|
-
if (
|
|
4860
|
-
((workInProgress.flags |= 128),
|
|
4861
|
-
(newProps = !0),
|
|
4862
|
-
(current = current.updateQueue),
|
|
4863
|
-
null !== current &&
|
|
4864
|
-
((workInProgress.updateQueue = current),
|
|
4865
|
-
(workInProgress.flags |= 4)),
|
|
4866
|
-
cutOffTailIfNeeded(type, !0),
|
|
4867
|
-
null === type.tail &&
|
|
4868
|
-
"hidden" === type.tailMode &&
|
|
4869
|
-
!updatePayload.alternate)
|
|
4870
|
-
)
|
|
4871
|
-
return bubbleProperties(workInProgress), null;
|
|
4872
|
-
} else
|
|
4873
|
-
2 * now() - type.renderingStartTime >
|
|
4874
|
-
workInProgressRootRenderTargetTime &&
|
|
4875
|
-
1073741824 !== renderLanes &&
|
|
4876
|
-
((workInProgress.flags |= 128),
|
|
4877
|
-
(newProps = !0),
|
|
4878
|
-
cutOffTailIfNeeded(type, !1),
|
|
4879
|
-
(workInProgress.lanes = 4194304));
|
|
4880
|
-
type.isBackwards
|
|
4881
|
-
? ((updatePayload.sibling = workInProgress.child),
|
|
4882
|
-
(workInProgress.child = updatePayload))
|
|
4883
|
-
: ((current = type.last),
|
|
4884
|
-
null !== current
|
|
4885
|
-
? (current.sibling = updatePayload)
|
|
4886
|
-
: (workInProgress.child = updatePayload),
|
|
4887
|
-
(type.last = updatePayload));
|
|
4888
|
-
}
|
|
4889
|
-
if (null !== type.tail)
|
|
4890
|
-
return (
|
|
4891
|
-
(workInProgress = type.tail),
|
|
4892
|
-
(type.rendering = workInProgress),
|
|
4893
|
-
(type.tail = workInProgress.sibling),
|
|
4894
|
-
(type.renderingStartTime = now()),
|
|
4895
|
-
(workInProgress.sibling = null),
|
|
4896
|
-
(current = suspenseStackCursor.current),
|
|
4897
|
-
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
4898
|
-
workInProgress
|
|
4899
|
-
);
|
|
4900
|
-
bubbleProperties(workInProgress);
|
|
4901
|
-
return null;
|
|
4902
|
-
case 22:
|
|
4903
|
-
case 23:
|
|
4904
|
-
return (
|
|
4905
|
-
popRenderLanes(),
|
|
4906
|
-
(newProps = null !== workInProgress.memoizedState),
|
|
4907
|
-
null !== current &&
|
|
4908
|
-
(null !== current.memoizedState) !== newProps &&
|
|
4909
|
-
(workInProgress.flags |= 8192),
|
|
4910
|
-
newProps && 0 !== (workInProgress.mode & 1)
|
|
4911
|
-
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4912
|
-
bubbleProperties(workInProgress)
|
|
4913
|
-
: bubbleProperties(workInProgress),
|
|
4914
|
-
null
|
|
4915
|
-
);
|
|
4916
|
-
case 24:
|
|
4917
|
-
return null;
|
|
4918
|
-
case 25:
|
|
4919
|
-
return null;
|
|
4920
|
-
}
|
|
4921
|
-
throw Error(
|
|
4922
|
-
"Unknown unit of work tag (" +
|
|
4923
|
-
workInProgress.tag +
|
|
4924
|
-
"). This error is likely caused by a bug in React. Please file an issue."
|
|
4925
|
-
);
|
|
4926
|
-
}
|
|
4927
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4928
|
-
didReceiveUpdate = !1;
|
|
4929
|
-
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4930
|
-
workInProgress.child =
|
|
4931
|
-
null === current
|
|
4932
|
-
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4933
|
-
: reconcileChildFibers(
|
|
4934
|
-
workInProgress,
|
|
4935
|
-
current.child,
|
|
4936
|
-
nextChildren,
|
|
4937
|
-
renderLanes
|
|
4938
|
-
);
|
|
4939
|
-
}
|
|
4940
|
-
function updateForwardRef(
|
|
4941
|
-
current,
|
|
4942
|
-
workInProgress,
|
|
4943
|
-
Component,
|
|
4944
|
-
nextProps,
|
|
4945
|
-
renderLanes
|
|
4946
|
-
) {
|
|
4947
|
-
Component = Component.render;
|
|
4948
|
-
var ref = workInProgress.ref;
|
|
4949
|
-
prepareToReadContext(workInProgress, renderLanes);
|
|
4950
|
-
nextProps = renderWithHooks(
|
|
4951
|
-
current,
|
|
4952
|
-
workInProgress,
|
|
4953
|
-
Component,
|
|
4954
|
-
nextProps,
|
|
4955
|
-
ref,
|
|
4956
|
-
renderLanes
|
|
4957
|
-
);
|
|
4958
|
-
if (null !== current && !didReceiveUpdate)
|
|
4959
|
-
return (
|
|
4960
|
-
(workInProgress.updateQueue = current.updateQueue),
|
|
4961
|
-
(workInProgress.flags &= -2053),
|
|
4962
|
-
(current.lanes &= ~renderLanes),
|
|
4963
|
-
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4964
|
-
);
|
|
4965
|
-
workInProgress.flags |= 1;
|
|
4966
|
-
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4967
|
-
return workInProgress.child;
|
|
4968
|
-
}
|
|
4969
|
-
function updateMemoComponent(
|
|
4970
|
-
current,
|
|
4971
|
-
workInProgress,
|
|
4972
|
-
Component,
|
|
4973
|
-
nextProps,
|
|
4974
|
-
renderLanes
|
|
4975
|
-
) {
|
|
4976
|
-
if (null === current) {
|
|
4977
|
-
var type = Component.type;
|
|
4978
|
-
if (
|
|
4979
|
-
"function" === typeof type &&
|
|
4980
|
-
!shouldConstruct(type) &&
|
|
4981
|
-
void 0 === type.defaultProps &&
|
|
4982
|
-
null === Component.compare &&
|
|
4983
|
-
void 0 === Component.defaultProps
|
|
4548
|
+
if (null !== current) {
|
|
4549
|
+
var prevProps = current.memoizedProps;
|
|
4550
|
+
if (
|
|
4551
|
+
shallowEqual(prevProps, nextProps) &&
|
|
4552
|
+
current.ref === workInProgress.ref
|
|
4984
4553
|
)
|
|
4985
|
-
|
|
4986
|
-
(
|
|
4987
|
-
(workInProgress.
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
current = createFiberFromTypeAndProps(
|
|
4997
|
-
Component.type,
|
|
4998
|
-
null,
|
|
4999
|
-
nextProps,
|
|
5000
|
-
workInProgress,
|
|
5001
|
-
workInProgress.mode,
|
|
5002
|
-
renderLanes
|
|
5003
|
-
);
|
|
5004
|
-
current.ref = workInProgress.ref;
|
|
5005
|
-
current.return = workInProgress;
|
|
5006
|
-
return (workInProgress.child = current);
|
|
5007
|
-
}
|
|
5008
|
-
type = current.child;
|
|
5009
|
-
if (0 === (current.lanes & renderLanes)) {
|
|
5010
|
-
var prevProps = type.memoizedProps;
|
|
5011
|
-
Component = Component.compare;
|
|
5012
|
-
Component = null !== Component ? Component : shallowEqual;
|
|
5013
|
-
if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)
|
|
5014
|
-
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4554
|
+
if (
|
|
4555
|
+
((didReceiveUpdate = !1),
|
|
4556
|
+
(workInProgress.pendingProps = nextProps = prevProps),
|
|
4557
|
+
0 !== (current.lanes & renderLanes))
|
|
4558
|
+
)
|
|
4559
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4560
|
+
else
|
|
4561
|
+
return (
|
|
4562
|
+
(workInProgress.lanes = current.lanes),
|
|
4563
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4564
|
+
);
|
|
5015
4565
|
}
|
|
5016
|
-
workInProgress.flags |= 1;
|
|
5017
|
-
current = createWorkInProgress(type, nextProps);
|
|
5018
|
-
current.ref = workInProgress.ref;
|
|
5019
|
-
current.return = workInProgress;
|
|
5020
|
-
return (workInProgress.child = current);
|
|
5021
|
-
}
|
|
5022
|
-
function updateSimpleMemoComponent(
|
|
5023
|
-
current,
|
|
5024
|
-
workInProgress,
|
|
5025
|
-
Component,
|
|
5026
|
-
nextProps,
|
|
5027
|
-
renderLanes
|
|
5028
|
-
) {
|
|
5029
|
-
if (
|
|
5030
|
-
null !== current &&
|
|
5031
|
-
shallowEqual(current.memoizedProps, nextProps) &&
|
|
5032
|
-
current.ref === workInProgress.ref
|
|
5033
|
-
)
|
|
5034
|
-
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
5035
|
-
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
5036
|
-
else
|
|
5037
|
-
return (
|
|
5038
|
-
(workInProgress.lanes = current.lanes),
|
|
5039
|
-
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
5040
|
-
);
|
|
5041
4566
|
return updateFunctionComponent(
|
|
5042
4567
|
current,
|
|
5043
4568
|
workInProgress,
|
|
@@ -5052,7 +4577,11 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
5052
4577
|
prevState = null !== current ? current.memoizedState : null;
|
|
5053
4578
|
if ("hidden" === nextProps.mode)
|
|
5054
4579
|
if (0 === (workInProgress.mode & 1))
|
|
5055
|
-
(workInProgress.memoizedState = {
|
|
4580
|
+
(workInProgress.memoizedState = {
|
|
4581
|
+
baseLanes: 0,
|
|
4582
|
+
cachePool: null,
|
|
4583
|
+
transitions: null
|
|
4584
|
+
}),
|
|
5056
4585
|
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
5057
4586
|
(subtreeRenderLanes |= renderLanes);
|
|
5058
4587
|
else {
|
|
@@ -5065,14 +4594,19 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
5065
4594
|
(workInProgress.lanes = workInProgress.childLanes = 1073741824),
|
|
5066
4595
|
(workInProgress.memoizedState = {
|
|
5067
4596
|
baseLanes: current,
|
|
5068
|
-
cachePool: null
|
|
4597
|
+
cachePool: null,
|
|
4598
|
+
transitions: null
|
|
5069
4599
|
}),
|
|
5070
4600
|
(workInProgress.updateQueue = null),
|
|
5071
4601
|
push(subtreeRenderLanesCursor, subtreeRenderLanes),
|
|
5072
4602
|
(subtreeRenderLanes |= current),
|
|
5073
4603
|
null
|
|
5074
4604
|
);
|
|
5075
|
-
workInProgress.memoizedState = {
|
|
4605
|
+
workInProgress.memoizedState = {
|
|
4606
|
+
baseLanes: 0,
|
|
4607
|
+
cachePool: null,
|
|
4608
|
+
transitions: null
|
|
4609
|
+
};
|
|
5076
4610
|
nextProps = null !== prevState ? prevState.baseLanes : renderLanes;
|
|
5077
4611
|
push(subtreeRenderLanesCursor, subtreeRenderLanes);
|
|
5078
4612
|
subtreeRenderLanes |= nextProps;
|
|
@@ -5087,7 +4621,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
5087
4621
|
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
5088
4622
|
return workInProgress.child;
|
|
5089
4623
|
}
|
|
5090
|
-
function markRef
|
|
4624
|
+
function markRef(current, workInProgress) {
|
|
5091
4625
|
var ref = workInProgress.ref;
|
|
5092
4626
|
if (
|
|
5093
4627
|
(null === current && null !== ref) ||
|
|
@@ -5139,10 +4673,7 @@ function updateClassComponent(
|
|
|
5139
4673
|
} else hasContext = !1;
|
|
5140
4674
|
prepareToReadContext(workInProgress, renderLanes);
|
|
5141
4675
|
if (null === workInProgress.stateNode)
|
|
5142
|
-
|
|
5143
|
-
((current.alternate = null),
|
|
5144
|
-
(workInProgress.alternate = null),
|
|
5145
|
-
(workInProgress.flags |= 2)),
|
|
4676
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress),
|
|
5146
4677
|
constructClassInstance(workInProgress, Component, nextProps),
|
|
5147
4678
|
mountClassInstance(workInProgress, Component, nextProps, renderLanes),
|
|
5148
4679
|
(nextProps = !0);
|
|
@@ -5336,7 +4867,7 @@ function finishClassComponent(
|
|
|
5336
4867
|
hasContext,
|
|
5337
4868
|
renderLanes
|
|
5338
4869
|
) {
|
|
5339
|
-
markRef
|
|
4870
|
+
markRef(current, workInProgress);
|
|
5340
4871
|
var didCaptureError = 0 !== (workInProgress.flags & 128);
|
|
5341
4872
|
if (!shouldUpdate && !didCaptureError)
|
|
5342
4873
|
return (
|
|
@@ -5386,14 +4917,15 @@ function pushHostRootContext(workInProgress) {
|
|
|
5386
4917
|
}
|
|
5387
4918
|
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
5388
4919
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
5389
|
-
return { baseLanes: renderLanes, cachePool: null };
|
|
4920
|
+
return { baseLanes: renderLanes, cachePool: null, transitions: null };
|
|
5390
4921
|
}
|
|
5391
4922
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
5392
4923
|
var nextProps = workInProgress.pendingProps,
|
|
5393
4924
|
suspenseContext = suspenseStackCursor.current,
|
|
5394
4925
|
showFallback = !1,
|
|
4926
|
+
didSuspend = 0 !== (workInProgress.flags & 128),
|
|
5395
4927
|
JSCompiler_temp;
|
|
5396
|
-
(JSCompiler_temp =
|
|
4928
|
+
(JSCompiler_temp = didSuspend) ||
|
|
5397
4929
|
(JSCompiler_temp =
|
|
5398
4930
|
null !== current && null === current.memoizedState
|
|
5399
4931
|
? !1
|
|
@@ -5403,177 +4935,317 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
5403
4935
|
suspenseContext |= 1;
|
|
5404
4936
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
5405
4937
|
if (null === current) {
|
|
5406
|
-
|
|
5407
|
-
current
|
|
5408
|
-
if (showFallback)
|
|
4938
|
+
current = workInProgress.memoizedState;
|
|
4939
|
+
if (null !== current && null !== current.dehydrated)
|
|
5409
4940
|
return (
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
4941
|
+
0 === (workInProgress.mode & 1)
|
|
4942
|
+
? (workInProgress.lanes = 1)
|
|
4943
|
+
: shim$1()
|
|
4944
|
+
? (workInProgress.lanes = 8)
|
|
4945
|
+
: (workInProgress.lanes = 1073741824),
|
|
4946
|
+
null
|
|
4947
|
+
);
|
|
4948
|
+
didSuspend = nextProps.children;
|
|
4949
|
+
current = nextProps.fallback;
|
|
4950
|
+
return showFallback
|
|
4951
|
+
? ((nextProps = workInProgress.mode),
|
|
4952
|
+
(showFallback = workInProgress.child),
|
|
4953
|
+
(didSuspend = { mode: "hidden", children: didSuspend }),
|
|
4954
|
+
0 === (nextProps & 1) && null !== showFallback
|
|
4955
|
+
? ((showFallback.childLanes = 0),
|
|
4956
|
+
(showFallback.pendingProps = didSuspend),
|
|
5416
4957
|
workInProgress.mode & 2 &&
|
|
5417
|
-
((
|
|
5418
|
-
(
|
|
5419
|
-
(
|
|
5420
|
-
(
|
|
5421
|
-
: (
|
|
5422
|
-
|
|
5423
|
-
|
|
4958
|
+
((showFallback.actualDuration = 0),
|
|
4959
|
+
(showFallback.actualStartTime = -1),
|
|
4960
|
+
(showFallback.selfBaseDuration = 0),
|
|
4961
|
+
(showFallback.treeBaseDuration = 0)))
|
|
4962
|
+
: (showFallback = createFiberFromOffscreen(
|
|
4963
|
+
didSuspend,
|
|
4964
|
+
nextProps,
|
|
5424
4965
|
0,
|
|
5425
4966
|
null
|
|
5426
4967
|
)),
|
|
5427
4968
|
(current = createFiberFromFragment(
|
|
5428
4969
|
current,
|
|
5429
|
-
|
|
4970
|
+
nextProps,
|
|
5430
4971
|
renderLanes,
|
|
5431
4972
|
null
|
|
5432
4973
|
)),
|
|
5433
|
-
(
|
|
4974
|
+
(showFallback.return = workInProgress),
|
|
5434
4975
|
(current.return = workInProgress),
|
|
5435
|
-
(
|
|
5436
|
-
(workInProgress.child =
|
|
4976
|
+
(showFallback.sibling = current),
|
|
4977
|
+
(workInProgress.child = showFallback),
|
|
5437
4978
|
(workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
5438
4979
|
renderLanes
|
|
5439
4980
|
)),
|
|
5440
4981
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5441
|
-
current
|
|
5442
|
-
);
|
|
5443
|
-
renderLanes = createFiberFromOffscreen(
|
|
5444
|
-
{ mode: "visible", children: suspenseContext },
|
|
5445
|
-
workInProgress.mode,
|
|
5446
|
-
0,
|
|
5447
|
-
null
|
|
5448
|
-
);
|
|
5449
|
-
renderLanes.return = workInProgress;
|
|
5450
|
-
return (workInProgress.child = renderLanes);
|
|
4982
|
+
current)
|
|
4983
|
+
: mountSuspensePrimaryChildren(workInProgress, didSuspend);
|
|
5451
4984
|
}
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
nextProps.children,
|
|
5459
|
-
nextProps.fallback,
|
|
5460
|
-
renderLanes
|
|
5461
|
-
)),
|
|
5462
|
-
(nextProps = workInProgress.child),
|
|
5463
|
-
(suspenseContext = current.child.memoizedState),
|
|
5464
|
-
(nextProps.memoizedState =
|
|
5465
|
-
null === suspenseContext
|
|
5466
|
-
? mountSuspenseOffscreenState(renderLanes)
|
|
5467
|
-
: {
|
|
5468
|
-
baseLanes: suspenseContext.baseLanes | renderLanes,
|
|
5469
|
-
cachePool: null
|
|
5470
|
-
}),
|
|
5471
|
-
(nextProps.childLanes = current.childLanes & ~renderLanes),
|
|
5472
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5473
|
-
showFallback
|
|
5474
|
-
);
|
|
5475
|
-
renderLanes = updateSuspensePrimaryChildren(
|
|
4985
|
+
suspenseContext = current.memoizedState;
|
|
4986
|
+
if (
|
|
4987
|
+
null !== suspenseContext &&
|
|
4988
|
+
((JSCompiler_temp = suspenseContext.dehydrated), null !== JSCompiler_temp)
|
|
4989
|
+
)
|
|
4990
|
+
return updateDehydratedSuspenseComponent(
|
|
5476
4991
|
current,
|
|
5477
4992
|
workInProgress,
|
|
5478
|
-
|
|
4993
|
+
didSuspend,
|
|
4994
|
+
nextProps,
|
|
4995
|
+
JSCompiler_temp,
|
|
4996
|
+
suspenseContext,
|
|
5479
4997
|
renderLanes
|
|
5480
4998
|
);
|
|
5481
|
-
|
|
5482
|
-
|
|
4999
|
+
if (showFallback) {
|
|
5000
|
+
showFallback = nextProps.fallback;
|
|
5001
|
+
didSuspend = workInProgress.mode;
|
|
5002
|
+
suspenseContext = current.child;
|
|
5003
|
+
JSCompiler_temp = suspenseContext.sibling;
|
|
5004
|
+
var primaryChildProps = { mode: "hidden", children: nextProps.children };
|
|
5005
|
+
0 === (didSuspend & 1) && workInProgress.child !== suspenseContext
|
|
5006
|
+
? ((nextProps = workInProgress.child),
|
|
5007
|
+
(nextProps.childLanes = 0),
|
|
5008
|
+
(nextProps.pendingProps = primaryChildProps),
|
|
5009
|
+
workInProgress.mode & 2 &&
|
|
5010
|
+
((nextProps.actualDuration = 0),
|
|
5011
|
+
(nextProps.actualStartTime = -1),
|
|
5012
|
+
(nextProps.selfBaseDuration = suspenseContext.selfBaseDuration),
|
|
5013
|
+
(nextProps.treeBaseDuration = suspenseContext.treeBaseDuration)),
|
|
5014
|
+
(workInProgress.deletions = null))
|
|
5015
|
+
: ((nextProps = createWorkInProgress(suspenseContext, primaryChildProps)),
|
|
5016
|
+
(nextProps.subtreeFlags = suspenseContext.subtreeFlags & 14680064));
|
|
5017
|
+
null !== JSCompiler_temp
|
|
5018
|
+
? (showFallback = createWorkInProgress(JSCompiler_temp, showFallback))
|
|
5019
|
+
: ((showFallback = createFiberFromFragment(
|
|
5020
|
+
showFallback,
|
|
5021
|
+
didSuspend,
|
|
5022
|
+
renderLanes,
|
|
5023
|
+
null
|
|
5024
|
+
)),
|
|
5025
|
+
(showFallback.flags |= 2));
|
|
5026
|
+
showFallback.return = workInProgress;
|
|
5027
|
+
nextProps.return = workInProgress;
|
|
5028
|
+
nextProps.sibling = showFallback;
|
|
5029
|
+
workInProgress.child = nextProps;
|
|
5030
|
+
nextProps = showFallback;
|
|
5031
|
+
showFallback = workInProgress.child;
|
|
5032
|
+
didSuspend = current.child.memoizedState;
|
|
5033
|
+
didSuspend =
|
|
5034
|
+
null === didSuspend
|
|
5035
|
+
? mountSuspenseOffscreenState(renderLanes)
|
|
5036
|
+
: {
|
|
5037
|
+
baseLanes: didSuspend.baseLanes | renderLanes,
|
|
5038
|
+
cachePool: null,
|
|
5039
|
+
transitions: didSuspend.transitions
|
|
5040
|
+
};
|
|
5041
|
+
showFallback.memoizedState = didSuspend;
|
|
5042
|
+
showFallback.childLanes = current.childLanes & ~renderLanes;
|
|
5043
|
+
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
5044
|
+
return nextProps;
|
|
5483
5045
|
}
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
current,
|
|
5488
|
-
workInProgress,
|
|
5489
|
-
nextProps.children,
|
|
5490
|
-
nextProps.fallback,
|
|
5491
|
-
renderLanes
|
|
5492
|
-
)),
|
|
5493
|
-
(nextProps = workInProgress.child),
|
|
5494
|
-
(suspenseContext = current.child.memoizedState),
|
|
5495
|
-
(nextProps.memoizedState =
|
|
5496
|
-
null === suspenseContext
|
|
5497
|
-
? mountSuspenseOffscreenState(renderLanes)
|
|
5498
|
-
: {
|
|
5499
|
-
baseLanes: suspenseContext.baseLanes | renderLanes,
|
|
5500
|
-
cachePool: null
|
|
5501
|
-
}),
|
|
5502
|
-
(nextProps.childLanes = current.childLanes & ~renderLanes),
|
|
5503
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5504
|
-
showFallback
|
|
5505
|
-
);
|
|
5506
|
-
renderLanes = updateSuspensePrimaryChildren(
|
|
5507
|
-
current,
|
|
5508
|
-
workInProgress,
|
|
5509
|
-
nextProps.children,
|
|
5510
|
-
renderLanes
|
|
5511
|
-
);
|
|
5512
|
-
workInProgress.memoizedState = null;
|
|
5513
|
-
return renderLanes;
|
|
5514
|
-
}
|
|
5515
|
-
function updateSuspensePrimaryChildren(
|
|
5516
|
-
current,
|
|
5517
|
-
workInProgress,
|
|
5518
|
-
primaryChildren,
|
|
5519
|
-
renderLanes
|
|
5520
|
-
) {
|
|
5521
|
-
var currentPrimaryChildFragment = current.child;
|
|
5522
|
-
current = currentPrimaryChildFragment.sibling;
|
|
5523
|
-
primaryChildren = createWorkInProgress(currentPrimaryChildFragment, {
|
|
5046
|
+
showFallback = current.child;
|
|
5047
|
+
current = showFallback.sibling;
|
|
5048
|
+
nextProps = createWorkInProgress(showFallback, {
|
|
5524
5049
|
mode: "visible",
|
|
5525
|
-
children:
|
|
5050
|
+
children: nextProps.children
|
|
5526
5051
|
});
|
|
5527
|
-
0 === (workInProgress.mode & 1) && (
|
|
5528
|
-
|
|
5529
|
-
|
|
5052
|
+
0 === (workInProgress.mode & 1) && (nextProps.lanes = renderLanes);
|
|
5053
|
+
nextProps.return = workInProgress;
|
|
5054
|
+
nextProps.sibling = null;
|
|
5530
5055
|
null !== current &&
|
|
5531
5056
|
((renderLanes = workInProgress.deletions),
|
|
5532
5057
|
null === renderLanes
|
|
5533
5058
|
? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))
|
|
5534
5059
|
: renderLanes.push(current));
|
|
5060
|
+
workInProgress.child = nextProps;
|
|
5061
|
+
workInProgress.memoizedState = null;
|
|
5062
|
+
return nextProps;
|
|
5063
|
+
}
|
|
5064
|
+
function mountSuspensePrimaryChildren(workInProgress, primaryChildren) {
|
|
5065
|
+
primaryChildren = createFiberFromOffscreen(
|
|
5066
|
+
{ mode: "visible", children: primaryChildren },
|
|
5067
|
+
workInProgress.mode,
|
|
5068
|
+
0,
|
|
5069
|
+
null
|
|
5070
|
+
);
|
|
5071
|
+
primaryChildren.return = workInProgress;
|
|
5535
5072
|
return (workInProgress.child = primaryChildren);
|
|
5536
5073
|
}
|
|
5537
|
-
function
|
|
5074
|
+
function retrySuspenseComponentWithoutHydrating(
|
|
5075
|
+
current,
|
|
5076
|
+
workInProgress,
|
|
5077
|
+
renderLanes,
|
|
5078
|
+
recoverableError
|
|
5079
|
+
) {
|
|
5080
|
+
null !== recoverableError &&
|
|
5081
|
+
(null === hydrationErrors
|
|
5082
|
+
? (hydrationErrors = [recoverableError])
|
|
5083
|
+
: hydrationErrors.push(recoverableError));
|
|
5084
|
+
reconcileChildFibers(workInProgress, current.child, null, renderLanes);
|
|
5085
|
+
current = mountSuspensePrimaryChildren(
|
|
5086
|
+
workInProgress,
|
|
5087
|
+
workInProgress.pendingProps.children
|
|
5088
|
+
);
|
|
5089
|
+
current.flags |= 2;
|
|
5090
|
+
workInProgress.memoizedState = null;
|
|
5091
|
+
return current;
|
|
5092
|
+
}
|
|
5093
|
+
function updateDehydratedSuspenseComponent(
|
|
5538
5094
|
current,
|
|
5539
5095
|
workInProgress,
|
|
5540
|
-
|
|
5541
|
-
|
|
5096
|
+
didSuspend,
|
|
5097
|
+
nextProps,
|
|
5098
|
+
suspenseInstance,
|
|
5099
|
+
suspenseState,
|
|
5542
5100
|
renderLanes
|
|
5543
5101
|
) {
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
(
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
))
|
|
5565
|
-
: ((fallbackChildren = createFiberFromFragment(
|
|
5566
|
-
fallbackChildren,
|
|
5567
|
-
mode,
|
|
5568
|
-
renderLanes,
|
|
5102
|
+
if (didSuspend) {
|
|
5103
|
+
if (workInProgress.flags & 256)
|
|
5104
|
+
return (
|
|
5105
|
+
(workInProgress.flags &= -257),
|
|
5106
|
+
(suspenseState = createCapturedValue(
|
|
5107
|
+
Error(
|
|
5108
|
+
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
|
|
5109
|
+
)
|
|
5110
|
+
)),
|
|
5111
|
+
retrySuspenseComponentWithoutHydrating(
|
|
5112
|
+
current,
|
|
5113
|
+
workInProgress,
|
|
5114
|
+
renderLanes,
|
|
5115
|
+
suspenseState
|
|
5116
|
+
)
|
|
5117
|
+
);
|
|
5118
|
+
if (null !== workInProgress.memoizedState)
|
|
5119
|
+
return (
|
|
5120
|
+
(workInProgress.child = current.child),
|
|
5121
|
+
(workInProgress.flags |= 128),
|
|
5569
5122
|
null
|
|
5123
|
+
);
|
|
5124
|
+
suspenseState = nextProps.fallback;
|
|
5125
|
+
didSuspend = workInProgress.mode;
|
|
5126
|
+
nextProps = createFiberFromOffscreen(
|
|
5127
|
+
{ mode: "visible", children: nextProps.children },
|
|
5128
|
+
didSuspend,
|
|
5129
|
+
0,
|
|
5130
|
+
null
|
|
5131
|
+
);
|
|
5132
|
+
suspenseState = createFiberFromFragment(
|
|
5133
|
+
suspenseState,
|
|
5134
|
+
didSuspend,
|
|
5135
|
+
renderLanes,
|
|
5136
|
+
null
|
|
5137
|
+
);
|
|
5138
|
+
suspenseState.flags |= 2;
|
|
5139
|
+
nextProps.return = workInProgress;
|
|
5140
|
+
suspenseState.return = workInProgress;
|
|
5141
|
+
nextProps.sibling = suspenseState;
|
|
5142
|
+
workInProgress.child = nextProps;
|
|
5143
|
+
0 !== (workInProgress.mode & 1) &&
|
|
5144
|
+
reconcileChildFibers(workInProgress, current.child, null, renderLanes);
|
|
5145
|
+
workInProgress.child.memoizedState = mountSuspenseOffscreenState(
|
|
5146
|
+
renderLanes
|
|
5147
|
+
);
|
|
5148
|
+
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
5149
|
+
return suspenseState;
|
|
5150
|
+
}
|
|
5151
|
+
if (0 === (workInProgress.mode & 1))
|
|
5152
|
+
return retrySuspenseComponentWithoutHydrating(
|
|
5153
|
+
current,
|
|
5154
|
+
workInProgress,
|
|
5155
|
+
renderLanes,
|
|
5156
|
+
null
|
|
5157
|
+
);
|
|
5158
|
+
if (shim$1())
|
|
5159
|
+
return (
|
|
5160
|
+
(suspenseState = shim$1().digest),
|
|
5161
|
+
(suspenseState = createCapturedValue(
|
|
5162
|
+
Error(
|
|
5163
|
+
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
|
5164
|
+
),
|
|
5165
|
+
suspenseState,
|
|
5166
|
+
void 0
|
|
5570
5167
|
)),
|
|
5571
|
-
(
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5168
|
+
retrySuspenseComponentWithoutHydrating(
|
|
5169
|
+
current,
|
|
5170
|
+
workInProgress,
|
|
5171
|
+
renderLanes,
|
|
5172
|
+
suspenseState
|
|
5173
|
+
)
|
|
5174
|
+
);
|
|
5175
|
+
didSuspend = 0 !== (renderLanes & current.childLanes);
|
|
5176
|
+
if (didReceiveUpdate || didSuspend) {
|
|
5177
|
+
nextProps = workInProgressRoot;
|
|
5178
|
+
if (null !== nextProps) {
|
|
5179
|
+
switch (renderLanes & -renderLanes) {
|
|
5180
|
+
case 4:
|
|
5181
|
+
didSuspend = 2;
|
|
5182
|
+
break;
|
|
5183
|
+
case 16:
|
|
5184
|
+
didSuspend = 8;
|
|
5185
|
+
break;
|
|
5186
|
+
case 64:
|
|
5187
|
+
case 128:
|
|
5188
|
+
case 256:
|
|
5189
|
+
case 512:
|
|
5190
|
+
case 1024:
|
|
5191
|
+
case 2048:
|
|
5192
|
+
case 4096:
|
|
5193
|
+
case 8192:
|
|
5194
|
+
case 16384:
|
|
5195
|
+
case 32768:
|
|
5196
|
+
case 65536:
|
|
5197
|
+
case 131072:
|
|
5198
|
+
case 262144:
|
|
5199
|
+
case 524288:
|
|
5200
|
+
case 1048576:
|
|
5201
|
+
case 2097152:
|
|
5202
|
+
case 4194304:
|
|
5203
|
+
case 8388608:
|
|
5204
|
+
case 16777216:
|
|
5205
|
+
case 33554432:
|
|
5206
|
+
case 67108864:
|
|
5207
|
+
didSuspend = 32;
|
|
5208
|
+
break;
|
|
5209
|
+
case 536870912:
|
|
5210
|
+
didSuspend = 268435456;
|
|
5211
|
+
break;
|
|
5212
|
+
default:
|
|
5213
|
+
didSuspend = 0;
|
|
5214
|
+
}
|
|
5215
|
+
didSuspend =
|
|
5216
|
+
0 !== (didSuspend & (nextProps.suspendedLanes | renderLanes))
|
|
5217
|
+
? 0
|
|
5218
|
+
: didSuspend;
|
|
5219
|
+
0 !== didSuspend &&
|
|
5220
|
+
didSuspend !== suspenseState.retryLane &&
|
|
5221
|
+
((suspenseState.retryLane = didSuspend),
|
|
5222
|
+
markUpdateLaneFromFiberToRoot(current, didSuspend),
|
|
5223
|
+
scheduleUpdateOnFiber(nextProps, current, didSuspend, -1));
|
|
5224
|
+
}
|
|
5225
|
+
renderDidSuspendDelayIfPossible();
|
|
5226
|
+
suspenseState = createCapturedValue(
|
|
5227
|
+
Error(
|
|
5228
|
+
"This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."
|
|
5229
|
+
)
|
|
5230
|
+
);
|
|
5231
|
+
return retrySuspenseComponentWithoutHydrating(
|
|
5232
|
+
current,
|
|
5233
|
+
workInProgress,
|
|
5234
|
+
renderLanes,
|
|
5235
|
+
suspenseState
|
|
5236
|
+
);
|
|
5237
|
+
}
|
|
5238
|
+
if (shim$1())
|
|
5239
|
+
return (
|
|
5240
|
+
(workInProgress.flags |= 128),
|
|
5241
|
+
(workInProgress.child = current.child),
|
|
5242
|
+
retryDehydratedSuspenseBoundary.bind(null, current),
|
|
5243
|
+
shim$1(),
|
|
5244
|
+
null
|
|
5245
|
+
);
|
|
5246
|
+
current = mountSuspensePrimaryChildren(workInProgress, nextProps.children);
|
|
5247
|
+
current.flags |= 4096;
|
|
5248
|
+
return current;
|
|
5577
5249
|
}
|
|
5578
5250
|
function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
|
|
5579
5251
|
fiber.lanes |= renderLanes;
|
|
@@ -5692,101 +5364,696 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
5692
5364
|
}
|
|
5693
5365
|
return workInProgress.child;
|
|
5694
5366
|
}
|
|
5695
|
-
function
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
renderLanes.
|
|
5367
|
+
function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {
|
|
5368
|
+
0 === (workInProgress.mode & 1) &&
|
|
5369
|
+
null !== current &&
|
|
5370
|
+
((current.alternate = null),
|
|
5371
|
+
(workInProgress.alternate = null),
|
|
5372
|
+
(workInProgress.flags |= 2));
|
|
5373
|
+
}
|
|
5374
|
+
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
|
|
5375
|
+
null !== current && (workInProgress.dependencies = current.dependencies);
|
|
5376
|
+
profilerStartTime = -1;
|
|
5377
|
+
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
5378
|
+
if (0 === (renderLanes & workInProgress.childLanes)) return null;
|
|
5379
|
+
if (null !== current && workInProgress.child !== current.child)
|
|
5380
|
+
throw Error("Resuming work not yet implemented.");
|
|
5381
|
+
if (null !== workInProgress.child) {
|
|
5382
|
+
current = workInProgress.child;
|
|
5383
|
+
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
5384
|
+
workInProgress.child = renderLanes;
|
|
5385
|
+
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
5386
|
+
(current = current.sibling),
|
|
5387
|
+
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
5388
|
+
current,
|
|
5389
|
+
current.pendingProps
|
|
5390
|
+
)),
|
|
5391
|
+
(renderLanes.return = workInProgress);
|
|
5392
|
+
renderLanes.sibling = null;
|
|
5393
|
+
}
|
|
5394
|
+
return workInProgress.child;
|
|
5395
|
+
}
|
|
5396
|
+
function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
5397
|
+
current,
|
|
5398
|
+
workInProgress,
|
|
5399
|
+
renderLanes
|
|
5400
|
+
) {
|
|
5401
|
+
switch (workInProgress.tag) {
|
|
5402
|
+
case 3:
|
|
5403
|
+
pushHostRootContext(workInProgress);
|
|
5404
|
+
break;
|
|
5405
|
+
case 5:
|
|
5406
|
+
pushHostContext(workInProgress);
|
|
5407
|
+
break;
|
|
5408
|
+
case 1:
|
|
5409
|
+
isContextProvider(workInProgress.type) &&
|
|
5410
|
+
pushContextProvider(workInProgress);
|
|
5411
|
+
break;
|
|
5412
|
+
case 4:
|
|
5413
|
+
pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
|
|
5414
|
+
break;
|
|
5415
|
+
case 10:
|
|
5416
|
+
var context = workInProgress.type._context,
|
|
5417
|
+
nextValue = workInProgress.memoizedProps.value;
|
|
5418
|
+
push(valueCursor, context._currentValue2);
|
|
5419
|
+
context._currentValue2 = nextValue;
|
|
5420
|
+
break;
|
|
5421
|
+
case 12:
|
|
5422
|
+
0 !== (renderLanes & workInProgress.childLanes) &&
|
|
5423
|
+
(workInProgress.flags |= 4);
|
|
5424
|
+
context = workInProgress.stateNode;
|
|
5425
|
+
context.effectDuration = 0;
|
|
5426
|
+
context.passiveEffectDuration = 0;
|
|
5427
|
+
break;
|
|
5428
|
+
case 13:
|
|
5429
|
+
context = workInProgress.memoizedState;
|
|
5430
|
+
if (null !== context) {
|
|
5431
|
+
if (null !== context.dehydrated)
|
|
5432
|
+
return (
|
|
5433
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1),
|
|
5434
|
+
(workInProgress.flags |= 128),
|
|
5435
|
+
null
|
|
5436
|
+
);
|
|
5437
|
+
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
5438
|
+
return updateSuspenseComponent(current, workInProgress, renderLanes);
|
|
5439
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5440
|
+
current = bailoutOnAlreadyFinishedWork(
|
|
5441
|
+
current,
|
|
5442
|
+
workInProgress,
|
|
5443
|
+
renderLanes
|
|
5444
|
+
);
|
|
5445
|
+
return null !== current ? current.sibling : null;
|
|
5446
|
+
}
|
|
5447
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5448
|
+
break;
|
|
5449
|
+
case 19:
|
|
5450
|
+
context = 0 !== (renderLanes & workInProgress.childLanes);
|
|
5451
|
+
if (0 !== (current.flags & 128)) {
|
|
5452
|
+
if (context)
|
|
5453
|
+
return updateSuspenseListComponent(
|
|
5454
|
+
current,
|
|
5455
|
+
workInProgress,
|
|
5456
|
+
renderLanes
|
|
5457
|
+
);
|
|
5458
|
+
workInProgress.flags |= 128;
|
|
5459
|
+
}
|
|
5460
|
+
nextValue = workInProgress.memoizedState;
|
|
5461
|
+
null !== nextValue &&
|
|
5462
|
+
((nextValue.rendering = null),
|
|
5463
|
+
(nextValue.tail = null),
|
|
5464
|
+
(nextValue.lastEffect = null));
|
|
5465
|
+
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
5466
|
+
if (context) break;
|
|
5467
|
+
else return null;
|
|
5468
|
+
case 22:
|
|
5469
|
+
case 23:
|
|
5470
|
+
return (
|
|
5471
|
+
(workInProgress.lanes = 0),
|
|
5472
|
+
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
5473
|
+
);
|
|
5474
|
+
}
|
|
5475
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5476
|
+
}
|
|
5477
|
+
function hadNoMutationsEffects(current, completedWork) {
|
|
5478
|
+
if (null !== current && current.child === completedWork.child) return !0;
|
|
5479
|
+
if (0 !== (completedWork.flags & 16)) return !1;
|
|
5480
|
+
for (current = completedWork.child; null !== current; ) {
|
|
5481
|
+
if (0 !== (current.flags & 12854) || 0 !== (current.subtreeFlags & 12854))
|
|
5482
|
+
return !1;
|
|
5483
|
+
current = current.sibling;
|
|
5714
5484
|
}
|
|
5715
|
-
return
|
|
5485
|
+
return !0;
|
|
5716
5486
|
}
|
|
5717
|
-
|
|
5718
|
-
|
|
5487
|
+
var appendAllChildren,
|
|
5488
|
+
updateHostContainer,
|
|
5489
|
+
updateHostComponent$1,
|
|
5490
|
+
updateHostText$1;
|
|
5491
|
+
appendAllChildren = function(
|
|
5492
|
+
parent,
|
|
5719
5493
|
workInProgress,
|
|
5720
|
-
|
|
5494
|
+
needsVisibilityToggle,
|
|
5495
|
+
isHidden
|
|
5721
5496
|
) {
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5497
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
5498
|
+
if (5 === node.tag) {
|
|
5499
|
+
var instance = node.stateNode;
|
|
5500
|
+
needsVisibilityToggle &&
|
|
5501
|
+
isHidden &&
|
|
5502
|
+
(instance = cloneHiddenInstance(instance));
|
|
5503
|
+
appendChildNode(parent.node, instance.node);
|
|
5504
|
+
} else if (6 === node.tag) {
|
|
5505
|
+
instance = node.stateNode;
|
|
5506
|
+
if (needsVisibilityToggle && isHidden)
|
|
5507
|
+
throw Error("Not yet implemented.");
|
|
5508
|
+
appendChildNode(parent.node, instance.node);
|
|
5509
|
+
} else if (4 !== node.tag)
|
|
5510
|
+
if (22 === node.tag && null !== node.memoizedState)
|
|
5511
|
+
(instance = node.child),
|
|
5512
|
+
null !== instance && (instance.return = node),
|
|
5513
|
+
appendAllChildren(parent, node, !0, !0);
|
|
5514
|
+
else if (null !== node.child) {
|
|
5515
|
+
node.child.return = node;
|
|
5516
|
+
node = node.child;
|
|
5517
|
+
continue;
|
|
5518
|
+
}
|
|
5519
|
+
if (node === workInProgress) break;
|
|
5520
|
+
for (; null === node.sibling; ) {
|
|
5521
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
5522
|
+
node = node.return;
|
|
5523
|
+
}
|
|
5524
|
+
node.sibling.return = node.return;
|
|
5525
|
+
node = node.sibling;
|
|
5526
|
+
}
|
|
5527
|
+
};
|
|
5528
|
+
function appendAllChildrenToContainer(
|
|
5529
|
+
containerChildSet,
|
|
5530
|
+
workInProgress,
|
|
5531
|
+
needsVisibilityToggle,
|
|
5532
|
+
isHidden
|
|
5533
|
+
) {
|
|
5534
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
5535
|
+
if (5 === node.tag) {
|
|
5536
|
+
var instance = node.stateNode;
|
|
5537
|
+
needsVisibilityToggle &&
|
|
5538
|
+
isHidden &&
|
|
5539
|
+
(instance = cloneHiddenInstance(instance));
|
|
5540
|
+
appendChildNodeToSet(containerChildSet, instance.node);
|
|
5541
|
+
} else if (6 === node.tag) {
|
|
5542
|
+
instance = node.stateNode;
|
|
5543
|
+
if (needsVisibilityToggle && isHidden)
|
|
5544
|
+
throw Error("Not yet implemented.");
|
|
5545
|
+
appendChildNodeToSet(containerChildSet, instance.node);
|
|
5546
|
+
} else if (4 !== node.tag)
|
|
5547
|
+
if (22 === node.tag && null !== node.memoizedState)
|
|
5548
|
+
(instance = node.child),
|
|
5549
|
+
null !== instance && (instance.return = node),
|
|
5550
|
+
appendAllChildrenToContainer(containerChildSet, node, !0, !0);
|
|
5551
|
+
else if (null !== node.child) {
|
|
5552
|
+
node.child.return = node;
|
|
5553
|
+
node = node.child;
|
|
5554
|
+
continue;
|
|
5555
|
+
}
|
|
5556
|
+
if (node === workInProgress) break;
|
|
5557
|
+
for (; null === node.sibling; ) {
|
|
5558
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
5559
|
+
node = node.return;
|
|
5560
|
+
}
|
|
5561
|
+
node.sibling.return = node.return;
|
|
5562
|
+
node = node.sibling;
|
|
5563
|
+
}
|
|
5564
|
+
}
|
|
5565
|
+
updateHostContainer = function(current, workInProgress) {
|
|
5566
|
+
var portalOrRoot = workInProgress.stateNode;
|
|
5567
|
+
if (!hadNoMutationsEffects(current, workInProgress)) {
|
|
5568
|
+
current = portalOrRoot.containerInfo;
|
|
5569
|
+
var newChildSet = createChildNodeSet(current);
|
|
5570
|
+
appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);
|
|
5571
|
+
portalOrRoot.pendingChildren = newChildSet;
|
|
5572
|
+
workInProgress.flags |= 4;
|
|
5573
|
+
completeRoot(current, newChildSet);
|
|
5574
|
+
}
|
|
5575
|
+
};
|
|
5576
|
+
updateHostComponent$1 = function(current, workInProgress, type, newProps) {
|
|
5577
|
+
type = current.stateNode;
|
|
5578
|
+
var oldProps = current.memoizedProps;
|
|
5579
|
+
if (
|
|
5580
|
+
(current = hadNoMutationsEffects(current, workInProgress)) &&
|
|
5581
|
+
oldProps === newProps
|
|
5582
|
+
)
|
|
5583
|
+
workInProgress.stateNode = type;
|
|
5584
|
+
else {
|
|
5585
|
+
var recyclableInstance = workInProgress.stateNode;
|
|
5586
|
+
requiredContext(contextStackCursor$1.current);
|
|
5587
|
+
var updatePayload = null;
|
|
5588
|
+
oldProps !== newProps &&
|
|
5589
|
+
((oldProps = diffProperties(
|
|
5590
|
+
null,
|
|
5591
|
+
oldProps,
|
|
5592
|
+
newProps,
|
|
5593
|
+
recyclableInstance.canonical.viewConfig.validAttributes
|
|
5594
|
+
)),
|
|
5595
|
+
(recyclableInstance.canonical.currentProps = newProps),
|
|
5596
|
+
(updatePayload = oldProps));
|
|
5597
|
+
current && null === updatePayload
|
|
5598
|
+
? (workInProgress.stateNode = type)
|
|
5599
|
+
: ((newProps = updatePayload),
|
|
5600
|
+
(oldProps = type.node),
|
|
5601
|
+
(type = {
|
|
5602
|
+
node: current
|
|
5603
|
+
? null !== newProps
|
|
5604
|
+
? cloneNodeWithNewProps(oldProps, newProps)
|
|
5605
|
+
: cloneNode(oldProps)
|
|
5606
|
+
: null !== newProps
|
|
5607
|
+
? cloneNodeWithNewChildrenAndProps(oldProps, newProps)
|
|
5608
|
+
: cloneNodeWithNewChildren(oldProps),
|
|
5609
|
+
canonical: type.canonical
|
|
5610
|
+
}),
|
|
5611
|
+
(workInProgress.stateNode = type),
|
|
5612
|
+
current
|
|
5613
|
+
? (workInProgress.flags |= 4)
|
|
5614
|
+
: appendAllChildren(type, workInProgress, !1, !1));
|
|
5615
|
+
}
|
|
5616
|
+
};
|
|
5617
|
+
updateHostText$1 = function(current, workInProgress, oldText, newText) {
|
|
5618
|
+
oldText !== newText
|
|
5619
|
+
? ((current = requiredContext(rootInstanceStackCursor.current)),
|
|
5620
|
+
(oldText = requiredContext(contextStackCursor$1.current)),
|
|
5621
|
+
(workInProgress.stateNode = createTextInstance(
|
|
5622
|
+
newText,
|
|
5623
|
+
current,
|
|
5624
|
+
oldText,
|
|
5625
|
+
workInProgress
|
|
5626
|
+
)),
|
|
5627
|
+
(workInProgress.flags |= 4))
|
|
5628
|
+
: (workInProgress.stateNode = current.stateNode);
|
|
5629
|
+
};
|
|
5630
|
+
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
5631
|
+
switch (renderState.tailMode) {
|
|
5632
|
+
case "hidden":
|
|
5633
|
+
hasRenderedATailFallback = renderState.tail;
|
|
5634
|
+
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
5635
|
+
null !== hasRenderedATailFallback.alternate &&
|
|
5636
|
+
(lastTailNode = hasRenderedATailFallback),
|
|
5637
|
+
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
5638
|
+
null === lastTailNode
|
|
5639
|
+
? (renderState.tail = null)
|
|
5640
|
+
: (lastTailNode.sibling = null);
|
|
5741
5641
|
break;
|
|
5642
|
+
case "collapsed":
|
|
5643
|
+
lastTailNode = renderState.tail;
|
|
5644
|
+
for (var lastTailNode$65 = null; null !== lastTailNode; )
|
|
5645
|
+
null !== lastTailNode.alternate && (lastTailNode$65 = lastTailNode),
|
|
5646
|
+
(lastTailNode = lastTailNode.sibling);
|
|
5647
|
+
null === lastTailNode$65
|
|
5648
|
+
? hasRenderedATailFallback || null === renderState.tail
|
|
5649
|
+
? (renderState.tail = null)
|
|
5650
|
+
: (renderState.tail.sibling = null)
|
|
5651
|
+
: (lastTailNode$65.sibling = null);
|
|
5652
|
+
}
|
|
5653
|
+
}
|
|
5654
|
+
function bubbleProperties(completedWork) {
|
|
5655
|
+
var didBailout =
|
|
5656
|
+
null !== completedWork.alternate &&
|
|
5657
|
+
completedWork.alternate.child === completedWork.child,
|
|
5658
|
+
newChildLanes = 0,
|
|
5659
|
+
subtreeFlags = 0;
|
|
5660
|
+
if (didBailout)
|
|
5661
|
+
if (0 !== (completedWork.mode & 2)) {
|
|
5662
|
+
for (
|
|
5663
|
+
var treeBaseDuration$67 = completedWork.selfBaseDuration,
|
|
5664
|
+
child$68 = completedWork.child;
|
|
5665
|
+
null !== child$68;
|
|
5666
|
+
|
|
5667
|
+
)
|
|
5668
|
+
(newChildLanes |= child$68.lanes | child$68.childLanes),
|
|
5669
|
+
(subtreeFlags |= child$68.subtreeFlags & 14680064),
|
|
5670
|
+
(subtreeFlags |= child$68.flags & 14680064),
|
|
5671
|
+
(treeBaseDuration$67 += child$68.treeBaseDuration),
|
|
5672
|
+
(child$68 = child$68.sibling);
|
|
5673
|
+
completedWork.treeBaseDuration = treeBaseDuration$67;
|
|
5674
|
+
} else
|
|
5675
|
+
for (
|
|
5676
|
+
treeBaseDuration$67 = completedWork.child;
|
|
5677
|
+
null !== treeBaseDuration$67;
|
|
5678
|
+
|
|
5679
|
+
)
|
|
5680
|
+
(newChildLanes |=
|
|
5681
|
+
treeBaseDuration$67.lanes | treeBaseDuration$67.childLanes),
|
|
5682
|
+
(subtreeFlags |= treeBaseDuration$67.subtreeFlags & 14680064),
|
|
5683
|
+
(subtreeFlags |= treeBaseDuration$67.flags & 14680064),
|
|
5684
|
+
(treeBaseDuration$67.return = completedWork),
|
|
5685
|
+
(treeBaseDuration$67 = treeBaseDuration$67.sibling);
|
|
5686
|
+
else if (0 !== (completedWork.mode & 2)) {
|
|
5687
|
+
treeBaseDuration$67 = completedWork.actualDuration;
|
|
5688
|
+
child$68 = completedWork.selfBaseDuration;
|
|
5689
|
+
for (var child = completedWork.child; null !== child; )
|
|
5690
|
+
(newChildLanes |= child.lanes | child.childLanes),
|
|
5691
|
+
(subtreeFlags |= child.subtreeFlags),
|
|
5692
|
+
(subtreeFlags |= child.flags),
|
|
5693
|
+
(treeBaseDuration$67 += child.actualDuration),
|
|
5694
|
+
(child$68 += child.treeBaseDuration),
|
|
5695
|
+
(child = child.sibling);
|
|
5696
|
+
completedWork.actualDuration = treeBaseDuration$67;
|
|
5697
|
+
completedWork.treeBaseDuration = child$68;
|
|
5698
|
+
} else
|
|
5699
|
+
for (
|
|
5700
|
+
treeBaseDuration$67 = completedWork.child;
|
|
5701
|
+
null !== treeBaseDuration$67;
|
|
5702
|
+
|
|
5703
|
+
)
|
|
5704
|
+
(newChildLanes |=
|
|
5705
|
+
treeBaseDuration$67.lanes | treeBaseDuration$67.childLanes),
|
|
5706
|
+
(subtreeFlags |= treeBaseDuration$67.subtreeFlags),
|
|
5707
|
+
(subtreeFlags |= treeBaseDuration$67.flags),
|
|
5708
|
+
(treeBaseDuration$67.return = completedWork),
|
|
5709
|
+
(treeBaseDuration$67 = treeBaseDuration$67.sibling);
|
|
5710
|
+
completedWork.subtreeFlags |= subtreeFlags;
|
|
5711
|
+
completedWork.childLanes = newChildLanes;
|
|
5712
|
+
return didBailout;
|
|
5713
|
+
}
|
|
5714
|
+
function completeWork(current, workInProgress, renderLanes) {
|
|
5715
|
+
var newProps = workInProgress.pendingProps;
|
|
5716
|
+
popTreeContext(workInProgress);
|
|
5717
|
+
switch (workInProgress.tag) {
|
|
5718
|
+
case 2:
|
|
5719
|
+
case 16:
|
|
5720
|
+
case 15:
|
|
5721
|
+
case 0:
|
|
5722
|
+
case 11:
|
|
5723
|
+
case 7:
|
|
5724
|
+
case 8:
|
|
5742
5725
|
case 12:
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5726
|
+
case 9:
|
|
5727
|
+
case 14:
|
|
5728
|
+
return bubbleProperties(workInProgress), null;
|
|
5729
|
+
case 1:
|
|
5730
|
+
return (
|
|
5731
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
5732
|
+
bubbleProperties(workInProgress),
|
|
5733
|
+
null
|
|
5734
|
+
);
|
|
5735
|
+
case 3:
|
|
5736
|
+
return (
|
|
5737
|
+
(renderLanes = workInProgress.stateNode),
|
|
5738
|
+
popHostContainer(),
|
|
5739
|
+
pop(didPerformWorkStackCursor),
|
|
5740
|
+
pop(contextStackCursor),
|
|
5741
|
+
resetWorkInProgressVersions(),
|
|
5742
|
+
renderLanes.pendingContext &&
|
|
5743
|
+
((renderLanes.context = renderLanes.pendingContext),
|
|
5744
|
+
(renderLanes.pendingContext = null)),
|
|
5745
|
+
(null !== current && null !== current.child) ||
|
|
5746
|
+
null === current ||
|
|
5747
|
+
(current.memoizedState.isDehydrated &&
|
|
5748
|
+
0 === (workInProgress.flags & 256)) ||
|
|
5749
|
+
((workInProgress.flags |= 1024),
|
|
5750
|
+
null !== hydrationErrors &&
|
|
5751
|
+
(queueRecoverableErrors(hydrationErrors),
|
|
5752
|
+
(hydrationErrors = null))),
|
|
5753
|
+
updateHostContainer(current, workInProgress),
|
|
5754
|
+
bubbleProperties(workInProgress),
|
|
5755
|
+
null
|
|
5756
|
+
);
|
|
5757
|
+
case 5:
|
|
5758
|
+
popHostContext(workInProgress);
|
|
5759
|
+
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
5760
|
+
var type = workInProgress.type;
|
|
5761
|
+
if (null !== current && null != workInProgress.stateNode)
|
|
5762
|
+
updateHostComponent$1(
|
|
5755
5763
|
current,
|
|
5756
5764
|
workInProgress,
|
|
5765
|
+
type,
|
|
5766
|
+
newProps,
|
|
5757
5767
|
renderLanes
|
|
5768
|
+
),
|
|
5769
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
5770
|
+
else {
|
|
5771
|
+
if (!newProps) {
|
|
5772
|
+
if (null === workInProgress.stateNode)
|
|
5773
|
+
throw Error(
|
|
5774
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5775
|
+
);
|
|
5776
|
+
bubbleProperties(workInProgress);
|
|
5777
|
+
return null;
|
|
5778
|
+
}
|
|
5779
|
+
requiredContext(contextStackCursor$1.current);
|
|
5780
|
+
current = nextReactTag;
|
|
5781
|
+
nextReactTag += 2;
|
|
5782
|
+
type = getViewConfigForType(type);
|
|
5783
|
+
var updatePayload = diffProperties(
|
|
5784
|
+
null,
|
|
5785
|
+
emptyObject,
|
|
5786
|
+
newProps,
|
|
5787
|
+
type.validAttributes
|
|
5758
5788
|
);
|
|
5759
|
-
|
|
5789
|
+
renderLanes = createNode(
|
|
5790
|
+
current,
|
|
5791
|
+
type.uiViewClassName,
|
|
5792
|
+
renderLanes,
|
|
5793
|
+
updatePayload,
|
|
5794
|
+
workInProgress
|
|
5795
|
+
);
|
|
5796
|
+
current = new ReactFabricHostComponent(
|
|
5797
|
+
current,
|
|
5798
|
+
type,
|
|
5799
|
+
newProps,
|
|
5800
|
+
workInProgress
|
|
5801
|
+
);
|
|
5802
|
+
current = { node: renderLanes, canonical: current };
|
|
5803
|
+
appendAllChildren(current, workInProgress, !1, !1);
|
|
5804
|
+
workInProgress.stateNode = current;
|
|
5805
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
5760
5806
|
}
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
case
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5807
|
+
bubbleProperties(workInProgress);
|
|
5808
|
+
return null;
|
|
5809
|
+
case 6:
|
|
5810
|
+
if (current && null != workInProgress.stateNode)
|
|
5811
|
+
updateHostText$1(
|
|
5812
|
+
current,
|
|
5813
|
+
workInProgress,
|
|
5814
|
+
current.memoizedProps,
|
|
5815
|
+
newProps
|
|
5816
|
+
);
|
|
5817
|
+
else {
|
|
5818
|
+
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
5819
|
+
throw Error(
|
|
5820
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5771
5821
|
);
|
|
5772
|
-
|
|
5822
|
+
current = requiredContext(rootInstanceStackCursor.current);
|
|
5823
|
+
renderLanes = requiredContext(contextStackCursor$1.current);
|
|
5824
|
+
workInProgress.stateNode = createTextInstance(
|
|
5825
|
+
newProps,
|
|
5826
|
+
current,
|
|
5827
|
+
renderLanes,
|
|
5828
|
+
workInProgress
|
|
5829
|
+
);
|
|
5773
5830
|
}
|
|
5774
|
-
|
|
5775
|
-
null
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5831
|
+
bubbleProperties(workInProgress);
|
|
5832
|
+
return null;
|
|
5833
|
+
case 13:
|
|
5834
|
+
pop(suspenseStackCursor);
|
|
5835
|
+
newProps = workInProgress.memoizedState;
|
|
5836
|
+
if (
|
|
5837
|
+
null === current ||
|
|
5838
|
+
(null !== current.memoizedState &&
|
|
5839
|
+
null !== current.memoizedState.dehydrated)
|
|
5840
|
+
) {
|
|
5841
|
+
if (null !== newProps && null !== newProps.dehydrated) {
|
|
5842
|
+
if (null === current) {
|
|
5843
|
+
throw Error(
|
|
5844
|
+
"A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."
|
|
5845
|
+
);
|
|
5846
|
+
throw Error(
|
|
5847
|
+
"Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."
|
|
5848
|
+
);
|
|
5849
|
+
}
|
|
5850
|
+
0 === (workInProgress.flags & 128) &&
|
|
5851
|
+
(workInProgress.memoizedState = null);
|
|
5852
|
+
workInProgress.flags |= 4;
|
|
5853
|
+
bubbleProperties(workInProgress);
|
|
5854
|
+
0 !== (workInProgress.mode & 2) &&
|
|
5855
|
+
null !== newProps &&
|
|
5856
|
+
((type = workInProgress.child),
|
|
5857
|
+
null !== type &&
|
|
5858
|
+
(workInProgress.treeBaseDuration -= type.treeBaseDuration));
|
|
5859
|
+
type = !1;
|
|
5860
|
+
} else
|
|
5861
|
+
null !== hydrationErrors &&
|
|
5862
|
+
(queueRecoverableErrors(hydrationErrors), (hydrationErrors = null)),
|
|
5863
|
+
(type = !0);
|
|
5864
|
+
if (!type) return workInProgress.flags & 65536 ? workInProgress : null;
|
|
5865
|
+
}
|
|
5866
|
+
if (0 !== (workInProgress.flags & 128))
|
|
5867
|
+
return (
|
|
5868
|
+
(workInProgress.lanes = renderLanes),
|
|
5869
|
+
0 !== (workInProgress.mode & 2) &&
|
|
5870
|
+
transferActualDuration(workInProgress),
|
|
5871
|
+
workInProgress
|
|
5872
|
+
);
|
|
5873
|
+
renderLanes = null !== newProps;
|
|
5874
|
+
renderLanes !== (null !== current && null !== current.memoizedState) &&
|
|
5875
|
+
renderLanes &&
|
|
5876
|
+
((workInProgress.child.flags |= 8192),
|
|
5877
|
+
0 !== (workInProgress.mode & 1) &&
|
|
5878
|
+
(null === current || 0 !== (suspenseStackCursor.current & 1)
|
|
5879
|
+
? 0 === workInProgressRootExitStatus &&
|
|
5880
|
+
(workInProgressRootExitStatus = 3)
|
|
5881
|
+
: renderDidSuspendDelayIfPossible()));
|
|
5882
|
+
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
5883
|
+
bubbleProperties(workInProgress);
|
|
5884
|
+
0 !== (workInProgress.mode & 2) &&
|
|
5885
|
+
renderLanes &&
|
|
5886
|
+
((current = workInProgress.child),
|
|
5887
|
+
null !== current &&
|
|
5888
|
+
(workInProgress.treeBaseDuration -= current.treeBaseDuration));
|
|
5889
|
+
return null;
|
|
5890
|
+
case 4:
|
|
5891
|
+
return (
|
|
5892
|
+
popHostContainer(),
|
|
5893
|
+
updateHostContainer(current, workInProgress),
|
|
5894
|
+
bubbleProperties(workInProgress),
|
|
5895
|
+
null
|
|
5896
|
+
);
|
|
5897
|
+
case 10:
|
|
5898
|
+
return (
|
|
5899
|
+
popProvider(workInProgress.type._context),
|
|
5900
|
+
bubbleProperties(workInProgress),
|
|
5901
|
+
null
|
|
5902
|
+
);
|
|
5903
|
+
case 17:
|
|
5904
|
+
return (
|
|
5905
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
5906
|
+
bubbleProperties(workInProgress),
|
|
5907
|
+
null
|
|
5908
|
+
);
|
|
5909
|
+
case 19:
|
|
5910
|
+
pop(suspenseStackCursor);
|
|
5911
|
+
type = workInProgress.memoizedState;
|
|
5912
|
+
if (null === type) return bubbleProperties(workInProgress), null;
|
|
5913
|
+
newProps = 0 !== (workInProgress.flags & 128);
|
|
5914
|
+
updatePayload = type.rendering;
|
|
5915
|
+
if (null === updatePayload)
|
|
5916
|
+
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
5917
|
+
else {
|
|
5918
|
+
if (
|
|
5919
|
+
0 !== workInProgressRootExitStatus ||
|
|
5920
|
+
(null !== current && 0 !== (current.flags & 128))
|
|
5921
|
+
)
|
|
5922
|
+
for (current = workInProgress.child; null !== current; ) {
|
|
5923
|
+
updatePayload = findFirstSuspended(current);
|
|
5924
|
+
if (null !== updatePayload) {
|
|
5925
|
+
workInProgress.flags |= 128;
|
|
5926
|
+
cutOffTailIfNeeded(type, !1);
|
|
5927
|
+
current = updatePayload.updateQueue;
|
|
5928
|
+
null !== current &&
|
|
5929
|
+
((workInProgress.updateQueue = current),
|
|
5930
|
+
(workInProgress.flags |= 4));
|
|
5931
|
+
workInProgress.subtreeFlags = 0;
|
|
5932
|
+
current = renderLanes;
|
|
5933
|
+
for (renderLanes = workInProgress.child; null !== renderLanes; )
|
|
5934
|
+
(newProps = renderLanes),
|
|
5935
|
+
(updatePayload = current),
|
|
5936
|
+
(newProps.flags &= 14680066),
|
|
5937
|
+
(type = newProps.alternate),
|
|
5938
|
+
null === type
|
|
5939
|
+
? ((newProps.childLanes = 0),
|
|
5940
|
+
(newProps.lanes = updatePayload),
|
|
5941
|
+
(newProps.child = null),
|
|
5942
|
+
(newProps.subtreeFlags = 0),
|
|
5943
|
+
(newProps.memoizedProps = null),
|
|
5944
|
+
(newProps.memoizedState = null),
|
|
5945
|
+
(newProps.updateQueue = null),
|
|
5946
|
+
(newProps.dependencies = null),
|
|
5947
|
+
(newProps.stateNode = null),
|
|
5948
|
+
(newProps.selfBaseDuration = 0),
|
|
5949
|
+
(newProps.treeBaseDuration = 0))
|
|
5950
|
+
: ((newProps.childLanes = type.childLanes),
|
|
5951
|
+
(newProps.lanes = type.lanes),
|
|
5952
|
+
(newProps.child = type.child),
|
|
5953
|
+
(newProps.subtreeFlags = 0),
|
|
5954
|
+
(newProps.deletions = null),
|
|
5955
|
+
(newProps.memoizedProps = type.memoizedProps),
|
|
5956
|
+
(newProps.memoizedState = type.memoizedState),
|
|
5957
|
+
(newProps.updateQueue = type.updateQueue),
|
|
5958
|
+
(newProps.type = type.type),
|
|
5959
|
+
(updatePayload = type.dependencies),
|
|
5960
|
+
(newProps.dependencies =
|
|
5961
|
+
null === updatePayload
|
|
5962
|
+
? null
|
|
5963
|
+
: {
|
|
5964
|
+
lanes: updatePayload.lanes,
|
|
5965
|
+
firstContext: updatePayload.firstContext
|
|
5966
|
+
}),
|
|
5967
|
+
(newProps.selfBaseDuration = type.selfBaseDuration),
|
|
5968
|
+
(newProps.treeBaseDuration = type.treeBaseDuration)),
|
|
5969
|
+
(renderLanes = renderLanes.sibling);
|
|
5970
|
+
push(
|
|
5971
|
+
suspenseStackCursor,
|
|
5972
|
+
(suspenseStackCursor.current & 1) | 2
|
|
5973
|
+
);
|
|
5974
|
+
return workInProgress.child;
|
|
5975
|
+
}
|
|
5976
|
+
current = current.sibling;
|
|
5977
|
+
}
|
|
5978
|
+
null !== type.tail &&
|
|
5979
|
+
now() > workInProgressRootRenderTargetTime &&
|
|
5980
|
+
((workInProgress.flags |= 128),
|
|
5981
|
+
(newProps = !0),
|
|
5982
|
+
cutOffTailIfNeeded(type, !1),
|
|
5983
|
+
(workInProgress.lanes = 4194304));
|
|
5984
|
+
}
|
|
5985
|
+
else {
|
|
5986
|
+
if (!newProps)
|
|
5987
|
+
if (
|
|
5988
|
+
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
5989
|
+
) {
|
|
5990
|
+
if (
|
|
5991
|
+
((workInProgress.flags |= 128),
|
|
5992
|
+
(newProps = !0),
|
|
5993
|
+
(current = current.updateQueue),
|
|
5994
|
+
null !== current &&
|
|
5995
|
+
((workInProgress.updateQueue = current),
|
|
5996
|
+
(workInProgress.flags |= 4)),
|
|
5997
|
+
cutOffTailIfNeeded(type, !0),
|
|
5998
|
+
null === type.tail &&
|
|
5999
|
+
"hidden" === type.tailMode &&
|
|
6000
|
+
!updatePayload.alternate)
|
|
6001
|
+
)
|
|
6002
|
+
return bubbleProperties(workInProgress), null;
|
|
6003
|
+
} else
|
|
6004
|
+
2 * now() - type.renderingStartTime >
|
|
6005
|
+
workInProgressRootRenderTargetTime &&
|
|
6006
|
+
1073741824 !== renderLanes &&
|
|
6007
|
+
((workInProgress.flags |= 128),
|
|
6008
|
+
(newProps = !0),
|
|
6009
|
+
cutOffTailIfNeeded(type, !1),
|
|
6010
|
+
(workInProgress.lanes = 4194304));
|
|
6011
|
+
type.isBackwards
|
|
6012
|
+
? ((updatePayload.sibling = workInProgress.child),
|
|
6013
|
+
(workInProgress.child = updatePayload))
|
|
6014
|
+
: ((current = type.last),
|
|
6015
|
+
null !== current
|
|
6016
|
+
? (current.sibling = updatePayload)
|
|
6017
|
+
: (workInProgress.child = updatePayload),
|
|
6018
|
+
(type.last = updatePayload));
|
|
6019
|
+
}
|
|
6020
|
+
if (null !== type.tail)
|
|
6021
|
+
return (
|
|
6022
|
+
(workInProgress = type.tail),
|
|
6023
|
+
(type.rendering = workInProgress),
|
|
6024
|
+
(type.tail = workInProgress.sibling),
|
|
6025
|
+
(type.renderingStartTime = now()),
|
|
6026
|
+
(workInProgress.sibling = null),
|
|
6027
|
+
(current = suspenseStackCursor.current),
|
|
6028
|
+
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
6029
|
+
workInProgress
|
|
6030
|
+
);
|
|
6031
|
+
bubbleProperties(workInProgress);
|
|
6032
|
+
return null;
|
|
5782
6033
|
case 22:
|
|
5783
6034
|
case 23:
|
|
5784
6035
|
return (
|
|
5785
|
-
(
|
|
5786
|
-
|
|
6036
|
+
popRenderLanes(),
|
|
6037
|
+
(renderLanes = null !== workInProgress.memoizedState),
|
|
6038
|
+
null !== current &&
|
|
6039
|
+
(null !== current.memoizedState) !== renderLanes &&
|
|
6040
|
+
(workInProgress.flags |= 8192),
|
|
6041
|
+
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
6042
|
+
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
6043
|
+
bubbleProperties(workInProgress)
|
|
6044
|
+
: bubbleProperties(workInProgress),
|
|
6045
|
+
null
|
|
5787
6046
|
);
|
|
6047
|
+
case 24:
|
|
6048
|
+
return null;
|
|
6049
|
+
case 25:
|
|
6050
|
+
return null;
|
|
5788
6051
|
}
|
|
5789
|
-
|
|
6052
|
+
throw Error(
|
|
6053
|
+
"Unknown unit of work tag (" +
|
|
6054
|
+
workInProgress.tag +
|
|
6055
|
+
"). This error is likely caused by a bug in React. Please file an issue."
|
|
6056
|
+
);
|
|
5790
6057
|
}
|
|
5791
6058
|
function unwindWork(current, workInProgress) {
|
|
5792
6059
|
popTreeContext(workInProgress);
|
|
@@ -5816,16 +6083,23 @@ function unwindWork(current, workInProgress) {
|
|
|
5816
6083
|
case 5:
|
|
5817
6084
|
return popHostContext(workInProgress), null;
|
|
5818
6085
|
case 13:
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
current
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
6086
|
+
pop(suspenseStackCursor);
|
|
6087
|
+
current = workInProgress.memoizedState;
|
|
6088
|
+
if (
|
|
6089
|
+
null !== current &&
|
|
6090
|
+
null !== current.dehydrated &&
|
|
6091
|
+
null === workInProgress.alternate
|
|
6092
|
+
)
|
|
6093
|
+
throw Error(
|
|
6094
|
+
"Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."
|
|
6095
|
+
);
|
|
6096
|
+
current = workInProgress.flags;
|
|
6097
|
+
return current & 65536
|
|
6098
|
+
? ((workInProgress.flags = (current & -65537) | 128),
|
|
6099
|
+
0 !== (workInProgress.mode & 2) &&
|
|
6100
|
+
transferActualDuration(workInProgress),
|
|
6101
|
+
workInProgress)
|
|
6102
|
+
: null;
|
|
5829
6103
|
case 19:
|
|
5830
6104
|
return pop(suspenseStackCursor), null;
|
|
5831
6105
|
case 4:
|
|
@@ -5980,48 +6254,129 @@ function detachFiberAfterEffects(fiber) {
|
|
|
5980
6254
|
fiber.stateNode = null;
|
|
5981
6255
|
fiber.updateQueue = null;
|
|
5982
6256
|
}
|
|
5983
|
-
function
|
|
5984
|
-
|
|
6257
|
+
function recursivelyTraverseDeletionEffects(
|
|
6258
|
+
finishedRoot,
|
|
6259
|
+
nearestMountedAncestor,
|
|
6260
|
+
parent
|
|
6261
|
+
) {
|
|
6262
|
+
for (parent = parent.child; null !== parent; )
|
|
6263
|
+
commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent),
|
|
6264
|
+
(parent = parent.sibling);
|
|
6265
|
+
}
|
|
6266
|
+
function commitDeletionEffectsOnFiber(
|
|
6267
|
+
finishedRoot,
|
|
6268
|
+
nearestMountedAncestor,
|
|
6269
|
+
deletedFiber
|
|
6270
|
+
) {
|
|
6271
|
+
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
6272
|
+
try {
|
|
6273
|
+
injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);
|
|
6274
|
+
} catch (err) {}
|
|
6275
|
+
switch (deletedFiber.tag) {
|
|
6276
|
+
case 5:
|
|
6277
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
6278
|
+
case 6:
|
|
6279
|
+
recursivelyTraverseDeletionEffects(
|
|
6280
|
+
finishedRoot,
|
|
6281
|
+
nearestMountedAncestor,
|
|
6282
|
+
deletedFiber
|
|
6283
|
+
);
|
|
6284
|
+
break;
|
|
6285
|
+
case 18:
|
|
6286
|
+
break;
|
|
6287
|
+
case 4:
|
|
6288
|
+
createChildNodeSet(deletedFiber.stateNode.containerInfo);
|
|
6289
|
+
recursivelyTraverseDeletionEffects(
|
|
6290
|
+
finishedRoot,
|
|
6291
|
+
nearestMountedAncestor,
|
|
6292
|
+
deletedFiber
|
|
6293
|
+
);
|
|
6294
|
+
break;
|
|
5985
6295
|
case 0:
|
|
5986
6296
|
case 11:
|
|
5987
6297
|
case 14:
|
|
5988
6298
|
case 15:
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
6299
|
+
var updateQueue = deletedFiber.updateQueue;
|
|
6300
|
+
if (
|
|
6301
|
+
null !== updateQueue &&
|
|
6302
|
+
((updateQueue = updateQueue.lastEffect), null !== updateQueue)
|
|
6303
|
+
) {
|
|
6304
|
+
var effect = (updateQueue = updateQueue.next);
|
|
6305
|
+
do {
|
|
6306
|
+
var _effect = effect,
|
|
6307
|
+
destroy = _effect.destroy;
|
|
6308
|
+
_effect = _effect.tag;
|
|
6309
|
+
void 0 !== destroy &&
|
|
6310
|
+
(0 !== (_effect & 2)
|
|
6311
|
+
? safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy)
|
|
6312
|
+
: 0 !== (_effect & 4) &&
|
|
6313
|
+
(deletedFiber.mode & 2
|
|
6314
|
+
? (startLayoutEffectTimer(),
|
|
6315
|
+
safelyCallDestroy(
|
|
6316
|
+
deletedFiber,
|
|
6317
|
+
nearestMountedAncestor,
|
|
6318
|
+
destroy
|
|
6319
|
+
),
|
|
6320
|
+
recordLayoutEffectDuration(deletedFiber))
|
|
6321
|
+
: safelyCallDestroy(
|
|
6322
|
+
deletedFiber,
|
|
6323
|
+
nearestMountedAncestor,
|
|
6324
|
+
destroy
|
|
6325
|
+
)));
|
|
6326
|
+
effect = effect.next;
|
|
6327
|
+
} while (effect !== updateQueue);
|
|
6328
|
+
}
|
|
6329
|
+
recursivelyTraverseDeletionEffects(
|
|
6330
|
+
finishedRoot,
|
|
6331
|
+
nearestMountedAncestor,
|
|
6332
|
+
deletedFiber
|
|
6333
|
+
);
|
|
6334
|
+
break;
|
|
6335
|
+
case 1:
|
|
6336
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
6337
|
+
updateQueue = deletedFiber.stateNode;
|
|
6338
|
+
if ("function" === typeof updateQueue.componentWillUnmount)
|
|
5992
6339
|
try {
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
6340
|
+
if (
|
|
6341
|
+
((updateQueue.props = deletedFiber.memoizedProps),
|
|
6342
|
+
(updateQueue.state = deletedFiber.memoizedState),
|
|
6343
|
+
deletedFiber.mode & 2)
|
|
6344
|
+
)
|
|
6345
|
+
try {
|
|
6346
|
+
startLayoutEffectTimer(), updateQueue.componentWillUnmount();
|
|
6347
|
+
} finally {
|
|
6348
|
+
recordLayoutEffectDuration(deletedFiber);
|
|
6349
|
+
}
|
|
6350
|
+
else updateQueue.componentWillUnmount();
|
|
6351
|
+
} catch (error) {
|
|
6352
|
+
captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error);
|
|
5997
6353
|
}
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6354
|
+
recursivelyTraverseDeletionEffects(
|
|
6355
|
+
finishedRoot,
|
|
6356
|
+
nearestMountedAncestor,
|
|
6357
|
+
deletedFiber
|
|
6358
|
+
);
|
|
6359
|
+
break;
|
|
6360
|
+
case 21:
|
|
6361
|
+
recursivelyTraverseDeletionEffects(
|
|
6362
|
+
finishedRoot,
|
|
6363
|
+
nearestMountedAncestor,
|
|
6364
|
+
deletedFiber
|
|
6365
|
+
);
|
|
6366
|
+
break;
|
|
6008
6367
|
case 22:
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
}
|
|
6022
|
-
throw Error(
|
|
6023
|
-
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6024
|
-
);
|
|
6368
|
+
recursivelyTraverseDeletionEffects(
|
|
6369
|
+
finishedRoot,
|
|
6370
|
+
nearestMountedAncestor,
|
|
6371
|
+
deletedFiber
|
|
6372
|
+
);
|
|
6373
|
+
break;
|
|
6374
|
+
default:
|
|
6375
|
+
recursivelyTraverseDeletionEffects(
|
|
6376
|
+
finishedRoot,
|
|
6377
|
+
nearestMountedAncestor,
|
|
6378
|
+
deletedFiber
|
|
6379
|
+
);
|
|
6025
6380
|
}
|
|
6026
6381
|
}
|
|
6027
6382
|
function attachSuspenseRetryListeners(finishedWork) {
|
|
@@ -6047,172 +6402,132 @@ function attachSuspenseRetryListeners(finishedWork) {
|
|
|
6047
6402
|
});
|
|
6048
6403
|
}
|
|
6049
6404
|
}
|
|
6050
|
-
function commitMutationEffects(root,
|
|
6405
|
+
function commitMutationEffects(root, finishedWork, committedLanes) {
|
|
6051
6406
|
inProgressLanes = committedLanes;
|
|
6052
6407
|
inProgressRoot = root;
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6408
|
+
commitMutationEffectsOnFiber(finishedWork, root);
|
|
6409
|
+
inProgressRoot = inProgressLanes = null;
|
|
6410
|
+
}
|
|
6411
|
+
function recursivelyTraverseMutationEffects(root, parentFiber) {
|
|
6412
|
+
var deletions = parentFiber.deletions;
|
|
6413
|
+
if (null !== deletions)
|
|
6414
|
+
for (var i = 0; i < deletions.length; i++) {
|
|
6415
|
+
var childToDelete = deletions[i];
|
|
6416
|
+
try {
|
|
6417
|
+
commitDeletionEffectsOnFiber(root, parentFiber, childToDelete);
|
|
6418
|
+
var alternate = childToDelete.alternate;
|
|
6419
|
+
null !== alternate && (alternate.return = null);
|
|
6420
|
+
childToDelete.return = null;
|
|
6421
|
+
} catch (error) {
|
|
6422
|
+
captureCommitPhaseError(childToDelete, parentFiber, error);
|
|
6423
|
+
}
|
|
6424
|
+
}
|
|
6425
|
+
if (parentFiber.subtreeFlags & 12854)
|
|
6426
|
+
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
6427
|
+
commitMutationEffectsOnFiber(parentFiber, root),
|
|
6428
|
+
(parentFiber = parentFiber.sibling);
|
|
6429
|
+
}
|
|
6430
|
+
function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
6431
|
+
var current = finishedWork.alternate,
|
|
6432
|
+
flags = finishedWork.flags;
|
|
6433
|
+
switch (finishedWork.tag) {
|
|
6434
|
+
case 0:
|
|
6435
|
+
case 11:
|
|
6436
|
+
case 14:
|
|
6437
|
+
case 15:
|
|
6438
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6439
|
+
commitReconciliationEffects(finishedWork);
|
|
6440
|
+
if (flags & 4) {
|
|
6063
6441
|
try {
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
if (
|
|
6067
|
-
injectedHook &&
|
|
6068
|
-
"function" === typeof injectedHook.onCommitFiberUnmount
|
|
6069
|
-
)
|
|
6070
|
-
try {
|
|
6071
|
-
injectedHook.onCommitFiberUnmount(rendererID, current);
|
|
6072
|
-
} catch (err) {}
|
|
6073
|
-
switch (current.tag) {
|
|
6074
|
-
case 0:
|
|
6075
|
-
case 11:
|
|
6076
|
-
case 14:
|
|
6077
|
-
case 15:
|
|
6078
|
-
var updateQueue = current.updateQueue;
|
|
6079
|
-
if (null !== updateQueue) {
|
|
6080
|
-
var lastEffect = updateQueue.lastEffect;
|
|
6081
|
-
if (null !== lastEffect) {
|
|
6082
|
-
var firstEffect = lastEffect.next,
|
|
6083
|
-
effect = firstEffect;
|
|
6084
|
-
do {
|
|
6085
|
-
var _effect = effect,
|
|
6086
|
-
destroy = _effect.destroy,
|
|
6087
|
-
tag = _effect.tag;
|
|
6088
|
-
void 0 !== destroy &&
|
|
6089
|
-
(0 !== (tag & 2)
|
|
6090
|
-
? safelyCallDestroy(current, root, destroy)
|
|
6091
|
-
: 0 !== (tag & 4) &&
|
|
6092
|
-
(current.mode & 2
|
|
6093
|
-
? (startLayoutEffectTimer(),
|
|
6094
|
-
safelyCallDestroy(current, root, destroy),
|
|
6095
|
-
recordLayoutEffectDuration(current))
|
|
6096
|
-
: safelyCallDestroy(current, root, destroy)));
|
|
6097
|
-
effect = effect.next;
|
|
6098
|
-
} while (effect !== firstEffect);
|
|
6099
|
-
}
|
|
6100
|
-
}
|
|
6101
|
-
break;
|
|
6102
|
-
case 1:
|
|
6103
|
-
safelyDetachRef(current, root);
|
|
6104
|
-
var instance = current.stateNode;
|
|
6105
|
-
if ("function" === typeof instance.componentWillUnmount)
|
|
6106
|
-
try {
|
|
6107
|
-
if (
|
|
6108
|
-
((effect = current),
|
|
6109
|
-
(_effect = instance),
|
|
6110
|
-
(_effect.props = effect.memoizedProps),
|
|
6111
|
-
(_effect.state = effect.memoizedState),
|
|
6112
|
-
effect.mode & 2)
|
|
6113
|
-
)
|
|
6114
|
-
try {
|
|
6115
|
-
startLayoutEffectTimer(),
|
|
6116
|
-
_effect.componentWillUnmount();
|
|
6117
|
-
} finally {
|
|
6118
|
-
recordLayoutEffectDuration(effect);
|
|
6119
|
-
}
|
|
6120
|
-
else _effect.componentWillUnmount();
|
|
6121
|
-
} catch (error) {
|
|
6122
|
-
captureCommitPhaseError(current, root, error);
|
|
6123
|
-
}
|
|
6124
|
-
break;
|
|
6125
|
-
case 5:
|
|
6126
|
-
safelyDetachRef(current, root);
|
|
6127
|
-
break;
|
|
6128
|
-
case 4:
|
|
6129
|
-
createChildNodeSet(current.stateNode.containerInfo);
|
|
6130
|
-
}
|
|
6131
|
-
if (null !== node.child)
|
|
6132
|
-
(node.child.return = node), (node = node.child);
|
|
6133
|
-
else {
|
|
6134
|
-
if (node === childToDelete) break;
|
|
6135
|
-
for (; null === node.sibling; ) {
|
|
6136
|
-
if (null === node.return || node.return === childToDelete)
|
|
6137
|
-
break a;
|
|
6138
|
-
node = node.return;
|
|
6139
|
-
}
|
|
6140
|
-
node.sibling.return = node.return;
|
|
6141
|
-
node = node.sibling;
|
|
6142
|
-
}
|
|
6143
|
-
}
|
|
6144
|
-
var alternate = childToDelete.alternate;
|
|
6145
|
-
null !== alternate && (alternate.return = null);
|
|
6146
|
-
childToDelete.return = null;
|
|
6442
|
+
commitHookEffectListUnmount(3, finishedWork, finishedWork.return),
|
|
6443
|
+
commitHookEffectListMount(3, finishedWork);
|
|
6147
6444
|
} catch (error) {
|
|
6148
|
-
captureCommitPhaseError(
|
|
6445
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
6149
6446
|
}
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
var current$jscomp$0 = root.alternate;
|
|
6161
|
-
if (null !== current$jscomp$0) {
|
|
6162
|
-
firstChild = current$jscomp$0;
|
|
6163
|
-
var currentRef = firstChild.ref;
|
|
6164
|
-
if (null !== currentRef)
|
|
6165
|
-
if ("function" === typeof currentRef)
|
|
6166
|
-
if (firstChild.mode & 2)
|
|
6167
|
-
try {
|
|
6168
|
-
startLayoutEffectTimer(), currentRef(null);
|
|
6169
|
-
} finally {
|
|
6170
|
-
recordLayoutEffectDuration(firstChild);
|
|
6171
|
-
}
|
|
6172
|
-
else currentRef(null);
|
|
6173
|
-
else currentRef.current = null;
|
|
6174
|
-
}
|
|
6447
|
+
if (finishedWork.mode & 2) {
|
|
6448
|
+
try {
|
|
6449
|
+
startLayoutEffectTimer(),
|
|
6450
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6451
|
+
} catch (error$89) {
|
|
6452
|
+
captureCommitPhaseError(
|
|
6453
|
+
finishedWork,
|
|
6454
|
+
finishedWork.return,
|
|
6455
|
+
error$89
|
|
6456
|
+
);
|
|
6175
6457
|
}
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
case 2:
|
|
6187
|
-
root.flags &= -3;
|
|
6188
|
-
break;
|
|
6189
|
-
case 6:
|
|
6190
|
-
root.flags &= -3;
|
|
6191
|
-
commitWork(root.alternate, root);
|
|
6192
|
-
break;
|
|
6193
|
-
case 4096:
|
|
6194
|
-
root.flags &= -4097;
|
|
6195
|
-
break;
|
|
6196
|
-
case 4100:
|
|
6197
|
-
root.flags &= -4097;
|
|
6198
|
-
commitWork(root.alternate, root);
|
|
6199
|
-
break;
|
|
6200
|
-
case 4:
|
|
6201
|
-
commitWork(root.alternate, root);
|
|
6458
|
+
recordLayoutEffectDuration(finishedWork);
|
|
6459
|
+
} else
|
|
6460
|
+
try {
|
|
6461
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6462
|
+
} catch (error$90) {
|
|
6463
|
+
captureCommitPhaseError(
|
|
6464
|
+
finishedWork,
|
|
6465
|
+
finishedWork.return,
|
|
6466
|
+
error$90
|
|
6467
|
+
);
|
|
6202
6468
|
}
|
|
6203
|
-
} catch (error) {
|
|
6204
|
-
captureCommitPhaseError(root, root.return, error);
|
|
6205
|
-
}
|
|
6206
|
-
firstChild = root.sibling;
|
|
6207
|
-
if (null !== firstChild) {
|
|
6208
|
-
firstChild.return = root.return;
|
|
6209
|
-
nextEffect = firstChild;
|
|
6210
|
-
break;
|
|
6211
|
-
}
|
|
6212
|
-
nextEffect = root.return;
|
|
6213
6469
|
}
|
|
6470
|
+
break;
|
|
6471
|
+
case 1:
|
|
6472
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6473
|
+
commitReconciliationEffects(finishedWork);
|
|
6474
|
+
flags & 512 &&
|
|
6475
|
+
null !== current &&
|
|
6476
|
+
safelyDetachRef(current, current.return);
|
|
6477
|
+
break;
|
|
6478
|
+
case 5:
|
|
6479
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6480
|
+
commitReconciliationEffects(finishedWork);
|
|
6481
|
+
flags & 512 &&
|
|
6482
|
+
null !== current &&
|
|
6483
|
+
safelyDetachRef(current, current.return);
|
|
6484
|
+
break;
|
|
6485
|
+
case 6:
|
|
6486
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6487
|
+
commitReconciliationEffects(finishedWork);
|
|
6488
|
+
break;
|
|
6489
|
+
case 3:
|
|
6490
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6491
|
+
commitReconciliationEffects(finishedWork);
|
|
6492
|
+
break;
|
|
6493
|
+
case 4:
|
|
6494
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6495
|
+
commitReconciliationEffects(finishedWork);
|
|
6496
|
+
break;
|
|
6497
|
+
case 13:
|
|
6498
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6499
|
+
commitReconciliationEffects(finishedWork);
|
|
6500
|
+
root = finishedWork.child;
|
|
6501
|
+
root.flags & 8192 &&
|
|
6502
|
+
((current = null !== root.memoizedState),
|
|
6503
|
+
(root.stateNode.isHidden = current),
|
|
6504
|
+
!current ||
|
|
6505
|
+
(null !== root.alternate && null !== root.alternate.memoizedState) ||
|
|
6506
|
+
(globalMostRecentFallbackTime = now()));
|
|
6507
|
+
flags & 4 && attachSuspenseRetryListeners(finishedWork);
|
|
6508
|
+
break;
|
|
6509
|
+
case 22:
|
|
6510
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6511
|
+
commitReconciliationEffects(finishedWork);
|
|
6512
|
+
flags & 8192 &&
|
|
6513
|
+
(finishedWork.stateNode.isHidden = null !== finishedWork.memoizedState);
|
|
6514
|
+
break;
|
|
6515
|
+
case 19:
|
|
6516
|
+
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
6517
|
+
commitReconciliationEffects(finishedWork);
|
|
6518
|
+
flags & 4 && attachSuspenseRetryListeners(finishedWork);
|
|
6519
|
+
break;
|
|
6520
|
+
case 21:
|
|
6521
|
+
break;
|
|
6522
|
+
default:
|
|
6523
|
+
recursivelyTraverseMutationEffects(root, finishedWork),
|
|
6524
|
+
commitReconciliationEffects(finishedWork);
|
|
6214
6525
|
}
|
|
6215
|
-
|
|
6526
|
+
}
|
|
6527
|
+
function commitReconciliationEffects(finishedWork) {
|
|
6528
|
+
var flags = finishedWork.flags;
|
|
6529
|
+
flags & 2 && (finishedWork.flags &= -3);
|
|
6530
|
+
flags & 4096 && (finishedWork.flags &= -4097);
|
|
6216
6531
|
}
|
|
6217
6532
|
function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
6218
6533
|
inProgressLanes = committedLanes;
|
|
@@ -6362,6 +6677,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6362
6677
|
case 21:
|
|
6363
6678
|
case 22:
|
|
6364
6679
|
case 23:
|
|
6680
|
+
case 25:
|
|
6365
6681
|
break;
|
|
6366
6682
|
default:
|
|
6367
6683
|
throw Error(
|
|
@@ -6433,6 +6749,7 @@ var ceil = Math.ceil,
|
|
|
6433
6749
|
workInProgressRootRecoverableErrors = null,
|
|
6434
6750
|
globalMostRecentFallbackTime = 0,
|
|
6435
6751
|
workInProgressRootRenderTargetTime = Infinity,
|
|
6752
|
+
workInProgressTransitions = null,
|
|
6436
6753
|
hasUncaughtError = !1,
|
|
6437
6754
|
firstUncaughtError = null,
|
|
6438
6755
|
legacyErrorBoundariesThatAlreadyFailed = null,
|
|
@@ -6458,10 +6775,7 @@ function requestUpdateLane(fiber) {
|
|
|
6458
6775
|
if (null !== ReactCurrentBatchConfig.transition)
|
|
6459
6776
|
return (
|
|
6460
6777
|
0 === currentEventTransitionLane &&
|
|
6461
|
-
(
|
|
6462
|
-
(nextTransitionLane <<= 1),
|
|
6463
|
-
0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64),
|
|
6464
|
-
(currentEventTransitionLane = fiber)),
|
|
6778
|
+
(currentEventTransitionLane = claimNextTransitionLane()),
|
|
6465
6779
|
currentEventTransitionLane
|
|
6466
6780
|
);
|
|
6467
6781
|
fiber = currentUpdatePriority;
|
|
@@ -6480,15 +6794,13 @@ function requestUpdateLane(fiber) {
|
|
|
6480
6794
|
}
|
|
6481
6795
|
return fiber;
|
|
6482
6796
|
}
|
|
6483
|
-
function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
6797
|
+
function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
|
|
6484
6798
|
if (50 < nestedUpdateCount)
|
|
6485
6799
|
throw ((nestedUpdateCount = 0),
|
|
6486
6800
|
(rootWithNestedUpdates = null),
|
|
6487
6801
|
Error(
|
|
6488
6802
|
"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."
|
|
6489
6803
|
));
|
|
6490
|
-
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6491
|
-
if (null === root) return null;
|
|
6492
6804
|
markRootUpdated(root, lane, eventTime);
|
|
6493
6805
|
if (0 === (executionContext & 2) || root !== workInProgressRoot)
|
|
6494
6806
|
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane),
|
|
@@ -6503,20 +6815,6 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6503
6815
|
0 === (fiber.mode & 1) &&
|
|
6504
6816
|
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6505
6817
|
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6506
|
-
return root;
|
|
6507
|
-
}
|
|
6508
|
-
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
6509
|
-
sourceFiber.lanes |= lane;
|
|
6510
|
-
var alternate = sourceFiber.alternate;
|
|
6511
|
-
null !== alternate && (alternate.lanes |= lane);
|
|
6512
|
-
alternate = sourceFiber;
|
|
6513
|
-
for (sourceFiber = sourceFiber.return; null !== sourceFiber; )
|
|
6514
|
-
(sourceFiber.childLanes |= lane),
|
|
6515
|
-
(alternate = sourceFiber.alternate),
|
|
6516
|
-
null !== alternate && (alternate.childLanes |= lane),
|
|
6517
|
-
(alternate = sourceFiber),
|
|
6518
|
-
(sourceFiber = sourceFiber.return);
|
|
6519
|
-
return 3 === alternate.tag ? alternate.stateNode : null;
|
|
6520
6818
|
}
|
|
6521
6819
|
function ensureRootIsScheduled(root, currentTime) {
|
|
6522
6820
|
for (
|
|
@@ -6621,6 +6919,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6621
6919
|
memoizedUpdaters.clear());
|
|
6622
6920
|
movePendingFibersToMemoized(root, didTimeout);
|
|
6623
6921
|
}
|
|
6922
|
+
workInProgressTransitions = null;
|
|
6624
6923
|
workInProgressRootRenderTargetTime = now() + 500;
|
|
6625
6924
|
prepareFreshStack(root, didTimeout);
|
|
6626
6925
|
}
|
|
@@ -6679,7 +6978,11 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6679
6978
|
case 1:
|
|
6680
6979
|
throw Error("Root did not complete. This is a bug in React.");
|
|
6681
6980
|
case 2:
|
|
6682
|
-
commitRoot(
|
|
6981
|
+
commitRoot(
|
|
6982
|
+
root,
|
|
6983
|
+
workInProgressRootRecoverableErrors,
|
|
6984
|
+
workInProgressTransitions
|
|
6985
|
+
);
|
|
6683
6986
|
break;
|
|
6684
6987
|
case 3:
|
|
6685
6988
|
markRootSuspended$1(root, lanes);
|
|
@@ -6696,12 +6999,21 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6696
6999
|
break;
|
|
6697
7000
|
}
|
|
6698
7001
|
root.timeoutHandle = scheduleTimeout(
|
|
6699
|
-
commitRoot.bind(
|
|
7002
|
+
commitRoot.bind(
|
|
7003
|
+
null,
|
|
7004
|
+
root,
|
|
7005
|
+
workInProgressRootRecoverableErrors,
|
|
7006
|
+
workInProgressTransitions
|
|
7007
|
+
),
|
|
6700
7008
|
didTimeout
|
|
6701
7009
|
);
|
|
6702
7010
|
break;
|
|
6703
7011
|
}
|
|
6704
|
-
commitRoot(
|
|
7012
|
+
commitRoot(
|
|
7013
|
+
root,
|
|
7014
|
+
workInProgressRootRecoverableErrors,
|
|
7015
|
+
workInProgressTransitions
|
|
7016
|
+
);
|
|
6705
7017
|
break;
|
|
6706
7018
|
case 4:
|
|
6707
7019
|
markRootSuspended$1(root, lanes);
|
|
@@ -6732,15 +7044,28 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6732
7044
|
: 1960 * ceil(lanes / 1960)) - lanes;
|
|
6733
7045
|
if (10 < lanes) {
|
|
6734
7046
|
root.timeoutHandle = scheduleTimeout(
|
|
6735
|
-
commitRoot.bind(
|
|
7047
|
+
commitRoot.bind(
|
|
7048
|
+
null,
|
|
7049
|
+
root,
|
|
7050
|
+
workInProgressRootRecoverableErrors,
|
|
7051
|
+
workInProgressTransitions
|
|
7052
|
+
),
|
|
6736
7053
|
lanes
|
|
6737
7054
|
);
|
|
6738
7055
|
break;
|
|
6739
7056
|
}
|
|
6740
|
-
commitRoot(
|
|
7057
|
+
commitRoot(
|
|
7058
|
+
root,
|
|
7059
|
+
workInProgressRootRecoverableErrors,
|
|
7060
|
+
workInProgressTransitions
|
|
7061
|
+
);
|
|
6741
7062
|
break;
|
|
6742
7063
|
case 5:
|
|
6743
|
-
commitRoot(
|
|
7064
|
+
commitRoot(
|
|
7065
|
+
root,
|
|
7066
|
+
workInProgressRootRecoverableErrors,
|
|
7067
|
+
workInProgressTransitions
|
|
7068
|
+
);
|
|
6744
7069
|
break;
|
|
6745
7070
|
default:
|
|
6746
7071
|
throw Error("Unknown root exit status.");
|
|
@@ -6760,15 +7085,17 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
6760
7085
|
2 !== root &&
|
|
6761
7086
|
((errorRetryLanes = workInProgressRootRecoverableErrors),
|
|
6762
7087
|
(workInProgressRootRecoverableErrors = errorsFromFirstAttempt),
|
|
6763
|
-
null !== errorRetryLanes &&
|
|
6764
|
-
(null === workInProgressRootRecoverableErrors
|
|
6765
|
-
? (workInProgressRootRecoverableErrors = errorRetryLanes)
|
|
6766
|
-
: workInProgressRootRecoverableErrors.push.apply(
|
|
6767
|
-
workInProgressRootRecoverableErrors,
|
|
6768
|
-
errorRetryLanes
|
|
6769
|
-
)));
|
|
7088
|
+
null !== errorRetryLanes && queueRecoverableErrors(errorRetryLanes));
|
|
6770
7089
|
return root;
|
|
6771
7090
|
}
|
|
7091
|
+
function queueRecoverableErrors(errors) {
|
|
7092
|
+
null === workInProgressRootRecoverableErrors
|
|
7093
|
+
? (workInProgressRootRecoverableErrors = errors)
|
|
7094
|
+
: workInProgressRootRecoverableErrors.push.apply(
|
|
7095
|
+
workInProgressRootRecoverableErrors,
|
|
7096
|
+
errors
|
|
7097
|
+
);
|
|
7098
|
+
}
|
|
6772
7099
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6773
7100
|
for (var node = finishedWork; ; ) {
|
|
6774
7101
|
if (node.flags & 16384) {
|
|
@@ -6840,7 +7167,11 @@ function performSyncWorkOnRoot(root) {
|
|
|
6840
7167
|
throw Error("Root did not complete. This is a bug in React.");
|
|
6841
7168
|
root.finishedWork = root.current.alternate;
|
|
6842
7169
|
root.finishedLanes = lanes;
|
|
6843
|
-
commitRoot(
|
|
7170
|
+
commitRoot(
|
|
7171
|
+
root,
|
|
7172
|
+
workInProgressRootRecoverableErrors,
|
|
7173
|
+
workInProgressTransitions
|
|
7174
|
+
);
|
|
6844
7175
|
ensureRootIsScheduled(root, now());
|
|
6845
7176
|
return null;
|
|
6846
7177
|
}
|
|
@@ -6899,10 +7230,10 @@ function prepareFreshStack(root, lanes) {
|
|
|
6899
7230
|
workInProgressRootFatalError = null;
|
|
6900
7231
|
workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6901
7232
|
workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null;
|
|
6902
|
-
if (null !==
|
|
6903
|
-
for (lanes = 0; lanes <
|
|
7233
|
+
if (null !== concurrentQueues) {
|
|
7234
|
+
for (lanes = 0; lanes < concurrentQueues.length; lanes++)
|
|
6904
7235
|
if (
|
|
6905
|
-
((timeoutHandle =
|
|
7236
|
+
((timeoutHandle = concurrentQueues[lanes]),
|
|
6906
7237
|
(interruptedWork = timeoutHandle.interleaved),
|
|
6907
7238
|
null !== interruptedWork)
|
|
6908
7239
|
) {
|
|
@@ -6916,7 +7247,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6916
7247
|
}
|
|
6917
7248
|
timeoutHandle.pending = interruptedWork;
|
|
6918
7249
|
}
|
|
6919
|
-
|
|
7250
|
+
concurrentQueues = null;
|
|
6920
7251
|
}
|
|
6921
7252
|
return root;
|
|
6922
7253
|
}
|
|
@@ -7015,7 +7346,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7015
7346
|
else {
|
|
7016
7347
|
var update = createUpdate(-1, 1);
|
|
7017
7348
|
update.tag = 2;
|
|
7018
|
-
enqueueUpdate(sourceFiber, update);
|
|
7349
|
+
enqueueUpdate(sourceFiber, update, 1);
|
|
7019
7350
|
}
|
|
7020
7351
|
sourceFiber.lanes |= 1;
|
|
7021
7352
|
}
|
|
@@ -7042,13 +7373,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7042
7373
|
);
|
|
7043
7374
|
}
|
|
7044
7375
|
}
|
|
7045
|
-
root = value;
|
|
7376
|
+
root = value = createCapturedValueAtFiber(value, sourceFiber);
|
|
7046
7377
|
4 !== workInProgressRootExitStatus &&
|
|
7047
7378
|
(workInProgressRootExitStatus = 2);
|
|
7048
7379
|
null === workInProgressRootConcurrentErrors
|
|
7049
7380
|
? (workInProgressRootConcurrentErrors = [root])
|
|
7050
7381
|
: workInProgressRootConcurrentErrors.push(root);
|
|
7051
|
-
value = createCapturedValue(value, sourceFiber);
|
|
7052
7382
|
root = returnFiber;
|
|
7053
7383
|
do {
|
|
7054
7384
|
switch (root.tag) {
|
|
@@ -7079,12 +7409,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7079
7409
|
root.flags |= 65536;
|
|
7080
7410
|
thrownValue &= -thrownValue;
|
|
7081
7411
|
root.lanes |= thrownValue;
|
|
7082
|
-
var update$
|
|
7412
|
+
var update$34 = createClassErrorUpdate(
|
|
7083
7413
|
root,
|
|
7084
7414
|
wakeable,
|
|
7085
7415
|
thrownValue
|
|
7086
7416
|
);
|
|
7087
|
-
enqueueCapturedUpdate(root, update$
|
|
7417
|
+
enqueueCapturedUpdate(root, update$34);
|
|
7088
7418
|
break a;
|
|
7089
7419
|
}
|
|
7090
7420
|
}
|
|
@@ -7131,6 +7461,7 @@ function renderRootSync(root, lanes) {
|
|
|
7131
7461
|
memoizedUpdaters.clear());
|
|
7132
7462
|
movePendingFibersToMemoized(root, lanes);
|
|
7133
7463
|
}
|
|
7464
|
+
workInProgressTransitions = null;
|
|
7134
7465
|
prepareFreshStack(root, lanes);
|
|
7135
7466
|
}
|
|
7136
7467
|
do
|
|
@@ -7225,50 +7556,60 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7225
7556
|
} while (null !== completedWork);
|
|
7226
7557
|
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
|
|
7227
7558
|
}
|
|
7228
|
-
function commitRoot(root, recoverableErrors) {
|
|
7559
|
+
function commitRoot(root, recoverableErrors, transitions) {
|
|
7229
7560
|
var previousUpdateLanePriority = currentUpdatePriority,
|
|
7230
7561
|
prevTransition = ReactCurrentBatchConfig$2.transition;
|
|
7231
7562
|
try {
|
|
7232
7563
|
(ReactCurrentBatchConfig$2.transition = null),
|
|
7233
7564
|
(currentUpdatePriority = 1),
|
|
7234
|
-
commitRootImpl(
|
|
7565
|
+
commitRootImpl(
|
|
7566
|
+
root,
|
|
7567
|
+
recoverableErrors,
|
|
7568
|
+
transitions,
|
|
7569
|
+
previousUpdateLanePriority
|
|
7570
|
+
);
|
|
7235
7571
|
} finally {
|
|
7236
7572
|
(ReactCurrentBatchConfig$2.transition = prevTransition),
|
|
7237
7573
|
(currentUpdatePriority = previousUpdateLanePriority);
|
|
7238
7574
|
}
|
|
7239
7575
|
return null;
|
|
7240
7576
|
}
|
|
7241
|
-
function commitRootImpl(
|
|
7577
|
+
function commitRootImpl(
|
|
7578
|
+
root,
|
|
7579
|
+
recoverableErrors,
|
|
7580
|
+
transitions,
|
|
7581
|
+
renderPriorityLevel
|
|
7582
|
+
) {
|
|
7242
7583
|
do flushPassiveEffects();
|
|
7243
7584
|
while (null !== rootWithPendingPassiveEffects);
|
|
7244
7585
|
if (0 !== (executionContext & 6))
|
|
7245
7586
|
throw Error("Should not already be working.");
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
if (null ===
|
|
7587
|
+
transitions = root.finishedWork;
|
|
7588
|
+
var lanes = root.finishedLanes;
|
|
7589
|
+
if (null === transitions) return null;
|
|
7249
7590
|
root.finishedWork = null;
|
|
7250
7591
|
root.finishedLanes = 0;
|
|
7251
|
-
if (
|
|
7592
|
+
if (transitions === root.current)
|
|
7252
7593
|
throw Error(
|
|
7253
7594
|
"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
|
|
7254
7595
|
);
|
|
7255
7596
|
root.callbackNode = null;
|
|
7256
7597
|
root.callbackPriority = 0;
|
|
7257
|
-
var remainingLanes =
|
|
7598
|
+
var remainingLanes = transitions.lanes | transitions.childLanes;
|
|
7258
7599
|
markRootFinished(root, remainingLanes);
|
|
7259
7600
|
root === workInProgressRoot &&
|
|
7260
7601
|
((workInProgress = workInProgressRoot = null),
|
|
7261
7602
|
(workInProgressRootRenderLanes = 0));
|
|
7262
|
-
(0 === (
|
|
7263
|
-
0 === (
|
|
7603
|
+
(0 === (transitions.subtreeFlags & 2064) &&
|
|
7604
|
+
0 === (transitions.flags & 2064)) ||
|
|
7264
7605
|
rootDoesHavePassiveEffects ||
|
|
7265
7606
|
((rootDoesHavePassiveEffects = !0),
|
|
7266
7607
|
scheduleCallback$1(NormalPriority, function() {
|
|
7267
7608
|
flushPassiveEffects();
|
|
7268
7609
|
return null;
|
|
7269
7610
|
}));
|
|
7270
|
-
remainingLanes = 0 !== (
|
|
7271
|
-
if (0 !== (
|
|
7611
|
+
remainingLanes = 0 !== (transitions.flags & 15990);
|
|
7612
|
+
if (0 !== (transitions.subtreeFlags & 15990) || remainingLanes) {
|
|
7272
7613
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
7273
7614
|
ReactCurrentBatchConfig$2.transition = null;
|
|
7274
7615
|
var previousPriority = currentUpdatePriority;
|
|
@@ -7276,32 +7617,36 @@ function commitRootImpl(root, recoverableErrors, renderPriorityLevel) {
|
|
|
7276
7617
|
var prevExecutionContext = executionContext;
|
|
7277
7618
|
executionContext |= 4;
|
|
7278
7619
|
ReactCurrentOwner$2.current = null;
|
|
7279
|
-
commitBeforeMutationEffects(root,
|
|
7620
|
+
commitBeforeMutationEffects(root, transitions);
|
|
7280
7621
|
commitTime = now$1();
|
|
7281
|
-
commitMutationEffects(root,
|
|
7282
|
-
root.current =
|
|
7283
|
-
commitLayoutEffects(
|
|
7622
|
+
commitMutationEffects(root, transitions, lanes);
|
|
7623
|
+
root.current = transitions;
|
|
7624
|
+
commitLayoutEffects(transitions, root, lanes);
|
|
7284
7625
|
requestPaint();
|
|
7285
7626
|
executionContext = prevExecutionContext;
|
|
7286
7627
|
currentUpdatePriority = previousPriority;
|
|
7287
7628
|
ReactCurrentBatchConfig$2.transition = remainingLanes;
|
|
7288
|
-
} else (root.current =
|
|
7629
|
+
} else (root.current = transitions), (commitTime = now$1());
|
|
7289
7630
|
rootDoesHavePassiveEffects &&
|
|
7290
7631
|
((rootDoesHavePassiveEffects = !1),
|
|
7291
7632
|
(rootWithPendingPassiveEffects = root),
|
|
7292
7633
|
(pendingPassiveEffectsLanes = lanes));
|
|
7293
7634
|
remainingLanes = root.pendingLanes;
|
|
7294
7635
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
7295
|
-
onCommitRoot(
|
|
7636
|
+
onCommitRoot(transitions.stateNode, renderPriorityLevel);
|
|
7296
7637
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
|
7297
7638
|
ensureRootIsScheduled(root, now());
|
|
7298
7639
|
if (null !== recoverableErrors)
|
|
7299
7640
|
for (
|
|
7300
|
-
renderPriorityLevel = root.onRecoverableError,
|
|
7301
|
-
|
|
7302
|
-
|
|
7641
|
+
renderPriorityLevel = root.onRecoverableError, transitions = 0;
|
|
7642
|
+
transitions < recoverableErrors.length;
|
|
7643
|
+
transitions++
|
|
7303
7644
|
)
|
|
7304
|
-
|
|
7645
|
+
(lanes = recoverableErrors[transitions]),
|
|
7646
|
+
renderPriorityLevel(lanes.value, {
|
|
7647
|
+
componentStack: lanes.stack,
|
|
7648
|
+
digest: lanes.digest
|
|
7649
|
+
});
|
|
7305
7650
|
if (hasUncaughtError)
|
|
7306
7651
|
throw ((hasUncaughtError = !1),
|
|
7307
7652
|
(root = firstUncaughtError),
|
|
@@ -7531,11 +7876,10 @@ function enqueuePendingPassiveProfilerEffect(fiber) {
|
|
|
7531
7876
|
}));
|
|
7532
7877
|
}
|
|
7533
7878
|
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
|
7534
|
-
sourceFiber =
|
|
7879
|
+
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
|
7535
7880
|
sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1);
|
|
7536
|
-
enqueueUpdate(rootFiber, sourceFiber);
|
|
7881
|
+
rootFiber = enqueueUpdate(rootFiber, sourceFiber, 1);
|
|
7537
7882
|
sourceFiber = requestEventTime();
|
|
7538
|
-
rootFiber = markUpdateLaneFromFiberToRoot(rootFiber, 1);
|
|
7539
7883
|
null !== rootFiber &&
|
|
7540
7884
|
(markRootUpdated(rootFiber, 1, sourceFiber),
|
|
7541
7885
|
ensureRootIsScheduled(rootFiber, sourceFiber));
|
|
@@ -7565,18 +7909,18 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
|
|
7565
7909
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7566
7910
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance)))
|
|
7567
7911
|
) {
|
|
7568
|
-
sourceFiber =
|
|
7912
|
+
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
|
7569
7913
|
sourceFiber = createClassErrorUpdate(
|
|
7570
7914
|
nearestMountedAncestor,
|
|
7571
7915
|
sourceFiber,
|
|
7572
7916
|
1
|
|
7573
7917
|
);
|
|
7574
|
-
enqueueUpdate(
|
|
7575
|
-
sourceFiber = requestEventTime();
|
|
7576
|
-
nearestMountedAncestor = markUpdateLaneFromFiberToRoot(
|
|
7918
|
+
nearestMountedAncestor = enqueueUpdate(
|
|
7577
7919
|
nearestMountedAncestor,
|
|
7920
|
+
sourceFiber,
|
|
7578
7921
|
1
|
|
7579
7922
|
);
|
|
7923
|
+
sourceFiber = requestEventTime();
|
|
7580
7924
|
null !== nearestMountedAncestor &&
|
|
7581
7925
|
(markRootUpdated(nearestMountedAncestor, 1, sourceFiber),
|
|
7582
7926
|
ensureRootIsScheduled(nearestMountedAncestor, sourceFiber));
|
|
@@ -7602,21 +7946,43 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
|
|
7602
7946
|
: (workInProgressRootPingedLanes |= pingedLanes));
|
|
7603
7947
|
ensureRootIsScheduled(root, wakeable);
|
|
7604
7948
|
}
|
|
7605
|
-
function
|
|
7606
|
-
|
|
7607
|
-
null !== retryCache && retryCache.delete(wakeable);
|
|
7608
|
-
wakeable = 0;
|
|
7609
|
-
0 === wakeable &&
|
|
7949
|
+
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
|
7950
|
+
0 === retryLane &&
|
|
7610
7951
|
(0 === (boundaryFiber.mode & 1)
|
|
7611
|
-
? (
|
|
7612
|
-
: ((
|
|
7952
|
+
? (retryLane = 1)
|
|
7953
|
+
: ((retryLane = nextRetryLane),
|
|
7613
7954
|
(nextRetryLane <<= 1),
|
|
7614
7955
|
0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304)));
|
|
7615
|
-
|
|
7616
|
-
boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber,
|
|
7956
|
+
var eventTime = requestEventTime();
|
|
7957
|
+
boundaryFiber = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane);
|
|
7617
7958
|
null !== boundaryFiber &&
|
|
7618
|
-
(markRootUpdated(boundaryFiber,
|
|
7619
|
-
ensureRootIsScheduled(boundaryFiber,
|
|
7959
|
+
(markRootUpdated(boundaryFiber, retryLane, eventTime),
|
|
7960
|
+
ensureRootIsScheduled(boundaryFiber, eventTime));
|
|
7961
|
+
}
|
|
7962
|
+
function retryDehydratedSuspenseBoundary(boundaryFiber) {
|
|
7963
|
+
var suspenseState = boundaryFiber.memoizedState,
|
|
7964
|
+
retryLane = 0;
|
|
7965
|
+
null !== suspenseState && (retryLane = suspenseState.retryLane);
|
|
7966
|
+
retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
7967
|
+
}
|
|
7968
|
+
function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
7969
|
+
var retryLane = 0;
|
|
7970
|
+
switch (boundaryFiber.tag) {
|
|
7971
|
+
case 13:
|
|
7972
|
+
var retryCache = boundaryFiber.stateNode;
|
|
7973
|
+
var suspenseState = boundaryFiber.memoizedState;
|
|
7974
|
+
null !== suspenseState && (retryLane = suspenseState.retryLane);
|
|
7975
|
+
break;
|
|
7976
|
+
case 19:
|
|
7977
|
+
retryCache = boundaryFiber.stateNode;
|
|
7978
|
+
break;
|
|
7979
|
+
default:
|
|
7980
|
+
throw Error(
|
|
7981
|
+
"Pinged unknown suspense boundary type. This is probably a bug in React."
|
|
7982
|
+
);
|
|
7983
|
+
}
|
|
7984
|
+
null !== retryCache && retryCache.delete(wakeable);
|
|
7985
|
+
retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
7620
7986
|
}
|
|
7621
7987
|
var beginWork$1;
|
|
7622
7988
|
beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
@@ -7646,10 +8012,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7646
8012
|
switch (workInProgress.tag) {
|
|
7647
8013
|
case 2:
|
|
7648
8014
|
var Component = workInProgress.type;
|
|
7649
|
-
|
|
7650
|
-
((current.alternate = null),
|
|
7651
|
-
(workInProgress.alternate = null),
|
|
7652
|
-
(workInProgress.flags |= 2));
|
|
8015
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress);
|
|
7653
8016
|
current = workInProgress.pendingProps;
|
|
7654
8017
|
var context = getMaskedContext(
|
|
7655
8018
|
workInProgress,
|
|
@@ -7703,10 +8066,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7703
8066
|
case 16:
|
|
7704
8067
|
Component = workInProgress.elementType;
|
|
7705
8068
|
a: {
|
|
7706
|
-
|
|
7707
|
-
((current.alternate = null),
|
|
7708
|
-
(workInProgress.alternate = null),
|
|
7709
|
-
(workInProgress.flags |= 2));
|
|
8069
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress);
|
|
7710
8070
|
current = workInProgress.pendingProps;
|
|
7711
8071
|
context = Component._init;
|
|
7712
8072
|
Component = context(Component._payload);
|
|
@@ -7812,7 +8172,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7812
8172
|
return (
|
|
7813
8173
|
pushHostContext(workInProgress),
|
|
7814
8174
|
(Component = workInProgress.pendingProps.children),
|
|
7815
|
-
markRef
|
|
8175
|
+
markRef(current, workInProgress),
|
|
7816
8176
|
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7817
8177
|
workInProgress.child
|
|
7818
8178
|
);
|
|
@@ -7910,24 +8270,24 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7910
8270
|
}
|
|
7911
8271
|
} else
|
|
7912
8272
|
for (
|
|
7913
|
-
|
|
7914
|
-
null !==
|
|
7915
|
-
null !==
|
|
8273
|
+
hasContext = workInProgress.child,
|
|
8274
|
+
null !== hasContext && (hasContext.return = workInProgress);
|
|
8275
|
+
null !== hasContext;
|
|
7916
8276
|
|
|
7917
8277
|
) {
|
|
7918
|
-
var list =
|
|
8278
|
+
var list = hasContext.dependencies;
|
|
7919
8279
|
if (null !== list) {
|
|
7920
|
-
|
|
8280
|
+
newValue = hasContext.child;
|
|
7921
8281
|
for (
|
|
7922
8282
|
var dependency = list.firstContext;
|
|
7923
8283
|
null !== dependency;
|
|
7924
8284
|
|
|
7925
8285
|
) {
|
|
7926
8286
|
if (dependency.context === Component) {
|
|
7927
|
-
if (1 ===
|
|
8287
|
+
if (1 === hasContext.tag) {
|
|
7928
8288
|
dependency = createUpdate(-1, renderLanes & -renderLanes);
|
|
7929
8289
|
dependency.tag = 2;
|
|
7930
|
-
var updateQueue =
|
|
8290
|
+
var updateQueue = hasContext.updateQueue;
|
|
7931
8291
|
if (null !== updateQueue) {
|
|
7932
8292
|
updateQueue = updateQueue.shared;
|
|
7933
8293
|
var pending = updateQueue.pending;
|
|
@@ -7938,11 +8298,11 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7938
8298
|
updateQueue.pending = dependency;
|
|
7939
8299
|
}
|
|
7940
8300
|
}
|
|
7941
|
-
|
|
7942
|
-
dependency =
|
|
8301
|
+
hasContext.lanes |= renderLanes;
|
|
8302
|
+
dependency = hasContext.alternate;
|
|
7943
8303
|
null !== dependency && (dependency.lanes |= renderLanes);
|
|
7944
8304
|
scheduleContextWorkOnParentPath(
|
|
7945
|
-
|
|
8305
|
+
hasContext.return,
|
|
7946
8306
|
renderLanes,
|
|
7947
8307
|
workInProgress
|
|
7948
8308
|
);
|
|
@@ -7951,29 +8311,43 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7951
8311
|
}
|
|
7952
8312
|
dependency = dependency.next;
|
|
7953
8313
|
}
|
|
7954
|
-
} else
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
?
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
8314
|
+
} else if (10 === hasContext.tag)
|
|
8315
|
+
newValue =
|
|
8316
|
+
hasContext.type === workInProgress.type
|
|
8317
|
+
? null
|
|
8318
|
+
: hasContext.child;
|
|
8319
|
+
else if (18 === hasContext.tag) {
|
|
8320
|
+
newValue = hasContext.return;
|
|
8321
|
+
if (null === newValue)
|
|
8322
|
+
throw Error(
|
|
8323
|
+
"We just came from a parent so we must have had a parent. This is a bug in React."
|
|
8324
|
+
);
|
|
8325
|
+
newValue.lanes |= renderLanes;
|
|
8326
|
+
list = newValue.alternate;
|
|
8327
|
+
null !== list && (list.lanes |= renderLanes);
|
|
8328
|
+
scheduleContextWorkOnParentPath(
|
|
8329
|
+
newValue,
|
|
8330
|
+
renderLanes,
|
|
8331
|
+
workInProgress
|
|
8332
|
+
);
|
|
8333
|
+
newValue = hasContext.sibling;
|
|
8334
|
+
} else newValue = hasContext.child;
|
|
8335
|
+
if (null !== newValue) newValue.return = hasContext;
|
|
7962
8336
|
else
|
|
7963
|
-
for (
|
|
7964
|
-
if (
|
|
7965
|
-
|
|
8337
|
+
for (newValue = hasContext; null !== newValue; ) {
|
|
8338
|
+
if (newValue === workInProgress) {
|
|
8339
|
+
newValue = null;
|
|
7966
8340
|
break;
|
|
7967
8341
|
}
|
|
7968
|
-
|
|
7969
|
-
if (null !==
|
|
7970
|
-
|
|
7971
|
-
|
|
8342
|
+
hasContext = newValue.sibling;
|
|
8343
|
+
if (null !== hasContext) {
|
|
8344
|
+
hasContext.return = newValue.return;
|
|
8345
|
+
newValue = hasContext;
|
|
7972
8346
|
break;
|
|
7973
8347
|
}
|
|
7974
|
-
|
|
8348
|
+
newValue = newValue.return;
|
|
7975
8349
|
}
|
|
7976
|
-
|
|
8350
|
+
hasContext = newValue;
|
|
7977
8351
|
}
|
|
7978
8352
|
reconcileChildren(
|
|
7979
8353
|
current,
|
|
@@ -8024,10 +8398,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
8024
8398
|
workInProgress.elementType === Component
|
|
8025
8399
|
? context
|
|
8026
8400
|
: resolveDefaultProps(Component, context)),
|
|
8027
|
-
|
|
8028
|
-
((current.alternate = null),
|
|
8029
|
-
(workInProgress.alternate = null),
|
|
8030
|
-
(workInProgress.flags |= 2)),
|
|
8401
|
+
resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress),
|
|
8031
8402
|
(workInProgress.tag = 1),
|
|
8032
8403
|
isContextProvider(Component)
|
|
8033
8404
|
? ((current = !0), pushContextProvider(workInProgress))
|
|
@@ -8222,7 +8593,7 @@ function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
|
|
|
8222
8593
|
pendingProps = createFiber(22, pendingProps, key, mode);
|
|
8223
8594
|
pendingProps.elementType = REACT_OFFSCREEN_TYPE;
|
|
8224
8595
|
pendingProps.lanes = lanes;
|
|
8225
|
-
pendingProps.stateNode = {};
|
|
8596
|
+
pendingProps.stateNode = { isHidden: !1 };
|
|
8226
8597
|
return pendingProps;
|
|
8227
8598
|
}
|
|
8228
8599
|
function createFiberFromText(content, mode, lanes) {
|
|
@@ -8348,9 +8719,10 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8348
8719
|
container.payload = { element: element };
|
|
8349
8720
|
callback = void 0 === callback ? null : callback;
|
|
8350
8721
|
null !== callback && (container.callback = callback);
|
|
8351
|
-
enqueueUpdate(current, container);
|
|
8352
|
-
|
|
8353
|
-
|
|
8722
|
+
element = enqueueUpdate(current, container, lane);
|
|
8723
|
+
null !== element &&
|
|
8724
|
+
(scheduleUpdateOnFiber(element, current, lane, eventTime),
|
|
8725
|
+
entangleTransitions(element, current, lane));
|
|
8354
8726
|
return lane;
|
|
8355
8727
|
}
|
|
8356
8728
|
function emptyFindFiberByHostInstance() {
|
|
@@ -8385,10 +8757,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8385
8757
|
}
|
|
8386
8758
|
};
|
|
8387
8759
|
var roots = new Map(),
|
|
8388
|
-
devToolsConfig$jscomp$
|
|
8760
|
+
devToolsConfig$jscomp$inline_981 = {
|
|
8389
8761
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
8390
8762
|
bundleType: 0,
|
|
8391
|
-
version: "18.
|
|
8763
|
+
version: "18.2.0-next-9e3b772b8-20220608",
|
|
8392
8764
|
rendererPackageName: "react-native-renderer",
|
|
8393
8765
|
rendererConfig: {
|
|
8394
8766
|
getInspectorDataForViewTag: function() {
|
|
@@ -8403,11 +8775,11 @@ var roots = new Map(),
|
|
|
8403
8775
|
}.bind(null, findNodeHandle)
|
|
8404
8776
|
}
|
|
8405
8777
|
};
|
|
8406
|
-
var internals$jscomp$
|
|
8407
|
-
bundleType: devToolsConfig$jscomp$
|
|
8408
|
-
version: devToolsConfig$jscomp$
|
|
8409
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8410
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8778
|
+
var internals$jscomp$inline_1243 = {
|
|
8779
|
+
bundleType: devToolsConfig$jscomp$inline_981.bundleType,
|
|
8780
|
+
version: devToolsConfig$jscomp$inline_981.version,
|
|
8781
|
+
rendererPackageName: devToolsConfig$jscomp$inline_981.rendererPackageName,
|
|
8782
|
+
rendererConfig: devToolsConfig$jscomp$inline_981.rendererConfig,
|
|
8411
8783
|
overrideHookState: null,
|
|
8412
8784
|
overrideHookStateDeletePath: null,
|
|
8413
8785
|
overrideHookStateRenamePath: null,
|
|
@@ -8423,26 +8795,26 @@ var internals$jscomp$inline_1238 = {
|
|
|
8423
8795
|
return null === fiber ? null : fiber.stateNode;
|
|
8424
8796
|
},
|
|
8425
8797
|
findFiberByHostInstance:
|
|
8426
|
-
devToolsConfig$jscomp$
|
|
8798
|
+
devToolsConfig$jscomp$inline_981.findFiberByHostInstance ||
|
|
8427
8799
|
emptyFindFiberByHostInstance,
|
|
8428
8800
|
findHostInstancesForRefresh: null,
|
|
8429
8801
|
scheduleRefresh: null,
|
|
8430
8802
|
scheduleRoot: null,
|
|
8431
8803
|
setRefreshHandler: null,
|
|
8432
8804
|
getCurrentFiber: null,
|
|
8433
|
-
reconcilerVersion: "18.
|
|
8805
|
+
reconcilerVersion: "18.2.0-next-9e3b772b8-20220608"
|
|
8434
8806
|
};
|
|
8435
8807
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8436
|
-
var hook$jscomp$
|
|
8808
|
+
var hook$jscomp$inline_1244 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8437
8809
|
if (
|
|
8438
|
-
!hook$jscomp$
|
|
8439
|
-
hook$jscomp$
|
|
8810
|
+
!hook$jscomp$inline_1244.isDisabled &&
|
|
8811
|
+
hook$jscomp$inline_1244.supportsFiber
|
|
8440
8812
|
)
|
|
8441
8813
|
try {
|
|
8442
|
-
(rendererID = hook$jscomp$
|
|
8443
|
-
internals$jscomp$
|
|
8814
|
+
(rendererID = hook$jscomp$inline_1244.inject(
|
|
8815
|
+
internals$jscomp$inline_1243
|
|
8444
8816
|
)),
|
|
8445
|
-
(injectedHook = hook$jscomp$
|
|
8817
|
+
(injectedHook = hook$jscomp$inline_1244);
|
|
8446
8818
|
} catch (err) {}
|
|
8447
8819
|
}
|
|
8448
8820
|
exports.createPortal = function(children, containerTag) {
|
|
@@ -8499,7 +8871,8 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
|
|
|
8499
8871
|
element: null,
|
|
8500
8872
|
isDehydrated: !1,
|
|
8501
8873
|
cache: null,
|
|
8502
|
-
transitions: null
|
|
8874
|
+
transitions: null,
|
|
8875
|
+
pendingSuspenseBoundaries: null
|
|
8503
8876
|
}),
|
|
8504
8877
|
initializeUpdateQueue(root),
|
|
8505
8878
|
(root = concurrentRoot),
|