@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,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<d101378706adbbc7947ba5d167b46aab>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -927,7 +927,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
927
927
|
"ReactNativeBridgeEventPlugin"
|
|
928
928
|
]);
|
|
929
929
|
recomputePluginOrdering();
|
|
930
|
-
var injectedNamesToPlugins$jscomp$
|
|
930
|
+
var injectedNamesToPlugins$jscomp$inline_220 = {
|
|
931
931
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
932
932
|
ReactNativeBridgeEventPlugin: {
|
|
933
933
|
eventTypes: {},
|
|
@@ -962,33 +962,33 @@ var injectedNamesToPlugins$jscomp$inline_219 = {
|
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
|
-
isOrderingDirty$jscomp$
|
|
966
|
-
pluginName$jscomp$
|
|
967
|
-
for (pluginName$jscomp$
|
|
965
|
+
isOrderingDirty$jscomp$inline_221 = !1,
|
|
966
|
+
pluginName$jscomp$inline_222;
|
|
967
|
+
for (pluginName$jscomp$inline_222 in injectedNamesToPlugins$jscomp$inline_220)
|
|
968
968
|
if (
|
|
969
|
-
injectedNamesToPlugins$jscomp$
|
|
970
|
-
pluginName$jscomp$
|
|
969
|
+
injectedNamesToPlugins$jscomp$inline_220.hasOwnProperty(
|
|
970
|
+
pluginName$jscomp$inline_222
|
|
971
971
|
)
|
|
972
972
|
) {
|
|
973
|
-
var pluginModule$jscomp$
|
|
974
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
+
var pluginModule$jscomp$inline_223 =
|
|
974
|
+
injectedNamesToPlugins$jscomp$inline_220[pluginName$jscomp$inline_222];
|
|
975
975
|
if (
|
|
976
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
977
|
-
namesToPlugins[pluginName$jscomp$
|
|
978
|
-
pluginModule$jscomp$
|
|
976
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_222) ||
|
|
977
|
+
namesToPlugins[pluginName$jscomp$inline_222] !==
|
|
978
|
+
pluginModule$jscomp$inline_223
|
|
979
979
|
) {
|
|
980
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
980
|
+
if (namesToPlugins[pluginName$jscomp$inline_222])
|
|
981
981
|
throw Error(
|
|
982
982
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
983
|
-
(pluginName$jscomp$
|
|
983
|
+
(pluginName$jscomp$inline_222 + "`.")
|
|
984
984
|
);
|
|
985
985
|
namesToPlugins[
|
|
986
|
-
pluginName$jscomp$
|
|
987
|
-
] = pluginModule$jscomp$
|
|
988
|
-
isOrderingDirty$jscomp$
|
|
986
|
+
pluginName$jscomp$inline_222
|
|
987
|
+
] = pluginModule$jscomp$inline_223;
|
|
988
|
+
isOrderingDirty$jscomp$inline_221 = !0;
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
isOrderingDirty$jscomp$
|
|
991
|
+
isOrderingDirty$jscomp$inline_221 && recomputePluginOrdering();
|
|
992
992
|
function getInstanceFromInstance(instanceHandle) {
|
|
993
993
|
return instanceHandle;
|
|
994
994
|
}
|
|
@@ -1619,6 +1619,19 @@ function onCommitRoot(root) {
|
|
|
1619
1619
|
);
|
|
1620
1620
|
} catch (err) {}
|
|
1621
1621
|
}
|
|
1622
|
+
function injectProfilingHooks() {}
|
|
1623
|
+
function getLaneLabelMap() {
|
|
1624
|
+
for (var map = new Map(), lane = 1, index$3 = 0; 31 > index$3; index$3++)
|
|
1625
|
+
map.set(lane, void 0), (lane *= 2);
|
|
1626
|
+
return map;
|
|
1627
|
+
}
|
|
1628
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1629
|
+
log = Math.log,
|
|
1630
|
+
LN2 = Math.LN2;
|
|
1631
|
+
function clz32Fallback(x) {
|
|
1632
|
+
x >>>= 0;
|
|
1633
|
+
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
1634
|
+
}
|
|
1622
1635
|
var nextTransitionLane = 64,
|
|
1623
1636
|
nextRetryLane = 4194304;
|
|
1624
1637
|
function getHighestPriorityLanes(lanes) {
|
|
@@ -1784,30 +1797,24 @@ function markRootFinished(root, remainingLanes) {
|
|
|
1784
1797
|
remainingLanes = root.entanglements;
|
|
1785
1798
|
var eventTimes = root.eventTimes;
|
|
1786
1799
|
for (root = root.expirationTimes; 0 < noLongerPendingLanes; ) {
|
|
1787
|
-
var index$
|
|
1788
|
-
lane = 1 << index$
|
|
1789
|
-
remainingLanes[index$
|
|
1790
|
-
eventTimes[index$
|
|
1791
|
-
root[index$
|
|
1800
|
+
var index$8 = 31 - clz32(noLongerPendingLanes),
|
|
1801
|
+
lane = 1 << index$8;
|
|
1802
|
+
remainingLanes[index$8] = 0;
|
|
1803
|
+
eventTimes[index$8] = -1;
|
|
1804
|
+
root[index$8] = -1;
|
|
1792
1805
|
noLongerPendingLanes &= ~lane;
|
|
1793
1806
|
}
|
|
1794
1807
|
}
|
|
1795
1808
|
function markRootEntangled(root, entangledLanes) {
|
|
1796
1809
|
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
|
|
1797
1810
|
for (root = root.entanglements; rootEntangledLanes; ) {
|
|
1798
|
-
var index$
|
|
1799
|
-
lane = 1 << index$
|
|
1800
|
-
(lane & entangledLanes) | (root[index$
|
|
1801
|
-
(root[index$
|
|
1811
|
+
var index$9 = 31 - clz32(rootEntangledLanes),
|
|
1812
|
+
lane = 1 << index$9;
|
|
1813
|
+
(lane & entangledLanes) | (root[index$9] & entangledLanes) &&
|
|
1814
|
+
(root[index$9] |= entangledLanes);
|
|
1802
1815
|
rootEntangledLanes &= ~lane;
|
|
1803
1816
|
}
|
|
1804
1817
|
}
|
|
1805
|
-
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1806
|
-
log = Math.log,
|
|
1807
|
-
LN2 = Math.LN2;
|
|
1808
|
-
function clz32Fallback(lanes) {
|
|
1809
|
-
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
|
|
1810
|
-
}
|
|
1811
1818
|
var currentUpdatePriority = 0;
|
|
1812
1819
|
function lanesToEventPriority(lanes) {
|
|
1813
1820
|
lanes &= -lanes;
|
|
@@ -1819,11 +1826,6 @@ function lanesToEventPriority(lanes) {
|
|
|
1819
1826
|
: 4
|
|
1820
1827
|
: 1;
|
|
1821
1828
|
}
|
|
1822
|
-
function shim() {
|
|
1823
|
-
throw Error(
|
|
1824
|
-
"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
|
|
1825
|
-
);
|
|
1826
|
-
}
|
|
1827
1829
|
function shim$1() {
|
|
1828
1830
|
throw Error(
|
|
1829
1831
|
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
|
@@ -2128,12 +2130,14 @@ function shallowEqual(objA, objB) {
|
|
|
2128
2130
|
var keysA = Object.keys(objA),
|
|
2129
2131
|
keysB = Object.keys(objB);
|
|
2130
2132
|
if (keysA.length !== keysB.length) return !1;
|
|
2131
|
-
for (keysB = 0; keysB < keysA.length; keysB++)
|
|
2133
|
+
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
2134
|
+
var currentKey = keysA[keysB];
|
|
2132
2135
|
if (
|
|
2133
|
-
!hasOwnProperty.call(objB,
|
|
2134
|
-
!objectIs(objA[
|
|
2136
|
+
!hasOwnProperty.call(objB, currentKey) ||
|
|
2137
|
+
!objectIs(objA[currentKey], objB[currentKey])
|
|
2135
2138
|
)
|
|
2136
2139
|
return !1;
|
|
2140
|
+
}
|
|
2137
2141
|
return !0;
|
|
2138
2142
|
}
|
|
2139
2143
|
function describeFiber(fiber) {
|
|
@@ -2631,6 +2635,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2631
2635
|
"function" === typeof instance.componentDidMount &&
|
|
2632
2636
|
(workInProgress.flags |= 4);
|
|
2633
2637
|
}
|
|
2638
|
+
var forkStack = [],
|
|
2639
|
+
forkStackIndex = 0,
|
|
2640
|
+
treeForkProvider = null,
|
|
2641
|
+
idStack = [],
|
|
2642
|
+
idStackIndex = 0,
|
|
2643
|
+
treeContextProvider = null;
|
|
2644
|
+
function popTreeContext(workInProgress) {
|
|
2645
|
+
for (; workInProgress === treeForkProvider; )
|
|
2646
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2647
|
+
(forkStack[forkStackIndex] = null),
|
|
2648
|
+
--forkStackIndex,
|
|
2649
|
+
(forkStack[forkStackIndex] = null);
|
|
2650
|
+
for (; workInProgress === treeContextProvider; )
|
|
2651
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2652
|
+
(idStack[idStackIndex] = null),
|
|
2653
|
+
--idStackIndex,
|
|
2654
|
+
(idStack[idStackIndex] = null),
|
|
2655
|
+
--idStackIndex,
|
|
2656
|
+
(idStack[idStackIndex] = null);
|
|
2657
|
+
}
|
|
2634
2658
|
function coerceRef(returnFiber, current, element) {
|
|
2635
2659
|
returnFiber = element.ref;
|
|
2636
2660
|
if (
|
|
@@ -2725,7 +2749,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2725
2749
|
}
|
|
2726
2750
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
2727
2751
|
newFiber.index = newIndex;
|
|
2728
|
-
if (!shouldTrackSideEffects)
|
|
2752
|
+
if (!shouldTrackSideEffects)
|
|
2753
|
+
return (newFiber.flags |= 1048576), lastPlacedIndex;
|
|
2729
2754
|
newIndex = newFiber.alternate;
|
|
2730
2755
|
if (null !== newIndex)
|
|
2731
2756
|
return (
|
|
@@ -2816,7 +2841,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2816
2841
|
return current;
|
|
2817
2842
|
}
|
|
2818
2843
|
function createChild(returnFiber, newChild, lanes) {
|
|
2819
|
-
if (
|
|
2844
|
+
if (
|
|
2845
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
2846
|
+
"number" === typeof newChild
|
|
2847
|
+
)
|
|
2820
2848
|
return (
|
|
2821
2849
|
(newChild = createFiberFromText(
|
|
2822
2850
|
"" + newChild,
|
|
@@ -2870,7 +2898,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2870
2898
|
}
|
|
2871
2899
|
function updateSlot(returnFiber, oldFiber, newChild, lanes) {
|
|
2872
2900
|
var key = null !== oldFiber ? oldFiber.key : null;
|
|
2873
|
-
if (
|
|
2901
|
+
if (
|
|
2902
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
2903
|
+
"number" === typeof newChild
|
|
2904
|
+
)
|
|
2874
2905
|
return null !== key
|
|
2875
2906
|
? null
|
|
2876
2907
|
: updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
|
|
@@ -2900,7 +2931,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2900
2931
|
newChild,
|
|
2901
2932
|
lanes
|
|
2902
2933
|
) {
|
|
2903
|
-
if (
|
|
2934
|
+
if (
|
|
2935
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
2936
|
+
"number" === typeof newChild
|
|
2937
|
+
)
|
|
2904
2938
|
return (
|
|
2905
2939
|
(existingChildren = existingChildren.get(newIdx) || null),
|
|
2906
2940
|
updateTextNode(returnFiber, existingChildren, "" + newChild, lanes)
|
|
@@ -3226,7 +3260,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3226
3260
|
);
|
|
3227
3261
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
3228
3262
|
}
|
|
3229
|
-
return "string" === typeof newChild
|
|
3263
|
+
return ("string" === typeof newChild && "" !== newChild) ||
|
|
3264
|
+
"number" === typeof newChild
|
|
3230
3265
|
? ((newChild = "" + newChild),
|
|
3231
3266
|
null !== currentFirstChild && 6 === currentFirstChild.tag
|
|
3232
3267
|
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
|
|
@@ -3329,7 +3364,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
3329
3364
|
currentHook = null,
|
|
3330
3365
|
workInProgressHook = null,
|
|
3331
3366
|
didScheduleRenderPhaseUpdate = !1,
|
|
3332
|
-
didScheduleRenderPhaseUpdateDuringThisPass = !1
|
|
3367
|
+
didScheduleRenderPhaseUpdateDuringThisPass = !1,
|
|
3368
|
+
globalClientIdCounter = 0;
|
|
3333
3369
|
function throwInvalidHookError() {
|
|
3334
3370
|
throw Error(
|
|
3335
3371
|
"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."
|
|
@@ -3752,7 +3788,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3752
3788
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3753
3789
|
}
|
|
3754
3790
|
function mountEffect(create, deps) {
|
|
3755
|
-
return mountEffectImpl(
|
|
3791
|
+
return mountEffectImpl(8390656, 8, create, deps);
|
|
3756
3792
|
}
|
|
3757
3793
|
function updateEffect(create, deps) {
|
|
3758
3794
|
return updateEffectImpl(2048, 8, create, deps);
|
|
@@ -3832,6 +3868,9 @@ function startTransition(setPending, callback) {
|
|
|
3832
3868
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3833
3869
|
}
|
|
3834
3870
|
}
|
|
3871
|
+
function updateId() {
|
|
3872
|
+
return updateWorkInProgressHook().memoizedState;
|
|
3873
|
+
}
|
|
3835
3874
|
function dispatchReducerAction(fiber, queue, action) {
|
|
3836
3875
|
var lane = requestUpdateLane(fiber);
|
|
3837
3876
|
action = {
|
|
@@ -3939,7 +3978,7 @@ var ContextOnlyDispatcher = {
|
|
|
3939
3978
|
useTransition: throwInvalidHookError,
|
|
3940
3979
|
useMutableSource: throwInvalidHookError,
|
|
3941
3980
|
useSyncExternalStore: throwInvalidHookError,
|
|
3942
|
-
|
|
3981
|
+
useId: throwInvalidHookError,
|
|
3943
3982
|
unstable_isNewReconciler: !1
|
|
3944
3983
|
},
|
|
3945
3984
|
HooksDispatcherOnMount = {
|
|
@@ -4037,8 +4076,12 @@ var ContextOnlyDispatcher = {
|
|
|
4037
4076
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
4038
4077
|
},
|
|
4039
4078
|
useSyncExternalStore: mountSyncExternalStore,
|
|
4040
|
-
|
|
4041
|
-
|
|
4079
|
+
useId: function() {
|
|
4080
|
+
var hook = mountWorkInProgressHook(),
|
|
4081
|
+
identifierPrefix = workInProgressRoot.identifierPrefix,
|
|
4082
|
+
globalClientId = globalClientIdCounter++;
|
|
4083
|
+
identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
|
|
4084
|
+
return (hook.memoizedState = identifierPrefix);
|
|
4042
4085
|
},
|
|
4043
4086
|
unstable_isNewReconciler: !1
|
|
4044
4087
|
},
|
|
@@ -4121,9 +4164,7 @@ var ContextOnlyDispatcher = {
|
|
|
4121
4164
|
}
|
|
4122
4165
|
return nextSnapshot;
|
|
4123
4166
|
},
|
|
4124
|
-
|
|
4125
|
-
return updateReducer(basicStateReducer)[0];
|
|
4126
|
-
},
|
|
4167
|
+
useId: updateId,
|
|
4127
4168
|
unstable_isNewReconciler: !1
|
|
4128
4169
|
},
|
|
4129
4170
|
HooksDispatcherOnRerender = {
|
|
@@ -4166,9 +4207,7 @@ var ContextOnlyDispatcher = {
|
|
|
4166
4207
|
},
|
|
4167
4208
|
useMutableSource: updateMutableSource,
|
|
4168
4209
|
useSyncExternalStore: mountSyncExternalStore,
|
|
4169
|
-
|
|
4170
|
-
return rerenderReducer(basicStateReducer)[0];
|
|
4171
|
-
},
|
|
4210
|
+
useId: updateId,
|
|
4172
4211
|
unstable_isNewReconciler: !1
|
|
4173
4212
|
};
|
|
4174
4213
|
function createCapturedValue(value, source) {
|
|
@@ -4415,14 +4454,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4415
4454
|
break;
|
|
4416
4455
|
case "collapsed":
|
|
4417
4456
|
lastTailNode = renderState.tail;
|
|
4418
|
-
for (var lastTailNode$
|
|
4419
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4457
|
+
for (var lastTailNode$36 = null; null !== lastTailNode; )
|
|
4458
|
+
null !== lastTailNode.alternate && (lastTailNode$36 = lastTailNode),
|
|
4420
4459
|
(lastTailNode = lastTailNode.sibling);
|
|
4421
|
-
null === lastTailNode$
|
|
4460
|
+
null === lastTailNode$36
|
|
4422
4461
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4423
4462
|
? (renderState.tail = null)
|
|
4424
4463
|
: (renderState.tail.sibling = null)
|
|
4425
|
-
: (lastTailNode$
|
|
4464
|
+
: (lastTailNode$36.sibling = null);
|
|
4426
4465
|
}
|
|
4427
4466
|
}
|
|
4428
4467
|
function bubbleProperties(completedWork) {
|
|
@@ -4432,19 +4471,19 @@ function bubbleProperties(completedWork) {
|
|
|
4432
4471
|
newChildLanes = 0,
|
|
4433
4472
|
subtreeFlags = 0;
|
|
4434
4473
|
if (didBailout)
|
|
4435
|
-
for (var child$
|
|
4436
|
-
(newChildLanes |= child$
|
|
4437
|
-
(subtreeFlags |= child$
|
|
4438
|
-
(subtreeFlags |= child$
|
|
4439
|
-
(child$
|
|
4440
|
-
(child$
|
|
4474
|
+
for (var child$37 = completedWork.child; null !== child$37; )
|
|
4475
|
+
(newChildLanes |= child$37.lanes | child$37.childLanes),
|
|
4476
|
+
(subtreeFlags |= child$37.subtreeFlags & 14680064),
|
|
4477
|
+
(subtreeFlags |= child$37.flags & 14680064),
|
|
4478
|
+
(child$37.return = completedWork),
|
|
4479
|
+
(child$37 = child$37.sibling);
|
|
4441
4480
|
else
|
|
4442
|
-
for (child$
|
|
4443
|
-
(newChildLanes |= child$
|
|
4444
|
-
(subtreeFlags |= child$
|
|
4445
|
-
(subtreeFlags |= child$
|
|
4446
|
-
(child$
|
|
4447
|
-
(child$
|
|
4481
|
+
for (child$37 = completedWork.child; null !== child$37; )
|
|
4482
|
+
(newChildLanes |= child$37.lanes | child$37.childLanes),
|
|
4483
|
+
(subtreeFlags |= child$37.subtreeFlags),
|
|
4484
|
+
(subtreeFlags |= child$37.flags),
|
|
4485
|
+
(child$37.return = completedWork),
|
|
4486
|
+
(child$37 = child$37.sibling);
|
|
4448
4487
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4449
4488
|
completedWork.childLanes = newChildLanes;
|
|
4450
4489
|
return didBailout;
|
|
@@ -4476,6 +4515,7 @@ function completeSuspendedOffscreenHostContainer(current, workInProgress) {
|
|
|
4476
4515
|
}
|
|
4477
4516
|
function completeWork(current, workInProgress, renderLanes) {
|
|
4478
4517
|
var newProps = workInProgress.pendingProps;
|
|
4518
|
+
popTreeContext(workInProgress);
|
|
4479
4519
|
switch (workInProgress.tag) {
|
|
4480
4520
|
case 2:
|
|
4481
4521
|
case 16:
|
|
@@ -4583,11 +4623,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4583
4623
|
!renderLanes &&
|
|
4584
4624
|
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4585
4625
|
)
|
|
4586
|
-
if (
|
|
4587
|
-
(null === current &&
|
|
4588
|
-
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
4589
|
-
0 !== (suspenseStackCursor.current & 1)
|
|
4590
|
-
)
|
|
4626
|
+
if (null === current || 0 !== (suspenseStackCursor.current & 1))
|
|
4591
4627
|
0 === workInProgressRootExitStatus &&
|
|
4592
4628
|
(workInProgressRootExitStatus = 3);
|
|
4593
4629
|
else {
|
|
@@ -4599,7 +4635,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4599
4635
|
workInProgressRootExitStatus = 4;
|
|
4600
4636
|
null === workInProgressRoot ||
|
|
4601
4637
|
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4602
|
-
0 === (
|
|
4638
|
+
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
|
|
4603
4639
|
markRootSuspended$1(
|
|
4604
4640
|
workInProgressRoot,
|
|
4605
4641
|
workInProgressRootRenderLanes
|
|
@@ -4654,7 +4690,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4654
4690
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4655
4691
|
(renderLanes = newProps),
|
|
4656
4692
|
(type = current),
|
|
4657
|
-
(renderLanes.flags &=
|
|
4693
|
+
(renderLanes.flags &= 14680066),
|
|
4658
4694
|
(renderedTail = renderLanes.alternate),
|
|
4659
4695
|
null === renderedTail
|
|
4660
4696
|
? ((renderLanes.childLanes = 0),
|
|
@@ -5270,7 +5306,7 @@ function pushHostRootContext(workInProgress) {
|
|
|
5270
5306
|
pushTopLevelContextObject(workInProgress, root.context, !1);
|
|
5271
5307
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
5272
5308
|
}
|
|
5273
|
-
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
|
|
5309
|
+
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
5274
5310
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
5275
5311
|
return { baseLanes: renderLanes, cachePool: null };
|
|
5276
5312
|
}
|
|
@@ -5284,11 +5320,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
5284
5320
|
null !== current && null === current.memoizedState
|
|
5285
5321
|
? !1
|
|
5286
5322
|
: 0 !== (suspenseContext & 2));
|
|
5287
|
-
JSCompiler_temp
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
!0 === nextProps.unstable_avoidThisFallback ||
|
|
5291
|
-
(suspenseContext |= 1);
|
|
5323
|
+
if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
|
|
5324
|
+
else if (null === current || null !== current.memoizedState)
|
|
5325
|
+
suspenseContext |= 1;
|
|
5292
5326
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
5293
5327
|
if (null === current) {
|
|
5294
5328
|
current = nextProps.children;
|
|
@@ -5495,7 +5529,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5495
5529
|
primaryChildren
|
|
5496
5530
|
))),
|
|
5497
5531
|
(current.subtreeFlags =
|
|
5498
|
-
currentPrimaryChildFragment.subtreeFlags &
|
|
5532
|
+
currentPrimaryChildFragment.subtreeFlags & 14680064));
|
|
5499
5533
|
null !== currentFallbackChildFragment
|
|
5500
5534
|
? (fallbackChildren = createWorkInProgress(
|
|
5501
5535
|
currentFallbackChildFragment,
|
|
@@ -5719,6 +5753,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5719
5753
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5720
5754
|
}
|
|
5721
5755
|
function unwindWork(workInProgress) {
|
|
5756
|
+
popTreeContext(workInProgress);
|
|
5722
5757
|
switch (workInProgress.tag) {
|
|
5723
5758
|
case 1:
|
|
5724
5759
|
isContextProvider(workInProgress.type) && popContext();
|
|
@@ -5776,6 +5811,13 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5776
5811
|
}
|
|
5777
5812
|
else ref.current = null;
|
|
5778
5813
|
}
|
|
5814
|
+
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
5815
|
+
try {
|
|
5816
|
+
destroy();
|
|
5817
|
+
} catch (error) {
|
|
5818
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5819
|
+
}
|
|
5820
|
+
}
|
|
5779
5821
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
5780
5822
|
function commitBeforeMutationEffects(root, firstChild) {
|
|
5781
5823
|
for (nextEffect = firstChild; null !== nextEffect; )
|
|
@@ -5840,7 +5882,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5840
5882
|
function commitHookEffectListUnmount(
|
|
5841
5883
|
flags,
|
|
5842
5884
|
finishedWork,
|
|
5843
|
-
nearestMountedAncestor
|
|
5885
|
+
nearestMountedAncestor
|
|
5844
5886
|
) {
|
|
5845
5887
|
var updateQueue = finishedWork.updateQueue;
|
|
5846
5888
|
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
|
|
@@ -5850,29 +5892,22 @@ function commitHookEffectListUnmount(
|
|
|
5850
5892
|
if ((effect.tag & flags) === flags) {
|
|
5851
5893
|
var destroy = effect.destroy;
|
|
5852
5894
|
effect.destroy = void 0;
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
|
|
5856
|
-
try {
|
|
5857
|
-
destroy();
|
|
5858
|
-
} catch (error) {
|
|
5859
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5860
|
-
}
|
|
5861
|
-
}
|
|
5895
|
+
void 0 !== destroy &&
|
|
5896
|
+
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
5862
5897
|
}
|
|
5863
5898
|
effect = effect.next;
|
|
5864
5899
|
} while (effect !== updateQueue);
|
|
5865
5900
|
}
|
|
5866
5901
|
}
|
|
5867
|
-
function commitHookEffectListMount(
|
|
5902
|
+
function commitHookEffectListMount(flags, finishedWork) {
|
|
5868
5903
|
finishedWork = finishedWork.updateQueue;
|
|
5869
5904
|
finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
|
|
5870
5905
|
if (null !== finishedWork) {
|
|
5871
5906
|
var effect = (finishedWork = finishedWork.next);
|
|
5872
5907
|
do {
|
|
5873
|
-
if ((effect.tag &
|
|
5874
|
-
var create$
|
|
5875
|
-
effect.destroy = create$
|
|
5908
|
+
if ((effect.tag & flags) === flags) {
|
|
5909
|
+
var create$81 = effect.create;
|
|
5910
|
+
effect.destroy = create$81();
|
|
5876
5911
|
}
|
|
5877
5912
|
effect = effect.next;
|
|
5878
5913
|
} while (effect !== finishedWork);
|
|
@@ -5977,22 +6012,11 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5977
6012
|
var _effect = effect,
|
|
5978
6013
|
destroy = _effect.destroy,
|
|
5979
6014
|
tag = _effect.tag;
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
var nearestMountedAncestor = root;
|
|
5986
|
-
try {
|
|
5987
|
-
destroy();
|
|
5988
|
-
} catch (error) {
|
|
5989
|
-
captureCommitPhaseError(
|
|
5990
|
-
_effect,
|
|
5991
|
-
nearestMountedAncestor,
|
|
5992
|
-
error
|
|
5993
|
-
);
|
|
5994
|
-
}
|
|
5995
|
-
}
|
|
6015
|
+
void 0 !== destroy &&
|
|
6016
|
+
(0 !== (tag & 2)
|
|
6017
|
+
? safelyCallDestroy(current, root, destroy)
|
|
6018
|
+
: 0 !== (tag & 4) &&
|
|
6019
|
+
safelyCallDestroy(current, root, destroy));
|
|
5996
6020
|
effect = effect.next;
|
|
5997
6021
|
} while (effect !== firstEffect);
|
|
5998
6022
|
}
|
|
@@ -6060,8 +6084,8 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6060
6084
|
switch (root.tag) {
|
|
6061
6085
|
case 13:
|
|
6062
6086
|
if (null !== root.memoizedState) {
|
|
6063
|
-
var current$
|
|
6064
|
-
if (null === current$
|
|
6087
|
+
var current$85 = root.alternate;
|
|
6088
|
+
if (null === current$85 || null === current$85.memoizedState)
|
|
6065
6089
|
globalMostRecentFallbackTime = now();
|
|
6066
6090
|
}
|
|
6067
6091
|
}
|
|
@@ -6138,8 +6162,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6138
6162
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6139
6163
|
break;
|
|
6140
6164
|
case 3:
|
|
6141
|
-
var updateQueue$
|
|
6142
|
-
if (null !== updateQueue$
|
|
6165
|
+
var updateQueue$82 = firstChild.updateQueue;
|
|
6166
|
+
if (null !== updateQueue$82) {
|
|
6143
6167
|
current = null;
|
|
6144
6168
|
if (null !== firstChild.child)
|
|
6145
6169
|
switch (firstChild.child.tag) {
|
|
@@ -6149,11 +6173,14 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6149
6173
|
case 1:
|
|
6150
6174
|
current = firstChild.child.stateNode;
|
|
6151
6175
|
}
|
|
6152
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6176
|
+
commitUpdateQueue(firstChild, updateQueue$82, current);
|
|
6153
6177
|
}
|
|
6154
6178
|
break;
|
|
6155
6179
|
case 5:
|
|
6156
|
-
null === current && firstChild.flags & 4
|
|
6180
|
+
if (null === current && firstChild.flags & 4)
|
|
6181
|
+
throw Error(
|
|
6182
|
+
"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
|
|
6183
|
+
);
|
|
6157
6184
|
break;
|
|
6158
6185
|
case 6:
|
|
6159
6186
|
break;
|
|
@@ -6222,7 +6249,8 @@ var ceil = Math.ceil,
|
|
|
6222
6249
|
workInProgressRootExitStatus = 0,
|
|
6223
6250
|
workInProgressRootFatalError = null,
|
|
6224
6251
|
workInProgressRootSkippedLanes = 0,
|
|
6225
|
-
|
|
6252
|
+
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6253
|
+
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6226
6254
|
workInProgressRootPingedLanes = 0,
|
|
6227
6255
|
globalMostRecentFallbackTime = 0,
|
|
6228
6256
|
workInProgressRootRenderTargetTime = Infinity,
|
|
@@ -6282,16 +6310,19 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6282
6310
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6283
6311
|
if (null === root) return null;
|
|
6284
6312
|
markRootUpdated(root, lane, eventTime);
|
|
6285
|
-
root === workInProgressRoot
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6313
|
+
0 !== (executionContext & 2) && root === workInProgressRoot
|
|
6314
|
+
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
|
|
6315
|
+
: (root === workInProgressRoot &&
|
|
6316
|
+
(0 === (executionContext & 2) &&
|
|
6317
|
+
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
6318
|
+
4 === workInProgressRootExitStatus &&
|
|
6319
|
+
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6320
|
+
ensureRootIsScheduled(root, eventTime),
|
|
6321
|
+
1 === lane &&
|
|
6322
|
+
0 === executionContext &&
|
|
6323
|
+
0 === (fiber.mode & 1) &&
|
|
6324
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6325
|
+
includesLegacySyncCallbacks && flushSyncCallbacks()));
|
|
6295
6326
|
return root;
|
|
6296
6327
|
}
|
|
6297
6328
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6317,12 +6348,12 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6317
6348
|
0 < lanes;
|
|
6318
6349
|
|
|
6319
6350
|
) {
|
|
6320
|
-
var index$
|
|
6321
|
-
lane = 1 << index$
|
|
6322
|
-
expirationTime = expirationTimes[index$
|
|
6351
|
+
var index$6 = 31 - clz32(lanes),
|
|
6352
|
+
lane = 1 << index$6,
|
|
6353
|
+
expirationTime = expirationTimes[index$6];
|
|
6323
6354
|
if (-1 === expirationTime) {
|
|
6324
6355
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6325
|
-
expirationTimes[index$
|
|
6356
|
+
expirationTimes[index$6] = computeExpirationTime(lane, currentTime);
|
|
6326
6357
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6327
6358
|
lanes &= ~lane;
|
|
6328
6359
|
}
|
|
@@ -6491,10 +6522,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6491
6522
|
if ((lanes & 4194240) === lanes) break;
|
|
6492
6523
|
didTimeout = root.eventTimes;
|
|
6493
6524
|
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6494
|
-
var index$
|
|
6495
|
-
prevDispatcher = 1 << index$
|
|
6496
|
-
index$
|
|
6497
|
-
index$
|
|
6525
|
+
var index$5 = 31 - clz32(lanes);
|
|
6526
|
+
prevDispatcher = 1 << index$5;
|
|
6527
|
+
index$5 = didTimeout[index$5];
|
|
6528
|
+
index$5 > prevExecutionContext && (prevExecutionContext = index$5);
|
|
6498
6529
|
lanes &= ~prevDispatcher;
|
|
6499
6530
|
}
|
|
6500
6531
|
lanes = prevExecutionContext;
|
|
@@ -6537,10 +6568,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6537
6568
|
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6538
6569
|
var prevExecutionContext = executionContext;
|
|
6539
6570
|
executionContext |= 8;
|
|
6540
|
-
root.isDehydrated && (
|
|
6541
|
-
|
|
6571
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
6572
|
+
for (
|
|
6573
|
+
var exitStatus, i = 0;
|
|
6574
|
+
50 > i &&
|
|
6575
|
+
((exitStatus = renderRootSync(root, errorRetryLanes)),
|
|
6576
|
+
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
|
|
6577
|
+
i++
|
|
6578
|
+
);
|
|
6542
6579
|
executionContext = prevExecutionContext;
|
|
6543
|
-
return
|
|
6580
|
+
return exitStatus;
|
|
6544
6581
|
}
|
|
6545
6582
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6546
6583
|
for (var node = finishedWork; ; ) {
|
|
@@ -6578,13 +6615,13 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
6578
6615
|
}
|
|
6579
6616
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6580
6617
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6581
|
-
suspendedLanes &= ~
|
|
6618
|
+
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
6582
6619
|
root.suspendedLanes |= suspendedLanes;
|
|
6583
6620
|
root.pingedLanes &= ~suspendedLanes;
|
|
6584
6621
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
6585
|
-
var index$
|
|
6586
|
-
lane = 1 << index$
|
|
6587
|
-
root[index$
|
|
6622
|
+
var index$7 = 31 - clz32(suspendedLanes),
|
|
6623
|
+
lane = 1 << index$7;
|
|
6624
|
+
root[index$7] = -1;
|
|
6588
6625
|
suspendedLanes &= ~lane;
|
|
6589
6626
|
}
|
|
6590
6627
|
}
|
|
@@ -6596,13 +6633,10 @@ function performSyncWorkOnRoot(root) {
|
|
|
6596
6633
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6597
6634
|
var exitStatus = renderRootSync(root, lanes);
|
|
6598
6635
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6599
|
-
var prevExecutionContext = executionContext;
|
|
6600
|
-
executionContext |= 8;
|
|
6601
|
-
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
|
|
6602
6636
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6603
6637
|
0 !== errorRetryLanes &&
|
|
6604
|
-
((lanes = errorRetryLanes),
|
|
6605
|
-
|
|
6638
|
+
((lanes = errorRetryLanes),
|
|
6639
|
+
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
|
|
6606
6640
|
}
|
|
6607
6641
|
if (1 === exitStatus)
|
|
6608
6642
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6629,6 +6663,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6629
6663
|
if (null !== workInProgress)
|
|
6630
6664
|
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
|
|
6631
6665
|
var interruptedWork = timeoutHandle;
|
|
6666
|
+
popTreeContext(interruptedWork);
|
|
6632
6667
|
switch (interruptedWork.tag) {
|
|
6633
6668
|
case 1:
|
|
6634
6669
|
interruptedWork = interruptedWork.type.childContextTypes;
|
|
@@ -6668,7 +6703,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6668
6703
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
6669
6704
|
workInProgressRootExitStatus = 0;
|
|
6670
6705
|
workInProgressRootFatalError = null;
|
|
6671
|
-
workInProgressRootPingedLanes =
|
|
6706
|
+
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6672
6707
|
if (null !== interleavedQueues) {
|
|
6673
6708
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
6674
6709
|
if (
|
|
@@ -6747,83 +6782,73 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6747
6782
|
}
|
|
6748
6783
|
b: {
|
|
6749
6784
|
sourceFiber$jscomp$0 = returnFiber;
|
|
6750
|
-
var sourceFiber$jscomp$1 = sourceFiber,
|
|
6751
|
-
rootRenderLanes = thrownValue,
|
|
6752
|
-
hasInvisibleParentBoundary =
|
|
6753
|
-
0 !== (suspenseStackCursor.current & 1),
|
|
6754
|
-
node = sourceFiber$jscomp$0;
|
|
6755
6785
|
do {
|
|
6756
6786
|
var JSCompiler_temp;
|
|
6757
|
-
if ((JSCompiler_temp = 13 ===
|
|
6758
|
-
var nextState =
|
|
6787
|
+
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
|
|
6788
|
+
var nextState = sourceFiber$jscomp$0.memoizedState;
|
|
6759
6789
|
JSCompiler_temp =
|
|
6760
6790
|
null !== nextState
|
|
6761
6791
|
? null !== nextState.dehydrated
|
|
6762
6792
|
? !0
|
|
6763
6793
|
: !1
|
|
6764
|
-
: !0 !== node.memoizedProps.unstable_avoidThisFallback
|
|
6765
|
-
? !0
|
|
6766
|
-
: hasInvisibleParentBoundary
|
|
6767
|
-
? !1
|
|
6768
6794
|
: !0;
|
|
6769
6795
|
}
|
|
6770
6796
|
if (JSCompiler_temp) {
|
|
6771
|
-
|
|
6772
|
-
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
|
|
6773
|
-
else {
|
|
6774
|
-
node.flags |= 128;
|
|
6775
|
-
sourceFiber$jscomp$1.flags |= 131072;
|
|
6776
|
-
sourceFiber$jscomp$1.flags &= -52805;
|
|
6777
|
-
if (
|
|
6778
|
-
enablePersistentOffscreenHostContainer &&
|
|
6779
|
-
null === node.alternate
|
|
6780
|
-
) {
|
|
6781
|
-
var offscreenContainer = node.child.child;
|
|
6782
|
-
if (null !== offscreenContainer) {
|
|
6783
|
-
var containerProps = getOffscreenContainerProps(
|
|
6784
|
-
"hidden",
|
|
6785
|
-
offscreenContainer.memoizedProps.children
|
|
6786
|
-
);
|
|
6787
|
-
offscreenContainer.pendingProps = containerProps;
|
|
6788
|
-
offscreenContainer.memoizedProps = containerProps;
|
|
6789
|
-
}
|
|
6790
|
-
}
|
|
6791
|
-
if (1 === sourceFiber$jscomp$1.tag)
|
|
6792
|
-
if (null === sourceFiber$jscomp$1.alternate)
|
|
6793
|
-
sourceFiber$jscomp$1.tag = 17;
|
|
6794
|
-
else {
|
|
6795
|
-
var update = createUpdate(-1, 1);
|
|
6796
|
-
update.tag = 2;
|
|
6797
|
-
enqueueUpdate(sourceFiber$jscomp$1, update);
|
|
6798
|
-
}
|
|
6799
|
-
sourceFiber$jscomp$1.lanes |= 1;
|
|
6800
|
-
}
|
|
6801
|
-
var suspenseBoundary = node;
|
|
6802
|
-
break b;
|
|
6803
|
-
}
|
|
6804
|
-
node.flags |= 65536;
|
|
6805
|
-
node.lanes = rootRenderLanes;
|
|
6806
|
-
suspenseBoundary = node;
|
|
6797
|
+
var suspenseBoundary = sourceFiber$jscomp$0;
|
|
6807
6798
|
break b;
|
|
6808
6799
|
}
|
|
6809
|
-
|
|
6810
|
-
} while (null !==
|
|
6800
|
+
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
|
|
6801
|
+
} while (null !== sourceFiber$jscomp$0);
|
|
6811
6802
|
suspenseBoundary = null;
|
|
6812
6803
|
}
|
|
6813
6804
|
if (null !== suspenseBoundary) {
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6805
|
+
suspenseBoundary.flags &= -257;
|
|
6806
|
+
value = suspenseBoundary;
|
|
6807
|
+
sourceFiber$jscomp$0 = thrownValue;
|
|
6808
|
+
if (0 === (value.mode & 1))
|
|
6809
|
+
if (value === returnFiber) value.flags |= 65536;
|
|
6810
|
+
else {
|
|
6811
|
+
value.flags |= 128;
|
|
6812
|
+
sourceFiber.flags |= 131072;
|
|
6813
|
+
sourceFiber.flags &= -52805;
|
|
6814
|
+
if (
|
|
6815
|
+
enablePersistentOffscreenHostContainer &&
|
|
6816
|
+
null === value.alternate
|
|
6817
|
+
) {
|
|
6818
|
+
var offscreenContainer = value.child.child;
|
|
6819
|
+
if (null !== offscreenContainer) {
|
|
6820
|
+
var containerProps = getOffscreenContainerProps(
|
|
6821
|
+
"hidden",
|
|
6822
|
+
offscreenContainer.memoizedProps.children
|
|
6823
|
+
);
|
|
6824
|
+
offscreenContainer.pendingProps = containerProps;
|
|
6825
|
+
offscreenContainer.memoizedProps = containerProps;
|
|
6826
|
+
}
|
|
6827
|
+
}
|
|
6828
|
+
if (1 === sourceFiber.tag)
|
|
6829
|
+
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6830
|
+
else {
|
|
6831
|
+
var update = createUpdate(-1, 1);
|
|
6832
|
+
update.tag = 2;
|
|
6833
|
+
enqueueUpdate(sourceFiber, update);
|
|
6834
|
+
}
|
|
6835
|
+
sourceFiber.lanes |= 1;
|
|
6836
|
+
}
|
|
6837
|
+
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
|
|
6838
|
+
sourceFiber = void 0;
|
|
6839
|
+
value = suspenseBoundary;
|
|
6840
|
+
if (value.mode & 1) {
|
|
6817
6841
|
var pingCache = root.pingCache;
|
|
6818
6842
|
null === pingCache
|
|
6819
6843
|
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
|
|
6820
|
-
(
|
|
6821
|
-
pingCache.set(wakeable,
|
|
6822
|
-
: ((
|
|
6823
|
-
void 0 ===
|
|
6824
|
-
((
|
|
6825
|
-
|
|
6826
|
-
|
|
6844
|
+
(sourceFiber = new Set()),
|
|
6845
|
+
pingCache.set(wakeable, sourceFiber))
|
|
6846
|
+
: ((sourceFiber = pingCache.get(wakeable)),
|
|
6847
|
+
void 0 === sourceFiber &&
|
|
6848
|
+
((sourceFiber = new Set()),
|
|
6849
|
+
pingCache.set(wakeable, sourceFiber)));
|
|
6850
|
+
if (!sourceFiber.has(thrownValue)) {
|
|
6851
|
+
sourceFiber.add(thrownValue);
|
|
6827
6852
|
var ping = pingSuspendedRoot.bind(
|
|
6828
6853
|
null,
|
|
6829
6854
|
root,
|
|
@@ -6833,11 +6858,11 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6833
6858
|
wakeable.then(ping, ping);
|
|
6834
6859
|
}
|
|
6835
6860
|
}
|
|
6836
|
-
var wakeables =
|
|
6861
|
+
var wakeables = value.updateQueue;
|
|
6837
6862
|
if (null === wakeables) {
|
|
6838
6863
|
var updateQueue = new Set();
|
|
6839
6864
|
updateQueue.add(wakeable);
|
|
6840
|
-
|
|
6865
|
+
value.updateQueue = updateQueue;
|
|
6841
6866
|
} else wakeables.add(wakeable);
|
|
6842
6867
|
break a;
|
|
6843
6868
|
} else
|
|
@@ -6879,12 +6904,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6879
6904
|
root.flags |= 65536;
|
|
6880
6905
|
thrownValue &= -thrownValue;
|
|
6881
6906
|
root.lanes |= thrownValue;
|
|
6882
|
-
var update$
|
|
6907
|
+
var update$32 = createClassErrorUpdate(
|
|
6883
6908
|
root,
|
|
6884
6909
|
wakeable,
|
|
6885
6910
|
thrownValue
|
|
6886
6911
|
);
|
|
6887
|
-
enqueueCapturedUpdate(root, update$
|
|
6912
|
+
enqueueCapturedUpdate(root, update$32);
|
|
6888
6913
|
break a;
|
|
6889
6914
|
}
|
|
6890
6915
|
}
|
|
@@ -7784,7 +7809,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7784
7809
|
(workInProgress.flags = 0),
|
|
7785
7810
|
(workInProgress.subtreeFlags = 0),
|
|
7786
7811
|
(workInProgress.deletions = null));
|
|
7787
|
-
workInProgress.flags = current.flags &
|
|
7812
|
+
workInProgress.flags = current.flags & 14680064;
|
|
7788
7813
|
workInProgress.childLanes = current.childLanes;
|
|
7789
7814
|
workInProgress.lanes = current.lanes;
|
|
7790
7815
|
workInProgress.child = current.child;
|
|
@@ -7924,7 +7949,7 @@ function createFiberFromPortal(portal, mode, lanes) {
|
|
|
7924
7949
|
};
|
|
7925
7950
|
return mode;
|
|
7926
7951
|
}
|
|
7927
|
-
function FiberRootNode(containerInfo, tag, hydrate) {
|
|
7952
|
+
function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
|
|
7928
7953
|
this.tag = tag;
|
|
7929
7954
|
this.containerInfo = containerInfo;
|
|
7930
7955
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
@@ -7937,6 +7962,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
7937
7962
|
this.expirationTimes = createLaneMap(-1);
|
|
7938
7963
|
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
7939
7964
|
this.entanglements = createLaneMap(0);
|
|
7965
|
+
this.identifierPrefix = identifierPrefix;
|
|
7940
7966
|
}
|
|
7941
7967
|
function createPortal(children, containerInfo, implementation) {
|
|
7942
7968
|
var key =
|
|
@@ -8140,10 +8166,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8140
8166
|
}
|
|
8141
8167
|
};
|
|
8142
8168
|
var roots = new Map(),
|
|
8143
|
-
devToolsConfig$jscomp$
|
|
8169
|
+
devToolsConfig$jscomp$inline_926 = {
|
|
8144
8170
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
8145
8171
|
bundleType: 0,
|
|
8146
|
-
version: "18.0.0-
|
|
8172
|
+
version: "18.0.0-rc.0-51947a14b-20220113",
|
|
8147
8173
|
rendererPackageName: "react-native-renderer",
|
|
8148
8174
|
rendererConfig: {
|
|
8149
8175
|
getInspectorDataForViewTag: function() {
|
|
@@ -8158,11 +8184,11 @@ var roots = new Map(),
|
|
|
8158
8184
|
}.bind(null, findNodeHandle)
|
|
8159
8185
|
}
|
|
8160
8186
|
};
|
|
8161
|
-
var internals$jscomp$
|
|
8162
|
-
bundleType: devToolsConfig$jscomp$
|
|
8163
|
-
version: devToolsConfig$jscomp$
|
|
8164
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8165
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8187
|
+
var internals$jscomp$inline_1179 = {
|
|
8188
|
+
bundleType: devToolsConfig$jscomp$inline_926.bundleType,
|
|
8189
|
+
version: devToolsConfig$jscomp$inline_926.version,
|
|
8190
|
+
rendererPackageName: devToolsConfig$jscomp$inline_926.rendererPackageName,
|
|
8191
|
+
rendererConfig: devToolsConfig$jscomp$inline_926.rendererConfig,
|
|
8166
8192
|
overrideHookState: null,
|
|
8167
8193
|
overrideHookStateDeletePath: null,
|
|
8168
8194
|
overrideHookStateRenamePath: null,
|
|
@@ -8178,26 +8204,29 @@ var internals$jscomp$inline_1189 = {
|
|
|
8178
8204
|
return null === fiber ? null : fiber.stateNode;
|
|
8179
8205
|
},
|
|
8180
8206
|
findFiberByHostInstance:
|
|
8181
|
-
devToolsConfig$jscomp$
|
|
8207
|
+
devToolsConfig$jscomp$inline_926.findFiberByHostInstance ||
|
|
8182
8208
|
emptyFindFiberByHostInstance,
|
|
8183
8209
|
findHostInstancesForRefresh: null,
|
|
8184
8210
|
scheduleRefresh: null,
|
|
8185
8211
|
scheduleRoot: null,
|
|
8186
8212
|
setRefreshHandler: null,
|
|
8187
8213
|
getCurrentFiber: null,
|
|
8188
|
-
reconcilerVersion: "18.0.0-
|
|
8214
|
+
reconcilerVersion: "18.0.0-rc.0-51947a14b-20220113"
|
|
8189
8215
|
};
|
|
8190
8216
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8191
|
-
var hook$jscomp$
|
|
8217
|
+
var hook$jscomp$inline_1180 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8192
8218
|
if (
|
|
8193
|
-
!hook$jscomp$
|
|
8194
|
-
hook$jscomp$
|
|
8219
|
+
!hook$jscomp$inline_1180.isDisabled &&
|
|
8220
|
+
hook$jscomp$inline_1180.supportsFiber
|
|
8195
8221
|
)
|
|
8196
8222
|
try {
|
|
8197
|
-
(rendererID = hook$jscomp$
|
|
8198
|
-
internals$jscomp$
|
|
8223
|
+
(rendererID = hook$jscomp$inline_1180.inject(
|
|
8224
|
+
Object.assign({}, internals$jscomp$inline_1179, {
|
|
8225
|
+
getLaneLabelMap: getLaneLabelMap,
|
|
8226
|
+
injectProfilingHooks: injectProfilingHooks
|
|
8227
|
+
})
|
|
8199
8228
|
)),
|
|
8200
|
-
(injectedHook = hook$jscomp$
|
|
8229
|
+
(injectedHook = hook$jscomp$inline_1180);
|
|
8201
8230
|
} catch (err) {}
|
|
8202
8231
|
}
|
|
8203
8232
|
exports.createPortal = function(children, containerTag) {
|
|
@@ -8237,7 +8266,7 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
|
|
|
8237
8266
|
var root = roots.get(containerTag);
|
|
8238
8267
|
root ||
|
|
8239
8268
|
((root = concurrentRoot ? 1 : 0),
|
|
8240
|
-
(concurrentRoot = new FiberRootNode(containerTag, root, !1)),
|
|
8269
|
+
(concurrentRoot = new FiberRootNode(containerTag, root, !1, "")),
|
|
8241
8270
|
(root = createFiber(3, null, null, 1 === root ? 1 : 0)),
|
|
8242
8271
|
(concurrentRoot.current = root),
|
|
8243
8272
|
(root.stateNode = concurrentRoot),
|