react-native-macos 0.0.0-d74468479 → 0.0.0-d7b3947f3
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/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +2 -3
- package/Libraries/Alert/Alert.js +2 -2
- package/Libraries/Alert/RCTAlertManager.android.js +1 -1
- package/Libraries/Animated/AnimatedEvent.js +10 -5
- package/Libraries/Animated/AnimatedImplementation.js +92 -60
- package/Libraries/Animated/AnimatedMock.js +14 -11
- package/{ReactCommon/react/renderer/mounting/MountingTransactionMetadata.cpp → Libraries/Animated/AnimatedPlatformConfig.js} +6 -5
- package/Libraries/Animated/Easing.js +36 -36
- package/Libraries/Animated/NativeAnimatedHelper.js +23 -20
- package/Libraries/Animated/animations/Animation.js +5 -3
- package/Libraries/Animated/animations/DecayAnimation.js +5 -0
- package/Libraries/Animated/animations/SpringAnimation.js +15 -0
- package/Libraries/Animated/animations/TimingAnimation.js +14 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +5 -4
- package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +4 -3
- package/Libraries/Animated/nodes/AnimatedDivision.js +5 -4
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +5 -3
- package/Libraries/Animated/nodes/AnimatedModulo.js +4 -3
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +5 -4
- package/Libraries/Animated/nodes/AnimatedNode.js +27 -14
- package/Libraries/Animated/nodes/AnimatedProps.js +11 -3
- package/Libraries/Animated/nodes/AnimatedStyle.js +6 -4
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +5 -4
- package/Libraries/Animated/nodes/AnimatedTracking.js +7 -5
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -3
- package/Libraries/Animated/nodes/AnimatedValue.js +2 -0
- package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +5 -4
- package/Libraries/AppState/AppState.js +8 -7
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +2 -2
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -20
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -2
- package/Libraries/Components/Button.js +1 -2
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +6 -7
- package/Libraries/Components/Keyboard/Keyboard.js +8 -7
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +8 -13
- package/Libraries/Components/Pressable/Pressable.js +1 -2
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +2 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +2 -7
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +2 -2
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -0
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +15 -5
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +3 -5
- package/Libraries/Components/ScrollView/ScrollView.js +34 -100
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +134 -71
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -2
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +2 -8
- package/Libraries/Components/Slider/SliderNativeComponent.js +2 -2
- package/Libraries/Components/Sound/SoundManager.js +1 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +115 -2
- package/Libraries/Components/TextInput/InputAccessoryView.js +1 -2
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +9 -4
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +5 -4
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +33 -8
- package/Libraries/Components/TextInput/TextInput.js +137 -11
- package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +3 -3
- package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +3 -3
- package/Libraries/Components/Touchable/BoundingDimensions.js +2 -2
- package/Libraries/Components/Touchable/PooledClass.js +6 -6
- package/Libraries/Components/Touchable/Position.js +1 -1
- package/Libraries/Components/Touchable/Touchable.js +26 -25
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -2
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -2
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +4 -11
- package/Libraries/Components/Touchable/TouchableOpacity.js +1 -3
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -0
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +3 -3
- package/Libraries/Components/View/View.js +0 -7
- package/Libraries/Components/View/ViewNativeComponent.js +3 -4
- package/Libraries/Components/View/ViewPropTypes.js +17 -6
- package/Libraries/Core/Devtools/parseHermesStack.js +2 -1
- package/Libraries/Core/ExceptionsManager.js +2 -2
- package/Libraries/Core/NativeExceptionsManager.js +2 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -0
- package/Libraries/Core/Timers/JSTimers.js +34 -41
- package/Libraries/Core/setUpAlert.js +1 -1
- package/Libraries/Core/setUpDeveloperTools.js +1 -1
- package/Libraries/Core/setUpPerformance.js +1 -1
- package/Libraries/Core/setUpRegeneratorRuntime.js +1 -1
- package/Libraries/Core/setUpSegmentFetcher.js +4 -4
- package/Libraries/EventEmitter/NativeEventEmitter.js +2 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +2 -1
- package/Libraries/HeapCapture/HeapCapture.js +1 -1
- package/Libraries/Image/AssetSourceResolver.js +2 -4
- package/Libraries/Image/Image.android.js +20 -11
- package/Libraries/Image/Image.ios.js +3 -3
- package/Libraries/Image/ImageAnalyticsTagContext.js +2 -3
- package/Libraries/Image/ImageBackground.js +1 -2
- package/Libraries/Image/ImagePickerIOS.js +6 -6
- package/Libraries/Image/ImageViewNativeComponent.js +95 -60
- package/Libraries/Image/NativeImageLoaderAndroid.js +1 -3
- package/Libraries/Image/RCTImageCache.m +1 -1
- package/Libraries/Image/RCTImageView.mm +36 -24
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +12 -72
- package/Libraries/Inspector/ElementProperties.js +2 -4
- package/Libraries/Inspector/InspectorOverlay.js +1 -2
- package/Libraries/Inspector/InspectorPanel.js +1 -2
- package/Libraries/Inspector/NetworkOverlay.js +5 -11
- package/Libraries/Interaction/BridgeSpyStallHandler.js +1 -1
- package/Libraries/Interaction/FrameRateLogger.js +2 -2
- package/Libraries/Interaction/InteractionManager.js +2 -4
- package/Libraries/Interaction/JSEventLoopWatchdog.js +4 -4
- package/Libraries/Interaction/PanResponder.js +3 -4
- package/Libraries/Interaction/TouchHistoryMath.js +7 -7
- package/Libraries/JSInspector/NetworkAgent.js +1 -6
- package/Libraries/LayoutAnimation/LayoutAnimation.js +3 -3
- package/Libraries/LinkingIOS/RCTLinkingManager.h +1 -0
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +12 -5
- package/Libraries/Lists/FillRateHelper.js +1 -3
- package/Libraries/Lists/FlatList.js +41 -5
- package/Libraries/Lists/ViewabilityHelper.js +4 -10
- package/Libraries/Lists/VirtualizeUtils.js +2 -6
- package/Libraries/Lists/VirtualizedList.js +162 -131
- package/Libraries/Lists/VirtualizedListContext.js +3 -5
- package/Libraries/Lists/VirtualizedSectionList.js +63 -68
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +12 -23
- package/Libraries/LogBox/UI/LogBoxButton.js +2 -4
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +2 -4
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -2
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -2
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +3 -6
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -3
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -4
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +2 -4
- package/Libraries/LogBox/UI/LogBoxNotification.js +2 -4
- package/Libraries/Modal/Modal.js +2 -5
- package/Libraries/NativeAnimation/Nodes/RCTColorAnimatedNode.h +14 -0
- 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/RCTNativeAnimatedNodesManager.m +2 -0
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
- package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -4
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +39 -0
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XHRInterceptor.js +5 -6
- package/Libraries/Network/XMLHttpRequest.js +0 -1
- package/Libraries/NewAppScreen/components/Header.js +2 -4
- package/Libraries/NewAppScreen/components/HermesBadge.js +1 -2
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +2 -4
- package/Libraries/Performance/QuickPerformanceLogger.js +17 -0
- package/Libraries/Performance/SamplingProfiler.js +3 -3
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -3
- package/Libraries/Pressability/Pressability.js +2 -2
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +4 -2
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +8 -7
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/ReactNative/AppContainer.js +4 -6
- package/Libraries/ReactNative/AppRegistry.js +2 -3
- package/Libraries/ReactNative/I18nManager.js +2 -5
- package/Libraries/ReactNative/PaperUIManager.js +2 -3
- package/Libraries/ReactNative/RootTag.js +2 -3
- package/Libraries/ReactNative/UIManager.js +5 -10
- package/Libraries/ReactNative/UIManagerInjection.js +3 -3
- package/Libraries/ReactNative/getNativeComponentAttributes.js +4 -0
- package/Libraries/ReactNative/renderApplication.js +1 -2
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +340 -393
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +278 -356
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +87 -78
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +340 -393
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Storage/AsyncStorage.js +21 -21
- package/Libraries/StyleSheet/StyleSheet.js +2 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +26 -1
- package/Libraries/StyleSheet/processColor.js +2 -2
- package/Libraries/StyleSheet/splitLayoutProps.js +1 -3
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +8 -0
- package/Libraries/Text/RCTTextAttributes.h +11 -3
- package/Libraries/Text/RCTTextAttributes.m +64 -14
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +40 -0
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +77 -0
- package/Libraries/Text/Text/RCTTextView.m +123 -58
- package/Libraries/Text/Text.js +2 -9
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +8 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +66 -1
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +13 -0
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +2 -1
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +105 -7
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +13 -1
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +20 -3
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +1 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +12 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +9 -1
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +128 -4
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +15 -3
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +4 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +2 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +68 -2
- package/Libraries/Text/TextNativeComponent.js +5 -5
- package/Libraries/Text/TextProps.js +29 -0
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/Types/CoreEventTypes.js +0 -1
- package/Libraries/Utilities/Appearance.js +8 -5
- package/Libraries/Utilities/BackHandler.android.js +4 -4
- package/Libraries/Utilities/HMRClient.js +2 -2
- package/Libraries/Utilities/JSDevSupportModule.js +3 -4
- package/Libraries/Utilities/MatrixMath.js +19 -19
- package/Libraries/Utilities/PerformanceLoggerContext.js +2 -3
- package/Libraries/Utilities/ReactNativeTestTools.js +2 -4
- package/Libraries/Utilities/SceneTracker.js +1 -3
- package/Libraries/Utilities/__mocks__/BackHandler.js +3 -3
- package/Libraries/Utilities/buildStyleInterpolator.js +9 -9
- package/Libraries/Utilities/codegenNativeComponent.js +4 -2
- package/Libraries/Utilities/differ/deepDiffer.js +1 -1
- package/Libraries/Utilities/differ/insetsDiffer.js +1 -1
- package/Libraries/Utilities/differ/matricesDiffer.js +1 -1
- package/Libraries/Utilities/differ/pointsDiffer.js +1 -1
- package/Libraries/Utilities/differ/sizesDiffer.js +1 -1
- package/Libraries/Utilities/logError.js +1 -1
- package/Libraries/Utilities/mergeIntoFast.js +1 -1
- package/Libraries/Utilities/truncate.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -0
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/Vibration/Vibration.js +2 -2
- package/Libraries/WebSocket/RCTSRWebSocket.m +4 -0
- package/Libraries/WebSocket/WebSocketInterceptor.js +4 -4
- package/Libraries/promiseRejectionTrackingOptions.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +2 -1
- package/Libraries/vendor/emitter/_EventEmitter.js +2 -1
- package/Libraries/vendor/emitter/_EventSubscription.js +2 -1
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
- package/React/Base/RCTAssert.h +30 -15
- package/React/Base/RCTAssert.m +59 -19
- package/React/Base/RCTBridge.m +5 -3
- package/React/Base/RCTConstants.h +6 -0
- package/React/Base/RCTConstants.m +15 -0
- package/React/Base/RCTConvert.m +26 -5
- package/React/Base/RCTEventDispatcherProtocol.h +5 -0
- package/React/Base/RCTRootView.m +0 -51
- package/React/Base/RCTTouchHandler.m +15 -1
- package/React/Base/RCTUIKit.h +10 -13
- package/React/Base/RCTUtils.m +33 -3
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +0 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +3 -1
- package/React/Base/macOS/RCTUIKit.m +53 -0
- package/React/CoreModules/RCTAlertController.m +6 -0
- package/React/CoreModules/RCTAppearance.mm +21 -5
- package/React/CoreModules/RCTDevLoadingView.mm +1 -1
- package/React/CoreModules/RCTDevSettings.mm +33 -12
- package/React/CoreModules/RCTEventDispatcher.mm +6 -1
- package/React/CoreModules/RCTExceptionsManager.mm +1 -1
- package/React/CoreModules/RCTLogBox.h +1 -1
- package/React/CoreModules/RCTLogBox.mm +35 -19
- package/React/CoreModules/RCTLogBoxView.h +8 -5
- package/React/CoreModules/RCTLogBoxView.mm +64 -23
- package/React/CoreModules/RCTPerfMonitor.mm +1 -1
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +1 -0
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +69 -19
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +2 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.mm +0 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +35 -9
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +4 -3
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +13 -5
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +12 -3
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/RCTMountingManager.h +1 -1
- package/React/Fabric/Mounting/RCTMountingManager.mm +19 -11
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.h +5 -3
- package/React/Fabric/Mounting/RCTMountingTransactionObserverCoordinator.mm +10 -8
- package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +5 -3
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +1 -1
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +1 -1
- package/React/Fabric/RCTConversions.h +9 -1
- package/React/Fabric/RCTImageResponseObserverProxy.h +1 -0
- package/React/Fabric/RCTLocalizationProvider.mm +10 -4
- package/React/Fabric/RCTScheduler.h +7 -0
- package/React/Fabric/RCTScheduler.mm +15 -0
- package/React/Fabric/RCTSurfacePresenter.h +8 -0
- package/React/Fabric/RCTSurfacePresenter.mm +54 -24
- package/React/Fabric/RCTSurfaceTouchHandler.mm +0 -1
- package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
- package/React/Modules/RCTSurfacePresenterStub.h +4 -0
- package/React/Modules/RCTUIManager.m +35 -14
- package/React/React-RCTFabric.podspec +2 -2
- package/React/Views/RCTActivityIndicatorView.m +2 -1
- package/React/Views/RCTCursor.h +39 -0
- package/React/Views/RCTCursor.m +105 -0
- package/React/Views/RCTFont.mm +11 -9
- package/React/Views/RCTModalHostView.h +5 -0
- package/React/Views/RCTModalHostViewManager.m +3 -0
- package/React/Views/RCTSliderManager.m +1 -0
- package/React/Views/RCTView.h +16 -0
- package/React/Views/RCTView.m +142 -189
- package/React/Views/RCTViewKeyboardEvent.h +6 -28
- package/React/Views/RCTViewKeyboardEvent.m +66 -61
- package/React/Views/RCTViewManager.m +19 -13
- package/React/Views/ScrollView/RCTScrollContentView.h +4 -0
- package/React/Views/ScrollView/RCTScrollContentView.m +18 -0
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +2 -0
- package/React/Views/ScrollView/RCTScrollView.h +2 -1
- package/React/Views/ScrollView/RCTScrollView.m +72 -80
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -1
- package/React/Views/UIView+React.h +2 -0
- package/React/Views/UIView+React.m +35 -18
- package/ReactAndroid/build.gradle +16 -6
- package/ReactAndroid/gradle.properties +4 -3
- package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +1 -2
- package/ReactAndroid/src/androidTest/js/Asserts.js +2 -2
- package/ReactAndroid/src/androidTest/js/CatalystRootViewTestModule.js +1 -1
- package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +1 -2
- package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +1 -2
- package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +54 -54
- package/ReactAndroid/src/androidTest/js/ProgressBarTestModule.js +1 -1
- package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +6 -7
- package/ReactAndroid/src/androidTest/js/ShareTestModule.js +1 -1
- package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +12 -19
- package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +2 -3
- package/ReactAndroid/src/androidTest/js/TestJSLocaleModule.js +2 -2
- package/ReactAndroid/src/androidTest/js/TestJSToJavaParametersModule.js +17 -17
- package/ReactAndroid/src/androidTest/js/TestJavaToJSArgumentsModule.js +10 -10
- package/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js +2 -2
- package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +2 -3
- package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +3 -6
- package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +3 -6
- package/ReactAndroid/src/androidTest/js/ViewRenderingTestModule.js +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +12 -4
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AdditionAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/DiffClampAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.java +39 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/MultiplicationAnimatedNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/SubtractionAnimatedNode.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSIModuleRegistry.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeArray.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WritableNativeMap.java +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/ReadableMapBuffer.java +119 -78
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.cpp +7 -35
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/react/common/mapbuffer/ReadableMapBuffer.h +5 -18
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/viewPropConversions.h +527 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PointerEvents.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerDelegate.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerInterface.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +22 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +23 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageViewManager.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +1 -8
- package/ReactAndroid/src/main/jni/Application.mk +1 -1
- package/ReactAndroid/src/main/jni/first-party/fb/BUCK +1 -1
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +40 -16
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.cpp +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.h +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.h +3 -3
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +16 -4
- package/ReactAndroid/src/main/third-party/java/okhttp/BUCK +4 -4
- package/ReactCommon/React-Fabric.podspec +1 -1
- package/ReactCommon/React-rncore.podspec +1 -1
- package/ReactCommon/ReactCommon.podspec +1 -1
- package/ReactCommon/cxxreact/JSBigString.cpp +0 -65
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/cxxreact/tests/BUCK +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/src/HeaderWriter.js +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/src/index.js +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +346 -1294
- package/ReactCommon/microprofiler/BUCK +1 -1
- package/ReactCommon/react/debug/react_native_assert.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +8 -3
- package/ReactCommon/react/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 +39 -39
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +5 -0
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +4 -2
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/text/conversions.h +4 -4
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/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.h +3 -1
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +3 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -5
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +26 -17
- package/ReactCommon/react/renderer/components/view/conversions.h +5 -6
- package/ReactCommon/react/renderer/components/view/primitives.h +4 -3
- package/ReactCommon/react/renderer/components/view/propsConversions.h +2 -0
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -5
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +7 -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/platform/ios/Color.h +1 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +64 -85
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +101 -27
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +86 -165
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +22 -57
- package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +36 -26
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +2 -2
- package/ReactCommon/react/renderer/mounting/MountingCoordinator.h +3 -3
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTreeRevision.h +0 -2
- package/ReactCommon/react/renderer/mounting/StubView.h +1 -1
- package/ReactCommon/react/renderer/mounting/StubViewTree.cpp +1 -1
- package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +6 -9
- package/ReactCommon/react/renderer/mounting/TelemetryController.h +7 -7
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +10 -19
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +37 -13
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +3 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +4 -11
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +1 -0
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +19 -2
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +10 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +8 -8
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +4 -0
- 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/yoga/Yoga.podspec +1 -1
- package/jest/assetFileTransformer.js +2 -2
- package/jest/mockModal.js +2 -2
- package/jest/preprocessor.js +2 -2
- package/jest/setup.js +3 -3
- package/package.json +33 -73
- package/react.gradle +0 -4
- package/scripts/find-node.sh +7 -0
- package/scripts/generate-artifacts.js +21 -17
- package/scripts/react_native_pods.rb +7 -9
- package/scripts/react_native_pods_utils/script_phases.rb +2 -2
- package/scripts/react_native_pods_utils/script_phases.sh +1 -1
- package/template/App.js +4 -8
- package/template/Gemfile.lock +10 -10
- package/template/_flowconfig +1 -1
- package/template/_gitignore +2 -1
- package/template/android/build.gradle +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/android/gradlew.bat +89 -89
- package/template/android/settings.gradle +1 -5
- package/template/ios/HelloWorldTests/HelloWorldTests.m +1 -0
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -3
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -113
- package/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType.js +0 -28
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +0 -131
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.ios.js +0 -82
- package/Libraries/DeprecatedPropTypes/DeprecatedImageSourcePropType.js +0 -40
- package/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js +0 -76
- package/Libraries/DeprecatedPropTypes/DeprecatedLayoutPropTypes.js +0 -233
- package/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js +0 -24
- package/Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js +0 -30
- package/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js +0 -32
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +0 -693
- package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
- package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -168
- package/Libraries/DeprecatedPropTypes/DeprecatedTransformPropTypes.js +0 -99
- package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +0 -46
- package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +0 -408
- package/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js +0 -68
- package/Libraries/DeprecatedPropTypes/deprecatedCreateStrictShapeTypeChecker.js +0 -86
- package/Libraries/Types/RootTagTypes.js~merged +0 -23
- package/ReactCommon/butter/optional.h +0 -38
- package/ReactCommon/react/renderer/mapbuffer/primitives.h +0 -91
- package/ReactCommon/react/renderer/mounting/MountingTransactionMetadata.h +0 -32
- package/flow-typed/npm/prop-types_v15.x.x.js +0 -42
- package/third-party-podspecs/boost-for-react-native.podspec +0 -20
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<3ab224d749aabfd2af41824a03d0c6ce>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
'use strict';
|
|
@@ -4252,6 +4252,7 @@ function reenableLogs() {
|
|
|
4252
4252
|
|
|
4253
4253
|
var rendererID = null;
|
|
4254
4254
|
var injectedHook = null;
|
|
4255
|
+
var injectedProfilingHooks = null;
|
|
4255
4256
|
var hasLoggedError = false;
|
|
4256
4257
|
var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined";
|
|
4257
4258
|
function injectInternals(internals) {
|
|
@@ -4282,7 +4283,12 @@ function injectInternals(internals) {
|
|
|
4282
4283
|
}
|
|
4283
4284
|
|
|
4284
4285
|
try {
|
|
4285
|
-
rendererID = hook.inject(
|
|
4286
|
+
rendererID = hook.inject(
|
|
4287
|
+
Object.assign({}, internals, {
|
|
4288
|
+
getLaneLabelMap: getLaneLabelMap,
|
|
4289
|
+
injectProfilingHooks: injectProfilingHooks
|
|
4290
|
+
})
|
|
4291
|
+
); // We have successfully injected, so now it is safe to set up hooks.
|
|
4286
4292
|
|
|
4287
4293
|
injectedHook = hook;
|
|
4288
4294
|
} catch (err) {
|
|
@@ -4409,6 +4415,272 @@ function setIsStrictModeForDevtools(newIsStrictMode) {
|
|
|
4409
4415
|
reenableLogs();
|
|
4410
4416
|
}
|
|
4411
4417
|
}
|
|
4418
|
+
} // Profiler API hooks
|
|
4419
|
+
|
|
4420
|
+
function injectProfilingHooks(profilingHooks) {
|
|
4421
|
+
injectedProfilingHooks = profilingHooks;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
function getLaneLabelMap() {
|
|
4425
|
+
var map = new Map();
|
|
4426
|
+
var lane = 1;
|
|
4427
|
+
|
|
4428
|
+
for (var index = 0; index < TotalLanes; index++) {
|
|
4429
|
+
var label = getLabelForLane(lane);
|
|
4430
|
+
map.set(lane, label);
|
|
4431
|
+
lane *= 2;
|
|
4432
|
+
}
|
|
4433
|
+
|
|
4434
|
+
return map;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4437
|
+
function markCommitStarted(lanes) {
|
|
4438
|
+
{
|
|
4439
|
+
if (
|
|
4440
|
+
injectedProfilingHooks !== null &&
|
|
4441
|
+
typeof injectedProfilingHooks.markCommitStarted === "function"
|
|
4442
|
+
) {
|
|
4443
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
function markCommitStopped() {
|
|
4448
|
+
{
|
|
4449
|
+
if (
|
|
4450
|
+
injectedProfilingHooks !== null &&
|
|
4451
|
+
typeof injectedProfilingHooks.markCommitStopped === "function"
|
|
4452
|
+
) {
|
|
4453
|
+
injectedProfilingHooks.markCommitStopped();
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4456
|
+
}
|
|
4457
|
+
function markComponentRenderStarted(fiber) {
|
|
4458
|
+
{
|
|
4459
|
+
if (
|
|
4460
|
+
injectedProfilingHooks !== null &&
|
|
4461
|
+
typeof injectedProfilingHooks.markComponentRenderStarted === "function"
|
|
4462
|
+
) {
|
|
4463
|
+
injectedProfilingHooks.markComponentRenderStarted(fiber);
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
function markComponentRenderStopped() {
|
|
4468
|
+
{
|
|
4469
|
+
if (
|
|
4470
|
+
injectedProfilingHooks !== null &&
|
|
4471
|
+
typeof injectedProfilingHooks.markComponentRenderStopped === "function"
|
|
4472
|
+
) {
|
|
4473
|
+
injectedProfilingHooks.markComponentRenderStopped();
|
|
4474
|
+
}
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
function markComponentPassiveEffectMountStarted(fiber) {
|
|
4478
|
+
{
|
|
4479
|
+
if (
|
|
4480
|
+
injectedProfilingHooks !== null &&
|
|
4481
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted ===
|
|
4482
|
+
"function"
|
|
4483
|
+
) {
|
|
4484
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStarted(fiber);
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
4487
|
+
}
|
|
4488
|
+
function markComponentPassiveEffectMountStopped() {
|
|
4489
|
+
{
|
|
4490
|
+
if (
|
|
4491
|
+
injectedProfilingHooks !== null &&
|
|
4492
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped ===
|
|
4493
|
+
"function"
|
|
4494
|
+
) {
|
|
4495
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStopped();
|
|
4496
|
+
}
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
function markComponentPassiveEffectUnmountStarted(fiber) {
|
|
4500
|
+
{
|
|
4501
|
+
if (
|
|
4502
|
+
injectedProfilingHooks !== null &&
|
|
4503
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted ===
|
|
4504
|
+
"function"
|
|
4505
|
+
) {
|
|
4506
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(fiber);
|
|
4507
|
+
}
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
function markComponentPassiveEffectUnmountStopped() {
|
|
4511
|
+
{
|
|
4512
|
+
if (
|
|
4513
|
+
injectedProfilingHooks !== null &&
|
|
4514
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped ===
|
|
4515
|
+
"function"
|
|
4516
|
+
) {
|
|
4517
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped();
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
function markComponentLayoutEffectMountStarted(fiber) {
|
|
4522
|
+
{
|
|
4523
|
+
if (
|
|
4524
|
+
injectedProfilingHooks !== null &&
|
|
4525
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted ===
|
|
4526
|
+
"function"
|
|
4527
|
+
) {
|
|
4528
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStarted(fiber);
|
|
4529
|
+
}
|
|
4530
|
+
}
|
|
4531
|
+
}
|
|
4532
|
+
function markComponentLayoutEffectMountStopped() {
|
|
4533
|
+
{
|
|
4534
|
+
if (
|
|
4535
|
+
injectedProfilingHooks !== null &&
|
|
4536
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped ===
|
|
4537
|
+
"function"
|
|
4538
|
+
) {
|
|
4539
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStopped();
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
4542
|
+
}
|
|
4543
|
+
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
4544
|
+
{
|
|
4545
|
+
if (
|
|
4546
|
+
injectedProfilingHooks !== null &&
|
|
4547
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted ===
|
|
4548
|
+
"function"
|
|
4549
|
+
) {
|
|
4550
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
|
|
4551
|
+
}
|
|
4552
|
+
}
|
|
4553
|
+
}
|
|
4554
|
+
function markComponentLayoutEffectUnmountStopped() {
|
|
4555
|
+
{
|
|
4556
|
+
if (
|
|
4557
|
+
injectedProfilingHooks !== null &&
|
|
4558
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped ===
|
|
4559
|
+
"function"
|
|
4560
|
+
) {
|
|
4561
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
|
|
4562
|
+
}
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
function markComponentErrored(fiber, thrownValue, lanes) {
|
|
4566
|
+
{
|
|
4567
|
+
if (
|
|
4568
|
+
injectedProfilingHooks !== null &&
|
|
4569
|
+
typeof injectedProfilingHooks.markComponentErrored === "function"
|
|
4570
|
+
) {
|
|
4571
|
+
injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);
|
|
4572
|
+
}
|
|
4573
|
+
}
|
|
4574
|
+
}
|
|
4575
|
+
function markComponentSuspended(fiber, wakeable, lanes) {
|
|
4576
|
+
{
|
|
4577
|
+
if (
|
|
4578
|
+
injectedProfilingHooks !== null &&
|
|
4579
|
+
typeof injectedProfilingHooks.markComponentSuspended === "function"
|
|
4580
|
+
) {
|
|
4581
|
+
injectedProfilingHooks.markComponentSuspended(fiber, wakeable, lanes);
|
|
4582
|
+
}
|
|
4583
|
+
}
|
|
4584
|
+
}
|
|
4585
|
+
function markLayoutEffectsStarted(lanes) {
|
|
4586
|
+
{
|
|
4587
|
+
if (
|
|
4588
|
+
injectedProfilingHooks !== null &&
|
|
4589
|
+
typeof injectedProfilingHooks.markLayoutEffectsStarted === "function"
|
|
4590
|
+
) {
|
|
4591
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes);
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
function markLayoutEffectsStopped() {
|
|
4596
|
+
{
|
|
4597
|
+
if (
|
|
4598
|
+
injectedProfilingHooks !== null &&
|
|
4599
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped === "function"
|
|
4600
|
+
) {
|
|
4601
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
|
4602
|
+
}
|
|
4603
|
+
}
|
|
4604
|
+
}
|
|
4605
|
+
function markPassiveEffectsStarted(lanes) {
|
|
4606
|
+
{
|
|
4607
|
+
if (
|
|
4608
|
+
injectedProfilingHooks !== null &&
|
|
4609
|
+
typeof injectedProfilingHooks.markPassiveEffectsStarted === "function"
|
|
4610
|
+
) {
|
|
4611
|
+
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
function markPassiveEffectsStopped() {
|
|
4616
|
+
{
|
|
4617
|
+
if (
|
|
4618
|
+
injectedProfilingHooks !== null &&
|
|
4619
|
+
typeof injectedProfilingHooks.markPassiveEffectsStopped === "function"
|
|
4620
|
+
) {
|
|
4621
|
+
injectedProfilingHooks.markPassiveEffectsStopped();
|
|
4622
|
+
}
|
|
4623
|
+
}
|
|
4624
|
+
}
|
|
4625
|
+
function markRenderStarted(lanes) {
|
|
4626
|
+
{
|
|
4627
|
+
if (
|
|
4628
|
+
injectedProfilingHooks !== null &&
|
|
4629
|
+
typeof injectedProfilingHooks.markRenderStarted === "function"
|
|
4630
|
+
) {
|
|
4631
|
+
injectedProfilingHooks.markRenderStarted(lanes);
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
}
|
|
4635
|
+
function markRenderYielded() {
|
|
4636
|
+
{
|
|
4637
|
+
if (
|
|
4638
|
+
injectedProfilingHooks !== null &&
|
|
4639
|
+
typeof injectedProfilingHooks.markRenderYielded === "function"
|
|
4640
|
+
) {
|
|
4641
|
+
injectedProfilingHooks.markRenderYielded();
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
function markRenderStopped() {
|
|
4646
|
+
{
|
|
4647
|
+
if (
|
|
4648
|
+
injectedProfilingHooks !== null &&
|
|
4649
|
+
typeof injectedProfilingHooks.markRenderStopped === "function"
|
|
4650
|
+
) {
|
|
4651
|
+
injectedProfilingHooks.markRenderStopped();
|
|
4652
|
+
}
|
|
4653
|
+
}
|
|
4654
|
+
}
|
|
4655
|
+
function markRenderScheduled(lane) {
|
|
4656
|
+
{
|
|
4657
|
+
if (
|
|
4658
|
+
injectedProfilingHooks !== null &&
|
|
4659
|
+
typeof injectedProfilingHooks.markRenderScheduled === "function"
|
|
4660
|
+
) {
|
|
4661
|
+
injectedProfilingHooks.markRenderScheduled(lane);
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4665
|
+
function markForceUpdateScheduled(fiber, lane) {
|
|
4666
|
+
{
|
|
4667
|
+
if (
|
|
4668
|
+
injectedProfilingHooks !== null &&
|
|
4669
|
+
typeof injectedProfilingHooks.markForceUpdateScheduled === "function"
|
|
4670
|
+
) {
|
|
4671
|
+
injectedProfilingHooks.markForceUpdateScheduled(fiber, lane);
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
function markStateUpdateScheduled(fiber, lane) {
|
|
4676
|
+
{
|
|
4677
|
+
if (
|
|
4678
|
+
injectedProfilingHooks !== null &&
|
|
4679
|
+
typeof injectedProfilingHooks.markStateUpdateScheduled === "function"
|
|
4680
|
+
) {
|
|
4681
|
+
injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
|
|
4682
|
+
}
|
|
4683
|
+
}
|
|
4412
4684
|
}
|
|
4413
4685
|
|
|
4414
4686
|
var NoMode =
|
|
@@ -6242,358 +6514,6 @@ function flushSyncCallbacks() {
|
|
|
6242
6514
|
return null;
|
|
6243
6515
|
}
|
|
6244
6516
|
|
|
6245
|
-
var ReactVersion = "18.0.0-rc.0-fe905f152-20220107";
|
|
6246
|
-
|
|
6247
|
-
var SCHEDULING_PROFILER_VERSION = 1;
|
|
6248
|
-
|
|
6249
|
-
var getLabelForLane$1 = getLabelForLane;
|
|
6250
|
-
var TotalLanes$1 = TotalLanes;
|
|
6251
|
-
/**
|
|
6252
|
-
* If performance exists and supports the subset of the User Timing API that we
|
|
6253
|
-
* require.
|
|
6254
|
-
*/
|
|
6255
|
-
|
|
6256
|
-
var supportsUserTiming =
|
|
6257
|
-
typeof performance !== "undefined" &&
|
|
6258
|
-
typeof performance.mark === "function" &&
|
|
6259
|
-
typeof performance.clearMarks === "function";
|
|
6260
|
-
var supportsUserTimingV3 = false;
|
|
6261
|
-
|
|
6262
|
-
{
|
|
6263
|
-
if (supportsUserTiming) {
|
|
6264
|
-
var CHECK_V3_MARK = "__v3";
|
|
6265
|
-
var markOptions = {}; // $FlowFixMe: Ignore Flow complaining about needing a value
|
|
6266
|
-
|
|
6267
|
-
Object.defineProperty(markOptions, "startTime", {
|
|
6268
|
-
get: function() {
|
|
6269
|
-
supportsUserTimingV3 = true;
|
|
6270
|
-
return 0;
|
|
6271
|
-
},
|
|
6272
|
-
set: function() {}
|
|
6273
|
-
});
|
|
6274
|
-
|
|
6275
|
-
try {
|
|
6276
|
-
// $FlowFixMe: Flow expects the User Timing level 2 API.
|
|
6277
|
-
performance.mark(CHECK_V3_MARK, markOptions);
|
|
6278
|
-
} catch (error) {
|
|
6279
|
-
// Ignore
|
|
6280
|
-
} finally {
|
|
6281
|
-
performance.clearMarks(CHECK_V3_MARK);
|
|
6282
|
-
}
|
|
6283
|
-
}
|
|
6284
|
-
}
|
|
6285
|
-
|
|
6286
|
-
var laneLabels = [];
|
|
6287
|
-
function getLaneLabels() {
|
|
6288
|
-
if (laneLabels.length === 0) {
|
|
6289
|
-
var lane = 1;
|
|
6290
|
-
|
|
6291
|
-
for (var index = 0; index < TotalLanes$1; index++) {
|
|
6292
|
-
laneLabels.push(getLabelForLane$1(lane));
|
|
6293
|
-
lane *= 2;
|
|
6294
|
-
}
|
|
6295
|
-
}
|
|
6296
|
-
|
|
6297
|
-
return laneLabels;
|
|
6298
|
-
}
|
|
6299
|
-
|
|
6300
|
-
function markLaneToLabelMetadata() {
|
|
6301
|
-
getLaneLabels();
|
|
6302
|
-
markAndClear("--react-lane-labels-" + laneLabels.join(","));
|
|
6303
|
-
}
|
|
6304
|
-
|
|
6305
|
-
function markAndClear(name) {
|
|
6306
|
-
performance.mark(name);
|
|
6307
|
-
performance.clearMarks(name);
|
|
6308
|
-
}
|
|
6309
|
-
|
|
6310
|
-
function markVersionMetadata() {
|
|
6311
|
-
markAndClear("--react-version-" + ReactVersion);
|
|
6312
|
-
markAndClear("--profiler-version-" + SCHEDULING_PROFILER_VERSION);
|
|
6313
|
-
}
|
|
6314
|
-
|
|
6315
|
-
function markInternalModuleRanges() {
|
|
6316
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
6317
|
-
if (
|
|
6318
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" &&
|
|
6319
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges === "function"
|
|
6320
|
-
) {
|
|
6321
|
-
var ranges = __REACT_DEVTOOLS_GLOBAL_HOOK__.getInternalModuleRanges(); // This check would not be required,
|
|
6322
|
-
// except that it's possible for things to override __REACT_DEVTOOLS_GLOBAL_HOOK__.
|
|
6323
|
-
|
|
6324
|
-
if (isArray(ranges)) {
|
|
6325
|
-
for (var i = 0; i < ranges.length; i++) {
|
|
6326
|
-
var range = ranges[i];
|
|
6327
|
-
|
|
6328
|
-
if (isArray(range) && range.length === 2) {
|
|
6329
|
-
var _ranges$i = ranges[i],
|
|
6330
|
-
startStackFrame = _ranges$i[0],
|
|
6331
|
-
stopStackFrame = _ranges$i[1];
|
|
6332
|
-
markAndClear("--react-internal-module-start-" + startStackFrame);
|
|
6333
|
-
markAndClear("--react-internal-module-stop-" + stopStackFrame);
|
|
6334
|
-
}
|
|
6335
|
-
}
|
|
6336
|
-
}
|
|
6337
|
-
}
|
|
6338
|
-
}
|
|
6339
|
-
|
|
6340
|
-
function markCommitStarted(lanes) {
|
|
6341
|
-
{
|
|
6342
|
-
if (supportsUserTimingV3) {
|
|
6343
|
-
markAndClear("--commit-start-" + lanes); // Certain types of metadata should be logged infrequently.
|
|
6344
|
-
// Normally we would log this during module init,
|
|
6345
|
-
// but there's no guarantee a user is profiling at that time.
|
|
6346
|
-
// Commits happen infrequently (less than renders or state updates)
|
|
6347
|
-
// so we log this extra information along with a commit.
|
|
6348
|
-
// It will likely be logged more than once but that's okay.
|
|
6349
|
-
//
|
|
6350
|
-
// TODO Once DevTools supports starting/stopping the profiler,
|
|
6351
|
-
// we can log this data only once (when started) and remove the per-commit logging.
|
|
6352
|
-
|
|
6353
|
-
markVersionMetadata();
|
|
6354
|
-
markLaneToLabelMetadata();
|
|
6355
|
-
markInternalModuleRanges();
|
|
6356
|
-
}
|
|
6357
|
-
}
|
|
6358
|
-
}
|
|
6359
|
-
function markCommitStopped() {
|
|
6360
|
-
{
|
|
6361
|
-
if (supportsUserTimingV3) {
|
|
6362
|
-
markAndClear("--commit-stop");
|
|
6363
|
-
}
|
|
6364
|
-
}
|
|
6365
|
-
}
|
|
6366
|
-
function markComponentRenderStarted(fiber) {
|
|
6367
|
-
{
|
|
6368
|
-
if (supportsUserTimingV3) {
|
|
6369
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
|
|
6370
|
-
|
|
6371
|
-
markAndClear("--component-render-start-" + componentName);
|
|
6372
|
-
}
|
|
6373
|
-
}
|
|
6374
|
-
}
|
|
6375
|
-
function markComponentRenderStopped() {
|
|
6376
|
-
{
|
|
6377
|
-
if (supportsUserTimingV3) {
|
|
6378
|
-
markAndClear("--component-render-stop");
|
|
6379
|
-
}
|
|
6380
|
-
}
|
|
6381
|
-
}
|
|
6382
|
-
function markComponentPassiveEffectMountStarted(fiber) {
|
|
6383
|
-
{
|
|
6384
|
-
if (supportsUserTimingV3) {
|
|
6385
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
|
|
6386
|
-
|
|
6387
|
-
markAndClear("--component-passive-effect-mount-start-" + componentName);
|
|
6388
|
-
}
|
|
6389
|
-
}
|
|
6390
|
-
}
|
|
6391
|
-
function markComponentPassiveEffectMountStopped() {
|
|
6392
|
-
{
|
|
6393
|
-
if (supportsUserTimingV3) {
|
|
6394
|
-
markAndClear("--component-passive-effect-mount-stop");
|
|
6395
|
-
}
|
|
6396
|
-
}
|
|
6397
|
-
}
|
|
6398
|
-
function markComponentPassiveEffectUnmountStarted(fiber) {
|
|
6399
|
-
{
|
|
6400
|
-
if (supportsUserTimingV3) {
|
|
6401
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
|
|
6402
|
-
|
|
6403
|
-
markAndClear("--component-passive-effect-unmount-start-" + componentName);
|
|
6404
|
-
}
|
|
6405
|
-
}
|
|
6406
|
-
}
|
|
6407
|
-
function markComponentPassiveEffectUnmountStopped() {
|
|
6408
|
-
{
|
|
6409
|
-
if (supportsUserTimingV3) {
|
|
6410
|
-
markAndClear("--component-passive-effect-unmount-stop");
|
|
6411
|
-
}
|
|
6412
|
-
}
|
|
6413
|
-
}
|
|
6414
|
-
function markComponentLayoutEffectMountStarted(fiber) {
|
|
6415
|
-
{
|
|
6416
|
-
if (supportsUserTimingV3) {
|
|
6417
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
|
|
6418
|
-
|
|
6419
|
-
markAndClear("--component-layout-effect-mount-start-" + componentName);
|
|
6420
|
-
}
|
|
6421
|
-
}
|
|
6422
|
-
}
|
|
6423
|
-
function markComponentLayoutEffectMountStopped() {
|
|
6424
|
-
{
|
|
6425
|
-
if (supportsUserTimingV3) {
|
|
6426
|
-
markAndClear("--component-layout-effect-mount-stop");
|
|
6427
|
-
}
|
|
6428
|
-
}
|
|
6429
|
-
}
|
|
6430
|
-
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
6431
|
-
{
|
|
6432
|
-
if (supportsUserTimingV3) {
|
|
6433
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
|
|
6434
|
-
|
|
6435
|
-
markAndClear("--component-layout-effect-unmount-start-" + componentName);
|
|
6436
|
-
}
|
|
6437
|
-
}
|
|
6438
|
-
}
|
|
6439
|
-
function markComponentLayoutEffectUnmountStopped() {
|
|
6440
|
-
{
|
|
6441
|
-
if (supportsUserTimingV3) {
|
|
6442
|
-
markAndClear("--component-layout-effect-unmount-stop");
|
|
6443
|
-
}
|
|
6444
|
-
}
|
|
6445
|
-
}
|
|
6446
|
-
function markComponentErrored(fiber, thrownValue, lanes) {
|
|
6447
|
-
{
|
|
6448
|
-
if (supportsUserTimingV3) {
|
|
6449
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown";
|
|
6450
|
-
var phase = fiber.alternate === null ? "mount" : "update";
|
|
6451
|
-
var message = "";
|
|
6452
|
-
|
|
6453
|
-
if (
|
|
6454
|
-
thrownValue !== null &&
|
|
6455
|
-
typeof thrownValue === "object" &&
|
|
6456
|
-
typeof thrownValue.message === "string"
|
|
6457
|
-
) {
|
|
6458
|
-
message = thrownValue.message;
|
|
6459
|
-
} else if (typeof thrownValue === "string") {
|
|
6460
|
-
message = thrownValue;
|
|
6461
|
-
} // TODO (timeline) Add component stack id
|
|
6462
|
-
|
|
6463
|
-
markAndClear("--error-" + componentName + "-" + phase + "-" + message);
|
|
6464
|
-
}
|
|
6465
|
-
}
|
|
6466
|
-
}
|
|
6467
|
-
var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; // $FlowFixMe: Flow cannot handle polymorphic WeakMaps
|
|
6468
|
-
|
|
6469
|
-
var wakeableIDs = new PossiblyWeakMap$1();
|
|
6470
|
-
var wakeableID = 0;
|
|
6471
|
-
|
|
6472
|
-
function getWakeableID(wakeable) {
|
|
6473
|
-
if (!wakeableIDs.has(wakeable)) {
|
|
6474
|
-
wakeableIDs.set(wakeable, wakeableID++);
|
|
6475
|
-
}
|
|
6476
|
-
|
|
6477
|
-
return wakeableIDs.get(wakeable);
|
|
6478
|
-
}
|
|
6479
|
-
|
|
6480
|
-
function markComponentSuspended(fiber, wakeable, lanes) {
|
|
6481
|
-
{
|
|
6482
|
-
if (supportsUserTimingV3) {
|
|
6483
|
-
var eventType = wakeableIDs.has(wakeable) ? "resuspend" : "suspend";
|
|
6484
|
-
var id = getWakeableID(wakeable);
|
|
6485
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown";
|
|
6486
|
-
var phase = fiber.alternate === null ? "mount" : "update"; // Following the non-standard fn.displayName convention,
|
|
6487
|
-
// frameworks like Relay may also annotate Promises with a displayName,
|
|
6488
|
-
// describing what operation/data the thrown Promise is related to.
|
|
6489
|
-
// When this is available we should pass it along to the Timeline.
|
|
6490
|
-
|
|
6491
|
-
var displayName = wakeable.displayName || ""; // TODO (timeline) Add component stack id
|
|
6492
|
-
|
|
6493
|
-
markAndClear(
|
|
6494
|
-
"--suspense-" +
|
|
6495
|
-
eventType +
|
|
6496
|
-
"-" +
|
|
6497
|
-
id +
|
|
6498
|
-
"-" +
|
|
6499
|
-
componentName +
|
|
6500
|
-
"-" +
|
|
6501
|
-
phase +
|
|
6502
|
-
"-" +
|
|
6503
|
-
lanes +
|
|
6504
|
-
"-" +
|
|
6505
|
-
displayName
|
|
6506
|
-
);
|
|
6507
|
-
wakeable.then(
|
|
6508
|
-
function() {
|
|
6509
|
-
return markAndClear(
|
|
6510
|
-
"--suspense-resolved-" + id + "-" + componentName
|
|
6511
|
-
);
|
|
6512
|
-
},
|
|
6513
|
-
function() {
|
|
6514
|
-
return markAndClear(
|
|
6515
|
-
"--suspense-rejected-" + id + "-" + componentName
|
|
6516
|
-
);
|
|
6517
|
-
}
|
|
6518
|
-
);
|
|
6519
|
-
}
|
|
6520
|
-
}
|
|
6521
|
-
}
|
|
6522
|
-
function markLayoutEffectsStarted(lanes) {
|
|
6523
|
-
{
|
|
6524
|
-
if (supportsUserTimingV3) {
|
|
6525
|
-
markAndClear("--layout-effects-start-" + lanes);
|
|
6526
|
-
}
|
|
6527
|
-
}
|
|
6528
|
-
}
|
|
6529
|
-
function markLayoutEffectsStopped() {
|
|
6530
|
-
{
|
|
6531
|
-
if (supportsUserTimingV3) {
|
|
6532
|
-
markAndClear("--layout-effects-stop");
|
|
6533
|
-
}
|
|
6534
|
-
}
|
|
6535
|
-
}
|
|
6536
|
-
function markPassiveEffectsStarted(lanes) {
|
|
6537
|
-
{
|
|
6538
|
-
if (supportsUserTimingV3) {
|
|
6539
|
-
markAndClear("--passive-effects-start-" + lanes);
|
|
6540
|
-
}
|
|
6541
|
-
}
|
|
6542
|
-
}
|
|
6543
|
-
function markPassiveEffectsStopped() {
|
|
6544
|
-
{
|
|
6545
|
-
if (supportsUserTimingV3) {
|
|
6546
|
-
markAndClear("--passive-effects-stop");
|
|
6547
|
-
}
|
|
6548
|
-
}
|
|
6549
|
-
}
|
|
6550
|
-
function markRenderStarted(lanes) {
|
|
6551
|
-
{
|
|
6552
|
-
if (supportsUserTimingV3) {
|
|
6553
|
-
markAndClear("--render-start-" + lanes);
|
|
6554
|
-
}
|
|
6555
|
-
}
|
|
6556
|
-
}
|
|
6557
|
-
function markRenderYielded() {
|
|
6558
|
-
{
|
|
6559
|
-
if (supportsUserTimingV3) {
|
|
6560
|
-
markAndClear("--render-yield");
|
|
6561
|
-
}
|
|
6562
|
-
}
|
|
6563
|
-
}
|
|
6564
|
-
function markRenderStopped() {
|
|
6565
|
-
{
|
|
6566
|
-
if (supportsUserTimingV3) {
|
|
6567
|
-
markAndClear("--render-stop");
|
|
6568
|
-
}
|
|
6569
|
-
}
|
|
6570
|
-
}
|
|
6571
|
-
function markRenderScheduled(lane) {
|
|
6572
|
-
{
|
|
6573
|
-
if (supportsUserTimingV3) {
|
|
6574
|
-
markAndClear("--schedule-render-" + lane);
|
|
6575
|
-
}
|
|
6576
|
-
}
|
|
6577
|
-
}
|
|
6578
|
-
function markForceUpdateScheduled(fiber, lane) {
|
|
6579
|
-
{
|
|
6580
|
-
if (supportsUserTimingV3) {
|
|
6581
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
|
|
6582
|
-
|
|
6583
|
-
markAndClear("--schedule-forced-update-" + lane + "-" + componentName);
|
|
6584
|
-
}
|
|
6585
|
-
}
|
|
6586
|
-
}
|
|
6587
|
-
function markStateUpdateScheduled(fiber, lane) {
|
|
6588
|
-
{
|
|
6589
|
-
if (supportsUserTimingV3) {
|
|
6590
|
-
var componentName = getComponentNameFromFiber(fiber) || "Unknown"; // TODO (timeline) Add component stack id
|
|
6591
|
-
|
|
6592
|
-
markAndClear("--schedule-state-update-" + lane + "-" + componentName);
|
|
6593
|
-
}
|
|
6594
|
-
}
|
|
6595
|
-
}
|
|
6596
|
-
|
|
6597
6517
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
6598
6518
|
var NoTransition = 0;
|
|
6599
6519
|
function requestCurrentTransition() {
|
|
@@ -13796,7 +13716,7 @@ function logCapturedError(boundary, errorInfo) {
|
|
|
13796
13716
|
}
|
|
13797
13717
|
}
|
|
13798
13718
|
|
|
13799
|
-
var PossiblyWeakMap$
|
|
13719
|
+
var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map;
|
|
13800
13720
|
|
|
13801
13721
|
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
13802
13722
|
var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.
|
|
@@ -13901,7 +13821,7 @@ function attachWakeableListeners(suspenseBoundary, root, wakeable, lanes) {
|
|
|
13901
13821
|
var threadIDs;
|
|
13902
13822
|
|
|
13903
13823
|
if (pingCache === null) {
|
|
13904
|
-
pingCache = root.pingCache = new PossiblyWeakMap$
|
|
13824
|
+
pingCache = root.pingCache = new PossiblyWeakMap$1();
|
|
13905
13825
|
threadIDs = new Set();
|
|
13906
13826
|
pingCache.set(wakeable, threadIDs);
|
|
13907
13827
|
} else {
|
|
@@ -24018,6 +23938,8 @@ function createFiberRoot(
|
|
|
24018
23938
|
return root;
|
|
24019
23939
|
}
|
|
24020
23940
|
|
|
23941
|
+
var ReactVersion = "18.0.0-rc.0-51947a14b-20220113";
|
|
23942
|
+
|
|
24021
23943
|
function createPortal(
|
|
24022
23944
|
children,
|
|
24023
23945
|
containerInfo, // TODO: figure out the API for cross-renderer implementation.
|