react-native 0.0.0-17be3a003 → 0.0.0-18697adec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/AnimatedImplementation.js +0 -2
- package/Libraries/Animated/AnimatedMock.js +1 -8
- package/Libraries/Animated/NativeAnimatedHelper.js +3 -3
- package/Libraries/Animated/animations/Animation.js +1 -0
- package/Libraries/Animated/animations/DecayAnimation.js +2 -0
- package/Libraries/Animated/animations/SpringAnimation.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +3 -0
- package/Libraries/Animated/createAnimatedComponent.js +6 -18
- package/Libraries/Animated/createAnimatedComponentInjection.js +48 -0
- package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +48 -0
- package/Libraries/Animated/nodes/AnimatedProps.js +0 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +20 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -0
- package/Libraries/Animated/useAnimatedProps.js +211 -0
- package/Libraries/BatchedBridge/MessageQueue.js +15 -10
- package/Libraries/BatchedBridge/NativeModules.js +5 -1
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/Blob/RCTBlobManager.h +2 -1
- package/Libraries/Blob/RCTBlobManager.mm +1 -3
- package/Libraries/Blob/RCTBlobPlugins.mm +4 -3
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Blob/URL.js +2 -2
- package/Libraries/BugReporting/BugReporting.js +2 -0
- package/Libraries/BugReporting/getReactData.js +1 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +4 -6
- package/Libraries/Components/Button.js +27 -12
- package/Libraries/Components/DatePicker/DatePickerIOS.android.js +4 -5
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +50 -12
- package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +1 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
- package/Libraries/Components/Keyboard/Keyboard.js +1 -1
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -1
- package/Libraries/Components/MaskedView/MaskedViewIOS.ios.js +3 -3
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +18 -15
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +4 -5
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +2 -3
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +2 -2
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +2 -2
- package/Libraries/Components/ScrollView/ScrollView.js +22 -5
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +3 -2
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +2 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +3 -9
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +2 -0
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +4 -5
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +14 -6
- package/Libraries/Components/Slider/Slider.js +19 -6
- package/Libraries/Components/StatusBar/StatusBar.js +10 -19
- package/Libraries/Components/Switch/Switch.js +98 -114
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +9 -6
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +2 -1
- package/Libraries/Components/TextInput/InputAccessoryView.js +6 -6
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +5 -13
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +5 -13
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +2 -2
- package/Libraries/Components/TextInput/TextInput.js +53 -19
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/Touchable/BoundingDimensions.js +1 -2
- package/Libraries/Components/Touchable/PooledClass.js +1 -2
- package/Libraries/Components/Touchable/Position.js +1 -2
- package/Libraries/Components/Touchable/Touchable.js +20 -6
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +11 -2
- package/Libraries/Components/UnimplementedViews/UnimplementedView.js +2 -3
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +133 -68
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -2
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +3 -0
- package/Libraries/Core/Devtools/parseErrorStack.js +0 -10
- package/Libraries/Core/Devtools/parseHermesStack.js +1 -1
- package/Libraries/Core/ExceptionsManager.js +51 -41
- package/Libraries/Core/ExtendedError.js +19 -0
- package/Libraries/Core/InitializeCore.js +1 -0
- package/Libraries/Core/ReactFiberErrorDialog.js +44 -34
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +37 -28
- package/Libraries/Core/Timers/immediateShim.js +67 -0
- package/Libraries/Core/Timers/queueMicrotask.js +41 -0
- package/Libraries/Core/polyfillPromise.js +1 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -0
- package/Libraries/Core/setUpRegeneratorRuntime.js +25 -8
- package/Libraries/Core/setUpTimers.js +65 -6
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +131 -0
- package/Libraries/DeprecatedPropTypes/{DeprecatedImagePropType.js → DeprecatedImagePropType.ios.js} +0 -0
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +5 -5
- package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +2 -0
- package/Libraries/EventEmitter/NativeEventEmitter.js +22 -1
- package/Libraries/EventEmitter/RCTEventEmitter.js +5 -1
- package/Libraries/FBLazyVector/BUCK +5 -1
- package/Libraries/Image/Image.android.js +22 -131
- package/Libraries/Image/Image.ios.js +16 -8
- package/Libraries/Image/ImageBackground.js +10 -8
- package/Libraries/Image/ImageInjection.js +28 -0
- package/Libraries/Image/ImageProps.js +28 -0
- package/Libraries/Image/ImageSource.js +108 -65
- package/Libraries/Image/NativeImageLoaderIOS.js +2 -1
- package/Libraries/Image/RCTImageLoader.h +2 -2
- package/Libraries/Image/RCTImageLoader.mm +6 -6
- package/Libraries/Image/RCTImagePlugins.mm +4 -3
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Inspector/Inspector.js +6 -0
- package/Libraries/Interaction/InteractionManager.js +3 -0
- package/Libraries/Interaction/PanResponder.js +1 -1
- package/Libraries/LinkingIOS/RCTLinkingPlugins.mm +4 -3
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/Lists/CellRenderMask.js +145 -0
- package/Libraries/Lists/FlatList.js +43 -26
- package/Libraries/Lists/VirtualizedList.js +14 -17
- package/Libraries/Lists/VirtualizedSectionList.js +159 -136
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +4 -4
- package/Libraries/LogBox/Data/LogBoxData.js +21 -19
- package/Libraries/LogBox/LogBox.js +114 -47
- package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -0
- package/Libraries/Modal/Modal.js +8 -0
- package/Libraries/Modal/RCTModalHostViewNativeComponent.js +8 -2
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
- package/Libraries/NativeAnimation/RCTAnimationPlugins.mm +4 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +1 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +1 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +32 -28
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/Network/RCTHTTPRequestHandler.h +5 -0
- package/Libraries/Network/RCTHTTPRequestHandler.mm +19 -7
- package/Libraries/Network/RCTNetworkPlugins.mm +4 -3
- package/Libraries/Network/RCTNetworking.h +1 -1
- package/Libraries/Network/RCTNetworking.mm +3 -3
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XMLHttpRequest.js +4 -1
- package/Libraries/NewAppScreen/components/Header.js +1 -0
- package/Libraries/NewAppScreen/components/HermesBadge.js +4 -1
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/Performance/QuickPerformanceLogger.js +3 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +4 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +6 -0
- package/Libraries/Pressability/Pressability.js +1 -0
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -0
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +0 -1
- package/Libraries/PushNotificationIOS/RCTPushNotificationPlugins.mm +4 -3
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/RCTRequired/BUCK +4 -1
- package/Libraries/ReactNative/AppContainer.js +3 -8
- package/Libraries/ReactNative/AppRegistry.js +7 -2
- package/Libraries/ReactNative/DisplayMode.js +4 -5
- package/Libraries/ReactNative/DummyUIManager.js +7 -2
- package/Libraries/ReactNative/FabricUIManager.js +4 -3
- package/Libraries/ReactNative/I18nManager.js +12 -3
- package/Libraries/ReactNative/NativeUIManager.js +2 -1
- package/Libraries/ReactNative/PaperUIManager.js +3 -1
- package/Libraries/ReactNative/RootTag.js +2 -2
- package/Libraries/ReactNative/UIManager.js +2 -1
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +32 -0
- package/Libraries/ReactNative/renderApplication.js +12 -5
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +2 -3
- package/Libraries/Reliability/UserFlow.js +7 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +6364 -5120
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +7877 -6935
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +2488 -2118
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +2112 -1937
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +2922 -2418
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2568 -2244
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +6086 -4942
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5736 -4864
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +1624 -1394
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +2275 -2120
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +2279 -1921
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +2565 -2259
- package/Libraries/Renderer/shims/ReactFabric.js +5 -4
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +3 -1
- package/Libraries/Renderer/shims/ReactNative.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.js +7 -4
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -1
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +3 -1
- package/Libraries/Settings/RCTSettingsPlugins.mm +4 -3
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Settings/Settings.ios.js +4 -0
- package/Libraries/Storage/AsyncStorage.js +1 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +16 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +8 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +2 -0
- package/Libraries/StyleSheet/StyleSheet.js +3 -5
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/SurfaceHostingComponent/RCTSurfaceHostingComponent.mm +1 -1
- package/Libraries/Text/Text.js +17 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +10 -12
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +4 -11
- package/Libraries/Text/TextProps.js +7 -7
- package/Libraries/TurboModule/RCTExport.js +1 -1
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -10
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/{Components/Picker/PickerAndroid.ios.js → Types/RootTagTypes.js} +2 -3
- package/Libraries/UTFSequence.js +1 -1
- package/Libraries/Utilities/Dimensions.js +9 -14
- package/Libraries/Utilities/FeatureDetection.js +31 -0
- package/Libraries/Utilities/HMRClient.js +15 -8
- package/Libraries/Utilities/MatrixMath.js +1 -1
- package/Libraries/Utilities/NativeDeviceInfo.js +1 -1
- package/Libraries/Utilities/PerformanceLoggerContext.js +8 -2
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +1 -0
- package/Libraries/Utilities/deprecatedPropType.js +2 -2
- package/Libraries/Utilities/useMergeRefs.js +44 -0
- package/Libraries/Utilities/useRefEffect.js +45 -0
- package/Libraries/Utilities/useWindowDimensions.js +7 -2
- package/Libraries/Vibration/RCTVibrationPlugins.mm +4 -3
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -0
- package/Libraries/promiseRejectionTrackingOptions.js +2 -0
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
- package/README.md +5 -5
- package/React/Base/RCTAssert.h +23 -13
- package/React/Base/RCTAssert.m +35 -9
- package/React/Base/RCTBridge+Private.h +8 -2
- package/React/Base/RCTBridge.h +19 -3
- package/React/Base/RCTBridge.m +33 -12
- package/React/Base/RCTBridgeModule.h +62 -12
- package/React/Base/RCTBundleManager.m +78 -0
- package/React/Base/RCTBundleURLProvider.h +36 -8
- package/React/Base/RCTBundleURLProvider.mm +91 -12
- package/React/Base/RCTCallableJSModules.m +47 -0
- package/React/Base/RCTConstants.h +6 -13
- package/React/Base/RCTConstants.m +12 -27
- package/React/Base/RCTConvert.h +1 -1
- package/React/Base/RCTConvert.m +31 -7
- package/React/Base/RCTCxxConvert.h +1 -1
- package/React/Base/RCTDefines.h +12 -3
- package/React/Base/RCTEventDispatcherProtocol.h +3 -2
- package/React/{Views/RCTPickerManager.h → Base/RCTInitializing.h} +4 -2
- package/React/Base/RCTJSThread.h +29 -0
- package/React/Base/RCTJSThread.m +19 -0
- package/React/Base/RCTModuleData.h +11 -3
- package/React/Base/RCTModuleData.mm +66 -1
- package/React/Base/RCTMultipartStreamReader.m +0 -2
- package/React/Base/RCTRootView.h +15 -0
- package/React/Base/RCTRootView.m +15 -0
- package/React/Base/RCTTouchHandler.m +4 -9
- package/React/Base/RCTUtils.h +3 -0
- package/React/Base/RCTUtils.m +14 -7
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +12 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +46 -2
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +3 -0
- package/React/CoreModules/BUCK +4 -3
- package/React/CoreModules/CoreModulesPlugins.mm +4 -3
- package/React/CoreModules/RCTAccessibilityManager.mm +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +14 -5
- package/React/CoreModules/RCTAsyncLocalStorage.mm +4 -0
- package/React/CoreModules/RCTDevLoadingView.mm +10 -23
- package/React/CoreModules/RCTDevMenu.mm +22 -25
- package/React/CoreModules/RCTDevSettings.h +2 -1
- package/React/CoreModules/RCTDevSettings.mm +76 -75
- package/React/CoreModules/RCTDevSplitBundleLoader.mm +3 -8
- package/React/CoreModules/RCTDeviceInfo.mm +4 -5
- package/React/CoreModules/RCTEventDispatcher.h +2 -1
- package/React/CoreModules/RCTEventDispatcher.mm +17 -25
- package/React/CoreModules/RCTKeyboardObserver.mm +1 -1
- package/React/CoreModules/RCTLogBox.mm +14 -10
- package/React/CoreModules/RCTPerfMonitor.mm +9 -4
- package/React/CoreModules/RCTRedBox.mm +3 -12
- package/React/CoreModules/RCTSourceCode.mm +2 -1
- package/React/CoreModules/RCTTiming.h +2 -1
- package/React/CoreModules/RCTTiming.mm +1 -3
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/CxxBridge/RCTCxxBridge.mm +81 -12
- package/React/CxxModule/RCTNativeModule.mm +3 -1
- package/React/DevSupport/RCTPackagerConnection.h +3 -0
- package/React/DevSupport/RCTPackagerConnection.mm +19 -8
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +12 -4
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +3 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +3 -6
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +41 -26
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +0 -1
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +0 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +101 -85
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +7 -0
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +5 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +12 -9
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +1 -0
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +53 -17
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +110 -8
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +1 -0
- package/React/Fabric/Mounting/RCTMountingManager.h +6 -1
- package/React/Fabric/Mounting/RCTMountingManager.mm +25 -4
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +2 -0
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +12 -0
- package/React/Fabric/RCTConversions.h +3 -0
- package/React/Fabric/RCTScheduler.h +3 -1
- package/React/Fabric/RCTScheduler.mm +26 -8
- package/React/Fabric/RCTSurfacePresenter.mm +33 -33
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +4 -2
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.mm +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -0
- package/React/Modules/RCTEventEmitter.h +1 -2
- package/React/Modules/RCTEventEmitter.m +8 -11
- package/React/Modules/RCTI18nUtil.h +14 -6
- package/React/Modules/RCTI18nUtil.m +1 -47
- package/React/Modules/RCTUIManager.m +2 -0
- package/React/Profiler/RCTProfileTrampoline-arm.S +1 -1
- package/React/Profiler/RCTProfileTrampoline-arm64.S +2 -2
- package/React/React-RCTFabric.podspec +3 -3
- package/React/Tests/Text/RCTParagraphComponentViewTests.mm +63 -0
- package/React/Views/RCTDatePickerManager.m +33 -0
- package/React/Views/RCTFont.mm +54 -38
- package/React/Views/RCTModalHostView.h +5 -1
- package/React/Views/RCTModalHostView.m +52 -20
- package/React/Views/RCTModalHostViewManager.m +5 -0
- package/React/Views/RCTModalManager.h +0 -7
- package/React/Views/RCTModalManager.m +0 -9
- package/React/Views/RCTView.h +7 -7
- package/React/Views/RCTView.m +32 -49
- package/React/Views/RCTViewManager.m +22 -4
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +1 -5
- package/React/Views/ScrollView/RCTScrollView.h +1 -0
- package/React/Views/ScrollView/RCTScrollView.m +123 -36
- package/React/Views/ScrollView/RCTScrollViewManager.m +4 -7
- package/React/Views/UIView+React.m +2 -11
- package/React/third-party.xcconfig +1 -1
- package/React-Core.podspec +2 -2
- package/ReactAndroid/Android-prebuilt.mk +8 -0
- package/ReactAndroid/README.md +2 -2
- package/ReactAndroid/build.gradle +132 -20
- package/ReactAndroid/gradle.properties +7 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK +5 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -2
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK +5 -5
- package/ReactAndroid/src/androidTest/js/BUCK +26 -0
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -12
- package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +7 -6
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk +4 -4
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/proguard/annotations/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +124 -66
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +25 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BackgroundExecutor.java +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +11 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java +37 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +26 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{ReactSoftException.java → ReactSoftExceptionLogger.java} +8 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +8 -7
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/BUCK +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.java +7 -8
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBufferSoLoader.java +33 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.cpp +23 -9
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.h +8 -5
- package/ReactAndroid/src/main/java/com/facebook/react/config/BUCK +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +54 -29
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +275 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +97 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +9 -58
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +163 -328
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +3 -72
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PackagerStatusCheck.java +100 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxHandler.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +8 -59
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +154 -74
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +36 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.java +14 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.cpp +69 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +171 -53
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +21 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CoreComponentsRegistry.cpp +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +22 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +53 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +35 -13
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +136 -35
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.java +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/SendAccessibilityEvent.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/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 +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobProvider.java +35 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/bundleloader/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/{JavaScriptTimerManager.java → JavaScriptTimerExecutor.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java +10 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +23 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
- 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 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- 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 -1
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +11 -9
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -9
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.cpp +39 -11
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.h +9 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +7 -28
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +14 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +2 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyOptimizer.java +10 -13
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +11 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingProhibitedView.java +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroupHelper.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactOverflowView.java +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +162 -66
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +28 -19
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +6 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +16 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +53 -19
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +236 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +20 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +34 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +9 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/ComponentNameResolverManager.cpp +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/ComponentNameResolverManager.h +10 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerClosedEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerOpenedEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerSlideEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/events/DrawerStateChangedEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java +10 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +7 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +17 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +101 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +18 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java +9 -7
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderEvent.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSlidingCompleteEvent.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchEvent.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitchManager.java +3 -10
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java +6 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactFontManager.java +59 -44
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +31 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.java +41 -59
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +20 -51
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +39 -15
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +38 -10
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TypefaceStyle.java +72 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +16 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +117 -62
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +39 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +49 -2
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJNIVanilla.cpp +2 -7
- package/ReactAndroid/src/main/jni/first-party/yogajni/jni/YGJTypesVanilla.h +8 -4
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +5 -3
- package/ReactAndroid/src/main/jni/react/jni/BUCK +5 -2
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +61 -0
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +8 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
- package/{ReactCommon/react/renderer/components/picker/iospicker/primitives.h → ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h} +6 -10
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.cpp +21 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.h +28 -0
- package/{ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerComponentDescriptor.h → ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp} +8 -7
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/ProxyExecutor.h +1 -0
- package/ReactAndroid/src/main/jni/third-party/boost/Android.mk +7 -2
- package/ReactAndroid/src/main/jni/third-party/boost/asm/arm/jump_arm_aapcs_elf_gas.S +86 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/arm/make_arm_aapcs_elf_gas.S +79 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/arm/ontop_arm_aapcs_elf_gas.S +91 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/arm64/jump_arm64_aapcs_elf_gas.S +114 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/arm64/make_arm64_aapcs_elf_gas.S +85 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/arm64/ontop_arm64_aapcs_elf_gas.S +113 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/x86/jump_i386_sysv_elf_gas.S +78 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/x86/make_i386_sysv_elf_gas.S +106 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/x86/ontop_i386_sysv_elf_gas.S +85 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/x86_64/jump_x86_64_sysv_elf_gas.S +76 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/x86_64/make_x86_64_sysv_elf_gas.S +81 -0
- package/ReactAndroid/src/main/jni/third-party/boost/asm/x86_64/ontop_x86_64_sysv_elf_gas.S +79 -0
- package/ReactAndroid/src/main/jni/third-party/fmt/Android.mk +15 -0
- package/ReactAndroid/src/main/jni/third-party/folly/Android.mk +36 -16
- package/ReactAndroid/src/main/jni/third-party/libevent/Android.mk +36 -0
- package/ReactAndroid/src/main/jni/third-party/libevent/evconfig-private.h +49 -0
- package/ReactAndroid/src/main/jni/third-party/libevent/event-config.h +340 -0
- package/ReactAndroid/src/main/libraries/fresco/fresco-react-native/BUCK +26 -26
- package/ReactAndroid/src/main/libraries/soloader/java/com/facebook/soloader/BUCK +5 -5
- package/ReactAndroid/src/main/res/devsupport/values/strings.xml +2 -1
- package/ReactAndroid/src/main/res/views/uimanager/values/strings_unlocalized.xml +0 -8
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +63 -2
- package/ReactAndroid/src/main/third-party/java/infer-annotations/BUCK +2 -2
- package/ReactAndroid/src/main/third-party/java/okhttp/BUCK +4 -4
- package/ReactAndroid/src/main/third-party/java/okio/BUCK +2 -2
- package/ReactAndroid/src/main/third-party/java/robolectric/{4.4/BUCK → BUCK} +0 -0
- package/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK +0 -31
- package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +2 -2
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/BUCK +1 -1
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/deviceinfo/DeviceInfoModuleTest.java +168 -0
- package/ReactAndroid/src/test/java/com/facebook/react/views/image/ReactImagePropertyTest.java +8 -0
- package/ReactAndroid/src/test/java/com/facebook/react/views/textinput/ReactTextInputPropertyTest.java +4 -0
- package/ReactCommon/React-Fabric.podspec +11 -11
- package/ReactCommon/ReactCommon.podspec +3 -2
- package/ReactCommon/callinvoker/BUCK +2 -2
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/Android.mk +2 -1
- package/ReactCommon/cxxreact/BUCK +1 -3
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +28 -0
- package/ReactCommon/cxxreact/CxxNativeModule.h +9 -0
- package/ReactCommon/cxxreact/Instance.cpp +21 -1
- package/ReactCommon/cxxreact/NativeToJsBridge.cpp +0 -21
- package/ReactCommon/cxxreact/NativeToJsBridge.h +0 -6
- package/ReactCommon/cxxreact/React-cxxreact.podspec +4 -3
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/React-hermes.podspec +4 -4
- package/ReactCommon/hermes/executor/Android.mk +4 -4
- package/ReactCommon/hermes/inspector/Android.mk +1 -2
- package/ReactCommon/hermes/inspector/chrome/Connection.cpp +74 -0
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.cpp +100 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.h +49 -1
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionTests.cpp +81 -0
- package/ReactCommon/hermes/inspector/tools/message_types.txt +2 -0
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +8 -5
- package/ReactCommon/hermes/inspector/tools/msggen/src/Property.js +1 -0
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +2246 -1419
- package/ReactCommon/jsi/Android.mk +1 -1
- package/ReactCommon/jsi/BUCK +0 -2
- package/ReactCommon/jsi/JSCRuntime.cpp +7 -0
- package/ReactCommon/jsi/React-jsi.podspec +3 -3
- package/ReactCommon/jsi/jsi/decorator.h +7 -0
- package/ReactCommon/jsi/jsi/jsi.h +29 -0
- package/ReactCommon/jsi/jsi/jsilib-posix.cpp +1 -11
- package/ReactCommon/jsiexecutor/Android.mk +2 -2
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +2 -2
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +35 -2
- package/ReactCommon/logger/Android.mk +23 -0
- package/ReactCommon/logger/BUCK +43 -0
- package/ReactCommon/logger/React-logger.podspec +40 -0
- package/ReactCommon/logger/react_native_log.cpp +52 -0
- package/ReactCommon/logger/react_native_log.h +33 -0
- package/ReactCommon/react/nativemodule/core/Android.mk +2 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.cpp +1 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.h +3 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +46 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +10 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +37 -1
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +24 -22
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.h +11 -8
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.h +7 -17
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.mm +73 -40
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.h +0 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +111 -107
- package/ReactCommon/react/nativemodule/samples/BUCK +2 -2
- package/ReactCommon/react/nativemodule/samples/platform/android/Android.mk +1 -1
- package/ReactCommon/react/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm +0 -2
- package/ReactCommon/react/renderer/animations/BUCK +2 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationCallbackWrapper.h +34 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +5 -27
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +8 -14
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +1231 -1401
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +90 -241
- package/ReactCommon/react/renderer/animations/conversions.h +212 -0
- package/ReactCommon/react/renderer/animations/primitives.h +104 -0
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +544 -0
- package/ReactCommon/react/renderer/animations/utils.cpp +71 -0
- package/ReactCommon/react/renderer/animations/utils.h +80 -0
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +0 -1
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +7 -3
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +12 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +7 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -1
- package/ReactCommon/react/renderer/attributedstring/conversions.h +162 -11
- package/ReactCommon/react/renderer/attributedstring/primitives.h +34 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.cpp +2 -2
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h +1 -0
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +12 -6
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.h +4 -1
- package/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.cpp +2 -1
- package/ReactCommon/react/renderer/components/image/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +28 -9
- package/ReactCommon/react/renderer/components/image/ImageProps.h +5 -1
- package/ReactCommon/react/renderer/components/image/conversions.h +9 -2
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +0 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.cpp +2 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.h +2 -0
- package/ReactCommon/react/renderer/components/root/BUCK +1 -0
- package/ReactCommon/react/renderer/components/root/RootProps.cpp +12 -2
- package/ReactCommon/react/renderer/components/root/RootProps.h +6 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +7 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.h +2 -0
- package/ReactCommon/react/renderer/components/root/tests/RootShadowNodeTest.cpp +35 -3
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +1 -1
- package/ReactCommon/react/renderer/components/scrollview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +54 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +10 -5
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewShadowNode.cpp +4 -3
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewState.h +5 -2
- package/ReactCommon/react/renderer/components/scrollview/conversions.h +5 -0
- package/ReactCommon/react/renderer/components/text/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +32 -0
- package/ReactCommon/react/renderer/components/text/BaseTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/BaseTextShadowNode.cpp +2 -3
- package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -16
- package/ReactCommon/react/renderer/components/text/ParagraphProps.cpp +10 -4
- package/ReactCommon/react/renderer/components/text/ParagraphProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.cpp +3 -3
- package/ReactCommon/react/renderer/components/text/RawTextProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/text/RawTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/RawTextShadowNode.h +36 -2
- package/ReactCommon/react/renderer/components/text/TextProps.cpp +6 -3
- package/ReactCommon/react/renderer/components/text/TextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/TextShadowNode.h +23 -0
- package/ReactCommon/react/renderer/components/textinput/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +58 -91
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +10 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +46 -22
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +6 -5
- package/ReactCommon/react/renderer/components/textinput/iostextinput/conversions.h +19 -7
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +6 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/propsConversions.h +63 -2
- package/ReactCommon/react/renderer/components/unimplementedview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +4 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewProps.h +1 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +28 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +24 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.h +4 -1
- package/ReactCommon/react/renderer/components/view/Android.mk +3 -2
- package/ReactCommon/react/renderer/components/view/BUCK +1 -0
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +19 -5
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.h +2 -1
- package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -22
- package/ReactCommon/react/renderer/components/view/ViewEventEmitter.cpp +1 -1
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +62 -14
- package/ReactCommon/react/renderer/components/view/ViewProps.h +7 -1
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +5 -10
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -12
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +58 -33
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h +2 -8
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.h +2 -0
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +78 -7
- package/ReactCommon/react/renderer/components/view/conversions.h +57 -14
- package/ReactCommon/react/renderer/components/view/primitives.h +5 -4
- package/ReactCommon/react/renderer/components/view/propsConversions.h +163 -28
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +7 -2
- package/ReactCommon/react/renderer/core/Android.mk +1 -1
- package/ReactCommon/react/renderer/core/BUCK +1 -0
- package/ReactCommon/react/renderer/core/BatchedEventQueue.cpp +2 -34
- package/ReactCommon/react/renderer/core/BatchedEventQueue.h +2 -9
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +19 -21
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +9 -15
- package/ReactCommon/react/renderer/core/EventDispatcher.h +5 -10
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +22 -12
- package/ReactCommon/react/renderer/core/EventEmitter.h +7 -2
- package/ReactCommon/react/renderer/core/EventPipe.h +2 -0
- package/ReactCommon/react/renderer/core/EventPriority.h +1 -1
- package/ReactCommon/react/renderer/core/EventQueue.cpp +39 -36
- package/ReactCommon/react/renderer/core/EventQueue.h +14 -8
- package/ReactCommon/react/renderer/core/EventQueueProcessor.cpp +82 -0
- package/ReactCommon/react/renderer/core/EventQueueProcessor.h +36 -0
- package/ReactCommon/react/renderer/core/LayoutConstraints.h +6 -0
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +1 -1
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +0 -6
- package/ReactCommon/react/renderer/core/Props.cpp +10 -2
- package/ReactCommon/react/renderer/core/Props.h +6 -1
- package/ReactCommon/react/renderer/core/PropsParserContext.h +29 -0
- package/ReactCommon/react/renderer/core/RawEvent.cpp +4 -2
- package/ReactCommon/react/renderer/core/RawEvent.h +40 -3
- package/ReactCommon/react/renderer/core/RawProps.cpp +2 -1
- package/ReactCommon/react/renderer/core/RawProps.h +3 -1
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
- package/ReactCommon/react/renderer/core/RawPropsKeyMap.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawPropsParser.cpp +1 -1
- package/ReactCommon/react/renderer/core/RawPropsParser.h +11 -2
- package/ReactCommon/react/renderer/core/ReactEventPriority.h +43 -0
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +9 -12
- package/ReactCommon/react/renderer/core/ShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +17 -1
- package/ReactCommon/react/renderer/core/propsConversions.h +19 -9
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +16 -4
- package/ReactCommon/react/renderer/core/tests/ConcreteShadowNodeTest.cpp +1 -1
- package/ReactCommon/react/renderer/core/tests/EventQueueProcessorTest.cpp +134 -0
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +97 -29
- package/ReactCommon/react/renderer/core/tests/TestComponent.h +6 -2
- package/ReactCommon/react/renderer/core/tests/traitCastTest.cpp +31 -0
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.h +9 -9
- package/ReactCommon/react/renderer/graphics/Android.mk +5 -2
- package/ReactCommon/react/renderer/graphics/BUCK +12 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +3 -2
- package/ReactCommon/react/renderer/graphics/Transform.cpp +2 -2
- package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
- package/ReactCommon/react/renderer/graphics/conversions.h +34 -19
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +67 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.cpp +8 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.h +1 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/PlatformColorParser.h +29 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.cpp +8 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +43 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/PlatformColorParser.h +34 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.h +12 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +206 -0
- package/ReactCommon/react/renderer/imagemanager/BUCK +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.mm +1 -1
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.cpp +6 -9
- package/ReactCommon/react/renderer/leakchecker/LeakChecker.h +1 -4
- package/ReactCommon/react/renderer/mapbuffer/BUCK +2 -2
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +34 -31
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +10 -9
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +50 -35
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +13 -13
- package/ReactCommon/react/renderer/mapbuffer/primitives.h +18 -19
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +13 -1
- package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
- package/ReactCommon/react/renderer/mounting/BUCK +1 -0
- package/ReactCommon/react/renderer/mounting/Differentiator.cpp +392 -519
- package/ReactCommon/react/renderer/mounting/Differentiator.h +1 -2
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +1 -7
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +0 -4
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +7 -5
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +2 -1
- package/ReactCommon/react/renderer/mounting/ShadowView.cpp +2 -0
- package/ReactCommon/react/renderer/mounting/ShadowView.h +2 -1
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +10 -3
- package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +1 -1
- package/ReactCommon/react/renderer/mounting/stubs.cpp +3 -3
- package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +23 -22
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +49 -10
- package/ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp +2 -2
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +6 -3
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +78 -16
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +60 -8
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +17 -7
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +8 -5
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +30 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +34 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +20 -25
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +16 -15
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +297 -11
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +6 -0
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.cpp +13 -12
- package/ReactCommon/react/renderer/scheduler/AsynchronousEventBeat.h +4 -4
- package/ReactCommon/react/renderer/{components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerShadowNode.cpp → scheduler/InspectorData.h} +10 -2
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +64 -40
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +18 -3
- package/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +9 -1
- package/ReactCommon/react/renderer/scheduler/SchedulerToolbox.h +1 -6
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +49 -35
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +12 -12
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +1 -0
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.cpp +11 -4
- package/ReactCommon/react/renderer/scheduler/SynchronousEventBeat.h +4 -1
- package/ReactCommon/react/renderer/telemetry/BUCK +1 -0
- package/ReactCommon/react/renderer/telemetry/tests/TransactionTelemetryTest.cpp +1 -19
- package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.cpp +5 -5
- package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.cpp +2 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +22 -0
- package/ReactCommon/react/renderer/timeline/BUCK +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +32 -28
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -4
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +61 -17
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +13 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h +10 -2
- package/ReactCommon/react/{renderer/components/picker/iospicker → test_utils}/BUCK +12 -14
- package/ReactCommon/react/{renderer/mounting/tests → test_utils}/Entropy.h +0 -0
- package/ReactCommon/react/test_utils/MockClock.h +29 -0
- package/ReactCommon/react/{renderer/core/Constants.h → test_utils/MockSurfaceHandler.h} +9 -7
- package/ReactCommon/react/{renderer/mounting/tests → test_utils}/shadowTreeGeneration.h +18 -4
- package/ReactCommon/react/utils/Android.mk +3 -1
- package/ReactCommon/react/utils/BUCK +1 -0
- package/ReactCommon/react/utils/ContextContainer.h +0 -27
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h +12 -0
- package/ReactCommon/yoga/yoga/Yoga.cpp +2 -6
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar +0 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module +272 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-17be3a003/react-native-0.0.0-17be3a003.pom → 0.0.0-18697adec/react-native-0.0.0-18697adec.pom} +22 -11
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -3
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -0
- package/flow/HermesInternalType.js +114 -0
- package/flow/global.js +68 -0
- package/flow-typed/npm/react-test-renderer_v16.x.x.js +79 -0
- package/index.js +67 -42
- package/jest/preprocessor.js +75 -7
- package/jest/renderer.js +3 -7
- package/jest/setup.js +3 -2
- package/package.json +59 -20
- package/react.gradle +22 -22
- package/scripts/find-node.sh +6 -0
- package/scripts/generate-specs-cli.js +20 -2
- package/scripts/ios-configure-glog.sh +4 -0
- package/scripts/react-native-xcode.sh +5 -1
- package/scripts/react_native_pods.rb +213 -43
- package/template/_flowconfig +3 -4
- package/template/_gitignore +1 -0
- package/template/android/app/build.gradle +12 -7
- package/template/android/app/src/main/res/values/styles.xml +0 -1
- package/template/android/build.gradle +5 -6
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +2 -0
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -4
- package/third-party-podspecs/RCT-Folly.podspec +31 -11
- package/third-party-podspecs/boost.podspec +23 -0
- package/Libraries/BUCK +0 -24
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js +0 -83
- package/Libraries/Components/Picker/AndroidDropdownPickerNativeComponent.js +0 -82
- package/Libraries/Components/Picker/Picker.js +0 -169
- package/Libraries/Components/Picker/PickerAndroid.android.js +0 -143
- package/Libraries/Components/Picker/PickerIOS.android.js +0 -14
- package/Libraries/Components/Picker/PickerIOS.ios.js +0 -162
- package/Libraries/Components/Picker/RCTPickerNativeComponent.js +0 -86
- package/Libraries/Components/ScrollView/ScrollViewStickyHeaderInjection.js +0 -17
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/StatusBar/StatusBarIOS.js +0 -38
- package/Libraries/Components/Switch/SwitchInjection.js +0 -17
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -26
- package/Libraries/Interaction/InteractionMixin.js +0 -53
- package/Libraries/Lists/VirtualizedListInjection.js +0 -15
- package/Libraries/Lists/VirtualizedSectionListInjection.js +0 -17
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
- package/Libraries/StyleSheet/StyleSheetValidation.js +0 -100
- package/Libraries/Text/TextInjection.js +0 -15
- package/Libraries/Utilities/registerGeneratedViewConfig.js +0 -34
- package/React/Base/RCTBundleHolderModule.h +0 -16
- package/React/Base/RCTJSInvokerModule.h +0 -18
- package/React/Fabric/Mounting/ComponentViews/Picker/RCTPickerComponentView.h +0 -19
- package/React/Fabric/Mounting/ComponentViews/Picker/RCTPickerComponentView.mm +0 -206
- package/React/Views/RCTPicker.h +0 -23
- package/React/Views/RCTPicker.m +0 -122
- package/React/Views/RCTPickerManager.m +0 -59
- package/ReactAndroid/release.gradle +0 -87
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/ReactPickerTestCase.java +0 -196
- package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
- package/ReactAndroid/src/androidTest/js/PickerAndroidTestModule.js +0 -89
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java +0 -82
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/BUCK +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +0 -147
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +0 -117
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidDialogPickerManagerDelegate.java +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidDialogPickerManagerInterface.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidDropdownPickerManagerDelegate.java +0 -48
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidDropdownPickerManagerInterface.java +0 -22
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/BUCK +0 -30
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDialogPickerManager.java +0 -51
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactDropdownPickerManager.java +0 -50
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPicker.java +0 -196
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerAdapter.java +0 -95
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerItem.java +0 -43
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/ReactPickerManager.java +0 -99
- package/ReactAndroid/src/main/java/com/facebook/react/views/picker/events/PickerItemSelectEvent.java +0 -42
- package/ReactCommon/react/renderer/components/picker/Android.mk +0 -37
- package/ReactCommon/react/renderer/components/picker/BUCK +0 -98
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerEventEmitter.cpp +0 -23
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerEventEmitter.h +0 -27
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerProps.cpp +0 -28
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerProps.h +0 -77
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDialogPickerShadowNode.h +0 -29
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerComponentDescriptor.h +0 -21
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerEventEmitter.cpp +0 -23
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerEventEmitter.h +0 -27
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerProps.cpp +0 -28
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerProps.h +0 -77
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerShadowNode.cpp +0 -17
- package/ReactCommon/react/renderer/components/picker/androidpicker/react/renderer/components/androidpicker/AndroidDropdownPickerShadowNode.h +0 -29
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerComponentDescriptor.h +0 -26
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerEventEmitter.cpp +0 -23
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerEventEmitter.h +0 -28
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerProps.cpp +0 -46
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerProps.h +0 -36
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerShadowNode.cpp +0 -16
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerShadowNode.h +0 -33
- package/ReactCommon/react/renderer/components/picker/iospicker/PickerState.h +0 -19
- package/ReactCommon/react/renderer/components/picker/iospicker/conversions.h +0 -48
- package/ReactCommon/react/renderer/core/Constants.cpp +0 -24
- package/ReactCommon/react/renderer/mounting/DifferentiatorFlatteningClassic.cpp +0 -1564
- package/ReactCommon/react/renderer/mounting/DifferentiatorFlatteningClassic.h +0 -45
- package/android/com/facebook/react/react-native/0.0.0-17be3a003/react-native-0.0.0-17be3a003.aar +0 -0
- package/android/com/facebook/react/react-native/0.0.0-17be3a003/react-native-0.0.0-17be3a003.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-17be3a003/react-native-0.0.0-17be3a003.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-17be3a003/react-native-0.0.0-17be3a003.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-17be3a003/react-native-0.0.0-17be3a003.pom.sha1 +0 -1
- package/scripts/generate-specs.sh +0 -100
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<5c359ba9bcb80e09d414cf763d94b5d5>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
14
14
|
require("react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore");
|
|
15
15
|
var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"),
|
|
16
|
-
React = require("react")
|
|
17
|
-
|
|
16
|
+
React = require("react");
|
|
17
|
+
var Scheduler = require("scheduler");
|
|
18
18
|
function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {
|
|
19
19
|
var funcArgs = Array.prototype.slice.call(arguments, 3);
|
|
20
20
|
try {
|
|
@@ -62,7 +62,8 @@ function invokeGuardedCallbackAndCatchFirstError(
|
|
|
62
62
|
hasRethrowError || ((hasRethrowError = !0), (rethrowError = error));
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var isArrayImpl = Array.isArray,
|
|
66
|
+
getFiberCurrentPropsFromNode = null,
|
|
66
67
|
getInstanceFromNode = null,
|
|
67
68
|
getNodeFromInstance = null;
|
|
68
69
|
function executeDispatch(event, listener, inst) {
|
|
@@ -74,7 +75,7 @@ function executeDispatch(event, listener, inst) {
|
|
|
74
75
|
function executeDirectDispatch(event) {
|
|
75
76
|
var dispatchListener = event._dispatchListeners,
|
|
76
77
|
dispatchInstance = event._dispatchInstances;
|
|
77
|
-
if (
|
|
78
|
+
if (isArrayImpl(dispatchListener))
|
|
78
79
|
throw Error("executeDirectDispatch(...): Invalid `event`.");
|
|
79
80
|
event.currentTarget = dispatchListener
|
|
80
81
|
? getNodeFromInstance(dispatchInstance)
|
|
@@ -335,9 +336,9 @@ function accumulate(current, next) {
|
|
|
335
336
|
);
|
|
336
337
|
return null == current
|
|
337
338
|
? next
|
|
338
|
-
:
|
|
339
|
+
: isArrayImpl(current)
|
|
339
340
|
? current.concat(next)
|
|
340
|
-
:
|
|
341
|
+
: isArrayImpl(next)
|
|
341
342
|
? [current].concat(next)
|
|
342
343
|
: [current, next];
|
|
343
344
|
}
|
|
@@ -347,12 +348,12 @@ function accumulateInto(current, next) {
|
|
|
347
348
|
"accumulateInto(...): Accumulated items must not be null or undefined."
|
|
348
349
|
);
|
|
349
350
|
if (null == current) return next;
|
|
350
|
-
if (
|
|
351
|
-
if (
|
|
351
|
+
if (isArrayImpl(current)) {
|
|
352
|
+
if (isArrayImpl(next)) return current.push.apply(current, next), current;
|
|
352
353
|
current.push(next);
|
|
353
354
|
return current;
|
|
354
355
|
}
|
|
355
|
-
return
|
|
356
|
+
return isArrayImpl(next) ? [current].concat(next) : [current, next];
|
|
356
357
|
}
|
|
357
358
|
function forEachAccumulated(arr, cb, scope) {
|
|
358
359
|
Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr);
|
|
@@ -578,7 +579,7 @@ var ResponderEventPlugin = {
|
|
|
578
579
|
b: {
|
|
579
580
|
JSCompiler_temp = shouldSetEventType._dispatchListeners;
|
|
580
581
|
targetInst = shouldSetEventType._dispatchInstances;
|
|
581
|
-
if (
|
|
582
|
+
if (isArrayImpl(JSCompiler_temp))
|
|
582
583
|
for (
|
|
583
584
|
depthA = 0;
|
|
584
585
|
depthA < JSCompiler_temp.length &&
|
|
@@ -929,7 +930,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
929
930
|
"ReactNativeBridgeEventPlugin"
|
|
930
931
|
]);
|
|
931
932
|
recomputePluginOrdering();
|
|
932
|
-
var injectedNamesToPlugins$jscomp$
|
|
933
|
+
var injectedNamesToPlugins$jscomp$inline_225 = {
|
|
933
934
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
934
935
|
ReactNativeBridgeEventPlugin: {
|
|
935
936
|
eventTypes: {},
|
|
@@ -964,34 +965,34 @@ var injectedNamesToPlugins$jscomp$inline_217 = {
|
|
|
964
965
|
}
|
|
965
966
|
}
|
|
966
967
|
},
|
|
967
|
-
isOrderingDirty$jscomp$
|
|
968
|
-
pluginName$jscomp$
|
|
969
|
-
for (pluginName$jscomp$
|
|
968
|
+
isOrderingDirty$jscomp$inline_226 = !1,
|
|
969
|
+
pluginName$jscomp$inline_227;
|
|
970
|
+
for (pluginName$jscomp$inline_227 in injectedNamesToPlugins$jscomp$inline_225)
|
|
970
971
|
if (
|
|
971
|
-
injectedNamesToPlugins$jscomp$
|
|
972
|
-
pluginName$jscomp$
|
|
972
|
+
injectedNamesToPlugins$jscomp$inline_225.hasOwnProperty(
|
|
973
|
+
pluginName$jscomp$inline_227
|
|
973
974
|
)
|
|
974
975
|
) {
|
|
975
|
-
var pluginModule$jscomp$
|
|
976
|
-
injectedNamesToPlugins$jscomp$
|
|
976
|
+
var pluginModule$jscomp$inline_228 =
|
|
977
|
+
injectedNamesToPlugins$jscomp$inline_225[pluginName$jscomp$inline_227];
|
|
977
978
|
if (
|
|
978
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
979
|
-
namesToPlugins[pluginName$jscomp$
|
|
980
|
-
pluginModule$jscomp$
|
|
979
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_227) ||
|
|
980
|
+
namesToPlugins[pluginName$jscomp$inline_227] !==
|
|
981
|
+
pluginModule$jscomp$inline_228
|
|
981
982
|
) {
|
|
982
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
983
|
+
if (namesToPlugins[pluginName$jscomp$inline_227])
|
|
983
984
|
throw Error(
|
|
984
985
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
985
|
-
pluginName$jscomp$
|
|
986
|
+
pluginName$jscomp$inline_227 +
|
|
986
987
|
"`."
|
|
987
988
|
);
|
|
988
989
|
namesToPlugins[
|
|
989
|
-
pluginName$jscomp$
|
|
990
|
-
] = pluginModule$jscomp$
|
|
991
|
-
isOrderingDirty$jscomp$
|
|
990
|
+
pluginName$jscomp$inline_227
|
|
991
|
+
] = pluginModule$jscomp$inline_228;
|
|
992
|
+
isOrderingDirty$jscomp$inline_226 = !0;
|
|
992
993
|
}
|
|
993
994
|
}
|
|
994
|
-
isOrderingDirty$jscomp$
|
|
995
|
+
isOrderingDirty$jscomp$inline_226 && recomputePluginOrdering();
|
|
995
996
|
var instanceCache = new Map(),
|
|
996
997
|
instanceProps = new Map();
|
|
997
998
|
function getInstanceFromTag(tag) {
|
|
@@ -1015,7 +1016,7 @@ function executeDispatchesAndReleaseTopLevel(e) {
|
|
|
1015
1016
|
if (e) {
|
|
1016
1017
|
var dispatchListeners = e._dispatchListeners,
|
|
1017
1018
|
dispatchInstances = e._dispatchInstances;
|
|
1018
|
-
if (
|
|
1019
|
+
if (isArrayImpl(dispatchListeners))
|
|
1019
1020
|
for (
|
|
1020
1021
|
var i = 0;
|
|
1021
1022
|
i < dispatchListeners.length && !e.isPropagationStopped();
|
|
@@ -1207,13 +1208,18 @@ function getComponentNameFromType(type) {
|
|
|
1207
1208
|
return (type._context.displayName || "Context") + ".Provider";
|
|
1208
1209
|
case REACT_FORWARD_REF_TYPE:
|
|
1209
1210
|
var innerType = type.render;
|
|
1210
|
-
|
|
1211
|
+
type = type.displayName;
|
|
1212
|
+
type ||
|
|
1213
|
+
((type = innerType.displayName || innerType.name || ""),
|
|
1214
|
+
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
1215
|
+
return type;
|
|
1216
|
+
case REACT_MEMO_TYPE:
|
|
1211
1217
|
return (
|
|
1212
|
-
type.displayName ||
|
|
1213
|
-
|
|
1218
|
+
(innerType = type.displayName || null),
|
|
1219
|
+
null !== innerType
|
|
1220
|
+
? innerType
|
|
1221
|
+
: getComponentNameFromType(type.type) || "Memo"
|
|
1214
1222
|
);
|
|
1215
|
-
case REACT_MEMO_TYPE:
|
|
1216
|
-
return getComponentNameFromType(type.type);
|
|
1217
1223
|
case REACT_LAZY_TYPE:
|
|
1218
1224
|
innerType = type._payload;
|
|
1219
1225
|
type = type._init;
|
|
@@ -1386,18 +1392,6 @@ function findCurrentHostFiberImpl(node) {
|
|
|
1386
1392
|
}
|
|
1387
1393
|
return null;
|
|
1388
1394
|
}
|
|
1389
|
-
function doesFiberContain(parentFiber, childFiber) {
|
|
1390
|
-
for (
|
|
1391
|
-
var parentFiberAlternate = parentFiber.alternate;
|
|
1392
|
-
null !== childFiber;
|
|
1393
|
-
|
|
1394
|
-
) {
|
|
1395
|
-
if (childFiber === parentFiber || childFiber === parentFiberAlternate)
|
|
1396
|
-
return !0;
|
|
1397
|
-
childFiber = childFiber.return;
|
|
1398
|
-
}
|
|
1399
|
-
return !1;
|
|
1400
|
-
}
|
|
1401
1395
|
var emptyObject = {},
|
|
1402
1396
|
removedKeys = null,
|
|
1403
1397
|
removedKeyCount = 0,
|
|
@@ -1416,7 +1410,7 @@ function restoreDeletedValuesInNestedArray(
|
|
|
1416
1410
|
node,
|
|
1417
1411
|
validAttributes
|
|
1418
1412
|
) {
|
|
1419
|
-
if (
|
|
1413
|
+
if (isArrayImpl(node))
|
|
1420
1414
|
for (var i = node.length; i-- && 0 < removedKeyCount; )
|
|
1421
1415
|
restoreDeletedValuesInNestedArray(
|
|
1422
1416
|
updatePayload,
|
|
@@ -1462,9 +1456,9 @@ function diffNestedProperty(
|
|
|
1462
1456
|
: prevProp
|
|
1463
1457
|
? clearNestedProperty(updatePayload, prevProp, validAttributes)
|
|
1464
1458
|
: updatePayload;
|
|
1465
|
-
if (!
|
|
1459
|
+
if (!isArrayImpl(prevProp) && !isArrayImpl(nextProp))
|
|
1466
1460
|
return diffProperties(updatePayload, prevProp, nextProp, validAttributes);
|
|
1467
|
-
if (
|
|
1461
|
+
if (isArrayImpl(prevProp) && isArrayImpl(nextProp)) {
|
|
1468
1462
|
var minLength =
|
|
1469
1463
|
prevProp.length < nextProp.length ? prevProp.length : nextProp.length,
|
|
1470
1464
|
i;
|
|
@@ -1489,7 +1483,7 @@ function diffNestedProperty(
|
|
|
1489
1483
|
);
|
|
1490
1484
|
return updatePayload;
|
|
1491
1485
|
}
|
|
1492
|
-
return
|
|
1486
|
+
return isArrayImpl(prevProp)
|
|
1493
1487
|
? diffProperties(
|
|
1494
1488
|
updatePayload,
|
|
1495
1489
|
ReactNativePrivateInterface.flattenStyle(prevProp),
|
|
@@ -1505,7 +1499,7 @@ function diffNestedProperty(
|
|
|
1505
1499
|
}
|
|
1506
1500
|
function addNestedProperty(updatePayload, nextProp, validAttributes) {
|
|
1507
1501
|
if (!nextProp) return updatePayload;
|
|
1508
|
-
if (!
|
|
1502
|
+
if (!isArrayImpl(nextProp))
|
|
1509
1503
|
return diffProperties(
|
|
1510
1504
|
updatePayload,
|
|
1511
1505
|
emptyObject,
|
|
@@ -1522,7 +1516,7 @@ function addNestedProperty(updatePayload, nextProp, validAttributes) {
|
|
|
1522
1516
|
}
|
|
1523
1517
|
function clearNestedProperty(updatePayload, prevProp, validAttributes) {
|
|
1524
1518
|
if (!prevProp) return updatePayload;
|
|
1525
|
-
if (!
|
|
1519
|
+
if (!isArrayImpl(prevProp))
|
|
1526
1520
|
return diffProperties(
|
|
1527
1521
|
updatePayload,
|
|
1528
1522
|
prevProp,
|
|
@@ -1686,7 +1680,29 @@ var ReactNativeFiberHostComponent = (function() {
|
|
|
1686
1680
|
};
|
|
1687
1681
|
return ReactNativeFiberHostComponent;
|
|
1688
1682
|
})(),
|
|
1689
|
-
|
|
1683
|
+
scheduleCallback = Scheduler.unstable_scheduleCallback,
|
|
1684
|
+
cancelCallback = Scheduler.unstable_cancelCallback,
|
|
1685
|
+
shouldYield = Scheduler.unstable_shouldYield,
|
|
1686
|
+
requestPaint = Scheduler.unstable_requestPaint,
|
|
1687
|
+
now = Scheduler.unstable_now,
|
|
1688
|
+
ImmediatePriority = Scheduler.unstable_ImmediatePriority,
|
|
1689
|
+
UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
|
|
1690
|
+
NormalPriority = Scheduler.unstable_NormalPriority,
|
|
1691
|
+
IdlePriority = Scheduler.unstable_IdlePriority,
|
|
1692
|
+
rendererID = null,
|
|
1693
|
+
injectedHook = null;
|
|
1694
|
+
function onCommitRoot(root) {
|
|
1695
|
+
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
1696
|
+
try {
|
|
1697
|
+
injectedHook.onCommitFiberRoot(
|
|
1698
|
+
rendererID,
|
|
1699
|
+
root,
|
|
1700
|
+
void 0,
|
|
1701
|
+
128 === (root.current.flags & 128)
|
|
1702
|
+
);
|
|
1703
|
+
} catch (err) {}
|
|
1704
|
+
}
|
|
1705
|
+
var nextTransitionLane = 64,
|
|
1690
1706
|
nextRetryLane = 4194304;
|
|
1691
1707
|
function getHighestPriorityLanes(lanes) {
|
|
1692
1708
|
switch (lanes & -lanes) {
|
|
@@ -1744,18 +1760,19 @@ function getNextLanes(root, wipLanes) {
|
|
|
1744
1760
|
suspendedLanes = root.suspendedLanes,
|
|
1745
1761
|
pingedLanes = root.pingedLanes,
|
|
1746
1762
|
nonIdlePendingLanes = pendingLanes & 268435455;
|
|
1747
|
-
0 !== nonIdlePendingLanes
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1763
|
+
if (0 !== nonIdlePendingLanes) {
|
|
1764
|
+
var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;
|
|
1765
|
+
0 !== nonIdleUnblockedLanes
|
|
1766
|
+
? (nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes))
|
|
1767
|
+
: ((pingedLanes &= nonIdlePendingLanes),
|
|
1768
|
+
0 !== pingedLanes &&
|
|
1769
|
+
(nextLanes = getHighestPriorityLanes(pingedLanes)));
|
|
1770
|
+
} else
|
|
1771
|
+
(nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
|
|
1755
1772
|
0 !== nonIdlePendingLanes
|
|
1756
1773
|
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
|
|
1757
1774
|
: 0 !== pingedLanes &&
|
|
1758
|
-
(nextLanes = getHighestPriorityLanes(pingedLanes))
|
|
1775
|
+
(nextLanes = getHighestPriorityLanes(pingedLanes));
|
|
1759
1776
|
if (0 === nextLanes) return 0;
|
|
1760
1777
|
if (
|
|
1761
1778
|
0 !== wipLanes &&
|
|
@@ -1767,13 +1784,16 @@ function getNextLanes(root, wipLanes) {
|
|
|
1767
1784
|
(16 === suspendedLanes && 0 !== (pingedLanes & 4194240)))
|
|
1768
1785
|
)
|
|
1769
1786
|
return wipLanes;
|
|
1787
|
+
0 === (root.current.mode & 32) &&
|
|
1788
|
+
0 !== (nextLanes & 4) &&
|
|
1789
|
+
(nextLanes |= pendingLanes & 16);
|
|
1770
1790
|
wipLanes = root.entangledLanes;
|
|
1771
1791
|
if (0 !== wipLanes)
|
|
1772
1792
|
for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; )
|
|
1773
|
-
(
|
|
1774
|
-
(
|
|
1775
|
-
(nextLanes |= root[
|
|
1776
|
-
(wipLanes &= ~
|
|
1793
|
+
(pendingLanes = 31 - clz32(wipLanes)),
|
|
1794
|
+
(suspendedLanes = 1 << pendingLanes),
|
|
1795
|
+
(nextLanes |= root[pendingLanes]),
|
|
1796
|
+
(wipLanes &= ~suspendedLanes);
|
|
1777
1797
|
return nextLanes;
|
|
1778
1798
|
}
|
|
1779
1799
|
function computeExpirationTime(lane, currentTime) {
|
|
@@ -1801,12 +1821,13 @@ function computeExpirationTime(lane, currentTime) {
|
|
|
1801
1821
|
case 524288:
|
|
1802
1822
|
case 1048576:
|
|
1803
1823
|
case 2097152:
|
|
1824
|
+
return currentTime + 5e3;
|
|
1804
1825
|
case 4194304:
|
|
1805
1826
|
case 8388608:
|
|
1806
1827
|
case 16777216:
|
|
1807
1828
|
case 33554432:
|
|
1808
1829
|
case 67108864:
|
|
1809
|
-
return
|
|
1830
|
+
return -1;
|
|
1810
1831
|
case 134217728:
|
|
1811
1832
|
case 268435456:
|
|
1812
1833
|
case 536870912:
|
|
@@ -1820,6 +1841,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1820
1841
|
root = root.pendingLanes & -1073741825;
|
|
1821
1842
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1822
1843
|
}
|
|
1844
|
+
function includesBlockingLane(root, lanes) {
|
|
1845
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1846
|
+
}
|
|
1823
1847
|
function createLaneMap(initial) {
|
|
1824
1848
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1825
1849
|
return laneMap;
|
|
@@ -1832,16 +1856,12 @@ function markRootUpdated(root, updateLane, eventTime) {
|
|
|
1832
1856
|
updateLane = 31 - clz32(updateLane);
|
|
1833
1857
|
root[updateLane] = eventTime;
|
|
1834
1858
|
}
|
|
1835
|
-
function markRootExpired(root, expiredLanes) {
|
|
1836
|
-
root.entanglements[0] |= expiredLanes;
|
|
1837
|
-
root.entangledLanes |= 1;
|
|
1838
|
-
root.pendingLanes |= 1;
|
|
1839
|
-
}
|
|
1840
1859
|
function markRootFinished(root, remainingLanes) {
|
|
1841
1860
|
var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;
|
|
1842
1861
|
root.pendingLanes = remainingLanes;
|
|
1843
1862
|
root.suspendedLanes = 0;
|
|
1844
1863
|
root.pingedLanes = 0;
|
|
1864
|
+
root.expiredLanes &= remainingLanes;
|
|
1845
1865
|
root.mutableReadLanes &= remainingLanes;
|
|
1846
1866
|
root.entangledLanes &= remainingLanes;
|
|
1847
1867
|
remainingLanes = root.entanglements;
|
|
@@ -1882,7 +1902,7 @@ function lanesToEventPriority(lanes) {
|
|
|
1882
1902
|
: 4
|
|
1883
1903
|
: 1;
|
|
1884
1904
|
}
|
|
1885
|
-
function shim() {
|
|
1905
|
+
function shim$1() {
|
|
1886
1906
|
throw Error(
|
|
1887
1907
|
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
|
1888
1908
|
);
|
|
@@ -1930,7 +1950,8 @@ function describeFunctionComponentFrame(fn, source) {
|
|
|
1930
1950
|
? describeComponentFrame(fn.displayName || fn.name || null, source, null)
|
|
1931
1951
|
: "";
|
|
1932
1952
|
}
|
|
1933
|
-
var
|
|
1953
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
1954
|
+
valueStack = [],
|
|
1934
1955
|
index = -1;
|
|
1935
1956
|
function createCursor(defaultValue) {
|
|
1936
1957
|
return { current: defaultValue };
|
|
@@ -2026,31 +2047,14 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2026
2047
|
: pop(didPerformWorkStackCursor);
|
|
2027
2048
|
push(didPerformWorkStackCursor, didChange);
|
|
2028
2049
|
}
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
shouldYield = Scheduler.unstable_shouldYield,
|
|
2032
|
-
requestPaint = Scheduler.unstable_requestPaint,
|
|
2033
|
-
now = Scheduler.unstable_now,
|
|
2034
|
-
ImmediatePriority = Scheduler.unstable_ImmediatePriority,
|
|
2035
|
-
UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
|
|
2036
|
-
NormalPriority = Scheduler.unstable_NormalPriority,
|
|
2037
|
-
IdlePriority = Scheduler.unstable_IdlePriority,
|
|
2038
|
-
rendererID = null,
|
|
2039
|
-
injectedHook = null;
|
|
2040
|
-
function onCommitRoot(root) {
|
|
2041
|
-
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
2042
|
-
try {
|
|
2043
|
-
injectedHook.onCommitFiberRoot(
|
|
2044
|
-
rendererID,
|
|
2045
|
-
root,
|
|
2046
|
-
void 0,
|
|
2047
|
-
128 === (root.current.flags & 128)
|
|
2048
|
-
);
|
|
2049
|
-
} catch (err) {}
|
|
2050
|
+
function is(x, y) {
|
|
2051
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2050
2052
|
}
|
|
2051
|
-
var
|
|
2053
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2054
|
+
syncQueue = null,
|
|
2055
|
+
includesLegacySyncCallbacks = !1,
|
|
2052
2056
|
isFlushingSyncQueue = !1;
|
|
2053
|
-
function
|
|
2057
|
+
function flushSyncCallbacks() {
|
|
2054
2058
|
if (!isFlushingSyncQueue && null !== syncQueue) {
|
|
2055
2059
|
isFlushingSyncQueue = !0;
|
|
2056
2060
|
var i = 0,
|
|
@@ -2063,9 +2067,10 @@ function flushSyncCallbackQueue() {
|
|
|
2063
2067
|
while (null !== callback);
|
|
2064
2068
|
}
|
|
2065
2069
|
syncQueue = null;
|
|
2070
|
+
includesLegacySyncCallbacks = !1;
|
|
2066
2071
|
} catch (error) {
|
|
2067
2072
|
throw (null !== syncQueue && (syncQueue = syncQueue.slice(i + 1)),
|
|
2068
|
-
scheduleCallback(ImmediatePriority,
|
|
2073
|
+
scheduleCallback(ImmediatePriority, flushSyncCallbacks),
|
|
2069
2074
|
error);
|
|
2070
2075
|
} finally {
|
|
2071
2076
|
(currentUpdatePriority = previousUpdatePriority),
|
|
@@ -2075,11 +2080,6 @@ function flushSyncCallbackQueue() {
|
|
|
2075
2080
|
return null;
|
|
2076
2081
|
}
|
|
2077
2082
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2078
|
-
function is(x, y) {
|
|
2079
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2080
|
-
}
|
|
2081
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2082
|
-
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2083
2083
|
function shallowEqual(objA, objB) {
|
|
2084
2084
|
if (objectIs(objA, objB)) return !0;
|
|
2085
2085
|
if (
|
|
@@ -2196,8 +2196,7 @@ function readContext(context) {
|
|
|
2196
2196
|
lastContextDependency = context;
|
|
2197
2197
|
currentlyRenderingFiber.dependencies = {
|
|
2198
2198
|
lanes: 0,
|
|
2199
|
-
firstContext: context
|
|
2200
|
-
responders: null
|
|
2199
|
+
firstContext: context
|
|
2201
2200
|
};
|
|
2202
2201
|
} else lastContextDependency = lastContextDependency.next = context;
|
|
2203
2202
|
return value;
|
|
@@ -2238,7 +2237,9 @@ function enqueueUpdate(fiber, update) {
|
|
|
2238
2237
|
var updateQueue = fiber.updateQueue;
|
|
2239
2238
|
null !== updateQueue &&
|
|
2240
2239
|
((updateQueue = updateQueue.shared),
|
|
2241
|
-
null !== workInProgressRoot &&
|
|
2240
|
+
null !== workInProgressRoot &&
|
|
2241
|
+
0 !== (fiber.mode & 1) &&
|
|
2242
|
+
0 === (executionContext & 2)
|
|
2242
2243
|
? ((fiber = updateQueue.interleaved),
|
|
2243
2244
|
null === fiber
|
|
2244
2245
|
? ((update.next = update),
|
|
@@ -2375,7 +2376,7 @@ function processUpdateQueue(
|
|
|
2375
2376
|
newState = workInProgress;
|
|
2376
2377
|
break a;
|
|
2377
2378
|
case 3:
|
|
2378
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2379
|
+
workInProgress.flags = (workInProgress.flags & -32769) | 128;
|
|
2379
2380
|
case 0:
|
|
2380
2381
|
workInProgress = update.payload;
|
|
2381
2382
|
updateLane =
|
|
@@ -2390,6 +2391,7 @@ function processUpdateQueue(
|
|
|
2390
2391
|
}
|
|
2391
2392
|
}
|
|
2392
2393
|
null !== pendingQueue.callback &&
|
|
2394
|
+
0 !== pendingQueue.lane &&
|
|
2393
2395
|
((workInProgress$jscomp$0.flags |= 64),
|
|
2394
2396
|
(updateLane = queue.effects),
|
|
2395
2397
|
null === updateLane
|
|
@@ -2584,7 +2586,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2584
2586
|
? previousContext
|
|
2585
2587
|
: contextStackCursor.current),
|
|
2586
2588
|
(instance.context = getMaskedContext(workInProgress, contextType)));
|
|
2587
|
-
processUpdateQueue(workInProgress, newProps, instance, renderLanes);
|
|
2588
2589
|
instance.state = workInProgress.memoizedState;
|
|
2589
2590
|
contextType = ctor.getDerivedStateFromProps;
|
|
2590
2591
|
"function" === typeof contextType &&
|
|
@@ -2606,7 +2607,6 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2606
2607
|
"function" === typeof instance.componentDidMount &&
|
|
2607
2608
|
(workInProgress.flags |= 4);
|
|
2608
2609
|
}
|
|
2609
|
-
var isArray = Array.isArray;
|
|
2610
2610
|
function coerceRef(returnFiber, current, element) {
|
|
2611
2611
|
returnFiber = element.ref;
|
|
2612
2612
|
if (
|
|
@@ -2659,15 +2659,14 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2659
2659
|
return returnFiber;
|
|
2660
2660
|
}
|
|
2661
2661
|
function throwOnInvalidObjectType(returnFiber, newChild) {
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
"
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
));
|
|
2662
|
+
returnFiber = Object.prototype.toString.call(newChild);
|
|
2663
|
+
throw Error(
|
|
2664
|
+
"Objects are not valid as a React child (found: " +
|
|
2665
|
+
("[object Object]" === returnFiber
|
|
2666
|
+
? "object with keys {" + Object.keys(newChild).join(", ") + "}"
|
|
2667
|
+
: returnFiber) +
|
|
2668
|
+
"). If you meant to render a collection of children, use an array instead."
|
|
2669
|
+
);
|
|
2671
2670
|
}
|
|
2672
2671
|
function ChildReconciler(shouldTrackSideEffects) {
|
|
2673
2672
|
function deleteChild(returnFiber, childToDelete) {
|
|
@@ -2829,7 +2828,7 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2829
2828
|
newChild
|
|
2830
2829
|
);
|
|
2831
2830
|
}
|
|
2832
|
-
if (
|
|
2831
|
+
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
2833
2832
|
return (
|
|
2834
2833
|
(newChild = createFiberFromFragment(
|
|
2835
2834
|
newChild,
|
|
@@ -2861,7 +2860,7 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2861
2860
|
? updatePortal(returnFiber, oldFiber, newChild, lanes)
|
|
2862
2861
|
: null;
|
|
2863
2862
|
}
|
|
2864
|
-
if (
|
|
2863
|
+
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
2865
2864
|
return null !== key
|
|
2866
2865
|
? null
|
|
2867
2866
|
: updateFragment(returnFiber, oldFiber, newChild, lanes, null);
|
|
@@ -2900,7 +2899,7 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2900
2899
|
updatePortal(returnFiber, existingChildren, newChild, lanes)
|
|
2901
2900
|
);
|
|
2902
2901
|
}
|
|
2903
|
-
if (
|
|
2902
|
+
if (isArrayImpl(newChild) || getIteratorFn(newChild))
|
|
2904
2903
|
return (
|
|
2905
2904
|
(existingChildren = existingChildren.get(newIdx) || null),
|
|
2906
2905
|
updateFragment(returnFiber, existingChildren, newChild, lanes, null)
|
|
@@ -3077,61 +3076,49 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3077
3076
|
return iteratorFn;
|
|
3078
3077
|
}
|
|
3079
3078
|
return function(returnFiber, currentFirstChild, newChild, lanes) {
|
|
3080
|
-
|
|
3081
|
-
"object" === typeof newChild &&
|
|
3079
|
+
"object" === typeof newChild &&
|
|
3082
3080
|
null !== newChild &&
|
|
3083
3081
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
3084
|
-
null === newChild.key
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
if (isObject)
|
|
3082
|
+
null === newChild.key &&
|
|
3083
|
+
(newChild = newChild.props.children);
|
|
3084
|
+
if ("object" === typeof newChild && null !== newChild) {
|
|
3088
3085
|
switch (newChild.$$typeof) {
|
|
3089
3086
|
case REACT_ELEMENT_TYPE:
|
|
3090
3087
|
a: {
|
|
3091
|
-
isObject = newChild.key;
|
|
3092
3088
|
for (
|
|
3093
|
-
|
|
3094
|
-
null !==
|
|
3089
|
+
var key = newChild.key, child = currentFirstChild;
|
|
3090
|
+
null !== child;
|
|
3095
3091
|
|
|
3096
3092
|
) {
|
|
3097
|
-
if (
|
|
3098
|
-
|
|
3099
|
-
if (
|
|
3100
|
-
if (7 ===
|
|
3101
|
-
deleteRemainingChildren(
|
|
3102
|
-
returnFiber,
|
|
3103
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3104
|
-
);
|
|
3093
|
+
if (child.key === key) {
|
|
3094
|
+
key = newChild.type;
|
|
3095
|
+
if (key === REACT_FRAGMENT_TYPE) {
|
|
3096
|
+
if (7 === child.tag) {
|
|
3097
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3105
3098
|
currentFirstChild = useFiber(
|
|
3106
|
-
|
|
3099
|
+
child,
|
|
3107
3100
|
newChild.props.children
|
|
3108
3101
|
);
|
|
3109
3102
|
currentFirstChild.return = returnFiber;
|
|
3110
3103
|
returnFiber = currentFirstChild;
|
|
3111
3104
|
break a;
|
|
3112
3105
|
}
|
|
3113
|
-
} else if (
|
|
3114
|
-
deleteRemainingChildren(
|
|
3115
|
-
|
|
3116
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3117
|
-
);
|
|
3118
|
-
currentFirstChild = useFiber(
|
|
3119
|
-
isUnkeyedTopLevelFragment,
|
|
3120
|
-
newChild.props
|
|
3121
|
-
);
|
|
3106
|
+
} else if (child.elementType === key) {
|
|
3107
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3108
|
+
currentFirstChild = useFiber(child, newChild.props);
|
|
3122
3109
|
currentFirstChild.ref = coerceRef(
|
|
3123
3110
|
returnFiber,
|
|
3124
|
-
|
|
3111
|
+
child,
|
|
3125
3112
|
newChild
|
|
3126
3113
|
);
|
|
3127
3114
|
currentFirstChild.return = returnFiber;
|
|
3128
3115
|
returnFiber = currentFirstChild;
|
|
3129
3116
|
break a;
|
|
3130
3117
|
}
|
|
3131
|
-
deleteRemainingChildren(returnFiber,
|
|
3118
|
+
deleteRemainingChildren(returnFiber, child);
|
|
3132
3119
|
break;
|
|
3133
|
-
} else deleteChild(returnFiber,
|
|
3134
|
-
|
|
3120
|
+
} else deleteChild(returnFiber, child);
|
|
3121
|
+
child = child.sibling;
|
|
3135
3122
|
}
|
|
3136
3123
|
newChild.type === REACT_FRAGMENT_TYPE
|
|
3137
3124
|
? ((currentFirstChild = createFiberFromFragment(
|
|
@@ -3161,12 +3148,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3161
3148
|
return placeSingleChild(returnFiber);
|
|
3162
3149
|
case REACT_PORTAL_TYPE:
|
|
3163
3150
|
a: {
|
|
3164
|
-
for (
|
|
3165
|
-
|
|
3166
|
-
null !== currentFirstChild;
|
|
3167
|
-
|
|
3168
|
-
) {
|
|
3169
|
-
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
|
|
3151
|
+
for (child = newChild.key; null !== currentFirstChild; ) {
|
|
3152
|
+
if (currentFirstChild.key === child)
|
|
3170
3153
|
if (
|
|
3171
3154
|
4 === currentFirstChild.tag &&
|
|
3172
3155
|
currentFirstChild.stateNode.containerInfo ===
|
|
@@ -3202,9 +3185,24 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3202
3185
|
}
|
|
3203
3186
|
return placeSingleChild(returnFiber);
|
|
3204
3187
|
}
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3188
|
+
if (isArrayImpl(newChild))
|
|
3189
|
+
return reconcileChildrenArray(
|
|
3190
|
+
returnFiber,
|
|
3191
|
+
currentFirstChild,
|
|
3192
|
+
newChild,
|
|
3193
|
+
lanes
|
|
3194
|
+
);
|
|
3195
|
+
if (getIteratorFn(newChild))
|
|
3196
|
+
return reconcileChildrenIterator(
|
|
3197
|
+
returnFiber,
|
|
3198
|
+
currentFirstChild,
|
|
3199
|
+
newChild,
|
|
3200
|
+
lanes
|
|
3201
|
+
);
|
|
3202
|
+
throwOnInvalidObjectType(returnFiber, newChild);
|
|
3203
|
+
}
|
|
3204
|
+
return "string" === typeof newChild || "number" === typeof newChild
|
|
3205
|
+
? ((newChild = "" + newChild),
|
|
3208
3206
|
null !== currentFirstChild && 6 === currentFirstChild.tag
|
|
3209
3207
|
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
|
|
3210
3208
|
(currentFirstChild = useFiber(currentFirstChild, newChild)),
|
|
@@ -3218,35 +3216,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3218
3216
|
)),
|
|
3219
3217
|
(currentFirstChild.return = returnFiber),
|
|
3220
3218
|
(returnFiber = currentFirstChild)),
|
|
3221
|
-
placeSingleChild(returnFiber)
|
|
3222
|
-
);
|
|
3223
|
-
if (isArray(newChild))
|
|
3224
|
-
return reconcileChildrenArray(
|
|
3225
|
-
returnFiber,
|
|
3226
|
-
currentFirstChild,
|
|
3227
|
-
newChild,
|
|
3228
|
-
lanes
|
|
3229
|
-
);
|
|
3230
|
-
if (getIteratorFn(newChild))
|
|
3231
|
-
return reconcileChildrenIterator(
|
|
3232
|
-
returnFiber,
|
|
3233
|
-
currentFirstChild,
|
|
3234
|
-
newChild,
|
|
3235
|
-
lanes
|
|
3236
|
-
);
|
|
3237
|
-
isObject && throwOnInvalidObjectType(returnFiber, newChild);
|
|
3238
|
-
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
|
|
3239
|
-
switch (returnFiber.tag) {
|
|
3240
|
-
case 1:
|
|
3241
|
-
case 0:
|
|
3242
|
-
case 11:
|
|
3243
|
-
case 15:
|
|
3244
|
-
throw Error(
|
|
3245
|
-
(getComponentNameFromFiber(returnFiber) || "Component") +
|
|
3246
|
-
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
|
|
3247
|
-
);
|
|
3248
|
-
}
|
|
3249
|
-
return deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3219
|
+
placeSingleChild(returnFiber))
|
|
3220
|
+
: deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3250
3221
|
};
|
|
3251
3222
|
}
|
|
3252
3223
|
var reconcileChildFibers = ChildReconciler(!0),
|
|
@@ -3301,7 +3272,7 @@ function findFirstSuspended(row) {
|
|
|
3301
3272
|
for (var node = row; null !== node; ) {
|
|
3302
3273
|
if (13 === node.tag) {
|
|
3303
3274
|
var state = node.memoizedState;
|
|
3304
|
-
if (null !== state && (null === state.dehydrated || shim() || shim()))
|
|
3275
|
+
if (null !== state && (null === state.dehydrated || shim$1() || shim$1()))
|
|
3305
3276
|
return node;
|
|
3306
3277
|
} else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
|
|
3307
3278
|
if (0 !== (node.flags & 128)) return node;
|
|
@@ -3537,7 +3508,7 @@ function rerenderReducer(reducer) {
|
|
|
3537
3508
|
}
|
|
3538
3509
|
return [newState, dispatch];
|
|
3539
3510
|
}
|
|
3540
|
-
function
|
|
3511
|
+
function readFromUnsubscribedMutableSource(root, source, getSnapshot) {
|
|
3541
3512
|
var getVersion = source._getVersion;
|
|
3542
3513
|
getVersion = getVersion(source._source);
|
|
3543
3514
|
var JSCompiler_inline_result = source._workInProgressVersionPrimary;
|
|
@@ -3564,7 +3535,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3564
3535
|
version = getVersion(source._source),
|
|
3565
3536
|
dispatcher = ReactCurrentDispatcher$1.current,
|
|
3566
3537
|
_dispatcher$useState = dispatcher.useState(function() {
|
|
3567
|
-
return
|
|
3538
|
+
return readFromUnsubscribedMutableSource(root, source, getSnapshot);
|
|
3568
3539
|
}),
|
|
3569
3540
|
setSnapshot = _dispatcher$useState[1],
|
|
3570
3541
|
snapshot = _dispatcher$useState[0];
|
|
@@ -3627,7 +3598,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3627
3598
|
)),
|
|
3628
3599
|
(_dispatcher$useState.queue = hook),
|
|
3629
3600
|
(_dispatcher$useState.baseQueue = null),
|
|
3630
|
-
(snapshot =
|
|
3601
|
+
(snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)),
|
|
3631
3602
|
(_dispatcher$useState.memoizedState = _dispatcher$useState.baseState = snapshot));
|
|
3632
3603
|
return snapshot;
|
|
3633
3604
|
}
|
|
@@ -3635,11 +3606,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3635
3606
|
var hook = updateWorkInProgressHook();
|
|
3636
3607
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3637
3608
|
}
|
|
3609
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3610
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3611
|
+
hook = mountWorkInProgressHook(),
|
|
3612
|
+
nextSnapshot = getSnapshot();
|
|
3613
|
+
hook.memoizedState = nextSnapshot;
|
|
3614
|
+
var inst = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3615
|
+
hook.queue = inst;
|
|
3616
|
+
mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]);
|
|
3617
|
+
fiber.flags |= 1024;
|
|
3618
|
+
pushEffect(
|
|
3619
|
+
9,
|
|
3620
|
+
updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot),
|
|
3621
|
+
void 0,
|
|
3622
|
+
null
|
|
3623
|
+
);
|
|
3624
|
+
subscribe = workInProgressRoot;
|
|
3625
|
+
if (null === subscribe)
|
|
3626
|
+
throw Error(
|
|
3627
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3628
|
+
);
|
|
3629
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
3630
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3631
|
+
return nextSnapshot;
|
|
3632
|
+
}
|
|
3633
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3634
|
+
fiber.flags |= 8192;
|
|
3635
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3636
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3637
|
+
null === getSnapshot
|
|
3638
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3639
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3640
|
+
(getSnapshot.stores = [fiber]))
|
|
3641
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3642
|
+
null === renderedSnapshot
|
|
3643
|
+
? (getSnapshot.stores = [fiber])
|
|
3644
|
+
: renderedSnapshot.push(fiber));
|
|
3645
|
+
}
|
|
3646
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3647
|
+
inst.value = nextSnapshot;
|
|
3648
|
+
inst.getSnapshot = getSnapshot;
|
|
3649
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3650
|
+
}
|
|
3651
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3652
|
+
return subscribe(function() {
|
|
3653
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3654
|
+
});
|
|
3655
|
+
}
|
|
3656
|
+
function checkIfSnapshotChanged(inst) {
|
|
3657
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3658
|
+
inst = inst.value;
|
|
3659
|
+
try {
|
|
3660
|
+
var nextValue = latestGetSnapshot();
|
|
3661
|
+
return !objectIs(inst, nextValue);
|
|
3662
|
+
} catch (error) {
|
|
3663
|
+
return !0;
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3638
3666
|
function mountState(initialState) {
|
|
3639
3667
|
var hook = mountWorkInProgressHook();
|
|
3640
3668
|
"function" === typeof initialState && (initialState = initialState());
|
|
3641
3669
|
hook.memoizedState = hook.baseState = initialState;
|
|
3642
|
-
initialState =
|
|
3670
|
+
initialState = {
|
|
3643
3671
|
pending: null,
|
|
3644
3672
|
interleaved: null,
|
|
3645
3673
|
lanes: 0,
|
|
@@ -3647,6 +3675,7 @@ function mountState(initialState) {
|
|
|
3647
3675
|
lastRenderedReducer: basicStateReducer,
|
|
3648
3676
|
lastRenderedState: initialState
|
|
3649
3677
|
};
|
|
3678
|
+
hook.queue = initialState;
|
|
3650
3679
|
initialState = initialState.dispatch = dispatchAction.bind(
|
|
3651
3680
|
null,
|
|
3652
3681
|
currentlyRenderingFiber$1,
|
|
@@ -3658,7 +3687,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3658
3687
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3659
3688
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3660
3689
|
null === create
|
|
3661
|
-
? ((create = { lastEffect: null }),
|
|
3690
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3662
3691
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3663
3692
|
(create.lastEffect = tag.next = tag))
|
|
3664
3693
|
: ((destroy = create.lastEffect),
|
|
@@ -3699,14 +3728,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3699
3728
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3700
3729
|
}
|
|
3701
3730
|
function mountEffect(create, deps) {
|
|
3702
|
-
return mountEffectImpl(
|
|
3731
|
+
return mountEffectImpl(2098176, 8, create, deps);
|
|
3703
3732
|
}
|
|
3704
3733
|
function updateEffect(create, deps) {
|
|
3705
|
-
return updateEffectImpl(1024,
|
|
3734
|
+
return updateEffectImpl(1024, 8, create, deps);
|
|
3706
3735
|
}
|
|
3707
|
-
function
|
|
3736
|
+
function updateInsertionEffect(create, deps) {
|
|
3708
3737
|
return updateEffectImpl(4, 2, create, deps);
|
|
3709
3738
|
}
|
|
3739
|
+
function updateLayoutEffect(create, deps) {
|
|
3740
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3741
|
+
}
|
|
3710
3742
|
function imperativeHandleEffect(create, ref) {
|
|
3711
3743
|
if ("function" === typeof ref)
|
|
3712
3744
|
return (
|
|
@@ -3729,7 +3761,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3729
3761
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3730
3762
|
return updateEffectImpl(
|
|
3731
3763
|
4,
|
|
3732
|
-
|
|
3764
|
+
4,
|
|
3733
3765
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3734
3766
|
deps
|
|
3735
3767
|
);
|
|
@@ -3798,7 +3830,11 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3798
3830
|
: ((update.next = lane.next), (lane.next = update)),
|
|
3799
3831
|
(queue.pending = update);
|
|
3800
3832
|
else {
|
|
3801
|
-
if (
|
|
3833
|
+
if (
|
|
3834
|
+
null !== workInProgressRoot &&
|
|
3835
|
+
0 !== (fiber.mode & 1) &&
|
|
3836
|
+
0 === (executionContext & 2)
|
|
3837
|
+
) {
|
|
3802
3838
|
var interleaved = queue.interleaved;
|
|
3803
3839
|
null === interleaved
|
|
3804
3840
|
? ((update.next = update),
|
|
@@ -3843,6 +3879,7 @@ var ContextOnlyDispatcher = {
|
|
|
3843
3879
|
useContext: throwInvalidHookError,
|
|
3844
3880
|
useEffect: throwInvalidHookError,
|
|
3845
3881
|
useImperativeHandle: throwInvalidHookError,
|
|
3882
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3846
3883
|
useLayoutEffect: throwInvalidHookError,
|
|
3847
3884
|
useMemo: throwInvalidHookError,
|
|
3848
3885
|
useReducer: throwInvalidHookError,
|
|
@@ -3852,6 +3889,7 @@ var ContextOnlyDispatcher = {
|
|
|
3852
3889
|
useDeferredValue: throwInvalidHookError,
|
|
3853
3890
|
useTransition: throwInvalidHookError,
|
|
3854
3891
|
useMutableSource: throwInvalidHookError,
|
|
3892
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3855
3893
|
useOpaqueIdentifier: throwInvalidHookError,
|
|
3856
3894
|
unstable_isNewReconciler: !1
|
|
3857
3895
|
},
|
|
@@ -3870,12 +3908,15 @@ var ContextOnlyDispatcher = {
|
|
|
3870
3908
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3871
3909
|
return mountEffectImpl(
|
|
3872
3910
|
4,
|
|
3873
|
-
|
|
3911
|
+
4,
|
|
3874
3912
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3875
3913
|
deps
|
|
3876
3914
|
);
|
|
3877
3915
|
},
|
|
3878
3916
|
useLayoutEffect: function(create, deps) {
|
|
3917
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3918
|
+
},
|
|
3919
|
+
useInsertionEffect: function(create, deps) {
|
|
3879
3920
|
return mountEffectImpl(4, 2, create, deps);
|
|
3880
3921
|
},
|
|
3881
3922
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3889,7 +3930,7 @@ var ContextOnlyDispatcher = {
|
|
|
3889
3930
|
var hook = mountWorkInProgressHook();
|
|
3890
3931
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3891
3932
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3892
|
-
reducer =
|
|
3933
|
+
reducer = {
|
|
3893
3934
|
pending: null,
|
|
3894
3935
|
interleaved: null,
|
|
3895
3936
|
lanes: 0,
|
|
@@ -3897,6 +3938,7 @@ var ContextOnlyDispatcher = {
|
|
|
3897
3938
|
lastRenderedReducer: reducer,
|
|
3898
3939
|
lastRenderedState: initialArg
|
|
3899
3940
|
};
|
|
3941
|
+
hook.queue = reducer;
|
|
3900
3942
|
reducer = reducer.dispatch = dispatchAction.bind(
|
|
3901
3943
|
null,
|
|
3902
3944
|
currentlyRenderingFiber$1,
|
|
@@ -3934,7 +3976,7 @@ var ContextOnlyDispatcher = {
|
|
|
3934
3976
|
isPending = _mountState2[0];
|
|
3935
3977
|
_mountState2 = startTransition.bind(null, _mountState2[1]);
|
|
3936
3978
|
mountWorkInProgressHook().memoizedState = _mountState2;
|
|
3937
|
-
return [
|
|
3979
|
+
return [isPending, _mountState2];
|
|
3938
3980
|
},
|
|
3939
3981
|
useMutableSource: function(source, getSnapshot, subscribe) {
|
|
3940
3982
|
var hook = mountWorkInProgressHook();
|
|
@@ -3945,6 +3987,7 @@ var ContextOnlyDispatcher = {
|
|
|
3945
3987
|
};
|
|
3946
3988
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3947
3989
|
},
|
|
3990
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
3948
3991
|
useOpaqueIdentifier: function() {
|
|
3949
3992
|
throw Error("Not yet implemented");
|
|
3950
3993
|
},
|
|
@@ -3956,6 +3999,7 @@ var ContextOnlyDispatcher = {
|
|
|
3956
3999
|
useContext: readContext,
|
|
3957
4000
|
useEffect: updateEffect,
|
|
3958
4001
|
useImperativeHandle: updateImperativeHandle,
|
|
4002
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3959
4003
|
useLayoutEffect: updateLayoutEffect,
|
|
3960
4004
|
useMemo: updateMemo,
|
|
3961
4005
|
useReducer: updateReducer,
|
|
@@ -3983,10 +4027,51 @@ var ContextOnlyDispatcher = {
|
|
|
3983
4027
|
return prevValue;
|
|
3984
4028
|
},
|
|
3985
4029
|
useTransition: function() {
|
|
3986
|
-
var isPending = updateReducer(basicStateReducer)[0]
|
|
3987
|
-
|
|
4030
|
+
var isPending = updateReducer(basicStateReducer)[0],
|
|
4031
|
+
start = updateWorkInProgressHook().memoizedState;
|
|
4032
|
+
return [isPending, start];
|
|
3988
4033
|
},
|
|
3989
4034
|
useMutableSource: updateMutableSource,
|
|
4035
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4036
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4037
|
+
hook = updateWorkInProgressHook(),
|
|
4038
|
+
nextSnapshot = getSnapshot(),
|
|
4039
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4040
|
+
snapshotChanged &&
|
|
4041
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4042
|
+
hook = hook.queue;
|
|
4043
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4044
|
+
subscribe
|
|
4045
|
+
]);
|
|
4046
|
+
if (
|
|
4047
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4048
|
+
snapshotChanged ||
|
|
4049
|
+
(null !== workInProgressHook &&
|
|
4050
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4051
|
+
) {
|
|
4052
|
+
fiber.flags |= 1024;
|
|
4053
|
+
pushEffect(
|
|
4054
|
+
9,
|
|
4055
|
+
updateStoreInstance.bind(
|
|
4056
|
+
null,
|
|
4057
|
+
fiber,
|
|
4058
|
+
hook,
|
|
4059
|
+
nextSnapshot,
|
|
4060
|
+
getSnapshot
|
|
4061
|
+
),
|
|
4062
|
+
void 0,
|
|
4063
|
+
null
|
|
4064
|
+
);
|
|
4065
|
+
subscribe = workInProgressRoot;
|
|
4066
|
+
if (null === subscribe)
|
|
4067
|
+
throw Error(
|
|
4068
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4069
|
+
);
|
|
4070
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4071
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4072
|
+
}
|
|
4073
|
+
return nextSnapshot;
|
|
4074
|
+
},
|
|
3990
4075
|
useOpaqueIdentifier: function() {
|
|
3991
4076
|
return updateReducer(basicStateReducer)[0];
|
|
3992
4077
|
},
|
|
@@ -3998,6 +4083,7 @@ var ContextOnlyDispatcher = {
|
|
|
3998
4083
|
useContext: readContext,
|
|
3999
4084
|
useEffect: updateEffect,
|
|
4000
4085
|
useImperativeHandle: updateImperativeHandle,
|
|
4086
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4001
4087
|
useLayoutEffect: updateLayoutEffect,
|
|
4002
4088
|
useMemo: updateMemo,
|
|
4003
4089
|
useReducer: rerenderReducer,
|
|
@@ -4025,134 +4111,599 @@ var ContextOnlyDispatcher = {
|
|
|
4025
4111
|
return prevValue;
|
|
4026
4112
|
},
|
|
4027
4113
|
useTransition: function() {
|
|
4028
|
-
var isPending = rerenderReducer(basicStateReducer)[0]
|
|
4029
|
-
|
|
4114
|
+
var isPending = rerenderReducer(basicStateReducer)[0],
|
|
4115
|
+
start = updateWorkInProgressHook().memoizedState;
|
|
4116
|
+
return [isPending, start];
|
|
4030
4117
|
},
|
|
4031
4118
|
useMutableSource: updateMutableSource,
|
|
4119
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4032
4120
|
useOpaqueIdentifier: function() {
|
|
4033
4121
|
return rerenderReducer(basicStateReducer)[0];
|
|
4034
4122
|
},
|
|
4035
4123
|
unstable_isNewReconciler: !1
|
|
4036
|
-
}
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
: reconcileChildFibers(
|
|
4044
|
-
workInProgress,
|
|
4045
|
-
current.child,
|
|
4046
|
-
nextChildren,
|
|
4047
|
-
renderLanes
|
|
4048
|
-
);
|
|
4124
|
+
};
|
|
4125
|
+
function createCapturedValue(value, source) {
|
|
4126
|
+
return {
|
|
4127
|
+
value: value,
|
|
4128
|
+
source: source,
|
|
4129
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
4130
|
+
};
|
|
4049
4131
|
}
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
) {
|
|
4057
|
-
Component = Component.render;
|
|
4058
|
-
var ref = workInProgress.ref;
|
|
4059
|
-
prepareToReadContext(workInProgress, renderLanes);
|
|
4060
|
-
nextProps = renderWithHooks(
|
|
4061
|
-
current,
|
|
4062
|
-
workInProgress,
|
|
4063
|
-
Component,
|
|
4064
|
-
nextProps,
|
|
4065
|
-
ref,
|
|
4066
|
-
renderLanes
|
|
4132
|
+
if (
|
|
4133
|
+
"function" !==
|
|
4134
|
+
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
|
4135
|
+
)
|
|
4136
|
+
throw Error(
|
|
4137
|
+
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
|
4067
4138
|
);
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
(
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
workInProgress,
|
|
4082
|
-
Component,
|
|
4083
|
-
nextProps,
|
|
4084
|
-
updateLanes,
|
|
4085
|
-
renderLanes
|
|
4086
|
-
) {
|
|
4087
|
-
if (null === current) {
|
|
4088
|
-
var type = Component.type;
|
|
4089
|
-
if (
|
|
4090
|
-
"function" === typeof type &&
|
|
4091
|
-
!shouldConstruct(type) &&
|
|
4092
|
-
void 0 === type.defaultProps &&
|
|
4093
|
-
null === Component.compare &&
|
|
4094
|
-
void 0 === Component.defaultProps
|
|
4095
|
-
)
|
|
4096
|
-
return (
|
|
4097
|
-
(workInProgress.tag = 15),
|
|
4098
|
-
(workInProgress.type = type),
|
|
4099
|
-
updateSimpleMemoComponent(
|
|
4100
|
-
current,
|
|
4101
|
-
workInProgress,
|
|
4102
|
-
type,
|
|
4103
|
-
nextProps,
|
|
4104
|
-
updateLanes,
|
|
4105
|
-
renderLanes
|
|
4106
|
-
)
|
|
4107
|
-
);
|
|
4108
|
-
current = createFiberFromTypeAndProps(
|
|
4109
|
-
Component.type,
|
|
4110
|
-
null,
|
|
4111
|
-
nextProps,
|
|
4112
|
-
workInProgress,
|
|
4113
|
-
workInProgress.mode,
|
|
4114
|
-
renderLanes
|
|
4115
|
-
);
|
|
4116
|
-
current.ref = workInProgress.ref;
|
|
4117
|
-
current.return = workInProgress;
|
|
4118
|
-
return (workInProgress.child = current);
|
|
4139
|
+
function logCapturedError(boundary, errorInfo) {
|
|
4140
|
+
try {
|
|
4141
|
+
!1 !==
|
|
4142
|
+
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
|
4143
|
+
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
|
4144
|
+
error: errorInfo.value,
|
|
4145
|
+
errorBoundary:
|
|
4146
|
+
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
|
4147
|
+
}) && console.error(errorInfo.value);
|
|
4148
|
+
} catch (e) {
|
|
4149
|
+
setTimeout(function() {
|
|
4150
|
+
throw e;
|
|
4151
|
+
});
|
|
4119
4152
|
}
|
|
4120
|
-
type = current.child;
|
|
4121
|
-
if (
|
|
4122
|
-
0 === (updateLanes & renderLanes) &&
|
|
4123
|
-
((updateLanes = type.memoizedProps),
|
|
4124
|
-
(Component = Component.compare),
|
|
4125
|
-
(Component = null !== Component ? Component : shallowEqual),
|
|
4126
|
-
Component(updateLanes, nextProps) && current.ref === workInProgress.ref)
|
|
4127
|
-
)
|
|
4128
|
-
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4129
|
-
workInProgress.flags |= 1;
|
|
4130
|
-
current = createWorkInProgress(type, nextProps);
|
|
4131
|
-
current.ref = workInProgress.ref;
|
|
4132
|
-
current.return = workInProgress;
|
|
4133
|
-
return (workInProgress.child = current);
|
|
4134
4153
|
}
|
|
4135
|
-
function
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
)
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4154
|
+
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
4155
|
+
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
4156
|
+
lane = createUpdate(-1, lane);
|
|
4157
|
+
lane.tag = 3;
|
|
4158
|
+
lane.payload = { element: null };
|
|
4159
|
+
var error = errorInfo.value;
|
|
4160
|
+
lane.callback = function() {
|
|
4161
|
+
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
|
4162
|
+
logCapturedError(fiber, errorInfo);
|
|
4163
|
+
};
|
|
4164
|
+
return lane;
|
|
4165
|
+
}
|
|
4166
|
+
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
4167
|
+
lane = createUpdate(-1, lane);
|
|
4168
|
+
lane.tag = 3;
|
|
4169
|
+
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
4170
|
+
if ("function" === typeof getDerivedStateFromError) {
|
|
4171
|
+
var error = errorInfo.value;
|
|
4172
|
+
lane.payload = function() {
|
|
4173
|
+
return getDerivedStateFromError(error);
|
|
4174
|
+
};
|
|
4175
|
+
lane.callback = function() {
|
|
4176
|
+
logCapturedError(fiber, errorInfo);
|
|
4177
|
+
};
|
|
4178
|
+
}
|
|
4179
|
+
var inst = fiber.stateNode;
|
|
4180
|
+
null !== inst &&
|
|
4181
|
+
"function" === typeof inst.componentDidCatch &&
|
|
4182
|
+
(lane.callback = function() {
|
|
4183
|
+
logCapturedError(fiber, errorInfo);
|
|
4184
|
+
"function" !== typeof getDerivedStateFromError &&
|
|
4185
|
+
(null === legacyErrorBoundariesThatAlreadyFailed
|
|
4186
|
+
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
|
4187
|
+
: legacyErrorBoundariesThatAlreadyFailed.add(this));
|
|
4188
|
+
var stack = errorInfo.stack;
|
|
4189
|
+
this.componentDidCatch(errorInfo.value, {
|
|
4190
|
+
componentStack: null !== stack ? stack : ""
|
|
4191
|
+
});
|
|
4192
|
+
});
|
|
4193
|
+
return lane;
|
|
4194
|
+
}
|
|
4195
|
+
var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText;
|
|
4196
|
+
appendAllChildren = function(parent, workInProgress) {
|
|
4197
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
4198
|
+
if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);
|
|
4199
|
+
else if (4 !== node.tag && null !== node.child) {
|
|
4200
|
+
node.child.return = node;
|
|
4201
|
+
node = node.child;
|
|
4202
|
+
continue;
|
|
4203
|
+
}
|
|
4204
|
+
if (node === workInProgress) break;
|
|
4205
|
+
for (; null === node.sibling; ) {
|
|
4206
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
4207
|
+
node = node.return;
|
|
4208
|
+
}
|
|
4209
|
+
node.sibling.return = node.return;
|
|
4210
|
+
node = node.sibling;
|
|
4211
|
+
}
|
|
4212
|
+
};
|
|
4213
|
+
updateHostContainer = function() {};
|
|
4214
|
+
updateHostComponent = function(current, workInProgress, type, newProps) {
|
|
4215
|
+
current.memoizedProps !== newProps &&
|
|
4216
|
+
(requiredContext(contextStackCursor$1.current),
|
|
4217
|
+
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
4218
|
+
(workInProgress.flags |= 4);
|
|
4219
|
+
};
|
|
4220
|
+
updateHostText = function(current, workInProgress, oldText, newText) {
|
|
4221
|
+
oldText !== newText && (workInProgress.flags |= 4);
|
|
4222
|
+
};
|
|
4223
|
+
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4224
|
+
switch (renderState.tailMode) {
|
|
4225
|
+
case "hidden":
|
|
4226
|
+
hasRenderedATailFallback = renderState.tail;
|
|
4227
|
+
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4228
|
+
null !== hasRenderedATailFallback.alternate &&
|
|
4229
|
+
(lastTailNode = hasRenderedATailFallback),
|
|
4230
|
+
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4231
|
+
null === lastTailNode
|
|
4232
|
+
? (renderState.tail = null)
|
|
4233
|
+
: (lastTailNode.sibling = null);
|
|
4234
|
+
break;
|
|
4235
|
+
case "collapsed":
|
|
4236
|
+
lastTailNode = renderState.tail;
|
|
4237
|
+
for (var lastTailNode$38 = null; null !== lastTailNode; )
|
|
4238
|
+
null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
|
|
4239
|
+
(lastTailNode = lastTailNode.sibling);
|
|
4240
|
+
null === lastTailNode$38
|
|
4241
|
+
? hasRenderedATailFallback || null === renderState.tail
|
|
4242
|
+
? (renderState.tail = null)
|
|
4243
|
+
: (renderState.tail.sibling = null)
|
|
4244
|
+
: (lastTailNode$38.sibling = null);
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4247
|
+
function bubbleProperties(completedWork) {
|
|
4248
|
+
var didBailout =
|
|
4249
|
+
null !== completedWork.alternate &&
|
|
4250
|
+
completedWork.alternate.child === completedWork.child,
|
|
4251
|
+
newChildLanes = 0,
|
|
4252
|
+
subtreeFlags = 0;
|
|
4253
|
+
if (didBailout)
|
|
4254
|
+
for (var child$39 = completedWork.child; null !== child$39; )
|
|
4255
|
+
(newChildLanes |= child$39.lanes | child$39.childLanes),
|
|
4256
|
+
(subtreeFlags |= child$39.subtreeFlags & 3670016),
|
|
4257
|
+
(subtreeFlags |= child$39.flags & 3670016),
|
|
4258
|
+
(child$39.return = completedWork),
|
|
4259
|
+
(child$39 = child$39.sibling);
|
|
4260
|
+
else
|
|
4261
|
+
for (child$39 = completedWork.child; null !== child$39; )
|
|
4262
|
+
(newChildLanes |= child$39.lanes | child$39.childLanes),
|
|
4263
|
+
(subtreeFlags |= child$39.subtreeFlags),
|
|
4264
|
+
(subtreeFlags |= child$39.flags),
|
|
4265
|
+
(child$39.return = completedWork),
|
|
4266
|
+
(child$39 = child$39.sibling);
|
|
4267
|
+
completedWork.subtreeFlags |= subtreeFlags;
|
|
4268
|
+
completedWork.childLanes = newChildLanes;
|
|
4269
|
+
return didBailout;
|
|
4270
|
+
}
|
|
4271
|
+
function completeWork(current, workInProgress, renderLanes) {
|
|
4272
|
+
var newProps = workInProgress.pendingProps;
|
|
4273
|
+
switch (workInProgress.tag) {
|
|
4274
|
+
case 2:
|
|
4275
|
+
case 16:
|
|
4276
|
+
case 15:
|
|
4277
|
+
case 0:
|
|
4278
|
+
case 11:
|
|
4279
|
+
case 7:
|
|
4280
|
+
case 8:
|
|
4281
|
+
case 12:
|
|
4282
|
+
case 9:
|
|
4283
|
+
case 14:
|
|
4284
|
+
return bubbleProperties(workInProgress), null;
|
|
4285
|
+
case 1:
|
|
4286
|
+
return (
|
|
4287
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4288
|
+
bubbleProperties(workInProgress),
|
|
4289
|
+
null
|
|
4290
|
+
);
|
|
4291
|
+
case 3:
|
|
4292
|
+
return (
|
|
4293
|
+
(newProps = workInProgress.stateNode),
|
|
4294
|
+
popHostContainer(),
|
|
4295
|
+
pop(didPerformWorkStackCursor),
|
|
4296
|
+
pop(contextStackCursor),
|
|
4297
|
+
resetWorkInProgressVersions(),
|
|
4298
|
+
newProps.pendingContext &&
|
|
4299
|
+
((newProps.context = newProps.pendingContext),
|
|
4300
|
+
(newProps.pendingContext = null)),
|
|
4301
|
+
(null !== current && null !== current.child) ||
|
|
4302
|
+
newProps.hydrate ||
|
|
4303
|
+
(workInProgress.flags |= 512),
|
|
4304
|
+
updateHostContainer(current, workInProgress),
|
|
4305
|
+
bubbleProperties(workInProgress),
|
|
4306
|
+
null
|
|
4307
|
+
);
|
|
4308
|
+
case 5:
|
|
4309
|
+
popHostContext(workInProgress);
|
|
4310
|
+
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4311
|
+
var type = workInProgress.type;
|
|
4312
|
+
if (null !== current && null != workInProgress.stateNode)
|
|
4313
|
+
updateHostComponent(
|
|
4314
|
+
current,
|
|
4315
|
+
workInProgress,
|
|
4316
|
+
type,
|
|
4317
|
+
newProps,
|
|
4318
|
+
renderLanes
|
|
4319
|
+
),
|
|
4320
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4321
|
+
else {
|
|
4322
|
+
if (!newProps) {
|
|
4323
|
+
if (null === workInProgress.stateNode)
|
|
4324
|
+
throw Error(
|
|
4325
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4326
|
+
);
|
|
4327
|
+
bubbleProperties(workInProgress);
|
|
4328
|
+
return null;
|
|
4329
|
+
}
|
|
4330
|
+
requiredContext(contextStackCursor$1.current);
|
|
4331
|
+
current = allocateTag();
|
|
4332
|
+
type = getViewConfigForType(type);
|
|
4333
|
+
var updatePayload = diffProperties(
|
|
4334
|
+
null,
|
|
4335
|
+
emptyObject,
|
|
4336
|
+
newProps,
|
|
4337
|
+
type.validAttributes
|
|
4338
|
+
);
|
|
4339
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
4340
|
+
current,
|
|
4341
|
+
type.uiViewClassName,
|
|
4342
|
+
renderLanes,
|
|
4343
|
+
updatePayload
|
|
4344
|
+
);
|
|
4345
|
+
renderLanes = new ReactNativeFiberHostComponent(
|
|
4346
|
+
current,
|
|
4347
|
+
type,
|
|
4348
|
+
workInProgress
|
|
4349
|
+
);
|
|
4350
|
+
instanceCache.set(current, workInProgress);
|
|
4351
|
+
instanceProps.set(current, newProps);
|
|
4352
|
+
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4353
|
+
workInProgress.stateNode = renderLanes;
|
|
4354
|
+
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4355
|
+
null !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4356
|
+
}
|
|
4357
|
+
bubbleProperties(workInProgress);
|
|
4358
|
+
return null;
|
|
4359
|
+
case 6:
|
|
4360
|
+
if (current && null != workInProgress.stateNode)
|
|
4361
|
+
updateHostText(
|
|
4362
|
+
current,
|
|
4363
|
+
workInProgress,
|
|
4364
|
+
current.memoizedProps,
|
|
4365
|
+
newProps
|
|
4366
|
+
);
|
|
4367
|
+
else {
|
|
4368
|
+
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
4369
|
+
throw Error(
|
|
4370
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4371
|
+
);
|
|
4372
|
+
current = requiredContext(rootInstanceStackCursor.current);
|
|
4373
|
+
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
4374
|
+
throw Error(
|
|
4375
|
+
"Text strings must be rendered within a <Text> component."
|
|
4376
|
+
);
|
|
4377
|
+
renderLanes = allocateTag();
|
|
4378
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
4379
|
+
renderLanes,
|
|
4380
|
+
"RCTRawText",
|
|
4381
|
+
current,
|
|
4382
|
+
{ text: newProps }
|
|
4383
|
+
);
|
|
4384
|
+
instanceCache.set(renderLanes, workInProgress);
|
|
4385
|
+
workInProgress.stateNode = renderLanes;
|
|
4386
|
+
}
|
|
4387
|
+
bubbleProperties(workInProgress);
|
|
4388
|
+
return null;
|
|
4389
|
+
case 13:
|
|
4390
|
+
pop(suspenseStackCursor);
|
|
4391
|
+
newProps = workInProgress.memoizedState;
|
|
4392
|
+
if (0 !== (workInProgress.flags & 128))
|
|
4393
|
+
return (workInProgress.lanes = renderLanes), workInProgress;
|
|
4394
|
+
renderLanes = !1;
|
|
4395
|
+
null !== current && (renderLanes = null !== current.memoizedState);
|
|
4396
|
+
if (
|
|
4397
|
+
null !== newProps &&
|
|
4398
|
+
!renderLanes &&
|
|
4399
|
+
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
|
|
4400
|
+
)
|
|
4401
|
+
if (
|
|
4402
|
+
(null === current &&
|
|
4403
|
+
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
4404
|
+
0 !== (suspenseStackCursor.current & 1)
|
|
4405
|
+
)
|
|
4406
|
+
0 === workInProgressRootExitStatus &&
|
|
4407
|
+
(workInProgressRootExitStatus = 3);
|
|
4408
|
+
else {
|
|
4409
|
+
if (
|
|
4410
|
+
0 === workInProgressRootExitStatus ||
|
|
4411
|
+
3 === workInProgressRootExitStatus
|
|
4412
|
+
)
|
|
4413
|
+
workInProgressRootExitStatus = 4;
|
|
4414
|
+
null === workInProgressRoot ||
|
|
4415
|
+
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4416
|
+
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
|
|
4417
|
+
markRootSuspended$1(
|
|
4418
|
+
workInProgressRoot,
|
|
4419
|
+
workInProgressRootRenderLanes
|
|
4420
|
+
);
|
|
4421
|
+
}
|
|
4422
|
+
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
4423
|
+
bubbleProperties(workInProgress);
|
|
4424
|
+
return null;
|
|
4425
|
+
case 4:
|
|
4426
|
+
return (
|
|
4427
|
+
popHostContainer(),
|
|
4428
|
+
updateHostContainer(current, workInProgress),
|
|
4429
|
+
bubbleProperties(workInProgress),
|
|
4430
|
+
null
|
|
4431
|
+
);
|
|
4432
|
+
case 10:
|
|
4433
|
+
return (
|
|
4434
|
+
popProvider(workInProgress.type._context),
|
|
4435
|
+
bubbleProperties(workInProgress),
|
|
4436
|
+
null
|
|
4437
|
+
);
|
|
4438
|
+
case 17:
|
|
4439
|
+
return (
|
|
4440
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4441
|
+
bubbleProperties(workInProgress),
|
|
4442
|
+
null
|
|
4443
|
+
);
|
|
4444
|
+
case 19:
|
|
4445
|
+
pop(suspenseStackCursor);
|
|
4446
|
+
type = workInProgress.memoizedState;
|
|
4447
|
+
if (null === type) return bubbleProperties(workInProgress), null;
|
|
4448
|
+
newProps = 0 !== (workInProgress.flags & 128);
|
|
4449
|
+
updatePayload = type.rendering;
|
|
4450
|
+
if (null === updatePayload)
|
|
4451
|
+
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
4452
|
+
else {
|
|
4453
|
+
if (
|
|
4454
|
+
0 !== workInProgressRootExitStatus ||
|
|
4455
|
+
(null !== current && 0 !== (current.flags & 128))
|
|
4456
|
+
)
|
|
4457
|
+
for (current = workInProgress.child; null !== current; ) {
|
|
4458
|
+
updatePayload = findFirstSuspended(current);
|
|
4459
|
+
if (null !== updatePayload) {
|
|
4460
|
+
workInProgress.flags |= 128;
|
|
4461
|
+
cutOffTailIfNeeded(type, !1);
|
|
4462
|
+
current = updatePayload.updateQueue;
|
|
4463
|
+
null !== current &&
|
|
4464
|
+
((workInProgress.updateQueue = current),
|
|
4465
|
+
(workInProgress.flags |= 4));
|
|
4466
|
+
workInProgress.subtreeFlags = 0;
|
|
4467
|
+
current = renderLanes;
|
|
4468
|
+
for (newProps = workInProgress.child; null !== newProps; )
|
|
4469
|
+
(renderLanes = newProps),
|
|
4470
|
+
(type = current),
|
|
4471
|
+
(renderLanes.flags &= 3670018),
|
|
4472
|
+
(updatePayload = renderLanes.alternate),
|
|
4473
|
+
null === updatePayload
|
|
4474
|
+
? ((renderLanes.childLanes = 0),
|
|
4475
|
+
(renderLanes.lanes = type),
|
|
4476
|
+
(renderLanes.child = null),
|
|
4477
|
+
(renderLanes.subtreeFlags = 0),
|
|
4478
|
+
(renderLanes.memoizedProps = null),
|
|
4479
|
+
(renderLanes.memoizedState = null),
|
|
4480
|
+
(renderLanes.updateQueue = null),
|
|
4481
|
+
(renderLanes.dependencies = null),
|
|
4482
|
+
(renderLanes.stateNode = null))
|
|
4483
|
+
: ((renderLanes.childLanes = updatePayload.childLanes),
|
|
4484
|
+
(renderLanes.lanes = updatePayload.lanes),
|
|
4485
|
+
(renderLanes.child = updatePayload.child),
|
|
4486
|
+
(renderLanes.subtreeFlags = 0),
|
|
4487
|
+
(renderLanes.deletions = null),
|
|
4488
|
+
(renderLanes.memoizedProps =
|
|
4489
|
+
updatePayload.memoizedProps),
|
|
4490
|
+
(renderLanes.memoizedState =
|
|
4491
|
+
updatePayload.memoizedState),
|
|
4492
|
+
(renderLanes.updateQueue = updatePayload.updateQueue),
|
|
4493
|
+
(renderLanes.type = updatePayload.type),
|
|
4494
|
+
(type = updatePayload.dependencies),
|
|
4495
|
+
(renderLanes.dependencies =
|
|
4496
|
+
null === type
|
|
4497
|
+
? null
|
|
4498
|
+
: {
|
|
4499
|
+
lanes: type.lanes,
|
|
4500
|
+
firstContext: type.firstContext
|
|
4501
|
+
})),
|
|
4502
|
+
(newProps = newProps.sibling);
|
|
4503
|
+
push(
|
|
4504
|
+
suspenseStackCursor,
|
|
4505
|
+
(suspenseStackCursor.current & 1) | 2
|
|
4506
|
+
);
|
|
4507
|
+
return workInProgress.child;
|
|
4508
|
+
}
|
|
4509
|
+
current = current.sibling;
|
|
4510
|
+
}
|
|
4511
|
+
null !== type.tail &&
|
|
4512
|
+
now() > workInProgressRootRenderTargetTime &&
|
|
4513
|
+
((workInProgress.flags |= 128),
|
|
4514
|
+
(newProps = !0),
|
|
4515
|
+
cutOffTailIfNeeded(type, !1),
|
|
4516
|
+
(workInProgress.lanes = 4194304));
|
|
4517
|
+
}
|
|
4518
|
+
else {
|
|
4519
|
+
if (!newProps)
|
|
4520
|
+
if (
|
|
4521
|
+
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
4522
|
+
) {
|
|
4523
|
+
if (
|
|
4524
|
+
((workInProgress.flags |= 128),
|
|
4525
|
+
(newProps = !0),
|
|
4526
|
+
(current = current.updateQueue),
|
|
4527
|
+
null !== current &&
|
|
4528
|
+
((workInProgress.updateQueue = current),
|
|
4529
|
+
(workInProgress.flags |= 4)),
|
|
4530
|
+
cutOffTailIfNeeded(type, !0),
|
|
4531
|
+
null === type.tail &&
|
|
4532
|
+
"hidden" === type.tailMode &&
|
|
4533
|
+
!updatePayload.alternate)
|
|
4534
|
+
)
|
|
4535
|
+
return bubbleProperties(workInProgress), null;
|
|
4536
|
+
} else
|
|
4537
|
+
2 * now() - type.renderingStartTime >
|
|
4538
|
+
workInProgressRootRenderTargetTime &&
|
|
4539
|
+
1073741824 !== renderLanes &&
|
|
4540
|
+
((workInProgress.flags |= 128),
|
|
4541
|
+
(newProps = !0),
|
|
4542
|
+
cutOffTailIfNeeded(type, !1),
|
|
4543
|
+
(workInProgress.lanes = 4194304));
|
|
4544
|
+
type.isBackwards
|
|
4545
|
+
? ((updatePayload.sibling = workInProgress.child),
|
|
4546
|
+
(workInProgress.child = updatePayload))
|
|
4547
|
+
: ((current = type.last),
|
|
4548
|
+
null !== current
|
|
4549
|
+
? (current.sibling = updatePayload)
|
|
4550
|
+
: (workInProgress.child = updatePayload),
|
|
4551
|
+
(type.last = updatePayload));
|
|
4552
|
+
}
|
|
4553
|
+
if (null !== type.tail)
|
|
4554
|
+
return (
|
|
4555
|
+
(workInProgress = type.tail),
|
|
4556
|
+
(type.rendering = workInProgress),
|
|
4557
|
+
(type.tail = workInProgress.sibling),
|
|
4558
|
+
(type.renderingStartTime = now()),
|
|
4559
|
+
(workInProgress.sibling = null),
|
|
4560
|
+
(current = suspenseStackCursor.current),
|
|
4561
|
+
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
4562
|
+
workInProgress
|
|
4563
|
+
);
|
|
4564
|
+
bubbleProperties(workInProgress);
|
|
4565
|
+
return null;
|
|
4566
|
+
case 22:
|
|
4567
|
+
case 23:
|
|
4568
|
+
return (
|
|
4569
|
+
popRenderLanes(),
|
|
4570
|
+
(renderLanes = null !== workInProgress.memoizedState),
|
|
4571
|
+
null !== current &&
|
|
4572
|
+
(null !== current.memoizedState) !== renderLanes &&
|
|
4573
|
+
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4574
|
+
23 !== workInProgress.tag &&
|
|
4575
|
+
(workInProgress.flags |= 4096),
|
|
4576
|
+
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4577
|
+
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4578
|
+
(bubbleProperties(workInProgress),
|
|
4579
|
+
23 !== workInProgress.tag &&
|
|
4580
|
+
workInProgress.subtreeFlags & 6 &&
|
|
4581
|
+
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4582
|
+
(workInProgress.flags |= 4096))
|
|
4583
|
+
: bubbleProperties(workInProgress),
|
|
4584
|
+
null
|
|
4585
|
+
);
|
|
4586
|
+
}
|
|
4587
|
+
throw Error(
|
|
4588
|
+
"Unknown unit of work tag (" +
|
|
4589
|
+
workInProgress.tag +
|
|
4590
|
+
"). This error is likely caused by a bug in React. Please file an issue."
|
|
4591
|
+
);
|
|
4592
|
+
}
|
|
4593
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4594
|
+
didReceiveUpdate = !1;
|
|
4595
|
+
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4596
|
+
workInProgress.child =
|
|
4597
|
+
null === current
|
|
4598
|
+
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4599
|
+
: reconcileChildFibers(
|
|
4600
|
+
workInProgress,
|
|
4601
|
+
current.child,
|
|
4602
|
+
nextChildren,
|
|
4603
|
+
renderLanes
|
|
4604
|
+
);
|
|
4605
|
+
}
|
|
4606
|
+
function updateForwardRef(
|
|
4607
|
+
current,
|
|
4608
|
+
workInProgress,
|
|
4609
|
+
Component,
|
|
4610
|
+
nextProps,
|
|
4611
|
+
renderLanes
|
|
4612
|
+
) {
|
|
4613
|
+
Component = Component.render;
|
|
4614
|
+
var ref = workInProgress.ref;
|
|
4615
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
4616
|
+
nextProps = renderWithHooks(
|
|
4617
|
+
current,
|
|
4618
|
+
workInProgress,
|
|
4619
|
+
Component,
|
|
4620
|
+
nextProps,
|
|
4621
|
+
ref,
|
|
4622
|
+
renderLanes
|
|
4623
|
+
);
|
|
4624
|
+
if (null !== current && !didReceiveUpdate)
|
|
4625
|
+
return (
|
|
4626
|
+
(workInProgress.updateQueue = current.updateQueue),
|
|
4627
|
+
(workInProgress.flags &= -1029),
|
|
4628
|
+
(current.lanes &= ~renderLanes),
|
|
4629
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4630
|
+
);
|
|
4631
|
+
workInProgress.flags |= 1;
|
|
4632
|
+
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4633
|
+
return workInProgress.child;
|
|
4634
|
+
}
|
|
4635
|
+
function updateMemoComponent(
|
|
4636
|
+
current,
|
|
4637
|
+
workInProgress,
|
|
4638
|
+
Component,
|
|
4639
|
+
nextProps,
|
|
4640
|
+
renderLanes
|
|
4641
|
+
) {
|
|
4642
|
+
if (null === current) {
|
|
4643
|
+
var type = Component.type;
|
|
4644
|
+
if (
|
|
4645
|
+
"function" === typeof type &&
|
|
4646
|
+
!shouldConstruct(type) &&
|
|
4647
|
+
void 0 === type.defaultProps &&
|
|
4648
|
+
null === Component.compare &&
|
|
4649
|
+
void 0 === Component.defaultProps
|
|
4650
|
+
)
|
|
4651
|
+
return (
|
|
4652
|
+
(workInProgress.tag = 15),
|
|
4653
|
+
(workInProgress.type = type),
|
|
4654
|
+
updateSimpleMemoComponent(
|
|
4655
|
+
current,
|
|
4656
|
+
workInProgress,
|
|
4657
|
+
type,
|
|
4658
|
+
nextProps,
|
|
4659
|
+
renderLanes
|
|
4660
|
+
)
|
|
4661
|
+
);
|
|
4662
|
+
current = createFiberFromTypeAndProps(
|
|
4663
|
+
Component.type,
|
|
4664
|
+
null,
|
|
4665
|
+
nextProps,
|
|
4666
|
+
workInProgress,
|
|
4667
|
+
workInProgress.mode,
|
|
4668
|
+
renderLanes
|
|
4669
|
+
);
|
|
4670
|
+
current.ref = workInProgress.ref;
|
|
4671
|
+
current.return = workInProgress;
|
|
4672
|
+
return (workInProgress.child = current);
|
|
4673
|
+
}
|
|
4674
|
+
type = current.child;
|
|
4675
|
+
if (0 === (current.lanes & renderLanes)) {
|
|
4676
|
+
var prevProps = type.memoizedProps;
|
|
4677
|
+
Component = Component.compare;
|
|
4678
|
+
Component = null !== Component ? Component : shallowEqual;
|
|
4679
|
+
if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)
|
|
4680
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4681
|
+
}
|
|
4682
|
+
workInProgress.flags |= 1;
|
|
4683
|
+
current = createWorkInProgress(type, nextProps);
|
|
4684
|
+
current.ref = workInProgress.ref;
|
|
4685
|
+
current.return = workInProgress;
|
|
4686
|
+
return (workInProgress.child = current);
|
|
4687
|
+
}
|
|
4688
|
+
function updateSimpleMemoComponent(
|
|
4689
|
+
current,
|
|
4690
|
+
workInProgress,
|
|
4691
|
+
Component,
|
|
4692
|
+
nextProps,
|
|
4693
|
+
renderLanes
|
|
4694
|
+
) {
|
|
4695
|
+
if (
|
|
4696
|
+
null !== current &&
|
|
4697
|
+
shallowEqual(current.memoizedProps, nextProps) &&
|
|
4698
|
+
current.ref === workInProgress.ref
|
|
4699
|
+
)
|
|
4700
|
+
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4701
|
+
0 !== (current.flags & 65536) && (didReceiveUpdate = !0);
|
|
4702
|
+
else
|
|
4703
|
+
return (
|
|
4704
|
+
(workInProgress.lanes = current.lanes),
|
|
4705
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4706
|
+
);
|
|
4156
4707
|
return updateFunctionComponent(
|
|
4157
4708
|
current,
|
|
4158
4709
|
workInProgress,
|
|
@@ -4205,7 +4756,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
4205
4756
|
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
4206
4757
|
return workInProgress.child;
|
|
4207
4758
|
}
|
|
4208
|
-
function markRef(current, workInProgress) {
|
|
4759
|
+
function markRef$1(current, workInProgress) {
|
|
4209
4760
|
var ref = workInProgress.ref;
|
|
4210
4761
|
if (
|
|
4211
4762
|
(null === current && null !== ref) ||
|
|
@@ -4454,7 +5005,7 @@ function finishClassComponent(
|
|
|
4454
5005
|
hasContext,
|
|
4455
5006
|
renderLanes
|
|
4456
5007
|
) {
|
|
4457
|
-
markRef(current, workInProgress);
|
|
5008
|
+
markRef$1(current, workInProgress);
|
|
4458
5009
|
var didCaptureError = 0 !== (workInProgress.flags & 128);
|
|
4459
5010
|
if (!shouldUpdate && !didCaptureError)
|
|
4460
5011
|
return (
|
|
@@ -4515,7 +5066,6 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
4515
5066
|
JSCompiler_temp
|
|
4516
5067
|
? ((showFallback = !0), (workInProgress.flags &= -129))
|
|
4517
5068
|
: (null !== current && null === current.memoizedState) ||
|
|
4518
|
-
void 0 === nextProps.fallback ||
|
|
4519
5069
|
!0 === nextProps.unstable_avoidThisFallback ||
|
|
4520
5070
|
(suspenseContext |= 1);
|
|
4521
5071
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
@@ -4554,7 +5104,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
4554
5104
|
renderLanes = createFiberFromOffscreen(
|
|
4555
5105
|
{ mode: "visible", children: current },
|
|
4556
5106
|
workInProgress.mode,
|
|
4557
|
-
|
|
5107
|
+
0,
|
|
4558
5108
|
null
|
|
4559
5109
|
);
|
|
4560
5110
|
renderLanes.return = workInProgress;
|
|
@@ -4692,7 +5242,7 @@ function updateSuspenseFallbackChildren(
|
|
|
4692
5242
|
(primaryChildren.pendingProps = primaryChildProps),
|
|
4693
5243
|
(workInProgress.deletions = null))
|
|
4694
5244
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
4695
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5245
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 3670016));
|
|
4696
5246
|
null !== currentFallbackChildFragment
|
|
4697
5247
|
? (fallbackChildren = createWorkInProgress(
|
|
4698
5248
|
currentFallbackChildFragment,
|
|
@@ -4832,422 +5382,96 @@ function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
|
|
|
4832
5382
|
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
4833
5383
|
if (0 === (renderLanes & workInProgress.childLanes)) return null;
|
|
4834
5384
|
if (null !== current && workInProgress.child !== current.child)
|
|
4835
|
-
throw Error("Resuming work not yet implemented.");
|
|
4836
|
-
if (null !== workInProgress.child) {
|
|
4837
|
-
current = workInProgress.child;
|
|
4838
|
-
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
4839
|
-
workInProgress.child = renderLanes;
|
|
4840
|
-
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
4841
|
-
(current = current.sibling),
|
|
4842
|
-
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
4843
|
-
current,
|
|
4844
|
-
current.pendingProps
|
|
4845
|
-
)),
|
|
4846
|
-
(renderLanes.return = workInProgress);
|
|
4847
|
-
renderLanes.sibling = null;
|
|
4848
|
-
}
|
|
4849
|
-
return workInProgress.child;
|
|
4850
|
-
}
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
}
|
|
4868
|
-
node.sibling.return = node.return;
|
|
4869
|
-
node = node.sibling;
|
|
4870
|
-
}
|
|
4871
|
-
};
|
|
4872
|
-
updateHostContainer = function() {};
|
|
4873
|
-
updateHostComponent$1 = function(current, workInProgress, type, newProps) {
|
|
4874
|
-
current.memoizedProps !== newProps &&
|
|
4875
|
-
(requiredContext(contextStackCursor$1.current),
|
|
4876
|
-
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
4877
|
-
(workInProgress.flags |= 4);
|
|
4878
|
-
};
|
|
4879
|
-
updateHostText$1 = function(current, workInProgress, oldText, newText) {
|
|
4880
|
-
oldText !== newText && (workInProgress.flags |= 4);
|
|
4881
|
-
};
|
|
4882
|
-
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4883
|
-
switch (renderState.tailMode) {
|
|
4884
|
-
case "hidden":
|
|
4885
|
-
hasRenderedATailFallback = renderState.tail;
|
|
4886
|
-
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4887
|
-
null !== hasRenderedATailFallback.alternate &&
|
|
4888
|
-
(lastTailNode = hasRenderedATailFallback),
|
|
4889
|
-
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4890
|
-
null === lastTailNode
|
|
4891
|
-
? (renderState.tail = null)
|
|
4892
|
-
: (lastTailNode.sibling = null);
|
|
4893
|
-
break;
|
|
4894
|
-
case "collapsed":
|
|
4895
|
-
lastTailNode = renderState.tail;
|
|
4896
|
-
for (var lastTailNode$62 = null; null !== lastTailNode; )
|
|
4897
|
-
null !== lastTailNode.alternate && (lastTailNode$62 = lastTailNode),
|
|
4898
|
-
(lastTailNode = lastTailNode.sibling);
|
|
4899
|
-
null === lastTailNode$62
|
|
4900
|
-
? hasRenderedATailFallback || null === renderState.tail
|
|
4901
|
-
? (renderState.tail = null)
|
|
4902
|
-
: (renderState.tail.sibling = null)
|
|
4903
|
-
: (lastTailNode$62.sibling = null);
|
|
4904
|
-
}
|
|
4905
|
-
}
|
|
4906
|
-
function bubbleProperties(completedWork) {
|
|
4907
|
-
var didBailout =
|
|
4908
|
-
null !== completedWork.alternate &&
|
|
4909
|
-
completedWork.alternate.child === completedWork.child,
|
|
4910
|
-
newChildLanes = 0,
|
|
4911
|
-
subtreeFlags = 0;
|
|
4912
|
-
if (didBailout)
|
|
4913
|
-
for (var child$63 = completedWork.child; null !== child$63; )
|
|
4914
|
-
(newChildLanes |= child$63.lanes | child$63.childLanes),
|
|
4915
|
-
(subtreeFlags |= child$63.subtreeFlags & 262144),
|
|
4916
|
-
(subtreeFlags |= child$63.flags & 262144),
|
|
4917
|
-
(child$63.return = completedWork),
|
|
4918
|
-
(child$63 = child$63.sibling);
|
|
4919
|
-
else
|
|
4920
|
-
for (child$63 = completedWork.child; null !== child$63; )
|
|
4921
|
-
(newChildLanes |= child$63.lanes | child$63.childLanes),
|
|
4922
|
-
(subtreeFlags |= child$63.subtreeFlags),
|
|
4923
|
-
(subtreeFlags |= child$63.flags),
|
|
4924
|
-
(child$63.return = completedWork),
|
|
4925
|
-
(child$63 = child$63.sibling);
|
|
4926
|
-
completedWork.subtreeFlags |= subtreeFlags;
|
|
4927
|
-
completedWork.childLanes = newChildLanes;
|
|
4928
|
-
return didBailout;
|
|
4929
|
-
}
|
|
4930
|
-
function completeWork(current, workInProgress, renderLanes) {
|
|
4931
|
-
var newProps = workInProgress.pendingProps;
|
|
4932
|
-
switch (workInProgress.tag) {
|
|
4933
|
-
case 2:
|
|
4934
|
-
case 16:
|
|
4935
|
-
case 15:
|
|
4936
|
-
case 0:
|
|
4937
|
-
case 11:
|
|
4938
|
-
case 7:
|
|
4939
|
-
case 8:
|
|
4940
|
-
case 12:
|
|
4941
|
-
case 9:
|
|
4942
|
-
case 14:
|
|
4943
|
-
return bubbleProperties(workInProgress), null;
|
|
4944
|
-
case 1:
|
|
4945
|
-
return (
|
|
4946
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
4947
|
-
bubbleProperties(workInProgress),
|
|
4948
|
-
null
|
|
4949
|
-
);
|
|
4950
|
-
case 3:
|
|
4951
|
-
return (
|
|
4952
|
-
(newProps = workInProgress.stateNode),
|
|
4953
|
-
popHostContainer(),
|
|
4954
|
-
pop(didPerformWorkStackCursor),
|
|
4955
|
-
pop(contextStackCursor),
|
|
4956
|
-
resetWorkInProgressVersions(),
|
|
4957
|
-
newProps.pendingContext &&
|
|
4958
|
-
((newProps.context = newProps.pendingContext),
|
|
4959
|
-
(newProps.pendingContext = null)),
|
|
4960
|
-
(null !== current && null !== current.child) ||
|
|
4961
|
-
newProps.hydrate ||
|
|
4962
|
-
(workInProgress.flags |= 512),
|
|
4963
|
-
updateHostContainer(current, workInProgress),
|
|
4964
|
-
bubbleProperties(workInProgress),
|
|
4965
|
-
null
|
|
4966
|
-
);
|
|
4967
|
-
case 5:
|
|
4968
|
-
popHostContext(workInProgress);
|
|
4969
|
-
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4970
|
-
var type = workInProgress.type;
|
|
4971
|
-
if (null !== current && null != workInProgress.stateNode)
|
|
4972
|
-
updateHostComponent$1(
|
|
4973
|
-
current,
|
|
4974
|
-
workInProgress,
|
|
4975
|
-
type,
|
|
4976
|
-
newProps,
|
|
4977
|
-
renderLanes
|
|
4978
|
-
),
|
|
4979
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4980
|
-
else {
|
|
4981
|
-
if (!newProps) {
|
|
4982
|
-
if (null === workInProgress.stateNode)
|
|
4983
|
-
throw Error(
|
|
4984
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4985
|
-
);
|
|
4986
|
-
bubbleProperties(workInProgress);
|
|
4987
|
-
return null;
|
|
4988
|
-
}
|
|
4989
|
-
requiredContext(contextStackCursor$1.current);
|
|
4990
|
-
current = allocateTag();
|
|
4991
|
-
type = getViewConfigForType(type);
|
|
4992
|
-
var updatePayload = diffProperties(
|
|
4993
|
-
null,
|
|
4994
|
-
emptyObject,
|
|
4995
|
-
newProps,
|
|
4996
|
-
type.validAttributes
|
|
4997
|
-
);
|
|
4998
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
4999
|
-
current,
|
|
5000
|
-
type.uiViewClassName,
|
|
5001
|
-
renderLanes,
|
|
5002
|
-
updatePayload
|
|
5003
|
-
);
|
|
5004
|
-
renderLanes = new ReactNativeFiberHostComponent(
|
|
5005
|
-
current,
|
|
5006
|
-
type,
|
|
5007
|
-
workInProgress
|
|
5008
|
-
);
|
|
5009
|
-
instanceCache.set(current, workInProgress);
|
|
5010
|
-
instanceProps.set(current, newProps);
|
|
5011
|
-
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
5012
|
-
workInProgress.stateNode = renderLanes;
|
|
5013
|
-
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
5014
|
-
null !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
5015
|
-
}
|
|
5016
|
-
bubbleProperties(workInProgress);
|
|
5017
|
-
return null;
|
|
5018
|
-
case 6:
|
|
5019
|
-
if (current && null != workInProgress.stateNode)
|
|
5020
|
-
updateHostText$1(
|
|
5021
|
-
current,
|
|
5022
|
-
workInProgress,
|
|
5023
|
-
current.memoizedProps,
|
|
5024
|
-
newProps
|
|
5025
|
-
);
|
|
5026
|
-
else {
|
|
5027
|
-
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
5028
|
-
throw Error(
|
|
5029
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5030
|
-
);
|
|
5031
|
-
current = requiredContext(rootInstanceStackCursor.current);
|
|
5032
|
-
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
5033
|
-
throw Error(
|
|
5034
|
-
"Text strings must be rendered within a <Text> component."
|
|
5035
|
-
);
|
|
5036
|
-
renderLanes = allocateTag();
|
|
5037
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
5038
|
-
renderLanes,
|
|
5039
|
-
"RCTRawText",
|
|
5040
|
-
current,
|
|
5041
|
-
{ text: newProps }
|
|
5042
|
-
);
|
|
5043
|
-
instanceCache.set(renderLanes, workInProgress);
|
|
5044
|
-
workInProgress.stateNode = renderLanes;
|
|
5045
|
-
}
|
|
5046
|
-
bubbleProperties(workInProgress);
|
|
5047
|
-
return null;
|
|
5048
|
-
case 13:
|
|
5049
|
-
pop(suspenseStackCursor);
|
|
5050
|
-
newProps = workInProgress.memoizedState;
|
|
5051
|
-
if (0 !== (workInProgress.flags & 128))
|
|
5052
|
-
return (workInProgress.lanes = renderLanes), workInProgress;
|
|
5053
|
-
newProps = null !== newProps;
|
|
5054
|
-
renderLanes = !1;
|
|
5055
|
-
null !== current && (renderLanes = null !== current.memoizedState);
|
|
5056
|
-
if (newProps && !renderLanes && 0 !== (workInProgress.mode & 1))
|
|
5057
|
-
if (
|
|
5058
|
-
(null === current &&
|
|
5059
|
-
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
5060
|
-
0 !== (suspenseStackCursor.current & 1)
|
|
5061
|
-
)
|
|
5062
|
-
0 === workInProgressRootExitStatus &&
|
|
5063
|
-
(workInProgressRootExitStatus = 3);
|
|
5064
|
-
else {
|
|
5065
|
-
if (
|
|
5066
|
-
0 === workInProgressRootExitStatus ||
|
|
5067
|
-
3 === workInProgressRootExitStatus
|
|
5068
|
-
)
|
|
5069
|
-
workInProgressRootExitStatus = 4;
|
|
5070
|
-
null === workInProgressRoot ||
|
|
5071
|
-
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
5072
|
-
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
|
|
5073
|
-
markRootSuspended$1(
|
|
5074
|
-
workInProgressRoot,
|
|
5075
|
-
workInProgressRootRenderLanes
|
|
5076
|
-
);
|
|
5077
|
-
}
|
|
5078
|
-
if (newProps || renderLanes) workInProgress.flags |= 4;
|
|
5079
|
-
bubbleProperties(workInProgress);
|
|
5080
|
-
return null;
|
|
5385
|
+
throw Error("Resuming work not yet implemented.");
|
|
5386
|
+
if (null !== workInProgress.child) {
|
|
5387
|
+
current = workInProgress.child;
|
|
5388
|
+
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
5389
|
+
workInProgress.child = renderLanes;
|
|
5390
|
+
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
5391
|
+
(current = current.sibling),
|
|
5392
|
+
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
5393
|
+
current,
|
|
5394
|
+
current.pendingProps
|
|
5395
|
+
)),
|
|
5396
|
+
(renderLanes.return = workInProgress);
|
|
5397
|
+
renderLanes.sibling = null;
|
|
5398
|
+
}
|
|
5399
|
+
return workInProgress.child;
|
|
5400
|
+
}
|
|
5401
|
+
function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
5402
|
+
current,
|
|
5403
|
+
workInProgress,
|
|
5404
|
+
renderLanes
|
|
5405
|
+
) {
|
|
5406
|
+
switch (workInProgress.tag) {
|
|
5407
|
+
case 3:
|
|
5408
|
+
pushHostRootContext(workInProgress);
|
|
5409
|
+
break;
|
|
5410
|
+
case 5:
|
|
5411
|
+
pushHostContext(workInProgress);
|
|
5412
|
+
break;
|
|
5413
|
+
case 1:
|
|
5414
|
+
isContextProvider(workInProgress.type) &&
|
|
5415
|
+
pushContextProvider(workInProgress);
|
|
5416
|
+
break;
|
|
5081
5417
|
case 4:
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
updateHostContainer(current, workInProgress),
|
|
5085
|
-
bubbleProperties(workInProgress),
|
|
5086
|
-
null
|
|
5087
|
-
);
|
|
5418
|
+
pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
|
|
5419
|
+
break;
|
|
5088
5420
|
case 10:
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
case
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5421
|
+
var context = workInProgress.type._context,
|
|
5422
|
+
nextValue = workInProgress.memoizedProps.value;
|
|
5423
|
+
push(valueCursor, context._currentValue);
|
|
5424
|
+
context._currentValue = nextValue;
|
|
5425
|
+
break;
|
|
5426
|
+
case 13:
|
|
5427
|
+
if (null !== workInProgress.memoizedState) {
|
|
5428
|
+
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
5429
|
+
return updateSuspenseComponent(current, workInProgress, renderLanes);
|
|
5430
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5431
|
+
current = bailoutOnAlreadyFinishedWork(
|
|
5432
|
+
current,
|
|
5433
|
+
workInProgress,
|
|
5434
|
+
renderLanes
|
|
5435
|
+
);
|
|
5436
|
+
return null !== current ? current.sibling : null;
|
|
5437
|
+
}
|
|
5438
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5439
|
+
break;
|
|
5100
5440
|
case 19:
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
0 !== workInProgressRootExitStatus ||
|
|
5111
|
-
(null !== current && 0 !== (current.flags & 128))
|
|
5112
|
-
)
|
|
5113
|
-
for (current = workInProgress.child; null !== current; ) {
|
|
5114
|
-
updatePayload = findFirstSuspended(current);
|
|
5115
|
-
if (null !== updatePayload) {
|
|
5116
|
-
workInProgress.flags |= 128;
|
|
5117
|
-
cutOffTailIfNeeded(type, !1);
|
|
5118
|
-
current = updatePayload.updateQueue;
|
|
5119
|
-
null !== current &&
|
|
5120
|
-
((workInProgress.updateQueue = current),
|
|
5121
|
-
(workInProgress.flags |= 4));
|
|
5122
|
-
workInProgress.subtreeFlags = 0;
|
|
5123
|
-
current = renderLanes;
|
|
5124
|
-
for (newProps = workInProgress.child; null !== newProps; )
|
|
5125
|
-
(renderLanes = newProps),
|
|
5126
|
-
(type = current),
|
|
5127
|
-
(renderLanes.flags &= 262146),
|
|
5128
|
-
(updatePayload = renderLanes.alternate),
|
|
5129
|
-
null === updatePayload
|
|
5130
|
-
? ((renderLanes.childLanes = 0),
|
|
5131
|
-
(renderLanes.lanes = type),
|
|
5132
|
-
(renderLanes.child = null),
|
|
5133
|
-
(renderLanes.subtreeFlags = 0),
|
|
5134
|
-
(renderLanes.memoizedProps = null),
|
|
5135
|
-
(renderLanes.memoizedState = null),
|
|
5136
|
-
(renderLanes.updateQueue = null),
|
|
5137
|
-
(renderLanes.dependencies = null),
|
|
5138
|
-
(renderLanes.stateNode = null))
|
|
5139
|
-
: ((renderLanes.childLanes = updatePayload.childLanes),
|
|
5140
|
-
(renderLanes.lanes = updatePayload.lanes),
|
|
5141
|
-
(renderLanes.child = updatePayload.child),
|
|
5142
|
-
(renderLanes.subtreeFlags = 0),
|
|
5143
|
-
(renderLanes.deletions = null),
|
|
5144
|
-
(renderLanes.memoizedProps =
|
|
5145
|
-
updatePayload.memoizedProps),
|
|
5146
|
-
(renderLanes.memoizedState =
|
|
5147
|
-
updatePayload.memoizedState),
|
|
5148
|
-
(renderLanes.updateQueue = updatePayload.updateQueue),
|
|
5149
|
-
(renderLanes.type = updatePayload.type),
|
|
5150
|
-
(type = updatePayload.dependencies),
|
|
5151
|
-
(renderLanes.dependencies =
|
|
5152
|
-
null === type
|
|
5153
|
-
? null
|
|
5154
|
-
: {
|
|
5155
|
-
lanes: type.lanes,
|
|
5156
|
-
firstContext: type.firstContext
|
|
5157
|
-
})),
|
|
5158
|
-
(newProps = newProps.sibling);
|
|
5159
|
-
push(
|
|
5160
|
-
suspenseStackCursor,
|
|
5161
|
-
(suspenseStackCursor.current & 1) | 2
|
|
5162
|
-
);
|
|
5163
|
-
return workInProgress.child;
|
|
5164
|
-
}
|
|
5165
|
-
current = current.sibling;
|
|
5166
|
-
}
|
|
5167
|
-
null !== type.tail &&
|
|
5168
|
-
now() > workInProgressRootRenderTargetTime &&
|
|
5169
|
-
((workInProgress.flags |= 128),
|
|
5170
|
-
(newProps = !0),
|
|
5171
|
-
cutOffTailIfNeeded(type, !1),
|
|
5172
|
-
(workInProgress.lanes = 4194304));
|
|
5173
|
-
}
|
|
5174
|
-
else {
|
|
5175
|
-
if (!newProps)
|
|
5176
|
-
if (
|
|
5177
|
-
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
5178
|
-
) {
|
|
5179
|
-
if (
|
|
5180
|
-
((workInProgress.flags |= 128),
|
|
5181
|
-
(newProps = !0),
|
|
5182
|
-
(current = current.updateQueue),
|
|
5183
|
-
null !== current &&
|
|
5184
|
-
((workInProgress.updateQueue = current),
|
|
5185
|
-
(workInProgress.flags |= 4)),
|
|
5186
|
-
cutOffTailIfNeeded(type, !0),
|
|
5187
|
-
null === type.tail &&
|
|
5188
|
-
"hidden" === type.tailMode &&
|
|
5189
|
-
!updatePayload.alternate)
|
|
5190
|
-
)
|
|
5191
|
-
return bubbleProperties(workInProgress), null;
|
|
5192
|
-
} else
|
|
5193
|
-
2 * now() - type.renderingStartTime >
|
|
5194
|
-
workInProgressRootRenderTargetTime &&
|
|
5195
|
-
1073741824 !== renderLanes &&
|
|
5196
|
-
((workInProgress.flags |= 128),
|
|
5197
|
-
(newProps = !0),
|
|
5198
|
-
cutOffTailIfNeeded(type, !1),
|
|
5199
|
-
(workInProgress.lanes = 4194304));
|
|
5200
|
-
type.isBackwards
|
|
5201
|
-
? ((updatePayload.sibling = workInProgress.child),
|
|
5202
|
-
(workInProgress.child = updatePayload))
|
|
5203
|
-
: ((current = type.last),
|
|
5204
|
-
null !== current
|
|
5205
|
-
? (current.sibling = updatePayload)
|
|
5206
|
-
: (workInProgress.child = updatePayload),
|
|
5207
|
-
(type.last = updatePayload));
|
|
5441
|
+
context = 0 !== (renderLanes & workInProgress.childLanes);
|
|
5442
|
+
if (0 !== (current.flags & 128)) {
|
|
5443
|
+
if (context)
|
|
5444
|
+
return updateSuspenseListComponent(
|
|
5445
|
+
current,
|
|
5446
|
+
workInProgress,
|
|
5447
|
+
renderLanes
|
|
5448
|
+
);
|
|
5449
|
+
workInProgress.flags |= 128;
|
|
5208
5450
|
}
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
5218
|
-
workInProgress
|
|
5219
|
-
);
|
|
5220
|
-
bubbleProperties(workInProgress);
|
|
5221
|
-
return null;
|
|
5451
|
+
nextValue = workInProgress.memoizedState;
|
|
5452
|
+
null !== nextValue &&
|
|
5453
|
+
((nextValue.rendering = null),
|
|
5454
|
+
(nextValue.tail = null),
|
|
5455
|
+
(nextValue.lastEffect = null));
|
|
5456
|
+
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
5457
|
+
if (context) break;
|
|
5458
|
+
else return null;
|
|
5222
5459
|
case 22:
|
|
5223
5460
|
case 23:
|
|
5224
5461
|
return (
|
|
5225
|
-
|
|
5226
|
-
(
|
|
5227
|
-
null !== current &&
|
|
5228
|
-
(null !== current.memoizedState) !== renderLanes &&
|
|
5229
|
-
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
5230
|
-
(workInProgress.flags |= 4),
|
|
5231
|
-
(renderLanes &&
|
|
5232
|
-
0 === (subtreeRenderLanes & 1073741824) &&
|
|
5233
|
-
0 !== (workInProgress.mode & 1)) ||
|
|
5234
|
-
bubbleProperties(workInProgress),
|
|
5235
|
-
null
|
|
5462
|
+
(workInProgress.lanes = 0),
|
|
5463
|
+
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
5236
5464
|
);
|
|
5237
5465
|
}
|
|
5238
|
-
|
|
5239
|
-
"Unknown unit of work tag (" +
|
|
5240
|
-
workInProgress.tag +
|
|
5241
|
-
"). This error is likely caused by a bug in React. Please file an issue."
|
|
5242
|
-
);
|
|
5466
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5243
5467
|
}
|
|
5244
5468
|
function unwindWork(workInProgress) {
|
|
5245
5469
|
switch (workInProgress.tag) {
|
|
5246
5470
|
case 1:
|
|
5247
5471
|
isContextProvider(workInProgress.type) && popContext();
|
|
5248
5472
|
var flags = workInProgress.flags;
|
|
5249
|
-
return flags &
|
|
5250
|
-
? ((workInProgress.flags = (flags & -
|
|
5473
|
+
return flags & 32768
|
|
5474
|
+
? ((workInProgress.flags = (flags & -32769) | 128), workInProgress)
|
|
5251
5475
|
: null;
|
|
5252
5476
|
case 3:
|
|
5253
5477
|
popHostContainer();
|
|
@@ -5259,7 +5483,7 @@ function unwindWork(workInProgress) {
|
|
|
5259
5483
|
throw Error(
|
|
5260
5484
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5261
5485
|
);
|
|
5262
|
-
workInProgress.flags = (flags & -
|
|
5486
|
+
workInProgress.flags = (flags & -32769) | 128;
|
|
5263
5487
|
return workInProgress;
|
|
5264
5488
|
case 5:
|
|
5265
5489
|
return popHostContext(workInProgress), null;
|
|
@@ -5267,92 +5491,24 @@ function unwindWork(workInProgress) {
|
|
|
5267
5491
|
return (
|
|
5268
5492
|
pop(suspenseStackCursor),
|
|
5269
5493
|
(flags = workInProgress.flags),
|
|
5270
|
-
flags &
|
|
5271
|
-
? ((workInProgress.flags = (flags & -
|
|
5494
|
+
flags & 32768
|
|
5495
|
+
? ((workInProgress.flags = (flags & -32769) | 128), workInProgress)
|
|
5272
5496
|
: null
|
|
5273
|
-
);
|
|
5274
|
-
case 19:
|
|
5275
|
-
return pop(suspenseStackCursor), null;
|
|
5276
|
-
case 4:
|
|
5277
|
-
return popHostContainer(), null;
|
|
5278
|
-
case 10:
|
|
5279
|
-
return popProvider(workInProgress.type._context), null;
|
|
5280
|
-
case 22:
|
|
5281
|
-
case 23:
|
|
5282
|
-
return popRenderLanes(), null;
|
|
5283
|
-
case 24:
|
|
5284
|
-
return null;
|
|
5285
|
-
default:
|
|
5286
|
-
return null;
|
|
5287
|
-
}
|
|
5288
|
-
}
|
|
5289
|
-
function createCapturedValue(value, source) {
|
|
5290
|
-
return {
|
|
5291
|
-
value: value,
|
|
5292
|
-
source: source,
|
|
5293
|
-
stack: getStackByFiberInDevAndProd(source)
|
|
5294
|
-
};
|
|
5295
|
-
}
|
|
5296
|
-
if (
|
|
5297
|
-
"function" !==
|
|
5298
|
-
typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
|
5299
|
-
)
|
|
5300
|
-
throw Error(
|
|
5301
|
-
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
|
5302
|
-
);
|
|
5303
|
-
function logCapturedError(boundary, errorInfo) {
|
|
5304
|
-
try {
|
|
5305
|
-
!1 !==
|
|
5306
|
-
ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
|
5307
|
-
componentStack: null !== errorInfo.stack ? errorInfo.stack : "",
|
|
5308
|
-
error: errorInfo.value,
|
|
5309
|
-
errorBoundary:
|
|
5310
|
-
null !== boundary && 1 === boundary.tag ? boundary.stateNode : null
|
|
5311
|
-
}) && console.error(errorInfo.value);
|
|
5312
|
-
} catch (e) {
|
|
5313
|
-
setTimeout(function() {
|
|
5314
|
-
throw e;
|
|
5315
|
-
});
|
|
5316
|
-
}
|
|
5317
|
-
}
|
|
5318
|
-
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map;
|
|
5319
|
-
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
5320
|
-
lane = createUpdate(-1, lane);
|
|
5321
|
-
lane.tag = 3;
|
|
5322
|
-
lane.payload = { element: null };
|
|
5323
|
-
var error = errorInfo.value;
|
|
5324
|
-
lane.callback = function() {
|
|
5325
|
-
hasUncaughtError || ((hasUncaughtError = !0), (firstUncaughtError = error));
|
|
5326
|
-
logCapturedError(fiber, errorInfo);
|
|
5327
|
-
};
|
|
5328
|
-
return lane;
|
|
5329
|
-
}
|
|
5330
|
-
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
5331
|
-
lane = createUpdate(-1, lane);
|
|
5332
|
-
lane.tag = 3;
|
|
5333
|
-
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
5334
|
-
if ("function" === typeof getDerivedStateFromError) {
|
|
5335
|
-
var error = errorInfo.value;
|
|
5336
|
-
lane.payload = function() {
|
|
5337
|
-
logCapturedError(fiber, errorInfo);
|
|
5338
|
-
return getDerivedStateFromError(error);
|
|
5339
|
-
};
|
|
5497
|
+
);
|
|
5498
|
+
case 19:
|
|
5499
|
+
return pop(suspenseStackCursor), null;
|
|
5500
|
+
case 4:
|
|
5501
|
+
return popHostContainer(), null;
|
|
5502
|
+
case 10:
|
|
5503
|
+
return popProvider(workInProgress.type._context), null;
|
|
5504
|
+
case 22:
|
|
5505
|
+
case 23:
|
|
5506
|
+
return popRenderLanes(), null;
|
|
5507
|
+
case 24:
|
|
5508
|
+
return null;
|
|
5509
|
+
default:
|
|
5510
|
+
return null;
|
|
5340
5511
|
}
|
|
5341
|
-
var inst = fiber.stateNode;
|
|
5342
|
-
null !== inst &&
|
|
5343
|
-
"function" === typeof inst.componentDidCatch &&
|
|
5344
|
-
(lane.callback = function() {
|
|
5345
|
-
"function" !== typeof getDerivedStateFromError &&
|
|
5346
|
-
(null === legacyErrorBoundariesThatAlreadyFailed
|
|
5347
|
-
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
|
5348
|
-
: legacyErrorBoundariesThatAlreadyFailed.add(this),
|
|
5349
|
-
logCapturedError(fiber, errorInfo));
|
|
5350
|
-
var stack = errorInfo.stack;
|
|
5351
|
-
this.componentDidCatch(errorInfo.value, {
|
|
5352
|
-
componentStack: null !== stack ? stack : ""
|
|
5353
|
-
});
|
|
5354
|
-
});
|
|
5355
|
-
return lane;
|
|
5356
5512
|
}
|
|
5357
5513
|
var PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
|
5358
5514
|
nextEffect = null;
|
|
@@ -5362,54 +5518,26 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5362
5518
|
if ("function" === typeof ref)
|
|
5363
5519
|
try {
|
|
5364
5520
|
ref(null);
|
|
5365
|
-
} catch (
|
|
5366
|
-
captureCommitPhaseError(current, nearestMountedAncestor,
|
|
5521
|
+
} catch (error) {
|
|
5522
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5367
5523
|
}
|
|
5368
5524
|
else ref.current = null;
|
|
5369
5525
|
}
|
|
5370
|
-
var
|
|
5371
|
-
shouldFireAfterActiveInstanceBlur = !1;
|
|
5526
|
+
var shouldFireAfterActiveInstanceBlur = !1;
|
|
5372
5527
|
function commitBeforeMutationEffects(root, firstChild) {
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
doesFiberContain(firstChild[i], focusedInstanceHandle) &&
|
|
5380
|
-
(shouldFireAfterActiveInstanceBlur = !0);
|
|
5381
|
-
firstChild = root.child;
|
|
5382
|
-
if (0 !== (root.subtreeFlags & 516) && null !== firstChild)
|
|
5528
|
+
for (nextEffect = firstChild; null !== nextEffect; )
|
|
5529
|
+
if (
|
|
5530
|
+
((root = nextEffect),
|
|
5531
|
+
(firstChild = root.child),
|
|
5532
|
+
0 !== (root.subtreeFlags & 516) && null !== firstChild)
|
|
5533
|
+
)
|
|
5383
5534
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5384
5535
|
else
|
|
5385
5536
|
for (; null !== nextEffect; ) {
|
|
5386
5537
|
root = nextEffect;
|
|
5387
5538
|
try {
|
|
5388
|
-
var current = root.alternate
|
|
5389
|
-
|
|
5390
|
-
if (
|
|
5391
|
-
!shouldFireAfterActiveInstanceBlur &&
|
|
5392
|
-
null !== focusedInstanceHandle
|
|
5393
|
-
) {
|
|
5394
|
-
var JSCompiler_temp;
|
|
5395
|
-
if ((JSCompiler_temp = 13 === root.tag))
|
|
5396
|
-
a: {
|
|
5397
|
-
if (null !== current) {
|
|
5398
|
-
var oldState = current.memoizedState;
|
|
5399
|
-
if (null === oldState || null !== oldState.dehydrated) {
|
|
5400
|
-
var newState = root.memoizedState;
|
|
5401
|
-
JSCompiler_temp =
|
|
5402
|
-
null !== newState && null === newState.dehydrated;
|
|
5403
|
-
break a;
|
|
5404
|
-
}
|
|
5405
|
-
}
|
|
5406
|
-
JSCompiler_temp = !1;
|
|
5407
|
-
}
|
|
5408
|
-
JSCompiler_temp &&
|
|
5409
|
-
doesFiberContain(root, focusedInstanceHandle) &&
|
|
5410
|
-
(shouldFireAfterActiveInstanceBlur = !0);
|
|
5411
|
-
}
|
|
5412
|
-
if (0 !== (flags & 512))
|
|
5539
|
+
var current = root.alternate;
|
|
5540
|
+
if (0 !== (root.flags & 512))
|
|
5413
5541
|
switch (root.tag) {
|
|
5414
5542
|
case 0:
|
|
5415
5543
|
case 11:
|
|
@@ -5452,10 +5580,8 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5452
5580
|
}
|
|
5453
5581
|
nextEffect = root.return;
|
|
5454
5582
|
}
|
|
5455
|
-
}
|
|
5456
5583
|
current = shouldFireAfterActiveInstanceBlur;
|
|
5457
5584
|
shouldFireAfterActiveInstanceBlur = !1;
|
|
5458
|
-
focusedInstanceHandle = null;
|
|
5459
5585
|
return current;
|
|
5460
5586
|
}
|
|
5461
5587
|
function commitHookEffectListUnmount(
|
|
@@ -5492,71 +5618,13 @@ function commitHookEffectListMount(tag, finishedWork) {
|
|
|
5492
5618
|
var effect = (finishedWork = finishedWork.next);
|
|
5493
5619
|
do {
|
|
5494
5620
|
if ((effect.tag & tag) === tag) {
|
|
5495
|
-
var create$
|
|
5496
|
-
effect.destroy = create$
|
|
5621
|
+
var create$83 = effect.create;
|
|
5622
|
+
effect.destroy = create$83();
|
|
5497
5623
|
}
|
|
5498
5624
|
effect = effect.next;
|
|
5499
5625
|
} while (effect !== finishedWork);
|
|
5500
5626
|
}
|
|
5501
5627
|
}
|
|
5502
|
-
function hideOrUnhideAllChildren(finishedWork, isHidden) {
|
|
5503
|
-
for (var node = finishedWork; ; ) {
|
|
5504
|
-
if (5 === node.tag) {
|
|
5505
|
-
var instance = node.stateNode;
|
|
5506
|
-
if (isHidden) {
|
|
5507
|
-
var viewConfig = instance.viewConfig;
|
|
5508
|
-
var updatePayload = diffProperties(
|
|
5509
|
-
null,
|
|
5510
|
-
emptyObject,
|
|
5511
|
-
{ style: { display: "none" } },
|
|
5512
|
-
viewConfig.validAttributes
|
|
5513
|
-
);
|
|
5514
|
-
ReactNativePrivateInterface.UIManager.updateView(
|
|
5515
|
-
instance._nativeTag,
|
|
5516
|
-
viewConfig.uiViewClassName,
|
|
5517
|
-
updatePayload
|
|
5518
|
-
);
|
|
5519
|
-
} else {
|
|
5520
|
-
instance = node.stateNode;
|
|
5521
|
-
updatePayload = node.memoizedProps;
|
|
5522
|
-
viewConfig = instance.viewConfig;
|
|
5523
|
-
var prevProps = Object.assign({}, updatePayload, {
|
|
5524
|
-
style: [updatePayload.style, { display: "none" }]
|
|
5525
|
-
});
|
|
5526
|
-
updatePayload = diffProperties(
|
|
5527
|
-
null,
|
|
5528
|
-
prevProps,
|
|
5529
|
-
updatePayload,
|
|
5530
|
-
viewConfig.validAttributes
|
|
5531
|
-
);
|
|
5532
|
-
ReactNativePrivateInterface.UIManager.updateView(
|
|
5533
|
-
instance._nativeTag,
|
|
5534
|
-
viewConfig.uiViewClassName,
|
|
5535
|
-
updatePayload
|
|
5536
|
-
);
|
|
5537
|
-
}
|
|
5538
|
-
} else {
|
|
5539
|
-
if (6 === node.tag) throw Error("Not yet implemented.");
|
|
5540
|
-
if (
|
|
5541
|
-
((22 !== node.tag && 23 !== node.tag) ||
|
|
5542
|
-
null === node.memoizedState ||
|
|
5543
|
-
node === finishedWork) &&
|
|
5544
|
-
null !== node.child
|
|
5545
|
-
) {
|
|
5546
|
-
node.child.return = node;
|
|
5547
|
-
node = node.child;
|
|
5548
|
-
continue;
|
|
5549
|
-
}
|
|
5550
|
-
}
|
|
5551
|
-
if (node === finishedWork) break;
|
|
5552
|
-
for (; null === node.sibling; ) {
|
|
5553
|
-
if (null === node.return || node.return === finishedWork) return;
|
|
5554
|
-
node = node.return;
|
|
5555
|
-
}
|
|
5556
|
-
node.sibling.return = node.return;
|
|
5557
|
-
node = node.sibling;
|
|
5558
|
-
}
|
|
5559
|
-
}
|
|
5560
5628
|
function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
5561
5629
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
5562
5630
|
try {
|
|
@@ -5577,7 +5645,10 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5577
5645
|
var _effect = effect,
|
|
5578
5646
|
destroy = _effect.destroy;
|
|
5579
5647
|
_effect = _effect.tag;
|
|
5580
|
-
if (
|
|
5648
|
+
if (
|
|
5649
|
+
void 0 !== destroy &&
|
|
5650
|
+
(0 !== (_effect & 2) || 0 !== (_effect & 4))
|
|
5651
|
+
) {
|
|
5581
5652
|
_effect = current;
|
|
5582
5653
|
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
|
|
5583
5654
|
try {
|
|
@@ -5598,11 +5669,11 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5598
5669
|
(finishedRoot.props = current.memoizedProps),
|
|
5599
5670
|
(finishedRoot.state = current.memoizedState),
|
|
5600
5671
|
finishedRoot.componentWillUnmount();
|
|
5601
|
-
} catch (
|
|
5672
|
+
} catch (error) {
|
|
5602
5673
|
captureCommitPhaseError(
|
|
5603
5674
|
current,
|
|
5604
5675
|
nearestMountedAncestor$jscomp$0,
|
|
5605
|
-
|
|
5676
|
+
error
|
|
5606
5677
|
);
|
|
5607
5678
|
}
|
|
5608
5679
|
break;
|
|
@@ -5623,11 +5694,13 @@ function detachFiberAfterEffects(fiber) {
|
|
|
5623
5694
|
((fiber.alternate = null), detachFiberAfterEffects(alternate));
|
|
5624
5695
|
fiber.child = null;
|
|
5625
5696
|
fiber.deletions = null;
|
|
5697
|
+
fiber.sibling = null;
|
|
5698
|
+
fiber.stateNode = null;
|
|
5699
|
+
fiber.return = null;
|
|
5626
5700
|
fiber.dependencies = null;
|
|
5627
5701
|
fiber.memoizedProps = null;
|
|
5628
5702
|
fiber.memoizedState = null;
|
|
5629
5703
|
fiber.pendingProps = null;
|
|
5630
|
-
fiber.sibling = null;
|
|
5631
5704
|
fiber.stateNode = null;
|
|
5632
5705
|
fiber.updateQueue = null;
|
|
5633
5706
|
}
|
|
@@ -5698,10 +5771,9 @@ function commitPlacement(finishedWork) {
|
|
|
5698
5771
|
: insertOrAppendPlacementNode(finishedWork, parentFiber, parent);
|
|
5699
5772
|
}
|
|
5700
5773
|
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
5701
|
-
var tag = node.tag
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
if (((node = isHost ? node.stateNode : node.stateNode.instance), before)) {
|
|
5774
|
+
var tag = node.tag;
|
|
5775
|
+
if (5 === tag || 6 === tag)
|
|
5776
|
+
if (((node = node.stateNode), before)) {
|
|
5705
5777
|
if ("number" === typeof parent)
|
|
5706
5778
|
throw Error("Container does not support insertBefore operation");
|
|
5707
5779
|
} else
|
|
@@ -5719,58 +5791,57 @@ function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
|
|
5719
5791
|
(node = node.sibling);
|
|
5720
5792
|
}
|
|
5721
5793
|
function insertOrAppendPlacementNode(node, before, parent) {
|
|
5722
|
-
var tag = node.tag
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
)));
|
|
5794
|
+
var tag = node.tag;
|
|
5795
|
+
if (5 === tag || 6 === tag)
|
|
5796
|
+
if (((node = node.stateNode), before)) {
|
|
5797
|
+
tag = parent._children;
|
|
5798
|
+
var index = tag.indexOf(node);
|
|
5799
|
+
0 <= index
|
|
5800
|
+
? (tag.splice(index, 1),
|
|
5801
|
+
(before = tag.indexOf(before)),
|
|
5802
|
+
tag.splice(before, 0, node),
|
|
5803
|
+
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5804
|
+
parent._nativeTag,
|
|
5805
|
+
[index],
|
|
5806
|
+
[before],
|
|
5807
|
+
[],
|
|
5808
|
+
[],
|
|
5809
|
+
[]
|
|
5810
|
+
))
|
|
5811
|
+
: ((before = tag.indexOf(before)),
|
|
5812
|
+
tag.splice(before, 0, node),
|
|
5813
|
+
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5814
|
+
parent._nativeTag,
|
|
5815
|
+
[],
|
|
5816
|
+
[],
|
|
5817
|
+
["number" === typeof node ? node : node._nativeTag],
|
|
5818
|
+
[before],
|
|
5819
|
+
[]
|
|
5820
|
+
));
|
|
5821
|
+
} else
|
|
5822
|
+
(before = "number" === typeof node ? node : node._nativeTag),
|
|
5823
|
+
(tag = parent._children),
|
|
5824
|
+
(index = tag.indexOf(node)),
|
|
5825
|
+
0 <= index
|
|
5826
|
+
? (tag.splice(index, 1),
|
|
5827
|
+
tag.push(node),
|
|
5828
|
+
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5829
|
+
parent._nativeTag,
|
|
5830
|
+
[index],
|
|
5831
|
+
[tag.length - 1],
|
|
5832
|
+
[],
|
|
5833
|
+
[],
|
|
5834
|
+
[]
|
|
5835
|
+
))
|
|
5836
|
+
: (tag.push(node),
|
|
5837
|
+
ReactNativePrivateInterface.UIManager.manageChildren(
|
|
5838
|
+
parent._nativeTag,
|
|
5839
|
+
[],
|
|
5840
|
+
[],
|
|
5841
|
+
[before],
|
|
5842
|
+
[tag.length - 1],
|
|
5843
|
+
[]
|
|
5844
|
+
));
|
|
5774
5845
|
else if (4 !== tag && ((node = node.child), null !== node))
|
|
5775
5846
|
for (
|
|
5776
5847
|
insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
|
|
@@ -5904,6 +5975,8 @@ function commitWork(current, finishedWork) {
|
|
|
5904
5975
|
case 14:
|
|
5905
5976
|
case 15:
|
|
5906
5977
|
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
5978
|
+
commitHookEffectListMount(3, finishedWork);
|
|
5979
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5907
5980
|
return;
|
|
5908
5981
|
case 1:
|
|
5909
5982
|
return;
|
|
@@ -5947,9 +6020,6 @@ function commitWork(current, finishedWork) {
|
|
|
5947
6020
|
case 12:
|
|
5948
6021
|
return;
|
|
5949
6022
|
case 13:
|
|
5950
|
-
null !== finishedWork.memoizedState &&
|
|
5951
|
-
((globalMostRecentFallbackTime = now()),
|
|
5952
|
-
hideOrUnhideAllChildren(finishedWork.child, !0));
|
|
5953
6023
|
attachSuspenseRetryListeners(finishedWork);
|
|
5954
6024
|
return;
|
|
5955
6025
|
case 19:
|
|
@@ -5957,13 +6027,6 @@ function commitWork(current, finishedWork) {
|
|
|
5957
6027
|
return;
|
|
5958
6028
|
case 17:
|
|
5959
6029
|
return;
|
|
5960
|
-
case 22:
|
|
5961
|
-
case 23:
|
|
5962
|
-
hideOrUnhideAllChildren(
|
|
5963
|
-
finishedWork,
|
|
5964
|
-
null !== finishedWork.memoizedState
|
|
5965
|
-
);
|
|
5966
|
-
return;
|
|
5967
6030
|
}
|
|
5968
6031
|
throw Error(
|
|
5969
6032
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
@@ -6017,6 +6080,87 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6017
6080
|
: (currentRef.current = null));
|
|
6018
6081
|
}
|
|
6019
6082
|
}
|
|
6083
|
+
if (flags & 4096)
|
|
6084
|
+
switch (firstChild.tag) {
|
|
6085
|
+
case 13:
|
|
6086
|
+
if (null !== firstChild.memoizedState) {
|
|
6087
|
+
var current$88 = firstChild.alternate;
|
|
6088
|
+
if (null === current$88 || null === current$88.memoizedState)
|
|
6089
|
+
globalMostRecentFallbackTime = now();
|
|
6090
|
+
}
|
|
6091
|
+
break;
|
|
6092
|
+
case 22:
|
|
6093
|
+
a: {
|
|
6094
|
+
deletions = firstChild;
|
|
6095
|
+
var isHidden = null !== firstChild.memoizedState;
|
|
6096
|
+
i = null;
|
|
6097
|
+
for (childToDelete = deletions; ; ) {
|
|
6098
|
+
if (5 === childToDelete.tag) {
|
|
6099
|
+
if (null === i) {
|
|
6100
|
+
i = childToDelete;
|
|
6101
|
+
var instance = childToDelete.stateNode;
|
|
6102
|
+
if (isHidden) {
|
|
6103
|
+
var instance$jscomp$0 = instance,
|
|
6104
|
+
viewConfig = instance$jscomp$0.viewConfig;
|
|
6105
|
+
var updatePayload = diffProperties(
|
|
6106
|
+
null,
|
|
6107
|
+
emptyObject,
|
|
6108
|
+
{ style: { display: "none" } },
|
|
6109
|
+
viewConfig.validAttributes
|
|
6110
|
+
);
|
|
6111
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6112
|
+
instance$jscomp$0._nativeTag,
|
|
6113
|
+
viewConfig.uiViewClassName,
|
|
6114
|
+
updatePayload
|
|
6115
|
+
);
|
|
6116
|
+
} else {
|
|
6117
|
+
var instance$jscomp$1 = childToDelete.stateNode,
|
|
6118
|
+
props = childToDelete.memoizedProps,
|
|
6119
|
+
viewConfig$jscomp$0 = instance$jscomp$1.viewConfig,
|
|
6120
|
+
prevProps = Object.assign({}, props, {
|
|
6121
|
+
style: [props.style, { display: "none" }]
|
|
6122
|
+
});
|
|
6123
|
+
var updatePayload$jscomp$0 = diffProperties(
|
|
6124
|
+
null,
|
|
6125
|
+
prevProps,
|
|
6126
|
+
props,
|
|
6127
|
+
viewConfig$jscomp$0.validAttributes
|
|
6128
|
+
);
|
|
6129
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6130
|
+
instance$jscomp$1._nativeTag,
|
|
6131
|
+
viewConfig$jscomp$0.uiViewClassName,
|
|
6132
|
+
updatePayload$jscomp$0
|
|
6133
|
+
);
|
|
6134
|
+
}
|
|
6135
|
+
}
|
|
6136
|
+
} else if (6 === childToDelete.tag) {
|
|
6137
|
+
if (null === i) throw Error("Not yet implemented.");
|
|
6138
|
+
} else if (
|
|
6139
|
+
((22 !== childToDelete.tag && 23 !== childToDelete.tag) ||
|
|
6140
|
+
null === childToDelete.memoizedState ||
|
|
6141
|
+
childToDelete === deletions) &&
|
|
6142
|
+
null !== childToDelete.child
|
|
6143
|
+
) {
|
|
6144
|
+
childToDelete.child.return = childToDelete;
|
|
6145
|
+
childToDelete = childToDelete.child;
|
|
6146
|
+
continue;
|
|
6147
|
+
}
|
|
6148
|
+
if (childToDelete === deletions) break;
|
|
6149
|
+
for (; null === childToDelete.sibling; ) {
|
|
6150
|
+
if (
|
|
6151
|
+
null === childToDelete.return ||
|
|
6152
|
+
childToDelete.return === deletions
|
|
6153
|
+
)
|
|
6154
|
+
break a;
|
|
6155
|
+
i === childToDelete && (i = null);
|
|
6156
|
+
childToDelete = childToDelete.return;
|
|
6157
|
+
}
|
|
6158
|
+
i === childToDelete && (i = null);
|
|
6159
|
+
childToDelete.sibling.return = childToDelete.return;
|
|
6160
|
+
childToDelete = childToDelete.sibling;
|
|
6161
|
+
}
|
|
6162
|
+
}
|
|
6163
|
+
}
|
|
6020
6164
|
switch (flags & 2054) {
|
|
6021
6165
|
case 2:
|
|
6022
6166
|
commitPlacement(firstChild);
|
|
@@ -6054,20 +6198,20 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6054
6198
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
6055
6199
|
var fiber = nextEffect,
|
|
6056
6200
|
firstChild = fiber.child;
|
|
6057
|
-
if (0 !== (fiber.subtreeFlags &
|
|
6201
|
+
if (0 !== (fiber.subtreeFlags & 4420) && null !== firstChild)
|
|
6058
6202
|
(firstChild.return = fiber), (nextEffect = firstChild);
|
|
6059
6203
|
else
|
|
6060
6204
|
for (fiber = finishedWork; null !== nextEffect; ) {
|
|
6061
6205
|
firstChild = nextEffect;
|
|
6062
|
-
if (0 !== (firstChild.flags &
|
|
6206
|
+
if (0 !== (firstChild.flags & 4420)) {
|
|
6063
6207
|
var current = firstChild.alternate;
|
|
6064
6208
|
try {
|
|
6065
|
-
if (0 !== (firstChild.flags &
|
|
6209
|
+
if (0 !== (firstChild.flags & 4420))
|
|
6066
6210
|
switch (firstChild.tag) {
|
|
6067
6211
|
case 0:
|
|
6068
6212
|
case 11:
|
|
6069
6213
|
case 15:
|
|
6070
|
-
commitHookEffectListMount(
|
|
6214
|
+
commitHookEffectListMount(5, firstChild);
|
|
6071
6215
|
break;
|
|
6072
6216
|
case 1:
|
|
6073
6217
|
var instance = firstChild.stateNode;
|
|
@@ -6092,8 +6236,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6092
6236
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6093
6237
|
break;
|
|
6094
6238
|
case 3:
|
|
6095
|
-
var updateQueue$
|
|
6096
|
-
if (null !== updateQueue$
|
|
6239
|
+
var updateQueue$84 = firstChild.updateQueue;
|
|
6240
|
+
if (null !== updateQueue$84) {
|
|
6097
6241
|
current = null;
|
|
6098
6242
|
if (null !== firstChild.child)
|
|
6099
6243
|
switch (firstChild.child.tag) {
|
|
@@ -6103,7 +6247,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6103
6247
|
case 1:
|
|
6104
6248
|
current = firstChild.child.stateNode;
|
|
6105
6249
|
}
|
|
6106
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6250
|
+
commitUpdateQueue(firstChild, updateQueue$84, current);
|
|
6107
6251
|
}
|
|
6108
6252
|
break;
|
|
6109
6253
|
case 5:
|
|
@@ -6165,6 +6309,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6165
6309
|
var ceil = Math.ceil,
|
|
6166
6310
|
ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
6167
6311
|
ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
|
|
6312
|
+
ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig,
|
|
6168
6313
|
executionContext = 0,
|
|
6169
6314
|
workInProgressRoot = null,
|
|
6170
6315
|
workInProgress = null,
|
|
@@ -6189,7 +6334,7 @@ var ceil = Math.ceil,
|
|
|
6189
6334
|
currentEventTime = -1,
|
|
6190
6335
|
currentEventTransitionLane = 0;
|
|
6191
6336
|
function requestEventTime() {
|
|
6192
|
-
return 0 !== (executionContext &
|
|
6337
|
+
return 0 !== (executionContext & 6)
|
|
6193
6338
|
? now()
|
|
6194
6339
|
: -1 !== currentEventTime
|
|
6195
6340
|
? currentEventTime
|
|
@@ -6197,6 +6342,8 @@ function requestEventTime() {
|
|
|
6197
6342
|
}
|
|
6198
6343
|
function requestUpdateLane(fiber) {
|
|
6199
6344
|
if (0 === (fiber.mode & 1)) return 1;
|
|
6345
|
+
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
|
6346
|
+
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
|
6200
6347
|
if (0 !== ReactCurrentBatchConfig.transition)
|
|
6201
6348
|
return (
|
|
6202
6349
|
0 === currentEventTransitionLane &&
|
|
@@ -6220,18 +6367,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6220
6367
|
if (null === root) return null;
|
|
6221
6368
|
markRootUpdated(root, lane, eventTime);
|
|
6222
6369
|
root === workInProgressRoot &&
|
|
6223
|
-
((workInProgressRootUpdatedLanes |= lane),
|
|
6370
|
+
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
|
|
6224
6371
|
4 === workInProgressRootExitStatus &&
|
|
6225
6372
|
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6233
|
-
flushSyncCallbackQueue()))
|
|
6234
|
-
: ensureRootIsScheduled(root, eventTime);
|
|
6373
|
+
ensureRootIsScheduled(root, eventTime);
|
|
6374
|
+
1 === lane &&
|
|
6375
|
+
0 === executionContext &&
|
|
6376
|
+
0 === (fiber.mode & 1) &&
|
|
6377
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6378
|
+
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6235
6379
|
return root;
|
|
6236
6380
|
}
|
|
6237
6381
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6253,8 +6397,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6253
6397
|
suspendedLanes = root.suspendedLanes,
|
|
6254
6398
|
pingedLanes = root.pingedLanes,
|
|
6255
6399
|
expirationTimes = root.expirationTimes,
|
|
6256
|
-
lanes = root.pendingLanes
|
|
6257
|
-
expiredLanes = 0;
|
|
6400
|
+
lanes = root.pendingLanes;
|
|
6258
6401
|
0 < lanes;
|
|
6259
6402
|
|
|
6260
6403
|
) {
|
|
@@ -6264,10 +6407,9 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6264
6407
|
if (-1 === expirationTime) {
|
|
6265
6408
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6266
6409
|
expirationTimes[index$6] = computeExpirationTime(lane, currentTime);
|
|
6267
|
-
} else expirationTime <= currentTime && (expiredLanes |= lane);
|
|
6410
|
+
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6268
6411
|
lanes &= ~lane;
|
|
6269
6412
|
}
|
|
6270
|
-
0 !== expiredLanes && markRootExpired(root, expiredLanes);
|
|
6271
6413
|
suspendedLanes = getNextLanes(
|
|
6272
6414
|
root,
|
|
6273
6415
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
@@ -6282,11 +6424,17 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6282
6424
|
) {
|
|
6283
6425
|
null != existingCallbackNode && cancelCallback(existingCallbackNode);
|
|
6284
6426
|
if (1 === currentTime)
|
|
6285
|
-
|
|
6286
|
-
null
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6427
|
+
0 === root.tag
|
|
6428
|
+
? ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)),
|
|
6429
|
+
(includesLegacySyncCallbacks = !0),
|
|
6430
|
+
null === syncQueue
|
|
6431
|
+
? (syncQueue = [existingCallbackNode])
|
|
6432
|
+
: syncQueue.push(existingCallbackNode))
|
|
6433
|
+
: ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)),
|
|
6434
|
+
null === syncQueue
|
|
6435
|
+
? (syncQueue = [existingCallbackNode])
|
|
6436
|
+
: syncQueue.push(existingCallbackNode)),
|
|
6437
|
+
scheduleCallback(ImmediatePriority, flushSyncCallbacks),
|
|
6290
6438
|
(existingCallbackNode = null);
|
|
6291
6439
|
else {
|
|
6292
6440
|
switch (lanesToEventPriority(suspendedLanes)) {
|
|
@@ -6305,7 +6453,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6305
6453
|
default:
|
|
6306
6454
|
existingCallbackNode = NormalPriority;
|
|
6307
6455
|
}
|
|
6308
|
-
existingCallbackNode = scheduleCallback(
|
|
6456
|
+
existingCallbackNode = scheduleCallback$1(
|
|
6309
6457
|
existingCallbackNode,
|
|
6310
6458
|
performConcurrentWorkOnRoot.bind(null, root)
|
|
6311
6459
|
);
|
|
@@ -6317,7 +6465,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6317
6465
|
function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
6318
6466
|
currentEventTime = -1;
|
|
6319
6467
|
currentEventTransitionLane = 0;
|
|
6320
|
-
if (0 !== (executionContext &
|
|
6468
|
+
if (0 !== (executionContext & 6))
|
|
6321
6469
|
throw Error("Should not already be working.");
|
|
6322
6470
|
var originalCallbackNode = root.callbackNode;
|
|
6323
6471
|
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
|
|
@@ -6327,49 +6475,71 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6327
6475
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6328
6476
|
);
|
|
6329
6477
|
if (0 === lanes) return null;
|
|
6330
|
-
if (didTimeout)
|
|
6331
|
-
return (
|
|
6332
|
-
markRootExpired(root, lanes), ensureRootIsScheduled(root, now()), null
|
|
6333
|
-
);
|
|
6334
|
-
didTimeout = lanes;
|
|
6335
|
-
var prevExecutionContext = executionContext;
|
|
6336
|
-
executionContext |= 8;
|
|
6337
|
-
var prevDispatcher = pushDispatcher();
|
|
6338
6478
|
if (
|
|
6339
|
-
|
|
6340
|
-
|
|
6479
|
+
includesBlockingLane(root, lanes) ||
|
|
6480
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6481
|
+
didTimeout
|
|
6341
6482
|
)
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6483
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6484
|
+
else {
|
|
6485
|
+
didTimeout = lanes;
|
|
6486
|
+
var prevExecutionContext = executionContext;
|
|
6487
|
+
executionContext |= 2;
|
|
6488
|
+
var prevDispatcher = pushDispatcher();
|
|
6489
|
+
if (
|
|
6490
|
+
workInProgressRoot !== root ||
|
|
6491
|
+
workInProgressRootRenderLanes !== didTimeout
|
|
6492
|
+
)
|
|
6493
|
+
(workInProgressRootRenderTargetTime = now() + 500),
|
|
6494
|
+
prepareFreshStack(root, didTimeout);
|
|
6495
|
+
do
|
|
6496
|
+
try {
|
|
6497
|
+
workLoopConcurrent();
|
|
6498
|
+
break;
|
|
6499
|
+
} catch (thrownValue) {
|
|
6500
|
+
handleError(root, thrownValue);
|
|
6501
|
+
}
|
|
6502
|
+
while (1);
|
|
6503
|
+
resetContextDependencies();
|
|
6504
|
+
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6505
|
+
executionContext = prevExecutionContext;
|
|
6506
|
+
null !== workInProgress
|
|
6507
|
+
? (didTimeout = 0)
|
|
6508
|
+
: ((workInProgressRoot = null),
|
|
6509
|
+
(workInProgressRootRenderLanes = 0),
|
|
6510
|
+
(didTimeout = workInProgressRootExitStatus));
|
|
6511
|
+
}
|
|
6360
6512
|
if (0 !== didTimeout) {
|
|
6361
6513
|
2 === didTimeout &&
|
|
6362
|
-
((
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6514
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6515
|
+
0 !== prevExecutionContext &&
|
|
6516
|
+
((lanes = prevExecutionContext),
|
|
6517
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6366
6518
|
if (1 === didTimeout)
|
|
6367
6519
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6368
6520
|
prepareFreshStack(root, 0),
|
|
6369
6521
|
markRootSuspended$1(root, lanes),
|
|
6370
6522
|
ensureRootIsScheduled(root, now()),
|
|
6371
6523
|
originalCallbackNode);
|
|
6372
|
-
|
|
6524
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6525
|
+
prevExecutionContext = root.current.alternate;
|
|
6526
|
+
if (
|
|
6527
|
+
prevDispatcher &&
|
|
6528
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6529
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6530
|
+
2 === didTimeout &&
|
|
6531
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6532
|
+
0 !== prevDispatcher &&
|
|
6533
|
+
((lanes = prevDispatcher),
|
|
6534
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6535
|
+
1 === didTimeout)
|
|
6536
|
+
)
|
|
6537
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6538
|
+
prepareFreshStack(root, 0),
|
|
6539
|
+
markRootSuspended$1(root, lanes),
|
|
6540
|
+
ensureRootIsScheduled(root, now()),
|
|
6541
|
+
originalCallbackNode);
|
|
6542
|
+
root.finishedWork = prevExecutionContext;
|
|
6373
6543
|
root.finishedLanes = lanes;
|
|
6374
6544
|
switch (didTimeout) {
|
|
6375
6545
|
case 0:
|
|
@@ -6448,6 +6618,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6448
6618
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6449
6619
|
: null;
|
|
6450
6620
|
}
|
|
6621
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6622
|
+
var prevExecutionContext = executionContext;
|
|
6623
|
+
executionContext |= 8;
|
|
6624
|
+
root.hydrate && (root.hydrate = !1);
|
|
6625
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6626
|
+
executionContext = prevExecutionContext;
|
|
6627
|
+
return root;
|
|
6628
|
+
}
|
|
6629
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6630
|
+
for (var node = finishedWork; ; ) {
|
|
6631
|
+
if (node.flags & 8192) {
|
|
6632
|
+
var updateQueue = node.updateQueue;
|
|
6633
|
+
if (
|
|
6634
|
+
null !== updateQueue &&
|
|
6635
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6636
|
+
)
|
|
6637
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6638
|
+
var check = updateQueue[i],
|
|
6639
|
+
getSnapshot = check.getSnapshot;
|
|
6640
|
+
check = check.value;
|
|
6641
|
+
try {
|
|
6642
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6643
|
+
} catch (error) {
|
|
6644
|
+
return !1;
|
|
6645
|
+
}
|
|
6646
|
+
}
|
|
6647
|
+
}
|
|
6648
|
+
updateQueue = node.child;
|
|
6649
|
+
if (node.subtreeFlags & 8192 && null !== updateQueue)
|
|
6650
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6651
|
+
else {
|
|
6652
|
+
if (node === finishedWork) break;
|
|
6653
|
+
for (; null === node.sibling; ) {
|
|
6654
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6655
|
+
node = node.return;
|
|
6656
|
+
}
|
|
6657
|
+
node.sibling.return = node.return;
|
|
6658
|
+
node = node.sibling;
|
|
6659
|
+
}
|
|
6660
|
+
}
|
|
6661
|
+
return !0;
|
|
6662
|
+
}
|
|
6451
6663
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6452
6664
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6453
6665
|
suspendedLanes &= ~workInProgressRootUpdatedLanes;
|
|
@@ -6461,20 +6673,21 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
6461
6673
|
}
|
|
6462
6674
|
}
|
|
6463
6675
|
function performSyncWorkOnRoot(root) {
|
|
6464
|
-
if (0 !== (executionContext &
|
|
6676
|
+
if (0 !== (executionContext & 6))
|
|
6465
6677
|
throw Error("Should not already be working.");
|
|
6466
6678
|
flushPassiveEffects();
|
|
6467
|
-
var lanes;
|
|
6468
|
-
if ((lanes
|
|
6469
|
-
lanes = 0 !== (root.entanglements[0] & workInProgressRootRenderLanes);
|
|
6470
|
-
lanes = lanes ? workInProgressRootRenderLanes : getNextLanes(root, 0);
|
|
6679
|
+
var lanes = getNextLanes(root, 0);
|
|
6680
|
+
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6471
6681
|
var exitStatus = renderRootSync(root, lanes);
|
|
6472
|
-
0 !== root.tag &&
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
root.hydrate && (root.hydrate = !1)
|
|
6476
|
-
|
|
6477
|
-
0 !==
|
|
6682
|
+
if (0 !== root.tag && 2 === exitStatus) {
|
|
6683
|
+
var prevExecutionContext = executionContext;
|
|
6684
|
+
executionContext |= 8;
|
|
6685
|
+
root.hydrate && (root.hydrate = !1);
|
|
6686
|
+
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6687
|
+
0 !== errorRetryLanes &&
|
|
6688
|
+
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
|
|
6689
|
+
executionContext = prevExecutionContext;
|
|
6690
|
+
}
|
|
6478
6691
|
if (1 === exitStatus)
|
|
6479
6692
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
6480
6693
|
prepareFreshStack(root, 0),
|
|
@@ -6594,7 +6807,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6594
6807
|
sourceFiber = erroredWork,
|
|
6595
6808
|
value = thrownValue;
|
|
6596
6809
|
thrownValue = workInProgressRootRenderLanes;
|
|
6597
|
-
sourceFiber.flags |=
|
|
6810
|
+
sourceFiber.flags |= 16384;
|
|
6598
6811
|
if (
|
|
6599
6812
|
null !== value &&
|
|
6600
6813
|
"object" === typeof value &&
|
|
@@ -6616,39 +6829,37 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6616
6829
|
}
|
|
6617
6830
|
var hasInvisibleParentBoundary =
|
|
6618
6831
|
0 !== (suspenseStackCursor.current & 1),
|
|
6619
|
-
workInProgress$
|
|
6832
|
+
workInProgress$32 = returnFiber;
|
|
6620
6833
|
do {
|
|
6621
6834
|
var JSCompiler_temp;
|
|
6622
|
-
if ((JSCompiler_temp = 13 === workInProgress$
|
|
6623
|
-
var nextState = workInProgress$
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
var props = workInProgress$75.memoizedProps;
|
|
6628
|
-
JSCompiler_temp =
|
|
6629
|
-
void 0 === props.fallback
|
|
6630
|
-
? !1
|
|
6631
|
-
: !0 !== props.unstable_avoidThisFallback
|
|
6835
|
+
if ((JSCompiler_temp = 13 === workInProgress$32.tag)) {
|
|
6836
|
+
var nextState = workInProgress$32.memoizedState;
|
|
6837
|
+
JSCompiler_temp =
|
|
6838
|
+
null !== nextState
|
|
6839
|
+
? null !== nextState.dehydrated
|
|
6632
6840
|
? !0
|
|
6633
|
-
:
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6841
|
+
: !1
|
|
6842
|
+
: !0 !==
|
|
6843
|
+
workInProgress$32.memoizedProps.unstable_avoidThisFallback
|
|
6844
|
+
? !0
|
|
6845
|
+
: hasInvisibleParentBoundary
|
|
6846
|
+
? !1
|
|
6847
|
+
: !0;
|
|
6637
6848
|
}
|
|
6638
6849
|
if (JSCompiler_temp) {
|
|
6639
|
-
var wakeables = workInProgress$
|
|
6850
|
+
var wakeables = workInProgress$32.updateQueue;
|
|
6640
6851
|
if (null === wakeables) {
|
|
6641
6852
|
var updateQueue = new Set();
|
|
6642
6853
|
updateQueue.add(wakeable);
|
|
6643
|
-
workInProgress$
|
|
6854
|
+
workInProgress$32.updateQueue = updateQueue;
|
|
6644
6855
|
} else wakeables.add(wakeable);
|
|
6645
6856
|
if (
|
|
6646
|
-
0 === (workInProgress$
|
|
6647
|
-
workInProgress$
|
|
6857
|
+
0 === (workInProgress$32.mode & 1) &&
|
|
6858
|
+
workInProgress$32 !== returnFiber
|
|
6648
6859
|
) {
|
|
6649
|
-
workInProgress$
|
|
6650
|
-
sourceFiber.flags |=
|
|
6651
|
-
sourceFiber.flags &= -
|
|
6860
|
+
workInProgress$32.flags |= 128;
|
|
6861
|
+
sourceFiber.flags |= 65536;
|
|
6862
|
+
sourceFiber.flags &= -26437;
|
|
6652
6863
|
if (1 === sourceFiber.tag)
|
|
6653
6864
|
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6654
6865
|
else {
|
|
@@ -6679,12 +6890,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6679
6890
|
);
|
|
6680
6891
|
wakeable.then(ping, ping);
|
|
6681
6892
|
}
|
|
6682
|
-
workInProgress$
|
|
6683
|
-
workInProgress$
|
|
6893
|
+
workInProgress$32.flags |= 32768;
|
|
6894
|
+
workInProgress$32.lanes = thrownValue;
|
|
6684
6895
|
break a;
|
|
6685
6896
|
}
|
|
6686
|
-
workInProgress$
|
|
6687
|
-
} while (null !== workInProgress$
|
|
6897
|
+
workInProgress$32 = workInProgress$32.return;
|
|
6898
|
+
} while (null !== workInProgress$32);
|
|
6688
6899
|
value = Error(
|
|
6689
6900
|
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
6690
6901
|
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
|
@@ -6693,47 +6904,47 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6693
6904
|
5 !== workInProgressRootExitStatus &&
|
|
6694
6905
|
(workInProgressRootExitStatus = 2);
|
|
6695
6906
|
value = createCapturedValue(value, sourceFiber);
|
|
6696
|
-
workInProgress$
|
|
6907
|
+
workInProgress$32 = returnFiber;
|
|
6697
6908
|
do {
|
|
6698
|
-
switch (workInProgress$
|
|
6909
|
+
switch (workInProgress$32.tag) {
|
|
6699
6910
|
case 3:
|
|
6700
6911
|
root = value;
|
|
6701
|
-
workInProgress$
|
|
6912
|
+
workInProgress$32.flags |= 32768;
|
|
6702
6913
|
thrownValue &= -thrownValue;
|
|
6703
|
-
workInProgress$
|
|
6704
|
-
var update$
|
|
6705
|
-
workInProgress$
|
|
6914
|
+
workInProgress$32.lanes |= thrownValue;
|
|
6915
|
+
var update$33 = createRootErrorUpdate(
|
|
6916
|
+
workInProgress$32,
|
|
6706
6917
|
root,
|
|
6707
6918
|
thrownValue
|
|
6708
6919
|
);
|
|
6709
|
-
enqueueCapturedUpdate(workInProgress$
|
|
6920
|
+
enqueueCapturedUpdate(workInProgress$32, update$33);
|
|
6710
6921
|
break a;
|
|
6711
6922
|
case 1:
|
|
6712
6923
|
root = value;
|
|
6713
|
-
var ctor = workInProgress$
|
|
6714
|
-
instance = workInProgress$
|
|
6924
|
+
var ctor = workInProgress$32.type,
|
|
6925
|
+
instance = workInProgress$32.stateNode;
|
|
6715
6926
|
if (
|
|
6716
|
-
0 === (workInProgress$
|
|
6927
|
+
0 === (workInProgress$32.flags & 128) &&
|
|
6717
6928
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
6718
6929
|
(null !== instance &&
|
|
6719
6930
|
"function" === typeof instance.componentDidCatch &&
|
|
6720
6931
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
6721
6932
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
6722
6933
|
) {
|
|
6723
|
-
workInProgress$
|
|
6934
|
+
workInProgress$32.flags |= 32768;
|
|
6724
6935
|
thrownValue &= -thrownValue;
|
|
6725
|
-
workInProgress$
|
|
6726
|
-
var update$
|
|
6727
|
-
workInProgress$
|
|
6936
|
+
workInProgress$32.lanes |= thrownValue;
|
|
6937
|
+
var update$36 = createClassErrorUpdate(
|
|
6938
|
+
workInProgress$32,
|
|
6728
6939
|
root,
|
|
6729
6940
|
thrownValue
|
|
6730
6941
|
);
|
|
6731
|
-
enqueueCapturedUpdate(workInProgress$
|
|
6942
|
+
enqueueCapturedUpdate(workInProgress$32, update$36);
|
|
6732
6943
|
break a;
|
|
6733
6944
|
}
|
|
6734
6945
|
}
|
|
6735
|
-
workInProgress$
|
|
6736
|
-
} while (null !== workInProgress$
|
|
6946
|
+
workInProgress$32 = workInProgress$32.return;
|
|
6947
|
+
} while (null !== workInProgress$32);
|
|
6737
6948
|
}
|
|
6738
6949
|
completeUnitOfWork(erroredWork);
|
|
6739
6950
|
} catch (yetAnotherThrownValue) {
|
|
@@ -6753,7 +6964,7 @@ function pushDispatcher() {
|
|
|
6753
6964
|
}
|
|
6754
6965
|
function renderRootSync(root, lanes) {
|
|
6755
6966
|
var prevExecutionContext = executionContext;
|
|
6756
|
-
executionContext |=
|
|
6967
|
+
executionContext |= 2;
|
|
6757
6968
|
var prevDispatcher = pushDispatcher();
|
|
6758
6969
|
(workInProgressRoot === root && workInProgressRootRenderLanes === lanes) ||
|
|
6759
6970
|
prepareFreshStack(root, lanes);
|
|
@@ -6794,7 +7005,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6794
7005
|
do {
|
|
6795
7006
|
var current = completedWork.alternate;
|
|
6796
7007
|
unitOfWork = completedWork.return;
|
|
6797
|
-
if (0 === (completedWork.flags &
|
|
7008
|
+
if (0 === (completedWork.flags & 16384)) {
|
|
6798
7009
|
if (
|
|
6799
7010
|
((current = completeWork(current, completedWork, subtreeRenderLanes)),
|
|
6800
7011
|
null !== current)
|
|
@@ -6805,12 +7016,12 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6805
7016
|
} else {
|
|
6806
7017
|
current = unwindWork(completedWork);
|
|
6807
7018
|
if (null !== current) {
|
|
6808
|
-
current.flags &=
|
|
7019
|
+
current.flags &= 16383;
|
|
6809
7020
|
workInProgress = current;
|
|
6810
7021
|
return;
|
|
6811
7022
|
}
|
|
6812
7023
|
null !== unitOfWork &&
|
|
6813
|
-
((unitOfWork.flags |=
|
|
7024
|
+
((unitOfWork.flags |= 16384),
|
|
6814
7025
|
(unitOfWork.subtreeFlags = 0),
|
|
6815
7026
|
(unitOfWork.deletions = null));
|
|
6816
7027
|
}
|
|
@@ -6824,19 +7035,22 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6824
7035
|
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
|
|
6825
7036
|
}
|
|
6826
7037
|
function commitRoot(root) {
|
|
6827
|
-
var previousUpdateLanePriority = currentUpdatePriority
|
|
7038
|
+
var previousUpdateLanePriority = currentUpdatePriority,
|
|
7039
|
+
prevTransition = ReactCurrentBatchConfig$2.transition;
|
|
6828
7040
|
try {
|
|
6829
|
-
(
|
|
7041
|
+
(ReactCurrentBatchConfig$2.transition = 0),
|
|
7042
|
+
(currentUpdatePriority = 1),
|
|
6830
7043
|
commitRootImpl(root, previousUpdateLanePriority);
|
|
6831
7044
|
} finally {
|
|
6832
|
-
|
|
7045
|
+
(ReactCurrentBatchConfig$2.transition = prevTransition),
|
|
7046
|
+
(currentUpdatePriority = previousUpdateLanePriority);
|
|
6833
7047
|
}
|
|
6834
7048
|
return null;
|
|
6835
7049
|
}
|
|
6836
7050
|
function commitRootImpl(root, renderPriorityLevel) {
|
|
6837
7051
|
do flushPassiveEffects();
|
|
6838
7052
|
while (null !== rootWithPendingPassiveEffects);
|
|
6839
|
-
if (0 !== (executionContext &
|
|
7053
|
+
if (0 !== (executionContext & 6))
|
|
6840
7054
|
throw Error("Should not already be working.");
|
|
6841
7055
|
var finishedWork = root.finishedWork,
|
|
6842
7056
|
lanes = root.finishedLanes;
|
|
@@ -6858,16 +7072,18 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6858
7072
|
0 === (finishedWork.flags & 1040)) ||
|
|
6859
7073
|
rootDoesHavePassiveEffects ||
|
|
6860
7074
|
((rootDoesHavePassiveEffects = !0),
|
|
6861
|
-
scheduleCallback(NormalPriority, function() {
|
|
7075
|
+
scheduleCallback$1(NormalPriority, function() {
|
|
6862
7076
|
flushPassiveEffects();
|
|
6863
7077
|
return null;
|
|
6864
7078
|
}));
|
|
6865
7079
|
remainingLanes = 0 !== (finishedWork.flags & 8054);
|
|
6866
7080
|
if (0 !== (finishedWork.subtreeFlags & 8054) || remainingLanes) {
|
|
6867
|
-
remainingLanes =
|
|
7081
|
+
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
7082
|
+
ReactCurrentBatchConfig$2.transition = 0;
|
|
7083
|
+
var previousPriority = currentUpdatePriority;
|
|
6868
7084
|
currentUpdatePriority = 1;
|
|
6869
7085
|
var prevExecutionContext = executionContext;
|
|
6870
|
-
executionContext |=
|
|
7086
|
+
executionContext |= 4;
|
|
6871
7087
|
ReactCurrentOwner$2.current = null;
|
|
6872
7088
|
commitBeforeMutationEffects(root, finishedWork);
|
|
6873
7089
|
commitMutationEffects(root, finishedWork);
|
|
@@ -6875,7 +7091,8 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6875
7091
|
commitLayoutEffects(finishedWork, root, lanes);
|
|
6876
7092
|
requestPaint();
|
|
6877
7093
|
executionContext = prevExecutionContext;
|
|
6878
|
-
currentUpdatePriority =
|
|
7094
|
+
currentUpdatePriority = previousPriority;
|
|
7095
|
+
ReactCurrentBatchConfig$2.transition = remainingLanes;
|
|
6879
7096
|
} else root.current = finishedWork;
|
|
6880
7097
|
rootDoesHavePassiveEffects &&
|
|
6881
7098
|
((rootDoesHavePassiveEffects = !1),
|
|
@@ -6883,11 +7100,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6883
7100
|
(pendingPassiveEffectsLanes = lanes));
|
|
6884
7101
|
remainingLanes = root.pendingLanes;
|
|
6885
7102
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
6886
|
-
0 !== (remainingLanes & 1)
|
|
6887
|
-
? root === rootWithNestedUpdates
|
|
6888
|
-
? nestedUpdateCount++
|
|
6889
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
6890
|
-
: (nestedUpdateCount = 0);
|
|
6891
7103
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
6892
7104
|
ensureRootIsScheduled(root, now());
|
|
6893
7105
|
if (hasUncaughtError)
|
|
@@ -6895,27 +7107,37 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6895
7107
|
(root = firstUncaughtError),
|
|
6896
7108
|
(firstUncaughtError = null),
|
|
6897
7109
|
root);
|
|
6898
|
-
|
|
6899
|
-
|
|
7110
|
+
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
7111
|
+
0 !== root.tag &&
|
|
7112
|
+
flushPassiveEffects();
|
|
7113
|
+
remainingLanes = root.pendingLanes;
|
|
7114
|
+
0 !== (remainingLanes & 1)
|
|
7115
|
+
? root === rootWithNestedUpdates
|
|
7116
|
+
? nestedUpdateCount++
|
|
7117
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
7118
|
+
: (nestedUpdateCount = 0);
|
|
7119
|
+
flushSyncCallbacks();
|
|
6900
7120
|
return null;
|
|
6901
7121
|
}
|
|
6902
7122
|
function flushPassiveEffects() {
|
|
6903
|
-
if (
|
|
6904
|
-
var
|
|
7123
|
+
if (null !== rootWithPendingPassiveEffects) {
|
|
7124
|
+
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
|
|
7125
|
+
prevTransition = ReactCurrentBatchConfig$2.transition,
|
|
6905
7126
|
previousPriority = currentUpdatePriority;
|
|
6906
7127
|
try {
|
|
6907
|
-
|
|
7128
|
+
ReactCurrentBatchConfig$2.transition = 0;
|
|
7129
|
+
currentUpdatePriority = 16 > renderPriority ? 16 : renderPriority;
|
|
6908
7130
|
if (null === rootWithPendingPassiveEffects)
|
|
6909
7131
|
var JSCompiler_inline_result = !1;
|
|
6910
7132
|
else {
|
|
6911
|
-
|
|
7133
|
+
renderPriority = rootWithPendingPassiveEffects;
|
|
6912
7134
|
rootWithPendingPassiveEffects = null;
|
|
6913
7135
|
pendingPassiveEffectsLanes = 0;
|
|
6914
|
-
if (0 !== (executionContext &
|
|
7136
|
+
if (0 !== (executionContext & 6))
|
|
6915
7137
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
6916
|
-
|
|
6917
|
-
executionContext |=
|
|
6918
|
-
for (nextEffect =
|
|
7138
|
+
var prevExecutionContext = executionContext;
|
|
7139
|
+
executionContext |= 4;
|
|
7140
|
+
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
6919
7141
|
var fiber = nextEffect,
|
|
6920
7142
|
child = fiber.child;
|
|
6921
7143
|
if (0 !== (nextEffect.flags & 16)) {
|
|
@@ -6929,7 +7151,7 @@ function flushPassiveEffects() {
|
|
|
6929
7151
|
case 0:
|
|
6930
7152
|
case 11:
|
|
6931
7153
|
case 15:
|
|
6932
|
-
commitHookEffectListUnmount(
|
|
7154
|
+
commitHookEffectListUnmount(8, fiber$jscomp$0, fiber);
|
|
6933
7155
|
}
|
|
6934
7156
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
6935
7157
|
if (null !== child$jscomp$0)
|
|
@@ -6940,8 +7162,8 @@ function flushPassiveEffects() {
|
|
|
6940
7162
|
fiber$jscomp$0 = nextEffect;
|
|
6941
7163
|
var sibling = fiber$jscomp$0.sibling,
|
|
6942
7164
|
returnFiber = fiber$jscomp$0.return;
|
|
7165
|
+
detachFiberAfterEffects(fiber$jscomp$0);
|
|
6943
7166
|
if (fiber$jscomp$0 === fiberToDelete) {
|
|
6944
|
-
detachFiberAfterEffects(fiber$jscomp$0);
|
|
6945
7167
|
nextEffect = null;
|
|
6946
7168
|
break;
|
|
6947
7169
|
}
|
|
@@ -6979,7 +7201,7 @@ function flushPassiveEffects() {
|
|
|
6979
7201
|
case 0:
|
|
6980
7202
|
case 11:
|
|
6981
7203
|
case 15:
|
|
6982
|
-
commitHookEffectListUnmount(
|
|
7204
|
+
commitHookEffectListUnmount(9, fiber, fiber.return);
|
|
6983
7205
|
}
|
|
6984
7206
|
var sibling$jscomp$0 = fiber.sibling;
|
|
6985
7207
|
if (null !== sibling$jscomp$0) {
|
|
@@ -6990,7 +7212,7 @@ function flushPassiveEffects() {
|
|
|
6990
7212
|
nextEffect = fiber.return;
|
|
6991
7213
|
}
|
|
6992
7214
|
}
|
|
6993
|
-
var finishedWork =
|
|
7215
|
+
var finishedWork = renderPriority.current;
|
|
6994
7216
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
6995
7217
|
child = nextEffect;
|
|
6996
7218
|
var firstChild = child.child;
|
|
@@ -7005,7 +7227,7 @@ function flushPassiveEffects() {
|
|
|
7005
7227
|
case 0:
|
|
7006
7228
|
case 11:
|
|
7007
7229
|
case 15:
|
|
7008
|
-
commitHookEffectListMount(
|
|
7230
|
+
commitHookEffectListMount(9, deletions);
|
|
7009
7231
|
}
|
|
7010
7232
|
} catch (error) {
|
|
7011
7233
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -7023,13 +7245,21 @@ function flushPassiveEffects() {
|
|
|
7023
7245
|
nextEffect = deletions.return;
|
|
7024
7246
|
}
|
|
7025
7247
|
}
|
|
7026
|
-
executionContext =
|
|
7027
|
-
|
|
7248
|
+
executionContext = prevExecutionContext;
|
|
7249
|
+
flushSyncCallbacks();
|
|
7250
|
+
if (
|
|
7251
|
+
injectedHook &&
|
|
7252
|
+
"function" === typeof injectedHook.onPostCommitFiberRoot
|
|
7253
|
+
)
|
|
7254
|
+
try {
|
|
7255
|
+
injectedHook.onPostCommitFiberRoot(rendererID, renderPriority);
|
|
7256
|
+
} catch (err) {}
|
|
7028
7257
|
JSCompiler_inline_result = !0;
|
|
7029
7258
|
}
|
|
7030
7259
|
return JSCompiler_inline_result;
|
|
7031
7260
|
} finally {
|
|
7032
|
-
currentUpdatePriority = previousPriority
|
|
7261
|
+
(currentUpdatePriority = previousPriority),
|
|
7262
|
+
(ReactCurrentBatchConfig$2.transition = prevTransition);
|
|
7033
7263
|
}
|
|
7034
7264
|
}
|
|
7035
7265
|
return !1;
|
|
@@ -7124,7 +7354,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
|
7124
7354
|
}
|
|
7125
7355
|
var beginWork$1;
|
|
7126
7356
|
beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
7127
|
-
var updateLanes = workInProgress.lanes;
|
|
7128
7357
|
if (null !== current)
|
|
7129
7358
|
if (
|
|
7130
7359
|
current.memoizedProps !== workInProgress.pendingProps ||
|
|
@@ -7132,166 +7361,98 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7132
7361
|
)
|
|
7133
7362
|
didReceiveUpdate = !0;
|
|
7134
7363
|
else {
|
|
7135
|
-
if (
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
pushContextProvider(workInProgress);
|
|
7147
|
-
break;
|
|
7148
|
-
case 4:
|
|
7149
|
-
pushHostContainer(
|
|
7150
|
-
workInProgress,
|
|
7151
|
-
workInProgress.stateNode.containerInfo
|
|
7152
|
-
);
|
|
7153
|
-
break;
|
|
7154
|
-
case 10:
|
|
7155
|
-
updateLanes = workInProgress.type._context;
|
|
7156
|
-
var nextValue = workInProgress.memoizedProps.value;
|
|
7157
|
-
push(valueCursor, updateLanes._currentValue);
|
|
7158
|
-
updateLanes._currentValue = nextValue;
|
|
7159
|
-
break;
|
|
7160
|
-
case 13:
|
|
7161
|
-
if (null !== workInProgress.memoizedState) {
|
|
7162
|
-
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
7163
|
-
return updateSuspenseComponent(
|
|
7164
|
-
current,
|
|
7165
|
-
workInProgress,
|
|
7166
|
-
renderLanes
|
|
7167
|
-
);
|
|
7168
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
7169
|
-
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
7170
|
-
current,
|
|
7171
|
-
workInProgress,
|
|
7172
|
-
renderLanes
|
|
7173
|
-
);
|
|
7174
|
-
return null !== workInProgress ? workInProgress.sibling : null;
|
|
7175
|
-
}
|
|
7176
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
7177
|
-
break;
|
|
7178
|
-
case 19:
|
|
7179
|
-
updateLanes = 0 !== (renderLanes & workInProgress.childLanes);
|
|
7180
|
-
if (0 !== (current.flags & 128)) {
|
|
7181
|
-
if (updateLanes)
|
|
7182
|
-
return updateSuspenseListComponent(
|
|
7183
|
-
current,
|
|
7184
|
-
workInProgress,
|
|
7185
|
-
renderLanes
|
|
7186
|
-
);
|
|
7187
|
-
workInProgress.flags |= 128;
|
|
7188
|
-
}
|
|
7189
|
-
nextValue = workInProgress.memoizedState;
|
|
7190
|
-
null !== nextValue &&
|
|
7191
|
-
((nextValue.rendering = null),
|
|
7192
|
-
(nextValue.tail = null),
|
|
7193
|
-
(nextValue.lastEffect = null));
|
|
7194
|
-
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
7195
|
-
if (updateLanes) break;
|
|
7196
|
-
else return null;
|
|
7197
|
-
case 22:
|
|
7198
|
-
case 23:
|
|
7199
|
-
return (
|
|
7200
|
-
(workInProgress.lanes = 0),
|
|
7201
|
-
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
7202
|
-
);
|
|
7203
|
-
}
|
|
7204
|
-
return bailoutOnAlreadyFinishedWork(
|
|
7205
|
-
current,
|
|
7206
|
-
workInProgress,
|
|
7207
|
-
renderLanes
|
|
7364
|
+
if (
|
|
7365
|
+
0 === (current.lanes & renderLanes) &&
|
|
7366
|
+
0 === (workInProgress.flags & 128)
|
|
7367
|
+
)
|
|
7368
|
+
return (
|
|
7369
|
+
(didReceiveUpdate = !1),
|
|
7370
|
+
attemptEarlyBailoutIfNoScheduledUpdate(
|
|
7371
|
+
current,
|
|
7372
|
+
workInProgress,
|
|
7373
|
+
renderLanes
|
|
7374
|
+
)
|
|
7208
7375
|
);
|
|
7209
|
-
|
|
7210
|
-
didReceiveUpdate = 0 !== (current.flags & 32768) ? !0 : !1;
|
|
7376
|
+
didReceiveUpdate = 0 !== (current.flags & 65536) ? !0 : !1;
|
|
7211
7377
|
}
|
|
7212
7378
|
else didReceiveUpdate = !1;
|
|
7213
7379
|
workInProgress.lanes = 0;
|
|
7214
7380
|
switch (workInProgress.tag) {
|
|
7215
7381
|
case 2:
|
|
7216
|
-
|
|
7382
|
+
var Component = workInProgress.type;
|
|
7217
7383
|
null !== current &&
|
|
7218
7384
|
((current.alternate = null),
|
|
7219
7385
|
(workInProgress.alternate = null),
|
|
7220
7386
|
(workInProgress.flags |= 2));
|
|
7221
7387
|
current = workInProgress.pendingProps;
|
|
7222
|
-
|
|
7388
|
+
var context = getMaskedContext(
|
|
7389
|
+
workInProgress,
|
|
7390
|
+
contextStackCursor.current
|
|
7391
|
+
);
|
|
7223
7392
|
prepareToReadContext(workInProgress, renderLanes);
|
|
7224
|
-
|
|
7393
|
+
context = renderWithHooks(
|
|
7225
7394
|
null,
|
|
7226
7395
|
workInProgress,
|
|
7227
|
-
|
|
7396
|
+
Component,
|
|
7228
7397
|
current,
|
|
7229
|
-
|
|
7398
|
+
context,
|
|
7230
7399
|
renderLanes
|
|
7231
7400
|
);
|
|
7232
7401
|
workInProgress.flags |= 1;
|
|
7233
7402
|
if (
|
|
7234
|
-
"object" === typeof
|
|
7235
|
-
null !==
|
|
7236
|
-
"function" === typeof
|
|
7237
|
-
void 0 ===
|
|
7403
|
+
"object" === typeof context &&
|
|
7404
|
+
null !== context &&
|
|
7405
|
+
"function" === typeof context.render &&
|
|
7406
|
+
void 0 === context.$$typeof
|
|
7238
7407
|
) {
|
|
7239
7408
|
workInProgress.tag = 1;
|
|
7240
7409
|
workInProgress.memoizedState = null;
|
|
7241
7410
|
workInProgress.updateQueue = null;
|
|
7242
|
-
if (isContextProvider(
|
|
7411
|
+
if (isContextProvider(Component)) {
|
|
7243
7412
|
var hasContext = !0;
|
|
7244
7413
|
pushContextProvider(workInProgress);
|
|
7245
7414
|
} else hasContext = !1;
|
|
7246
7415
|
workInProgress.memoizedState =
|
|
7247
|
-
null !==
|
|
7248
|
-
?
|
|
7416
|
+
null !== context.state && void 0 !== context.state
|
|
7417
|
+
? context.state
|
|
7249
7418
|
: null;
|
|
7250
7419
|
initializeUpdateQueue(workInProgress);
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
updateLanes,
|
|
7256
|
-
getDerivedStateFromProps,
|
|
7257
|
-
current
|
|
7258
|
-
);
|
|
7259
|
-
nextValue.updater = classComponentUpdater;
|
|
7260
|
-
workInProgress.stateNode = nextValue;
|
|
7261
|
-
nextValue._reactInternals = workInProgress;
|
|
7262
|
-
mountClassInstance(workInProgress, updateLanes, current, renderLanes);
|
|
7420
|
+
context.updater = classComponentUpdater;
|
|
7421
|
+
workInProgress.stateNode = context;
|
|
7422
|
+
context._reactInternals = workInProgress;
|
|
7423
|
+
mountClassInstance(workInProgress, Component, current, renderLanes);
|
|
7263
7424
|
workInProgress = finishClassComponent(
|
|
7264
7425
|
null,
|
|
7265
7426
|
workInProgress,
|
|
7266
|
-
|
|
7427
|
+
Component,
|
|
7267
7428
|
!0,
|
|
7268
7429
|
hasContext,
|
|
7269
7430
|
renderLanes
|
|
7270
7431
|
);
|
|
7271
7432
|
} else
|
|
7272
7433
|
(workInProgress.tag = 0),
|
|
7273
|
-
reconcileChildren(null, workInProgress,
|
|
7434
|
+
reconcileChildren(null, workInProgress, context, renderLanes),
|
|
7274
7435
|
(workInProgress = workInProgress.child);
|
|
7275
7436
|
return workInProgress;
|
|
7276
7437
|
case 16:
|
|
7277
|
-
|
|
7438
|
+
Component = workInProgress.elementType;
|
|
7278
7439
|
a: {
|
|
7279
7440
|
null !== current &&
|
|
7280
7441
|
((current.alternate = null),
|
|
7281
7442
|
(workInProgress.alternate = null),
|
|
7282
7443
|
(workInProgress.flags |= 2));
|
|
7283
7444
|
current = workInProgress.pendingProps;
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
workInProgress.type =
|
|
7287
|
-
|
|
7288
|
-
current = resolveDefaultProps(
|
|
7289
|
-
switch (
|
|
7445
|
+
context = Component._init;
|
|
7446
|
+
Component = context(Component._payload);
|
|
7447
|
+
workInProgress.type = Component;
|
|
7448
|
+
context = workInProgress.tag = resolveLazyComponentTag(Component);
|
|
7449
|
+
current = resolveDefaultProps(Component, current);
|
|
7450
|
+
switch (context) {
|
|
7290
7451
|
case 0:
|
|
7291
7452
|
workInProgress = updateFunctionComponent(
|
|
7292
7453
|
null,
|
|
7293
7454
|
workInProgress,
|
|
7294
|
-
|
|
7455
|
+
Component,
|
|
7295
7456
|
current,
|
|
7296
7457
|
renderLanes
|
|
7297
7458
|
);
|
|
@@ -7300,7 +7461,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7300
7461
|
workInProgress = updateClassComponent(
|
|
7301
7462
|
null,
|
|
7302
7463
|
workInProgress,
|
|
7303
|
-
|
|
7464
|
+
Component,
|
|
7304
7465
|
current,
|
|
7305
7466
|
renderLanes
|
|
7306
7467
|
);
|
|
@@ -7309,7 +7470,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7309
7470
|
workInProgress = updateForwardRef(
|
|
7310
7471
|
null,
|
|
7311
7472
|
workInProgress,
|
|
7312
|
-
|
|
7473
|
+
Component,
|
|
7313
7474
|
current,
|
|
7314
7475
|
renderLanes
|
|
7315
7476
|
);
|
|
@@ -7318,79 +7479,78 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7318
7479
|
workInProgress = updateMemoComponent(
|
|
7319
7480
|
null,
|
|
7320
7481
|
workInProgress,
|
|
7321
|
-
|
|
7322
|
-
resolveDefaultProps(
|
|
7323
|
-
updateLanes,
|
|
7482
|
+
Component,
|
|
7483
|
+
resolveDefaultProps(Component.type, current),
|
|
7324
7484
|
renderLanes
|
|
7325
7485
|
);
|
|
7326
7486
|
break a;
|
|
7327
7487
|
}
|
|
7328
7488
|
throw Error(
|
|
7329
7489
|
"Element type is invalid. Received a promise that resolves to: " +
|
|
7330
|
-
|
|
7490
|
+
Component +
|
|
7331
7491
|
". Lazy element type must resolve to a class or function."
|
|
7332
7492
|
);
|
|
7333
7493
|
}
|
|
7334
7494
|
return workInProgress;
|
|
7335
7495
|
case 0:
|
|
7336
7496
|
return (
|
|
7337
|
-
(
|
|
7338
|
-
(
|
|
7339
|
-
(
|
|
7340
|
-
workInProgress.elementType ===
|
|
7341
|
-
?
|
|
7342
|
-
: resolveDefaultProps(
|
|
7497
|
+
(Component = workInProgress.type),
|
|
7498
|
+
(context = workInProgress.pendingProps),
|
|
7499
|
+
(context =
|
|
7500
|
+
workInProgress.elementType === Component
|
|
7501
|
+
? context
|
|
7502
|
+
: resolveDefaultProps(Component, context)),
|
|
7343
7503
|
updateFunctionComponent(
|
|
7344
7504
|
current,
|
|
7345
7505
|
workInProgress,
|
|
7346
|
-
|
|
7347
|
-
|
|
7506
|
+
Component,
|
|
7507
|
+
context,
|
|
7348
7508
|
renderLanes
|
|
7349
7509
|
)
|
|
7350
7510
|
);
|
|
7351
7511
|
case 1:
|
|
7352
7512
|
return (
|
|
7353
|
-
(
|
|
7354
|
-
(
|
|
7355
|
-
(
|
|
7356
|
-
workInProgress.elementType ===
|
|
7357
|
-
?
|
|
7358
|
-
: resolveDefaultProps(
|
|
7513
|
+
(Component = workInProgress.type),
|
|
7514
|
+
(context = workInProgress.pendingProps),
|
|
7515
|
+
(context =
|
|
7516
|
+
workInProgress.elementType === Component
|
|
7517
|
+
? context
|
|
7518
|
+
: resolveDefaultProps(Component, context)),
|
|
7359
7519
|
updateClassComponent(
|
|
7360
7520
|
current,
|
|
7361
7521
|
workInProgress,
|
|
7362
|
-
|
|
7363
|
-
|
|
7522
|
+
Component,
|
|
7523
|
+
context,
|
|
7364
7524
|
renderLanes
|
|
7365
7525
|
)
|
|
7366
7526
|
);
|
|
7367
7527
|
case 3:
|
|
7368
7528
|
pushHostRootContext(workInProgress);
|
|
7369
|
-
|
|
7370
|
-
if (null === current || null ===
|
|
7529
|
+
Component = workInProgress.updateQueue;
|
|
7530
|
+
if (null === current || null === Component)
|
|
7371
7531
|
throw Error(
|
|
7372
7532
|
"If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue."
|
|
7373
7533
|
);
|
|
7374
|
-
|
|
7375
|
-
|
|
7534
|
+
context = workInProgress.pendingProps;
|
|
7535
|
+
Component = workInProgress.memoizedState.element;
|
|
7376
7536
|
cloneUpdateQueue(current, workInProgress);
|
|
7377
|
-
processUpdateQueue(workInProgress,
|
|
7378
|
-
|
|
7379
|
-
|
|
7537
|
+
processUpdateQueue(workInProgress, context, null, renderLanes);
|
|
7538
|
+
context = workInProgress.memoizedState.element;
|
|
7539
|
+
context === Component
|
|
7380
7540
|
? (workInProgress = bailoutOnAlreadyFinishedWork(
|
|
7381
7541
|
current,
|
|
7382
7542
|
workInProgress,
|
|
7383
7543
|
renderLanes
|
|
7384
7544
|
))
|
|
7385
|
-
: (reconcileChildren(current, workInProgress,
|
|
7545
|
+
: (reconcileChildren(current, workInProgress, context, renderLanes),
|
|
7386
7546
|
(workInProgress = workInProgress.child));
|
|
7387
7547
|
return workInProgress;
|
|
7388
7548
|
case 5:
|
|
7389
7549
|
return (
|
|
7390
7550
|
pushHostContext(workInProgress),
|
|
7391
|
-
(
|
|
7392
|
-
markRef(current, workInProgress),
|
|
7393
|
-
reconcileChildren(current, workInProgress,
|
|
7551
|
+
(Component = workInProgress.pendingProps.children),
|
|
7552
|
+
markRef$1(current, workInProgress),
|
|
7553
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7394
7554
|
workInProgress.child
|
|
7395
7555
|
);
|
|
7396
7556
|
case 6:
|
|
@@ -7403,35 +7563,30 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7403
7563
|
workInProgress,
|
|
7404
7564
|
workInProgress.stateNode.containerInfo
|
|
7405
7565
|
),
|
|
7406
|
-
(
|
|
7566
|
+
(Component = workInProgress.pendingProps),
|
|
7407
7567
|
null === current
|
|
7408
7568
|
? (workInProgress.child = reconcileChildFibers(
|
|
7409
7569
|
workInProgress,
|
|
7410
7570
|
null,
|
|
7411
|
-
|
|
7571
|
+
Component,
|
|
7412
7572
|
renderLanes
|
|
7413
7573
|
))
|
|
7414
|
-
: reconcileChildren(
|
|
7415
|
-
current,
|
|
7416
|
-
workInProgress,
|
|
7417
|
-
updateLanes,
|
|
7418
|
-
renderLanes
|
|
7419
|
-
),
|
|
7574
|
+
: reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7420
7575
|
workInProgress.child
|
|
7421
7576
|
);
|
|
7422
7577
|
case 11:
|
|
7423
7578
|
return (
|
|
7424
|
-
(
|
|
7425
|
-
(
|
|
7426
|
-
(
|
|
7427
|
-
workInProgress.elementType ===
|
|
7428
|
-
?
|
|
7429
|
-
: resolveDefaultProps(
|
|
7579
|
+
(Component = workInProgress.type),
|
|
7580
|
+
(context = workInProgress.pendingProps),
|
|
7581
|
+
(context =
|
|
7582
|
+
workInProgress.elementType === Component
|
|
7583
|
+
? context
|
|
7584
|
+
: resolveDefaultProps(Component, context)),
|
|
7430
7585
|
updateForwardRef(
|
|
7431
7586
|
current,
|
|
7432
7587
|
workInProgress,
|
|
7433
|
-
|
|
7434
|
-
|
|
7588
|
+
Component,
|
|
7589
|
+
context,
|
|
7435
7590
|
renderLanes
|
|
7436
7591
|
)
|
|
7437
7592
|
);
|
|
@@ -7467,16 +7622,16 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7467
7622
|
);
|
|
7468
7623
|
case 10:
|
|
7469
7624
|
a: {
|
|
7470
|
-
|
|
7471
|
-
|
|
7625
|
+
Component = workInProgress.type._context;
|
|
7626
|
+
context = workInProgress.pendingProps;
|
|
7472
7627
|
hasContext = workInProgress.memoizedProps;
|
|
7473
|
-
|
|
7474
|
-
push(valueCursor,
|
|
7475
|
-
|
|
7628
|
+
var newValue = context.value;
|
|
7629
|
+
push(valueCursor, Component._currentValue);
|
|
7630
|
+
Component._currentValue = newValue;
|
|
7476
7631
|
if (null !== hasContext)
|
|
7477
|
-
if (objectIs(hasContext.value,
|
|
7632
|
+
if (objectIs(hasContext.value, newValue)) {
|
|
7478
7633
|
if (
|
|
7479
|
-
hasContext.children ===
|
|
7634
|
+
hasContext.children === context.children &&
|
|
7480
7635
|
!didPerformWorkStackCursor.current
|
|
7481
7636
|
) {
|
|
7482
7637
|
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
@@ -7488,25 +7643,24 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7488
7643
|
}
|
|
7489
7644
|
} else
|
|
7490
7645
|
for (
|
|
7491
|
-
|
|
7492
|
-
null !==
|
|
7493
|
-
|
|
7494
|
-
null !== getDerivedStateFromProps;
|
|
7646
|
+
newValue = workInProgress.child,
|
|
7647
|
+
null !== newValue && (newValue.return = workInProgress);
|
|
7648
|
+
null !== newValue;
|
|
7495
7649
|
|
|
7496
7650
|
) {
|
|
7497
|
-
var list =
|
|
7651
|
+
var list = newValue.dependencies;
|
|
7498
7652
|
if (null !== list) {
|
|
7499
|
-
hasContext =
|
|
7653
|
+
hasContext = newValue.child;
|
|
7500
7654
|
for (
|
|
7501
7655
|
var dependency = list.firstContext;
|
|
7502
7656
|
null !== dependency;
|
|
7503
7657
|
|
|
7504
7658
|
) {
|
|
7505
|
-
if (dependency.context ===
|
|
7506
|
-
if (1 ===
|
|
7659
|
+
if (dependency.context === Component) {
|
|
7660
|
+
if (1 === newValue.tag) {
|
|
7507
7661
|
dependency = createUpdate(-1, renderLanes & -renderLanes);
|
|
7508
7662
|
dependency.tag = 2;
|
|
7509
|
-
var updateQueue =
|
|
7663
|
+
var updateQueue = newValue.updateQueue;
|
|
7510
7664
|
if (null !== updateQueue) {
|
|
7511
7665
|
updateQueue = updateQueue.shared;
|
|
7512
7666
|
var pending = updateQueue.pending;
|
|
@@ -7517,13 +7671,10 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7517
7671
|
updateQueue.pending = dependency;
|
|
7518
7672
|
}
|
|
7519
7673
|
}
|
|
7520
|
-
|
|
7521
|
-
dependency =
|
|
7674
|
+
newValue.lanes |= renderLanes;
|
|
7675
|
+
dependency = newValue.alternate;
|
|
7522
7676
|
null !== dependency && (dependency.lanes |= renderLanes);
|
|
7523
|
-
scheduleWorkOnParentPath(
|
|
7524
|
-
getDerivedStateFromProps.return,
|
|
7525
|
-
renderLanes
|
|
7526
|
-
);
|
|
7677
|
+
scheduleWorkOnParentPath(newValue.return, renderLanes);
|
|
7527
7678
|
list.lanes |= renderLanes;
|
|
7528
7679
|
break;
|
|
7529
7680
|
}
|
|
@@ -7531,37 +7682,32 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7531
7682
|
}
|
|
7532
7683
|
} else
|
|
7533
7684
|
hasContext =
|
|
7534
|
-
10 ===
|
|
7535
|
-
?
|
|
7685
|
+
10 === newValue.tag
|
|
7686
|
+
? newValue.type === workInProgress.type
|
|
7536
7687
|
? null
|
|
7537
|
-
:
|
|
7538
|
-
:
|
|
7539
|
-
if (null !== hasContext)
|
|
7540
|
-
hasContext.return = getDerivedStateFromProps;
|
|
7688
|
+
: newValue.child
|
|
7689
|
+
: newValue.child;
|
|
7690
|
+
if (null !== hasContext) hasContext.return = newValue;
|
|
7541
7691
|
else
|
|
7542
|
-
for (
|
|
7543
|
-
hasContext = getDerivedStateFromProps;
|
|
7544
|
-
null !== hasContext;
|
|
7545
|
-
|
|
7546
|
-
) {
|
|
7692
|
+
for (hasContext = newValue; null !== hasContext; ) {
|
|
7547
7693
|
if (hasContext === workInProgress) {
|
|
7548
7694
|
hasContext = null;
|
|
7549
7695
|
break;
|
|
7550
7696
|
}
|
|
7551
|
-
|
|
7552
|
-
if (null !==
|
|
7553
|
-
|
|
7554
|
-
hasContext =
|
|
7697
|
+
newValue = hasContext.sibling;
|
|
7698
|
+
if (null !== newValue) {
|
|
7699
|
+
newValue.return = hasContext.return;
|
|
7700
|
+
hasContext = newValue;
|
|
7555
7701
|
break;
|
|
7556
7702
|
}
|
|
7557
7703
|
hasContext = hasContext.return;
|
|
7558
7704
|
}
|
|
7559
|
-
|
|
7705
|
+
newValue = hasContext;
|
|
7560
7706
|
}
|
|
7561
7707
|
reconcileChildren(
|
|
7562
7708
|
current,
|
|
7563
7709
|
workInProgress,
|
|
7564
|
-
|
|
7710
|
+
context.children,
|
|
7565
7711
|
renderLanes
|
|
7566
7712
|
);
|
|
7567
7713
|
workInProgress = workInProgress.child;
|
|
@@ -7569,29 +7715,25 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7569
7715
|
return workInProgress;
|
|
7570
7716
|
case 9:
|
|
7571
7717
|
return (
|
|
7572
|
-
(
|
|
7573
|
-
(
|
|
7718
|
+
(context = workInProgress.type),
|
|
7719
|
+
(Component = workInProgress.pendingProps.children),
|
|
7574
7720
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7575
|
-
(
|
|
7576
|
-
(
|
|
7721
|
+
(context = readContext(context)),
|
|
7722
|
+
(Component = Component(context)),
|
|
7577
7723
|
(workInProgress.flags |= 1),
|
|
7578
|
-
reconcileChildren(current, workInProgress,
|
|
7724
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7579
7725
|
workInProgress.child
|
|
7580
7726
|
);
|
|
7581
7727
|
case 14:
|
|
7582
7728
|
return (
|
|
7583
|
-
(
|
|
7584
|
-
(
|
|
7585
|
-
|
|
7586
|
-
workInProgress.pendingProps
|
|
7587
|
-
)),
|
|
7588
|
-
(hasContext = resolveDefaultProps(nextValue.type, hasContext)),
|
|
7729
|
+
(Component = workInProgress.type),
|
|
7730
|
+
(context = resolveDefaultProps(Component, workInProgress.pendingProps)),
|
|
7731
|
+
(context = resolveDefaultProps(Component.type, context)),
|
|
7589
7732
|
updateMemoComponent(
|
|
7590
7733
|
current,
|
|
7591
7734
|
workInProgress,
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
updateLanes,
|
|
7735
|
+
Component,
|
|
7736
|
+
context,
|
|
7595
7737
|
renderLanes
|
|
7596
7738
|
)
|
|
7597
7739
|
);
|
|
@@ -7601,32 +7743,31 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7601
7743
|
workInProgress,
|
|
7602
7744
|
workInProgress.type,
|
|
7603
7745
|
workInProgress.pendingProps,
|
|
7604
|
-
updateLanes,
|
|
7605
7746
|
renderLanes
|
|
7606
7747
|
);
|
|
7607
7748
|
case 17:
|
|
7608
7749
|
return (
|
|
7609
|
-
(
|
|
7610
|
-
(
|
|
7611
|
-
(
|
|
7612
|
-
workInProgress.elementType ===
|
|
7613
|
-
?
|
|
7614
|
-
: resolveDefaultProps(
|
|
7750
|
+
(Component = workInProgress.type),
|
|
7751
|
+
(context = workInProgress.pendingProps),
|
|
7752
|
+
(context =
|
|
7753
|
+
workInProgress.elementType === Component
|
|
7754
|
+
? context
|
|
7755
|
+
: resolveDefaultProps(Component, context)),
|
|
7615
7756
|
null !== current &&
|
|
7616
7757
|
((current.alternate = null),
|
|
7617
7758
|
(workInProgress.alternate = null),
|
|
7618
7759
|
(workInProgress.flags |= 2)),
|
|
7619
7760
|
(workInProgress.tag = 1),
|
|
7620
|
-
isContextProvider(
|
|
7761
|
+
isContextProvider(Component)
|
|
7621
7762
|
? ((current = !0), pushContextProvider(workInProgress))
|
|
7622
7763
|
: (current = !1),
|
|
7623
7764
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7624
|
-
constructClassInstance(workInProgress,
|
|
7625
|
-
mountClassInstance(workInProgress,
|
|
7765
|
+
constructClassInstance(workInProgress, Component, context),
|
|
7766
|
+
mountClassInstance(workInProgress, Component, context, renderLanes),
|
|
7626
7767
|
finishClassComponent(
|
|
7627
7768
|
null,
|
|
7628
7769
|
workInProgress,
|
|
7629
|
-
|
|
7770
|
+
Component,
|
|
7630
7771
|
!0,
|
|
7631
7772
|
current,
|
|
7632
7773
|
renderLanes
|
|
@@ -7645,6 +7786,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7645
7786
|
"). This error is likely caused by a bug in React. Please file an issue."
|
|
7646
7787
|
);
|
|
7647
7788
|
};
|
|
7789
|
+
function scheduleCallback$1(priorityLevel, callback) {
|
|
7790
|
+
return scheduleCallback(priorityLevel, callback);
|
|
7791
|
+
}
|
|
7648
7792
|
function FiberNode(tag, pendingProps, key, mode) {
|
|
7649
7793
|
this.tag = tag;
|
|
7650
7794
|
this.key = key;
|
|
@@ -7695,7 +7839,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7695
7839
|
(workInProgress.flags = 0),
|
|
7696
7840
|
(workInProgress.subtreeFlags = 0),
|
|
7697
7841
|
(workInProgress.deletions = null));
|
|
7698
|
-
workInProgress.flags = current.flags &
|
|
7842
|
+
workInProgress.flags = current.flags & 3670016;
|
|
7699
7843
|
workInProgress.childLanes = current.childLanes;
|
|
7700
7844
|
workInProgress.lanes = current.lanes;
|
|
7701
7845
|
workInProgress.child = current.child;
|
|
@@ -7734,10 +7878,7 @@ function createFiberFromTypeAndProps(
|
|
|
7734
7878
|
break;
|
|
7735
7879
|
case REACT_STRICT_MODE_TYPE:
|
|
7736
7880
|
fiberTag = 8;
|
|
7737
|
-
|
|
7738
|
-
(null == pendingProps.unstable_level
|
|
7739
|
-
? 1
|
|
7740
|
-
: pendingProps.unstable_level) && (mode |= 8);
|
|
7881
|
+
mode |= 8;
|
|
7741
7882
|
break;
|
|
7742
7883
|
case REACT_PROFILER_TYPE:
|
|
7743
7884
|
return (
|
|
@@ -7843,7 +7984,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
7843
7984
|
this.callbackPriority = 0;
|
|
7844
7985
|
this.eventTimes = createLaneMap(0);
|
|
7845
7986
|
this.expirationTimes = createLaneMap(-1);
|
|
7846
|
-
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
7987
|
+
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
7847
7988
|
this.entanglements = createLaneMap(0);
|
|
7848
7989
|
}
|
|
7849
7990
|
function createPortal(children, containerInfo, implementation) {
|
|
@@ -7933,6 +8074,95 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
7933
8074
|
function emptyFindFiberByHostInstance() {
|
|
7934
8075
|
return null;
|
|
7935
8076
|
}
|
|
8077
|
+
var emptyObject$1 = {},
|
|
8078
|
+
createHierarchy,
|
|
8079
|
+
getHostNode,
|
|
8080
|
+
getHostProps,
|
|
8081
|
+
lastNonHostInstance,
|
|
8082
|
+
getOwnerHierarchy,
|
|
8083
|
+
traverseOwnerTreeUp;
|
|
8084
|
+
createHierarchy = function(fiberHierarchy) {
|
|
8085
|
+
return fiberHierarchy.map(function(fiber) {
|
|
8086
|
+
return {
|
|
8087
|
+
name: getComponentNameFromType(fiber.type),
|
|
8088
|
+
getInspectorData: function(findNodeHandle) {
|
|
8089
|
+
return {
|
|
8090
|
+
props: getHostProps(fiber),
|
|
8091
|
+
source: fiber._debugSource,
|
|
8092
|
+
measure: function(callback) {
|
|
8093
|
+
var hostFiber = findCurrentHostFiber(fiber);
|
|
8094
|
+
if (
|
|
8095
|
+
(hostFiber =
|
|
8096
|
+
null != hostFiber &&
|
|
8097
|
+
null !== hostFiber.stateNode &&
|
|
8098
|
+
hostFiber.stateNode.node)
|
|
8099
|
+
)
|
|
8100
|
+
nativeFabricUIManager.measure(hostFiber, callback);
|
|
8101
|
+
else
|
|
8102
|
+
return ReactNativePrivateInterface.UIManager.measure(
|
|
8103
|
+
getHostNode(fiber, findNodeHandle),
|
|
8104
|
+
callback
|
|
8105
|
+
);
|
|
8106
|
+
}
|
|
8107
|
+
};
|
|
8108
|
+
}
|
|
8109
|
+
};
|
|
8110
|
+
});
|
|
8111
|
+
};
|
|
8112
|
+
getHostNode = function(fiber, findNodeHandle) {
|
|
8113
|
+
for (var hostNode; fiber; ) {
|
|
8114
|
+
null !== fiber.stateNode &&
|
|
8115
|
+
5 === fiber.tag &&
|
|
8116
|
+
(hostNode = findNodeHandle(fiber.stateNode));
|
|
8117
|
+
if (hostNode) return hostNode;
|
|
8118
|
+
fiber = fiber.child;
|
|
8119
|
+
}
|
|
8120
|
+
return null;
|
|
8121
|
+
};
|
|
8122
|
+
getHostProps = function(fiber) {
|
|
8123
|
+
return (fiber = findCurrentHostFiber(fiber))
|
|
8124
|
+
? fiber.memoizedProps || emptyObject$1
|
|
8125
|
+
: emptyObject$1;
|
|
8126
|
+
};
|
|
8127
|
+
exports.getInspectorDataForInstance = function(closestInstance) {
|
|
8128
|
+
if (!closestInstance)
|
|
8129
|
+
return {
|
|
8130
|
+
hierarchy: [],
|
|
8131
|
+
props: emptyObject$1,
|
|
8132
|
+
selectedIndex: null,
|
|
8133
|
+
source: null
|
|
8134
|
+
};
|
|
8135
|
+
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
|
|
8136
|
+
var fiberHierarchy = getOwnerHierarchy(closestInstance),
|
|
8137
|
+
instance = lastNonHostInstance(fiberHierarchy);
|
|
8138
|
+
closestInstance = createHierarchy(fiberHierarchy);
|
|
8139
|
+
var props = getHostProps(instance),
|
|
8140
|
+
source = instance._debugSource;
|
|
8141
|
+
fiberHierarchy = fiberHierarchy.indexOf(instance);
|
|
8142
|
+
return {
|
|
8143
|
+
hierarchy: closestInstance,
|
|
8144
|
+
props: props,
|
|
8145
|
+
selectedIndex: fiberHierarchy,
|
|
8146
|
+
source: source
|
|
8147
|
+
};
|
|
8148
|
+
};
|
|
8149
|
+
getOwnerHierarchy = function(instance) {
|
|
8150
|
+
var hierarchy = [];
|
|
8151
|
+
traverseOwnerTreeUp(hierarchy, instance);
|
|
8152
|
+
return hierarchy;
|
|
8153
|
+
};
|
|
8154
|
+
lastNonHostInstance = function(hierarchy) {
|
|
8155
|
+
for (var i = hierarchy.length - 1; 1 < i; i--) {
|
|
8156
|
+
var instance = hierarchy[i];
|
|
8157
|
+
if (5 !== instance.tag) return instance;
|
|
8158
|
+
}
|
|
8159
|
+
return hierarchy[0];
|
|
8160
|
+
};
|
|
8161
|
+
traverseOwnerTreeUp = function(hierarchy, instance) {
|
|
8162
|
+
instance &&
|
|
8163
|
+
(hierarchy.unshift(instance),
|
|
8164
|
+
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
|
|
8165
|
+
};
|
|
7936
8166
|
function findNodeHandle(componentOrHandle) {
|
|
7937
8167
|
if (null == componentOrHandle) return null;
|
|
7938
8168
|
if ("number" === typeof componentOrHandle) return componentOrHandle;
|
|
@@ -7962,14 +8192,14 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
7962
8192
|
(executionContext = prevExecutionContext),
|
|
7963
8193
|
0 === executionContext &&
|
|
7964
8194
|
((workInProgressRootRenderTargetTime = now() + 500),
|
|
7965
|
-
|
|
8195
|
+
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
7966
8196
|
}
|
|
7967
8197
|
};
|
|
7968
8198
|
var roots = new Map(),
|
|
7969
|
-
devToolsConfig$jscomp$
|
|
8199
|
+
devToolsConfig$jscomp$inline_986 = {
|
|
7970
8200
|
findFiberByHostInstance: getInstanceFromTag,
|
|
7971
8201
|
bundleType: 0,
|
|
7972
|
-
version: "
|
|
8202
|
+
version: "18.0.0-e8feb11b6-20210915",
|
|
7973
8203
|
rendererPackageName: "react-native-renderer",
|
|
7974
8204
|
rendererConfig: {
|
|
7975
8205
|
getInspectorDataForViewTag: function() {
|
|
@@ -7984,17 +8214,18 @@ var roots = new Map(),
|
|
|
7984
8214
|
}.bind(null, findNodeHandle)
|
|
7985
8215
|
}
|
|
7986
8216
|
};
|
|
7987
|
-
var internals$jscomp$
|
|
7988
|
-
bundleType: devToolsConfig$jscomp$
|
|
7989
|
-
version: devToolsConfig$jscomp$
|
|
7990
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
7991
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8217
|
+
var internals$jscomp$inline_1239 = {
|
|
8218
|
+
bundleType: devToolsConfig$jscomp$inline_986.bundleType,
|
|
8219
|
+
version: devToolsConfig$jscomp$inline_986.version,
|
|
8220
|
+
rendererPackageName: devToolsConfig$jscomp$inline_986.rendererPackageName,
|
|
8221
|
+
rendererConfig: devToolsConfig$jscomp$inline_986.rendererConfig,
|
|
7992
8222
|
overrideHookState: null,
|
|
7993
8223
|
overrideHookStateDeletePath: null,
|
|
7994
8224
|
overrideHookStateRenamePath: null,
|
|
7995
8225
|
overrideProps: null,
|
|
7996
8226
|
overridePropsDeletePath: null,
|
|
7997
8227
|
overridePropsRenamePath: null,
|
|
8228
|
+
setErrorHandler: null,
|
|
7998
8229
|
setSuspenseHandler: null,
|
|
7999
8230
|
scheduleUpdate: null,
|
|
8000
8231
|
currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher,
|
|
@@ -8003,25 +8234,27 @@ var internals$jscomp$inline_1234 = {
|
|
|
8003
8234
|
return null === fiber ? null : fiber.stateNode;
|
|
8004
8235
|
},
|
|
8005
8236
|
findFiberByHostInstance:
|
|
8006
|
-
devToolsConfig$jscomp$
|
|
8237
|
+
devToolsConfig$jscomp$inline_986.findFiberByHostInstance ||
|
|
8007
8238
|
emptyFindFiberByHostInstance,
|
|
8008
8239
|
findHostInstancesForRefresh: null,
|
|
8009
8240
|
scheduleRefresh: null,
|
|
8010
8241
|
scheduleRoot: null,
|
|
8011
8242
|
setRefreshHandler: null,
|
|
8012
|
-
getCurrentFiber: null
|
|
8243
|
+
getCurrentFiber: null,
|
|
8244
|
+
getIsStrictMode: null,
|
|
8245
|
+
reconcilerVersion: "18.0.0-e8feb11b6-20210915"
|
|
8013
8246
|
};
|
|
8014
8247
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8015
|
-
var hook$jscomp$
|
|
8248
|
+
var hook$jscomp$inline_1240 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8016
8249
|
if (
|
|
8017
|
-
!hook$jscomp$
|
|
8018
|
-
hook$jscomp$
|
|
8250
|
+
!hook$jscomp$inline_1240.isDisabled &&
|
|
8251
|
+
hook$jscomp$inline_1240.supportsFiber
|
|
8019
8252
|
)
|
|
8020
8253
|
try {
|
|
8021
|
-
(rendererID = hook$jscomp$
|
|
8022
|
-
internals$jscomp$
|
|
8254
|
+
(rendererID = hook$jscomp$inline_1240.inject(
|
|
8255
|
+
internals$jscomp$inline_1239
|
|
8023
8256
|
)),
|
|
8024
|
-
(injectedHook = hook$jscomp$
|
|
8257
|
+
(injectedHook = hook$jscomp$inline_1240);
|
|
8025
8258
|
} catch (err) {}
|
|
8026
8259
|
}
|
|
8027
8260
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
@@ -8041,12 +8274,10 @@ exports.createPortal = function(children, containerTag) {
|
|
|
8041
8274
|
};
|
|
8042
8275
|
exports.dispatchCommand = function(handle, command, args) {
|
|
8043
8276
|
null != handle._nativeTag &&
|
|
8044
|
-
(handle._internalInstanceHandle
|
|
8045
|
-
?
|
|
8046
|
-
|
|
8047
|
-
command,
|
|
8048
|
-
args
|
|
8049
|
-
)
|
|
8277
|
+
(null != handle._internalInstanceHandle
|
|
8278
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8279
|
+
null != handle &&
|
|
8280
|
+
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
|
|
8050
8281
|
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
|
|
8051
8282
|
handle._nativeTag,
|
|
8052
8283
|
command,
|
|
@@ -8091,11 +8322,10 @@ exports.render = function(element, containerTag, callback) {
|
|
|
8091
8322
|
};
|
|
8092
8323
|
exports.sendAccessibilityEvent = function(handle, eventType) {
|
|
8093
8324
|
null != handle._nativeTag &&
|
|
8094
|
-
(handle._internalInstanceHandle
|
|
8095
|
-
?
|
|
8096
|
-
|
|
8097
|
-
eventType
|
|
8098
|
-
)
|
|
8325
|
+
(null != handle._internalInstanceHandle
|
|
8326
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8327
|
+
null != handle &&
|
|
8328
|
+
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
|
|
8099
8329
|
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
|
|
8100
8330
|
handle._nativeTag,
|
|
8101
8331
|
eventType
|