@office-iss/react-native-win32 0.67.0-preview.2 → 0.68.0-preview.2
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 +9 -2
- package/CHANGELOG.json +387 -17
- package/CHANGELOG.md +148 -12
- 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 +9 -8
- 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 +384 -0
- 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 +60 -4
- 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 +553 -0
- 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 +3 -3
- 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 +60 -0
- package/Libraries/Pressability/Pressability.js +3 -3
- package/Libraries/Pressability/Pressability.win32.js +962 -0
- 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 +191 -0
- 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 +10 -78
- package/jest/renderer.js +1 -1
- package/jest/setup.js +5 -4
- package/overrides.json +98 -63
- package/package.json +24 -23
- 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<<d0187f2344bce0afc1b8e7f4e743a98b>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -926,7 +926,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
926
926
|
"ReactNativeBridgeEventPlugin"
|
|
927
927
|
]);
|
|
928
928
|
recomputePluginOrdering();
|
|
929
|
-
var injectedNamesToPlugins$jscomp$
|
|
929
|
+
var injectedNamesToPlugins$jscomp$inline_223 = {
|
|
930
930
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
931
931
|
ReactNativeBridgeEventPlugin: {
|
|
932
932
|
eventTypes: {},
|
|
@@ -961,33 +961,33 @@ var injectedNamesToPlugins$jscomp$inline_222 = {
|
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
},
|
|
964
|
-
isOrderingDirty$jscomp$
|
|
965
|
-
pluginName$jscomp$
|
|
966
|
-
for (pluginName$jscomp$
|
|
964
|
+
isOrderingDirty$jscomp$inline_224 = !1,
|
|
965
|
+
pluginName$jscomp$inline_225;
|
|
966
|
+
for (pluginName$jscomp$inline_225 in injectedNamesToPlugins$jscomp$inline_223)
|
|
967
967
|
if (
|
|
968
|
-
injectedNamesToPlugins$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
968
|
+
injectedNamesToPlugins$jscomp$inline_223.hasOwnProperty(
|
|
969
|
+
pluginName$jscomp$inline_225
|
|
970
970
|
)
|
|
971
971
|
) {
|
|
972
|
-
var pluginModule$jscomp$
|
|
973
|
-
injectedNamesToPlugins$jscomp$
|
|
972
|
+
var pluginModule$jscomp$inline_226 =
|
|
973
|
+
injectedNamesToPlugins$jscomp$inline_223[pluginName$jscomp$inline_225];
|
|
974
974
|
if (
|
|
975
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
976
|
-
namesToPlugins[pluginName$jscomp$
|
|
977
|
-
pluginModule$jscomp$
|
|
975
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_225) ||
|
|
976
|
+
namesToPlugins[pluginName$jscomp$inline_225] !==
|
|
977
|
+
pluginModule$jscomp$inline_226
|
|
978
978
|
) {
|
|
979
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
979
|
+
if (namesToPlugins[pluginName$jscomp$inline_225])
|
|
980
980
|
throw Error(
|
|
981
981
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
982
|
-
(pluginName$jscomp$
|
|
982
|
+
(pluginName$jscomp$inline_225 + "`.")
|
|
983
983
|
);
|
|
984
984
|
namesToPlugins[
|
|
985
|
-
pluginName$jscomp$
|
|
986
|
-
] = pluginModule$jscomp$
|
|
987
|
-
isOrderingDirty$jscomp$
|
|
985
|
+
pluginName$jscomp$inline_225
|
|
986
|
+
] = pluginModule$jscomp$inline_226;
|
|
987
|
+
isOrderingDirty$jscomp$inline_224 = !0;
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
isOrderingDirty$jscomp$
|
|
990
|
+
isOrderingDirty$jscomp$inline_224 && recomputePluginOrdering();
|
|
991
991
|
var instanceCache = new Map(),
|
|
992
992
|
instanceProps = new Map();
|
|
993
993
|
function getInstanceFromTag(tag) {
|
|
@@ -1697,6 +1697,19 @@ function onCommitRoot(root) {
|
|
|
1697
1697
|
);
|
|
1698
1698
|
} catch (err) {}
|
|
1699
1699
|
}
|
|
1700
|
+
function injectProfilingHooks() {}
|
|
1701
|
+
function getLaneLabelMap() {
|
|
1702
|
+
for (var map = new Map(), lane = 1, index$4 = 0; 31 > index$4; index$4++)
|
|
1703
|
+
map.set(lane, void 0), (lane *= 2);
|
|
1704
|
+
return map;
|
|
1705
|
+
}
|
|
1706
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1707
|
+
log = Math.log,
|
|
1708
|
+
LN2 = Math.LN2;
|
|
1709
|
+
function clz32Fallback(x) {
|
|
1710
|
+
x >>>= 0;
|
|
1711
|
+
return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;
|
|
1712
|
+
}
|
|
1700
1713
|
var nextTransitionLane = 64,
|
|
1701
1714
|
nextRetryLane = 4194304;
|
|
1702
1715
|
function getHighestPriorityLanes(lanes) {
|
|
@@ -1862,30 +1875,24 @@ function markRootFinished(root, remainingLanes) {
|
|
|
1862
1875
|
remainingLanes = root.entanglements;
|
|
1863
1876
|
var eventTimes = root.eventTimes;
|
|
1864
1877
|
for (root = root.expirationTimes; 0 < noLongerPendingLanes; ) {
|
|
1865
|
-
var index$
|
|
1866
|
-
lane = 1 << index$
|
|
1867
|
-
remainingLanes[index$
|
|
1868
|
-
eventTimes[index$
|
|
1869
|
-
root[index$
|
|
1878
|
+
var index$9 = 31 - clz32(noLongerPendingLanes),
|
|
1879
|
+
lane = 1 << index$9;
|
|
1880
|
+
remainingLanes[index$9] = 0;
|
|
1881
|
+
eventTimes[index$9] = -1;
|
|
1882
|
+
root[index$9] = -1;
|
|
1870
1883
|
noLongerPendingLanes &= ~lane;
|
|
1871
1884
|
}
|
|
1872
1885
|
}
|
|
1873
1886
|
function markRootEntangled(root, entangledLanes) {
|
|
1874
1887
|
var rootEntangledLanes = (root.entangledLanes |= entangledLanes);
|
|
1875
1888
|
for (root = root.entanglements; rootEntangledLanes; ) {
|
|
1876
|
-
var index$
|
|
1877
|
-
lane = 1 << index$
|
|
1878
|
-
(lane & entangledLanes) | (root[index$
|
|
1879
|
-
(root[index$
|
|
1889
|
+
var index$10 = 31 - clz32(rootEntangledLanes),
|
|
1890
|
+
lane = 1 << index$10;
|
|
1891
|
+
(lane & entangledLanes) | (root[index$10] & entangledLanes) &&
|
|
1892
|
+
(root[index$10] |= entangledLanes);
|
|
1880
1893
|
rootEntangledLanes &= ~lane;
|
|
1881
1894
|
}
|
|
1882
1895
|
}
|
|
1883
|
-
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
|
|
1884
|
-
log = Math.log,
|
|
1885
|
-
LN2 = Math.LN2;
|
|
1886
|
-
function clz32Fallback(lanes) {
|
|
1887
|
-
return 0 === lanes ? 32 : (31 - ((log(lanes) / LN2) | 0)) | 0;
|
|
1888
|
-
}
|
|
1889
1896
|
var currentUpdatePriority = 0;
|
|
1890
1897
|
function lanesToEventPriority(lanes) {
|
|
1891
1898
|
lanes &= -lanes;
|
|
@@ -2087,12 +2094,14 @@ function shallowEqual(objA, objB) {
|
|
|
2087
2094
|
var keysA = Object.keys(objA),
|
|
2088
2095
|
keysB = Object.keys(objB);
|
|
2089
2096
|
if (keysA.length !== keysB.length) return !1;
|
|
2090
|
-
for (keysB = 0; keysB < keysA.length; keysB++)
|
|
2097
|
+
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
2098
|
+
var currentKey = keysA[keysB];
|
|
2091
2099
|
if (
|
|
2092
|
-
!hasOwnProperty.call(objB,
|
|
2093
|
-
!objectIs(objA[
|
|
2100
|
+
!hasOwnProperty.call(objB, currentKey) ||
|
|
2101
|
+
!objectIs(objA[currentKey], objB[currentKey])
|
|
2094
2102
|
)
|
|
2095
2103
|
return !1;
|
|
2104
|
+
}
|
|
2096
2105
|
return !0;
|
|
2097
2106
|
}
|
|
2098
2107
|
function describeFiber(fiber) {
|
|
@@ -2602,6 +2611,26 @@ function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
|
|
|
2602
2611
|
"function" === typeof instance.componentDidMount &&
|
|
2603
2612
|
(workInProgress.flags |= 4);
|
|
2604
2613
|
}
|
|
2614
|
+
var forkStack = [],
|
|
2615
|
+
forkStackIndex = 0,
|
|
2616
|
+
treeForkProvider = null,
|
|
2617
|
+
idStack = [],
|
|
2618
|
+
idStackIndex = 0,
|
|
2619
|
+
treeContextProvider = null;
|
|
2620
|
+
function popTreeContext(workInProgress) {
|
|
2621
|
+
for (; workInProgress === treeForkProvider; )
|
|
2622
|
+
(treeForkProvider = forkStack[--forkStackIndex]),
|
|
2623
|
+
(forkStack[forkStackIndex] = null),
|
|
2624
|
+
--forkStackIndex,
|
|
2625
|
+
(forkStack[forkStackIndex] = null);
|
|
2626
|
+
for (; workInProgress === treeContextProvider; )
|
|
2627
|
+
(treeContextProvider = idStack[--idStackIndex]),
|
|
2628
|
+
(idStack[idStackIndex] = null),
|
|
2629
|
+
--idStackIndex,
|
|
2630
|
+
(idStack[idStackIndex] = null),
|
|
2631
|
+
--idStackIndex,
|
|
2632
|
+
(idStack[idStackIndex] = null);
|
|
2633
|
+
}
|
|
2605
2634
|
function coerceRef(returnFiber, current, element) {
|
|
2606
2635
|
returnFiber = element.ref;
|
|
2607
2636
|
if (
|
|
@@ -2696,7 +2725,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2696
2725
|
}
|
|
2697
2726
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
2698
2727
|
newFiber.index = newIndex;
|
|
2699
|
-
if (!shouldTrackSideEffects)
|
|
2728
|
+
if (!shouldTrackSideEffects)
|
|
2729
|
+
return (newFiber.flags |= 1048576), lastPlacedIndex;
|
|
2700
2730
|
newIndex = newFiber.alternate;
|
|
2701
2731
|
if (null !== newIndex)
|
|
2702
2732
|
return (
|
|
@@ -2787,7 +2817,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2787
2817
|
return current;
|
|
2788
2818
|
}
|
|
2789
2819
|
function createChild(returnFiber, newChild, lanes) {
|
|
2790
|
-
if (
|
|
2820
|
+
if (
|
|
2821
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
2822
|
+
"number" === typeof newChild
|
|
2823
|
+
)
|
|
2791
2824
|
return (
|
|
2792
2825
|
(newChild = createFiberFromText(
|
|
2793
2826
|
"" + newChild,
|
|
@@ -2841,7 +2874,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2841
2874
|
}
|
|
2842
2875
|
function updateSlot(returnFiber, oldFiber, newChild, lanes) {
|
|
2843
2876
|
var key = null !== oldFiber ? oldFiber.key : null;
|
|
2844
|
-
if (
|
|
2877
|
+
if (
|
|
2878
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
2879
|
+
"number" === typeof newChild
|
|
2880
|
+
)
|
|
2845
2881
|
return null !== key
|
|
2846
2882
|
? null
|
|
2847
2883
|
: updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
|
|
@@ -2871,7 +2907,10 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
2871
2907
|
newChild,
|
|
2872
2908
|
lanes
|
|
2873
2909
|
) {
|
|
2874
|
-
if (
|
|
2910
|
+
if (
|
|
2911
|
+
("string" === typeof newChild && "" !== newChild) ||
|
|
2912
|
+
"number" === typeof newChild
|
|
2913
|
+
)
|
|
2875
2914
|
return (
|
|
2876
2915
|
(existingChildren = existingChildren.get(newIdx) || null),
|
|
2877
2916
|
updateTextNode(returnFiber, existingChildren, "" + newChild, lanes)
|
|
@@ -3197,7 +3236,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3197
3236
|
);
|
|
3198
3237
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
3199
3238
|
}
|
|
3200
|
-
return "string" === typeof newChild
|
|
3239
|
+
return ("string" === typeof newChild && "" !== newChild) ||
|
|
3240
|
+
"number" === typeof newChild
|
|
3201
3241
|
? ((newChild = "" + newChild),
|
|
3202
3242
|
null !== currentFirstChild && 6 === currentFirstChild.tag
|
|
3203
3243
|
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
|
|
@@ -3300,7 +3340,8 @@ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
|
|
|
3300
3340
|
currentHook = null,
|
|
3301
3341
|
workInProgressHook = null,
|
|
3302
3342
|
didScheduleRenderPhaseUpdate = !1,
|
|
3303
|
-
didScheduleRenderPhaseUpdateDuringThisPass = !1
|
|
3343
|
+
didScheduleRenderPhaseUpdateDuringThisPass = !1,
|
|
3344
|
+
globalClientIdCounter = 0;
|
|
3304
3345
|
function throwInvalidHookError() {
|
|
3305
3346
|
throw Error(
|
|
3306
3347
|
"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."
|
|
@@ -3723,7 +3764,7 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3723
3764
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3724
3765
|
}
|
|
3725
3766
|
function mountEffect(create, deps) {
|
|
3726
|
-
return mountEffectImpl(
|
|
3767
|
+
return mountEffectImpl(8390656, 8, create, deps);
|
|
3727
3768
|
}
|
|
3728
3769
|
function updateEffect(create, deps) {
|
|
3729
3770
|
return updateEffectImpl(2048, 8, create, deps);
|
|
@@ -3803,6 +3844,9 @@ function startTransition(setPending, callback) {
|
|
|
3803
3844
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3804
3845
|
}
|
|
3805
3846
|
}
|
|
3847
|
+
function updateId() {
|
|
3848
|
+
return updateWorkInProgressHook().memoizedState;
|
|
3849
|
+
}
|
|
3806
3850
|
function dispatchReducerAction(fiber, queue, action) {
|
|
3807
3851
|
var lane = requestUpdateLane(fiber);
|
|
3808
3852
|
action = {
|
|
@@ -3910,7 +3954,7 @@ var ContextOnlyDispatcher = {
|
|
|
3910
3954
|
useTransition: throwInvalidHookError,
|
|
3911
3955
|
useMutableSource: throwInvalidHookError,
|
|
3912
3956
|
useSyncExternalStore: throwInvalidHookError,
|
|
3913
|
-
|
|
3957
|
+
useId: throwInvalidHookError,
|
|
3914
3958
|
unstable_isNewReconciler: !1
|
|
3915
3959
|
},
|
|
3916
3960
|
HooksDispatcherOnMount = {
|
|
@@ -4008,8 +4052,12 @@ var ContextOnlyDispatcher = {
|
|
|
4008
4052
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
4009
4053
|
},
|
|
4010
4054
|
useSyncExternalStore: mountSyncExternalStore,
|
|
4011
|
-
|
|
4012
|
-
|
|
4055
|
+
useId: function() {
|
|
4056
|
+
var hook = mountWorkInProgressHook(),
|
|
4057
|
+
identifierPrefix = workInProgressRoot.identifierPrefix,
|
|
4058
|
+
globalClientId = globalClientIdCounter++;
|
|
4059
|
+
identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
|
|
4060
|
+
return (hook.memoizedState = identifierPrefix);
|
|
4013
4061
|
},
|
|
4014
4062
|
unstable_isNewReconciler: !1
|
|
4015
4063
|
},
|
|
@@ -4092,9 +4140,7 @@ var ContextOnlyDispatcher = {
|
|
|
4092
4140
|
}
|
|
4093
4141
|
return nextSnapshot;
|
|
4094
4142
|
},
|
|
4095
|
-
|
|
4096
|
-
return updateReducer(basicStateReducer)[0];
|
|
4097
|
-
},
|
|
4143
|
+
useId: updateId,
|
|
4098
4144
|
unstable_isNewReconciler: !1
|
|
4099
4145
|
},
|
|
4100
4146
|
HooksDispatcherOnRerender = {
|
|
@@ -4137,9 +4183,7 @@ var ContextOnlyDispatcher = {
|
|
|
4137
4183
|
},
|
|
4138
4184
|
useMutableSource: updateMutableSource,
|
|
4139
4185
|
useSyncExternalStore: mountSyncExternalStore,
|
|
4140
|
-
|
|
4141
|
-
return rerenderReducer(basicStateReducer)[0];
|
|
4142
|
-
},
|
|
4186
|
+
useId: updateId,
|
|
4143
4187
|
unstable_isNewReconciler: !1
|
|
4144
4188
|
};
|
|
4145
4189
|
function createCapturedValue(value, source) {
|
|
@@ -4254,14 +4298,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4254
4298
|
break;
|
|
4255
4299
|
case "collapsed":
|
|
4256
4300
|
lastTailNode = renderState.tail;
|
|
4257
|
-
for (var lastTailNode$
|
|
4258
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4301
|
+
for (var lastTailNode$36 = null; null !== lastTailNode; )
|
|
4302
|
+
null !== lastTailNode.alternate && (lastTailNode$36 = lastTailNode),
|
|
4259
4303
|
(lastTailNode = lastTailNode.sibling);
|
|
4260
|
-
null === lastTailNode$
|
|
4304
|
+
null === lastTailNode$36
|
|
4261
4305
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4262
4306
|
? (renderState.tail = null)
|
|
4263
4307
|
: (renderState.tail.sibling = null)
|
|
4264
|
-
: (lastTailNode$
|
|
4308
|
+
: (lastTailNode$36.sibling = null);
|
|
4265
4309
|
}
|
|
4266
4310
|
}
|
|
4267
4311
|
function bubbleProperties(completedWork) {
|
|
@@ -4271,25 +4315,26 @@ function bubbleProperties(completedWork) {
|
|
|
4271
4315
|
newChildLanes = 0,
|
|
4272
4316
|
subtreeFlags = 0;
|
|
4273
4317
|
if (didBailout)
|
|
4274
|
-
for (var child$
|
|
4275
|
-
(newChildLanes |= child$
|
|
4276
|
-
(subtreeFlags |= child$
|
|
4277
|
-
(subtreeFlags |= child$
|
|
4278
|
-
(child$
|
|
4279
|
-
(child$
|
|
4318
|
+
for (var child$37 = completedWork.child; null !== child$37; )
|
|
4319
|
+
(newChildLanes |= child$37.lanes | child$37.childLanes),
|
|
4320
|
+
(subtreeFlags |= child$37.subtreeFlags & 14680064),
|
|
4321
|
+
(subtreeFlags |= child$37.flags & 14680064),
|
|
4322
|
+
(child$37.return = completedWork),
|
|
4323
|
+
(child$37 = child$37.sibling);
|
|
4280
4324
|
else
|
|
4281
|
-
for (child$
|
|
4282
|
-
(newChildLanes |= child$
|
|
4283
|
-
(subtreeFlags |= child$
|
|
4284
|
-
(subtreeFlags |= child$
|
|
4285
|
-
(child$
|
|
4286
|
-
(child$
|
|
4325
|
+
for (child$37 = completedWork.child; null !== child$37; )
|
|
4326
|
+
(newChildLanes |= child$37.lanes | child$37.childLanes),
|
|
4327
|
+
(subtreeFlags |= child$37.subtreeFlags),
|
|
4328
|
+
(subtreeFlags |= child$37.flags),
|
|
4329
|
+
(child$37.return = completedWork),
|
|
4330
|
+
(child$37 = child$37.sibling);
|
|
4287
4331
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4288
4332
|
completedWork.childLanes = newChildLanes;
|
|
4289
4333
|
return didBailout;
|
|
4290
4334
|
}
|
|
4291
4335
|
function completeWork(current, workInProgress, renderLanes) {
|
|
4292
4336
|
var newProps = workInProgress.pendingProps;
|
|
4337
|
+
popTreeContext(workInProgress);
|
|
4293
4338
|
switch (workInProgress.tag) {
|
|
4294
4339
|
case 2:
|
|
4295
4340
|
case 16:
|
|
@@ -4418,11 +4463,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4418
4463
|
!renderLanes &&
|
|
4419
4464
|
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4420
4465
|
)
|
|
4421
|
-
if (
|
|
4422
|
-
(null === current &&
|
|
4423
|
-
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
4424
|
-
0 !== (suspenseStackCursor.current & 1)
|
|
4425
|
-
)
|
|
4466
|
+
if (null === current || 0 !== (suspenseStackCursor.current & 1))
|
|
4426
4467
|
0 === workInProgressRootExitStatus &&
|
|
4427
4468
|
(workInProgressRootExitStatus = 3);
|
|
4428
4469
|
else {
|
|
@@ -4434,7 +4475,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4434
4475
|
workInProgressRootExitStatus = 4;
|
|
4435
4476
|
null === workInProgressRoot ||
|
|
4436
4477
|
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4437
|
-
0 === (
|
|
4478
|
+
0 === (workInProgressRootInterleavedUpdatedLanes & 268435455)) ||
|
|
4438
4479
|
markRootSuspended$1(
|
|
4439
4480
|
workInProgressRoot,
|
|
4440
4481
|
workInProgressRootRenderLanes
|
|
@@ -4489,7 +4530,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4489
4530
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4490
4531
|
(renderLanes = newProps),
|
|
4491
4532
|
(type = current),
|
|
4492
|
-
(renderLanes.flags &=
|
|
4533
|
+
(renderLanes.flags &= 14680066),
|
|
4493
4534
|
(updatePayload = renderLanes.alternate),
|
|
4494
4535
|
null === updatePayload
|
|
4495
4536
|
? ((renderLanes.childLanes = 0),
|
|
@@ -5070,7 +5111,7 @@ function pushHostRootContext(workInProgress) {
|
|
|
5070
5111
|
pushTopLevelContextObject(workInProgress, root.context, !1);
|
|
5071
5112
|
pushHostContainer(workInProgress, root.containerInfo);
|
|
5072
5113
|
}
|
|
5073
|
-
var SUSPENDED_MARKER = { dehydrated: null, retryLane: 0 };
|
|
5114
|
+
var SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };
|
|
5074
5115
|
function mountSuspenseOffscreenState(renderLanes) {
|
|
5075
5116
|
return { baseLanes: renderLanes, cachePool: null };
|
|
5076
5117
|
}
|
|
@@ -5084,11 +5125,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
5084
5125
|
null !== current && null === current.memoizedState
|
|
5085
5126
|
? !1
|
|
5086
5127
|
: 0 !== (suspenseContext & 2));
|
|
5087
|
-
JSCompiler_temp
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
!0 === nextProps.unstable_avoidThisFallback ||
|
|
5091
|
-
(suspenseContext |= 1);
|
|
5128
|
+
if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
|
|
5129
|
+
else if (null === current || null !== current.memoizedState)
|
|
5130
|
+
suspenseContext |= 1;
|
|
5092
5131
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
5093
5132
|
if (null === current) {
|
|
5094
5133
|
current = nextProps.children;
|
|
@@ -5263,7 +5302,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5263
5302
|
(primaryChildren.pendingProps = primaryChildProps),
|
|
5264
5303
|
(workInProgress.deletions = null))
|
|
5265
5304
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
5266
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5305
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 14680064));
|
|
5267
5306
|
null !== currentFallbackChildFragment
|
|
5268
5307
|
? (fallbackChildren = createWorkInProgress(
|
|
5269
5308
|
currentFallbackChildFragment,
|
|
@@ -5487,6 +5526,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
5487
5526
|
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5488
5527
|
}
|
|
5489
5528
|
function unwindWork(workInProgress) {
|
|
5529
|
+
popTreeContext(workInProgress);
|
|
5490
5530
|
switch (workInProgress.tag) {
|
|
5491
5531
|
case 1:
|
|
5492
5532
|
isContextProvider(workInProgress.type) && popContext();
|
|
@@ -5544,6 +5584,13 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
5544
5584
|
}
|
|
5545
5585
|
else ref.current = null;
|
|
5546
5586
|
}
|
|
5587
|
+
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
|
|
5588
|
+
try {
|
|
5589
|
+
destroy();
|
|
5590
|
+
} catch (error) {
|
|
5591
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5592
|
+
}
|
|
5593
|
+
}
|
|
5547
5594
|
var shouldFireAfterActiveInstanceBlur = !1;
|
|
5548
5595
|
function commitBeforeMutationEffects(root, firstChild) {
|
|
5549
5596
|
for (nextEffect = firstChild; null !== nextEffect; )
|
|
@@ -5608,7 +5655,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5608
5655
|
function commitHookEffectListUnmount(
|
|
5609
5656
|
flags,
|
|
5610
5657
|
finishedWork,
|
|
5611
|
-
nearestMountedAncestor
|
|
5658
|
+
nearestMountedAncestor
|
|
5612
5659
|
) {
|
|
5613
5660
|
var updateQueue = finishedWork.updateQueue;
|
|
5614
5661
|
updateQueue = null !== updateQueue ? updateQueue.lastEffect : null;
|
|
@@ -5618,35 +5665,28 @@ function commitHookEffectListUnmount(
|
|
|
5618
5665
|
if ((effect.tag & flags) === flags) {
|
|
5619
5666
|
var destroy = effect.destroy;
|
|
5620
5667
|
effect.destroy = void 0;
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
|
|
5624
|
-
try {
|
|
5625
|
-
destroy();
|
|
5626
|
-
} catch (error) {
|
|
5627
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5628
|
-
}
|
|
5629
|
-
}
|
|
5668
|
+
void 0 !== destroy &&
|
|
5669
|
+
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);
|
|
5630
5670
|
}
|
|
5631
5671
|
effect = effect.next;
|
|
5632
5672
|
} while (effect !== updateQueue);
|
|
5633
5673
|
}
|
|
5634
5674
|
}
|
|
5635
|
-
function commitHookEffectListMount(
|
|
5675
|
+
function commitHookEffectListMount(flags, finishedWork) {
|
|
5636
5676
|
finishedWork = finishedWork.updateQueue;
|
|
5637
5677
|
finishedWork = null !== finishedWork ? finishedWork.lastEffect : null;
|
|
5638
5678
|
if (null !== finishedWork) {
|
|
5639
5679
|
var effect = (finishedWork = finishedWork.next);
|
|
5640
5680
|
do {
|
|
5641
|
-
if ((effect.tag &
|
|
5642
|
-
var create$
|
|
5643
|
-
effect.destroy = create$
|
|
5681
|
+
if ((effect.tag & flags) === flags) {
|
|
5682
|
+
var create$81 = effect.create;
|
|
5683
|
+
effect.destroy = create$81();
|
|
5644
5684
|
}
|
|
5645
5685
|
effect = effect.next;
|
|
5646
5686
|
} while (effect !== finishedWork);
|
|
5647
5687
|
}
|
|
5648
5688
|
}
|
|
5649
|
-
function commitUnmount(finishedRoot, current, nearestMountedAncestor
|
|
5689
|
+
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
5650
5690
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
5651
5691
|
try {
|
|
5652
5692
|
injectedHook.onCommitFiberUnmount(rendererID, current);
|
|
@@ -5666,24 +5706,17 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5666
5706
|
var _effect = effect,
|
|
5667
5707
|
destroy = _effect.destroy;
|
|
5668
5708
|
_effect = _effect.tag;
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
|
|
5675
|
-
try {
|
|
5676
|
-
destroy();
|
|
5677
|
-
} catch (error) {
|
|
5678
|
-
captureCommitPhaseError(_effect, nearestMountedAncestor, error);
|
|
5679
|
-
}
|
|
5680
|
-
}
|
|
5709
|
+
void 0 !== destroy &&
|
|
5710
|
+
(0 !== (_effect & 2)
|
|
5711
|
+
? safelyCallDestroy(current, nearestMountedAncestor, destroy)
|
|
5712
|
+
: 0 !== (_effect & 4) &&
|
|
5713
|
+
safelyCallDestroy(current, nearestMountedAncestor, destroy));
|
|
5681
5714
|
effect = effect.next;
|
|
5682
5715
|
} while (effect !== finishedRoot);
|
|
5683
5716
|
}
|
|
5684
5717
|
break;
|
|
5685
5718
|
case 1:
|
|
5686
|
-
safelyDetachRef(current, nearestMountedAncestor
|
|
5719
|
+
safelyDetachRef(current, nearestMountedAncestor);
|
|
5687
5720
|
finishedRoot = current.stateNode;
|
|
5688
5721
|
if ("function" === typeof finishedRoot.componentWillUnmount)
|
|
5689
5722
|
try {
|
|
@@ -5691,22 +5724,14 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5691
5724
|
(finishedRoot.state = current.memoizedState),
|
|
5692
5725
|
finishedRoot.componentWillUnmount();
|
|
5693
5726
|
} catch (error) {
|
|
5694
|
-
captureCommitPhaseError(
|
|
5695
|
-
current,
|
|
5696
|
-
nearestMountedAncestor$jscomp$0,
|
|
5697
|
-
error
|
|
5698
|
-
);
|
|
5727
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5699
5728
|
}
|
|
5700
5729
|
break;
|
|
5701
5730
|
case 5:
|
|
5702
|
-
safelyDetachRef(current, nearestMountedAncestor
|
|
5731
|
+
safelyDetachRef(current, nearestMountedAncestor);
|
|
5703
5732
|
break;
|
|
5704
5733
|
case 4:
|
|
5705
|
-
unmountHostComponents(
|
|
5706
|
-
finishedRoot,
|
|
5707
|
-
current,
|
|
5708
|
-
nearestMountedAncestor$jscomp$0
|
|
5709
|
-
);
|
|
5734
|
+
unmountHostComponents(finishedRoot, current, nearestMountedAncestor);
|
|
5710
5735
|
}
|
|
5711
5736
|
}
|
|
5712
5737
|
function detachFiberAfterEffects(fiber) {
|
|
@@ -6105,8 +6130,8 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6105
6130
|
switch (firstChild.tag) {
|
|
6106
6131
|
case 13:
|
|
6107
6132
|
if (null !== firstChild.memoizedState) {
|
|
6108
|
-
var current$
|
|
6109
|
-
if (null === current$
|
|
6133
|
+
var current$86 = firstChild.alternate;
|
|
6134
|
+
if (null === current$86 || null === current$86.memoizedState)
|
|
6110
6135
|
globalMostRecentFallbackTime = now();
|
|
6111
6136
|
}
|
|
6112
6137
|
break;
|
|
@@ -6257,8 +6282,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6257
6282
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6258
6283
|
break;
|
|
6259
6284
|
case 3:
|
|
6260
|
-
var updateQueue$
|
|
6261
|
-
if (null !== updateQueue$
|
|
6285
|
+
var updateQueue$82 = firstChild.updateQueue;
|
|
6286
|
+
if (null !== updateQueue$82) {
|
|
6262
6287
|
current = null;
|
|
6263
6288
|
if (null !== firstChild.child)
|
|
6264
6289
|
switch (firstChild.child.tag) {
|
|
@@ -6268,7 +6293,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6268
6293
|
case 1:
|
|
6269
6294
|
current = firstChild.child.stateNode;
|
|
6270
6295
|
}
|
|
6271
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6296
|
+
commitUpdateQueue(firstChild, updateQueue$82, current);
|
|
6272
6297
|
}
|
|
6273
6298
|
break;
|
|
6274
6299
|
case 5:
|
|
@@ -6340,7 +6365,8 @@ var ceil = Math.ceil,
|
|
|
6340
6365
|
workInProgressRootExitStatus = 0,
|
|
6341
6366
|
workInProgressRootFatalError = null,
|
|
6342
6367
|
workInProgressRootSkippedLanes = 0,
|
|
6343
|
-
|
|
6368
|
+
workInProgressRootInterleavedUpdatedLanes = 0,
|
|
6369
|
+
workInProgressRootRenderPhaseUpdatedLanes = 0,
|
|
6344
6370
|
workInProgressRootPingedLanes = 0,
|
|
6345
6371
|
globalMostRecentFallbackTime = 0,
|
|
6346
6372
|
workInProgressRootRenderTargetTime = Infinity,
|
|
@@ -6387,16 +6413,19 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6387
6413
|
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6388
6414
|
if (null === root) return null;
|
|
6389
6415
|
markRootUpdated(root, lane, eventTime);
|
|
6390
|
-
root === workInProgressRoot
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6416
|
+
0 !== (executionContext & 2) && root === workInProgressRoot
|
|
6417
|
+
? (workInProgressRootRenderPhaseUpdatedLanes |= lane)
|
|
6418
|
+
: (root === workInProgressRoot &&
|
|
6419
|
+
(0 === (executionContext & 2) &&
|
|
6420
|
+
(workInProgressRootInterleavedUpdatedLanes |= lane),
|
|
6421
|
+
4 === workInProgressRootExitStatus &&
|
|
6422
|
+
markRootSuspended$1(root, workInProgressRootRenderLanes)),
|
|
6423
|
+
ensureRootIsScheduled(root, eventTime),
|
|
6424
|
+
1 === lane &&
|
|
6425
|
+
0 === executionContext &&
|
|
6426
|
+
0 === (fiber.mode & 1) &&
|
|
6427
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6428
|
+
includesLegacySyncCallbacks && flushSyncCallbacks()));
|
|
6400
6429
|
return root;
|
|
6401
6430
|
}
|
|
6402
6431
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6422,12 +6451,12 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6422
6451
|
0 < lanes;
|
|
6423
6452
|
|
|
6424
6453
|
) {
|
|
6425
|
-
var index$
|
|
6426
|
-
lane = 1 << index$
|
|
6427
|
-
expirationTime = expirationTimes[index$
|
|
6454
|
+
var index$7 = 31 - clz32(lanes),
|
|
6455
|
+
lane = 1 << index$7,
|
|
6456
|
+
expirationTime = expirationTimes[index$7];
|
|
6428
6457
|
if (-1 === expirationTime) {
|
|
6429
6458
|
if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
|
|
6430
|
-
expirationTimes[index$
|
|
6459
|
+
expirationTimes[index$7] = computeExpirationTime(lane, currentTime);
|
|
6431
6460
|
} else expirationTime <= currentTime && (root.expiredLanes |= lane);
|
|
6432
6461
|
lanes &= ~lane;
|
|
6433
6462
|
}
|
|
@@ -6596,10 +6625,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6596
6625
|
if ((lanes & 4194240) === lanes) break;
|
|
6597
6626
|
didTimeout = root.eventTimes;
|
|
6598
6627
|
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6599
|
-
var index$
|
|
6600
|
-
prevDispatcher = 1 << index$
|
|
6601
|
-
index$
|
|
6602
|
-
index$
|
|
6628
|
+
var index$6 = 31 - clz32(lanes);
|
|
6629
|
+
prevDispatcher = 1 << index$6;
|
|
6630
|
+
index$6 = didTimeout[index$6];
|
|
6631
|
+
index$6 > prevExecutionContext && (prevExecutionContext = index$6);
|
|
6603
6632
|
lanes &= ~prevDispatcher;
|
|
6604
6633
|
}
|
|
6605
6634
|
lanes = prevExecutionContext;
|
|
@@ -6643,9 +6672,15 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
6643
6672
|
var prevExecutionContext = executionContext;
|
|
6644
6673
|
executionContext |= 8;
|
|
6645
6674
|
root.isDehydrated && (root.isDehydrated = !1);
|
|
6646
|
-
|
|
6675
|
+
for (
|
|
6676
|
+
var exitStatus, i = 0;
|
|
6677
|
+
50 > i &&
|
|
6678
|
+
((exitStatus = renderRootSync(root, errorRetryLanes)),
|
|
6679
|
+
2 === exitStatus && 0 !== workInProgressRootRenderPhaseUpdatedLanes);
|
|
6680
|
+
i++
|
|
6681
|
+
);
|
|
6647
6682
|
executionContext = prevExecutionContext;
|
|
6648
|
-
return
|
|
6683
|
+
return exitStatus;
|
|
6649
6684
|
}
|
|
6650
6685
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6651
6686
|
for (var node = finishedWork; ; ) {
|
|
@@ -6683,13 +6718,13 @@ function isRenderConsistentWithExternalStores(finishedWork) {
|
|
|
6683
6718
|
}
|
|
6684
6719
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6685
6720
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6686
|
-
suspendedLanes &= ~
|
|
6721
|
+
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
6687
6722
|
root.suspendedLanes |= suspendedLanes;
|
|
6688
6723
|
root.pingedLanes &= ~suspendedLanes;
|
|
6689
6724
|
for (root = root.expirationTimes; 0 < suspendedLanes; ) {
|
|
6690
|
-
var index$
|
|
6691
|
-
lane = 1 << index$
|
|
6692
|
-
root[index$
|
|
6725
|
+
var index$8 = 31 - clz32(suspendedLanes),
|
|
6726
|
+
lane = 1 << index$8;
|
|
6727
|
+
root[index$8] = -1;
|
|
6693
6728
|
suspendedLanes &= ~lane;
|
|
6694
6729
|
}
|
|
6695
6730
|
}
|
|
@@ -6701,13 +6736,10 @@ function performSyncWorkOnRoot(root) {
|
|
|
6701
6736
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6702
6737
|
var exitStatus = renderRootSync(root, lanes);
|
|
6703
6738
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6704
|
-
var prevExecutionContext = executionContext;
|
|
6705
|
-
executionContext |= 8;
|
|
6706
|
-
root.isDehydrated && (root.isDehydrated = !1);
|
|
6707
6739
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6708
6740
|
0 !== errorRetryLanes &&
|
|
6709
|
-
((lanes = errorRetryLanes),
|
|
6710
|
-
|
|
6741
|
+
((lanes = errorRetryLanes),
|
|
6742
|
+
(exitStatus = recoverFromConcurrentError(root, errorRetryLanes)));
|
|
6711
6743
|
}
|
|
6712
6744
|
if (1 === exitStatus)
|
|
6713
6745
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6734,6 +6766,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6734
6766
|
if (null !== workInProgress)
|
|
6735
6767
|
for (timeoutHandle = workInProgress.return; null !== timeoutHandle; ) {
|
|
6736
6768
|
var interruptedWork = timeoutHandle;
|
|
6769
|
+
popTreeContext(interruptedWork);
|
|
6737
6770
|
switch (interruptedWork.tag) {
|
|
6738
6771
|
case 1:
|
|
6739
6772
|
interruptedWork = interruptedWork.type.childContextTypes;
|
|
@@ -6773,7 +6806,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
6773
6806
|
workInProgressRootRenderLanes = subtreeRenderLanes = lanes;
|
|
6774
6807
|
workInProgressRootExitStatus = 0;
|
|
6775
6808
|
workInProgressRootFatalError = null;
|
|
6776
|
-
workInProgressRootPingedLanes =
|
|
6809
|
+
workInProgressRootPingedLanes = workInProgressRootRenderPhaseUpdatedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0;
|
|
6777
6810
|
if (null !== interleavedQueues) {
|
|
6778
6811
|
for (root = 0; root < interleavedQueues.length; root++)
|
|
6779
6812
|
if (
|
|
@@ -6852,69 +6885,59 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6852
6885
|
}
|
|
6853
6886
|
b: {
|
|
6854
6887
|
sourceFiber$jscomp$0 = returnFiber;
|
|
6855
|
-
var sourceFiber$jscomp$1 = sourceFiber,
|
|
6856
|
-
rootRenderLanes = thrownValue,
|
|
6857
|
-
hasInvisibleParentBoundary =
|
|
6858
|
-
0 !== (suspenseStackCursor.current & 1),
|
|
6859
|
-
node = sourceFiber$jscomp$0;
|
|
6860
6888
|
do {
|
|
6861
6889
|
var JSCompiler_temp;
|
|
6862
|
-
if ((JSCompiler_temp = 13 ===
|
|
6863
|
-
var nextState =
|
|
6890
|
+
if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
|
|
6891
|
+
var nextState = sourceFiber$jscomp$0.memoizedState;
|
|
6864
6892
|
JSCompiler_temp =
|
|
6865
6893
|
null !== nextState
|
|
6866
6894
|
? null !== nextState.dehydrated
|
|
6867
6895
|
? !0
|
|
6868
6896
|
: !1
|
|
6869
|
-
: !0 !== node.memoizedProps.unstable_avoidThisFallback
|
|
6870
|
-
? !0
|
|
6871
|
-
: hasInvisibleParentBoundary
|
|
6872
|
-
? !1
|
|
6873
6897
|
: !0;
|
|
6874
6898
|
}
|
|
6875
6899
|
if (JSCompiler_temp) {
|
|
6876
|
-
|
|
6877
|
-
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
|
|
6878
|
-
else {
|
|
6879
|
-
node.flags |= 128;
|
|
6880
|
-
sourceFiber$jscomp$1.flags |= 131072;
|
|
6881
|
-
sourceFiber$jscomp$1.flags &= -52805;
|
|
6882
|
-
if (1 === sourceFiber$jscomp$1.tag)
|
|
6883
|
-
if (null === sourceFiber$jscomp$1.alternate)
|
|
6884
|
-
sourceFiber$jscomp$1.tag = 17;
|
|
6885
|
-
else {
|
|
6886
|
-
var update = createUpdate(-1, 1);
|
|
6887
|
-
update.tag = 2;
|
|
6888
|
-
enqueueUpdate(sourceFiber$jscomp$1, update);
|
|
6889
|
-
}
|
|
6890
|
-
sourceFiber$jscomp$1.lanes |= 1;
|
|
6891
|
-
}
|
|
6892
|
-
var suspenseBoundary = node;
|
|
6893
|
-
break b;
|
|
6894
|
-
}
|
|
6895
|
-
node.flags |= 65536;
|
|
6896
|
-
node.lanes = rootRenderLanes;
|
|
6897
|
-
suspenseBoundary = node;
|
|
6900
|
+
var suspenseBoundary = sourceFiber$jscomp$0;
|
|
6898
6901
|
break b;
|
|
6899
6902
|
}
|
|
6900
|
-
|
|
6901
|
-
} while (null !==
|
|
6903
|
+
sourceFiber$jscomp$0 = sourceFiber$jscomp$0.return;
|
|
6904
|
+
} while (null !== sourceFiber$jscomp$0);
|
|
6902
6905
|
suspenseBoundary = null;
|
|
6903
6906
|
}
|
|
6904
6907
|
if (null !== suspenseBoundary) {
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
+
suspenseBoundary.flags &= -257;
|
|
6909
|
+
value = suspenseBoundary;
|
|
6910
|
+
sourceFiber$jscomp$0 = thrownValue;
|
|
6911
|
+
if (0 === (value.mode & 1))
|
|
6912
|
+
if (value === returnFiber) value.flags |= 65536;
|
|
6913
|
+
else {
|
|
6914
|
+
value.flags |= 128;
|
|
6915
|
+
sourceFiber.flags |= 131072;
|
|
6916
|
+
sourceFiber.flags &= -52805;
|
|
6917
|
+
if (1 === sourceFiber.tag)
|
|
6918
|
+
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6919
|
+
else {
|
|
6920
|
+
var update = createUpdate(-1, 1);
|
|
6921
|
+
update.tag = 2;
|
|
6922
|
+
enqueueUpdate(sourceFiber, update);
|
|
6923
|
+
}
|
|
6924
|
+
sourceFiber.lanes |= 1;
|
|
6925
|
+
}
|
|
6926
|
+
else (value.flags |= 65536), (value.lanes = sourceFiber$jscomp$0);
|
|
6927
|
+
sourceFiber = void 0;
|
|
6928
|
+
value = suspenseBoundary;
|
|
6929
|
+
if (value.mode & 1) {
|
|
6908
6930
|
var pingCache = root.pingCache;
|
|
6909
6931
|
null === pingCache
|
|
6910
6932
|
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
|
|
6911
|
-
(
|
|
6912
|
-
pingCache.set(wakeable,
|
|
6913
|
-
: ((
|
|
6914
|
-
void 0 ===
|
|
6915
|
-
((
|
|
6916
|
-
|
|
6917
|
-
|
|
6933
|
+
(sourceFiber = new Set()),
|
|
6934
|
+
pingCache.set(wakeable, sourceFiber))
|
|
6935
|
+
: ((sourceFiber = pingCache.get(wakeable)),
|
|
6936
|
+
void 0 === sourceFiber &&
|
|
6937
|
+
((sourceFiber = new Set()),
|
|
6938
|
+
pingCache.set(wakeable, sourceFiber)));
|
|
6939
|
+
if (!sourceFiber.has(thrownValue)) {
|
|
6940
|
+
sourceFiber.add(thrownValue);
|
|
6918
6941
|
var ping = pingSuspendedRoot.bind(
|
|
6919
6942
|
null,
|
|
6920
6943
|
root,
|
|
@@ -6924,11 +6947,11 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6924
6947
|
wakeable.then(ping, ping);
|
|
6925
6948
|
}
|
|
6926
6949
|
}
|
|
6927
|
-
var wakeables =
|
|
6950
|
+
var wakeables = value.updateQueue;
|
|
6928
6951
|
if (null === wakeables) {
|
|
6929
6952
|
var updateQueue = new Set();
|
|
6930
6953
|
updateQueue.add(wakeable);
|
|
6931
|
-
|
|
6954
|
+
value.updateQueue = updateQueue;
|
|
6932
6955
|
} else wakeables.add(wakeable);
|
|
6933
6956
|
break a;
|
|
6934
6957
|
} else
|
|
@@ -6970,12 +6993,12 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6970
6993
|
root.flags |= 65536;
|
|
6971
6994
|
thrownValue &= -thrownValue;
|
|
6972
6995
|
root.lanes |= thrownValue;
|
|
6973
|
-
var update$
|
|
6996
|
+
var update$34 = createClassErrorUpdate(
|
|
6974
6997
|
root,
|
|
6975
6998
|
wakeable,
|
|
6976
6999
|
thrownValue
|
|
6977
7000
|
);
|
|
6978
|
-
enqueueCapturedUpdate(root, update$
|
|
7001
|
+
enqueueCapturedUpdate(root, update$34);
|
|
6979
7002
|
break a;
|
|
6980
7003
|
}
|
|
6981
7004
|
}
|
|
@@ -7875,7 +7898,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7875
7898
|
(workInProgress.flags = 0),
|
|
7876
7899
|
(workInProgress.subtreeFlags = 0),
|
|
7877
7900
|
(workInProgress.deletions = null));
|
|
7878
|
-
workInProgress.flags = current.flags &
|
|
7901
|
+
workInProgress.flags = current.flags & 14680064;
|
|
7879
7902
|
workInProgress.childLanes = current.childLanes;
|
|
7880
7903
|
workInProgress.lanes = current.lanes;
|
|
7881
7904
|
workInProgress.child = current.child;
|
|
@@ -8008,7 +8031,7 @@ function createFiberFromPortal(portal, mode, lanes) {
|
|
|
8008
8031
|
};
|
|
8009
8032
|
return mode;
|
|
8010
8033
|
}
|
|
8011
|
-
function FiberRootNode(containerInfo, tag, hydrate) {
|
|
8034
|
+
function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
|
|
8012
8035
|
this.tag = tag;
|
|
8013
8036
|
this.containerInfo = containerInfo;
|
|
8014
8037
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
@@ -8021,6 +8044,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
8021
8044
|
this.expirationTimes = createLaneMap(-1);
|
|
8022
8045
|
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
|
|
8023
8046
|
this.entanglements = createLaneMap(0);
|
|
8047
|
+
this.identifierPrefix = identifierPrefix;
|
|
8024
8048
|
}
|
|
8025
8049
|
function createPortal(children, containerInfo, implementation) {
|
|
8026
8050
|
var key =
|
|
@@ -8231,10 +8255,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8231
8255
|
}
|
|
8232
8256
|
};
|
|
8233
8257
|
var roots = new Map(),
|
|
8234
|
-
devToolsConfig$jscomp$
|
|
8258
|
+
devToolsConfig$jscomp$inline_967 = {
|
|
8235
8259
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8236
8260
|
bundleType: 0,
|
|
8237
|
-
version: "18.0.0-
|
|
8261
|
+
version: "18.0.0-rc.0-51947a14b-20220113",
|
|
8238
8262
|
rendererPackageName: "react-native-renderer",
|
|
8239
8263
|
rendererConfig: {
|
|
8240
8264
|
getInspectorDataForViewTag: function() {
|
|
@@ -8249,11 +8273,11 @@ var roots = new Map(),
|
|
|
8249
8273
|
}.bind(null, findNodeHandle)
|
|
8250
8274
|
}
|
|
8251
8275
|
};
|
|
8252
|
-
var internals$jscomp$
|
|
8253
|
-
bundleType: devToolsConfig$jscomp$
|
|
8254
|
-
version: devToolsConfig$jscomp$
|
|
8255
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8256
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8276
|
+
var internals$jscomp$inline_1230 = {
|
|
8277
|
+
bundleType: devToolsConfig$jscomp$inline_967.bundleType,
|
|
8278
|
+
version: devToolsConfig$jscomp$inline_967.version,
|
|
8279
|
+
rendererPackageName: devToolsConfig$jscomp$inline_967.rendererPackageName,
|
|
8280
|
+
rendererConfig: devToolsConfig$jscomp$inline_967.rendererConfig,
|
|
8257
8281
|
overrideHookState: null,
|
|
8258
8282
|
overrideHookStateDeletePath: null,
|
|
8259
8283
|
overrideHookStateRenamePath: null,
|
|
@@ -8269,26 +8293,29 @@ var internals$jscomp$inline_1240 = {
|
|
|
8269
8293
|
return null === fiber ? null : fiber.stateNode;
|
|
8270
8294
|
},
|
|
8271
8295
|
findFiberByHostInstance:
|
|
8272
|
-
devToolsConfig$jscomp$
|
|
8296
|
+
devToolsConfig$jscomp$inline_967.findFiberByHostInstance ||
|
|
8273
8297
|
emptyFindFiberByHostInstance,
|
|
8274
8298
|
findHostInstancesForRefresh: null,
|
|
8275
8299
|
scheduleRefresh: null,
|
|
8276
8300
|
scheduleRoot: null,
|
|
8277
8301
|
setRefreshHandler: null,
|
|
8278
8302
|
getCurrentFiber: null,
|
|
8279
|
-
reconcilerVersion: "18.0.0-
|
|
8303
|
+
reconcilerVersion: "18.0.0-rc.0-51947a14b-20220113"
|
|
8280
8304
|
};
|
|
8281
8305
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8282
|
-
var hook$jscomp$
|
|
8306
|
+
var hook$jscomp$inline_1231 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8283
8307
|
if (
|
|
8284
|
-
!hook$jscomp$
|
|
8285
|
-
hook$jscomp$
|
|
8308
|
+
!hook$jscomp$inline_1231.isDisabled &&
|
|
8309
|
+
hook$jscomp$inline_1231.supportsFiber
|
|
8286
8310
|
)
|
|
8287
8311
|
try {
|
|
8288
|
-
(rendererID = hook$jscomp$
|
|
8289
|
-
internals$jscomp$
|
|
8312
|
+
(rendererID = hook$jscomp$inline_1231.inject(
|
|
8313
|
+
Object.assign({}, internals$jscomp$inline_1230, {
|
|
8314
|
+
getLaneLabelMap: getLaneLabelMap,
|
|
8315
|
+
injectProfilingHooks: injectProfilingHooks
|
|
8316
|
+
})
|
|
8290
8317
|
)),
|
|
8291
|
-
(injectedHook = hook$jscomp$
|
|
8318
|
+
(injectedHook = hook$jscomp$inline_1231);
|
|
8292
8319
|
} catch (err) {}
|
|
8293
8320
|
}
|
|
8294
8321
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
@@ -8334,7 +8361,7 @@ exports.findNodeHandle = findNodeHandle;
|
|
|
8334
8361
|
exports.render = function(element, containerTag, callback) {
|
|
8335
8362
|
var root = roots.get(containerTag);
|
|
8336
8363
|
if (!root) {
|
|
8337
|
-
root = new FiberRootNode(containerTag, 0, !1);
|
|
8364
|
+
root = new FiberRootNode(containerTag, 0, !1, "");
|
|
8338
8365
|
var JSCompiler_inline_result = createFiber(3, null, null, 0);
|
|
8339
8366
|
root.current = JSCompiler_inline_result;
|
|
8340
8367
|
JSCompiler_inline_result.stateNode = root;
|