@office-iss/react-native-win32 0.67.0 → 0.68.0-preview.3
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/.eslintignore +2 -1
- package/.flowconfig +6 -2
- package/CHANGELOG.json +366 -41
- package/CHANGELOG.md +136 -24
- package/IntegrationTests/AccessibilityManagerTest.js +1 -1
- package/IntegrationTests/AppEventsTest.js +2 -1
- package/IntegrationTests/AsyncStorageTest.js +8 -6
- package/IntegrationTests/GlobalEvalWithSourceUrlTest.js +1 -1
- package/IntegrationTests/ImageCachePolicyTest.js +1 -1
- package/IntegrationTests/ImageSnapshotTest.js +1 -1
- package/IntegrationTests/IntegrationTestHarnessTest.js +8 -6
- package/IntegrationTests/IntegrationTestsApp.js +3 -9
- package/IntegrationTests/LayoutEventsTest.js +1 -1
- package/IntegrationTests/LoggingTestModule.js +8 -8
- package/IntegrationTests/PromiseTest.js +1 -1
- package/IntegrationTests/PropertiesUpdateTest.js +1 -1
- package/IntegrationTests/RCTRootViewIntegrationTestApp.js +3 -9
- package/IntegrationTests/ReactContentSizeUpdateTest.js +1 -1
- package/IntegrationTests/SimpleSnapshotTest.js +1 -1
- package/IntegrationTests/SizeFlexibilityUpdateTest.js +1 -1
- package/IntegrationTests/SyncMethodTest.js +1 -1
- package/IntegrationTests/TimersTest.js +1 -1
- package/IntegrationTests/WebSocketTest.js +2 -2
- package/IntegrationTests/launchWebSocketServer.command +1 -1
- package/IntegrationTests/websocket_integration_test_server.js +1 -1
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +4 -4
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -1
- package/Libraries/Alert/Alert.js +4 -4
- package/Libraries/Alert/Alert.win32.js +3 -3
- package/Libraries/Alert/NativeAlertManager.js +1 -1
- package/Libraries/Alert/RCTAlertManager.android.js +2 -2
- package/Libraries/Alert/RCTAlertManager.ios.js +1 -1
- package/Libraries/Animated/Animated.js +1 -1
- package/Libraries/Animated/AnimatedEvent.js +11 -6
- package/Libraries/Animated/AnimatedImplementation.js +116 -85
- package/Libraries/Animated/AnimatedMock.js +65 -22
- package/Libraries/{Components/Touchable/__mocks__/ensureComponentIsNative.js → Animated/AnimatedPlatformConfig.js} +3 -2
- package/Libraries/Animated/AnimatedWeb.js +1 -1
- package/Libraries/Animated/Easing.js +38 -40
- package/Libraries/Animated/NativeAnimatedHelper.js +24 -21
- package/Libraries/Animated/NativeAnimatedModule.js +1 -1
- package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -1
- package/Libraries/Animated/SpringConfig.js +11 -11
- package/Libraries/Animated/animations/Animation.js +6 -4
- package/Libraries/Animated/animations/DecayAnimation.js +6 -1
- package/Libraries/Animated/animations/SpringAnimation.js +16 -1
- package/Libraries/Animated/animations/TimingAnimation.js +15 -2
- package/Libraries/Animated/bezier.js +20 -9
- package/Libraries/Animated/components/AnimatedFlatList.js +1 -1
- package/Libraries/Animated/components/AnimatedImage.js +1 -1
- package/Libraries/Animated/components/AnimatedScrollView.js +1 -1
- package/Libraries/Animated/components/AnimatedSectionList.js +1 -1
- package/Libraries/Animated/components/AnimatedText.js +1 -1
- package/Libraries/Animated/components/AnimatedView.js +1 -1
- package/Libraries/Animated/createAnimatedComponent.js +4 -4
- package/Libraries/Animated/createAnimatedComponentInjection.js +1 -1
- package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +1 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +6 -5
- package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +5 -4
- package/Libraries/Animated/nodes/AnimatedDivision.js +6 -5
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +8 -6
- package/Libraries/Animated/nodes/AnimatedModulo.js +5 -4
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +6 -5
- package/Libraries/Animated/nodes/AnimatedNode.js +31 -18
- package/Libraries/Animated/nodes/AnimatedProps.js +12 -4
- package/Libraries/Animated/nodes/AnimatedStyle.js +9 -7
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +6 -5
- package/Libraries/Animated/nodes/AnimatedTracking.js +8 -6
- package/Libraries/Animated/nodes/AnimatedTransform.js +6 -4
- package/Libraries/Animated/nodes/AnimatedValue.js +21 -12
- package/Libraries/Animated/nodes/AnimatedValueXY.js +14 -14
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +6 -5
- package/Libraries/Animated/useAnimatedProps.js +1 -1
- package/Libraries/AppState/AppState.js +9 -8
- package/Libraries/AppState/NativeAppState.js +1 -1
- package/Libraries/BatchedBridge/BatchedBridge.js +1 -1
- package/Libraries/BatchedBridge/MessageQueue.js +7 -9
- package/Libraries/BatchedBridge/NativeModules.js +1 -1
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +1 -1
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +3 -3
- package/Libraries/Blob/Blob.js +1 -1
- package/Libraries/Blob/BlobManager.js +1 -1
- package/Libraries/Blob/BlobRegistry.js +1 -1
- package/Libraries/Blob/BlobTypes.js +1 -1
- package/Libraries/Blob/File.js +1 -1
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/Blob/NativeBlobModule.js +1 -1
- package/Libraries/Blob/NativeFileReaderModule.js +1 -1
- package/Libraries/Blob/URL.js +26 -21
- package/Libraries/Blob/__mocks__/BlobModule.js +1 -1
- package/Libraries/Blob/__mocks__/FileReaderModule.js +1 -1
- package/Libraries/BugReporting/BugReporting.js +1 -1
- package/Libraries/BugReporting/NativeBugReporting.js +1 -1
- package/Libraries/BugReporting/dumpReactTree.js +1 -1
- package/Libraries/BugReporting/getReactData.js +15 -6
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +89 -29
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +95 -35
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +4 -1
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +5 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.win32.js +1 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +5 -5
- package/Libraries/Components/Button.js +1 -1
- package/Libraries/Components/Clipboard/Clipboard.js +1 -1
- package/Libraries/Components/Clipboard/NativeClipboard.js +1 -1
- package/Libraries/Components/DatePicker/DatePickerIOS.android.js +1 -1
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +18 -2
- package/Libraries/Components/DatePicker/DatePickerIOS.win32.js +1 -1
- package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +1 -1
- package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +1 -1
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +3 -3
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +5 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +1 -1
- package/Libraries/Components/Keyboard/Keyboard.js +7 -6
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +11 -6
- package/Libraries/Components/Keyboard/NativeKeyboardObserver.js +1 -1
- package/Libraries/Components/MaskedView/MaskedViewIOS.android.js +1 -1
- package/Libraries/Components/MaskedView/MaskedViewIOS.ios.js +1 -1
- package/Libraries/Components/MaskedView/MaskedViewIOS.win32.js +1 -1
- package/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js +1 -1
- package/Libraries/Components/Pressable/Pressable.js +38 -2
- package/Libraries/Components/Pressable/Pressable.win32.js +1 -1
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +1 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +6 -5
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js +1 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +1 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +1 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +1 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +3 -2
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.win32.js +1 -1
- package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +1 -1
- package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +1 -2
- package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +1 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +3 -8
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +3 -4
- package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +1 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +3 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +3 -3
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +3 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +16 -6
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +4 -6
- package/Libraries/Components/ScrollView/ScrollView.js +22 -15
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
- package/Libraries/Components/ScrollView/ScrollViewContext.js +1 -1
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +135 -71
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +2 -1
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +2 -2
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +2 -1
- package/Libraries/Components/ScrollView/processDecelerationRate.js +1 -1
- package/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js +1 -1
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +1 -1
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +3 -9
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.js +1 -1
- package/Libraries/Components/Slider/Slider.js +1 -1
- package/Libraries/Components/Slider/SliderNativeComponent.js +3 -3
- package/Libraries/Components/Sound/NativeSoundManager.js +1 -1
- package/Libraries/Components/Sound/SoundManager.js +2 -2
- package/Libraries/Components/StaticRenderer.js +1 -1
- package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -1
- package/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +1 -1
- package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +1 -1
- package/Libraries/Components/Switch/Switch.js +1 -1
- package/Libraries/Components/Switch/SwitchNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +175 -14
- package/Libraries/Components/TextInput/InputAccessoryView.js +1 -1
- package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +10 -5
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +6 -5
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +32 -11
- package/Libraries/Components/TextInput/TextInput.js +131 -31
- package/Libraries/Components/TextInput/TextInputNativeCommands.js +1 -1
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
- package/Libraries/Components/ToastAndroid/NativeToastAndroid.js +1 -1
- package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +4 -4
- package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +4 -4
- package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +4 -4
- package/Libraries/Components/Touchable/BoundingDimensions.js +3 -3
- package/Libraries/Components/Touchable/PooledClass.js +12 -12
- package/Libraries/Components/Touchable/Position.js +2 -2
- package/Libraries/Components/Touchable/Touchable.js +27 -40
- package/Libraries/Components/Touchable/TouchableBounce.js +3 -6
- package/Libraries/Components/Touchable/TouchableHighlight.js +3 -6
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -12
- package/Libraries/Components/Touchable/TouchableOpacity.js +3 -7
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +3 -6
- package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +1 -1
- package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -1
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -1
- package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +1 -1
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +13 -2
- package/Libraries/Components/View/ReactNativeViewViewConfig.win32.js +13 -2
- package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +1 -1
- package/Libraries/Components/View/View.js +1 -1
- package/Libraries/Components/View/View.win32.js +2 -2
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Components/View/ViewNativeComponent.js +4 -5
- package/Libraries/Components/View/ViewPropTypes.js +38 -31
- package/Libraries/Components/View/ViewPropTypes.win32.js +38 -31
- package/Libraries/Core/Devtools/getDevServer.js +1 -1
- package/Libraries/Core/Devtools/openFileInEditor.js +1 -1
- package/Libraries/Core/Devtools/openURLInBrowser.js +1 -1
- package/Libraries/Core/Devtools/parseErrorStack.js +1 -1
- package/Libraries/Core/Devtools/parseHermesStack.js +3 -2
- package/Libraries/Core/Devtools/symbolicateStackTrace.js +1 -1
- package/Libraries/Core/ExceptionsManager.js +3 -3
- package/Libraries/Core/ExtendedError.js +1 -1
- package/Libraries/Core/InitializeCore.js +1 -3
- package/Libraries/Core/NativeExceptionsManager.js +3 -4
- package/Libraries/Core/ReactFiberErrorDialog.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +4 -4
- package/Libraries/Core/ReactNativeVersionCheck.js +12 -2
- package/Libraries/Core/ReactNativeVersionCheck.win32.js +12 -2
- package/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +35 -42
- package/Libraries/Core/Timers/NativeTiming.js +1 -1
- package/Libraries/Core/Timers/immediateShim.js +1 -1
- package/Libraries/Core/Timers/queueMicrotask.js +1 -1
- package/Libraries/Core/__mocks__/ErrorUtils.js +1 -1
- package/Libraries/Core/checkNativeVersion.js +1 -1
- package/Libraries/Core/polyfillPromise.js +1 -1
- package/Libraries/Core/setUpAlert.js +2 -2
- package/Libraries/Core/setUpBatchedBridge.js +15 -3
- package/Libraries/Core/setUpDeveloperTools.js +2 -2
- package/Libraries/Core/setUpErrorHandling.js +2 -2
- package/Libraries/Core/setUpGlobals.js +1 -1
- package/Libraries/Core/setUpNavigator.js +1 -1
- package/Libraries/Core/setUpPerformance.js +2 -2
- package/Libraries/Core/setUpReactDevTools.js +1 -1
- package/Libraries/Core/setUpReactRefresh.js +1 -1
- package/Libraries/Core/setUpRegeneratorRuntime.js +2 -2
- package/Libraries/Core/setUpSegmentFetcher.js +5 -5
- package/Libraries/Core/setUpSystrace.js +1 -1
- package/Libraries/Core/setUpTimers.js +12 -2
- package/Libraries/Core/setUpXHR.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +3 -2
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +1 -1
- package/Libraries/EventEmitter/RCTEventEmitter.js +1 -1
- package/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +1 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -2
- package/Libraries/HeapCapture/HeapCapture.js +2 -2
- package/Libraries/HeapCapture/NativeJSCHeapCapture.js +1 -1
- package/Libraries/Image/AssetRegistry.js +1 -1
- package/Libraries/Image/AssetSourceResolver.js +3 -5
- package/Libraries/Image/AssetUtils.js +1 -1
- package/Libraries/Image/Image.android.js +38 -30
- package/Libraries/Image/Image.ios.js +17 -20
- package/Libraries/Image/Image.win32.js +19 -22
- package/Libraries/Image/ImageAnalyticsTagContext.js +3 -4
- package/Libraries/Image/ImageBackground.js +11 -2
- package/Libraries/Image/ImageInjection.js +1 -1
- package/Libraries/Image/ImagePickerIOS.js +7 -7
- package/Libraries/Image/ImageProps.js +18 -18
- package/Libraries/Image/ImageResizeMode.js +1 -1
- package/Libraries/Image/ImageSource.js +1 -1
- package/Libraries/Image/ImageViewNativeComponent.js +96 -61
- package/Libraries/Image/NativeImageEditor.js +1 -1
- package/Libraries/Image/NativeImageLoaderAndroid.js +2 -4
- package/Libraries/Image/NativeImageLoaderIOS.js +1 -1
- package/Libraries/Image/NativeImageLoaderWin32.js +1 -1
- package/Libraries/Image/NativeImagePickerIOS.js +1 -1
- package/Libraries/Image/NativeImageStoreAndroid.js +1 -1
- package/Libraries/Image/NativeImageStoreIOS.js +1 -1
- package/Libraries/Image/RelativeImageStub.js +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +14 -74
- package/Libraries/Image/nativeImageSource.js +3 -3
- package/Libraries/Image/resolveAssetSource.js +1 -1
- package/Libraries/Image/resolveAssetSource.win32.js +1 -1
- package/Libraries/Inspector/BorderBox.js +1 -1
- package/Libraries/Inspector/BoxInspector.js +1 -1
- package/Libraries/Inspector/ElementBox.js +1 -1
- package/Libraries/Inspector/ElementProperties.js +1 -1
- package/Libraries/Inspector/Inspector.js +2 -2
- package/Libraries/Inspector/Inspector.win32.js +7 -7
- package/Libraries/Inspector/InspectorOverlay.js +1 -1
- package/Libraries/Inspector/InspectorOverlay.win32.js +1 -1
- package/Libraries/Inspector/InspectorPanel.js +1 -1
- package/Libraries/Inspector/NetworkOverlay.js +3 -6
- package/Libraries/Inspector/PerformanceOverlay.js +1 -1
- package/Libraries/Inspector/StyleInspector.js +1 -1
- package/Libraries/Inspector/resolveBoxStyle.js +1 -1
- package/Libraries/Interaction/Batchinator.js +1 -1
- package/Libraries/Interaction/BridgeSpyStallHandler.js +2 -2
- package/Libraries/Interaction/FrameRateLogger.js +3 -3
- package/Libraries/Interaction/InteractionManager.js +3 -5
- package/Libraries/Interaction/InteractionStallDebugger.js +1 -1
- package/Libraries/Interaction/JSEventLoopWatchdog.js +5 -5
- package/Libraries/Interaction/NativeFrameRateLogger.js +1 -1
- package/Libraries/Interaction/PanResponder.js +4 -5
- package/Libraries/Interaction/TaskQueue.js +1 -1
- package/Libraries/Interaction/TouchHistoryMath.js +8 -8
- package/Libraries/JSInspector/InspectorAgent.js +1 -1
- package/Libraries/JSInspector/JSInspector.js +1 -1
- package/Libraries/JSInspector/NetworkAgent.js +2 -7
- package/Libraries/LayoutAnimation/LayoutAnimation.js +4 -4
- package/Libraries/Linking/Linking.js +8 -8
- package/Libraries/Linking/NativeIntentAndroid.js +1 -1
- package/Libraries/Linking/NativeLinkingManager.js +1 -1
- package/Libraries/Lists/CellRenderMask.js +1 -1
- package/Libraries/Lists/FillRateHelper.js +5 -4
- package/Libraries/Lists/FlatList.js +4 -5
- package/Libraries/Lists/SectionList.js +4 -4
- package/Libraries/Lists/SectionListModern.js +4 -4
- package/Libraries/Lists/ViewabilityHelper.js +5 -11
- package/Libraries/Lists/VirtualizeUtils.js +3 -7
- package/Libraries/Lists/VirtualizedList.js +23 -33
- package/Libraries/Lists/VirtualizedListContext.js +3 -4
- package/Libraries/Lists/VirtualizedSectionList.js +54 -63
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +1 -1
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
- package/Libraries/Lists/__tests__/CellRenderMask-test.js +1 -1
- package/Libraries/Lists/__tests__/{FillRateHelper-test.js → FillRateHelper-test.windows.js} +8 -8
- package/Libraries/Lists/__tests__/{FlatList-test.js → FlatList-test.windows.js} +3 -3
- package/Libraries/Lists/__tests__/{SectionList-test.js → SectionList-test.windows.js} +15 -15
- package/Libraries/Lists/__tests__/ViewabilityHelper-test.js +15 -15
- package/Libraries/Lists/__tests__/{VirtualizeUtils-test.js → VirtualizeUtils-test.windows.js} +19 -22
- package/Libraries/Lists/__tests__/{VirtualizedList-test.js → VirtualizedList-test.windows.js} +32 -32
- package/Libraries/Lists/__tests__/{VirtualizedSectionList-test.js → VirtualizedSectionList-test.windows.js} +15 -15
- package/Libraries/LogBox/Data/LogBoxData.js +2 -2
- package/Libraries/LogBox/Data/LogBoxLog.js +1 -1
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +13 -24
- package/Libraries/LogBox/LogBox.js +4 -4
- package/Libraries/LogBox/LogBoxInspectorContainer.js +1 -1
- package/Libraries/LogBox/LogBoxNotificationContainer.js +1 -1
- package/Libraries/LogBox/UI/AnsiHighlight.js +10 -5
- package/Libraries/LogBox/UI/LogBoxButton.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspector.js +4 -2
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorSection.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -2
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +4 -2
- package/Libraries/LogBox/UI/LogBoxMessage.js +7 -3
- package/Libraries/LogBox/UI/LogBoxNotification.js +7 -4
- package/Libraries/LogBox/UI/LogBoxStyle.js +1 -1
- package/Libraries/LogBox/UI/LogBoxStyle.win32.js +1 -1
- package/Libraries/Modal/Modal.js +15 -14
- package/Libraries/Modal/ModalInjection.js +1 -1
- package/Libraries/Modal/NativeModalManager.js +1 -1
- package/Libraries/Modal/RCTModalHostViewNativeComponent.js +12 -12
- package/Libraries/NativeComponent/NativeComponentRegistry.js +30 -33
- package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +27 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +198 -0
- package/Libraries/NativeComponent/ViewConfig.js +1 -1
- package/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +1 -1
- package/Libraries/NativeModules/specs/NativeDevMenu.js +1 -1
- package/Libraries/NativeModules/specs/NativeDevSettings.js +1 -1
- package/Libraries/NativeModules/specs/NativeDeviceEventManager.js +1 -1
- package/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js +1 -1
- package/Libraries/NativeModules/specs/NativeLogBox.js +1 -1
- package/Libraries/NativeModules/specs/NativeRedBox.js +1 -1
- package/Libraries/NativeModules/specs/NativeSourceCode.js +1 -1
- package/Libraries/Network/FormData.js +1 -1
- package/Libraries/Network/NativeNetworkingAndroid.js +1 -1
- package/Libraries/Network/NativeNetworkingIOS.js +1 -1
- package/Libraries/Network/RCTNetworking.android.js +1 -1
- package/Libraries/Network/RCTNetworking.ios.js +1 -1
- package/Libraries/Network/RCTNetworking.win32.js +2 -2
- package/Libraries/Network/XHRInterceptor.js +6 -7
- package/Libraries/Network/XMLHttpRequest.js +44 -8
- package/Libraries/Network/convertRequestBody.js +1 -1
- package/Libraries/Network/fetch.js +1 -1
- package/Libraries/NewAppScreen/components/Colors.js +1 -1
- package/Libraries/NewAppScreen/components/DebugInstructions.js +1 -1
- package/Libraries/NewAppScreen/components/Header.js +1 -1
- package/Libraries/NewAppScreen/components/HermesBadge.js +1 -1
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +1 -1
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +1 -1
- package/Libraries/NewAppScreen/index.js +1 -1
- package/Libraries/Performance/NativeJSCSamplingProfiler.js +1 -1
- package/Libraries/Performance/PureComponentDebug.js +1 -1
- package/Libraries/Performance/QuickPerformanceLogger.js +18 -1
- package/Libraries/Performance/SamplingProfiler.js +4 -4
- package/Libraries/Performance/Systrace.js +9 -2
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +7 -2
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +20 -9
- package/Libraries/Pressability/HoverState.js +1 -1
- package/Libraries/Pressability/HoverState.win32.js +1 -1
- package/Libraries/Pressability/Pressability.js +3 -3
- package/Libraries/Pressability/Pressability.win32.js +14 -14
- package/Libraries/Pressability/PressabilityDebug.js +15 -12
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +5 -3
- package/Libraries/Pressability/PressabilityTypes.js +1 -1
- package/Libraries/Pressability/usePressability.js +1 -1
- package/Libraries/Promise.js +1 -1
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -1
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +33 -32
- package/Libraries/ReactNative/AppContainer.js +3 -3
- package/Libraries/ReactNative/AppRegistry.js +15 -13
- package/Libraries/ReactNative/DisplayMode.js +1 -1
- package/Libraries/ReactNative/DummyUIManager.js +13 -6
- package/Libraries/ReactNative/FabricUIManager.js +1 -1
- package/Libraries/ReactNative/HeadlessJsTaskError.js +1 -1
- package/Libraries/ReactNative/I18nManager.js +3 -6
- package/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js +1 -1
- package/Libraries/ReactNative/NativeI18nManager.js +1 -1
- package/Libraries/ReactNative/NativeUIManager.js +1 -1
- package/Libraries/ReactNative/PaperUIManager.js +3 -4
- package/Libraries/ReactNative/PaperUIManager.win32.js +8 -9
- package/Libraries/ReactNative/ReactFabricInternals.js +1 -1
- package/Libraries/ReactNative/RootTag.js +3 -4
- package/Libraries/ReactNative/UIManager.js +5 -7
- package/Libraries/ReactNative/UIManagerInjection.js +4 -2
- package/Libraries/ReactNative/UIManagerProperties.js +1 -1
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +4 -2
- package/Libraries/ReactNative/getNativeComponentAttributes.js +21 -9
- package/Libraries/ReactNative/renderApplication.js +1 -1
- package/Libraries/ReactNative/requireNativeComponent.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -1
- package/Libraries/Reliability/UserFlow.js +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1134 -426
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +265 -236
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +538 -302
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1 -1
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1084 -463
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +1 -1
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +251 -224
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1 -1
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +519 -281
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1 -1
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -4
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Settings/NativeSettingsManager.js +1 -1
- package/Libraries/Settings/Settings.android.js +1 -1
- package/Libraries/Settings/Settings.ios.js +1 -1
- package/Libraries/Share/NativeShareModule.js +1 -1
- package/Libraries/Share/Share.js +1 -1
- package/Libraries/Storage/AsyncStorage.js +34 -35
- package/Libraries/Storage/NativeAsyncLocalStorage.js +1 -1
- package/Libraries/Storage/NativeAsyncSQLiteDBStorage.js +1 -1
- package/Libraries/StyleSheet/EdgeInsetsPropType.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +1 -1
- package/Libraries/StyleSheet/PointPropType.js +1 -1
- package/Libraries/StyleSheet/Rect.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.js +3 -2
- package/Libraries/StyleSheet/StyleSheet.win32.js +3 -2
- package/Libraries/StyleSheet/StyleSheetTypes.js +2 -2
- package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +1 -1
- package/Libraries/StyleSheet/flattenStyle.js +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/processColor.js +3 -3
- package/Libraries/StyleSheet/processColorArray.js +1 -1
- package/Libraries/StyleSheet/processTransform.js +21 -2
- package/Libraries/StyleSheet/setNormalizedColorAlpha.js +1 -1
- package/Libraries/StyleSheet/splitLayoutProps.js +2 -4
- package/Libraries/Text/Text.js +11 -12
- package/Libraries/Text/TextAncestor.js +1 -1
- package/Libraries/Text/TextNativeComponent.js +10 -8
- package/Libraries/Text/TextNativeComponent.win32.js +9 -7
- package/Libraries/Text/TextProps.js +19 -19
- package/Libraries/TurboModule/RCTExport.js +1 -1
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +1 -1
- package/Libraries/Types/CodegenTypes.js +1 -1
- package/Libraries/Types/CoreEventTypes.js +1 -1
- package/Libraries/Types/CoreEventTypes.win32.js +1 -1
- package/Libraries/Types/RootTagTypes.js +1 -1
- package/Libraries/UTFSequence.js +1 -1
- package/Libraries/Utilities/Appearance.js +7 -6
- package/Libraries/Utilities/BackHandler.android.js +5 -5
- package/Libraries/Utilities/BackHandler.ios.js +1 -1
- package/Libraries/Utilities/BackHandler.win32.js +5 -5
- package/Libraries/Utilities/DebugEnvironment.js +1 -1
- package/Libraries/Utilities/DevSettings.js +1 -1
- package/Libraries/Utilities/DeviceInfo.js +1 -1
- package/Libraries/Utilities/Dimensions.js +1 -1
- package/Libraries/Utilities/FeatureDetection.js +1 -1
- package/Libraries/Utilities/GlobalPerformanceLogger.js +1 -1
- package/Libraries/Utilities/HMRClient.js +3 -3
- package/Libraries/Utilities/HMRClientProdShim.js +1 -1
- package/Libraries/Utilities/JSDevSupportModule.js +4 -5
- package/Libraries/Utilities/LoadingView.android.js +1 -1
- package/Libraries/Utilities/LoadingView.ios.js +1 -1
- package/Libraries/Utilities/LoadingView.js +1 -1
- package/Libraries/Utilities/MatrixMath.js +20 -20
- package/Libraries/Utilities/NativeAppearance.js +1 -1
- package/Libraries/Utilities/NativeDevLoadingView.js +1 -1
- package/Libraries/Utilities/NativeDevSplitBundleLoader.js +1 -1
- package/Libraries/Utilities/NativeDeviceInfo.js +1 -1
- package/Libraries/Utilities/NativeJSDevSupport.js +1 -1
- package/Libraries/Utilities/NativePlatformConstantsAndroid.js +1 -1
- package/Libraries/Utilities/NativePlatformConstantsIOS.js +1 -1
- package/Libraries/Utilities/PerformanceLoggerContext.js +3 -4
- package/Libraries/Utilities/PixelRatio.js +1 -1
- package/Libraries/Utilities/Platform.android.js +1 -1
- package/Libraries/Utilities/Platform.ios.js +1 -1
- package/Libraries/Utilities/PolyfillFunctions.js +1 -1
- package/Libraries/Utilities/RCTLog.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +8 -12
- package/Libraries/Utilities/SceneTracker.js +5 -4
- package/Libraries/Utilities/__mocks__/BackHandler.js +4 -4
- package/Libraries/Utilities/__mocks__/GlobalPerformanceLogger.js +1 -1
- package/Libraries/Utilities/__mocks__/PixelRatio.js +1 -1
- package/Libraries/Utilities/binaryToBase64.js +1 -1
- package/Libraries/Utilities/buildStyleInterpolator.js +10 -10
- package/Libraries/Utilities/clamp.js +1 -1
- package/Libraries/Utilities/codegenNativeCommands.js +1 -1
- package/Libraries/Utilities/codegenNativeComponent.js +4 -3
- package/Libraries/Utilities/createPerformanceLogger.js +1 -1
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +3 -3
- package/Libraries/Utilities/defineLazyObjectProperty.js +1 -1
- package/Libraries/Utilities/deprecatedPropType.js +1 -1
- package/Libraries/Utilities/differ/deepDiffer.js +2 -2
- package/Libraries/Utilities/differ/insetsDiffer.js +2 -2
- package/Libraries/Utilities/differ/matricesDiffer.js +6 -2
- package/Libraries/Utilities/differ/pointsDiffer.js +2 -2
- package/Libraries/Utilities/differ/sizesDiffer.js +11 -5
- package/Libraries/Utilities/dismissKeyboard.js +1 -1
- package/Libraries/Utilities/groupByEveryN.js +1 -1
- package/Libraries/Utilities/infoLog.js +1 -1
- package/Libraries/Utilities/logError.js +2 -2
- package/Libraries/Utilities/mapWithSeparator.js +1 -1
- package/Libraries/Utilities/mergeIntoFast.js +2 -2
- package/Libraries/Utilities/setAndForwardRef.js +1 -1
- package/Libraries/Utilities/stringifySafe.js +1 -1
- package/Libraries/Utilities/truncate.js +2 -2
- package/Libraries/Utilities/useColorScheme.js +1 -1
- package/Libraries/Utilities/useMergeRefs.js +1 -1
- package/Libraries/Utilities/useRefEffect.js +1 -1
- package/Libraries/Utilities/useWindowDimensions.js +6 -2
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +4 -2
- package/Libraries/Utilities/warnOnce.js +1 -1
- package/Libraries/Vibration/NativeVibration.js +1 -1
- package/Libraries/Vibration/Vibration.js +6 -6
- package/Libraries/WebSocket/NativeWebSocketModule.js +1 -1
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/Libraries/WebSocket/WebSocketEvent.js +1 -1
- package/Libraries/WebSocket/WebSocketInterceptor.js +7 -7
- package/Libraries/WebSocket/__mocks__/event-target-shim.js +1 -1
- package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -1
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +1 -1
- package/Libraries/promiseRejectionTrackingOptions.js +2 -2
- package/Libraries/vendor/core/ErrorUtils.js +1 -1
- package/Libraries/vendor/emitter/EventEmitter.js +1 -1
- package/Libraries/vendor/emitter/EventSubscription.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +3 -2
- package/Libraries/vendor/emitter/_EventEmitter.js +3 -2
- package/Libraries/vendor/emitter/_EventSubscription.js +3 -2
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +2 -2
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +1 -1
- package/flow/HermesInternalType.js +1 -1
- package/flow/Position.js +1 -1
- package/flow/Promise.js +1 -1
- package/flow/Stringish.js +1 -1
- package/flow/console.js +1 -1
- package/flow/global.js +2 -6
- package/flow/jest.js +1 -1
- package/flow/use-subscription.js +1 -1
- package/flow-typed/npm/glob_v7.x.x.js +79 -0
- package/index.js +26 -17
- package/index.win32.js +26 -20
- package/interface.js +1 -1
- package/jest/MockNativeMethods.js +1 -1
- package/jest/assetFileTransformer.js +3 -3
- package/jest/mockComponent.js +1 -1
- package/jest/mockModal.js +3 -3
- package/jest/mockNativeComponent.js +5 -1
- package/jest/mockScrollView.js +1 -1
- package/jest/preprocessor.js +3 -3
- package/jest/renderer.js +1 -1
- package/jest/setup.js +5 -4
- package/overrides.json +68 -68
- package/package.json +27 -25
- package/rn-get-polyfills.js +1 -1
- package/rntypes/globals.d.ts +6 -5
- package/rntypes/index.d.ts +89 -312
- package/rntypes/legacy-properties.d.ts +0 -28
- package/src/rntypes/globals.d.ts +6 -5
- package/src/rntypes/index.d.ts +89 -312
- package/src/rntypes/legacy-properties.d.ts +0 -28
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -116
- 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/DeprecatedImagePropType.win32.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 -622
- package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
- package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -157
- 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/flow-typed/npm/prop-types_v15.x.x.js +0 -42
- package/src/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap +0 -427
- package/src/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap +0 -391
- package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizeUtils-test.js.snap +0 -3
- package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap +0 -4634
- package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap +0 -1153
|
@@ -7,10 +7,21 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<b48d0cdae51eab70302c920e0a867d32>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
'use strict';
|
|
15
|
+
|
|
16
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
17
|
+
if (
|
|
18
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
19
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
20
|
+
'function'
|
|
21
|
+
) {
|
|
22
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
23
|
+
}
|
|
24
|
+
"use strict";
|
|
14
25
|
require("react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore");
|
|
15
26
|
var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"),
|
|
16
27
|
React = require("react");
|
|
@@ -926,7 +937,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
926
937
|
"ReactNativeBridgeEventPlugin"
|
|
927
938
|
]);
|
|
928
939
|
recomputePluginOrdering();
|
|
929
|
-
var injectedNamesToPlugins$jscomp$
|
|
940
|
+
var injectedNamesToPlugins$jscomp$inline_231 = {
|
|
930
941
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
931
942
|
ReactNativeBridgeEventPlugin: {
|
|
932
943
|
eventTypes: {},
|
|
@@ -961,33 +972,33 @@ var injectedNamesToPlugins$jscomp$inline_230 = {
|
|
|
961
972
|
}
|
|
962
973
|
}
|
|
963
974
|
},
|
|
964
|
-
isOrderingDirty$jscomp$
|
|
965
|
-
pluginName$jscomp$
|
|
966
|
-
for (pluginName$jscomp$
|
|
975
|
+
isOrderingDirty$jscomp$inline_232 = !1,
|
|
976
|
+
pluginName$jscomp$inline_233;
|
|
977
|
+
for (pluginName$jscomp$inline_233 in injectedNamesToPlugins$jscomp$inline_231)
|
|
967
978
|
if (
|
|
968
|
-
injectedNamesToPlugins$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
979
|
+
injectedNamesToPlugins$jscomp$inline_231.hasOwnProperty(
|
|
980
|
+
pluginName$jscomp$inline_233
|
|
970
981
|
)
|
|
971
982
|
) {
|
|
972
|
-
var pluginModule$jscomp$
|
|
973
|
-
injectedNamesToPlugins$jscomp$
|
|
983
|
+
var pluginModule$jscomp$inline_234 =
|
|
984
|
+
injectedNamesToPlugins$jscomp$inline_231[pluginName$jscomp$inline_233];
|
|
974
985
|
if (
|
|
975
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
976
|
-
namesToPlugins[pluginName$jscomp$
|
|
977
|
-
pluginModule$jscomp$
|
|
986
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_233) ||
|
|
987
|
+
namesToPlugins[pluginName$jscomp$inline_233] !==
|
|
988
|
+
pluginModule$jscomp$inline_234
|
|
978
989
|
) {
|
|
979
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
990
|
+
if (namesToPlugins[pluginName$jscomp$inline_233])
|
|
980
991
|
throw Error(
|
|
981
992
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
982
|
-
(pluginName$jscomp$
|
|
993
|
+
(pluginName$jscomp$inline_233 + "`.")
|
|
983
994
|
);
|
|
984
995
|
namesToPlugins[
|
|
985
|
-
pluginName$jscomp$
|
|
986
|
-
] = pluginModule$jscomp$
|
|
987
|
-
isOrderingDirty$jscomp$
|
|
996
|
+
pluginName$jscomp$inline_233
|
|
997
|
+
] = pluginModule$jscomp$inline_234;
|
|
998
|
+
isOrderingDirty$jscomp$inline_232 = !0;
|
|
988
999
|
}
|
|
989
1000
|
}
|
|
990
|
-
isOrderingDirty$jscomp$
|
|
1001
|
+
isOrderingDirty$jscomp$inline_232 && recomputePluginOrdering();
|
|
991
1002
|
var instanceCache = new Map(),
|
|
992
1003
|
instanceProps = new Map();
|
|
993
1004
|
function getInstanceFromTag(tag) {
|
|
@@ -1686,6 +1697,7 @@ var ReactNativeFiberHostComponent = (function() {
|
|
|
1686
1697
|
IdlePriority = Scheduler.unstable_IdlePriority,
|
|
1687
1698
|
rendererID = null,
|
|
1688
1699
|
injectedHook = null,
|
|
1700
|
+
injectedProfilingHooks = null,
|
|
1689
1701
|
isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
1690
1702
|
function onCommitRoot(root, eventPriority) {
|
|
1691
1703
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
@@ -1715,6 +1727,80 @@ function onCommitRoot(root, eventPriority) {
|
|
|
1715
1727
|
);
|
|
1716
1728
|
} catch (err) {}
|
|
1717
1729
|
}
|
|
1730
|
+
function injectProfilingHooks(profilingHooks) {
|
|
1731
|
+
injectedProfilingHooks = profilingHooks;
|
|
1732
|
+
}
|
|
1733
|
+
function getLaneLabelMap() {
|
|
1734
|
+
for (var map = new Map(), lane = 1, index$4 = 0; 31 > index$4; index$4++) {
|
|
1735
|
+
var label = getLabelForLane(lane);
|
|
1736
|
+
map.set(lane, label);
|
|
1737
|
+
lane *= 2;
|
|
1738
|
+
}
|
|
1739
|
+
return map;
|
|
1740
|
+
}
|
|
1741
|
+
function markCommitStopped() {
|
|
1742
|
+
null !== injectedProfilingHooks &&
|
|
1743
|
+
"function" === typeof injectedProfilingHooks.markCommitStopped &&
|
|
1744
|
+
injectedProfilingHooks.markCommitStopped();
|
|
1745
|
+
}
|
|
1746
|
+
function markComponentRenderStarted(fiber) {
|
|
1747
|
+
null !== injectedProfilingHooks &&
|
|
1748
|
+
"function" === typeof injectedProfilingHooks.markComponentRenderStarted &&
|
|
1749
|
+
injectedProfilingHooks.markComponentRenderStarted(fiber);
|
|
1750
|
+
}
|
|
1751
|
+
function markComponentRenderStopped() {
|
|
1752
|
+
null !== injectedProfilingHooks &&
|
|
1753
|
+
"function" === typeof injectedProfilingHooks.markComponentRenderStopped &&
|
|
1754
|
+
injectedProfilingHooks.markComponentRenderStopped();
|
|
1755
|
+
}
|
|
1756
|
+
function markComponentLayoutEffectUnmountStarted(fiber) {
|
|
1757
|
+
null !== injectedProfilingHooks &&
|
|
1758
|
+
"function" ===
|
|
1759
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
|
|
1760
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
|
|
1761
|
+
}
|
|
1762
|
+
function markComponentLayoutEffectUnmountStopped() {
|
|
1763
|
+
null !== injectedProfilingHooks &&
|
|
1764
|
+
"function" ===
|
|
1765
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
|
|
1766
|
+
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
|
|
1767
|
+
}
|
|
1768
|
+
function markRenderStarted(lanes) {
|
|
1769
|
+
null !== injectedProfilingHooks &&
|
|
1770
|
+
"function" === typeof injectedProfilingHooks.markRenderStarted &&
|
|
1771
|
+
injectedProfilingHooks.markRenderStarted(lanes);
|
|
1772
|
+
}
|
|
1773
|
+
function markRenderStopped() {
|
|
1774
|
+
null !== injectedProfilingHooks &&
|
|
1775
|
+
"function" === typeof injectedProfilingHooks.markRenderStopped &&
|
|
1776
|
+
injectedProfilingHooks.markRenderStopped();
|
|
1777
|
+
}
|
|
1778
|
+
function markStateUpdateScheduled(fiber, lane) {
|
|
1779
|
+
null !== injectedProfilingHooks &&
|
|
1780
|
+
"function" === typeof injectedProfilingHooks.markStateUpdateScheduled &&
|
|
1781
|
+
injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
|
|
1782
|
+
}
|
|
1783
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1784
|
+
log = Math.log,
|
|
1785
|
+
LN2 = Math.LN2;
|
|
1786
|
+
function clz32Fallback(x) {
|
|
1787
|
+
x >>>= 0;
|
|
1788
|
+
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
1789
|
+
}
|
|
1790
|
+
function getLabelForLane(lane) {
|
|
1791
|
+
if (lane & 1) return "Sync";
|
|
1792
|
+
if (lane & 2) return "InputContinuousHydration";
|
|
1793
|
+
if (lane & 4) return "InputContinuous";
|
|
1794
|
+
if (lane & 8) return "DefaultHydration";
|
|
1795
|
+
if (lane & 16) return "Default";
|
|
1796
|
+
if (lane & 32) return "TransitionHydration";
|
|
1797
|
+
if (lane & 4194240) return "Transition";
|
|
1798
|
+
if (lane & 130023424) return "Retry";
|
|
1799
|
+
if (lane & 134217728) return "SelectiveHydration";
|
|
1800
|
+
if (lane & 268435456) return "IdleHydration";
|
|
1801
|
+
if (lane & 536870912) return "Idle";
|
|
1802
|
+
if (lane & 1073741824) return "Offscreen";
|
|
1803
|
+
}
|
|
1718
1804
|
var nextTransitionLane = 64,
|
|
1719
1805
|
nextRetryLane = 4194304;
|
|
1720
1806
|
function getHighestPriorityLanes(lanes) {
|
|
@@ -1880,30 +1966,30 @@ function markRootFinished(root, remainingLanes) {
|
|
|
1880
1966
|
remainingLanes = root.entanglements;
|
|
1881
1967
|
var eventTimes = root.eventTimes;
|
|
1882
1968
|
for (root = root.expirationTimes; 0 < noLongerPendingLanes; ) {
|
|
1883
|
-
var index$
|
|
1884
|
-
lane = 1 << index$
|
|
1885
|
-
remainingLanes[index$
|
|
1886
|
-
eventTimes[index$
|
|
1887
|
-
root[index$
|
|
1969
|
+
var index$9 = 31 - clz32(noLongerPendingLanes),
|
|
1970
|
+
lane = 1 << index$9;
|
|
1971
|
+
remainingLanes[index$9] = 0;
|
|
1972
|
+
eventTimes[index$9] = -1;
|
|
1973
|
+
root[index$9] = -1;
|
|
1888
1974
|
noLongerPendingLanes &= ~lane;
|
|
1889
1975
|
}
|
|
1890
1976
|
}
|
|
1891
1977
|
function markRootEntangled(root, entangledLanes) {
|
|
1892
1978
|
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
|
|
1893
1979
|
for (root = root.entanglements; rootEntangledLanes; ) {
|
|
1894
|
-
var index$
|
|
1895
|
-
lane = 1 << index$
|
|
1896
|
-
(lane & entangledLanes) | (root[index$
|
|
1897
|
-
(root[index$
|
|
1980
|
+
var index$10 = 31 - clz32(rootEntangledLanes),
|
|
1981
|
+
lane = 1 << index$10;
|
|
1982
|
+
(lane & entangledLanes) | (root[index$10] & entangledLanes) &&
|
|
1983
|
+
(root[index$10] |= entangledLanes);
|
|
1898
1984
|
rootEntangledLanes &= ~lane;
|
|
1899
1985
|
}
|
|
1900
1986
|
}
|
|
1901
1987
|
function addFiberToLanesMap(root, fiber, lanes) {
|
|
1902
1988
|
if (isDevToolsPresent)
|
|
1903
1989
|
for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) {
|
|
1904
|
-
var index$
|
|
1905
|
-
lane = 1 << index$
|
|
1906
|
-
root[index$
|
|
1990
|
+
var index$11 = 31 - clz32(lanes),
|
|
1991
|
+
lane = 1 << index$11;
|
|
1992
|
+
root[index$11].add(fiber);
|
|
1907
1993
|
lanes &= ~lane;
|
|
1908
1994
|
}
|
|
1909
1995
|
}
|
|
@@ -1915,25 +2001,19 @@ function movePendingFibersToMemoized(root, lanes) {
|
|
|
1915
2001
|
0 < lanes;
|
|
1916
2002
|
|
|
1917
2003
|
) {
|
|
1918
|
-
var index$
|
|
1919
|
-
root = 1 << index$
|
|
1920
|
-
index$
|
|
1921
|
-
0 < index$
|
|
1922
|
-
(index$
|
|
2004
|
+
var index$12 = 31 - clz32(lanes);
|
|
2005
|
+
root = 1 << index$12;
|
|
2006
|
+
index$12 = pendingUpdatersLaneMap[index$12];
|
|
2007
|
+
0 < index$12.size &&
|
|
2008
|
+
(index$12.forEach(function(fiber) {
|
|
1923
2009
|
var alternate = fiber.alternate;
|
|
1924
2010
|
(null !== alternate && memoizedUpdaters.has(alternate)) ||
|
|
1925
2011
|
memoizedUpdaters.add(fiber);
|
|
1926
2012
|
}),
|
|
1927
|
-
index$
|
|
2013
|
+
index$12.clear());
|
|
1928
2014
|
lanes &= ~root;
|
|
1929
2015
|
}
|
|
1930
2016
|
}
|
|
1931
|
-
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1932
|
-
log = Math.log,
|
|
1933
|
-
LN2 = Math.LN2;
|
|
1934
|
-
function clz32Fallback(lanes) {
|
|
1935
|
-
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
|
|
1936
|
-
}
|
|
1937
2017
|
var currentUpdatePriority = 0;
|
|
1938
2018
|
function lanesToEventPriority(lanes) {
|
|
1939
2019
|
lanes &= -lanes;
|
|
@@ -2135,12 +2215,14 @@ function shallowEqual(objA, objB) {
|
|
|
2135
2215
|
var keysA = Object.keys(objA),
|
|
2136
2216
|
keysB = Object.keys(objB);
|
|
2137
2217
|
if (keysA.length !== keysB.length) return !1;
|
|
2138
|
-
for (keysB = 0; keysB < keysA.length; keysB++)
|
|
2218
|
+
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
2219
|
+
var currentKey = keysA[keysB];
|
|
2139
2220
|
if (
|
|
2140
|
-
!hasOwnProperty.call(objB,
|
|
2141
|
-
!objectIs(objA[
|
|
2221
|
+
!hasOwnProperty.call(objB, currentKey) ||
|
|
2222
|
+
!objectIs(objA[currentKey], objB[currentKey])
|
|
2142
2223
|
)
|
|
2143
2224
|
return !1;
|
|
2225
|
+
}
|
|
2144
2226
|
return !0;
|
|
2145
2227
|
}
|
|
2146
2228
|
function describeFiber(fiber) {
|
|
@@ -2535,6 +2617,7 @@ var classComponentUpdater = {
|
|
|
2535
2617
|
enqueueUpdate(inst, update);
|
|
2536
2618
|
payload = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2537
2619
|
null !== payload && entangleTransitions(payload, inst, lane);
|
|
2620
|
+
markStateUpdateScheduled(inst, lane);
|
|
2538
2621
|
},
|
|
2539
2622
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
2540
2623
|
inst = inst._reactInternals;
|
|
@@ -2547,6 +2630,7 @@ var classComponentUpdater = {
|
|
|
2547
2630
|
enqueueUpdate(inst, update);
|
|
2548
2631
|
payload = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2549
2632
|
null !== payload && entangleTransitions(payload, inst, lane);
|
|
2633
|
+
markStateUpdateScheduled(inst, lane);
|
|
2550
2634
|
},
|
|
2551
2635
|
enqueueForceUpdate: function(inst, callback) {
|
|
2552
2636
|
inst = inst._reactInternals;
|
|
@@ -2558,6 +2642,9 @@ var classComponentUpdater = {
|
|
|
2558
2642
|
enqueueUpdate(inst, update);
|
|
2559
2643
|
callback = scheduleUpdateOnFiber(inst, lane, eventTime);
|
|
2560
2644
|
null !== callback && entangleTransitions(callback, inst, lane);
|
|
2645
|
+
null !== injectedProfilingHooks &&
|
|
2646
|
+
"function" === typeof injectedProfilingHooks.markForceUpdateScheduled &&
|
|
2647
|
+
injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
|
|
2561
2648
|
}
|
|
2562
2649
|
};
|
|
2563
2650
|
function checkShouldComponentUpdate(
|
|
@@ -2650,6 +2737,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2650
2737
|
"function" === typeof instance.componentDidMount &&
|
|
2651
2738
|
(workInProgress.flags |= 4);
|
|
2652
2739
|
}
|
|
2740
|
+
var forkStack = [],
|
|
2741
|
+
forkStackIndex = 0,
|
|
2742
|
+
treeForkProvider = null,
|
|
2743
|
+
idStack = [],
|
|
2744
|
+
idStackIndex = 0,
|
|
2745
|
+
treeContextProvider = null;
|
|
2746
|
+
function popTreeContext(workInProgress) {
|
|
2747
|
+
for (; workInProgress === treeForkProvider; )
|
|
2748
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2749
|
+
(forkStack[forkStackIndex] = null),
|
|
2750
|
+
--forkStackIndex,
|
|
2751
|
+
(forkStack[forkStackIndex] = null);
|
|
2752
|
+
for (; workInProgress === treeContextProvider; )
|
|
2753
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2754
|
+
(idStack[idStackIndex] = null),
|
|
2755
|
+
--idStackIndex,
|
|
2756
|
+
(idStack[idStackIndex] = null),
|
|
2757
|
+
--idStackIndex,
|
|
2758
|
+
(idStack[idStackIndex] = null);
|
|
2759
|
+
}
|
|
2653
2760
|
function coerceRef(returnFiber, current, element) {
|
|
2654
2761
|
returnFiber = element.ref;
|
|
2655
2762
|
if (
|
|
@@ -2744,7 +2851,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2744
2851
|
}
|
|
2745
2852
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
2746
2853
|
newFiber.index = newIndex;
|
|
2747
|
-
if (!shouldTrackSideEffects)
|
|
2854
|
+
if (!shouldTrackSideEffects)
|
|
2855
|
+
return (newFiber.flags |= 1048576), lastPlacedIndex;
|
|
2748
2856
|
newIndex = newFiber.alternate;
|
|
2749
2857
|
if (null !== newIndex)
|
|
2750
2858
|
return (
|
|
@@ -2835,7 +2943,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2835
2943
|
return current;
|
|
2836
2944
|
}
|
|
2837
2945
|
function createChild(returnFiber, newChild, lanes) {
|
|
2838
|
-
if (
|
|
2946
|
+
if (
|
|
2947
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
2948
|
+
"number" === typeof newChild
|
|
2949
|
+
)
|
|
2839
2950
|
return (
|
|
2840
2951
|
(newChild = createFiberFromText(
|
|
2841
2952
|
"" + newChild,
|
|
@@ -2889,7 +3000,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2889
3000
|
}
|
|
2890
3001
|
function updateSlot(returnFiber, oldFiber, newChild, lanes) {
|
|
2891
3002
|
var key = null !== oldFiber ? oldFiber.key : null;
|
|
2892
|
-
if (
|
|
3003
|
+
if (
|
|
3004
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
3005
|
+
"number" === typeof newChild
|
|
3006
|
+
)
|
|
2893
3007
|
return null !== key
|
|
2894
3008
|
? null
|
|
2895
3009
|
: updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
|
|
@@ -2919,7 +3033,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2919
3033
|
newChild,
|
|
2920
3034
|
lanes
|
|
2921
3035
|
) {
|
|
2922
|
-
if (
|
|
3036
|
+
if (
|
|
3037
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
3038
|
+
"number" === typeof newChild
|
|
3039
|
+
)
|
|
2923
3040
|
return (
|
|
2924
3041
|
(existingChildren = existingChildren.get(newIdx) || null),
|
|
2925
3042
|
updateTextNode(returnFiber, existingChildren, "" + newChild, lanes)
|
|
@@ -3245,7 +3362,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3245
3362
|
);
|
|
3246
3363
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
3247
3364
|
}
|
|
3248
|
-
return "string" === typeof newChild
|
|
3365
|
+
return ("string" === typeof newChild && "" !== newChild) ||
|
|
3366
|
+
"number" === typeof newChild
|
|
3249
3367
|
? ((newChild = "" + newChild),
|
|
3250
3368
|
null !== currentFirstChild && 6 === currentFirstChild.tag
|
|
3251
3369
|
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
|
|
@@ -3348,7 +3466,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
3348
3466
|
currentHook = null,
|
|
3349
3467
|
workInProgressHook = null,
|
|
3350
3468
|
didScheduleRenderPhaseUpdate = !1,
|
|
3351
|
-
didScheduleRenderPhaseUpdateDuringThisPass = !1
|
|
3469
|
+
didScheduleRenderPhaseUpdateDuringThisPass = !1,
|
|
3470
|
+
globalClientIdCounter = 0;
|
|
3352
3471
|
function throwInvalidHookError() {
|
|
3353
3472
|
throw Error(
|
|
3354
3473
|
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
@@ -3771,7 +3890,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3771
3890
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3772
3891
|
}
|
|
3773
3892
|
function mountEffect(create, deps) {
|
|
3774
|
-
return mountEffectImpl(
|
|
3893
|
+
return mountEffectImpl(8390656, 8, create, deps);
|
|
3775
3894
|
}
|
|
3776
3895
|
function updateEffect(create, deps) {
|
|
3777
3896
|
return updateEffectImpl(2048, 8, create, deps);
|
|
@@ -3851,6 +3970,9 @@ function startTransition(setPending, callback) {
|
|
|
3851
3970
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3852
3971
|
}
|
|
3853
3972
|
}
|
|
3973
|
+
function updateId() {
|
|
3974
|
+
return updateWorkInProgressHook().memoizedState;
|
|
3975
|
+
}
|
|
3854
3976
|
function dispatchReducerAction(fiber, queue, action) {
|
|
3855
3977
|
var lane = requestUpdateLane(fiber);
|
|
3856
3978
|
action = {
|
|
@@ -3864,8 +3986,9 @@ function dispatchReducerAction(fiber, queue, action) {
|
|
|
3864
3986
|
? enqueueRenderPhaseUpdate(queue, action)
|
|
3865
3987
|
: (enqueueUpdate$1(fiber, queue, action),
|
|
3866
3988
|
(action = requestEventTime()),
|
|
3867
|
-
(
|
|
3868
|
-
null !==
|
|
3989
|
+
(action = scheduleUpdateOnFiber(fiber, lane, action)),
|
|
3990
|
+
null !== action && entangleTransitionUpdate(action, queue, lane));
|
|
3991
|
+
markStateUpdateScheduled(fiber, lane);
|
|
3869
3992
|
}
|
|
3870
3993
|
function dispatchSetState(fiber, queue, action) {
|
|
3871
3994
|
var lane = requestUpdateLane(fiber),
|
|
@@ -3895,9 +4018,10 @@ function dispatchSetState(fiber, queue, action) {
|
|
|
3895
4018
|
} finally {
|
|
3896
4019
|
}
|
|
3897
4020
|
action = requestEventTime();
|
|
3898
|
-
|
|
3899
|
-
null !==
|
|
4021
|
+
action = scheduleUpdateOnFiber(fiber, lane, action);
|
|
4022
|
+
null !== action && entangleTransitionUpdate(action, queue, lane);
|
|
3900
4023
|
}
|
|
4024
|
+
markStateUpdateScheduled(fiber, lane);
|
|
3901
4025
|
}
|
|
3902
4026
|
function isRenderPhaseUpdate(fiber) {
|
|
3903
4027
|
var alternate = fiber.alternate;
|
|
@@ -3958,7 +4082,7 @@ var ContextOnlyDispatcher = {
|
|
|
3958
4082
|
useTransition: throwInvalidHookError,
|
|
3959
4083
|
useMutableSource: throwInvalidHookError,
|
|
3960
4084
|
useSyncExternalStore: throwInvalidHookError,
|
|
3961
|
-
|
|
4085
|
+
useId: throwInvalidHookError,
|
|
3962
4086
|
unstable_isNewReconciler: !1
|
|
3963
4087
|
},
|
|
3964
4088
|
HooksDispatcherOnMount = {
|
|
@@ -4056,8 +4180,12 @@ var ContextOnlyDispatcher = {
|
|
|
4056
4180
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
4057
4181
|
},
|
|
4058
4182
|
useSyncExternalStore: mountSyncExternalStore,
|
|
4059
|
-
|
|
4060
|
-
|
|
4183
|
+
useId: function() {
|
|
4184
|
+
var hook = mountWorkInProgressHook(),
|
|
4185
|
+
identifierPrefix = workInProgressRoot.identifierPrefix,
|
|
4186
|
+
globalClientId = globalClientIdCounter++;
|
|
4187
|
+
identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
|
|
4188
|
+
return (hook.memoizedState = identifierPrefix);
|
|
4061
4189
|
},
|
|
4062
4190
|
unstable_isNewReconciler: !1
|
|
4063
4191
|
},
|
|
@@ -4140,9 +4268,7 @@ var ContextOnlyDispatcher = {
|
|
|
4140
4268
|
}
|
|
4141
4269
|
return nextSnapshot;
|
|
4142
4270
|
},
|
|
4143
|
-
|
|
4144
|
-
return updateReducer(basicStateReducer)[0];
|
|
4145
|
-
},
|
|
4271
|
+
useId: updateId,
|
|
4146
4272
|
unstable_isNewReconciler: !1
|
|
4147
4273
|
},
|
|
4148
4274
|
HooksDispatcherOnRerender = {
|
|
@@ -4185,9 +4311,7 @@ var ContextOnlyDispatcher = {
|
|
|
4185
4311
|
},
|
|
4186
4312
|
useMutableSource: updateMutableSource,
|
|
4187
4313
|
useSyncExternalStore: mountSyncExternalStore,
|
|
4188
|
-
|
|
4189
|
-
return rerenderReducer(basicStateReducer)[0];
|
|
4190
|
-
},
|
|
4314
|
+
useId: updateId,
|
|
4191
4315
|
unstable_isNewReconciler: !1
|
|
4192
4316
|
},
|
|
4193
4317
|
now$1 = Scheduler.unstable_now,
|
|
@@ -4360,14 +4484,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4360
4484
|
break;
|
|
4361
4485
|
case "collapsed":
|
|
4362
4486
|
lastTailNode = renderState.tail;
|
|
4363
|
-
for (var lastTailNode$
|
|
4364
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4487
|
+
for (var lastTailNode$38 = null; null !== lastTailNode; )
|
|
4488
|
+
null !== lastTailNode.alternate && (lastTailNode$38 = lastTailNode),
|
|
4365
4489
|
(lastTailNode = lastTailNode.sibling);
|
|
4366
|
-
null === lastTailNode$
|
|
4490
|
+
null === lastTailNode$38
|
|
4367
4491
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4368
4492
|
? (renderState.tail = null)
|
|
4369
4493
|
: (renderState.tail.sibling = null)
|
|
4370
|
-
: (lastTailNode$
|
|
4494
|
+
: (lastTailNode$38.sibling = null);
|
|
4371
4495
|
}
|
|
4372
4496
|
}
|
|
4373
4497
|
function bubbleProperties(completedWork) {
|
|
@@ -4379,59 +4503,60 @@ function bubbleProperties(completedWork) {
|
|
|
4379
4503
|
if (didBailout)
|
|
4380
4504
|
if (0 !== (completedWork.mode & 2)) {
|
|
4381
4505
|
for (
|
|
4382
|
-
var treeBaseDuration$
|
|
4383
|
-
child$
|
|
4384
|
-
null !== child$
|
|
4506
|
+
var treeBaseDuration$40 = completedWork.selfBaseDuration,
|
|
4507
|
+
child$41 = completedWork.child;
|
|
4508
|
+
null !== child$41;
|
|
4385
4509
|
|
|
4386
4510
|
)
|
|
4387
|
-
(newChildLanes |= child$
|
|
4388
|
-
(subtreeFlags |= child$
|
|
4389
|
-
(subtreeFlags |= child$
|
|
4390
|
-
(treeBaseDuration$
|
|
4391
|
-
(child$
|
|
4392
|
-
completedWork.treeBaseDuration = treeBaseDuration$
|
|
4511
|
+
(newChildLanes |= child$41.lanes | child$41.childLanes),
|
|
4512
|
+
(subtreeFlags |= child$41.subtreeFlags & 14680064),
|
|
4513
|
+
(subtreeFlags |= child$41.flags & 14680064),
|
|
4514
|
+
(treeBaseDuration$40 += child$41.treeBaseDuration),
|
|
4515
|
+
(child$41 = child$41.sibling);
|
|
4516
|
+
completedWork.treeBaseDuration = treeBaseDuration$40;
|
|
4393
4517
|
} else
|
|
4394
4518
|
for (
|
|
4395
|
-
treeBaseDuration$
|
|
4396
|
-
null !== treeBaseDuration$
|
|
4519
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4520
|
+
null !== treeBaseDuration$40;
|
|
4397
4521
|
|
|
4398
4522
|
)
|
|
4399
4523
|
(newChildLanes |=
|
|
4400
|
-
treeBaseDuration$
|
|
4401
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4402
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4403
|
-
(treeBaseDuration$
|
|
4404
|
-
(treeBaseDuration$
|
|
4524
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4525
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags & 14680064),
|
|
4526
|
+
(subtreeFlags |= treeBaseDuration$40.flags & 14680064),
|
|
4527
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4528
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4405
4529
|
else if (0 !== (completedWork.mode & 2)) {
|
|
4406
|
-
treeBaseDuration$
|
|
4407
|
-
child$
|
|
4530
|
+
treeBaseDuration$40 = completedWork.actualDuration;
|
|
4531
|
+
child$41 = completedWork.selfBaseDuration;
|
|
4408
4532
|
for (var child = completedWork.child; null !== child; )
|
|
4409
4533
|
(newChildLanes |= child.lanes | child.childLanes),
|
|
4410
4534
|
(subtreeFlags |= child.subtreeFlags),
|
|
4411
4535
|
(subtreeFlags |= child.flags),
|
|
4412
|
-
(treeBaseDuration$
|
|
4413
|
-
(child$
|
|
4536
|
+
(treeBaseDuration$40 += child.actualDuration),
|
|
4537
|
+
(child$41 += child.treeBaseDuration),
|
|
4414
4538
|
(child = child.sibling);
|
|
4415
|
-
completedWork.actualDuration = treeBaseDuration$
|
|
4416
|
-
completedWork.treeBaseDuration = child$
|
|
4539
|
+
completedWork.actualDuration = treeBaseDuration$40;
|
|
4540
|
+
completedWork.treeBaseDuration = child$41;
|
|
4417
4541
|
} else
|
|
4418
4542
|
for (
|
|
4419
|
-
treeBaseDuration$
|
|
4420
|
-
null !== treeBaseDuration$
|
|
4543
|
+
treeBaseDuration$40 = completedWork.child;
|
|
4544
|
+
null !== treeBaseDuration$40;
|
|
4421
4545
|
|
|
4422
4546
|
)
|
|
4423
4547
|
(newChildLanes |=
|
|
4424
|
-
treeBaseDuration$
|
|
4425
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4426
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4427
|
-
(treeBaseDuration$
|
|
4428
|
-
(treeBaseDuration$
|
|
4548
|
+
treeBaseDuration$40.lanes | treeBaseDuration$40.childLanes),
|
|
4549
|
+
(subtreeFlags |= treeBaseDuration$40.subtreeFlags),
|
|
4550
|
+
(subtreeFlags |= treeBaseDuration$40.flags),
|
|
4551
|
+
(treeBaseDuration$40.return = completedWork),
|
|
4552
|
+
(treeBaseDuration$40 = treeBaseDuration$40.sibling);
|
|
4429
4553
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4430
4554
|
completedWork.childLanes = newChildLanes;
|
|
4431
4555
|
return didBailout;
|
|
4432
4556
|
}
|
|
4433
4557
|
function completeWork(current, workInProgress, renderLanes) {
|
|
4434
4558
|
var newProps = workInProgress.pendingProps;
|
|
4559
|
+
popTreeContext(workInProgress);
|
|
4435
4560
|
switch (workInProgress.tag) {
|
|
4436
4561
|
case 2:
|
|
4437
4562
|
case 16:
|
|
@@ -4566,11 +4691,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4566
4691
|
!renderLanes &&
|
|
4567
4692
|
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4568
4693
|
)
|
|
4569
|
-
if (
|
|
4570
|
-
(null === current &&
|
|
4571
|
-
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
4572
|
-
0 !== (suspenseStackCursor.current & 1)
|
|
4573
|
-
)
|
|
4694
|
+
if (null === current || 0 !== (suspenseStackCursor.current & 1))
|
|
4574
4695
|
0 === workInProgressRootExitStatus &&
|
|
4575
4696
|
(workInProgressRootExitStatus = 3);
|
|
4576
4697
|
else {
|
|
@@ -4582,7 +4703,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4582
4703
|
workInProgressRootExitStatus = 4;
|
|
4583
4704
|
null === workInProgressRoot ||
|
|
4584
4705
|
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4585
|
-
0 === (
|
|
4706
|
+
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
|
|
4586
4707
|
markRootSuspended$1(
|
|
4587
4708
|
workInProgressRoot,
|
|
4588
4709
|
workInProgressRootRenderLanes
|
|
@@ -4642,7 +4763,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4642
4763
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4643
4764
|
(renderLanes = newProps),
|
|
4644
4765
|
(updatePayload = current),
|
|
4645
|
-
(renderLanes.flags &=
|
|
4766
|
+
(renderLanes.flags &= 14680066),
|
|
4646
4767
|
(type = renderLanes.alternate),
|
|
4647
4768
|
null === type
|
|
4648
4769
|
? ((renderLanes.childLanes = 0),
|
|
@@ -4789,6 +4910,7 @@ function updateForwardRef(
|
|
|
4789
4910
|
Component = Component.render;
|
|
4790
4911
|
var ref = workInProgress.ref;
|
|
4791
4912
|
prepareToReadContext(workInProgress, renderLanes);
|
|
4913
|
+
markComponentRenderStarted(workInProgress);
|
|
4792
4914
|
nextProps = renderWithHooks(
|
|
4793
4915
|
current,
|
|
4794
4916
|
workInProgress,
|
|
@@ -4797,6 +4919,7 @@ function updateForwardRef(
|
|
|
4797
4919
|
ref,
|
|
4798
4920
|
renderLanes
|
|
4799
4921
|
);
|
|
4922
|
+
markComponentRenderStopped();
|
|
4800
4923
|
if (null !== current && !didReceiveUpdate)
|
|
4801
4924
|
return (
|
|
4802
4925
|
(workInProgress.updateQueue = current.updateQueue),
|
|
@@ -4952,6 +5075,7 @@ function updateFunctionComponent(
|
|
|
4952
5075
|
: contextStackCursor.current;
|
|
4953
5076
|
context = getMaskedContext(workInProgress, context);
|
|
4954
5077
|
prepareToReadContext(workInProgress, renderLanes);
|
|
5078
|
+
markComponentRenderStarted(workInProgress);
|
|
4955
5079
|
Component = renderWithHooks(
|
|
4956
5080
|
current,
|
|
4957
5081
|
workInProgress,
|
|
@@ -4960,6 +5084,7 @@ function updateFunctionComponent(
|
|
|
4960
5084
|
context,
|
|
4961
5085
|
renderLanes
|
|
4962
5086
|
);
|
|
5087
|
+
markComponentRenderStopped();
|
|
4963
5088
|
if (null !== current && !didReceiveUpdate)
|
|
4964
5089
|
return (
|
|
4965
5090
|
(workInProgress.updateQueue = current.updateQueue),
|
|
@@ -5196,7 +5321,10 @@ function finishClassComponent(
|
|
|
5196
5321
|
) {
|
|
5197
5322
|
var nextChildren = null;
|
|
5198
5323
|
profilerStartTime = -1;
|
|
5199
|
-
} else
|
|
5324
|
+
} else
|
|
5325
|
+
markComponentRenderStarted(workInProgress),
|
|
5326
|
+
(nextChildren = shouldUpdate.render()),
|
|
5327
|
+
markComponentRenderStopped();
|
|
5200
5328
|
workInProgress.flags |= 1;
|
|
5201
5329
|
null !== current && didCaptureError
|
|
5202
5330
|
? ((didCaptureError = nextChildren),
|
|
@@ -5229,7 +5357,7 @@ function pushHostRootContext(workInProgress) {
|
|
|
5229
5357
|
pushTopLevelContextObject(workInProgress, root.context, !1);
|
|
5230
5358
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
5231
5359
|
}
|
|
5232
|
-
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
|
|
5360
|
+
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
5233
5361
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
5234
5362
|
return { baseLanes: renderLanes, cachePool: null };
|
|
5235
5363
|
}
|
|
@@ -5243,11 +5371,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
5243
5371
|
null !== current && null === current.memoizedState
|
|
5244
5372
|
? !1
|
|
5245
5373
|
: 0 !== (suspenseContext & 2));
|
|
5246
|
-
JSCompiler_temp
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
!0 === nextProps.unstable_avoidThisFallback ||
|
|
5250
|
-
(suspenseContext |= 1);
|
|
5374
|
+
if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
|
|
5375
|
+
else if (null === current || null !== current.memoizedState)
|
|
5376
|
+
suspenseContext |= 1;
|
|
5251
5377
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
5252
5378
|
if (null === current) {
|
|
5253
5379
|
current = nextProps.children;
|
|
@@ -5432,7 +5558,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5432
5558
|
(primaryChildren.treeBaseDuration = current.treeBaseDuration)),
|
|
5433
5559
|
(workInProgress.deletions = null))
|
|
5434
5560
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
5435
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5561
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 14680064));
|
|
5436
5562
|
null !== currentFallbackChildFragment
|
|
5437
5563
|
? (fallbackChildren = createWorkInProgress(
|
|
5438
5564
|
currentFallbackChildFragment,
|
|
@@ -5664,6 +5790,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5664
5790
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5665
5791
|
}
|
|
5666
5792
|
function unwindWork(workInProgress) {
|
|
5793
|
+
popTreeContext(workInProgress);
|
|
5667
5794
|
switch (workInProgress.tag) {
|
|
5668
5795
|
case 1:
|
|
5669
5796
|
isContextProvider(workInProgress.type) && popContext();
|
|
@@ -5817,24 +5944,63 @@ function commitHookEffectListUnmount(
|
|
|
5817
5944
|
var destroy = effect.destroy;
|
|
5818
5945
|
effect.destroy = void 0;
|
|
5819
5946
|
void 0 !== destroy &&
|
|
5820
|
-
|
|
5947
|
+
(0 !== (flags & 8)
|
|
5948
|
+
? null !== injectedProfilingHooks &&
|
|
5949
|
+
"function" ===
|
|
5950
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted &&
|
|
5951
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(
|
|
5952
|
+
finishedWork
|
|
5953
|
+
)
|
|
5954
|
+
: 0 !== (flags & 4) &&
|
|
5955
|
+
markComponentLayoutEffectUnmountStarted(finishedWork),
|
|
5956
|
+
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy),
|
|
5957
|
+
0 !== (flags & 8)
|
|
5958
|
+
? null !== injectedProfilingHooks &&
|
|
5959
|
+
"function" ===
|
|
5960
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
|
|
5961
|
+
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
|
|
5962
|
+
: 0 !== (flags & 4) && markComponentLayoutEffectUnmountStopped());
|
|
5821
5963
|
}
|
|
5822
5964
|
effect = effect.next;
|
|
5823
5965
|
} while (effect !== updateQueue);
|
|
5824
5966
|
}
|
|
5825
5967
|
}
|
|
5826
|
-
function commitHookEffectListMount(
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
if (null !==
|
|
5830
|
-
var effect = (
|
|
5968
|
+
function commitHookEffectListMount(flags, finishedWork) {
|
|
5969
|
+
var updateQueue = finishedWork.updateQueue;
|
|
5970
|
+
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
|
|
5971
|
+
if (null !== updateQueue) {
|
|
5972
|
+
var effect = (updateQueue = updateQueue.next);
|
|
5831
5973
|
do {
|
|
5832
|
-
if ((effect.tag &
|
|
5833
|
-
|
|
5834
|
-
|
|
5974
|
+
if ((effect.tag & flags) === flags) {
|
|
5975
|
+
0 !== (flags & 8)
|
|
5976
|
+
? null !== injectedProfilingHooks &&
|
|
5977
|
+
"function" ===
|
|
5978
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted &&
|
|
5979
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStarted(
|
|
5980
|
+
finishedWork
|
|
5981
|
+
)
|
|
5982
|
+
: 0 !== (flags & 4) &&
|
|
5983
|
+
null !== injectedProfilingHooks &&
|
|
5984
|
+
"function" ===
|
|
5985
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted &&
|
|
5986
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStarted(
|
|
5987
|
+
finishedWork
|
|
5988
|
+
);
|
|
5989
|
+
var create$87 = effect.create;
|
|
5990
|
+
effect.destroy = create$87();
|
|
5991
|
+
0 !== (flags & 8)
|
|
5992
|
+
? null !== injectedProfilingHooks &&
|
|
5993
|
+
"function" ===
|
|
5994
|
+
typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped &&
|
|
5995
|
+
injectedProfilingHooks.markComponentPassiveEffectMountStopped()
|
|
5996
|
+
: 0 !== (flags & 4) &&
|
|
5997
|
+
null !== injectedProfilingHooks &&
|
|
5998
|
+
"function" ===
|
|
5999
|
+
typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped &&
|
|
6000
|
+
injectedProfilingHooks.markComponentLayoutEffectMountStopped();
|
|
5835
6001
|
}
|
|
5836
6002
|
effect = effect.next;
|
|
5837
|
-
} while (effect !==
|
|
6003
|
+
} while (effect !== updateQueue);
|
|
5838
6004
|
}
|
|
5839
6005
|
}
|
|
5840
6006
|
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
@@ -5857,13 +6023,17 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
5857
6023
|
var _effect = effect,
|
|
5858
6024
|
destroy = _effect.destroy;
|
|
5859
6025
|
_effect = _effect.tag;
|
|
5860
|
-
void 0
|
|
5861
|
-
(0
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
6026
|
+
void 0 !== destroy &&
|
|
6027
|
+
(0 !== (_effect & 2)
|
|
6028
|
+
? safelyCallDestroy(current, nearestMountedAncestor, destroy)
|
|
6029
|
+
: 0 !== (_effect & 4) &&
|
|
6030
|
+
(markComponentLayoutEffectUnmountStarted(current),
|
|
6031
|
+
current.mode & 2
|
|
6032
|
+
? (startLayoutEffectTimer(),
|
|
6033
|
+
safelyCallDestroy(current, nearestMountedAncestor, destroy),
|
|
6034
|
+
recordLayoutEffectDuration(current))
|
|
6035
|
+
: safelyCallDestroy(current, nearestMountedAncestor, destroy),
|
|
6036
|
+
markComponentLayoutEffectUnmountStopped()));
|
|
5867
6037
|
effect = effect.next;
|
|
5868
6038
|
} while (effect !== finishedRoot);
|
|
5869
6039
|
}
|
|
@@ -6316,8 +6486,8 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6316
6486
|
switch (firstChild.tag) {
|
|
6317
6487
|
case 13:
|
|
6318
6488
|
if (null !== firstChild.memoizedState) {
|
|
6319
|
-
var current$
|
|
6320
|
-
if (null === current$
|
|
6489
|
+
var current$94 = firstChild.alternate;
|
|
6490
|
+
if (null === current$94 || null === current$94.memoizedState)
|
|
6321
6491
|
globalMostRecentFallbackTime = now();
|
|
6322
6492
|
}
|
|
6323
6493
|
break;
|
|
@@ -6501,21 +6671,21 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6501
6671
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6502
6672
|
break;
|
|
6503
6673
|
case 3:
|
|
6504
|
-
var updateQueue$
|
|
6505
|
-
if (null !== updateQueue$
|
|
6506
|
-
var instance$
|
|
6674
|
+
var updateQueue$89 = committedLanes.updateQueue;
|
|
6675
|
+
if (null !== updateQueue$89) {
|
|
6676
|
+
var instance$90 = null;
|
|
6507
6677
|
if (null !== committedLanes.child)
|
|
6508
6678
|
switch (committedLanes.child.tag) {
|
|
6509
6679
|
case 5:
|
|
6510
|
-
instance$
|
|
6680
|
+
instance$90 = committedLanes.child.stateNode;
|
|
6511
6681
|
break;
|
|
6512
6682
|
case 1:
|
|
6513
|
-
instance$
|
|
6683
|
+
instance$90 = committedLanes.child.stateNode;
|
|
6514
6684
|
}
|
|
6515
6685
|
commitUpdateQueue(
|
|
6516
6686
|
committedLanes,
|
|
6517
|
-
updateQueue$
|
|
6518
|
-
instance$
|
|
6687
|
+
updateQueue$89,
|
|
6688
|
+
instance$90
|
|
6519
6689
|
);
|
|
6520
6690
|
}
|
|
6521
6691
|
break;
|
|
@@ -6530,7 +6700,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6530
6700
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6531
6701
|
onRender = _finishedWork$memoize2.onRender,
|
|
6532
6702
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6533
|
-
instance$
|
|
6703
|
+
instance$90 = commitTime;
|
|
6534
6704
|
current = null === current ? "mount" : "update";
|
|
6535
6705
|
currentUpdateIsNested && (current = "nested-update");
|
|
6536
6706
|
"function" === typeof onRender &&
|
|
@@ -6540,14 +6710,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6540
6710
|
committedLanes.actualDuration,
|
|
6541
6711
|
committedLanes.treeBaseDuration,
|
|
6542
6712
|
committedLanes.actualStartTime,
|
|
6543
|
-
instance$
|
|
6713
|
+
instance$90
|
|
6544
6714
|
);
|
|
6545
6715
|
"function" === typeof onCommit &&
|
|
6546
6716
|
onCommit(
|
|
6547
6717
|
committedLanes.memoizedProps.id,
|
|
6548
6718
|
current,
|
|
6549
6719
|
effectDuration,
|
|
6550
|
-
instance$
|
|
6720
|
+
instance$90
|
|
6551
6721
|
);
|
|
6552
6722
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6553
6723
|
var parentFiber = committedLanes.return;
|
|
@@ -6577,27 +6747,27 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6577
6747
|
);
|
|
6578
6748
|
}
|
|
6579
6749
|
if (committedLanes.flags & 512) {
|
|
6580
|
-
instance$
|
|
6750
|
+
instance$90 = void 0;
|
|
6581
6751
|
current = committedLanes;
|
|
6582
6752
|
var ref = current.ref;
|
|
6583
6753
|
if (null !== ref) {
|
|
6584
6754
|
var instance$jscomp$0 = current.stateNode;
|
|
6585
6755
|
switch (current.tag) {
|
|
6586
6756
|
case 5:
|
|
6587
|
-
instance$
|
|
6757
|
+
instance$90 = instance$jscomp$0;
|
|
6588
6758
|
break;
|
|
6589
6759
|
default:
|
|
6590
|
-
instance$
|
|
6760
|
+
instance$90 = instance$jscomp$0;
|
|
6591
6761
|
}
|
|
6592
6762
|
if ("function" === typeof ref)
|
|
6593
6763
|
if (current.mode & 2)
|
|
6594
6764
|
try {
|
|
6595
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6765
|
+
startLayoutEffectTimer(), ref(instance$90);
|
|
6596
6766
|
} finally {
|
|
6597
6767
|
recordLayoutEffectDuration(current);
|
|
6598
6768
|
}
|
|
6599
|
-
else ref(instance$
|
|
6600
|
-
else ref.current = instance$
|
|
6769
|
+
else ref(instance$90);
|
|
6770
|
+
else ref.current = instance$90;
|
|
6601
6771
|
}
|
|
6602
6772
|
}
|
|
6603
6773
|
} catch (error) {
|
|
@@ -6612,10 +6782,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6612
6782
|
nextEffect = null;
|
|
6613
6783
|
break;
|
|
6614
6784
|
}
|
|
6615
|
-
instance$
|
|
6616
|
-
if (null !== instance$
|
|
6617
|
-
instance$
|
|
6618
|
-
nextEffect = instance$
|
|
6785
|
+
instance$90 = committedLanes.sibling;
|
|
6786
|
+
if (null !== instance$90) {
|
|
6787
|
+
instance$90.return = committedLanes.return;
|
|
6788
|
+
nextEffect = instance$90;
|
|
6619
6789
|
break;
|
|
6620
6790
|
}
|
|
6621
6791
|
nextEffect = committedLanes.return;
|
|
@@ -6635,7 +6805,8 @@ var ceil = Math.ceil,
|
|
|
6635
6805
|
workInProgressRootExitStatus = 0,
|
|
6636
6806
|
workInProgressRootFatalError = null,
|
|
6637
6807
|
workInProgressRootSkippedLanes = 0,
|
|
6638
|
-
|
|
6808
|
+
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6809
|
+
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6639
6810
|
workInProgressRootPingedLanes = 0,
|
|
6640
6811
|
globalMostRecentFallbackTime = 0,
|
|
6641
6812
|
workInProgressRootRenderTargetTime = Infinity,
|
|
@@ -6682,18 +6853,21 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6682
6853
|
));
|
|
6683
6854
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6684
6855
|
if (null === root) return null;
|
|
6685
|
-
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane);
|
|
6686
6856
|
markRootUpdated(root, lane, eventTime);
|
|
6687
|
-
root === workInProgressRoot
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6857
|
+
0 !== (executionContext & 2) && root === workInProgressRoot
|
|
6858
|
+
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
|
|
6859
|
+
: (isDevToolsPresent && addFiberToLanesMap(root, fiber, lane),
|
|
6860
|
+
root === workInProgressRoot &&
|
|
6861
|
+
(0 === (executionContext & 2) &&
|
|
6862
|
+
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
6863
|
+
4 === workInProgressRootExitStatus &&
|
|
6864
|
+
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6865
|
+
ensureRootIsScheduled(root, eventTime),
|
|
6866
|
+
1 === lane &&
|
|
6867
|
+
0 === executionContext &&
|
|
6868
|
+
0 === (fiber.mode & 1) &&
|
|
6869
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6870
|
+
includesLegacySyncCallbacks && flushSyncCallbacks()));
|
|
6697
6871
|
return root;
|
|
6698
6872
|
}
|
|
6699
6873
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6719,12 +6893,12 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6719
6893
|
0 < lanes;
|
|
6720
6894
|
|
|
6721
6895
|
) {
|
|
6722
|
-
var index$
|
|
6723
|
-
lane = 1 << index$
|
|
6724
|
-
expirationTime = expirationTimes[index$
|
|
6896
|
+
var index$7 = 31 - clz32(lanes),
|
|
6897
|
+
lane = 1 << index$7,
|
|
6898
|
+
expirationTime = expirationTimes[index$7];
|
|
6725
6899
|
if (-1 === expirationTime) {
|
|
6726
6900
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6727
|
-
expirationTimes[index$
|
|
6901
|
+
expirationTimes[index$7] = computeExpirationTime(lane, currentTime);
|
|
6728
6902
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6729
6903
|
lanes &= ~lane;
|
|
6730
6904
|
}
|
|
@@ -6819,6 +6993,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6819
6993
|
workInProgressRootRenderTargetTime = now() + 500;
|
|
6820
6994
|
prepareFreshStack(root, didTimeout);
|
|
6821
6995
|
}
|
|
6996
|
+
markRenderStarted(didTimeout);
|
|
6822
6997
|
do
|
|
6823
6998
|
try {
|
|
6824
6999
|
workLoopConcurrent();
|
|
@@ -6831,8 +7006,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6831
7006
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6832
7007
|
executionContext = prevExecutionContext;
|
|
6833
7008
|
null !== workInProgress
|
|
6834
|
-
? (
|
|
6835
|
-
|
|
7009
|
+
? (null !== injectedProfilingHooks &&
|
|
7010
|
+
"function" === typeof injectedProfilingHooks.markRenderYielded &&
|
|
7011
|
+
injectedProfilingHooks.markRenderYielded(),
|
|
7012
|
+
(didTimeout = 0))
|
|
7013
|
+
: (markRenderStopped(),
|
|
7014
|
+
(workInProgressRoot = null),
|
|
6836
7015
|
(workInProgressRootRenderLanes = 0),
|
|
6837
7016
|
(didTimeout = workInProgressRootExitStatus));
|
|
6838
7017
|
}
|
|
@@ -6949,9 +7128,15 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
6949
7128
|
var prevExecutionContext = executionContext;
|
|
6950
7129
|
executionContext |= 8;
|
|
6951
7130
|
root.isDehydrated && (root.isDehydrated = !1);
|
|
6952
|
-
|
|
7131
|
+
for (
|
|
7132
|
+
var exitStatus, i = 0;
|
|
7133
|
+
50 > i &&
|
|
7134
|
+
((exitStatus = renderRootSync(root, errorRetryLanes)),
|
|
7135
|
+
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
|
|
7136
|
+
i++
|
|
7137
|
+
);
|
|
6953
7138
|
executionContext = prevExecutionContext;
|
|
6954
|
-
return
|
|
7139
|
+
return exitStatus;
|
|
6955
7140
|
}
|
|
6956
7141
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6957
7142
|
for (var node = finishedWork; ; ) {
|
|
@@ -6989,13 +7174,13 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
6989
7174
|
}
|
|
6990
7175
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6991
7176
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6992
|
-
suspendedLanes &= ~
|
|
7177
|
+
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
6993
7178
|
root.suspendedLanes |= suspendedLanes;
|
|
6994
7179
|
root.pingedLanes &= ~suspendedLanes;
|
|
6995
7180
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
6996
|
-
var index$
|
|
6997
|
-
lane = 1 << index$
|
|
6998
|
-
root[index$
|
|
7181
|
+
var index$8 = 31 - clz32(suspendedLanes),
|
|
7182
|
+
lane = 1 << index$8;
|
|
7183
|
+
root[index$8] = -1;
|
|
6999
7184
|
suspendedLanes &= ~lane;
|
|
7000
7185
|
}
|
|
7001
7186
|
}
|
|
@@ -7009,13 +7194,10 @@ function performSyncWorkOnRoot(root) {
|
|
|
7009
7194
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
7010
7195
|
var exitStatus = renderRootSync(root, lanes);
|
|
7011
7196
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
7012
|
-
var prevExecutionContext = executionContext;
|
|
7013
|
-
executionContext |= 8;
|
|
7014
|
-
root.isDehydrated && (root.isDehydrated = !1);
|
|
7015
7197
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
7016
7198
|
0 !== errorRetryLanes &&
|
|
7017
|
-
((lanes = errorRetryLanes),
|
|
7018
|
-
|
|
7199
|
+
((lanes = errorRetryLanes),
|
|
7200
|
+
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
|
|
7019
7201
|
}
|
|
7020
7202
|
if (1 === exitStatus)
|
|
7021
7203
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -7042,6 +7224,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
7042
7224
|
if (null !== workInProgress)
|
|
7043
7225
|
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
|
|
7044
7226
|
var interruptedWork = timeoutHandle;
|
|
7227
|
+
popTreeContext(interruptedWork);
|
|
7045
7228
|
switch (interruptedWork.tag) {
|
|
7046
7229
|
case 1:
|
|
7047
7230
|
interruptedWork = interruptedWork.type.childContextTypes;
|
|
@@ -7081,7 +7264,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
7081
7264
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
7082
7265
|
workInProgressRootExitStatus = 0;
|
|
7083
7266
|
workInProgressRootFatalError = null;
|
|
7084
|
-
workInProgressRootPingedLanes =
|
|
7267
|
+
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
7085
7268
|
if (null !== interleavedQueues) {
|
|
7086
7269
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
7087
7270
|
if (
|
|
@@ -7102,7 +7285,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
7102
7285
|
interleavedQueues = null;
|
|
7103
7286
|
}
|
|
7104
7287
|
}
|
|
7105
|
-
function handleError(root
|
|
7288
|
+
function handleError(root, thrownValue) {
|
|
7106
7289
|
do {
|
|
7107
7290
|
var erroredWork = workInProgress;
|
|
7108
7291
|
try {
|
|
@@ -7132,20 +7315,42 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7132
7315
|
}
|
|
7133
7316
|
erroredWork.mode & 2 &&
|
|
7134
7317
|
stopProfilerTimerIfRunningAndRecordDelta(erroredWork, !0);
|
|
7318
|
+
markComponentRenderStopped();
|
|
7319
|
+
if (
|
|
7320
|
+
null !== thrownValue &&
|
|
7321
|
+
"object" === typeof thrownValue &&
|
|
7322
|
+
"function" === typeof thrownValue.then
|
|
7323
|
+
) {
|
|
7324
|
+
var wakeable = thrownValue;
|
|
7325
|
+
null !== injectedProfilingHooks &&
|
|
7326
|
+
"function" === typeof injectedProfilingHooks.markComponentSuspended &&
|
|
7327
|
+
injectedProfilingHooks.markComponentSuspended(
|
|
7328
|
+
erroredWork,
|
|
7329
|
+
wakeable,
|
|
7330
|
+
workInProgressRootRenderLanes
|
|
7331
|
+
);
|
|
7332
|
+
} else
|
|
7333
|
+
null !== injectedProfilingHooks &&
|
|
7334
|
+
"function" === typeof injectedProfilingHooks.markComponentErrored &&
|
|
7335
|
+
injectedProfilingHooks.markComponentErrored(
|
|
7336
|
+
erroredWork,
|
|
7337
|
+
thrownValue,
|
|
7338
|
+
workInProgressRootRenderLanes
|
|
7339
|
+
);
|
|
7135
7340
|
a: {
|
|
7136
|
-
|
|
7137
|
-
|
|
7341
|
+
wakeable = root;
|
|
7342
|
+
var returnFiber = erroredWork.return,
|
|
7138
7343
|
sourceFiber = erroredWork,
|
|
7139
7344
|
value = thrownValue;
|
|
7140
7345
|
thrownValue = workInProgressRootRenderLanes;
|
|
7141
7346
|
sourceFiber.flags |= 32768;
|
|
7142
|
-
isDevToolsPresent && restorePendingUpdaters(
|
|
7347
|
+
isDevToolsPresent && restorePendingUpdaters(wakeable, thrownValue);
|
|
7143
7348
|
if (
|
|
7144
7349
|
null !== value &&
|
|
7145
7350
|
"object" === typeof value &&
|
|
7146
7351
|
"function" === typeof value.then
|
|
7147
7352
|
) {
|
|
7148
|
-
var wakeable = value,
|
|
7353
|
+
var wakeable$jscomp$0 = value,
|
|
7149
7354
|
sourceFiber$jscomp$0 = sourceFiber,
|
|
7150
7355
|
tag = sourceFiber$jscomp$0.tag;
|
|
7151
7356
|
if (
|
|
@@ -7163,85 +7368,76 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7163
7368
|
}
|
|
7164
7369
|
b: {
|
|
7165
7370
|
sourceFiber$jscomp$0 = returnFiber;
|
|
7166
|
-
var sourceFiber$jscomp$1 = sourceFiber,
|
|
7167
|
-
rootRenderLanes = thrownValue,
|
|
7168
|
-
hasInvisibleParentBoundary =
|
|
7169
|
-
0 !== (suspenseStackCursor.current & 1),
|
|
7170
|
-
node = sourceFiber$jscomp$0;
|
|
7171
7371
|
do {
|
|
7172
7372
|
var JSCompiler_temp;
|
|
7173
|
-
if ((JSCompiler_temp = 13 ===
|
|
7174
|
-
var nextState =
|
|
7373
|
+
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
|
|
7374
|
+
var nextState = sourceFiber$jscomp$0.memoizedState;
|
|
7175
7375
|
JSCompiler_temp =
|
|
7176
7376
|
null !== nextState
|
|
7177
7377
|
? null !== nextState.dehydrated
|
|
7178
7378
|
? !0
|
|
7179
7379
|
: !1
|
|
7180
|
-
: !0 !== node.memoizedProps.unstable_avoidThisFallback
|
|
7181
|
-
? !0
|
|
7182
|
-
: hasInvisibleParentBoundary
|
|
7183
|
-
? !1
|
|
7184
7380
|
: !0;
|
|
7185
7381
|
}
|
|
7186
7382
|
if (JSCompiler_temp) {
|
|
7187
|
-
|
|
7188
|
-
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
|
|
7189
|
-
else {
|
|
7190
|
-
node.flags |= 128;
|
|
7191
|
-
sourceFiber$jscomp$1.flags |= 131072;
|
|
7192
|
-
sourceFiber$jscomp$1.flags &= -52805;
|
|
7193
|
-
if (1 === sourceFiber$jscomp$1.tag)
|
|
7194
|
-
if (null === sourceFiber$jscomp$1.alternate)
|
|
7195
|
-
sourceFiber$jscomp$1.tag = 17;
|
|
7196
|
-
else {
|
|
7197
|
-
var update = createUpdate(-1, 1);
|
|
7198
|
-
update.tag = 2;
|
|
7199
|
-
enqueueUpdate(sourceFiber$jscomp$1, update);
|
|
7200
|
-
}
|
|
7201
|
-
sourceFiber$jscomp$1.lanes |= 1;
|
|
7202
|
-
}
|
|
7203
|
-
var suspenseBoundary = node;
|
|
7204
|
-
break b;
|
|
7205
|
-
}
|
|
7206
|
-
node.flags |= 65536;
|
|
7207
|
-
node.lanes = rootRenderLanes;
|
|
7208
|
-
suspenseBoundary = node;
|
|
7383
|
+
var suspenseBoundary = sourceFiber$jscomp$0;
|
|
7209
7384
|
break b;
|
|
7210
7385
|
}
|
|
7211
|
-
|
|
7212
|
-
} while (null !==
|
|
7386
|
+
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
|
|
7387
|
+
} while (null !== sourceFiber$jscomp$0);
|
|
7213
7388
|
suspenseBoundary = null;
|
|
7214
7389
|
}
|
|
7215
7390
|
if (null !== suspenseBoundary) {
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7391
|
+
suspenseBoundary.flags &= -257;
|
|
7392
|
+
value = suspenseBoundary;
|
|
7393
|
+
sourceFiber$jscomp$0 = thrownValue;
|
|
7394
|
+
if (0 === (value.mode & 1))
|
|
7395
|
+
if (value === returnFiber) value.flags |= 65536;
|
|
7396
|
+
else {
|
|
7397
|
+
value.flags |= 128;
|
|
7398
|
+
sourceFiber.flags |= 131072;
|
|
7399
|
+
sourceFiber.flags &= -52805;
|
|
7400
|
+
if (1 === sourceFiber.tag)
|
|
7401
|
+
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
7402
|
+
else {
|
|
7403
|
+
var update = createUpdate(-1, 1);
|
|
7404
|
+
update.tag = 2;
|
|
7405
|
+
enqueueUpdate(sourceFiber, update);
|
|
7406
|
+
}
|
|
7407
|
+
sourceFiber.lanes |= 1;
|
|
7408
|
+
}
|
|
7409
|
+
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
|
|
7410
|
+
sourceFiber = void 0;
|
|
7411
|
+
value = suspenseBoundary;
|
|
7412
|
+
if (value.mode & 1) {
|
|
7413
|
+
var pingCache = wakeable.pingCache;
|
|
7220
7414
|
null === pingCache
|
|
7221
|
-
? ((pingCache =
|
|
7222
|
-
(
|
|
7223
|
-
pingCache.set(wakeable,
|
|
7224
|
-
: ((
|
|
7225
|
-
void 0 ===
|
|
7226
|
-
((
|
|
7227
|
-
|
|
7228
|
-
|
|
7415
|
+
? ((pingCache = wakeable.pingCache = new PossiblyWeakMap()),
|
|
7416
|
+
(sourceFiber = new Set()),
|
|
7417
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber))
|
|
7418
|
+
: ((sourceFiber = pingCache.get(wakeable$jscomp$0)),
|
|
7419
|
+
void 0 === sourceFiber &&
|
|
7420
|
+
((sourceFiber = new Set()),
|
|
7421
|
+
pingCache.set(wakeable$jscomp$0, sourceFiber)));
|
|
7422
|
+
if (!sourceFiber.has(thrownValue)) {
|
|
7423
|
+
sourceFiber.add(thrownValue);
|
|
7229
7424
|
var ping = pingSuspendedRoot.bind(
|
|
7230
7425
|
null,
|
|
7231
|
-
root,
|
|
7232
7426
|
wakeable,
|
|
7427
|
+
wakeable$jscomp$0,
|
|
7233
7428
|
thrownValue
|
|
7234
7429
|
);
|
|
7235
|
-
isDevToolsPresent &&
|
|
7236
|
-
|
|
7430
|
+
isDevToolsPresent &&
|
|
7431
|
+
restorePendingUpdaters(wakeable, thrownValue);
|
|
7432
|
+
wakeable$jscomp$0.then(ping, ping);
|
|
7237
7433
|
}
|
|
7238
7434
|
}
|
|
7239
|
-
var wakeables =
|
|
7435
|
+
var wakeables = value.updateQueue;
|
|
7240
7436
|
if (null === wakeables) {
|
|
7241
7437
|
var updateQueue = new Set();
|
|
7242
|
-
updateQueue.add(wakeable);
|
|
7243
|
-
|
|
7244
|
-
} else wakeables.add(wakeable);
|
|
7438
|
+
updateQueue.add(wakeable$jscomp$0);
|
|
7439
|
+
value.updateQueue = updateQueue;
|
|
7440
|
+
} else wakeables.add(wakeable$jscomp$0);
|
|
7245
7441
|
break a;
|
|
7246
7442
|
} else
|
|
7247
7443
|
value = Error(
|
|
@@ -7252,47 +7448,47 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7252
7448
|
4 !== workInProgressRootExitStatus &&
|
|
7253
7449
|
(workInProgressRootExitStatus = 2);
|
|
7254
7450
|
value = createCapturedValue(value, sourceFiber);
|
|
7255
|
-
|
|
7451
|
+
wakeable = returnFiber;
|
|
7256
7452
|
do {
|
|
7257
|
-
switch (
|
|
7453
|
+
switch (wakeable.tag) {
|
|
7258
7454
|
case 3:
|
|
7259
|
-
wakeable = value;
|
|
7260
|
-
|
|
7455
|
+
wakeable$jscomp$0 = value;
|
|
7456
|
+
wakeable.flags |= 65536;
|
|
7261
7457
|
thrownValue &= -thrownValue;
|
|
7262
|
-
|
|
7458
|
+
wakeable.lanes |= thrownValue;
|
|
7263
7459
|
var update$jscomp$0 = createRootErrorUpdate(
|
|
7264
|
-
root,
|
|
7265
7460
|
wakeable,
|
|
7461
|
+
wakeable$jscomp$0,
|
|
7266
7462
|
thrownValue
|
|
7267
7463
|
);
|
|
7268
|
-
enqueueCapturedUpdate(
|
|
7464
|
+
enqueueCapturedUpdate(wakeable, update$jscomp$0);
|
|
7269
7465
|
break a;
|
|
7270
7466
|
case 1:
|
|
7271
|
-
wakeable = value;
|
|
7272
|
-
var ctor =
|
|
7273
|
-
instance =
|
|
7467
|
+
wakeable$jscomp$0 = value;
|
|
7468
|
+
var ctor = wakeable.type,
|
|
7469
|
+
instance = wakeable.stateNode;
|
|
7274
7470
|
if (
|
|
7275
|
-
0 === (
|
|
7471
|
+
0 === (wakeable.flags & 128) &&
|
|
7276
7472
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
7277
7473
|
(null !== instance &&
|
|
7278
7474
|
"function" === typeof instance.componentDidCatch &&
|
|
7279
7475
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7280
7476
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
7281
7477
|
) {
|
|
7282
|
-
|
|
7478
|
+
wakeable.flags |= 65536;
|
|
7283
7479
|
thrownValue &= -thrownValue;
|
|
7284
|
-
|
|
7285
|
-
var update$
|
|
7286
|
-
root,
|
|
7480
|
+
wakeable.lanes |= thrownValue;
|
|
7481
|
+
var update$36 = createClassErrorUpdate(
|
|
7287
7482
|
wakeable,
|
|
7483
|
+
wakeable$jscomp$0,
|
|
7288
7484
|
thrownValue
|
|
7289
7485
|
);
|
|
7290
|
-
enqueueCapturedUpdate(
|
|
7486
|
+
enqueueCapturedUpdate(wakeable, update$36);
|
|
7291
7487
|
break a;
|
|
7292
7488
|
}
|
|
7293
7489
|
}
|
|
7294
|
-
|
|
7295
|
-
} while (null !==
|
|
7490
|
+
wakeable = wakeable.return;
|
|
7491
|
+
} while (null !== wakeable);
|
|
7296
7492
|
}
|
|
7297
7493
|
completeUnitOfWork(erroredWork);
|
|
7298
7494
|
} catch (yetAnotherThrownValue) {
|
|
@@ -7324,6 +7520,7 @@ function renderRootSync(root, lanes) {
|
|
|
7324
7520
|
}
|
|
7325
7521
|
prepareFreshStack(root, lanes);
|
|
7326
7522
|
}
|
|
7523
|
+
markRenderStarted(lanes);
|
|
7327
7524
|
do
|
|
7328
7525
|
try {
|
|
7329
7526
|
workLoopSync();
|
|
@@ -7339,6 +7536,7 @@ function renderRootSync(root, lanes) {
|
|
|
7339
7536
|
throw Error(
|
|
7340
7537
|
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
|
|
7341
7538
|
);
|
|
7539
|
+
markRenderStopped();
|
|
7342
7540
|
workInProgressRoot = null;
|
|
7343
7541
|
workInProgressRootRenderLanes = 0;
|
|
7344
7542
|
return workInProgressRootExitStatus;
|
|
@@ -7431,7 +7629,10 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7431
7629
|
throw Error("Should not already be working.");
|
|
7432
7630
|
var finishedWork = root.finishedWork,
|
|
7433
7631
|
lanes = root.finishedLanes;
|
|
7434
|
-
|
|
7632
|
+
null !== injectedProfilingHooks &&
|
|
7633
|
+
"function" === typeof injectedProfilingHooks.markCommitStarted &&
|
|
7634
|
+
injectedProfilingHooks.markCommitStarted(lanes);
|
|
7635
|
+
if (null === finishedWork) return markCommitStopped(), null;
|
|
7435
7636
|
root.finishedWork = null;
|
|
7436
7637
|
root.finishedLanes = 0;
|
|
7437
7638
|
if (finishedWork === root.current)
|
|
@@ -7466,7 +7667,13 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7466
7667
|
commitTime = now$1();
|
|
7467
7668
|
commitMutationEffects(root, finishedWork, lanes);
|
|
7468
7669
|
root.current = finishedWork;
|
|
7670
|
+
null !== injectedProfilingHooks &&
|
|
7671
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
|
7672
|
+
injectedProfilingHooks.markLayoutEffectsStarted(lanes);
|
|
7469
7673
|
commitLayoutEffects(finishedWork, root, lanes);
|
|
7674
|
+
null !== injectedProfilingHooks &&
|
|
7675
|
+
"function" === typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
|
7676
|
+
injectedProfilingHooks.markLayoutEffectsStopped();
|
|
7470
7677
|
requestPaint();
|
|
7471
7678
|
executionContext = prevExecutionContext;
|
|
7472
7679
|
currentUpdatePriority = previousPriority;
|
|
@@ -7497,6 +7704,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7497
7704
|
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7498
7705
|
: (nestedUpdateCount = 0);
|
|
7499
7706
|
flushSyncCallbacks();
|
|
7707
|
+
markCommitStopped();
|
|
7500
7708
|
return null;
|
|
7501
7709
|
}
|
|
7502
7710
|
function flushPassiveEffects() {
|
|
@@ -7511,11 +7719,16 @@ function flushPassiveEffects() {
|
|
|
7511
7719
|
var JSCompiler_inline_result = !1;
|
|
7512
7720
|
else {
|
|
7513
7721
|
renderPriority = rootWithPendingPassiveEffects;
|
|
7722
|
+
var lanes = pendingPassiveEffectsLanes;
|
|
7514
7723
|
rootWithPendingPassiveEffects = null;
|
|
7515
7724
|
pendingPassiveEffectsLanes = 0;
|
|
7516
7725
|
if (0 !== (executionContext & 6))
|
|
7517
7726
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
7518
|
-
|
|
7727
|
+
null !== injectedProfilingHooks &&
|
|
7728
|
+
"function" ===
|
|
7729
|
+
typeof injectedProfilingHooks.markPassiveEffectsStarted &&
|
|
7730
|
+
injectedProfilingHooks.markPassiveEffectsStarted(lanes);
|
|
7731
|
+
lanes = executionContext;
|
|
7519
7732
|
executionContext |= 4;
|
|
7520
7733
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
7521
7734
|
var fiber = nextEffect,
|
|
@@ -7678,7 +7891,11 @@ function flushPassiveEffects() {
|
|
|
7678
7891
|
}
|
|
7679
7892
|
}
|
|
7680
7893
|
}
|
|
7681
|
-
|
|
7894
|
+
null !== injectedProfilingHooks &&
|
|
7895
|
+
"function" ===
|
|
7896
|
+
typeof injectedProfilingHooks.markPassiveEffectsStopped &&
|
|
7897
|
+
injectedProfilingHooks.markPassiveEffectsStopped();
|
|
7898
|
+
executionContext = lanes;
|
|
7682
7899
|
flushSyncCallbacks();
|
|
7683
7900
|
if (
|
|
7684
7901
|
injectedHook &&
|
|
@@ -7835,6 +8052,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7835
8052
|
contextStackCursor.current
|
|
7836
8053
|
);
|
|
7837
8054
|
prepareToReadContext(workInProgress, renderLanes);
|
|
8055
|
+
markComponentRenderStarted(workInProgress);
|
|
7838
8056
|
context = renderWithHooks(
|
|
7839
8057
|
null,
|
|
7840
8058
|
workInProgress,
|
|
@@ -7843,6 +8061,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7843
8061
|
context,
|
|
7844
8062
|
renderLanes
|
|
7845
8063
|
);
|
|
8064
|
+
markComponentRenderStopped();
|
|
7846
8065
|
workInProgress.flags |= 1;
|
|
7847
8066
|
if (
|
|
7848
8067
|
"object" === typeof context &&
|
|
@@ -8168,7 +8387,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
8168
8387
|
(Component = workInProgress.pendingProps.children),
|
|
8169
8388
|
prepareToReadContext(workInProgress, renderLanes),
|
|
8170
8389
|
(context = readContext(context)),
|
|
8390
|
+
markComponentRenderStarted(workInProgress),
|
|
8171
8391
|
(Component = Component(context)),
|
|
8392
|
+
markComponentRenderStopped(),
|
|
8172
8393
|
(workInProgress.flags |= 1),
|
|
8173
8394
|
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
8174
8395
|
workInProgress.child
|
|
@@ -8299,7 +8520,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
8299
8520
|
(workInProgress.deletions = null),
|
|
8300
8521
|
(workInProgress.actualDuration = 0),
|
|
8301
8522
|
(workInProgress.actualStartTime = -1));
|
|
8302
|
-
workInProgress.flags = current.flags &
|
|
8523
|
+
workInProgress.flags = current.flags & 14680064;
|
|
8303
8524
|
workInProgress.childLanes = current.childLanes;
|
|
8304
8525
|
workInProgress.lanes = current.lanes;
|
|
8305
8526
|
workInProgress.child = current.child;
|
|
@@ -8435,7 +8656,7 @@ function createFiberFromPortal(portal, mode, lanes) {
|
|
|
8435
8656
|
};
|
|
8436
8657
|
return mode;
|
|
8437
8658
|
}
|
|
8438
|
-
function FiberRootNode(containerInfo, tag, hydrate) {
|
|
8659
|
+
function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
|
|
8439
8660
|
this.tag = tag;
|
|
8440
8661
|
this.containerInfo = containerInfo;
|
|
8441
8662
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
@@ -8448,6 +8669,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
8448
8669
|
this.expirationTimes = createLaneMap(-1);
|
|
8449
8670
|
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
8450
8671
|
this.entanglements = createLaneMap(0);
|
|
8672
|
+
this.identifierPrefix = identifierPrefix;
|
|
8451
8673
|
this.passiveEffectDuration = this.effectDuration = 0;
|
|
8452
8674
|
this.memoizedUpdaters = new Set();
|
|
8453
8675
|
containerInfo = this.pendingUpdatersLaneMap = [];
|
|
@@ -8481,6 +8703,9 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8481
8703
|
var current = container.current,
|
|
8482
8704
|
eventTime = requestEventTime(),
|
|
8483
8705
|
lane = requestUpdateLane(current);
|
|
8706
|
+
null !== injectedProfilingHooks &&
|
|
8707
|
+
"function" === typeof injectedProfilingHooks.markRenderScheduled &&
|
|
8708
|
+
injectedProfilingHooks.markRenderScheduled(lane);
|
|
8484
8709
|
a: if (parentComponent) {
|
|
8485
8710
|
parentComponent = parentComponent._reactInternals;
|
|
8486
8711
|
b: {
|
|
@@ -8662,10 +8887,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8662
8887
|
}
|
|
8663
8888
|
};
|
|
8664
8889
|
var roots = new Map(),
|
|
8665
|
-
devToolsConfig$jscomp$
|
|
8890
|
+
devToolsConfig$jscomp$inline_1043 = {
|
|
8666
8891
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8667
8892
|
bundleType: 0,
|
|
8668
|
-
version: "18.0.0-
|
|
8893
|
+
version: "18.0.0-rc.0-51947a14b-20220113",
|
|
8669
8894
|
rendererPackageName: "react-native-renderer",
|
|
8670
8895
|
rendererConfig: {
|
|
8671
8896
|
getInspectorDataForViewTag: function() {
|
|
@@ -8680,11 +8905,11 @@ var roots = new Map(),
|
|
|
8680
8905
|
}.bind(null, findNodeHandle)
|
|
8681
8906
|
}
|
|
8682
8907
|
};
|
|
8683
|
-
var internals$jscomp$
|
|
8684
|
-
bundleType: devToolsConfig$jscomp$
|
|
8685
|
-
version: devToolsConfig$jscomp$
|
|
8686
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8687
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8908
|
+
var internals$jscomp$inline_1330 = {
|
|
8909
|
+
bundleType: devToolsConfig$jscomp$inline_1043.bundleType,
|
|
8910
|
+
version: devToolsConfig$jscomp$inline_1043.version,
|
|
8911
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1043.rendererPackageName,
|
|
8912
|
+
rendererConfig: devToolsConfig$jscomp$inline_1043.rendererConfig,
|
|
8688
8913
|
overrideHookState: null,
|
|
8689
8914
|
overrideHookStateDeletePath: null,
|
|
8690
8915
|
overrideHookStateRenamePath: null,
|
|
@@ -8700,26 +8925,29 @@ var internals$jscomp$inline_1290 = {
|
|
|
8700
8925
|
return null === fiber ? null : fiber.stateNode;
|
|
8701
8926
|
},
|
|
8702
8927
|
findFiberByHostInstance:
|
|
8703
|
-
devToolsConfig$jscomp$
|
|
8928
|
+
devToolsConfig$jscomp$inline_1043.findFiberByHostInstance ||
|
|
8704
8929
|
emptyFindFiberByHostInstance,
|
|
8705
8930
|
findHostInstancesForRefresh: null,
|
|
8706
8931
|
scheduleRefresh: null,
|
|
8707
8932
|
scheduleRoot: null,
|
|
8708
8933
|
setRefreshHandler: null,
|
|
8709
8934
|
getCurrentFiber: null,
|
|
8710
|
-
reconcilerVersion: "18.0.0-
|
|
8935
|
+
reconcilerVersion: "18.0.0-rc.0-51947a14b-20220113"
|
|
8711
8936
|
};
|
|
8712
8937
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8713
|
-
var hook$jscomp$
|
|
8938
|
+
var hook$jscomp$inline_1331 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8714
8939
|
if (
|
|
8715
|
-
!hook$jscomp$
|
|
8716
|
-
hook$jscomp$
|
|
8940
|
+
!hook$jscomp$inline_1331.isDisabled &&
|
|
8941
|
+
hook$jscomp$inline_1331.supportsFiber
|
|
8717
8942
|
)
|
|
8718
8943
|
try {
|
|
8719
|
-
(rendererID = hook$jscomp$
|
|
8720
|
-
internals$jscomp$
|
|
8944
|
+
(rendererID = hook$jscomp$inline_1331.inject(
|
|
8945
|
+
Object.assign({}, internals$jscomp$inline_1330, {
|
|
8946
|
+
getLaneLabelMap: getLaneLabelMap,
|
|
8947
|
+
injectProfilingHooks: injectProfilingHooks
|
|
8948
|
+
})
|
|
8721
8949
|
)),
|
|
8722
|
-
(injectedHook = hook$jscomp$
|
|
8950
|
+
(injectedHook = hook$jscomp$inline_1331);
|
|
8723
8951
|
} catch (err) {}
|
|
8724
8952
|
}
|
|
8725
8953
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
@@ -8765,7 +8993,7 @@ exports.findNodeHandle = findNodeHandle;
|
|
|
8765
8993
|
exports.render = function(element, containerTag, callback) {
|
|
8766
8994
|
var root = roots.get(containerTag);
|
|
8767
8995
|
if (!root) {
|
|
8768
|
-
root = new FiberRootNode(containerTag, 0, !1);
|
|
8996
|
+
root = new FiberRootNode(containerTag, 0, !1, "");
|
|
8769
8997
|
var JSCompiler_inline_result = 0;
|
|
8770
8998
|
isDevToolsPresent && (JSCompiler_inline_result |= 2);
|
|
8771
8999
|
JSCompiler_inline_result = createFiber(
|
|
@@ -8809,3 +9037,13 @@ exports.unmountComponentAtNodeAndRemoveContainer = function(containerTag) {
|
|
|
8809
9037
|
ReactNativePrivateInterface.UIManager.removeRootView(containerTag);
|
|
8810
9038
|
};
|
|
8811
9039
|
exports.unstable_batchedUpdates = batchedUpdates;
|
|
9040
|
+
|
|
9041
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
9042
|
+
if (
|
|
9043
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
9044
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
9045
|
+
'function'
|
|
9046
|
+
) {
|
|
9047
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
9048
|
+
}
|
|
9049
|
+
|