react-native-macos 0.0.0-c8a7ae623 → 0.0.0-c8e32a129
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 +23 -31
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +13 -0
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -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 +110 -68
- 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 +3 -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 +64 -60
- 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 -2
- package/Libraries/Text/RCTConvert+Text.h +2 -2
- package/Libraries/Text/RCTTextAttributes.h +21 -13
- package/Libraries/Text/RCTTextAttributes.m +42 -18
- package/Libraries/Text/RCTTextUIKit.h +2 -0
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -2
- package/Libraries/Text/RawText/RCTRawTextViewManager.m +2 -2
- package/Libraries/Text/React-RCTText.podspec +2 -2
- package/Libraries/Text/Text/NSTextStorage+FontScaling.h +1 -1
- package/Libraries/Text/Text/NSTextStorage+FontScaling.m +1 -1
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +40 -0
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +77 -0
- package/Libraries/Text/Text/RCTTextShadowView.m +15 -15
- package/Libraries/Text/Text/RCTTextView.h +5 -5
- package/Libraries/Text/Text/RCTTextView.m +218 -126
- package/Libraries/Text/Text/RCTTextViewManager.m +6 -6
- package/Libraries/Text/Text.js +0 -14
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +8 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +72 -19
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +16 -3
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +12 -11
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +101 -117
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +8 -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 +12 -10
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +116 -68
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +38 -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 +95 -59
- 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 +3 -1
- package/Libraries/Text/TextProps.js +29 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m +2 -2
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +2 -2
- package/Libraries/Types/CoreEventTypes.js +6 -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 +154 -157
- 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 +11 -6
- package/React/Base/RCTTouchHandler.m +103 -68
- package/React/Base/RCTUIKit.h +113 -28
- package/React/Base/RCTUtils.h +12 -12
- package/React/Base/RCTUtils.m +62 -39
- 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 +199 -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/Image/RCTImageComponentView.mm +11 -0
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +12 -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 +76 -26
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +3 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +2 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +10 -5
- package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +10 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +5 -3
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +23 -6
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +17 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +6 -4
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +98 -34
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +24 -5
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +15 -6
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +5 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +3 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +4 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +6 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +24 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +68 -17
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +17 -7
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +22 -4
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +2 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +10 -4
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +10 -4
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +5 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +54 -26
- package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +3 -3
- 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 +13 -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 +12 -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 +71 -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 +50 -28
- package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -1
- package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
- package/React/Modules/RCTEventEmitter.h +7 -7
- package/React/Modules/RCTI18nUtil.m +1 -1
- package/React/Modules/RCTLayoutAnimation.h +1 -1
- package/React/Modules/RCTLayoutAnimation.m +14 -14
- package/React/Modules/RCTLayoutAnimationGroup.h +1 -1
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -2
- package/React/Modules/RCTSurfacePresenterStub.h +6 -2
- package/React/Modules/RCTUIManager.h +12 -12
- package/React/Modules/RCTUIManager.m +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 +13 -14
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +1 -1
- package/React/Views/ScrollView/RCTScrollEvent.m +3 -3
- package/React/Views/ScrollView/RCTScrollView.h +9 -8
- package/React/Views/ScrollView/RCTScrollView.m +163 -185
- package/React/Views/ScrollView/RCTScrollViewManager.h +2 -2
- package/React/Views/ScrollView/RCTScrollViewManager.m +28 -27
- package/React/Views/ScrollView/RCTScrollableProtocol.h +6 -6
- package/React/Views/UIView+Private.h +4 -4
- package/React/Views/UIView+React.h +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/RCTFontUtils.mm +4 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.mm +5 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +8 -9
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +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 +10 -42
- package/react.gradle +14 -0
- package/scripts/generate-artifacts.js +12 -12
- package/scripts/react_native_pods.rb +3 -3
- package/template/Gemfile +1 -1
- package/template/Gemfile.lock +9 -9
- package/template/_flowconfig +2 -2
- package/template/_ruby-version +1 -1
- package/template/android/app/build.gradle +0 -5
- package/template/android/app/src/main/java/com/helloworld/MainActivity.java +2 -1
- package/template/android/build.gradle +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<<5cd13a68c6b2a6d7a0ea84aff011af30>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
'use strict';
|
|
@@ -3888,7 +3888,34 @@ function dispatchEvent(target, topLevelType, nativeEvent) {
|
|
|
3888
3888
|
}
|
|
3889
3889
|
|
|
3890
3890
|
batchedUpdates(function() {
|
|
3891
|
-
//
|
|
3891
|
+
// Emit event to the RawEventEmitter. This is an unused-by-default EventEmitter
|
|
3892
|
+
// that can be used to instrument event performance monitoring (primarily - could be useful
|
|
3893
|
+
// for other things too).
|
|
3894
|
+
//
|
|
3895
|
+
// NOTE: this merely emits events into the EventEmitter below.
|
|
3896
|
+
// If *you* do not add listeners to the `RawEventEmitter`,
|
|
3897
|
+
// then all of these emitted events will just blackhole and are no-ops.
|
|
3898
|
+
// It is available (although not officially supported... yet) if you want to collect
|
|
3899
|
+
// perf data on event latency in your application, and could also be useful for debugging
|
|
3900
|
+
// low-level events issues.
|
|
3901
|
+
//
|
|
3902
|
+
// If you do not have any event perf monitoring and are extremely concerned about event perf,
|
|
3903
|
+
// it is safe to disable these "emit" statements; it will prevent checking the size of
|
|
3904
|
+
// an empty array twice and prevent two no-ops. Practically the overhead is so low that
|
|
3905
|
+
// we don't think it's worth thinking about in prod; your perf issues probably lie elsewhere.
|
|
3906
|
+
//
|
|
3907
|
+
// We emit two events here: one for listeners to this specific event,
|
|
3908
|
+
// and one for the catchall listener '*', for any listeners that want
|
|
3909
|
+
// to be notified for all events.
|
|
3910
|
+
// Note that extracted events are *not* emitted,
|
|
3911
|
+
// only events that have a 1:1 mapping with a native event, at least for now.
|
|
3912
|
+
var event = {
|
|
3913
|
+
eventName: topLevelType,
|
|
3914
|
+
nativeEvent: nativeEvent
|
|
3915
|
+
};
|
|
3916
|
+
ReactNativePrivateInterface.RawEventEmitter.emit(topLevelType, event);
|
|
3917
|
+
ReactNativePrivateInterface.RawEventEmitter.emit("*", event); // Heritage plugin event system
|
|
3918
|
+
|
|
3892
3919
|
runExtractedPluginEventsInBatch(
|
|
3893
3920
|
topLevelType,
|
|
3894
3921
|
targetFiber,
|
|
@@ -4040,12 +4067,17 @@ function injectInternals(internals) {
|
|
|
4040
4067
|
}
|
|
4041
4068
|
|
|
4042
4069
|
try {
|
|
4043
|
-
|
|
4044
|
-
|
|
4070
|
+
if (enableSchedulingProfiler) {
|
|
4071
|
+
// Conditionally inject these hooks only if Timeline profiler is supported by this build.
|
|
4072
|
+
// This gives DevTools a way to feature detect that isn't tied to version number
|
|
4073
|
+
// (since profiling and timeline are controlled by different feature flags).
|
|
4074
|
+
internals = Object.assign({}, internals, {
|
|
4045
4075
|
getLaneLabelMap: getLaneLabelMap,
|
|
4046
4076
|
injectProfilingHooks: injectProfilingHooks
|
|
4047
|
-
})
|
|
4048
|
-
|
|
4077
|
+
});
|
|
4078
|
+
}
|
|
4079
|
+
|
|
4080
|
+
rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.
|
|
4049
4081
|
|
|
4050
4082
|
injectedHook = hook;
|
|
4051
4083
|
} catch (err) {
|
|
@@ -4179,16 +4211,18 @@ function injectProfilingHooks(profilingHooks) {
|
|
|
4179
4211
|
}
|
|
4180
4212
|
|
|
4181
4213
|
function getLaneLabelMap() {
|
|
4182
|
-
|
|
4183
|
-
|
|
4214
|
+
{
|
|
4215
|
+
var map = new Map();
|
|
4216
|
+
var lane = 1;
|
|
4184
4217
|
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4218
|
+
for (var index = 0; index < TotalLanes; index++) {
|
|
4219
|
+
var label = getLabelForLane(lane);
|
|
4220
|
+
map.set(lane, label);
|
|
4221
|
+
lane *= 2;
|
|
4222
|
+
}
|
|
4190
4223
|
|
|
4191
|
-
|
|
4224
|
+
return map;
|
|
4225
|
+
}
|
|
4192
4226
|
}
|
|
4193
4227
|
|
|
4194
4228
|
function markCommitStarted(lanes) {
|
|
@@ -6941,7 +6975,7 @@ function popProvider(context, providerFiber) {
|
|
|
6941
6975
|
context._currentValue2 = currentValue;
|
|
6942
6976
|
}
|
|
6943
6977
|
}
|
|
6944
|
-
function
|
|
6978
|
+
function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {
|
|
6945
6979
|
// Update the child lanes of all the ancestors, including the alternates.
|
|
6946
6980
|
var node = parent;
|
|
6947
6981
|
|
|
@@ -6959,14 +6993,23 @@ function scheduleWorkOnParentPath(parent, renderLanes) {
|
|
|
6959
6993
|
!isSubsetOfLanes(alternate.childLanes, renderLanes)
|
|
6960
6994
|
) {
|
|
6961
6995
|
alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
|
|
6962
|
-
}
|
|
6963
|
-
|
|
6964
|
-
|
|
6996
|
+
}
|
|
6997
|
+
|
|
6998
|
+
if (node === propagationRoot) {
|
|
6965
6999
|
break;
|
|
6966
7000
|
}
|
|
6967
7001
|
|
|
6968
7002
|
node = node.return;
|
|
6969
7003
|
}
|
|
7004
|
+
|
|
7005
|
+
{
|
|
7006
|
+
if (node !== propagationRoot) {
|
|
7007
|
+
error(
|
|
7008
|
+
"Expected to find the propagation root when scheduling context work. " +
|
|
7009
|
+
"This error is likely caused by a bug in React. Please file an issue."
|
|
7010
|
+
);
|
|
7011
|
+
}
|
|
7012
|
+
}
|
|
6970
7013
|
}
|
|
6971
7014
|
function propagateContextChange(workInProgress, context, renderLanes) {
|
|
6972
7015
|
{
|
|
@@ -7031,7 +7074,11 @@ function propagateContextChange_eager(workInProgress, context, renderLanes) {
|
|
|
7031
7074
|
alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
|
|
7032
7075
|
}
|
|
7033
7076
|
|
|
7034
|
-
|
|
7077
|
+
scheduleContextWorkOnParentPath(
|
|
7078
|
+
fiber.return,
|
|
7079
|
+
renderLanes,
|
|
7080
|
+
workInProgress
|
|
7081
|
+
); // Mark the updated lanes on the list, too.
|
|
7035
7082
|
|
|
7036
7083
|
list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the
|
|
7037
7084
|
// dependency list.
|
|
@@ -8906,7 +8953,7 @@ function popTreeContext(workInProgress) {
|
|
|
8906
8953
|
}
|
|
8907
8954
|
}
|
|
8908
8955
|
|
|
8909
|
-
var isHydrating = false;
|
|
8956
|
+
var isHydrating = false; // Hydration errors that were thrown inside this boundary
|
|
8910
8957
|
|
|
8911
8958
|
function enterHydrationState(fiber) {
|
|
8912
8959
|
{
|
|
@@ -13866,7 +13913,7 @@ function throwException(
|
|
|
13866
13913
|
// over and traverse parent path again, this time treating the exception
|
|
13867
13914
|
// as an error.
|
|
13868
13915
|
|
|
13869
|
-
renderDidError();
|
|
13916
|
+
renderDidError(value);
|
|
13870
13917
|
value = createCapturedValue(value, sourceFiber);
|
|
13871
13918
|
var workInProgress = returnFiber;
|
|
13872
13919
|
|
|
@@ -16912,7 +16959,7 @@ function updateSuspenseFallbackChildren(
|
|
|
16912
16959
|
return fallbackChildFragment;
|
|
16913
16960
|
}
|
|
16914
16961
|
|
|
16915
|
-
function
|
|
16962
|
+
function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
|
|
16916
16963
|
fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
|
|
16917
16964
|
var alternate = fiber.alternate;
|
|
16918
16965
|
|
|
@@ -16920,7 +16967,7 @@ function scheduleWorkOnFiber(fiber, renderLanes) {
|
|
|
16920
16967
|
alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
|
|
16921
16968
|
}
|
|
16922
16969
|
|
|
16923
|
-
|
|
16970
|
+
scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
|
|
16924
16971
|
}
|
|
16925
16972
|
|
|
16926
16973
|
function propagateSuspenseContextChange(
|
|
@@ -16938,7 +16985,7 @@ function propagateSuspenseContextChange(
|
|
|
16938
16985
|
var state = node.memoizedState;
|
|
16939
16986
|
|
|
16940
16987
|
if (state !== null) {
|
|
16941
|
-
|
|
16988
|
+
scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);
|
|
16942
16989
|
}
|
|
16943
16990
|
} else if (node.tag === SuspenseListComponent) {
|
|
16944
16991
|
// If the tail is hidden there might not be an Suspense boundaries
|
|
@@ -16946,7 +16993,7 @@ function propagateSuspenseContextChange(
|
|
|
16946
16993
|
// list itself.
|
|
16947
16994
|
// We don't have to traverse to the children of the list since
|
|
16948
16995
|
// the list will propagate the change when it rerenders.
|
|
16949
|
-
|
|
16996
|
+
scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);
|
|
16950
16997
|
} else if (node.child !== null) {
|
|
16951
16998
|
node.child.return = node;
|
|
16952
16999
|
node = node.child;
|
|
@@ -18238,6 +18285,16 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
18238
18285
|
reportUncaughtErrorInDEV(error);
|
|
18239
18286
|
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
18240
18287
|
}
|
|
18288
|
+
|
|
18289
|
+
{
|
|
18290
|
+
if (typeof retVal === "function") {
|
|
18291
|
+
error(
|
|
18292
|
+
"Unexpected return value from a callback ref in %s. " +
|
|
18293
|
+
"A callback ref should not return a function.",
|
|
18294
|
+
getComponentNameFromFiber(current)
|
|
18295
|
+
);
|
|
18296
|
+
}
|
|
18297
|
+
}
|
|
18241
18298
|
} else {
|
|
18242
18299
|
ref.current = null;
|
|
18243
18300
|
}
|
|
@@ -18946,6 +19003,16 @@ function commitAttachRef(finishedWork) {
|
|
|
18946
19003
|
} else {
|
|
18947
19004
|
retVal = ref(instanceToUse);
|
|
18948
19005
|
}
|
|
19006
|
+
|
|
19007
|
+
{
|
|
19008
|
+
if (typeof retVal === "function") {
|
|
19009
|
+
error(
|
|
19010
|
+
"Unexpected return value from a callback ref in %s. " +
|
|
19011
|
+
"A callback ref should not return a function.",
|
|
19012
|
+
getComponentNameFromFiber(finishedWork)
|
|
19013
|
+
);
|
|
19014
|
+
}
|
|
19015
|
+
}
|
|
18949
19016
|
} else {
|
|
18950
19017
|
{
|
|
18951
19018
|
if (!ref.hasOwnProperty("current")) {
|
|
@@ -20070,9 +20137,12 @@ var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an
|
|
|
20070
20137
|
|
|
20071
20138
|
var workInProgressRootInterleavedUpdatedLanes = NoLanes; // Lanes that were updated during the render phase (*not* an interleaved event).
|
|
20072
20139
|
|
|
20073
|
-
var
|
|
20140
|
+
var workInProgressRootPingedLanes = NoLanes; // Errors that are thrown during the render phase.
|
|
20141
|
+
|
|
20142
|
+
var workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI.
|
|
20143
|
+
// We will log them once the tree commits.
|
|
20074
20144
|
|
|
20075
|
-
var
|
|
20145
|
+
var workInProgressRootRecoverableErrors = null; // The most recent time we committed a fallback. This lets us ensure a train
|
|
20076
20146
|
// model where we don't commit new loading states in too quick succession.
|
|
20077
20147
|
|
|
20078
20148
|
var globalMostRecentFallbackTime = 0;
|
|
@@ -20220,11 +20290,6 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
20220
20290
|
// function), but there are some internal React features that use this as
|
|
20221
20291
|
// an implementation detail, like selective hydration.
|
|
20222
20292
|
warnAboutRenderPhaseUpdatesInDEV(fiber); // Track lanes that were updated during the render phase
|
|
20223
|
-
|
|
20224
|
-
workInProgressRootRenderPhaseUpdatedLanes = mergeLanes(
|
|
20225
|
-
workInProgressRootRenderPhaseUpdatedLanes,
|
|
20226
|
-
lane
|
|
20227
|
-
);
|
|
20228
20293
|
} else {
|
|
20229
20294
|
// This is a normal update, scheduled from outside the render phase. For
|
|
20230
20295
|
// example, during an input event.
|
|
@@ -20601,30 +20666,34 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
20601
20666
|
}
|
|
20602
20667
|
}
|
|
20603
20668
|
|
|
20604
|
-
var
|
|
20605
|
-
var
|
|
20669
|
+
var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;
|
|
20670
|
+
var exitStatus = renderRootSync(root, errorRetryLanes);
|
|
20606
20671
|
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
|
|
20613
|
-
|
|
20614
|
-
// There was a render phase update during this render. Some internal React
|
|
20615
|
-
// implementation details may use this as a trick to schedule another
|
|
20616
|
-
// render pass. To protect against an inifinite loop, eventually
|
|
20617
|
-
// we'll give up.
|
|
20618
|
-
continue;
|
|
20672
|
+
if (exitStatus !== RootErrored) {
|
|
20673
|
+
// Successfully finished rendering on retry
|
|
20674
|
+
if (errorsFromFirstAttempt !== null) {
|
|
20675
|
+
// The errors from the failed first attempt have been recovered. Add
|
|
20676
|
+
// them to the collection of recoverable errors. We'll log them in the
|
|
20677
|
+
// commit phase.
|
|
20678
|
+
queueRecoverableErrors(errorsFromFirstAttempt);
|
|
20619
20679
|
}
|
|
20620
|
-
|
|
20621
|
-
break;
|
|
20622
20680
|
}
|
|
20623
20681
|
|
|
20624
20682
|
executionContext = prevExecutionContext;
|
|
20625
20683
|
return exitStatus;
|
|
20626
20684
|
}
|
|
20627
20685
|
|
|
20686
|
+
function queueRecoverableErrors(errors) {
|
|
20687
|
+
if (workInProgressRootConcurrentErrors === null) {
|
|
20688
|
+
workInProgressRootRecoverableErrors = errors;
|
|
20689
|
+
} else {
|
|
20690
|
+
workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
|
|
20691
|
+
null,
|
|
20692
|
+
errors
|
|
20693
|
+
);
|
|
20694
|
+
}
|
|
20695
|
+
}
|
|
20696
|
+
|
|
20628
20697
|
function finishConcurrentRender(root, exitStatus, lanes) {
|
|
20629
20698
|
switch (exitStatus) {
|
|
20630
20699
|
case RootIncomplete:
|
|
@@ -20638,7 +20707,7 @@ function finishConcurrentRender(root, exitStatus, lanes) {
|
|
|
20638
20707
|
case RootErrored: {
|
|
20639
20708
|
// We should have already attempted to retry this tree. If we reached
|
|
20640
20709
|
// this point, it errored again. Commit it.
|
|
20641
|
-
commitRoot(root);
|
|
20710
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
20642
20711
|
break;
|
|
20643
20712
|
}
|
|
20644
20713
|
|
|
@@ -20678,14 +20747,14 @@ function finishConcurrentRender(root, exitStatus, lanes) {
|
|
|
20678
20747
|
// immediately, wait for more data to arrive.
|
|
20679
20748
|
|
|
20680
20749
|
root.timeoutHandle = scheduleTimeout(
|
|
20681
|
-
commitRoot.bind(null, root),
|
|
20750
|
+
commitRoot.bind(null, root, workInProgressRootRecoverableErrors),
|
|
20682
20751
|
msUntilTimeout
|
|
20683
20752
|
);
|
|
20684
20753
|
break;
|
|
20685
20754
|
}
|
|
20686
20755
|
} // The work expired. Commit immediately.
|
|
20687
20756
|
|
|
20688
|
-
commitRoot(root);
|
|
20757
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
20689
20758
|
break;
|
|
20690
20759
|
}
|
|
20691
20760
|
|
|
@@ -20716,20 +20785,20 @@ function finishConcurrentRender(root, exitStatus, lanes) {
|
|
|
20716
20785
|
// Instead of committing the fallback immediately, wait for more data
|
|
20717
20786
|
// to arrive.
|
|
20718
20787
|
root.timeoutHandle = scheduleTimeout(
|
|
20719
|
-
commitRoot.bind(null, root),
|
|
20788
|
+
commitRoot.bind(null, root, workInProgressRootRecoverableErrors),
|
|
20720
20789
|
_msUntilTimeout
|
|
20721
20790
|
);
|
|
20722
20791
|
break;
|
|
20723
20792
|
}
|
|
20724
20793
|
} // Commit the placeholder.
|
|
20725
20794
|
|
|
20726
|
-
commitRoot(root);
|
|
20795
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
20727
20796
|
break;
|
|
20728
20797
|
}
|
|
20729
20798
|
|
|
20730
20799
|
case RootCompleted: {
|
|
20731
20800
|
// The work completed. Ready to commit.
|
|
20732
|
-
commitRoot(root);
|
|
20801
|
+
commitRoot(root, workInProgressRootRecoverableErrors);
|
|
20733
20802
|
break;
|
|
20734
20803
|
}
|
|
20735
20804
|
|
|
@@ -20860,7 +20929,7 @@ function performSyncWorkOnRoot(root) {
|
|
|
20860
20929
|
var finishedWork = root.current.alternate;
|
|
20861
20930
|
root.finishedWork = finishedWork;
|
|
20862
20931
|
root.finishedLanes = lanes;
|
|
20863
|
-
commitRoot(root); // Before exiting, make sure there's a callback scheduled for the next
|
|
20932
|
+
commitRoot(root, workInProgressRootRecoverableErrors); // Before exiting, make sure there's a callback scheduled for the next
|
|
20864
20933
|
// pending level.
|
|
20865
20934
|
|
|
20866
20935
|
ensureRootIsScheduled(root, now());
|
|
@@ -20967,8 +21036,9 @@ function prepareFreshStack(root, lanes) {
|
|
|
20967
21036
|
workInProgressRootFatalError = null;
|
|
20968
21037
|
workInProgressRootSkippedLanes = NoLanes;
|
|
20969
21038
|
workInProgressRootInterleavedUpdatedLanes = NoLanes;
|
|
20970
|
-
workInProgressRootRenderPhaseUpdatedLanes = NoLanes;
|
|
20971
21039
|
workInProgressRootPingedLanes = NoLanes;
|
|
21040
|
+
workInProgressRootConcurrentErrors = null;
|
|
21041
|
+
workInProgressRootRecoverableErrors = null;
|
|
20972
21042
|
enqueueInterleavedUpdates();
|
|
20973
21043
|
|
|
20974
21044
|
{
|
|
@@ -21121,10 +21191,16 @@ function renderDidSuspendDelayIfPossible() {
|
|
|
21121
21191
|
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
|
|
21122
21192
|
}
|
|
21123
21193
|
}
|
|
21124
|
-
function renderDidError() {
|
|
21194
|
+
function renderDidError(error) {
|
|
21125
21195
|
if (workInProgressRootExitStatus !== RootSuspendedWithDelay) {
|
|
21126
21196
|
workInProgressRootExitStatus = RootErrored;
|
|
21127
21197
|
}
|
|
21198
|
+
|
|
21199
|
+
if (workInProgressRootConcurrentErrors === null) {
|
|
21200
|
+
workInProgressRootConcurrentErrors = [error];
|
|
21201
|
+
} else {
|
|
21202
|
+
workInProgressRootConcurrentErrors.push(error);
|
|
21203
|
+
}
|
|
21128
21204
|
} // Called during render to determine if anything has suspended.
|
|
21129
21205
|
// Returns false if we're not sure.
|
|
21130
21206
|
|
|
@@ -21393,7 +21469,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
21393
21469
|
}
|
|
21394
21470
|
}
|
|
21395
21471
|
|
|
21396
|
-
function commitRoot(root) {
|
|
21472
|
+
function commitRoot(root, recoverableErrors) {
|
|
21397
21473
|
// TODO: This no longer makes any sense. We already wrap the mutation and
|
|
21398
21474
|
// layout phases. Should be able to remove.
|
|
21399
21475
|
var previousUpdateLanePriority = getCurrentUpdatePriority();
|
|
@@ -21402,7 +21478,7 @@ function commitRoot(root) {
|
|
|
21402
21478
|
try {
|
|
21403
21479
|
ReactCurrentBatchConfig$2.transition = 0;
|
|
21404
21480
|
setCurrentUpdatePriority(DiscreteEventPriority);
|
|
21405
|
-
commitRootImpl(root, previousUpdateLanePriority);
|
|
21481
|
+
commitRootImpl(root, recoverableErrors, previousUpdateLanePriority);
|
|
21406
21482
|
} finally {
|
|
21407
21483
|
ReactCurrentBatchConfig$2.transition = prevTransition;
|
|
21408
21484
|
setCurrentUpdatePriority(previousUpdateLanePriority);
|
|
@@ -21411,7 +21487,7 @@ function commitRoot(root) {
|
|
|
21411
21487
|
return null;
|
|
21412
21488
|
}
|
|
21413
21489
|
|
|
21414
|
-
function commitRootImpl(root, renderPriorityLevel) {
|
|
21490
|
+
function commitRootImpl(root, recoverableErrors, renderPriorityLevel) {
|
|
21415
21491
|
do {
|
|
21416
21492
|
// `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
|
|
21417
21493
|
// means `flushPassiveEffects` will sometimes result in additional
|
|
@@ -21616,6 +21692,19 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
21616
21692
|
|
|
21617
21693
|
ensureRootIsScheduled(root, now());
|
|
21618
21694
|
|
|
21695
|
+
if (recoverableErrors !== null) {
|
|
21696
|
+
// There were errors during this render, but recovered from them without
|
|
21697
|
+
// needing to surface it to the UI. We log them here.
|
|
21698
|
+
for (var i = 0; i < recoverableErrors.length; i++) {
|
|
21699
|
+
var recoverableError = recoverableErrors[i];
|
|
21700
|
+
var onRecoverableError = root.onRecoverableError;
|
|
21701
|
+
|
|
21702
|
+
if (onRecoverableError !== null) {
|
|
21703
|
+
onRecoverableError(recoverableError);
|
|
21704
|
+
}
|
|
21705
|
+
}
|
|
21706
|
+
}
|
|
21707
|
+
|
|
21619
21708
|
if (hasUncaughtError) {
|
|
21620
21709
|
hasUncaughtError = false;
|
|
21621
21710
|
var error$1 = firstUncaughtError;
|
|
@@ -23443,7 +23532,13 @@ function assignFiberPropertiesInDEV(target, source) {
|
|
|
23443
23532
|
return target;
|
|
23444
23533
|
}
|
|
23445
23534
|
|
|
23446
|
-
function FiberRootNode(
|
|
23535
|
+
function FiberRootNode(
|
|
23536
|
+
containerInfo,
|
|
23537
|
+
tag,
|
|
23538
|
+
hydrate,
|
|
23539
|
+
identifierPrefix,
|
|
23540
|
+
onRecoverableError
|
|
23541
|
+
) {
|
|
23447
23542
|
this.tag = tag;
|
|
23448
23543
|
this.containerInfo = containerInfo;
|
|
23449
23544
|
this.pendingChildren = null;
|
|
@@ -23467,6 +23562,7 @@ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
|
|
|
23467
23562
|
this.entangledLanes = NoLanes;
|
|
23468
23563
|
this.entanglements = createLaneMap(NoLanes);
|
|
23469
23564
|
this.identifierPrefix = identifierPrefix;
|
|
23565
|
+
this.onRecoverableError = onRecoverableError;
|
|
23470
23566
|
|
|
23471
23567
|
{
|
|
23472
23568
|
this.effectDuration = 0;
|
|
@@ -23501,10 +23597,20 @@ function createFiberRoot(
|
|
|
23501
23597
|
hydrate,
|
|
23502
23598
|
hydrationCallbacks,
|
|
23503
23599
|
isStrictMode,
|
|
23504
|
-
concurrentUpdatesByDefaultOverride,
|
|
23505
|
-
|
|
23600
|
+
concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the
|
|
23601
|
+
// host config, but because they are passed in at runtime, we have to thread
|
|
23602
|
+
// them through the root constructor. Perhaps we should put them all into a
|
|
23603
|
+
// single type, like a DynamicHostConfig that is defined by the renderer.
|
|
23604
|
+
identifierPrefix,
|
|
23605
|
+
onRecoverableError
|
|
23506
23606
|
) {
|
|
23507
|
-
var root = new FiberRootNode(
|
|
23607
|
+
var root = new FiberRootNode(
|
|
23608
|
+
containerInfo,
|
|
23609
|
+
tag,
|
|
23610
|
+
hydrate,
|
|
23611
|
+
identifierPrefix,
|
|
23612
|
+
onRecoverableError
|
|
23613
|
+
);
|
|
23508
23614
|
// stateNode is any.
|
|
23509
23615
|
|
|
23510
23616
|
var uninitializedFiber = createHostRootFiber(
|
|
@@ -23526,7 +23632,7 @@ function createFiberRoot(
|
|
|
23526
23632
|
return root;
|
|
23527
23633
|
}
|
|
23528
23634
|
|
|
23529
|
-
var ReactVersion = "18.0.0-rc.0-
|
|
23635
|
+
var ReactVersion = "18.0.0-rc.0-a3bde7974-20220208";
|
|
23530
23636
|
|
|
23531
23637
|
function createPortal(
|
|
23532
23638
|
children,
|
|
@@ -23654,7 +23760,8 @@ function createContainer(
|
|
|
23654
23760
|
hydrationCallbacks,
|
|
23655
23761
|
isStrictMode,
|
|
23656
23762
|
concurrentUpdatesByDefaultOverride,
|
|
23657
|
-
identifierPrefix
|
|
23763
|
+
identifierPrefix,
|
|
23764
|
+
onRecoverableError
|
|
23658
23765
|
) {
|
|
23659
23766
|
return createFiberRoot(
|
|
23660
23767
|
containerInfo,
|
|
@@ -23663,7 +23770,8 @@ function createContainer(
|
|
|
23663
23770
|
hydrationCallbacks,
|
|
23664
23771
|
isStrictMode,
|
|
23665
23772
|
concurrentUpdatesByDefaultOverride,
|
|
23666
|
-
identifierPrefix
|
|
23773
|
+
identifierPrefix,
|
|
23774
|
+
onRecoverableError
|
|
23667
23775
|
);
|
|
23668
23776
|
}
|
|
23669
23777
|
function updateContainer(element, container, parentComponent, callback) {
|
|
@@ -24458,7 +24566,8 @@ function render(element, containerTag, callback, concurrentRoot) {
|
|
|
24458
24566
|
null,
|
|
24459
24567
|
false,
|
|
24460
24568
|
null,
|
|
24461
|
-
""
|
|
24569
|
+
"",
|
|
24570
|
+
null
|
|
24462
24571
|
);
|
|
24463
24572
|
roots.set(containerTag, root);
|
|
24464
24573
|
}
|