react-native-macos 0.0.0-cb5eaa9e1 → 0.0.0-cd63d4c50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +1 -1
- package/Libraries/Alert/Alert.js +117 -8
- package/Libraries/Alert/NativeAlertManager.js +3 -21
- package/Libraries/Alert/RCTAlertManager.macos.js +1 -1
- package/Libraries/Animated/AnimatedMock.js +2 -2
- package/Libraries/Animated/NativeAnimatedHelper.js +13 -1
- package/Libraries/Animated/NativeAnimatedModule.js +1 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +2 -7
- package/Libraries/Animated/nodes/AnimatedColor.js +84 -23
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +2 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +2 -2
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +2 -2
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +14 -14
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +2 -2
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.macos.js +1 -1
- package/Libraries/Components/Button.js +24 -26
- package/Libraries/Components/DatePicker/DatePickerIOS.macos.js +1 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.macos.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.android.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.ios.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.macos.js +1 -1
- package/Libraries/Components/DatePickerMacOS/RCTDatePickerNativeComponentMacOS.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.macos.js +1 -1
- package/Libraries/Components/Keyboard/Keyboard.js +1 -1
- package/Libraries/Components/MaskedView/MaskedViewIOS.macos.js +1 -1
- package/Libraries/Components/Picker/PickerAndroid.macos.js +1 -1
- package/Libraries/Components/Picker/PickerIOS.macos.js +1 -1
- package/Libraries/Components/Pressable/Pressable.js +19 -20
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.macos.js +1 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.macos.js +1 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -1
- package/Libraries/Components/ScrollView/ScrollView.js +17 -31
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +13 -0
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.macos.js +1 -1
- package/Libraries/Components/Slider/Slider.js +3 -5
- package/Libraries/Components/Slider/SliderNativeComponent.js +0 -1
- package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +2 -2
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +24 -1
- package/Libraries/Components/TextInput/TextInput.js +66 -66
- package/Libraries/Components/TextInput/TextInputState.js +2 -8
- package/Libraries/Components/ToastAndroid/ToastAndroid.macos.js +1 -1
- package/Libraries/Components/Touchable/TouchableBounce.js +4 -4
- package/Libraries/Components/Touchable/TouchableHighlight.js +4 -4
- package/Libraries/Components/Touchable/TouchableOpacity.js +12 -7
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +11 -11
- package/Libraries/Components/View/DraggedType.js +1 -1
- package/Libraries/Components/View/ReactNativeViewAttributes.js +2 -3
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
- package/Libraries/Components/View/View.js +0 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -6
- package/Libraries/Components/View/ViewNativeComponent.js +64 -7
- package/Libraries/Components/View/ViewPropTypes.js +92 -122
- package/Libraries/Core/NativeExceptionsManager.js +1 -1
- package/Libraries/Core/RawEventEmitter.js +38 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -5
- package/Libraries/Core/setUpReactDevTools.js +3 -2
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.macos.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +4 -7
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -3
- package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
- package/Libraries/Image/Image.android.js +0 -6
- package/Libraries/Image/Image.ios.js +0 -6
- package/Libraries/Image/Image.macos.js +1 -1
- package/Libraries/Image/ImageViewNativeComponent.js +9 -0
- package/Libraries/Image/RCTAnimatedImage.h +3 -3
- package/Libraries/Image/RCTAnimatedImage.m +10 -10
- package/Libraries/Image/RCTDisplayWeakRefreshable.h +3 -3
- package/Libraries/Image/RCTDisplayWeakRefreshable.m +3 -3
- package/Libraries/Image/RCTImageBlurUtils.h +1 -1
- package/Libraries/Image/RCTImageBlurUtils.m +12 -12
- package/Libraries/Image/RCTImageCache.h +1 -1
- package/Libraries/Image/RCTImageCache.m +4 -4
- package/Libraries/Image/RCTImageDataDecoder.h +1 -1
- package/Libraries/Image/RCTImageEditingManager.mm +3 -3
- package/Libraries/Image/RCTImageLoader.h +2 -2
- package/Libraries/Image/RCTImageLoader.mm +38 -32
- package/Libraries/Image/RCTImageLoaderProtocol.h +1 -1
- package/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +2 -2
- package/Libraries/Image/RCTImageStoreManager.h +1 -1
- package/Libraries/Image/RCTImageStoreManager.mm +4 -4
- package/Libraries/Image/RCTImageURLLoader.h +1 -1
- package/Libraries/Image/RCTImageURLLoaderWithAttribution.h +2 -2
- package/Libraries/Image/RCTImageUtils.h +2 -2
- package/Libraries/Image/RCTImageUtils.m +22 -22
- package/Libraries/Image/RCTImageView.h +3 -11
- package/Libraries/Image/RCTImageView.mm +55 -55
- package/Libraries/Image/RCTImageViewManager.mm +2 -2
- package/Libraries/Image/RCTResizeMode.h +3 -3
- package/Libraries/Image/RCTUIImageViewAnimated.h +4 -4
- package/Libraries/Image/RCTUIImageViewAnimated.m +11 -11
- package/Libraries/Image/React-RCTImage.podspec +2 -2
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Inspector/Inspector.js +2 -4
- package/Libraries/Linking/Linking.js +2 -2
- package/Libraries/LinkingIOS/RCTLinkingManager.h +6 -6
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +4 -4
- package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +1 -1
- package/Libraries/Lists/FlatList.js +7 -7
- package/Libraries/Lists/SectionList.js +1 -1
- package/Libraries/Lists/VirtualizedList.js +66 -56
- package/Libraries/Lists/VirtualizedSectionList.js +22 -21
- package/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m +1 -1
- package/{ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp → Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h} +6 -4
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.m +30 -0
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +11 -6
- package/Libraries/NativeAnimation/Nodes/RCTStyleAnimatedNode.m +8 -4
- package/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.h +1 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +10 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +5 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +11 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +8 -0
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +3 -3
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +566 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +7 -42
- package/Libraries/NativeComponent/ViewConfig.js +4 -4
- package/Libraries/NativeComponent/ViewConfigIgnore.js +53 -0
- package/Libraries/NativeModules/specs/NativeDevSettings.js +3 -1
- package/Libraries/Network/RCTFileRequestHandler.mm +3 -3
- package/Libraries/Network/RCTNetworking.macos.js +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +3 -3
- package/Libraries/NewAppScreen/components/DebugInstructions.js +2 -2
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +2 -2
- package/Libraries/Pressability/HoverState.js +2 -2
- package/Libraries/Pressability/Pressability.js +26 -3
- package/Libraries/Pressability/PressabilityDebug.js +5 -9
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +2 -2
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +8 -8
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +81 -73
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +2 -2
- package/Libraries/RCTRequired/RCTRequired.podspec +1 -1
- package/Libraries/ReactNative/DummyUIManager.js +5 -3
- package/Libraries/ReactNative/PaperUIManager.js +1 -1
- package/Libraries/ReactNative/UIManager.js +1 -2
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +4 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +177 -68
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +219 -208
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +161 -144
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +149 -67
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +207 -195
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +149 -131
- package/Libraries/Settings/RCTSettingsManager.mm +6 -6
- package/Libraries/Settings/React-RCTSettings.podspec +2 -2
- package/Libraries/Settings/Settings.macos.js +1 -1
- package/Libraries/StyleSheet/EdgeInsetsPropType.js +4 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +3 -2
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +3 -2
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +3 -2
- package/Libraries/StyleSheet/StyleSheetTypes.js +2 -2
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/processTransform.js +1 -1
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +10 -3
- package/Libraries/Text/RCTConvert+Text.h +2 -2
- package/Libraries/Text/RCTTextAttributes.h +21 -15
- package/Libraries/Text/RCTTextAttributes.m +37 -22
- package/Libraries/Text/RCTTextUIKit.h +2 -0
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -2
- package/Libraries/Text/RawText/RCTRawTextViewManager.m +2 -2
- package/Libraries/Text/React-RCTText.podspec +2 -2
- package/Libraries/Text/Text/NSTextStorage+FontScaling.h +1 -1
- package/Libraries/Text/Text/NSTextStorage+FontScaling.m +1 -1
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +3 -3
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +3 -3
- package/Libraries/Text/Text/RCTTextShadowView.m +15 -15
- package/Libraries/Text/Text/RCTTextView.h +5 -5
- package/Libraries/Text/Text/RCTTextView.m +71 -77
- package/Libraries/Text/Text/RCTTextViewManager.m +6 -6
- package/Libraries/Text/Text.js +0 -6
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +7 -2
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +70 -20
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +8 -6
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +11 -11
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +79 -114
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +7 -7
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h +9 -9
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +41 -41
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +20 -21
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +7 -7
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +9 -9
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +73 -68
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +33 -34
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.m +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryView.h +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryView.m +3 -3
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +7 -7
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.m +1 -1
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +7 -7
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m +2 -2
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +11 -11
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +63 -57
- package/Libraries/Text/TextInput/Singleline/macOS/RCTUISecureTextField.h +1 -1
- package/Libraries/Text/TextInput/Singleline/macOS/RCTUISecureTextField.m +1 -1
- package/Libraries/Text/TextNativeComponent.js +1 -1
- package/Libraries/Text/TextProps.js +1 -1
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m +2 -2
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +2 -2
- package/Libraries/Types/CoreEventTypes.js +6 -6
- package/Libraries/Utilities/Appearance.js +2 -2
- package/Libraries/Utilities/BackHandler.macos.js +1 -1
- package/Libraries/Utilities/DevSettings.js +1 -1
- package/Libraries/Utilities/HMRClient.js +2 -6
- package/Libraries/Utilities/LoadingView.macos.js +1 -1
- package/Libraries/Utilities/Platform.macos.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +3 -3
- package/Libraries/Vibration/React-RCTVibration.podspec +2 -2
- package/Libraries/WebSocket/RCTSRWebSocket.m +9 -10
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/Libraries/WebSocket/WebSocketInterceptor.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +1 -1
- package/Libraries/vendor/emitter/_EventEmitter.js +1 -1
- package/Libraries/vendor/emitter/_EventSubscription.js +1 -1
- package/README.md +1 -1
- package/React/AppSetup/RCTAppSetupUtils.h +1 -1
- package/React/AppSetup/RCTAppSetupUtils.mm +1 -1
- package/React/Base/RCTAssert.h +30 -15
- package/React/Base/RCTAssert.m +59 -19
- package/React/Base/RCTBridge+Cxx.h +1 -1
- package/React/Base/RCTBridge+Cxx.mm +1 -1
- package/React/Base/RCTBridge.h +1 -1
- package/React/Base/RCTBridge.m +6 -4
- package/React/Base/RCTBridgeModule.h +4 -4
- package/React/Base/RCTBundleURLProvider.h +1 -1
- package/React/Base/RCTBundleURLProvider.mm +4 -4
- package/React/Base/RCTConstants.h +6 -0
- package/React/Base/RCTConstants.m +15 -0
- package/React/Base/RCTConvert.h +14 -14
- package/React/Base/RCTConvert.m +149 -153
- package/React/Base/RCTDisplayLink.m +8 -8
- package/React/Base/RCTEventDispatcherProtocol.h +6 -1
- package/React/Base/RCTFrameUpdate.h +2 -2
- package/React/Base/RCTFrameUpdate.m +2 -2
- package/React/Base/RCTImageSource.m +2 -2
- package/React/Base/RCTJSStackFrame.m +2 -2
- package/React/Base/RCTJSThread.h +1 -1
- package/React/Base/RCTJavaScriptLoader.h +1 -1
- package/React/Base/RCTJavaScriptLoader.mm +2 -2
- package/React/Base/RCTKeyCommands.m +2 -2
- package/React/Base/RCTModuleData.mm +2 -2
- package/React/Base/RCTModuleMethod.mm +2 -2
- package/React/Base/RCTMultipartDataTask.m +2 -20
- package/React/Base/RCTPlatformDisplayLink.h +1 -1
- package/React/Base/RCTRedBoxSetEnabled.m +1 -1
- package/React/Base/RCTReloadCommand.m +4 -4
- package/React/Base/RCTRootContentView.h +1 -1
- package/React/Base/RCTRootContentView.m +10 -10
- package/React/Base/RCTRootView.h +4 -4
- package/React/Base/RCTRootView.m +26 -26
- package/React/Base/RCTTouchEvent.m +2 -2
- package/React/Base/RCTTouchHandler.h +5 -5
- package/React/Base/RCTTouchHandler.m +69 -68
- package/React/Base/RCTUIKit.h +98 -26
- package/React/Base/RCTUtils.h +12 -12
- package/React/Base/RCTUtils.m +38 -38
- package/React/Base/RCTUtilsUIOverride.h +1 -1
- package/React/Base/RCTUtilsUIOverride.m +1 -1
- package/React/Base/RCTVersion.m +1 -5
- package/React/Base/RCTViewRegistry.m +2 -2
- package/React/Base/Surface/RCTSurfaceDelegate.h +1 -1
- package/React/Base/Surface/RCTSurfaceProtocol.h +1 -1
- package/React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h +1 -1
- package/React/Base/Surface/RCTSurfaceRootView.h +1 -1
- package/React/Base/Surface/RCTSurfaceView.h +1 -1
- package/React/Base/Surface/RCTSurfaceView.mm +2 -2
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +3 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +5 -5
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h +3 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +14 -15
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm +1 -1
- package/React/Base/macOS/RCTPlatform.m +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +1 -1
- package/React/Base/macOS/RCTUIKit.m +87 -11
- package/React/CoreModules/CoreModulesPlugins.mm +6 -6
- package/React/CoreModules/RCTAccessibilityManager.h +1 -1
- package/React/CoreModules/RCTAccessibilityManager.mm +2 -2
- package/React/CoreModules/RCTActionSheetManager.h +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +31 -31
- package/React/CoreModules/RCTAlertController.h +7 -7
- package/React/CoreModules/RCTAlertController.m +6 -6
- package/React/CoreModules/RCTAlertManager.h +1 -1
- package/React/CoreModules/RCTAlertManager.mm +10 -10
- package/React/CoreModules/RCTAppState.mm +6 -6
- package/React/CoreModules/RCTAppearance.h +4 -4
- package/React/CoreModules/RCTAppearance.mm +16 -16
- package/React/CoreModules/RCTAsyncLocalStorage.mm +5 -6
- package/React/CoreModules/RCTClipboard.mm +7 -7
- package/React/CoreModules/RCTDevLoadingView.h +1 -1
- package/React/CoreModules/RCTDevLoadingView.mm +31 -31
- package/React/CoreModules/RCTDevMenu.h +3 -3
- package/React/CoreModules/RCTDevMenu.mm +40 -42
- package/React/CoreModules/RCTDevSettings.h +4 -4
- package/React/CoreModules/RCTDevSettings.mm +18 -18
- package/React/CoreModules/RCTDevSplitBundleLoader.h +1 -1
- package/React/CoreModules/RCTDeviceInfo.h +2 -2
- package/React/CoreModules/RCTDeviceInfo.mm +22 -22
- package/React/CoreModules/RCTEventDispatcher.mm +6 -1
- package/React/CoreModules/RCTFPSGraph.h +3 -3
- package/React/CoreModules/RCTFPSGraph.m +2 -2
- package/React/CoreModules/RCTKeyboardObserver.mm +8 -8
- package/React/CoreModules/RCTLogBox.h +2 -2
- package/React/CoreModules/RCTLogBox.mm +36 -20
- package/React/CoreModules/RCTLogBoxView.h +12 -9
- package/React/CoreModules/RCTLogBoxView.mm +67 -26
- package/React/CoreModules/RCTPerfMonitor.mm +1 -1
- package/React/CoreModules/RCTPlatform.mm +1 -1
- package/React/CoreModules/RCTRedBox.h +1 -1
- package/React/CoreModules/RCTRedBox.mm +24 -24
- package/React/CoreModules/RCTStatusBarManager.h +3 -3
- package/React/CoreModules/RCTStatusBarManager.mm +4 -4
- package/React/CoreModules/RCTTiming.mm +2 -2
- package/React/CoreModules/RCTWebSocketModule.mm +3 -3
- package/React/CoreModules/React-CoreModules.podspec +4 -4
- package/React/CxxBridge/RCTCxxBridge.mm +9 -9
- package/React/CxxModule/RCTCxxMethod.mm +2 -2
- package/React/DevSupport/RCTDevLoadingViewProtocol.h +2 -2
- package/React/DevSupport/RCTInspectorDevServerHelper.h +1 -1
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +8 -8
- package/React/DevSupport/RCTPackagerConnection.mm +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +2 -2
- package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.mm +3 -2
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +8 -8
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +2 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +75 -25
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +10 -5
- package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +10 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +5 -3
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +23 -6
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +17 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +6 -4
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +98 -34
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +19 -5
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +3 -3
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +5 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +3 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +4 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +6 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +22 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +47 -8
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +9 -6
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +16 -4
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +6 -4
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +14 -4
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +41 -23
- package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +2 -2
- package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +12 -3
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +4 -4
- package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
- package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +3 -1
- package/React/Fabric/Mounting/RCTMountingManager.h +4 -4
- package/React/Fabric/Mounting/RCTMountingManager.mm +30 -19
- package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.h +5 -3
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.mm +10 -8
- package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +6 -4
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +6 -6
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +6 -6
- package/React/Fabric/RCTConversions.h +17 -7
- package/React/Fabric/RCTImageResponseDelegate.h +1 -1
- package/React/Fabric/RCTLocalizationProvider.h +1 -1
- package/React/Fabric/RCTLocalizationProvider.mm +10 -4
- package/React/Fabric/RCTScheduler.h +8 -1
- package/React/Fabric/RCTScheduler.mm +15 -0
- package/React/Fabric/RCTSurfacePresenter.h +10 -2
- package/React/Fabric/RCTSurfacePresenter.mm +72 -27
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
- package/React/Fabric/RCTSurfaceTouchHandler.mm +8 -9
- package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -1
- package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
- package/React/Modules/RCTEventEmitter.h +7 -7
- package/React/Modules/RCTI18nUtil.m +1 -1
- package/React/Modules/RCTLayoutAnimation.h +1 -1
- package/React/Modules/RCTLayoutAnimation.m +14 -14
- package/React/Modules/RCTLayoutAnimationGroup.h +1 -1
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -2
- package/React/Modules/RCTSurfacePresenterStub.h +6 -2
- package/React/Modules/RCTUIManager.h +12 -12
- package/React/Modules/RCTUIManager.m +100 -99
- package/React/Modules/RCTUIManagerObserverCoordinator.h +1 -1
- package/React/Modules/RCTUIManagerUtils.h +1 -1
- package/React/Profiler/RCTProfile.m +23 -23
- package/React/React-RCTFabric.podspec +2 -2
- package/React/UIUtils/RCTUIUtils.h +6 -6
- package/React/UIUtils/RCTUIUtils.m +3 -3
- package/React/Views/RCTActivityIndicatorView.h +4 -4
- package/React/Views/RCTActivityIndicatorView.m +4 -4
- package/React/Views/RCTActivityIndicatorViewManager.m +4 -4
- package/React/Views/RCTAnimationType.h +4 -4
- package/React/Views/RCTAutoInsetsProtocol.h +1 -1
- package/React/Views/RCTBorderDrawing.h +2 -2
- package/React/Views/RCTBorderDrawing.m +22 -22
- package/React/Views/RCTComponentData.h +3 -3
- package/React/Views/RCTComponentData.m +4 -4
- package/React/Views/RCTCursor.h +2 -2
- package/React/Views/RCTCursor.m +2 -2
- package/React/Views/RCTDatePicker.h +4 -4
- package/React/Views/RCTDatePicker.m +12 -12
- package/React/Views/RCTDatePickerManager.h +3 -3
- package/React/Views/RCTDatePickerManager.m +16 -16
- package/React/Views/RCTFont.h +1 -1
- package/React/Views/RCTFont.mm +9 -9
- package/React/Views/RCTFontSmoothing.h +1 -1
- package/React/Views/RCTLayout.h +1 -1
- package/React/Views/RCTMaskedView.h +1 -1
- package/React/Views/RCTModalHostView.h +2 -2
- package/React/Views/RCTModalHostViewController.h +1 -1
- package/React/Views/RCTModalManager.h +1 -1
- package/React/Views/RCTProgressView.h +6 -6
- package/React/Views/RCTProgressView.m +1 -1
- package/React/Views/RCTProgressViewManager.m +13 -13
- package/React/Views/RCTSegmentedControl.h +6 -6
- package/React/Views/RCTSegmentedControl.m +16 -16
- package/React/Views/RCTSegmentedControlManager.m +3 -3
- package/React/Views/RCTShadowView+Internal.h +1 -1
- package/React/Views/RCTShadowView+Layout.h +1 -1
- package/React/Views/RCTShadowView.h +4 -4
- package/React/Views/RCTShadowView.m +8 -8
- package/React/Views/RCTSlider.h +14 -10
- package/React/Views/RCTSlider.m +38 -38
- package/React/Views/RCTSliderManager.m +9 -9
- package/React/Views/RCTSwitch.h +2 -11
- package/React/Views/RCTSwitch.m +0 -20
- package/React/Views/RCTSwitchManager.m +8 -12
- package/React/Views/RCTView.h +15 -15
- package/React/Views/RCTView.m +158 -135
- package/React/Views/RCTViewKeyboardEvent.h +2 -2
- package/React/Views/RCTViewKeyboardEvent.m +4 -2
- package/React/Views/RCTViewManager.h +5 -5
- package/React/Views/RCTViewManager.m +75 -82
- package/React/Views/RCTViewUtils.h +2 -2
- package/React/Views/RCTViewUtils.m +3 -3
- package/React/Views/RCTWeakViewHolder.h +1 -1
- package/React/Views/RCTWrapperViewController.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -2
- package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
- package/React/Views/ScrollView/RCTScrollContentShadowView.h +1 -1
- package/React/Views/ScrollView/RCTScrollContentShadowView.m +4 -4
- package/React/Views/ScrollView/RCTScrollContentView.h +3 -3
- package/React/Views/ScrollView/RCTScrollContentView.m +9 -9
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +1 -1
- package/React/Views/ScrollView/RCTScrollEvent.m +3 -3
- package/React/Views/ScrollView/RCTScrollView.h +8 -8
- package/React/Views/ScrollView/RCTScrollView.m +154 -185
- package/React/Views/ScrollView/RCTScrollViewManager.h +2 -2
- package/React/Views/ScrollView/RCTScrollViewManager.m +27 -27
- package/React/Views/ScrollView/RCTScrollableProtocol.h +6 -6
- package/React/Views/UIView+Private.h +4 -4
- package/React/Views/UIView+React.h +12 -12
- package/React/Views/UIView+React.m +55 -55
- package/React-Core.podspec +5 -5
- package/React.podspec +1 -1
- package/ReactAndroid/build.gradle +6 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/proguard-rules.pro +4 -6
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +1 -22
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +7 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeWithUpdateableConfig.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ColorAnimatedNode.java +131 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegate.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +40 -50
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/{RedBoxDialog.java → RedBoxContentView.java} +38 -29
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialogSurfaceDelegate.java +117 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/{RedBoxHandler.java → interfaces/RedBoxHandler.java} +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/{AsyncEventBeatV2.cpp → AsyncEventBeat.cpp} +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeat.h +8 -40
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +39 -34
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +0 -13
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +3 -17
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java +20 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +91 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -11
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +0 -90
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +4 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +13 -16
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +4 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java +19 -0
- package/ReactAndroid/src/main/jni/Application.mk +1 -1
- package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/res/shell/values/styles.xml +3 -2
- package/ReactAndroid/src/test/java/com/facebook/react/views/BUCK +5 -2
- package/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java +9 -0
- package/ReactCommon/React-Fabric.podspec +1 -1
- package/ReactCommon/React-rncore.podspec +1 -1
- package/ReactCommon/ReactCommon.podspec +2 -2
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -5
- package/ReactCommon/cxxreact/tests/BUCK +1 -1
- package/ReactCommon/hermes/inspector/Exceptions.h +6 -0
- package/ReactCommon/hermes/inspector/Inspector.cpp +5 -2
- package/ReactCommon/hermes/inspector/Inspector.h +14 -0
- package/ReactCommon/hermes/inspector/InspectorState.cpp +16 -8
- package/ReactCommon/hermes/inspector/chrome/Connection.cpp +319 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.cpp +79 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.h +43 -1
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionTests.cpp +251 -7
- package/ReactCommon/hermes/inspector/chrome/tests/MessageTests.cpp +1068 -1
- package/ReactCommon/hermes/inspector/tools/message_types.txt +1 -0
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +6 -6
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsi/jsi/jsi.cpp +2 -0
- package/ReactCommon/jsi/jsi/jsi.h +7 -3
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
- package/ReactCommon/jsinspector/React-jsinspector.podspec +1 -1
- package/ReactCommon/logger/React-logger.podspec +1 -1
- package/ReactCommon/microprofiler/BUCK +1 -1
- package/ReactCommon/react/debug/react_native_assert.h +1 -1
- package/ReactCommon/react/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm +4 -4
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -6
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +4 -3
- package/ReactCommon/react/renderer/animations/conversions.h +11 -11
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +1 -1
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +16 -16
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +14 -14
- package/ReactCommon/react/renderer/attributedstring/conversions.h +11 -9
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +7 -5
- package/ReactCommon/react/renderer/components/modal/ModalHostViewComponentDescriptor.h +1 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewState.h +1 -1
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/conversions.h +1 -1
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +6 -6
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +3 -4
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +6 -6
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +1 -18
- package/ReactCommon/react/renderer/components/view/ViewProps.h +4 -6
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +2 -2
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +16 -16
- package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
- package/ReactCommon/react/renderer/components/view/primitives.h +45 -3
- package/ReactCommon/react/renderer/components/view/propsConversions.h +138 -0
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +19 -7
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +2 -2
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +21 -0
- package/ReactCommon/react/renderer/core/EventDispatcher.h +15 -0
- package/ReactCommon/react/renderer/core/EventListener.cpp +39 -0
- package/ReactCommon/react/renderer/core/EventListener.h +44 -0
- package/ReactCommon/react/renderer/core/Props.h +0 -4
- package/ReactCommon/react/renderer/core/RawProps.h +1 -1
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +2 -2
- package/ReactCommon/react/renderer/core/ShadowNode.h +5 -5
- package/ReactCommon/react/renderer/core/propsConversions.h +6 -5
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +3 -3
- package/ReactCommon/react/renderer/debug/debugStringConvertibleUtils.h +3 -3
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
- package/ReactCommon/react/renderer/graphics/conversions.h +1 -11
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +5 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +5 -3
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +7 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +1 -1
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
- package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
- package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +6 -9
- package/ReactCommon/react/renderer/mounting/TelemetryController.h +7 -7
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +41 -35
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +17 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +45 -19
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +9 -0
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +40 -4
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +10 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +15 -15
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.mm +5 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +8 -9
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +5 -4
- package/ReactCommon/react/utils/ContextContainer.h +2 -2
- package/ReactCommon/react/utils/ManagedObjectWrapper.h +1 -1
- package/ReactCommon/react/utils/ManagedObjectWrapper.mm +1 -3
- package/ReactCommon/react/utils/SimpleThreadSafeCache.h +2 -2
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/yoga/Yoga.podspec +1 -1
- package/index.js +21 -33
- package/local-cli/generator-macos/templates/macos/HelloWorld-macOS/ViewController.m +1 -1
- package/package.json +8 -42
- package/react.gradle +14 -0
- package/scripts/generate-artifacts.js +12 -12
- package/scripts/react_native_pods.rb +3 -3
- package/template/Gemfile.lock +5 -5
- package/template/_flowconfig +2 -2
- package/template/android/app/build.gradle +0 -5
- package/template/android/app/src/main/java/com/helloworld/MainActivity.java +2 -1
- package/template/android/build.gradle +1 -1
- package/template/android/gradle.properties +2 -2
- package/template/package.json +1 -2
- package/third-party-podspecs/DoubleConversion.podspec +1 -1
- package/third-party-podspecs/RCT-Folly.podspec +1 -1
- package/third-party-podspecs/boost.podspec +1 -1
- package/third-party-podspecs/glog.podspec +1 -1
- package/Libraries/Alert/AlertMacOS.js +0 -211
- package/Libraries/Components/View/PlatformViewPropTypes.macos.js +0 -16
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +0 -374
- package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +0 -83
- package/Libraries/ReactNative/UIManagerInjection.js +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +0 -40
- package/ReactCommon/butter/optional.h +0 -38
- package/ReactCommon/react/renderer/mounting/MountingTransactionMetadata.h +0 -32
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<97d9d60e7b93063137af17ba2abdf915>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -927,7 +927,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
927
927
|
"ReactNativeBridgeEventPlugin"
|
|
928
928
|
]);
|
|
929
929
|
recomputePluginOrdering();
|
|
930
|
-
var injectedNamesToPlugins$jscomp$
|
|
930
|
+
var injectedNamesToPlugins$jscomp$inline_219 = {
|
|
931
931
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
932
932
|
ReactNativeBridgeEventPlugin: {
|
|
933
933
|
eventTypes: {},
|
|
@@ -962,33 +962,33 @@ var injectedNamesToPlugins$jscomp$inline_220 = {
|
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
|
-
isOrderingDirty$jscomp$
|
|
966
|
-
pluginName$jscomp$
|
|
967
|
-
for (pluginName$jscomp$
|
|
965
|
+
isOrderingDirty$jscomp$inline_220 = !1,
|
|
966
|
+
pluginName$jscomp$inline_221;
|
|
967
|
+
for (pluginName$jscomp$inline_221 in injectedNamesToPlugins$jscomp$inline_219)
|
|
968
968
|
if (
|
|
969
|
-
injectedNamesToPlugins$jscomp$
|
|
970
|
-
pluginName$jscomp$
|
|
969
|
+
injectedNamesToPlugins$jscomp$inline_219.hasOwnProperty(
|
|
970
|
+
pluginName$jscomp$inline_221
|
|
971
971
|
)
|
|
972
972
|
) {
|
|
973
|
-
var pluginModule$jscomp$
|
|
974
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
+
var pluginModule$jscomp$inline_222 =
|
|
974
|
+
injectedNamesToPlugins$jscomp$inline_219[pluginName$jscomp$inline_221];
|
|
975
975
|
if (
|
|
976
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
977
|
-
namesToPlugins[pluginName$jscomp$
|
|
978
|
-
pluginModule$jscomp$
|
|
976
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_221) ||
|
|
977
|
+
namesToPlugins[pluginName$jscomp$inline_221] !==
|
|
978
|
+
pluginModule$jscomp$inline_222
|
|
979
979
|
) {
|
|
980
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
980
|
+
if (namesToPlugins[pluginName$jscomp$inline_221])
|
|
981
981
|
throw Error(
|
|
982
982
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
983
|
-
(pluginName$jscomp$
|
|
983
|
+
(pluginName$jscomp$inline_221 + "`.")
|
|
984
984
|
);
|
|
985
985
|
namesToPlugins[
|
|
986
|
-
pluginName$jscomp$
|
|
987
|
-
] = pluginModule$jscomp$
|
|
988
|
-
isOrderingDirty$jscomp$
|
|
986
|
+
pluginName$jscomp$inline_221
|
|
987
|
+
] = pluginModule$jscomp$inline_222;
|
|
988
|
+
isOrderingDirty$jscomp$inline_220 = !0;
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
isOrderingDirty$jscomp$
|
|
991
|
+
isOrderingDirty$jscomp$inline_220 && recomputePluginOrdering();
|
|
992
992
|
function getInstanceFromInstance(instanceHandle) {
|
|
993
993
|
return instanceHandle;
|
|
994
994
|
}
|
|
@@ -1559,7 +1559,10 @@ function dispatchEvent(target, topLevelType, nativeEvent) {
|
|
|
1559
1559
|
null != stateNode && (eventTarget = stateNode.canonical);
|
|
1560
1560
|
}
|
|
1561
1561
|
batchedUpdates(function() {
|
|
1562
|
-
var
|
|
1562
|
+
var event = { eventName: topLevelType, nativeEvent: nativeEvent };
|
|
1563
|
+
ReactNativePrivateInterface.RawEventEmitter.emit(topLevelType, event);
|
|
1564
|
+
ReactNativePrivateInterface.RawEventEmitter.emit("*", event);
|
|
1565
|
+
event = eventTarget;
|
|
1563
1566
|
for (
|
|
1564
1567
|
var events = null, legacyPlugins = plugins, i = 0;
|
|
1565
1568
|
i < legacyPlugins.length;
|
|
@@ -1571,29 +1574,25 @@ function dispatchEvent(target, topLevelType, nativeEvent) {
|
|
|
1571
1574
|
topLevelType,
|
|
1572
1575
|
target,
|
|
1573
1576
|
nativeEvent,
|
|
1574
|
-
|
|
1577
|
+
event
|
|
1575
1578
|
)) &&
|
|
1576
1579
|
(events = accumulateInto(events, possiblePlugin));
|
|
1577
1580
|
}
|
|
1578
|
-
|
|
1579
|
-
null !==
|
|
1580
|
-
|
|
1581
|
-
JSCompiler_inline_result = eventQueue;
|
|
1581
|
+
event = events;
|
|
1582
|
+
null !== event && (eventQueue = accumulateInto(eventQueue, event));
|
|
1583
|
+
event = eventQueue;
|
|
1582
1584
|
eventQueue = null;
|
|
1583
|
-
if (
|
|
1584
|
-
forEachAccumulated(
|
|
1585
|
-
JSCompiler_inline_result,
|
|
1586
|
-
executeDispatchesAndReleaseTopLevel
|
|
1587
|
-
);
|
|
1585
|
+
if (event) {
|
|
1586
|
+
forEachAccumulated(event, executeDispatchesAndReleaseTopLevel);
|
|
1588
1587
|
if (eventQueue)
|
|
1589
1588
|
throw Error(
|
|
1590
1589
|
"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."
|
|
1591
1590
|
);
|
|
1592
1591
|
if (hasRethrowError)
|
|
1593
|
-
throw ((
|
|
1592
|
+
throw ((event = rethrowError),
|
|
1594
1593
|
(hasRethrowError = !1),
|
|
1595
1594
|
(rethrowError = null),
|
|
1596
|
-
|
|
1595
|
+
event);
|
|
1597
1596
|
}
|
|
1598
1597
|
});
|
|
1599
1598
|
}
|
|
@@ -1619,12 +1618,6 @@ function onCommitRoot(root) {
|
|
|
1619
1618
|
);
|
|
1620
1619
|
} catch (err) {}
|
|
1621
1620
|
}
|
|
1622
|
-
function injectProfilingHooks() {}
|
|
1623
|
-
function getLaneLabelMap() {
|
|
1624
|
-
for (var map = new Map(), lane = 1, index$3 = 0; 31 > index$3; index$3++)
|
|
1625
|
-
map.set(lane, void 0), (lane *= 2);
|
|
1626
|
-
return map;
|
|
1627
|
-
}
|
|
1628
1621
|
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1629
1622
|
log = Math.log,
|
|
1630
1623
|
LN2 = Math.LN2;
|
|
@@ -1797,21 +1790,21 @@ function markRootFinished(root, remainingLanes) {
|
|
|
1797
1790
|
remainingLanes = root.entanglements;
|
|
1798
1791
|
var eventTimes = root.eventTimes;
|
|
1799
1792
|
for (root = root.expirationTimes; 0 < noLongerPendingLanes; ) {
|
|
1800
|
-
var index$
|
|
1801
|
-
lane = 1 << index$
|
|
1802
|
-
remainingLanes[index$
|
|
1803
|
-
eventTimes[index$
|
|
1804
|
-
root[index$
|
|
1793
|
+
var index$7 = 31 - clz32(noLongerPendingLanes),
|
|
1794
|
+
lane = 1 << index$7;
|
|
1795
|
+
remainingLanes[index$7] = 0;
|
|
1796
|
+
eventTimes[index$7] = -1;
|
|
1797
|
+
root[index$7] = -1;
|
|
1805
1798
|
noLongerPendingLanes &= ~lane;
|
|
1806
1799
|
}
|
|
1807
1800
|
}
|
|
1808
1801
|
function markRootEntangled(root, entangledLanes) {
|
|
1809
1802
|
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
|
|
1810
1803
|
for (root = root.entanglements; rootEntangledLanes; ) {
|
|
1811
|
-
var index$
|
|
1812
|
-
lane = 1 << index$
|
|
1813
|
-
(lane & entangledLanes) | (root[index$
|
|
1814
|
-
(root[index$
|
|
1804
|
+
var index$8 = 31 - clz32(rootEntangledLanes),
|
|
1805
|
+
lane = 1 << index$8;
|
|
1806
|
+
(lane & entangledLanes) | (root[index$8] & entangledLanes) &&
|
|
1807
|
+
(root[index$8] |= entangledLanes);
|
|
1815
1808
|
rootEntangledLanes &= ~lane;
|
|
1816
1809
|
}
|
|
1817
1810
|
}
|
|
@@ -2185,19 +2178,16 @@ function popProvider(context) {
|
|
|
2185
2178
|
pop(valueCursor);
|
|
2186
2179
|
context._currentValue2 = currentValue;
|
|
2187
2180
|
}
|
|
2188
|
-
function
|
|
2181
|
+
function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {
|
|
2189
2182
|
for (; null !== parent; ) {
|
|
2190
2183
|
var alternate = parent.alternate;
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
null
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
else
|
|
2199
|
-
(parent.childLanes |= renderLanes),
|
|
2200
|
-
null !== alternate && (alternate.childLanes |= renderLanes);
|
|
2184
|
+
(parent.childLanes & renderLanes) !== renderLanes
|
|
2185
|
+
? ((parent.childLanes |= renderLanes),
|
|
2186
|
+
null !== alternate && (alternate.childLanes |= renderLanes))
|
|
2187
|
+
: null !== alternate &&
|
|
2188
|
+
(alternate.childLanes & renderLanes) !== renderLanes &&
|
|
2189
|
+
(alternate.childLanes |= renderLanes);
|
|
2190
|
+
if (parent === propagationRoot) break;
|
|
2201
2191
|
parent = parent.return;
|
|
2202
2192
|
}
|
|
2203
2193
|
}
|
|
@@ -3666,28 +3656,37 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3666
3656
|
var hook = updateWorkInProgressHook();
|
|
3667
3657
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3668
3658
|
}
|
|
3669
|
-
function
|
|
3659
|
+
function updateSyncExternalStore(subscribe, getSnapshot) {
|
|
3670
3660
|
var fiber = currentlyRenderingFiber$1,
|
|
3671
|
-
hook =
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3661
|
+
hook = updateWorkInProgressHook(),
|
|
3662
|
+
nextSnapshot = getSnapshot(),
|
|
3663
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
3664
|
+
snapshotChanged &&
|
|
3665
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
3666
|
+
hook = hook.queue;
|
|
3667
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
3668
|
+
subscribe
|
|
3669
|
+
]);
|
|
3670
|
+
if (
|
|
3671
|
+
hook.getSnapshot !== getSnapshot ||
|
|
3672
|
+
snapshotChanged ||
|
|
3673
|
+
(null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1)
|
|
3674
|
+
) {
|
|
3675
|
+
fiber.flags |= 2048;
|
|
3676
|
+
pushEffect(
|
|
3677
|
+
9,
|
|
3678
|
+
updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot),
|
|
3679
|
+
void 0,
|
|
3680
|
+
null
|
|
3677
3681
|
);
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
9,
|
|
3687
|
-
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3688
|
-
void 0,
|
|
3689
|
-
null
|
|
3690
|
-
);
|
|
3682
|
+
subscribe = workInProgressRoot;
|
|
3683
|
+
if (null === subscribe)
|
|
3684
|
+
throw Error(
|
|
3685
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3686
|
+
);
|
|
3687
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
3688
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3689
|
+
}
|
|
3691
3690
|
return nextSnapshot;
|
|
3692
3691
|
}
|
|
3693
3692
|
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
@@ -4075,7 +4074,32 @@ var ContextOnlyDispatcher = {
|
|
|
4075
4074
|
};
|
|
4076
4075
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
4077
4076
|
},
|
|
4078
|
-
useSyncExternalStore:
|
|
4077
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4078
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4079
|
+
hook = mountWorkInProgressHook();
|
|
4080
|
+
var nextSnapshot = getSnapshot();
|
|
4081
|
+
var root = workInProgressRoot;
|
|
4082
|
+
if (null === root)
|
|
4083
|
+
throw Error(
|
|
4084
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4085
|
+
);
|
|
4086
|
+
includesBlockingLane(root, renderLanes) ||
|
|
4087
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4088
|
+
hook.memoizedState = nextSnapshot;
|
|
4089
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
4090
|
+
hook.queue = root;
|
|
4091
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [
|
|
4092
|
+
subscribe
|
|
4093
|
+
]);
|
|
4094
|
+
fiber.flags |= 2048;
|
|
4095
|
+
pushEffect(
|
|
4096
|
+
9,
|
|
4097
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
4098
|
+
void 0,
|
|
4099
|
+
null
|
|
4100
|
+
);
|
|
4101
|
+
return nextSnapshot;
|
|
4102
|
+
},
|
|
4079
4103
|
useId: function() {
|
|
4080
4104
|
var hook = mountWorkInProgressHook(),
|
|
4081
4105
|
identifierPrefix = workInProgressRoot.identifierPrefix,
|
|
@@ -4124,46 +4148,7 @@ var ContextOnlyDispatcher = {
|
|
|
4124
4148
|
return [isPending, start];
|
|
4125
4149
|
},
|
|
4126
4150
|
useMutableSource: updateMutableSource,
|
|
4127
|
-
useSyncExternalStore:
|
|
4128
|
-
var fiber = currentlyRenderingFiber$1,
|
|
4129
|
-
hook = updateWorkInProgressHook(),
|
|
4130
|
-
nextSnapshot = getSnapshot(),
|
|
4131
|
-
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4132
|
-
snapshotChanged &&
|
|
4133
|
-
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4134
|
-
hook = hook.queue;
|
|
4135
|
-
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4136
|
-
subscribe
|
|
4137
|
-
]);
|
|
4138
|
-
if (
|
|
4139
|
-
hook.getSnapshot !== getSnapshot ||
|
|
4140
|
-
snapshotChanged ||
|
|
4141
|
-
(null !== workInProgressHook &&
|
|
4142
|
-
workInProgressHook.memoizedState.tag & 1)
|
|
4143
|
-
) {
|
|
4144
|
-
fiber.flags |= 2048;
|
|
4145
|
-
pushEffect(
|
|
4146
|
-
9,
|
|
4147
|
-
updateStoreInstance.bind(
|
|
4148
|
-
null,
|
|
4149
|
-
fiber,
|
|
4150
|
-
hook,
|
|
4151
|
-
nextSnapshot,
|
|
4152
|
-
getSnapshot
|
|
4153
|
-
),
|
|
4154
|
-
void 0,
|
|
4155
|
-
null
|
|
4156
|
-
);
|
|
4157
|
-
subscribe = workInProgressRoot;
|
|
4158
|
-
if (null === subscribe)
|
|
4159
|
-
throw Error(
|
|
4160
|
-
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4161
|
-
);
|
|
4162
|
-
includesBlockingLane(subscribe, renderLanes) ||
|
|
4163
|
-
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4164
|
-
}
|
|
4165
|
-
return nextSnapshot;
|
|
4166
|
-
},
|
|
4151
|
+
useSyncExternalStore: updateSyncExternalStore,
|
|
4167
4152
|
useId: updateId,
|
|
4168
4153
|
unstable_isNewReconciler: !1
|
|
4169
4154
|
},
|
|
@@ -4206,7 +4191,7 @@ var ContextOnlyDispatcher = {
|
|
|
4206
4191
|
return [isPending, start];
|
|
4207
4192
|
},
|
|
4208
4193
|
useMutableSource: updateMutableSource,
|
|
4209
|
-
useSyncExternalStore:
|
|
4194
|
+
useSyncExternalStore: updateSyncExternalStore,
|
|
4210
4195
|
useId: updateId,
|
|
4211
4196
|
unstable_isNewReconciler: !1
|
|
4212
4197
|
};
|
|
@@ -4454,14 +4439,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4454
4439
|
break;
|
|
4455
4440
|
case "collapsed":
|
|
4456
4441
|
lastTailNode = renderState.tail;
|
|
4457
|
-
for (var lastTailNode$
|
|
4458
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4442
|
+
for (var lastTailNode$35 = null; null !== lastTailNode; )
|
|
4443
|
+
null !== lastTailNode.alternate && (lastTailNode$35 = lastTailNode),
|
|
4459
4444
|
(lastTailNode = lastTailNode.sibling);
|
|
4460
|
-
null === lastTailNode$
|
|
4445
|
+
null === lastTailNode$35
|
|
4461
4446
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4462
4447
|
? (renderState.tail = null)
|
|
4463
4448
|
: (renderState.tail.sibling = null)
|
|
4464
|
-
: (lastTailNode$
|
|
4449
|
+
: (lastTailNode$35.sibling = null);
|
|
4465
4450
|
}
|
|
4466
4451
|
}
|
|
4467
4452
|
function bubbleProperties(completedWork) {
|
|
@@ -4471,19 +4456,19 @@ function bubbleProperties(completedWork) {
|
|
|
4471
4456
|
newChildLanes = 0,
|
|
4472
4457
|
subtreeFlags = 0;
|
|
4473
4458
|
if (didBailout)
|
|
4474
|
-
for (var child$
|
|
4475
|
-
(newChildLanes |= child$
|
|
4476
|
-
(subtreeFlags |= child$
|
|
4477
|
-
(subtreeFlags |= child$
|
|
4478
|
-
(child$
|
|
4479
|
-
(child$
|
|
4459
|
+
for (var child$36 = completedWork.child; null !== child$36; )
|
|
4460
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4461
|
+
(subtreeFlags |= child$36.subtreeFlags & 14680064),
|
|
4462
|
+
(subtreeFlags |= child$36.flags & 14680064),
|
|
4463
|
+
(child$36.return = completedWork),
|
|
4464
|
+
(child$36 = child$36.sibling);
|
|
4480
4465
|
else
|
|
4481
|
-
for (child$
|
|
4482
|
-
(newChildLanes |= child$
|
|
4483
|
-
(subtreeFlags |= child$
|
|
4484
|
-
(subtreeFlags |= child$
|
|
4485
|
-
(child$
|
|
4486
|
-
(child$
|
|
4466
|
+
for (child$36 = completedWork.child; null !== child$36; )
|
|
4467
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4468
|
+
(subtreeFlags |= child$36.subtreeFlags),
|
|
4469
|
+
(subtreeFlags |= child$36.flags),
|
|
4470
|
+
(child$36.return = completedWork),
|
|
4471
|
+
(child$36 = child$36.sibling);
|
|
4487
4472
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4488
4473
|
completedWork.childLanes = newChildLanes;
|
|
4489
4474
|
return didBailout;
|
|
@@ -5548,11 +5533,11 @@ function updateSuspenseFallbackChildren(
|
|
|
5548
5533
|
workInProgress.child = current;
|
|
5549
5534
|
return fallbackChildren;
|
|
5550
5535
|
}
|
|
5551
|
-
function
|
|
5536
|
+
function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
|
|
5552
5537
|
fiber.lanes |= renderLanes;
|
|
5553
5538
|
var alternate = fiber.alternate;
|
|
5554
5539
|
null !== alternate && (alternate.lanes |= renderLanes);
|
|
5555
|
-
|
|
5540
|
+
scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
|
|
5556
5541
|
}
|
|
5557
5542
|
function initSuspenseListRenderState(
|
|
5558
5543
|
workInProgress,
|
|
@@ -5591,8 +5576,9 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
5591
5576
|
a: for (current = workInProgress.child; null !== current; ) {
|
|
5592
5577
|
if (13 === current.tag)
|
|
5593
5578
|
null !== current.memoizedState &&
|
|
5594
|
-
|
|
5595
|
-
else if (19 === current.tag)
|
|
5579
|
+
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
|
|
5580
|
+
else if (19 === current.tag)
|
|
5581
|
+
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
|
|
5596
5582
|
else if (null !== current.child) {
|
|
5597
5583
|
current.child.return = current;
|
|
5598
5584
|
current = current.child;
|
|
@@ -5906,8 +5892,8 @@ function commitHookEffectListMount(flags, finishedWork) {
|
|
|
5906
5892
|
var effect = (finishedWork = finishedWork.next);
|
|
5907
5893
|
do {
|
|
5908
5894
|
if ((effect.tag & flags) === flags) {
|
|
5909
|
-
var create$
|
|
5910
|
-
effect.destroy = create$
|
|
5895
|
+
var create$80 = effect.create;
|
|
5896
|
+
effect.destroy = create$80();
|
|
5911
5897
|
}
|
|
5912
5898
|
effect = effect.next;
|
|
5913
5899
|
} while (effect !== finishedWork);
|
|
@@ -6084,8 +6070,8 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6084
6070
|
switch (root.tag) {
|
|
6085
6071
|
case 13:
|
|
6086
6072
|
if (null !== root.memoizedState) {
|
|
6087
|
-
var current$
|
|
6088
|
-
if (null === current$
|
|
6073
|
+
var current$84 = root.alternate;
|
|
6074
|
+
if (null === current$84 || null === current$84.memoizedState)
|
|
6089
6075
|
globalMostRecentFallbackTime = now();
|
|
6090
6076
|
}
|
|
6091
6077
|
}
|
|
@@ -6162,8 +6148,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6162
6148
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6163
6149
|
break;
|
|
6164
6150
|
case 3:
|
|
6165
|
-
var updateQueue$
|
|
6166
|
-
if (null !== updateQueue$
|
|
6151
|
+
var updateQueue$81 = firstChild.updateQueue;
|
|
6152
|
+
if (null !== updateQueue$81) {
|
|
6167
6153
|
current = null;
|
|
6168
6154
|
if (null !== firstChild.child)
|
|
6169
6155
|
switch (firstChild.child.tag) {
|
|
@@ -6173,7 +6159,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6173
6159
|
case 1:
|
|
6174
6160
|
current = firstChild.child.stateNode;
|
|
6175
6161
|
}
|
|
6176
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6162
|
+
commitUpdateQueue(firstChild, updateQueue$81, current);
|
|
6177
6163
|
}
|
|
6178
6164
|
break;
|
|
6179
6165
|
case 5:
|
|
@@ -6250,8 +6236,9 @@ var ceil = Math.ceil,
|
|
|
6250
6236
|
workInProgressRootFatalError = null,
|
|
6251
6237
|
workInProgressRootSkippedLanes = 0,
|
|
6252
6238
|
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6253
|
-
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6254
6239
|
workInProgressRootPingedLanes = 0,
|
|
6240
|
+
workInProgressRootConcurrentErrors = null,
|
|
6241
|
+
workInProgressRootRecoverableErrors = null,
|
|
6255
6242
|
globalMostRecentFallbackTime = 0,
|
|
6256
6243
|
workInProgressRootRenderTargetTime = Infinity,
|
|
6257
6244
|
hasUncaughtError = !1,
|
|
@@ -6310,19 +6297,18 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6310
6297
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6311
6298
|
if (null === root) return null;
|
|
6312
6299
|
markRootUpdated(root, lane, eventTime);
|
|
6313
|
-
0
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
(
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6300
|
+
if (0 === (executionContext & 2) || root !== workInProgressRoot)
|
|
6301
|
+
root === workInProgressRoot &&
|
|
6302
|
+
(0 === (executionContext & 2) &&
|
|
6303
|
+
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
6304
|
+
4 === workInProgressRootExitStatus &&
|
|
6305
|
+
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6320
6306
|
ensureRootIsScheduled(root, eventTime),
|
|
6321
6307
|
1 === lane &&
|
|
6322
6308
|
0 === executionContext &&
|
|
6323
6309
|
0 === (fiber.mode & 1) &&
|
|
6324
6310
|
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6325
|
-
includesLegacySyncCallbacks && flushSyncCallbacks())
|
|
6311
|
+
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6326
6312
|
return root;
|
|
6327
6313
|
}
|
|
6328
6314
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6348,12 +6334,12 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6348
6334
|
0 < lanes;
|
|
6349
6335
|
|
|
6350
6336
|
) {
|
|
6351
|
-
var index$
|
|
6352
|
-
lane = 1 << index$
|
|
6353
|
-
expirationTime = expirationTimes[index$
|
|
6337
|
+
var index$5 = 31 - clz32(lanes),
|
|
6338
|
+
lane = 1 << index$5,
|
|
6339
|
+
expirationTime = expirationTimes[index$5];
|
|
6354
6340
|
if (-1 === expirationTime) {
|
|
6355
6341
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6356
|
-
expirationTimes[index$
|
|
6342
|
+
expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
|
|
6357
6343
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6358
6344
|
lanes &= ~lane;
|
|
6359
6345
|
}
|
|
@@ -6493,7 +6479,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6493
6479
|
case 1:
|
|
6494
6480
|
throw Error("Root did not complete. This is a bug in React.");
|
|
6495
6481
|
case 2:
|
|
6496
|
-
commitRoot(root);
|
|
6482
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
6497
6483
|
break;
|
|
6498
6484
|
case 3:
|
|
6499
6485
|
markRootSuspended$1(root, lanes);
|
|
@@ -6510,22 +6496,22 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6510
6496
|
break;
|
|
6511
6497
|
}
|
|
6512
6498
|
root.timeoutHandle = scheduleTimeout(
|
|
6513
|
-
commitRoot.bind(null, root),
|
|
6499
|
+
commitRoot.bind(null, root, workInProgressRootRecoverableErrors),
|
|
6514
6500
|
didTimeout
|
|
6515
6501
|
);
|
|
6516
6502
|
break;
|
|
6517
6503
|
}
|
|
6518
|
-
commitRoot(root);
|
|
6504
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
6519
6505
|
break;
|
|
6520
6506
|
case 4:
|
|
6521
6507
|
markRootSuspended$1(root, lanes);
|
|
6522
6508
|
if ((lanes & 4194240) === lanes) break;
|
|
6523
6509
|
didTimeout = root.eventTimes;
|
|
6524
6510
|
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6525
|
-
var index$
|
|
6526
|
-
prevDispatcher = 1 << index$
|
|
6527
|
-
index$
|
|
6528
|
-
index$
|
|
6511
|
+
var index$4 = 31 - clz32(lanes);
|
|
6512
|
+
prevDispatcher = 1 << index$4;
|
|
6513
|
+
index$4 = didTimeout[index$4];
|
|
6514
|
+
index$4 > prevExecutionContext && (prevExecutionContext = index$4);
|
|
6529
6515
|
lanes &= ~prevDispatcher;
|
|
6530
6516
|
}
|
|
6531
6517
|
lanes = prevExecutionContext;
|
|
@@ -6546,15 +6532,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6546
6532
|
: 1960 * ceil(lanes / 1960)) - lanes;
|
|
6547
6533
|
if (10 < lanes) {
|
|
6548
6534
|
root.timeoutHandle = scheduleTimeout(
|
|
6549
|
-
commitRoot.bind(null, root),
|
|
6535
|
+
commitRoot.bind(null, root, workInProgressRootRecoverableErrors),
|
|
6550
6536
|
lanes
|
|
6551
6537
|
);
|
|
6552
6538
|
break;
|
|
6553
6539
|
}
|
|
6554
|
-
commitRoot(root);
|
|
6540
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
6555
6541
|
break;
|
|
6556
6542
|
case 5:
|
|
6557
|
-
commitRoot(root);
|
|
6543
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
6558
6544
|
break;
|
|
6559
6545
|
default:
|
|
6560
6546
|
throw Error("Unknown root exit status.");
|
|
@@ -6569,15 +6555,18 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
6569
6555
|
var prevExecutionContext = executionContext;
|
|
6570
6556
|
executionContext |= 8;
|
|
6571
6557
|
root.isDehydrated && (root.isDehydrated = !1);
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6558
|
+
var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;
|
|
6559
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6560
|
+
2 !== root &&
|
|
6561
|
+
null !== errorsFromFirstAttempt &&
|
|
6562
|
+
(null === workInProgressRootConcurrentErrors
|
|
6563
|
+
? (workInProgressRootRecoverableErrors = errorsFromFirstAttempt)
|
|
6564
|
+
: (workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
|
|
6565
|
+
null,
|
|
6566
|
+
errorsFromFirstAttempt
|
|
6567
|
+
)));
|
|
6579
6568
|
executionContext = prevExecutionContext;
|
|
6580
|
-
return
|
|
6569
|
+
return root;
|
|
6581
6570
|
}
|
|
6582
6571
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6583
6572
|
for (var node = finishedWork; ; ) {
|
|
@@ -6619,9 +6608,9 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
6619
6608
|
root.suspendedLanes |= suspendedLanes;
|
|
6620
6609
|
root.pingedLanes &= ~suspendedLanes;
|
|
6621
6610
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
6622
|
-
var index$
|
|
6623
|
-
lane = 1 << index$
|
|
6624
|
-
root[index$
|
|
6611
|
+
var index$6 = 31 - clz32(suspendedLanes),
|
|
6612
|
+
lane = 1 << index$6;
|
|
6613
|
+
root[index$6] = -1;
|
|
6625
6614
|
suspendedLanes &= ~lane;
|
|
6626
6615
|
}
|
|
6627
6616
|
}
|
|
@@ -6646,7 +6635,7 @@ function performSyncWorkOnRoot(root) {
|
|
|
6646
6635
|
exitStatus);
|
|
6647
6636
|
root.finishedWork = root.current.alternate;
|
|
6648
6637
|
root.finishedLanes = lanes;
|
|
6649
|
-
commitRoot(root);
|
|
6638
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
6650
6639
|
ensureRootIsScheduled(root, now());
|
|
6651
6640
|
return null;
|
|
6652
6641
|
}
|
|
@@ -6703,7 +6692,8 @@ function prepareFreshStack(root, lanes) {
|
|
|
6703
6692
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
6704
6693
|
workInProgressRootExitStatus = 0;
|
|
6705
6694
|
workInProgressRootFatalError = null;
|
|
6706
|
-
workInProgressRootPingedLanes =
|
|
6695
|
+
workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6696
|
+
workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null;
|
|
6707
6697
|
if (null !== interleavedQueues) {
|
|
6708
6698
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
6709
6699
|
if (
|
|
@@ -6871,8 +6861,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6871
6861
|
" 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."
|
|
6872
6862
|
);
|
|
6873
6863
|
}
|
|
6864
|
+
root = value;
|
|
6874
6865
|
4 !== workInProgressRootExitStatus &&
|
|
6875
6866
|
(workInProgressRootExitStatus = 2);
|
|
6867
|
+
null === workInProgressRootConcurrentErrors
|
|
6868
|
+
? (workInProgressRootConcurrentErrors = [root])
|
|
6869
|
+
: workInProgressRootConcurrentErrors.push(root);
|
|
6876
6870
|
value = createCapturedValue(value, sourceFiber);
|
|
6877
6871
|
root = returnFiber;
|
|
6878
6872
|
do {
|
|
@@ -6904,12 +6898,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6904
6898
|
root.flags |= 65536;
|
|
6905
6899
|
thrownValue &= -thrownValue;
|
|
6906
6900
|
root.lanes |= thrownValue;
|
|
6907
|
-
var update$
|
|
6901
|
+
var update$31 = createClassErrorUpdate(
|
|
6908
6902
|
root,
|
|
6909
6903
|
wakeable,
|
|
6910
6904
|
thrownValue
|
|
6911
6905
|
);
|
|
6912
|
-
enqueueCapturedUpdate(root, update$
|
|
6906
|
+
enqueueCapturedUpdate(root, update$31);
|
|
6913
6907
|
break a;
|
|
6914
6908
|
}
|
|
6915
6909
|
}
|
|
@@ -7004,20 +6998,20 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7004
6998
|
} while (null !== completedWork);
|
|
7005
6999
|
0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
|
|
7006
7000
|
}
|
|
7007
|
-
function commitRoot(root) {
|
|
7001
|
+
function commitRoot(root, recoverableErrors) {
|
|
7008
7002
|
var previousUpdateLanePriority = currentUpdatePriority,
|
|
7009
7003
|
prevTransition = ReactCurrentBatchConfig$2.transition;
|
|
7010
7004
|
try {
|
|
7011
7005
|
(ReactCurrentBatchConfig$2.transition = 0),
|
|
7012
7006
|
(currentUpdatePriority = 1),
|
|
7013
|
-
commitRootImpl(root, previousUpdateLanePriority);
|
|
7007
|
+
commitRootImpl(root, recoverableErrors, previousUpdateLanePriority);
|
|
7014
7008
|
} finally {
|
|
7015
7009
|
(ReactCurrentBatchConfig$2.transition = prevTransition),
|
|
7016
7010
|
(currentUpdatePriority = previousUpdateLanePriority);
|
|
7017
7011
|
}
|
|
7018
7012
|
return null;
|
|
7019
7013
|
}
|
|
7020
|
-
function commitRootImpl(root, renderPriorityLevel) {
|
|
7014
|
+
function commitRootImpl(root, recoverableErrors, renderPriorityLevel) {
|
|
7021
7015
|
do flushPassiveEffects();
|
|
7022
7016
|
while (null !== rootWithPendingPassiveEffects);
|
|
7023
7017
|
if (0 !== (executionContext & 6))
|
|
@@ -7072,6 +7066,15 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7072
7066
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
7073
7067
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
7074
7068
|
ensureRootIsScheduled(root, now());
|
|
7069
|
+
if (null !== recoverableErrors)
|
|
7070
|
+
for (
|
|
7071
|
+
renderPriorityLevel = 0;
|
|
7072
|
+
renderPriorityLevel < recoverableErrors.length;
|
|
7073
|
+
renderPriorityLevel++
|
|
7074
|
+
)
|
|
7075
|
+
(finishedWork = recoverableErrors[renderPriorityLevel]),
|
|
7076
|
+
(lanes = root.onRecoverableError),
|
|
7077
|
+
null !== lanes && lanes(finishedWork);
|
|
7075
7078
|
if (hasUncaughtError)
|
|
7076
7079
|
throw ((hasUncaughtError = !1),
|
|
7077
7080
|
(root = firstUncaughtError),
|
|
@@ -7644,7 +7647,11 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7644
7647
|
newValue.lanes |= renderLanes;
|
|
7645
7648
|
dependency = newValue.alternate;
|
|
7646
7649
|
null !== dependency && (dependency.lanes |= renderLanes);
|
|
7647
|
-
|
|
7650
|
+
scheduleContextWorkOnParentPath(
|
|
7651
|
+
newValue.return,
|
|
7652
|
+
renderLanes,
|
|
7653
|
+
workInProgress
|
|
7654
|
+
);
|
|
7648
7655
|
list.lanes |= renderLanes;
|
|
7649
7656
|
break;
|
|
7650
7657
|
}
|
|
@@ -7949,7 +7956,13 @@ function createFiberFromPortal(portal, mode, lanes) {
|
|
|
7949
7956
|
};
|
|
7950
7957
|
return mode;
|
|
7951
7958
|
}
|
|
7952
|
-
function FiberRootNode(
|
|
7959
|
+
function FiberRootNode(
|
|
7960
|
+
containerInfo,
|
|
7961
|
+
tag,
|
|
7962
|
+
hydrate,
|
|
7963
|
+
identifierPrefix,
|
|
7964
|
+
onRecoverableError
|
|
7965
|
+
) {
|
|
7953
7966
|
this.tag = tag;
|
|
7954
7967
|
this.containerInfo = containerInfo;
|
|
7955
7968
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
@@ -7963,6 +7976,7 @@ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
|
|
|
7963
7976
|
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
7964
7977
|
this.entanglements = createLaneMap(0);
|
|
7965
7978
|
this.identifierPrefix = identifierPrefix;
|
|
7979
|
+
this.onRecoverableError = onRecoverableError;
|
|
7966
7980
|
}
|
|
7967
7981
|
function createPortal(children, containerInfo, implementation) {
|
|
7968
7982
|
var key =
|
|
@@ -8166,10 +8180,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8166
8180
|
}
|
|
8167
8181
|
};
|
|
8168
8182
|
var roots = new Map(),
|
|
8169
|
-
devToolsConfig$jscomp$
|
|
8183
|
+
devToolsConfig$jscomp$inline_927 = {
|
|
8170
8184
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
8171
8185
|
bundleType: 0,
|
|
8172
|
-
version: "18.0.0-rc.0-
|
|
8186
|
+
version: "18.0.0-rc.0-a3bde7974-20220208",
|
|
8173
8187
|
rendererPackageName: "react-native-renderer",
|
|
8174
8188
|
rendererConfig: {
|
|
8175
8189
|
getInspectorDataForViewTag: function() {
|
|
@@ -8184,11 +8198,11 @@ var roots = new Map(),
|
|
|
8184
8198
|
}.bind(null, findNodeHandle)
|
|
8185
8199
|
}
|
|
8186
8200
|
};
|
|
8187
|
-
var internals$jscomp$
|
|
8188
|
-
bundleType: devToolsConfig$jscomp$
|
|
8189
|
-
version: devToolsConfig$jscomp$
|
|
8190
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8191
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8201
|
+
var internals$jscomp$inline_1181 = {
|
|
8202
|
+
bundleType: devToolsConfig$jscomp$inline_927.bundleType,
|
|
8203
|
+
version: devToolsConfig$jscomp$inline_927.version,
|
|
8204
|
+
rendererPackageName: devToolsConfig$jscomp$inline_927.rendererPackageName,
|
|
8205
|
+
rendererConfig: devToolsConfig$jscomp$inline_927.rendererConfig,
|
|
8192
8206
|
overrideHookState: null,
|
|
8193
8207
|
overrideHookStateDeletePath: null,
|
|
8194
8208
|
overrideHookStateRenamePath: null,
|
|
@@ -8204,29 +8218,26 @@ var internals$jscomp$inline_1179 = {
|
|
|
8204
8218
|
return null === fiber ? null : fiber.stateNode;
|
|
8205
8219
|
},
|
|
8206
8220
|
findFiberByHostInstance:
|
|
8207
|
-
devToolsConfig$jscomp$
|
|
8221
|
+
devToolsConfig$jscomp$inline_927.findFiberByHostInstance ||
|
|
8208
8222
|
emptyFindFiberByHostInstance,
|
|
8209
8223
|
findHostInstancesForRefresh: null,
|
|
8210
8224
|
scheduleRefresh: null,
|
|
8211
8225
|
scheduleRoot: null,
|
|
8212
8226
|
setRefreshHandler: null,
|
|
8213
8227
|
getCurrentFiber: null,
|
|
8214
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8228
|
+
reconcilerVersion: "18.0.0-rc.0-a3bde7974-20220208"
|
|
8215
8229
|
};
|
|
8216
8230
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8217
|
-
var hook$jscomp$
|
|
8231
|
+
var hook$jscomp$inline_1182 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8218
8232
|
if (
|
|
8219
|
-
!hook$jscomp$
|
|
8220
|
-
hook$jscomp$
|
|
8233
|
+
!hook$jscomp$inline_1182.isDisabled &&
|
|
8234
|
+
hook$jscomp$inline_1182.supportsFiber
|
|
8221
8235
|
)
|
|
8222
8236
|
try {
|
|
8223
|
-
(rendererID = hook$jscomp$
|
|
8224
|
-
|
|
8225
|
-
getLaneLabelMap: getLaneLabelMap,
|
|
8226
|
-
injectProfilingHooks: injectProfilingHooks
|
|
8227
|
-
})
|
|
8237
|
+
(rendererID = hook$jscomp$inline_1182.inject(
|
|
8238
|
+
internals$jscomp$inline_1181
|
|
8228
8239
|
)),
|
|
8229
|
-
(injectedHook = hook$jscomp$
|
|
8240
|
+
(injectedHook = hook$jscomp$inline_1182);
|
|
8230
8241
|
} catch (err) {}
|
|
8231
8242
|
}
|
|
8232
8243
|
exports.createPortal = function(children, containerTag) {
|
|
@@ -8266,7 +8277,7 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
|
|
|
8266
8277
|
var root = roots.get(containerTag);
|
|
8267
8278
|
root ||
|
|
8268
8279
|
((root = concurrentRoot ? 1 : 0),
|
|
8269
|
-
(concurrentRoot = new FiberRootNode(containerTag, root, !1, "")),
|
|
8280
|
+
(concurrentRoot = new FiberRootNode(containerTag, root, !1, "", null)),
|
|
8270
8281
|
(root = createFiber(3, null, null, 1 === root ? 1 : 0)),
|
|
8271
8282
|
(concurrentRoot.current = root),
|
|
8272
8283
|
(root.stateNode = concurrentRoot),
|