@office-iss/react-native-win32 0.72.6 → 0.73.0-preview.1
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 -4
- package/CHANGELOG.json +531 -87
- package/CHANGELOG.md +213 -48
- 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/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/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 +3 -5
- 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 +1 -3
- package/Libraries/vendor/emitter/EventEmitter.js +20 -18
- 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 +51 -46
- 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/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/TextInput/TextInput.Types.win32.ts +0 -68
- /package/Libraries/{Renderer/public → ReactNative/ReactFabricPublicInstance}/ReactFabricPublicInstanceUtils.js +0 -0
package/overrides.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.
|
|
10
|
+
"baseVersion": "0.73.0-rc.1",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "fd2609719419d6fd262c1e7f993eb566ad2444f6"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"type": "derived",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"type": "derived",
|
|
36
36
|
"file": "src/Libraries/Animated/NativeAnimatedHelper.win32.js",
|
|
37
37
|
"baseFile": "packages/react-native/Libraries/Animated/NativeAnimatedHelper.js",
|
|
38
|
-
"baseHash": "
|
|
38
|
+
"baseHash": "99fc31f856815c19024407d629e4a0762df9011e",
|
|
39
39
|
"issue": 11041
|
|
40
40
|
},
|
|
41
41
|
{
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
{
|
|
70
70
|
"type": "copy",
|
|
71
71
|
"file": "src/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
72
|
-
"baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.
|
|
72
|
+
"baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
73
73
|
"baseHash": "09f143fc3f2ee80463764e1c2b3f23107d501a4c",
|
|
74
74
|
"issue": 4378
|
|
75
75
|
},
|
|
@@ -81,27 +81,27 @@
|
|
|
81
81
|
"type": "patch",
|
|
82
82
|
"file": "src/Libraries/Components/Pressable/Pressable.win32.js",
|
|
83
83
|
"baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
|
|
84
|
-
"baseHash": "
|
|
84
|
+
"baseHash": "6fb2aede8cff4c47e8e965fed9ed1a9d55d33cfc",
|
|
85
85
|
"issue": 6240
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
"type": "
|
|
88
|
+
"type": "patch",
|
|
89
89
|
"file": "src/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
90
|
-
"baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.
|
|
91
|
-
"baseHash": "
|
|
92
|
-
"issue":
|
|
90
|
+
"baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
91
|
+
"baseHash": "e69c4f61d26361e6aeb62b6d3f31d1c1bb78e4ae",
|
|
92
|
+
"issue": 0
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
"type": "
|
|
95
|
+
"type": "copy",
|
|
96
96
|
"file": "src/Libraries/Components/SafeAreaView/SafeAreaView.win32.js",
|
|
97
97
|
"baseFile": "packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js",
|
|
98
|
-
"baseHash": "
|
|
98
|
+
"baseHash": "ae5845b576484b3600e395d3b1ee03223530b8f7"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"type": "derived",
|
|
102
102
|
"file": "src/Libraries/Components/ScrollView/ScrollView.win32.js",
|
|
103
103
|
"baseFile": "packages/react-native/Libraries/Components/ScrollView/ScrollView.js",
|
|
104
|
-
"baseHash": "
|
|
104
|
+
"baseHash": "87a276aff215fedb38d7ced5d9aef61224ebe0c2"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"type": "platform",
|
|
@@ -115,15 +115,11 @@
|
|
|
115
115
|
"type": "platform",
|
|
116
116
|
"file": "src/Libraries/Components/TextInput/Tests/TextInputTest.tsx"
|
|
117
117
|
},
|
|
118
|
-
{
|
|
119
|
-
"type": "platform",
|
|
120
|
-
"file": "src/Libraries/Components/TextInput/TextInput.Types.win32.ts"
|
|
121
|
-
},
|
|
122
118
|
{
|
|
123
119
|
"type": "derived",
|
|
124
120
|
"file": "src/Libraries/Components/TextInput/TextInput.win32.js",
|
|
125
121
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
|
|
126
|
-
"baseHash": "
|
|
122
|
+
"baseHash": "4e2811777a14ba8f87dc0a36ca11fcf390bd8def"
|
|
127
123
|
},
|
|
128
124
|
{
|
|
129
125
|
"type": "patch",
|
|
@@ -131,11 +127,15 @@
|
|
|
131
127
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
|
|
132
128
|
"baseHash": "60655baaca427e1c7c1b8884833b848335c4033b"
|
|
133
129
|
},
|
|
130
|
+
{
|
|
131
|
+
"type": "platform",
|
|
132
|
+
"file": "src/Libraries/Components/TextInput/Win32TextInputNativeComponent.js"
|
|
133
|
+
},
|
|
134
134
|
{
|
|
135
135
|
"type": "copy",
|
|
136
136
|
"file": "src/Libraries/Components/ToastAndroid/ToastAndroid.win32.js",
|
|
137
|
-
"baseFile": "packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.
|
|
138
|
-
"baseHash": "
|
|
137
|
+
"baseFile": "packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js",
|
|
138
|
+
"baseHash": "37f29678da7a4de7bc92cf52796a7e0388e1540a",
|
|
139
139
|
"issue": 4378
|
|
140
140
|
},
|
|
141
141
|
{
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"type": "derived",
|
|
160
160
|
"file": "src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
|
|
161
161
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
|
|
162
|
-
"baseHash": "
|
|
162
|
+
"baseHash": "fa5b3198efddd86eca7965aa90104408ed53fbbf"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"type": "platform",
|
|
@@ -177,13 +177,13 @@
|
|
|
177
177
|
"type": "patch",
|
|
178
178
|
"file": "src/Libraries/Components/View/ReactNativeViewAttributes.win32.js",
|
|
179
179
|
"baseFile": "packages/react-native/Libraries/Components/View/ReactNativeViewAttributes.js",
|
|
180
|
-
"baseHash": "
|
|
180
|
+
"baseHash": "0aabb0825ab9d65cb39f526ad3ac10874d6cde7e"
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"type": "patch",
|
|
184
184
|
"file": "src/Libraries/Components/View/View.win32.js",
|
|
185
185
|
"baseFile": "packages/react-native/Libraries/Components/View/View.js",
|
|
186
|
-
"baseHash": "
|
|
186
|
+
"baseHash": "f25ca9bd8f25d1dd05d98d40946a41b19fac87f1"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"type": "derived",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"type": "patch",
|
|
208
208
|
"file": "src/Libraries/Components/View/ViewPropTypes.win32.js",
|
|
209
209
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
|
|
210
|
-
"baseHash": "
|
|
210
|
+
"baseHash": "2bbe617e19537c49c2cbd7abad16580e386f1d65",
|
|
211
211
|
"issue": 6240
|
|
212
212
|
},
|
|
213
213
|
{
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"type": "patch",
|
|
225
225
|
"file": "src/Libraries/Core/ReactNativeVersionCheck.win32.js",
|
|
226
226
|
"baseFile": "packages/react-native/Libraries/Core/ReactNativeVersionCheck.js",
|
|
227
|
-
"baseHash": "
|
|
227
|
+
"baseHash": "44de206d0f29cc9562dd1c4dcc61d852664b2a0f",
|
|
228
228
|
"issue": 5170
|
|
229
229
|
},
|
|
230
230
|
{
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"type": "derived",
|
|
242
242
|
"file": "src/Libraries/Image/Image.win32.js",
|
|
243
243
|
"baseFile": "packages/react-native/Libraries/Image/Image.ios.js",
|
|
244
|
-
"baseHash": "
|
|
244
|
+
"baseHash": "ead4aaa048a5ae0186d3f8ade054b970a2115a3a",
|
|
245
245
|
"issue": 4320
|
|
246
246
|
},
|
|
247
247
|
{
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"type": "patch",
|
|
314
314
|
"file": "src/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js",
|
|
315
315
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js",
|
|
316
|
-
"baseHash": "
|
|
316
|
+
"baseHash": "1a12281b1cfab7352fcfeb5984f0ed3c83c04660",
|
|
317
317
|
"issue": 7952
|
|
318
318
|
},
|
|
319
319
|
{
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"type": "derived",
|
|
341
341
|
"file": "src/Libraries/NativeComponent/BaseViewConfig.win32.js",
|
|
342
342
|
"baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
|
|
343
|
-
"baseHash": "
|
|
343
|
+
"baseHash": "ae7bdcfff1117d4a349b7b9bcc108a22ae7099ae"
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"type": "copy",
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
"type": "patch",
|
|
377
377
|
"file": "src/Libraries/Pressability/Pressability.win32.js",
|
|
378
378
|
"baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
|
|
379
|
-
"baseHash": "
|
|
379
|
+
"baseHash": "d5a39e2602915a52ae14cc88aaba8bd1d1c8be8a",
|
|
380
380
|
"issue": 6240
|
|
381
381
|
},
|
|
382
382
|
{
|
|
@@ -404,8 +404,8 @@
|
|
|
404
404
|
{
|
|
405
405
|
"type": "derived",
|
|
406
406
|
"file": "src/Libraries/Settings/Settings.win32.js",
|
|
407
|
-
"baseFile": "packages/react-native/Libraries/Settings/Settings.
|
|
408
|
-
"baseHash": "
|
|
407
|
+
"baseFile": "packages/react-native/Libraries/Settings/Settings.js",
|
|
408
|
+
"baseHash": "1aa8e2b8b3c8e1577f617383c3a47fe8499eb031"
|
|
409
409
|
},
|
|
410
410
|
{
|
|
411
411
|
"type": "platform",
|
|
@@ -423,7 +423,13 @@
|
|
|
423
423
|
"type": "patch",
|
|
424
424
|
"file": "src/Libraries/StyleSheet/StyleSheet.win32.js",
|
|
425
425
|
"baseFile": "packages/react-native/Libraries/StyleSheet/StyleSheet.js",
|
|
426
|
-
"baseHash": "
|
|
426
|
+
"baseHash": "e73098e3a22f8f74328e0a9f387839bb03322bb6"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"type": "derived",
|
|
430
|
+
"file": "src/Libraries/Text/Text.win32.js",
|
|
431
|
+
"baseFile": "packages/react-native/Libraries/Text/Text.js",
|
|
432
|
+
"baseHash": "02a8ebee89958ab16c6014c2fe1d5b6253113918"
|
|
427
433
|
},
|
|
428
434
|
{
|
|
429
435
|
"type": "derived",
|
|
@@ -432,6 +438,12 @@
|
|
|
432
438
|
"baseHash": "abcdb74e2fe1e491baaefdd0ba6369199b8032d0",
|
|
433
439
|
"issue": 7074
|
|
434
440
|
},
|
|
441
|
+
{
|
|
442
|
+
"type": "derived",
|
|
443
|
+
"file": "src/Libraries/Text/TextProps.win32.js",
|
|
444
|
+
"baseFile": "packages/react-native/Libraries/Text/TextProps.js",
|
|
445
|
+
"baseHash": "7ecbe61c439e5c6f79fe5ae262f063060fa6a24f"
|
|
446
|
+
},
|
|
435
447
|
{
|
|
436
448
|
"type": "patch",
|
|
437
449
|
"file": "src/Libraries/Types/CoreEventTypes.win32.js",
|
|
@@ -439,12 +451,6 @@
|
|
|
439
451
|
"baseHash": "7fe2b87cf49f4674d731d07f0883bab2f5cfc356",
|
|
440
452
|
"issue": 6240
|
|
441
453
|
},
|
|
442
|
-
{
|
|
443
|
-
"type": "derived",
|
|
444
|
-
"file": "src/Libraries/Utilities/AcessibilityMapping.win32.js",
|
|
445
|
-
"baseFile": "packages/react-native/Libraries/Utilities/AcessibilityMapping.js",
|
|
446
|
-
"baseHash": "7a662ddd93c6cd0a7193e3002120aeb196991340"
|
|
447
|
-
},
|
|
448
454
|
{
|
|
449
455
|
"type": "copy",
|
|
450
456
|
"file": "src/Libraries/Utilities/BackHandler.win32.js",
|
|
@@ -476,20 +482,19 @@
|
|
|
476
482
|
"type": "derived",
|
|
477
483
|
"file": "src/Libraries/Utilities/NativePlatformConstantsWin.js",
|
|
478
484
|
"baseFile": "packages/react-native/Libraries/Utilities/NativePlatformConstantsIOS.js",
|
|
479
|
-
"baseHash": "
|
|
485
|
+
"baseHash": "77a07a52a5d20150d5596574e251aba1b767a9cd"
|
|
480
486
|
},
|
|
481
487
|
{
|
|
482
488
|
"type": "derived",
|
|
483
|
-
"file": "src/Libraries/Utilities/Platform.win32.js",
|
|
484
|
-
"baseFile": "packages/react-native/Libraries/Utilities/Platform.
|
|
485
|
-
"baseHash": "
|
|
489
|
+
"file": "src/Libraries/Utilities/Platform.flow.win32.js",
|
|
490
|
+
"baseFile": "packages/react-native/Libraries/Utilities/Platform.flow.js",
|
|
491
|
+
"baseHash": "c0a203e8d15f99ff00edaab6c4a40a49606a99f0"
|
|
486
492
|
},
|
|
487
493
|
{
|
|
488
|
-
"type": "
|
|
489
|
-
"file": "src/Libraries/Utilities/
|
|
490
|
-
"baseFile": "packages/react-native/Libraries/Utilities/
|
|
491
|
-
"baseHash": "
|
|
492
|
-
"issue": 0
|
|
494
|
+
"type": "derived",
|
|
495
|
+
"file": "src/Libraries/Utilities/Platform.win32.js",
|
|
496
|
+
"baseFile": "packages/react-native/Libraries/Utilities/Platform.android.js",
|
|
497
|
+
"baseHash": "a09b2fdd9859584069281df3311ef188a5640b00"
|
|
493
498
|
},
|
|
494
499
|
{
|
|
495
500
|
"type": "copy",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.0-preview.1",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"build": "rnw-scripts build",
|
|
15
15
|
"bundle": "rnw-scripts prepareBundle && react-native bundle --platform win32 --entry-file ../react-native-win32-tester/js/RNTesterApp.win32.js --bundle-output dist/win32/dev/js/RNTesterApp.bundle --assets-dest dist/win32/dev --sourcemap-output ./dist/win32/dev/js/RNTesterApp.bundle.map",
|
|
16
16
|
"clean": "rnw-scripts clean",
|
|
17
|
-
"flow-check": "flow
|
|
17
|
+
"flow-check": "rnw-scripts flow-check",
|
|
18
18
|
"lint:fix": "rnw-scripts lint:fix",
|
|
19
19
|
"lint": "rnw-scripts lint",
|
|
20
20
|
"run-win32-devmain": "npx @office-iss/rex-win32@0.71.15-devmain.16607.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain --useDirectDebugger --useFastRefresh",
|
|
@@ -25,82 +25,84 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
|
-
"@jest/create-cache-key-function": "^29.
|
|
29
|
-
"@react-native-community/cli": "
|
|
30
|
-
"@react-native-community/cli-platform-android": "
|
|
31
|
-
"@react-native-community/cli-platform-ios": "
|
|
28
|
+
"@jest/create-cache-key-function": "^29.6.3",
|
|
29
|
+
"@react-native-community/cli": "12.0.0-alpha.17",
|
|
30
|
+
"@react-native-community/cli-platform-android": "12.0.0-alpha.17",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "12.0.0-alpha.17",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "^0.
|
|
34
|
-
"@react-native/codegen": "^0.
|
|
35
|
-
"@react-native/
|
|
36
|
-
"@react-native/
|
|
37
|
-
"@react-native/
|
|
38
|
-
"@react-native/
|
|
33
|
+
"@react-native/assets-registry": "^0.73.1",
|
|
34
|
+
"@react-native/codegen": "^0.73.1",
|
|
35
|
+
"@react-native/community-cli-plugin": "^0.73.6",
|
|
36
|
+
"@react-native/gradle-plugin": "^0.73.1",
|
|
37
|
+
"@react-native/js-polyfills": "^0.73.1",
|
|
38
|
+
"@react-native/metro-config": "^0.73.0",
|
|
39
|
+
"@react-native/normalize-colors": "^0.73.2",
|
|
40
|
+
"@react-native/virtualized-lists": "^0.73.1",
|
|
39
41
|
"abort-controller": "^3.0.0",
|
|
40
42
|
"anser": "^1.4.9",
|
|
43
|
+
"ansi-regex": "^5.0.0",
|
|
41
44
|
"art": "^0.10.0",
|
|
42
|
-
"base64-js": "^1.1
|
|
43
|
-
"deprecated-react-native-prop-types": "4.1
|
|
45
|
+
"base64-js": "^1.5.1",
|
|
46
|
+
"deprecated-react-native-prop-types": "4.2.1",
|
|
44
47
|
"event-target-shim": "^5.0.1",
|
|
45
|
-
"flow-enums-runtime": "^0.0.
|
|
48
|
+
"flow-enums-runtime": "^0.0.6",
|
|
46
49
|
"invariant": "^2.2.4",
|
|
47
|
-
"jest-environment-node": "^29.
|
|
50
|
+
"jest-environment-node": "^29.6.3",
|
|
48
51
|
"jsc-android": "^250231.0.0",
|
|
49
52
|
"memoize-one": "^5.0.0",
|
|
50
|
-
"metro-runtime": "0.
|
|
51
|
-
"metro-source-map": "0.
|
|
53
|
+
"metro-runtime": "0.79.1",
|
|
54
|
+
"metro-source-map": "0.79.1",
|
|
52
55
|
"mkdirp": "^0.5.1",
|
|
53
56
|
"nullthrows": "^1.1.1",
|
|
54
57
|
"pretty-format": "^26.5.2",
|
|
55
58
|
"promise": "^8.3.0",
|
|
56
59
|
"react-clone-referenced-element": "^1.0.1",
|
|
57
|
-
"react-devtools-core": "^4.27.
|
|
58
|
-
"react-refresh": "^0.
|
|
60
|
+
"react-devtools-core": "^4.27.7",
|
|
61
|
+
"react-refresh": "^0.14.0",
|
|
59
62
|
"react-shallow-renderer": "^16.15.0",
|
|
60
63
|
"regenerator-runtime": "^0.13.2",
|
|
61
64
|
"scheduler": "0.24.0-canary-efb381bbf-20230505",
|
|
62
65
|
"stacktrace-parser": "^0.1.10",
|
|
63
|
-
"use-sync-external-store": "^1.0.0",
|
|
64
66
|
"whatwg-fetch": "^3.0.0",
|
|
65
67
|
"ws": "^6.2.2",
|
|
66
68
|
"yargs": "^17.6.2"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
71
|
"@babel/core": "^7.20.0",
|
|
70
|
-
"@babel/eslint-parser": "^7.
|
|
72
|
+
"@babel/eslint-parser": "^7.20.0",
|
|
71
73
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
72
|
-
"@rnw-scripts/eslint-config": "1.
|
|
73
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
74
|
-
"@rnw-scripts/just-task": "2.3.
|
|
74
|
+
"@rnw-scripts/eslint-config": "1.2.3",
|
|
75
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.6",
|
|
76
|
+
"@rnw-scripts/just-task": "2.3.17",
|
|
75
77
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
76
78
|
"@rnx-kit/jest-preset": "^0.1.0",
|
|
77
|
-
"@types/node": "^
|
|
79
|
+
"@types/node": "^18.0.0",
|
|
78
80
|
"@types/prop-types": "15.7.1",
|
|
79
81
|
"@types/react": "^18.0.18",
|
|
80
82
|
"eslint": "^8.19.0",
|
|
81
|
-
"flow-bin": "^0.
|
|
83
|
+
"flow-bin": "^0.215.0",
|
|
82
84
|
"jscodeshift": "^0.14.0",
|
|
83
85
|
"just-scripts": "^1.3.3",
|
|
84
86
|
"prettier": "^2.4.1",
|
|
85
87
|
"react": "18.2.0",
|
|
86
|
-
"react-native": "0.
|
|
87
|
-
"react-native-platform-override": "^1.9.
|
|
88
|
+
"react-native": "0.73.0-rc.1",
|
|
89
|
+
"react-native-platform-override": "^1.9.16",
|
|
88
90
|
"typescript": "^4.9.5"
|
|
89
91
|
},
|
|
90
92
|
"peerDependencies": {
|
|
91
93
|
"react": "18.2.0",
|
|
92
|
-
"react-native": "
|
|
94
|
+
"react-native": "0.73.0-rc.1"
|
|
93
95
|
},
|
|
94
96
|
"beachball": {
|
|
95
|
-
"defaultNpmTag": "
|
|
97
|
+
"defaultNpmTag": "preview",
|
|
96
98
|
"disallowedChangeTypes": [
|
|
97
99
|
"major",
|
|
98
100
|
"minor",
|
|
99
|
-
"
|
|
101
|
+
"patch"
|
|
100
102
|
]
|
|
101
103
|
},
|
|
102
104
|
"promoteRelease": true,
|
|
103
105
|
"engines": {
|
|
104
|
-
"node": ">=
|
|
106
|
+
"node": ">= 18"
|
|
105
107
|
}
|
|
106
108
|
}
|
|
@@ -9,7 +9,7 @@ export interface IButtonWin32Style extends Omit<RN.TextStyle, ButtonWin32OmitSty
|
|
|
9
9
|
|
|
10
10
|
export interface IButtonWin32Props extends RN.ButtonProps {
|
|
11
11
|
/**
|
|
12
|
-
* Style information which controls the visual
|
|
12
|
+
* Style information which controls the visual appearance of the button.
|
|
13
13
|
*/
|
|
14
14
|
style?: RN.StyleProp<IButtonWin32Style>;
|
|
15
15
|
|
|
@@ -33,7 +33,6 @@ export class ButtonWin32 extends React.Component<IButtonWin32Props, IButtonWin32
|
|
|
33
33
|
onBlur: this._onBlur,
|
|
34
34
|
onMouseEnter: this.props.onMouseEnter,
|
|
35
35
|
onMouseLeave: this.props.onMouseLeave,
|
|
36
|
-
// @ts-ignore
|
|
37
36
|
onTouchStart: this.props.onTouchStart,
|
|
38
37
|
onTouchEnd: this._onTouchEnd,
|
|
39
38
|
testID: this.props.testID,
|
|
@@ -48,7 +47,6 @@ export class ButtonWin32 extends React.Component<IButtonWin32Props, IButtonWin32
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
return (
|
|
51
|
-
// @ts-ignore
|
|
52
50
|
<RN.ViewWin32 {...viewProps}>
|
|
53
51
|
<RN.TextWin32 {...textProps}>{this.props.title}</RN.TextWin32>
|
|
54
52
|
</RN.ViewWin32>
|
|
@@ -193,7 +193,7 @@ interface ITouchableWin32HighlightComponentProps extends ITouchableWin32Highligh
|
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* Example implementation of TouchableHighlight - not meant for use outside these examples
|
|
196
|
-
* The main difference between a
|
|
196
|
+
* The main difference between a full TouchableHighlight implementation and this example is that
|
|
197
197
|
* TouchableHighlight should manipulate the opacity of the wrapped view to display the underlay color.
|
|
198
198
|
* This example merely uses hard coded color values to distinguish between different control states
|
|
199
199
|
*/
|
|
@@ -284,7 +284,7 @@ class TouchableWin32HighlightComponent extends React.Component<ITouchableWin32Hi
|
|
|
284
284
|
* The generated style uses hard-coded color values,
|
|
285
285
|
* though it is trivial to pass these values as props.
|
|
286
286
|
* This is an example of a render style (one that is a
|
|
287
|
-
*
|
|
287
|
+
* function passed on to TouchableWin32 and resolved according
|
|
288
288
|
* to the internal state of TouchableWin32).
|
|
289
289
|
*/
|
|
290
290
|
private readonly _generateStyle = (state: ITouchableWin32State): ViewStyle => {
|
|
@@ -157,7 +157,7 @@ const transitions: ITransitions = {
|
|
|
157
157
|
// (function children) or styles. A keypressed state is equivalent to a normal
|
|
158
158
|
// press state. If either a pointer, mouse, or special key (space/enter) is pressed
|
|
159
159
|
// the touchable considers itself to be in a pressed state. Do note that key presses
|
|
160
|
-
// will not invoke gesture responder
|
|
160
|
+
// will not invoke gesture responder hooks and are not subject to the passed in delays.
|
|
161
161
|
interface IInternalTouchableWin32State extends ITouchableWin32State {
|
|
162
162
|
isKeyPressed: boolean;
|
|
163
163
|
}
|
|
@@ -321,7 +321,7 @@ export interface AccessibilityPropsIOS {
|
|
|
321
321
|
accessibilityViewIsModal?: boolean | undefined;
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
|
-
* When
|
|
324
|
+
* When accessible is true, the system will invoke this function when the user performs the escape gesture (scrub with two fingers).
|
|
325
325
|
* @platform ios
|
|
326
326
|
*/
|
|
327
327
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
@@ -395,19 +395,22 @@ export interface AccessibilityPropsWin32 {
|
|
|
395
395
|
* @platform win32
|
|
396
396
|
*/
|
|
397
397
|
accessibilityPositionInSet?: number;
|
|
398
|
+
'aria-posinset'?: number;
|
|
398
399
|
/**
|
|
399
400
|
* accessibilitySetSize
|
|
400
401
|
* @platform win32
|
|
401
402
|
*/
|
|
402
403
|
accessibilitySetSize?: ?number;
|
|
404
|
+
'aria-setsize'?: number;
|
|
403
405
|
|
|
404
406
|
/**
|
|
405
407
|
* accessibilityDescription provides more detailed information specific to the element (i.e. last edit date, full location for a file)
|
|
406
|
-
* while accessibilityHint provides
|
|
408
|
+
* while accessibilityHint provides information on what will happen when they perform an action.
|
|
407
409
|
* @platform win32
|
|
408
410
|
*
|
|
409
411
|
*/
|
|
410
412
|
accessibilityDescription?: string;
|
|
413
|
+
'aria-description'?: string;
|
|
411
414
|
|
|
412
415
|
/**
|
|
413
416
|
* Tells a person using a screen reader what kind of annotation they
|
|
@@ -432,6 +435,7 @@ export interface AccessibilityPropsWin32 {
|
|
|
432
435
|
* @platform win32
|
|
433
436
|
*/
|
|
434
437
|
accessibilityLevel?: number;
|
|
438
|
+
'aria-level'?: number | undefined;
|
|
435
439
|
|
|
436
440
|
/**
|
|
437
441
|
* Identifies the ItemType property, which is a text string describing the type of the automation element.
|
|
@@ -450,6 +454,7 @@ export interface AccessibilityPropsWin32 {
|
|
|
450
454
|
* @platform win32
|
|
451
455
|
*/
|
|
452
456
|
accessibilityControls?: string | undefined;
|
|
457
|
+
'aria-controls'?: string;
|
|
453
458
|
|
|
454
459
|
/**
|
|
455
460
|
* Windows Accessibility extensions for allowing other DOM elements to label or describe a given element.
|
|
@@ -458,6 +463,7 @@ export interface AccessibilityPropsWin32 {
|
|
|
458
463
|
* @platform win32
|
|
459
464
|
*/
|
|
460
465
|
accessibilityDescribedBy?: string | undefined;
|
|
466
|
+
'aria-describedby'?: string;
|
|
461
467
|
}
|
|
462
468
|
|
|
463
469
|
export type Role =
|
|
@@ -30,7 +30,7 @@ export type GradientColorValueWin32 = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* Creates a color value that renders using a
|
|
33
|
+
* Creates a color value that renders using a gradient brush.
|
|
34
34
|
* This can be used to provide a value to most components that take a standard color value.
|
|
35
35
|
*/
|
|
36
36
|
export declare const ColorGradientWin32: (
|
package/types/experimental.d.ts
CHANGED
|
@@ -38,6 +38,41 @@ export {};
|
|
|
38
38
|
|
|
39
39
|
declare module '.' {
|
|
40
40
|
export interface FlexStyle {
|
|
41
|
+
/**
|
|
42
|
+
* Equivalent to `top`, `bottom`, `right` and `left`
|
|
43
|
+
*/
|
|
44
|
+
inset?: DimensionValue | undefined;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Equivalent to `top`, `bottom`
|
|
48
|
+
*/
|
|
49
|
+
insetBlock?: DimensionValue | undefined;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Equivalent to `bottom`
|
|
53
|
+
*/
|
|
54
|
+
insetBlockEnd?: DimensionValue | undefined;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Equivalent to `top`
|
|
58
|
+
*/
|
|
59
|
+
insetBlockStart?: DimensionValue | undefined;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Equivalent to `right` and `left`
|
|
63
|
+
*/
|
|
64
|
+
insetInline?: DimensionValue | undefined;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Equivalent to `right` or `left`
|
|
68
|
+
*/
|
|
69
|
+
insetInlineEnd?: DimensionValue | undefined;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Equivalent to `right` or `left`
|
|
73
|
+
*/
|
|
74
|
+
insetInlineStart?: DimensionValue | undefined;
|
|
75
|
+
|
|
41
76
|
/**
|
|
42
77
|
* Equivalent to `marginVertical`
|
|
43
78
|
*/
|
|
@@ -98,4 +133,13 @@ declare module '.' {
|
|
|
98
133
|
*/
|
|
99
134
|
paddingInlineStart?: DimensionValue | undefined;
|
|
100
135
|
}
|
|
136
|
+
|
|
137
|
+
export interface ViewProps {
|
|
138
|
+
/**
|
|
139
|
+
* Contols whether this view, and its transitive children, are laid in a way
|
|
140
|
+
* consistent with web browsers ('strict'), or consistent with existing
|
|
141
|
+
* React Native code which may rely on incorrect behavior ('classic').
|
|
142
|
+
*/
|
|
143
|
+
experimental_layoutConformance?: 'strict' | 'classic' | undefined;
|
|
144
|
+
}
|
|
101
145
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
// Mateusz Wit <https://github.com/MateWW>
|
|
52
52
|
// Saad Najmi <https://github.com/saadnajmi>
|
|
53
53
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
54
|
-
// Minimum TypeScript Version: 4.
|
|
54
|
+
// Minimum TypeScript Version: 4.8
|
|
55
55
|
|
|
56
56
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
57
57
|
//
|
|
@@ -103,6 +103,7 @@ export * from '../Libraries/Components/View/View';
|
|
|
103
103
|
export * from '../Libraries/Components/View/ViewAccessibility';
|
|
104
104
|
export * from '../Libraries/Components/View/ViewPropTypes';
|
|
105
105
|
export * from '../Libraries/Components/Button';
|
|
106
|
+
export * from '../Libraries/DevToolsSettings/DevToolsSettingsManager';
|
|
106
107
|
export * from '../Libraries/EventEmitter/NativeEventEmitter';
|
|
107
108
|
export * from '../Libraries/EventEmitter/RCTDeviceEventEmitter';
|
|
108
109
|
export * from '../Libraries/EventEmitter/RCTNativeAppEventEmitter';
|
|
@@ -67,7 +67,7 @@ declare interface WindowOrWorkerGlobalScope {
|
|
|
67
67
|
interface Blob {
|
|
68
68
|
readonly size: number;
|
|
69
69
|
readonly type: string;
|
|
70
|
-
slice(start?: number, end?: number): Blob;
|
|
70
|
+
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
interface BlobOptions {
|
|
@@ -80,6 +80,20 @@ declare var Blob: {
|
|
|
80
80
|
new (blobParts?: Array<Blob | string>, options?: BlobOptions): Blob;
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
+
interface File extends Blob {
|
|
84
|
+
name: string;
|
|
85
|
+
lastModified: number;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare var File: {
|
|
89
|
+
prototype: File;
|
|
90
|
+
new (
|
|
91
|
+
fileParts?: Array<Blob | string>,
|
|
92
|
+
name?: string,
|
|
93
|
+
options?: BlobOptions,
|
|
94
|
+
): File;
|
|
95
|
+
};
|
|
96
|
+
|
|
83
97
|
type FormDataValue =
|
|
84
98
|
| string
|
|
85
99
|
| {name?: string | undefined; type?: string | undefined; uri: string};
|
|
@@ -173,6 +187,7 @@ declare interface Request extends Object, Body {
|
|
|
173
187
|
readonly mode: RequestMode_;
|
|
174
188
|
readonly referrer: string;
|
|
175
189
|
readonly url: string;
|
|
190
|
+
readonly signal: AbortSignal | undefined;
|
|
176
191
|
clone(): Request;
|
|
177
192
|
}
|
|
178
193
|
|