@office-iss/react-native-win32 0.72.8 → 0.73.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/.flowconfig +15 -5
- package/CHANGELOG.json +530 -101
- package/CHANGELOG.md +213 -56
- package/IntegrationTests/PromiseTest.js +1 -0
- package/IntegrationTests/websocket_integration_test_server.js +1 -1
- package/Libraries/Animated/Animated.js +1 -1
- package/Libraries/Animated/AnimatedImplementation.js +1 -1
- package/Libraries/Animated/NativeAnimatedHelper.js +14 -10
- package/Libraries/Animated/NativeAnimatedHelper.win32.js +16 -12
- package/Libraries/Animated/NativeAnimatedModule.js +6 -2
- package/Libraries/Animated/NativeAnimatedTurboModule.js +7 -4
- package/Libraries/Animated/animations/Animation.js +57 -3
- package/Libraries/Animated/animations/DecayAnimation.js +9 -0
- package/Libraries/Animated/animations/SpringAnimation.js +8 -0
- package/Libraries/Animated/animations/TimingAnimation.js +8 -0
- package/Libraries/Animated/components/AnimatedFlatList.js +2 -1
- package/Libraries/Animated/components/AnimatedScrollView.js +2 -0
- package/Libraries/Animated/components/AnimatedSectionList.js +2 -1
- package/Libraries/Animated/createAnimatedComponent.js +1 -0
- package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
- package/Libraries/Animated/nodes/AnimatedObject.js +146 -0
- package/Libraries/Animated/nodes/AnimatedProps.js +19 -7
- package/Libraries/Animated/nodes/AnimatedStyle.js +29 -55
- package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -17
- package/Libraries/Animated/shouldUseTurboAnimatedModule.js +17 -0
- package/Libraries/Animated/useAnimatedProps.js +9 -10
- package/Libraries/AppState/AppState.d.ts +1 -1
- package/Libraries/AppState/NativeAppState.js +8 -4
- package/Libraries/BatchedBridge/MessageQueue.js +45 -36
- package/Libraries/Blob/Blob.js +6 -2
- package/Libraries/Blob/BlobManager.js +9 -10
- package/Libraries/Blob/BlobRegistry.js +14 -9
- package/Libraries/Blob/File.js +1 -1
- package/Libraries/Blob/FileReader.js +1 -2
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +1 -5
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +7 -48
- package/Libraries/Components/Button/ButtonWin32.Props.d.ts +1 -1
- package/Libraries/Components/Button/ButtonWin32.Props.js.map +1 -1
- package/Libraries/Components/Button/ButtonWin32.d.ts +1 -1
- package/Libraries/Components/Button/ButtonWin32.js +1 -4
- package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
- package/Libraries/Components/Clipboard/Clipboard.d.ts +4 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +3 -1
- package/Libraries/Components/EnterString.win32.d.ts +1 -1
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +26 -6
- package/Libraries/Components/Pressable/Pressable.js +3 -2
- package/Libraries/Components/Pressable/Pressable.win32.js +4 -3
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +1 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +7 -7
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +7 -8
- package/Libraries/Components/ScrollView/ScrollView.js +3 -1
- package/Libraries/Components/ScrollView/ScrollView.win32.js +3 -1
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +39 -46
- package/Libraries/Components/Switch/Switch.js +1 -0
- package/Libraries/Components/Text/TextWin32.d.ts +1 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.d.ts +49 -7
- package/Libraries/Components/TextInput/TextInput.flow.js +43 -10
- package/Libraries/Components/TextInput/TextInput.js +62 -10
- package/Libraries/Components/TextInput/TextInput.win32.js +953 -206
- package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +23 -0
- package/Libraries/Components/ToastAndroid/{ToastAndroid.ios.js → ToastAndroid.js} +9 -1
- package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +9 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +2 -2
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -1
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +4 -1
- package/Libraries/Components/Touchable/TouchableWin32.d.ts +1 -1
- package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +1 -0
- package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlay.js +16 -6
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +9 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +1 -0
- package/Libraries/Components/View/View.js +46 -32
- package/Libraries/Components/View/View.win32.js +37 -6
- package/Libraries/Components/View/ViewAccessibility.d.ts +8 -2
- package/Libraries/Components/View/ViewNativeComponent.js +1 -0
- package/Libraries/Components/View/ViewPropTypes.js +18 -3
- package/Libraries/Components/View/ViewPropTypes.win32.js +30 -4
- package/Libraries/Components/View/ViewWin32.js +3 -2
- package/Libraries/Core/Devtools/loadBundleFromServer.js +152 -0
- package/Libraries/Core/Devtools/symbolicateStackTrace.js +2 -1
- package/Libraries/Core/ExceptionsManager.js +16 -7
- package/Libraries/Core/ExtendedError.js +12 -0
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/ReactNativeVersionCheck.js +0 -2
- package/Libraries/Core/ReactNativeVersionCheck.win32.js +0 -2
- package/Libraries/Core/__mocks__/NativeExceptionsManager.js +20 -0
- package/Libraries/Core/setUpDeveloperTools.js +5 -1
- package/Libraries/Core/setUpIntersectionObserver.js +16 -0
- package/Libraries/{Components/ProgressBarAndroid/ProgressBarAndroid.ios.js → Core/setUpMutationObserver.js} +6 -2
- package/Libraries/Core/setUpPerformance.js +6 -13
- package/Libraries/Core/setUpPerformanceObserver.js +16 -0
- package/Libraries/Core/setUpRegeneratorRuntime.js +4 -2
- package/Libraries/DOM/Nodes/ReactNativeElement.js +135 -18
- package/Libraries/DOM/Nodes/ReadOnlyCharacterData.js +72 -0
- package/Libraries/DOM/Nodes/ReadOnlyElement.js +209 -21
- package/Libraries/DOM/Nodes/ReadOnlyNode.js +206 -17
- package/Libraries/DOM/Nodes/ReadOnlyText.js +30 -0
- package/Libraries/DOM/Nodes/Utilities/Traversal.js +54 -0
- package/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -6
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +15 -4
- package/Libraries/Image/Image.android.js +8 -2
- package/Libraries/Image/Image.d.ts +1 -1
- package/Libraries/Image/Image.ios.js +4 -1
- package/Libraries/Image/Image.win32.js +6 -3
- package/Libraries/Image/ImageBackground.js +3 -0
- package/Libraries/Image/resolveAssetSource.win32.js +1 -1
- package/Libraries/Inspector/DevtoolsOverlay.js +6 -3
- package/Libraries/Inspector/NetworkOverlay.js +2 -2
- package/Libraries/Interaction/JSEventLoopWatchdog.js +1 -5
- package/Libraries/Interaction/PanResponder.js +1 -4
- package/Libraries/IntersectionObserver/IntersectionObserver.js +252 -0
- package/Libraries/IntersectionObserver/IntersectionObserverEntry.js +140 -0
- package/Libraries/IntersectionObserver/IntersectionObserverManager.js +221 -0
- package/Libraries/IntersectionObserver/NativeIntersectionObserver.js +41 -0
- package/Libraries/IntersectionObserver/__mocks__/NativeIntersectionObserver.js +162 -0
- package/Libraries/LayoutAnimation/LayoutAnimation.js +1 -1
- package/Libraries/Lists/FlatList.d.ts +2 -1
- package/Libraries/Lists/FlatList.js +15 -5
- package/Libraries/Lists/SectionList.js +4 -0
- package/Libraries/LogBox/Data/LogBoxData.js +2 -1
- package/Libraries/LogBox/Data/LogBoxLog.js +4 -1
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +5 -2
- package/Libraries/LogBox/Data/parseLogBoxLog.js +57 -20
- package/Libraries/LogBox/UI/AnsiHighlight.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +24 -31
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
- package/Libraries/LogBox/UI/LogBoxMessage.js +4 -7
- package/Libraries/MutationObserver/MutationObserver.js +184 -0
- package/Libraries/MutationObserver/MutationObserverManager.js +218 -0
- package/Libraries/MutationObserver/MutationRecord.js +82 -0
- package/Libraries/MutationObserver/NativeMutationObserver.js +58 -0
- package/Libraries/MutationObserver/__mocks__/NativeMutationObserver.js +327 -0
- package/Libraries/NativeComponent/BaseViewConfig.android.js +18 -3
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +33 -0
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +33 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +13 -9
- package/Libraries/NativeModules/specs/NativeSourceCode.js +6 -6
- package/Libraries/Network/RCTNetworking.android.js +2 -1
- package/Libraries/Network/XMLHttpRequest.js +1 -1
- package/Libraries/NewAppScreen/components/DebugInstructions.js +4 -4
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +9 -2
- package/Libraries/Performance/QuickPerformanceLogger.js +1 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +1 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +1 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +3 -1
- package/Libraries/Pressability/Pressability.js +28 -3
- package/Libraries/Pressability/Pressability.win32.js +30 -5
- package/Libraries/ReactNative/AppContainer.js +2 -3
- package/Libraries/ReactNative/AppRegistry.d.ts +0 -5
- package/Libraries/ReactNative/AppRegistry.js +66 -53
- package/Libraries/ReactNative/BridgelessUIManager.js +38 -9
- package/Libraries/ReactNative/FabricUIManager.js +143 -34
- package/Libraries/ReactNative/I18nManager.js +5 -11
- package/Libraries/ReactNative/NativeI18nManager.js +7 -5
- package/Libraries/ReactNative/PaperUIManager.win32.js +2 -2
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +151 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +81 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js +492 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/warnForStyleProps.js +32 -0
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +19 -3
- package/Libraries/ReactNative/UIManager.js +8 -0
- package/Libraries/ReactNative/__mocks__/FabricUIManager.js +648 -0
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +38 -2
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +27 -27
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3 -3
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3 -3
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +27 -27
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3 -3
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +3 -3
- package/Libraries/Renderer/shims/ReactFabric.js +5 -6
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -3
- package/Libraries/Renderer/shims/ReactNative.js +2 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.js +35 -17
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -3
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -3
- package/Libraries/Settings/{Settings.android.js → Settings.js} +4 -4
- package/Libraries/Share/Share.d.ts +3 -9
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +9 -4
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +28 -13
- package/Libraries/StyleSheet/PlatformColorValueTypes.win32.js +14 -4
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesWin32.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheet.d.ts +10 -1
- package/Libraries/StyleSheet/StyleSheet.js +3 -0
- package/Libraries/StyleSheet/StyleSheet.win32.js +3 -0
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +31 -17
- package/Libraries/StyleSheet/StyleSheetTypes.js +90 -6
- package/Libraries/StyleSheet/flattenStyle.js +4 -0
- package/Libraries/StyleSheet/private/_TransformStyle.js +16 -2
- package/Libraries/StyleSheet/processColor.js +1 -2
- package/Libraries/StyleSheet/processTransformOrigin.js +136 -0
- package/Libraries/StyleSheet/splitLayoutProps.js +1 -0
- package/Libraries/Text/Text.d.ts +5 -5
- package/Libraries/Text/Text.js +17 -10
- package/Libraries/Text/Text.win32.js +354 -0
- package/Libraries/Text/TextProps.win32.js +281 -0
- package/Libraries/TurboModule/TurboModuleRegistry.js +47 -7
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +6 -0
- package/Libraries/Types/CoreEventTypes.d.ts +5 -2
- package/Libraries/Utilities/GlobalPerformanceLogger.js +2 -12
- package/Libraries/Utilities/NativeDeviceInfo.js +8 -9
- package/Libraries/Utilities/NativePlatformConstantsAndroid.js +23 -18
- package/Libraries/Utilities/NativePlatformConstantsIOS.js +16 -13
- package/Libraries/Utilities/NativePlatformConstantsWin.js +13 -10
- package/Libraries/Utilities/PerformanceLoggerContext.js +1 -1
- package/Libraries/Utilities/Platform.android.js +12 -8
- package/Libraries/Utilities/Platform.d.ts +1 -0
- package/Libraries/Utilities/Platform.flow.js +84 -0
- package/Libraries/Utilities/Platform.flow.win32.js +111 -0
- package/Libraries/Utilities/Platform.ios.js +12 -8
- package/Libraries/Utilities/Platform.win32.js +12 -8
- package/Libraries/Utilities/PolyfillFunctions.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -2
- package/Libraries/Utilities/SceneTracker.js +1 -1
- package/Libraries/Utilities/createPerformanceLogger.js +63 -32
- package/Libraries/Utilities/useColorScheme.js +7 -8
- package/Libraries/WebPerformance/MemoryInfo.js +1 -1
- package/Libraries/WebPerformance/NativePerformance.js +3 -8
- package/Libraries/WebPerformance/NativePerformanceObserver.js +4 -0
- package/Libraries/WebPerformance/Performance.js +42 -15
- package/Libraries/WebPerformance/PerformanceEntry.js +14 -6
- package/Libraries/WebPerformance/PerformanceEventTiming.js +18 -1
- package/Libraries/WebPerformance/ReactNativeStartupTiming.js +40 -14
- package/Libraries/WebPerformance/__mocks__/NativePerformance.js +4 -2
- package/Libraries/WebPerformance/__mocks__/NativePerformanceObserver.js +21 -3
- package/Libraries/promiseRejectionTrackingOptions.js +21 -9
- package/Libraries/vendor/emitter/EventEmitter.js +17 -17
- package/flow/global.js +1 -3
- package/flow/jest.js +5 -1
- package/{Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js → jest/ReactNativeInternalFeatureFlagsMock.js} +2 -1
- package/jest/__tests__/setup-test.js +18 -0
- package/jest/mockModal.js +6 -4
- package/jest/setup.js +61 -30
- package/jest.config.js +1 -1
- package/just-task.js +1 -0
- package/overrides.json +54 -60
- package/package.json +35 -33
- package/src/Libraries/Components/Button/ButtonWin32.Props.ts +1 -1
- package/src/Libraries/Components/Button/ButtonWin32.tsx +0 -2
- package/src/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +2 -2
- package/src/Libraries/Components/Touchable/TouchableWin32.tsx +1 -1
- package/src/Libraries/Components/View/ViewAccessibility.d.ts +8 -2
- package/src/Libraries/StyleSheet/PlatformColorValueTypesWin32.d.ts +1 -1
- package/types/experimental.d.ts +44 -0
- package/types/index.d.ts +2 -1
- package/types/modules/Devtools.d.ts +1 -0
- package/types/modules/globals.d.ts +16 -1
- package/IntegrationTests/BUCK +0 -32
- package/IntegrationTests/PropertiesUpdateTest.js +0 -29
- package/IntegrationTests/RCTRootViewIntegrationTestApp.js +0 -86
- package/IntegrationTests/ReactContentSizeUpdateTest.js +0 -89
- package/IntegrationTests/SizeFlexibilityUpdateTest.js +0 -106
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfoWin32.js +0 -37
- package/Libraries/Components/TextInput/TextInput.Types.win32.d.ts +0 -51
- package/Libraries/Components/TextInput/TextInput.Types.win32.js +0 -3
- package/Libraries/Components/TextInput/TextInput.Types.win32.js.map +0 -1
- package/Libraries/Utilities/AcessibilityMapping.js +0 -154
- package/Libraries/Utilities/AcessibilityMapping.win32.js +0 -156
- package/Libraries/Utilities/NativeDevSplitBundleLoader.js +0 -19
- package/Libraries/Utilities/useColorScheme.win32.js +0 -26
- package/flow/use-sync-external-store.js +0 -20
- package/flow-typed/npm/base64-js_v1.x.x.js +0 -12
- package/flow-typed/npm/glob_v7.x.x.js +0 -79
- package/flow-typed/npm/pretty-format_v26.x.x.js +0 -49
- package/flow-typed/npm/promise_v8.x.x.js +0 -30
- package/flow-typed/npm/react-dom_v17.x.x.js +0 -139
- package/flow-typed/npm/react-test-renderer_v16.x.x.js +0 -79
- package/flow-typed/npm/stacktrace-parser_v0.1.x.js +0 -17
- package/flow-typed/npm/yargs_v17.x.x.js +0 -341
- package/src/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -161
- package/src/Libraries/Components/TextInput/TextInput.Types.win32.ts +0 -68
- /package/Libraries/{Renderer/public → ReactNative/ReactFabricPublicInstance}/ReactFabricPublicInstanceUtils.js +0 -0
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict-local
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
import type {
|
|
14
|
-
AccessibilityRole,
|
|
15
|
-
Role,
|
|
16
|
-
} from '../Components/View/ViewAccessibility';
|
|
17
|
-
|
|
18
|
-
// Map role values to AccessibilityRole values
|
|
19
|
-
export function getAccessibilityRoleFromRole(role: Role): ?AccessibilityRole {
|
|
20
|
-
switch (role) {
|
|
21
|
-
case 'alert':
|
|
22
|
-
return 'alert';
|
|
23
|
-
case 'alertdialog':
|
|
24
|
-
return 'alertdialog'; // Win32
|
|
25
|
-
case 'application':
|
|
26
|
-
return 'application'; // Win32
|
|
27
|
-
case 'article':
|
|
28
|
-
return undefined;
|
|
29
|
-
case 'banner':
|
|
30
|
-
return undefined;
|
|
31
|
-
case 'button':
|
|
32
|
-
return 'button';
|
|
33
|
-
case 'cell':
|
|
34
|
-
return undefined;
|
|
35
|
-
case 'checkbox':
|
|
36
|
-
return 'checkbox';
|
|
37
|
-
case 'columnheader':
|
|
38
|
-
return undefined;
|
|
39
|
-
case 'combobox':
|
|
40
|
-
return 'combobox';
|
|
41
|
-
case 'complementary':
|
|
42
|
-
return undefined;
|
|
43
|
-
case 'contentinfo':
|
|
44
|
-
return undefined;
|
|
45
|
-
case 'definition':
|
|
46
|
-
return undefined;
|
|
47
|
-
case 'dialog':
|
|
48
|
-
return 'dialog'; // Win32
|
|
49
|
-
case 'directory':
|
|
50
|
-
return undefined;
|
|
51
|
-
case 'document':
|
|
52
|
-
return undefined;
|
|
53
|
-
case 'feed':
|
|
54
|
-
return undefined;
|
|
55
|
-
case 'figure':
|
|
56
|
-
return undefined;
|
|
57
|
-
case 'form':
|
|
58
|
-
return undefined;
|
|
59
|
-
case 'grid':
|
|
60
|
-
return 'grid';
|
|
61
|
-
case 'group':
|
|
62
|
-
return 'group'; // Win32
|
|
63
|
-
case 'heading':
|
|
64
|
-
return 'header';
|
|
65
|
-
case 'img':
|
|
66
|
-
return 'image';
|
|
67
|
-
case 'link':
|
|
68
|
-
return 'link';
|
|
69
|
-
case 'list':
|
|
70
|
-
return 'list';
|
|
71
|
-
case 'listitem':
|
|
72
|
-
return 'listitem'; // Win32
|
|
73
|
-
case 'log':
|
|
74
|
-
return undefined;
|
|
75
|
-
case 'main':
|
|
76
|
-
return undefined;
|
|
77
|
-
case 'marquee':
|
|
78
|
-
return undefined;
|
|
79
|
-
case 'math':
|
|
80
|
-
return undefined;
|
|
81
|
-
case 'menu':
|
|
82
|
-
return 'menu';
|
|
83
|
-
case 'menubar':
|
|
84
|
-
return 'menubar';
|
|
85
|
-
case 'menuitem':
|
|
86
|
-
return 'menuitem';
|
|
87
|
-
case 'meter':
|
|
88
|
-
return undefined;
|
|
89
|
-
case 'navigation':
|
|
90
|
-
return undefined;
|
|
91
|
-
case 'none':
|
|
92
|
-
return 'none';
|
|
93
|
-
case 'note':
|
|
94
|
-
return undefined;
|
|
95
|
-
case 'option':
|
|
96
|
-
return undefined;
|
|
97
|
-
case 'presentation':
|
|
98
|
-
return 'presentation'; // Win32
|
|
99
|
-
case 'progressbar':
|
|
100
|
-
return 'progressbar';
|
|
101
|
-
case 'radio':
|
|
102
|
-
return 'radio';
|
|
103
|
-
case 'radiogroup':
|
|
104
|
-
return 'radiogroup';
|
|
105
|
-
case 'region':
|
|
106
|
-
return undefined;
|
|
107
|
-
case 'row':
|
|
108
|
-
return undefined;
|
|
109
|
-
case 'rowgroup':
|
|
110
|
-
return undefined;
|
|
111
|
-
case 'rowheader':
|
|
112
|
-
return undefined;
|
|
113
|
-
case 'scrollbar':
|
|
114
|
-
return 'scrollbar';
|
|
115
|
-
case 'searchbox':
|
|
116
|
-
return 'search';
|
|
117
|
-
case 'separator':
|
|
118
|
-
return undefined;
|
|
119
|
-
case 'slider':
|
|
120
|
-
return 'adjustable';
|
|
121
|
-
case 'spinbutton':
|
|
122
|
-
return 'spinbutton';
|
|
123
|
-
case 'status':
|
|
124
|
-
return undefined;
|
|
125
|
-
case 'summary':
|
|
126
|
-
return 'summary';
|
|
127
|
-
case 'switch':
|
|
128
|
-
return 'switch';
|
|
129
|
-
case 'tab':
|
|
130
|
-
return 'tab';
|
|
131
|
-
case 'table':
|
|
132
|
-
return undefined;
|
|
133
|
-
case 'tablist':
|
|
134
|
-
return 'tablist';
|
|
135
|
-
case 'tabpanel':
|
|
136
|
-
return 'tabpanel'; // Win32
|
|
137
|
-
case 'term':
|
|
138
|
-
return undefined;
|
|
139
|
-
case 'textbox': // Win32
|
|
140
|
-
return 'textbox'; // Win32
|
|
141
|
-
case 'timer':
|
|
142
|
-
return 'timer';
|
|
143
|
-
case 'toolbar':
|
|
144
|
-
return 'toolbar';
|
|
145
|
-
case 'tooltip':
|
|
146
|
-
return undefined;
|
|
147
|
-
case 'tree':
|
|
148
|
-
return 'tree'; // Win32
|
|
149
|
-
case 'treegrid':
|
|
150
|
-
return undefined;
|
|
151
|
-
case 'treeitem':
|
|
152
|
-
return 'treeitem'; // Win32
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
return undefined;
|
|
156
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import type {TurboModule} from '../TurboModule/RCTExport';
|
|
12
|
-
|
|
13
|
-
import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';
|
|
14
|
-
|
|
15
|
-
export interface Spec extends TurboModule {
|
|
16
|
-
+loadBundle: (bundlePath: string) => Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default (TurboModuleRegistry.get<Spec>('DevSplitBundleLoader'): ?Spec);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @flow strict-local
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
import type {ColorSchemeName} from './NativeAppearance';
|
|
14
|
-
|
|
15
|
-
import Appearance from './Appearance';
|
|
16
|
-
import {useSyncExternalStore} from 'react';
|
|
17
|
-
|
|
18
|
-
export default function useColorScheme(): ?ColorSchemeName {
|
|
19
|
-
return useSyncExternalStore(
|
|
20
|
-
callback => {
|
|
21
|
-
const appearanceSubscription = Appearance.addChangeListener(callback);
|
|
22
|
-
return () => appearanceSubscription.remove();
|
|
23
|
-
},
|
|
24
|
-
() => Appearance.getColorScheme(),
|
|
25
|
-
);
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict
|
|
8
|
-
* @format
|
|
9
|
-
* @nolint
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
'use strict';
|
|
13
|
-
|
|
14
|
-
declare module 'use-sync-external-store/shim' {
|
|
15
|
-
declare export function useSyncExternalStore<Value>(
|
|
16
|
-
subscribe: (callback: Function) => () => void,
|
|
17
|
-
getCurrentValue: () => Value,
|
|
18
|
-
getServerSnapshot?: () => Value,
|
|
19
|
-
): Value;
|
|
20
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// flow-typed signature: d2a519d7d007e9ba3e5bf2ac3ff76eca
|
|
2
|
-
// flow-typed version: f243e51ed7/glob_v7.x.x/flow_>=v0.104.x
|
|
3
|
-
|
|
4
|
-
declare module "glob" {
|
|
5
|
-
declare type MinimatchOptions = {|
|
|
6
|
-
debug?: boolean,
|
|
7
|
-
nobrace?: boolean,
|
|
8
|
-
noglobstar?: boolean,
|
|
9
|
-
dot?: boolean,
|
|
10
|
-
noext?: boolean,
|
|
11
|
-
nocase?: boolean,
|
|
12
|
-
nonull?: boolean,
|
|
13
|
-
matchBase?: boolean,
|
|
14
|
-
nocomment?: boolean,
|
|
15
|
-
nonegate?: boolean,
|
|
16
|
-
flipNegate?: boolean
|
|
17
|
-
|};
|
|
18
|
-
|
|
19
|
-
declare type Options = {|
|
|
20
|
-
...MinimatchOptions,
|
|
21
|
-
cwd?: string,
|
|
22
|
-
root?: string,
|
|
23
|
-
nomount?: boolean,
|
|
24
|
-
mark?: boolean,
|
|
25
|
-
nosort?: boolean,
|
|
26
|
-
stat?: boolean,
|
|
27
|
-
silent?: boolean,
|
|
28
|
-
strict?: boolean,
|
|
29
|
-
cache?: { [path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray<string>, ... },
|
|
30
|
-
statCache?: { [path: string]: boolean | { isDirectory(): boolean, ... } | void, ... },
|
|
31
|
-
symlinks?: { [path: string]: boolean | void, ... },
|
|
32
|
-
realpathCache?: { [path: string]: string, ... },
|
|
33
|
-
sync?: boolean,
|
|
34
|
-
nounique?: boolean,
|
|
35
|
-
nodir?: boolean,
|
|
36
|
-
ignore?: string | $ReadOnlyArray<string>,
|
|
37
|
-
follow?: boolean,
|
|
38
|
-
realpath?: boolean,
|
|
39
|
-
absolute?: boolean
|
|
40
|
-
|};
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Called when an error occurs, or matches are found
|
|
44
|
-
* err
|
|
45
|
-
* matches: filenames found matching the pattern
|
|
46
|
-
*/
|
|
47
|
-
declare type CallBack = (err: ?Error, matches: Array<string>) => void;
|
|
48
|
-
|
|
49
|
-
declare class Glob extends events$EventEmitter {
|
|
50
|
-
constructor(pattern: string): this;
|
|
51
|
-
constructor(pattern: string, callback: CallBack): this;
|
|
52
|
-
constructor(pattern: string, options: Options, callback: CallBack): this;
|
|
53
|
-
|
|
54
|
-
minimatch: {...};
|
|
55
|
-
options: Options;
|
|
56
|
-
aborted: boolean;
|
|
57
|
-
cache: { [path: string]: boolean | "DIR" | "FILE" | $ReadOnlyArray<string>, ... };
|
|
58
|
-
statCache: { [path: string]: boolean | { isDirectory(): boolean, ... } | void, ... };
|
|
59
|
-
symlinks: { [path: string]: boolean | void, ... };
|
|
60
|
-
realpathCache: { [path: string]: string, ... };
|
|
61
|
-
found: Array<string>;
|
|
62
|
-
|
|
63
|
-
pause(): void;
|
|
64
|
-
resume(): void;
|
|
65
|
-
abort(): void;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
declare class GlobModule {
|
|
69
|
-
Glob: Class<Glob>;
|
|
70
|
-
|
|
71
|
-
(pattern: string, callback: CallBack): void;
|
|
72
|
-
(pattern: string, options: Options, callback: CallBack): void;
|
|
73
|
-
|
|
74
|
-
hasMagic(pattern: string, options?: Options): boolean;
|
|
75
|
-
sync(pattern: string, options?: Options): Array<string>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare module.exports: GlobModule;
|
|
79
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @flow strict
|
|
3
|
-
* @format
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
type PrettyFormatPlugin =
|
|
7
|
-
| {
|
|
8
|
-
test: (value: mixed) => boolean,
|
|
9
|
-
print: (value: mixed) => string,
|
|
10
|
-
}
|
|
11
|
-
| {
|
|
12
|
-
test: (value: mixed) => boolean,
|
|
13
|
-
serialize: (value: mixed) => string,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
declare module 'pretty-format' {
|
|
17
|
-
declare module.exports: {
|
|
18
|
-
(
|
|
19
|
-
value: mixed,
|
|
20
|
-
options?: ?{
|
|
21
|
-
callToJSON?: ?boolean,
|
|
22
|
-
escapeRegex?: ?boolean,
|
|
23
|
-
escapeString?: ?boolean,
|
|
24
|
-
highlight?: ?boolean,
|
|
25
|
-
indent?: ?number,
|
|
26
|
-
maxDepth?: ?number,
|
|
27
|
-
min?: ?boolean,
|
|
28
|
-
plugins?: ?Array<PrettyFormatPlugin>,
|
|
29
|
-
printFunctionName?: ?boolean,
|
|
30
|
-
theme?: ?{
|
|
31
|
-
comment?: ?string,
|
|
32
|
-
prop?: ?string,
|
|
33
|
-
tag?: ?string,
|
|
34
|
-
value: ?string,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
): string,
|
|
38
|
-
|
|
39
|
-
plugins: {
|
|
40
|
-
AsymmetricMatcher: PrettyFormatPlugin,
|
|
41
|
-
ConvertAnsi: PrettyFormatPlugin,
|
|
42
|
-
DOMCollection: PrettyFormatPlugin,
|
|
43
|
-
DOMElement: PrettyFormatPlugin,
|
|
44
|
-
Immutable: PrettyFormatPlugin,
|
|
45
|
-
ReactElement: PrettyFormatPlugin,
|
|
46
|
-
ReactTestComponent: PrettyFormatPlugin,
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @flow strict
|
|
3
|
-
* @format
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
declare module 'promise/setimmediate/es6-extensions' {
|
|
7
|
-
declare module.exports: typeof Promise;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'promise/setimmediate/done' {
|
|
11
|
-
declare module.exports: typeof Promise;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare module 'promise/setimmediate/finally' {
|
|
15
|
-
declare module.exports: typeof Promise;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare module 'promise/setimmediate/rejection-tracking' {
|
|
19
|
-
declare module.exports: {
|
|
20
|
-
enable: (
|
|
21
|
-
options?: ?{
|
|
22
|
-
whitelist?: ?Array<mixed>,
|
|
23
|
-
allRejections?: ?boolean,
|
|
24
|
-
onUnhandled?: ?(number, mixed) => void,
|
|
25
|
-
onHandled?: ?(number, mixed) => void,
|
|
26
|
-
},
|
|
27
|
-
) => void,
|
|
28
|
-
disable: () => void,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
// flow-typed signature: e556c06e721548417501c08b01fec911
|
|
2
|
-
// flow-typed version: ad3adf2de8/react-dom_v17.x.x/flow_>=v0.127.x
|
|
3
|
-
|
|
4
|
-
declare module 'react-dom' {
|
|
5
|
-
declare var version: string;
|
|
6
|
-
|
|
7
|
-
declare function findDOMNode(
|
|
8
|
-
componentOrElement: Element | ?React$Component<any, any>
|
|
9
|
-
): null | Element | Text;
|
|
10
|
-
|
|
11
|
-
declare function render<ElementType: React$ElementType>(
|
|
12
|
-
element: React$Element<ElementType>,
|
|
13
|
-
container: Element,
|
|
14
|
-
callback?: () => void
|
|
15
|
-
): React$ElementRef<ElementType>;
|
|
16
|
-
|
|
17
|
-
declare function hydrate<ElementType: React$ElementType>(
|
|
18
|
-
element: React$Element<ElementType>,
|
|
19
|
-
container: Element,
|
|
20
|
-
callback?: () => void
|
|
21
|
-
): React$ElementRef<ElementType>;
|
|
22
|
-
|
|
23
|
-
declare function createPortal(
|
|
24
|
-
node: React$Node,
|
|
25
|
-
container: Element
|
|
26
|
-
): React$Portal;
|
|
27
|
-
|
|
28
|
-
declare function unmountComponentAtNode(container: any): boolean;
|
|
29
|
-
|
|
30
|
-
declare function unstable_batchedUpdates<A, B, C, D, E>(
|
|
31
|
-
callback: (a: A, b: B, c: C, d: D, e: E) => mixed,
|
|
32
|
-
a: A,
|
|
33
|
-
b: B,
|
|
34
|
-
c: C,
|
|
35
|
-
d: D,
|
|
36
|
-
e: E
|
|
37
|
-
): void;
|
|
38
|
-
|
|
39
|
-
declare function unstable_renderSubtreeIntoContainer<
|
|
40
|
-
ElementType: React$ElementType
|
|
41
|
-
>(
|
|
42
|
-
parentComponent: React$Component<any, any>,
|
|
43
|
-
nextElement: React$Element<ElementType>,
|
|
44
|
-
container: any,
|
|
45
|
-
callback?: () => void
|
|
46
|
-
): React$ElementRef<ElementType>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare module 'react-dom/server' {
|
|
50
|
-
declare var version: string;
|
|
51
|
-
|
|
52
|
-
declare function renderToString(element: React$Node): string;
|
|
53
|
-
|
|
54
|
-
declare function renderToStaticMarkup(element: React$Node): string;
|
|
55
|
-
|
|
56
|
-
declare function renderToNodeStream(element: React$Node): stream$Readable;
|
|
57
|
-
|
|
58
|
-
declare function renderToStaticNodeStream(
|
|
59
|
-
element: React$Node
|
|
60
|
-
): stream$Readable;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare module 'react-dom/test-utils' {
|
|
64
|
-
declare interface Thenable {
|
|
65
|
-
then(resolve: () => mixed, reject?: () => mixed): mixed,
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
declare var Simulate: {
|
|
69
|
-
[eventName: string]: (
|
|
70
|
-
element: Element,
|
|
71
|
-
eventData?: { [key: string]: mixed, ... }
|
|
72
|
-
) => void,
|
|
73
|
-
...
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
declare function renderIntoDocument(
|
|
77
|
-
instance: React$Element<any>
|
|
78
|
-
): React$Component<any, any>;
|
|
79
|
-
|
|
80
|
-
declare function mockComponent(
|
|
81
|
-
componentClass: React$ElementType,
|
|
82
|
-
mockTagName?: string
|
|
83
|
-
): { [key: string]: mixed, ... };
|
|
84
|
-
|
|
85
|
-
declare function isElement(element: React$Element<any>): boolean;
|
|
86
|
-
|
|
87
|
-
declare function isElementOfType(
|
|
88
|
-
element: React$Element<any>,
|
|
89
|
-
componentClass: React$ElementType
|
|
90
|
-
): boolean;
|
|
91
|
-
|
|
92
|
-
declare function isDOMComponent(instance: any): boolean;
|
|
93
|
-
|
|
94
|
-
declare function isCompositeComponent(
|
|
95
|
-
instance: React$Component<any, any>
|
|
96
|
-
): boolean;
|
|
97
|
-
|
|
98
|
-
declare function isCompositeComponentWithType(
|
|
99
|
-
instance: React$Component<any, any>,
|
|
100
|
-
componentClass: React$ElementType
|
|
101
|
-
): boolean;
|
|
102
|
-
|
|
103
|
-
declare function findAllInRenderedTree(
|
|
104
|
-
tree: React$Component<any, any>,
|
|
105
|
-
test: (child: React$Component<any, any>) => boolean
|
|
106
|
-
): Array<React$Component<any, any>>;
|
|
107
|
-
|
|
108
|
-
declare function scryRenderedDOMComponentsWithClass(
|
|
109
|
-
tree: React$Component<any, any>,
|
|
110
|
-
className: string
|
|
111
|
-
): Array<Element>;
|
|
112
|
-
|
|
113
|
-
declare function findRenderedDOMComponentWithClass(
|
|
114
|
-
tree: React$Component<any, any>,
|
|
115
|
-
className: string
|
|
116
|
-
): ?Element;
|
|
117
|
-
|
|
118
|
-
declare function scryRenderedDOMComponentsWithTag(
|
|
119
|
-
tree: React$Component<any, any>,
|
|
120
|
-
tagName: string
|
|
121
|
-
): Array<Element>;
|
|
122
|
-
|
|
123
|
-
declare function findRenderedDOMComponentWithTag(
|
|
124
|
-
tree: React$Component<any, any>,
|
|
125
|
-
tagName: string
|
|
126
|
-
): ?Element;
|
|
127
|
-
|
|
128
|
-
declare function scryRenderedComponentsWithType(
|
|
129
|
-
tree: React$Component<any, any>,
|
|
130
|
-
componentClass: React$ElementType
|
|
131
|
-
): Array<React$Component<any, any>>;
|
|
132
|
-
|
|
133
|
-
declare function findRenderedComponentWithType(
|
|
134
|
-
tree: React$Component<any, any>,
|
|
135
|
-
componentClass: React$ElementType
|
|
136
|
-
): ?React$Component<any, any>;
|
|
137
|
-
|
|
138
|
-
declare function act(callback: () => void | Thenable): Thenable;
|
|
139
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// flow-typed signature: 7bac6c05f7415881918d3d510109e739
|
|
2
|
-
// flow-typed version: fce74493f0/react-test-renderer_v16.x.x/flow_>=v0.104.x
|
|
3
|
-
|
|
4
|
-
// Type definitions for react-test-renderer 16.x.x
|
|
5
|
-
// Ported from: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-test-renderer
|
|
6
|
-
|
|
7
|
-
type ReactComponentInstance = React$Component<any>;
|
|
8
|
-
|
|
9
|
-
type ReactTestRendererJSON = {
|
|
10
|
-
type: string,
|
|
11
|
-
props: { [propName: string]: any, ... },
|
|
12
|
-
children: null | ReactTestRendererJSON[],
|
|
13
|
-
...
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type ReactTestRendererTree = ReactTestRendererJSON & {
|
|
17
|
-
nodeType: "component" | "host",
|
|
18
|
-
instance: ?ReactComponentInstance,
|
|
19
|
-
rendered: null | ReactTestRendererTree,
|
|
20
|
-
...
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
type ReactTestInstance = {
|
|
24
|
-
instance: ?ReactComponentInstance,
|
|
25
|
-
type: string,
|
|
26
|
-
props: { [propName: string]: any, ... },
|
|
27
|
-
parent: null | ReactTestInstance,
|
|
28
|
-
children: Array<ReactTestInstance | string>,
|
|
29
|
-
find(predicate: (node: ReactTestInstance) => boolean): ReactTestInstance,
|
|
30
|
-
findByType(type: React$ElementType): ReactTestInstance,
|
|
31
|
-
findByProps(props: { [propName: string]: any, ... }): ReactTestInstance,
|
|
32
|
-
findAll(
|
|
33
|
-
predicate: (node: ReactTestInstance) => boolean,
|
|
34
|
-
options?: { deep: boolean, ... }
|
|
35
|
-
): ReactTestInstance[],
|
|
36
|
-
findAllByType(
|
|
37
|
-
type: React$ElementType,
|
|
38
|
-
options?: { deep: boolean, ... }
|
|
39
|
-
): ReactTestInstance[],
|
|
40
|
-
findAllByProps(
|
|
41
|
-
props: { [propName: string]: any, ... },
|
|
42
|
-
options?: { deep: boolean, ... }
|
|
43
|
-
): ReactTestInstance[],
|
|
44
|
-
...
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
type TestRendererOptions = { createNodeMock(element: React$Element<any>): any, ... };
|
|
48
|
-
|
|
49
|
-
declare module "react-test-renderer" {
|
|
50
|
-
declare export type ReactTestRenderer = {
|
|
51
|
-
toJSON(): null | ReactTestRendererJSON,
|
|
52
|
-
toTree(): null | ReactTestRendererTree,
|
|
53
|
-
unmount(nextElement?: React$Element<any>): void,
|
|
54
|
-
update(nextElement: React$Element<any>): void,
|
|
55
|
-
getInstance(): ?ReactComponentInstance,
|
|
56
|
-
root: ReactTestInstance,
|
|
57
|
-
...
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
declare type Thenable = { then(resolve: () => mixed, reject?: () => mixed): mixed, ... };
|
|
61
|
-
|
|
62
|
-
declare function create(
|
|
63
|
-
nextElement: React$Element<any>,
|
|
64
|
-
options?: TestRendererOptions
|
|
65
|
-
): ReactTestRenderer;
|
|
66
|
-
|
|
67
|
-
declare function act(callback: () => void | Promise<void>): Thenable;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
declare module "react-test-renderer/shallow" {
|
|
71
|
-
declare export default class ShallowRenderer {
|
|
72
|
-
static createRenderer(): ShallowRenderer;
|
|
73
|
-
getMountedInstance(): ReactTestInstance;
|
|
74
|
-
getRenderOutput<E: React$Element<any>>(): E;
|
|
75
|
-
getRenderOutput(): React$Element<any>;
|
|
76
|
-
render(element: React$Element<any>, context?: any): void;
|
|
77
|
-
unmount(): void;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @flow strict
|
|
3
|
-
* @format
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
type StackFrame = {
|
|
7
|
-
file: string,
|
|
8
|
-
methodName: string,
|
|
9
|
-
lineNumber: number,
|
|
10
|
-
column: ?number,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
declare module 'stacktrace-parser' {
|
|
14
|
-
declare module.exports: {
|
|
15
|
-
parse: string => Array<StackFrame>,
|
|
16
|
-
};
|
|
17
|
-
}
|