@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,341 +0,0 @@
|
|
|
1
|
-
// flow-typed signature: cab38813101e0a162deaae556391abc8
|
|
2
|
-
// flow-typed version: f7c859e705/yargs_v17.x.x/flow_>=v0.104.x
|
|
3
|
-
|
|
4
|
-
declare module "yargs" {
|
|
5
|
-
declare type Argv = {
|
|
6
|
-
[key: string]: any,
|
|
7
|
-
_: Array<string>,
|
|
8
|
-
$0: string,
|
|
9
|
-
...
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
declare type Options = $Shape<{
|
|
13
|
-
alias: string | Array<string>,
|
|
14
|
-
array: boolean,
|
|
15
|
-
boolean: boolean,
|
|
16
|
-
choices: Array<mixed>,
|
|
17
|
-
coerce: (arg: {[key: string]: any, ...} | any) => mixed,
|
|
18
|
-
config: boolean,
|
|
19
|
-
configParser: (configPath: string) => { [key: string]: mixed, ... },
|
|
20
|
-
conflicts: string | Array<string> | { [key: string]: string, ... },
|
|
21
|
-
count: boolean,
|
|
22
|
-
default: mixed,
|
|
23
|
-
defaultDescription: string,
|
|
24
|
-
demandOption: boolean | string,
|
|
25
|
-
desc: string,
|
|
26
|
-
describe: string,
|
|
27
|
-
description: string,
|
|
28
|
-
global: boolean,
|
|
29
|
-
group: string,
|
|
30
|
-
hidden: boolean,
|
|
31
|
-
implies: string | { [key: string]: string, ... },
|
|
32
|
-
nargs: number,
|
|
33
|
-
normalize: boolean,
|
|
34
|
-
number: boolean,
|
|
35
|
-
required: boolean,
|
|
36
|
-
requiresArg: boolean,
|
|
37
|
-
skipValidation: boolean,
|
|
38
|
-
string: boolean,
|
|
39
|
-
type: "array" | "boolean" | "count" | "number" | "string",
|
|
40
|
-
...
|
|
41
|
-
}>;
|
|
42
|
-
|
|
43
|
-
declare type CommonModuleObject = {|
|
|
44
|
-
command?: string | Array<string>,
|
|
45
|
-
aliases?: Array<string> | string,
|
|
46
|
-
builder?: { [key: string]: Options, ... } | ((yargsInstance: Yargs) => mixed),
|
|
47
|
-
handler?: ((argv: Argv) => void) | ((argv: Argv) => Promise<void>)
|
|
48
|
-
|};
|
|
49
|
-
|
|
50
|
-
declare type ModuleObjectDesc = {|
|
|
51
|
-
...CommonModuleObject,
|
|
52
|
-
desc?: string | false
|
|
53
|
-
|};
|
|
54
|
-
|
|
55
|
-
declare type ModuleObjectDescribe = {|
|
|
56
|
-
...CommonModuleObject,
|
|
57
|
-
describe?: string | false
|
|
58
|
-
|};
|
|
59
|
-
|
|
60
|
-
declare type ModuleObjectDescription = {|
|
|
61
|
-
...CommonModuleObject,
|
|
62
|
-
description?: string | false
|
|
63
|
-
|};
|
|
64
|
-
|
|
65
|
-
declare type ModuleObject =
|
|
66
|
-
| ModuleObjectDesc
|
|
67
|
-
| ModuleObjectDescribe
|
|
68
|
-
| ModuleObjectDescription;
|
|
69
|
-
|
|
70
|
-
declare type MiddleWareCallback =
|
|
71
|
-
| (argv: Argv, yargsInstance?: Yargs) => void
|
|
72
|
-
| (argv: Argv, yargsInstance?: Yargs) => Promise<void>;
|
|
73
|
-
|
|
74
|
-
declare type Middleware = MiddleWareCallback | Array<MiddleWareCallback>;
|
|
75
|
-
|
|
76
|
-
declare class Yargs {
|
|
77
|
-
(args: Array<string>): Yargs;
|
|
78
|
-
|
|
79
|
-
alias(key: string, alias: string): this;
|
|
80
|
-
alias(alias: { [key: string]: string | Array<string>, ... }): this;
|
|
81
|
-
argv: Argv | Promise<Argv>;
|
|
82
|
-
array(key: string | Array<string>): this;
|
|
83
|
-
boolean(parameter: string | Array<string>): this;
|
|
84
|
-
check(fn: (argv: Argv, options: Array<string>) => mixed): this;
|
|
85
|
-
choices(key: string, allowed: Array<string>): this;
|
|
86
|
-
choices(allowed: { [key: string]: Array<string>, ... }): this;
|
|
87
|
-
coerce(key: string, fn: (value: any) => mixed): this;
|
|
88
|
-
coerce(object: { [key: string]: (value: any) => mixed, ... }): this;
|
|
89
|
-
coerce(keys: Array<string>, fn: (value: any) => mixed): this;
|
|
90
|
-
|
|
91
|
-
command(
|
|
92
|
-
cmd: string | Array<string>,
|
|
93
|
-
desc: string | false,
|
|
94
|
-
builder?:
|
|
95
|
-
| { [key: string]: Options, ... }
|
|
96
|
-
| ((yargsInstance: Yargs) => mixed),
|
|
97
|
-
handler?: Function
|
|
98
|
-
): this;
|
|
99
|
-
command(
|
|
100
|
-
cmd: string | Array<string>,
|
|
101
|
-
desc: string | false,
|
|
102
|
-
module: ModuleObject
|
|
103
|
-
): this;
|
|
104
|
-
command(module: ModuleObject): this;
|
|
105
|
-
|
|
106
|
-
commands(
|
|
107
|
-
cmd: string | Array<string>,
|
|
108
|
-
desc: string | false,
|
|
109
|
-
builder?:
|
|
110
|
-
| { [key: string]: Options, ... }
|
|
111
|
-
| ((yargsInstance: Yargs) => mixed),
|
|
112
|
-
handler?: Function
|
|
113
|
-
): this;
|
|
114
|
-
commands(
|
|
115
|
-
cmd: string | Array<string>,
|
|
116
|
-
desc: string | false,
|
|
117
|
-
module: ModuleObject
|
|
118
|
-
): this;
|
|
119
|
-
commands(module: ModuleObject): this;
|
|
120
|
-
|
|
121
|
-
commandDir(
|
|
122
|
-
directory: string,
|
|
123
|
-
options?: {
|
|
124
|
-
exclude?: string | Function,
|
|
125
|
-
extensions?: Array<string>,
|
|
126
|
-
include?: string | Function,
|
|
127
|
-
recurse?: boolean,
|
|
128
|
-
visit?: Function,
|
|
129
|
-
...
|
|
130
|
-
},
|
|
131
|
-
): this;
|
|
132
|
-
|
|
133
|
-
completion(
|
|
134
|
-
cmd?: string,
|
|
135
|
-
description?: string | false | (
|
|
136
|
-
current: string,
|
|
137
|
-
argv: Argv,
|
|
138
|
-
done: (compeltion: Array<string>) => void
|
|
139
|
-
) => ?(Array<string> | Promise<Array<string>>),
|
|
140
|
-
fn?: (
|
|
141
|
-
current: string,
|
|
142
|
-
argv: Argv,
|
|
143
|
-
done: (completion: Array<string>) => void
|
|
144
|
-
) => ?(Array<string> | Promise<Array<string>>)
|
|
145
|
-
): this;
|
|
146
|
-
|
|
147
|
-
config(
|
|
148
|
-
key?: string,
|
|
149
|
-
description?: string,
|
|
150
|
-
parseFn?: (configPath: string) => { [key: string]: mixed, ... }
|
|
151
|
-
): this;
|
|
152
|
-
config(
|
|
153
|
-
key: string,
|
|
154
|
-
parseFn?: (configPath: string) => { [key: string]: mixed, ... }
|
|
155
|
-
): this;
|
|
156
|
-
config(config: { [key: string]: mixed, ... }): this;
|
|
157
|
-
|
|
158
|
-
conflicts(key: string, value: string | Array<string>): this;
|
|
159
|
-
conflicts(keys: { [key: string]: string | Array<string>, ... }): this;
|
|
160
|
-
|
|
161
|
-
count(name: string): this;
|
|
162
|
-
|
|
163
|
-
default(key: string, value: mixed, description?: string): this;
|
|
164
|
-
default(defaults: { [key: string]: mixed, ... }): this;
|
|
165
|
-
|
|
166
|
-
// Deprecated: use demandOption() and demandCommand() instead.
|
|
167
|
-
demand(key: string, msg?: string | boolean): this;
|
|
168
|
-
demand(count: number, max?: number, msg?: string | boolean): this;
|
|
169
|
-
|
|
170
|
-
demandOption(key: string | Array<string>, msg?: string | boolean): this;
|
|
171
|
-
|
|
172
|
-
demandCommand(): this;
|
|
173
|
-
demandCommand(min: number, minMsg?: string): this;
|
|
174
|
-
demandCommand(
|
|
175
|
-
min: number,
|
|
176
|
-
max: number,
|
|
177
|
-
minMsg?: string,
|
|
178
|
-
maxMsg?: string
|
|
179
|
-
): this;
|
|
180
|
-
|
|
181
|
-
describe(key: string, description: string): this;
|
|
182
|
-
describe(describeObject: { [key: string]: string, ... }): this;
|
|
183
|
-
|
|
184
|
-
detectLocale(shouldDetect: boolean): this;
|
|
185
|
-
|
|
186
|
-
env(prefix?: string): this;
|
|
187
|
-
|
|
188
|
-
epilog(text: string): this;
|
|
189
|
-
epilogue(text: string): this;
|
|
190
|
-
|
|
191
|
-
example(cmd: string, desc?: string): this;
|
|
192
|
-
|
|
193
|
-
exitProcess(enable: boolean): this;
|
|
194
|
-
|
|
195
|
-
fail(fn: (failureMessage: string, err: Error, yargs: Yargs) => mixed): this;
|
|
196
|
-
|
|
197
|
-
getCompletion(
|
|
198
|
-
args: Array<string>,
|
|
199
|
-
fn: (err: Error | null, completions: Array<string> | void) => void
|
|
200
|
-
): Promise<Array<string> | void>;
|
|
201
|
-
|
|
202
|
-
global(globals: string | Array<string>, isGlobal?: boolean): this;
|
|
203
|
-
|
|
204
|
-
group(key: string | Array<string>, groupName: string): this;
|
|
205
|
-
|
|
206
|
-
help(option: boolean): this;
|
|
207
|
-
|
|
208
|
-
help(option?: string, desc?: string): this;
|
|
209
|
-
|
|
210
|
-
hide(key: string): this;
|
|
211
|
-
|
|
212
|
-
implies(key: string, value: string | Array<string>): this;
|
|
213
|
-
implies(keys: { [key: string]: string | Array<string>, ... }): this;
|
|
214
|
-
|
|
215
|
-
locale(
|
|
216
|
-
locale: | "de"
|
|
217
|
-
| "en"
|
|
218
|
-
| "es"
|
|
219
|
-
| "fr"
|
|
220
|
-
| "hi"
|
|
221
|
-
| "hu"
|
|
222
|
-
| "id"
|
|
223
|
-
| "it"
|
|
224
|
-
| "ja"
|
|
225
|
-
| "ko"
|
|
226
|
-
| "nb"
|
|
227
|
-
| "pirate"
|
|
228
|
-
| "pl"
|
|
229
|
-
| "pt"
|
|
230
|
-
| "pt_BR"
|
|
231
|
-
| "ru"
|
|
232
|
-
| "th"
|
|
233
|
-
| "tr"
|
|
234
|
-
| "zh_CN"
|
|
235
|
-
): this;
|
|
236
|
-
locale(): string;
|
|
237
|
-
|
|
238
|
-
middleware(
|
|
239
|
-
middlewareCallbacks: Middleware,
|
|
240
|
-
applyBeforeValidation?: boolean,
|
|
241
|
-
): this;
|
|
242
|
-
|
|
243
|
-
nargs(key: string, count: number): this;
|
|
244
|
-
|
|
245
|
-
normalize(key: string): this;
|
|
246
|
-
|
|
247
|
-
number(key: string | Array<string>): this;
|
|
248
|
-
|
|
249
|
-
option(key: string, options?: Options): this;
|
|
250
|
-
option(optionMap: { [key: string]: Options, ... }): this;
|
|
251
|
-
|
|
252
|
-
options(key: string, options?: Options): this;
|
|
253
|
-
options(optionMap: { [key: string]: Options, ... }): this;
|
|
254
|
-
|
|
255
|
-
parse(
|
|
256
|
-
args?: string | Array<string>,
|
|
257
|
-
context?: { [key: string]: any, ... },
|
|
258
|
-
parseCallback?: (err: Error, argv: Argv, output?: string) => void
|
|
259
|
-
): Argv | Promise<Argv>;
|
|
260
|
-
parse(
|
|
261
|
-
args?: string | Array<string>,
|
|
262
|
-
parseCallback?: (err: Error, argv: Argv, output?: string) => void
|
|
263
|
-
): Argv | Promise<Argv>;
|
|
264
|
-
|
|
265
|
-
parseAsync(
|
|
266
|
-
args?: string | Array<string>,
|
|
267
|
-
context?: { [key: string]: any, ... },
|
|
268
|
-
parseCallback?: (err: Error, argv: Argv, output?: string) => void
|
|
269
|
-
): Promise<Argv>;
|
|
270
|
-
parseAsync(
|
|
271
|
-
args?: string | Array<string>,
|
|
272
|
-
parseCallback?: (err: Error, argv: Argv, output?: string) => void
|
|
273
|
-
): Promise<Argv>;
|
|
274
|
-
|
|
275
|
-
parseSync(
|
|
276
|
-
args?: string | Array<string>,
|
|
277
|
-
context?: { [key: string]: any, ... },
|
|
278
|
-
parseCallback?: (err: Error, argv: Argv, output?: string) => void
|
|
279
|
-
): Argv;
|
|
280
|
-
parseSync(
|
|
281
|
-
args?: string | Array<string>,
|
|
282
|
-
parseCallback?: (err: Error, argv: Argv, output?: string) => void
|
|
283
|
-
): Argv;
|
|
284
|
-
|
|
285
|
-
parserConfiguration(configuration: {[key: string]: any, ...}): this;
|
|
286
|
-
|
|
287
|
-
pkgConf(key: string, cwd?: string): this;
|
|
288
|
-
|
|
289
|
-
positional(key: string, opt?: Options): this;
|
|
290
|
-
|
|
291
|
-
recommendCommands(): this;
|
|
292
|
-
|
|
293
|
-
// Alias of demand()
|
|
294
|
-
require(key: string, msg: string | boolean): this;
|
|
295
|
-
require(count: number, max?: number, msg?: string | boolean): this;
|
|
296
|
-
|
|
297
|
-
requiresArg(key: string | Array<string>): this;
|
|
298
|
-
|
|
299
|
-
scriptName(name: string): this;
|
|
300
|
-
|
|
301
|
-
showCompletionScript(): this;
|
|
302
|
-
|
|
303
|
-
showHelp(consoleLevel?: "error" | "warn" | "log"): this;
|
|
304
|
-
showHelp(printCallback: (usageData: string) => void): this;
|
|
305
|
-
|
|
306
|
-
showHelpOnFail(enable: boolean, message?: string): this;
|
|
307
|
-
|
|
308
|
-
skipValidation(key: string): this;
|
|
309
|
-
|
|
310
|
-
showVersion(consoleLevel?: "error" | "warn" | "log"): this;
|
|
311
|
-
showVersion(printCallback: (usageData: string) => void): this;
|
|
312
|
-
|
|
313
|
-
strict(enabled?: boolean): this;
|
|
314
|
-
|
|
315
|
-
strictCommands(enabled?: boolean): this;
|
|
316
|
-
|
|
317
|
-
strictOptions(enabled?: boolean): this;
|
|
318
|
-
|
|
319
|
-
string(key: string | Array<string>): this;
|
|
320
|
-
|
|
321
|
-
terminalWidth(): number;
|
|
322
|
-
|
|
323
|
-
updateLocale(obj: { [key: string]: string, ... }): this;
|
|
324
|
-
updateStrings(obj: { [key: string]: string, ... }): this;
|
|
325
|
-
|
|
326
|
-
usage(message: string, opts?: { [key: string]: Options, ... }): this;
|
|
327
|
-
|
|
328
|
-
version(): this;
|
|
329
|
-
version(version: string | false): this;
|
|
330
|
-
version(option: string | (() => string), version: string): this;
|
|
331
|
-
version(
|
|
332
|
-
option: string | (() => string),
|
|
333
|
-
description: string | (() => string),
|
|
334
|
-
version: string
|
|
335
|
-
): this;
|
|
336
|
-
|
|
337
|
-
wrap(columns: number | null): this;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
declare module.exports: Yargs;
|
|
341
|
-
}
|
|
@@ -1,161 +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
|
-
*/
|
|
9
|
-
|
|
10
|
-
import type * as React from 'react';
|
|
11
|
-
import {HostComponent} from '../../../types/public/ReactNativeTypes';
|
|
12
|
-
import {EmitterSubscription} from '../../vendor/emitter/EventEmitter';
|
|
13
|
-
|
|
14
|
-
type AccessibilityChangeEventName =
|
|
15
|
-
| 'change' // deprecated, maps to screenReaderChanged
|
|
16
|
-
| 'boldTextChanged' // iOS-only Event
|
|
17
|
-
| 'grayscaleChanged' // iOS-only Event
|
|
18
|
-
| 'invertColorsChanged' // iOS-only Event
|
|
19
|
-
| 'reduceMotionChanged'
|
|
20
|
-
| 'screenReaderChanged'
|
|
21
|
-
| 'reduceTransparencyChanged'; // iOS-only Event
|
|
22
|
-
|
|
23
|
-
type AccessibilityChangeEvent = boolean;
|
|
24
|
-
|
|
25
|
-
type AccessibilityChangeEventHandler = (
|
|
26
|
-
event: AccessibilityChangeEvent,
|
|
27
|
-
) => void;
|
|
28
|
-
|
|
29
|
-
type AccessibilityAnnouncementEventName = 'announcementFinished'; // iOS-only Event
|
|
30
|
-
|
|
31
|
-
type AccessibilityAnnouncementFinishedEvent = {
|
|
32
|
-
announcement: string;
|
|
33
|
-
success: boolean;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
type AccessibilityAnnouncementFinishedEventHandler = (
|
|
37
|
-
event: AccessibilityAnnouncementFinishedEvent,
|
|
38
|
-
) => void;
|
|
39
|
-
|
|
40
|
-
type AccessibilityEventTypes = 'click' | 'focus' | 'viewHoverEnter';
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @see https://reactnative.dev/docs/accessibilityinfo
|
|
44
|
-
*/
|
|
45
|
-
export interface AccessibilityInfoStatic {
|
|
46
|
-
/**
|
|
47
|
-
* Query whether bold text is currently enabled.
|
|
48
|
-
*
|
|
49
|
-
* @platform ios
|
|
50
|
-
*/
|
|
51
|
-
isBoldTextEnabled: () => Promise<boolean>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Query whether grayscale is currently enabled.
|
|
55
|
-
*
|
|
56
|
-
* @platform ios
|
|
57
|
-
*/
|
|
58
|
-
isGrayscaleEnabled: () => Promise<boolean>;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Query whether invert colors is currently enabled.
|
|
62
|
-
*
|
|
63
|
-
* @platform ios
|
|
64
|
-
*/
|
|
65
|
-
isInvertColorsEnabled: () => Promise<boolean>;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Query whether reduce motion is currently enabled.
|
|
69
|
-
*/
|
|
70
|
-
isReduceMotionEnabled: () => Promise<boolean>;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Query whether reduce motion and prefer cross-fade transitions settings are currently enabled.
|
|
74
|
-
*
|
|
75
|
-
* Returns a promise which resolves to a boolean.
|
|
76
|
-
* The result is `true` when prefer cross-fade transitions is enabled and `false` otherwise.
|
|
77
|
-
*/
|
|
78
|
-
prefersCrossFadeTransitions(): Promise<boolean>;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Query whether reduce transparency is currently enabled.
|
|
82
|
-
*
|
|
83
|
-
* @platform ios
|
|
84
|
-
*/
|
|
85
|
-
isReduceTransparencyEnabled: () => Promise<boolean>;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Query whether a screen reader is currently enabled.
|
|
89
|
-
*/
|
|
90
|
-
isScreenReaderEnabled: () => Promise<boolean>;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Query whether Accessibility Service is currently enabled.
|
|
94
|
-
*
|
|
95
|
-
* Returns a promise which resolves to a boolean.
|
|
96
|
-
* The result is `true` when any service is enabled and `false` otherwise.
|
|
97
|
-
*
|
|
98
|
-
* @platform android
|
|
99
|
-
*/
|
|
100
|
-
isAccessibilityServiceEnabled(): Promise<boolean>;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Add an event handler. Supported events:
|
|
104
|
-
* - announcementFinished: iOS-only event. Fires when the screen reader has finished making an announcement.
|
|
105
|
-
* The argument to the event handler is a dictionary with these keys:
|
|
106
|
-
* - announcement: The string announced by the screen reader.
|
|
107
|
-
* - success: A boolean indicating whether the announcement was successfully made.
|
|
108
|
-
* - AccessibilityEventName constants other than announcementFinished: Fires on accessibility feature change.
|
|
109
|
-
* The argument to the event handler is a boolean.
|
|
110
|
-
* The boolean is true when the related event's feature is enabled and false otherwise.
|
|
111
|
-
*
|
|
112
|
-
*/
|
|
113
|
-
addEventListener(
|
|
114
|
-
eventName: AccessibilityChangeEventName,
|
|
115
|
-
handler: AccessibilityChangeEventHandler,
|
|
116
|
-
): EmitterSubscription;
|
|
117
|
-
addEventListener(
|
|
118
|
-
eventName: AccessibilityAnnouncementEventName,
|
|
119
|
-
handler: AccessibilityAnnouncementFinishedEventHandler,
|
|
120
|
-
): EmitterSubscription;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Set accessibility focus to a react component.
|
|
124
|
-
*/
|
|
125
|
-
setAccessibilityFocus: (reactTag: number) => void;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Post a string to be announced by the screen reader.
|
|
129
|
-
*/
|
|
130
|
-
announceForAccessibility: (announcement: string) => void;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Post a string to be announced by the screen reader.
|
|
134
|
-
* - `announcement`: The string announced by the screen reader.
|
|
135
|
-
* - `options`: An object that configures the reading options.
|
|
136
|
-
* - `queue`: The announcement will be queued behind existing announcements. iOS only.
|
|
137
|
-
* - `nativeID`: The nativeID of the element to send the announcement from. win32 only.
|
|
138
|
-
*/
|
|
139
|
-
announceForAccessibilityWithOptions(
|
|
140
|
-
announcement: string,
|
|
141
|
-
options: {
|
|
142
|
-
queue?: boolean | undefined;
|
|
143
|
-
nativeID?: string | undefined; // win32
|
|
144
|
-
},
|
|
145
|
-
): void;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Gets the timeout in millisecond that the user needs.
|
|
149
|
-
* This value is set in "Time to take action (Accessibility timeout)" of "Accessibility" settings.
|
|
150
|
-
*
|
|
151
|
-
* @platform android
|
|
152
|
-
*/
|
|
153
|
-
getRecommendedTimeoutMillis: (originalTimeout: number) => Promise<number>;
|
|
154
|
-
sendAccessibilityEvent: (
|
|
155
|
-
handle: React.ElementRef<HostComponent<unknown>>,
|
|
156
|
-
eventType: AccessibilityEventTypes,
|
|
157
|
-
) => void;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export const AccessibilityInfo: AccessibilityInfoStatic;
|
|
161
|
-
export type AccessibilityInfo = AccessibilityInfoStatic;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { NativeSyntheticEvent, TextInputFocusEventData } from 'react-native';
|
|
2
|
-
|
|
3
|
-
// TODO: How do we keep in sync with synthetic events
|
|
4
|
-
|
|
5
|
-
interface IChangePayload {
|
|
6
|
-
eventCount: number;
|
|
7
|
-
target: number;
|
|
8
|
-
text: string;
|
|
9
|
-
}
|
|
10
|
-
export type IChangeEvent = NativeSyntheticEvent<Readonly<IChangePayload>>;
|
|
11
|
-
|
|
12
|
-
interface IRange {
|
|
13
|
-
start: number;
|
|
14
|
-
end: number;
|
|
15
|
-
}
|
|
16
|
-
interface ITextInputPayload {
|
|
17
|
-
eventCount: number;
|
|
18
|
-
previousText: string;
|
|
19
|
-
range: Readonly<IRange>;
|
|
20
|
-
target: number;
|
|
21
|
-
text: number;
|
|
22
|
-
}
|
|
23
|
-
export type ITextInputevent = NativeSyntheticEvent<Readonly<ITextInputPayload>>;
|
|
24
|
-
|
|
25
|
-
interface IContentSize {
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
}
|
|
29
|
-
interface IContentSizeChangePayload {
|
|
30
|
-
target: number;
|
|
31
|
-
contentSize: Readonly<IContentSize>;
|
|
32
|
-
}
|
|
33
|
-
export type IContentSizeChangeEvent = NativeSyntheticEvent<Readonly<IContentSizeChangePayload>>;
|
|
34
|
-
|
|
35
|
-
// TODO: Why doesn't this guy work
|
|
36
|
-
// interface ITargetPayload {
|
|
37
|
-
// target: number;
|
|
38
|
-
// }
|
|
39
|
-
|
|
40
|
-
// type ITargetEvent = NativeSyntheticEvent<Readonly<ITargetPayload>>;
|
|
41
|
-
|
|
42
|
-
export type IBlurEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
|
|
43
|
-
export type IFocusEvent = NativeSyntheticEvent<Readonly<TextInputFocusEventData>>;
|
|
44
|
-
|
|
45
|
-
export interface ISelection extends IRange { }
|
|
46
|
-
interface ISelectionPayload {
|
|
47
|
-
selection: ISelection;
|
|
48
|
-
target: number;
|
|
49
|
-
}
|
|
50
|
-
export type ISelectionChangeEvent = NativeSyntheticEvent<Readonly<ISelectionPayload>>;
|
|
51
|
-
|
|
52
|
-
// TODO: Why is this one diffferent?
|
|
53
|
-
interface IKeyPressPayload {
|
|
54
|
-
key: string;
|
|
55
|
-
target?: number;
|
|
56
|
-
eventCount?: number;
|
|
57
|
-
}
|
|
58
|
-
export type IKeyPressEvent = NativeSyntheticEvent<Readonly<IKeyPressPayload>>;
|
|
59
|
-
|
|
60
|
-
interface IEditingPayload {
|
|
61
|
-
eventCount: number;
|
|
62
|
-
text: string;
|
|
63
|
-
target: number;
|
|
64
|
-
}
|
|
65
|
-
export type IEditingEvent = NativeSyntheticEvent<Readonly<IEditingPayload>>;
|
|
66
|
-
|
|
67
|
-
// TODO: Why do I need this one
|
|
68
|
-
export type IPasswordRules = string;
|
|
File without changes
|